diff --git a/assets/index-DJp9B6w0.js b/assets/index-DU0cVyni.js similarity index 90% rename from assets/index-DJp9B6w0.js rename to assets/index-DU0cVyni.js index 5e62218..7581c5b 100644 --- a/assets/index-DJp9B6w0.js +++ b/assets/index-DU0cVyni.js @@ -237,7 +237,7 @@ html body { ${q(i)} ${q(i)} 0 0 ${n}, ${q(i)} 0 0 0 ${n} inset, 0 ${q(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},v9=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${q(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},ju()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${o}`}}})},y9=e=>Object.assign(Object.assign({margin:`${q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ju()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Lu),"&-description":{color:e.colorTextDescription}}),b9=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${q(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${q(e.padding)} ${q(n)}`}}},w9=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},x9=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},lr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:g9(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},ju()),[`${n}-grid`]:h9(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:v9(e),[`${n}-meta`]:y9(e)}),[`${n}-bordered`]:{border:`${q(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:b9(e),[`${n}-loading`]:w9(e),[`${n}-rtl`]:{direction:"rtl"}}},S9=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${q(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},C9=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),E9=Qt("Card",e=>{const t=Ft(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[x9(t),S9(t)]},C9);var Ev=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:a},c.createElement("span",null,i))}))},$9=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:l={},bodyStyle:s={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:v,actions:b,tabList:x,children:g,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:w,hoverable:C,tabProps:E={},classNames:S,styles:k}=e,_=Ev(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:O,card:N}=c.useContext(Be),T=de=>{var Y;(Y=e.onTabChange)===null||Y===void 0||Y.call(e,de)},M=de=>{var Y;return W((Y=N==null?void 0:N.classNames)===null||Y===void 0?void 0:Y[de],S==null?void 0:S[de])},j=de=>{var Y;return Object.assign(Object.assign({},(Y=N==null?void 0:N.styles)===null||Y===void 0?void 0:Y[de]),k==null?void 0:k[de])},I=c.useMemo(()=>{let de=!1;return c.Children.forEach(g,Y=>{Y&&Y.type&&Y.type===cx&&(de=!0)}),de},[g]),R=P("card",n),[$,z,B]=E9(R),A=c.createElement(EO,{loading:!0,active:!0,paragraph:{rows:4},title:!1},g),D=m!==void 0,U=Object.assign(Object.assign({},E),{[D?"activeKey":"defaultActiveKey"]:D?m:y,tabBarExtraContent:w});let X;const G=qu(p),V=!G||G==="default"?"large":G,K=x?c.createElement(f9,Object.assign({size:V},U,{className:`${R}-head-tabs`,onChange:T,items:x.map(de=>{var{tab:Y}=de,me=Ev(de,["tab"]);return Object.assign({label:Y},me)})})):null;if(u||a||K){const de=W(`${R}-head`,M("header")),Y=W(`${R}-head-title`,M("title")),me=W(`${R}-extra`,M("extra")),se=Object.assign(Object.assign({},l),j("header"));X=c.createElement("div",{className:de,style:se},c.createElement("div",{className:`${R}-head-wrapper`},u&&c.createElement("div",{className:Y,style:j("title")},u),a&&c.createElement("div",{className:me,style:j("extra")},a)),K)}const Z=W(`${R}-cover`,M("cover")),ne=v?c.createElement("div",{className:Z,style:j("cover")},v):null,ue=W(`${R}-body`,M("body")),ae=Object.assign(Object.assign({},s),j("body")),ye=c.createElement("div",{className:ue,style:ae},d?A:g),pe=W(`${R}-actions`,M("actions")),be=b&&b.length?c.createElement(k9,{actionClasses:pe,actionStyle:j("actions"),actions:b}):null,le=yr(_,["onTabChange"]),Ce=W(R,N==null?void 0:N.className,{[`${R}-loading`]:d,[`${R}-bordered`]:f,[`${R}-hoverable`]:C,[`${R}-contain-grid`]:I,[`${R}-contain-tabs`]:x&&x.length,[`${R}-${G}`]:G,[`${R}-type-${h}`]:!!h,[`${R}-rtl`]:O==="rtl"},r,i,z,B),he=Object.assign(Object.assign({},N==null?void 0:N.style),o);return $(c.createElement("div",Object.assign({ref:t},le,{className:Ce,style:he}),X,ne,ye,be))}),_9=$9;var P9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=P9(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=c.useContext(Be),s=l("card",t),u=W(`${s}-meta`,n),d=r?c.createElement("div",{className:`${s}-meta-avatar`},r):null,f=i?c.createElement("div",{className:`${s}-meta-title`},i):null,p=o?c.createElement("div",{className:`${s}-meta-description`},o):null,h=f||p?c.createElement("div",{className:`${s}-meta-detail`},f,p):null;return c.createElement("div",Object.assign({},a,{className:u}),d,h)},R9=O9,Pm=_9;Pm.Grid=cx;Pm.Meta=R9;const Zu=Pm,z9=c.createContext({}),ux=z9,T9=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},I9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},M9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},qp=(e,t)=>M9(e,t),B9=(e,t,n)=>({[`@media (min-width: ${q(t)})`]:Object.assign({},qp(e,n))}),N9=()=>({}),A9=()=>({}),L9=Qt("Grid",T9,N9),j9=Qt("Grid",e=>{const t=Ft(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[I9(t),qp(t,""),qp(t,"-xs"),Object.keys(n).map(r=>B9(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},A9);var D9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=c.useContext(Be),{gutter:i,wrap:o}=c.useContext(ux),{prefixCls:a,span:l,order:s,offset:u,push:d,pull:f,className:p,children:h,flex:v,style:b}=e,x=D9(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[m,y,w]=j9(g),C={};let E={};F9.forEach(_=>{let P={};const O=e[_];typeof O=="number"?P.span=O:typeof O=="object"&&(P=O||{}),delete x[_],E=Object.assign(Object.assign({},E),{[`${g}-${_}-${P.span}`]:P.span!==void 0,[`${g}-${_}-order-${P.order}`]:P.order||P.order===0,[`${g}-${_}-offset-${P.offset}`]:P.offset||P.offset===0,[`${g}-${_}-push-${P.push}`]:P.push||P.push===0,[`${g}-${_}-pull-${P.pull}`]:P.pull||P.pull===0,[`${g}-rtl`]:r==="rtl"}),P.flex&&(E[`${g}-${_}-flex`]=!0,C[`--${g}-${_}-flex`]=kv(P.flex))});const S=W(g,{[`${g}-${l}`]:l!==void 0,[`${g}-order-${s}`]:s,[`${g}-offset-${u}`]:u,[`${g}-push-${d}`]:d,[`${g}-pull-${f}`]:f},p,E,y,w),k={};if(i&&i[0]>0){const _=i[0]/2;k.paddingLeft=_,k.paddingRight=_}return v&&(k.flex=kv(v),o===!1&&!k.minWidth&&(k.minWidth=0)),m(c.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},k),b),C),className:S,ref:t}),h))}),W9=H9;var q9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const V9=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:s=0,wrap:u}=e,d=q9(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=c.useContext(Be),[h,v]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,x]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=$v(i,b),m=$v(r,b),y=c.useRef(s),w=zw();c.useEffect(()=>{const R=w.subscribe($=>{x($);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&v($)});return()=>w.unsubscribe(R)},[]);const C=()=>{const R=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((z,B)=>{if(typeof z=="object")for(let A=0;A0?P[0]/-2:void 0;T&&(N.marginLeft=T,N.marginRight=T);const[M,j]=P;N.rowGap=j;const I=c.useMemo(()=>({gutter:[M,j],wrap:u}),[M,j,u]);return S(c.createElement(ux.Provider,{value:I},c.createElement("div",Object.assign({},d,{className:O,style:Object.assign(Object.assign({},N),a),ref:t}),l)))}),U9=V9;function G9(){return u_()}const K9={useBreakpoint:G9},X9=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{borderBlockStart:`${q(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${q(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${q(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${q(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${q(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${q(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Q9=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Y9=Qt("Divider",e=>{const t=Ft(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[X9(t)]},Q9,{unitless:{orientationMargin:!0}});var Z9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=c.useContext(Be),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:u,children:d,dashed:f,plain:p,style:h}=e,v=Z9(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),b=t("divider",i),[x,g,m]=Y9(b),y=a.length>0?`-${a}`:a,w=!!d,C=a==="left"&&l!=null,E=a==="right"&&l!=null,S=W(b,r==null?void 0:r.className,g,m,`${b}-${o}`,{[`${b}-with-text`]:w,[`${b}-with-text${y}`]:w,[`${b}-dashed`]:!!f,[`${b}-plain`]:!!p,[`${b}-rtl`]:n==="rtl",[`${b}-no-default-orientation-margin-left`]:C,[`${b}-no-default-orientation-margin-right`]:E},s,u),k=c.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),_=Object.assign(Object.assign({},C&&{marginLeft:k}),E&&{marginRight:k});return x(c.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},v,{role:"separator"}),d&&o!=="vertical"&&c.createElement("span",{className:`${b}-inner-text`,style:_},d)))},Kr=J9;var e7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const t7=e7;var n7=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:t7}))};const r7=c.forwardRef(n7);function qc(e){return["small","middle","large"].includes(e)}function _v(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const dx=ie.createContext({latestIndex:0}),i7=dx.Provider,o7=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=c.useContext(dx);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},r),n{var n,r;const{getPrefixCls:i,space:o,direction:a}=c.useContext(Be),{size:l=(o==null?void 0:o.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:h,split:v,style:b,wrap:x=!1,classNames:g,styles:m}=e,y=l7(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(l)?l:[l,l],E=qc(C),S=qc(w),k=_v(C),_=_v(w),P=vi(f,{keepEmpty:!0}),O=s===void 0&&p==="horizontal"?"center":s,N=i("space",h),[T,M,j]=yw(N),I=W(N,o==null?void 0:o.className,M,`${N}-${p}`,{[`${N}-rtl`]:a==="rtl",[`${N}-align-${O}`]:O,[`${N}-gap-row-${C}`]:E,[`${N}-gap-col-${w}`]:S},u,d,j),R=W(`${N}-item`,(n=g==null?void 0:g.item)!==null&&n!==void 0?n:(r=o==null?void 0:o.classNames)===null||r===void 0?void 0:r.item);let $=0;const z=P.map((D,U)=>{var X,G;D!=null&&($=U);const V=D&&D.key||`${R}-${U}`;return c.createElement(a7,{className:R,key:V,index:U,split:v,style:(X=m==null?void 0:m.item)!==null&&X!==void 0?X:(G=o==null?void 0:o.styles)===null||G===void 0?void 0:G.item},D)}),B=c.useMemo(()=>({latestIndex:$}),[$]);if(P.length===0)return null;const A={};return x&&(A.flexWrap="wrap"),!S&&_&&(A.columnGap=w),!E&&k&&(A.rowGap=C),T(c.createElement("div",Object.assign({ref:t,className:I,style:Object.assign(Object.assign(Object.assign({},A),o==null?void 0:o.style),b)},y),c.createElement(i7,{value:B},z)))}),fx=s7;fx.Compact=q$;const c7=fx,px=["wrap","nowrap","wrap-reverse"],mx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],gx=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],u7=(e,t)=>{const n={};return px.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},d7=(e,t)=>{const n={};return gx.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},f7=(e,t)=>{const n={};return mx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function p7(e,t){return W(Object.assign(Object.assign(Object.assign({},u7(e,t)),d7(e,t)),f7(e,t)))}const m7=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},g7=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},h7=e=>{const{componentCls:t}=e,n={};return px.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},v7=e=>{const{componentCls:t}=e,n={};return gx.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},y7=e=>{const{componentCls:t}=e,n={};return mx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},b7=()=>({}),w7=Qt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Ft(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m7(i),g7(i),h7(i),v7(i),y7(i)]},b7,{resetStyle:!1});var x7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:o,flex:a,gap:l,children:s,vertical:u=!1,component:d="div"}=e,f=x7(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:v}=ie.useContext(Be),b=v("flex",n),[x,g,m]=w7(b),y=u??(p==null?void 0:p.vertical),w=W(i,r,p==null?void 0:p.className,b,g,m,p7(b,e),{[`${b}-rtl`]:h==="rtl",[`${b}-gap-${l}`]:qc(l),[`${b}-vertical`]:y}),C=Object.assign(Object.assign({},p==null?void 0:p.style),o);return a&&(C.flex=a),l&&!qc(l)&&(C.gap=l),x(ie.createElement(d,Object.assign({ref:t,className:w,style:C},yr(f,["justify","wrap","align"])),s))}),pt=S7;function hx(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function C7(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Vp=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Jl=c.createContext(null),Pv=0;function E7(e,t){var n=c.useState(function(){return Pv+=1,String(Pv)}),r=H(n,1),i=r[0],o=c.useContext(Jl),a={data:t,canPreview:e};return c.useEffect(function(){if(o)return o.register(i,a)},[]),c.useEffect(function(){o&&o.register(i,a)},[e,t]),i}function k7(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function vx(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=c.useState(n?"loading":"normal"),o=H(i,2),a=o[0],l=o[1],s=c.useRef(!1),u=a==="error";c.useEffect(function(){var h=!0;return k7(t).then(function(v){!v&&h&&l("error")}),function(){h=!1}},[t]),c.useEffect(function(){n&&!s.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(v){s.current=!1,a==="loading"&&v!==null&&v!==void 0&&v.complete&&(v.naturalWidth||v.naturalHeight)&&(s.current=!0,d())},p=u&&r?{src:r}:{onLoad:d,src:t};return[f,p,a]}function Lo(e,t,n,r){var i=Rc.unstable_batchedUpdates?function(a){Rc.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var Ms={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function $7(e,t,n,r){var i=c.useRef(null),o=c.useRef([]),a=c.useState(Ms),l=H(a,2),s=l[0],u=l[1],d=function(v){u(Ms),r&&!Iu(Ms,s)&&r({transform:Ms,action:v})},f=function(v,b){i.current===null&&(o.current=[],i.current=Mt(function(){u(function(x){var g=x;return o.current.forEach(function(m){g=F(F({},g),m)}),i.current=null,r==null||r({transform:g,action:b}),g})})),o.current.push(F(F({},s),v))},p=function(v,b,x,g,m){var y=e.current,w=y.width,C=y.height,E=y.offsetWidth,S=y.offsetHeight,k=y.offsetLeft,_=y.offsetTop,P=v,O=s.scale*v;O>n?(O=n,P=n/s.scale):Or){if(t>0)return J({},e,o);if(t<0&&ir)return J({},e,t<0?o:-o);return{}}function yx(e,t,n,r){var i=hx(),o=i.width,a=i.height,l=null;return e<=o&&t<=a?l={x:0,y:0}:(e>o||t>a)&&(l=F(F({},Ov("x",n,e,o)),Ov("y",r,t,a))),l}var jo=1,_7=1;function P7(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,u=i.x,d=i.y,f=c.useState(!1),p=H(f,2),h=p[0],v=p[1],b=c.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),b.current={diffX:C.pageX-u,diffY:C.pageY-d,transformX:u,transformY:d},v(!0))},g=function(C){n&&h&&o({x:C.pageX-b.current.diffX,y:C.pageY-b.current.diffY},"move")},m=function(){if(n&&h){v(!1);var C=b.current,E=C.transformX,S=C.transformY,k=u!==E&&d!==S;if(!k)return;var _=e.current.offsetWidth*s,P=e.current.offsetHeight*s,O=e.current.getBoundingClientRect(),N=O.left,T=O.top,M=l%180!==0,j=yx(M?P:_,M?_:P,N,T);j&&o(F({},j),"dragRebound")}},y=function(C){if(!(!n||C.deltaY==0)){var E=Math.abs(C.deltaY/100),S=Math.min(E,_7),k=jo+S*r;C.deltaY>0&&(k=jo/k),a(k,"wheel",C.clientX,C.clientY)}};return c.useEffect(function(){var w,C,E,S;if(t){E=Lo(window,"mouseup",m,!1),S=Lo(window,"mousemove",g,!1);try{window.top!==window.self&&(w=Lo(window.top,"mouseup",m,!1),C=Lo(window.top,"mousemove",g,!1))}catch{}}return function(){var k,_,P,O;(k=E)===null||k===void 0||k.remove(),(_=S)===null||_===void 0||_.remove(),(P=w)===null||P===void 0||P.remove(),(O=C)===null||O===void 0||O.remove()}},[n,h,u,d,l,t]),{isMoving:h,onMouseDown:x,onMouseMove:g,onMouseUp:m,onWheel:y}}function Vc(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function O7(e,t,n,r){var i=Vc(e,n),o=Vc(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),l=e.x+a*(t.x-e.x),s=e.y+a*(t.y-e.y);return[l,s]}function R7(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,u=i.x,d=i.y,f=c.useState(!1),p=H(f,2),h=p[0],v=p[1],b=c.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(C){b.current=F(F({},b.current),C)},g=function(C){if(t){C.stopPropagation(),v(!0);var E=C.touches,S=E===void 0?[]:E;S.length>1?x({point1:{x:S[0].clientX,y:S[0].clientY},point2:{x:S[1].clientX,y:S[1].clientY},eventType:"touchZoom"}):x({point1:{x:S[0].clientX-u,y:S[0].clientY-d},eventType:"move"})}},m=function(C){var E=C.touches,S=E===void 0?[]:E,k=b.current,_=k.point1,P=k.point2,O=k.eventType;if(S.length>1&&O==="touchZoom"){var N={x:S[0].clientX,y:S[0].clientY},T={x:S[1].clientX,y:S[1].clientY},M=O7(_,P,N,T),j=H(M,2),I=j[0],R=j[1],$=Vc(N,T)/Vc(_,P);a($,"touchZoom",I,R,!0),x({point1:N,point2:T,eventType:"touchZoom"})}else O==="move"&&(o({x:S[0].clientX-_.x,y:S[0].clientY-_.y},"move"),x({eventType:"move"}))},y=function(){if(n){if(h&&v(!1),x({eventType:"none"}),r>s)return o({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*s,E=e.current.offsetHeight*s,S=e.current.getBoundingClientRect(),k=S.left,_=S.top,P=l%180!==0,O=yx(P?E:C,P?C:E,k,_);O&&o(F({},O),"dragRebound")}};return c.useEffect(function(){var w;return n&&t&&(w=Lo(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=w)===null||C===void 0||C.remove()}},[n,t]),{isTouching:h,onTouchStart:g,onTouchMove:m,onTouchEnd:y}}var z7=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,l=t.icons,s=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,h=t.count,v=t.scale,b=t.minScale,x=t.maxScale,g=t.closeIcon,m=t.onSwitchLeft,y=t.onSwitchRight,w=t.onClose,C=t.onZoomIn,E=t.onZoomOut,S=t.onRotateRight,k=t.onRotateLeft,_=t.onFlipX,P=t.onFlipY,O=t.toolbarRender,N=t.zIndex,T=c.useContext(Jl),M=l.rotateLeft,j=l.rotateRight,I=l.zoomIn,R=l.zoomOut,$=l.close,z=l.left,B=l.right,A=l.flipX,D=l.flipY,U="".concat(o,"-operations-operation");c.useEffect(function(){var K=function(ne){ne.keyCode===re.ESC&&w()};return n&&window.addEventListener("keydown",K),function(){window.removeEventListener("keydown",K)}},[n]);var X=[{icon:D,onClick:P,type:"flipY"},{icon:A,onClick:_,type:"flipX"},{icon:M,onClick:k,type:"rotateLeft"},{icon:j,onClick:S,type:"rotateRight"},{icon:R,onClick:E,type:"zoomOut",disabled:v<=b},{icon:I,onClick:C,type:"zoomIn",disabled:v===x}],G=X.map(function(K){var Z,ne=K.icon,ue=K.onClick,ae=K.type,ye=K.disabled;return c.createElement("div",{className:W(U,(Z={},J(Z,"".concat(o,"-operations-operation-").concat(ae),!0),J(Z,"".concat(o,"-operations-operation-disabled"),!!ye),Z)),onClick:ue,key:ae},ne)}),V=c.createElement("div",{className:"".concat(o,"-operations")},G);return c.createElement(br,{visible:n,motionName:r},function(K){var Z=K.className,ne=K.style;return c.createElement(Vu,{open:!0,getContainer:i??document.body},c.createElement("div",{className:W("".concat(o,"-operations-wrapper"),Z,a),style:F(F({},ne),{},{zIndex:N})},g===null?null:c.createElement("button",{className:"".concat(o,"-close"),onClick:w},g||$),u&&c.createElement(c.Fragment,null,c.createElement("div",{className:W("".concat(o,"-switch-left"),J({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:m},z),c.createElement("div",{className:W("".concat(o,"-switch-right"),J({},"".concat(o,"-switch-right-disabled"),f===h-1)),onClick:y},B)),c.createElement("div",{className:"".concat(o,"-footer")},d&&c.createElement("div",{className:"".concat(o,"-progress")},s?s(f+1,h):"".concat(f+1," / ").concat(h)),O?O(V,F({icons:{flipYIcon:G[0],flipXIcon:G[1],rotateLeftIcon:G[2],rotateRightIcon:G[3],zoomOutIcon:G[4],zoomInIcon:G[5]},actions:{onFlipY:P,onFlipX:_,onRotateLeft:k,onRotateRight:S,onZoomOut:E,onZoomIn:C},transform:p},T?{current:f,total:h}:{})):V)))})},T7=["fallback","src","imgRef"],I7=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],M7=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=Te(t,T7),a=vx({src:r,fallback:n}),l=H(a,2),s=l[0],u=l[1];return ie.createElement("img",te({ref:function(f){i.current=f,s(f)}},o,u))},bx=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.fallback,a=t.movable,l=a===void 0?!0:a,s=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,p=t.rootClassName,h=t.closeIcon,v=t.getContainer,b=t.current,x=b===void 0?0:b,g=t.count,m=g===void 0?1:g,y=t.countRender,w=t.scaleStep,C=w===void 0?.5:w,E=t.minScale,S=E===void 0?1:E,k=t.maxScale,_=k===void 0?50:k,P=t.transitionName,O=P===void 0?"zoom":P,N=t.maskTransitionName,T=N===void 0?"fade":N,M=t.imageRender,j=t.imgCommonProps,I=t.toolbarRender,R=t.onTransform,$=t.onChange,z=Te(t,I7),B=c.useRef(),A=c.useContext(Jl),D=A&&m>1,U=A&&m>=1,X=c.useState(!0),G=H(X,2),V=G[0],K=G[1],Z=$7(B,S,_,R),ne=Z.transform,ue=Z.resetTransform,ae=Z.updateTransform,ye=Z.dispatchZoomChange,pe=P7(B,l,u,C,ne,ae,ye),be=pe.isMoving,le=pe.onMouseDown,Ce=pe.onWheel,he=R7(B,l,u,S,ne,ae,ye),de=he.isTouching,Y=he.onTouchStart,me=he.onTouchMove,se=he.onTouchEnd,Pe=ne.rotate,we=ne.scale,Ie=W(J({},"".concat(n,"-moving"),be));c.useEffect(function(){V||K(!0)},[V]);var He=function(){ue("close")},ge=function(){ye(jo+C,"zoomIn")},yt=function(){ye(jo/(jo+C),"zoomOut")},Ve=function(){ae({rotate:Pe+90},"rotateRight")},$e=function(){ae({rotate:Pe-90},"rotateLeft")},De=function(){ae({flipX:!ne.flipX},"flipX")},ze=function(){ae({flipY:!ne.flipY},"flipY")},ut=function(Ne){Ne==null||Ne.preventDefault(),Ne==null||Ne.stopPropagation(),x>0&&(K(!1),ue("prev"),$==null||$(x-1,x))},it=function(Ne){Ne==null||Ne.preventDefault(),Ne==null||Ne.stopPropagation(),x({position:e||"absolute",inset:0}),aR=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new mt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Lu),{padding:`0 ${q(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},lR=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new mt(n).setAlpha(.1),h=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${q(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},sR=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,l=new mt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},cR=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Up()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Up()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[lR(e),sR(e)]}]},uR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},aR(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Up())}}},dR=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Uu(e,"zoom"),"&":kw(e,!0)}},fR=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new mt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new mt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new mt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),wx=Qt("Image",e=>{const t=`${e.componentCls}-preview`,n=Ft(e,{previewCls:t,modalMaskBg:new mt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[uR(n),cR(n),$w(Ft(n,{componentCls:t})),dR(n)]},fR);var pR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=pR(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=c.useContext(Be),o=i("image",t),a=`${o}-preview`,l=i(),s=Kl(o),[u,d,f]=wx(o,s),[p]=mm("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=c.useMemo(()=>{var v;if(n===!1)return n;const b=typeof n=="object"?n:{},x=W(d,f,s,(v=b.rootClassName)!==null&&v!==void 0?v:"");return Object.assign(Object.assign({},b),{transitionName:Ki(l,"zoom",b.transitionName),maskTransitionName:Ki(l,"fade",b.maskTransitionName),rootClassName:x,zIndex:p})},[n]);return u(c.createElement(Ju.PreviewGroup,Object.assign({preview:h,previewPrefixCls:a,icons:xx},r)))},gR=mR;var zv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,l=zv(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=oa,getPopupContainer:d,image:f}=c.useContext(Be),p=s("image",n),h=s(),v=u.Image||oa.Image,b=Kl(p),[x,g,m]=wx(p,b),y=W(o,g,m,b),w=W(i,g,f==null?void 0:f.className),[C]=mm("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=c.useMemo(()=>{var k;if(r===!1)return r;const _=typeof r=="object"?r:{},{getContainer:P,closeIcon:O}=_,N=zv(_,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:c.createElement("div",{className:`${p}-mask-info`},c.createElement(r7,null),v==null?void 0:v.preview),icons:xx},N),{getContainer:P??d,transitionName:Ki(h,"zoom",_.transitionName),maskTransitionName:Ki(h,"fade",_.maskTransitionName),zIndex:C,closeIcon:O??((k=f==null?void 0:f.preview)===null||k===void 0?void 0:k.closeIcon)})},[r,v,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),S=Object.assign(Object.assign({},f==null?void 0:f.style),a);return x(c.createElement(Ju,Object.assign({prefixCls:p,preview:E,rootClassName:y,className:w,style:S},l)))};Sx.PreviewGroup=gR;const Tv=Sx;function hR(e,t,n){return typeof n=="boolean"?n:e.length?!0:vi(t).some(i=>i.type===nx)}const vR=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:i},[`${t}-sider-zero-width-trigger`]:{color:o,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},yR=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:h,motionDurationMid:v,motionDurationSlow:b,fontSize:x,borderRadius:g,bodyBg:m,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:i,lineHeight:q(f),textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:p,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${b} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${b}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}}}},vR(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:q(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:x,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},bR=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:i,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:i}},Cx=Qt("Layout",e=>[yR(e)],bR,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var Ex=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ic.forwardRef((a,l)=>c.createElement(i,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const Om=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=Ex(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=c.useContext(Be),s=l("layout",n),[u,d,f]=Cx(s),p=r?`${s}-${r}`:s;return u(c.createElement(o,Object.assign({className:W(n||p,i,d,f),ref:t},a)))}),wR=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(Be),[r,i]=c.useState([]),{prefixCls:o,className:a,rootClassName:l,children:s,hasSider:u,tagName:d,style:f}=e,p=Ex(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=yr(p,["suffixCls"]),{getPrefixCls:v,layout:b}=c.useContext(Be),x=v("layout",o),g=hR(r,s,u),[m,y,w]=Cx(x),C=W(x,{[`${x}-has-sider`]:g,[`${x}-rtl`]:n==="rtl"},b==null?void 0:b.className,a,l,y,w),E=c.useMemo(()=>({siderHook:{addSider:S=>{i(k=>[].concat(Ke(k),[S]))},removeSider:S=>{i(k=>k.filter(_=>_!==S))}}}),[]);return m(c.createElement(ex.Provider,{value:E},c.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},b==null?void 0:b.style),f)},h),s)))}),xR=ed({tagName:"div",displayName:"Layout"})(wR),SR=ed({suffixCls:"header",tagName:"header",displayName:"Header"})(Om),CR=ed({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Om),ER=ed({suffixCls:"content",tagName:"main",displayName:"Content"})(Om),kR=xR,ya=kR;ya.Header=SR;ya.Footer=CR;ya.Content=ER;ya.Sider=nx;ya._InternalSiderContext=tx;const td=ya;let zn=null,Ni=e=>e(),Nl=[],Al={};function Iv(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=Al,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const $R=ie.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=c.useContext(Be),o=Al.prefixCls||i("message"),a=c.useContext(T6),[l,s]=mw(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return ie.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),s}),_R=ie.forwardRef((e,t)=>{const[n,r]=ie.useState(Iv),i=()=>{r(Iv)};ie.useEffect(i,[]);const o=Qk(),a=o.getRootPrefixCls(),l=o.getIconPrefixCls(),s=o.getTheme(),u=ie.createElement($R,{ref:t,sync:i,messageConfig:n});return ie.createElement(Kb,{prefixCls:a,iconPrefixCls:l,theme:s},o.holderRender?o.holderRender(u):u)});function nd(){if(!zn){const e=document.createDocumentFragment(),t={fragment:e};zn=t,Ni(()=>{hw(ie.createElement(_R,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,nd())})}}),e)});return}zn.instance&&(Nl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ni(()=>{const r=zn.instance.open(Object.assign(Object.assign({},Al),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ni(()=>{zn==null||zn.instance.destroy(e.key)});break;default:Ni(()=>{var r;const i=(r=zn.instance)[t].apply(r,Ke(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),Nl=[])}function PR(e){Al=Object.assign(Object.assign({},Al),e),Ni(()=>{var t;(t=zn==null?void 0:zn.sync)===null||t===void 0||t.call(zn)})}function OR(e){const t=gm(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Nl.push(i),()=>{r?Ni(()=>{r()}):i.skipped=!0}});return nd(),t}function RR(e,t){const n=gm(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return Nl.push(o),()=>{i?Ni(()=>{i()}):o.skipped=!0}});return nd(),n}function zR(e){Nl.push({type:"destroy",key:e}),nd()}const TR=["success","info","warning","error","loading"],IR={open:OR,destroy:zR,config:PR,useMessage:y$,_InternalPanelDoNotUseOrYouWillBeFired:u$},kx=IR;TR.forEach(e=>{kx[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),h=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],v=(100-i)/100*n;u==="round"&&i!==100&&(v+=d/2,v>=n&&(v=n-.01));var b=Ua/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(o+p+h,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},DR=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Av(e){var t=e??[];return Array.isArray(t)?t:[t]}var FR=function(t){var n=F(F({},MR),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,h=n.style,v=n.className,b=n.strokeColor,x=n.percent,g=Te(n,DR),m=Ua/2,y=LR(r),w="".concat(y,"-gradient"),C=m-a/2,E=Math.PI*2*C,S=u>0?90+u/2:-90,k=E*((360-u)/360),_=Ae(o)==="object"?o:{count:o,space:2},P=_.count,O=_.space,N=Av(x),T=Av(b),M=T.find(function(A){return A&&Ae(A)==="object"}),j=M&&Ae(M)==="object",I=j?"butt":p,R=of(E,k,0,100,S,u,d,f,I,a),$=BR(),z=function(){var D=0;return N.map(function(U,X){var G=T[X]||T[T.length-1],V=of(E,k,D,U,S,u,d,G,I,a);return D+=U,c.createElement(jR,{key:X,color:G,ptg:U,radius:C,prefixCls:i,gradientId:w,style:V,strokeLinecap:I,strokeWidth:a,gapDegree:u,ref:function(Z){$[X]=Z},size:Ua})}).reverse()},B=function(){var D=Math.round(P*(N[0]/100)),U=100/P,X=0;return new Array(P).fill(null).map(function(G,V){var K=V<=D-1?T[0]:f,Z=K&&Ae(K)==="object"?"url(#".concat(w,")"):void 0,ne=of(E,k,X,U,S,u,d,K,"butt",a,O);return X+=(k-ne.strokeDashoffset+O)*100/k,c.createElement("circle",{key:V,className:"".concat(i,"-circle-path"),r:C,cx:m,cy:m,stroke:Z,strokeWidth:a,opacity:1,style:ne,ref:function(ae){$[V]=ae}})})};return c.createElement("svg",te({className:W("".concat(i,"-circle"),v),viewBox:"0 0 ".concat(Ua," ").concat(Ua),style:h,id:r,role:"presentation"},g),!P&&c.createElement("circle",{className:"".concat(i,"-circle-trail"),r:C,cx:m,cy:m,stroke:f,strokeLinecap:I,strokeWidth:l||a,style:R}),P?B():z())};function mi(e){return!e||e<0?0:e>100?100:e}function Uc(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const HR=e=>{let{percent:t,success:n,successPercent:r}=e;const i=mi(Uc({success:n,successPercent:r}));return[i,mi(mi(t)-i)]},WR=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Uo.green,n||null]},rd=(e,t,n)=>{var r,i,o,a;let l=-1,s=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,s=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[l,s]},qR=3,VR=e=>qR/e*100,UR=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:l,children:s,success:u,size:d=a}=e,[f,p]=rd(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(VR(f),6));const v={width:f,height:p,fontSize:f*.15+6},b=c.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),x=i||l==="dashboard"&&"bottom"||void 0,g=Object.prototype.toString.call(e.strokeColor)==="[object Object]",m=WR({success:u,strokeColor:e.strokeColor}),y=W(`${t}-inner`,{[`${t}-circle-gradient`]:g}),w=c.createElement(FR,{percent:HR(e),strokeWidth:h,trailWidth:h,strokeColor:m,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:x});return c.createElement("div",{className:y,style:v},f<=20?c.createElement(Lw,{title:s},c.createElement("span",null,w)):c.createElement(c.Fragment,null,w,s))},GR=UR,Gc="--progress-line-stroke-color",$x="--progress-percent",Lv=e=>{const t=e?"100%":"-100%";return new rt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${q(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${q(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Gc})`]},height:"100%",width:`calc(1 / var(${$x}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Lv(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Lv(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},XR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},QR=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},YR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},ZR=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),JR=Qt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ft(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KR(n),XR(n),QR(n),YR(n)]},ZR);var ez=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},nz=(e,t)=>{const{from:n=Uo.blue,to:r=Uo.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=ez(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=tz(o),s=`linear-gradient(${i}, ${l})`;return{background:s,[Gc]:s}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[Gc]:a}},rz=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:u=null,success:d}=e,f=a&&typeof a!="string"?nz(a,n):{[Gc]:a,background:a},p=l==="square"||l==="butt"?0:void 0,h=i??[-1,o||(i==="small"?6:8)],[v,b]=rd(h,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:p},g=Object.assign(Object.assign({width:`${mi(r)}%`,height:b,borderRadius:p},f),{[$x]:mi(r)/100}),m=Uc(e),y={width:`${mi(m)}%`,height:b,borderRadius:p,backgroundColor:d==null?void 0:d.strokeColor},w={width:v<0?"100%":v,height:b};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:w},c.createElement("div",{className:`${t}-inner`,style:x},c.createElement("div",{className:`${t}-bg`,style:g}),m!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:y}):null)),s)},iz=rz,oz=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:l,children:s}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,h]=rd(f,"step",{steps:n,strokeWidth:i}),v=p/n,b=new Array(n);for(let x=0;x{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:l=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:p,style:h}=e,v=lz(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),b=c.useMemo(()=>{var T,M;const j=Uc(e);return parseInt(j!==void 0?(T=j??0)===null||T===void 0?void 0:T.toString():(M=l??0)===null||M===void 0?void 0:M.toString(),10)},[l,e.success,e.successPercent]),x=c.useMemo(()=>!sz.includes(f)&&b>=100?"success":f||"normal",[f,b]),{getPrefixCls:g,direction:m,progress:y}=c.useContext(Be),w=g("progress",n),[C,E,S]=JR(w),k=c.useMemo(()=>{if(!u)return null;const T=Uc(e);let M;const j=p||(R=>`${R}%`),I=d==="line";return p||x!=="exception"&&x!=="success"?M=j(mi(l),mi(T)):x==="exception"?M=I?c.createElement(fm,null):c.createElement(Gl,null):x==="success"&&(M=I?c.createElement(dm,null):c.createElement(a_,null)),c.createElement("span",{className:`${w}-text`,title:typeof M=="string"?M:void 0},M)},[u,l,b,x,d,w,p]),_=Array.isArray(a)?a[0]:a,P=typeof a=="string"||Array.isArray(a)?a:void 0;let O;d==="line"?O=o?c.createElement(az,Object.assign({},e,{strokeColor:P,prefixCls:w,steps:o}),k):c.createElement(iz,Object.assign({},e,{strokeColor:_,prefixCls:w,direction:m}),k):(d==="circle"||d==="dashboard")&&(O=c.createElement(GR,Object.assign({},e,{strokeColor:_,prefixCls:w,progressStatus:x}),k));const N=W(w,`${w}-status-${x}`,`${w}-${d==="dashboard"&&"circle"||o&&"steps"||d}`,{[`${w}-inline-circle`]:d==="circle"&&rd(s,"circle")[0]<=20,[`${w}-show-info`]:u,[`${w}-${s}`]:typeof s=="string",[`${w}-rtl`]:m==="rtl"},y==null?void 0:y.className,r,i,E,S);return C(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},y==null?void 0:y.style),h),className:N,role:"progressbar","aria-valuenow":b},yr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))}),af=cz;var uz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],_x=c.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,v=e.onKeyDown,b=Te(e,uz),x=An(!1,{value:a,defaultValue:l}),g=H(x,2),m=g[0],y=g[1];function w(k,_){var P=m;return s||(P=k,y(P),h==null||h(P,_)),P}function C(k){k.which===re.LEFT?w(!1,k):k.which===re.RIGHT&&w(!0,k),v==null||v(k)}function E(k){var _=w(!m,k);p==null||p(_,k)}var S=W(i,o,(n={},J(n,"".concat(i,"-checked"),m),J(n,"".concat(i,"-disabled"),s),n));return c.createElement("button",te({},b,{type:"button",role:"switch","aria-checked":m,disabled:s,className:S,ref:t,onKeyDown:C,onClick:E}),u,c.createElement("span",{className:"".concat(i,"-inner")},c.createElement("span",{className:"".concat(i,"-inner-checked")},d),c.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});_x.displayName="Switch";const dz=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,d=q(s(l).add(s(r).mul(2)).equal()),f=q(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:q(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${q(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},fz=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},pz=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${q(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},mz=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:l}=e,s=`${t}-inner`,u=q(l(a).add(l(r).mul(2)).equal()),d=q(l(o).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},gz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${q(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Du(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},hz=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,l=2,s=o-l*2,u=a-l*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:i,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new mt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},vz=Qt("Switch",e=>{const t=Ft(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[gz(t),mz(t),pz(t),fz(t),dz(t)]},hz);var yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:l,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,v=yz(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,x]=An(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:g,direction:m,switch:y}=c.useContext(Be),w=c.useContext(Eb),C=(i??w)||o,E=g("switch",n),S=c.createElement("div",{className:`${E}-handle`},o&&c.createElement(sw,{className:`${E}-loading-icon`})),[k,_,P]=vz(E),O=qu(r),N=W(y==null?void 0:y.className,{[`${E}-small`]:O==="small",[`${E}-loading`]:o,[`${E}-rtl`]:m==="rtl"},a,l,_,P),T=Object.assign(Object.assign({},y==null?void 0:y.style),s),M=function(){x(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return k(c.createElement(A$,{component:"Switch"},c.createElement(_x,Object.assign({},v,{checked:b,onChange:M,prefixCls:E,className:N,style:T,disabled:C,ref:t,loadingIcon:S}))))});Px.__ANT_SWITCH=!0;const Ox=Px,bz=e=>{const t=e!=null&&e.algorithm?_l(e.algorithm):_l(Ul),n=Object.assign(Object.assign({},aa),e==null?void 0:e.token);return J2(n,{override:e==null?void 0:e.token},t,sm)},wz=bz;function xz(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Sz=(e,t)=>{const n=t??Ul(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),xz(t??e)),xb(r)),{controlHeight:i}),bb(Object.assign(Object.assign({},n),{controlHeight:i})))},Cz=Sz,kr=(e,t)=>new mt(e).setAlpha(t).toRgbString(),wo=(e,t)=>new mt(e).lighten(t).toHexString(),Ez=e=>{const t=Ar(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},kz=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:kr(r,.85),colorTextSecondary:kr(r,.65),colorTextTertiary:kr(r,.45),colorTextQuaternary:kr(r,.25),colorFill:kr(r,.18),colorFillSecondary:kr(r,.12),colorFillTertiary:kr(r,.08),colorFillQuaternary:kr(r,.04),colorBgElevated:wo(n,12),colorBgContainer:wo(n,8),colorBgLayout:wo(n,0),colorBgSpotlight:wo(n,26),colorBgBlur:kr(r,.04),colorBorder:wo(n,26),colorBorderSecondary:wo(n,19)}},$z=(e,t)=>{const n=Object.keys(am).map(i=>{const o=Ar(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${i}-${s+1}`]=o[s],a[`${i}${s+1}`]=o[s],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??Ul(e);return Object.assign(Object.assign(Object.assign({},r),n),wb(e,{generateColorPalettes:Ez,generateNeutralColorPalettes:kz}))},_z=$z;function Pz(){const[e,t,n]=or();return{theme:e,token:t,hashId:n}}const jv={defaultConfig:Rl,defaultSeed:Rl.token,useToken:Pz,defaultAlgorithm:Ul,darkAlgorithm:_z,compactAlgorithm:Cz,getDesignToken:wz};var Oz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z"}}]},name:"diff",theme:"filled"};const Rz=Oz;var zz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Rz}))};const Tz=c.forwardRef(zz);var Iz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};const Mz=Iz;var Bz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Mz}))};const Nz=c.forwardRef(Bz);var Az={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};const Lz=Az;var jz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Lz}))};const Dz=c.forwardRef(jz);var Fz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};const Hz=Fz;var Wz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Hz}))};const qz=c.forwardRef(Wz),es=()=>{const e=K9.useBreakpoint();return e.xxl?{...e,size:"xxl"}:e.xl?{...e,size:"xl"}:e.lg?{...e,size:"lg"}:e.md?{...e,size:"md"}:{...e,size:"sm"}},Rx=()=>({sm:{maxWidth:"1080px"},md:{maxWidth:"1080px"},lg:{maxWidth:"1080px"},xl:{maxWidth:"1080px"},xxl:{maxWidth:"1080px"}})[es().size],Rm=()=>({sm:{maxWidth:"960px"},md:{maxWidth:"960px"},lg:{maxWidth:"960px"},xl:{maxWidth:"960px"},xxl:{maxWidth:"960px"}})[es().size],Vz="tw-values",Uz="0.46.0",Gz="module",Kz={"@ant-design/icons":"^5.1.4","@stylexjs/stylex":"^0.5.1",antd:"^5.7.0",i18next:"^23.2.11",react:"^18.2.0","react-dom":"^18.2.0","react-i18next":"^13.0.2","react-router-dom":"^6.14.1",zustand:"^4.5.1"},Xz={start:"vite",test:"vitest","lint:check":"eslint ./src",lint:"eslint --fix ./src",build:"tsc && vite build",preview:"vite preview",deploy:"gh-pages -d dist"},Qz={extends:["react-app","react-app/jest"]},Yz={production:[">0.2%","not dead","not op_mini all"],development:["last 1 chrome version","last 1 firefox version","last 1 safari version"]},Zz={"@vitejs/plugin-react":"^4.2.1",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-react":"^7.33.2","gh-pages":"^5.0.0",prettier:"^3.2.4",typescript:"^5.3.3",vite:"^5.0.11","vite-plugin-stylex":"^0.5.0","vite-tsconfig-paths":"^4.2.3",vitest:"^1.2.0"},Dv={name:Vz,version:Uz,private:!0,type:Gz,dependencies:Kz,scripts:Xz,eslintConfig:Qz,browserslist:Yz,devDependencies:Zz};function Jz(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Hv(e,t,n){e.loadNamespaces(t,zx(e,n))}function Wv(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,zx(e,r))}function eT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const u=t.services.backendConnector.state[`${l}|${s}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}function tT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Gp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):eT(e,t,n)}const nT=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rT={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},iT=e=>rT[e],oT=e=>e.replace(nT,iT);let Kp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:oT};function aT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Kp={...Kp,...e}}function lT(){return Kp}let Tx;function sT(e){Tx=e}function cT(){return Tx}const uT={type:"3rdParty",init(e){aT(e.options.react),sT(e)}},dT=c.createContext();class fT{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const pT=(e,t)=>{const n=c.useRef();return c.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ba(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=c.useContext(dT)||{},o=n||r||cT();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new fT),!o){Gp("You will need to pass in an i18next instance by using initReactI18next");const y=(C,E)=>typeof E=="string"?E:E&&typeof E=="object"&&typeof E.defaultValue=="string"?E.defaultValue:Array.isArray(C)?C[C.length-1]:C,w=[y,{},!1];return w.t=y,w.i18n={},w.ready=!1,w}o.options.react&&o.options.react.wait!==void 0&&Gp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...lT(),...o.options.react,...t},{useSuspense:l,keyPrefix:s}=a;let u=e||i||o.options&&o.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(y=>tT(y,o,a));function f(){return o.getFixedT(t.lng||null,a.nsMode==="fallback"?u:u[0],s)}const[p,h]=c.useState(f);let v=u.join();t.lng&&(v=`${t.lng}${v}`);const b=pT(v),x=c.useRef(!0);c.useEffect(()=>{const{bindI18n:y,bindI18nStore:w}=a;x.current=!0,!d&&!l&&(t.lng?Wv(o,t.lng,u,()=>{x.current&&h(f)}):Hv(o,u,()=>{x.current&&h(f)})),d&&b&&b!==v&&x.current&&h(f);function C(){x.current&&h(f)}return y&&o&&o.on(y,C),w&&o&&o.store.on(w,C),()=>{x.current=!1,y&&o&&y.split(" ").forEach(E=>o.off(E,C)),w&&o&&w.split(" ").forEach(E=>o.store.off(E,C))}},[o,v]);const g=c.useRef(!0);c.useEffect(()=>{x.current&&!g.current&&h(f),g.current=!1},[o,s]);const m=[p,o,d];if(m.t=p,m.i18n=o,m.ready=d,d||!d&&!l)return m;throw new Promise(y=>{t.lng?Wv(o,t.lng,u,()=>y()):Hv(o,u,()=>y())})}var mT={BASE_URL:"/TW-Values/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const qv=e=>{let t;const n=new Set,r=(d,f)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,h))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(mT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,s);return s},gT=e=>e?qv(e):qv;var Ix={exports:{}},Mx={},Bx={exports:{}},Nx={};/** + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},v9=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${q(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},ju()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:q(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:q(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${q(e.lineWidth)} ${e.lineType} ${o}`}}})},y9=e=>Object.assign(Object.assign({margin:`${q(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},ju()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Lu),"&-description":{color:e.colorTextDescription}}),b9=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${q(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${q(e.padding)} ${q(n)}`}}},w9=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},x9=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:o,boxShadowTertiary:a,cardPaddingBase:l,extraColor:s}=e;return{[n]:Object.assign(Object.assign({},lr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:g9(e),[`${n}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)}`},ju()),[`${n}-grid`]:h9(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:v9(e),[`${n}-meta`]:y9(e)}),[`${n}-bordered`]:{border:`${q(e.lineWidth)} ${e.lineType} ${o}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${q(e.borderRadiusLG)} ${q(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:i}}},[`${n}-type-inner`]:b9(e),[`${n}-loading`]:w9(e),[`${n}-rtl`]:{direction:"rtl"}}},S9=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${q(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},C9=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),E9=Qt("Card",e=>{const t=Ft(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[x9(t),S9(t)]},C9);var Ev=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:a},c.createElement("span",null,i))}))},$9=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:l={},bodyStyle:s={},title:u,loading:d,bordered:f=!0,size:p,type:h,cover:v,actions:b,tabList:x,children:g,activeTabKey:m,defaultActiveTabKey:y,tabBarExtraContent:w,hoverable:C,tabProps:E={},classNames:S,styles:k}=e,_=Ev(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:O,card:N}=c.useContext(Be),T=de=>{var Y;(Y=e.onTabChange)===null||Y===void 0||Y.call(e,de)},M=de=>{var Y;return W((Y=N==null?void 0:N.classNames)===null||Y===void 0?void 0:Y[de],S==null?void 0:S[de])},j=de=>{var Y;return Object.assign(Object.assign({},(Y=N==null?void 0:N.styles)===null||Y===void 0?void 0:Y[de]),k==null?void 0:k[de])},I=c.useMemo(()=>{let de=!1;return c.Children.forEach(g,Y=>{Y&&Y.type&&Y.type===cx&&(de=!0)}),de},[g]),R=P("card",n),[$,z,B]=E9(R),A=c.createElement(EO,{loading:!0,active:!0,paragraph:{rows:4},title:!1},g),D=m!==void 0,U=Object.assign(Object.assign({},E),{[D?"activeKey":"defaultActiveKey"]:D?m:y,tabBarExtraContent:w});let X;const G=qu(p),V=!G||G==="default"?"large":G,K=x?c.createElement(f9,Object.assign({size:V},U,{className:`${R}-head-tabs`,onChange:T,items:x.map(de=>{var{tab:Y}=de,me=Ev(de,["tab"]);return Object.assign({label:Y},me)})})):null;if(u||a||K){const de=W(`${R}-head`,M("header")),Y=W(`${R}-head-title`,M("title")),me=W(`${R}-extra`,M("extra")),se=Object.assign(Object.assign({},l),j("header"));X=c.createElement("div",{className:de,style:se},c.createElement("div",{className:`${R}-head-wrapper`},u&&c.createElement("div",{className:Y,style:j("title")},u),a&&c.createElement("div",{className:me,style:j("extra")},a)),K)}const Z=W(`${R}-cover`,M("cover")),ne=v?c.createElement("div",{className:Z,style:j("cover")},v):null,ue=W(`${R}-body`,M("body")),ae=Object.assign(Object.assign({},s),j("body")),ye=c.createElement("div",{className:ue,style:ae},d?A:g),pe=W(`${R}-actions`,M("actions")),be=b&&b.length?c.createElement(k9,{actionClasses:pe,actionStyle:j("actions"),actions:b}):null,le=yr(_,["onTabChange"]),Ce=W(R,N==null?void 0:N.className,{[`${R}-loading`]:d,[`${R}-bordered`]:f,[`${R}-hoverable`]:C,[`${R}-contain-grid`]:I,[`${R}-contain-tabs`]:x&&x.length,[`${R}-${G}`]:G,[`${R}-type-${h}`]:!!h,[`${R}-rtl`]:O==="rtl"},r,i,z,B),he=Object.assign(Object.assign({},N==null?void 0:N.style),o);return $(c.createElement("div",Object.assign({ref:t},le,{className:Ce,style:he}),X,ne,ye,be))}),_9=$9;var P9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=P9(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=c.useContext(Be),s=l("card",t),u=W(`${s}-meta`,n),d=r?c.createElement("div",{className:`${s}-meta-avatar`},r):null,f=i?c.createElement("div",{className:`${s}-meta-title`},i):null,p=o?c.createElement("div",{className:`${s}-meta-description`},o):null,h=f||p?c.createElement("div",{className:`${s}-meta-detail`},f,p):null;return c.createElement("div",Object.assign({},a,{className:u}),d,h)},R9=O9,Pm=_9;Pm.Grid=cx;Pm.Meta=R9;const Zu=Pm,z9=c.createContext({}),ux=z9,T9=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},I9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},M9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},qp=(e,t)=>M9(e,t),B9=(e,t,n)=>({[`@media (min-width: ${q(t)})`]:Object.assign({},qp(e,n))}),N9=()=>({}),A9=()=>({}),L9=Qt("Grid",T9,N9),j9=Qt("Grid",e=>{const t=Ft(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[I9(t),qp(t,""),qp(t,"-xs"),Object.keys(n).map(r=>B9(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},A9);var D9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=c.useContext(Be),{gutter:i,wrap:o}=c.useContext(ux),{prefixCls:a,span:l,order:s,offset:u,push:d,pull:f,className:p,children:h,flex:v,style:b}=e,x=D9(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),g=n("col",a),[m,y,w]=j9(g),C={};let E={};F9.forEach(_=>{let P={};const O=e[_];typeof O=="number"?P.span=O:typeof O=="object"&&(P=O||{}),delete x[_],E=Object.assign(Object.assign({},E),{[`${g}-${_}-${P.span}`]:P.span!==void 0,[`${g}-${_}-order-${P.order}`]:P.order||P.order===0,[`${g}-${_}-offset-${P.offset}`]:P.offset||P.offset===0,[`${g}-${_}-push-${P.push}`]:P.push||P.push===0,[`${g}-${_}-pull-${P.pull}`]:P.pull||P.pull===0,[`${g}-rtl`]:r==="rtl"}),P.flex&&(E[`${g}-${_}-flex`]=!0,C[`--${g}-${_}-flex`]=kv(P.flex))});const S=W(g,{[`${g}-${l}`]:l!==void 0,[`${g}-order-${s}`]:s,[`${g}-offset-${u}`]:u,[`${g}-push-${d}`]:d,[`${g}-pull-${f}`]:f},p,E,y,w),k={};if(i&&i[0]>0){const _=i[0]/2;k.paddingLeft=_,k.paddingRight=_}return v&&(k.flex=kv(v),o===!1&&!k.minWidth&&(k.minWidth=0)),m(c.createElement("div",Object.assign({},x,{style:Object.assign(Object.assign(Object.assign({},k),b),C),className:S,ref:t}),h))}),W9=H9;var q9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const V9=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:l,gutter:s=0,wrap:u}=e,d=q9(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:p}=c.useContext(Be),[h,v]=c.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[b,x]=c.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),g=$v(i,b),m=$v(r,b),y=c.useRef(s),w=zw();c.useEffect(()=>{const R=w.subscribe($=>{x($);const z=y.current||0;(!Array.isArray(z)&&typeof z=="object"||Array.isArray(z)&&(typeof z[0]=="object"||typeof z[1]=="object"))&&v($)});return()=>w.unsubscribe(R)},[]);const C=()=>{const R=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach((z,B)=>{if(typeof z=="object")for(let A=0;A0?P[0]/-2:void 0;T&&(N.marginLeft=T,N.marginRight=T);const[M,j]=P;N.rowGap=j;const I=c.useMemo(()=>({gutter:[M,j],wrap:u}),[M,j,u]);return S(c.createElement(ux.Provider,{value:I},c.createElement("div",Object.assign({},d,{className:O,style:Object.assign(Object.assign({},N),a),ref:t}),l)))}),U9=V9;function G9(){return u_()}const K9={useBreakpoint:G9},X9=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:o,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{borderBlockStart:`${q(i)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${q(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${q(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${q(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${q(i)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${q(i)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Q9=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Y9=Qt("Divider",e=>{const t=Ft(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[X9(t)]},Q9,{unitless:{orientationMargin:!0}});var Z9=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:r}=c.useContext(Be),{prefixCls:i,type:o="horizontal",orientation:a="center",orientationMargin:l,className:s,rootClassName:u,children:d,dashed:f,plain:p,style:h}=e,v=Z9(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),b=t("divider",i),[x,g,m]=Y9(b),y=a.length>0?`-${a}`:a,w=!!d,C=a==="left"&&l!=null,E=a==="right"&&l!=null,S=W(b,r==null?void 0:r.className,g,m,`${b}-${o}`,{[`${b}-with-text`]:w,[`${b}-with-text${y}`]:w,[`${b}-dashed`]:!!f,[`${b}-plain`]:!!p,[`${b}-rtl`]:n==="rtl",[`${b}-no-default-orientation-margin-left`]:C,[`${b}-no-default-orientation-margin-right`]:E},s,u),k=c.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),_=Object.assign(Object.assign({},C&&{marginLeft:k}),E&&{marginRight:k});return x(c.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},r==null?void 0:r.style),h)},v,{role:"separator"}),d&&o!=="vertical"&&c.createElement("span",{className:`${b}-inner-text`,style:_},d)))},Kr=J9;var e7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const t7=e7;var n7=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:t7}))};const r7=c.forwardRef(n7);function qc(e){return["small","middle","large"].includes(e)}function _v(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const dx=ie.createContext({latestIndex:0}),i7=dx.Provider,o7=e=>{let{className:t,index:n,children:r,split:i,style:o}=e;const{latestIndex:a}=c.useContext(dx);return r==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:t,style:o},r),n{var n,r;const{getPrefixCls:i,space:o,direction:a}=c.useContext(Be),{size:l=(o==null?void 0:o.size)||"small",align:s,className:u,rootClassName:d,children:f,direction:p="horizontal",prefixCls:h,split:v,style:b,wrap:x=!1,classNames:g,styles:m}=e,y=l7(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[w,C]=Array.isArray(l)?l:[l,l],E=qc(C),S=qc(w),k=_v(C),_=_v(w),P=vi(f,{keepEmpty:!0}),O=s===void 0&&p==="horizontal"?"center":s,N=i("space",h),[T,M,j]=yw(N),I=W(N,o==null?void 0:o.className,M,`${N}-${p}`,{[`${N}-rtl`]:a==="rtl",[`${N}-align-${O}`]:O,[`${N}-gap-row-${C}`]:E,[`${N}-gap-col-${w}`]:S},u,d,j),R=W(`${N}-item`,(n=g==null?void 0:g.item)!==null&&n!==void 0?n:(r=o==null?void 0:o.classNames)===null||r===void 0?void 0:r.item);let $=0;const z=P.map((D,U)=>{var X,G;D!=null&&($=U);const V=D&&D.key||`${R}-${U}`;return c.createElement(a7,{className:R,key:V,index:U,split:v,style:(X=m==null?void 0:m.item)!==null&&X!==void 0?X:(G=o==null?void 0:o.styles)===null||G===void 0?void 0:G.item},D)}),B=c.useMemo(()=>({latestIndex:$}),[$]);if(P.length===0)return null;const A={};return x&&(A.flexWrap="wrap"),!S&&_&&(A.columnGap=w),!E&&k&&(A.rowGap=C),T(c.createElement("div",Object.assign({ref:t,className:I,style:Object.assign(Object.assign(Object.assign({},A),o==null?void 0:o.style),b)},y),c.createElement(i7,{value:B},z)))}),fx=s7;fx.Compact=q$;const c7=fx,px=["wrap","nowrap","wrap-reverse"],mx=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],gx=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],u7=(e,t)=>{const n={};return px.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},d7=(e,t)=>{const n={};return gx.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},f7=(e,t)=>{const n={};return mx.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function p7(e,t){return W(Object.assign(Object.assign(Object.assign({},u7(e,t)),d7(e,t)),f7(e,t)))}const m7=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},g7=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},h7=e=>{const{componentCls:t}=e,n={};return px.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},v7=e=>{const{componentCls:t}=e,n={};return gx.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},y7=e=>{const{componentCls:t}=e,n={};return mx.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},b7=()=>({}),w7=Qt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,i=Ft(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m7(i),g7(i),h7(i),v7(i),y7(i)]},b7,{resetStyle:!1});var x7=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,rootClassName:r,className:i,style:o,flex:a,gap:l,children:s,vertical:u=!1,component:d="div"}=e,f=x7(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:p,direction:h,getPrefixCls:v}=ie.useContext(Be),b=v("flex",n),[x,g,m]=w7(b),y=u??(p==null?void 0:p.vertical),w=W(i,r,p==null?void 0:p.className,b,g,m,p7(b,e),{[`${b}-rtl`]:h==="rtl",[`${b}-gap-${l}`]:qc(l),[`${b}-vertical`]:y}),C=Object.assign(Object.assign({},p==null?void 0:p.style),o);return a&&(C.flex=a),l&&!qc(l)&&(C.gap=l),x(ie.createElement(d,Object.assign({ref:t,className:w,style:C},yr(f,["justify","wrap","align"])),s))}),pt=S7;function hx(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function C7(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}var Vp=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Jl=c.createContext(null),Pv=0;function E7(e,t){var n=c.useState(function(){return Pv+=1,String(Pv)}),r=H(n,1),i=r[0],o=c.useContext(Jl),a={data:t,canPreview:e};return c.useEffect(function(){if(o)return o.register(i,a)},[]),c.useEffect(function(){o&&o.register(i,a)},[e,t]),i}function k7(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function vx(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=c.useState(n?"loading":"normal"),o=H(i,2),a=o[0],l=o[1],s=c.useRef(!1),u=a==="error";c.useEffect(function(){var h=!0;return k7(t).then(function(v){!v&&h&&l("error")}),function(){h=!1}},[t]),c.useEffect(function(){n&&!s.current?l("loading"):u&&l("normal")},[t]);var d=function(){l("normal")},f=function(v){s.current=!1,a==="loading"&&v!==null&&v!==void 0&&v.complete&&(v.naturalWidth||v.naturalHeight)&&(s.current=!0,d())},p=u&&r?{src:r}:{onLoad:d,src:t};return[f,p,a]}function Lo(e,t,n,r){var i=Rc.unstable_batchedUpdates?function(a){Rc.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,i,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,r)}}}var Ms={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function $7(e,t,n,r){var i=c.useRef(null),o=c.useRef([]),a=c.useState(Ms),l=H(a,2),s=l[0],u=l[1],d=function(v){u(Ms),r&&!Iu(Ms,s)&&r({transform:Ms,action:v})},f=function(v,b){i.current===null&&(o.current=[],i.current=Mt(function(){u(function(x){var g=x;return o.current.forEach(function(m){g=F(F({},g),m)}),i.current=null,r==null||r({transform:g,action:b}),g})})),o.current.push(F(F({},s),v))},p=function(v,b,x,g,m){var y=e.current,w=y.width,C=y.height,E=y.offsetWidth,S=y.offsetHeight,k=y.offsetLeft,_=y.offsetTop,P=v,O=s.scale*v;O>n?(O=n,P=n/s.scale):Or){if(t>0)return J({},e,o);if(t<0&&ir)return J({},e,t<0?o:-o);return{}}function yx(e,t,n,r){var i=hx(),o=i.width,a=i.height,l=null;return e<=o&&t<=a?l={x:0,y:0}:(e>o||t>a)&&(l=F(F({},Ov("x",n,e,o)),Ov("y",r,t,a))),l}var jo=1,_7=1;function P7(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,u=i.x,d=i.y,f=c.useState(!1),p=H(f,2),h=p[0],v=p[1],b=c.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),x=function(C){!t||C.button!==0||(C.preventDefault(),C.stopPropagation(),b.current={diffX:C.pageX-u,diffY:C.pageY-d,transformX:u,transformY:d},v(!0))},g=function(C){n&&h&&o({x:C.pageX-b.current.diffX,y:C.pageY-b.current.diffY},"move")},m=function(){if(n&&h){v(!1);var C=b.current,E=C.transformX,S=C.transformY,k=u!==E&&d!==S;if(!k)return;var _=e.current.offsetWidth*s,P=e.current.offsetHeight*s,O=e.current.getBoundingClientRect(),N=O.left,T=O.top,M=l%180!==0,j=yx(M?P:_,M?_:P,N,T);j&&o(F({},j),"dragRebound")}},y=function(C){if(!(!n||C.deltaY==0)){var E=Math.abs(C.deltaY/100),S=Math.min(E,_7),k=jo+S*r;C.deltaY>0&&(k=jo/k),a(k,"wheel",C.clientX,C.clientY)}};return c.useEffect(function(){var w,C,E,S;if(t){E=Lo(window,"mouseup",m,!1),S=Lo(window,"mousemove",g,!1);try{window.top!==window.self&&(w=Lo(window.top,"mouseup",m,!1),C=Lo(window.top,"mousemove",g,!1))}catch{}}return function(){var k,_,P,O;(k=E)===null||k===void 0||k.remove(),(_=S)===null||_===void 0||_.remove(),(P=w)===null||P===void 0||P.remove(),(O=C)===null||O===void 0||O.remove()}},[n,h,u,d,l,t]),{isMoving:h,onMouseDown:x,onMouseMove:g,onMouseUp:m,onWheel:y}}function Vc(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function O7(e,t,n,r){var i=Vc(e,n),o=Vc(t,r);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),l=e.x+a*(t.x-e.x),s=e.y+a*(t.y-e.y);return[l,s]}function R7(e,t,n,r,i,o,a){var l=i.rotate,s=i.scale,u=i.x,d=i.y,f=c.useState(!1),p=H(f,2),h=p[0],v=p[1],b=c.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),x=function(C){b.current=F(F({},b.current),C)},g=function(C){if(t){C.stopPropagation(),v(!0);var E=C.touches,S=E===void 0?[]:E;S.length>1?x({point1:{x:S[0].clientX,y:S[0].clientY},point2:{x:S[1].clientX,y:S[1].clientY},eventType:"touchZoom"}):x({point1:{x:S[0].clientX-u,y:S[0].clientY-d},eventType:"move"})}},m=function(C){var E=C.touches,S=E===void 0?[]:E,k=b.current,_=k.point1,P=k.point2,O=k.eventType;if(S.length>1&&O==="touchZoom"){var N={x:S[0].clientX,y:S[0].clientY},T={x:S[1].clientX,y:S[1].clientY},M=O7(_,P,N,T),j=H(M,2),I=j[0],R=j[1],$=Vc(N,T)/Vc(_,P);a($,"touchZoom",I,R,!0),x({point1:N,point2:T,eventType:"touchZoom"})}else O==="move"&&(o({x:S[0].clientX-_.x,y:S[0].clientY-_.y},"move"),x({eventType:"move"}))},y=function(){if(n){if(h&&v(!1),x({eventType:"none"}),r>s)return o({x:0,y:0,scale:r},"touchZoom");var C=e.current.offsetWidth*s,E=e.current.offsetHeight*s,S=e.current.getBoundingClientRect(),k=S.left,_=S.top,P=l%180!==0,O=yx(P?E:C,P?C:E,k,_);O&&o(F({},O),"dragRebound")}};return c.useEffect(function(){var w;return n&&t&&(w=Lo(window,"touchmove",function(C){return C.preventDefault()},{passive:!1})),function(){var C;(C=w)===null||C===void 0||C.remove()}},[n,t]),{isTouching:h,onTouchStart:g,onTouchMove:m,onTouchEnd:y}}var z7=function(t){var n=t.visible,r=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,l=t.icons,s=t.countRender,u=t.showSwitch,d=t.showProgress,f=t.current,p=t.transform,h=t.count,v=t.scale,b=t.minScale,x=t.maxScale,g=t.closeIcon,m=t.onSwitchLeft,y=t.onSwitchRight,w=t.onClose,C=t.onZoomIn,E=t.onZoomOut,S=t.onRotateRight,k=t.onRotateLeft,_=t.onFlipX,P=t.onFlipY,O=t.toolbarRender,N=t.zIndex,T=c.useContext(Jl),M=l.rotateLeft,j=l.rotateRight,I=l.zoomIn,R=l.zoomOut,$=l.close,z=l.left,B=l.right,A=l.flipX,D=l.flipY,U="".concat(o,"-operations-operation");c.useEffect(function(){var K=function(ne){ne.keyCode===re.ESC&&w()};return n&&window.addEventListener("keydown",K),function(){window.removeEventListener("keydown",K)}},[n]);var X=[{icon:D,onClick:P,type:"flipY"},{icon:A,onClick:_,type:"flipX"},{icon:M,onClick:k,type:"rotateLeft"},{icon:j,onClick:S,type:"rotateRight"},{icon:R,onClick:E,type:"zoomOut",disabled:v<=b},{icon:I,onClick:C,type:"zoomIn",disabled:v===x}],G=X.map(function(K){var Z,ne=K.icon,ue=K.onClick,ae=K.type,ye=K.disabled;return c.createElement("div",{className:W(U,(Z={},J(Z,"".concat(o,"-operations-operation-").concat(ae),!0),J(Z,"".concat(o,"-operations-operation-disabled"),!!ye),Z)),onClick:ue,key:ae},ne)}),V=c.createElement("div",{className:"".concat(o,"-operations")},G);return c.createElement(br,{visible:n,motionName:r},function(K){var Z=K.className,ne=K.style;return c.createElement(Vu,{open:!0,getContainer:i??document.body},c.createElement("div",{className:W("".concat(o,"-operations-wrapper"),Z,a),style:F(F({},ne),{},{zIndex:N})},g===null?null:c.createElement("button",{className:"".concat(o,"-close"),onClick:w},g||$),u&&c.createElement(c.Fragment,null,c.createElement("div",{className:W("".concat(o,"-switch-left"),J({},"".concat(o,"-switch-left-disabled"),f===0)),onClick:m},z),c.createElement("div",{className:W("".concat(o,"-switch-right"),J({},"".concat(o,"-switch-right-disabled"),f===h-1)),onClick:y},B)),c.createElement("div",{className:"".concat(o,"-footer")},d&&c.createElement("div",{className:"".concat(o,"-progress")},s?s(f+1,h):"".concat(f+1," / ").concat(h)),O?O(V,F({icons:{flipYIcon:G[0],flipXIcon:G[1],rotateLeftIcon:G[2],rotateRightIcon:G[3],zoomOutIcon:G[4],zoomInIcon:G[5]},actions:{onFlipY:P,onFlipX:_,onRotateLeft:k,onRotateRight:S,onZoomOut:E,onZoomIn:C},transform:p},T?{current:f,total:h}:{})):V)))})},T7=["fallback","src","imgRef"],I7=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],M7=function(t){var n=t.fallback,r=t.src,i=t.imgRef,o=Te(t,T7),a=vx({src:r,fallback:n}),l=H(a,2),s=l[0],u=l[1];return ie.createElement("img",te({ref:function(f){i.current=f,s(f)}},o,u))},bx=function(t){var n=t.prefixCls,r=t.src,i=t.alt,o=t.fallback,a=t.movable,l=a===void 0?!0:a,s=t.onClose,u=t.visible,d=t.icons,f=d===void 0?{}:d,p=t.rootClassName,h=t.closeIcon,v=t.getContainer,b=t.current,x=b===void 0?0:b,g=t.count,m=g===void 0?1:g,y=t.countRender,w=t.scaleStep,C=w===void 0?.5:w,E=t.minScale,S=E===void 0?1:E,k=t.maxScale,_=k===void 0?50:k,P=t.transitionName,O=P===void 0?"zoom":P,N=t.maskTransitionName,T=N===void 0?"fade":N,M=t.imageRender,j=t.imgCommonProps,I=t.toolbarRender,R=t.onTransform,$=t.onChange,z=Te(t,I7),B=c.useRef(),A=c.useContext(Jl),D=A&&m>1,U=A&&m>=1,X=c.useState(!0),G=H(X,2),V=G[0],K=G[1],Z=$7(B,S,_,R),ne=Z.transform,ue=Z.resetTransform,ae=Z.updateTransform,ye=Z.dispatchZoomChange,pe=P7(B,l,u,C,ne,ae,ye),be=pe.isMoving,le=pe.onMouseDown,Ce=pe.onWheel,he=R7(B,l,u,S,ne,ae,ye),de=he.isTouching,Y=he.onTouchStart,me=he.onTouchMove,se=he.onTouchEnd,Pe=ne.rotate,we=ne.scale,Ie=W(J({},"".concat(n,"-moving"),be));c.useEffect(function(){V||K(!0)},[V]);var He=function(){ue("close")},ge=function(){ye(jo+C,"zoomIn")},yt=function(){ye(jo/(jo+C),"zoomOut")},Ve=function(){ae({rotate:Pe+90},"rotateRight")},$e=function(){ae({rotate:Pe-90},"rotateLeft")},De=function(){ae({flipX:!ne.flipX},"flipX")},ze=function(){ae({flipY:!ne.flipY},"flipY")},ut=function(Ne){Ne==null||Ne.preventDefault(),Ne==null||Ne.stopPropagation(),x>0&&(K(!1),ue("prev"),$==null||$(x-1,x))},it=function(Ne){Ne==null||Ne.preventDefault(),Ne==null||Ne.stopPropagation(),x({position:e||"absolute",inset:0}),aR=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new mt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},Lu),{padding:`0 ${q(r)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},lR=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:s,motionDurationSlow:u,iconCls:d,colorTextLightSolid:f}=e,p=new mt(n).setAlpha(.1),h=p.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:f,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${u}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${q(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${u}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:s},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},sR=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,l=new mt(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},cR=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:i}=e;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Up()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Up()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[lR(e),sR(e)]}]},uR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},aR(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Up())}}},dR=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Uu(e,"zoom"),"&":kw(e,!0)}},fR=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new mt(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new mt(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new mt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),wx=Qt("Image",e=>{const t=`${e.componentCls}-preview`,n=Ft(e,{previewCls:t,modalMaskBg:new mt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[uR(n),cR(n),$w(Ft(n,{componentCls:t})),dR(n)]},fR);var pR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var{previewPrefixCls:t,preview:n}=e,r=pR(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=c.useContext(Be),o=i("image",t),a=`${o}-preview`,l=i(),s=Kl(o),[u,d,f]=wx(o,s),[p]=mm("ImagePreview",typeof n=="object"?n.zIndex:void 0),h=c.useMemo(()=>{var v;if(n===!1)return n;const b=typeof n=="object"?n:{},x=W(d,f,s,(v=b.rootClassName)!==null&&v!==void 0?v:"");return Object.assign(Object.assign({},b),{transitionName:Ki(l,"zoom",b.transitionName),maskTransitionName:Ki(l,"fade",b.maskTransitionName),rootClassName:x,zIndex:p})},[n]);return u(c.createElement(Ju.PreviewGroup,Object.assign({preview:h,previewPrefixCls:a,icons:xx},r)))},gR=mR;var zv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var t;const{prefixCls:n,preview:r,className:i,rootClassName:o,style:a}=e,l=zv(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=oa,getPopupContainer:d,image:f}=c.useContext(Be),p=s("image",n),h=s(),v=u.Image||oa.Image,b=Kl(p),[x,g,m]=wx(p,b),y=W(o,g,m,b),w=W(i,g,f==null?void 0:f.className),[C]=mm("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=c.useMemo(()=>{var k;if(r===!1)return r;const _=typeof r=="object"?r:{},{getContainer:P,closeIcon:O}=_,N=zv(_,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:c.createElement("div",{className:`${p}-mask-info`},c.createElement(r7,null),v==null?void 0:v.preview),icons:xx},N),{getContainer:P??d,transitionName:Ki(h,"zoom",_.transitionName),maskTransitionName:Ki(h,"fade",_.maskTransitionName),zIndex:C,closeIcon:O??((k=f==null?void 0:f.preview)===null||k===void 0?void 0:k.closeIcon)})},[r,v,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),S=Object.assign(Object.assign({},f==null?void 0:f.style),a);return x(c.createElement(Ju,Object.assign({prefixCls:p,preview:E,rootClassName:y,className:w,style:S},l)))};Sx.PreviewGroup=gR;const Tv=Sx;function hR(e,t,n){return typeof n=="boolean"?n:e.length?!0:vi(t).some(i=>i.type===nx)}const vR=e=>{const{componentCls:t,bodyBg:n,lightSiderBg:r,lightTriggerBg:i,lightTriggerColor:o}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:o,background:i},[`${t}-sider-zero-width-trigger`]:{color:o,background:i,border:`1px solid ${n}`,borderInlineStart:0}}}},yR=e=>{const{antCls:t,componentCls:n,colorText:r,triggerColor:i,footerBg:o,triggerBg:a,headerHeight:l,headerPadding:s,headerColor:u,footerPadding:d,triggerHeight:f,zeroTriggerHeight:p,zeroTriggerWidth:h,motionDurationMid:v,motionDurationSlow:b,fontSize:x,borderRadius:g,bodyBg:m,headerBg:y,siderBg:w}=e;return{[n]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-sider`]:{position:"relative",minWidth:0,background:w,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:i,lineHeight:q(f),textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:e.calc(h).mul(-1).equal(),zIndex:1,width:h,height:p,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:w,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${b} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${b}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(h).mul(-1).equal(),borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}}}},vR(e)),{"&-rtl":{direction:"rtl"}}),[`${n}-header`]:{height:l,padding:s,color:u,lineHeight:q(l),background:y,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:x,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},bR=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:l,colorBgContainer:s}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:i,footerPadding:`${o}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:i}},Cx=Qt("Layout",e=>[yR(e)],bR,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]});var Ex=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ic.forwardRef((a,l)=>c.createElement(i,Object.assign({ref:l,suffixCls:t,tagName:n},a)))}const Om=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=Ex(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=c.useContext(Be),s=l("layout",n),[u,d,f]=Cx(s),p=r?`${s}-${r}`:s;return u(c.createElement(o,Object.assign({className:W(n||p,i,d,f),ref:t},a)))}),wR=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(Be),[r,i]=c.useState([]),{prefixCls:o,className:a,rootClassName:l,children:s,hasSider:u,tagName:d,style:f}=e,p=Ex(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=yr(p,["suffixCls"]),{getPrefixCls:v,layout:b}=c.useContext(Be),x=v("layout",o),g=hR(r,s,u),[m,y,w]=Cx(x),C=W(x,{[`${x}-has-sider`]:g,[`${x}-rtl`]:n==="rtl"},b==null?void 0:b.className,a,l,y,w),E=c.useMemo(()=>({siderHook:{addSider:S=>{i(k=>[].concat(Ke(k),[S]))},removeSider:S=>{i(k=>k.filter(_=>_!==S))}}}),[]);return m(c.createElement(ex.Provider,{value:E},c.createElement(d,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},b==null?void 0:b.style),f)},h),s)))}),xR=ed({tagName:"div",displayName:"Layout"})(wR),SR=ed({suffixCls:"header",tagName:"header",displayName:"Header"})(Om),CR=ed({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Om),ER=ed({suffixCls:"content",tagName:"main",displayName:"Content"})(Om),kR=xR,ya=kR;ya.Header=SR;ya.Footer=CR;ya.Content=ER;ya.Sider=nx;ya._InternalSiderContext=tx;const td=ya;let zn=null,Ni=e=>e(),Nl=[],Al={};function Iv(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=Al,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:i}}const $R=ie.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=c.useContext(Be),o=Al.prefixCls||i("message"),a=c.useContext(T6),[l,s]=mw(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),a.message));return ie.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),s}),_R=ie.forwardRef((e,t)=>{const[n,r]=ie.useState(Iv),i=()=>{r(Iv)};ie.useEffect(i,[]);const o=Qk(),a=o.getRootPrefixCls(),l=o.getIconPrefixCls(),s=o.getTheme(),u=ie.createElement($R,{ref:t,sync:i,messageConfig:n});return ie.createElement(Kb,{prefixCls:a,iconPrefixCls:l,theme:s},o.holderRender?o.holderRender(u):u)});function nd(){if(!zn){const e=document.createDocumentFragment(),t={fragment:e};zn=t,Ni(()=>{hw(ie.createElement(_R,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,nd())})}}),e)});return}zn.instance&&(Nl.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ni(()=>{const r=zn.instance.open(Object.assign(Object.assign({},Al),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ni(()=>{zn==null||zn.instance.destroy(e.key)});break;default:Ni(()=>{var r;const i=(r=zn.instance)[t].apply(r,Ke(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),Nl=[])}function PR(e){Al=Object.assign(Object.assign({},Al),e),Ni(()=>{var t;(t=zn==null?void 0:zn.sync)===null||t===void 0||t.call(zn)})}function OR(e){const t=gm(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return Nl.push(i),()=>{r?Ni(()=>{r()}):i.skipped=!0}});return nd(),t}function RR(e,t){const n=gm(r=>{let i;const o={type:e,args:t,resolve:r,setCloseFn:a=>{i=a}};return Nl.push(o),()=>{i?Ni(()=>{i()}):o.skipped=!0}});return nd(),n}function zR(e){Nl.push({type:"destroy",key:e}),nd()}const TR=["success","info","warning","error","loading"],IR={open:OR,destroy:zR,config:PR,useMessage:y$,_InternalPanelDoNotUseOrYouWillBeFired:u$},kx=IR;TR.forEach(e=>{kx[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,p=r/100*360*((360-a)/360),h=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],v=(100-i)/100*n;u==="round"&&i!==100&&(v+=d/2,v>=n&&(v=n-.01));var b=Ua/2;return{stroke:typeof s=="string"?s:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(o+p+h,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},DR=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Av(e){var t=e??[];return Array.isArray(t)?t:[t]}var FR=function(t){var n=F(F({},MR),t),r=n.id,i=n.prefixCls,o=n.steps,a=n.strokeWidth,l=n.trailWidth,s=n.gapDegree,u=s===void 0?0:s,d=n.gapPosition,f=n.trailColor,p=n.strokeLinecap,h=n.style,v=n.className,b=n.strokeColor,x=n.percent,g=Te(n,DR),m=Ua/2,y=LR(r),w="".concat(y,"-gradient"),C=m-a/2,E=Math.PI*2*C,S=u>0?90+u/2:-90,k=E*((360-u)/360),_=Ae(o)==="object"?o:{count:o,space:2},P=_.count,O=_.space,N=Av(x),T=Av(b),M=T.find(function(A){return A&&Ae(A)==="object"}),j=M&&Ae(M)==="object",I=j?"butt":p,R=of(E,k,0,100,S,u,d,f,I,a),$=BR(),z=function(){var D=0;return N.map(function(U,X){var G=T[X]||T[T.length-1],V=of(E,k,D,U,S,u,d,G,I,a);return D+=U,c.createElement(jR,{key:X,color:G,ptg:U,radius:C,prefixCls:i,gradientId:w,style:V,strokeLinecap:I,strokeWidth:a,gapDegree:u,ref:function(Z){$[X]=Z},size:Ua})}).reverse()},B=function(){var D=Math.round(P*(N[0]/100)),U=100/P,X=0;return new Array(P).fill(null).map(function(G,V){var K=V<=D-1?T[0]:f,Z=K&&Ae(K)==="object"?"url(#".concat(w,")"):void 0,ne=of(E,k,X,U,S,u,d,K,"butt",a,O);return X+=(k-ne.strokeDashoffset+O)*100/k,c.createElement("circle",{key:V,className:"".concat(i,"-circle-path"),r:C,cx:m,cy:m,stroke:Z,strokeWidth:a,opacity:1,style:ne,ref:function(ae){$[V]=ae}})})};return c.createElement("svg",te({className:W("".concat(i,"-circle"),v),viewBox:"0 0 ".concat(Ua," ").concat(Ua),style:h,id:r,role:"presentation"},g),!P&&c.createElement("circle",{className:"".concat(i,"-circle-trail"),r:C,cx:m,cy:m,stroke:f,strokeLinecap:I,strokeWidth:l||a,style:R}),P?B():z())};function mi(e){return!e||e<0?0:e>100?100:e}function Uc(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const HR=e=>{let{percent:t,success:n,successPercent:r}=e;const i=mi(Uc({success:n,successPercent:r}));return[i,mi(mi(t)-i)]},WR=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Uo.green,n||null]},rd=(e,t,n)=>{var r,i,o,a;let l=-1,s=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=d??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(i=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&i!==void 0?i:120,s=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[l,s]},qR=3,VR=e=>qR/e*100,UR=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:o,width:a=120,type:l,children:s,success:u,size:d=a}=e,[f,p]=rd(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(VR(f),6));const v={width:f,height:p,fontSize:f*.15+6},b=c.useMemo(()=>{if(o||o===0)return o;if(l==="dashboard")return 75},[o,l]),x=i||l==="dashboard"&&"bottom"||void 0,g=Object.prototype.toString.call(e.strokeColor)==="[object Object]",m=WR({success:u,strokeColor:e.strokeColor}),y=W(`${t}-inner`,{[`${t}-circle-gradient`]:g}),w=c.createElement(FR,{percent:HR(e),strokeWidth:h,trailWidth:h,strokeColor:m,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:x});return c.createElement("div",{className:y,style:v},f<=20?c.createElement(Lw,{title:s},c.createElement("span",null,w)):c.createElement(c.Fragment,null,w,s))},GR=UR,Gc="--progress-line-stroke-color",$x="--progress-percent",Lv=e=>{const t=e?"100%":"-100%";return new rt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},KR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},lr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${q(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${q(e.paddingXS)})`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Gc})`]},height:"100%",width:`calc(1 / var(${$x}) * 100%)`,display:"block"}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Lv(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Lv(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},XR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},QR=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},YR=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},ZR=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),JR=Qt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Ft(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[KR(n),XR(n),QR(n),YR(n)]},ZR);var ez=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:i}=n;return`${i} ${r}%`}).join(", ")},nz=(e,t)=>{const{from:n=Uo.blue,to:r=Uo.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=ez(e,["from","to","direction"]);if(Object.keys(o).length!==0){const l=tz(o),s=`linear-gradient(${i}, ${l})`;return{background:s,[Gc]:s}}const a=`linear-gradient(${i}, ${n}, ${r})`;return{background:a,[Gc]:a}},rz=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:l="round",children:s,trailColor:u=null,success:d}=e,f=a&&typeof a!="string"?nz(a,n):{[Gc]:a,background:a},p=l==="square"||l==="butt"?0:void 0,h=i??[-1,o||(i==="small"?6:8)],[v,b]=rd(h,"line",{strokeWidth:o}),x={backgroundColor:u||void 0,borderRadius:p},g=Object.assign(Object.assign({width:`${mi(r)}%`,height:b,borderRadius:p},f),{[$x]:mi(r)/100}),m=Uc(e),y={width:`${mi(m)}%`,height:b,borderRadius:p,backgroundColor:d==null?void 0:d.strokeColor},w={width:v<0?"100%":v,height:b};return c.createElement(c.Fragment,null,c.createElement("div",{className:`${t}-outer`,style:w},c.createElement("div",{className:`${t}-inner`,style:x},c.createElement("div",{className:`${t}-bg`,style:g}),m!==void 0?c.createElement("div",{className:`${t}-success-bg`,style:y}):null)),s)},iz=rz,oz=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:i=8,strokeColor:o,trailColor:a=null,prefixCls:l,children:s}=e,u=Math.round(n*(r/100)),f=t??[t==="small"?2:14,i],[p,h]=rd(f,"step",{steps:n,strokeWidth:i}),v=p/n,b=new Array(n);for(let x=0;x{const{prefixCls:n,className:r,rootClassName:i,steps:o,strokeColor:a,percent:l=0,size:s="default",showInfo:u=!0,type:d="line",status:f,format:p,style:h}=e,v=lz(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),b=c.useMemo(()=>{var T,M;const j=Uc(e);return parseInt(j!==void 0?(T=j??0)===null||T===void 0?void 0:T.toString():(M=l??0)===null||M===void 0?void 0:M.toString(),10)},[l,e.success,e.successPercent]),x=c.useMemo(()=>!sz.includes(f)&&b>=100?"success":f||"normal",[f,b]),{getPrefixCls:g,direction:m,progress:y}=c.useContext(Be),w=g("progress",n),[C,E,S]=JR(w),k=c.useMemo(()=>{if(!u)return null;const T=Uc(e);let M;const j=p||(R=>`${R}%`),I=d==="line";return p||x!=="exception"&&x!=="success"?M=j(mi(l),mi(T)):x==="exception"?M=I?c.createElement(fm,null):c.createElement(Gl,null):x==="success"&&(M=I?c.createElement(dm,null):c.createElement(a_,null)),c.createElement("span",{className:`${w}-text`,title:typeof M=="string"?M:void 0},M)},[u,l,b,x,d,w,p]),_=Array.isArray(a)?a[0]:a,P=typeof a=="string"||Array.isArray(a)?a:void 0;let O;d==="line"?O=o?c.createElement(az,Object.assign({},e,{strokeColor:P,prefixCls:w,steps:o}),k):c.createElement(iz,Object.assign({},e,{strokeColor:_,prefixCls:w,direction:m}),k):(d==="circle"||d==="dashboard")&&(O=c.createElement(GR,Object.assign({},e,{strokeColor:_,prefixCls:w,progressStatus:x}),k));const N=W(w,`${w}-status-${x}`,`${w}-${d==="dashboard"&&"circle"||o&&"steps"||d}`,{[`${w}-inline-circle`]:d==="circle"&&rd(s,"circle")[0]<=20,[`${w}-show-info`]:u,[`${w}-${s}`]:typeof s=="string",[`${w}-rtl`]:m==="rtl"},y==null?void 0:y.className,r,i,E,S);return C(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},y==null?void 0:y.style),h),className:N,role:"progressbar","aria-valuenow":b},yr(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),O))}),af=cz;var uz=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],_x=c.forwardRef(function(e,t){var n,r=e.prefixCls,i=r===void 0?"rc-switch":r,o=e.className,a=e.checked,l=e.defaultChecked,s=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,p=e.onClick,h=e.onChange,v=e.onKeyDown,b=Te(e,uz),x=An(!1,{value:a,defaultValue:l}),g=H(x,2),m=g[0],y=g[1];function w(k,_){var P=m;return s||(P=k,y(P),h==null||h(P,_)),P}function C(k){k.which===re.LEFT?w(!1,k):k.which===re.RIGHT&&w(!0,k),v==null||v(k)}function E(k){var _=w(!m,k);p==null||p(_,k)}var S=W(i,o,(n={},J(n,"".concat(i,"-checked"),m),J(n,"".concat(i,"-disabled"),s),n));return c.createElement("button",te({},b,{type:"button",role:"switch","aria-checked":m,disabled:s,className:S,ref:t,onKeyDown:C,onClick:E}),u,c.createElement("span",{className:"".concat(i,"-inner")},c.createElement("span",{className:"".concat(i,"-inner-checked")},d),c.createElement("span",{className:"".concat(i,"-inner-unchecked")},f)))});_x.displayName="Switch";const dz=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:l,calc:s}=e,u=`${t}-inner`,d=q(s(l).add(s(r).mul(2)).equal()),f=q(s(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:q(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:s(s(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${q(s(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:s(e.marginXXS).div(2).equal(),marginInlineEnd:s(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:s(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(e.marginXXS).div(2).equal()}}}}}}},fz=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},pz=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:o,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${q(a(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},mz=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:l}=e,s=`${t}-inner`,u=q(l(a).add(l(r).mul(2)).equal()),d=q(l(o).mul(2).equal());return{[t]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${s}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},gz=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},lr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:`${q(n)}`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Du(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},hz=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,o=t*n,a=r/2,l=2,s=o-l*2,u=a-l*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:s*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:i,handleSize:s,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new mt("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}},vz=Qt("Switch",e=>{const t=Ft(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[gz(t),mz(t),pz(t),fz(t),dz(t)]},hz);var yz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:n,size:r,disabled:i,loading:o,className:a,rootClassName:l,style:s,checked:u,value:d,defaultChecked:f,defaultValue:p,onChange:h}=e,v=yz(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,x]=An(!1,{value:u??d,defaultValue:f??p}),{getPrefixCls:g,direction:m,switch:y}=c.useContext(Be),w=c.useContext(Eb),C=(i??w)||o,E=g("switch",n),S=c.createElement("div",{className:`${E}-handle`},o&&c.createElement(sw,{className:`${E}-loading-icon`})),[k,_,P]=vz(E),O=qu(r),N=W(y==null?void 0:y.className,{[`${E}-small`]:O==="small",[`${E}-loading`]:o,[`${E}-rtl`]:m==="rtl"},a,l,_,P),T=Object.assign(Object.assign({},y==null?void 0:y.style),s),M=function(){x(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return k(c.createElement(A$,{component:"Switch"},c.createElement(_x,Object.assign({},v,{checked:b,onChange:M,prefixCls:E,className:N,style:T,disabled:C,ref:t,loadingIcon:S}))))});Px.__ANT_SWITCH=!0;const Ox=Px,bz=e=>{const t=e!=null&&e.algorithm?_l(e.algorithm):_l(Ul),n=Object.assign(Object.assign({},aa),e==null?void 0:e.token);return J2(n,{override:e==null?void 0:e.token},t,sm)},wz=bz;function xz(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Sz=(e,t)=>{const n=t??Ul(e),r=n.fontSizeSM,i=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),xz(t??e)),xb(r)),{controlHeight:i}),bb(Object.assign(Object.assign({},n),{controlHeight:i})))},Cz=Sz,kr=(e,t)=>new mt(e).setAlpha(t).toRgbString(),wo=(e,t)=>new mt(e).lighten(t).toHexString(),Ez=e=>{const t=Ar(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},kz=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:kr(r,.85),colorTextSecondary:kr(r,.65),colorTextTertiary:kr(r,.45),colorTextQuaternary:kr(r,.25),colorFill:kr(r,.18),colorFillSecondary:kr(r,.12),colorFillTertiary:kr(r,.08),colorFillQuaternary:kr(r,.04),colorBgElevated:wo(n,12),colorBgContainer:wo(n,8),colorBgLayout:wo(n,0),colorBgSpotlight:wo(n,26),colorBgBlur:kr(r,.04),colorBorder:wo(n,26),colorBorderSecondary:wo(n,19)}},$z=(e,t)=>{const n=Object.keys(am).map(i=>{const o=Ar(e[i],{theme:"dark"});return new Array(10).fill(1).reduce((a,l,s)=>(a[`${i}-${s+1}`]=o[s],a[`${i}${s+1}`]=o[s],a),{})}).reduce((i,o)=>(i=Object.assign(Object.assign({},i),o),i),{}),r=t??Ul(e);return Object.assign(Object.assign(Object.assign({},r),n),wb(e,{generateColorPalettes:Ez,generateNeutralColorPalettes:kz}))},_z=$z;function Pz(){const[e,t,n]=or();return{theme:e,token:t,hashId:n}}const jv={defaultConfig:Rl,defaultSeed:Rl.token,useToken:Pz,defaultAlgorithm:Ul,darkAlgorithm:_z,compactAlgorithm:Cz,getDesignToken:wz};var Oz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.2 306.6L611.3 72.9c-6-5.7-13.9-8.9-22.2-8.9H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h277l219 210.6V824c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V329.6c0-8.7-3.5-17-9.8-23zM553.4 201.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v704c0 17.7 14.3 32 32 32h512c17.7 0 32-14.3 32-32V397.3c0-8.5-3.4-16.6-9.4-22.6L553.4 201.4zM568 753c0 3.8-3.4 7-7.5 7h-225c-4.1 0-7.5-3.2-7.5-7v-42c0-3.8 3.4-7 7.5-7h225c4.1 0 7.5 3.2 7.5 7v42zm0-220c0 3.8-3.4 7-7.5 7H476v84.9c0 3.9-3.1 7.1-7 7.1h-42c-3.8 0-7-3.2-7-7.1V540h-84.5c-4.1 0-7.5-3.2-7.5-7v-42c0-3.9 3.4-7 7.5-7H420v-84.9c0-3.9 3.2-7.1 7-7.1h42c3.9 0 7 3.2 7 7.1V484h84.5c4.1 0 7.5 3.1 7.5 7v42z"}}]},name:"diff",theme:"filled"};const Rz=Oz;var zz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Rz}))};const Tz=c.forwardRef(zz);var Iz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};const Mz=Iz;var Bz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Mz}))};const Nz=c.forwardRef(Bz);var Az={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"};const Lz=Az;var jz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Lz}))};const Dz=c.forwardRef(jz);var Fz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"};const Hz=Fz;var Wz=function(t,n){return c.createElement(vt,te({},t,{ref:n,icon:Hz}))};const qz=c.forwardRef(Wz),es=()=>{const e=K9.useBreakpoint();return e.xxl?{...e,size:"xxl"}:e.xl?{...e,size:"xl"}:e.lg?{...e,size:"lg"}:e.md?{...e,size:"md"}:{...e,size:"sm"}},Rx=()=>({sm:{maxWidth:"1080px"},md:{maxWidth:"1080px"},lg:{maxWidth:"1080px"},xl:{maxWidth:"1080px"},xxl:{maxWidth:"1080px"}})[es().size],Rm=()=>({sm:{maxWidth:"960px"},md:{maxWidth:"960px"},lg:{maxWidth:"960px"},xl:{maxWidth:"960px"},xxl:{maxWidth:"960px"}})[es().size],Vz="tw-values",Uz="0.47.0",Gz="module",Kz={"@ant-design/icons":"^5.1.4","@stylexjs/stylex":"^0.5.1",antd:"^5.7.0",i18next:"^23.2.11",react:"^18.2.0","react-dom":"^18.2.0","react-i18next":"^13.0.2","react-router-dom":"^6.14.1",zustand:"^4.5.1"},Xz={start:"vite",test:"vitest","lint:check":"eslint ./src",lint:"eslint --fix ./src","release:major":'npm version major -m "Bump version to v%s."',"release:minor":'npm version minor -m "Bump version to v%s."',"release:patch":'npm version patch -m "Bump version to v%s."',build:"tsc && vite build",preview:"vite preview",deploy:"gh-pages -d dist"},Qz={extends:["react-app","react-app/jest"]},Yz={production:[">0.2%","not dead","not op_mini all"],development:["last 1 chrome version","last 1 firefox version","last 1 safari version"]},Zz={"@vitejs/plugin-react":"^4.2.1",eslint:"^8.56.0","eslint-config-prettier":"^9.1.0","eslint-plugin-prettier":"^5.1.3","eslint-plugin-react":"^7.33.2","gh-pages":"^5.0.0",prettier:"^3.2.4",typescript:"^5.3.3",vite:"^5.0.11","vite-plugin-stylex":"^0.5.0","vite-tsconfig-paths":"^4.2.3",vitest:"^1.2.0"},Dv={name:Vz,version:Uz,private:!0,type:Gz,dependencies:Kz,scripts:Xz,eslintConfig:Qz,browserslist:Yz,devDependencies:Zz};function Jz(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Hv(e,t,n){e.loadNamespaces(t,zx(e,n))}function Wv(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,zx(e,r))}function eT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,o=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const u=t.services.backendConnector.state[`${l}|${s}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!i||a(o,e)))}function tT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Gp("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!o(i.isLanguageChangingTo,e))return!1}}):eT(e,t,n)}const nT=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,rT={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},iT=e=>rT[e],oT=e=>e.replace(nT,iT);let Kp={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:oT};function aT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Kp={...Kp,...e}}function lT(){return Kp}let Tx;function sT(e){Tx=e}function cT(){return Tx}const uT={type:"3rdParty",init(e){aT(e.options.react),sT(e)}},dT=c.createContext();class fT{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const pT=(e,t)=>{const n=c.useRef();return c.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function ba(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=c.useContext(dT)||{},o=n||r||cT();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new fT),!o){Gp("You will need to pass in an i18next instance by using initReactI18next");const y=(C,E)=>typeof E=="string"?E:E&&typeof E=="object"&&typeof E.defaultValue=="string"?E.defaultValue:Array.isArray(C)?C[C.length-1]:C,w=[y,{},!1];return w.t=y,w.i18n={},w.ready=!1,w}o.options.react&&o.options.react.wait!==void 0&&Gp("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...lT(),...o.options.react,...t},{useSuspense:l,keyPrefix:s}=a;let u=e||i||o.options&&o.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(u);const d=(o.isInitialized||o.initializedStoreOnce)&&u.every(y=>tT(y,o,a));function f(){return o.getFixedT(t.lng||null,a.nsMode==="fallback"?u:u[0],s)}const[p,h]=c.useState(f);let v=u.join();t.lng&&(v=`${t.lng}${v}`);const b=pT(v),x=c.useRef(!0);c.useEffect(()=>{const{bindI18n:y,bindI18nStore:w}=a;x.current=!0,!d&&!l&&(t.lng?Wv(o,t.lng,u,()=>{x.current&&h(f)}):Hv(o,u,()=>{x.current&&h(f)})),d&&b&&b!==v&&x.current&&h(f);function C(){x.current&&h(f)}return y&&o&&o.on(y,C),w&&o&&o.store.on(w,C),()=>{x.current=!1,y&&o&&y.split(" ").forEach(E=>o.off(E,C)),w&&o&&w.split(" ").forEach(E=>o.store.off(E,C))}},[o,v]);const g=c.useRef(!0);c.useEffect(()=>{x.current&&!g.current&&h(f),g.current=!1},[o,s]);const m=[p,o,d];if(m.t=p,m.i18n=o,m.ready=d,d||!d&&!l)return m;throw new Promise(y=>{t.lng?Wv(o,t.lng,u,()=>y()):Hv(o,u,()=>y())})}var mT={BASE_URL:"/TW-Values/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const qv=e=>{let t;const n=new Set,r=(d,f)=>{const p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){const h=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,h))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(mT?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,s);return s},gT=e=>e?qv(e):qv;var Ix={exports:{}},Mx={},Bx={exports:{}},Nx={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -253,7 +253,7 @@ html body { * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var id=c,$T=kT;function _T(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PT=typeof Object.is=="function"?Object.is:_T,OT=$T.useSyncExternalStore,RT=id.useRef,zT=id.useEffect,TT=id.useMemo,IT=id.useDebugValue;Mx.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=RT(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=TT(function(){function s(h){if(!u){if(u=!0,d=h,h=r(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return f=v}return f=h}if(v=f,PT(d,h))return v;var b=r(h);return i!==void 0&&i(v,b)?v:(d=h,f=b)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var l=OT(e,o[0],o[1]);return zT(function(){a.hasValue=!0,a.value=l},[l]),IT(l),l};Ix.exports=Mx;var MT=Ix.exports;const BT=Zc(MT);var Ax={BASE_URL:"/TW-Values/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:NT}=ie,{useSyncExternalStoreWithSelector:AT}=BT;let Vv=!1;const LT=e=>e;function jT(e,t=LT,n){(Ax?"production":void 0)!=="production"&&n&&!Vv&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Vv=!0);const r=AT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return NT(r),r}const Uv=e=>{(Ax?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?gT(e):e,n=(r,i)=>jT(t,r,i);return Object.assign(n,t),n},DT=e=>e?Uv(e):Uv,FT={id:"light",data:{main:{backgroundColor:"white"},welcome:{backgroundColor:"rgba(255, 255, 255, 0.8)",content:{color:"black",backgroundColor:"white"}},quiz:{backgroundColor:"rgba(255, 255, 255, 0.8)",content:{color:"black",backgroundColor:"white"}},result:{backgroundColor:"rgba(255, 255, 255, 0.8)",content:{color:"black",backgroundColor:"white"}}}},Gv=()=>FT,HT={id:"dark",data:{main:{backgroundColor:"#000000"},welcome:{backgroundColor:"rgba(0, 0, 0, 0.5)",content:{color:"white",backgroundColor:"#000000"}},quiz:{backgroundColor:"rgba(0, 0, 0, 0.5)",content:{color:"white",backgroundColor:"#000000"}},result:{backgroundColor:"rgba(0, 0, 0, 0.5)",content:{color:"white",backgroundColor:"#000000"}}}},WT=()=>HT,Ai=()=>({light:"light",dark:"dark"}),sf=e=>e=="light"?Gv():e=="dark"?WT():Gv(),vr=DT(e=>({theme:(()=>{const t=localStorage.getItem("ui.theme");return t&&t in Ai()?sf(t):sf(Ai().light)})(),setTheme:t=>e(()=>(localStorage.setItem("ui.theme",t),{theme:sf(t)}))})),qT=()=>{const e=fa(),{i18n:t}=ba(),n=vr(a=>a.theme.id),r=vr(a=>a.setTheme),i=[{key:"zhtw",text:"繁"},{key:"zhcn",text:"简"},{key:"en",text:"EN"}],o=a=>{localStorage.setItem("ui.language",a),t.changeLanguage(a)};return L.jsx(td.Header,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"0",position:"fixed",top:"0",zIndex:"1"},children:L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{...Rx(),width:"100%",margin:"0 auto"},children:[L.jsx("h2",{style:{fontSize:"xx-large",cursor:"pointer",color:"white",margin:"0px 5px"},onClick:()=>{e("/")},children:"TW Values"}),L.jsxs(c7,{size:4,children:[i.map((a,l)=>L.jsx("span",{onClick:()=>{o(a.key)},style:{borderColor:t.language==a.key?"transparent":"white",borderWidth:"1px",borderStyle:"solid",borderRadius:"6px",cursor:t.language==a.key?"default":"pointer",color:"white",padding:"0 4px",fontSize:"medium"},children:a.text},l)),L.jsx("span",{onClick:()=>{r(n==Ai().light?Ai().dark:Ai().light)},style:{color:"white",padding:"0 4px",fontSize:"medium",cursor:"pointer"},children:n==Ai().light?L.jsx(qz,{}):L.jsx(Dz,{})}),L.jsx("a",{href:`https://github.com/TWValues/TW-Values/tree/v${Dv.version}`,target:"_blank",rel:"noreferrer",children:L.jsx("span",{style:{color:"white",padding:"0 4px",fontSize:"medium"},children:`v${Dv.version}`})}),L.jsx("a",{href:"https://github.com/TWValues/TW-Values",target:"_blank",rel:"noreferrer",style:{padding:"0 2px"},children:L.jsx(Nz,{style:{color:"white",fontSize:"x-large"}})})]})]})})},VT=()=>{const e=fa();return L.jsx(td.Footer,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"5px"},children:L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{...Rx(),width:"100%",margin:"0 auto"},children:[L.jsx("h4",{style:{cursor:"pointer",color:"white",margin:"auto 0 auto 0"},onClick:()=>{e("/")},children:"TW Values"}),L.jsx("h4",{style:{color:"white",margin:"auto 0 auto 0"},children:"Copyright (c) 2023-2024 TW Values"})]})})},UT=e=>e,Kv=(e,t,n=UT)=>e.reduce((r,i)=>(r.length>0&&(r+=t),r+=n(i),r),""),GT="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3cpath%20d='M%200%20150%20Q%20150%200%20200%20250%20Q%20230%20350%20400%20150'%20stroke='blue'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20130%20Q%20100%20300%20250%20160%20Q%20350%2060%20400%20130'%20stroke='green'%20stroke-width='4'%20fill='none'/%3e%3cpath%20d='M%200%200%20Q%2050%20100%20200%20150%20Q%20350%20200%20400%20300'%20stroke='orange'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20300%20Q%20150%20250%20200%20150%20Q%20250%2050%20400%200'%20stroke='magenta'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20200%20Q%20130%20240%20180%20300'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%20180%200%20Q%20300%20150%20400%20200'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",KT="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3ccircle%20r='18'%20cx='250'%20cy='220'%20stroke='red'%20stroke-width='4'%20fill='none'%20/%3e%3cpolygon%20points='130,30%20110,65%20150,65'%20stroke='limegreen'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='350'%20y1='50'%20x2='380'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='380'%20y1='50'%20x2='350'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3crect%20width='35'%20height='35'%20x='80'%20y='150'%20rx='5'%20ry='5'%20stroke='purple'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",{Content:XT}=td,QT=()=>{const e=vr(i=>i.theme.data.main),t=[GT,KT],[n,r]=c.useState(t.map(()=>0),[]);return c.useEffect(()=>{window.addEventListener("scroll",i=>{const o=i.target.documentElement.scrollTop;r(t.map((a,l)=>`${(2*l+1)*o*-.01}em`))})}),L.jsxs(td,{style:{minHeight:"100vh",minWidth:"460px",overflow:"auto"},children:[L.jsx(qT,{}),L.jsx(XT,{style:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.backgroundColor,backgroundImage:Kv(t,",",i=>`url("${i}")`),backgroundRepeat:"repeat",backgroundPositionY:Kv(n,","),transition:"all 0.25s ease-out 0s",width:"100%",paddingTop:"64px"},children:L.jsx(c3,{})}),L.jsx(VT,{})]})},ki=({title:e,leftTitle:t,rightTitle:n,leftColor:r,rightColor:i,leftDescription:o,rightDescription:a})=>{const l=es(),s=vr(x=>x.theme.data.welcome),u=()=>({sm:{fontSize:"x-large"},md:{fontSize:"x-large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],d=()=>({sm:{fontSize:"large"},md:{fontSize:"large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],f=()=>({sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"large"},xl:{fontSize:"large"},xxl:{fontSize:"large"}})[l.size],p=({title:x,description:g,color:m})=>L.jsxs(pt,{vertical:!0,justify:"start",align:"center",gap:10,style:{height:"100%",margin:"2px",padding:"10px",borderColor:m,borderStyle:"solid",borderWidth:"2px",borderRadius:"20px"},children:[L.jsx("span",{style:{...d(),fontWeight:"bold",textTransform:"uppercase",color:m},children:x}),L.jsx("span",{style:{...f(),color:s.content.color},children:g})]}),h=()=>L.jsx("span",{style:{...u(),margin:"10px",textTransform:"uppercase",textAlign:"center",whiteSpace:"nowrap",color:s.content.color},children:e}),v=()=>L.jsx(p,{title:t,description:o,color:r}),b=()=>L.jsx(p,{title:n,description:a,color:i});return l.lg?L.jsxs("div",{style:{display:"grid",gridTemplateColumns:"320px auto 320px",width:"100%"},children:[L.jsx(v,{}),L.jsx(h,{}),L.jsx(b,{})]}):L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx(h,{}),L.jsxs("div",{style:{display:"grid",gridTemplateColumns:l.md?"45% 10% 45%":"50% 0% 50%",alignItems:"start",width:"100%"},children:[L.jsx(v,{}),L.jsx("div",{}),L.jsx(b,{})]})]})},YT="data:image/svg+xml,%3csvg%20fill='%23DC143C'%20height='256px'%20width='256px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20455.00%20455.00'%20xml:space='preserve'%20stroke='%23DC143C'%20transform='matrix(1,%200,%200,%201,%200,%200)'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke='%23CCCCCC'%20stroke-width='2.73'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpolygon%20points='150.618,395%20130.5,455%20324.5,455%20304.382,395%20'%3e%3c/polygon%3e%3cpath%20d='M0,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H0z'%3e%3c/path%3e%3cpath%20d='M318,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H318z'%3e%3c/path%3e%3cpath%20d='M68.5,148.477L103.012,230h32.577l-44.45-105H212.5v240h30V125h121.362l-44.45,105h32.577l34.511-81.523L421.011,230%20h32.578l-57.15-135H242.5V55.977c8.964-5.188,15-14.874,15-25.977c0-16.569-13.431-30-30-30s-30,13.431-30,30%20c0,11.102,6.036,20.789,15,25.977V95H58.561L1.411,230h32.578L68.5,148.477z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ZT="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20stroke='%237B68EE'%20stroke-width='1.5'%3e%3c/circle%3e%3cpath%20d='M12%206V18'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3cpath%20d='M15%209.5C15%208.11929%2013.6569%207%2012%207C10.3431%207%209%208.11929%209%209.5C9%2010.8807%2010.3431%2012%2012%2012C13.6569%2012%2015%2013.1193%2015%2014.5C15%2015.8807%2013.6569%2017%2012%2017C10.3431%2017%209%2015.8807%209%2014.5'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",JT="/TW-Values/assets/Globe-B1wDQrZS.svg",eI="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20d='M5%2022V14M5%2014V4M5%2014L7.47067%2013.5059C9.1212%2013.1758%2010.8321%2013.3328%2012.3949%2013.958C14.0885%2014.6354%2015.9524%2014.7619%2017.722%2014.3195L17.8221%2014.2945C18.4082%2014.148%2018.6861%2013.4769%2018.3753%2012.9589L16.8147%2010.3578C16.4732%209.78863%2016.3024%209.50405%2016.2619%209.19451C16.2451%209.06539%2016.2451%208.93461%2016.2619%208.80549C16.3024%208.49595%2016.4732%208.21137%2016.8147%207.64221L18.0932%205.51132C18.4278%204.9536%2017.9211%204.26972%2017.2901%204.42746C15.8013%204.79967%2014.2331%204.69323%2012.8082%204.12329L12.3949%203.95797C10.8321%203.33284%209.1212%203.17576%207.47067%203.50587L5%204M5%204V2'%20stroke='%23ff8c00'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",tI="data:image/svg+xml,%3csvg%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20width='800px'%20height='800px'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD700;}%20%3c/style%3e%3cg%3e%3crect%20x='146.663'%20y='55.252'%20class='st0'%20width='46.389'%20height='17.681'/%3e%3cpolygon%20class='st0'%20points='206.033,149.149%20188.641,78.726%20163.786,78.726%20155.501,78.726%20155.501,97.782%20167.691,109.972%20175.385,171.518%20'/%3e%3cpath%20class='st0'%20d='M368.801,250.766l-30.247-25.092c-2.906-2.413-6.655-3.557-10.409-3.176c-3.755,0.382-7.2,2.242-9.568,5.188%20l-10.554,13.125l16.649,87.072l46.12-57.456C375.613,264.429,374.725,255.677,368.801,250.766z'/%3e%3crect%20x='138.102'%20y='452.348'%20class='st0'%20width='225.347'%20height='59.652'/%3e%3cpath%20class='st0'%20d='M223.615,127.384c-0.152,0.565-0.401,1.085-0.52,1.663c19.45-3.774,39.617-3.82,59.081-0.145%20c-0.026-0.125-0.092-0.243-0.118-0.368l22.843-14.604c0.526-0.329,0.73-0.999,0.486-1.565c-0.25-0.572-0.874-0.882-1.472-0.73%20l-26.315,6.569c-0.572-0.842-1.243-1.578-1.894-2.354l8.989-25.848c0.204-0.578-0.04-1.217-0.572-1.519%20c-0.533-0.302-1.196-0.184-1.591,0.283l-17.294,20.535c-2.005-0.131-4.011-0.184-6.023-0.256l-5.411-29.346%20c-0.119-0.598-0.638-1.039-1.25-1.039c-0.611,0-1.137,0.441-1.242,1.039l-5.432,29.372c-2.478,0.099-4.951,0.145-7.423,0.342%20l-17.379-20.647c-0.394-0.467-1.065-0.592-1.604-0.283c-0.532,0.296-0.77,0.94-0.572,1.512l9.304,26.769l1.184-0.671%20c-0.795,0.966-1.539,1.96-2.209,3.025l0.92-2.13l-26.512-6.622c-0.604-0.145-1.222,0.158-1.472,0.73%20c-0.244,0.572-0.04,1.236,0.486,1.572L223.615,127.384z'/%3e%3cpath%20class='st0'%20d='M296.076,213.608c-0.868-4.57-3.938-8.41-8.193-10.271l-65.281-28.505l-9.107-23.198l-41.34,32.674%20c-5.688,4.49-7.042,12.572-3.117,18.667l15.459,24.046l-2.078,1.604c-5.109,3.932-6.904,10.83-4.346,16.748l10.04,23.264%20l20.404-21.048l4.754,4.616l-36.093,37.243l5.063,40.518l18.819-19.41l4.76,4.616l-28.07,28.958l-5.458,101.59h156.574%20l-4.359-28.972l9.942-2.492L296.076,213.608z%20M243.993,410.305l-6.312-2.026l28.162-87.821l6.312,2.025L243.993,410.305z'/%3e%3cpath%20class='st0'%20d='M157.71,49.176h8.778c-3.557-3.288-6.819-13.19,1.992-21.541c3.866-6.075,3.866-6.075,3.866-6.075%20s9.916,14.623,3.354,27.616h6.312c0,0,6.628-3.866,7.18-18.779c0.552-14.913-12.152-29.82-18.78-30.372%20c-6.628-0.552,1.105,8.278-12.704,17.668C143.901,27.083,149.977,45.31,157.71,49.176z'/%3e%3cpath%20class='st0'%20d='M228.587,164.582l-3.051,3.051l0.526,1.341l40.367,17.629c7.088-3.551,12.552-9.817,15.084-17.432%20l-28.051-31.996L228.587,164.582z'/%3e%3cpath%20class='st0'%20d='M283.057,159.347l-0.243-23.296l-1.874-0.356c-7.108-1.348-14.355-2.157-21.64-2.466l23.73,27.071%20C283.037,159.985,283.057,159.67,283.057,159.347z'/%3e%3cpath%20class='st0'%20d='M222.511,136.189l0.244,23.796c0,0.02,0,0.033,0,0.053l24.756-26.821c-7.785,0.283-15.55,1.137-23.146,2.616%20L222.511,136.189z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nI="/TW-Values/assets/Crown-D3eiD2Sz.svg",rI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='625'%20height='625'%3e%3cpath%20d='m10%20207l38%2030-36%2069c-18%2032%2013%2063%2033%2074%2019%2011%2050%2012%2078%2012l51-83%2038%2021-66-123-135%201m6%20169l82%20152c17%2021%2048%2026%2080%2025h87v-144l-165-1c-26%202-59-4-85-32m517-280l-45%2019-43-65c-19-31-61-19-80-7-19%2012-34%2038-48%2062l48%2085-37%2023%20140%202%2065-119zm-151-77l-173-2c-26%204-46%2029-61%2058l-42%2076%20126%2070%2081-143c11-23%2032-50%2069-58m8%20586l5-48%2078-6c37-2%2046-44%2045-67-1-22-16-48-31-72l-97.16.925-3-43-69%20122%2073%20114m140-94l85-150c9-25-3-54-21-81l-46-74-122%2076%2086%20140c15%2021%2028%2052%2017%2089z'%20fill='%23006E27'/%3e%3c/svg%3e",iI="data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill='%23778899'%20d='M4.4%201.3c-0.6%200.3-0.8%201.1-0.4%201.5%200.5-0.9%201.3-0.6%202.5%200.4%200.8%200.7%201.9%200.1%201.9%200.1s0.2%201.2%201.7%201.4c1.7%200.2%202.3-0.8%202.3-0.8s0.4%201%201.9%200.4c1.1-0.4%200.7-1.1%200.7-1.1s1%200%201-0.7c0-0.9-1.1-0.8-1.1-0.8s0.2-1-0.9-1.1c-1-0.1-1.3%200.5-1.3%200.5s-0.3-1.1-1.8-1.1c-1.4%200-1.9%201.3-1.9%201.3s-0.4-0.6-1.6-0.6c-0.9%200-1.3%200.7-1.3%200.7s-1.1-0.5-1.7-0.1z'%3e%3c/path%3e%3cpath%20fill='%23778899'%20d='M12%2012.1v-2.1l-4%202.1v-2.1h-2.4l-0.6-7h-2l-0.6%207h-2.4v6h16v-6l-4%202.1zM6%2014h-4v-2h4v2z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",oI="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--emojione'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%23ed4c5c'%20d='M52.382%205.075C40.137%203.203%2024.137%2028.036%209.213%2020.497c-.582-1.575-1.143-3.158-1.725-4.73C25.077%2019.105%2033.07-2.995%2050.658.345c.584%201.572%201.14%203.156%201.724%204.73'%3e%3c/path%3e%3cpath%20fill='%23ff8736'%20d='M54.105%209.804C43.762%207.786%2022.512%2031.453%2010.938%2025.227c-.585-1.573-1.14-3.157-1.725-4.73C26.802%2023.835%2034.794%201.734%2052.382%205.075c.584%201.572%201.14%203.156%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%23ffce31'%20d='M55.83%2014.535C45.762%2012.744%2027.086%2038.25%2012.662%2029.957c-.585-1.573-1.142-3.157-1.725-4.73C28.525%2028.566%2036.52%206.467%2054.105%209.805c.585%201.574%201.142%203.157%201.725%204.73'%3e%3c/path%3e%3cpath%20fill='%2383bf4f'%20d='M57.556%2019.265c-9.711-1.521-31.086%2025.813-43.171%2015.422c-.584-1.572-1.139-3.157-1.723-4.73c17.585%203.341%2025.579-18.762%2043.168-15.422c.583%201.573%201.142%203.156%201.726%204.73'%3e%3c/path%3e%3cpath%20fill='%23275fd9'%20d='M59.278%2023.995C48.22%2022.161%2028.595%2050.453%2016.109%2039.418c-.584-1.574-1.144-3.156-1.725-4.73c17.588%203.338%2025.582-18.761%2043.171-15.422c.583%201.573%201.141%203.155%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%239028e0'%20d='M61%2028.726c-17.583-3.34-25.579%2018.761-43.166%2015.421c-.584-1.572-1.142-3.156-1.725-4.729c17.588%203.338%2025.581-18.762%2043.169-15.423c.583%201.575%201.142%203.158%201.722%204.731'%3e%3c/path%3e%3cg%20fill='%233e4347'%3e%3ccircle%20cx='5.168'%20cy='13.336'%20r='2.168'%3e%3c/circle%3e%3cpath%20d='M7.04%2014.49l-2.56.929L22.186%2064h2.896z'%3e%3c/path%3e%3cpath%20d='M3.688%2015.602l4.076-1.48l.37%201.017l-4.077%201.48z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",aI="data:image/svg+xml,%3csvg%20height='200px'%20width='200px'%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23800000;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M78.641,118.933c22.88,0,41.416-18.551,41.416-41.414c0-22.887-18.536-41.423-41.416-41.423%20c-22.887,0-41.422,18.536-41.422,41.423C37.218,100.382,55.754,118.933,78.641,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M255.706,228.73v0.062c0.101,0,0.194-0.031,0.294-0.031c0.101,0,0.194,0.031,0.294,0.031v-0.062%20c15.562-0.317,28.082-12.976,28.082-28.601c0-15.648-12.52-28.299-28.082-28.616v-0.063c-0.101,0-0.194,0.031-0.294,0.031%20c-0.1,0-0.193-0.031-0.294-0.031v0.063c-15.563,0.317-28.082,12.968-28.082,28.616C227.623,215.754,240.143,228.413,255.706,228.73%20z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M433.359,118.933c22.887,0,41.423-18.551,41.423-41.414c0-22.887-18.536-41.423-41.423-41.423%20c-22.88,0-41.416,18.536-41.416,41.423C391.944,100.382,410.48,118.933,433.359,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M470.097,138.553h-36.312h-18.404c-21.106,0-40.432,11.831-50.033,30.622l-33.494,97.967%20c-1.154,2.246-3.298,3.84-5.792,4.282c-2.493,0.442-5.048-0.309-6.914-2.036l-20.836-18.04c-6.233-5.769-14.408-8.973-22.902-8.973%20H256h-19.41c-8.494,0-16.669,3.204-22.902,8.973l-20.835,18.04c-1.866,1.727-4.421,2.478-6.914,2.036%20c-2.492-0.442-4.637-2.036-5.791-4.282l-33.495-97.967c-9.6-18.791-28.926-30.622-50.032-30.622H78.215H41.902%20C21.834,138.553,0,160.387,0,180.464v139.211c0,10.034,8.13,18.171,18.164,18.171c4.939,0,0,0,12.682,0l6.906,118.725%20c0,10.676,8.664,19.332,19.34,19.332c4.506,0,12.814,0,21.122,0c8.308,0,16.616,0,21.122,0c10.676,0,19.34-8.656,19.34-19.332%20l6.906-118.725l-0.085-84.766c0-1.339,0.914-2.493,2.222-2.818c1.309-0.31,2.648,0.309,3.26,1.502l26.572,65.401%20c3.206,6.256,9.152,10.654,16.074,11.885c6.922,1.231,14.022-0.844,19.186-5.613l25.426-18.729%20c0.852-0.782,2.083-0.984,3.136-0.542c1.061,0.473,1.743,1.518,1.743,2.663l0.093,73.508l4.777,82.187%20c0,7.387,6.001,13.379,13.395,13.379c3.113,0,8.865,0,14.618,0c5.753,0,11.506,0,14.618,0c7.394,0,13.394-5.992,13.394-13.379%20l4.778-82.187l0.093-73.508c0-1.146,0.681-2.19,1.742-2.663c1.053-0.442,2.284-0.24,3.136,0.542l25.427,18.729%20c5.164,4.769,12.264,6.844,19.186,5.613c6.922-1.231,12.868-5.629,16.073-11.885l26.573-65.401%20c0.611-1.192,1.951-1.812,3.259-1.502c1.309,0.325,2.222,1.478,2.222,2.818l-0.085,84.766l6.906,118.725%20c0,10.676,8.664,19.332,19.341,19.332c4.507,0,12.814,0,21.122,0c8.308,0,16.616,0,21.121,0c10.677,0,19.342-8.656,19.342-19.332%20l6.906-118.725c12.682,0,7.742,0,12.682,0c10.034,0,18.164-8.137,18.164-18.171V180.464%20C512,160.387,490.166,138.553,470.097,138.553z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",lI="/TW-Values/assets/FlagOfTWIndependence-BSLd3Q55.svg",sI="/TW-Values/assets/ChinaTerritory-1UXGxmof.svg",cI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='1235'%20height='650'%20viewBox='0%200%207410%203900'%3e%3cpath%20d='M0,0h7410v3900H0'%20fill='%23b31942'/%3e%3cpath%20d='M0,450H7410m0,600H0m0,600H7410m0,600H0m0,600H7410m0,600H0'%20stroke='%23FFF'%20stroke-width='300'/%3e%3cpath%20d='M0,0h2964v2100H0'%20fill='%230a3161'/%3e%3cg%20fill='%23FFF'%3e%3cg%20id='s18'%3e%3cg%20id='s9'%3e%3cg%20id='s5'%3e%3cg%20id='s4'%3e%3cpath%20id='s'%20d='M247,90%20317.534230,307.082039%20132.873218,172.917961H361.126782L176.465770,307.082039z'/%3e%3cuse%20xlink:href='%23s'%20y='420'/%3e%3cuse%20xlink:href='%23s'%20y='840'/%3e%3cuse%20xlink:href='%23s'%20y='1260'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20y='1680'/%3e%3c/g%3e%3cuse%20xlink:href='%23s4'%20x='247'%20y='210'/%3e%3c/g%3e%3cuse%20xlink:href='%23s9'%20x='494'/%3e%3c/g%3e%3cuse%20xlink:href='%23s18'%20x='988'/%3e%3cuse%20xlink:href='%23s9'%20x='1976'/%3e%3cuse%20xlink:href='%23s5'%20x='2470'/%3e%3c/g%3e%3c/svg%3e",uI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='900'%20height='600'%3e%3cpath%20fill='%23EE1C25'%20d='M0%200h900v600H0z'/%3e%3cg%20transform='translate(150,150)%20scale(3)'%3e%3cpath%20id='s'%20d='M0,-30%2017.63355,24.27051%20-28.53171,-9.27051H28.53171L-17.63355,24.27051z'%20fill='%23FF0'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,60)%20rotate(23.036243)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,120)%20rotate(45.869898)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,210)%20rotate(69.945396)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,270)%20rotate(20.659808)'/%3e%3c/svg%3e",_e=()=>({equality:{color:"crimson",image:YT},efficiency:{color:"mediumslateblue",image:ZT},globe:{color:"royalblue",image:JT},nation:{color:"darkorange",image:eI},liberty:{color:"gold",image:tI},authority:{color:"red",image:nI},ecology:{color:"forestgreen",image:rI},production:{color:"lightslategray",image:iI},progress:{color:"magenta",image:oI},tradition:{color:"maroon",image:aI},independence:{color:"green",image:lI},unification:{color:"red",image:sI},pro_american:{color:"blue",image:cI},pro_chinese:{color:"red",image:uI}}),ee={p100:16,p075:12,p050:8},Lx=()=>[{id:"q0000",weight:{economic:ee.p100}},{id:"q0001",weight:{economic:ee.p100}},{id:"q0002",weight:{economic:ee.p100}},{id:"q0003",weight:{economic:ee.p100}},{id:"q0004",weight:{economic:ee.p100}},{id:"q0100",weight:{economic:-ee.p100}},{id:"q0101",weight:{economic:-ee.p100}},{id:"q0102",weight:{economic:-ee.p100}},{id:"q0103",weight:{economic:-ee.p100}},{id:"q0104",weight:{economic:-ee.p100}},{id:"q0105",weight:{economic:-ee.p100}},{id:"q0200",weight:{diplomatic:ee.p100}},{id:"q0201",weight:{diplomatic:ee.p100}},{id:"q0202",weight:{diplomatic:ee.p075,sovereignty:-ee.p050}},{id:"q0203",weight:{diplomatic:ee.p100,civil:ee.p075}},{id:"q0300",weight:{diplomatic:-ee.p100,economic:-ee.p050}},{id:"q0301",weight:{diplomatic:-ee.p100}},{id:"q0302",weight:{diplomatic:-ee.p100}},{id:"q0303",weight:{diplomatic:-ee.p100}},{id:"q0400",weight:{civil:ee.p100,societal:ee.p050}},{id:"q0401",weight:{civil:ee.p100}},{id:"q0402",weight:{civil:ee.p100}},{id:"q0403",weight:{civil:ee.p100}},{id:"q0404",weight:{civil:ee.p100}},{id:"q0405",weight:{civil:ee.p100}},{id:"q0500",weight:{civil:-ee.p100}},{id:"q0501",weight:{civil:-ee.p100}},{id:"q0502",weight:{civil:-ee.p100}},{id:"q0503",weight:{civil:-ee.p100,diplomatic:-ee.p075}},{id:"q0504",weight:{civil:-ee.p100}},{id:"q0505",weight:{civil:-ee.p100}},{id:"q0506",weight:{civil:-ee.p100}},{id:"q0600",weight:{societal:ee.p100}},{id:"q0601",weight:{societal:ee.p100}},{id:"q0602",weight:{societal:ee.p100}},{id:"q0603",weight:{societal:ee.p100}},{id:"q0604",weight:{societal:ee.p100}},{id:"q0605",weight:{societal:ee.p100}},{id:"q0700",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0701",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0702",weight:{societal:-ee.p100}},{id:"q0703",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0704",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0705",weight:{societal:-ee.p100}},{id:"q0800",weight:{environmental:ee.p100}},{id:"q0801",weight:{environmental:ee.p100}},{id:"q0802",weight:{environmental:ee.p100}},{id:"q0803",weight:{environmental:ee.p100}},{id:"q0900",weight:{environmental:-ee.p100}},{id:"q0901",weight:{environmental:-ee.p100}},{id:"q0902",weight:{environmental:-ee.p100}},{id:"q1000",weight:{sovereignty:ee.p100}},{id:"q1001",weight:{sovereignty:ee.p100,diplomatic:-ee.p075}},{id:"q1002",weight:{sovereignty:ee.p100,diplomatic:-ee.p050}},{id:"q1003",weight:{sovereignty:ee.p100}},{id:"q1100",weight:{sovereignty:-ee.p100}},{id:"q1101",weight:{sovereignty:-ee.p100,us_vs_china:-ee.p075}},{id:"q1102",weight:{sovereignty:-ee.p100,us_vs_china:-ee.p075}},{id:"q1103",weight:{sovereignty:-ee.p075,diplomatic:ee.p050}},{id:"q1104",weight:{}},{id:"q1200",weight:{us_vs_china:ee.p100}},{id:"q1201",weight:{us_vs_china:ee.p100}},{id:"q1202",weight:{us_vs_china:ee.p100}},{id:"q1301",weight:{us_vs_china:-ee.p100,diplomatic:-ee.p050}},{id:"q1302",weight:{us_vs_china:-ee.p100}},{id:"q1303",weight:{us_vs_china:-ee.p100}}];var zm={};Object.defineProperty(zm,"__esModule",{value:!0});var jx=zm.styleq=void 0,dI=new WeakMap,fI="$$css";function Dx(e){var t,n,r;return e!=null&&(t=e.disableCache===!0,n=e.disableMix===!0,r=e.transform),function(){for(var o=[],a="",l=null,s=t?null:dI,u=new Array(arguments.length),d=0;d0;){var f=u.pop();if(!(f==null||f===!1)){if(Array.isArray(f)){for(var p=0;p0&&(a.style=o),a}const Xv={},pI=()=>{const{t:e}=ba(),t=fa(),n=vr(r=>r.theme.data.welcome);return L.jsxs(pt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:n.backgroundColor,border:"crimson solid 4px",borderRadius:"20px",...Rm(),width:"100%",margin:"20px auto",padding:"5px"},children:[L.jsxs(pt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",backgroundColor:n.content.backgroundColor,border:"dodgerblue solid 4px",borderRadius:"20px",padding:"16px"},children:[L.jsx("h1",{style:{fontSize:"xx-large",color:n.content.color,padding:"10px"},children:e("quiz.welcome.title")}),L.jsx("span",{style:{color:n.content.color,fontSize:"large",padding:"10px"},children:e("quiz.welcome.content")}),L.jsx(Kr,{style:{backgroundColor:"crimson"}}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xt0237e x16zck5j xng8ra x1y0btm7 x9r2w2z x174e0gf x1awj2ng x1uezp9v x1vx81tn x1vgg7vs xo30pwf x4u2hfz x1y011xe x1mchgbu x5f13pb",style:{width:"100%",maxWidth:"480px"},onClick:()=>{t("/quiz")},children:e("quiz.welcome.start")}),L.jsx(H5,{message:e("quiz.welcome.privacy"),type:"info",showIcon:!0,style:{margin:"20px"}})]}),L.jsxs(pt,{vertical:!0,justify:"center",align:"center",gap:10,style:{width:"100%",backgroundColor:n.content.backgroundColor,border:"orange solid 4px",borderRadius:"20px",padding:"16px"},children:[L.jsx("h2",{style:{fontSize:"x-large",color:n.content.color,padding:"10px"},children:e("quiz.introduction.title")}),L.jsx("span",{style:{fontSize:"large",color:n.content.color},children:e("quiz.introduction.description",{count:Lx().length})}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.economic.title"),leftTitle:e("quiz.result.values.equality.name"),rightTitle:e("quiz.result.values.efficiency.name"),leftColor:_e().equality.color,rightColor:_e().efficiency.color,leftDescription:e("quiz.result.values.equality.description"),rightDescription:e("quiz.result.values.efficiency.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.diplomatic.title"),leftTitle:e("quiz.result.values.globe.name"),rightTitle:e("quiz.result.values.nation.name"),leftColor:_e().globe.color,rightColor:_e().nation.color,leftDescription:e("quiz.result.values.globe.description"),rightDescription:e("quiz.result.values.nation.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.civil.title"),leftTitle:e("quiz.result.values.liberty.name"),rightTitle:e("quiz.result.values.authority.name"),leftColor:_e().liberty.color,rightColor:_e().authority.color,leftDescription:e("quiz.result.values.liberty.description"),rightDescription:e("quiz.result.values.authority.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.environmental.title"),leftTitle:e("quiz.result.values.ecology.name"),rightTitle:e("quiz.result.values.production.name"),leftColor:_e().ecology.color,rightColor:_e().production.color,leftDescription:e("quiz.result.values.ecology.description"),rightDescription:e("quiz.result.values.production.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.societal.title"),leftTitle:e("quiz.result.values.progress.name"),rightTitle:e("quiz.result.values.tradition.name"),leftColor:_e().progress.color,rightColor:_e().tradition.color,leftDescription:e("quiz.result.values.progress.description"),rightDescription:e("quiz.result.values.tradition.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.sovereignty.title"),leftTitle:e("quiz.result.values.independence.name"),rightTitle:e("quiz.result.values.unification.name"),leftColor:_e().independence.color,rightColor:_e().unification.color,leftDescription:e("quiz.result.values.independence.description"),rightDescription:e("quiz.result.values.unification.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.us_vs_china.title"),leftTitle:e("quiz.result.values.pro_american.name"),rightTitle:e("quiz.result.values.pro_chinese.name"),leftColor:_e().pro_american.color,rightColor:_e().pro_chinese.color,leftDescription:e("quiz.result.values.pro_american.description"),rightDescription:e("quiz.result.values.pro_chinese.description")})]})]})},mI=e=>{for(let t=0;t[{id:"roc_unification",predicate:e=>e.q1104>dt.n},{id:"roc_independence",predicate:e=>e.q1000>dt.n},{id:"tw_independence",predicate:e=>e.q1001>dt.n},{id:"prc_unification",predicate:e=>e.q1101>dt.n},{id:"death_penalty_abolitionists",predicate:e=>e.q0603>dt.n},{id:"homophobia",predicate:e=>e.q0602e.q0705>dt.n},{id:"feminism",predicate:e=>{let t=0;return t+=e.q0602>dt.n,t+=e.q0701dt.n&&e.q0705=2}},{id:"feminism_buffet",predicate:e=>e.q0605{const t=Object.entries(e);return t.filter(r=>dt.sd<=r[1]&&r[1]<=dt.sa).length>=.8*t.length}}],gI=e=>Hx().filter(t=>t.predicate(e)).map(t=>t.id),Wx="api_version",qx=1,hI=()=>[{id:"anarcho_communism",weight:{economic:100,diplomatic:50,civil:100,societal:90}},{id:"libertarian_communism",weight:{economic:100,diplomatic:70,civil:80,societal:80}},{id:"trotskyism",weight:{economic:100,diplomatic:100,civil:60,societal:80}},{id:"marxism",weight:{economic:100,diplomatic:70,civil:40,societal:80}},{id:"de_leonism",weight:{economic:100,diplomatic:30,civil:30,societal:80}},{id:"leninism",weight:{economic:100,diplomatic:40,civil:20,societal:70}},{id:"stalinism",weight:{economic:100,diplomatic:20,civil:0,societal:60}},{id:"religious_communism",weight:{economic:100,diplomatic:50,civil:30,societal:30}},{id:"state_socialism",weight:{economic:80,diplomatic:30,civil:30,societal:70}},{id:"theocratic_socialism",weight:{economic:80,diplomatic:50,civil:30,societal:20}},{id:"religious_socialism",weight:{economic:80,diplomatic:50,civil:70,societal:20}},{id:"democratic_socialism",weight:{economic:80,diplomatic:50,civil:50,societal:80}},{id:"revolutionary_socialism",weight:{economic:80,diplomatic:20,civil:50,societal:70}},{id:"liberal_socialism",weight:{economic:80,diplomatic:70,civil:60,societal:80}},{id:"libertarian_socialism",weight:{economic:80,diplomatic:80,civil:80,societal:80}},{id:"anarcho_syndicalism",weight:{economic:80,diplomatic:50,civil:100,societal:80}},{id:"left_wing_populism",weight:{economic:60,diplomatic:40,civil:30,societal:70}},{id:"theocratic_distributism",weight:{economic:60,diplomatic:40,civil:30,societal:20}},{id:"distributism",weight:{economic:60,diplomatic:50,civil:50,societal:20}},{id:"social_liberalism",weight:{economic:60,diplomatic:60,civil:60,societal:80}},{id:"christian_democracy",weight:{economic:60,diplomatic:60,civil:50,societal:30}},{id:"social_democracy",weight:{economic:60,diplomatic:70,civil:60,societal:80}},{id:"progressivism",weight:{economic:60,diplomatic:80,civil:60,societal:100}},{id:"anarcho_mutualism",weight:{economic:60,diplomatic:50,civil:100,societal:70}},{id:"national_totalitarianism",weight:{economic:50,diplomatic:20,civil:0,societal:50}},{id:"global_totalitarianism",weight:{economic:50,diplomatic:80,civil:0,societal:50}},{id:"technocracy",weight:{economic:60,diplomatic:60,civil:20,societal:70}},{id:"centrist",weight:{economic:50,diplomatic:50,civil:50,societal:50}},{id:"liberalism",weight:{economic:50,diplomatic:60,civil:60,societal:60}},{id:"religious_anarchism",weight:{economic:50,diplomatic:50,civil:100,societal:20}},{id:"right_wing_populism",weight:{economic:40,diplomatic:30,civil:30,societal:30}},{id:"libertarian_conservatism",weight:{economic:30,diplomatic:40,civil:80,societal:30}},{id:"liberal_conservatism",weight:{economic:40,diplomatic:40,civil:50,societal:30}},{id:"reactionary",weight:{economic:40,diplomatic:40,civil:40,societal:10}},{id:"social_libertarianism",weight:{economic:60,diplomatic:70,civil:80,societal:70}},{id:"libertarianism",weight:{economic:40,diplomatic:60,civil:80,societal:60}},{id:"anarcho_egoism",weight:{economic:40,diplomatic:50,civil:100,societal:50}},{id:"nazism",weight:{economic:40,diplomatic:0,civil:0,societal:10}},{id:"autocracy",weight:{economic:50,diplomatic:20,civil:20,societal:50}},{id:"fascism",weight:{economic:40,diplomatic:20,civil:20,societal:20}},{id:"capitalist_fascism",weight:{economic:20,diplomatic:20,civil:20,societal:20}},{id:"conservatism",weight:{economic:30,diplomatic:40,civil:40,societal:20}},{id:"neo_liberalism",weight:{economic:30,diplomatic:30,civil:50,societal:60}},{id:"classical_liberalism",weight:{economic:30,diplomatic:60,civil:60,societal:80}},{id:"authoritarian_capitalism",weight:{economic:20,diplomatic:30,civil:20,societal:40}},{id:"state_capitalism",weight:{economic:20,diplomatic:50,civil:30,societal:50}},{id:"neo_conservatism",weight:{economic:20,diplomatic:20,civil:40,societal:20}},{id:"fundamentalism",weight:{economic:20,diplomatic:30,civil:30,societal:5}},{id:"libertarian_capitalism",weight:{economic:20,diplomatic:50,civil:80,societal:60}},{id:"market_anarchism",weight:{economic:20,diplomatic:50,civil:100,societal:50}},{id:"objectivism",weight:{economic:10,diplomatic:50,civil:90,societal:40}},{id:"totalitarian_capitalism",weight:{economic:0,diplomatic:30,civil:0,societal:50}},{id:"ultra_capitalism",weight:{economic:0,diplomatic:40,civil:50,societal:50}},{id:"anarcho_capitalism",weight:{economic:0,diplomatic:50,civil:100,societal:50}}],vI=()=>[{id:"kmt",icon:"https://upload.wikimedia.org/wikipedia/commons/d/dc/Blue_Sky_White_Sun.png",weight:{economic:35,civil:40,environmental:35,societal:30,sovereignty:30,us_vs_china:35}},{id:"lp",icon:"https://upload.wikimedia.org/wikipedia/commons/9/9d/Labor_Party_%28Taiwan%29_emblem.svg",weight:{economic:80,civil:50,environmental:50,societal:50,sovereignty:10,us_vs_china:10}},{id:"dpp",icon:"https://upload.wikimedia.org/wikipedia/commons/1/16/Green_Island_with_White_Cross.svg",weight:{economic:60,civil:55,environmental:60,societal:60,sovereignty:70,us_vs_china:70}},{id:"np",icon:"https://upload.wikimedia.org/wikipedia/commons/3/32/LogoCNP.svg",weight:{economic:30,civil:30,environmental:35,societal:25,sovereignty:20,us_vs_china:25}},{id:"gpt",icon:"https://upload.wikimedia.org/wikipedia/commons/a/a5/Green_Party_Taiwan_logo.png",weight:{economic:65,civil:70,environmental:90,societal:75,sovereignty:70,us_vs_china:70}},{id:"pfp",icon:"https://upload.wikimedia.org/wikipedia/commons/4/4a/LogoPFP.svg",weight:{economic:35,civil:40,environmental:35,societal:30,sovereignty:25,us_vs_china:30}},{id:"tsu",icon:"https://upload.wikimedia.org/wikipedia/commons/4/4c/Taiwan_orange.svg",weight:{economic:40,civil:50,environmental:30,societal:30,sovereignty:80,us_vs_china:70}},{id:"cupp",icon:"https://upload.wikimedia.org/wikipedia/zh/6/66/China_unify_party_logo.gif",weight:{economic:10,civil:10,environmental:20,societal:20,sovereignty:10,us_vs_china:10}},{id:"npp",icon:"https://upload.wikimedia.org/wikipedia/commons/2/29/Black_Lik_Gold_Circle.svg",weight:{economic:70,civil:70,environmental:80,societal:75,sovereignty:80,us_vs_china:65}},{id:"sdp",icon:"https://upload.wikimedia.org/wikipedia/zh/2/2b/SDparty_logo.png",weight:{economic:60,civil:60,environmental:60,societal:80,sovereignty:70,us_vs_china:70}},{id:"tsp",icon:"https://upload.wikimedia.org/wikipedia/commons/7/77/Daijish%C5%8D_in_brown.svg",weight:{economic:60,civil:75,environmental:50,societal:60,sovereignty:80,us_vs_china:70}},{id:"tpp",icon:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Emblem_of_Taiwan_People%27s_Party_2019_Logo_Only.svg",weight:{economic:45,civil:45,environmental:45,societal:45,sovereignty:45,us_vs_china:45}}],yI=(e,t)=>{const n=r=>{const i=u=>u.reduce((d,f)=>d+f.prop*t[f.id],0),o=u=>u.reduce((d,f)=>d+Math.abs(f.prop),0),a=(u,d)=>100*(u+d)/(2*d),l=i(r),s=o(r);return Math.round(a(l,s))};return{economic:n(e.map(r=>({id:r.id,prop:r.weight.economic||0}))),diplomatic:n(e.map(r=>({id:r.id,prop:r.weight.diplomatic||0}))),civil:n(e.map(r=>({id:r.id,prop:r.weight.civil||0}))),environmental:n(e.map(r=>({id:r.id,prop:r.weight.environmental||0}))),societal:n(e.map(r=>({id:r.id,prop:r.weight.societal||0}))),sovereignty:n(e.map(r=>({id:r.id,prop:r.weight.sovereignty||0}))),us_vs_china:n(e.map(r=>({id:r.id,prop:r.weight.us_vs_china||0})))}},bI=e=>hI().map(t=>{const n={economic:e.economic,diplomatic:e.diplomatic,civil:e.civil,societal:Math.round(.25*e.environmental+.75*e.societal)},r=Math.pow(Math.abs(t.weight.economic-n.economic),2)+Math.pow(Math.abs(t.weight.diplomatic-n.diplomatic),2)+Math.pow(Math.abs(t.weight.civil-n.civil),2)+Math.pow(Math.abs(t.weight.societal-n.societal),2),i=Math.sqrt(r/4)/100;return{id:t.id,distance:r,diff:i,weight:{target:t.weight,user:n}}}).sort((t,n)=>t.distancen.distance?1:0),wI=e=>vI().map(t=>{const n={economic:1,civil:1,environmental:.5,societal:1,sovereignty:1,us_vs_china:.5},r=Math.pow(Math.abs(t.weight.economic-e.economic),2)*n.economic+Math.pow(Math.abs(t.weight.civil-e.civil),2)*n.civil+Math.pow(Math.abs(t.weight.environmental-e.environmental),2)*n.environmental+Math.pow(Math.abs(t.weight.societal-e.societal),2)*n.societal+Math.pow(Math.abs(t.weight.sovereignty-e.sovereignty),2)*n.sovereignty+Math.pow(Math.abs(t.weight.us_vs_china-e.us_vs_china),2)*n.us_vs_china,i=Math.sqrt(r/6)/100;return{id:t.id,icon:t.icon,distance:r,diff:i,weight:{target:t.weight,user:e}}}).sort((t,n)=>t.distancen.distance?1:0),xI=()=>{const{t:e}=ba(),t=fa(),n=vr(f=>f.theme.data.quiz),r=c.useMemo(()=>mI(Lx()),[]),[i,o]=c.useState(0),[a,l]=c.useState(r.reduce((f,p)=>({...f,[p.id]:0}),{})),s=f=>{l({...a,[r[i].id]:f})},u=()=>{i>0&&o(i-1)},d=()=>{o(i+1)};return c.useEffect(()=>{i===r.length&&t({pathname:"/result",search:Tc({[Wx]:qx,...yI(r,a),tags:gI(a).join(",")}).toString()})},[i]),L.jsx(pt,{vertical:!0,justify:"center",align:"center",style:{backgroundColor:n.backgroundColor,border:"crimson solid 4px",borderRadius:"20px",...Rm(),width:"100%",margin:"20px auto",padding:"10px"},children:i{s(dt.ca),d()},children:e("quiz.answers.completely_agree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng x921d23 x1s7o1zc x1u857p9 xo30pwf x4u2hfz x1bg2uv5 x1ddbq83 xf7yueu",onClick:()=>{s(dt.a),d()},children:e("quiz.answers.agree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x18hdcfm xhi5ub0 xesu2hl xo30pwf x4u2hfz xfi8w6l x1ip647a x1o2m7i8",onClick:()=>{s(dt.sa),d()},children:e("quiz.answers.slightly_agree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1q364g7 xqk8jxb x1cbl2y9 xo30pwf x4u2hfz xzppbbw x1ymtr6h x117c0mp",onClick:()=>{s(dt.n),d()},children:e("quiz.answers.neutral")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x14pd9d7 x1tzallk xskgvrd xo30pwf x4u2hfz x120uepz xgl1eqo x2g70cf",onClick:()=>{s(dt.sd),d()},children:e("quiz.answers.slightly_disagree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng xynlrxq x96fq8s xrkmrrc xo30pwf x4u2hfz x71xlcl xc2cfjo x19lfm6a",onClick:()=>{s(dt.d),d()},children:e("quiz.answers.disagree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 xh8yej3 x1awj2ng x1tzsxso x1up30ld xixu7ty xo30pwf x4u2hfz xusra0j xae71uu x1aurdsm",onClick:()=>{s(dt.cd),d()},children:e("quiz.answers.completely_disagree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1ywq5td x8nnhh1 x42x0ya xo30pwf x4u2hfz x1nvupfo xrenkp0 x1jk8ig0",onClick:()=>{u()},disabled:i===0,children:e("quiz.answers.back")})]})]})})},SI=e=>e>0?`+${e}`:`${e}`,Bs={base:{textAlign:"x1hr2gdg",margin:"x20nx6h",$$css:!0},withColor:e=>[{color:"x19dipnz",$$css:!0},{"--color":e??"initial"}]},Qv=({title:e,data:t,nameTemplate:n,linkTemplate:r,fontSizeScale:i,borderColor:o,cardBodyPadding:a})=>{const{t:l}=ba(),s=vr(x=>x.theme.data.result),[u,d]=c.useState(!1,[]),f=3,p=(x,g,m)=>g?x:x.slice(0,Math.min(x.length,m)),h=x=>x<=10?"green":x<=20?"orange":"red",v=(x,g)=>(Object.entries(g).forEach(([m,y])=>{x=x.replace(`{{${m}}}`,y)}),x),b=(x,g,m,y)=>x+g*Math.min(Math.max(1,m)-1,y);return L.jsx(Zu,{title:e,styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:`${o} solid 4px`,color:s.content.color,backgroundColor:s.content.backgroundColor},body:{padding:a}},style:{width:"100%",padding:"5px",border:`${o} solid 4px`,borderRadius:"20px",color:s.content.color,backgroundColor:s.content.backgroundColor},extra:L.jsx(Ox,{unCheckedChildren:`${f}`,checkedChildren:"∞",size:"small",onChange:x=>{d(x)},style:{backgroundColor:o,margin:"5px 20px"}}),children:L.jsx(U9,{children:p(t,u,f).map((x,g)=>{const m=Math.round(100*x.diff),y=l(v(n,{id:x.id})),w=l(v(r,{id:x.id})),C=()=>L.jsxs(pt,{vertical:!1,justify:"center",align:"center",children:[x.icon&&L.jsx("img",{width:24,height:"auto",src:x.icon,alt:""}),L.jsx("span",{style:{margin:"3px 6px",fontSize:"large",fontWeight:"bold",color:s.content.color,textAlign:"center"},children:y}),w&&w.length>0&&L.jsx("a",{href:w,target:"_blank",rel:"noreferrer",children:L.jsx("img",{className:"x578xsc x1i3ajwb x1y0btm7 xmkeg23 x12oqio5 xavsq6f xo30pwf x4u2hfz xub7v3z",width:16,height:"auto",src:"https://upload.wikimedia.org/wikipedia/commons/5/5a/Wikipedia%27s_W.svg",alt:""})})]}),E=()=>L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx("span",{style:{textAlign:"center",fontWeight:"bold"},children:l("quiz.result.diff_card.compare_with",{name:y})}),L.jsxs("div",{style:{display:"grid",gridTemplateColumns:"auto auto auto auto"},children:[L.jsx("span",{className:"x1hr2gdg x20nx6h"}),L.jsx("span",{className:"x1hr2gdg x20nx6h",children:l("quiz.result.diff_card.user")}),L.jsx("span",{className:"x1hr2gdg x20nx6h",children:l("quiz.result.diff_card.target")}),L.jsx("span",{className:"x1hr2gdg x20nx6h"}),Object.keys(x.weight.target).map(S=>{const k=x.weight.user[S],_=x.weight.target[S],P=k-_;return[L.jsx("span",{className:"x1hr2gdg x20nx6h",children:l(`quiz.result.topics.${S}.title`)},`${S}.title`),L.jsx("span",{...Xp(Bs.base,Bs.withColor(h(Math.abs(P)))),children:`${k}%`},`${S}.user`),L.jsx("span",{className:"x1hr2gdg x20nx6h",children:`${_}%`},`${S}.target`),L.jsx("span",{...Xp(Bs.base,Bs.withColor(h(Math.abs(P)))),children:`${SI(P)}%`},`${S}.diff`)]})]})]});return L.jsx(W9,{xs:24,sm:24,md:g<3?24:12,lg:g<3?24:12,xl:g<3?24:12,xxl:g<3?24:12,children:L.jsx(pt,{vertical:!1,justify:"center",align:"center",children:L.jsx(A_,{title:L.jsx(C,{}),content:L.jsx(E,{}),children:L.jsxs(pt,{vertical:!1,justify:"center",align:"center",style:{margin:"5px"},children:[x.icon&&L.jsx("img",{width:i*b(24,-3,f,g),height:"auto",src:x.icon,alt:""}),L.jsx("span",{style:{margin:"3px 6px",fontSize:`${i*b(160,-28,f,g)}%`,fontWeight:"bold",color:s.content.color,textAlign:"center"},children:y}),L.jsx(Tz,{style:{margin:"3px 2px",color:h(m),fontSize:`${.8*i*b(160,-28,f,g)}%`}}),L.jsx("span",{style:{margin:"3px 2px",color:h(m),fontSize:`${.8*i*b(160,-28,f,g)}%`,textAlign:"center"},children:`${m}%`})]})})})},y)})})})},$i=({title:e,leftTitle:t,rightTitle:n,leftImage:r,rightImage:i,leftColor:o,rightColor:a,percent:l,descriptionTitle:s})=>{const{i18n:u}=ba(),d=es(),f=vr(b=>b.theme.data.result),p=()=>l>=60?o:l<=40?a:f.content.color,h=()=>u.language=="en"?{sm:{fontSize:"x-small",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},lg:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},xl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"}}[d.size]:{sm:{fontSize:"medium",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},lg:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},xl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"}}[d.size],v=()=>u.language=="en"?{sm:{fontSize:"x-small"},md:{fontSize:"small"},lg:{fontSize:"small"},xl:{fontSize:"medium"},xxl:{fontSize:"medium"}}[d.size]:{sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"medium"},xl:{fontSize:"large"},xxl:{fontSize:"large"}}[d.size];return L.jsx(Zu,{title:e,styles:{header:{fontSize:"x-large",textAlign:"center",borderBottom:`${p()} solid 4px`,color:f.content.color,backgroundColor:f.content.backgroundColor},body:{padding:{sm:"10px",md:"16px",lg:"24px",xl:"24px",xxl:"24px"}[d.size]}},style:{width:"100%",padding:"5px",border:`${p()} solid 4px`,borderRadius:"20px",color:f.content.color,backgroundColor:f.content.backgroundColor},children:L.jsxs(pt,{vertical:!1,justify:"center",align:"center",style:{width:"100%",maxWidth:"720px",margin:"auto"},children:[L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx(Tv,{width:60,src:r||"",preview:!1,style:{padding:"4px"}}),L.jsx("span",{style:{fontWeight:"bold",color:o,textAlign:"center",...h()},children:t})]}),d.md?L.jsxs(pt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",margin:"0px 20px"},children:[L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[L.jsx("span",{style:{margin:"5px"},children:`${l} %`}),L.jsx("span",{style:{...v(),color:p(),textAlign:"center"},children:s}),L.jsx("span",{style:{margin:"5px"},children:`${100-l} %`})]}),L.jsx(af,{type:"line",percent:l,showInfo:!1,strokeLinecap:"square",strokeColor:o,trailColor:a,style:{paddingBottom:"20px"}})]}):L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[L.jsx(af,{type:"dashboard",percent:l,showInfo:!0,status:"active",strokeColor:o,trailColor:"gray",size:50,style:{margin:"5px"}}),L.jsx("span",{style:{...v(),color:p(),textAlign:"center"},children:s}),L.jsx(af,{type:"dashboard",percent:100-l,showInfo:!0,status:"active",strokeColor:a,trailColor:"gray",size:50,style:{margin:"5px"}})]}),L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx(Tv,{width:60,src:i||"",preview:!1,style:{padding:"5px"}}),L.jsx("span",{style:{fontWeight:"bold",color:a,textAlign:"center",...h()},children:n})]})]})})},La={base:{display:"x1rg5ohu",whiteSpace:"xuxw1ft",borderRadius:"x1m3ak92",borderStyle:"x1y0btm7",borderWidth:"xdh2fpr",padding:"xvid92k",margin:"xd3odtx",$$css:!0},enabled:{color:"x1awj2ng",backgroundColor:"x1vgg7vs",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},enabledWithLink:{color:"x1awj2ng x1uezp9v x1vx81tn",backgroundColor:"x1vgg7vs xo30pwf x4u2hfz",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabled:{color:"x1awj2ng",backgroundColor:"x1cbl2y9",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabledWithLink:{color:"x1awj2ng x1q364g7 xqk8jxb",backgroundColor:"x1cbl2y9 xo30pwf x4u2hfz",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0}},CI=()=>{const[e]=h3(),{t,i18n:n}=ba(),r=es(),i=fa(),o=vr(m=>m.theme.data.result),[a,l]=kx.useMessage(),[s,u]=c.useState(!1,[]),d=e.get(Wx)==qx,f={economic:e.get("economic"),diplomatic:e.get("diplomatic"),civil:e.get("civil"),environmental:e.get("environmental"),societal:e.get("societal"),sovereignty:e.get("sovereignty"),us_vs_china:e.get("us_vs_china")},p=new Set(e.get("tags").split(",")),h=(m,y)=>y?m.sort((w,C)=>{const E=p.has(w.id),S=p.has(C.id);return E&&!S?-1:!E&&S?1:0}):m.filter(w=>p.has(w.id)),v=m=>n.language==m,b=m=>m<=10?6:m<=25?5:m<=40?4:m>=90?0:m>=75?1:m>=60?2:3,x=()=>({sm:"10px",md:"16px",lg:"24px",xl:"24px",xxl:"24px"})[r.size],g=()=>L.jsxs(pt,{vertical:!0,align:"center",style:{width:"100%",backgroundColor:o.content.backgroundColor,borderColor:o.content.color,borderStyle:"solid",borderWidth:"4px",borderRadius:"20px"},children:[L.jsx("h2",{style:{margin:"40px",color:"red"},children:t("quiz.result.api_error.description")}),L.jsx("span",{className:"xt7dq6l x1oin6zd xt65foa x1m3ak92 x9r2w2z x1y0btm7 xcgtkfa x117nqv4 x2b8uid x1awj2ng x14pd9d7 x1tzallk xskgvrd xo30pwf x4u2hfz x1nvupfo xgl1eqo x2g70cf",onClick:()=>{i("/")},children:t("quiz.result.api_error.index")})]});return L.jsx(pt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:o.backgroundColor,border:"crimson solid 4px",borderRadius:"20px",...Rm(),width:"100%",margin:"20px",padding:"5px"},children:d?L.jsxs(L.Fragment,{children:[L.jsx(Qv,{title:t("quiz.result.ideologies.name"),data:bI(f),nameTemplate:"quiz.result.ideologies.data.{{id}}.name",linkTemplate:"quiz.result.ideologies.data.{{id}}.link",fontSizeScale:v("en")?1:1.2,borderColor:"dodgerblue",cardBodyPadding:x()}),L.jsx(Qv,{title:t("quiz.result.political_parties.name"),data:wI(f),nameTemplate:"quiz.result.political_parties.data.{{id}}.name",linkTemplate:"quiz.result.political_parties.data.{{id}}.link",fontSizeScale:v("en")?.8:1,borderColor:"tomato",cardBodyPadding:x()}),L.jsx(Zu,{title:t("quiz.result.tags.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"magenta solid 4px",color:o.content.color,backgroundColor:o.content.backgroundColor},body:{padding:x()}},style:{width:"100%",padding:"5px",border:"magenta solid 4px",borderRadius:"20px",color:o.content.color,backgroundColor:o.content.backgroundColor},extra:L.jsx(Ox,{unCheckedChildren:"M",checkedChildren:"∞",size:"small",onChange:m=>{u(m)},style:{backgroundColor:"magenta",margin:"5px 20px"}}),children:h(Hx(),s).map(m=>{const y=t(`quiz.result.tags.data.${m.id}.name`),w=t(`quiz.result.tags.data.${m.id}.description`),C=t(`quiz.result.tags.data.${m.id}.link`),E=C&&C.length>0,S=()=>L.jsx("span",{...Xp(La.base,p.has(m.id)?E?La.enabledWithLink:La.enabled:E?La.disabledWithLink:La.disabled),children:y});return L.jsxs(pt,{justify:"start",align:"center",style:{margin:"10px auto 10px auto",maxWidth:"800px"},children:[E?L.jsx("a",{href:C,target:"_blank",rel:"noreferrer",children:L.jsx(S,{})}):L.jsx(S,{}),L.jsx("span",{style:{margin:"4px",color:p.has(m.id)?o.content.color:"gray"},children:w})]},`tags.${m.id}`)})}),L.jsx($i,{title:t("quiz.result.topics.economic.title"),leftTitle:t("quiz.result.values.equality.name"),rightTitle:t("quiz.result.values.efficiency.name"),leftImage:_e().equality.image,rightImage:_e().efficiency.image,leftColor:_e().equality.color,rightColor:_e().efficiency.color,percent:f.economic,descriptionTitle:t(`quiz.result.topics.economic.categories.${b(f.economic)}`)}),L.jsx($i,{title:t("quiz.result.topics.diplomatic.title"),leftTitle:t("quiz.result.values.globe.name"),rightTitle:t("quiz.result.values.nation.name"),leftImage:_e().globe.image,rightImage:_e().nation.image,leftColor:_e().globe.color,rightColor:_e().nation.color,percent:f.diplomatic,descriptionTitle:t(`quiz.result.topics.diplomatic.categories.${b(f.diplomatic)}`)}),L.jsx($i,{title:t("quiz.result.topics.civil.title"),leftTitle:t("quiz.result.values.liberty.name"),rightTitle:t("quiz.result.values.authority.name"),leftImage:_e().liberty.image,rightImage:_e().authority.image,leftColor:_e().liberty.color,rightColor:_e().authority.color,percent:f.civil,descriptionTitle:t(`quiz.result.topics.civil.categories.${b(f.civil)}`)}),L.jsx($i,{title:t("quiz.result.topics.environmental.title"),leftTitle:t("quiz.result.values.ecology.name"),rightTitle:t("quiz.result.values.production.name"),leftImage:_e().ecology.image,rightImage:_e().production.image,leftColor:_e().ecology.color,rightColor:_e().production.color,percent:f.environmental,descriptionTitle:t(`quiz.result.topics.environmental.categories.${b(f.environmental)}`)}),L.jsx($i,{title:t("quiz.result.topics.societal.title"),leftTitle:t("quiz.result.values.progress.name"),rightTitle:t("quiz.result.values.tradition.name"),leftImage:_e().progress.image,rightImage:_e().tradition.image,leftColor:_e().progress.color,rightColor:_e().tradition.color,percent:f.societal,descriptionTitle:t(`quiz.result.topics.societal.categories.${b(f.societal)}`)}),L.jsx($i,{title:t("quiz.result.topics.sovereignty.title"),leftTitle:t("quiz.result.values.independence.name"),rightTitle:t("quiz.result.values.unification.name"),leftImage:_e().independence.image,rightImage:_e().unification.image,leftColor:_e().independence.color,rightColor:_e().unification.color,percent:f.sovereignty,descriptionTitle:t(`quiz.result.topics.sovereignty.categories.${b(f.sovereignty)}`)}),L.jsx($i,{title:t("quiz.result.topics.us_vs_china.title"),leftTitle:t("quiz.result.values.pro_american.name"),rightTitle:t("quiz.result.values.pro_chinese.name"),leftImage:_e().pro_american.image,rightImage:_e().pro_chinese.image,leftColor:_e().pro_american.color,rightColor:_e().pro_chinese.color,percent:f.us_vs_china,descriptionTitle:t(`quiz.result.topics.us_vs_china.categories.${b(f.us_vs_china)}`)}),L.jsxs(pt,{vertical:!0,justify:"center",align:"center",gap:10,style:{width:"100%",padding:x(),backgroundColor:o.content.backgroundColor,borderColor:o.content.color,borderStyle:"solid",borderWidth:"4px",borderRadius:"20px"},children:[L.jsx("span",{style:{fontSize:r.md?"medium":"small",margin:"10px 20px",color:o.content.color},children:t("quiz.result.share.description")}),L.jsx("span",{style:{display:"block",overflowWrap:"break-word",color:o.content.color,borderColor:o.content.color,borderStyle:"solid",borderWidth:"1px",borderRadius:"10px",maxWidth:"100%",padding:"5px"},children:window.location.href})," ",l,L.jsx("span",{className:"x1rg5ohu xuxw1ft x1jylwp8 x16zck5j x1p3i4rr x1y0btm7 x9r2w2z x174e0gf x1awj2ng x1uezp9v x1vx81tn x1vgg7vs xo30pwf x4u2hfz x1y011xe x1mchgbu x5f13pb",onClick:()=>{navigator.clipboard.writeText(window.location.href),a.open({type:"success",content:t("quiz.result.share.copied")})},children:t("quiz.result.share.copy")})]})]}):L.jsx(g,{})})};function EI(){const e=vr(t=>t.theme.id);return L.jsx(Kb,{theme:{algorithm:e==Ai().light?jv.defaultAlgorithm:jv.darkAlgorithm},children:L.jsx(g3,{children:L.jsx(d3,{children:L.jsxs(qa,{path:"/",element:L.jsx(QT,{}),children:[L.jsx(qa,{path:"/",element:L.jsx(pI,{})}),L.jsx(qa,{path:"/quiz",element:L.jsx(xI,{})}),L.jsx(qa,{path:"/result",element:L.jsx(CI,{})})]})})})})}const kI={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Kc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kI,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,s]=a;for(let u=0;u{let[l,s]=a;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function Yv(e){return e==null?"":""+e}function $I(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const _I=/###/g;function al(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(_I,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function zI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>RI[t]):e}class TI{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const II=[" ",",","?","!",";"],MI=new TI(20);function BI(e,t,n){t=t||"",n=n||"";const r=II.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=MI.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Qp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&s0?e.replace("_","-"):e}class Jv extends od{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const s=Xc(this.data,l);return!s&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),s||!a||typeof r!="string"?s:Qp(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),Zv(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let s=Xc(this.data,l)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Vx(s,r,o):s={...s,...r},Zv(this.data,l,s),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Ux={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const e1={};class Yc extends od{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$I(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!BI(t,r,i);if(a&&!l){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],n),s=l[l.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${s}${w}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${w}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:a}const f=this.resolve(t,n);let p=f&&f.res;const h=f&&f.usedKey||a,v=f&&f.exactUsedKey||a,b=Object.prototype.toString.apply(p),x=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&x.indexOf(b)<0&&!(typeof g=="string"&&b==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=b==="[object Array]",C=w?[]:{},E=w?v:h;for(const S in p)if(Object.prototype.hasOwnProperty.call(p,S)){const k=`${E}${o}${S}`;C[S]=this.translate(k,{...n,joinArrays:!1,ns:l}),C[S]===k&&(C[S]=p[S])}p=C}}else if(m&&typeof g=="string"&&b==="[object Array]")p=p.join(g),p&&(p=this.extendTranslation(p,t,n,r));else{let w=!1,C=!1;const E=n.count!==void 0&&typeof n.count!="string",S=Yc.hasDefaultValue(n),k=E?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",P=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),O=P&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(p)&&S&&(w=!0,p=O),this.isValidLookup(p)||(C=!0,p=a);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:p,M=S&&O!==p&&this.options.updateMissing;if(C||w||M){if(this.logger.log(M?"updateKey":"missingKey",u,s,a,M?O:p),o){const $=this.resolve(a,{...n,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(let $=0;${const A=S&&B!==p?B:T;this.options.missingKeyHandler?this.options.missingKeyHandler($,s,z,A,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,s,z,A,M,n),this.emit("missingKey",$,s,z,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?j.forEach($=>{const z=this.pluralResolver.getSuffixes($,n);P&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(B=>{R([$],a+B,n[`defaultValue${B}`]||O)})}):R(j,a,O))}p=this.extendTranslation(p,t,n,f,r),C&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${a}`),(C||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,w?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const p=t.match(this.interpolator.nestingRegexp),h=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,l;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(s,n),d=u.key;i=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",h=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!e1[`${b[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(e1[`${b[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(g=>{if(this.isValidLookup(r))return;a=g;const m=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(m,d,g,x,n);else{let w;p&&(w=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(m.push(d+w),n.ordinal&&w.indexOf(E)===0&&m.push(d+w.replace(E,this.options.pluralSeparator)),h&&m.push(d+C)),v){const S=`${d}${this.options.contextSeparator}${n.context}`;m.push(S),p&&(m.push(S+w),n.ordinal&&w.indexOf(E)===0&&m.push(S+w.replace(E,this.options.pluralSeparator)),h&&m.push(S+C))}}let y;for(;y=m.pop();)this.isValidLookup(r)||(o=y,r=this.getResource(g,x,y,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function cf(e){return e.charAt(0).toUpperCase()+e.slice(1)}class t1{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pr.create("languageUtils")}getScriptPartFromCode(t){if(t=Qc(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Qc(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=cf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&o.indexOf(i)===0)return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let NI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const LI=["v1","v2","v3"],jI=["v4"],n1={zero:0,one:1,two:2,few:3,many:4,other:5};function DI(){const e={};return NI.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:AI[t.fc]}})}),e}class FI{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=pr.create("pluralResolver"),(!this.options.compatibilityJSON||jI.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=DI()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Qc(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>n1[i]-n1[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!LI.includes(this.options.compatibilityJSON)}}function r1(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=OI(e,t,n);return!o&&i&&typeof n=="string"&&(o=Qp(e,n,r),o===void 0&&(o=Qp(t,n,r))),o}class HI{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=pr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:zI,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xo(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xo(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?xo(n.nestingPrefix):n.nestingPrefixEscaped||xo("$t("),this.nestingSuffix=n.nestingSuffix?xo(n.nestingSuffix):n.nestingSuffixEscaped||xo(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(v){return v.replace(/\$/g,"$$$$")}const d=v=>{if(v.indexOf(this.formatSeparator)<0){const m=r1(n,s,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...i,...n,interpolationkey:v}):m}const b=v.split(this.formatSeparator),x=b.shift().trim(),g=b.join(this.formatSeparator).trim();return this.format(r1(n,s,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>u(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?u(this.escape(v)):u(v)}].forEach(v=>{for(l=0;o=v.regex.exec(t);){const b=o[1].trim();if(a=d(b),a===void 0)if(typeof f=="function"){const g=f(t,o,i);a=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=Yv(a));const x=v.safeValue(a);if(t=t.replace(o[0],x),p?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;function l(s,u){const d=this.nestingOptionsSeparator;if(s.indexOf(d)<0)return s;const f=s.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;s=f[0],p=this.interpolate(p,a);const h=p.match(/'/g),v=p.match(/"/g);(h&&h.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),u&&(a={...u,...a})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,b),`${s}${d}${p}`}return delete a.defaultValue,s}for(;i=this.nestingRegexp.exec(t);){let s=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=d.shift(),s=d,u=!0}if(o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Yv(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=s.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function WI(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[l,...s]=a.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function So(e){const t={};return function(r,i,o){const a=i+JSON.stringify(o);let l=t[a];return l||(l=e(Qc(i),o),t[a]=l),l(r)}}class qI{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=pr.create("formatter"),this.options=t,this.formats={number:So((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:So((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:So((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:So((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:So((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=So(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,s)=>{const{formatName:u,formatOptions:d}=WI(s);if(this.formats[u]){let f=l;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=p.locale||p.lng||i.locale||i.lng||r;f=this.formats[u](l,h,{...d,...i,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function VI(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class UI extends od{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=pr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},s={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),s[f]===void 0&&(s[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const l={};this.queue.forEach(s=>{PI(s.loaded,[o],a),VI(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{l[u]||(l[u]={});const d=s.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(s=>!s.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&i{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(u,d)},s=this.backend[r].bind(this.backend);if(s.length===2){try{const u=s(t,n);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return s(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const s={...a,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,i,s):d=u(t,n,r,i),d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}else u(t,n,r,i,l,s)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function i1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function o1(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ns(){}function GI(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ll extends od{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=o1(t),this.services={},this.logger=pr,this.modules={external:[]},GI(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=i1();this.options={...i,...this.options,...o1(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?pr.init(o(this.modules.logger),this.options):pr.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=qI);const f=new t1(this.options);this.store=new Jv(this.options.resources,this.options);const p=this.services;p.logger=pr,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new FI(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new HI(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new UI(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var v=arguments.length,b=new Array(v>1?v-1:0),x=1;x1?v-1:0),x=1;x{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Ns),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const s=ja(),u=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ns;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>a(s)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=ja();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Ns),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Ux.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=ja();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(s,function(){return r.t(...arguments)})},l=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const u=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(a,l){let s;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${s.keyPrefix}${p}${v}`):h=s.keyPrefix?`${s.keyPrefix}${p}${a}`:a,i.t(h,s)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const u=this.services.backendConnector.state[`${l}|${s}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=ja();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ja();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new t1(i1());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ll(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ns;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Ll(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Jv(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Yc(o.services,i),o.translator.on("*",function(l){for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;de;function jT(e,t=LT,n){(Ax?"production":void 0)!=="production"&&n&&!Vv&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Vv=!0);const r=AT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return NT(r),r}const Uv=e=>{(Ax?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?gT(e):e,n=(r,i)=>jT(t,r,i);return Object.assign(n,t),n},DT=e=>e?Uv(e):Uv,FT={id:"light",data:{main:{backgroundColor:"white"},welcome:{backgroundColor:"rgba(255, 255, 255, 0.8)",content:{color:"black",backgroundColor:"white"}},quiz:{backgroundColor:"rgba(255, 255, 255, 0.8)",content:{color:"black",backgroundColor:"white"}},result:{backgroundColor:"rgba(255, 255, 255, 0.8)",content:{color:"black",backgroundColor:"white"}}}},Gv=()=>FT,HT={id:"dark",data:{main:{backgroundColor:"#000000"},welcome:{backgroundColor:"rgba(0, 0, 0, 0.5)",content:{color:"white",backgroundColor:"#000000"}},quiz:{backgroundColor:"rgba(0, 0, 0, 0.5)",content:{color:"white",backgroundColor:"#000000"}},result:{backgroundColor:"rgba(0, 0, 0, 0.5)",content:{color:"white",backgroundColor:"#000000"}}}},WT=()=>HT,Ai=()=>({light:"light",dark:"dark"}),sf=e=>e=="light"?Gv():e=="dark"?WT():Gv(),vr=DT(e=>({theme:(()=>{const t=localStorage.getItem("ui.theme");return t&&t in Ai()?sf(t):sf(Ai().light)})(),setTheme:t=>e(()=>(localStorage.setItem("ui.theme",t),{theme:sf(t)}))})),qT=()=>{const e=fa(),{i18n:t}=ba(),n=vr(a=>a.theme.id),r=vr(a=>a.setTheme),i=[{key:"zhtw",text:"繁"},{key:"zhcn",text:"简"},{key:"en",text:"EN"}],o=a=>{localStorage.setItem("ui.language",a),t.changeLanguage(a)};return L.jsx(td.Header,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"0",position:"fixed",top:"0",zIndex:"1"},children:L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{...Rx(),width:"100%",margin:"0 auto"},children:[L.jsx("h2",{style:{fontSize:"xx-large",cursor:"pointer",color:"white",margin:"0px 5px"},onClick:()=>{e("/")},children:"TW Values"}),L.jsxs(c7,{size:4,children:[i.map((a,l)=>L.jsx("span",{onClick:()=>{o(a.key)},style:{borderColor:t.language==a.key?"transparent":"white",borderWidth:"1px",borderStyle:"solid",borderRadius:"6px",cursor:t.language==a.key?"default":"pointer",color:"white",padding:"0 4px",fontSize:"medium"},children:a.text},l)),L.jsx("span",{onClick:()=>{r(n==Ai().light?Ai().dark:Ai().light)},style:{color:"white",padding:"0 4px",fontSize:"medium",cursor:"pointer"},children:n==Ai().light?L.jsx(qz,{}):L.jsx(Dz,{})}),L.jsx("a",{href:`https://github.com/TWValues/TW-Values/tree/v${Dv.version}`,target:"_blank",rel:"noreferrer",children:L.jsx("span",{style:{color:"white",padding:"0 4px",fontSize:"medium"},children:`v${Dv.version}`})}),L.jsx("a",{href:"https://github.com/TWValues/TW-Values",target:"_blank",rel:"noreferrer",style:{padding:"0 2px"},children:L.jsx(Nz,{style:{color:"white",fontSize:"x-large"}})})]})]})})},VT=()=>{const e=fa();return L.jsx(td.Footer,{style:{width:"100%",height:"auto",backgroundColor:"crimson",padding:"5px"},children:L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{...Rx(),width:"100%",margin:"0 auto"},children:[L.jsx("h4",{style:{cursor:"pointer",color:"white",margin:"auto 0 auto 0"},onClick:()=>{e("/")},children:"TW Values"}),L.jsx("h4",{style:{color:"white",margin:"auto 0 auto 0"},children:"Copyright (c) 2023-2024 TW Values"})]})})},UT=e=>e,Kv=(e,t,n=UT)=>e.reduce((r,i)=>(r.length>0&&(r+=t),r+=n(i),r),""),GT="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3cpath%20d='M%200%20150%20Q%20150%200%20200%20250%20Q%20230%20350%20400%20150'%20stroke='blue'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20130%20Q%20100%20300%20250%20160%20Q%20350%2060%20400%20130'%20stroke='green'%20stroke-width='4'%20fill='none'/%3e%3cpath%20d='M%200%200%20Q%2050%20100%20200%20150%20Q%20350%20200%20400%20300'%20stroke='orange'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20300%20Q%20150%20250%20200%20150%20Q%20250%2050%20400%200'%20stroke='magenta'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%200%20200%20Q%20130%20240%20180%20300'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3cpath%20d='M%20180%200%20Q%20300%20150%20400%20200'%20stroke='brown'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",KT="data:image/svg+xml,%3csvg%20width='400'%20height='300'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20400%20300'%3e%3ccircle%20r='18'%20cx='250'%20cy='220'%20stroke='red'%20stroke-width='4'%20fill='none'%20/%3e%3cpolygon%20points='130,30%20110,65%20150,65'%20stroke='limegreen'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='350'%20y1='50'%20x2='380'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3cline%20x1='380'%20y1='50'%20x2='350'%20y2='80'%20stroke='aqua'%20stroke-width='4'%20fill='none'%20/%3e%3crect%20width='35'%20height='35'%20x='80'%20y='150'%20rx='5'%20ry='5'%20stroke='purple'%20stroke-width='4'%20fill='none'%20/%3e%3c/svg%3e",{Content:XT}=td,QT=()=>{const e=vr(i=>i.theme.data.main),t=[GT,KT],[n,r]=c.useState(t.map(()=>0),[]);return c.useEffect(()=>{window.addEventListener("scroll",i=>{const o=i.target.documentElement.scrollTop;r(t.map((a,l)=>`${(2*l+1)*o*-.01}em`))})}),L.jsxs(td,{style:{minHeight:"100vh",minWidth:"460px",overflow:"auto"},children:[L.jsx(qT,{}),L.jsx(XT,{style:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.backgroundColor,backgroundImage:Kv(t,",",i=>`url("${i}")`),backgroundRepeat:"repeat",backgroundPositionY:Kv(n,","),transition:"all 0.25s ease-out 0s",width:"100%",paddingTop:"64px"},children:L.jsx(c3,{})}),L.jsx(VT,{})]})},ki=({title:e,leftTitle:t,rightTitle:n,leftColor:r,rightColor:i,leftDescription:o,rightDescription:a})=>{const l=es(),s=vr(x=>x.theme.data.welcome),u=()=>({sm:{fontSize:"x-large"},md:{fontSize:"x-large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],d=()=>({sm:{fontSize:"large"},md:{fontSize:"large"},lg:{fontSize:"x-large"},xl:{fontSize:"x-large"},xxl:{fontSize:"x-large"}})[l.size],f=()=>({sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"large"},xl:{fontSize:"large"},xxl:{fontSize:"large"}})[l.size],p=({title:x,description:g,color:m})=>L.jsxs(pt,{vertical:!0,justify:"start",align:"center",gap:10,style:{height:"100%",margin:"2px",padding:"10px",borderColor:m,borderStyle:"solid",borderWidth:"2px",borderRadius:"20px"},children:[L.jsx("span",{style:{...d(),fontWeight:"bold",textTransform:"uppercase",color:m},children:x}),L.jsx("span",{style:{...f(),color:s.content.color},children:g})]}),h=()=>L.jsx("span",{style:{...u(),margin:"10px",textTransform:"uppercase",textAlign:"center",whiteSpace:"nowrap",color:s.content.color},children:e}),v=()=>L.jsx(p,{title:t,description:o,color:r}),b=()=>L.jsx(p,{title:n,description:a,color:i});return l.lg?L.jsxs("div",{style:{display:"grid",gridTemplateColumns:"320px auto 320px",width:"100%"},children:[L.jsx(v,{}),L.jsx(h,{}),L.jsx(b,{})]}):L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx(h,{}),L.jsxs("div",{style:{display:"grid",gridTemplateColumns:l.md?"45% 10% 45%":"50% 0% 50%",alignItems:"start",width:"100%"},children:[L.jsx(v,{}),L.jsx("div",{}),L.jsx(b,{})]})]})},YT="data:image/svg+xml,%3csvg%20fill='%23DC143C'%20height='256px'%20width='256px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20455.00%20455.00'%20xml:space='preserve'%20stroke='%23DC143C'%20transform='matrix(1,%200,%200,%201,%200,%200)'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke='%23CCCCCC'%20stroke-width='2.73'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cg%3e%3cpolygon%20points='150.618,395%20130.5,455%20324.5,455%20304.382,395%20'%3e%3c/polygon%3e%3cpath%20d='M0,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H0z'%3e%3c/path%3e%3cpath%20d='M318,260c0,37.555,30.669,68,68.5,68c37.832,0,68.5-30.445,68.5-68H318z'%3e%3c/path%3e%3cpath%20d='M68.5,148.477L103.012,230h32.577l-44.45-105H212.5v240h30V125h121.362l-44.45,105h32.577l34.511-81.523L421.011,230%20h32.578l-57.15-135H242.5V55.977c8.964-5.188,15-14.874,15-25.977c0-16.569-13.431-30-30-30s-30,13.431-30,30%20c0,11.102,6.036,20.789,15,25.977V95H58.561L1.411,230h32.578L68.5,148.477z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ZT="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ccircle%20cx='12'%20cy='12'%20r='10'%20stroke='%237B68EE'%20stroke-width='1.5'%3e%3c/circle%3e%3cpath%20d='M12%206V18'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3cpath%20d='M15%209.5C15%208.11929%2013.6569%207%2012%207C10.3431%207%209%208.11929%209%209.5C9%2010.8807%2010.3431%2012%2012%2012C13.6569%2012%2015%2013.1193%2015%2014.5C15%2015.8807%2013.6569%2017%2012%2017C10.3431%2017%209%2015.8807%209%2014.5'%20stroke='%237B68EE'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",JT="/TW-Values/assets/Globe-B1wDQrZS.svg",eI="data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20d='M5%2022V14M5%2014V4M5%2014L7.47067%2013.5059C9.1212%2013.1758%2010.8321%2013.3328%2012.3949%2013.958C14.0885%2014.6354%2015.9524%2014.7619%2017.722%2014.3195L17.8221%2014.2945C18.4082%2014.148%2018.6861%2013.4769%2018.3753%2012.9589L16.8147%2010.3578C16.4732%209.78863%2016.3024%209.50405%2016.2619%209.19451C16.2451%209.06539%2016.2451%208.93461%2016.2619%208.80549C16.3024%208.49595%2016.4732%208.21137%2016.8147%207.64221L18.0932%205.51132C18.4278%204.9536%2017.9211%204.26972%2017.2901%204.42746C15.8013%204.79967%2014.2331%204.69323%2012.8082%204.12329L12.3949%203.95797C10.8321%203.33284%209.1212%203.17576%207.47067%203.50587L5%204M5%204V2'%20stroke='%23ff8c00'%20stroke-width='1.5'%20stroke-linecap='round'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",tI="data:image/svg+xml,%3csvg%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20width='800px'%20height='800px'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'/%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFD700;}%20%3c/style%3e%3cg%3e%3crect%20x='146.663'%20y='55.252'%20class='st0'%20width='46.389'%20height='17.681'/%3e%3cpolygon%20class='st0'%20points='206.033,149.149%20188.641,78.726%20163.786,78.726%20155.501,78.726%20155.501,97.782%20167.691,109.972%20175.385,171.518%20'/%3e%3cpath%20class='st0'%20d='M368.801,250.766l-30.247-25.092c-2.906-2.413-6.655-3.557-10.409-3.176c-3.755,0.382-7.2,2.242-9.568,5.188%20l-10.554,13.125l16.649,87.072l46.12-57.456C375.613,264.429,374.725,255.677,368.801,250.766z'/%3e%3crect%20x='138.102'%20y='452.348'%20class='st0'%20width='225.347'%20height='59.652'/%3e%3cpath%20class='st0'%20d='M223.615,127.384c-0.152,0.565-0.401,1.085-0.52,1.663c19.45-3.774,39.617-3.82,59.081-0.145%20c-0.026-0.125-0.092-0.243-0.118-0.368l22.843-14.604c0.526-0.329,0.73-0.999,0.486-1.565c-0.25-0.572-0.874-0.882-1.472-0.73%20l-26.315,6.569c-0.572-0.842-1.243-1.578-1.894-2.354l8.989-25.848c0.204-0.578-0.04-1.217-0.572-1.519%20c-0.533-0.302-1.196-0.184-1.591,0.283l-17.294,20.535c-2.005-0.131-4.011-0.184-6.023-0.256l-5.411-29.346%20c-0.119-0.598-0.638-1.039-1.25-1.039c-0.611,0-1.137,0.441-1.242,1.039l-5.432,29.372c-2.478,0.099-4.951,0.145-7.423,0.342%20l-17.379-20.647c-0.394-0.467-1.065-0.592-1.604-0.283c-0.532,0.296-0.77,0.94-0.572,1.512l9.304,26.769l1.184-0.671%20c-0.795,0.966-1.539,1.96-2.209,3.025l0.92-2.13l-26.512-6.622c-0.604-0.145-1.222,0.158-1.472,0.73%20c-0.244,0.572-0.04,1.236,0.486,1.572L223.615,127.384z'/%3e%3cpath%20class='st0'%20d='M296.076,213.608c-0.868-4.57-3.938-8.41-8.193-10.271l-65.281-28.505l-9.107-23.198l-41.34,32.674%20c-5.688,4.49-7.042,12.572-3.117,18.667l15.459,24.046l-2.078,1.604c-5.109,3.932-6.904,10.83-4.346,16.748l10.04,23.264%20l20.404-21.048l4.754,4.616l-36.093,37.243l5.063,40.518l18.819-19.41l4.76,4.616l-28.07,28.958l-5.458,101.59h156.574%20l-4.359-28.972l9.942-2.492L296.076,213.608z%20M243.993,410.305l-6.312-2.026l28.162-87.821l6.312,2.025L243.993,410.305z'/%3e%3cpath%20class='st0'%20d='M157.71,49.176h8.778c-3.557-3.288-6.819-13.19,1.992-21.541c3.866-6.075,3.866-6.075,3.866-6.075%20s9.916,14.623,3.354,27.616h6.312c0,0,6.628-3.866,7.18-18.779c0.552-14.913-12.152-29.82-18.78-30.372%20c-6.628-0.552,1.105,8.278-12.704,17.668C143.901,27.083,149.977,45.31,157.71,49.176z'/%3e%3cpath%20class='st0'%20d='M228.587,164.582l-3.051,3.051l0.526,1.341l40.367,17.629c7.088-3.551,12.552-9.817,15.084-17.432%20l-28.051-31.996L228.587,164.582z'/%3e%3cpath%20class='st0'%20d='M283.057,159.347l-0.243-23.296l-1.874-0.356c-7.108-1.348-14.355-2.157-21.64-2.466l23.73,27.071%20C283.037,159.985,283.057,159.67,283.057,159.347z'/%3e%3cpath%20class='st0'%20d='M222.511,136.189l0.244,23.796c0,0.02,0,0.033,0,0.053l24.756-26.821c-7.785,0.283-15.55,1.137-23.146,2.616%20L222.511,136.189z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nI="/TW-Values/assets/Crown-D3eiD2Sz.svg",rI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='625'%20height='625'%3e%3cpath%20d='m10%20207l38%2030-36%2069c-18%2032%2013%2063%2033%2074%2019%2011%2050%2012%2078%2012l51-83%2038%2021-66-123-135%201m6%20169l82%20152c17%2021%2048%2026%2080%2025h87v-144l-165-1c-26%202-59-4-85-32m517-280l-45%2019-43-65c-19-31-61-19-80-7-19%2012-34%2038-48%2062l48%2085-37%2023%20140%202%2065-119zm-151-77l-173-2c-26%204-46%2029-61%2058l-42%2076%20126%2070%2081-143c11-23%2032-50%2069-58m8%20586l5-48%2078-6c37-2%2046-44%2045-67-1-22-16-48-31-72l-97.16.925-3-43-69%20122%2073%20114m140-94l85-150c9-25-3-54-21-81l-46-74-122%2076%2086%20140c15%2021%2028%2052%2017%2089z'%20fill='%23006E27'/%3e%3c/svg%3e",iI="data:image/svg+xml,%3csvg%20viewBox='0%200%2016%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cpath%20fill='%23778899'%20d='M4.4%201.3c-0.6%200.3-0.8%201.1-0.4%201.5%200.5-0.9%201.3-0.6%202.5%200.4%200.8%200.7%201.9%200.1%201.9%200.1s0.2%201.2%201.7%201.4c1.7%200.2%202.3-0.8%202.3-0.8s0.4%201%201.9%200.4c1.1-0.4%200.7-1.1%200.7-1.1s1%200%201-0.7c0-0.9-1.1-0.8-1.1-0.8s0.2-1-0.9-1.1c-1-0.1-1.3%200.5-1.3%200.5s-0.3-1.1-1.8-1.1c-1.4%200-1.9%201.3-1.9%201.3s-0.4-0.6-1.6-0.6c-0.9%200-1.3%200.7-1.3%200.7s-1.1-0.5-1.7-0.1z'%3e%3c/path%3e%3cpath%20fill='%23778899'%20d='M12%2012.1v-2.1l-4%202.1v-2.1h-2.4l-0.6-7h-2l-0.6%207h-2.4v6h16v-6l-4%202.1zM6%2014h-4v-2h4v2z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",oI="data:image/svg+xml,%3csvg%20width='800px'%20height='800px'%20viewBox='0%200%2064%2064'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--emojione'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cpath%20fill='%23ed4c5c'%20d='M52.382%205.075C40.137%203.203%2024.137%2028.036%209.213%2020.497c-.582-1.575-1.143-3.158-1.725-4.73C25.077%2019.105%2033.07-2.995%2050.658.345c.584%201.572%201.14%203.156%201.724%204.73'%3e%3c/path%3e%3cpath%20fill='%23ff8736'%20d='M54.105%209.804C43.762%207.786%2022.512%2031.453%2010.938%2025.227c-.585-1.573-1.14-3.157-1.725-4.73C26.802%2023.835%2034.794%201.734%2052.382%205.075c.584%201.572%201.14%203.156%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%23ffce31'%20d='M55.83%2014.535C45.762%2012.744%2027.086%2038.25%2012.662%2029.957c-.585-1.573-1.142-3.157-1.725-4.73C28.525%2028.566%2036.52%206.467%2054.105%209.805c.585%201.574%201.142%203.157%201.725%204.73'%3e%3c/path%3e%3cpath%20fill='%2383bf4f'%20d='M57.556%2019.265c-9.711-1.521-31.086%2025.813-43.171%2015.422c-.584-1.572-1.139-3.157-1.723-4.73c17.585%203.341%2025.579-18.762%2043.168-15.422c.583%201.573%201.142%203.156%201.726%204.73'%3e%3c/path%3e%3cpath%20fill='%23275fd9'%20d='M59.278%2023.995C48.22%2022.161%2028.595%2050.453%2016.109%2039.418c-.584-1.574-1.144-3.156-1.725-4.73c17.588%203.338%2025.582-18.761%2043.171-15.422c.583%201.573%201.141%203.155%201.723%204.729'%3e%3c/path%3e%3cpath%20fill='%239028e0'%20d='M61%2028.726c-17.583-3.34-25.579%2018.761-43.166%2015.421c-.584-1.572-1.142-3.156-1.725-4.729c17.588%203.338%2025.581-18.762%2043.169-15.423c.583%201.575%201.142%203.158%201.722%204.731'%3e%3c/path%3e%3cg%20fill='%233e4347'%3e%3ccircle%20cx='5.168'%20cy='13.336'%20r='2.168'%3e%3c/circle%3e%3cpath%20d='M7.04%2014.49l-2.56.929L22.186%2064h2.896z'%3e%3c/path%3e%3cpath%20d='M3.688%2015.602l4.076-1.48l.37%201.017l-4.077%201.48z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",aI="data:image/svg+xml,%3csvg%20height='200px'%20width='200px'%20version='1.1'%20id='_x32_'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23800000;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M78.641,118.933c22.88,0,41.416-18.551,41.416-41.414c0-22.887-18.536-41.423-41.416-41.423%20c-22.887,0-41.422,18.536-41.422,41.423C37.218,100.382,55.754,118.933,78.641,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M255.706,228.73v0.062c0.101,0,0.194-0.031,0.294-0.031c0.101,0,0.194,0.031,0.294,0.031v-0.062%20c15.562-0.317,28.082-12.976,28.082-28.601c0-15.648-12.52-28.299-28.082-28.616v-0.063c-0.101,0-0.194,0.031-0.294,0.031%20c-0.1,0-0.193-0.031-0.294-0.031v0.063c-15.563,0.317-28.082,12.968-28.082,28.616C227.623,215.754,240.143,228.413,255.706,228.73%20z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M433.359,118.933c22.887,0,41.423-18.551,41.423-41.414c0-22.887-18.536-41.423-41.423-41.423%20c-22.88,0-41.416,18.536-41.416,41.423C391.944,100.382,410.48,118.933,433.359,118.933z'%3e%3c/path%3e%3cpath%20class='st0'%20d='M470.097,138.553h-36.312h-18.404c-21.106,0-40.432,11.831-50.033,30.622l-33.494,97.967%20c-1.154,2.246-3.298,3.84-5.792,4.282c-2.493,0.442-5.048-0.309-6.914-2.036l-20.836-18.04c-6.233-5.769-14.408-8.973-22.902-8.973%20H256h-19.41c-8.494,0-16.669,3.204-22.902,8.973l-20.835,18.04c-1.866,1.727-4.421,2.478-6.914,2.036%20c-2.492-0.442-4.637-2.036-5.791-4.282l-33.495-97.967c-9.6-18.791-28.926-30.622-50.032-30.622H78.215H41.902%20C21.834,138.553,0,160.387,0,180.464v139.211c0,10.034,8.13,18.171,18.164,18.171c4.939,0,0,0,12.682,0l6.906,118.725%20c0,10.676,8.664,19.332,19.34,19.332c4.506,0,12.814,0,21.122,0c8.308,0,16.616,0,21.122,0c10.676,0,19.34-8.656,19.34-19.332%20l6.906-118.725l-0.085-84.766c0-1.339,0.914-2.493,2.222-2.818c1.309-0.31,2.648,0.309,3.26,1.502l26.572,65.401%20c3.206,6.256,9.152,10.654,16.074,11.885c6.922,1.231,14.022-0.844,19.186-5.613l25.426-18.729%20c0.852-0.782,2.083-0.984,3.136-0.542c1.061,0.473,1.743,1.518,1.743,2.663l0.093,73.508l4.777,82.187%20c0,7.387,6.001,13.379,13.395,13.379c3.113,0,8.865,0,14.618,0c5.753,0,11.506,0,14.618,0c7.394,0,13.394-5.992,13.394-13.379%20l4.778-82.187l0.093-73.508c0-1.146,0.681-2.19,1.742-2.663c1.053-0.442,2.284-0.24,3.136,0.542l25.427,18.729%20c5.164,4.769,12.264,6.844,19.186,5.613c6.922-1.231,12.868-5.629,16.073-11.885l26.573-65.401%20c0.611-1.192,1.951-1.812,3.259-1.502c1.309,0.325,2.222,1.478,2.222,2.818l-0.085,84.766l6.906,118.725%20c0,10.676,8.664,19.332,19.341,19.332c4.507,0,12.814,0,21.122,0c8.308,0,16.616,0,21.121,0c10.677,0,19.342-8.656,19.342-19.332%20l6.906-118.725c12.682,0,7.742,0,12.682,0c10.034,0,18.164-8.137,18.164-18.171V180.464%20C512,160.387,490.166,138.553,470.097,138.553z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e",lI="/TW-Values/assets/FlagOfTWIndependence-BSLd3Q55.svg",sI="/TW-Values/assets/ChinaTerritory-1UXGxmof.svg",cI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='1235'%20height='650'%20viewBox='0%200%207410%203900'%3e%3cpath%20d='M0,0h7410v3900H0'%20fill='%23b31942'/%3e%3cpath%20d='M0,450H7410m0,600H0m0,600H7410m0,600H0m0,600H7410m0,600H0'%20stroke='%23FFF'%20stroke-width='300'/%3e%3cpath%20d='M0,0h2964v2100H0'%20fill='%230a3161'/%3e%3cg%20fill='%23FFF'%3e%3cg%20id='s18'%3e%3cg%20id='s9'%3e%3cg%20id='s5'%3e%3cg%20id='s4'%3e%3cpath%20id='s'%20d='M247,90%20317.534230,307.082039%20132.873218,172.917961H361.126782L176.465770,307.082039z'/%3e%3cuse%20xlink:href='%23s'%20y='420'/%3e%3cuse%20xlink:href='%23s'%20y='840'/%3e%3cuse%20xlink:href='%23s'%20y='1260'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20y='1680'/%3e%3c/g%3e%3cuse%20xlink:href='%23s4'%20x='247'%20y='210'/%3e%3c/g%3e%3cuse%20xlink:href='%23s9'%20x='494'/%3e%3c/g%3e%3cuse%20xlink:href='%23s18'%20x='988'/%3e%3cuse%20xlink:href='%23s9'%20x='1976'/%3e%3cuse%20xlink:href='%23s5'%20x='2470'/%3e%3c/g%3e%3c/svg%3e",uI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='900'%20height='600'%3e%3cpath%20fill='%23EE1C25'%20d='M0%200h900v600H0z'/%3e%3cg%20transform='translate(150,150)%20scale(3)'%3e%3cpath%20id='s'%20d='M0,-30%2017.63355,24.27051%20-28.53171,-9.27051H28.53171L-17.63355,24.27051z'%20fill='%23FF0'/%3e%3c/g%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,60)%20rotate(23.036243)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,120)%20rotate(45.869898)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(360,210)%20rotate(69.945396)'/%3e%3cuse%20xlink:href='%23s'%20transform='translate(300,270)%20rotate(20.659808)'/%3e%3c/svg%3e",_e=()=>({equality:{color:"crimson",image:YT},efficiency:{color:"mediumslateblue",image:ZT},globe:{color:"royalblue",image:JT},nation:{color:"darkorange",image:eI},liberty:{color:"gold",image:tI},authority:{color:"red",image:nI},ecology:{color:"forestgreen",image:rI},production:{color:"lightslategray",image:iI},progress:{color:"magenta",image:oI},tradition:{color:"maroon",image:aI},independence:{color:"green",image:lI},unification:{color:"red",image:sI},pro_american:{color:"blue",image:cI},pro_chinese:{color:"red",image:uI}}),ee={p100:16,p075:12,p050:8},Lx=()=>[{id:"q0000",weight:{economic:ee.p100}},{id:"q0001",weight:{economic:ee.p100}},{id:"q0002",weight:{economic:ee.p100}},{id:"q0003",weight:{economic:ee.p100}},{id:"q0004",weight:{economic:ee.p100}},{id:"q0100",weight:{economic:-ee.p100}},{id:"q0101",weight:{economic:-ee.p100}},{id:"q0102",weight:{economic:-ee.p100}},{id:"q0103",weight:{economic:-ee.p100}},{id:"q0104",weight:{economic:-ee.p100}},{id:"q0105",weight:{economic:-ee.p100}},{id:"q0200",weight:{diplomatic:ee.p100}},{id:"q0201",weight:{diplomatic:ee.p100}},{id:"q0202",weight:{diplomatic:ee.p075,sovereignty:-ee.p050}},{id:"q0203",weight:{diplomatic:ee.p100,civil:ee.p075}},{id:"q0300",weight:{diplomatic:-ee.p100,economic:-ee.p050}},{id:"q0301",weight:{diplomatic:-ee.p100}},{id:"q0302",weight:{diplomatic:-ee.p100}},{id:"q0303",weight:{diplomatic:-ee.p100}},{id:"q0400",weight:{civil:ee.p100,societal:ee.p050}},{id:"q0401",weight:{civil:ee.p100}},{id:"q0402",weight:{civil:ee.p100}},{id:"q0403",weight:{civil:ee.p100}},{id:"q0404",weight:{civil:ee.p100}},{id:"q0405",weight:{civil:ee.p100}},{id:"q0500",weight:{civil:-ee.p100}},{id:"q0501",weight:{civil:-ee.p100}},{id:"q0502",weight:{civil:-ee.p100}},{id:"q0503",weight:{civil:-ee.p100,diplomatic:-ee.p075}},{id:"q0504",weight:{civil:-ee.p100}},{id:"q0505",weight:{civil:-ee.p100}},{id:"q0506",weight:{civil:-ee.p100}},{id:"q0600",weight:{societal:ee.p100}},{id:"q0601",weight:{societal:ee.p100}},{id:"q0602",weight:{societal:ee.p100}},{id:"q0603",weight:{societal:ee.p100}},{id:"q0604",weight:{societal:ee.p100}},{id:"q0605",weight:{societal:ee.p100}},{id:"q0700",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0701",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0702",weight:{societal:-ee.p100}},{id:"q0703",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0704",weight:{societal:-ee.p100,civil:-ee.p050}},{id:"q0705",weight:{societal:-ee.p100}},{id:"q0800",weight:{environmental:ee.p100}},{id:"q0801",weight:{environmental:ee.p100}},{id:"q0802",weight:{environmental:ee.p100}},{id:"q0803",weight:{environmental:ee.p100}},{id:"q0900",weight:{environmental:-ee.p100}},{id:"q0901",weight:{environmental:-ee.p100}},{id:"q0902",weight:{environmental:-ee.p100}},{id:"q1000",weight:{sovereignty:ee.p100}},{id:"q1001",weight:{sovereignty:ee.p100,diplomatic:-ee.p075}},{id:"q1002",weight:{sovereignty:ee.p100,diplomatic:-ee.p050}},{id:"q1003",weight:{sovereignty:ee.p100}},{id:"q1100",weight:{sovereignty:-ee.p100}},{id:"q1101",weight:{sovereignty:-ee.p100,us_vs_china:-ee.p075}},{id:"q1102",weight:{sovereignty:-ee.p100,us_vs_china:-ee.p075}},{id:"q1103",weight:{sovereignty:-ee.p075,diplomatic:ee.p050}},{id:"q1104",weight:{}},{id:"q1200",weight:{us_vs_china:ee.p100}},{id:"q1201",weight:{us_vs_china:ee.p100}},{id:"q1202",weight:{us_vs_china:ee.p100}},{id:"q1301",weight:{us_vs_china:-ee.p100,diplomatic:-ee.p050}},{id:"q1302",weight:{us_vs_china:-ee.p100}},{id:"q1303",weight:{us_vs_china:-ee.p100}}];var zm={};Object.defineProperty(zm,"__esModule",{value:!0});var jx=zm.styleq=void 0,dI=new WeakMap,fI="$$css";function Dx(e){var t,n,r;return e!=null&&(t=e.disableCache===!0,n=e.disableMix===!0,r=e.transform),function(){for(var o=[],a="",l=null,s=t?null:dI,u=new Array(arguments.length),d=0;d0;){var f=u.pop();if(!(f==null||f===!1)){if(Array.isArray(f)){for(var p=0;p0&&(a.style=o),a}const Xv={},pI=()=>{const{t:e}=ba(),t=fa(),n=vr(r=>r.theme.data.welcome);return L.jsxs(pt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:n.backgroundColor,border:"crimson solid 4px",borderRadius:"20px",...Rm(),width:"100%",margin:"20px auto",padding:"5px"},children:[L.jsxs(pt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",backgroundColor:n.content.backgroundColor,border:"dodgerblue solid 4px",borderRadius:"20px",padding:"16px"},children:[L.jsx("h1",{style:{fontSize:"xx-large",color:n.content.color,padding:"10px"},children:e("quiz.welcome.title")}),L.jsx("span",{style:{color:n.content.color,fontSize:"large",padding:"10px"},children:e("quiz.welcome.content")}),L.jsx(Kr,{style:{backgroundColor:"crimson"}}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xt0237e x16zck5j xng8ra x1y0btm7 x9r2w2z x174e0gf x1awj2ng x1uezp9v x1vx81tn x1vgg7vs xo30pwf x4u2hfz x1y011xe x1mchgbu x5f13pb",style:{width:"100%",maxWidth:"480px"},onClick:()=>{t("/quiz")},children:e("quiz.welcome.start")}),L.jsx(H5,{message:e("quiz.welcome.privacy"),type:"info",showIcon:!0,style:{margin:"20px"}})]}),L.jsxs(pt,{vertical:!0,justify:"center",align:"center",gap:10,style:{width:"100%",backgroundColor:n.content.backgroundColor,border:"orange solid 4px",borderRadius:"20px",padding:"16px"},children:[L.jsx("h2",{style:{fontSize:"x-large",color:n.content.color,padding:"10px"},children:e("quiz.introduction.title")}),L.jsx("span",{style:{fontSize:"large",color:n.content.color},children:e("quiz.introduction.description",{count:Lx().length})}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.economic.title"),leftTitle:e("quiz.result.values.equality.name"),rightTitle:e("quiz.result.values.efficiency.name"),leftColor:_e().equality.color,rightColor:_e().efficiency.color,leftDescription:e("quiz.result.values.equality.description"),rightDescription:e("quiz.result.values.efficiency.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.diplomatic.title"),leftTitle:e("quiz.result.values.globe.name"),rightTitle:e("quiz.result.values.nation.name"),leftColor:_e().globe.color,rightColor:_e().nation.color,leftDescription:e("quiz.result.values.globe.description"),rightDescription:e("quiz.result.values.nation.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.civil.title"),leftTitle:e("quiz.result.values.liberty.name"),rightTitle:e("quiz.result.values.authority.name"),leftColor:_e().liberty.color,rightColor:_e().authority.color,leftDescription:e("quiz.result.values.liberty.description"),rightDescription:e("quiz.result.values.authority.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.environmental.title"),leftTitle:e("quiz.result.values.ecology.name"),rightTitle:e("quiz.result.values.production.name"),leftColor:_e().ecology.color,rightColor:_e().production.color,leftDescription:e("quiz.result.values.ecology.description"),rightDescription:e("quiz.result.values.production.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.societal.title"),leftTitle:e("quiz.result.values.progress.name"),rightTitle:e("quiz.result.values.tradition.name"),leftColor:_e().progress.color,rightColor:_e().tradition.color,leftDescription:e("quiz.result.values.progress.description"),rightDescription:e("quiz.result.values.tradition.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.sovereignty.title"),leftTitle:e("quiz.result.values.independence.name"),rightTitle:e("quiz.result.values.unification.name"),leftColor:_e().independence.color,rightColor:_e().unification.color,leftDescription:e("quiz.result.values.independence.description"),rightDescription:e("quiz.result.values.unification.description")}),L.jsx(Kr,{style:{backgroundColor:n.content.color}}),L.jsx(ki,{title:e("quiz.result.topics.us_vs_china.title"),leftTitle:e("quiz.result.values.pro_american.name"),rightTitle:e("quiz.result.values.pro_chinese.name"),leftColor:_e().pro_american.color,rightColor:_e().pro_chinese.color,leftDescription:e("quiz.result.values.pro_american.description"),rightDescription:e("quiz.result.values.pro_chinese.description")})]})]})},mI=e=>{for(let t=0;t[{id:"roc_unification",predicate:e=>e.q1104>dt.n},{id:"roc_independence",predicate:e=>e.q1000>dt.n},{id:"tw_independence",predicate:e=>e.q1001>dt.n},{id:"prc_unification",predicate:e=>e.q1101>dt.n},{id:"death_penalty_abolitionists",predicate:e=>e.q0603>dt.n},{id:"homophobia",predicate:e=>e.q0602e.q0705>dt.n},{id:"feminism",predicate:e=>{let t=0;return t+=e.q0602>dt.n,t+=e.q0701dt.n&&e.q0705=2}},{id:"feminism_buffet",predicate:e=>e.q0605{const t=Object.entries(e);return t.filter(r=>dt.sd<=r[1]&&r[1]<=dt.sa).length>=.8*t.length}}],gI=e=>Hx().filter(t=>t.predicate(e)).map(t=>t.id),Wx="api_version",qx=1,hI=()=>[{id:"anarcho_communism",weight:{economic:100,diplomatic:50,civil:100,societal:90}},{id:"libertarian_communism",weight:{economic:100,diplomatic:70,civil:80,societal:80}},{id:"trotskyism",weight:{economic:100,diplomatic:100,civil:60,societal:80}},{id:"marxism",weight:{economic:100,diplomatic:70,civil:40,societal:80}},{id:"de_leonism",weight:{economic:100,diplomatic:30,civil:30,societal:80}},{id:"leninism",weight:{economic:100,diplomatic:40,civil:20,societal:70}},{id:"stalinism",weight:{economic:100,diplomatic:20,civil:0,societal:60}},{id:"religious_communism",weight:{economic:100,diplomatic:50,civil:30,societal:30}},{id:"state_socialism",weight:{economic:80,diplomatic:30,civil:30,societal:70}},{id:"theocratic_socialism",weight:{economic:80,diplomatic:50,civil:30,societal:20}},{id:"religious_socialism",weight:{economic:80,diplomatic:50,civil:70,societal:20}},{id:"democratic_socialism",weight:{economic:80,diplomatic:50,civil:50,societal:80}},{id:"revolutionary_socialism",weight:{economic:80,diplomatic:20,civil:50,societal:70}},{id:"liberal_socialism",weight:{economic:80,diplomatic:70,civil:60,societal:80}},{id:"libertarian_socialism",weight:{economic:80,diplomatic:80,civil:80,societal:80}},{id:"anarcho_syndicalism",weight:{economic:80,diplomatic:50,civil:100,societal:80}},{id:"left_wing_populism",weight:{economic:60,diplomatic:40,civil:30,societal:70}},{id:"theocratic_distributism",weight:{economic:60,diplomatic:40,civil:30,societal:20}},{id:"distributism",weight:{economic:60,diplomatic:50,civil:50,societal:20}},{id:"social_liberalism",weight:{economic:60,diplomatic:60,civil:60,societal:80}},{id:"christian_democracy",weight:{economic:60,diplomatic:60,civil:50,societal:30}},{id:"social_democracy",weight:{economic:60,diplomatic:70,civil:60,societal:80}},{id:"progressivism",weight:{economic:60,diplomatic:80,civil:60,societal:100}},{id:"anarcho_mutualism",weight:{economic:60,diplomatic:50,civil:100,societal:70}},{id:"national_totalitarianism",weight:{economic:50,diplomatic:20,civil:0,societal:50}},{id:"global_totalitarianism",weight:{economic:50,diplomatic:80,civil:0,societal:50}},{id:"technocracy",weight:{economic:60,diplomatic:60,civil:20,societal:70}},{id:"centrist",weight:{economic:50,diplomatic:50,civil:50,societal:50}},{id:"liberalism",weight:{economic:50,diplomatic:60,civil:60,societal:60}},{id:"religious_anarchism",weight:{economic:50,diplomatic:50,civil:100,societal:20}},{id:"right_wing_populism",weight:{economic:40,diplomatic:30,civil:30,societal:30}},{id:"libertarian_conservatism",weight:{economic:30,diplomatic:40,civil:80,societal:30}},{id:"liberal_conservatism",weight:{economic:40,diplomatic:40,civil:50,societal:30}},{id:"reactionary",weight:{economic:40,diplomatic:40,civil:40,societal:10}},{id:"social_libertarianism",weight:{economic:60,diplomatic:70,civil:80,societal:70}},{id:"libertarianism",weight:{economic:40,diplomatic:60,civil:80,societal:60}},{id:"anarcho_egoism",weight:{economic:40,diplomatic:50,civil:100,societal:50}},{id:"nazism",weight:{economic:40,diplomatic:0,civil:0,societal:10}},{id:"autocracy",weight:{economic:50,diplomatic:20,civil:20,societal:50}},{id:"fascism",weight:{economic:40,diplomatic:20,civil:20,societal:20}},{id:"capitalist_fascism",weight:{economic:20,diplomatic:20,civil:20,societal:20}},{id:"conservatism",weight:{economic:30,diplomatic:40,civil:40,societal:20}},{id:"neo_liberalism",weight:{economic:30,diplomatic:30,civil:50,societal:60}},{id:"classical_liberalism",weight:{economic:30,diplomatic:60,civil:60,societal:80}},{id:"authoritarian_capitalism",weight:{economic:20,diplomatic:30,civil:20,societal:40}},{id:"state_capitalism",weight:{economic:20,diplomatic:50,civil:30,societal:50}},{id:"neo_conservatism",weight:{economic:20,diplomatic:20,civil:40,societal:20}},{id:"fundamentalism",weight:{economic:20,diplomatic:30,civil:30,societal:5}},{id:"libertarian_capitalism",weight:{economic:20,diplomatic:50,civil:80,societal:60}},{id:"market_anarchism",weight:{economic:20,diplomatic:50,civil:100,societal:50}},{id:"objectivism",weight:{economic:10,diplomatic:50,civil:90,societal:40}},{id:"totalitarian_capitalism",weight:{economic:0,diplomatic:30,civil:0,societal:50}},{id:"ultra_capitalism",weight:{economic:0,diplomatic:40,civil:50,societal:50}},{id:"anarcho_capitalism",weight:{economic:0,diplomatic:50,civil:100,societal:50}}],vI=()=>[{id:"kmt",icon:"https://upload.wikimedia.org/wikipedia/commons/d/dc/Blue_Sky_White_Sun.png",weight:{economic:35,civil:40,environmental:35,societal:30,sovereignty:30,us_vs_china:35}},{id:"lp",icon:"https://upload.wikimedia.org/wikipedia/commons/9/9d/Labor_Party_%28Taiwan%29_emblem.svg",weight:{economic:80,civil:50,environmental:50,societal:50,sovereignty:10,us_vs_china:10}},{id:"dpp",icon:"https://upload.wikimedia.org/wikipedia/commons/1/16/Green_Island_with_White_Cross.svg",weight:{economic:60,civil:55,environmental:60,societal:60,sovereignty:70,us_vs_china:70}},{id:"np",icon:"https://upload.wikimedia.org/wikipedia/commons/3/32/LogoCNP.svg",weight:{economic:30,civil:30,environmental:35,societal:25,sovereignty:20,us_vs_china:25}},{id:"gpt",icon:"https://upload.wikimedia.org/wikipedia/commons/a/a5/Green_Party_Taiwan_logo.png",weight:{economic:65,civil:70,environmental:90,societal:75,sovereignty:70,us_vs_china:70}},{id:"pfp",icon:"https://upload.wikimedia.org/wikipedia/commons/4/4a/LogoPFP.svg",weight:{economic:35,civil:40,environmental:35,societal:30,sovereignty:25,us_vs_china:30}},{id:"tsu",icon:"https://upload.wikimedia.org/wikipedia/commons/4/4c/Taiwan_orange.svg",weight:{economic:40,civil:50,environmental:30,societal:30,sovereignty:80,us_vs_china:70}},{id:"cupp",icon:"https://upload.wikimedia.org/wikipedia/zh/6/66/China_unify_party_logo.gif",weight:{economic:10,civil:10,environmental:20,societal:20,sovereignty:10,us_vs_china:10}},{id:"npp",icon:"https://upload.wikimedia.org/wikipedia/commons/2/29/Black_Lik_Gold_Circle.svg",weight:{economic:70,civil:70,environmental:80,societal:75,sovereignty:80,us_vs_china:65}},{id:"sdp",icon:"https://upload.wikimedia.org/wikipedia/zh/2/2b/SDparty_logo.png",weight:{economic:60,civil:60,environmental:60,societal:80,sovereignty:70,us_vs_china:70}},{id:"tsp",icon:"https://upload.wikimedia.org/wikipedia/commons/7/77/Daijish%C5%8D_in_brown.svg",weight:{economic:60,civil:75,environmental:50,societal:60,sovereignty:80,us_vs_china:70}},{id:"tpp",icon:"https://upload.wikimedia.org/wikipedia/commons/3/3c/Emblem_of_Taiwan_People%27s_Party_2019_Logo_Only.svg",weight:{economic:45,civil:45,environmental:45,societal:45,sovereignty:45,us_vs_china:45}}],yI=(e,t)=>{const n=r=>{const i=u=>u.reduce((d,f)=>d+f.prop*t[f.id],0),o=u=>u.reduce((d,f)=>d+Math.abs(f.prop),0),a=(u,d)=>100*(u+d)/(2*d),l=i(r),s=o(r);return Math.round(a(l,s))};return{economic:n(e.map(r=>({id:r.id,prop:r.weight.economic||0}))),diplomatic:n(e.map(r=>({id:r.id,prop:r.weight.diplomatic||0}))),civil:n(e.map(r=>({id:r.id,prop:r.weight.civil||0}))),environmental:n(e.map(r=>({id:r.id,prop:r.weight.environmental||0}))),societal:n(e.map(r=>({id:r.id,prop:r.weight.societal||0}))),sovereignty:n(e.map(r=>({id:r.id,prop:r.weight.sovereignty||0}))),us_vs_china:n(e.map(r=>({id:r.id,prop:r.weight.us_vs_china||0})))}},bI=e=>hI().map(t=>{const n={economic:e.economic,diplomatic:e.diplomatic,civil:e.civil,societal:Math.round(.25*e.environmental+.75*e.societal)},r=Math.pow(Math.abs(t.weight.economic-n.economic),2)+Math.pow(Math.abs(t.weight.diplomatic-n.diplomatic),2)+Math.pow(Math.abs(t.weight.civil-n.civil),2)+Math.pow(Math.abs(t.weight.societal-n.societal),2),i=Math.sqrt(r/4)/100;return{id:t.id,distance:r,diff:i,weight:{target:t.weight,user:n}}}).sort((t,n)=>t.distancen.distance?1:0),wI=e=>vI().map(t=>{const n={economic:1,civil:1,environmental:.5,societal:1,sovereignty:1,us_vs_china:.5},r=Math.pow(Math.abs(t.weight.economic-e.economic),2)*n.economic+Math.pow(Math.abs(t.weight.civil-e.civil),2)*n.civil+Math.pow(Math.abs(t.weight.environmental-e.environmental),2)*n.environmental+Math.pow(Math.abs(t.weight.societal-e.societal),2)*n.societal+Math.pow(Math.abs(t.weight.sovereignty-e.sovereignty),2)*n.sovereignty+Math.pow(Math.abs(t.weight.us_vs_china-e.us_vs_china),2)*n.us_vs_china,i=Math.sqrt(r/6)/100;return{id:t.id,icon:t.icon,distance:r,diff:i,weight:{target:t.weight,user:e}}}).sort((t,n)=>t.distancen.distance?1:0),xI=()=>{const{t:e}=ba(),t=fa(),n=vr(f=>f.theme.data.quiz),r=c.useMemo(()=>mI(Lx()),[]),[i,o]=c.useState(0),[a,l]=c.useState(r.reduce((f,p)=>({...f,[p.id]:0}),{})),s=f=>{l({...a,[r[i].id]:f})},u=()=>{i>0&&o(i-1)},d=()=>{o(i+1)};return c.useEffect(()=>{i===r.length&&t({pathname:"/result",search:Tc({[Wx]:qx,...yI(r,a),tags:gI(a).join(",")}).toString()})},[i]),L.jsx(pt,{vertical:!0,justify:"center",align:"center",style:{backgroundColor:n.backgroundColor,border:"crimson solid 4px",borderRadius:"20px",...Rm(),width:"100%",margin:"20px auto",padding:"10px"},children:i{s(dt.ca),d()},children:e("quiz.answers.completely_agree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng x921d23 x1s7o1zc x1u857p9 xo30pwf x4u2hfz x1bg2uv5 x1ddbq83 xf7yueu",onClick:()=>{s(dt.a),d()},children:e("quiz.answers.agree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x18hdcfm xhi5ub0 xesu2hl xo30pwf x4u2hfz xfi8w6l x1ip647a x1o2m7i8",onClick:()=>{s(dt.sa),d()},children:e("quiz.answers.slightly_agree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1q364g7 xqk8jxb x1cbl2y9 xo30pwf x4u2hfz xzppbbw x1ymtr6h x117c0mp",onClick:()=>{s(dt.n),d()},children:e("quiz.answers.neutral")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x65xoit x1awj2ng x14pd9d7 x1tzallk xskgvrd xo30pwf x4u2hfz x120uepz xgl1eqo x2g70cf",onClick:()=>{s(dt.sd),d()},children:e("quiz.answers.slightly_disagree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1f9tj09 x1awj2ng xynlrxq x96fq8s xrkmrrc xo30pwf x4u2hfz x71xlcl xc2cfjo x19lfm6a",onClick:()=>{s(dt.d),d()},children:e("quiz.answers.disagree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 xh8yej3 x1awj2ng x1tzsxso x1up30ld xixu7ty xo30pwf x4u2hfz xusra0j xae71uu x1aurdsm",onClick:()=>{s(dt.cd),d()},children:e("quiz.answers.completely_disagree")}),L.jsx("span",{className:"x78zum5 xdt5ytf xl56j7k x6s0dn4 xcgtkfa x1f8r7k0 x1vqgdyp x1y0btm7 x9r2w2z x1m3ak92 x1kmanbg x1awj2ng x1ywq5td x8nnhh1 x42x0ya xo30pwf x4u2hfz x1nvupfo xrenkp0 x1jk8ig0",onClick:()=>{u()},disabled:i===0,children:e("quiz.answers.back")})]})]})})},SI=e=>e>0?`+${e}`:`${e}`,Bs={base:{textAlign:"x1hr2gdg",margin:"x20nx6h",$$css:!0},withColor:e=>[{color:"x19dipnz",$$css:!0},{"--color":e??"initial"}]},Qv=({title:e,data:t,nameTemplate:n,linkTemplate:r,fontSizeScale:i,borderColor:o,cardBodyPadding:a})=>{const{t:l}=ba(),s=vr(x=>x.theme.data.result),[u,d]=c.useState(!1,[]),f=3,p=(x,g,m)=>g?x:x.slice(0,Math.min(x.length,m)),h=x=>x<=10?"green":x<=20?"orange":"red",v=(x,g)=>(Object.entries(g).forEach(([m,y])=>{x=x.replace(`{{${m}}}`,y)}),x),b=(x,g,m,y)=>x+g*Math.min(Math.max(1,m)-1,y);return L.jsx(Zu,{title:e,styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:`${o} solid 4px`,color:s.content.color,backgroundColor:s.content.backgroundColor},body:{padding:a}},style:{width:"100%",padding:"5px",border:`${o} solid 4px`,borderRadius:"20px",color:s.content.color,backgroundColor:s.content.backgroundColor},extra:L.jsx(Ox,{unCheckedChildren:`${f}`,checkedChildren:"∞",size:"small",onChange:x=>{d(x)},style:{backgroundColor:o,margin:"5px 20px"}}),children:L.jsx(U9,{children:p(t,u,f).map((x,g)=>{const m=Math.round(100*x.diff),y=l(v(n,{id:x.id})),w=l(v(r,{id:x.id})),C=()=>L.jsxs(pt,{vertical:!1,justify:"center",align:"center",children:[x.icon&&L.jsx("img",{width:24,height:"auto",src:x.icon,alt:""}),L.jsx("span",{style:{margin:"3px 6px",fontSize:"large",fontWeight:"bold",color:s.content.color,textAlign:"center"},children:y}),w&&w.length>0&&L.jsx("a",{href:w,target:"_blank",rel:"noreferrer",children:L.jsx("img",{className:"x578xsc x1i3ajwb x1y0btm7 xmkeg23 x12oqio5 xavsq6f xo30pwf x4u2hfz xub7v3z",width:16,height:"auto",src:"https://upload.wikimedia.org/wikipedia/commons/5/5a/Wikipedia%27s_W.svg",alt:""})})]}),E=()=>L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx("span",{style:{textAlign:"center",fontWeight:"bold"},children:l("quiz.result.diff_card.compare_with",{name:y})}),L.jsxs("div",{style:{display:"grid",gridTemplateColumns:"auto auto auto auto"},children:[L.jsx("span",{className:"x1hr2gdg x20nx6h"}),L.jsx("span",{className:"x1hr2gdg x20nx6h",children:l("quiz.result.diff_card.user")}),L.jsx("span",{className:"x1hr2gdg x20nx6h",children:l("quiz.result.diff_card.target")}),L.jsx("span",{className:"x1hr2gdg x20nx6h"}),Object.keys(x.weight.target).map(S=>{const k=x.weight.user[S],_=x.weight.target[S],P=k-_;return[L.jsx("span",{className:"x1hr2gdg x20nx6h",children:l(`quiz.result.topics.${S}.title`)},`${S}.title`),L.jsx("span",{...Xp(Bs.base,Bs.withColor(h(Math.abs(P)))),children:`${k}%`},`${S}.user`),L.jsx("span",{className:"x1hr2gdg x20nx6h",children:`${_}%`},`${S}.target`),L.jsx("span",{...Xp(Bs.base,Bs.withColor(h(Math.abs(P)))),children:`${SI(P)}%`},`${S}.diff`)]})]})]});return L.jsx(W9,{xs:24,sm:24,md:g<3?24:12,lg:g<3?24:12,xl:g<3?24:12,xxl:g<3?24:12,children:L.jsx(pt,{vertical:!1,justify:"center",align:"center",children:L.jsx(A_,{title:L.jsx(C,{}),content:L.jsx(E,{}),children:L.jsxs(pt,{vertical:!1,justify:"center",align:"center",className:"x16zck5j x1trvaba xzhx7h5 xg0443",children:[x.icon&&L.jsx("img",{width:i*b(24,-3,f,g),height:"auto",src:x.icon,alt:""}),L.jsx("span",{style:{margin:"3px 6px",fontSize:`${i*b(160,-24,f,g)}%`,fontWeight:"bold",color:s.content.color,textAlign:"center"},children:y}),L.jsx(Tz,{style:{margin:"3px 2px",color:h(m),fontSize:`${.8*i*b(160,-24,f,g)}%`}}),L.jsx("span",{style:{margin:"3px 2px",color:h(m),fontSize:`${.8*i*b(160,-24,f,g)}%`,textAlign:"center"},children:`${m}%`})]})})})},y)})})})},$i=({title:e,leftTitle:t,rightTitle:n,leftImage:r,rightImage:i,leftColor:o,rightColor:a,percent:l,descriptionTitle:s})=>{const{i18n:u}=ba(),d=es(),f=vr(b=>b.theme.data.result),p=()=>l>=60?o:l<=40?a:f.content.color,h=()=>u.language=="en"?{sm:{fontSize:"x-small",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},lg:{fontSize:"small",minWidth:"100px",margin:"5px 5px"},xl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"medium",minWidth:"120px",margin:"8px 8px"}}[d.size]:{sm:{fontSize:"medium",minWidth:"80px",margin:"2px 2px"},md:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},lg:{fontSize:"medium",minWidth:"80px",margin:"5px 5px"},xl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"},xxl:{fontSize:"large",minWidth:"120px",margin:"8px 8px"}}[d.size],v=()=>u.language=="en"?{sm:{fontSize:"x-small"},md:{fontSize:"small"},lg:{fontSize:"small"},xl:{fontSize:"medium"},xxl:{fontSize:"medium"}}[d.size]:{sm:{fontSize:"medium"},md:{fontSize:"medium"},lg:{fontSize:"medium"},xl:{fontSize:"large"},xxl:{fontSize:"large"}}[d.size];return L.jsx(Zu,{title:e,styles:{header:{fontSize:"x-large",textAlign:"center",borderBottom:`${p()} solid 4px`,color:f.content.color,backgroundColor:f.content.backgroundColor},body:{padding:{sm:"10px",md:"16px",lg:"24px",xl:"24px",xxl:"24px"}[d.size]}},style:{width:"100%",padding:"5px",border:`${p()} solid 4px`,borderRadius:"20px",color:f.content.color,backgroundColor:f.content.backgroundColor},children:L.jsxs(pt,{vertical:!1,justify:"center",align:"center",style:{width:"100%",maxWidth:"720px",margin:"auto"},children:[L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx(Tv,{width:60,src:r||"",preview:!1,style:{padding:"4px"}}),L.jsx("span",{style:{fontWeight:"bold",color:o,textAlign:"center",...h()},children:t})]}),d.md?L.jsxs(pt,{vertical:!0,justify:"center",align:"center",style:{width:"100%",margin:"0px 20px"},children:[L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[L.jsx("span",{style:{margin:"5px"},children:`${l} %`}),L.jsx("span",{style:{...v(),color:p(),textAlign:"center"},children:s}),L.jsx("span",{style:{margin:"5px"},children:`${100-l} %`})]}),L.jsx(af,{type:"line",percent:l,showInfo:!1,strokeLinecap:"square",strokeColor:o,trailColor:a,style:{paddingBottom:"20px"}})]}):L.jsxs(pt,{vertical:!1,justify:"space-between",align:"center",style:{width:"100%"},children:[L.jsx(af,{type:"dashboard",percent:l,showInfo:!0,status:"active",strokeColor:o,trailColor:"gray",size:50,style:{margin:"5px"}}),L.jsx("span",{style:{...v(),color:p(),textAlign:"center"},children:s}),L.jsx(af,{type:"dashboard",percent:100-l,showInfo:!0,status:"active",strokeColor:a,trailColor:"gray",size:50,style:{margin:"5px"}})]}),L.jsxs(pt,{vertical:!0,justify:"center",align:"center",children:[L.jsx(Tv,{width:60,src:i||"",preview:!1,style:{padding:"5px"}}),L.jsx("span",{style:{fontWeight:"bold",color:a,textAlign:"center",...h()},children:n})]})]})})},La={base:{display:"x1rg5ohu",whiteSpace:"xuxw1ft",borderRadius:"x1m3ak92",borderStyle:"x1y0btm7",borderWidth:"xdh2fpr",padding:"xvid92k",margin:"xd3odtx",$$css:!0},enabled:{color:"x1awj2ng",backgroundColor:"x1vgg7vs",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},enabledWithLink:{color:"x1awj2ng x1uezp9v x1vx81tn",backgroundColor:"x1vgg7vs xo30pwf x4u2hfz",borderColor:"x1y011xe",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabled:{color:"x1awj2ng",backgroundColor:"x1cbl2y9",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0},disabledWithLink:{color:"x1awj2ng x1q364g7 xqk8jxb",backgroundColor:"x1cbl2y9 xo30pwf x4u2hfz",borderColor:"xzppbbw",borderInlineColor:null,borderInlineStartColor:null,borderLeftColor:null,borderInlineEndColor:null,borderRightColor:null,borderBlockColor:null,borderTopColor:null,borderBottomColor:null,$$css:!0}},CI=()=>{const[e]=h3(),{t,i18n:n}=ba(),r=es(),i=fa(),o=vr(m=>m.theme.data.result),[a,l]=kx.useMessage(),[s,u]=c.useState(!1,[]),d=e.get(Wx)==qx,f={economic:e.get("economic"),diplomatic:e.get("diplomatic"),civil:e.get("civil"),environmental:e.get("environmental"),societal:e.get("societal"),sovereignty:e.get("sovereignty"),us_vs_china:e.get("us_vs_china")},p=new Set(e.get("tags").split(",")),h=(m,y)=>y?m.sort((w,C)=>{const E=p.has(w.id),S=p.has(C.id);return E&&!S?-1:!E&&S?1:0}):m.filter(w=>p.has(w.id)),v=m=>n.language==m,b=m=>m<=10?6:m<=25?5:m<=40?4:m>=90?0:m>=75?1:m>=60?2:3,x=()=>({sm:"10px",md:"16px",lg:"24px",xl:"24px",xxl:"24px"})[r.size],g=()=>L.jsxs(pt,{vertical:!0,align:"center",style:{width:"100%",backgroundColor:o.content.backgroundColor,borderColor:o.content.color,borderStyle:"solid",borderWidth:"4px",borderRadius:"20px"},children:[L.jsx("h2",{style:{margin:"40px",color:"red"},children:t("quiz.result.api_error.description")}),L.jsx("span",{className:"xt7dq6l x1oin6zd xt65foa x1m3ak92 x9r2w2z x1y0btm7 xcgtkfa x117nqv4 x2b8uid x1awj2ng x14pd9d7 x1tzallk xskgvrd xo30pwf x4u2hfz x1nvupfo xgl1eqo x2g70cf",onClick:()=>{i("/")},children:t("quiz.result.api_error.index")})]});return L.jsx(pt,{vertical:!0,justify:"center",align:"center",gap:20,style:{backgroundColor:o.backgroundColor,border:"crimson solid 4px",borderRadius:"20px",...Rm(),width:"100%",margin:"20px",padding:"5px"},children:d?L.jsxs(L.Fragment,{children:[L.jsx(Qv,{title:t("quiz.result.ideologies.name"),data:bI(f),nameTemplate:"quiz.result.ideologies.data.{{id}}.name",linkTemplate:"quiz.result.ideologies.data.{{id}}.link",fontSizeScale:v("en")?1:1.2,borderColor:"dodgerblue",cardBodyPadding:x()}),L.jsx(Qv,{title:t("quiz.result.political_parties.name"),data:wI(f),nameTemplate:"quiz.result.political_parties.data.{{id}}.name",linkTemplate:"quiz.result.political_parties.data.{{id}}.link",fontSizeScale:v("en")?.8:1,borderColor:"tomato",cardBodyPadding:x()}),L.jsx(Zu,{title:t("quiz.result.tags.name"),styles:{header:{fontSize:"x-large",textAlign:"center",padding:"0px 0px 0px 80px",borderBottom:"magenta solid 4px",color:o.content.color,backgroundColor:o.content.backgroundColor},body:{padding:x()}},style:{width:"100%",padding:"5px",border:"magenta solid 4px",borderRadius:"20px",color:o.content.color,backgroundColor:o.content.backgroundColor},extra:L.jsx(Ox,{unCheckedChildren:"M",checkedChildren:"∞",size:"small",onChange:m=>{u(m)},style:{backgroundColor:"magenta",margin:"5px 20px"}}),children:h(Hx(),s).map(m=>{const y=t(`quiz.result.tags.data.${m.id}.name`),w=t(`quiz.result.tags.data.${m.id}.description`),C=t(`quiz.result.tags.data.${m.id}.link`),E=C&&C.length>0,S=()=>L.jsx("span",{...Xp(La.base,p.has(m.id)?E?La.enabledWithLink:La.enabled:E?La.disabledWithLink:La.disabled),children:y});return L.jsxs(pt,{justify:"start",align:"center",style:{margin:"10px auto 10px auto",maxWidth:"800px"},children:[E?L.jsx("a",{href:C,target:"_blank",rel:"noreferrer",children:L.jsx(S,{})}):L.jsx(S,{}),L.jsx("span",{style:{margin:"4px",color:p.has(m.id)?o.content.color:"gray"},children:w})]},`tags.${m.id}`)})}),L.jsx($i,{title:t("quiz.result.topics.economic.title"),leftTitle:t("quiz.result.values.equality.name"),rightTitle:t("quiz.result.values.efficiency.name"),leftImage:_e().equality.image,rightImage:_e().efficiency.image,leftColor:_e().equality.color,rightColor:_e().efficiency.color,percent:f.economic,descriptionTitle:t(`quiz.result.topics.economic.categories.${b(f.economic)}`)}),L.jsx($i,{title:t("quiz.result.topics.diplomatic.title"),leftTitle:t("quiz.result.values.globe.name"),rightTitle:t("quiz.result.values.nation.name"),leftImage:_e().globe.image,rightImage:_e().nation.image,leftColor:_e().globe.color,rightColor:_e().nation.color,percent:f.diplomatic,descriptionTitle:t(`quiz.result.topics.diplomatic.categories.${b(f.diplomatic)}`)}),L.jsx($i,{title:t("quiz.result.topics.civil.title"),leftTitle:t("quiz.result.values.liberty.name"),rightTitle:t("quiz.result.values.authority.name"),leftImage:_e().liberty.image,rightImage:_e().authority.image,leftColor:_e().liberty.color,rightColor:_e().authority.color,percent:f.civil,descriptionTitle:t(`quiz.result.topics.civil.categories.${b(f.civil)}`)}),L.jsx($i,{title:t("quiz.result.topics.environmental.title"),leftTitle:t("quiz.result.values.ecology.name"),rightTitle:t("quiz.result.values.production.name"),leftImage:_e().ecology.image,rightImage:_e().production.image,leftColor:_e().ecology.color,rightColor:_e().production.color,percent:f.environmental,descriptionTitle:t(`quiz.result.topics.environmental.categories.${b(f.environmental)}`)}),L.jsx($i,{title:t("quiz.result.topics.societal.title"),leftTitle:t("quiz.result.values.progress.name"),rightTitle:t("quiz.result.values.tradition.name"),leftImage:_e().progress.image,rightImage:_e().tradition.image,leftColor:_e().progress.color,rightColor:_e().tradition.color,percent:f.societal,descriptionTitle:t(`quiz.result.topics.societal.categories.${b(f.societal)}`)}),L.jsx($i,{title:t("quiz.result.topics.sovereignty.title"),leftTitle:t("quiz.result.values.independence.name"),rightTitle:t("quiz.result.values.unification.name"),leftImage:_e().independence.image,rightImage:_e().unification.image,leftColor:_e().independence.color,rightColor:_e().unification.color,percent:f.sovereignty,descriptionTitle:t(`quiz.result.topics.sovereignty.categories.${b(f.sovereignty)}`)}),L.jsx($i,{title:t("quiz.result.topics.us_vs_china.title"),leftTitle:t("quiz.result.values.pro_american.name"),rightTitle:t("quiz.result.values.pro_chinese.name"),leftImage:_e().pro_american.image,rightImage:_e().pro_chinese.image,leftColor:_e().pro_american.color,rightColor:_e().pro_chinese.color,percent:f.us_vs_china,descriptionTitle:t(`quiz.result.topics.us_vs_china.categories.${b(f.us_vs_china)}`)}),L.jsxs(pt,{vertical:!0,justify:"center",align:"center",gap:10,style:{width:"100%",padding:x(),backgroundColor:o.content.backgroundColor,borderColor:o.content.color,borderStyle:"solid",borderWidth:"4px",borderRadius:"20px"},children:[L.jsx("span",{style:{fontSize:r.md?"medium":"small",margin:"10px 20px",color:o.content.color},children:t("quiz.result.share.description")}),L.jsx("span",{style:{display:"block",overflowWrap:"break-word",color:o.content.color,borderColor:o.content.color,borderStyle:"solid",borderWidth:"1px",borderRadius:"10px",maxWidth:"100%",padding:"5px"},children:window.location.href})," ",l,L.jsx("span",{className:"x1rg5ohu xuxw1ft x1jylwp8 x16zck5j x1p3i4rr x1y0btm7 x9r2w2z x174e0gf x1awj2ng x1uezp9v x1vx81tn x1vgg7vs xo30pwf x4u2hfz x1y011xe x1mchgbu x5f13pb",onClick:()=>{navigator.clipboard.writeText(window.location.href),a.open({type:"success",content:t("quiz.result.share.copied")})},children:t("quiz.result.share.copy")})]})]}):L.jsx(g,{})})};function EI(){const e=vr(t=>t.theme.id);return L.jsx(Kb,{theme:{algorithm:e==Ai().light?jv.defaultAlgorithm:jv.darkAlgorithm},children:L.jsx(g3,{children:L.jsx(d3,{children:L.jsxs(qa,{path:"/",element:L.jsx(QT,{}),children:[L.jsx(qa,{path:"/",element:L.jsx(pI,{})}),L.jsx(qa,{path:"/quiz",element:L.jsx(xI,{})}),L.jsx(qa,{path:"/result",element:L.jsx(CI,{})})]})})})})}const kI={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Kc{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||kI,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i{let[l,s]=a;for(let u=0;u{let[l,s]=a;for(let u=0;u{e=r,t=i});return n.resolve=e,n.reject=t,n}function Yv(e){return e==null?"":""+e}function $I(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}const _I=/###/g;function al(e,t,n){function r(l){return l&&l.indexOf("###")>-1?l.replace(_I,"."):l}function i(){return!e||typeof e=="string"}const o=typeof t!="string"?t:t.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function zI(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>RI[t]):e}class TI{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const II=[" ",",","?","!",";"],MI=new TI(20);function BI(e,t,n){t=t||"",n=n||"";const r=II.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=MI.getRegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function Qp(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let o=0;o-1&&s0?e.replace("_","-"):e}class Jv extends od{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):typeof r=="string"&&o?l.push(...r.split(o)):l.push(r)));const s=Xc(this.data,l);return!s&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),s||!a||typeof r!="string"?s:Qp(this.data&&this.data[t]&&this.data[t][n],r,o)}addResource(t,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),Zv(this.data,l,i),o.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(typeof r[o]=="string"||Object.prototype.toString.apply(r[o])==="[object Array]")&&this.addResource(t,n,o,r[o],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let s=Xc(this.data,l)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?Vx(s,r,o):s={...s,...r},Zv(this.data,l,s),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Ux={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,n,r,i))}),t}};const e1={};class Yc extends od{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),$I(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!BI(t,r,i);if(a&&!l){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:o};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),t=u.join(i)}return typeof o=="string"&&(o=[o]),{key:t,namespaces:o}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(t[t.length-1],n),s=l[l.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return i?{res:`${s}${w}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:`${s}${w}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(n)}:a}const f=this.resolve(t,n);let p=f&&f.res;const h=f&&f.usedKey||a,v=f&&f.exactUsedKey||a,b=Object.prototype.toString.apply(p),x=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&x.indexOf(b)<0&&!(typeof g=="string"&&b==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(o){const w=b==="[object Array]",C=w?[]:{},E=w?v:h;for(const S in p)if(Object.prototype.hasOwnProperty.call(p,S)){const k=`${E}${o}${S}`;C[S]=this.translate(k,{...n,joinArrays:!1,ns:l}),C[S]===k&&(C[S]=p[S])}p=C}}else if(m&&typeof g=="string"&&b==="[object Array]")p=p.join(g),p&&(p=this.extendTranslation(p,t,n,r));else{let w=!1,C=!1;const E=n.count!==void 0&&typeof n.count!="string",S=Yc.hasDefaultValue(n),k=E?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&E?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",P=E&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),O=P&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(p)&&S&&(w=!0,p=O),this.isValidLookup(p)||(C=!0,p=a);const T=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:p,M=S&&O!==p&&this.options.updateMissing;if(C||w||M){if(this.logger.log(M?"updateKey":"missingKey",u,s,a,M?O:p),o){const $=this.resolve(a,{...n,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let j=[];const I=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&I&&I[0])for(let $=0;${const A=S&&B!==p?B:T;this.options.missingKeyHandler?this.options.missingKeyHandler($,s,z,A,M,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,s,z,A,M,n),this.emit("missingKey",$,s,z,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?j.forEach($=>{const z=this.pluralResolver.getSuffixes($,n);P&&n[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(B=>{R([$],a+B,n[`defaultValue${B}`]||O)})}):R(j,a,O))}p=this.extendTranslation(p,t,n,f,r),C&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${s}:${a}`),(C||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,w?p:void 0):p=this.options.parseMissingKeyHandler(p))}return i?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const p=t.match(this.interpolator.nestingRegexp);d=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const p=t.match(this.interpolator.nestingRegexp),h=p&&p.length;d1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,a,l;return typeof t=="string"&&(t=[t]),t.forEach(s=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(s,n),d=u.key;i=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",h=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!e1[`${b[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(e1[`${b[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${b.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(g=>{if(this.isValidLookup(r))return;a=g;const m=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(m,d,g,x,n);else{let w;p&&(w=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(m.push(d+w),n.ordinal&&w.indexOf(E)===0&&m.push(d+w.replace(E,this.options.pluralSeparator)),h&&m.push(d+C)),v){const S=`${d}${this.options.contextSeparator}${n.context}`;m.push(S),p&&(m.push(S+w),n.ordinal&&w.indexOf(E)===0&&m.push(S+w.replace(E,this.options.pluralSeparator)),h&&m.push(S+C))}}let y;for(;y=m.pop();)this.isValidLookup(r)||(o=y,r=this.getResource(g,x,y,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function cf(e){return e.charAt(0).toUpperCase()+e.slice(1)}class t1{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pr.create("languageUtils")}getScriptPartFromCode(t){if(t=Qc(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Qc(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cf(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=cf(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=cf(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&o.indexOf(i)===0)return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):typeof t=="string"&&o(this.formatLanguageCode(t)),r.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let NI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const LI=["v1","v2","v3"],jI=["v4"],n1={zero:0,one:1,two:2,few:3,many:4,other:5};function DI(){const e={};return NI.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:AI[t.fc]}})}),e}class FI{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=pr.create("pluralResolver"),(!this.options.compatibilityJSON||jI.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=DI()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Qc(t==="dev"?"en":t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,o)=>n1[i]-n1[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!LI.includes(this.options.compatibilityJSON)}}function r1(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=OI(e,t,n);return!o&&i&&typeof n=="string"&&(o=Qp(e,n,r),o===void 0&&(o=Qp(t,n,r))),o}class HI{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=pr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:zI,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xo(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xo(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?xo(n.nestingPrefix):n.nestingPrefixEscaped||xo("$t("),this.nestingSuffix=n.nestingSuffix?xo(n.nestingSuffix):n.nestingSuffixEscaped||xo(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let o,a,l;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(v){return v.replace(/\$/g,"$$$$")}const d=v=>{if(v.indexOf(this.formatSeparator)<0){const m=r1(n,s,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...i,...n,interpolationkey:v}):m}const b=v.split(this.formatSeparator),x=b.shift().trim(),g=b.join(this.formatSeparator).trim();return this.format(r1(n,s,x,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const f=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>u(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?u(this.escape(v)):u(v)}].forEach(v=>{for(l=0;o=v.regex.exec(t);){const b=o[1].trim();if(a=d(b),a===void 0)if(typeof f=="function"){const g=f(t,o,i);a=typeof g=="string"?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))a="";else if(p){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=Yv(a));const x=v.safeValue(a);if(t=t.replace(o[0],x),p?(v.regex.lastIndex+=a.length,v.regex.lastIndex-=o[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;function l(s,u){const d=this.nestingOptionsSeparator;if(s.indexOf(d)<0)return s;const f=s.split(new RegExp(`${d}[ ]*{`));let p=`{${f[1]}`;s=f[0],p=this.interpolate(p,a);const h=p.match(/'/g),v=p.match(/"/g);(h&&h.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),u&&(a={...u,...a})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,b),`${s}${d}${p}`}return delete a.defaultValue,s}for(;i=this.nestingRegexp.exec(t);){let s=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=d.shift(),s=d,u=!0}if(o=n(l.call(this,i[1].trim(),a),a),o&&i[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=Yv(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),o=""),u&&(o=s.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}function WI(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[l,...s]=a.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function So(e){const t={};return function(r,i,o){const a=i+JSON.stringify(o);let l=t[a];return l||(l=e(Qc(i),o),t[a]=l),l(r)}}class qI{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=pr.create("formatter"),this.options=t,this.formats={number:So((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:So((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:So((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:So((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:So((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=So(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,s)=>{const{formatName:u,formatOptions:d}=WI(s);if(this.formats[u]){let f=l;try{const p=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=p.locale||p.lng||i.locale||i.lng||r;f=this.formats[u](l,h,{...d,...i,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function VI(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class UI extends od{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=pr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const o={},a={},l={},s={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,d=!1,a[p]===void 0&&(a[p]=!0),o[p]===void 0&&(o[p]=!0),s[f]===void 0&&(s[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(s)}}loaded(t,n,r){const i=t.split("|"),o=i[0],a=i[1];n&&this.emit("failedLoading",o,a,n),r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2;const l={};this.queue.forEach(s=>{PI(s.loaded,[o],a),VI(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{l[u]||(l[u]={});const d=s.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(s=>!s.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:o,callback:a});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&i{this.read.call(this,t,n,r,i+1,o*2,a)},o);return}a(u,d)},s=this.backend[r].bind(this.backend);if(s.length===2){try{const u=s(t,n);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return s(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const o=this.queueLoad(t,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,l),this.loaded(t,a,l)})}saveMissing(t,n,r,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const s={...a,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,i,s):d=u(t,n,r,i),d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}else u(t,n,r,i,l,s)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function i1(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function o1(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ns(){}function GI(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ll extends od{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=o1(t),this.services={},this.logger=pr,this.modules={external:[]},GI(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=i1();this.options={...i,...this.options,...o1(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function o(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?pr.init(o(this.modules.logger),this.options):pr.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=qI);const f=new t1(this.options);this.store=new Jv(this.options.resources,this.options);const p=this.services;p.logger=pr,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new FI(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(p.formatter=o(d),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new HI(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new UI(o(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var v=arguments.length,b=new Array(v>1?v-1:0),x=1;x1?v-1:0),x=1;x{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Ns),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const s=ja(),u=()=>{const d=(f,p)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(p),r(f,p)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),s}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ns;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(s=>a(s)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(o,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=ja();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Ns),this.services.backendConnector.reload(t,n,o=>{i.resolve(),r(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Ux.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=ja();this.emit("languageChanging",t);const o=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},a=(s,u)=>{u?(o(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(s,function(){return r.t(...arguments)})},l=s=>{!t&&!s&&this.services.languageDetector&&(s=[]);const u=typeof s=="string"?s:this.services.languageUtils.getBestMatchFromCodes(s);u&&(this.language||o(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{a(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const o=function(a,l){let s;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f`${s.keyPrefix}${p}${v}`):h=s.keyPrefix?`${s.keyPrefix}${p}${a}`:a,i.t(h,s)};return typeof t=="string"?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,s)=>{const u=this.services.backendConnector.state[`${l}|${s}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}loadNamespaces(t,n){const r=ja();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ja();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0);return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new t1(i1());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ll(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ns;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new Ll(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(l=>{o[l]=this[l]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new Jv(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Yc(o.services,i),o.translator.on("*",function(l){for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d 台灣價值 TW Values - + - +