@zappway/embeds 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -424,7 +424,7 @@ try {
424
424
  ${c}.setAttribute('${n}', colorScheme);
425
425
  }
426
426
  } catch(e){}})();`}},"mui-color-scheme-init")}s();C2();var Ne=L(H());function gU(e){if(typeof window<"u"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vU(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function ug1(e){return vU(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function mM(e,t){if(typeof window>"u")return;let o;try{o=localStorage.getItem(e)||void 0,o||localStorage.setItem(e,t)}catch{}return o||t}function dM(e){let{defaultMode:t="light",defaultLightColorScheme:o,defaultDarkColorScheme:a,supportedColorSchemes:i=[],modeStorageKey:r=$l,colorSchemeStorageKey:n=Il,storageWindow:c=typeof window>"u"?void 0:window}=e,l=i.join(","),[f,m]=Ne.useState(()=>{let x=mM(r,t),y=mM(`${n}-light`,o),v=mM(`${n}-dark`,a);return{mode:x,systemMode:gU(x),lightColorScheme:y,darkColorScheme:v}}),d=ug1(f),u=Ne.useCallback(x=>{m(y=>{if(x===y.mode)return y;let v=x??t;try{localStorage.setItem(r,v)}catch{}return l1({},y,{mode:v,systemMode:gU(v)})})},[r,t]),p=Ne.useCallback(x=>{x?typeof x=="string"?x&&!l.includes(x)?console.error(`\`${x}\` does not exist in \`theme.colorSchemes\`.`):m(y=>{let v=l1({},y);return vU(y,k=>{try{localStorage.setItem(`${n}-${k}`,x)}catch{}k==="light"&&(v.lightColorScheme=x),k==="dark"&&(v.darkColorScheme=x)}),v}):m(y=>{let v=l1({},y),k=x.light===null?o:x.light,w=x.dark===null?a:x.dark;if(k)if(!l.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{v.lightColorScheme=k;try{localStorage.setItem(`${n}-light`,k)}catch{}}if(w)if(!l.includes(w))console.error(`\`${w}\` does not exist in \`theme.colorSchemes\`.`);else{v.darkColorScheme=w;try{localStorage.setItem(`${n}-dark`,w)}catch{}}return v}):m(y=>{try{localStorage.setItem(`${n}-light`,o),localStorage.setItem(`${n}-dark`,a)}catch{}return l1({},y,{lightColorScheme:o,darkColorScheme:a})})},[l,n,o,a]),b=Ne.useCallback(x=>{f.mode==="system"&&m(y=>{let v=x!=null&&x.matches?"dark":"light";return y.systemMode===v?y:l1({},y,{systemMode:v})})},[f.mode]),g=Ne.useRef(b);return g.current=b,Ne.useEffect(()=>{let x=(...v)=>g.current(...v),y=window.matchMedia("(prefers-color-scheme: dark)");return y.addListener(x),x(y),()=>{y.removeListener(x)}},[]),Ne.useEffect(()=>{if(c){let x=y=>{let v=y.newValue;typeof y.key=="string"&&y.key.startsWith(n)&&(!v||l.match(v))&&(y.key.endsWith("light")&&p({light:v}),y.key.endsWith("dark")&&p({dark:v})),y.key===r&&(!v||["light","dark","system"].includes(v))&&u(v||t)};return c.addEventListener("storage",x),()=>{c.removeEventListener("storage",x)}}},[p,u,r,n,l,t,c]),l1({},f,{colorScheme:d,setMode:u,setColorScheme:p})}var Zi=L(f1()),uM=L(f1()),pg1=["colorSchemes","components","generateCssVars","cssVarPrefix"],hg1="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function yp(e){let{themeId:t,theme:o={},attribute:a=sM,modeStorageKey:i=$l,colorSchemeStorageKey:r=Il,defaultMode:n="light",defaultColorScheme:c,disableTransitionOnChange:l=!1,resolveTheme:f,excludeVariablesFromRoot:m}=e;(!o.colorSchemes||typeof c=="string"&&!o.colorSchemes[c]||typeof c=="object"&&!o.colorSchemes[c?.light]||typeof c=="object"&&!o.colorSchemes[c?.dark])&&console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let d=r4.createContext(void 0),u=()=>{let y=r4.useContext(d);if(!y)throw new Error(F0(19));return y};function p(y){let{children:v,theme:k=o,modeStorageKey:w=i,colorSchemeStorageKey:T=r,attribute:A=a,defaultMode:_=n,defaultColorScheme:z=c,disableTransitionOnChange:M=l,storageWindow:S=typeof window>"u"?void 0:window,documentNode:N=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,colorSchemeSelector:R=":root",disableNestedContext:O=!1,disableStyleSheetGeneration:P=!1}=y,E=r4.useRef(!1),D=H7(),I=r4.useContext(d),$=!!I&&!O,V=k[t],K=V||k,{colorSchemes:X={},components:e1={},generateCssVars:Y=()=>({vars:{},css:{}}),cssVarPrefix:q}=K,o1=K2(K,pg1),W=Object.keys(X),Z=typeof z=="string"?z:z.light,r1=typeof z=="string"?z:z.dark,{mode:x1,setMode:h1,systemMode:T1,lightColorScheme:F1,darkColorScheme:V1,colorScheme:n1,setColorScheme:R1}=dM({supportedColorSchemes:W,defaultLightColorScheme:Z,defaultDarkColorScheme:r1,modeStorageKey:w,colorSchemeStorageKey:T,defaultMode:_,storageWindow:S}),M1=x1,w1=n1;$&&(M1=I.mode,w1=I.colorScheme);let A1=w1||((M1||(_==="system"?n:_))==="dark"?r1:Z),{css:Z1,vars:c2}=Y(),d1=l1({},o1,{components:e1,colorSchemes:X,cssVarPrefix:q,vars:c2,getColorSchemeSelector:s1=>`[${A}="${s1}"] &`}),H1={},$1={};Object.entries(X).forEach(([s1,j])=>{let{css:U,vars:B}=Y(s1);d1.vars=O2(d1.vars,B),s1===A1&&(Object.keys(j).forEach(t1=>{j[t1]&&typeof j[t1]=="object"?d1[t1]=l1({},d1[t1],j[t1]):d1[t1]=j[t1]}),d1.palette&&(d1.palette.colorScheme=s1));let G=typeof z=="string"?z:_==="dark"?z.dark:z.light;if(s1===G){if(m){let t1={};m(q).forEach(p1=>{t1[p1]=U[p1],delete U[p1]}),H1[`[${A}="${s1}"]`]=t1}H1[`${R}, [${A}="${s1}"]`]=U}else $1[`${R===":root"?"":R}[${A}="${s1}"]`]=U}),d1.vars=O2(d1.vars,c2),r4.useEffect(()=>{w1&&C&&C.setAttribute(A,w1)},[w1,A,C]),r4.useEffect(()=>{let s1;if(M&&E.current&&N){let j=N.createElement("style");j.appendChild(N.createTextNode(hg1)),N.head.appendChild(j),window.getComputedStyle(N.body),s1=setTimeout(()=>{N.head.removeChild(j)},1)}return()=>{clearTimeout(s1)}},[w1,M,N]),r4.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let G1=r4.useMemo(()=>({allColorSchemes:W,colorScheme:w1,darkColorScheme:V1,lightColorScheme:F1,mode:M1,setColorScheme:R1,setMode:h1,systemMode:T1}),[W,w1,V1,F1,M1,R1,h1,T1]),E1=!0;(P||$&&D?.cssVarPrefix===q)&&(E1=!1);let i1=(0,uM.jsxs)(r4.Fragment,{children:[E1&&(0,uM.jsxs)(r4.Fragment,{children:[(0,Zi.jsx)(B6,{styles:{[R]:Z1}}),(0,Zi.jsx)(B6,{styles:H1}),(0,Zi.jsx)(B6,{styles:$1})]}),(0,Zi.jsx)(bp,{themeId:V?t:void 0,theme:f?f(d1):d1,children:v})]});return $?i1:(0,Zi.jsx)(d.Provider,{value:G1,children:i1})}let b=typeof c=="string"?c:c.light,g=typeof c=="string"?c:c.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:y=>fM(l1({attribute:a,colorSchemeStorageKey:r,defaultMode:n,defaultLightColorScheme:b,defaultDarkColorScheme:g,modeStorageKey:i},y))}}s();function ho(e=""){function t(...a){if(!a.length)return"";let i=a[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...a.slice(1))})`:`, ${i}`}return(a,...i)=>`var(--${e?`${e}-`:""}${a}${t(...i)})`}s();var bU=(e,t,o,a=[])=>{let i=e;t.forEach((r,n)=>{n===t.length-1?Array.isArray(i)?i[Number(r)]=o:i&&typeof i=="object"&&(i[r]=o):i&&typeof i=="object"&&(i[r]||(i[r]=a.includes(r)?[]:{}),i=i[r])})},gg1=(e,t,o)=>{function a(i,r=[],n=[]){Object.entries(i).forEach(([c,l])=>{(!o||o&&!o([...r,c]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?a(l,[...r,c],Array.isArray(l)?[...n,c]:n):t([...r,c],l,n))})}a(e)},vg1=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(a=>e.includes(a))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function Dl(e,t){let{prefix:o,shouldSkipGeneratingVar:a}=t||{},i={},r={},n={};return gg1(e,(c,l,f)=>{if((typeof l=="string"||typeof l=="number")&&(!a||!a(c,l))){let m=`--${o?`${o}-`:""}${c.join("-")}`;Object.assign(i,{[m]:vg1(c,l)}),bU(r,c,`var(${m})`,f),bU(n,c,`var(${m}, ${l})`,f)}},c=>c[0]==="vars"),{css:i,vars:r,varsWithDefaults:n}}s();C2();s();s();function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}s();function yU(e,t){if(go(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var a=o.call(e,t||"default");if(go(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kU(e){var t=yU(e,"string");return go(t)=="symbol"?t:t+""}c5();B4();var bg1=["colorSchemes","components","defaultColorScheme"];function yg1(e,t){let{colorSchemes:o={},defaultColorScheme:a="light"}=e,i=K2(e,bg1),{vars:r,css:n,varsWithDefaults:c}=Dl(i,t),l=c,f={},{[a]:m}=o,d=K2(o,[a].map(kU));if(Object.entries(d||{}).forEach(([p,b])=>{let{vars:g,css:x,varsWithDefaults:y}=Dl(b,t);l=O2(l,y),f[p]={css:x,vars:g}}),m){let{css:p,vars:b,varsWithDefaults:g}=Dl(m,t);l=O2(l,g),f[a]={css:p,vars:b}}return{vars:l,generateCssVars:p=>{var b;if(!p){var g;let y=l1({},n);return{css:y,vars:r,selector:(t==null||(g=t.getSelector)==null?void 0:g.call(t,p,y))||":root"}}let x=l1({},f[p].css);return{css:x,vars:f[p].vars,selector:(t==null||(b=t.getSelector)==null?void 0:b.call(t,p,x))||":root"}}}}var pM=yg1;s();C2();c5();var W5=L(H());A3();op();ft();Al();st();lt();s();C2();s();var kg1=(e,t)=>e.filter(o=>t.includes(o)),vo=(e,t,o)=>{let a=e.keys[0];Array.isArray(t)?t.forEach((i,r)=>{o((n,c)=>{r<=e.keys.length-1&&(r===0?Object.assign(n,c):n[e.up(e.keys[r])]=c)},i)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:kg1(e.keys,Object.keys(t))).forEach(r=>{if(e.keys.indexOf(r)!==-1){let n=t[r];n!==void 0&&o((c,l)=>{a===r?Object.assign(c,l):c[e.up(r)]=l},n)}}):(typeof t=="number"||typeof t=="string")&&o((i,r)=>{Object.assign(i,r)},t)};function G7(e){return e?`Level${e}`:""}function Nl(e){return e.unstable_level>0&&e.container}function xU(e){return function(o){return`var(--Grid-${o}Spacing${G7(e.unstable_level)})`}}function hM(e){return function(o){return e.unstable_level===0?`var(--Grid-${o}Spacing)`:`var(--Grid-${o}Spacing${G7(e.unstable_level-1)})`}}function gM(e){return e.unstable_level===0?"var(--Grid-columns)":`var(--Grid-columns${G7(e.unstable_level-1)})`}var zU=({theme:e,ownerState:t})=>{let o=xU(t),a={};return vo(e.breakpoints,t.gridSize,(i,r)=>{let n={};r===!0&&(n={flexBasis:0,flexGrow:1,maxWidth:"100%"}),r==="auto"&&(n={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof r=="number"&&(n={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / ${gM(t)}${Nl(t)?` + ${o("column")}`:""})`}),i(a,n)}),a},wU=({theme:e,ownerState:t})=>{let o={};return vo(e.breakpoints,t.gridOffset,(a,i)=>{let r={};i==="auto"&&(r={marginLeft:"auto"}),typeof i=="number"&&(r={marginLeft:i===0?"0px":`calc(100% * ${i} / ${gM(t)})`}),a(o,r)}),o},MU=({theme:e,ownerState:t})=>{if(!t.container)return{};let o=Nl(t)?{[`--Grid-columns${G7(t.unstable_level)}`]:gM(t)}:{"--Grid-columns":12};return vo(e.breakpoints,t.columns,(a,i)=>{a(o,{[`--Grid-columns${G7(t.unstable_level)}`]:i})}),o},SU=({theme:e,ownerState:t})=>{if(!t.container)return{};let o=hM(t),a=Nl(t)?{[`--Grid-rowSpacing${G7(t.unstable_level)}`]:o("row")}:{};return vo(e.breakpoints,t.rowSpacing,(i,r)=>{var n;i(a,{[`--Grid-rowSpacing${G7(t.unstable_level)}`]:typeof r=="string"?r:(n=e.spacing)==null?void 0:n.call(e,r)})}),a},TU=({theme:e,ownerState:t})=>{if(!t.container)return{};let o=hM(t),a=Nl(t)?{[`--Grid-columnSpacing${G7(t.unstable_level)}`]:o("column")}:{};return vo(e.breakpoints,t.columnSpacing,(i,r)=>{var n;i(a,{[`--Grid-columnSpacing${G7(t.unstable_level)}`]:typeof r=="string"?r:(n=e.spacing)==null?void 0:n.call(e,r)})}),a},RU=({theme:e,ownerState:t})=>{if(!t.container)return{};let o={};return vo(e.breakpoints,t.direction,(a,i)=>{a(o,{flexDirection:i})}),o},EU=({ownerState:e})=>{let t=xU(e),o=hM(e);return l1({minWidth:0,boxSizing:"border-box"},e.container&&l1({display:"flex",flexWrap:"wrap"},e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||Nl(e))&&l1({padding:`calc(${o("row")} / 2) calc(${o("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${o("row")} 0px 0px ${o("column")}`}))},_U=e=>{let t=[];return Object.entries(e).forEach(([o,a])=>{a!==!1&&a!==void 0&&t.push(`grid-${o}-${String(a)}`)}),t},PU=(e,t="xs")=>{function o(a){return a===void 0?!1:typeof a=="string"&&!Number.isNaN(Number(a))||typeof a=="number"&&a>0}if(o(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){let a=[];return Object.entries(e).forEach(([i,r])=>{o(r)&&a.push(`spacing-${i}-${String(r)}`)}),a}return[]},CU=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,o])=>`direction-${t}-${o}`):[`direction-xs-${String(e)}`];var vM=L(f1()),xg1=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],zg1=G5(),wg1=Xu("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Mg1(e){return j7({props:e,name:"MuiGrid",defaultTheme:zg1})}function kp(e={}){let{createStyledComponent:t=wg1,useThemeProps:o=Mg1,componentName:a="MuiGrid"}=e,i=W5.createContext(void 0),r=(l,f)=>{let{container:m,direction:d,spacing:u,wrap:p,gridSize:b}=l,g={root:["root",m&&"container",p!=="wrap"&&`wrap-xs-${String(p)}`,...CU(d),..._U(b),...m?PU(u,f.breakpoints.keys[0]):[]]};return U1(g,x=>m5(a,x),{})},n=t(MU,TU,SU,zU,RU,EU,wU),c=W5.forwardRef(function(f,m){var d,u,p,b,g,x,y,v;let k=$e(),w=o(f),T=K5(w),A=W5.useContext(i),{className:_,children:z,columns:M=12,container:S=!1,component:N="div",direction:C="row",wrap:R="wrap",spacing:O=0,rowSpacing:P=O,columnSpacing:E=O,disableEqualOverflow:D,unstable_level:I=0}=T,$=K2(T,xg1),V=D;I&&D!==void 0&&(V=f.disableEqualOverflow);let K={},X={},e1={};Object.entries($).forEach(([h1,T1])=>{k.breakpoints.values[h1]!==void 0?K[h1]=T1:k.breakpoints.values[h1.replace("Offset","")]!==void 0?X[h1.replace("Offset","")]=T1:e1[h1]=T1});let Y=(d=f.columns)!=null?d:I?void 0:M,q=(u=f.spacing)!=null?u:I?void 0:O,o1=(p=(b=f.rowSpacing)!=null?b:f.spacing)!=null?p:I?void 0:P,W=(g=(x=f.columnSpacing)!=null?x:f.spacing)!=null?g:I?void 0:E,Z=l1({},T,{level:I,columns:Y,container:S,direction:C,wrap:R,spacing:q,rowSpacing:o1,columnSpacing:W,gridSize:K,gridOffset:X,disableEqualOverflow:(y=(v=V)!=null?v:A)!=null?y:!1,parentDisableEqualOverflow:A}),r1=r(Z,k),x1=(0,vM.jsx)(n,l1({ref:m,as:N,ownerState:Z,className:s2(r1.root,_)},e1,{children:W5.Children.map(z,h1=>{if(W5.isValidElement(h1)&&Ie(h1,["Grid"])){var T1,F1;return W5.cloneElement(h1,{unstable_level:(T1=(F1=h1.props)==null?void 0:F1.unstable_level)!=null?T1:I+1})}return h1})}));return V!==void 0&&V!==(A??!1)&&(x1=(0,vM.jsx)(i.Provider,{value:V,children:x1})),x1});return c.muiName="Grid",c}s();s();c5();C2();var Ji=L(H());A3();B4();ft();Al();st();lt();rt();ro();var AU=L(f1()),Sg1=["component","direction","spacing","divider","children","className","useFlexGap"],Tg1=G5(),Rg1=Xu("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Eg1(e){return j7({props:e,name:"MuiStack",defaultTheme:Tg1})}function _g1(e,t){let o=Ji.Children.toArray(e).filter(Boolean);return o.reduce((a,i,r)=>(a.push(i),r<o.length-1&&a.push(Ji.cloneElement(t,{key:`separator-${r}`})),a),[])}var Pg1=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Cg1=({ownerState:e,theme:t})=>{let o=l1({display:"flex",flexDirection:"column"},T0({theme:t},Ou({values:e.direction,breakpoints:t.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){let a=Ml(t),i=Object.keys(t.breakpoints.values).reduce((l,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(l[f]=!0),l),{}),r=Ou({values:e.direction,base:i}),n=Ou({values:e.spacing,base:i});typeof r=="object"&&Object.keys(r).forEach((l,f,m)=>{if(!r[l]){let u=f>0?r[m[f-1]]:"column";r[l]=u}}),o=O2(o,T0({theme:t},n,(l,f)=>e.useFlexGap?{gap:U6(a,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Pg1(f?r[f]:e.direction)}`]:U6(a,l)}}))}return o=$B(t.breakpoints,o),o};function xp(e={}){let{createStyledComponent:t=Rg1,useThemeProps:o=Eg1,componentName:a="MuiStack"}=e,i=()=>U1({root:["root"]},l=>m5(a,l),{}),r=t(Cg1);return Ji.forwardRef(function(l,f){let m=o(l),d=K5(m),{component:u="div",direction:p="column",spacing:b=0,divider:g,children:x,className:y,useFlexGap:v=!1}=d,k=K2(d,Sg1),w={direction:p,spacing:b,useFlexGap:v},T=i();return(0,AU.jsx)(r,l1({as:u,ownerState:w,ref:f,className:s2(T.root,y)},k,{children:g?_g1(x,g):x}))})}s();s();s();X1();R2();g2();lt();s();X1();var Ag1=F({},s5,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}}),OU=Ag1;s();s();var Og1={grey:{50:"#FBFCFE",100:"#F0F4F8",200:"#DDE7EE",300:"#CDD7E1",400:"#9FA6AD",500:"#636B74",600:"#555E68",700:"#32383E",800:"#171A1C",900:"#0B0D0E"},blue:{50:"#EDF5FD",100:"#E3EFFB",200:"#C7DFF7",300:"#97C3F0",400:"#4393E4",500:"#0B6BCB",600:"#185EA5",700:"#12467B",800:"#0A2744",900:"#051423"},yellow:{50:"#FEFAF6",100:"#FDF0E1",200:"#FCE1C2",300:"#F3C896",400:"#EA9A3E",500:"#9A5B13",600:"#72430D",700:"#492B08",800:"#2E1B05",900:"#1D1002"},red:{50:"#FEF6F6",100:"#FCE4E4",200:"#F7C5C5",300:"#F09898",400:"#E47474",500:"#C41C1C",600:"#A51818",700:"#7D1212",800:"#430A0A",900:"#240505"},green:{50:"#F6FEF6",100:"#E3FBE3",200:"#C7F7C7",300:"#A1E8A1",400:"#51BC51",500:"#1F7A1F",600:"#136C13",700:"#0A470A",800:"#042F04",900:"#021D02"}},bo=Og1;s();function bM(e){var t;return!!e[0].match(/^(typography|variants|breakpoints)$/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/^(mode)$/))||e[0]==="focus"&&e[1]!=="thickness"}s();g2();g2();var J1=(e,t)=>m5(e,t,"Mui"),q1=(e,t)=>L7(e,t,"Mui");s();X1();var $g1=e=>e&&typeof e=="object"&&Object.keys(e).some(t=>{var o;return(o=t.match)==null?void 0:o.call(t,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),$U=(e,t,o)=>{t.includes("Color")&&(e.color=o),t.includes("Bg")&&(e.backgroundColor=o),t.includes("Border")&&(e.borderColor=o)},IU=(e,t,o)=>{let a={};return Object.entries(t||{}).forEach(([i,r])=>{if(i.match(new RegExp(`${e}(color|bg|border)`,"i"))&&r){let n=o?o(i):r;i.includes("Disabled")&&(a.pointerEvents="none",a.cursor="default",a["--Icon-color"]="currentColor"),i.match(/(Hover|Active|Disabled)/)||(a["--variant-borderWidth"]||(a["--variant-borderWidth"]="0px"),i.includes("Border")&&(a["--variant-borderWidth"]="1px",a.border="var(--variant-borderWidth) solid")),$U(a,i,n)}}),a},V0=(e,t)=>{let o={};if(t){let{getCssVar:a,palette:i}=t;Object.entries(i).forEach(r=>{let[n,c]=r;$g1(c)&&typeof c=="object"&&(o=F({},o,{[n]:IU(e,c,l=>`var(--variant-${l}, ${a(`palette-${n}-${l}`,i[n][l])})`)}))})}return o.context=IU(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),o};var Ig1=["cssVarPrefix","breakpoints","spacing","components","variants","shouldSkipGeneratingVar"],Dg1=["colorSchemes"],DU=(e="joy")=>ho(e);function Xi(e){var t,o,a,i,r,n,c,l,f,m;let d=e||{},{cssVarPrefix:u="joy",breakpoints:p,spacing:b,components:g,variants:x,shouldSkipGeneratingVar:y=bM}=d,v=I1(d,Ig1),k=DU(u),w={primary:bo.blue,neutral:bo.grey,danger:bo.red,success:bo.green,warning:bo.yellow,common:{white:"#FFF",black:"#000"}},T=Z=>{var r1;let x1=Z.split("-"),h1=x1[1],T1=x1[2];return k(Z,(r1=w[h1])==null?void 0:r1[T1])},A=Z=>({plainColor:T(`palette-${Z}-500`),plainHoverBg:T(`palette-${Z}-100`),plainActiveBg:T(`palette-${Z}-200`),plainDisabledColor:T("palette-neutral-400"),outlinedColor:T(`palette-${Z}-500`),outlinedBorder:T(`palette-${Z}-300`),outlinedHoverBg:T(`palette-${Z}-100`),outlinedActiveBg:T(`palette-${Z}-200`),outlinedDisabledColor:T("palette-neutral-400"),outlinedDisabledBorder:T("palette-neutral-200"),softColor:T(`palette-${Z}-700`),softBg:T(`palette-${Z}-100`),softHoverBg:T(`palette-${Z}-200`),softActiveColor:T(`palette-${Z}-800`),softActiveBg:T(`palette-${Z}-300`),softDisabledColor:T("palette-neutral-400"),softDisabledBg:T("palette-neutral-50"),solidColor:T("palette-common-white"),solidBg:T(`palette-${Z}-500`),solidHoverBg:T(`palette-${Z}-600`),solidActiveBg:T(`palette-${Z}-700`),solidDisabledColor:T("palette-neutral-400"),solidDisabledBg:T("palette-neutral-100")}),_=Z=>({plainColor:T(`palette-${Z}-300`),plainHoverBg:T(`palette-${Z}-800`),plainActiveBg:T(`palette-${Z}-700`),plainDisabledColor:T("palette-neutral-500"),outlinedColor:T(`palette-${Z}-200`),outlinedBorder:T(`palette-${Z}-700`),outlinedHoverBg:T(`palette-${Z}-800`),outlinedActiveBg:T(`palette-${Z}-700`),outlinedDisabledColor:T("palette-neutral-500"),outlinedDisabledBorder:T("palette-neutral-800"),softColor:T(`palette-${Z}-200`),softBg:T(`palette-${Z}-800`),softHoverBg:T(`palette-${Z}-700`),softActiveColor:T(`palette-${Z}-100`),softActiveBg:T(`palette-${Z}-600`),softDisabledColor:T("palette-neutral-500"),softDisabledBg:T("palette-neutral-800"),solidColor:T("palette-common-white"),solidBg:T(`palette-${Z}-500`),solidHoverBg:T(`palette-${Z}-600`),solidActiveBg:T(`palette-${Z}-700`),solidDisabledColor:T("palette-neutral-500"),solidDisabledBg:T("palette-neutral-800")}),z={palette:{mode:"light",primary:F({},w.primary,A("primary")),neutral:F({},w.neutral,A("neutral"),{plainColor:T("palette-neutral-700"),plainHoverColor:T("palette-neutral-900"),outlinedColor:T("palette-neutral-700")}),danger:F({},w.danger,A("danger")),success:F({},w.success,A("success")),warning:F({},w.warning,A("warning")),common:{white:"#FFF",black:"#000"},text:{primary:T("palette-neutral-800"),secondary:T("palette-neutral-700"),tertiary:T("palette-neutral-600"),icon:T("palette-neutral-500")},background:{body:T("palette-common-white"),surface:T("palette-neutral-50"),popup:T("palette-common-white"),level1:T("palette-neutral-100"),level2:T("palette-neutral-200"),level3:T("palette-neutral-300"),tooltip:T("palette-neutral-500"),backdrop:`rgba(${k("palette-neutral-darkChannel",dt(w.neutral[900]))} / 0.25)`},divider:`rgba(${k("palette-neutral-mainChannel",dt(w.neutral[500]))} / 0.2)`,focusVisible:T("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"21 21 21",shadowOpacity:"0.08"},M={palette:{mode:"dark",primary:F({},w.primary,_("primary")),neutral:F({},w.neutral,_("neutral"),{plainColor:T("palette-neutral-300"),plainHoverColor:T("palette-neutral-300")}),danger:F({},w.danger,_("danger")),success:F({},w.success,_("success")),warning:F({},w.warning,_("warning")),common:{white:"#FFF",black:"#000"},text:{primary:T("palette-neutral-100"),secondary:T("palette-neutral-300"),tertiary:T("palette-neutral-400"),icon:T("palette-neutral-400")},background:{body:T("palette-common-black"),surface:T("palette-neutral-900"),popup:T("palette-common-black"),level1:T("palette-neutral-800"),level2:T("palette-neutral-700"),level3:T("palette-neutral-600"),tooltip:T("palette-neutral-600"),backdrop:`rgba(${k("palette-neutral-darkChannel",dt(w.neutral[50]))} / 0.25)`},divider:`rgba(${k("palette-neutral-mainChannel",dt(w.neutral[500]))} / 0.16)`,focusVisible:T("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0",shadowOpacity:"0.6"},S='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',N=F({body:`"Inter", ${k(`fontFamily-fallback, ${S}`)}`,display:`"Inter", ${k(`fontFamily-fallback, ${S}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:S},v.fontFamily),C=F({sm:300,md:500,lg:600,xl:700},v.fontWeight),R=F({xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem"},v.fontSize),O=F({xs:"1.33334",sm:"1.42858",md:"1.5",lg:"1.55556",xl:"1.66667"},v.lineHeight),P=(t=(o=v.colorSchemes)==null||(o=o.light)==null?void 0:o.shadowRing)!=null?t:z.shadowRing,E=(a=(i=v.colorSchemes)==null||(i=i.light)==null?void 0:i.shadowChannel)!=null?a:z.shadowChannel,D=(r=(n=v.colorSchemes)==null||(n=n.light)==null?void 0:n.shadowOpacity)!=null?r:z.shadowOpacity,I={colorSchemes:{light:z,dark:M},fontSize:R,fontFamily:N,fontWeight:C,focus:{thickness:"2px",selector:`&.${J1("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${k("focus-thickness",(c=(l=v.focus)==null?void 0:l.thickness)!=null?c:"2px")})`,outline:`${k("focus-thickness",(f=(m=v.focus)==null?void 0:m.thickness)!=null?f:"2px")} solid ${k("palette-focusVisible",w.primary[500])}`}},lineHeight:O,radius:{xs:"2px",sm:"6px",md:"8px",lg:"12px",xl:"16px"},shadow:{xs:`${k("shadowRing",P)}, 0px 1px 2px 0px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,sm:`${k("shadowRing",P)}, 0px 1px 2px 0px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 2px 4px 0px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,md:`${k("shadowRing",P)}, 0px 2px 8px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 6px 12px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,lg:`${k("shadowRing",P)}, 0px 2px 8px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 12px 16px -4px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`,xl:`${k("shadowRing",P)}, 0px 2px 8px -2px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)}), 0px 20px 24px -4px rgba(${k("shadowChannel",E)} / ${k("shadowOpacity",D)})`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,snackbar:1400,tooltip:1500},typography:{h1:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-xl, ${C.xl}`),fontSize:k(`fontSize-xl4, ${R.xl4}`),lineHeight:k(`lineHeight-xs, ${O.xs}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},h2:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-xl, ${C.xl}`),fontSize:k(`fontSize-xl3, ${R.xl3}`),lineHeight:k(`lineHeight-xs, ${O.xs}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},h3:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-lg, ${C.lg}`),fontSize:k(`fontSize-xl2, ${R.xl2}`),lineHeight:k(`lineHeight-xs, ${O.xs}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},h4:{fontFamily:k(`fontFamily-display, ${N.display}`),fontWeight:k(`fontWeight-lg, ${C.lg}`),fontSize:k(`fontSize-xl, ${R.xl}`),lineHeight:k(`lineHeight-md, ${O.md}`),letterSpacing:"-0.025em",color:k(`palette-text-primary, ${z.palette.text.primary}`)},"title-lg":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-lg, ${C.lg}`),fontSize:k(`fontSize-lg, ${R.lg}`),lineHeight:k(`lineHeight-xs, ${O.xs}`),color:k(`palette-text-primary, ${z.palette.text.primary}`)},"title-md":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-md, ${C.md}`),fontSize:k(`fontSize-md, ${R.md}`),lineHeight:k(`lineHeight-md, ${O.md}`),color:k(`palette-text-primary, ${z.palette.text.primary}`)},"title-sm":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-md, ${C.md}`),fontSize:k(`fontSize-sm, ${R.sm}`),lineHeight:k(`lineHeight-sm, ${O.sm}`),color:k(`palette-text-primary, ${z.palette.text.primary}`)},"body-lg":{fontFamily:k(`fontFamily-body, ${N.body}`),fontSize:k(`fontSize-lg, ${R.lg}`),lineHeight:k(`lineHeight-md, ${O.md}`),color:k(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-md":{fontFamily:k(`fontFamily-body, ${N.body}`),fontSize:k(`fontSize-md, ${R.md}`),lineHeight:k(`lineHeight-md, ${O.md}`),color:k(`palette-text-secondary, ${z.palette.text.secondary}`)},"body-sm":{fontFamily:k(`fontFamily-body, ${N.body}`),fontSize:k(`fontSize-sm, ${R.sm}`),lineHeight:k(`lineHeight-md, ${O.md}`),color:k(`palette-text-tertiary, ${z.palette.text.tertiary}`)},"body-xs":{fontFamily:k(`fontFamily-body, ${N.body}`),fontWeight:k(`fontWeight-md, ${C.md}`),fontSize:k(`fontSize-xs, ${R.xs}`),lineHeight:k(`lineHeight-md, ${O.md}`),color:k(`palette-text-tertiary, ${z.palette.text.tertiary}`)}}},$=v?O2(I,v):I,{colorSchemes:V}=$,K=I1($,Dg1),X=F({colorSchemes:V},K,{breakpoints:at(p??{}),components:O2({MuiSvgIcon:{defaultProps:{fontSize:"xl2"},styleOverrides:{root:({ownerState:Z,theme:r1})=>{var x1;let h1=Z.instanceFontSize;return F({margin:"var(--Icon-margin)"},Z.fontSize&&Z.fontSize!=="inherit"&&{fontSize:`var(--Icon-fontSize, ${r1.vars.fontSize[Z.fontSize]})`},!Z.htmlColor&&F({color:`var(--Icon-color, ${X.vars.palette.text.icon})`},Z.color&&Z.color!=="inherit"&&r1.vars.palette[Z.color]&&{color:`rgba(${(x1=r1.vars.palette[Z.color])==null?void 0:x1.mainChannel} / 1)`}),h1&&h1!=="inherit"&&{"--Icon-fontSize":r1.vars.fontSize[h1]})}}}},g),cssVarPrefix:u,getCssVar:k,spacing:Hi(b)});function e1(Z,r1){Object.keys(r1).forEach(x1=>{let h1={main:"500",light:"200",dark:"700"};Z==="dark"&&(h1.main=400),!r1[x1].mainChannel&&r1[x1][h1.main]&&(r1[x1].mainChannel=dt(r1[x1][h1.main])),!r1[x1].lightChannel&&r1[x1][h1.light]&&(r1[x1].lightChannel=dt(r1[x1][h1.light])),!r1[x1].darkChannel&&r1[x1][h1.dark]&&(r1[x1].darkChannel=dt(r1[x1][h1.dark]))})}Object.entries(X.colorSchemes).forEach(([Z,r1])=>{e1(Z,r1.palette)});let Y={prefix:u,shouldSkipGeneratingVar:y},{vars:q,generateCssVars:o1}=pM(F({colorSchemes:V},K),Y);X.vars=q,X.generateCssVars=o1,X.unstable_sxConfig=F({},OU,e?.unstable_sxConfig),X.unstable_sx=function(r1){return f5({sx:r1,theme:this})},X.getColorSchemeSelector=Z=>Z==="light"?"&":`&[data-joy-color-scheme="${Z}"], [data-joy-color-scheme="${Z}"] &`;let W={getCssVar:k,palette:X.colorSchemes.light.palette};return X.variants=O2({plain:V0("plain",W),plainHover:V0("plainHover",W),plainActive:V0("plainActive",W),plainDisabled:V0("plainDisabled",W),outlined:V0("outlined",W),outlinedHover:V0("outlinedHover",W),outlinedActive:V0("outlinedActive",W),outlinedDisabled:V0("outlinedDisabled",W),soft:V0("soft",W),softHover:V0("softHover",W),softActive:V0("softActive",W),softDisabled:V0("softDisabled",W),solid:V0("solid",W),solidHover:V0("solidHover",W),solidActive:V0("solidActive",W),solidDisabled:V0("solidDisabled",W)},x),X.palette=F({},X.colorSchemes.light.palette,{colorScheme:"light"}),X.shouldSkipGeneratingVar=y,X.applyStyles=co,X}var Ng1=Xi(),K6=Ng1;s();X1();var a52=L(H());var Lg1=L(f1()),Yi={attribute:"data-joy-color-scheme",colorSchemeStorageKey:"joy-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"joy-mode"};var{CssVarsProvider:yM,useColorScheme:yo,getInitColorSchemeScript:f52}=yp({themeId:F6,theme:K6,attribute:Yi.attribute,modeStorageKey:Yi.modeStorageKey,colorSchemeStorageKey:Yi.colorSchemeStorageKey,defaultColorScheme:{light:Yi.defaultLightColorScheme,dark:Yi.defaultDarkColorScheme}});s();var jg1=Ki({defaultTheme:K6,themeId:F6}),b1=jg1;s();var Fg1=L(H());var Bg1=L(f1()),NU=()=>{let e=$e(K6);return e[F6]||e};s();X1();function W1({props:e,name:t}){return j7({props:e,name:t,defaultTheme:F({},K6,{components:{}}),themeId:F6})}s();s();R2();X1();var xG=L(H());A3();s();s();s();Qw();s();function Qi(e,t,o=(a,i)=>a===i){return e.length===t.length&&e.every((a,i)=>o(a,t[i]))}s();var Ll=L(H()),Vg1=L(f1()),Ug1={disableDefaultClasses:!1},Hg1=Ll.createContext(Ug1);function LU(e){let{disableDefaultClasses:t}=Ll.useContext(Hg1);return o=>t?"":e(o)}s();eM();s();Yw();s();oM();s();var jl=L(H());function jU(e){let{rootElementName:t="",componentName:o}=e,[a,i]=jl.useState(t.toUpperCase()),r=jl.useCallback(n=>{var c;i((c=n?.tagName)!=null?c:"")},[]);return[a,r]}s();XV();s();tM();s();g2();s();s();ft();var FU="base";function Gg1(e){return`${FU}--${e}`}function Kg1(e,t){return`${FU}-${e}-${t}`}function zp(e,t){let o=Pw[t];return o?Gg1(o):Kg1(e,t)}function BU(e,t){let o={};return t.forEach(a=>{o[a]=zp(e,a)}),o}s();s();C2();var ko=L(H());g2();function d5(e={}){let{disabled:t=!1,focusableWhenDisabled:o,href:a,rootRef:i,tabIndex:r,to:n,type:c,rootElementName:l}=e,f=ko.useRef(null),[m,d]=ko.useState(!1),{isFocusVisibleRef:u,onFocus:p,onBlur:b,ref:g}=De(),[x,y]=ko.useState(!1);t&&!o&&x&&y(!1),ko.useEffect(()=>{u.current=x},[x,u]);let[v,k]=jU({rootElementName:l??(a||n?"a":void 0),componentName:"Button"}),w=P=>E=>{var D;x&&E.preventDefault(),(D=P.onMouseLeave)==null||D.call(P,E)},T=P=>E=>{var D;b(E),u.current===!1&&y(!1),(D=P.onBlur)==null||D.call(P,E)},A=P=>E=>{var D;if(f.current||(f.current=E.currentTarget),p(E),u.current===!0){var I;y(!0),(I=P.onFocusVisible)==null||I.call(P,E)}(D=P.onFocus)==null||D.call(P,E)},_=()=>{let P=f.current;return v==="BUTTON"||v==="INPUT"&&["button","submit","reset"].includes(P?.type)||v==="A"&&P?.href},z=P=>E=>{if(!t){var D;(D=P.onClick)==null||D.call(P,E)}},M=P=>E=>{var D;t||(d(!0),document.addEventListener("mouseup",()=>{d(!1)},{once:!0})),(D=P.onMouseDown)==null||D.call(P,E)},S=P=>E=>{var D;if((D=P.onKeyDown)==null||D.call(P,E),!E.defaultMuiPrevented&&(E.target===E.currentTarget&&!_()&&E.key===" "&&E.preventDefault(),E.target===E.currentTarget&&E.key===" "&&!t&&d(!0),E.target===E.currentTarget&&!_()&&E.key==="Enter"&&!t)){var I;(I=P.onClick)==null||I.call(P,E),E.preventDefault()}},N=P=>E=>{var D;if(E.target===E.currentTarget&&d(!1),(D=P.onKeyUp)==null||D.call(P,E),E.target===E.currentTarget&&!_()&&!t&&E.key===" "&&!E.defaultMuiPrevented){var I;(I=P.onClick)==null||I.call(P,E)}},C=Q1(k,i,g,f),R={};return r!==void 0&&(R.tabIndex=r),v==="BUTTON"?(R.type=c??"button",o?R["aria-disabled"]=t:R.disabled=t):v==="INPUT"?c&&["button","submit","reset"].includes(c)&&(o?R["aria-disabled"]=t:R.disabled=t):v!==""&&(!a&&!n&&(R.role="button",R.tabIndex=r??0),t&&(R["aria-disabled"]=t,R.tabIndex=o?r??0:-1)),{getRootProps:(P={})=>{let E=l1({},V2(e),V2(P)),D=l1({type:c},E,R,P,{onBlur:T(E),onClick:z(E),onFocus:A(E),onKeyDown:S(E),onKeyUp:N(E),onMouseDown:M(E),onMouseLeave:w(E),ref:C});return delete D.onFocusVisible,D},focusVisible:x,setFocusVisible:y,active:m,rootRef:C}}s();var u5=L(H());g2();var UU=L(f1());function VU(e){return e.substring(2).toLowerCase()}function qg1(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function HU(e){let{children:t,disableReactTree:o=!1,mouseEvent:a="onClick",onClickAway:i,touchEvent:r="onTouchEnd"}=e,n=u5.useRef(!1),c=u5.useRef(null),l=u5.useRef(!1),f=u5.useRef(!1);u5.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);let m=Q1(U7(t),c),d=i4(b=>{let g=f.current;f.current=!1;let x=d0(c.current);if(!l.current||!c.current||"clientX"in b&&qg1(b,x))return;if(n.current){n.current=!1;return}let y;b.composedPath?y=b.composedPath().indexOf(c.current)>-1:y=!x.documentElement.contains(b.target)||c.current.contains(b.target),!y&&(o||!g)&&i(b)}),u=b=>g=>{f.current=!0;let x=t.props[b];x&&x(g)},p={ref:m};return r!==!1&&(p[r]=u(r)),u5.useEffect(()=>{if(r!==!1){let b=VU(r),g=d0(c.current),x=()=>{n.current=!0};return g.addEventListener(b,d),g.addEventListener("touchmove",x),()=>{g.removeEventListener(b,d),g.removeEventListener("touchmove",x)}}},[d,r]),a!==!1&&(p[a]=u(a)),u5.useEffect(()=>{if(a!==!1){let b=VU(a),g=d0(c.current);return g.addEventListener(b,d),()=>{g.removeEventListener(b,d)}}},[d,a]),(0,UU.jsx)(u5.Fragment,{children:u5.cloneElement(t,p)})}s();C2();var Le=L(H());function Wg1(e,t){return e===t}var kM={},GU=()=>{};function xM(e,t){let o=l1({},e);return Object.keys(t).forEach(a=>{t[a]!==void 0&&(o[a]=t[a])}),o}function Zg1(e){let{nextState:t,initialState:o,stateComparers:a,onStateChange:i,controlledProps:r,lastActionRef:n}=e,c=Le.useRef(o);Le.useEffect(()=>{if(n.current===null)return;let l=xM(c.current,r);Object.keys(t).forEach(f=>{var m;let d=(m=a[f])!=null?m:Wg1,u=t[f],p=l[f];if(p==null&&u!=null||p!=null&&u==null||p!=null&&u!=null&&!d(u,p)){var b,g;i?.((b=n.current.event)!=null?b:null,f,u,(g=n.current.type)!=null?g:"",t)}}),c.current=t,n.current=null},[c,t,n,i,a,r])}function KU(e){let t=Le.useRef(null),{reducer:o,initialState:a,controlledProps:i=kM,stateComparers:r=kM,onStateChange:n=GU,actionContext:c,componentName:l=""}=e,f=Le.useRef(i),m=Le.useCallback((b,g)=>{t.current=g;let x=xM(b,i);return o(x,g)},[i,o]),[d,u]=Le.useReducer(m,a),p=Le.useCallback(b=>{u(l1({},b,{context:c}))},[c]);return Zg1({nextState:d,initialState:a,stateComparers:r??kM,onStateChange:n??GU,controlledProps:i,lastActionRef:t}),[xM(d,i),p]}s();s();var qU=L(H()),WU=qU.createContext(void 0);s();var ZU=L(H());function zM(){return ZU.useContext(WU)}s();s();C2();tt();var K7=L(H());g2();function wM(e={}){let{defaultValue:t,disabled:o=!1,error:a=!1,onBlur:i,onChange:r,onFocus:n,required:c=!1,value:l,inputRef:f}=e,m=zM(),d,u,p,b,g;if(m){var x,y,v;d=void 0,u=(x=m.disabled)!=null?x:!1,p=(y=m.error)!=null?y:!1,b=(v=m.required)!=null?v:!1,g=m.value}else d=t,u=o,p=a,b=c,g=l;let{current:k}=K7.useRef(g!=null),w=K7.useCallback(P=>{},[]),T=K7.useRef(null),A=Q1(T,f,w),[_,z]=K7.useState(!1);K7.useEffect(()=>{!m&&u&&_&&(z(!1),i?.())},[m,u,_,i]);let M=P=>E=>{var D;if(m!=null&&m.disabled){E.stopPropagation();return}if((D=P.onFocus)==null||D.call(P,E),m&&m.onFocus){var I;m==null||(I=m.onFocus)==null||I.call(m)}else z(!0)},S=P=>E=>{var D;(D=P.onBlur)==null||D.call(P,E),m&&m.onBlur?m.onBlur():z(!1)},N=P=>(E,...D)=>{var I,$;if(!k&&(E.target||T.current)==null)throw new Error(F0(17));m==null||(I=m.onChange)==null||I.call(m,E),($=P.onChange)==null||$.call(P,E,...D)},C=P=>E=>{var D;T.current&&E.currentTarget===E.target&&T.current.focus(),(D=P.onClick)==null||D.call(P,E)};return{disabled:u,error:p,focused:_,formControlContext:m,getInputProps:(P={})=>{let D=l1({},{onBlur:i,onChange:r,onFocus:n},V2(P)),I=l1({},D,{onBlur:S(D),onChange:N(D),onFocus:M(D)});return l1({},I,{"aria-invalid":p||void 0,defaultValue:d,value:g,required:b,disabled:u},P,{ref:A},I)},getRootProps:(P={})=>{let E=V2(e,["onBlur","onChange","onFocus"]),D=l1({},E,V2(P));return l1({},P,D,{onClick:C(D)})},inputRef:A,required:b,value:g}}s();s();C2();var n4=L(H());g2();s();var Q2={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};s();C2();function Jg1(e,t,o,a,i,r){if(o.length===0||!a&&o.every((c,l)=>i(c,l)))return-1;let n=e;for(;;){if(!r&&t==="next"&&n===o.length||!r&&t==="previous"&&n===-1)return-1;if(a?!1:i(o[n],n))n+=t==="next"?1:-1,r&&(n=(n+o.length)%o.length);else return n}}function R0(e,t,o){var a;let{items:i,isItemDisabled:r,disableListWrap:n,disabledItemsFocusable:c,itemComparer:l,focusManagement:f}=o,m=f==="DOM"?0:-1,d=i.length-1,u=e==null?-1:i.findIndex(y=>l(y,e)),p,b,g=!n;switch(t){case"reset":if(m===-1)return null;p=0,b="next",g=!1;break;case"start":p=0,b="next",g=!1;break;case"end":p=d,b="previous",g=!1;break;default:{let y=u+t;y<0?!g&&u!==-1||Math.abs(t)>1?(p=0,b="next"):(p=d,b="previous"):y>d?!g||Math.abs(t)>1?(p=d,b="previous"):(p=0,b="next"):(p=y,b=t>=0?"next":"previous")}}let x=Jg1(p,b,i,c,r,g);return x===-1&&e!==null&&!r(e,u)?e:(a=i[x])!=null?a:null}function Xg1(e,t,o,a){return o==="none"?[]:o==="single"?a(t[0],e)?t:[e]:t.some(i=>a(i,e))?t.filter(i=>!a(i,e)):[...t,e]}function wp(e,t,o){let{itemComparer:a,isItemDisabled:i,selectionMode:r,items:n}=o,{selectedValues:c}=t,l=n.findIndex(m=>a(e,m));if(i(e,l))return t;let f=Xg1(e,c,r,a);return l1({},t,{selectedValues:f,highlightedValue:e})}function Yg1(e,t,o){let a=t.highlightedValue,{orientation:i,pageSize:r}=o;switch(e){case"Home":return l1({},t,{highlightedValue:R0(a,"start",o)});case"End":return l1({},t,{highlightedValue:R0(a,"end",o)});case"PageUp":return l1({},t,{highlightedValue:R0(a,-r,o)});case"PageDown":return l1({},t,{highlightedValue:R0(a,r,o)});case"ArrowUp":if(i!=="vertical")break;return l1({},t,{highlightedValue:R0(a,-1,o)});case"ArrowDown":if(i!=="vertical")break;return l1({},t,{highlightedValue:R0(a,1,o)});case"ArrowLeft":{if(i==="vertical")break;return l1({},t,{highlightedValue:R0(a,i==="horizontal-ltr"?-1:1,o)})}case"ArrowRight":{if(i==="vertical")break;return l1({},t,{highlightedValue:R0(a,i==="horizontal-ltr"?1:-1,o)})}case"Enter":case" ":return t.highlightedValue===null?t:wp(t.highlightedValue,t,o);default:break}return t}function Qg1(e,t){return t.focusManagement==="DOM"?e:l1({},e,{highlightedValue:null})}function ev1(e,t,o){var a;let i=(a=o(e))==null?void 0:a.trim().toLowerCase();return!i||i.length===0?!1:i.indexOf(t)===0}function tv1(e,t,o){let{items:a,isItemDisabled:i,disabledItemsFocusable:r,getItemAsString:n}=o,c=t.length>1,l=c?e.highlightedValue:R0(e.highlightedValue,1,o);for(let f=0;f<a.length;f+=1){if(!l||!c&&e.highlightedValue===l)return e;if(ev1(l,t,n)&&(!i(l,a.indexOf(l))||r))return l1({},e,{highlightedValue:l});l=R0(l,1,o)}return e}function ov1(e,t,o,a){var i;let{itemComparer:r,focusManagement:n}=a,c=null;if(o.highlightedValue!=null){var l;c=(l=e.find(d=>r(d,o.highlightedValue)))!=null?l:null}else n==="DOM"&&t.length===0&&(c=R0(null,"reset",a));let m=((i=o.selectedValues)!=null?i:[]).filter(d=>e.some(u=>r(u,d)));return l1({},o,{highlightedValue:c,selectedValues:m})}function av1(e,t){return l1({},e,{highlightedValue:R0(null,"reset",t)})}function iv1(e,t){return l1({},e,{highlightedValue:R0(null,"end",t)})}function rv1(e,t){return l1({},e,{selectedValues:[],highlightedValue:R0(null,"reset",t)})}function Mp(e,t){let{type:o,context:a}=t;switch(o){case Q2.keyDown:return Yg1(t.key,e,a);case Q2.itemClick:return wp(t.item,e,a);case Q2.blur:return Qg1(e,a);case Q2.textNavigation:return tv1(e,t.searchString,a);case Q2.itemsChange:return ov1(t.items,t.previousItems,e,a);case Q2.resetHighlight:return av1(e,a);case Q2.highlightLast:return iv1(e,a);case Q2.clearSelection:return rv1(e,a);default:return e}}s();var Sp=L(H()),nv1=500;function JU(e){let t=Sp.useRef({searchString:"",lastTime:null});return Sp.useCallback(o=>{if(o.key.length===1&&o.key!==" "){let a=t.current,i=o.key.toLowerCase(),r=performance.now();a.searchString.length>0&&a.lastTime&&r-a.lastTime>nv1?a.searchString=i:(a.searchString.length!==1||i!==a.searchString)&&(a.searchString+=i),a.lastTime=r,e(a.searchString,o)}},[e])}var XU={},cv1=()=>{},lv1=(e,t)=>e===t,sv1=()=>!1,fv1=e=>typeof e=="string"?e:String(e),mv1=()=>({highlightedValue:null,selectedValues:[]});function MM(e){let{controlledProps:t=XU,disabledItemsFocusable:o=!1,disableListWrap:a=!1,focusManagement:i="activeDescendant",getInitialState:r=mv1,getItemDomElement:n,getItemId:c,isItemDisabled:l=sv1,rootRef:f,onStateChange:m=cv1,items:d,itemComparer:u=lv1,getItemAsString:p=fv1,onChange:b,onHighlightChange:g,onItemsChange:x,orientation:y="vertical",pageSize:v=5,reducerActionContext:k=XU,selectionMode:w="single",stateReducer:T,componentName:A="useList"}=e,_=n4.useRef(null),z=Q1(f,_),M=n4.useCallback((W,Z,r1)=>{if(g?.(W,Z,r1),i==="DOM"&&Z!=null&&(r1===Q2.itemClick||r1===Q2.keyDown||r1===Q2.textNavigation)){var x1;n==null||(x1=n(Z))==null||x1.focus()}},[n,g,i]),S=n4.useMemo(()=>({highlightedValue:u,selectedValues:(W,Z)=>Qi(W,Z,u)}),[u]),N=n4.useCallback((W,Z,r1,x1,h1)=>{switch(m?.(W,Z,r1,x1,h1),Z){case"highlightedValue":M(W,r1,x1);break;case"selectedValues":b?.(W,r1,x1);break;default:break}},[M,b,m]),C=n4.useMemo(()=>({disabledItemsFocusable:o,disableListWrap:a,focusManagement:i,isItemDisabled:l,itemComparer:u,items:d,getItemAsString:p,onHighlightChange:M,orientation:y,pageSize:v,selectionMode:w,stateComparers:S}),[o,a,i,l,u,d,p,M,y,v,w,S]),R=r(),O=T??Mp,P=n4.useMemo(()=>l1({},k,C),[k,C]),[E,D]=KU({reducer:O,actionContext:P,initialState:R,controlledProps:t,stateComparers:S,onStateChange:N,componentName:A}),{highlightedValue:I,selectedValues:$}=E,V=JU((W,Z)=>D({type:Q2.textNavigation,event:Z,searchString:W})),K=n4.useRef([]);n4.useEffect(()=>{Qi(K.current,d,u)||(D({type:Q2.itemsChange,event:null,items:d,previousItems:K.current}),K.current=d,x?.(d))},[d,u,D,x]);let X=W=>Z=>{var r1;if((r1=W.onKeyDown)==null||r1.call(W,Z),Z.defaultMuiPrevented)return;let x1=["Home","End","PageUp","PageDown"];y==="vertical"?x1.push("ArrowUp","ArrowDown"):x1.push("ArrowLeft","ArrowRight"),i==="activeDescendant"&&x1.push(" ","Enter"),x1.includes(Z.key)&&Z.preventDefault(),D({type:Q2.keyDown,key:Z.key,event:Z}),V(Z)},e1=W=>Z=>{var r1,x1;(r1=W.onBlur)==null||r1.call(W,Z),!Z.defaultMuiPrevented&&((x1=_.current)!=null&&x1.contains(Z.relatedTarget)||D({type:Q2.blur,event:Z}))},Y=(W={})=>{let Z=V2(W);return l1({},W,{"aria-activedescendant":i==="activeDescendant"&&I!=null?c(I):void 0,tabIndex:i==="DOM"?-1:0,ref:z},Z,{onBlur:e1(Z),onKeyDown:X(Z)})},q=n4.useCallback(W=>{let Z=($??[]).some(h1=>h1!=null&&u(W,h1)),r1=I!=null&&u(W,I);return{focusable:i==="DOM",highlighted:r1,selected:Z}},[u,$,I,i]),o1=n4.useMemo(()=>({dispatch:D,getItemState:q}),[D,q]);return n4.useDebugValue({state:E}),{contextValue:o1,dispatch:D,getRootProps:Y,rootRef:z,state:E}}s();C2();var Fl=L(H());s();var YU=L(H()),pt=YU.createContext(null);function SM(e){let{handlePointerOverEvents:t=!1,item:o}=e,a=Fl.useContext(pt);if(!a)throw new Error("useListItem must be used within a ListProvider");let{dispatch:i,getItemState:r}=a,{highlighted:n,selected:c,focusable:l}=r(o),f=Fl.useCallback(p=>b=>{var g;(g=p.onClick)==null||g.call(p,b),!b.defaultPrevented&&i({type:Q2.itemClick,item:o,event:b})},[i,o]),m=Fl.useCallback(p=>b=>{var g;(g=p.onMouseOver)==null||g.call(p,b),!b.defaultPrevented&&i({type:Q2.itemHover,item:o,event:b})},[i,o]),d;return l&&(d=n?0:-1),{getRootProps:(p={})=>{let b=V2(p);return l1({},p,{onClick:f(b),onPointerOver:t?m(b):void 0,tabIndex:d})},highlighted:n,selected:c}}s();var p5=L(H()),Tp=p5.createContext(null);function dv1(e){let t=Array.from(e.keys()).map(o=>{let a=e.get(o);return{key:o,subitem:a}});return t.sort((o,a)=>{let i=o.subitem.ref.current,r=a.subitem.ref.current;return i===null||r===null||i===r?0:i.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(o=>[o.key,o.subitem]))}function QU(){let[e,t]=p5.useState(new Map),o=p5.useRef(new Set),a=p5.useCallback(function(f){o.current.delete(f),t(m=>{let d=new Map(m);return d.delete(f),d})},[]),i=p5.useCallback(function(f,m){let d;return typeof f=="function"?d=f(o.current):d=f,o.current.add(d),t(u=>{let p=new Map(u);return p.set(d,m),p}),{id:d,deregister:()=>a(d)}},[a]),r=p5.useMemo(()=>dv1(e),[e]),n=p5.useCallback(function(f){return Array.from(r.keys()).indexOf(f)},[r]);return{contextValue:p5.useMemo(()=>({getItemIndex:n,registerItem:i,totalSubitemCount:e.size}),[n,i,e.size]),subitems:r}}s();var Rp=L(H());g2();function eH(e,t){let o=Rp.useContext(Tp);if(o===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:a}=o,[i,r]=Rp.useState(typeof e=="function"?void 0:e);return M3(()=>{let{id:n,deregister:c}=a(e,t);return r(n),c},[a,t,e]),{id:i,index:i!==void 0?o.getItemIndex(i):-1,totalItemCount:o.totalSubitemCount}}s();C2();function er(e,t){return function(a={}){let i=l1({},a,e(a));return l1({},i,t(i))}}s();s();s();s();var q6=Math.min,u0=Math.max,xo=Math.round,tr=Math.floor,je=e=>({x:e,y:e}),uv1={left:"right",right:"left",bottom:"top",top:"bottom"};function TM(e,t,o){return u0(e,q6(t,o))}function ht(e,t){return typeof e=="function"?e(t):e}function q7(e){return e.split("-")[0]}function or(e){return e.split("-")[1]}function RM(e){return e==="x"?"y":"x"}function EM(e){return e==="y"?"height":"width"}function W6(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function _M(e){return RM(W6(e))}function aH(e,t,o){o===void 0&&(o=!1);let a=or(e),i=_M(e),r=EM(i),n=i==="x"?a===(o?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(n=Bl(n)),[n,Bl(n)]}function iH(e){let t=Bl(e);return[Ep(e),t,Ep(t)]}function Ep(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var tH=["left","right"],oH=["right","left"],pv1=["top","bottom"],hv1=["bottom","top"];function gv1(e,t,o){switch(e){case"top":case"bottom":return o?t?oH:tH:t?tH:oH;case"left":case"right":return t?pv1:hv1;default:return[]}}function rH(e,t,o,a){let i=or(e),r=gv1(q7(e),o==="start",a);return i&&(r=r.map(n=>n+"-"+i),t&&(r=r.concat(r.map(Ep)))),r}function Bl(e){let t=q7(e);return uv1[t]+e.slice(t.length)}function vv1(e){return{top:0,right:0,bottom:0,left:0,...e}}function nH(e){return typeof e!="number"?vv1(e):{top:e,right:e,bottom:e,left:e}}function zo(e){let{x:t,y:o,width:a,height:i}=e;return{width:a,height:i,top:o,left:t,right:t+a,bottom:o+i,x:t,y:o}}function cH(e,t,o){let{reference:a,floating:i}=e,r=W6(t),n=_M(t),c=EM(n),l=q7(t),f=r==="y",m=a.x+a.width/2-i.width/2,d=a.y+a.height/2-i.height/2,u=a[c]/2-i[c]/2,p;switch(l){case"top":p={x:m,y:a.y-i.height};break;case"bottom":p={x:m,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:d};break;case"left":p={x:a.x-i.width,y:d};break;default:p={x:a.x,y:a.y}}switch(or(t)){case"start":p[n]-=u*(o&&f?-1:1);break;case"end":p[n]+=u*(o&&f?-1:1);break}return p}async function PM(e,t){var o;t===void 0&&(t={});let{x:a,y:i,platform:r,rects:n,elements:c,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:d="floating",altBoundary:u=!1,padding:p=0}=ht(t,e),b=nH(p),x=c[u?d==="floating"?"reference":"floating":d],y=zo(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(x)))==null||o?x:x.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:l})),v=d==="floating"?{x:a,y:i,width:n.floating.width,height:n.floating.height}:n.reference,k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c.floating)),w=await(r.isElement==null?void 0:r.isElement(k))?await(r.getScale==null?void 0:r.getScale(k))||{x:1,y:1}:{x:1,y:1},T=zo(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:k,strategy:l}):v);return{top:(y.top-T.top+b.top)/w.y,bottom:(T.bottom-y.bottom+b.bottom)/w.y,left:(y.left-T.left+b.left)/w.x,right:(T.right-y.right+b.right)/w.x}}var bv1=50,lH=async(e,t,o)=>{let{placement:a="bottom",strategy:i="absolute",middleware:r=[],platform:n}=o,c=n.detectOverflow?n:{...n,detectOverflow:PM},l=await(n.isRTL==null?void 0:n.isRTL(t)),f=await n.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:d}=cH(f,a,l),u=a,p=0,b={};for(let g=0;g<r.length;g++){let x=r[g];if(!x)continue;let{name:y,fn:v}=x,{x:k,y:w,data:T,reset:A}=await v({x:m,y:d,initialPlacement:a,placement:u,strategy:i,middlewareData:b,rects:f,platform:c,elements:{reference:e,floating:t}});m=k??m,d=w??d,b[y]={...b[y],...T},A&&p<bv1&&(p++,typeof A=="object"&&(A.placement&&(u=A.placement),A.rects&&(f=A.rects===!0?await n.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:m,y:d}=cH(f,u,l)),g=-1)}return{x:m,y:d,placement:u,strategy:i,middlewareData:b}};var sH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,a;let{placement:i,middlewareData:r,rects:n,initialPlacement:c,platform:l,elements:f}=t,{mainAxis:m=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...x}=ht(e,t);if((o=r.arrow)!=null&&o.alignmentOffset)return{};let y=q7(i),v=W6(c),k=q7(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(f.floating)),T=u||(k||!g?[Bl(c)]:iH(c)),A=b!=="none";!u&&A&&T.push(...rH(c,g,b,w));let _=[c,...T],z=await l.detectOverflow(t,x),M=[],S=((a=r.flip)==null?void 0:a.overflows)||[];if(m&&M.push(z[y]),d){let O=aH(i,n,w);M.push(z[O[0]],z[O[1]])}if(S=[...S,{placement:i,overflows:M}],!M.every(O=>O<=0)){var N,C;let O=(((N=r.flip)==null?void 0:N.index)||0)+1,P=_[O];if(P&&(!(d==="alignment"?v!==W6(P):!1)||S.every(I=>W6(I.placement)===v?I.overflows[0]>0:!0)))return{data:{index:O,overflows:S},reset:{placement:P}};let E=(C=S.filter(D=>D.overflows[0]<=0).sort((D,I)=>D.overflows[1]-I.overflows[1])[0])==null?void 0:C.placement;if(!E)switch(p){case"bestFit":{var R;let D=(R=S.filter(I=>{if(A){let $=W6(I.placement);return $===v||$==="y"}return!0}).map(I=>[I.placement,I.overflows.filter($=>$>0).reduce(($,V)=>$+V,0)]).sort((I,$)=>I[1]-$[1])[0])==null?void 0:R[0];D&&(E=D);break}case"initialPlacement":E=c;break}if(i!==E)return{reset:{placement:E}}}return{}}}};var yv1=new Set(["left","top"]);async function kv1(e,t){let{placement:o,platform:a,elements:i}=e,r=await(a.isRTL==null?void 0:a.isRTL(i.floating)),n=q7(o),c=or(o),l=W6(o)==="y",f=yv1.has(n)?-1:1,m=r&&l?-1:1,d=ht(t,e),{mainAxis:u,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof b=="number"&&(p=c==="end"?b*-1:b),l?{x:p*m,y:u*f}:{x:u*f,y:p*m}}var fH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,a;let{x:i,y:r,placement:n,middlewareData:c}=t,l=await kv1(t,e);return n===((o=c.offset)==null?void 0:o.placement)&&(a=c.arrow)!=null&&a.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:n}}}}},mH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:a,placement:i,platform:r}=t,{mainAxis:n=!0,crossAxis:c=!1,limiter:l={fn:y=>{let{x:v,y:k}=y;return{x:v,y:k}}},...f}=ht(e,t),m={x:o,y:a},d=await r.detectOverflow(t,f),u=W6(q7(i)),p=RM(u),b=m[p],g=m[u];if(n){let y=p==="y"?"top":"left",v=p==="y"?"bottom":"right",k=b+d[y],w=b-d[v];b=TM(k,b,w)}if(c){let y=u==="y"?"top":"left",v=u==="y"?"bottom":"right",k=g+d[y],w=g-d[v];g=TM(k,g,w)}let x=l.fn({...t,[p]:b,[u]:g});return{...x,data:{x:x.x-o,y:x.y-a,enabled:{[p]:n,[u]:c}}}}}};var dH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var o,a;let{placement:i,rects:r,platform:n,elements:c}=t,{apply:l=()=>{},...f}=ht(e,t),m=await n.detectOverflow(t,f),d=q7(i),u=or(i),p=W6(i)==="y",{width:b,height:g}=r.floating,x,y;d==="top"||d==="bottom"?(x=d,y=u===(await(n.isRTL==null?void 0:n.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,x=u==="end"?"top":"bottom");let v=g-m.top-m.bottom,k=b-m.left-m.right,w=q6(g-m[x],v),T=q6(b-m[y],k),A=!t.middlewareData.shift,_=w,z=T;if((o=t.middlewareData.shift)!=null&&o.enabled.x&&(z=k),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(_=v),A&&!u){let S=u0(m.left,0),N=u0(m.right,0),C=u0(m.top,0),R=u0(m.bottom,0);p?z=b-2*(S!==0||N!==0?S+N:u0(m.left,m.right)):_=g-2*(C!==0||R!==0?C+R:u0(m.top,m.bottom))}await l({...t,availableWidth:z,availableHeight:_});let M=await n.getDimensions(c.floating);return b!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};s();function _p(){return typeof window<"u"}function gt(e){return pH(e)?(e.nodeName||"").toLowerCase():"#document"}function w4(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fe(e){var t;return(t=(pH(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pH(e){return _p()?e instanceof Node||e instanceof w4(e).Node:!1}function U0(e){return _p()?e instanceof Element||e instanceof w4(e).Element:!1}function Be(e){return _p()?e instanceof HTMLElement||e instanceof w4(e).HTMLElement:!1}function uH(e){return!_p()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof w4(e).ShadowRoot}function ar(e){let{overflow:t,overflowX:o,overflowY:a,display:i}=h5(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+o)&&i!=="inline"&&i!=="contents"}function hH(e){return/^(table|td|th)$/.test(gt(e))}function Vl(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var xv1=/transform|translate|scale|rotate|perspective|filter/,zv1=/paint|layout|strict|content/,wo=e=>!!e&&e!=="none",CM;function Pp(e){let t=U0(e)?h5(e):e;return wo(t.transform)||wo(t.translate)||wo(t.scale)||wo(t.rotate)||wo(t.perspective)||!Ul()&&(wo(t.backdropFilter)||wo(t.filter))||xv1.test(t.willChange||"")||zv1.test(t.contain||"")}function gH(e){let t=Z6(e);for(;Be(t)&&!vt(t);){if(Pp(t))return t;if(Vl(t))return null;t=Z6(t)}return null}function Ul(){return CM==null&&(CM=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),CM}function vt(e){return/^(html|body|#document)$/.test(gt(e))}function h5(e){return w4(e).getComputedStyle(e)}function Hl(e){return U0(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z6(e){if(gt(e)==="html")return e;let t=e.assignedSlot||e.parentNode||uH(e)&&e.host||Fe(e);return uH(t)?t.host:t}function vH(e){let t=Z6(e);return vt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Be(t)&&ar(t)?t:vH(t)}function W7(e,t,o){var a;t===void 0&&(t=[]),o===void 0&&(o=!0);let i=vH(e),r=i===((a=e.ownerDocument)==null?void 0:a.body),n=w4(i);if(r){let c=Cp(n);return t.concat(n,n.visualViewport||[],ar(i)?i:[],c&&o?W7(c):[])}else return t.concat(i,W7(i,[],o))}function Cp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xH(e){let t=h5(e),o=parseFloat(t.width)||0,a=parseFloat(t.height)||0,i=Be(e),r=i?e.offsetWidth:o,n=i?e.offsetHeight:a,c=xo(o)!==r||xo(a)!==n;return c&&(o=r,a=n),{width:o,height:a,$:c}}function OM(e){return U0(e)?e:e.contextElement}function ir(e){let t=OM(e);if(!Be(t))return je(1);let o=t.getBoundingClientRect(),{width:a,height:i,$:r}=xH(t),n=(r?xo(o.width):o.width)/a,c=(r?xo(o.height):o.height)/i;return(!n||!Number.isFinite(n))&&(n=1),(!c||!Number.isFinite(c))&&(c=1),{x:n,y:c}}var wv1=je(0);function zH(e){let t=w4(e);return!Ul()||!t.visualViewport?wv1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mv1(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==w4(e)?!1:t}function Mo(e,t,o,a){t===void 0&&(t=!1),o===void 0&&(o=!1);let i=e.getBoundingClientRect(),r=OM(e),n=je(1);t&&(a?U0(a)&&(n=ir(a)):n=ir(e));let c=Mv1(r,o,a)?zH(r):je(0),l=(i.left+c.x)/n.x,f=(i.top+c.y)/n.y,m=i.width/n.x,d=i.height/n.y;if(r){let u=w4(r),p=a&&U0(a)?w4(a):a,b=u,g=Cp(b);for(;g&&a&&p!==b;){let x=ir(g),y=g.getBoundingClientRect(),v=h5(g),k=y.left+(g.clientLeft+parseFloat(v.paddingLeft))*x.x,w=y.top+(g.clientTop+parseFloat(v.paddingTop))*x.y;l*=x.x,f*=x.y,m*=x.x,d*=x.y,l+=k,f+=w,b=w4(g),g=Cp(b)}}return zo({width:m,height:d,x:l,y:f})}function Ap(e,t){let o=Hl(e).scrollLeft;return t?t.left+o:Mo(Fe(e)).left+o}function wH(e,t){let o=e.getBoundingClientRect(),a=o.left+t.scrollLeft-Ap(e,o),i=o.top+t.scrollTop;return{x:a,y:i}}function Sv1(e){let{elements:t,rect:o,offsetParent:a,strategy:i}=e,r=i==="fixed",n=Fe(a),c=t?Vl(t.floating):!1;if(a===n||c&&r)return o;let l={scrollLeft:0,scrollTop:0},f=je(1),m=je(0),d=Be(a);if((d||!d&&!r)&&((gt(a)!=="body"||ar(n))&&(l=Hl(a)),d)){let p=Mo(a);f=ir(a),m.x=p.x+a.clientLeft,m.y=p.y+a.clientTop}let u=n&&!d&&!r?wH(n,l):je(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-l.scrollLeft*f.x+m.x+u.x,y:o.y*f.y-l.scrollTop*f.y+m.y+u.y}}function Tv1(e){return Array.from(e.getClientRects())}function Rv1(e){let t=Fe(e),o=Hl(e),a=e.ownerDocument.body,i=u0(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=u0(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight),n=-o.scrollLeft+Ap(e),c=-o.scrollTop;return h5(a).direction==="rtl"&&(n+=u0(t.clientWidth,a.clientWidth)-i),{width:i,height:r,x:n,y:c}}var bH=25;function Ev1(e,t){let o=w4(e),a=Fe(e),i=o.visualViewport,r=a.clientWidth,n=a.clientHeight,c=0,l=0;if(i){r=i.width,n=i.height;let m=Ul();(!m||m&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}let f=Ap(a);if(f<=0){let m=a.ownerDocument,d=m.body,u=getComputedStyle(d),p=m.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,b=Math.abs(a.clientWidth-d.clientWidth-p);b<=bH&&(r-=b)}else f<=bH&&(r+=f);return{width:r,height:n,x:c,y:l}}function _v1(e,t){let o=Mo(e,!0,t==="fixed"),a=o.top+e.clientTop,i=o.left+e.clientLeft,r=Be(e)?ir(e):je(1),n=e.clientWidth*r.x,c=e.clientHeight*r.y,l=i*r.x,f=a*r.y;return{width:n,height:c,x:l,y:f}}function yH(e,t,o){let a;if(t==="viewport")a=Ev1(e,o);else if(t==="document")a=Rv1(Fe(e));else if(U0(t))a=_v1(t,o);else{let i=zH(e);a={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return zo(a)}function MH(e,t){let o=Z6(e);return o===t||!U0(o)||vt(o)?!1:h5(o).position==="fixed"||MH(o,t)}function Pv1(e,t){let o=t.get(e);if(o)return o;let a=W7(e,[],!1).filter(c=>U0(c)&&gt(c)!=="body"),i=null,r=h5(e).position==="fixed",n=r?Z6(e):e;for(;U0(n)&&!vt(n);){let c=h5(n),l=Pp(n);!l&&c.position==="fixed"&&(i=null),(r?!l&&!i:!l&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ar(n)&&!l&&MH(e,n))?a=a.filter(m=>m!==n):i=c,n=Z6(n)}return t.set(e,a),a}function Cv1(e){let{element:t,boundary:o,rootBoundary:a,strategy:i}=e,n=[...o==="clippingAncestors"?Vl(t)?[]:Pv1(t,this._c):[].concat(o),a],c=yH(t,n[0],i),l=c.top,f=c.right,m=c.bottom,d=c.left;for(let u=1;u<n.length;u++){let p=yH(t,n[u],i);l=u0(p.top,l),f=q6(p.right,f),m=q6(p.bottom,m),d=u0(p.left,d)}return{width:f-d,height:m-l,x:d,y:l}}function Av1(e){let{width:t,height:o}=xH(e);return{width:t,height:o}}function Ov1(e,t,o){let a=Be(t),i=Fe(t),r=o==="fixed",n=Mo(e,!0,r,t),c={scrollLeft:0,scrollTop:0},l=je(0);function f(){l.x=Ap(i)}if(a||!a&&!r)if((gt(t)!=="body"||ar(i))&&(c=Hl(t)),a){let p=Mo(t,!0,r,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&f();r&&!a&&i&&f();let m=i&&!a&&!r?wH(i,c):je(0),d=n.left+c.scrollLeft-l.x-m.x,u=n.top+c.scrollTop-l.y-m.y;return{x:d,y:u,width:n.width,height:n.height}}function AM(e){return h5(e).position==="static"}function kH(e,t){if(!Be(e)||h5(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Fe(e)===o&&(o=o.ownerDocument.body),o}function SH(e,t){let o=w4(e);if(Vl(e))return o;if(!Be(e)){let i=Z6(e);for(;i&&!vt(i);){if(U0(i)&&!AM(i))return i;i=Z6(i)}return o}let a=kH(e,t);for(;a&&hH(a)&&AM(a);)a=kH(a,t);return a&&vt(a)&&AM(a)&&!Pp(a)?o:a||gH(e)||o}var $v1=async function(e){let t=this.getOffsetParent||SH,o=this.getDimensions,a=await o(e.floating);return{reference:Ov1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Iv1(e){return h5(e).direction==="rtl"}var $M={convertOffsetParentRelativeRectToViewportRelativeRect:Sv1,getDocumentElement:Fe,getClippingRect:Cv1,getOffsetParent:SH,getElementRects:$v1,getClientRects:Tv1,getDimensions:Av1,getScale:ir,isElement:U0,isRTL:Iv1};function TH(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Dv1(e,t){let o=null,a,i=Fe(e);function r(){var c;clearTimeout(a),(c=o)==null||c.disconnect(),o=null}function n(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();let f=e.getBoundingClientRect(),{left:m,top:d,width:u,height:p}=f;if(c||t(),!u||!p)return;let b=tr(d),g=tr(i.clientWidth-(m+u)),x=tr(i.clientHeight-(d+p)),y=tr(m),k={rootMargin:-b+"px "+-g+"px "+-x+"px "+-y+"px",threshold:u0(0,q6(1,l))||1},w=!0;function T(A){let _=A[0].intersectionRatio;if(_!==l){if(!w)return n();_?n(!1,_):a=setTimeout(()=>{n(!1,1e-7)},1e3)}_===1&&!TH(f,e.getBoundingClientRect())&&n(),w=!1}try{o=new IntersectionObserver(T,{...k,root:i.ownerDocument})}catch{o=new IntersectionObserver(T,k)}o.observe(e)}return n(!0),r}function Op(e,t,o,a){a===void 0&&(a={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:n=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=a,f=OM(e),m=i||r?[...f?W7(f):[],...t?W7(t):[]]:[];m.forEach(y=>{i&&y.addEventListener("scroll",o,{passive:!0}),r&&y.addEventListener("resize",o)});let d=f&&c?Dv1(f,o):null,u=-1,p=null;n&&(p=new ResizeObserver(y=>{let[v]=y;v&&v.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),o()}),f&&!l&&p.observe(f),t&&p.observe(t));let b,g=l?Mo(e):null;l&&x();function x(){let y=Mo(e);g&&!TH(g,y)&&o(),g=y,b=requestAnimationFrame(x)}return o(),()=>{var y;m.forEach(v=>{i&&v.removeEventListener("scroll",o),r&&v.removeEventListener("resize",o)}),d?.(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(b)}}var rr=PM,RH=fH;var EH=mH,_H=sH,PH=dH;var $p=(e,t,o)=>{let a=new Map,i={platform:$M,...o},r={...i.platform,_c:a};return lH(e,t,{...i,platform:r})};var i0=L(H(),1),DH=L(H(),1),NH=L(yt(),1),Fv1=typeof document<"u",Bv1=function(){},Dp=Fv1?DH.useLayoutEffect:Bv1;function Np(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let o,a,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(o=e.length,o!==t.length)return!1;for(a=o;a--!==0;)if(!Np(e[a],t[a]))return!1;return!0}if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(a=o;a--!==0;)if(!{}.hasOwnProperty.call(t,i[a]))return!1;for(a=o;a--!==0;){let r=i[a];if(!(r==="_owner"&&e.$$typeof)&&!Np(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function LH(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function IH(e,t){let o=LH(e);return Math.round(t*o)/o}function IM(e){let t=i0.useRef(e);return Dp(()=>{t.current=e}),t}function jH(e){e===void 0&&(e={});let{placement:t="bottom",strategy:o="absolute",middleware:a=[],platform:i,elements:{reference:r,floating:n}={},transform:c=!0,whileElementsMounted:l,open:f}=e,[m,d]=i0.useState({x:0,y:0,strategy:o,placement:t,middlewareData:{},isPositioned:!1}),[u,p]=i0.useState(a);Np(u,a)||p(a);let[b,g]=i0.useState(null),[x,y]=i0.useState(null),v=i0.useCallback(I=>{I!==A.current&&(A.current=I,g(I))},[]),k=i0.useCallback(I=>{I!==_.current&&(_.current=I,y(I))},[]),w=r||b,T=n||x,A=i0.useRef(null),_=i0.useRef(null),z=i0.useRef(m),M=l!=null,S=IM(l),N=IM(i),C=IM(f),R=i0.useCallback(()=>{if(!A.current||!_.current)return;let I={placement:t,strategy:o,middleware:u};N.current&&(I.platform=N.current),$p(A.current,_.current,I).then($=>{let V={...$,isPositioned:C.current!==!1};O.current&&!Np(z.current,V)&&(z.current=V,NH.flushSync(()=>{d(V)}))})},[u,t,o,N,C]);Dp(()=>{f===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,d(I=>({...I,isPositioned:!1})))},[f]);let O=i0.useRef(!1);Dp(()=>(O.current=!0,()=>{O.current=!1}),[]),Dp(()=>{if(w&&(A.current=w),T&&(_.current=T),w&&T){if(S.current)return S.current(w,T,R);R()}},[w,T,R,S,M]);let P=i0.useMemo(()=>({reference:A,floating:_,setReference:v,setFloating:k}),[v,k]),E=i0.useMemo(()=>({reference:w,floating:T}),[w,T]),D=i0.useMemo(()=>{let I={position:o,left:0,top:0};if(!E.floating)return I;let $=IH(E.floating,m.x),V=IH(E.floating,m.y);return c?{...I,transform:"translate("+$+"px, "+V+"px)",...LH(E.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:$,top:V}},[o,c,E.floating,m.x,m.y]);return i0.useMemo(()=>({...m,update:R,refs:P,elements:E,floatingStyles:D}),[m,R,P,E,D])}var Kl=(e,t)=>{let o=RH(e);return{name:o.name,fn:o.fn,options:[e,t]}},DM=(e,t)=>{let o=EH(e);return{name:o.name,fn:o.fn,options:[e,t]}};var NM=(e,t)=>{let o=_H(e);return{name:o.name,fn:o.fn,options:[e,t]}},LM=(e,t)=>{let o=PH(e);return{name:o.name,fn:o.fn,options:[e,t]}};s();s();var Z5=L(H()),FH=L(yt());aM();g2();var jM=L(f1());function Vv1(e){return typeof e=="function"?e():e}var FM=Z5.forwardRef(function(t,o){let{children:a,container:i,disablePortal:r=!1}=t,[n,c]=Z5.useState(null),l=Q1(Z5.isValidElement(a)?U7(a):null,o);return M3(()=>{r||c(Vv1(i)||document.body)},[i,r]),M3(()=>{if(n&&!r)return H6(o,n),()=>{H6(o,null)}},[o,n,r]),r?Z5.isValidElement(a)?Z5.cloneElement(a,{ref:l}):(0,jM.jsx)(Z5.Fragment,{children:a}):(0,jM.jsx)(Z5.Fragment,{children:n&&FH.createPortal(a,n)})});s();s();C2();var Lp=L(H());g2();function BM(e){let{value:t,label:o,disabled:a,rootRef:i,id:r}=e,{getRootProps:n,highlighted:c,selected:l}=SM({item:t}),{getRootProps:f,rootRef:m}=d5({disabled:a,focusableWhenDisabled:!0}),d=B0(r),u=Lp.useRef(null),p=Lp.useMemo(()=>({disabled:a,label:o,value:t,ref:u,id:d}),[a,o,t,d]),{index:b}=eH(t,p),g=Q1(i,u,m),x=v=>k=>{var w;(w=v.onKeyDown)==null||w.call(v,k),!k.defaultMuiPrevented&&[" ","Enter"].includes(k.key)&&(k.defaultMuiPrevented=!0)},y=(v={})=>({onKeyDown:x(v)});return{getRootProps:(v={})=>{let k=V2(v),w=er(n,er(f,y));return l1({},v,k,w(k),{id:d,ref:g,role:"option","aria-selected":l})},highlighted:c,index:b,selected:l,rootRef:g}}s();var nr=L(H());function BH(e){let t=nr.useContext(pt);if(!t)throw new Error("Option: ListContext was not found.");let{getItemState:o,dispatch:a}=t,{highlighted:i,selected:r,focusable:n}=o(e),c=nr.useCallback(f=>{if(f!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:i,selected:r,focusable:n}},[i,r,n,e]);return{contextValue:nr.useMemo(()=>({dispatch:a,getItemState:c}),[a,c])}}s();s();C2();c5();var c4=L(H());g2();s();s();var O3="top",p0="bottom",r0="right",K3="left",jp="auto",kt=[O3,p0,r0,K3],Z7="start",So="end",VH="clippingParents",Fp="viewport",cr="popper",UH="reference",VM=kt.reduce(function(e,t){return e.concat([t+"-"+Z7,t+"-"+So])},[]),Bp=[].concat(kt,[jp]).reduce(function(e,t){return e.concat([t,t+"-"+Z7,t+"-"+So])},[]),Uv1="beforeRead",Hv1="read",Gv1="afterRead",Kv1="beforeMain",qv1="main",Wv1="afterMain",Zv1="beforeWrite",Jv1="write",Xv1="afterWrite",HH=[Uv1,Hv1,Gv1,Kv1,qv1,Wv1,Zv1,Jv1,Xv1];s();s();function E0(e){return e?(e.nodeName||"").toLowerCase():null}s();s();function h3(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function J5(e){var t=h3(e).Element;return e instanceof t||e instanceof Element}function h0(e){var t=h3(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lr(e){if(typeof ShadowRoot>"u")return!1;var t=h3(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yv1(e){var t=e.state;Object.keys(t.elements).forEach(function(o){var a=t.styles[o]||{},i=t.attributes[o]||{},r=t.elements[o];!h0(r)||!E0(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(n){var c=i[n];c===!1?r.removeAttribute(n):r.setAttribute(n,c===!0?"":c)}))})}function Qv1(e){var t=e.state,o={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,o.popper),t.styles=o,t.elements.arrow&&Object.assign(t.elements.arrow.style,o.arrow),function(){Object.keys(t.elements).forEach(function(a){var i=t.elements[a],r=t.attributes[a]||{},n=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:o[a]),c=n.reduce(function(l,f){return l[f]="",l},{});!h0(i)||!E0(i)||(Object.assign(i.style,c),Object.keys(r).forEach(function(l){i.removeAttribute(l)}))})}}var GH={name:"applyStyles",enabled:!0,phase:"write",fn:Yv1,effect:Qv1,requires:["computeStyles"]};s();s();function _0(e){return e.split("-")[0]}s();s();s();var Ve=Math.max,To=Math.min,J7=Math.round;s();s();function sr(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ql(){return!/^((?!chrome|android).)*safari/i.test(sr())}function X5(e,t,o){t===void 0&&(t=!1),o===void 0&&(o=!1);var a=e.getBoundingClientRect(),i=1,r=1;t&&h0(e)&&(i=e.offsetWidth>0&&J7(a.width)/e.offsetWidth||1,r=e.offsetHeight>0&&J7(a.height)/e.offsetHeight||1);var n=J5(e)?h3(e):window,c=n.visualViewport,l=!ql()&&o,f=(a.left+(l&&c?c.offsetLeft:0))/i,m=(a.top+(l&&c?c.offsetTop:0))/r,d=a.width/i,u=a.height/r;return{width:d,height:u,top:m,right:f+d,bottom:m+u,left:f,x:f,y:m}}function Ro(e){var t=X5(e),o=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-o)<=1&&(o=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:o,height:a}}s();function Wl(e,t){var o=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(o&&lr(o)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}s();s();function T4(e){return h3(e).getComputedStyle(e)}s();function UM(e){return["table","td","th"].indexOf(E0(e))>=0}s();s();function H0(e){return((J5(e)?e.ownerDocument:e.document)||window.document).documentElement}function X7(e){return E0(e)==="html"?e:e.assignedSlot||e.parentNode||(lr(e)?e.host:null)||H0(e)}function KH(e){return!h0(e)||T4(e).position==="fixed"?null:e.offsetParent}function eb1(e){var t=/firefox/i.test(sr()),o=/Trident/i.test(sr());if(o&&h0(e)){var a=T4(e);if(a.position==="fixed")return null}var i=X7(e);for(lr(i)&&(i=i.host);h0(i)&&["html","body"].indexOf(E0(i))<0;){var r=T4(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function Ue(e){for(var t=h3(e),o=KH(e);o&&UM(o)&&T4(o).position==="static";)o=KH(o);return o&&(E0(o)==="html"||E0(o)==="body"&&T4(o).position==="static")?t:o||eb1(e)||t}s();function Eo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}s();function _o(e,t,o){return Ve(e,To(t,o))}function qH(e,t,o){var a=_o(e,t,o);return a>o?o:a}s();s();function Zl(){return{top:0,right:0,bottom:0,left:0}}function Jl(e){return Object.assign({},Zl(),e)}s();function Xl(e,t){return t.reduce(function(o,a){return o[a]=e,o},{})}var tb1=function(t,o){return t=typeof t=="function"?t(Object.assign({},o.rects,{placement:o.placement})):t,Jl(typeof t!="number"?t:Xl(t,kt))};function ob1(e){var t,o=e.state,a=e.name,i=e.options,r=o.elements.arrow,n=o.modifiersData.popperOffsets,c=_0(o.placement),l=Eo(c),f=[K3,r0].indexOf(c)>=0,m=f?"height":"width";if(!(!r||!n)){var d=tb1(i.padding,o),u=Ro(r),p=l==="y"?O3:K3,b=l==="y"?p0:r0,g=o.rects.reference[m]+o.rects.reference[l]-n[l]-o.rects.popper[m],x=n[l]-o.rects.reference[l],y=Ue(r),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,k=g/2-x/2,w=d[p],T=v-u[m]-d[b],A=v/2-u[m]/2+k,_=_o(w,A,T),z=l;o.modifiersData[a]=(t={},t[z]=_,t.centerOffset=_-A,t)}}function ab1(e){var t=e.state,o=e.options,a=o.element,i=a===void 0?"[data-popper-arrow]":a;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Wl(t.elements.popper,i)&&(t.elements.arrow=i))}var WH={name:"arrow",enabled:!0,phase:"main",fn:ob1,effect:ab1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};s();s();function Y5(e){return e.split("-")[1]}var ib1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rb1(e,t){var o=e.x,a=e.y,i=t.devicePixelRatio||1;return{x:J7(o*i)/i||0,y:J7(a*i)/i||0}}function ZH(e){var t,o=e.popper,a=e.popperRect,i=e.placement,r=e.variation,n=e.offsets,c=e.position,l=e.gpuAcceleration,f=e.adaptive,m=e.roundOffsets,d=e.isFixed,u=n.x,p=u===void 0?0:u,b=n.y,g=b===void 0?0:b,x=typeof m=="function"?m({x:p,y:g}):{x:p,y:g};p=x.x,g=x.y;var y=n.hasOwnProperty("x"),v=n.hasOwnProperty("y"),k=K3,w=O3,T=window;if(f){var A=Ue(o),_="clientHeight",z="clientWidth";if(A===h3(o)&&(A=H0(o),T4(A).position!=="static"&&c==="absolute"&&(_="scrollHeight",z="scrollWidth")),A=A,i===O3||(i===K3||i===r0)&&r===So){w=p0;var M=d&&A===T&&T.visualViewport?T.visualViewport.height:A[_];g-=M-a.height,g*=l?1:-1}if(i===K3||(i===O3||i===p0)&&r===So){k=r0;var S=d&&A===T&&T.visualViewport?T.visualViewport.width:A[z];p-=S-a.width,p*=l?1:-1}}var N=Object.assign({position:c},f&&ib1),C=m===!0?rb1({x:p,y:g},h3(o)):{x:p,y:g};if(p=C.x,g=C.y,l){var R;return Object.assign({},N,(R={},R[w]=v?"0":"",R[k]=y?"0":"",R.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",R))}return Object.assign({},N,(t={},t[w]=v?g+"px":"",t[k]=y?p+"px":"",t.transform="",t))}function nb1(e){var t=e.state,o=e.options,a=o.gpuAcceleration,i=a===void 0?!0:a,r=o.adaptive,n=r===void 0?!0:r,c=o.roundOffsets,l=c===void 0?!0:c,f={placement:_0(t.placement),variation:Y5(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ZH(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ZH(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var JH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nb1,data:{}};s();var Vp={passive:!0};function cb1(e){var t=e.state,o=e.instance,a=e.options,i=a.scroll,r=i===void 0?!0:i,n=a.resize,c=n===void 0?!0:n,l=h3(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&f.forEach(function(m){m.addEventListener("scroll",o.update,Vp)}),c&&l.addEventListener("resize",o.update,Vp),function(){r&&f.forEach(function(m){m.removeEventListener("scroll",o.update,Vp)}),c&&l.removeEventListener("resize",o.update,Vp)}}var XH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cb1,data:{}};s();s();var lb1={left:"right",right:"left",bottom:"top",top:"bottom"};function fr(e){return e.replace(/left|right|bottom|top/g,function(t){return lb1[t]})}s();var sb1={start:"end",end:"start"};function Up(e){return e.replace(/start|end/g,function(t){return sb1[t]})}s();s();s();s();s();function Po(e){var t=h3(e),o=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:o,scrollTop:a}}function Co(e){return X5(H0(e)).left+Po(e).scrollLeft}function HM(e,t){var o=h3(e),a=H0(e),i=o.visualViewport,r=a.clientWidth,n=a.clientHeight,c=0,l=0;if(i){r=i.width,n=i.height;var f=ql();(f||!f&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:r,height:n,x:c+Co(e),y:l}}s();function GM(e){var t,o=H0(e),a=Po(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=Ve(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),n=Ve(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-a.scrollLeft+Co(e),l=-a.scrollTop;return T4(i||o).direction==="rtl"&&(c+=Ve(o.clientWidth,i?i.clientWidth:0)-r),{width:r,height:n,x:c,y:l}}s();s();s();function Ao(e){var t=T4(e),o=t.overflow,a=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(o+i+a)}function Hp(e){return["html","body","#document"].indexOf(E0(e))>=0?e.ownerDocument.body:h0(e)&&Ao(e)?e:Hp(X7(e))}function xt(e,t){var o;t===void 0&&(t=[]);var a=Hp(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),r=h3(a),n=i?[r].concat(r.visualViewport||[],Ao(a)?a:[]):a,c=t.concat(n);return i?c:c.concat(xt(X7(n)))}s();function mr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fb1(e,t){var o=X5(e,!1,t==="fixed");return o.top=o.top+e.clientTop,o.left=o.left+e.clientLeft,o.bottom=o.top+e.clientHeight,o.right=o.left+e.clientWidth,o.width=e.clientWidth,o.height=e.clientHeight,o.x=o.left,o.y=o.top,o}function YH(e,t,o){return t===Fp?mr(HM(e,o)):J5(t)?fb1(t,o):mr(GM(H0(e)))}function mb1(e){var t=xt(X7(e)),o=["absolute","fixed"].indexOf(T4(e).position)>=0,a=o&&h0(e)?Ue(e):e;return J5(a)?t.filter(function(i){return J5(i)&&Wl(i,a)&&E0(i)!=="body"}):[]}function KM(e,t,o,a){var i=t==="clippingParents"?mb1(e):[].concat(t),r=[].concat(i,[o]),n=r[0],c=r.reduce(function(l,f){var m=YH(e,f,a);return l.top=Ve(m.top,l.top),l.right=To(m.right,l.right),l.bottom=To(m.bottom,l.bottom),l.left=Ve(m.left,l.left),l},YH(e,n,a));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}s();function Yl(e){var t=e.reference,o=e.element,a=e.placement,i=a?_0(a):null,r=a?Y5(a):null,n=t.x+t.width/2-o.width/2,c=t.y+t.height/2-o.height/2,l;switch(i){case O3:l={x:n,y:t.y-o.height};break;case p0:l={x:n,y:t.y+t.height};break;case r0:l={x:t.x+t.width,y:c};break;case K3:l={x:t.x-o.width,y:c};break;default:l={x:t.x,y:t.y}}var f=i?Eo(i):null;if(f!=null){var m=f==="y"?"height":"width";switch(r){case Z7:l[f]=l[f]-(t[m]/2-o[m]/2);break;case So:l[f]=l[f]+(t[m]/2-o[m]/2);break;default:}}return l}function He(e,t){t===void 0&&(t={});var o=t,a=o.placement,i=a===void 0?e.placement:a,r=o.strategy,n=r===void 0?e.strategy:r,c=o.boundary,l=c===void 0?VH:c,f=o.rootBoundary,m=f===void 0?Fp:f,d=o.elementContext,u=d===void 0?cr:d,p=o.altBoundary,b=p===void 0?!1:p,g=o.padding,x=g===void 0?0:g,y=Jl(typeof x!="number"?x:Xl(x,kt)),v=u===cr?UH:cr,k=e.rects.popper,w=e.elements[b?v:u],T=KM(J5(w)?w:w.contextElement||H0(e.elements.popper),l,m,n),A=X5(e.elements.reference),_=Yl({reference:A,element:k,strategy:"absolute",placement:i}),z=mr(Object.assign({},k,_)),M=u===cr?z:A,S={top:T.top-M.top+y.top,bottom:M.bottom-T.bottom+y.bottom,left:T.left-M.left+y.left,right:M.right-T.right+y.right},N=e.modifiersData.offset;if(u===cr&&N){var C=N[i];Object.keys(S).forEach(function(R){var O=[r0,p0].indexOf(R)>=0?1:-1,P=[O3,p0].indexOf(R)>=0?"y":"x";S[R]+=C[P]*O})}return S}s();function qM(e,t){t===void 0&&(t={});var o=t,a=o.placement,i=o.boundary,r=o.rootBoundary,n=o.padding,c=o.flipVariations,l=o.allowedAutoPlacements,f=l===void 0?Bp:l,m=Y5(a),d=m?c?VM:VM.filter(function(b){return Y5(b)===m}):kt,u=d.filter(function(b){return f.indexOf(b)>=0});u.length===0&&(u=d);var p=u.reduce(function(b,g){return b[g]=He(e,{placement:g,boundary:i,rootBoundary:r,padding:n})[_0(g)],b},{});return Object.keys(p).sort(function(b,g){return p[b]-p[g]})}function db1(e){if(_0(e)===jp)return[];var t=fr(e);return[Up(e),t,Up(t)]}function ub1(e){var t=e.state,o=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var i=o.mainAxis,r=i===void 0?!0:i,n=o.altAxis,c=n===void 0?!0:n,l=o.fallbackPlacements,f=o.padding,m=o.boundary,d=o.rootBoundary,u=o.altBoundary,p=o.flipVariations,b=p===void 0?!0:p,g=o.allowedAutoPlacements,x=t.options.placement,y=_0(x),v=y===x,k=l||(v||!b?[fr(x)]:db1(x)),w=[x].concat(k).reduce(function(Y,q){return Y.concat(_0(q)===jp?qM(t,{placement:q,boundary:m,rootBoundary:d,padding:f,flipVariations:b,allowedAutoPlacements:g}):q)},[]),T=t.rects.reference,A=t.rects.popper,_=new Map,z=!0,M=w[0],S=0;S<w.length;S++){var N=w[S],C=_0(N),R=Y5(N)===Z7,O=[O3,p0].indexOf(C)>=0,P=O?"width":"height",E=He(t,{placement:N,boundary:m,rootBoundary:d,altBoundary:u,padding:f}),D=O?R?r0:K3:R?p0:O3;T[P]>A[P]&&(D=fr(D));var I=fr(D),$=[];if(r&&$.push(E[C]<=0),c&&$.push(E[D]<=0,E[I]<=0),$.every(function(Y){return Y})){M=N,z=!1;break}_.set(N,$)}if(z)for(var V=b?3:1,K=function(q){var o1=w.find(function(W){var Z=_.get(W);if(Z)return Z.slice(0,q).every(function(r1){return r1})});if(o1)return M=o1,"break"},X=V;X>0;X--){var e1=K(X);if(e1==="break")break}t.placement!==M&&(t.modifiersData[a]._skip=!0,t.placement=M,t.reset=!0)}}var QH={name:"flip",enabled:!0,phase:"main",fn:ub1,requiresIfExists:["offset"],data:{_skip:!1}};s();function eG(e,t,o){return o===void 0&&(o={x:0,y:0}),{top:e.top-t.height-o.y,right:e.right-t.width+o.x,bottom:e.bottom-t.height+o.y,left:e.left-t.width-o.x}}function tG(e){return[O3,r0,p0,K3].some(function(t){return e[t]>=0})}function pb1(e){var t=e.state,o=e.name,a=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,n=He(t,{elementContext:"reference"}),c=He(t,{altBoundary:!0}),l=eG(n,a),f=eG(c,i,r),m=tG(l),d=tG(f);t.modifiersData[o]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:m,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":d})}var oG={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pb1};s();function hb1(e,t,o){var a=_0(e),i=[K3,O3].indexOf(a)>=0?-1:1,r=typeof o=="function"?o(Object.assign({},t,{placement:e})):o,n=r[0],c=r[1];return n=n||0,c=(c||0)*i,[K3,r0].indexOf(a)>=0?{x:c,y:n}:{x:n,y:c}}function gb1(e){var t=e.state,o=e.options,a=e.name,i=o.offset,r=i===void 0?[0,0]:i,n=Bp.reduce(function(m,d){return m[d]=hb1(d,t.rects,r),m},{}),c=n[t.placement],l=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[a]=n}var aG={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gb1};s();function vb1(e){var t=e.state,o=e.name;t.modifiersData[o]=Yl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var iG={name:"popperOffsets",enabled:!0,phase:"read",fn:vb1,data:{}};s();s();function WM(e){return e==="x"?"y":"x"}function bb1(e){var t=e.state,o=e.options,a=e.name,i=o.mainAxis,r=i===void 0?!0:i,n=o.altAxis,c=n===void 0?!1:n,l=o.boundary,f=o.rootBoundary,m=o.altBoundary,d=o.padding,u=o.tether,p=u===void 0?!0:u,b=o.tetherOffset,g=b===void 0?0:b,x=He(t,{boundary:l,rootBoundary:f,padding:d,altBoundary:m}),y=_0(t.placement),v=Y5(t.placement),k=!v,w=Eo(y),T=WM(w),A=t.modifiersData.popperOffsets,_=t.rects.reference,z=t.rects.popper,M=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,S=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(A){if(r){var R,O=w==="y"?O3:K3,P=w==="y"?p0:r0,E=w==="y"?"height":"width",D=A[w],I=D+x[O],$=D-x[P],V=p?-z[E]/2:0,K=v===Z7?_[E]:z[E],X=v===Z7?-z[E]:-_[E],e1=t.elements.arrow,Y=p&&e1?Ro(e1):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Zl(),o1=q[O],W=q[P],Z=_o(0,_[E],Y[E]),r1=k?_[E]/2-V-Z-o1-S.mainAxis:K-Z-o1-S.mainAxis,x1=k?-_[E]/2+V+Z+W+S.mainAxis:X+Z+W+S.mainAxis,h1=t.elements.arrow&&Ue(t.elements.arrow),T1=h1?w==="y"?h1.clientTop||0:h1.clientLeft||0:0,F1=(R=N?.[w])!=null?R:0,V1=D+r1-F1-T1,n1=D+x1-F1,R1=_o(p?To(I,V1):I,D,p?Ve($,n1):$);A[w]=R1,C[w]=R1-D}if(c){var M1,w1=w==="x"?O3:K3,B1=w==="x"?p0:r0,A1=A[T],Z1=T==="y"?"height":"width",c2=A1+x[w1],d1=A1-x[B1],H1=[O3,K3].indexOf(y)!==-1,$1=(M1=N?.[T])!=null?M1:0,G1=H1?c2:A1-_[Z1]-z[Z1]-$1+S.altAxis,E1=H1?A1+_[Z1]+z[Z1]-$1-S.altAxis:d1,i1=p&&H1?qH(G1,A1,E1):_o(p?G1:c2,A1,p?E1:d1);A[T]=i1,C[T]=i1-A1}t.modifiersData[a]=C}}var rG={name:"preventOverflow",enabled:!0,phase:"main",fn:bb1,requiresIfExists:["offset"]};s();s();s();s();function ZM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JM(e){return e===h3(e)||!h0(e)?Po(e):ZM(e)}function yb1(e){var t=e.getBoundingClientRect(),o=J7(t.width)/e.offsetWidth||1,a=J7(t.height)/e.offsetHeight||1;return o!==1||a!==1}function XM(e,t,o){o===void 0&&(o=!1);var a=h0(t),i=h0(t)&&yb1(t),r=H0(t),n=X5(e,i,o),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!o)&&((E0(t)!=="body"||Ao(r))&&(c=JM(t)),h0(t)?(l=X5(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Co(r))),{x:n.left+c.scrollLeft-l.x,y:n.top+c.scrollTop-l.y,width:n.width,height:n.height}}s();function kb1(e){var t=new Map,o=new Set,a=[];e.forEach(function(r){t.set(r.name,r)});function i(r){o.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(c){if(!o.has(c)){var l=t.get(c);l&&i(l)}}),a.push(r)}return e.forEach(function(r){o.has(r.name)||i(r)}),a}function YM(e){var t=kb1(e);return HH.reduce(function(o,a){return o.concat(t.filter(function(i){return i.phase===a}))},[])}s();function QM(e){var t;return function(){return t||(t=new Promise(function(o){Promise.resolve().then(function(){t=void 0,o(e())})})),t}}s();function eS(e){var t=e.reduce(function(o,a){var i=o[a.name];return o[a.name]=i?Object.assign({},i,a,{options:Object.assign({},i.options,a.options),data:Object.assign({},i.data,a.data)}):a,o},{});return Object.keys(t).map(function(o){return t[o]})}var nG={placement:"bottom",modifiers:[],strategy:"absolute"};function cG(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return!t.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function lG(e){e===void 0&&(e={});var t=e,o=t.defaultModifiers,a=o===void 0?[]:o,i=t.defaultOptions,r=i===void 0?nG:i;return function(c,l,f){f===void 0&&(f=r);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},nG,r),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},d=[],u=!1,p={state:m,setOptions:function(y){var v=typeof y=="function"?y(m.options):y;g(),m.options=Object.assign({},r,m.options,v),m.scrollParents={reference:J5(c)?xt(c):c.contextElement?xt(c.contextElement):[],popper:xt(l)};var k=YM(eS([].concat(a,m.options.modifiers)));return m.orderedModifiers=k.filter(function(w){return w.enabled}),b(),p.update()},forceUpdate:function(){if(!u){var y=m.elements,v=y.reference,k=y.popper;if(cG(v,k)){m.rects={reference:XM(v,Ue(k),m.options.strategy==="fixed"),popper:Ro(k)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(S){return m.modifiersData[S.name]=Object.assign({},S.data)});for(var w=0;w<m.orderedModifiers.length;w++){if(m.reset===!0){m.reset=!1,w=-1;continue}var T=m.orderedModifiers[w],A=T.fn,_=T.options,z=_===void 0?{}:_,M=T.name;typeof A=="function"&&(m=A({state:m,options:z,name:M,instance:p})||m)}}}},update:QM(function(){return new Promise(function(x){p.forceUpdate(),x(m)})}),destroy:function(){g(),u=!0}};if(!cG(c,l))return p;p.setOptions(f).then(function(x){!u&&f.onFirstUpdate&&f.onFirstUpdate(x)});function b(){m.orderedModifiers.forEach(function(x){var y=x.name,v=x.options,k=v===void 0?{}:v,w=x.effect;if(typeof w=="function"){var T=w({state:m,name:y,instance:p,options:k}),A=function(){};d.push(T||A)}})}function g(){d.forEach(function(x){return x()}),d=[]}return p}}s();var xb1=[XH,iG,JH,GH,aG,QH,rG,WH,oG],tS=lG({defaultModifiers:xb1});s();var sG="Popper";function fG(e){return zp(sG,e)}var ii2=BU(sG,["root"]);var Gp=L(f1()),zb1=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],wb1=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Mb1(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function oS(e){return typeof e=="function"?e():e}function Sb1(e){return e.nodeType!==void 0}var Tb1=()=>U1({root:["root"]},LU(fG)),Rb1={},Eb1=c4.forwardRef(function(t,o){var a;let{anchorEl:i,children:r,direction:n,disablePortal:c,modifiers:l,open:f,placement:m,popperOptions:d,popperRef:u,slotProps:p={},slots:b={},TransitionProps:g}=t,x=K2(t,zb1),y=c4.useRef(null),v=Q1(y,o),k=c4.useRef(null),w=Q1(k,u),T=c4.useRef(w);M3(()=>{T.current=w},[w]),c4.useImperativeHandle(u,()=>k.current,[]);let A=Mb1(m,n),[_,z]=c4.useState(A),[M,S]=c4.useState(oS(i));c4.useEffect(()=>{k.current&&k.current.forceUpdate()}),c4.useEffect(()=>{i&&S(oS(i))},[i]),M3(()=>{if(!M||!f)return;let P=I=>{z(I.placement)},E=[{name:"preventOverflow",options:{altBoundary:c}},{name:"flip",options:{altBoundary:c}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{P(I)}}];l!=null&&(E=E.concat(l)),d&&d.modifiers!=null&&(E=E.concat(d.modifiers));let D=tS(M,y.current,l1({placement:A},d,{modifiers:E}));return T.current(D),()=>{D.destroy(),T.current(null)}},[M,c,l,f,d,A]);let N={placement:_};g!==null&&(N.TransitionProps=g);let C=Tb1(),R=(a=b.root)!=null?a:"div",O=Ol({elementType:R,externalSlotProps:p.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:C.root});return(0,Gp.jsx)(R,l1({},O,{children:typeof r=="function"?r(N):r}))}),dr=c4.forwardRef(function(t,o){let{anchorEl:a,children:i,container:r,direction:n="ltr",disablePortal:c=!1,keepMounted:l=!1,modifiers:f,open:m,placement:d="bottom",popperOptions:u=Rb1,popperRef:p,style:b,transition:g=!1,slotProps:x={},slots:y={}}=t,v=K2(t,wb1),[k,w]=c4.useState(!0),T=()=>{w(!1)},A=()=>{w(!0)};if(!l&&!m&&(!g||k))return null;let _;if(r)_=r;else if(a){let S=oS(a);_=S&&Sb1(S)?d0(S).body:d0(null).body}let z=!m&&l&&(!g||k)?"none":void 0,M=g?{in:m,onEnter:T,onExited:A}:void 0;return(0,Gp.jsx)(FM,{disablePortal:c,container:_,children:(0,Gp.jsx)(Eb1,l1({anchorEl:a,direction:n,disablePortal:c,modifiers:f,ref:o,open:g?!k:m,placement:d,popperOptions:u,popperRef:p,slotProps:x,slots:y},v,{style:l1({position:"fixed",top:0,left:0,display:z},b),TransitionProps:M,children:i}))})});s();s();C2();var c3=L(H());g2();s();var ur={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};s();var mG=e=>{let{label:t,value:o}=e;return typeof t=="string"?t:typeof o=="string"?o:String(e)};s();C2();function dG(e,t){let{open:o}=e,{context:{selectionMode:a}}=t;if(t.type===ur.buttonClick){var i;let l=(i=e.selectedValues[0])!=null?i:R0(null,"start",t.context);return l1({},e,{open:!o,highlightedValue:o?null:l})}if(t.type===ur.browserAutoFill)return wp(t.item,e,t.context);let r=Mp(e,t);switch(t.type){case Q2.keyDown:if(e.open){if(t.event.key==="Escape")return l1({},r,{open:!1})}else{if(t.event.key==="ArrowDown"){var n;return l1({},e,{open:!0,highlightedValue:(n=e.selectedValues[0])!=null?n:R0(null,"start",t.context)})}if(t.event.key==="ArrowUp"){var c;return l1({},e,{open:!0,highlightedValue:(c=e.selectedValues[0])!=null?c:R0(null,"end",t.context)})}}break;case Q2.itemClick:if(a==="single")return l1({},r,{open:!1});break;case Q2.blur:return l1({},r,{open:!1});default:return r}return r}function _b1(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(t=>t.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function aS(e){let{areOptionsEqual:t,buttonRef:o,defaultOpen:a=!1,defaultValue:i,disabled:r=!1,listboxId:n,listboxRef:c,multiple:l=!1,name:f,required:m,onChange:d,onHighlightChange:u,onOpenChange:p,open:b,options:g,getOptionAsString:x=mG,getSerializedValue:y=_b1,value:v,componentName:k="useSelect"}=e,w=c3.useRef(null),T=Q1(o,w),A=c3.useRef(null),_=B0(n),z;v===void 0&&i===void 0?z=[]:i!==void 0&&(l?z=i:z=i==null?[]:[i]);let M=c3.useMemo(()=>{if(v!==void 0)return l?v:v==null?[]:[v]},[v,l]),{subitems:S,contextValue:N}=QU(),C=c3.useMemo(()=>g!=null?new Map(g.map((B,G)=>[B.value,{value:B.value,label:B.label,disabled:B.disabled,ref:c3.createRef(),id:`${_}_${G}`}])):S,[g,S,_]),R=Q1(c,A),{getRootProps:O,active:P,focusVisible:E,rootRef:D}=d5({disabled:r,rootRef:T}),I=c3.useMemo(()=>Array.from(C.keys()),[C]),$=c3.useCallback(B=>{if(t!==void 0){let G=I.find(t1=>t(t1,B));return C.get(G)}return C.get(B)},[C,t,I]),V=c3.useCallback(B=>{var G;let t1=$(B);return(G=t1?.disabled)!=null?G:!1},[$]),K=c3.useCallback(B=>{let G=$(B);return G?x(G):""},[$,x]),X=c3.useMemo(()=>({selectedValues:M,open:b}),[M,b]),e1=c3.useCallback(B=>{var G;return(G=C.get(B))==null?void 0:G.id},[C]),Y=c3.useCallback((B,G)=>{if(l)d?.(B,G);else{var t1;d?.(B,(t1=G[0])!=null?t1:null)}},[l,d]),q=c3.useCallback((B,G)=>{u?.(B,G??null)},[u]),o1=c3.useCallback((B,G,t1)=>{if(G==="open"&&(p?.(t1),t1===!1&&B?.type!=="blur")){var p1;(p1=w.current)==null||p1.focus()}},[p]),W=c3.useCallback(B=>{var G,t1;return B==null?null:(G=(t1=S.get(B))==null?void 0:t1.ref.current)!=null?G:null},[S]),Z={getInitialState:()=>{var B;return{highlightedValue:null,selectedValues:(B=z)!=null?B:[],open:a}},getItemId:e1,controlledProps:X,focusManagement:"DOM",getItemDomElement:W,itemComparer:t,isItemDisabled:V,rootRef:R,onChange:Y,onHighlightChange:q,onStateChange:o1,reducerActionContext:c3.useMemo(()=>({multiple:l}),[l]),items:I,getItemAsString:K,selectionMode:l?"multiple":"single",stateReducer:dG,componentName:k},{dispatch:r1,getRootProps:x1,contextValue:h1,state:{open:T1,highlightedValue:F1,selectedValues:V1},rootRef:n1}=MM(Z),R1=c3.useRef(T1);M3(()=>{if(T1&&F1!==null){var B;let G=(B=$(F1))==null?void 0:B.ref;if(!A.current||!(G!=null&&G.current))return;R1.current||G.current.focus({preventScroll:!0});let t1=A.current.getBoundingClientRect(),p1=G.current.getBoundingClientRect();p1.top<t1.top?A.current.scrollTop-=t1.top-p1.top:p1.bottom>t1.bottom&&(A.current.scrollTop+=p1.bottom-t1.bottom)}},[T1,F1,$]);let M1=c3.useCallback(B=>$(B),[$]),w1=B=>G=>{var t1;if(B==null||(t1=B.onClick)==null||t1.call(B,G),!G.defaultMuiPrevented){let p1={type:ur.buttonClick,event:G};r1(p1)}},B1=B=>G=>{var t1;(t1=B.onKeyDown)==null||t1.call(B,G),!G.defaultMuiPrevented&&(G.key==="ArrowDown"||G.key==="ArrowUp")&&(G.preventDefault(),r1({type:Q2.keyDown,key:G.key,event:G}))},A1=(B={})=>({onClick:w1(B),onKeyDown:B1(B)}),Z1=(B={})=>l1({},B,A1(B),{role:"combobox","aria-expanded":T1,"aria-controls":_}),c2=(B={})=>{let G=V2(B),t1=er(Z1,O);return l1({},B,t1(G))},d1=B=>G=>{var t1,p1;(t1=B.onBlur)==null||t1.call(B,G),!G.defaultMuiPrevented&&((p1=A.current)!=null&&p1.contains(G.relatedTarget)||G.relatedTarget===w.current)&&(G.defaultMuiPrevented=!0)},H1=(B={})=>({onBlur:d1(B)}),$1=(B={})=>{let G=V2(B),t1=er(H1,x1);return l1({id:_,role:"listbox","aria-multiselectable":l?"true":void 0},B,t1(G))};c3.useDebugValue({selectedOptions:V1,highlightedOption:F1,open:T1});let G1=c3.useMemo(()=>l1({},h1,N),[h1,N]),E1;e.multiple?E1=V1:E1=V1.length>0?V1[0]:null;let i1;if(l)i1=E1.map(B=>M1(B)).filter(B=>B!==void 0);else{var s1;i1=(s1=M1(E1))!=null?s1:null}let j=B=>G=>{var t1;if(B==null||(t1=B.onChange)==null||t1.call(B,G),G.defaultMuiPrevented)return;let p1=C.get(G.target.value);G.target.value===""?r1({type:Q2.clearSelection}):p1!==void 0&&r1({type:ur.browserAutoFill,item:p1.value,event:G})};return{buttonActive:P,buttonFocusVisible:E,buttonRef:D,contextValue:G1,disabled:r,dispatch:r1,getButtonProps:c2,getHiddenInputProps:(B={})=>{let G=V2(B);return l1({name:f,tabIndex:-1,"aria-hidden":!0,required:m?!0:void 0,value:y(i1),style:Wi},B,{onChange:j(G)})},getListboxProps:$1,getOptionMetadata:M1,listboxRef:n1,open:T1,options:I,value:E1,highlightedOption:F1}}s();var iS=L(H());var rS=L(f1());function uG(e){let{value:t,children:o}=e,{dispatch:a,getItemIndex:i,getItemState:r,registerItem:n,totalSubitemCount:c}=t,l=iS.useMemo(()=>({dispatch:a,getItemState:r,getItemIndex:i}),[a,i,r]),f=iS.useMemo(()=>({getItemIndex:i,registerItem:n,totalSubitemCount:c}),[n,i,c]);return(0,rS.jsx)(Tp.Provider,{value:f,children:(0,rS.jsx)(pt.Provider,{value:l,children:o})})}s();C2();var R4=L(H());g2();var Pb1=2;function vG(e,t){return e-t}function pG(e,t){var o;let{index:a}=(o=e.reduce((i,r,n)=>{let c=Math.abs(t-r);return i===null||c<i.distance||c===i.distance?{distance:c,index:n}:i},null))!=null?o:{};return a}function Kp(e,t){if(t.current!==void 0&&e.changedTouches){let o=e;for(let a=0;a<o.changedTouches.length;a+=1){let i=o.changedTouches[a];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ql(e,t,o){return(e-t)*100/(o-t)}function Cb1(e,t,o){return(o-t)*e+t}function Ab1(e){if(Math.abs(e)<1){let o=e.toExponential().split("e-"),a=o[0].split(".")[1];return(a?a.length:0)+parseInt(o[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}function Ob1(e,t,o){let a=Math.round((e-o)/t)*t+o;return Number(a.toFixed(Ab1(t)))}function hG({values:e,newValue:t,index:o}){let a=e.slice();return a[o]=t,a.sort(vG)}function qp({sliderRef:e,activeIndex:t,setActive:o}){var a,i;let r=d0(e.current);if(!((a=e.current)!=null&&a.contains(r.activeElement))||Number(r==null||(i=r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t){var n;(n=e.current)==null||n.querySelector(`[type="range"][data-index="${t}"]`).focus()}o&&o(t)}function Wp(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?Qi(e,t):!1}var $b1={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ib1=e=>e,Zp;function gG(){return Zp===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Zp=CSS.supports("touch-action","none"):Zp=!0),Zp}function bG(e){let{"aria-labelledby":t,defaultValue:o,disabled:a=!1,disableSwap:i=!1,isRtl:r=!1,marks:n=!1,max:c=100,min:l=0,name:f,onChange:m,onChangeCommitted:d,orientation:u="horizontal",rootRef:p,scale:b=Ib1,step:g=1,shiftStep:x=10,tabIndex:y,value:v}=e,k=R4.useRef(void 0),[w,T]=R4.useState(-1),[A,_]=R4.useState(-1),[z,M]=R4.useState(!1),S=R4.useRef(0),[N,C]=B7({controlled:v,default:o??l,name:"Slider"}),R=m&&((i1,s1,j)=>{let U=i1.nativeEvent||i1,B=new U.constructor(U.type,U);Object.defineProperty(B,"target",{writable:!0,value:{value:s1,name:f}}),m(B,s1,j)}),O=Array.isArray(N),P=O?N.slice().sort(vG):[N];P=P.map(i1=>i1==null?l:F7(i1,l,c));let E=n===!0&&g!==null?[...Array(Math.floor((c-l)/g)+1)].map((i1,s1)=>({value:l+g*s1})):n||[],D=E.map(i1=>i1.value),{isFocusVisibleRef:I,onBlur:$,onFocus:V,ref:K}=De(),[X,e1]=R4.useState(-1),Y=R4.useRef(null),q=Q1(K,Y),o1=Q1(p,q),W=i1=>s1=>{var j;let U=Number(s1.currentTarget.getAttribute("data-index"));V(s1),I.current===!0&&e1(U),_(U),i1==null||(j=i1.onFocus)==null||j.call(i1,s1)},Z=i1=>s1=>{var j;$(s1),I.current===!1&&e1(-1),_(-1),i1==null||(j=i1.onBlur)==null||j.call(i1,s1)},r1=(i1,s1)=>{let j=Number(i1.currentTarget.getAttribute("data-index")),U=P[j],B=D.indexOf(U),G=s1;if(E&&g==null){let t1=D[D.length-1];G>t1?G=t1:G<D[0]?G=D[0]:G=G<U?D[B-1]:D[B+1]}if(G=F7(G,l,c),O){i&&(G=F7(G,P[j-1]||-1/0,P[j+1]||1/0));let t1=G;G=hG({values:P,newValue:G,index:j});let p1=j;i||(p1=G.indexOf(t1)),qp({sliderRef:Y,activeIndex:p1})}C(G),e1(j),R&&!Wp(G,N)&&R(i1,G,j),d&&d(i1,G)},x1=i1=>s1=>{var j;if(g!==null){let U=Number(s1.currentTarget.getAttribute("data-index")),B=P[U],G=null;(s1.key==="ArrowLeft"||s1.key==="ArrowDown")&&s1.shiftKey||s1.key==="PageDown"?G=Math.max(B-x,l):((s1.key==="ArrowRight"||s1.key==="ArrowUp")&&s1.shiftKey||s1.key==="PageUp")&&(G=Math.min(B+x,c)),G!==null&&(r1(s1,G),s1.preventDefault())}i1==null||(j=i1.onKeyDown)==null||j.call(i1,s1)};M3(()=>{if(a&&Y.current.contains(document.activeElement)){var i1;(i1=document.activeElement)==null||i1.blur()}},[a]),a&&w!==-1&&T(-1),a&&X!==-1&&e1(-1);let h1=i1=>s1=>{var j;(j=i1.onChange)==null||j.call(i1,s1),r1(s1,s1.target.valueAsNumber)},T1=R4.useRef(void 0),F1=u;r&&u==="horizontal"&&(F1+="-reverse");let V1=({finger:i1,move:s1=!1})=>{let{current:j}=Y,{width:U,height:B,bottom:G,left:t1}=j.getBoundingClientRect(),p1;F1.indexOf("vertical")===0?p1=(G-i1.y)/B:p1=(i1.x-t1)/U,F1.indexOf("-reverse")!==-1&&(p1=1-p1);let g1;if(g1=Cb1(p1,l,c),g)g1=Ob1(g1,g,l);else{let N1=pG(D,g1);g1=D[N1]}g1=F7(g1,l,c);let k1=0;if(O){s1?k1=T1.current:k1=pG(P,g1),i&&(g1=F7(g1,P[k1-1]||-1/0,P[k1+1]||1/0));let N1=g1;g1=hG({values:P,newValue:g1,index:k1}),i&&s1||(k1=g1.indexOf(N1),T1.current=k1)}return{newValue:g1,activeIndex:k1}},n1=i4(i1=>{let s1=Kp(i1,k);if(!s1)return;if(S.current+=1,i1.type==="mousemove"&&i1.buttons===0){R1(i1);return}let{newValue:j,activeIndex:U}=V1({finger:s1,move:!0});qp({sliderRef:Y,activeIndex:U,setActive:T}),C(j),!z&&S.current>Pb1&&M(!0),R&&!Wp(j,N)&&R(i1,j,U)}),R1=i4(i1=>{let s1=Kp(i1,k);if(M(!1),!s1)return;let{newValue:j}=V1({finger:s1,move:!0});T(-1),i1.type==="touchend"&&_(-1),d&&d(i1,j),k.current=void 0,w1()}),M1=i4(i1=>{if(a)return;gG()||i1.preventDefault();let s1=i1.changedTouches[0];s1!=null&&(k.current=s1.identifier);let j=Kp(i1,k);if(j!==!1){let{newValue:B,activeIndex:G}=V1({finger:j});qp({sliderRef:Y,activeIndex:G,setActive:T}),C(B),R&&!Wp(B,N)&&R(i1,B,G)}S.current=0;let U=d0(Y.current);U.addEventListener("touchmove",n1,{passive:!0}),U.addEventListener("touchend",R1,{passive:!0})}),w1=R4.useCallback(()=>{let i1=d0(Y.current);i1.removeEventListener("mousemove",n1),i1.removeEventListener("mouseup",R1),i1.removeEventListener("touchmove",n1),i1.removeEventListener("touchend",R1)},[R1,n1]);R4.useEffect(()=>{let{current:i1}=Y;return i1.addEventListener("touchstart",M1,{passive:gG()}),()=>{i1.removeEventListener("touchstart",M1),w1()}},[w1,M1]),R4.useEffect(()=>{a&&w1()},[a,w1]);let B1=i1=>s1=>{var j;if((j=i1.onMouseDown)==null||j.call(i1,s1),a||s1.defaultPrevented||s1.button!==0)return;s1.preventDefault();let U=Kp(s1,k);if(U!==!1){let{newValue:G,activeIndex:t1}=V1({finger:U});qp({sliderRef:Y,activeIndex:t1,setActive:T}),C(G),R&&!Wp(G,N)&&R(s1,G,t1)}S.current=0;let B=d0(Y.current);B.addEventListener("mousemove",n1,{passive:!0}),B.addEventListener("mouseup",R1)},A1=Ql(O?P[0]:l,l,c),Z1=Ql(P[P.length-1],l,c)-A1,c2=(i1={})=>{let s1=V2(i1),j={onMouseDown:B1(s1||{})},U=l1({},s1,j);return l1({},i1,{ref:o1},U)},d1=i1=>s1=>{var j;(j=i1.onMouseOver)==null||j.call(i1,s1);let U=Number(s1.currentTarget.getAttribute("data-index"));_(U)},H1=i1=>s1=>{var j;(j=i1.onMouseLeave)==null||j.call(i1,s1),_(-1)};return{active:w,axis:F1,axisProps:$b1,dragging:z,focusedThumbIndex:X,getHiddenInputProps:(i1={})=>{var s1;let j=V2(i1),U={onChange:h1(j||{}),onFocus:W(j||{}),onBlur:Z(j||{}),onKeyDown:x1(j||{})},B=l1({},j,U);return l1({tabIndex:y,"aria-labelledby":t,"aria-orientation":u,"aria-valuemax":b(c),"aria-valuemin":b(l),name:f,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(s1=e.step)!=null?s1:void 0,disabled:a},i1,B,{style:l1({},Wi,{direction:r?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:c2,getThumbProps:(i1={})=>{let s1=V2(i1),j={onMouseOver:d1(s1||{}),onMouseLeave:H1(s1||{})};return l1({},i1,s1,j)},marks:E,open:A,range:O,rootRef:o1,trackLeap:Z1,trackOffset:A1,values:P,getThumbStyle:i1=>({pointerEvents:w!==-1&&w!==i1?"none":void 0})}}s();s();C2();var pr=L(H());g2();function nS(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:o=!1,onClose:a,open:i,resumeHideDuration:r}=e,n=G6();pr.useEffect(()=>{if(!i)return;function y(v){v.defaultPrevented||(v.key==="Escape"||v.key==="Esc")&&a?.(v,"escapeKeyDown")}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[i,a]);let c=i4((y,v)=>{a?.(y,v)}),l=i4(y=>{!a||y==null||n.start(y,()=>{c(null,"timeout")})});pr.useEffect(()=>(i&&l(t),n.clear),[i,t,l,n]);let f=y=>{a?.(y,"clickaway")},m=n.clear,d=pr.useCallback(()=>{t!=null&&l(r??t*.5)},[t,r,l]),u=y=>v=>{let k=y.onBlur;k?.(v),d()},p=y=>v=>{let k=y.onFocus;k?.(v),m()},b=y=>v=>{let k=y.onMouseEnter;k?.(v),m()},g=y=>v=>{let k=y.onMouseLeave;k?.(v),d()};return pr.useEffect(()=>{if(!o&&i)return window.addEventListener("focus",d),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",m)}},[o,i,d,m]),{getRootProps:(y={})=>{let v=l1({},V2(e),V2(y));return l1({role:"presentation"},y,v,{onBlur:u(v),onFocus:p(v),onMouseEnter:b(v),onMouseLeave:g(v)})},onClickAway:f}}s();s();C2();c5();var Q5=L(H());g2();var cS=L(f1()),yG=L(f1()),Db1=["onChange","maxRows","minRows","style","value"];function Jp(e){return parseInt(e,10)||0}var Nb1={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Lb1(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}var lS=Q5.forwardRef(function(t,o){let{onChange:a,maxRows:i,minRows:r=1,style:n,value:c}=t,l=K2(t,Db1),{current:f}=Q5.useRef(c!=null),m=Q5.useRef(null),d=Q1(o,m),u=Q5.useRef(null),p=Q5.useRef(null),b=Q5.useCallback(()=>{let y=m.current,k=ut(y).getComputedStyle(y);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};let w=p.current;w.style.width=k.width,w.value=y.value||t.placeholder||"x",w.value.slice(-1)===`
427
- `&&(w.value+=" ");let T=k.boxSizing,A=Jp(k.paddingBottom)+Jp(k.paddingTop),_=Jp(k.borderBottomWidth)+Jp(k.borderTopWidth),z=w.scrollHeight;w.value="x";let M=w.scrollHeight,S=z;r&&(S=Math.max(Number(r)*M,S)),i&&(S=Math.min(Number(i)*M,S)),S=Math.max(S,M);let N=S+(T==="border-box"?A+_:0),C=Math.abs(S-z)<=1;return{outerHeightStyle:N,overflowing:C}},[i,r,t.placeholder]),g=Q5.useCallback(()=>{let y=b();if(Lb1(y))return;let v=y.outerHeightStyle,k=m.current;u.current!==v&&(u.current=v,k.style.height=`${v}px`),k.style.overflow=y.overflowing?"hidden":""},[b]);return M3(()=>{let y=()=>{g()},v,k=()=>{cancelAnimationFrame(v),v=requestAnimationFrame(()=>{y()})},w=lo(y),T=m.current,A=ut(T);A.addEventListener("resize",w);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(y),_.observe(T)),()=>{w.clear(),cancelAnimationFrame(v),A.removeEventListener("resize",w),_&&_.disconnect()}},[b,g]),M3(()=>{g()}),(0,yG.jsxs)(Q5.Fragment,{children:[(0,cS.jsx)("textarea",l1({value:c,onChange:y=>{f||g(),a&&a(y)},ref:d,rows:r,style:n},l)),(0,cS.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:l1({},Nb1.shadow,n,{paddingTop:0,paddingBottom:0})})]})});s();function kG(e){return J1("MuiScopedCssBaseline",e)}var gn2=q1("MuiScopedCssBaseline",["root"]);s();X1();R2();g2();var jb1=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Fb1=["component","slots","slotProps"],Bb1=["component"];function P1(e,t){let{className:o,elementType:a,ownerState:i,externalForwardedProps:r,getSlotOwnerState:n,internalForwardedProps:c}=t,l=I1(t,jb1),{component:f,slots:m={[e]:void 0},slotProps:d={[e]:void 0}}=r,u=I1(r,Fb1),p=m[e]||a,b=po(d[e],i),g=uo(F({className:o},l,{externalForwardedProps:e==="root"?u:void 0,externalSlotProps:b})),{props:{component:x},internalRef:y}=g,v=I1(g.props,Bb1),k=Q1(y,b?.ref,t.ref),w=n?n(v):{},T=F({},i,w),A=e==="root"?x||f:x,_=mo(p,F({},e==="root"&&!f&&!m[e]&&c,e!=="root"&&!m[e]&&c,v,A&&{as:A},{ref:k}),T);return Object.keys(w).forEach(z=>{delete _[z]}),[p,_]}var zG=L(f1()),Vb1=["className","component","disableColorScheme","slots","slotProps"],Ub1=()=>U1({root:["root"]},kG,{}),Hb1=b1("div",{name:"JoyScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let o={};return!t.disableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,i])=>{var r;o[`&${e.getColorSchemeSelector(a).replace(/\s*&/,"")}`]={colorScheme:(r=i.palette)==null?void 0:r.mode}}),F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",color:e.vars.palette.text.primary},e.typography["body-md"],{backgroundColor:e.vars.palette.background.body,"@media print":{backgroundColor:"#fff"},"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:"bold"}},o)}),Gb1=xG.forwardRef(function(t,o){let a=W1({props:t,name:"JoyScopedCssBaseline"}),{className:i,component:r="div",disableColorScheme:n=!1,slots:c={},slotProps:l={}}=a,f=I1(a,Vb1),m=F({},a,{component:r,disableColorScheme:n}),d=Ub1(),u=F({},f,{component:r,slots:c,slotProps:l}),[p,b]=P1("root",{ref:o,className:s2(d.root,i),elementType:Hb1,externalForwardedProps:u,ownerState:m});return(0,zG.jsx)(p,F({},b))}),sS=Gb1;hl();var YZ=L(ZZ());s();s();var VR={50:"#A3FFD7",100:"#8CFFCD",200:"#80FFD2",300:"#48D7A3",400:"#34D399",500:"#2EBD89",600:"#10B981",700:"#009A7E",800:"#006640",900:"#00331F"};var JZ=(e="zappway")=>({modeStorageKey:e,colorSchemeStorageKey:`${e}-color-scheme`,attribute:`data-${e}`}),XZ=(e={})=>Xi({cssVarPrefix:e.prefix,fontFamily:{body:"Inter, sans-serif",display:"Poppins, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"57px",lineHeight:"64px",letterSpacing:"-0.25px"},kbd:{background:"linear-gradient(to top, var(--joy-palette-background-level2), var(--joy-palette-background-surface))",border:"1px solid var(--joy-palette-neutral-outlinedBorder)",borderRadius:"var(--joy-radius-xs)",boxShadow:"var(--joy-shadow-sm)",padding:"0.125em 0.375em"}},fontSize:{xl7:"4.5rem",xl6:"3.75rem",xl5:"3rem",xs2:"0.625rem",xs3:"0.5rem"},fontWeight:{xs:200,xl2:800,xl3:900},components:{JoySelect:{defaultProps:{slotProps:{listbox:{container:e.container}}},styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyModal:{defaultProps:{container:e.container}},JoyCard:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyInput:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyTextarea:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyIconButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}}},colorSchemes:{dark:{palette:{primary:VR}},light:{palette:{primary:VR,neutral:{solidBg:"#000"}}}}});var nn=L(f1()),bx1="CREATE_NEW_CONVERSATION",UR={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email"},QZ="zappway-embeds",Sg=JZ(QZ),s4=typeof process<"u"&&!1,yx1=typeof NEXT_PUBLIC_DASHBOARD_URL<"u"?NEXT_PUBLIC_DASHBOARD_URL:"https://app.zappway.ai",kx1=(typeof NEXT_PUBLIC_ASSETS_BASE_URL<"u"?NEXT_PUBLIC_ASSETS_BASE_URL:"")||"https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.2",xx1=e=>{let t=e.getAttribute("locale");if(t)return s4&&console.log("[ShadowDOM] Locale detectado via atributo direto:",t),t;let o=e.getAttribute("lang");if(o)return s4&&console.log("[ShadowDOM] Locale detectado via atributo lang:",o),o;try{let r=e.ownerDocument?.documentElement?.lang;if(r)return s4&&console.log("[ShadowDOM] Locale detectado via document.documentElement.lang:",r),r}catch(i){s4&&console.warn("[ShadowDOM] Não foi possível acessar documento pai:",i)}try{let r=e.ownerDocument?.querySelector('meta[name="locale"]')?.getAttribute("content");if(r)return s4&&console.log("[ShadowDOM] Locale detectado via meta tag:",r),r}catch(i){s4&&console.warn("[ShadowDOM] Não foi possível acessar meta tags:",i)}let a=navigator.language||navigator.userLanguage;return a?(s4&&console.log("[ShadowDOM] Locale detectado via navigator:",a),a):(s4&&console.log("[ShadowDOM] Usando fallback en"),"en")},zx1=e=>{let t=e.getAttribute("color-mode")||e.getAttribute("data-color-mode");if(t==="dark"||t==="light")return s4&&console.log("[ShadowDOM] Color mode from attribute:",t),t;try{let o=e.ownerDocument,a=o?.documentElement,i=a?.className||"",r=o?.body?.className||"",n=a?.getAttribute("data-theme")||a?.getAttribute("data-mode"),c=o?.body?.getAttribute("data-theme")||o?.body?.getAttribute("data-mode");if(i.includes("dark")||r.includes("dark")||n==="dark"||c==="dark")return s4&&console.log("[ShadowDOM] Color mode from parent class/data: dark"),"dark";if(i.includes("light")||r.includes("light")||n==="light"||c==="light")return s4&&console.log("[ShadowDOM] Color mode from parent class/data: light"),"light";let l=a?.getAttribute("data-joy-color-scheme");if(l==="dark"||l==="light")return s4&&console.log("[ShadowDOM] Color mode from Joy UI scheme:",l),l;if(window.matchMedia?.("(prefers-color-scheme: dark)").matches)return s4&&console.log("[ShadowDOM] Color mode from media query: dark"),"dark"}catch(o){s4&&console.warn("[ShadowDOM] Could not detect color mode:",o)}return s4&&console.log("[ShadowDOM] Color mode fallback: light"),"light"};if(typeof window<"u"){let e=console.warn;console.warn=(...t)=>{t[0]&&typeof t[0]=="string"&&(t[0].includes("TextLayer styles not found")||t[0].includes("AnnotationLayer styles not found"))||e(...t)}}var wx1=({name:e,widget:t,type:o})=>class extends HTMLElement{cssProvider=kx1+`/dist/${o}/index.css`;root;cache;shadowRootElement;emotionRoot;instanceId;setIsOpen;isOpen;onEnd;locale;colorMode="light";constructor(i){super(),this.instanceId=i?.instanceId,this.onEnd=i?.onEnd;let r=this.attachShadow({mode:"open"}),n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="https://fonts.googleapis.com/css2?family=Poppins:wght@200..800&family=Inter:wght@100..900&display=swap";let c=document.createElement("link");if(c.rel="stylesheet",c.type="text/css",c.href=this.cssProvider,this.emotionRoot=document.createElement("style"),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="zappway-widget",r.appendChild(n),r.appendChild(c),r.appendChild(this.emotionRoot),r.appendChild(this.shadowRootElement),o==="pdfviewer"){let l=document.createElement("style");if(l.innerHTML=lF+`
427
+ `&&(w.value+=" ");let T=k.boxSizing,A=Jp(k.paddingBottom)+Jp(k.paddingTop),_=Jp(k.borderBottomWidth)+Jp(k.borderTopWidth),z=w.scrollHeight;w.value="x";let M=w.scrollHeight,S=z;r&&(S=Math.max(Number(r)*M,S)),i&&(S=Math.min(Number(i)*M,S)),S=Math.max(S,M);let N=S+(T==="border-box"?A+_:0),C=Math.abs(S-z)<=1;return{outerHeightStyle:N,overflowing:C}},[i,r,t.placeholder]),g=Q5.useCallback(()=>{let y=b();if(Lb1(y))return;let v=y.outerHeightStyle,k=m.current;u.current!==v&&(u.current=v,k.style.height=`${v}px`),k.style.overflow=y.overflowing?"hidden":""},[b]);return M3(()=>{let y=()=>{g()},v,k=()=>{cancelAnimationFrame(v),v=requestAnimationFrame(()=>{y()})},w=lo(y),T=m.current,A=ut(T);A.addEventListener("resize",w);let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(y),_.observe(T)),()=>{w.clear(),cancelAnimationFrame(v),A.removeEventListener("resize",w),_&&_.disconnect()}},[b,g]),M3(()=>{g()}),(0,yG.jsxs)(Q5.Fragment,{children:[(0,cS.jsx)("textarea",l1({value:c,onChange:y=>{f||g(),a&&a(y)},ref:d,rows:r,style:n},l)),(0,cS.jsx)("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:l1({},Nb1.shadow,n,{paddingTop:0,paddingBottom:0})})]})});s();function kG(e){return J1("MuiScopedCssBaseline",e)}var gn2=q1("MuiScopedCssBaseline",["root"]);s();X1();R2();g2();var jb1=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],Fb1=["component","slots","slotProps"],Bb1=["component"];function P1(e,t){let{className:o,elementType:a,ownerState:i,externalForwardedProps:r,getSlotOwnerState:n,internalForwardedProps:c}=t,l=I1(t,jb1),{component:f,slots:m={[e]:void 0},slotProps:d={[e]:void 0}}=r,u=I1(r,Fb1),p=m[e]||a,b=po(d[e],i),g=uo(F({className:o},l,{externalForwardedProps:e==="root"?u:void 0,externalSlotProps:b})),{props:{component:x},internalRef:y}=g,v=I1(g.props,Bb1),k=Q1(y,b?.ref,t.ref),w=n?n(v):{},T=F({},i,w),A=e==="root"?x||f:x,_=mo(p,F({},e==="root"&&!f&&!m[e]&&c,e!=="root"&&!m[e]&&c,v,A&&{as:A},{ref:k}),T);return Object.keys(w).forEach(z=>{delete _[z]}),[p,_]}var zG=L(f1()),Vb1=["className","component","disableColorScheme","slots","slotProps"],Ub1=()=>U1({root:["root"]},kG,{}),Hb1=b1("div",{name:"JoyScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{let o={};return!t.disableColorScheme&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,i])=>{var r;o[`&${e.getColorSchemeSelector(a).replace(/\s*&/,"")}`]={colorScheme:(r=i.palette)==null?void 0:r.mode}}),F({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",color:e.vars.palette.text.primary},e.typography["body-md"],{backgroundColor:e.vars.palette.background.body,"@media print":{backgroundColor:"#fff"},"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:"bold"}},o)}),Gb1=xG.forwardRef(function(t,o){let a=W1({props:t,name:"JoyScopedCssBaseline"}),{className:i,component:r="div",disableColorScheme:n=!1,slots:c={},slotProps:l={}}=a,f=I1(a,Vb1),m=F({},a,{component:r,disableColorScheme:n}),d=Ub1(),u=F({},f,{component:r,slots:c,slotProps:l}),[p,b]=P1("root",{ref:o,className:s2(d.root,i),elementType:Hb1,externalForwardedProps:u,ownerState:m});return(0,zG.jsx)(p,F({},b))}),sS=Gb1;hl();var YZ=L(ZZ());s();s();var VR={50:"#A3FFD7",100:"#8CFFCD",200:"#80FFD2",300:"#48D7A3",400:"#34D399",500:"#2EBD89",600:"#10B981",700:"#009A7E",800:"#006640",900:"#00331F"};var JZ=(e="zappway")=>({modeStorageKey:e,colorSchemeStorageKey:`${e}-color-scheme`,attribute:`data-${e}`}),XZ=(e={})=>Xi({cssVarPrefix:e.prefix,fontFamily:{body:"Inter, sans-serif",display:"Poppins, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",fontSize:"57px",lineHeight:"64px",letterSpacing:"-0.25px"},kbd:{background:"linear-gradient(to top, var(--joy-palette-background-level2), var(--joy-palette-background-surface))",border:"1px solid var(--joy-palette-neutral-outlinedBorder)",borderRadius:"var(--joy-radius-xs)",boxShadow:"var(--joy-shadow-sm)",padding:"0.125em 0.375em"}},fontSize:{xl7:"4.5rem",xl6:"3.75rem",xl5:"3rem",xs2:"0.625rem",xs3:"0.5rem"},fontWeight:{xs:200,xl2:800,xl3:900},components:{JoySelect:{defaultProps:{slotProps:{listbox:{container:e.container}}},styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyModal:{defaultProps:{container:e.container}},JoyCard:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyInput:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyTextarea:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}},JoyIconButton:{styleOverrides:{root:t=>({borderRadius:t.theme.radius.sm})}}},colorSchemes:{dark:{palette:{primary:VR}},light:{palette:{primary:VR,neutral:{solidBg:"#000"}}}}});var nn=L(f1()),bx1="CREATE_NEW_CONVERSATION",UR={"phone-number":"phoneNumber","user-id":"userId","first-name":"firstName","last-name":"lastName",email:"email"},QZ="zappway-embeds",Sg=JZ(QZ),s4=typeof process<"u"&&!1,yx1=typeof NEXT_PUBLIC_DASHBOARD_URL<"u"?NEXT_PUBLIC_DASHBOARD_URL:"https://app.zappway.ai",kx1=(typeof NEXT_PUBLIC_ASSETS_BASE_URL<"u"?NEXT_PUBLIC_ASSETS_BASE_URL:"")||"https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.3",xx1=e=>{let t=e.getAttribute("locale");if(t)return s4&&console.log("[ShadowDOM] Locale detectado via atributo direto:",t),t;let o=e.getAttribute("lang");if(o)return s4&&console.log("[ShadowDOM] Locale detectado via atributo lang:",o),o;try{let r=e.ownerDocument?.documentElement?.lang;if(r)return s4&&console.log("[ShadowDOM] Locale detectado via document.documentElement.lang:",r),r}catch(i){s4&&console.warn("[ShadowDOM] Não foi possível acessar documento pai:",i)}try{let r=e.ownerDocument?.querySelector('meta[name="locale"]')?.getAttribute("content");if(r)return s4&&console.log("[ShadowDOM] Locale detectado via meta tag:",r),r}catch(i){s4&&console.warn("[ShadowDOM] Não foi possível acessar meta tags:",i)}let a=navigator.language||navigator.userLanguage;return a?(s4&&console.log("[ShadowDOM] Locale detectado via navigator:",a),a):(s4&&console.log("[ShadowDOM] Usando fallback en"),"en")},zx1=e=>{let t=e.getAttribute("color-mode")||e.getAttribute("data-color-mode");if(t==="dark"||t==="light")return s4&&console.log("[ShadowDOM] Color mode from attribute:",t),t;try{let o=e.ownerDocument,a=o?.documentElement,i=a?.className||"",r=o?.body?.className||"",n=a?.getAttribute("data-theme")||a?.getAttribute("data-mode"),c=o?.body?.getAttribute("data-theme")||o?.body?.getAttribute("data-mode");if(i.includes("dark")||r.includes("dark")||n==="dark"||c==="dark")return s4&&console.log("[ShadowDOM] Color mode from parent class/data: dark"),"dark";if(i.includes("light")||r.includes("light")||n==="light"||c==="light")return s4&&console.log("[ShadowDOM] Color mode from parent class/data: light"),"light";let l=a?.getAttribute("data-joy-color-scheme");if(l==="dark"||l==="light")return s4&&console.log("[ShadowDOM] Color mode from Joy UI scheme:",l),l;if(window.matchMedia?.("(prefers-color-scheme: dark)").matches)return s4&&console.log("[ShadowDOM] Color mode from media query: dark"),"dark"}catch(o){s4&&console.warn("[ShadowDOM] Could not detect color mode:",o)}return s4&&console.log("[ShadowDOM] Color mode fallback: light"),"light"};if(typeof window<"u"){let e=console.warn;console.warn=(...t)=>{t[0]&&typeof t[0]=="string"&&(t[0].includes("TextLayer styles not found")||t[0].includes("AnnotationLayer styles not found"))||e(...t)}}var wx1=({name:e,widget:t,type:o})=>class extends HTMLElement{cssProvider=kx1+`/dist/${o}/index.css`;root;cache;shadowRootElement;emotionRoot;instanceId;setIsOpen;isOpen;onEnd;locale;colorMode="light";constructor(i){super(),this.instanceId=i?.instanceId,this.onEnd=i?.onEnd;let r=this.attachShadow({mode:"open"}),n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="https://fonts.googleapis.com/css2?family=Poppins:wght@200..800&family=Inter:wght@100..900&display=swap";let c=document.createElement("link");if(c.rel="stylesheet",c.type="text/css",c.href=this.cssProvider,this.emotionRoot=document.createElement("style"),this.shadowRootElement=document.createElement("div"),this.shadowRootElement.className="zappway-widget",r.appendChild(n),r.appendChild(c),r.appendChild(this.emotionRoot),r.appendChild(this.shadowRootElement),o==="pdfviewer"){let l=document.createElement("style");if(l.innerHTML=lF+`
428
428
  `+sF,r.appendChild(l),!document.getElementById("react-pdf-global-vars")){let m=document.createElement("style");m.id="react-pdf-global-vars",m.innerHTML="body { --react-pdf-text-layer: 1; --react-pdf-annotation-layer: 1; }",document.head.appendChild(m)}}this.cache=$i({key:e,prepend:!0,container:this.emotionRoot}),this.cache.compat=!0,this.root=(0,YZ.createRoot)(this.shadowRootElement)}open(){this.setIsOpen?.(!0)}close(){this.setIsOpen?.(!1)}toggle(){this.setIsOpen?.(!this.isOpen)}destroy(){this.innerHTML="",this.instanceId&&(window[this.instanceId]=null)}createNewConversation(){this.dispatchEvent(new Event(bx1,{bubbles:!0,composed:!0}))}Component=i=>{let[r,n]=(0,cn.useState)(!1);this.setIsOpen=n,this.isOpen=r;let c={};for(let u in UR)if(UR.hasOwnProperty(u)){let p=UR[u],b=this.getAttribute(u);b&&(c[p]=b)}let l=this.getAttribute("context"),f={};try{f=JSON.parse(this.getAttribute("interface"))}catch{}let m=XZ({container:this.shadowRootElement,prefix:QZ}),d={...m,colorSchemes:{...m.colorSchemes,light:{...m.colorSchemes?.light,palette:{...m.colorSchemes?.light?.palette,mode:"light"}},dark:{...m.colorSchemes?.dark,palette:{...m.colorSchemes?.dark?.palette,mode:"dark"}}}};return(0,nn.jsx)(cn.StrictMode,{children:(0,nn.jsx)(zl,{value:this.cache,children:(0,nn.jsx)(yM,{theme:d,defaultMode:this.colorMode,modeStorageKey:Sg.modeStorageKey,attribute:Sg.attribute,colorSchemeStorageKey:Sg.colorSchemeStorageKey,colorSchemeNode:this.shadowRootElement,children:(0,nn.jsx)(sS,{sx:{background:"transparent"},children:cn.default.createElement(t,{...i,isOpen:r,onEnd:this.onEnd,initConfig:f,context:l,agentId:this.getAttribute("agent-id")||"",formId:this.getAttribute("form-id")||"",apiHost:yx1,fileUrl:this.getAttribute("file-url")||void 0,datasourceId:this.getAttribute("datasource-id")||void 0,pageNumber:this.getAttribute("page-number")?parseInt(this.getAttribute("page-number"),10):void 0,search:this.getAttribute("search")||void 0,colorMode:this.colorMode,contact:c,locale:this.locale,styles:this.getAttribute("styles")?JSON.parse(this.getAttribute("styles")):{},onAgentLoaded:u=>{let p=u?.interfaceConfig?.customCSS;if(p){let b=document.createElement("style");b.innerHTML=p,this.shadowRootElement.appendChild(b)}}})})})})})};connectedCallback(){this.locale=xx1(this),this.colorMode=zx1(this),this.shadowRootElement.setAttribute(Sg.attribute,this.colorMode),s4&&console.log("[ShadowDOM] Element conectado com locale:",this.locale,"colorMode:",this.colorMode),this.root.render((0,nn.jsx)(this.Component,{isOpen:this.isOpen,onEnd:this.onEnd}))}},eJ=wx1;s();var pi=L(H());s();s();var Vf=L(f1(),1),Je=L(H(),1);s();var tJ=L(H(),1),ln=(0,tJ.createContext)({});s();var oJ=L(H(),1);function sn(e){let t=(0,oJ.useRef)(null);return t.current===null&&(t.current=e()),t.current}s();var Tg=L(H(),1);s();var aJ=typeof window<"u";var fn=aJ?Tg.useLayoutEffect:Tg.useEffect;s();var YE=L(f1(),1),uY=L(H(),1),n9=L(H(),1);s();var iJ=L(H(),1),Zt=(0,iJ.createContext)(null);s();var mY=L(f1(),1);s();s();s();s();function Qo(e,t){e.indexOf(t)===-1&&e.push(t)}function Jt(e,t){let o=e.indexOf(t);o>-1&&e.splice(o,1)}s();var b0=(e,t,o)=>o>t?t:o<e?e:o;s();var b8=()=>{},me=()=>{};s();var _4={};s();var ef=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);s();var tf=e=>typeof e=="object"&&e!==null;s();var of=e=>/^0[^.\s]+$/u.test(e);s();function af(e){let t;return()=>(t===void 0&&(t=e()),t)}s();var S3=e=>e;s();var We=(...e)=>e.reduce((t,o)=>a=>o(t(a)));s();var a7=(e,t,o)=>{let a=t-e;return a?(o-e)/a:1};s();var y8=class{constructor(){this.subscriptions=[]}add(t){return Qo(this.subscriptions,t),()=>Jt(this.subscriptions,t)}notify(t,o,a){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,o,a);else for(let r=0;r<i;r++){let n=this.subscriptions[r];n&&n(t,o,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};s();var Z3=e=>e*1e3,O0=e=>e/1e3;s();var rf=(e,t)=>t?e*(1e3/t):0;s();s();s();var rJ=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,Mx1=1e-7,Sx1=12;function Tx1(e,t,o,a,i){let r,n,c=0;do n=t+(o-t)/2,r=rJ(n,a,i)-e,r>0?o=n:t=n;while(Math.abs(r)>Mx1&&++c<Sx1);return n}function Xt(e,t,o,a){if(e===t&&o===a)return S3;let i=r=>Tx1(r,0,1,e,o);return r=>r===0||r===1?r:rJ(i(r),t,a)}s();var Rg=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;s();var Eg=e=>t=>1-e(1-t);var _g=Xt(.33,1.53,.69,.99),mn=Eg(_g),nf=Rg(mn);var cf=e=>e>=1?1:(e*=2)<1?.5*mn(e):.5*(2-Math.pow(2,-10*(e-1)));s();var lf=e=>1-Math.sin(Math.acos(e)),sf=Eg(lf),ff=Rg(lf);s();var HR=Xt(.42,0,1,1),GR=Xt(0,0,.58,1),mf=Xt(.42,0,.58,1);s();var KR=e=>Array.isArray(e)&&typeof e[0]!="number";s();var df=e=>Array.isArray(e)&&typeof e[0]=="number";s();var nJ={linear:S3,easeIn:HR,easeInOut:mf,easeOut:GR,circIn:lf,circInOut:ff,circOut:sf,backIn:mn,backInOut:nf,backOut:_g,anticipate:cf},Rx1=e=>typeof e=="string",Pg=e=>{if(df(e)){me(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,o,a,i]=e;return Xt(t,o,a,i)}else if(Rx1(e))return me(nJ[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),nJ[e];return e};s();s();s();s();var uf=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];s();function cJ(e){let t=new Set,o=new Set,a=!1,i=!1,r=new WeakSet,n={delta:0,timestamp:0,isProcessing:!1};function c(f){r.has(f)&&(l.schedule(f),e()),f(n)}let l={schedule:(f,m=!1,d=!1)=>{let p=d&&a?t:o;return m&&r.add(f),p.add(f),f},cancel:f=>{o.delete(f),r.delete(f)},process:f=>{if(n=f,a){i=!0;return}a=!0;let m=t;t=o,o=m,t.forEach(c),t.clear(),a=!1,i&&(i=!1,l.process(f))}};return l}var Ex1=40;function Cg(e,t){let o=!1,a=!0,i={delta:0,timestamp:0,isProcessing:!1},r=()=>o=!0,n=uf.reduce((k,w)=>(k[w]=cJ(r),k),{}),{setup:c,read:l,resolveKeyframes:f,preUpdate:m,update:d,preRender:u,render:p,postRender:b}=n,g=()=>{let k=_4.useManualTiming,w=k?i.timestamp:performance.now();o=!1,k||(i.delta=a?1e3/60:Math.max(Math.min(w-i.timestamp,Ex1),1)),i.timestamp=w,i.isProcessing=!0,c.process(i),l.process(i),f.process(i),m.process(i),d.process(i),u.process(i),p.process(i),b.process(i),i.isProcessing=!1,o&&t&&(a=!1,e(g))},x=()=>{o=!0,a=!0,i.isProcessing||e(g)};return{schedule:uf.reduce((k,w)=>{let T=n[w];return k[w]=(A,_=!1,z=!1)=>(o||x(),T.schedule(A,_,z)),k},{}),cancel:k=>{for(let w=0;w<uf.length;w++)n[uf[w]].cancel(k)},state:i,steps:n}}var{schedule:d2,cancel:J4,state:D3,steps:pf}=Cg(typeof requestAnimationFrame<"u"?requestAnimationFrame:S3,!0);var Ag;function _x1(){Ag=void 0}var T3={now:()=>(Ag===void 0&&T3.set(D3.isProcessing||_4.useManualTiming?D3.timestamp:performance.now()),Ag),set:e=>{Ag=e,queueMicrotask(_x1)}};s();s();s();s();var lJ=e=>t=>typeof t=="string"&&t.startsWith(e),Og=lJ("--"),Px1=lJ("var(--"),dn=e=>Px1(e)?Cx1.test(e.split("/*")[0].trim()):!1,Cx1=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function qR(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}s();s();s();s();var i7={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},k8={...i7,transform:e=>b0(0,1,e)},hf={...i7,default:1};s();var Yt=e=>Math.round(e*1e5)/1e5;s();s();var un=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;s();function sJ(e){return e==null}s();var fJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var pn=(e,t)=>o=>!!(typeof o=="string"&&fJ.test(o)&&o.startsWith(e)||t&&!sJ(o)&&Object.prototype.hasOwnProperty.call(o,t)),$g=(e,t,o)=>a=>{if(typeof a!="string")return a;let[i,r,n,c]=a.match(un);return{[e]:parseFloat(i),[t]:parseFloat(r),[o]:parseFloat(n),alpha:c!==void 0?parseFloat(c):1}};var Ax1=e=>b0(0,255,e),WR={...i7,transform:e=>Math.round(Ax1(e))},r7={test:pn("rgb","red"),parse:$g("red","green","blue"),transform:({red:e,green:t,blue:o,alpha:a=1})=>"rgba("+WR.transform(e)+", "+WR.transform(t)+", "+WR.transform(o)+", "+Yt(k8.transform(a))+")"};function Ox1(e){let t="",o="",a="",i="";return e.length>5?(t=e.substring(1,3),o=e.substring(3,5),a=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),o=e.substring(2,3),a=e.substring(3,4),i=e.substring(4,5),t+=t,o+=o,a+=a,i+=i),{red:parseInt(t,16),green:parseInt(o,16),blue:parseInt(a,16),alpha:i?parseInt(i,16)/255:1}}var gf={test:pn("#"),parse:Ox1,transform:r7.transform};s();s();var vf=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),de=vf("deg"),f4=vf("%"),D1=vf("px"),ZR=vf("vh"),JR=vf("vw"),Ig={...f4,parse:e=>f4.parse(e)/100,transform:e=>f4.transform(e*100)};var Qt={test:pn("hsl","hue"),parse:$g("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:o,alpha:a=1})=>"hsla("+Math.round(e)+", "+f4.transform(Yt(t))+", "+f4.transform(Yt(o))+", "+Yt(k8.transform(a))+")"};var b3={test:e=>r7.test(e)||gf.test(e)||Qt.test(e),parse:e=>r7.test(e)?r7.parse(e):Qt.test(e)?Qt.parse(e):gf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?r7.transform(e):Qt.transform(e),getAnimatableNone:e=>{let t=b3.parse(e);return t.alpha=0,b3.transform(t)}};s();s();var mJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $x1(e){return isNaN(e)&&typeof e=="string"&&(e.match(un)?.length||0)+(e.match(mJ)?.length||0)>0}var uJ="number",pJ="color",Ix1="var",Dx1="var(",dJ="${}",Nx1=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function e9(e){let t=e.toString(),o=[],a={color:[],number:[],var:[]},i=[],r=0,c=t.replace(Nx1,l=>(b3.test(l)?(a.color.push(r),i.push(pJ),o.push(b3.parse(l))):l.startsWith(Dx1)?(a.var.push(r),i.push(Ix1),o.push(l)):(a.number.push(r),i.push(uJ),o.push(parseFloat(l))),++r,dJ)).split(dJ);return{values:o,split:c,indexes:a,types:i}}function Lx1(e){return e9(e).values}function hJ({split:e,types:t}){let o=e.length;return a=>{let i="";for(let r=0;r<o;r++)if(i+=e[r],a[r]!==void 0){let n=t[r];n===uJ?i+=Yt(a[r]):n===pJ?i+=b3.transform(a[r]):i+=a[r]}return i}}function jx1(e){return hJ(e9(e))}var Fx1=e=>typeof e=="number"?0:b3.test(e)?b3.getAnimatableNone(e):e,Bx1=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Fx1(e);function Vx1(e){let t=e9(e);return hJ(t)(t.values.map((a,i)=>Bx1(a,t.split[i])))}var y0={test:$x1,parse:Lx1,createTransformer:jx1,getAnimatableNone:Vx1};s();s();function XR(e,t,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(t-e)*6*o:o<1/2?t:o<2/3?e+(t-e)*(2/3-o)*6:e}function gJ({hue:e,saturation:t,lightness:o,alpha:a}){e/=360,t/=100,o/=100;let i=0,r=0,n=0;if(!t)i=r=n=o;else{let c=o<.5?o*(1+t):o+t-o*t,l=2*o-c;i=XR(l,c,e+1/3),r=XR(l,c,e),n=XR(l,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(n*255),alpha:a}}s();function hn(e,t){return o=>o>0?t:e}s();var v2=(e,t,o)=>e+(t-e)*o;var YR=(e,t,o)=>{let a=e*e,i=o*(t*t-a)+a;return i<0?0:Math.sqrt(i)},Ux1=[gf,r7,Qt],Hx1=e=>Ux1.find(t=>t.test(e));function vJ(e){let t=Hx1(e);if(b8(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let o=t.parse(e);return t===Qt&&(o=gJ(o)),o}var QR=(e,t)=>{let o=vJ(e),a=vJ(t);if(!o||!a)return hn(e,t);let i={...o};return r=>(i.red=YR(o.red,a.red,r),i.green=YR(o.green,a.green,r),i.blue=YR(o.blue,a.blue,r),i.alpha=v2(o.alpha,a.alpha,r),r7.transform(i))};s();var Dg=new Set(["none","hidden"]);function bJ(e,t){return Dg.has(e)?o=>o<=0?e:t:o=>o>=1?t:e}function Gx1(e,t){return o=>v2(e,t,o)}function Ng(e){return typeof e=="number"?Gx1:typeof e=="string"?dn(e)?hn:b3.test(e)?QR:Wx1:Array.isArray(e)?yJ:typeof e=="object"?b3.test(e)?QR:Kx1:hn}function yJ(e,t){let o=[...e],a=o.length,i=e.map((r,n)=>Ng(r)(r,t[n]));return r=>{for(let n=0;n<a;n++)o[n]=i[n](r);return o}}function Kx1(e,t){let o={...e,...t},a={};for(let i in o)e[i]!==void 0&&t[i]!==void 0&&(a[i]=Ng(e[i])(e[i],t[i]));return i=>{for(let r in a)o[r]=a[r](i);return o}}function qx1(e,t){let o=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let r=t.types[i],n=e.indexes[r][a[r]],c=e.values[n]??0;o[i]=c,a[r]++}return o}var Wx1=(e,t)=>{let o=y0.createTransformer(t),a=e9(e),i=e9(t);return a.indexes.var.length===i.indexes.var.length&&a.indexes.color.length===i.indexes.color.length&&a.indexes.number.length>=i.indexes.number.length?Dg.has(e)&&!i.values.length||Dg.has(t)&&!a.values.length?bJ(e,t):We(yJ(qx1(a,i),i.values),o):(b8(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),hn(e,t))};function Lg(e,t,o){return typeof e=="number"&&typeof t=="number"&&typeof o=="number"?v2(e,t,o):Ng(e)(e,t)}s();var kJ=e=>{let t=({timestamp:o})=>e(o);return{start:(o=!0)=>d2.update(t,o),stop:()=>J4(t),now:()=>D3.isProcessing?D3.timestamp:T3.now()}};s();s();s();var jg=(e,t,o=10)=>{let a="",i=Math.max(Math.round(t/o),2);for(let r=0;r<i;r++)a+=Math.round(e(r/(i-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};s();function gn(e){let t=0,o=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=o,a=e.next(t);return t>=2e4?1/0:t}s();function xJ(e,t=100,o){let a=o({...e,keyframes:[0,t]}),i=Math.min(gn(a),2e4);return{type:"keyframes",ease:r=>a.next(i*r).value/t,duration:O0(i)}}var R3={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function oE(e,t){return e*Math.sqrt(1-t*t)}var Zx1=12;function Jx1(e,t,o){let a=o;for(let i=1;i<Zx1;i++)a=a-e(a)/t(a);return a}var tE=.001;function Xx1({duration:e=R3.duration,bounce:t=R3.bounce,velocity:o=R3.velocity,mass:a=R3.mass}){let i,r;b8(e<=Z3(R3.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let n=1-t;n=b0(R3.minDamping,R3.maxDamping,n),e=b0(R3.minDuration,R3.maxDuration,O0(e)),n<1?(i=f=>{let m=f*n,d=m*e,u=m-o,p=oE(f,n),b=Math.exp(-d);return tE-u/p*b},r=f=>{let d=f*n*e,u=d*o+o,p=Math.pow(n,2)*Math.pow(f,2)*e,b=Math.exp(-d),g=oE(Math.pow(f,2),n);return(-i(f)+tE>0?-1:1)*((u-p)*b)/g}):(i=f=>{let m=Math.exp(-f*e),d=(f-o)*e+1;return-tE+m*d},r=f=>{let m=Math.exp(-f*e),d=(o-f)*(e*e);return m*d});let c=5/e,l=Jx1(i,r,c);if(e=Z3(e),isNaN(l))return{stiffness:R3.stiffness,damping:R3.damping,duration:e};{let f=Math.pow(l,2)*a;return{stiffness:f,damping:n*2*Math.sqrt(a*f),duration:e}}}var Yx1=["duration","bounce"],Qx1=["stiffness","damping","mass"];function zJ(e,t){return t.some(o=>e[o]!==void 0)}function ez1(e){let t={velocity:R3.velocity,stiffness:R3.stiffness,damping:R3.damping,mass:R3.mass,isResolvedFromDuration:!1,...e};if(!zJ(e,Qx1)&&zJ(e,Yx1))if(t.velocity=0,e.visualDuration){let o=e.visualDuration,a=2*Math.PI/(o*1.2),i=a*a,r=2*b0(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:R3.mass,stiffness:i,damping:r}}else{let o=Xx1({...e,velocity:0});t={...t,...o,mass:R3.mass},t.isResolvedFromDuration=!0}return t}function vn(e=R3.visualDuration,t=R3.bounce){let o=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:i}=o,r=o.keyframes[0],n=o.keyframes[o.keyframes.length-1],c={done:!1,value:r},{stiffness:l,damping:f,mass:m,duration:d,velocity:u,isResolvedFromDuration:p}=ez1({...o,velocity:-O0(o.velocity||0)}),b=u||0,g=f/(2*Math.sqrt(l*m)),x=n-r,y=O0(Math.sqrt(l/m)),v=Math.abs(x)<5;a||(a=v?R3.restSpeed.granular:R3.restSpeed.default),i||(i=v?R3.restDelta.granular:R3.restDelta.default);let k,w,T,A,_,z;if(g<1)T=oE(y,g),A=(b+g*y*x)/T,k=S=>{let N=Math.exp(-g*y*S);return n-N*(A*Math.sin(T*S)+x*Math.cos(T*S))},_=g*y*A+x*T,z=g*y*x-A*T,w=S=>Math.exp(-g*y*S)*(_*Math.sin(T*S)+z*Math.cos(T*S));else if(g===1){k=N=>n-Math.exp(-y*N)*(x+(b+y*x)*N);let S=b+y*x;w=N=>Math.exp(-y*N)*(y*S*N-b)}else{let S=y*Math.sqrt(g*g-1);k=O=>{let P=Math.exp(-g*y*O),E=Math.min(S*O,300);return n-P*((b+g*y*x)*Math.sinh(E)+S*x*Math.cosh(E))/S};let N=(b+g*y*x)/S,C=g*y*N-x*S,R=g*y*x-N*S;w=O=>{let P=Math.exp(-g*y*O),E=Math.min(S*O,300);return P*(C*Math.sinh(E)+R*Math.cosh(E))}}let M={calculatedDuration:p&&d||null,velocity:S=>Z3(w(S)),next:S=>{if(!p&&g<1){let C=Math.exp(-g*y*S),R=Math.sin(T*S),O=Math.cos(T*S),P=n-C*(A*R+x*O),E=Z3(C*(_*R+z*O));return c.done=Math.abs(E)<=a&&Math.abs(n-P)<=i,c.value=c.done?n:P,c}let N=k(S);if(p)c.done=S>=d;else{let C=Z3(w(S));c.done=Math.abs(C)<=a&&Math.abs(n-N)<=i}return c.value=c.done?n:N,c},toString:()=>{let S=Math.min(gn(M),2e4),N=jg(C=>M.next(S*C).value,S,30);return S+"ms "+N},toTransition:()=>{}};return M}vn.applyToOptions=e=>{let t=xJ(e,100,vn);return e.ease=t.ease,e.duration=Z3(t.duration),e.type="keyframes",e};s();var tz1=5;function Fg(e,t,o){let a=Math.max(t-tz1,0);return rf(o-e(a),t-a)}function bf({keyframes:e,velocity:t=0,power:o=.8,timeConstant:a=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:n,min:c,max:l,restDelta:f=.5,restSpeed:m}){let d=e[0],u={done:!1,value:d},p=z=>c!==void 0&&z<c||l!==void 0&&z>l,b=z=>c===void 0?l:l===void 0||Math.abs(c-z)<Math.abs(l-z)?c:l,g=o*t,x=d+g,y=n===void 0?x:n(x);y!==x&&(g=y-d);let v=z=>-g*Math.exp(-z/a),k=z=>y+v(z),w=z=>{let M=v(z),S=k(z);u.done=Math.abs(M)<=f,u.value=u.done?y:S},T,A,_=z=>{p(u.value)&&(T=z,A=vn({keyframes:[u.value,b(u.value)],velocity:Fg(k,z,u.value),damping:i,stiffness:r,restDelta:f,restSpeed:m}))};return _(0),{calculatedDuration:null,next:z=>{let M=!1;return!A&&T===void 0&&(M=!0,w(z),_(z)),T!==void 0&&z>=T?A.next(z-T):(!M&&w(z),u)}}}s();s();function oz1(e,t,o){let a=[],i=o||_4.mix||Lg,r=e.length-1;for(let n=0;n<r;n++){let c=i(e[n],e[n+1]);if(t){let l=Array.isArray(t)?t[n]||S3:t;c=We(l,c)}a.push(c)}return a}function wJ(e,t,{clamp:o=!0,ease:a,mixer:i}={}){let r=e.length;if(me(r===t.length,"Both input and output ranges must be the same length","range-length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let n=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=oz1(t,a,i),l=c.length,f=m=>{if(n&&m<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(m<e[d+1]);d++);let u=a7(e[d],e[d+1],m);return c[d](u)};return o?m=>f(b0(e[0],e[r-1],m)):f}s();s();function MJ(e,t){let o=e[e.length-1];for(let a=1;a<=t;a++){let i=a7(0,t,a);e.push(v2(o,1,i))}}function SJ(e){let t=[0];return MJ(t,e.length-1),t}s();function TJ(e,t){return e.map(o=>o*t)}function az1(e,t){return e.map(()=>t||mf).splice(0,e.length-1)}function ea({duration:e=300,keyframes:t,times:o,ease:a="easeInOut"}){let i=KR(a)?a.map(Pg):Pg(a),r={done:!1,value:t[0]},n=TJ(o&&o.length===t.length?o:SJ(t),e),c=wJ(n,t,{ease:Array.isArray(i)?i:az1(t,i)});return{calculatedDuration:e,next:l=>(r.value=c(l),r.done=l>=e,r)}}s();var iz1=e=>e!==null;function t9(e,{repeat:t,repeatType:o="loop"},a,i=1){let r=e.filter(iz1),c=i<0||t&&o!=="loop"&&t%2===1?0:r.length-1;return!c||a===void 0?r[c]:a}s();var rz1={decay:bf,inertia:bf,tween:ea,keyframes:ea,spring:vn};function Bg(e){typeof e.type=="string"&&(e.type=rz1[e.type])}s();var o9=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,o){return this.finished.then(t,o)}};var nz1=e=>e/100,x8=class extends o9{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:o}=this.options;o&&o.updatedAt!==T3.now()&&this.tick(T3.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;Bg(t);let{type:o=ea,repeat:a=0,repeatDelay:i=0,repeatType:r,velocity:n=0}=t,{keyframes:c}=t,l=o||ea;l!==ea&&typeof c[0]!="number"&&(this.mixKeyframes=We(nz1,Lg(c[0],c[1])),c=[0,100]);let f=l({...t,keyframes:c});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...c].reverse(),velocity:-n})),f.calculatedDuration===null&&(f.calculatedDuration=gn(f));let{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+i,this.totalDuration=this.resolvedDuration*(a+1)-i,this.generator=f}updateTime(t){let o=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(t,o=!1){let{generator:a,totalDuration:i,mixKeyframes:r,mirroredGenerator:n,resolvedDuration:c,calculatedDuration:l}=this;if(this.startTime===null)return a.next(0);let{delay:f=0,keyframes:m,repeat:d,repeatType:u,repeatDelay:p,type:b,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),o?this.currentTime=t:this.updateTime(t);let y=this.currentTime-f*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let k=this.currentTime,w=a;if(d){let z=Math.min(this.currentTime,i)/c,M=Math.floor(z),S=z%1;!S&&z>=1&&(S=1),S===1&&M--,M=Math.min(M,d+1),M%2&&(u==="reverse"?(S=1-S,p&&(S-=p/c)):u==="mirror"&&(w=n)),k=b0(0,1,S)*c}let T;v?(this.delayState.value=m[0],T=this.delayState):T=w.next(k),r&&!v&&(T.value=r(T.value));let{done:A}=T;!v&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let _=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return _&&b!==bf&&(T.value=t9(m,this.options,x,this.speed)),g&&g(T.value),_&&this.finish(),T}then(t,o){return this.finished.then(t,o)}get duration(){return O0(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+O0(t)}get time(){return O0(this.currentTime)}set time(t){t=Z3(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let o=this.generator.next(t).value;return Fg(a=>this.generator.next(a).value,t,o)}get speed(){return this.playbackSpeed}set speed(t){let o=this.playbackSpeed!==t;o&&this.driver&&this.updateTime(T3.now()),this.playbackSpeed=t,o&&this.driver&&(this.time=O0(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=kJ,startTime:o}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();let a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=o??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(T3.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};s();s();function RJ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}s();s();var ta=e=>e*180/Math.PI,aE=e=>{let t=ta(Math.atan2(e[1],e[0]));return iE(t)},cz1={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:aE,rotateZ:aE,skewX:e=>ta(Math.atan(e[1])),skewY:e=>ta(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},iE=e=>(e=e%360,e<0&&(e+=360),e),EJ=aE,_J=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PJ=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),lz1={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_J,scaleY:PJ,scale:e=>(_J(e)+PJ(e))/2,rotateX:e=>iE(ta(Math.atan2(e[6],e[5]))),rotateY:e=>iE(ta(Math.atan2(-e[2],e[0]))),rotateZ:EJ,rotate:EJ,skewX:e=>ta(Math.atan(e[4])),skewY:e=>ta(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Vg(e){return e.includes("scale")?1:0}function Ug(e,t){if(!e||e==="none")return Vg(t);let o=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,i;if(o)a=lz1,i=o;else{let c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=cz1,i=c}if(!i)return Vg(t);let r=a[t],n=i[1].split(",").map(sz1);return typeof r=="function"?r(n):n[r]}var CJ=(e,t)=>{let{transform:o="none"}=getComputedStyle(e);return Ug(o,t)};function sz1(e){return parseFloat(e.trim())}s();var n7=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ue=new Set([...n7,"pathRotation"]);var rE=e=>e===i7||e===D1,fz1=new Set(["x","y","z"]),mz1=n7.filter(e=>!fz1.has(e));function AJ(e){let t=[];return mz1.forEach(o=>{let a=e.getValue(o);a!==void 0&&(t.push([o,a.get()]),a.set(o.startsWith("scale")?1:0))}),t}var z8={width:({x:e},{paddingLeft:t="0",paddingRight:o="0",boxSizing:a})=>{let i=e.max-e.min;return a==="border-box"?i:i-parseFloat(t)-parseFloat(o)},height:({y:e},{paddingTop:t="0",paddingBottom:o="0",boxSizing:a})=>{let i=e.max-e.min;return a==="border-box"?i:i-parseFloat(t)-parseFloat(o)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ug(t,"x"),y:(e,{transform:t})=>Ug(t,"y")};z8.translateX=z8.x;z8.translateY=z8.y;var oa=new Set,nE=!1,cE=!1,lE=!1;function OJ(){if(cE){let e=Array.from(oa).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),o=new Map;t.forEach(a=>{let i=AJ(a);i.length&&(o.set(a,i),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let i=o.get(a);i&&i.forEach(([r,n])=>{a.getValue(r)?.set(n)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}cE=!1,nE=!1,oa.forEach(e=>e.complete(lE)),oa.clear()}function $J(){oa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cE=!0)})}function IJ(){lE=!0,$J(),OJ(),lE=!1}var a9=class{constructor(t,o,a,i,r,n=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=o,this.name=a,this.motionValue=i,this.element=r,this.isAsync=n}scheduleResolve(){this.state="scheduled",this.isAsync?(oa.add(this),nE||(nE=!0,d2.read($J),d2.resolveKeyframes(OJ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:o,element:a,motionValue:i}=this;if(t[0]===null){let r=i?.get(),n=t[t.length-1];if(r!==void 0)t[0]=r;else if(a&&o){let c=a.readValue(o,n);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=n),i&&r===void 0&&i.set(t[0])}RJ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),oa.delete(this)}cancel(){this.state==="scheduled"&&(oa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};s();s();s();var DJ=e=>e.startsWith("--");function Hg(e,t,o){DJ(t)?e.style.setProperty(t,o):e.style[t]=o}s();s();s();s();var NJ={};function Gg(e,t){let o=af(e);return()=>NJ[t]??o()}var LJ=Gg(()=>window.ScrollTimeline!==void 0,"scrollTimeline");s();s();s();var Kg=Gg(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");s();var aa=([e,t,o,a])=>`cubic-bezier(${e}, ${t}, ${o}, ${a})`;s();var sE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:aa([0,.65,.55,1]),circOut:aa([.55,0,1,.45]),backIn:aa([.31,.01,.66,-.59]),backOut:aa([.33,1.53,.69,.99])};function fE(e,t){if(e)return typeof e=="function"?Kg()?jg(e,t):"ease-out":df(e)?aa(e):Array.isArray(e)?e.map(o=>fE(o,t)||sE.easeOut):sE[e]}function jJ(e,t,o,{delay:a=0,duration:i=300,repeat:r=0,repeatType:n="loop",ease:c="easeOut",times:l}={},f=void 0){let m={[t]:o};l&&(m.offset=l);let d=fE(c,i);Array.isArray(d)&&(m.easing=d);let u={delay:a,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:n==="reverse"?"alternate":"normal"};return f&&(u.pseudoElement=f),e.animate(m,u)}s();s();function qg(e){return typeof e=="function"&&"applyToOptions"in e}function FJ({type:e,...t}){return qg(e)&&Kg()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var bn=class extends o9{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:o,name:a,keyframes:i,pseudoElement:r,allowFlatten:n=!1,finalKeyframe:c,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=n,this.options=t,me(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let f=FJ(t);this.animation=jJ(o,a,i,f,r),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let m=t9(i,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),Hg(o,a,m),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return O0(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+O0(t)}get time(){return O0(Number(this.animation.currentTime)||0)}set time(t){let o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Z3(t),o&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:o,rangeEnd:a,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&LJ()?(this.animation.timeline=t,o&&(this.animation.rangeStart=o),a&&(this.animation.rangeEnd=a),S3):i(this)}};s();var BJ={anticipate:cf,backInOut:nf,circInOut:ff};function dz1(e){return e in BJ}function VJ(e){typeof e.ease=="string"&&dz1(e.ease)&&(e.ease=BJ[e.ease])}var mE=10,Wg=class extends bn{constructor(t){VJ(t),Bg(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:o,onUpdate:a,onComplete:i,element:r,...n}=this.options;if(!o)return;if(t!==void 0){o.set(t);return}let c=new x8({...n,autoplay:!1}),l=Math.max(mE,T3.now()-this.startTime),f=b0(0,mE,l-mE),m=c.sample(l).value,{name:d}=this.options;r&&d&&Hg(r,d,m),o.setWithVelocity(c.sample(Math.max(0,l-f)).value,m,f),c.stop()}};s();s();var dE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(y0.test(e)||e==="0")&&!e.startsWith("url("));function uz1(e){let t=e[0];if(e.length===1)return!0;for(let o=0;o<e.length;o++)if(e[o]!==t)return!0}function UJ(e,t,o,a){let i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],n=dE(i,t),c=dE(r,t);return b8(n===c,`You are trying to animate ${t} from "${i}" to "${r}". "${n?r:i}" is not an animatable value.`,"value-not-animatable"),!n||!c?!1:uz1(e)||(o==="spring"||qg(o))&&a}s();function yf(e){e.duration=0,e.type="keyframes"}s();s();var Zg=new Set(["opacity","clipPath","filter","transform"]);s();var pz1=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function HJ(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&pz1.test(e[t]))return!0;return!1}var hz1=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),gz1=af(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function GJ(e){let{motionValue:t,name:o,repeatDelay:a,repeatType:i,damping:r,type:n,keyframes:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:f,transformTemplate:m}=t.owner.getProps();return gz1()&&o&&(Zg.has(o)||hz1.has(o)&&HJ(c))&&(o!=="transform"||!m)&&!f&&!a&&i!=="mirror"&&r!==0&&n!=="inertia"}var vz1=40,Jg=class extends o9{constructor({autoplay:t=!0,delay:o=0,type:a="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:n="loop",keyframes:c,name:l,motionValue:f,element:m,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=T3.now();let u={autoplay:t,delay:o,type:a,repeat:i,repeatDelay:r,repeatType:n,name:l,motionValue:f,element:m,...d},p=m?.KeyframeResolver||a9;this.keyframeResolver=new p(c,(b,g,x)=>this.onKeyframesResolved(b,g,u,!x),l,f,m),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,o,a,i){this.keyframeResolver=void 0;let{name:r,type:n,velocity:c,delay:l,isHandoff:f,onUpdate:m}=a;this.resolvedAt=T3.now();let d=!0;UJ(t,r,n,c)||(d=!1,(_4.instantAnimations||!l)&&m?.(t9(t,a,o)),t[0]=t[t.length-1],yf(a),a.repeat=0);let p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>vz1?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...a,keyframes:t},b=d&&!f&&GJ(p),g=p.motionValue?.owner?.current,x;if(b)try{x=new Wg({...p,element:g})}catch{x=new x8(p)}else x=new x8(p);x.finished.then(()=>{this.notifyFinished()}).catch(S3),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,o){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),IJ()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};s();function Xg(e,t,o,a=0,i=1){let r=Array.from(e).sort((f,m)=>f.sortNodePosition(m)).indexOf(t),n=e.size,c=(n-1)*a;return typeof o=="function"?o(r,n):i===1?r*a:c-r*a}s();var KJ=30,bz1=e=>!isNaN(parseFloat(e)),qJ={current:void 0},uE=class{constructor(t,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let i=T3.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=o.owner}setCurrent(t){this.current=t,this.updatedAt=T3.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=bz1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,o){this.events[t]||(this.events[t]=new y8);let a=this.events[t].add(o);return t==="change"?()=>{a(),d2.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,o){this.passiveEffect=t,this.stopPassiveEffect=o}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,o,a){this.set(o),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}jump(t,o=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return qJ.current&&qJ.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=T3.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>KJ)return 0;let o=Math.min(this.updatedAt-this.prevUpdatedAt,KJ);return rf(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(t){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=t(o),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ze(e,t){return new uE(e,t)}s();s();s();function Yg(e,t){if(e?.inherit&&t){let{inherit:o,...a}=e;return{...t,...a}}return e}function yn(e,t){let o=e?.[t]??e?.default??e;return o!==e?Yg(o,e):o}s();var yz1={type:"spring",stiffness:500,damping:25,restSpeed:10},kz1=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xz1={type:"keyframes",duration:.8},zz1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},WJ=(e,{keyframes:t})=>t.length>2?xz1:ue.has(e)?e.startsWith("scale")?kz1(t[1]):yz1:zz1;s();var wz1=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ZJ(e){for(let t in e)if(!wz1.has(t))return!0;return!1}var ia=(e,t,o,a={},i,r)=>n=>{let c=yn(a,e)||{},l=c.delay||a.delay||0,{elapsed:f=0}=a;f=f-Z3(l);let m={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-f,onUpdate:u=>{t.set(u),c.onUpdate&&c.onUpdate(u)},onComplete:()=>{n(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:r?void 0:i};ZJ(c)||Object.assign(m,WJ(e,m)),m.duration&&(m.duration=Z3(m.duration)),m.repeatDelay&&(m.repeatDelay=Z3(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let d=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(yf(m),m.delay===0&&(d=!0)),(_4.instantAnimations||_4.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(d=!0,yf(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,d&&!r&&t.get()!==void 0){let u=t9(m.keyframes,c);if(u!==void 0){d2.update(()=>{m.onUpdate(u),m.onComplete()});return}}return c.isSync?new x8(m):new Jg(m)};s();var Mz1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sz1(e){let t=Mz1.exec(e);if(!t)return[,];let[,o,a,i]=t;return[`--${o??a}`,i]}var Tz1=4;function pE(e,t,o=1){me(o<=Tz1,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,i]=Sz1(e);if(!a)return;let r=window.getComputedStyle(t).getPropertyValue(a);if(r){let n=r.trim();return ef(n)?parseFloat(n):n}return dn(i)?pE(i,t,o+1):i}s();s();s();function JJ(e){let t=[{},{}];return e?.values.forEach((o,a)=>{t[0][a]=o.get(),t[1][a]=o.getVelocity()}),t}function ra(e,t,o,a){if(typeof t=="function"){let[i,r]=JJ(a);t=t(o!==void 0?o:e.custom,i,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[i,r]=JJ(a);t=t(o!==void 0?o:e.custom,i,r)}return t}function T5(e,t,o){let a=e.getProps();return ra(a,t,o!==void 0?o:a.custom,e)}s();s();var Qg=new Set(["width","height","top","left","right","bottom",...n7]);s();s();var kf=e=>Array.isArray(e);function Rz1(e,t,o){e.hasValue(t)?e.getValue(t).set(o):e.addValue(t,Ze(o))}function Ez1(e){return kf(e)?e[e.length-1]||0:e}function XJ(e,t){let o=T5(e,t),{transitionEnd:a={},transition:i={},...r}=o||{};r={...r,...a};for(let n in r){let c=Ez1(r[n]);Rz1(e,n,c)}}s();s();s();var G2=e=>!!(e&&e.getVelocity);function YJ(e){return!!(G2(e)&&e.add)}function kn(e,t){let o=e.getValue("willChange");if(YJ(o))return o.add(t);if(!o&&_4.WillChange){let a=new _4.WillChange("auto");e.addValue("willChange",a),a.add(t)}}s();s();s();function xn(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var QJ="framerAppearId",xf="data-"+xn(QJ);function ev(e){return e.props[xf]}function _z1({protectedKeys:e,needsAnimating:t},o){let a=e.hasOwnProperty(o)&&t[o]!==!0;return t[o]=!1,a}function tv(e,t,{delay:o=0,transitionOverride:a,type:i}={}){let{transition:r,transitionEnd:n,...c}=t,l=e.getDefaultTransition();r=r?Yg(r,l):l;let f=r?.reduceMotion,m=r?.skipAnimations;a&&(r=a);let d=[],u=i&&e.animationState&&e.animationState.getState()[i],p=r?.path;p&&p.animateVisualElement(e,c,r,o,d);for(let b in c){let g=e.getValue(b,e.latestValues[b]??null),x=c[b];if(x===void 0||u&&_z1(u,b))continue;let y={delay:o,...yn(r||{},b)};m&&(y.skipAnimations=!0);let v=g.get();if(v!==void 0&&!g.isAnimating()&&!Array.isArray(x)&&x===v&&!y.velocity){d2.update(()=>g.set(x));continue}let k=!1;if(window.MotionHandoffAnimation){let A=ev(e);if(A){let _=window.MotionHandoffAnimation(A,b,d2);_!==null&&(y.startTime=_,k=!0)}}kn(e,b);let w=f??e.shouldReduceMotion;g.start(ia(b,g,x,w&&Qg.has(b)?{type:!1}:y,e,k));let T=g.animation;T&&d.push(T)}if(n){let b=()=>d2.update(()=>{n&&XJ(e,n)});d.length?Promise.all(d).then(b):b()}return d}s();function ov(e,t,o={}){let a=T5(e,t,o.type==="exit"?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=a||{};o.transitionOverride&&(i=o.transitionOverride);let r=a?()=>Promise.all(tv(e,a,o)):()=>Promise.resolve(),n=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:f=0,staggerChildren:m,staggerDirection:d}=i;return Pz1(e,t,l,f,m,d,o)}:()=>Promise.resolve(),{when:c}=i;if(c){let[l,f]=c==="beforeChildren"?[r,n]:[n,r];return l().then(()=>f())}else return Promise.all([r(),n(o.delay)])}function Pz1(e,t,o=0,a=0,i=0,r=1,n){let c=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),c.push(ov(l,t,{...n,delay:o+(typeof a=="function"?0:a)+Xg(e.variantChildren,l,a,i,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(c)}function eX(e,t,o={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let i=t.map(r=>ov(e,r,o));a=Promise.all(i)}else if(typeof t=="string")a=ov(e,t,o);else{let i=typeof t=="function"?T5(e,t,o.custom):t;a=Promise.all(tv(e,i,o))}return a.then(()=>{e.notify("AnimationComplete",t)})}s();s();s();var tX={test:e=>e==="auto",parse:e=>e};s();var av=e=>t=>t.test(e);var hE=[i7,D1,f4,de,JR,ZR,tX],gE=e=>hE.find(av(e));s();function oX(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||of(e):!0}s();s();s();var Cz1=new Set(["brightness","contrast","saturate","opacity"]);function Az1(e){let[t,o]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=o.match(un)||[];if(!a)return e;let i=o.replace(a,""),r=Cz1.has(t)?1:0;return a!==o&&(r*=100),t+"("+r+i+")"}var Oz1=/\b([a-z-]*)\(.*?\)/gu,zf={...y0,getAnimatableNone:e=>{let t=e.match(Oz1);return t?t.map(Az1).join(" "):e}};s();var wf={...y0,getAnimatableNone:e=>{let t=y0.parse(e);return y0.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};s();s();s();var vE={...i7,transform:Math.round};s();var aX={rotate:de,pathRotation:de,rotateX:de,rotateY:de,rotateZ:de,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:de,skewX:de,skewY:de,distance:D1,translateX:D1,translateY:D1,translateZ:D1,x:D1,y:D1,z:D1,perspective:D1,transformPerspective:D1,opacity:k8,originX:Ig,originY:Ig,originZ:D1};var na={borderWidth:D1,borderTopWidth:D1,borderRightWidth:D1,borderBottomWidth:D1,borderLeftWidth:D1,borderRadius:D1,borderTopLeftRadius:D1,borderTopRightRadius:D1,borderBottomRightRadius:D1,borderBottomLeftRadius:D1,width:D1,maxWidth:D1,height:D1,maxHeight:D1,top:D1,right:D1,bottom:D1,left:D1,inset:D1,insetBlock:D1,insetBlockStart:D1,insetBlockEnd:D1,insetInline:D1,insetInlineStart:D1,insetInlineEnd:D1,padding:D1,paddingTop:D1,paddingRight:D1,paddingBottom:D1,paddingLeft:D1,paddingBlock:D1,paddingBlockStart:D1,paddingBlockEnd:D1,paddingInline:D1,paddingInlineStart:D1,paddingInlineEnd:D1,margin:D1,marginTop:D1,marginRight:D1,marginBottom:D1,marginLeft:D1,marginBlock:D1,marginBlockStart:D1,marginBlockEnd:D1,marginInline:D1,marginInlineStart:D1,marginInlineEnd:D1,fontSize:D1,backgroundPositionX:D1,backgroundPositionY:D1,...aX,zIndex:vE,fillOpacity:k8,strokeOpacity:k8,numOctaves:vE};var $z1={...na,color:b3,backgroundColor:b3,outlineColor:b3,fill:b3,stroke:b3,borderColor:b3,borderTopColor:b3,borderRightColor:b3,borderBottomColor:b3,borderLeftColor:b3,filter:zf,WebkitFilter:zf,mask:wf,WebkitMask:wf},iv=e=>$z1[e];var Iz1=new Set([zf,wf]);function rv(e,t){let o=iv(e);return Iz1.has(o)||(o=y0),o.getAnimatableNone?o.getAnimatableNone(t):void 0}var Dz1=new Set(["auto","none","0"]);function iX(e,t,o){let a=0,i;for(;a<e.length&&!i;){let r=e[a];typeof r=="string"&&!Dz1.has(r)&&e9(r).values.length&&(i=e[a]),a++}if(i&&o)for(let r of t)e[r]=rv(o,i)}var nv=class extends a9{constructor(t,o,a,i,r){super(t,o,a,i,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:o,name:a}=this;if(!o||!o.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let d=t[m];if(typeof d=="string"&&(d=d.trim(),dn(d))){let u=pE(d,o.current);u!==void 0&&(t[m]=u),m===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Qg.has(a)||t.length!==2)return;let[i,r]=t,n=gE(i),c=gE(r),l=qR(i),f=qR(r);if(l!==f&&z8[a]){this.needsMeasurement=!0;return}if(n!==c)if(rE(n)&&rE(c))for(let m=0;m<t.length;m++){let d=t[m];typeof d=="string"&&(t[m]=parseFloat(d))}else z8[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:o}=this,a=[];for(let i=0;i<t.length;i++)(t[i]===null||oX(t[i]))&&a.push(i);a.length&&iX(t,a,o)}measureInitialState(){let{element:t,unresolvedKeyframes:o,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=z8[a](t.measureViewportBox(),window.getComputedStyle(t.current)),o[0]=this.measuredOrigin;let i=o[o.length-1];i!==void 0&&t.getValue(a,i).jump(i,!1)}measureEndState(){let{element:t,name:o,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let i=t.getValue(o);i&&i.jump(this.measuredOrigin,!1);let r=a.length-1,n=a[r];a[r]=z8[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=n),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,l])=>{t.getValue(c).set(l)}),this.resolveNoneKeyframes()}};s();function cv(e,t,o){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let i=o?.[e]??a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(a=>a!=null)}s();var Mf=(e,t)=>t&&typeof e=="number"?t.transform(e):e;s();function ca(e){return tf(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}s();var{schedule:la,cancel:Nz1}=Cg(queueMicrotask,!1);s();var pe={x:!1,y:!1};function lv(){return pe.x||pe.y}s();function bE(e){return e==="x"||e==="y"?pe[e]?null:(pe[e]=!0,()=>{pe[e]=!1}):pe.x||pe.y?null:(pe.x=pe.y=!0,()=>{pe.x=pe.y=!1})}s();s();function sv(e,t){let o=cv(e),a=new AbortController,i={passive:!0,...t,signal:a.signal};return[o,i,()=>a.abort()]}function Lz1(e){return!(e.pointerType==="touch"||lv())}function yE(e,t,o={}){let[a,i,r]=sv(e,o);return a.forEach(n=>{let c=!1,l=!1,f,m=()=>{n.removeEventListener("pointerleave",b)},d=x=>{f&&(f(x),f=void 0),m()},u=x=>{c=!1,window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",u),l&&(l=!1,d(x))},p=()=>{c=!0,window.addEventListener("pointerup",u,i),window.addEventListener("pointercancel",u,i)},b=x=>{if(x.pointerType!=="touch"){if(c){l=!0;return}d(x)}},g=x=>{if(!Lz1(x))return;l=!1;let y=t(n,x);typeof y=="function"&&(f=y,n.addEventListener("pointerleave",b,i))};n.addEventListener("pointerenter",g,i),n.addEventListener("pointerdown",p,i)}),r}s();s();var kE=(e,t)=>t?e===t?!0:kE(e,t.parentElement):!1;s();var sa=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;s();var jz1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xE(e){return jz1.has(e.tagName)||e.isContentEditable===!0}var Fz1=new Set(["INPUT","SELECT","TEXTAREA"]);function zE(e){return Fz1.has(e.tagName)||e.isContentEditable===!0}s();s();var zn=new WeakSet;function rX(e){return t=>{t.key==="Enter"&&e(t)}}function wE(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var nX=(e,t)=>{let o=e.currentTarget;if(!o)return;let a=rX(()=>{if(zn.has(o))return;wE(o,"down");let i=rX(()=>{wE(o,"up")}),r=()=>wE(o,"cancel");o.addEventListener("keyup",i,t),o.addEventListener("blur",r,t)});o.addEventListener("keydown",a,t),o.addEventListener("blur",()=>o.removeEventListener("keydown",a),t)};function cX(e){return sa(e)&&!lv()}var lX=new WeakSet;function ME(e,t,o={}){let[a,i,r]=sv(e,o),n=c=>{let l=c.currentTarget;if(!cX(c)||lX.has(c))return;zn.add(l),o.stopPropagation&&lX.add(c);let f=t(l,c),m={...i,capture:!0},d=(b,g)=>{window.removeEventListener("pointerup",u,m),window.removeEventListener("pointercancel",p,m),zn.has(l)&&zn.delete(l),cX(b)&&typeof f=="function"&&f(b,{success:g})},u=b=>{d(b,l===window||l===document||o.useGlobalTarget||kE(l,b.target))},p=b=>{d(b,!1)};window.addEventListener("pointerup",u,m),window.addEventListener("pointercancel",p,m)};return a.forEach(c=>{(o.useGlobalTarget?window:c).addEventListener("pointerdown",n,i),ca(c)&&(c.addEventListener("focus",f=>nX(f,i)),!xE(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),r}s();s();s();function wn(e){return tf(e)&&"ownerSVGElement"in e}var fv=new WeakMap,mv,sX=(e,t,o)=>(a,i)=>i&&i[0]?i[0][e+"Size"]:wn(a)&&"getBBox"in a?a.getBBox()[t]:a[o],Bz1=sX("inline","width","offsetWidth"),Vz1=sX("block","height","offsetHeight");function Uz1({target:e,borderBoxSize:t}){fv.get(e)?.forEach(o=>{o(e,{get width(){return Bz1(e,t)},get height(){return Vz1(e,t)}})})}function Hz1(e){e.forEach(Uz1)}function Gz1(){typeof ResizeObserver>"u"||(mv=new ResizeObserver(Hz1))}function fX(e,t){mv||Gz1();let o=cv(e);return o.forEach(a=>{let i=fv.get(a);i||(i=new Set,fv.set(a,i)),i.add(t),mv?.observe(a)}),()=>{o.forEach(a=>{let i=fv.get(a);i?.delete(t),i?.size||mv?.unobserve(a)})}}s();var dv=new Set,Mn;function Kz1(){Mn=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};dv.forEach(t=>t(e))},window.addEventListener("resize",Mn)}function mX(e){return dv.add(e),Mn||Kz1(),()=>{dv.delete(e),!dv.size&&typeof Mn=="function"&&(window.removeEventListener("resize",Mn),Mn=void 0)}}function uv(e,t){return typeof e=="function"?mX(e):fX(e,t)}s();var fa={value:null,addProjectionMetrics:null};s();function dX(e){return wn(e)&&e.tagName==="svg"}s();var qz1=[...hE,b3,y0],uX=e=>qz1.find(av(e));s();s();s();var SE=()=>({translate:0,scale:1,origin:0,originPoint:0}),i9=()=>({x:SE(),y:SE()}),TE=()=>({min:0,max:0}),y3=()=>({x:TE(),y:TE()});s();var pX=new WeakMap;s();s();function w8(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}s();function c7(e){return typeof e=="string"||Array.isArray(e)}s();var pv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sf=["initial",...pv];function r9(e){return w8(e.animate)||Sf.some(t=>c7(e[t]))}function Tf(e){return!!(r9(e)||e.variants)}s();function hX(e,t,o){for(let a in t){let i=t[a],r=o[a];if(G2(i))e.addValue(a,i);else if(G2(r))e.addValue(a,Ze(i,{owner:e}));else if(r!==i)if(e.hasValue(a)){let n=e.getValue(a);n.liveStyle===!0?n.jump(i):n.hasAnimated||n.set(i)}else{let n=e.getStaticValue(a);e.addValue(a,Ze(n!==void 0?n:i,{owner:e}))}}for(let a in o)t[a]===void 0&&e.removeValue(a);return t}s();s();var Rf={current:null},hv={current:!1};var Wz1=typeof window<"u";function gX(){if(hv.current=!0,!!Wz1)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Rf.current=e.matches;e.addEventListener("change",t),t()}else Rf.current=!1}var vX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],gv={};function _f(e){gv=e}function RE(){return gv}var Ef=class{scrapeMotionValuesFromProps(t,o,a){return{}}constructor({parent:t,props:o,presenceContext:a,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:n,visualState:c},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=a9,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let p=T3.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,d2.render(this.render,!1,!0))};let{latestValues:f,renderState:m}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=o.initial?{...f}:{},this.renderState=m,this.parent=t,this.props=o,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!n,this.isControllingVariants=r9(o),this.isVariantNode=Tf(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:d,...u}=this.scrapeMotionValuesFromProps(o,{},this);for(let p in u){let b=u[p];f[p]!==void 0&&G2(b)&&b.set(f[p])}}mount(t){if(this.hasBeenMounted)for(let o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,pX.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,a)=>this.bindToMotionValue(a,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(hv.current||gX(),this.shouldReduceMotion=Rf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),J4(this.notifyUpdate),J4(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let o=this.features[t];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,o){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),o.accelerate&&Zg.has(t)&&this.current instanceof HTMLElement){let{factory:n,keyframes:c,times:l,ease:f,duration:m}=o.accelerate,d=new bn({element:this.current,name:t,keyframes:c,times:l,ease:f,duration:Z3(m)}),u=n(d);this.valueSubscriptions.set(t,()=>{u(),d.cancel()});return}let a=ue.has(t);a&&this.onBindTransform&&this.onBindTransform();let i=o.on("change",n=>{this.latestValues[t]=n,this.props.onUpdate&&d2.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,o)),this.valueSubscriptions.set(t,()=>{i(),r&&r()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in gv){let o=gv[t];if(!o)continue;let{isEnabled:a,Feature:i}=o;if(!this.features[t]&&i&&a(this.props)&&(this.features[t]=new i(this)),this.features[t]){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):y3()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,o){this.latestValues[t]=o}update(t,o){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let a=0;a<vX.length;a++){let i=vX[a];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r="on"+i,n=t[r];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=hX(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(t),()=>o.variantChildren.delete(t)}addValue(t,o){let a=this.values.get(t);o!==a&&(a&&this.removeValue(t),this.bindToMotionValue(t,o),this.values.set(t,o),this.latestValues[t]=o.get())}removeValue(t){this.values.delete(t);let o=this.valueSubscriptions.get(t);o&&(o(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,o){if(this.props.values&&this.props.values[t])return this.props.values[t];let a=this.values.get(t);return a===void 0&&o!==void 0&&(a=Ze(o===null?void 0:o,{owner:this}),this.addValue(t,a)),a}readValue(t,o){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(ef(a)||of(a))?a=parseFloat(a):!uX(a)&&y0.test(o)&&(a=rv(t,o)),this.setBaseTarget(t,G2(a)?a.get():a)),G2(a)?a.get():a}setBaseTarget(t,o){this.baseTarget[t]=o}getBaseTarget(t){let{initial:o}=this.props,a;if(typeof o=="string"||typeof o=="object"){let r=ra(this.props,o,this.presenceContext?.custom);r&&(a=r[t])}if(o&&a!==void 0)return a;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!G2(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,o){return this.events[t]||(this.events[t]=new y8),this.events[t].add(o)}notify(t,...o){this.events[t]&&this.events[t].notify(...o)}scheduleRenderMicrotask(){la.render(this.render)}};var Sn=class extends Ef{constructor(){super(...arguments),this.KeyframeResolver=nv}sortInstanceNodePosition(t,o){return t.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(t,o){let a=t.style;return a?a[o]:void 0}removeValueFromRenderState(t,{vars:o,style:a}){delete o[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;G2(t)&&(this.childSubscription=t.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}};s();var k0=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};s();s();s();function Pf({top:e,left:t,right:o,bottom:a}){return{x:{min:t,max:o},y:{min:e,max:a}}}function EE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function _E(e,t){if(!t)return e;let o=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:o.y,left:o.x,bottom:a.y,right:a.x}}s();s();function PE(e){return e===void 0||e===1}function vv({scale:e,scaleX:t,scaleY:o}){return!PE(e)||!PE(t)||!PE(o)}function M8(e){return vv(e)||CE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function CE(e){return bX(e.x)||bX(e.y)}function bX(e){return e&&e!=="0%"}function Cf(e,t,o){let a=e-o,i=t*a;return o+i}function yX(e,t,o,a,i){return i!==void 0&&(e=Cf(e,i,a)),Cf(e,o,a)+t}function AE(e,t=0,o=1,a,i){e.min=yX(e.min,t,o,a,i),e.max=yX(e.max,t,o,a,i)}function OE(e,{x:t,y:o}){AE(e.x,t.translate,t.scale,t.originPoint),AE(e.y,o.translate,o.scale,o.originPoint)}var kX=.999999999999,xX=1.0000000000001;function MX(e,t,o,a=!1){let i=o.length;if(!i)return;t.x=t.y=1;let r,n;for(let c=0;c<i;c++){r=o[c],n=r.projectionDelta;let{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(a&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(he(e.x,-r.scroll.offset.x),he(e.y,-r.scroll.offset.y)),n&&(t.x*=n.x.scale,t.y*=n.y.scale,OE(e,n)),a&&M8(r.latestValues)&&Af(e,r.latestValues,r.layout?.layoutBox))}t.x<xX&&t.x>kX&&(t.x=1),t.y<xX&&t.y>kX&&(t.y=1)}function he(e,t){e.min+=t,e.max+=t}function zX(e,t,o,a,i=.5){let r=v2(e.min,e.max,i);AE(e,t,o,r,a)}function wX(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Af(e,t,o){let a=o??e;zX(e.x,wX(t.x,a.x),t.scaleX,t.scale,t.originX),zX(e.y,wX(t.y,a.y),t.scaleY,t.scale,t.originY)}function bv(e,t){return Pf(_E(e.getBoundingClientRect(),t))}function $E(e,t,o){let a=bv(e,o),{scroll:i}=t;return i&&(he(a.x,i.offset.x),he(a.y,i.offset.y)),a}s();s();var Zz1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jz1=n7.length;function SX(e,t,o){let a="",i=!0;for(let n=0;n<Jz1;n++){let c=n7[n],l=e[c];if(l===void 0)continue;let f=!0;if(typeof l=="number")f=l===(c.startsWith("scale")?1:0);else{let m=parseFloat(l);f=c.startsWith("scale")?m===1:m===0}if(!f||o){let m=Mf(l,na[c]);if(!f){i=!1;let d=Zz1[c]||c;a+=`${d}(${m}) `}o&&(t[c]=m)}}let r=e.pathRotation;return r&&(i=!1,a+=`rotate(${Mf(r,na.pathRotation)}) `),a=a.trim(),o?a=o(t,i?"":a):i&&(a="none"),a}function ma(e,t,o){let{style:a,vars:i,transformOrigin:r}=e,n=!1,c=!1;for(let l in t){let f=t[l];if(ue.has(l)){n=!0;continue}else if(Og(l)){i[l]=f;continue}else{let m=Mf(f,na[l]);l.startsWith("origin")?(c=!0,r[l]=m):a[l]=m}}if(t.transform||(n||o?a.transform=SX(t,e.transform,o):a.transform&&(a.transform="none")),c){let{originX:l="50%",originY:f="50%",originZ:m=0}=r;a.transformOrigin=`${l} ${f} ${m}`}}s();function yv(e,{style:t,vars:o},a,i){let r=e.style,n;for(n in t)r[n]=t[n];i?.applyProjectionStyles(r,a);for(n in o)r.setProperty(n,o[n])}s();s();s();s();function TX(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Tn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D1.test(e))e=parseFloat(e);else return e;let o=TX(e,t.target.x),a=TX(e,t.target.y);return`${o}% ${a}%`}};s();var RX={correct:(e,{treeScale:t,projectionDelta:o})=>{let a=e,i=y0.parse(e);if(i.length>5)return a;let r=y0.createTransformer(e),n=typeof i[0]!="number"?1:0,c=o.x.scale*t.x,l=o.y.scale*t.y;i[0+n]/=c,i[1+n]/=l;let f=v2(c,l,.5);return typeof i[2+n]=="number"&&(i[2+n]/=f),typeof i[3+n]=="number"&&(i[3+n]/=f),r(i)}};var Of={borderRadius:{...Tn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tn,borderTopRightRadius:Tn,borderBottomLeftRadius:Tn,borderBottomRightRadius:Tn,boxShadow:RX};function $f(e,{layout:t,layoutId:o}){return ue.has(e)||e.startsWith("origin")||(t||o!==void 0)&&(!!Of[e]||e==="opacity")}function da(e,t,o){let a=e.style,i=t?.style,r={};if(!a)return r;for(let n in a)(G2(a[n])||i&&G2(i[n])||$f(n,e)||o?.getValue(n)?.liveStyle!==void 0)&&(r[n]=a[n]);return r}function Xz1(e){return window.getComputedStyle(e)}var If=class extends Sn{constructor(){super(...arguments),this.type="html",this.renderInstance=yv}readValueFromInstance(t,o){if(ue.has(o))return this.projection?.isProjecting?Vg(o):CJ(t,o);{let a=Xz1(t),i=(Og(o)?a.getPropertyValue(o):a[o])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:o}){return bv(t,o)}build(t,o,a){ma(t,o,a.transformTemplate)}scrapeMotionValuesFromProps(t,o,a){return da(t,o,a)}};s();s();s();var Yz1={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qz1={offset:"strokeDashoffset",array:"strokeDasharray"};function EX(e,t,o=1,a=0,i=!0){e.pathLength=1;let r=i?Yz1:Qz1;e[r.offset]=`${-a}`,e[r.array]=`${t} ${o}`}var ew1=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Df(e,{attrX:t,attrY:o,attrScale:a,pathLength:i,pathSpacing:r=1,pathOffset:n=0,...c},l,f,m){if(ma(e,c,f),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:u}=e;d.transform&&(u.transform=d.transform,delete d.transform),(u.transform||d.transformOrigin)&&(u.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),u.transform&&(u.transformBox=m?.transformBox??"fill-box",delete d.transformBox);for(let p of ew1)d[p]!==void 0&&(u[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),o!==void 0&&(d.y=o),a!==void 0&&(d.scale=a),i!==void 0&&EX(d,i,r,n,!1)}s();var kv=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);s();var Nf=e=>typeof e=="string"&&e.toLowerCase()==="svg";s();function _X(e,t,o,a){yv(e,t,void 0,a);for(let i in t.attrs)e.setAttribute(kv.has(i)?i:xn(i),t.attrs[i])}s();function Lf(e,t,o){let a=da(e,t,o);for(let i in e)if(G2(e[i])||G2(t[i])){let r=n7.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;a[r]=e[i]}return a}var jf=class extends Sn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=y3}getBaseTargetFromProps(t,o){return t[o]}readValueFromInstance(t,o){if(ue.has(o)){let a=iv(o);return a&&a.default||0}return o=kv.has(o)?o:xn(o),t.getAttribute(o)}scrapeMotionValuesFromProps(t,o,a){return Lf(t,o,a)}build(t,o,a){Df(t,o,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,o,a,i){_X(t,o,a,i)}mount(t){this.isSVGTag=Nf(t.tagName),super.mount(t)}};s();s();var tw1=Sf.length;function IE(e){if(!e)return;if(!e.isControllingVariants){let o=e.parent?IE(e.parent)||{}:{};return e.props.initial!==void 0&&(o.initial=e.props.initial),o}let t={};for(let o=0;o<tw1;o++){let a=Sf[o],i=e.props[a];(c7(i)||i===!1)&&(t[a]=i)}return t}s();function DE(e,t){if(!Array.isArray(t))return!1;let o=t.length;if(o!==e.length)return!1;for(let a=0;a<o;a++)if(t[a]!==e[a])return!1;return!0}var ow1=[...pv].reverse(),aw1=pv.length;function iw1(e){return t=>Promise.all(t.map(({animation:o,options:a})=>eX(e,o,a)))}function NE(e){let t=iw1(e),o=PX(),a=!0,i=!1,r=f=>(m,d)=>{let u=T5(e,d,f==="exit"?e.presenceContext?.custom:void 0);if(u){let{transition:p,transitionEnd:b,...g}=u;m={...m,...g,...b}}return m};function n(f){t=f(e)}function c(f){let{props:m}=e,d=IE(e.parent)||{},u=[],p=new Set,b={},g=1/0;for(let y=0;y<aw1;y++){let v=ow1[y],k=o[v],w=m[v]!==void 0?m[v]:d[v],T=c7(w),A=v===f?k.isActive:null;A===!1&&(g=y);let _=w===d[v]&&w!==m[v]&&T;if(_&&(a||i)&&e.manuallyAnimateOnMount&&(_=!1),k.protectedKeys={...b},!k.isActive&&A===null||!w&&!k.prevProp||w8(w)||typeof w=="boolean")continue;if(v==="exit"&&k.isActive&&A!==!0){k.prevResolvedValues&&(b={...b,...k.prevResolvedValues});continue}let z=CX(k.prevProp,w),M=z||v===f&&k.isActive&&!_&&T||y>g&&T,S=!1,N=Array.isArray(w)?w:[w],C=N.reduce(r(v),{});A===!1&&(C={});let{prevResolvedValues:R={}}=k,O={...R,...C},P=I=>{M=!0,p.has(I)&&(S=!0,p.delete(I)),k.needsAnimating[I]=!0;let $=e.getValue(I);$&&($.liveStyle=!1)};for(let I in O){let $=C[I],V=R[I];if(b.hasOwnProperty(I))continue;let K=!1;kf($)&&kf(V)?K=!DE($,V)||z:K=$!==V,K?$!=null?P(I):p.add(I):$!==void 0&&p.has(I)?P(I):k.protectedKeys[I]=!0}k.prevProp=w,k.prevResolvedValues=C,k.isActive&&(b={...b,...C}),(a||i)&&e.blockInitialAnimation&&(M=!1);let E=_&&z;M&&(!E||S)&&u.push(...N.map(I=>{let $={type:v};if(typeof I=="string"&&(a||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:V}=e,K=T5(V,I);if(V.enteringChildren&&K){let{delayChildren:X}=K.transition||{};$.delay=Xg(V.enteringChildren,e,X)}}return{animation:I,options:$}}))}if(p.size){let y={};if(typeof m.initial!="boolean"){let v=T5(e,Array.isArray(m.initial)?m.initial[0]:m.initial);v&&v.transition&&(y.transition=v.transition)}p.forEach(v=>{let k=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=k??null}),u.push({animation:y})}let x=!!u.length;return a&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(x=!1),a=!1,i=!1,x?t(u):Promise.resolve()}function l(f,m){if(o[f].isActive===m)return Promise.resolve();e.variantChildren?.forEach(u=>u.animationState?.setActive(f,m)),o[f].isActive=m;let d=c(f);for(let u in o)o[u].protectedKeys={};return d}return{animateChanges:c,setActive:l,setAnimateFunction:n,getState:()=>o,reset:()=>{o=PX(),i=!0}}}function CX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!DE(t,e):!1}function ua(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function PX(){return{animate:ua(!0),whileInView:ua(),whileHover:ua(),whileTap:ua(),whileDrag:ua(),whileFocus:ua(),exit:ua()}}s();function xv(e,t){e.min=t.min,e.max=t.max}function ge(e,t){xv(e.x,t.x),xv(e.y,t.y)}function LE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}s();var AX=1e-4,rw1=1-AX,nw1=1+AX,OX=.01,cw1=0-OX,lw1=0+OX;function f0(e){return e.max-e.min}function VE(e,t,o){return Math.abs(e-t)<=o}function jE(e,t,o,a=.5){e.origin=a,e.originPoint=v2(t.min,t.max,e.origin),e.scale=f0(o)/f0(t),e.translate=v2(o.min,o.max,e.origin)-e.originPoint,(e.scale>=rw1&&e.scale<=nw1||isNaN(e.scale))&&(e.scale=1),(e.translate>=cw1&&e.translate<=lw1||isNaN(e.translate))&&(e.translate=0)}function pa(e,t,o,a){jE(e.x,t.x,o.x,a?a.originX:void 0),jE(e.y,t.y,o.y,a?a.originY:void 0)}function FE(e,t,o,a=0){let i=a?v2(o.min,o.max,a):o.min;e.min=i+t.min,e.max=e.min+f0(t)}function UE(e,t,o,a){FE(e.x,t.x,o.x,a?.x),FE(e.y,t.y,o.y,a?.y)}function BE(e,t,o,a=0){let i=a?v2(o.min,o.max,a):o.min;e.min=t.min-i,e.max=e.min+f0(t)}function Rn(e,t,o,a){BE(e.x,t.x,o.x,a?.x),BE(e.y,t.y,o.y,a?.y)}s();function $X(e,t,o,a,i){return e-=t,e=Cf(e,1/o,a),i!==void 0&&(e=Cf(e,1/i,a)),e}function sw1(e,t=0,o=1,a=.5,i,r=e,n=e){if(f4.test(t)&&(t=parseFloat(t),t=v2(n.min,n.max,t/100)-n.min),typeof t!="number")return;let c=v2(r.min,r.max,a);e===r&&(c-=t),e.min=$X(e.min,t,o,c,i),e.max=$X(e.max,t,o,c,i)}function IX(e,t,[o,a,i],r,n){sw1(e,t[o],t[a],t[i],t.scale,r,n)}var fw1=["x","scaleX","originX"],mw1=["y","scaleY","originY"];function HE(e,t,o,a){IX(e.x,t,fw1,o?o.x:void 0,a?a.x:void 0),IX(e.y,t,mw1,o?o.y:void 0,a?a.y:void 0)}s();function DX(e){return e.translate===0&&e.scale===1}function GE(e){return DX(e.x)&&DX(e.y)}function NX(e,t){return e.min===t.min&&e.max===t.max}function jX(e,t){return NX(e.x,t.x)&&NX(e.y,t.y)}function LX(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function KE(e,t){return LX(e.x,t.x)&&LX(e.y,t.y)}function qE(e){return f0(e.x)/f0(e.y)}function WE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}s();function R5(e){return[e("x"),e("y")]}s();function FX(e,t,o){let a="",i=e.x.translate/t.x,r=e.y.translate/t.y,n=o?.z||0;if((i||r||n)&&(a=`translate3d(${i}px, ${r}px, ${n}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),o){let{transformPerspective:f,rotate:m,pathRotation:d,rotateX:u,rotateY:p,skewX:b,skewY:g}=o;f&&(a=`perspective(${f}px) ${a}`),m&&(a+=`rotate(${m}deg) `),d&&(a+=`rotate(${d}deg) `),u&&(a+=`rotateX(${u}deg) `),p&&(a+=`rotateY(${p}deg) `),b&&(a+=`skewX(${b}deg) `),g&&(a+=`skewY(${g}deg) `)}let c=e.x.scale*t.x,l=e.y.scale*t.y;return(c!==1||l!==1)&&(a+=`scale(${c}, ${l})`),a||"none"}s();var HX=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],dw1=HX.length,BX=e=>typeof e=="string"?parseFloat(e):e,VX=e=>typeof e=="number"||D1.test(e);function GX(e,t,o,a,i,r){i?(e.opacity=v2(0,o.opacity??1,uw1(a)),e.opacityExit=v2(t.opacity??1,0,pw1(a))):r&&(e.opacity=v2(t.opacity??1,o.opacity??1,a));for(let n=0;n<dw1;n++){let c=HX[n],l=UX(t,c),f=UX(o,c);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||VX(l)===VX(f)?(e[c]=Math.max(v2(BX(l),BX(f),a),0),(f4.test(f)||f4.test(l))&&(e[c]+="%")):e[c]=f}(t.rotate||o.rotate)&&(e.rotate=v2(t.rotate||0,o.rotate||0,a))}function UX(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var uw1=KX(0,.5,sf),pw1=KX(.5,.95,S3);function KX(e,t,o){return a=>a<e?0:a>t?1:o(a7(e,t,a))}s();function qX(e,t,o){let a=G2(e)?e:Ze(e);return a.start(ia("",a,t,o)),a.animation}s();function l7(e,t,o,a={passive:!0}){return e.addEventListener(t,o,a),()=>e.removeEventListener(t,o,a)}s();var WX=(e,t)=>e.depth-t.depth;s();var zv=class{constructor(){this.children=[],this.isDirty=!1}add(t){Qo(this.children,t),this.isDirty=!0}remove(t){Jt(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(WX),this.isDirty=!1,this.children.forEach(t)}};s();function ZX(e,t){let o=T3.now(),a=({timestamp:i})=>{let r=i-o;r>=t&&(J4(a),e(r-t))};return d2.setup(a,!0),()=>J4(a)}s();function ha(e){return G2(e)?e.get():e}s();s();var wv=class{constructor(){this.members=[]}add(t){Qo(this.members,t);for(let o=this.members.length-1;o>=0;o--){let a=this.members[o];if(a===t||a===this.lead||a===this.prevLead)continue;let i=a.instance;(!i||i.isConnected===!1)&&!a.snapshot&&(Jt(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(Jt(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(t){for(let o=this.members.indexOf(t)-1;o>=0;o--){let a=this.members[o];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,o){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:i}=a.options,{layoutDependency:r}=t.options;(i===void 0||i!==r)&&(t.resumeFrom=a,o&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};s();var ga={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var va={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ZE=["","X","Y","Z"],hw1=1e3,gw1=0;function JE(e,t,o,a){let{latestValues:i}=t;i[e]&&(o[e]=i[e],t.setStaticValue(e,0),a&&(a[e]=0))}function iY(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let o=ev(t);if(window.MotionHasOptimisedAnimation(o,"transform")){let{layout:i,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(o,"transform",d2,!(i||r))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&iY(a)}function Mv({attachResizeListener:e,defaultParent:t,measureScroll:o,checkIsScrollRoot:a,resetTransform:i}){return class{constructor(n={},c=t?.()){this.id=gw1++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fa.value&&(va.nodes=va.calculatedTargetDeltas=va.calculatedProjections=0),this.nodes.forEach(yw1),this.nodes.forEach(Sw1),this.nodes.forEach(Tw1),this.nodes.forEach(kw1),fa.addProjectionMetrics&&fa.addProjectionMetrics(va)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zv)}addEventListener(n,c){return this.eventHandlers.has(n)||this.eventHandlers.set(n,new y8),this.eventHandlers.get(n).add(c)}notifyListeners(n,...c){let l=this.eventHandlers.get(n);l&&l.notify(...c)}hasListeners(n){return this.eventHandlers.has(n)}mount(n){if(this.instance)return;this.isSVG=wn(n)&&!dX(n),this.instance=n;let{layoutId:c,layout:l,visualElement:f}=this.options;if(f&&!f.current&&f.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||c)&&(this.isLayoutDirty=!0),e){let m,d=0,u=()=>this.root.updateBlockedByResize=!1;d2.read(()=>{d=window.innerWidth}),e(n,()=>{let p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,m&&m(),m=ZX(u,250),ga.hasAnimatedSinceResize&&(ga.hasAnimatedSinceResize=!1,this.nodes.forEach(YX)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||l)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:d,hasRelativeLayoutChanged:u,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let b=this.options.transition||f.getDefaultTransition()||Cw1,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!KE(this.targetLayout,p),v=!d&&u;if(this.options.layoutRoot||this.resumeFrom||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let k={...yn(b,"layout"),onPlay:g,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(m,v,k.path)}else d||YX(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),J4(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Rw1),this.animationId++)}getTransformTemplate(){let{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&iY(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){let d=this.path[m];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:c,layout:l}=this.options;if(c===void 0&&!l)return;let f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),n&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(zw1),this.nodes.forEach(JX);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(XX);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ww1),this.nodes.forEach(Mw1),this.nodes.forEach(vw1),this.nodes.forEach(bw1)):this.nodes.forEach(XX),this.clearAllSnapshots();let c=T3.now();D3.delta=b0(0,1e3/60,c-D3.timestamp),D3.timestamp=c,D3.isProcessing=!0,pf.update.process(D3),pf.preRender.process(D3),pf.render.process(D3),D3.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,la.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xw1),this.sharedNodes.forEach(Ew1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,d2.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){d2.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!f0(this.snapshot.measuredBox.x)&&!f0(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let n=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=y3()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,n?n.layoutBox:void 0)}updateScroll(n="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===n&&(c=!1),c&&this.instance){let l=a(this.instance);this.scroll={animationId:this.root.animationId,phase:n,isRoot:l,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;let n=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!GE(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;n&&this.instance&&(c||M8(this.latestValues)||m)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(n=!0){let c=this.measurePageBox(),l=this.removeElementScroll(c);return n&&(l=this.removeTransform(l)),Aw1(l),{animationId:this.root.animationId,measuredBox:c,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:n}=this.options;if(!n)return y3();let c=n.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ow1))){let{scroll:f}=this.root;f&&(he(c.x,f.offset.x),he(c.y,f.offset.y))}return c}removeElementScroll(n){let c=y3();if(ge(c,n),this.scroll?.wasRoot)return c;for(let l=0;l<this.path.length;l++){let f=this.path[l],{scroll:m,options:d}=f;f!==this.root&&m&&d.layoutScroll&&(m.wasRoot&&ge(c,n),he(c.x,m.offset.x),he(c.y,m.offset.y))}return c}applyTransform(n,c=!1,l){let f=l||y3();ge(f,n);for(let m=0;m<this.path.length;m++){let d=this.path[m];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(he(f.x,-d.scroll.offset.x),he(f.y,-d.scroll.offset.y)),M8(d.latestValues)&&Af(f,d.latestValues,d.layout?.layoutBox)}return M8(this.latestValues)&&Af(f,this.latestValues,this.layout?.layoutBox),f}removeTransform(n){let c=y3();ge(c,n);for(let l=0;l<this.path.length;l++){let f=this.path[l];if(!M8(f.latestValues))continue;let m;f.instance&&(vv(f.latestValues)&&f.updateSnapshot(),m=y3(),ge(m,f.measurePageBox())),HE(c,f.latestValues,f.snapshot?.layoutBox,m)}return M8(this.latestValues)&&HE(c,this.latestValues),c}setTargetDelta(n){this.targetDelta=n,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(n){this.options={...this.options,...n,crossfade:n.crossfade!==void 0?n.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==D3.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(n=!1){let c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);let l=!!this.resumingFrom||this!==c;if(!(n||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:m,layoutId:d}=this.options;if(!this.layout||!(m||d))return;this.resolvedRelativeTargetAt=D3.timestamp;let u=this.getClosestProjectingParent();u&&this.linkedParentVersion!==u.layoutVersion&&!u.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&u&&u.layout?this.createRelativeTarget(u,this.layout.layoutBox,u.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=y3(),this.targetWithTransforms=y3()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),UE(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):ge(this.target,this.layout.layoutBox),OE(this.target,this.targetDelta)):ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&u&&!!u.resumingFrom==!!this.resumingFrom&&!u.options.layoutScroll&&u.target&&this.animationProgress!==1?this.createRelativeTarget(u,this.target,u.target):this.relativeParent=this.relativeTarget=void 0),fa.value&&va.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||vv(this.parent.latestValues)||CE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(n,c,l){this.relativeParent=n,this.linkedParentVersion=n.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=y3(),this.relativeTargetOrigin=y3(),Rn(this.relativeTargetOrigin,c,l,this.options.layoutAnchor||void 0),ge(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let n=this.getLead(),c=!!this.resumingFrom||this!==n,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===D3.timestamp&&(l=!1),l)return;let{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;ge(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,u=this.treeScale.y;MX(this.layoutCorrected,this.treeScale,this.path,c),n.layout&&!n.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(n.target=n.layout.layoutBox,n.targetWithTransforms=y3());let{target:p}=n;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(LE(this.prevProjectionDelta.x,this.projectionDelta.x),LE(this.prevProjectionDelta.y,this.projectionDelta.y)),pa(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==u||!WE(this.projectionDelta.x,this.prevProjectionDelta.x)||!WE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),fa.value&&va.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(n=!0){if(this.options.visualElement?.scheduleRender(),n){let c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=i9(),this.projectionDelta=i9(),this.projectionDeltaWithTransform=i9()}setAnimationOrigin(n,c=!1,l){let f=this.snapshot,m=f?f.latestValues:{},d={...this.latestValues},u=i9();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;let p=y3(),b=f?f.source:void 0,g=this.layout?this.layout.source:void 0,x=b!==g,y=this.getStack(),v=!y||y.members.length<=1,k=!!(x&&!v&&this.options.crossfade===!0&&!this.path.some(Pw1));this.animationProgress=0;let w,T=l?.interpolateProjection(n);this.mixTargetDelta=A=>{let _=A/1e3,z=T?.(_);z?(u.x.translate=z.x,u.x.scale=v2(n.x.scale,1,_),u.x.origin=n.x.origin,u.x.originPoint=n.x.originPoint,u.y.translate=z.y,u.y.scale=v2(n.y.scale,1,_),u.y.origin=n.y.origin,u.y.originPoint=n.y.originPoint):(QX(u.x,n.x,_),QX(u.y,n.y,_)),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Rn(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_w1(this.relativeTarget,this.relativeTargetOrigin,p,_),w&&jX(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=y3()),ge(w,this.relativeTarget)),x&&(this.animationValues=d,GX(d,m,this.latestValues,_,k,v)),z&&z.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=z.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(J4(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=d2.update(()=>{ga.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ze(0)),this.motionValue.jump(0,!1),this.currentAnimation=qX(this.motionValue,[0,1e3],{...n,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),n.onUpdate&&n.onUpdate(c)},onComplete:()=>{n.onComplete&&n.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hw1),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let n=this.getLead(),{targetWithTransforms:c,target:l,layout:f,latestValues:m}=n;if(!(!c||!l||!f)){if(this!==n&&this.layout&&f&&rY(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||y3();let d=f0(this.layout.layoutBox.x);l.x.min=n.target.x.min,l.x.max=l.x.min+d;let u=f0(this.layout.layoutBox.y);l.y.min=n.target.y.min,l.y.max=l.y.min+u}ge(c,l),Af(c,m),pa(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(n,c){this.sharedNodes.has(n)||this.sharedNodes.set(n,new wv),this.sharedNodes.get(n).add(c);let f=c.options.initialPromotionConfig;c.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(c):void 0})}isLead(){let n=this.getStack();return n?n.lead===this:!0}getLead(){let{layoutId:n}=this.options;return n?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:n}=this.options;return n?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:c,preserveFollowOpacity:l}={}){let f=this.getStack();f&&f.promote(this,l),n&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){let n=this.getStack();return n?n.relegate(this):!1}resetSkewAndRotation(){let{visualElement:n}=this.options;if(!n)return;let c=!1,{latestValues:l}=n;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(c=!0),!c)return;let f={};l.z&&JE("z",n,f,this.animationValues);for(let m=0;m<ZE.length;m++)JE(`rotate${ZE[m]}`,n,f,this.animationValues),JE(`skew${ZE[m]}`,n,f,this.animationValues);n.render();for(let m in f)n.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);n.scheduleRender()}applyProjectionStyles(n,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){n.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,n.visibility="",n.opacity="",n.pointerEvents=ha(c?.pointerEvents)||"",n.transform=l?l(this.latestValues,""):"none";return}let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){this.options.layoutId&&(n.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,n.pointerEvents=ha(c?.pointerEvents)||""),this.hasProjected&&!M8(this.latestValues)&&(n.transform=l?l({},""):"none",this.hasProjected=!1);return}n.visibility="";let m=f.animationValues||f.latestValues;this.applyTransformsToTarget();let d=FX(this.projectionDeltaWithTransform,this.treeScale,m);l&&(d=l(m,d)),n.transform=d;let{x:u,y:p}=this.projectionDelta;n.transformOrigin=`${u.origin*100}% ${p.origin*100}% 0`,f.animationValues?n.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:n.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let b in Of){if(m[b]===void 0)continue;let{correct:g,applyTo:x,isCSSVariable:y}=Of[b],v=d==="none"?m[b]:g(m[b],f);if(x){let k=x.length;for(let w=0;w<k;w++)n[x[w]]=v}else y?this.options.visualElement.renderState.vars[b]=v:n[b]=v}this.options.layoutId&&(n.pointerEvents=f===this?ha(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(n=>n.currentAnimation?.stop()),this.root.nodes.forEach(JX),this.root.sharedNodes.clear()}}}function vw1(e){e.updateLayout()}function bw1(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:o,measuredBox:a}=e.layout,{animationType:i}=e.options,r=t.source!==e.layout.source;if(i==="size")R5(m=>{let d=r?t.measuredBox[m]:t.layoutBox[m],u=f0(d);d.min=o[m].min,d.max=d.min+u});else if(i==="x"||i==="y"){let m=i==="x"?"y":"x";xv(r?t.measuredBox[m]:t.layoutBox[m],o[m])}else rY(i,t.layoutBox,o)&&R5(m=>{let d=r?t.measuredBox[m]:t.layoutBox[m],u=f0(o[m]);d.max=d.min+u,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+u)});let n=i9();pa(n,o,t.layoutBox);let c=i9();r?pa(c,e.applyTransform(a,!0),t.measuredBox):pa(c,o,t.layoutBox);let l=!GE(n),f=!1;if(!e.resumeFrom){let m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){let{snapshot:d,layout:u}=m;if(d&&u){let p=e.options.layoutAnchor||void 0,b=y3();Rn(b,t.layoutBox,d.layoutBox,p);let g=y3();Rn(g,o,u.layoutBox,p),KE(b,g)||(f=!0),m.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=b,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:c,layoutDelta:n,hasLayoutChanged:l,hasRelativeLayoutChanged:f})}else if(e.isLead()){let{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function yw1(e){fa.value&&va.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kw1(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xw1(e){e.clearSnapshot()}function JX(e){e.clearMeasurements()}function zw1(e){e.isLayoutDirty=!0,e.updateLayout()}function XX(e){e.isLayoutDirty=!1}function ww1(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Mw1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function YX(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Sw1(e){e.resolveTargetDelta()}function Tw1(e){e.calcProjection()}function Rw1(e){e.resetSkewAndRotation()}function Ew1(e){e.removeLeadSnapshot()}function QX(e,t,o){e.translate=v2(t.translate,0,o),e.scale=v2(t.scale,1,o),e.origin=t.origin,e.originPoint=t.originPoint}function eY(e,t,o,a){e.min=v2(t.min,o.min,a),e.max=v2(t.max,o.max,a)}function _w1(e,t,o,a){eY(e.x,t.x,o.x,a),eY(e.y,t.y,o.y,a)}function Pw1(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Cw1={duration:.45,ease:[.4,0,.1,1]},tY=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),oY=tY("applewebkit/")&&!tY("chrome/")?Math.round:S3;function aY(e){e.min=oY(e.min),e.max=oY(e.max)}function Aw1(e){aY(e.x),aY(e.y)}function rY(e,t,o){return e==="position"||e==="preserve-aspect"&&!VE(qE(t),qE(o),.2)}function Ow1(e){return e!==e.root&&e.scroll?.wasRoot}s();var nY=Mv({attachResizeListener:(e,t)=>l7(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});s();var Sv={current:void 0},Ff=Mv({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Sv.current){let e=new nY({});e.mount(window),e.setOptions({layoutScroll:!0}),Sv.current=e}return Sv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Tv=L(H(),1),S8=L(H(),1);s();var cY=L(H(),1),En=(0,cY.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});s();var sY=L(H(),1);function lY(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $w1(...e){return t=>{let o=!1,a=e.map(i=>{let r=lY(i,t);return!o&&typeof r=="function"&&(o=!0),r});if(o)return()=>{for(let i=0;i<a.length;i++){let r=a[i];typeof r=="function"?r():lY(e[i],null)}}}}function fY(...e){return sY.useCallback($w1(...e),e)}var XE=class extends Tv.Component{getSnapshotBeforeUpdate(t){let o=this.props.childRef.current;if(ca(o)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=o.offsetParent,i=ca(a)&&a.offsetWidth||0,r=ca(a)&&a.offsetHeight||0,n=getComputedStyle(o),c=this.props.sizeRef.current;c.height=parseFloat(n.height),c.width=parseFloat(n.width),c.top=o.offsetTop,c.left=o.offsetLeft,c.right=i-c.width-c.left,c.bottom=r-c.height-c.top,c.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function dY({children:e,isPresent:t,anchorX:o,anchorY:a,root:i,pop:r}){let n=(0,S8.useId)(),c=(0,S8.useRef)(null),l=(0,S8.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:f}=(0,S8.useContext)(En),m=e.props?.ref??e?.ref,d=fY(c,m);return(0,S8.useInsertionEffect)(()=>{let{width:u,height:p,top:b,left:g,right:x,bottom:y,direction:v}=l.current;if(t||r===!1||!c.current||!u||!p)return;let k=v==="rtl",w=o==="left"?k?`right: ${x}`:`left: ${g}`:k?`left: ${g}`:`right: ${x}`,T=a==="bottom"?`bottom: ${y}`:`top: ${b}`;c.current.dataset.motionPopId=n;let A=document.createElement("style");f&&(A.nonce=f);let _=i??document.head;return _.appendChild(A),A.sheet&&A.sheet.insertRule(`
429
429
  [data-motion-pop-id="${n}"] {
430
430
  position: absolute !important;
@@ -514,7 +514,7 @@ try {
514
514
  transform: translateX(var(--Snackbar-translateX, 0px)) translateY(calc(var(--_Snackbar-anchorBottom, 1) * 100%));
515
515
  opacity: 0;
516
516
  }
517
- `)),SE1=b1("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c,l;let{p:f,padding:m,borderRadius:d}=ke({theme:e,ownerState:t},["p","padding","borderRadius"]);return[F({"--Snackbar-radius":e.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},t.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.5rem"},t.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.625rem"},t.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":e.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:e.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((o=t.anchorOrigin)==null?void 0:o.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((a=t.anchorOrigin)==null?void 0:a.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((i=t.anchorOrigin)==null?void 0:i.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((r=t.anchorOrigin)==null?void 0:r.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((n=t.anchorOrigin)==null?void 0:n.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((c=t.anchorOrigin)==null?void 0:c.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${wE1} ${t.animationDuration}ms forwards`},!t.open&&{animationName:ME1},{boxShadow:e.vars.shadow.lg,backgroundColor:e.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],t.variant==="solid"&&t.color&&t.invertedColors&&Ea(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&_a(t.color)(e),(l=e.variants[t.variant])==null?void 0:l[t.color]),f!==void 0&&{"--Snackbar-padding":f},m!==void 0&&{"--Snackbar-padding":m},d!==void 0&&{"--Snackbar-radius":d}]}),TE1=b1("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inherit",flex:"none"}),RE1=b1("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),EE1={vertical:"bottom",horizontal:"right"},_E1=O8.forwardRef(function(t,o){let a=W1({props:t,name:"JoySnackbar"}),{anchorOrigin:i=EE1,animationDuration:r=300,autoHideDuration:n=null,color:c="neutral",children:l,className:f,component:m,disableWindowBlurListener:d=!1,endDecorator:u,invertedColors:p=!1,onUnmount:b,open:g,size:x="md",slots:y={},slotProps:v,startDecorator:k,variant:w="outlined"}=a,T=I1(a,xE1),[A,_]=O8.useState(!0),[z,M]=O8.useState(!1),S=O8.useRef(b);S.current=b,O8.useEffect(()=>{if(g)M(!1),_(!1);else{M(!0);let Y=setTimeout(()=>{var q;_(!0),M(!1),(q=S.current)==null||q.call(S)},r);return()=>{clearTimeout(Y)}}},[g,r]);let N=F({},a,{anchorOrigin:i,autoHideDuration:n,color:c,animationDuration:r,disableWindowBlurListener:d,invertedColors:p,size:x,variant:w});delete N.onUnmount;let C=zE1(N),{getRootProps:R,onClickAway:O}=nS(N),P=Y=>{z||O(Y)},E=F({},T,{component:m,slots:y,slotProps:v}),[D,I]=P1("root",{ref:o,className:s2(C.root,f),elementType:SE1,externalForwardedProps:E,getSlotProps:R,ownerState:N}),[$,V]=P1("startDecorator",{className:C.startDecorator,elementType:TE1,externalForwardedProps:E,ownerState:N}),[K,X]=P1("endDecorator",{className:C.endDecorator,elementType:RE1,externalForwardedProps:E,ownerState:N}),e1=y.clickAway||HU;return!g&&A?null:(0,Ib.jsx)(e1,F({onClickAway:P},typeof v?.clickAway=="function"?v.clickAway(N):v?.clickAway,{children:(0,Q31.jsxs)(D,F({},I,{children:[k&&(0,Ib.jsx)($,F({},V,{children:k})),l,u&&(0,Ib.jsx)(K,F({},X,{children:u}))]}))}))}),cm=_E1;s();s();var PE1=xp({createStyledComponent:b1("div",{name:"JoyStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>W1({props:e,name:"JoyStack"})}),u2=PE1;s();s();R2();X1();var aP=L(H());g2();s();function e01(e){return J1("MuiTextarea",e)}var CE1=q1("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]),oP=CE1;var Db=L(f1()),t01=L(f1()),AE1=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],OE1=e=>{let{disabled:t,variant:o,color:a,size:i}=e,r={root:["root",t&&"disabled",o&&`variant${C1(o)}`,a&&`color${C1(a)}`,i&&`size${C1(i)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return U1(r,e01,{})},$E1=b1("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c;let l=(o=e.variants[`${t.variant}`])==null?void 0:o[t.color];return[F({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":e.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness,"--Textarea-focusedHighlight":(a=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:a[500],'&:not([data-inverted-colors="false"])':F({},t.instanceColor&&{"--_Textarea-focusedHighlight":(i=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:i[500]},{"--Textarea-focusedHighlight":`var(--_Textarea-focusedHighlight, ${e.vars.palette.focusVisible})`})},t.size==="sm"&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.375rem - 0.5px - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},t.size==="md"&&{"--Textarea-minHeight":"2.25rem","--Textarea-paddingBlock":"calc(0.375rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(1.75rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},e.typography[`body-${t.size}`],l,{backgroundColor:(r=l?.backgroundColor)!=null?r:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":F({},(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color],{backgroundColor:null,cursor:"text"}),[`&.${oP.disabled}`]:(c=e.variants[`${t.variant}Disabled`])==null?void 0:c[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),IE1=b1(lS,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),DE1=b1("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),NE1=b1("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),LE1=aP.forwardRef(function(t,o){var a,i,r,n,c,l,f,m;let d=W1({props:t,name:"JoyTextarea"}),u=tm(d,oP),{propsToForward:p,rootStateClasses:b,inputStateClasses:g,getRootProps:x,getInputProps:y,formControl:v,focused:k,error:w=!1,disabled:T=!1,size:A="md",color:_="neutral",variant:z="outlined",startDecorator:M,endDecorator:S,minRows:N,maxRows:C,component:R,slots:O={},slotProps:P={}}=u,E=I1(u,AE1),D=(a=(i=t.disabled)!=null?i:v?.disabled)!=null?a:T,I=(r=(n=t.error)!=null?n:v?.error)!=null?r:w,$=(c=(l=t.size)!=null?l:v?.size)!=null?c:A,V=(f=t.color)!=null?f:I?"danger":(m=v?.color)!=null?m:_,K=F({instanceColor:I?"danger":t.color},d,{color:V,disabled:D,error:I,focused:k,size:$,variant:z}),X=OE1(K),e1=F({},E,{component:R,slots:O,slotProps:P}),[Y,q]=P1("root",{ref:o,className:[X.root,b],elementType:$E1,externalForwardedProps:e1,getSlotProps:x,ownerState:K}),[o1,W]=P1("textarea",{additionalProps:{id:v?.htmlFor,"aria-describedby":v?.["aria-describedby"]},className:[X.textarea,g],elementType:IE1,internalForwardedProps:F({},p,{minRows:N,maxRows:C}),externalForwardedProps:e1,getSlotProps:y,ownerState:K}),[Z,r1]=P1("startDecorator",{className:X.startDecorator,elementType:DE1,externalForwardedProps:e1,ownerState:K}),[x1,h1]=P1("endDecorator",{className:X.endDecorator,elementType:NE1,externalForwardedProps:e1,ownerState:K});return(0,t01.jsxs)(Y,F({},q,{children:[M&&(0,Db.jsx)(Z,F({},r1,{children:M})),(0,Db.jsx)(o1,F({},W)),S&&(0,Db.jsx)(x1,F({},h1,{children:S}))]}))}),Nb=LE1;s();s();R2();X1();var J3=L(H());A3();g2();s();function o01(e){return J1("MuiTooltip",e)}var XB2=q1("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var n01=L(f1()),iP=L(f1()),jE1=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],FE1=e=>{let{arrow:t,variant:o,color:a,size:i,placement:r,touch:n}=e,c={root:["root",t&&"tooltipArrow",n&&"touch",i&&`size${C1(i)}`,a&&`color${C1(a)}`,o&&`variant${C1(o)}`,`tooltipPlacement${C1(r.split("-")[0])}`],arrow:["arrow"]};return U1(c,o01,{})},BE1=b1("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var o,a,i;let r=(o=t.variants[e.variant])==null?void 0:o[e.color];return F({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],r,!r.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(a=e.placement)!=null&&a.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=e.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),VE1=b1("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var o,a,i;let r=(o=e.variants[t.variant])==null?void 0:o[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(a=r?.backgroundColor)!=null?a:e.vars.palette.background.surface,borderRightColor:(i=r?.backgroundColor)!=null?i:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${r.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),Lb=!1,a01=new V7,lm={x:0,y:0};function i01(e,t){return o=>{t&&t(o),e(o)}}function r01(e,t){return(o,...a)=>{t&&t(o,...a),e(o,...a)}}var UE1=J3.forwardRef(function(t,o){var a;let i=W1({props:t,name:"JoyTooltip"}),{children:r,className:n,component:c,arrow:l=!1,describeChild:f=!1,disableFocusListener:m=!1,disableHoverListener:d=!1,disableInteractive:u=!1,disableTouchListener:p=!1,enterDelay:b=100,enterNextDelay:g=0,enterTouchDelay:x=700,followCursor:y=!1,id:v,leaveDelay:k=0,leaveTouchDelay:w=1500,onClose:T,onOpen:A,open:_,disablePortal:z,direction:M,keepMounted:S,modifiers:N,placement:C="bottom",title:R,color:O="neutral",variant:P="solid",size:E="md",slots:D={},slotProps:I={}}=i,$=I1(i,jE1),[V,K]=J3.useState(),[X,e1]=J3.useState(null),Y=J3.useRef(!1),q=u||y,o1=G6(),W=G6(),Z=G6(),r1=G6(),[x1,h1]=B7({controlled:_,default:!1,name:"Tooltip",state:"open"}),T1=x1,F1=B0(v),V1=J3.useRef(void 0),n1=i4(()=>{V1.current!==void 0&&(document.body.style.WebkitUserSelect=V1.current,V1.current=void 0),r1.clear()});J3.useEffect(()=>n1,[n1]);let R1=b2=>{a01.clear(),Lb=!0,h1(!0),A&&!T1&&A(b2)},M1=i4(b2=>{a01.start(800+k,()=>{Lb=!1}),h1(!1),T&&T1&&T(b2),o1.start(150,()=>{Y.current=!1})}),w1=b2=>{Y.current&&b2.type!=="touchstart"||(V&&V.removeAttribute("title"),W.clear(),Z.clear(),b||Lb&&g?W.start(Lb?g:b,()=>{R1(b2)}):R1(b2))},B1=b2=>{W.clear(),Z.start(k,()=>{M1(b2)})},{isFocusVisibleRef:A1,onBlur:Z1,onFocus:c2,ref:d1}=De(),[,H1]=J3.useState(!1),$1=b2=>{Z1(b2),A1.current===!1&&(H1(!1),B1(b2))},G1=b2=>{V||K(b2.currentTarget),c2(b2),A1.current===!0&&(H1(!0),w1(b2))},E1=b2=>{Y.current=!0;let y4=r.props;y4.onTouchStart&&y4.onTouchStart(b2)},i1=b2=>{E1(b2),Z.clear(),o1.clear(),n1(),V1.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",r1.start(x,()=>{document.body.style.WebkitUserSelect=V1.current,w1(b2)})},s1=b2=>{r.props.onTouchEnd&&r.props.onTouchEnd(b2),n1(),Z.start(w,()=>{M1(b2)})};J3.useEffect(()=>{if(!T1)return;function b2(y4){(y4.key==="Escape"||y4.key==="Esc")&&M1(y4)}return document.addEventListener("keydown",b2),()=>{document.removeEventListener("keydown",b2)}},[M1,T1]);let j=Q1(K,o),U=Q1(d1,j),B=Q1(U7(r),U);typeof R!="number"&&!R&&(T1=!1);let G=J3.useRef(null),t1=b2=>{let y4=r.props;y4.onMouseMove&&y4.onMouseMove(b2),lm={x:b2.clientX,y:b2.clientY},G.current&&G.current.update()},p1={},g1=typeof R=="string";f?(p1.title=!T1&&g1&&!d?R:null,p1["aria-describedby"]=T1?F1:null):(p1["aria-label"]=g1?R:null,p1["aria-labelledby"]=T1&&!g1?F1:null);let k1=F({},p1,$,{component:c},r.props,{className:s2(n,r.props.className),onTouchStart:E1,ref:B},y?{onMouseMove:t1}:{}),N1={};p||(k1.onTouchStart=i1,k1.onTouchEnd=s1),d||(k1.onMouseOver=i01(w1,k1.onMouseOver),k1.onMouseLeave=i01(B1,k1.onMouseLeave),q||(N1.onMouseOver=w1,N1.onMouseLeave=B1)),m||(k1.onFocus=r01(G1,k1.onFocus),k1.onBlur=r01($1,k1.onBlur),q||(N1.onFocus=G1,N1.onBlur=$1));let w2=F({},i,{arrow:l,disableInteractive:q,placement:C,touch:Y.current,color:O,variant:P,size:E}),t0=FE1(w2),r5=F({},$,{component:c,slots:D,slotProps:I}),b4=J3.useMemo(()=>[{name:"arrow",enabled:!!X,options:{element:X,padding:6}},{name:"offset",options:{offset:[0,10]}},...N||[]],[X,N]),[Ce,to]=P1("root",{additionalProps:F({id:F1,popperRef:G,placement:C,anchorEl:y?{getBoundingClientRect:()=>({top:lm.y,left:lm.x,right:lm.x,bottom:lm.y,width:0,height:0})}:V,open:V?T1:!1,disablePortal:z,keepMounted:S,direction:M,modifiers:b4},N1),ref:null,className:t0.root,elementType:BE1,externalForwardedProps:r5,ownerState:w2}),[O7,C3]=P1("arrow",{ref:e1,className:t0.arrow,elementType:VE1,externalForwardedProps:r5,ownerState:w2});return(0,iP.jsxs)(J3.Fragment,{children:[J3.isValidElement(r)&&J3.cloneElement(r,k1),(0,iP.jsxs)(Ce,F({},to,!((a=i.slots)!=null&&a.root)&&{as:dr,slots:{root:c||"div"}},{children:[R,l?(0,n01.jsx)(O7,F({},C3)):null]}))]})}),Qe=UE1;s();s();s();var o2=e=>typeof e=="string",sm=()=>{let e,t,o=new Promise((a,i)=>{e=a,t=i});return o.resolve=e,o.reject=t,o},c01=e=>e==null?"":String(e),HE1=(e,t,o)=>{e.forEach(a=>{t[a]&&(o[a]=t[a])})},GE1=/###/g,l01=e=>e&&e.includes("###")?e.replace(GE1,"."):e,s01=e=>!e||o2(e),fm=(e,t,o)=>{let a=o2(t)?t.split("."):t,i=0;for(;i<a.length-1;){if(s01(e))return{};let r=l01(a[i]);!e[r]&&o&&(e[r]=new o),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return s01(e)?{}:{obj:e,k:l01(a[i])}},f01=(e,t,o)=>{let{obj:a,k:i}=fm(e,t,Object);if(a!==void 0||t.length===1){a[i]=o;return}let r=t[t.length-1],n=t.slice(0,t.length-1),c=fm(e,n,Object);for(;c.obj===void 0&&n.length;)r=`${n[n.length-1]}.${r}`,n=n.slice(0,n.length-1),c=fm(e,n,Object),c?.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=o},KE1=(e,t,o,a)=>{let{obj:i,k:r}=fm(e,t,Object);i[r]=i[r]||[],i[r].push(o)},Fb=(e,t)=>{let{obj:o,k:a}=fm(e,t);if(o&&Object.prototype.hasOwnProperty.call(o,a))return o[a]},qE1=(e,t,o)=>{let a=Fb(e,o);return a!==void 0?a:Fb(t,o)},g01=(e,t,o)=>{for(let a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?o2(e[a])||e[a]instanceof String||o2(t[a])||t[a]instanceof String?o&&(e[a]=t[a]):g01(e[a],t[a],o):e[a]=t[a]);return e},$8=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),WE1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},ZE1=e=>o2(e)?e.replace(/[&<>"'\/]/g,t=>WE1[t]):e,lP=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let o=this.regExpMap.get(t);if(o!==void 0)return o;let a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}},JE1=[" ",",","?","!",";"],XE1=new lP(20),YE1=(e,t,o)=>{t=t||"",o=o||"";let a=JE1.filter(n=>!t.includes(n)&&!o.includes(n));if(a.length===0)return!0;let i=XE1.getRegExp(`(${a.map(n=>n==="?"?"\\?":n).join("|")})`),r=!i.test(e);if(!r){let n=e.indexOf(o);n>0&&!i.test(e.substring(0,n))&&(r=!0)}return r},sP=(e,t,o=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let a=t.split(o),i=e;for(let r=0;r<a.length;){if(!i||typeof i!="object")return;let n,c="";for(let l=r;l<a.length;++l)if(l!==r&&(c+=o),c+=a[l],n=i[c],n!==void 0){if(["string","number","boolean"].includes(typeof n)&&l<a.length-1)continue;r+=l-r+1;break}i=n}return i},mm=e=>e?.replace(/_/g,"-"),QE1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},fP=class e{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||QE1,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,a,i){return i&&!this.debug?null:(t=t.map(r=>o2(r)?r.replace(/[\r\n\x00-\x1F\x7F]/g," "):r),o2(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},h7=new fP,Wn=class{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let i=this.observers[a].get(o)||0;this.observers[a].set(o,i+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}once(t,o){let a=(...i)=>{o(...i),this.off(t,a)};return this.on(t,a),this}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(t,...o)})}},Bb=class extends Wn{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,a,i={}){let r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,n=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.includes(".")?c=t.split("."):(c=[t,o],a&&(Array.isArray(a)?c.push(...a):o2(a)&&r?c.push(...a.split(r)):c.push(a)));let l=Fb(this.data,c);return!l&&!o&&!a&&t.includes(".")&&(t=c[0],o=c[1],a=c.slice(2).join(".")),l||!n||!o2(a)?l:sP(this.data?.[t]?.[o],a,r)}addResource(t,o,a,i,r={silent:!1}){let n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,c=[t,o];a&&(c=c.concat(n?a.split(n):a)),t.includes(".")&&(c=t.split("."),i=o,o=c[1]),this.addNamespaces(o),f01(this.data,c,i),r.silent||this.emit("added",t,o,a,i)}addResources(t,o,a,i={silent:!1}){for(let r in a)(o2(a[r])||Array.isArray(a[r]))&&this.addResource(t,o,r,a[r],{silent:!0});i.silent||this.emit("added",t,o,a)}addResourceBundle(t,o,a,i,r,n={silent:!1,skipCopy:!1}){let c=[t,o];t.includes(".")&&(c=t.split("."),i=a,a=o,o=c[1]),this.addNamespaces(o);let l=Fb(this.data,c)||{};n.skipCopy||(a=JSON.parse(JSON.stringify(a))),i?g01(l,a,r):l={...l,...a},f01(this.data,c,l),n.silent||this.emit("added",t,o,a)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(i=>o[i]&&Object.keys(o[i]).length>0)}toJSON(){return this.data}},v01={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,o,a,i){return e.forEach(r=>{t=this.processors[r]?.process(t,o,a,i)??t}),t}},b01=Symbol("i18next/PATH_KEY");function e_1(){let e=[],t=Object.create(null),o;return t.get=(a,i)=>(o?.revoke?.(),i===b01?e:(e.push(i),o=Proxy.revocable(a,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Ia(e,t){let{[b01]:o}=e(e_1()),a=t?.keySeparator??".",i=t?.nsSeparator??":",r=t?.enableSelector==="strict";if(o.length>1&&i){let n=t?.ns,c=r?Array.isArray(n)?n:n?[n]:null:Array.isArray(n)?n:null;if(c&&(r?c:c.length>1?c.slice(1):[]).includes(o[0]))return`${o[0]}${i}${o.slice(1).join(a)}`}return o.join(a)}var rP=e=>!o2(e)&&typeof e!="boolean"&&typeof e!="number",Vb=class e extends Wn{constructor(t,o={}){super(),HE1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=h7.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){let a={...o};if(t==null)return!1;let i=this.resolve(t,a);if(i?.res===void 0)return!1;let r=rP(i.res);return!(a.returnObjects===!1&&r)}extractFromKey(t,o){let a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,r=o.ns||this.options.defaultNS||[],n=a&&t.includes(a),c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!YE1(t,a,i);if(n&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o2(r)?[r]:r};let f=t.split(a);(a!==i||a===i&&this.options.ns.includes(f[0]))&&(r=f.shift()),t=f.join(i)}return{key:t,namespaces:o2(r)?[r]:r}}translate(t,o,a){let i=typeof o=="object"?{...o}:o;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=Ia(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(R=>typeof R=="function"?Ia(R,{...this.options,...i}):String(R));let r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,n=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],i),f=l[l.length-1],m=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");let d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return u?r?{res:`${f}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:`${f}${m}${c}`:r?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:c;let p=this.resolve(t,i),b=p?.res,g=p?.usedKey||c,x=p?.exactUsedKey||c,y=["[object Number]","[object Function]","[object RegExp]"],v=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,w=i.count!==void 0&&!o2(i.count),T=e.hasDefaultValue(i),A=w?this.pluralResolver.getSuffix(d,i.count,i):"",_=i.ordinal&&w?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",z=w&&!i.ordinal&&i.count===0,M=z&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${A}`]||i[`defaultValue${_}`]||i.defaultValue,S=b;k&&!b&&T&&(S=M);let N=rP(S),C=Object.prototype.toString.apply(S);if(k&&S&&N&&!y.includes(C)&&!(o2(v)&&Array.isArray(S))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,S,{...i,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return r?(p.res=R,p.usedParams=this.getUsedParamsDetails(i),p):R}if(n){let R=Array.isArray(S),O=R?[]:{},P=R?x:g;for(let E in S)if(Object.prototype.hasOwnProperty.call(S,E)){let D=`${P}${n}${E}`;T&&!b?O[E]=this.translate(D,{...i,defaultValue:rP(M)?M[E]:void 0,joinArrays:!1,ns:l}):O[E]=this.translate(D,{...i,joinArrays:!1,ns:l}),O[E]===D&&(O[E]=S[E])}b=O}}else if(k&&o2(v)&&Array.isArray(b))b=b.join(v),b&&(b=this.extendTranslation(b,t,i,a));else{let R=!1,O=!1;!this.isValidLookup(b)&&T&&(R=!0,b=M),this.isValidLookup(b)||(O=!0,b=c);let E=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:b,D=T&&M!==b&&this.options.updateMissing;if(O||R||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,w&&!D?`${c}${this.pluralResolver.getSuffix(d,i.count,i)}`:c,D?M:b),n){let K=this.resolve(c,{...i,keySeparator:!1});K&&K.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 I=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let K=0;K<$.length;K++)I.push($[K]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(i.lng||this.language):I.push(i.lng||this.language);let V=(K,X,e1)=>{let Y=T&&e1!==b?e1:E;this.options.missingKeyHandler?this.options.missingKeyHandler(K,f,X,Y,D,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(K,f,X,Y,D,i),this.emit("missingKey",K,f,X,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?I.forEach(K=>{let X=this.pluralResolver.getSuffixes(K,i);z&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!X.includes(`${this.options.pluralSeparator}zero`)&&X.push(`${this.options.pluralSeparator}zero`),X.forEach(e1=>{V([K],c+e1,i[`defaultValue${e1}`]||M)})}):V(I,c,M))}b=this.extendTranslation(b,t,i,p,a),O&&b===c&&this.options.appendNamespaceToMissingKey&&(b=`${f}${m}${c}`),(O||R)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${m}${c}`:c,R?b:void 0,i))}return r?(p.res=b,p.usedParams=this.getUsedParamsDetails(i),p):b}extendTranslation(t,o,a,i,r){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let l=o2(t)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){let d=t.match(this.interpolator.nestingRegexp);f=d&&d.length}let m=a.replace&&!o2(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,a.lng||this.language||i.usedLng,a),l){let d=t.match(this.interpolator.nestingRegexp),u=d&&d.length;f<u&&(a.nest=!1)}!a.lng&&i&&i.res&&(a.lng=this.language||i.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>r?.[0]===d[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${o[0]}`),null):this.translate(...d,o),a)),a.interpolation&&this.interpolator.reset()}let n=a.postProcess||this.options.postProcess,c=o2(n)?[n]:n;return t!=null&&c?.length&&a.applyPostProcessor!==!1&&(t=v01.handle(c,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,o={}){let a,i,r,n,c;return o2(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?Ia(l,{...this.options,...o}):l)),t.forEach(l=>{if(this.isValidLookup(a))return;let f=this.extractFromKey(l,o),m=f.key;i=m;let d=f.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let u=o.count!==void 0&&!o2(o.count),p=u&&!o.ordinal&&o.count===0,b=o.context!==void 0&&(o2(o.context)||typeof o.context=="number")&&o.context!=="",g=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);d.forEach(x=>{this.isValidLookup(a)||(c=x,!this.checkedLoadedFor[`${g[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(this.checkedLoadedFor[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),g.forEach(y=>{if(this.isValidLookup(a))return;n=y;let v=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(v,m,y,x,o);else{let w;u&&(w=this.pluralResolver.getSuffix(y,o.count,o));let T=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.ordinal&&w.startsWith(A)&&v.push(m+w.replace(A,this.options.pluralSeparator)),v.push(m+w),p&&v.push(m+T)),b){let _=`${m}${this.options.contextSeparator||"_"}${o.context}`;v.push(_),u&&(o.ordinal&&w.startsWith(A)&&v.push(_+w.replace(A,this.options.pluralSeparator)),v.push(_+w),p&&v.push(_+T))}}let k;for(;k=v.pop();)this.isValidLookup(a)||(r=k,a=this.getResource(y,x,k,o))}))})}),{res:a,usedKey:i,exactUsedKey:r,usedLng:n,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,a,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,a,i):this.resourceStore.getResource(t,o,a,i)}getUsedParamsDetails(t={}){let o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!o2(t.replace),i=a?t.replace:t;if(a&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!a){i={...i};for(let r of o)delete i[r]}return i}static hasDefaultValue(t){let o="defaultValue";for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&a.startsWith(o)&&t[a]!==void 0)return!0;return!1}},Ub=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h7.create("languageUtils")}getScriptPartFromCode(t){if(t=mm(t),!t||!t.includes("-"))return null;let o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=mm(t),!t||!t.includes("-"))return t;let o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(o2(t)&&t.includes("-")){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}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.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(a=>{if(o)return;let i=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(i))&&(o=i)}),!o&&this.options.supportedLngs&&t.forEach(a=>{if(o)return;let i=this.getScriptPartFromCode(a);if(this.isSupportedCode(i))return o=i;let r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return o=r;o=this.options.supportedLngs.find(n=>n===r?!0:!n.includes("-")&&!r.includes("-")?!1:!!(n.includes("-")&&!r.includes("-")&&n.slice(0,n.indexOf("-"))===r||n.startsWith(r)&&r.length>1))}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),o2(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let a=t[o];return a||(a=t[this.getScriptPartFromCode(o)]),a||(a=t[this.formatLanguageCode(o)]),a||(a=t[this.getLanguagePartFromCode(o)]),a||(a=t.default),a||[]}toResolveHierarchy(t,o){let a=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),i=[],r=n=>{n&&(this.isSupportedCode(n)?i.push(n):this.logger.warn(`rejecting language code not found in supportedLngs: ${n}`))};return o2(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):o2(t)&&r(this.formatLanguageCode(t)),a.forEach(n=>{i.includes(n)||r(this.formatLanguageCode(n))}),i}},m01={zero:0,one:1,two:2,few:3,many:4,other:5},d01={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},mP=class{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=h7.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){let a=mm(t==="dev"?"en":t),i=o.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:a,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let n;try{n=new Intl.PluralRules(a,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),d01;if(!t.match(/-|_/))return d01;let l=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(l,o)}return this.pluralRulesCache[r]=n,n}needsPlural(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,a={}){return this.getSuffixes(t,a).map(i=>`${o}${i}`)}getSuffixes(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?a.resolvedOptions().pluralCategories.sort((i,r)=>m01[i]-m01[r]).map(i=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,o,a={}){let i=this.getRule(t,a);return i?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,a))}},u01=(e,t,o,a=".",i=!0)=>{let r=qE1(e,t,o);return!r&&i&&o2(o)&&(r=sP(e,o,a),r===void 0&&(r=sP(t,o,a))),r},nP=e=>e.replace(/\$/g,"$$$$"),Hb=class{constructor(t={}){this.logger=h7.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:o,escapeValue:a,useRawValueToEscape:i,prefix:r,prefixEscaped:n,suffix:c,suffixEscaped:l,formatSeparator:f,unescapeSuffix:m,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:b,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=o!==void 0?o:ZE1,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?$8(r):n||"{{",this.suffix=c?$8(c):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=m?"":d?$8(d):"-",this.unescapeSuffix=this.unescapePrefix?"":m?$8(m):"",this.nestingPrefix=u?$8(u):p||$8("$t("),this.nestingSuffix=b?$8(b):g||$8(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(o,a)=>o?.source===a?(o.lastIndex=0,o):new RegExp(a,"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,o,a,i){let r,n,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=p=>{if(!p.includes(this.formatSeparator)){let y=u01(o,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,a,{...i,...o,interpolationkey:p}):y}let b=p.split(this.formatSeparator),g=b.shift().trim(),x=b.join(this.formatSeparator).trim();return this.format(u01(o,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),x,a,{...i,...o,interpolationkey:g})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let m=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>nP(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?nP(this.escape(p)):nP(p)}].forEach(p=>{for(c=0;r=p.regex.exec(t);){let b=r[1].trim();if(n=f(b),n===void 0)if(typeof m=="function"){let x=m(t,r,i);n=o2(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))n="";else if(d){n=r[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),n="";else!o2(n)&&!this.useRawValueToEscape&&(n=c01(n));let g=p.safeValue(n);if(t=t.replace(r[0],g),d?(p.regex.lastIndex+=n.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,o,a={}){let i,r,n,c=(l,f)=>{let m=this.nestingOptionsSeparator;if(!l.includes(m))return l;let d=l.split(new RegExp(`${$8(m)}[ ]*{`)),u=`{${d[1]}`;l=d[0],u=this.interpolate(u,n);let p=u.match(/'/g),b=u.match(/"/g);((p?.length??0)%2===0&&!b||(b?.length??0)%2!==0)&&(u=u.replace(/'/g,'"'));try{n=JSON.parse(u),f&&(n={...f,...n})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${m}${u}`}return n.defaultValue&&n.defaultValue.includes(this.prefix)&&delete n.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];n={...a},n=n.replace&&!o2(n.replace)?n.replace:n,n.applyPostProcessor=!1,delete n.defaultValue;let f=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(f!==-1&&(l=i[1].slice(f).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),i[1]=i[1].slice(0,f)),r=o(c.call(this,i[1].trim(),n),n),r&&i[0]===t&&!o2(r))return r;o2(r)||(r=c01(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),l.length&&(r=l.reduce((m,d)=>this.format(m,d,a.lng,{...a,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}},t_1=e=>{let t=e.toLowerCase().trim(),o={};if(e.includes("(")){let a=e.split("(");t=a[0].toLowerCase().trim();let i=a[1].slice(0,-1);t==="currency"&&!i.includes(":")?o.currency||(o.currency=i.trim()):t==="relativetime"&&!i.includes(":")?o.range||(o.range=i.trim()):i.split(";").forEach(n=>{if(n){let[c,...l]=n.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();o[m]||(o[m]=f),f==="false"&&(o[m]=!1),f==="true"&&(o[m]=!0),isNaN(f)||(o[m]=parseInt(f,10))}})}return{formatName:t,formatOptions:o}},p01=e=>{let t={};return(o,a,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});let n=a+JSON.stringify(r),c=t[n];return c||(c=e(mm(a),i),t[n]=c),c(o)}},o_1=e=>(t,o,a)=>e(mm(o),a)(t),dP=class{constructor(t={}){this.logger=h7.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";let a=o.cacheInBuiltFormats?p01:o_1;this.formats={number:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r});return c=>n.format(c)}),currency:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r,style:"currency"});return c=>n.format(c)}),datetime:a((i,r)=>{let n=new Intl.DateTimeFormat(i,{...r});return c=>n.format(c)}),relativetime:a((i,r)=>{let n=new Intl.RelativeTimeFormat(i,{...r});return c=>n.format(c,r.range||"day")}),list:a((i,r)=>{let n=new Intl.ListFormat(i,{...r});return c=>n.format(c)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=p01(o)}format(t,o,a,i={}){if(!o||t==null)return t;let r=o.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&!r[0].includes(")")&&r.find(c=>c.includes(")"))){let c=r.findIndex(l=>l.includes(")"));r[0]=[r[0],...r.splice(1,c)].join(this.formatSeparator)}return r.reduce((c,l)=>{let{formatName:f,formatOptions:m}=t_1(l);if(this.formats[f]){let d=c;try{let u=i?.formatParams?.[i.interpolationkey]||{},p=u.locale||u.lng||i.locale||i.lng||a;d=this.formats[f](c,p,{...m,...i,...u})}catch(u){this.logger.warn(u)}return d}else this.logger.warn(`there was no format function for ${f}`);return c},t)}},a_1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},uP=class extends Wn{constructor(t,o,a,i={}){super(),this.backend=t,this.store=o,this.services=a,this.languageUtils=a.languageUtils,this.options=i,this.logger=h7.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?.init?.(a,i.backend,i)}queueLoad(t,o,a,i){let r={},n={},c={},l={};return t.forEach(f=>{let m=!0;o.forEach(d=>{let u=`${f}|${d}`;!a.reload&&this.store.hasResourceBundle(f,d)?this.state[u]=2:this.state[u]<0||(this.state[u]===1?n[u]===void 0&&(n[u]=!0):(this.state[u]=1,m=!1,n[u]===void 0&&(n[u]=!0),r[u]===void 0&&(r[u]=!0),l[d]===void 0&&(l[d]=!0)))}),m||(c[f]=!0)}),(Object.keys(r).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(n),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,o,a){let i=t.split("|"),r=i[0],n=i[1];o&&this.emit("failedLoading",r,n,o),!o&&a&&this.store.addResourceBundle(r,n,a,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&a&&(this.state[t]=0);let c={};this.queue.forEach(l=>{KE1(l.loaded,[r],n),a_1(l,t),o&&l.errors.push(o),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{c[f]||(c[f]={});let m=l.loaded[f];m.length&&m.forEach(d=>{c[f][d]===void 0&&(c[f][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,o,a,i=0,r=this.retryTimeout,n){if(!t.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:a,tried:i,wait:r,callback:n});return}this.readingCalls++;let c=(f,m)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(f&&m&&i<this.maxRetries){setTimeout(()=>{this.read(t,o,a,i+1,r*2,n)},r);return}n(f,m)},l=this.backend[a].bind(this.backend);if(l.length===2){try{let f=l(t,o);f&&typeof f.then=="function"?f.then(m=>c(null,m)).catch(c):c(null,f)}catch(f){c(f)}return}return l(t,o,c)}prepareLoading(t,o,a={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();o2(t)&&(t=this.languageUtils.toResolveHierarchy(t)),o2(o)&&(o=[o]);let r=this.queueLoad(t,o,a,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(n=>{this.loadOne(n)})}load(t,o,a){this.prepareLoading(t,o,{},a)}reload(t,o,a){this.prepareLoading(t,o,{reload:!0},a)}loadOne(t,o=""){let a=t.split("|"),i=a[0],r=a[1];this.read(i,r,"read",void 0,void 0,(n,c)=>{n&&this.logger.warn(`${o}loading namespace ${r} for language ${i} failed`,n),!n&&c&&this.logger.log(`${o}loaded namespace ${r} for language ${i}`,c),this.loaded(t,n,c)})}saveMissing(t,o,a,i,r,n={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${a}" as the namespace "${o}" 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(!(a==null||a==="")){if(this.backend?.create){let l={...n,isUpdate:r},f=this.backend.create.bind(this.backend);if(f.length<6)try{let m;f.length===5?m=f(t,o,a,i,l):m=f(t,o,a,i),m&&typeof m.then=="function"?m.then(d=>c(null,d)).catch(c):c(null,m)}catch(m){c(m)}else f(t,o,a,i,c,l)}!t||!t[0]||this.store.addResource(t[0],o,a,i)}}},cP=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),o2(e[1])&&(t.defaultValue=e[1]),o2(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let o=e[3]||e[2];Object.keys(o).forEach(a=>{t[a]=o[a]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),h01=e=>(o2(e.ns)&&(e.ns=[e.ns]),o2(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),o2(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),jb=()=>{},i_1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})},pP=class e extends Wn{constructor(t={},o){if(super(),this.options=h01(t),this.services={},this.logger=h7,this.modules={external:[]},i_1(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(o2(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let a=cP();this.options={...a,...this.options,...h01(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);let i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?h7.init(i(this.modules.logger),this.options):h7.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=dP;let m=new Ub(this.options);this.store=new Bb(this.options.resources,this.options);let d=this.services;d.logger=h7,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new mP(m,{prepend:this.options.pluralSeparator}),f&&(d.formatter=i(f),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Hb(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new uP(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Vb(this.services,this.options),this.translator.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.external.forEach(u=>{u.init&&u.init(this)})}if(this.format=this.options.interpolation.format,o||(o=jb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=(...m)=>this.store[f](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...m)=>(this.store[f](...m),this)});let c=sm(),l=()=>{let f=(m,d)=>{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),c.resolve(d),o(m,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),c}loadResources(t,o=jb){let a=o,i=o2(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let r=[],n=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&(r.includes(f)||r.push(f))})};i?n(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>n(l)),this.options.preload?.forEach?.(c=>n(c)),this.services.backendConnector.load(r,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,o,a){let i=sm();return typeof t=="function"&&(a=t,t=void 0),typeof o=="function"&&(a=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),a||(a=jb),this.services.backendConnector.reload(t,o,r=>{i.resolve(),a(r)}),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"&&v01.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"].includes(t)){for(let o=0;o<this.languages.length;o++){let a=this.languages[o];if(!["cimode","dev"].includes(a)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;let a=sm();this.emit("languageChanging",t);let i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},r=(c,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...f)=>this.t(...f)),o&&o(c,(...f)=>this.t(...f))},n=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let l=o2(c)?c:c&&c[0],f=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(o2(c)?[c]:c);f&&(this.language||i(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,m=>{r(m,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?n(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(t),a}getFixedT(t,o,a,i){let r=i?.scopeNs,n=(c,l,...f)=>{let m;typeof l!="object"?m=this.options.overloadTranslationOptionHandler([c,l].concat(f)):m={...l},m.lng=m.lng||n.lng,m.lngs=m.lngs||n.lngs;let d=m.ns!==void 0&&m.ns!==null;m.ns=m.ns||n.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||a||n.keyPrefix);let u={...this.options,...m};Array.isArray(r)&&!d&&(u.ns=r),typeof m.keyPrefix=="function"&&(m.keyPrefix=Ia(m.keyPrefix,u));let p=this.options.keySeparator||".",b;return m.keyPrefix&&Array.isArray(c)?b=c.map(g=>(typeof g=="function"&&(g=Ia(g,u)),`${m.keyPrefix}${p}${g}`)):(typeof c=="function"&&(c=Ia(c,u)),b=m.keyPrefix?`${m.keyPrefix}${p}${c}`:c),this.t(b,m)};return o2(t)?n.lng=t:n.lngs=t,n.ns=o,n.keyPrefix=a,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){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;let a=o.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let n=(c,l)=>{let f=this.services.backendConnector.state[`${c}|${l}`];return f===-1||f===0||f===2};if(o.precheck){let c=o.precheck(this,n);if(c!==void 0)return c}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(a,t)&&(!i||n(r,t)))}loadNamespaces(t,o){let a=sm();return this.options.ns?(o2(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{a.resolve(),o&&o(i)}),a):(o&&o(),Promise.resolve())}loadLanguages(t,o){let a=sm();o2(t)&&(t=[t]);let i=this.options.preload||[],r=t.filter(n=>!i.includes(n)&&this.services.languageUtils.isSupportedCode(n));return r.length?(this.options.preload=i.concat(r),this.loadResources(n=>{a.resolve(),o&&o(n)}),a):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let i=new Intl.Locale(t);if(i&&i.getTextInfo){let r=i.getTextInfo();if(r&&r.direction)return r.direction}}catch{}let o=["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"],a=this.services?.languageUtils||new Ub(cP());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.includes(a.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){let a=new e(t,o);return a.createInstance=e.createInstance,a}cloneInstance(t={},o=jb){let a=t.forkResourceStore;a&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},r=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},a){let c=Object.keys(this.store.data).reduce((l,f)=>(l[f]={...this.store.data[f]},l[f]=Object.keys(l[f]).reduce((m,d)=>(m[d]={...l[f][d]},m),l[f]),l),{});r.store=new Bb(c,i),r.services.resourceStore=r.store}if(t.interpolation){let l={...cP().interpolation,...this.options.interpolation,...t.interpolation},f={...i,interpolation:l};r.services.interpolator=new Hb(f)}return r.translator=new Vb(r.services,i),r.translator.on("*",(c,...l)=>{r.emit(c,...l)}),r.init(i,o),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},$0=pP.createInstance(),y01=$0.createInstance,yH2=$0.dir,kH2=$0.init,xH2=$0.loadResources,zH2=$0.reloadResources,wH2=$0.use,MH2=$0.changeLanguage,SH2=$0.getFixedT,TH2=$0.t,RH2=$0.exists,EH2=$0.setDefaultNamespace,_H2=$0.hasLoadedNamespace,PH2=$0.loadNamespaces,CH2=$0.loadLanguages;s();var{slice:r_1,forEach:n_1}=[];function c_1(e){return n_1.call(r_1.call(arguments,1),t=>{if(t)for(let o in t)e[o]===void 0&&(e[o]=t[o])}),e}function l_1(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(o=>o.test(e))}var k01=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,s_1=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t),r=`${e}=${i}`;if(a.maxAge>0){let n=a.maxAge-0;if(Number.isNaN(n))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(n)}`}if(a.domain){if(!k01.test(a.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${a.domain}`}if(a.path){if(!k01.test(a.path))throw new TypeError("option path is invalid");r+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(r+="; Partitioned"),r},x01={create(e,t,o,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};o&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+o*60*1e3)),a&&(i.domain=a),document.cookie=s_1(e,t,i)},read(e){let t=`${e}=`,o=document.cookie.split(";");for(let a=0;a<o.length;a++){let i=o[a];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}},f_1={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return x01.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:o,cookieMinutes:a,cookieDomain:i,cookieOptions:r}=t;o&&typeof document<"u"&&x01.create(o,e,a,i,r)}},m_1={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,o;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));let r=a.substring(1).split("&");for(let n=0;n<r.length;n++){let c=r[n].indexOf("=");c>0&&r[n].substring(0,c)===t&&(o=r[n].substring(c+1))}}return o}},d_1={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:o}=e,a;if(typeof window<"u"){let{hash:i}=window.location;if(i&&i.length>2){let r=i.substring(1);if(t){let n=r.split("&");for(let c=0;c<n.length;c++){let l=n[c].indexOf("=");l>0&&n[c].substring(0,l)===t&&(a=n[c].substring(l+1))}}if(a)return a;if(!a&&o>-1){let n=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof o=="number"?o:0]?.replace("/",""):void 0}}}return a}},Zn=null,z01=()=>{if(Zn!==null)return Zn;try{if(Zn=typeof window<"u"&&window.localStorage!==null,!Zn)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Zn=!1}return Zn},u_1={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&z01())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:o}=t;o&&z01()&&window.localStorage.setItem(o,e)}},Jn=null,w01=()=>{if(Jn!==null)return Jn;try{if(Jn=typeof window<"u"&&window.sessionStorage!==null,!Jn)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Jn=!1}return Jn},p_1={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&w01())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:o}=t;o&&w01()&&window.sessionStorage.setItem(o,e)}},h_1={name:"navigator",lookup(e){let t=[];if(typeof navigator<"u"){let{languages:o,userLanguage:a,language:i}=navigator;if(o)for(let r=0;r<o.length;r++)t.push(o[r]);a&&t.push(a),i&&t.push(i)}return t.length>0?t:void 0}},g_1={name:"htmlTag",lookup(e){let{htmlTag:t}=e,o,a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(o=a.getAttribute("lang")),o}},v_1={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;let o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof t=="number"?t:0]?.replace("/",""):void 0}},b_1={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,o=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[o]}},M01=!1;try{document.cookie,M01=!0}catch{}var S01=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];M01||S01.splice(1,1);var y_1=()=>({order:S01,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),dm=class{constructor(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,o)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=c_1(o,this.options||{},y_1()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(f_1),this.addDetector(m_1),this.addDetector(u_1),this.addDetector(p_1),this.addDetector(h_1),this.addDetector(g_1),this.addDetector(v_1),this.addDetector(b_1),this.addDetector(d_1)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,o=[];return t.forEach(a=>{if(this.detectors[a]){let i=this.detectors[a].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(o=o.concat(i))}}),o=o.filter(a=>a!=null&&!l_1(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}cacheUserLanguage(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||o.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}};dm.type="languageDetector";s();s();var T_1=L(H(),1);s();var pm=L(H(),1);s();var k_1=L(R01());s();var Gb=(e,t,o,a)=>{let i=[o,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);e6(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},E01={},v9=(e,t,o,a)=>{e6(o)&&E01[o]||(e6(o)&&(E01[o]=new Date),Gb(e,t,o,a))},_01=(e,t)=>()=>{if(e.isInitialized)t();else{let o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}},Kb=(e,t,o)=>{e.loadNamespaces(t,_01(e,o))},hP=(e,t,o,a)=>{if(e6(o)&&(o=[o]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Kb(e,o,a);o.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,_01(e,a))},P01=(e,t,o={})=>!t.languages||!t.languages.length?(v9(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:o.lng,precheck:(a,i)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}});var e6=e=>typeof e=="string",gP=e=>typeof e=="object"&&e!==null;s();s();var x_1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z_1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},w_1=e=>z_1[e],vP=e=>e.replace(x_1,w_1);var bP={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:vP,transDefaultProps:void 0},qb=(e={})=>{bP={...bP,...e}},um=()=>bP;s();var C01,Wb=e=>{C01=e},t6=()=>C01;s();var A01=L(H(),1);s();var Zb={type:"3rdParty",init(e){qb(e.options.react),Wb(e)}};var I8=(0,A01.createContext)(),Jb=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};s();var N01=L(H(),1);s();var Da=L(H(),1);s();s();var Xn=class e extends Error{constructor(t,o,a){super(t),this.name="TranslationParserError",this.position=o,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};s();var O01={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},R_1=new RegExp(Object.keys(O01).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),$01=e=>e.replace(R_1,t=>O01[t]).replace(/&#(\d+);/g,(t,o)=>String.fromCharCode(parseInt(o,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,o)=>String.fromCharCode(parseInt(o,16)));s();var I01=e=>{let t=[],o=0,a="",i=()=>{a&&(t.push({type:"Text",value:a,position:o-a.length}),a="")};for(;o<e.length;){let r=e[o];if(r==="<"){let n=e.slice(o).match(/^<(\d+)>/);if(n)i(),t.push({type:"TagOpen",value:n[0],position:o,tagNumber:parseInt(n[1],10)}),o+=n[0].length;else{let c=e.slice(o).match(/^<\/(\d+)>/);c?(i(),t.push({type:"TagClose",value:c[0],position:o,tagNumber:parseInt(c[1],10)}),o+=c[0].length):(a+=r,o+=1)}}else a+=r,o+=1}return i(),t};s();var hm=L(H(),1);var E_1=(e,t,o)=>{let{type:a,props:i={}}=e;if(i.children&&Array.isArray(i.children)&&o){let{children:r,...n}=i;return hm.default.createElement(a,n,...t)}return t.length===0?hm.default.createElement(a,i):t.length===1?hm.default.createElement(a,i,t[0]):hm.default.createElement(a,i,...t)},D01=(e,t=[])=>{if(!e)return[];let o=I01(e),a=[],i=[],r=new Set,n=()=>{if(i.length===0)return t;let c=i[i.length-1];return c.declaration.props?.children&&Array.isArray(c.declaration.props.children)?c.declaration.props.children:c.declarations};if(o.forEach(c=>{switch(c.type){case"Text":{let l=$01(c.value);(i.length>0?i[i.length-1].children:a).push(l)}break;case"TagOpen":{let{tagNumber:l}=c,f=n(),m=f[l];if(!m){r.add(l);let d=`<${l}>`;(i.length>0?i[i.length-1].children:a).push(d);break}i.push({tagNumber:l,children:[],position:c.position,declaration:m,declarations:f})}break;case"TagClose":{let{tagNumber:l}=c;if(r.has(l)){let u=`</${l}>`;(i.length>0?i[i.length-1].children:a).push(u),r.delete(l);break}if(i.length===0)throw new Xn(`Unexpected closing tag </${l}> at position ${c.position}`,c.position,e);let f=i.pop();if(f.tagNumber!==l)throw new Xn(`Mismatched tags: expected </${f.tagNumber}> but got </${l}> at position ${c.position}`,c.position,e);let m=E_1(f.declaration,f.children,f.declarations);(i.length>0?i[i.length-1].children:a).push(m)}break}}),i.length>0){let c=i[i.length-1];throw new Xn(`Unclosed tag <${c.tagNumber}> at position ${c.position}`,c.position,e)}return a};function Xb({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let c=r||t6();if(!c)return v9(c,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),Da.default.createElement(Da.default.Fragment,{},t);let l=n||c.t?.bind(c)||(u=>u),f=a||l.ns||c.options?.defaultNS;f=e6(f)?[f]:f||["translation"];let m=i;c.options?.interpolation?.defaultVariables&&(m=i&&Object.keys(i).length>0?{...i,...c.options.interpolation.defaultVariables}:{...c.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...m,ns:f});try{let u=D01(d,o);return Da.default.createElement(Da.default.Fragment,{},...u)}catch(u){return Gb(c,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${u.message}`,{i18nKey:e,error:u}),Da.default.createElement(Da.default.Fragment,{},d)}}Xb.displayName="IcuTransWithoutContext";function L01({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let{i18n:c,defaultNS:l}=(0,N01.useContext)(I8)||{},f=r||c||t6(),m=n||f?.t.bind(f);return Xb({i18nKey:e,defaultTranslation:t,content:o,ns:a||m?.ns||l||f?.options?.defaultNS,values:i,i18n:f,t:n})}L01.displayName="IcuTrans";s();var I0=L(H(),1),V01=L(kP(),1);var L_1=(e,t)=>{if(e6(t))return t;if(gP(t)&&e6(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){let o=e[e.length-1];return typeof o=="function"?"":o}return e},j_1={t:L_1,ready:!1},F_1=()=>()=>{},o6=(e,t={})=>{let{i18n:o}=t,{i18n:a,defaultNS:i}=(0,I0.useContext)(I8)||{},r=o||a||t6();r&&!r.reportNamespaces&&(r.reportNamespaces=new Jb),r||v9(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let n=(0,I0.useMemo)(()=>({...um(),...r?.options?.react,...t}),[r,t]),{useSuspense:c,keyPrefix:l}=n,f=e||i||r?.options?.defaultNS,m=e6(f)?[f]:f||["translation"],d=(0,I0.useMemo)(()=>m,m);r?.reportNamespaces?.addUsedNamespaces?.(d);let u=(0,I0.useRef)(0),p=(0,I0.useCallback)(M=>{if(!r)return F_1;let{bindI18n:S,bindI18nStore:N}=n,C=()=>{u.current+=1,M()};return S&&r.on(S,C),N&&r.store.on(N,C),()=>{S&&S.split(" ").forEach(R=>r.off(R,C)),N&&N.split(" ").forEach(R=>r.store.off(R,C))}},[r,n]),b=(0,I0.useRef)(),g=(0,I0.useCallback)(()=>{if(!r)return j_1;let M=!!(r.isInitialized||r.initializedStoreOnce)&&d.every(P=>P01(P,r,n)),S=t.lng||r.language,N=u.current,C=b.current;if(C&&C.ready===M&&C.lng===S&&C.keyPrefix===l&&C.revision===N)return C;let O={t:r.getFixedT(S,n.nsMode==="fallback"?d:d[0],l,{scopeNs:d}),ready:M,lng:S,keyPrefix:l,revision:N};return b.current=O,O},[r,d,l,n,t.lng]),[x,y]=(0,I0.useState)(0),{t:v,ready:k}=(0,V01.useSyncExternalStore)(p,g,g);(0,I0.useEffect)(()=>{if(r&&!k&&!c){let M=()=>y(S=>S+1);t.lng?hP(r,t.lng,d,M):Kb(r,d,M)}},[r,t.lng,d,k,c,x]);let w=r||{},T=(0,I0.useRef)(null),A=(0,I0.useRef)(),_=M=>{let S=Object.getOwnPropertyDescriptors(M);S.__original&&delete S.__original;let N=Object.create(Object.getPrototypeOf(M),S);if(!Object.prototype.hasOwnProperty.call(N,"__original"))try{Object.defineProperty(N,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return N},z=(0,I0.useMemo)(()=>{let M=w,S=M?.language,N=M;M&&(T.current&&T.current.__original===M?A.current!==S?(N=_(M),T.current=N,A.current=S):N=T.current:(N=_(M),T.current=N,A.current=S));let C=!k&&!c?(...O)=>(v9(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...O)):v,R=[C,N,k];return R.t=C,R.i18n=N,R.ready=k,R},[v,w,k,w.resolvedLanguage,w.language,w.languages]);if(r&&c&&!k)throw new Promise(M=>{let S=()=>M();t.lng?hP(r,t.lng,d,S):Kb(r,d,S)});return z};s();var U01=L(H(),1);s();s();var Yb=L(H(),1);function Qb({i18n:e,defaultNS:t,children:o}){let a=(0,Yb.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,Yb.createElement)(I8.Provider,{value:a},o)}s();var G_1=L(H(),1);s();var V_1=L(H(),1);s();s();var ty=[{code:"en",nativeName:"English",englishName:"English",flagCode:"US",dir:"ltr",isDefault:!0},{code:"pt-BR",nativeName:"Português (BR)",englishName:"Portuguese (Brazil)",flagCode:"BR",dir:"ltr"},{code:"es",nativeName:"Español",englishName:"Spanish",flagCode:"ES",dir:"ltr"},{code:"ar",nativeName:"العربية",englishName:"Arabic",flagCode:"AE",dir:"rtl"},{code:"az",nativeName:"Azərbaycan dili",englishName:"Azerbaijani",flagCode:"AZ",dir:"ltr"},{code:"bg",nativeName:"Български",englishName:"Bulgarian",flagCode:"BG",dir:"ltr"},{code:"bn",nativeName:"বাংলা",englishName:"Bengali",flagCode:"BD",dir:"ltr"},{code:"ca",nativeName:"Català",englishName:"Catalan",flagCode:"ES",dir:"ltr"},{code:"cs",nativeName:"Čeština",englishName:"Czech",flagCode:"CZ",dir:"ltr"},{code:"da",nativeName:"Dansk",englishName:"Danish",flagCode:"DK",dir:"ltr"},{code:"de",nativeName:"Deutsch",englishName:"German",flagCode:"DE",dir:"ltr"},{code:"el",nativeName:"Ελληνικά",englishName:"Greek",flagCode:"GR",dir:"ltr"},{code:"eo",nativeName:"Esperanto",englishName:"Esperanto",flagCode:"EU",dir:"ltr"},{code:"et",nativeName:"Eesti",englishName:"Estonian",flagCode:"EE",dir:"ltr"},{code:"fa",nativeName:"فارسی",englishName:"Persian",flagCode:"IR",dir:"rtl"},{code:"fi",nativeName:"Suomi",englishName:"Finnish",flagCode:"FI",dir:"ltr"},{code:"fr",nativeName:"Français",englishName:"French",flagCode:"FR",dir:"ltr"},{code:"ga",nativeName:"Gaeilge",englishName:"Irish",flagCode:"IE",dir:"ltr"},{code:"he",nativeName:"עברית",englishName:"Hebrew",flagCode:"IL",dir:"rtl"},{code:"hi",nativeName:"हिन्दी",englishName:"Hindi",flagCode:"IN",dir:"ltr"},{code:"hu",nativeName:"Magyar",englishName:"Hungarian",flagCode:"HU",dir:"ltr"},{code:"id",nativeName:"Bahasa Indonesia",englishName:"Indonesian",flagCode:"ID",dir:"ltr"},{code:"it",nativeName:"Italiano",englishName:"Italian",flagCode:"IT",dir:"ltr"},{code:"ja",nativeName:"日本語",englishName:"Japanese",flagCode:"JP",dir:"ltr"},{code:"ko",nativeName:"한국어",englishName:"Korean",flagCode:"KR",dir:"ltr"},{code:"lt",nativeName:"Lietuvių",englishName:"Lithuanian",flagCode:"LT",dir:"ltr"},{code:"lv",nativeName:"Latviešu",englishName:"Latvian",flagCode:"LV",dir:"ltr"},{code:"ms",nativeName:"Bahasa Melayu",englishName:"Malay",flagCode:"MY",dir:"ltr"},{code:"nb",nativeName:"Norsk Bokmål",englishName:"Norwegian Bokmål",flagCode:"NO",dir:"ltr"},{code:"nl",nativeName:"Nederlands",englishName:"Dutch",flagCode:"NL",dir:"ltr"},{code:"pl",nativeName:"Polski",englishName:"Polish",flagCode:"PL",dir:"ltr"},{code:"pt",nativeName:"Português",englishName:"Portuguese",flagCode:"PT",dir:"ltr"},{code:"ro",nativeName:"Română",englishName:"Romanian",flagCode:"RO",dir:"ltr"},{code:"ru",nativeName:"Русский",englishName:"Russian",flagCode:"RU",dir:"ltr"},{code:"sk",nativeName:"Slovenčina",englishName:"Slovak",flagCode:"SK",dir:"ltr"},{code:"sl",nativeName:"Slovenščina",englishName:"Slovenian",flagCode:"SI",dir:"ltr"},{code:"sv",nativeName:"Svenska",englishName:"Swedish",flagCode:"SE",dir:"ltr"},{code:"th",nativeName:"ไทย",englishName:"Thai",flagCode:"TH",dir:"ltr"},{code:"tl",nativeName:"Tagalog",englishName:"Tagalog",flagCode:"PH",dir:"ltr"},{code:"tr",nativeName:"Türkçe",englishName:"Turkish",flagCode:"TR",dir:"ltr"},{code:"uk",nativeName:"Українська",englishName:"Ukrainian",flagCode:"UA",dir:"ltr"},{code:"ur",nativeName:"اردو",englishName:"Urdu",flagCode:"PK",dir:"rtl"},{code:"zh",nativeName:"中文",englishName:"Chinese",flagCode:"CN",dir:"ltr"}],xP="en",zP=ty.map(e=>e.code),LK2=new Set(zP),oy=ty.map(e=>({code:e.code,name:e.nativeName,englishName:e.englishName,flag:e.flagCode,dir:e.dir})),K_1=new Map(ty.map(e=>[e.code.toLowerCase(),e])),ey=new Map;for(let e of ty){let t=e.code.split("-")[0].toLowerCase();(!ey.has(t)||"isDefault"in e&&e.isDefault)&&ey.set(t,e.code)}function H01(e,t=xP){let o=e?.trim();if(!o)return t;let a=K_1.get(o.toLowerCase());if(a)return a.code;let i=o.split("-")[0]?.toLowerCase();return i&&ey.has(i)?ey.get(i)??t:t}var z0=xP,x3="translations",q_1=!1,Na="https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.2/dist/locales",RP=zP,VK2=new Set(RP),vm={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},sy={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},ay=null,gm=null,g7=null,MP=null,Qn=null,b9=null,D0=null,SP=null,W_1=globalThis.eval;function Z_1(){if(g7)return g7;try{if(typeof __non_webpack_require__=="function")g7=__non_webpack_require__;else if(typeof Y8=="function")g7=Y8;else if(globalThis.require)g7=globalThis.require;else{let e="require";g7=globalThis[e]||W_1(e)}return g7}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function ec(){if(typeof window<"u")return!1;if(ay&&gm)return!0;try{let e=Z_1();return e?(ay=e("fs"),gm=e("path"),MP=ay.readFileSync,Qn=ay.existsSync,b9=gm.join,D0=gm.resolve,SP=gm.dirname,!0):!1}catch{return!1}}var iy=new Map,G01=new Map;function EP(e){if(ec(),!Qn)return[];let t=new Set;return e.filter(o=>!!o).filter(o=>t.has(o)||!Qn(o)?!1:(t.add(o),!0))}function J_1(e){if(ec(),!(!g7||!SP))try{let o=g7.resolve.call(g7,`${e}/package.json`);return SP(o)}catch{return}}var ry=null;function X_1(){if(ry)return ry;if(ec(),!D0)return[];let e=process.cwd(),t=h.ZW_I18N_CACHE_ROOT;return ry=EP([t,D0(e,".next/cache"),D0(e,"../.next/cache"),D0(e,"../../.next/cache"),D0(e,"apps/zappway/dashboard/.next/cache"),D0(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),ry}var ny=null;function Y_1(){if(ny)return ny;if(ec(),!D0||!b9)return[];let e=process.cwd(),t=J_1("@zappway/lib");return ny=EP([t,D0(e,"packages/zappway/lib"),D0(e,"../packages/zappway/lib"),D0(e,"../../packages/zappway/lib"),D0(e,"../../../packages/zappway/lib"),D0(e,"../../../../packages/zappway/lib"),D0(e,"node_modules/@zappway/lib"),D0(e,"../node_modules/@zappway/lib"),D0(e,"../../node_modules/@zappway/lib"),D0(e,"../../../node_modules/@zappway/lib"),D0(e,"../../../../node_modules/@zappway/lib")]).filter(o=>Qn(b9(o,"locales"))),ny}var wP=new Map;function K01(e){if(wP.has(e))return wP.get(e);if(ec(),!MP||!Qn||!Qn(e))return null;try{let t=MP(e,"utf8"),o=JSON.parse(t);return wP.set(e,o),o}catch{return null}}function TP(e,t){if(!e)return null;let o=t||x3;if(o===x3)return e;if(e[o])return e[o];let a=o.split("."),i=e,r=!0;for(let n of a)if(i&&typeof i=="object"&&n in i)i=i[n];else{r=!1;break}return r&&i&&typeof i=="object"?i:o!==x3?{}:e}var cy=null;function Q_1(){return cy||(cy=EP([...X_1(),...Y_1()]),cy)}function fy(e){return H01(e,z0)}function _P(e,t,o){if(typeof window<"u"||!ec())return{};let a=fy(e),i=o||x3,r=`node:${a}:${t}:${i}`,n=iy.get(r);if(n)return n;let c=vm[t];if(t==="main"&&i!==x3&&sy[i])return iy.set(r,{}),{};let l=Q_1(),f=[];for(let d of l){for(let u of c.splitDirectories)f.push(b9(d,u,a,`${i}.json`)),f.push(b9(d,"locales",u,a,`${i}.json`));f.push(b9(d,c.localeDirectory,a,`${i}.json`)),f.push(b9(d,"locales",c.localeDirectory,a,`${i}.json`))}for(let d of f){let u=K01(d);if(u&&Object.keys(u).length>0)return iy.set(r,u),u}let m={};for(let d of l){let u=b9(d,"locales",c.localeDirectory,a,"translations.json"),p=K01(u);if(p){if(m=TP(p,o)||{},Object.keys(m).length>0)break}else q_1&&o===x3&&console.warn(` [i18n] Bundle not found or empty: ${u} (CWD: ${typeof process<"u"?process.cwd():"unknown"})`)}return Object.keys(m).length===0&&a!==z0?_P(z0,t,o):(iy.set(r,m),m)}function PP(e,t,o){let a=t.map(i=>_P(e,i,o));return W01(a)}async function ly(e,t=2e3){let o=new AbortController,a=setTimeout(()=>o.abort(),t);try{let i=await fetch(`${e}?v=${Date.now()}`,{signal:o.signal,cache:"force-cache"});return clearTimeout(a),i.ok?await i.json():null}catch{return clearTimeout(a),null}}async function eP1(e,t,o){let a=fy(e),i=o||x3,n=`${typeof window>"u"?"node":"browser"}:${a}:${t}:${i}`,c=G01.get(n);if(c)return await c||{};let l=vm[t],f=(async()=>{if(typeof window>"u"){let m=_P(e,t,o);if(m&&Object.keys(m).length>0)return m;let d=t==="main"&&i!==x3&&!i.includes(".")?`${Na}/${l.cdnDirectory}/${a}/${i}.json`:`${Na}/${l.cdnDirectory}/${a}/translations.json`;try{let u=await ly(d,3e3);if(u){let p=TP(u,o);if(p&&Object.keys(p).length>0)return p}}catch{}}else{for(let p of l.browserDirectories){let b=await ly(`/locales-runtime/${p}/${a}/${i}.json`);if(b)return b}let m=await ly(`/api/i18n/${a}/${i}`);if(m)return m;let d=t==="main"&&i!==x3&&!i.includes(".")?`${Na}/${l.cdnDirectory}/${a}/${i}.json`:`${Na}/${l.cdnDirectory}/${a}/translations.json`,u=await ly(d);if(u)return TP(u,o)||{}}return{}})();return G01.set(n,f),f||{}}async function my(e,t,o){let a=t.map(r=>eP1(e,r,o)),i=await Promise.all(a);return W01(i)}function q01(e,t){let o={...e};for(let[a,i]of Object.entries(t||{})){let r=o[a];r&&typeof r=="object"&&i&&typeof i=="object"&&!Array.isArray(i)?o[a]=q01(r,i):o[a]=i}return o}function W01(e){return e.reduce((t,o)=>q01(t,o||{}),{})}var tP1={type:"backend",init:()=>{},read:(e,t,o)=>{my(e,["main"],t).then(a=>{t===x3&&a&&Object.entries(a).forEach(([i,r])=>{i!==x3&&r&&typeof r=="object"&&!Array.isArray(r)&&$0.addResourceBundle(e,i,r,!0,!0)}),o(null,a)}).catch(a=>{o(a,null)})}};$0.use(tP1).use(dm).use(Zb).init({fallbackLng:z0,supportedLngs:RP,ns:[x3],defaultNS:x3,partialBundledLanguages:!0,nonExplicitSupportedLngs:!0,nsSeparator:":",keySeparator:".",interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],lookupCookie:"NEXT_LOCALE",caches:["cookie"]}});var j2=$0;s();var L2=L(H());s();var w0=L(H(),1),GP=L(kP(),1);s();s();var Y0=L(H(),1);var y9={};o0(y9,{ERROR_REVALIDATE_EVENT:()=>oP1,FOCUS_EVENT:()=>Z01,MUTATE_EVENT:()=>X01,RECONNECT_EVENT:()=>J01});s();var Z01=0,J01=1,X01=2,oP1=3;s();var Y01=Object.prototype.hasOwnProperty;function dy(e,t){var o,a;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((a=e.length)===t.length)for(;a--&&dy(e[a],t[a]););return a===-1}if(!o||typeof e=="object"){a=0;for(o in e)if(Y01.call(e,o)&&++a&&!Y01.call(t,o)||!(o in t)||!dy(e[o],t[o]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}var a6=new WeakMap,i6=()=>{},m3=i6(),tc=Object,z2=e=>e===m3,O5=e=>typeof e=="function",C4=(e,t)=>({...e,...t}),by=e=>O5(e.then),CP={},uy={},LP="undefined",oc=typeof window!=LP,hy=typeof document!=LP,e41=oc&&"Deno"in window,t41=()=>oc&&typeof window.requestAnimationFrame!=LP,yy=(e,t)=>{let o=a6.get(e);return[()=>!z2(t)&&e.get(t)||CP,a=>{if(!z2(t)){let i=e.get(t);t in uy||(uy[t]=i),o[5](t,C4(i,a),i||CP)}},o[6],()=>!z2(t)&&t in uy?uy[t]:!z2(t)&&e.get(t)||CP]},$P=!0,aP1=()=>$P,[IP,DP]=oc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i6,i6],iP1=()=>{let e=hy&&document.visibilityState;return z2(e)||e!=="hidden"},rP1=e=>(hy&&document.addEventListener("visibilitychange",e),IP("focus",e),()=>{hy&&document.removeEventListener("visibilitychange",e),DP("focus",e)}),nP1=e=>{let t=()=>{$P=!0,e()},o=()=>{$P=!1};return IP("online",t),IP("offline",o),()=>{DP("online",t),DP("offline",o)}},o41={isOnline:aP1,isVisible:iP1},a41={initFocus:rP1,initReconnect:nP1},ac=!Y0.default.useId,x9=!oc||e41,jP=e=>t41()?window.requestAnimationFrame(e):setTimeout(e,1),D8=x9?Y0.useEffect:Y0.useLayoutEffect,AP=typeof navigator<"u"&&navigator.connection,NP=!x9&&AP&&(["slow-2g","2g"].includes(AP.effectiveType)||AP.saveData),py=new WeakMap,cP1=e=>tc.prototype.toString.call(e),OP=(e,t)=>e===`[object ${t}]`,lP1=0,gy=e=>{let t=typeof e,o=cP1(e),a=OP(o,"Date"),i=OP(o,"RegExp"),r=OP(o,"Object"),n,c;if(tc(e)===e&&!a&&!i){if(n=py.get(e),n)return n;if(n=++lP1+"~",py.set(e,n),Array.isArray(e)){for(n="@",c=0;c<e.length;c++)n+=gy(e[c])+",";py.set(e,n)}if(r){n="#";let l=tc.keys(e).sort();for(;!z2(c=l.pop());)z2(e[c])||(n+=c+":"+gy(e[c])+",");py.set(e,n)}}else n=a?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return n},La=e=>{if(O5(e))try{e=e()}catch{e=""}let t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?gy(e):"",[e,t]},sP1=0,k9=()=>++sP1;async function ky(...e){let[t,o,a,i]=e,r=C4({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{}),n=r.populateCache,c=r.rollbackOnError,l=r.optimisticData,f=u=>typeof c=="function"?c(u):c!==!1,m=r.throwOnError;if(O5(o)){let u=o,p=[],b=t.keys();for(let g of b)!/^\$(inf|sub)\$/.test(g)&&u(t.get(g)._k)&&p.push(g);return Promise.all(p.map(d))}return d(o);async function d(u){let[p]=La(u);if(!p)return;let[b,g]=yy(t,p),[x,y,v,k]=a6.get(t),w=()=>{let O=x[p];return(O5(r.revalidate)?r.revalidate(b().data,u):r.revalidate!==!1)&&(delete v[p],delete k[p],O&&O[0])?O[0](2).then(()=>b().data):b().data};if(e.length<3)return w();let T=a,A,_=!1,z=k9();y[p]=[z,0];let M=!z2(l),S=b(),N=S.data,C=S._c,R=z2(C)?N:C;if(M&&(l=O5(l)?l(R,N):l,g({data:l,_c:R})),O5(T))try{T=T(R)}catch(O){A=O,_=!0}if(T&&by(T))if(T=await T.catch(O=>{A=O,_=!0}),z!==y[p][0]){if(_)throw A;return T}else _&&M&&f(A)&&(n=!0,g({data:R,_c:m3}));if(n&&!_)if(O5(n)){let O=n(T,R);g({data:O,error:m3,_c:m3})}else g({data:T,error:m3,_c:m3});if(y[p][1]=k9(),Promise.resolve(w()).then(()=>{g({_c:m3})}),_){if(m)throw A;return}return T}}var Q01=(e,t)=>{for(let o in e)e[o][0]&&e[o][0](t)},FP=(e,t)=>{if(!a6.has(e)){let o=C4(a41,t),a=Object.create(null),i=ky.bind(m3,e),r=i6,n=Object.create(null),c=(m,d)=>{let u=n[m]||[];return n[m]=u,u.push(d),()=>{let p=u.indexOf(d);p>=0&&(u[p]=u[u.length-1],u.pop())}},l=(m,d,u)=>{e.set(m,d);let p=n[m];if(p)for(let b of p)b(d,u)},f=()=>{if(!a6.has(e)&&(a6.set(e,[a,Object.create(null),Object.create(null),Object.create(null),i,l,c]),!x9)){let m=o.initFocus(setTimeout.bind(m3,Q01.bind(m3,a,0))),d=o.initReconnect(setTimeout.bind(m3,Q01.bind(m3,a,1)));r=()=>{m&&m(),d&&d(),a6.delete(e)}}};return f(),[e,i,f,r]}return[e,a6.get(e)[4]]},fP1=(e,t,o,a,i)=>{let r=o.errorRetryCount,n=i.retryCount,c=~~((Math.random()+.5)*(1<<(n<8?n:8)))*o.errorRetryInterval;!z2(r)&&n>r||setTimeout(a,c,i)},i41=dy,[xy,bm]=FP(new Map),zy=C4({onLoadingSlow:i6,onSuccess:i6,onError:i6,onErrorRetry:fP1,onDiscarded:i6,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:NP?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:NP?5e3:3e3,compare:i41,isPaused:()=>!1,cache:xy,mutate:bm,fallback:{}},o41),BP=(e,t)=>{let o=C4(e,t);if(t){let{use:a,fallback:i}=e,{use:r,fallback:n}=t;a&&r&&(o.use=a.concat(r)),i&&n&&(o.fallback=C4(i,n))}return o},vy=(0,Y0.createContext)({}),VP=e=>{let{value:t}=e,o=(0,Y0.useContext)(vy),a=O5(t),i=(0,Y0.useMemo)(()=>a?t(o):t,[a,o,t]),r=(0,Y0.useMemo)(()=>a?i:BP(o,i),[a,o,i]),n=i&&i.provider,c=(0,Y0.useRef)(m3);n&&!c.current&&(c.current=FP(n(r.cache||xy),i));let l=c.current;return l&&(r.cache=l[0],r.mutate=l[1]),D8(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,Y0.createElement)(vy.Provider,C4(e,{value:r}))};s();var r41="$inf$";var ic=L(H(),1);var n41=oc&&window.__SWR_DEVTOOLS_USE__,mP1=n41?window.__SWR_DEVTOOLS_USE__:[],dP1=()=>{n41&&(window.__SWR_DEVTOOLS_REACT__=ic.default)},c41=e=>O5(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],wy=()=>{let e=(0,ic.useContext)(vy);return(0,ic.useMemo)(()=>C4(zy,e),[e])};var uP1=e=>(t,o,a)=>e(t,o&&((...r)=>{let[n]=La(t),[,,,c]=a6.get(xy);if(n.startsWith(r41))return o(...r);let l=c[n];return z2(l)?o(...r):(delete c[n],l)}),a),pP1=mP1.concat(uP1),l41=e=>function(...o){let a=wy(),[i,r,n]=c41(o),c=BP(a,n),l=e,{use:f}=c,m=(f||[]).concat(pP1);for(let d=m.length;d--;)l=m[d](l);return l(i,r||c.fetcher||null,c)},s41=(e,t,o)=>{let a=t[e]||(t[e]=[]);return a.push(o),()=>{let i=a.indexOf(o);i>=0&&(a[i]=a[a.length-1],a.pop())}},f41=(e,t)=>(...o)=>{let[a,i,r]=c41(o),n=(r.use||[]).concat(t);return e(a,i,{...r,use:n})};dP1();var hP1=()=>{},pq2=hP1();var UP=w0.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),HP={dedupe:!0},My=Promise.resolve(m3);My.status="fulfilled";My.value=m3;var gP1=()=>i6,vP1=(e,t,o)=>{let{cache:a,compare:i,suspense:r,fallbackData:n,revalidateOnMount:c,revalidateIfStale:l,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:d,keepPreviousData:u,strictServerPrefetchWarning:p}=o,[b,g,x,y]=a6.get(a),[v,k]=La(e),w=(0,w0.useRef)(!1),T=(0,w0.useRef)(!1),A=(0,w0.useRef)(v),_=(0,w0.useRef)(t),z=(0,w0.useRef)(o),M=()=>z.current,S=()=>M().isVisible()&&M().isOnline(),[N,C,R,O]=yy(a,v),P=(0,w0.useRef)({}).current,E=z2(n)?z2(o.fallback)?m3:o.fallback[v]:n,D=(M1,w1)=>{for(let B1 in P){let A1=B1;if(A1==="data"){if(!i(M1[A1],w1[A1])&&(!z2(M1[A1])||!i(o1,w1[A1])))return!1}else if(w1[A1]!==M1[A1])return!1}return!0},I=!w.current,$=(0,w0.useMemo)(()=>{let M1=N(),w1=O(),B1=d1=>{let H1=C4(d1);return delete H1._k,(()=>{if(!v||!t||M().isPaused())return!1;if(I&&!z2(c))return c;let G1=z2(E)?H1.data:E;return r?z2(G1)||l:z2(G1)||l})()?{isValidating:!0,isLoading:!0,...H1}:H1},A1=B1(M1),Z1=M1===w1?A1:B1(w1),c2=A1;return[()=>{let d1=B1(N());return D(d1,c2)?(c2.data=d1.data,c2.isLoading=d1.isLoading,c2.isValidating=d1.isValidating,c2.error=d1.error,c2):(c2=d1,d1)},()=>Z1]},[a,v]),V=(0,GP.useSyncExternalStore)((0,w0.useCallback)(M1=>R(v,(w1,B1)=>{D(B1,w1)||M1()}),[a,v]),$[0],$[1]),K=b[v]&&b[v].length>0,X=V.data,e1=z2(X)?E&&by(E)?UP(E):E:X,Y=V.error,q=(0,w0.useRef)(e1),o1=u?z2(X)?z2(q.current)?e1:q.current:X:e1,W=v&&z2(e1),Z=(0,w0.useRef)(null);!x9&&(0,GP.useSyncExternalStore)(gP1,()=>(Z.current=!1,Z),()=>(Z.current=!0,Z));let r1=Z.current;p&&r1&&!r&&W&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let x1=!v||!t||M().isPaused()||K&&!z2(Y)?!1:I&&!z2(c)?c:r?z2(e1)?!1:l:z2(e1)||l,h1=I&&x1,T1=z2(V.isValidating)?h1:V.isValidating,F1=z2(V.isLoading)?h1:V.isLoading,V1=(0,w0.useCallback)(async M1=>{let w1=_.current;if(!v||!w1||T.current||M().isPaused())return!1;let B1,A1,Z1=!0,c2=M1||{},d1=!x[v]||!c2.dedupe,H1=()=>ac?!T.current&&v===A.current&&w.current:v===A.current,$1={isValidating:!1,isLoading:!1},G1=()=>{C($1)},E1=()=>{let s1=x[v];s1&&s1[1]===A1&&delete x[v]},i1={isValidating:!0};z2(N().data)&&(i1.isLoading=!0);try{if(d1&&(C(i1),o.loadingTimeout&&z2(N().data)&&setTimeout(()=>{Z1&&H1()&&M().onLoadingSlow(v,o)},o.loadingTimeout),x[v]=[w1(k),k9()]),[B1,A1]=x[v],B1=await B1,d1&&setTimeout(E1,o.dedupingInterval),!x[v]||x[v][1]!==A1)return d1&&H1()&&M().onDiscarded(v),!1;$1.error=m3;let s1=g[v];if(!z2(s1)&&(A1<=s1[0]||A1<=s1[1]||s1[1]===0))return G1(),d1&&H1()&&M().onDiscarded(v),!1;let j=N().data;$1.data=i(j,B1)?j:B1,d1&&H1()&&M().onSuccess(B1,v,o)}catch(s1){E1();let j=M(),{shouldRetryOnError:U}=j;j.isPaused()||($1.error=s1,d1&&H1()&&(j.onError(s1,v,j),(U===!0||O5(U)&&U(s1))&&(!M().revalidateOnFocus||!M().revalidateOnReconnect||S())&&j.onErrorRetry(s1,v,j,B=>{let G=b[v];G&&G[0]&&G[0](y9.ERROR_REVALIDATE_EVENT,B)},{retryCount:(c2.retryCount||0)+1,dedupe:!0})))}return Z1=!1,G1(),!0},[v,a]),n1=(0,w0.useCallback)((...M1)=>ky(a,A.current,...M1),[]);if(D8(()=>{_.current=t,z.current=o,z2(X)||(q.current=X)}),D8(()=>{if(!v)return;let M1=V1.bind(m3,HP),w1=0;M().revalidateOnFocus&&(w1=Date.now()+M().focusThrottleInterval);let A1=s41(v,b,(Z1,c2={})=>{if(Z1==y9.FOCUS_EVENT){let d1=Date.now();M().revalidateOnFocus&&d1>w1&&S()&&(w1=d1+M().focusThrottleInterval,M1())}else if(Z1==y9.RECONNECT_EVENT)M().revalidateOnReconnect&&S()&&M1();else{if(Z1==y9.MUTATE_EVENT)return V1();if(Z1==y9.ERROR_REVALIDATE_EVENT)return V1(c2)}});return T.current=!1,A.current=v,w.current=!0,C({_k:k}),x1&&(x[v]||(z2(e1)||x9?M1():jP(M1))),()=>{T.current=!0,A1()}},[v]),D8(()=>{let M1;function w1(){let A1=O5(f)?f(N().data):f;A1&&M1!==-1&&(M1=setTimeout(B1,A1))}function B1(){!N().error&&(m||M().isVisible())&&(d||M().isOnline())?V1(HP).then(w1):w1()}return w1(),()=>{M1&&(clearTimeout(M1),M1=-1)}},[f,m,d,v]),(0,w0.useDebugValue)(o1),r){if(!ac&&x9&&W)throw new Error("Fallback data is required when using Suspense in SSR.");W&&(_.current=t,z.current=o,T.current=!1);let M1=y[v],w1=!z2(M1)&&W?n1(M1):My;if(UP(w1),!z2(Y)&&W)throw Y;let B1=W?V1(HP):My;!z2(o1)&&W&&(B1.status="fulfilled",B1.value=!0),UP(B1)}return{mutate:n1,get data(){return P.data=!0,o1},get error(){return P.error=!0,Y},get isValidating(){return P.isValidating=!0,T1},get isLoading(){return P.isLoading=!0,F1}}},hq2=tc.defineProperty(VP,"defaultValue",{value:zy}),Sy=l41(vP1);s();s();var m41=(e,t,o)=>{if(e&&"reportValidity"in e){let a=_1(o,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},Ty=(e,t)=>{for(let o in t.fields){let a=t.fields[o];a&&a.ref&&"reportValidity"in a.ref?m41(a.ref,o,e):a&&a.refs&&a.refs.forEach(i=>m41(i,o,e))}},KP=(e,t)=>{t.shouldUseNativeValidation&&Ty(e,t);let o={};for(let a in e){let i=_1(t.fields,a),r=Object.assign(e[a]||{},{ref:i&&i.ref});if(bP1(t.names||Object.keys(e),a)){let n=Object.assign({},_1(o,a));N2(n,"root",r),N2(o,a,n)}else N2(o,a,r)}return o},bP1=(e,t)=>{let o=d41(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(a=>d41(a).match(`^${o}\\.\\d+`))};function d41(e){return e.replace(/[\[\]]/g,"")}var k7={};o0(k7,{$ZodAny:()=>DA,$ZodArray:()=>BA,$ZodAsyncError:()=>r6,$ZodBase64:()=>TA,$ZodBase64URL:()=>RA,$ZodBigInt:()=>Ky,$ZodBigIntFormat:()=>AA,$ZodBoolean:()=>Pm,$ZodCIDRv4:()=>wA,$ZodCIDRv6:()=>MA,$ZodCUID:()=>mA,$ZodCUID2:()=>dA,$ZodCatch:()=>rO,$ZodCheck:()=>t3,$ZodCheckBigIntFormat:()=>BC,$ZodCheckEndsWith:()=>QC,$ZodCheckGreaterThan:()=>Fy,$ZodCheckIncludes:()=>XC,$ZodCheckLengthEquals:()=>qC,$ZodCheckLessThan:()=>jy,$ZodCheckLowerCase:()=>ZC,$ZodCheckMaxLength:()=>GC,$ZodCheckMaxSize:()=>VC,$ZodCheckMimeType:()=>tA,$ZodCheckMinLength:()=>KC,$ZodCheckMinSize:()=>UC,$ZodCheckMultipleOf:()=>jC,$ZodCheckNumberFormat:()=>FC,$ZodCheckOverwrite:()=>oA,$ZodCheckProperty:()=>eA,$ZodCheckRegex:()=>WC,$ZodCheckSizeEquals:()=>HC,$ZodCheckStartsWith:()=>YC,$ZodCheckStringFormat:()=>pc,$ZodCheckUpperCase:()=>JC,$ZodCodec:()=>Am,$ZodCustom:()=>uO,$ZodCustomStringFormat:()=>PA,$ZodDate:()=>FA,$ZodDefault:()=>tO,$ZodDiscriminatedUnion:()=>HA,$ZodE164:()=>EA,$ZodEmail:()=>cA,$ZodEmoji:()=>sA,$ZodEncodeError:()=>z9,$ZodEnum:()=>ZA,$ZodError:()=>Ba,$ZodExactOptional:()=>QA,$ZodFile:()=>XA,$ZodFunction:()=>fO,$ZodGUID:()=>rA,$ZodIPv4:()=>kA,$ZodIPv6:()=>xA,$ZodISODate:()=>vA,$ZodISODateTime:()=>gA,$ZodISODuration:()=>yA,$ZodISOTime:()=>bA,$ZodIntersection:()=>GA,$ZodJWT:()=>_A,$ZodKSUID:()=>hA,$ZodLazy:()=>dO,$ZodLiteral:()=>JA,$ZodMAC:()=>zA,$ZodMap:()=>qA,$ZodNaN:()=>nO,$ZodNanoID:()=>fA,$ZodNever:()=>LA,$ZodNonOptional:()=>aO,$ZodNull:()=>IA,$ZodNullable:()=>eO,$ZodNumber:()=>Gy,$ZodNumberFormat:()=>CA,$ZodObject:()=>U41,$ZodObjectJIT:()=>VA,$ZodOptional:()=>Wy,$ZodPipe:()=>Zy,$ZodPrefault:()=>oO,$ZodPreprocess:()=>cO,$ZodPromise:()=>mO,$ZodReadonly:()=>lO,$ZodRealError:()=>Y4,$ZodRecord:()=>KA,$ZodRegistry:()=>Qy,$ZodSet:()=>WA,$ZodString:()=>Ua,$ZodStringFormat:()=>Z2,$ZodSuccess:()=>iO,$ZodSymbol:()=>OA,$ZodTemplateLiteral:()=>sO,$ZodTransform:()=>YA,$ZodTuple:()=>qy,$ZodType:()=>a2,$ZodULID:()=>uA,$ZodURL:()=>lA,$ZodUUID:()=>nA,$ZodUndefined:()=>$A,$ZodUnion:()=>Cm,$ZodUnknown:()=>NA,$ZodVoid:()=>jA,$ZodXID:()=>pA,$ZodXor:()=>UA,$brand:()=>WP,$constructor:()=>J,$input:()=>hO,$output:()=>pO,Doc:()=>_m,JSONSchema:()=>G51,JSONSchemaGenerator:()=>Pk,NEVER:()=>qP,TimePrecision:()=>yO,_any:()=>FO,_array:()=>qO,_base64:()=>vk,_base64url:()=>bk,_bigint:()=>OO,_boolean:()=>CO,_catch:()=>BA1,_check:()=>H51,_cidrv4:()=>hk,_cidrv6:()=>gk,_coercedBigint:()=>$O,_coercedBoolean:()=>AO,_coercedDate:()=>GO,_coercedNumber:()=>SO,_coercedString:()=>vO,_cuid:()=>lk,_cuid2:()=>sk,_custom:()=>ZO,_date:()=>HO,_decode:()=>Py,_decodeAsync:()=>Ay,_default:()=>LA1,_discriminatedUnion:()=>TA1,_e164:()=>yk,_email:()=>tk,_emoji:()=>nk,_encode:()=>_y,_encodeAsync:()=>Cy,_endsWith:()=>xc,_enum:()=>AA1,_file:()=>WO,_float32:()=>RO,_float64:()=>EO,_gt:()=>b7,_gte:()=>$4,_guid:()=>Im,_includes:()=>yc,_int:()=>TO,_int32:()=>_O,_int64:()=>IO,_intersection:()=>RA1,_ipv4:()=>uk,_ipv6:()=>pk,_isoDate:()=>xO,_isoDateTime:()=>kO,_isoDuration:()=>wO,_isoTime:()=>zO,_jwt:()=>kk,_ksuid:()=>dk,_lazy:()=>GA1,_length:()=>Ka,_literal:()=>$A1,_lowercase:()=>vc,_lt:()=>v7,_lte:()=>I5,_mac:()=>bO,_map:()=>PA1,_max:()=>I5,_maxLength:()=>Ga,_maxSize:()=>E9,_mime:()=>zc,_min:()=>$4,_minLength:()=>L8,_minSize:()=>y7,_multipleOf:()=>R9,_nan:()=>KO,_nanoid:()=>ck,_nativeEnum:()=>OA1,_negative:()=>zk,_never:()=>VO,_nonnegative:()=>Mk,_nonoptional:()=>jA1,_nonpositive:()=>wk,_normalize:()=>wc,_null:()=>jO,_nullable:()=>NA1,_number:()=>MO,_optional:()=>DA1,_overwrite:()=>n6,_parse:()=>lc,_parseAsync:()=>fc,_pipe:()=>VA1,_positive:()=>xk,_promise:()=>KA1,_property:()=>Sk,_readonly:()=>UA1,_record:()=>_A1,_refine:()=>JO,_regex:()=>gc,_safeDecode:()=>$y,_safeDecodeAsync:()=>Dy,_safeEncode:()=>Oy,_safeEncodeAsync:()=>Iy,_safeParse:()=>dc,_safeParseAsync:()=>uc,_set:()=>CA1,_size:()=>Ha,_slugify:()=>Rc,_startsWith:()=>kc,_string:()=>gO,_stringFormat:()=>Ec,_stringbool:()=>e$,_success:()=>FA1,_superRefine:()=>XO,_symbol:()=>NO,_templateLiteral:()=>HA1,_toLowerCase:()=>Sc,_toUpperCase:()=>Tc,_transform:()=>IA1,_trim:()=>Mc,_tuple:()=>EA1,_uint32:()=>PO,_uint64:()=>DO,_ulid:()=>fk,_undefined:()=>LO,_union:()=>MA1,_unknown:()=>BO,_uppercase:()=>bc,_url:()=>Dm,_uuid:()=>ok,_uuidv4:()=>ak,_uuidv6:()=>ik,_uuidv7:()=>rk,_void:()=>UO,_xid:()=>mk,_xor:()=>SA1,clone:()=>A4,config:()=>V3,createStandardJSONSchemaMethod:()=>_c,createToJSONSchemaMethod:()=>t$,decode:()=>KP1,decodeAsync:()=>WP1,describe:()=>YO,encode:()=>GP1,encodeAsync:()=>qP1,extractDefs:()=>P9,finalize:()=>C9,flattenError:()=>Sm,formatError:()=>Tm,globalConfig:()=>ja,globalRegistry:()=>Q0,initializeContext:()=>_9,isValidBase64:()=>SA,isValidBase64URL:()=>j41,isValidJWT:()=>F41,locales:()=>$m,meta:()=>QO,parse:()=>sc,parseAsync:()=>mc,prettifyError:()=>cC,process:()=>F2,regexes:()=>$5,registry:()=>ek,safeDecode:()=>JP1,safeDecodeAsync:()=>YP1,safeEncode:()=>ZP1,safeEncodeAsync:()=>XP1,safeParse:()=>lC,safeParseAsync:()=>sC,toDotPath:()=>b41,toJSONSchema:()=>_k,treeifyError:()=>nC,util:()=>z1,version:()=>aA});s();s();var u41,qP=Object.freeze({status:"aborted"});function J(e,t,o){function a(c,l){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:l,constr:n,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,l);let f=n.prototype,m=Object.keys(f);for(let d=0;d<m.length;d++){let u=m[d];u in c||(c[u]=f[u].bind(c))}}let i=o?.Parent??Object;class r extends i{}Object.defineProperty(r,"name",{value:e});function n(c){var l;let f=o?.Parent?new r:this;a(f,c),(l=f._zod).deferred??(l.deferred=[]);for(let m of f._zod.deferred)m();return f}return Object.defineProperty(n,"init",{value:a}),Object.defineProperty(n,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(n,"name",{value:e}),n}var WP=Symbol("zod_brand"),r6=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},z9=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(u41=globalThis).__zod_globalConfig??(u41.__zod_globalConfig={});var ja=globalThis.__zod_globalConfig;function V3(e){return e&&Object.assign(ja,e),ja}s();s();var z1={};o0(z1,{BIGINT_FORMAT_RANGES:()=>iC,Class:()=>JP,NUMBER_FORMAT_RANGES:()=>aC,aborted:()=>T9,allowsEval:()=>QP,assert:()=>wP1,assertEqual:()=>yP1,assertIs:()=>xP1,assertNever:()=>zP1,assertNotEqual:()=>kP1,assignProp:()=>M9,base64ToUint8Array:()=>h41,base64urlToUint8Array:()=>FP1,cached:()=>nc,captureStackTrace:()=>Ey,cleanEnum:()=>jP1,cleanRegex:()=>xm,clone:()=>A4,cloneDef:()=>SP1,createTransparentProxy:()=>CP1,defineLazy:()=>k2,esc:()=>Ry,escapeRegex:()=>xe,explicitlyAborted:()=>rC,extend:()=>$P1,finalizeIssue:()=>O4,floatSafeRemainder:()=>XP,getElementAtPath:()=>TP1,getEnumValues:()=>km,getLengthableOrigin:()=>Mm,getParsedType:()=>PP1,getSizableOrigin:()=>wm,hexToUint8Array:()=>VP1,isObject:()=>Fa,isPlainObject:()=>S9,issue:()=>cc,joinValues:()=>a1,jsonStringifyReplacer:()=>rc,merge:()=>DP1,mergeDefs:()=>N8,normalizeParams:()=>S1,nullish:()=>w9,numKeys:()=>_P1,objectClone:()=>MP1,omit:()=>OP1,optionalKeys:()=>oC,parsedType:()=>y1,partial:()=>NP1,pick:()=>AP1,prefixIssues:()=>X4,primitiveTypes:()=>tC,promiseAllObject:()=>RP1,propertyKeyTypes:()=>zm,randomString:()=>EP1,required:()=>LP1,safeExtend:()=>IP1,shallowClone:()=>eC,slugify:()=>YP,stringifyPrimitive:()=>v1,uint8ArrayToBase64:()=>g41,uint8ArrayToBase64url:()=>BP1,uint8ArrayToHex:()=>UP1,unwrapMessage:()=>ym});s();function yP1(e){return e}function kP1(e){return e}function xP1(e){}function zP1(e){throw new Error("Unexpected value in exhaustive check")}function wP1(e){}function km(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>t.indexOf(+a)===-1).map(([a,i])=>i)}function a1(e,t="|"){return e.map(o=>v1(o)).join(t)}function rc(e,t){return typeof t=="bigint"?t.toString():t}function nc(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function w9(e){return e==null}function xm(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function XP(e,t){let o=e/t,a=Math.round(o),i=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-a)<i?0:o-a}var p41=Symbol("evaluating");function k2(e,t,o){let a;Object.defineProperty(e,t,{get(){if(a!==p41)return a===void 0&&(a=p41,a=o()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function MP1(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function M9(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function N8(...e){let t={};for(let o of e){let a=Object.getOwnPropertyDescriptors(o);Object.assign(t,a)}return Object.defineProperties({},t)}function SP1(e){return N8(e._zod.def)}function TP1(e,t){return t?t.reduce((o,a)=>o?.[a],e):e}function RP1(e){let t=Object.keys(e),o=t.map(a=>e[a]);return Promise.all(o).then(a=>{let i={};for(let r=0;r<t.length;r++)i[t[r]]=a[r];return i})}function EP1(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let a=0;a<e;a++)o+=t[Math.floor(Math.random()*t.length)];return o}function Ry(e){return JSON.stringify(e)}function YP(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Ey="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Fa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var QP=nc(()=>{if(ja.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function S9(e){if(Fa(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(Fa(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function eC(e){return S9(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function _P1(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}var PP1=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},zm=new Set(["string","number","symbol"]),tC=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A4(e,t,o){let a=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(a._zod.parent=e),a}function S1(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function CP1(e){let t;return new Proxy({},{get(o,a,i){return t??(t=e()),Reflect.get(t,a,i)},set(o,a,i,r){return t??(t=e()),Reflect.set(t,a,i,r)},has(o,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(o,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(o,a,i){return t??(t=e()),Reflect.defineProperty(t,a,i)}})}function v1(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function oC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var aC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},iC={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function AP1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=N8(e._zod.def,{get shape(){let n={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(n[c]=o.shape[c])}return M9(this,"shape",n),n},checks:[]});return A4(e,r)}function OP1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=N8(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete n[c]}return M9(this,"shape",n),n},checks:[]});return A4(e,r)}function $P1(e,t){if(!S9(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let r=e._zod.def.shape;for(let n in t)if(Object.getOwnPropertyDescriptor(r,n)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=N8(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return M9(this,"shape",r),r}});return A4(e,i)}function IP1(e,t){if(!S9(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=N8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return M9(this,"shape",a),a}});return A4(e,o)}function DP1(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=N8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return M9(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return A4(e,o)}function NP1(e,t,o){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let n=N8(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(o)for(let f in o){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(l[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(let f in c)l[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return M9(this,"shape",l),l},checks:[]});return A4(t,n)}function LP1(e,t,o){let a=N8(t._zod.def,{get shape(){let i=t._zod.def.shape,r={...i};if(o)for(let n in o){if(!(n in r))throw new Error(`Unrecognized key: "${n}"`);o[n]&&(r[n]=new e({type:"nonoptional",innerType:i[n]}))}else for(let n in i)r[n]=new e({type:"nonoptional",innerType:i[n]});return M9(this,"shape",r),r}});return A4(t,a)}function T9(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function rC(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function X4(e,t){return t.map(o=>{var a;return(a=o).path??(a.path=[]),o.path.unshift(e),o})}function ym(e){return typeof e=="string"?e:e?.message}function O4(e,t,o){let a=e.message?e.message:ym(e.inst?._zod.def?.error?.(e))??ym(t?.error?.(e))??ym(o.customError?.(e))??ym(o.localeError?.(e))??"Invalid input",{inst:i,continue:r,input:n,...c}=e;return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=n),c}function wm(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Mm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function y1(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}function cc(...e){let[t,o,a]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:a}:{...t}}function jP1(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function h41(e){let t=atob(e),o=new Uint8Array(t.length);for(let a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return o}function g41(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}function FP1(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return h41(t+o)}function BP1(e){return g41(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function VP1(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)o[a/2]=Number.parseInt(t.slice(a,a+2),16);return o}function UP1(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var JP=class{constructor(...t){}};var v41=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,rc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ba=J("$ZodError",v41),Y4=J("$ZodError",v41,{Parent:Error});function Sm(e,t=o=>o.message){let o={},a=[];for(let i of e.issues)i.path.length>0?(o[i.path[0]]=o[i.path[0]]||[],o[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:o}}function Tm(e,t=o=>o.message){let o={_errors:[]},a=(i,r=[])=>{for(let n of i.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(c=>a({issues:c},[...r,...n.path]));else if(n.code==="invalid_key")a({issues:n.issues},[...r,...n.path]);else if(n.code==="invalid_element")a({issues:n.issues},[...r,...n.path]);else{let c=[...r,...n.path];if(c.length===0)o._errors.push(t(n));else{let l=o,f=0;for(;f<c.length;){let m=c[f];f===c.length-1?(l[m]=l[m]||{_errors:[]},l[m]._errors.push(t(n))):l[m]=l[m]||{_errors:[]},l=l[m],f++}}}};return a(e),o}function nC(e,t=o=>o.message){let o={errors:[]},a=(i,r=[])=>{var n,c;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(f=>a({issues:f},[...r,...l.path]));else if(l.code==="invalid_key")a({issues:l.issues},[...r,...l.path]);else if(l.code==="invalid_element")a({issues:l.issues},[...r,...l.path]);else{let f=[...r,...l.path];if(f.length===0){o.errors.push(t(l));continue}let m=o,d=0;for(;d<f.length;){let u=f[d],p=d===f.length-1;typeof u=="string"?(m.properties??(m.properties={}),(n=m.properties)[u]??(n[u]={errors:[]}),m=m.properties[u]):(m.items??(m.items=[]),(c=m.items)[u]??(c[u]={errors:[]}),m=m.items[u]),p&&m.errors.push(t(l)),d++}}};return a(e),o}function b41(e){let t=[],o=e.map(a=>typeof a=="object"?a.key:a);for(let a of o)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function cC(e){let t=[],o=[...e.issues].sort((a,i)=>(a.path??[]).length-(i.path??[]).length);for(let a of o)t.push(`✖ ${a.message}`),a.path?.length&&t.push(` → at ${b41(a.path)}`);return t.join(`
517
+ `)),SE1=b1("div",{name:"JoySnackbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c,l;let{p:f,padding:m,borderRadius:d}=ke({theme:e,ownerState:t},["p","padding","borderRadius"]);return[F({"--Snackbar-radius":e.vars.radius.sm,"--Snackbar-decoratorChildRadius":"max((var(--Snackbar-radius) - var(--variant-borderWidth, 0px)) - var(--Snackbar-padding), min(var(--Snackbar-padding) + var(--variant-borderWidth, 0px), var(--Snackbar-radius) / 2))","--Button-minHeight":"var(--Snackbar-decoratorChildHeight)","--IconButton-size":"var(--Snackbar-decoratorChildHeight)","--Button-radius":"var(--Snackbar-decoratorChildRadius)","--IconButton-radius":"var(--Snackbar-decoratorChildRadius)","--Icon-color":"currentColor"},t.size==="sm"&&{"--Snackbar-padding":"0.75rem","--Snackbar-inset":"0.5rem","--Snackbar-decoratorChildHeight":"1.5rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.5rem"},t.size==="md"&&{"--Snackbar-padding":"1rem","--Snackbar-inset":"0.75rem","--Snackbar-decoratorChildHeight":"2rem","--Icon-fontSize":e.vars.fontSize.xl,gap:"0.625rem"},t.size==="lg"&&{"--Snackbar-padding":"1.25rem","--Snackbar-inset":"1rem","--Snackbar-decoratorChildHeight":"2.375rem","--Icon-fontSize":e.vars.fontSize.xl2,gap:"0.875rem"},{zIndex:e.vars.zIndex.snackbar,position:"fixed",display:"flex",alignItems:"center",minWidth:300,top:((o=t.anchorOrigin)==null?void 0:o.vertical)==="top"?"var(--Snackbar-inset)":void 0,left:((a=t.anchorOrigin)==null?void 0:a.horizontal)==="left"?"var(--Snackbar-inset)":void 0,bottom:((i=t.anchorOrigin)==null?void 0:i.vertical)==="bottom"?"var(--Snackbar-inset)":void 0,right:((r=t.anchorOrigin)==null?void 0:r.horizontal)==="right"?"var(--Snackbar-inset)":void 0},((n=t.anchorOrigin)==null?void 0:n.horizontal)==="center"&&{"--Snackbar-translateX":"-50%",left:"50%",transform:"translateX(var(--Snackbar-translateX))"},((c=t.anchorOrigin)==null?void 0:c.vertical)==="top"&&{"--_Snackbar-anchorBottom":"-1"},{animation:`${wE1} ${t.animationDuration}ms forwards`},!t.open&&{animationName:ME1},{boxShadow:e.vars.shadow.lg,backgroundColor:e.vars.palette.background.surface,padding:"var(--Snackbar-padding)",borderRadius:"var(--Snackbar-radius)"},e.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[t.size]}`],t.variant==="solid"&&t.color&&t.invertedColors&&Ea(t.color)(e),t.variant==="soft"&&t.color&&t.invertedColors&&_a(t.color)(e),(l=e.variants[t.variant])==null?void 0:l[t.color]),f!==void 0&&{"--Snackbar-padding":f},m!==void 0&&{"--Snackbar-padding":m},d!==void 0&&{"--Snackbar-radius":d}]}),TE1=b1("span",{name:"JoySnackbar",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inherit",flex:"none"}),RE1=b1("span",{name:"JoySnackbar",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inherit",flex:"none",marginLeft:"auto"}),EE1={vertical:"bottom",horizontal:"right"},_E1=O8.forwardRef(function(t,o){let a=W1({props:t,name:"JoySnackbar"}),{anchorOrigin:i=EE1,animationDuration:r=300,autoHideDuration:n=null,color:c="neutral",children:l,className:f,component:m,disableWindowBlurListener:d=!1,endDecorator:u,invertedColors:p=!1,onUnmount:b,open:g,size:x="md",slots:y={},slotProps:v,startDecorator:k,variant:w="outlined"}=a,T=I1(a,xE1),[A,_]=O8.useState(!0),[z,M]=O8.useState(!1),S=O8.useRef(b);S.current=b,O8.useEffect(()=>{if(g)M(!1),_(!1);else{M(!0);let Y=setTimeout(()=>{var q;_(!0),M(!1),(q=S.current)==null||q.call(S)},r);return()=>{clearTimeout(Y)}}},[g,r]);let N=F({},a,{anchorOrigin:i,autoHideDuration:n,color:c,animationDuration:r,disableWindowBlurListener:d,invertedColors:p,size:x,variant:w});delete N.onUnmount;let C=zE1(N),{getRootProps:R,onClickAway:O}=nS(N),P=Y=>{z||O(Y)},E=F({},T,{component:m,slots:y,slotProps:v}),[D,I]=P1("root",{ref:o,className:s2(C.root,f),elementType:SE1,externalForwardedProps:E,getSlotProps:R,ownerState:N}),[$,V]=P1("startDecorator",{className:C.startDecorator,elementType:TE1,externalForwardedProps:E,ownerState:N}),[K,X]=P1("endDecorator",{className:C.endDecorator,elementType:RE1,externalForwardedProps:E,ownerState:N}),e1=y.clickAway||HU;return!g&&A?null:(0,Ib.jsx)(e1,F({onClickAway:P},typeof v?.clickAway=="function"?v.clickAway(N):v?.clickAway,{children:(0,Q31.jsxs)(D,F({},I,{children:[k&&(0,Ib.jsx)($,F({},V,{children:k})),l,u&&(0,Ib.jsx)(K,F({},X,{children:u}))]}))}))}),cm=_E1;s();s();var PE1=xp({createStyledComponent:b1("div",{name:"JoyStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>W1({props:e,name:"JoyStack"})}),u2=PE1;s();s();R2();X1();var aP=L(H());g2();s();function e01(e){return J1("MuiTextarea",e)}var CE1=q1("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]),oP=CE1;var Db=L(f1()),t01=L(f1()),AE1=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],OE1=e=>{let{disabled:t,variant:o,color:a,size:i}=e,r={root:["root",t&&"disabled",o&&`variant${C1(o)}`,a&&`color${C1(a)}`,i&&`size${C1(i)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return U1(r,e01,{})},$E1=b1("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,a,i,r,n,c;let l=(o=e.variants[`${t.variant}`])==null?void 0:o[t.color];return[F({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.64,"--Textarea-decoratorColor":e.vars.palette.text.icon,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness,"--Textarea-focusedHighlight":(a=e.vars.palette[t.color==="neutral"?"primary":t.color])==null?void 0:a[500],'&:not([data-inverted-colors="false"])':F({},t.instanceColor&&{"--_Textarea-focusedHighlight":(i=e.vars.palette[t.instanceColor==="neutral"?"primary":t.instanceColor])==null?void 0:i[500]},{"--Textarea-focusedHighlight":`var(--_Textarea-focusedHighlight, ${e.vars.palette.focusVisible})`})},t.size==="sm"&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.375rem - 0.5px - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl},t.size==="md"&&{"--Textarea-minHeight":"2.25rem","--Textarea-paddingBlock":"calc(0.375rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(1.75rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},t.size==="lg"&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":e.vars.fontSize.xl2},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--Button-paddingBlock":"0px","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box"},t.variant!=="plain"&&{boxShadow:e.shadow.xs},{minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)"},e.typography[`body-${t.size}`],l,{backgroundColor:(r=l?.backgroundColor)!=null?r:e.vars.palette.background.surface,"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),{"&:hover":F({},(n=e.variants[`${t.variant}Hover`])==null?void 0:n[t.color],{backgroundColor:null,cursor:"text"}),[`&.${oP.disabled}`]:(c=e.variants[`${t.variant}Disabled`])==null?void 0:c[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}}]}),IE1=b1(lS,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),DE1=b1("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),NE1=b1("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:"var(--Textarea-decoratorColor)",cursor:"initial"}),LE1=aP.forwardRef(function(t,o){var a,i,r,n,c,l,f,m;let d=W1({props:t,name:"JoyTextarea"}),u=tm(d,oP),{propsToForward:p,rootStateClasses:b,inputStateClasses:g,getRootProps:x,getInputProps:y,formControl:v,focused:k,error:w=!1,disabled:T=!1,size:A="md",color:_="neutral",variant:z="outlined",startDecorator:M,endDecorator:S,minRows:N,maxRows:C,component:R,slots:O={},slotProps:P={}}=u,E=I1(u,AE1),D=(a=(i=t.disabled)!=null?i:v?.disabled)!=null?a:T,I=(r=(n=t.error)!=null?n:v?.error)!=null?r:w,$=(c=(l=t.size)!=null?l:v?.size)!=null?c:A,V=(f=t.color)!=null?f:I?"danger":(m=v?.color)!=null?m:_,K=F({instanceColor:I?"danger":t.color},d,{color:V,disabled:D,error:I,focused:k,size:$,variant:z}),X=OE1(K),e1=F({},E,{component:R,slots:O,slotProps:P}),[Y,q]=P1("root",{ref:o,className:[X.root,b],elementType:$E1,externalForwardedProps:e1,getSlotProps:x,ownerState:K}),[o1,W]=P1("textarea",{additionalProps:{id:v?.htmlFor,"aria-describedby":v?.["aria-describedby"]},className:[X.textarea,g],elementType:IE1,internalForwardedProps:F({},p,{minRows:N,maxRows:C}),externalForwardedProps:e1,getSlotProps:y,ownerState:K}),[Z,r1]=P1("startDecorator",{className:X.startDecorator,elementType:DE1,externalForwardedProps:e1,ownerState:K}),[x1,h1]=P1("endDecorator",{className:X.endDecorator,elementType:NE1,externalForwardedProps:e1,ownerState:K});return(0,t01.jsxs)(Y,F({},q,{children:[M&&(0,Db.jsx)(Z,F({},r1,{children:M})),(0,Db.jsx)(o1,F({},W)),S&&(0,Db.jsx)(x1,F({},h1,{children:S}))]}))}),Nb=LE1;s();s();R2();X1();var J3=L(H());A3();g2();s();function o01(e){return J1("MuiTooltip",e)}var XB2=q1("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var n01=L(f1()),iP=L(f1()),jE1=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],FE1=e=>{let{arrow:t,variant:o,color:a,size:i,placement:r,touch:n}=e,c={root:["root",t&&"tooltipArrow",n&&"touch",i&&`size${C1(i)}`,a&&`color${C1(a)}`,o&&`variant${C1(o)}`,`tooltipPlacement${C1(r.split("-")[0])}`],arrow:["arrow"]};return U1(c,o01,{})},BE1=b1("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var o,a,i;let r=(o=t.variants[e.variant])==null?void 0:o[e.color];return F({},e.size==="sm"&&{"--Icon-fontSize":t.vars.fontSize.md,"--Tooltip-arrowSize":"8px",padding:t.spacing(.25,.625)},e.size==="md"&&{"--Icon-fontSize":t.vars.fontSize.lg,"--Tooltip-arrowSize":"10px",padding:t.spacing(.5,.75)},e.size==="lg"&&{"--Icon-fontSize":t.vars.fontSize.xl,"--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1)},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.sm,boxShadow:t.shadow.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},t.typography[`body-${{sm:"xs",md:"sm",lg:"md"}[e.size]}`],r,!r.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:(a=e.placement)!=null&&a.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:(i=e.placement)!=null&&i.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),VE1=b1("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var o,a,i;let r=(o=e.variants[t.variant])==null?void 0:o[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&::before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:(a=r?.backgroundColor)!=null?a:e.vars.palette.background.surface,borderRightColor:(i=r?.backgroundColor)!=null?i:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${r.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),Lb=!1,a01=new V7,lm={x:0,y:0};function i01(e,t){return o=>{t&&t(o),e(o)}}function r01(e,t){return(o,...a)=>{t&&t(o,...a),e(o,...a)}}var UE1=J3.forwardRef(function(t,o){var a;let i=W1({props:t,name:"JoyTooltip"}),{children:r,className:n,component:c,arrow:l=!1,describeChild:f=!1,disableFocusListener:m=!1,disableHoverListener:d=!1,disableInteractive:u=!1,disableTouchListener:p=!1,enterDelay:b=100,enterNextDelay:g=0,enterTouchDelay:x=700,followCursor:y=!1,id:v,leaveDelay:k=0,leaveTouchDelay:w=1500,onClose:T,onOpen:A,open:_,disablePortal:z,direction:M,keepMounted:S,modifiers:N,placement:C="bottom",title:R,color:O="neutral",variant:P="solid",size:E="md",slots:D={},slotProps:I={}}=i,$=I1(i,jE1),[V,K]=J3.useState(),[X,e1]=J3.useState(null),Y=J3.useRef(!1),q=u||y,o1=G6(),W=G6(),Z=G6(),r1=G6(),[x1,h1]=B7({controlled:_,default:!1,name:"Tooltip",state:"open"}),T1=x1,F1=B0(v),V1=J3.useRef(void 0),n1=i4(()=>{V1.current!==void 0&&(document.body.style.WebkitUserSelect=V1.current,V1.current=void 0),r1.clear()});J3.useEffect(()=>n1,[n1]);let R1=b2=>{a01.clear(),Lb=!0,h1(!0),A&&!T1&&A(b2)},M1=i4(b2=>{a01.start(800+k,()=>{Lb=!1}),h1(!1),T&&T1&&T(b2),o1.start(150,()=>{Y.current=!1})}),w1=b2=>{Y.current&&b2.type!=="touchstart"||(V&&V.removeAttribute("title"),W.clear(),Z.clear(),b||Lb&&g?W.start(Lb?g:b,()=>{R1(b2)}):R1(b2))},B1=b2=>{W.clear(),Z.start(k,()=>{M1(b2)})},{isFocusVisibleRef:A1,onBlur:Z1,onFocus:c2,ref:d1}=De(),[,H1]=J3.useState(!1),$1=b2=>{Z1(b2),A1.current===!1&&(H1(!1),B1(b2))},G1=b2=>{V||K(b2.currentTarget),c2(b2),A1.current===!0&&(H1(!0),w1(b2))},E1=b2=>{Y.current=!0;let y4=r.props;y4.onTouchStart&&y4.onTouchStart(b2)},i1=b2=>{E1(b2),Z.clear(),o1.clear(),n1(),V1.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",r1.start(x,()=>{document.body.style.WebkitUserSelect=V1.current,w1(b2)})},s1=b2=>{r.props.onTouchEnd&&r.props.onTouchEnd(b2),n1(),Z.start(w,()=>{M1(b2)})};J3.useEffect(()=>{if(!T1)return;function b2(y4){(y4.key==="Escape"||y4.key==="Esc")&&M1(y4)}return document.addEventListener("keydown",b2),()=>{document.removeEventListener("keydown",b2)}},[M1,T1]);let j=Q1(K,o),U=Q1(d1,j),B=Q1(U7(r),U);typeof R!="number"&&!R&&(T1=!1);let G=J3.useRef(null),t1=b2=>{let y4=r.props;y4.onMouseMove&&y4.onMouseMove(b2),lm={x:b2.clientX,y:b2.clientY},G.current&&G.current.update()},p1={},g1=typeof R=="string";f?(p1.title=!T1&&g1&&!d?R:null,p1["aria-describedby"]=T1?F1:null):(p1["aria-label"]=g1?R:null,p1["aria-labelledby"]=T1&&!g1?F1:null);let k1=F({},p1,$,{component:c},r.props,{className:s2(n,r.props.className),onTouchStart:E1,ref:B},y?{onMouseMove:t1}:{}),N1={};p||(k1.onTouchStart=i1,k1.onTouchEnd=s1),d||(k1.onMouseOver=i01(w1,k1.onMouseOver),k1.onMouseLeave=i01(B1,k1.onMouseLeave),q||(N1.onMouseOver=w1,N1.onMouseLeave=B1)),m||(k1.onFocus=r01(G1,k1.onFocus),k1.onBlur=r01($1,k1.onBlur),q||(N1.onFocus=G1,N1.onBlur=$1));let w2=F({},i,{arrow:l,disableInteractive:q,placement:C,touch:Y.current,color:O,variant:P,size:E}),t0=FE1(w2),r5=F({},$,{component:c,slots:D,slotProps:I}),b4=J3.useMemo(()=>[{name:"arrow",enabled:!!X,options:{element:X,padding:6}},{name:"offset",options:{offset:[0,10]}},...N||[]],[X,N]),[Ce,to]=P1("root",{additionalProps:F({id:F1,popperRef:G,placement:C,anchorEl:y?{getBoundingClientRect:()=>({top:lm.y,left:lm.x,right:lm.x,bottom:lm.y,width:0,height:0})}:V,open:V?T1:!1,disablePortal:z,keepMounted:S,direction:M,modifiers:b4},N1),ref:null,className:t0.root,elementType:BE1,externalForwardedProps:r5,ownerState:w2}),[O7,C3]=P1("arrow",{ref:e1,className:t0.arrow,elementType:VE1,externalForwardedProps:r5,ownerState:w2});return(0,iP.jsxs)(J3.Fragment,{children:[J3.isValidElement(r)&&J3.cloneElement(r,k1),(0,iP.jsxs)(Ce,F({},to,!((a=i.slots)!=null&&a.root)&&{as:dr,slots:{root:c||"div"}},{children:[R,l?(0,n01.jsx)(O7,F({},C3)):null]}))]})}),Qe=UE1;s();s();s();var o2=e=>typeof e=="string",sm=()=>{let e,t,o=new Promise((a,i)=>{e=a,t=i});return o.resolve=e,o.reject=t,o},c01=e=>e==null?"":String(e),HE1=(e,t,o)=>{e.forEach(a=>{t[a]&&(o[a]=t[a])})},GE1=/###/g,l01=e=>e&&e.includes("###")?e.replace(GE1,"."):e,s01=e=>!e||o2(e),fm=(e,t,o)=>{let a=o2(t)?t.split("."):t,i=0;for(;i<a.length-1;){if(s01(e))return{};let r=l01(a[i]);!e[r]&&o&&(e[r]=new o),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return s01(e)?{}:{obj:e,k:l01(a[i])}},f01=(e,t,o)=>{let{obj:a,k:i}=fm(e,t,Object);if(a!==void 0||t.length===1){a[i]=o;return}let r=t[t.length-1],n=t.slice(0,t.length-1),c=fm(e,n,Object);for(;c.obj===void 0&&n.length;)r=`${n[n.length-1]}.${r}`,n=n.slice(0,n.length-1),c=fm(e,n,Object),c?.obj&&typeof c.obj[`${c.k}.${r}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${r}`]=o},KE1=(e,t,o,a)=>{let{obj:i,k:r}=fm(e,t,Object);i[r]=i[r]||[],i[r].push(o)},Fb=(e,t)=>{let{obj:o,k:a}=fm(e,t);if(o&&Object.prototype.hasOwnProperty.call(o,a))return o[a]},qE1=(e,t,o)=>{let a=Fb(e,o);return a!==void 0?a:Fb(t,o)},g01=(e,t,o)=>{for(let a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?o2(e[a])||e[a]instanceof String||o2(t[a])||t[a]instanceof String?o&&(e[a]=t[a]):g01(e[a],t[a],o):e[a]=t[a]);return e},$8=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),WE1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},ZE1=e=>o2(e)?e.replace(/[&<>"'\/]/g,t=>WE1[t]):e,lP=class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let o=this.regExpMap.get(t);if(o!==void 0)return o;let a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}},JE1=[" ",",","?","!",";"],XE1=new lP(20),YE1=(e,t,o)=>{t=t||"",o=o||"";let a=JE1.filter(n=>!t.includes(n)&&!o.includes(n));if(a.length===0)return!0;let i=XE1.getRegExp(`(${a.map(n=>n==="?"?"\\?":n).join("|")})`),r=!i.test(e);if(!r){let n=e.indexOf(o);n>0&&!i.test(e.substring(0,n))&&(r=!0)}return r},sP=(e,t,o=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let a=t.split(o),i=e;for(let r=0;r<a.length;){if(!i||typeof i!="object")return;let n,c="";for(let l=r;l<a.length;++l)if(l!==r&&(c+=o),c+=a[l],n=i[c],n!==void 0){if(["string","number","boolean"].includes(typeof n)&&l<a.length-1)continue;r+=l-r+1;break}i=n}return i},mm=e=>e?.replace(/_/g,"-"),QE1={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},fP=class e{constructor(t,o={}){this.init(t,o)}init(t,o={}){this.prefix=o.prefix||"i18next:",this.logger=t||QE1,this.options=o,this.debug=o.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,o,a,i){return i&&!this.debug?null:(t=t.map(r=>o2(r)?r.replace(/[\r\n\x00-\x1F\x7F]/g," "):r),o2(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[o](t))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},h7=new fP,Wn=class{constructor(){this.observers={}}on(t,o){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let i=this.observers[a].get(o)||0;this.observers[a].set(o,i+1)}),this}off(t,o){if(this.observers[t]){if(!o){delete this.observers[t];return}this.observers[t].delete(o)}}once(t,o){let a=(...i)=>{o(...i),this.off(t,a)};return this.on(t,a),this}emit(t,...o){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,r])=>{for(let n=0;n<r;n++)i(t,...o)})}},Bb=class extends Wn{constructor(t,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let o=this.options.ns.indexOf(t);o>-1&&this.options.ns.splice(o,1)}getResource(t,o,a,i={}){let r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,n=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,c;t.includes(".")?c=t.split("."):(c=[t,o],a&&(Array.isArray(a)?c.push(...a):o2(a)&&r?c.push(...a.split(r)):c.push(a)));let l=Fb(this.data,c);return!l&&!o&&!a&&t.includes(".")&&(t=c[0],o=c[1],a=c.slice(2).join(".")),l||!n||!o2(a)?l:sP(this.data?.[t]?.[o],a,r)}addResource(t,o,a,i,r={silent:!1}){let n=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,c=[t,o];a&&(c=c.concat(n?a.split(n):a)),t.includes(".")&&(c=t.split("."),i=o,o=c[1]),this.addNamespaces(o),f01(this.data,c,i),r.silent||this.emit("added",t,o,a,i)}addResources(t,o,a,i={silent:!1}){for(let r in a)(o2(a[r])||Array.isArray(a[r]))&&this.addResource(t,o,r,a[r],{silent:!0});i.silent||this.emit("added",t,o,a)}addResourceBundle(t,o,a,i,r,n={silent:!1,skipCopy:!1}){let c=[t,o];t.includes(".")&&(c=t.split("."),i=a,a=o,o=c[1]),this.addNamespaces(o);let l=Fb(this.data,c)||{};n.skipCopy||(a=JSON.parse(JSON.stringify(a))),i?g01(l,a,r):l={...l,...a},f01(this.data,c,l),n.silent||this.emit("added",t,o,a)}removeResourceBundle(t,o){this.hasResourceBundle(t,o)&&delete this.data[t][o],this.removeNamespaces(o),this.emit("removed",t,o)}hasResourceBundle(t,o){return this.getResource(t,o)!==void 0}getResourceBundle(t,o){return o||(o=this.options.defaultNS),this.getResource(t,o)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let o=this.getDataByLanguage(t);return!!(o&&Object.keys(o)||[]).find(i=>o[i]&&Object.keys(o[i]).length>0)}toJSON(){return this.data}},v01={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,o,a,i){return e.forEach(r=>{t=this.processors[r]?.process(t,o,a,i)??t}),t}},b01=Symbol("i18next/PATH_KEY");function e_1(){let e=[],t=Object.create(null),o;return t.get=(a,i)=>(o?.revoke?.(),i===b01?e:(e.push(i),o=Proxy.revocable(a,t),o.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Ia(e,t){let{[b01]:o}=e(e_1()),a=t?.keySeparator??".",i=t?.nsSeparator??":",r=t?.enableSelector==="strict";if(o.length>1&&i){let n=t?.ns,c=r?Array.isArray(n)?n:n?[n]:null:Array.isArray(n)?n:null;if(c&&(r?c:c.length>1?c.slice(1):[]).includes(o[0]))return`${o[0]}${i}${o.slice(1).join(a)}`}return o.join(a)}var rP=e=>!o2(e)&&typeof e!="boolean"&&typeof e!="number",Vb=class e extends Wn{constructor(t,o={}){super(),HE1(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=h7.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,o={interpolation:{}}){let a={...o};if(t==null)return!1;let i=this.resolve(t,a);if(i?.res===void 0)return!1;let r=rP(i.res);return!(a.returnObjects===!1&&r)}extractFromKey(t,o){let a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,r=o.ns||this.options.defaultNS||[],n=a&&t.includes(a),c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!YE1(t,a,i);if(n&&!c){let l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:o2(r)?[r]:r};let f=t.split(a);(a!==i||a===i&&this.options.ns.includes(f[0]))&&(r=f.shift()),t=f.join(i)}return{key:t,namespaces:o2(r)?[r]:r}}translate(t,o,a){let i=typeof o=="object"?{...o}:o;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=Ia(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(R=>typeof R=="function"?Ia(R,{...this.options,...i}):String(R));let r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,n=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:c,namespaces:l}=this.extractFromKey(t[t.length-1],i),f=l[l.length-1],m=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");let d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return u?r?{res:`${f}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:`${f}${m}${c}`:r?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(i)}:c;let p=this.resolve(t,i),b=p?.res,g=p?.usedKey||c,x=p?.exactUsedKey||c,y=["[object Number]","[object Function]","[object RegExp]"],v=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,w=i.count!==void 0&&!o2(i.count),T=e.hasDefaultValue(i),A=w?this.pluralResolver.getSuffix(d,i.count,i):"",_=i.ordinal&&w?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",z=w&&!i.ordinal&&i.count===0,M=z&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${A}`]||i[`defaultValue${_}`]||i.defaultValue,S=b;k&&!b&&T&&(S=M);let N=rP(S),C=Object.prototype.toString.apply(S);if(k&&S&&N&&!y.includes(C)&&!(o2(v)&&Array.isArray(S))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let R=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,S,{...i,ns:l}):`key '${c} (${this.language})' returned an object instead of string.`;return r?(p.res=R,p.usedParams=this.getUsedParamsDetails(i),p):R}if(n){let R=Array.isArray(S),O=R?[]:{},P=R?x:g;for(let E in S)if(Object.prototype.hasOwnProperty.call(S,E)){let D=`${P}${n}${E}`;T&&!b?O[E]=this.translate(D,{...i,defaultValue:rP(M)?M[E]:void 0,joinArrays:!1,ns:l}):O[E]=this.translate(D,{...i,joinArrays:!1,ns:l}),O[E]===D&&(O[E]=S[E])}b=O}}else if(k&&o2(v)&&Array.isArray(b))b=b.join(v),b&&(b=this.extendTranslation(b,t,i,a));else{let R=!1,O=!1;!this.isValidLookup(b)&&T&&(R=!0,b=M),this.isValidLookup(b)||(O=!0,b=c);let E=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:b,D=T&&M!==b&&this.options.updateMissing;if(O||R||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,w&&!D?`${c}${this.pluralResolver.getSuffix(d,i.count,i)}`:c,D?M:b),n){let K=this.resolve(c,{...i,keySeparator:!1});K&&K.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 I=[],$=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$&&$[0])for(let K=0;K<$.length;K++)I.push($[K]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(i.lng||this.language):I.push(i.lng||this.language);let V=(K,X,e1)=>{let Y=T&&e1!==b?e1:E;this.options.missingKeyHandler?this.options.missingKeyHandler(K,f,X,Y,D,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(K,f,X,Y,D,i),this.emit("missingKey",K,f,X,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?I.forEach(K=>{let X=this.pluralResolver.getSuffixes(K,i);z&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!X.includes(`${this.options.pluralSeparator}zero`)&&X.push(`${this.options.pluralSeparator}zero`),X.forEach(e1=>{V([K],c+e1,i[`defaultValue${e1}`]||M)})}):V(I,c,M))}b=this.extendTranslation(b,t,i,p,a),O&&b===c&&this.options.appendNamespaceToMissingKey&&(b=`${f}${m}${c}`),(O||R)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${m}${c}`:c,R?b:void 0,i))}return r?(p.res=b,p.usedParams=this.getUsedParamsDetails(i),p):b}extendTranslation(t,o,a,i,r){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let l=o2(t)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(l){let d=t.match(this.interpolator.nestingRegexp);f=d&&d.length}let m=a.replace&&!o2(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,a.lng||this.language||i.usedLng,a),l){let d=t.match(this.interpolator.nestingRegexp),u=d&&d.length;f<u&&(a.nest=!1)}!a.lng&&i&&i.res&&(a.lng=this.language||i.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...d)=>r?.[0]===d[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${o[0]}`),null):this.translate(...d,o),a)),a.interpolation&&this.interpolator.reset()}let n=a.postProcess||this.options.postProcess,c=o2(n)?[n]:n;return t!=null&&c?.length&&a.applyPostProcessor!==!1&&(t=v01.handle(c,t,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,o={}){let a,i,r,n,c;return o2(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?Ia(l,{...this.options,...o}):l)),t.forEach(l=>{if(this.isValidLookup(a))return;let f=this.extractFromKey(l,o),m=f.key;i=m;let d=f.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let u=o.count!==void 0&&!o2(o.count),p=u&&!o.ordinal&&o.count===0,b=o.context!==void 0&&(o2(o.context)||typeof o.context=="number")&&o.context!=="",g=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);d.forEach(x=>{this.isValidLookup(a)||(c=x,!this.checkedLoadedFor[`${g[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(this.checkedLoadedFor[`${g[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${g.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),g.forEach(y=>{if(this.isValidLookup(a))return;n=y;let v=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(v,m,y,x,o);else{let w;u&&(w=this.pluralResolver.getSuffix(y,o.count,o));let T=`${this.options.pluralSeparator}zero`,A=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.ordinal&&w.startsWith(A)&&v.push(m+w.replace(A,this.options.pluralSeparator)),v.push(m+w),p&&v.push(m+T)),b){let _=`${m}${this.options.contextSeparator||"_"}${o.context}`;v.push(_),u&&(o.ordinal&&w.startsWith(A)&&v.push(_+w.replace(A,this.options.pluralSeparator)),v.push(_+w),p&&v.push(_+T))}}let k;for(;k=v.pop();)this.isValidLookup(a)||(r=k,a=this.getResource(y,x,k,o))}))})}),{res:a,usedKey:i,exactUsedKey:r,usedLng:n,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,o,a,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,o,a,i):this.resourceStore.getResource(t,o,a,i)}getUsedParamsDetails(t={}){let o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!o2(t.replace),i=a?t.replace:t;if(a&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!a){i={...i};for(let r of o)delete i[r]}return i}static hasDefaultValue(t){let o="defaultValue";for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&a.startsWith(o)&&t[a]!==void 0)return!0;return!1}},Ub=class{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h7.create("languageUtils")}getScriptPartFromCode(t){if(t=mm(t),!t||!t.includes("-"))return null;let o=t.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(t){if(t=mm(t),!t||!t.includes("-"))return t;let o=t.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(t){if(o2(t)&&t.includes("-")){let o;try{o=Intl.getCanonicalLocales(t)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?t.toLowerCase():t)}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.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let o;return t.forEach(a=>{if(o)return;let i=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(i))&&(o=i)}),!o&&this.options.supportedLngs&&t.forEach(a=>{if(o)return;let i=this.getScriptPartFromCode(a);if(this.isSupportedCode(i))return o=i;let r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return o=r;o=this.options.supportedLngs.find(n=>n===r?!0:!n.includes("-")&&!r.includes("-")?!1:!!(n.includes("-")&&!r.includes("-")&&n.slice(0,n.indexOf("-"))===r||n.startsWith(r)&&r.length>1))}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(t,o){if(!t)return[];if(typeof t=="function"&&(t=t(o)),o2(t)&&(t=[t]),Array.isArray(t))return t;if(!o)return t.default||[];let a=t[o];return a||(a=t[this.getScriptPartFromCode(o)]),a||(a=t[this.formatLanguageCode(o)]),a||(a=t[this.getLanguagePartFromCode(o)]),a||(a=t.default),a||[]}toResolveHierarchy(t,o){let a=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],t),i=[],r=n=>{n&&(this.isSupportedCode(n)?i.push(n):this.logger.warn(`rejecting language code not found in supportedLngs: ${n}`))};return o2(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):o2(t)&&r(this.formatLanguageCode(t)),a.forEach(n=>{i.includes(n)||r(this.formatLanguageCode(n))}),i}},m01={zero:0,one:1,two:2,few:3,many:4,other:5},d01={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},mP=class{constructor(t,o={}){this.languageUtils=t,this.options=o,this.logger=h7.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,o={}){let a=mm(t==="dev"?"en":t),i=o.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:a,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let n;try{n=new Intl.PluralRules(a,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),d01;if(!t.match(/-|_/))return d01;let l=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(l,o)}return this.pluralRulesCache[r]=n,n}needsPlural(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,o,a={}){return this.getSuffixes(t,a).map(i=>`${o}${i}`)}getSuffixes(t,o={}){let a=this.getRule(t,o);return a||(a=this.getRule("dev",o)),a?a.resolvedOptions().pluralCategories.sort((i,r)=>m01[i]-m01[r]).map(i=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,o,a={}){let i=this.getRule(t,a);return i?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i.select(o)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",o,a))}},u01=(e,t,o,a=".",i=!0)=>{let r=qE1(e,t,o);return!r&&i&&o2(o)&&(r=sP(e,o,a),r===void 0&&(r=sP(t,o,a))),r},nP=e=>e.replace(/\$/g,"$$$$"),Hb=class{constructor(t={}){this.logger=h7.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(o=>o),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:o,escapeValue:a,useRawValueToEscape:i,prefix:r,prefixEscaped:n,suffix:c,suffixEscaped:l,formatSeparator:f,unescapeSuffix:m,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:p,nestingSuffix:b,nestingSuffixEscaped:g,nestingOptionsSeparator:x,maxReplaces:y,alwaysFormat:v}=t.interpolation;this.escape=o!==void 0?o:ZE1,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?$8(r):n||"{{",this.suffix=c?$8(c):l||"}}",this.formatSeparator=f||",",this.unescapePrefix=m?"":d?$8(d):"-",this.unescapeSuffix=this.unescapePrefix?"":m?$8(m):"",this.nestingPrefix=u?$8(u):p||$8("$t("),this.nestingSuffix=b?$8(b):g||$8(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=y||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(o,a)=>o?.source===a?(o.lastIndex=0,o):new RegExp(a,"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,o,a,i){let r,n,c,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=p=>{if(!p.includes(this.formatSeparator)){let y=u01(o,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,a,{...i,...o,interpolationkey:p}):y}let b=p.split(this.formatSeparator),g=b.shift().trim(),x=b.join(this.formatSeparator).trim();return this.format(u01(o,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),x,a,{...i,...o,interpolationkey:g})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let m=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>nP(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?nP(this.escape(p)):nP(p)}].forEach(p=>{for(c=0;r=p.regex.exec(t);){let b=r[1].trim();if(n=f(b),n===void 0)if(typeof m=="function"){let x=m(t,r,i);n=o2(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))n="";else if(d){n=r[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),n="";else!o2(n)&&!this.useRawValueToEscape&&(n=c01(n));let g=p.safeValue(n);if(t=t.replace(r[0],g),d?(p.regex.lastIndex+=n.length,p.regex.lastIndex-=r[0].length):p.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,o,a={}){let i,r,n,c=(l,f)=>{let m=this.nestingOptionsSeparator;if(!l.includes(m))return l;let d=l.split(new RegExp(`${$8(m)}[ ]*{`)),u=`{${d[1]}`;l=d[0],u=this.interpolate(u,n);let p=u.match(/'/g),b=u.match(/"/g);((p?.length??0)%2===0&&!b||(b?.length??0)%2!==0)&&(u=u.replace(/'/g,'"'));try{n=JSON.parse(u),f&&(n={...f,...n})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${m}${u}`}return n.defaultValue&&n.defaultValue.includes(this.prefix)&&delete n.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];n={...a},n=n.replace&&!o2(n.replace)?n.replace:n,n.applyPostProcessor=!1,delete n.defaultValue;let f=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(f!==-1&&(l=i[1].slice(f).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),i[1]=i[1].slice(0,f)),r=o(c.call(this,i[1].trim(),n),n),r&&i[0]===t&&!o2(r))return r;o2(r)||(r=c01(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),l.length&&(r=l.reduce((m,d)=>this.format(m,d,a.lng,{...a,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}},t_1=e=>{let t=e.toLowerCase().trim(),o={};if(e.includes("(")){let a=e.split("(");t=a[0].toLowerCase().trim();let i=a[1].slice(0,-1);t==="currency"&&!i.includes(":")?o.currency||(o.currency=i.trim()):t==="relativetime"&&!i.includes(":")?o.range||(o.range=i.trim()):i.split(";").forEach(n=>{if(n){let[c,...l]=n.split(":"),f=l.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();o[m]||(o[m]=f),f==="false"&&(o[m]=!1),f==="true"&&(o[m]=!0),isNaN(f)||(o[m]=parseInt(f,10))}})}return{formatName:t,formatOptions:o}},p01=e=>{let t={};return(o,a,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});let n=a+JSON.stringify(r),c=t[n];return c||(c=e(mm(a),i),t[n]=c),c(o)}},o_1=e=>(t,o,a)=>e(mm(o),a)(t),dP=class{constructor(t={}){this.logger=h7.create("formatter"),this.options=t,this.init(t)}init(t,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";let a=o.cacheInBuiltFormats?p01:o_1;this.formats={number:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r});return c=>n.format(c)}),currency:a((i,r)=>{let n=new Intl.NumberFormat(i,{...r,style:"currency"});return c=>n.format(c)}),datetime:a((i,r)=>{let n=new Intl.DateTimeFormat(i,{...r});return c=>n.format(c)}),relativetime:a((i,r)=>{let n=new Intl.RelativeTimeFormat(i,{...r});return c=>n.format(c,r.range||"day")}),list:a((i,r)=>{let n=new Intl.ListFormat(i,{...r});return c=>n.format(c)})}}add(t,o){this.formats[t.toLowerCase().trim()]=o}addCached(t,o){this.formats[t.toLowerCase().trim()]=p01(o)}format(t,o,a,i={}){if(!o||t==null)return t;let r=o.split(this.formatSeparator),n=[];for(let l=0;l<r.length;l++){let f=r[l];for(;f.indexOf("(")>-1&&!f.includes(")")&&l+1<r.length;)f=`${f}${this.formatSeparator}${r[++l]}`;n.push(f)}return n.reduce((l,f)=>{let{formatName:m,formatOptions:d}=t_1(f);if(this.formats[m]){let u=l;try{let p=i?.formatParams?.[i.interpolationkey]||{},b=p.locale||p.lng||i.locale||i.lng||a;u=this.formats[m](l,b,{...d,...i,...p})}catch(p){this.logger.warn(p)}return u}else this.logger.warn(`there was no format function for ${m}`);return l},t)}},a_1=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},uP=class extends Wn{constructor(t,o,a,i={}){super(),this.backend=t,this.store=o,this.services=a,this.languageUtils=a.languageUtils,this.options=i,this.logger=h7.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?.init?.(a,i.backend,i)}queueLoad(t,o,a,i){let r={},n={},c={},l={};return t.forEach(f=>{let m=!0;o.forEach(d=>{let u=`${f}|${d}`;!a.reload&&this.store.hasResourceBundle(f,d)?this.state[u]=2:this.state[u]<0||(this.state[u]===1?n[u]===void 0&&(n[u]=!0):(this.state[u]=1,m=!1,n[u]===void 0&&(n[u]=!0),r[u]===void 0&&(r[u]=!0),l[d]===void 0&&(l[d]=!0)))}),m||(c[f]=!0)}),(Object.keys(r).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(n),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(l)}}loaded(t,o,a){let i=t.split("|"),r=i[0],n=i[1];o&&this.emit("failedLoading",r,n,o),!o&&a&&this.store.addResourceBundle(r,n,a,void 0,void 0,{skipCopy:!0}),this.state[t]=o?-1:2,o&&a&&(this.state[t]=0);let c={};this.queue.forEach(l=>{KE1(l.loaded,[r],n),a_1(l,t),o&&l.errors.push(o),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(f=>{c[f]||(c[f]={});let m=l.loaded[f];m.length&&m.forEach(d=>{c[f][d]===void 0&&(c[f][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(l=>!l.done)}read(t,o,a,i=0,r=this.retryTimeout,n){if(!t.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:o,fcName:a,tried:i,wait:r,callback:n});return}this.readingCalls++;let c=(f,m)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(f&&m&&i<this.maxRetries){setTimeout(()=>{this.read(t,o,a,i+1,r*2,n)},r);return}n(f,m)},l=this.backend[a].bind(this.backend);if(l.length===2){try{let f=l(t,o);f&&typeof f.then=="function"?f.then(m=>c(null,m)).catch(c):c(null,f)}catch(f){c(f)}return}return l(t,o,c)}prepareLoading(t,o,a={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();o2(t)&&(t=this.languageUtils.toResolveHierarchy(t)),o2(o)&&(o=[o]);let r=this.queueLoad(t,o,a,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(n=>{this.loadOne(n)})}load(t,o,a){this.prepareLoading(t,o,{},a)}reload(t,o,a){this.prepareLoading(t,o,{reload:!0},a)}loadOne(t,o=""){let a=t.split("|"),i=a[0],r=a[1];this.read(i,r,"read",void 0,void 0,(n,c)=>{n&&this.logger.warn(`${o}loading namespace ${r} for language ${i} failed`,n),!n&&c&&this.logger.log(`${o}loaded namespace ${r} for language ${i}`,c),this.loaded(t,n,c)})}saveMissing(t,o,a,i,r,n={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${a}" as the namespace "${o}" 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(!(a==null||a==="")){if(this.backend?.create){let l={...n,isUpdate:r},f=this.backend.create.bind(this.backend);if(f.length<6)try{let m;f.length===5?m=f(t,o,a,i,l):m=f(t,o,a,i),m&&typeof m.then=="function"?m.then(d=>c(null,d)).catch(c):c(null,m)}catch(m){c(m)}else f(t,o,a,i,c,l)}!t||!t[0]||this.store.addResource(t[0],o,a,i)}}},cP=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),o2(e[1])&&(t.defaultValue=e[1]),o2(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let o=e[3]||e[2];Object.keys(o).forEach(a=>{t[a]=o[a]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),h01=e=>(o2(e.ns)&&(e.ns=[e.ns]),o2(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),o2(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),jb=()=>{},i_1=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})},pP=class e extends Wn{constructor(t={},o){if(super(),this.options=h01(t),this.services={},this.logger=h7,this.modules={external:[]},i_1(this),o&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,o),this;setTimeout(()=>{this.init(t,o)},0)}}init(t={},o){this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),t.defaultNS==null&&t.ns&&(o2(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let a=cP();this.options={...a,...this.options,...h01(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler);let i=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?h7.init(i(this.modules.logger),this.options):h7.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=dP;let m=new Ub(this.options);this.store=new Bb(this.options.resources,this.options);let d=this.services;d.logger=h7,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new mP(m,{prepend:this.options.pluralSeparator}),f&&(d.formatter=i(f),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Hb(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new uP(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Vb(this.services,this.options),this.translator.on("*",(u,...p)=>{this.emit(u,...p)}),this.modules.external.forEach(u=>{u.init&&u.init(this)})}if(this.format=this.options.interpolation.format,o||(o=jb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[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(f=>{this[f]=(...m)=>this.store[f](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...m)=>(this.store[f](...m),this)});let c=sm(),l=()=>{let f=(m,d)=>{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),c.resolve(d),o(m,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),c}loadResources(t,o=jb){let a=o,i=o2(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let r=[],n=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&(r.includes(f)||r.push(f))})};i?n(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>n(l)),this.options.preload?.forEach?.(c=>n(c)),this.services.backendConnector.load(r,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(c)})}else a(null)}reloadResources(t,o,a){let i=sm();return typeof t=="function"&&(a=t,t=void 0),typeof o=="function"&&(a=o,o=void 0),t||(t=this.languages),o||(o=this.options.ns),a||(a=jb),this.services.backendConnector.reload(t,o,r=>{i.resolve(),a(r)}),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"&&v01.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"].includes(t)){for(let o=0;o<this.languages.length;o++){let a=this.languages[o];if(!["cimode","dev"].includes(a)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,o){this.isLanguageChangingTo=t;let a=sm();this.emit("languageChanging",t);let i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},r=(c,l)=>{l?this.isLanguageChangingTo===t&&(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve((...f)=>this.t(...f)),o&&o(c,(...f)=>this.t(...f))},n=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);let l=o2(c)?c:c&&c[0],f=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(o2(c)?[c]:c);f&&(this.language||i(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,m=>{r(m,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?n(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(t),a}getFixedT(t,o,a,i){let r=i?.scopeNs,n=(c,l,...f)=>{let m;typeof l!="object"?m=this.options.overloadTranslationOptionHandler([c,l].concat(f)):m={...l},m.lng=m.lng||n.lng,m.lngs=m.lngs||n.lngs;let d=m.ns!==void 0&&m.ns!==null;m.ns=m.ns||n.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||a||n.keyPrefix);let u={...this.options,...m};Array.isArray(r)&&!d&&(u.ns=r),typeof m.keyPrefix=="function"&&(m.keyPrefix=Ia(m.keyPrefix,u));let p=this.options.keySeparator||".",b;return m.keyPrefix&&Array.isArray(c)?b=c.map(g=>(typeof g=="function"&&(g=Ia(g,u)),`${m.keyPrefix}${p}${g}`)):(typeof c=="function"&&(c=Ia(c,u)),b=m.keyPrefix?`${m.keyPrefix}${p}${c}`:c),this.t(b,m)};return o2(t)?n.lng=t:n.lngs=t,n.ns=o,n.keyPrefix=a,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,o={}){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;let a=o.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let n=(c,l)=>{let f=this.services.backendConnector.state[`${c}|${l}`];return f===-1||f===0||f===2};if(o.precheck){let c=o.precheck(this,n);if(c!==void 0)return c}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||n(a,t)&&(!i||n(r,t)))}loadNamespaces(t,o){let a=sm();return this.options.ns?(o2(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{a.resolve(),o&&o(i)}),a):(o&&o(),Promise.resolve())}loadLanguages(t,o){let a=sm();o2(t)&&(t=[t]);let i=this.options.preload||[],r=t.filter(n=>!i.includes(n)&&this.services.languageUtils.isSupportedCode(n));return r.length?(this.options.preload=i.concat(r),this.loadResources(n=>{a.resolve(),o&&o(n)}),a):(o&&o(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let i=new Intl.Locale(t);if(i&&i.getTextInfo){let r=i.getTextInfo();if(r&&r.direction)return r.direction}}catch{}let o=["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"],a=this.services?.languageUtils||new Ub(cP());return t.toLowerCase().indexOf("-latn")>1?"ltr":o.includes(a.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},o){let a=new e(t,o);return a.createInstance=e.createInstance,a}cloneInstance(t={},o=jb){let a=t.forkResourceStore;a&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},r=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(c=>{r[c]=this[c]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},a){let c=Object.keys(this.store.data).reduce((l,f)=>(l[f]={...this.store.data[f]},l[f]=Object.keys(l[f]).reduce((m,d)=>(m[d]={...l[f][d]},m),l[f]),l),{});r.store=new Bb(c,i),r.services.resourceStore=r.store}if(t.interpolation){let l={...cP().interpolation,...this.options.interpolation,...t.interpolation},f={...i,interpolation:l};r.services.interpolator=new Hb(f)}return r.translator=new Vb(r.services,i),r.translator.on("*",(c,...l)=>{r.emit(c,...l)}),r.init(i,o),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},$0=pP.createInstance(),y01=$0.createInstance,yH2=$0.dir,kH2=$0.init,xH2=$0.loadResources,zH2=$0.reloadResources,wH2=$0.use,MH2=$0.changeLanguage,SH2=$0.getFixedT,TH2=$0.t,RH2=$0.exists,EH2=$0.setDefaultNamespace,_H2=$0.hasLoadedNamespace,PH2=$0.loadNamespaces,CH2=$0.loadLanguages;s();var{slice:r_1,forEach:n_1}=[];function c_1(e){return n_1.call(r_1.call(arguments,1),t=>{if(t)for(let o in t)e[o]===void 0&&(e[o]=t[o])}),e}function l_1(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(o=>o.test(e))}var k01=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,s_1=function(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},i=encodeURIComponent(t),r=`${e}=${i}`;if(a.maxAge>0){let n=a.maxAge-0;if(Number.isNaN(n))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(n)}`}if(a.domain){if(!k01.test(a.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${a.domain}`}if(a.path){if(!k01.test(a.path))throw new TypeError("option path is invalid");r+=`; Path=${a.path}`}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+=`; Expires=${a.expires.toUTCString()}`}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite)switch(typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a.partitioned&&(r+="; Partitioned"),r},x01={create(e,t,o,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};o&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+o*60*1e3)),a&&(i.domain=a),document.cookie=s_1(e,t,i)},read(e){let t=`${e}=`,o=document.cookie.split(";");for(let a=0;a<o.length;a++){let i=o[a];for(;i.charAt(0)===" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null},remove(e,t){this.create(e,"",-1,t)}},f_1={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return x01.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:o,cookieMinutes:a,cookieDomain:i,cookieOptions:r}=t;o&&typeof document<"u"&&x01.create(o,e,a,i,r)}},m_1={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,o;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));let r=a.substring(1).split("&");for(let n=0;n<r.length;n++){let c=r[n].indexOf("=");c>0&&r[n].substring(0,c)===t&&(o=r[n].substring(c+1))}}return o}},d_1={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:o}=e,a;if(typeof window<"u"){let{hash:i}=window.location;if(i&&i.length>2){let r=i.substring(1);if(t){let n=r.split("&");for(let c=0;c<n.length;c++){let l=n[c].indexOf("=");l>0&&n[c].substring(0,l)===t&&(a=n[c].substring(l+1))}}if(a)return a;if(!a&&o>-1){let n=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof o=="number"?o:0]?.replace("/",""):void 0}}}return a}},Zn=null,z01=()=>{if(Zn!==null)return Zn;try{if(Zn=typeof window<"u"&&window.localStorage!==null,!Zn)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Zn=!1}return Zn},u_1={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&z01())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:o}=t;o&&z01()&&window.localStorage.setItem(o,e)}},Jn=null,w01=()=>{if(Jn!==null)return Jn;try{if(Jn=typeof window<"u"&&window.sessionStorage!==null,!Jn)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Jn=!1}return Jn},p_1={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&w01())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:o}=t;o&&w01()&&window.sessionStorage.setItem(o,e)}},h_1={name:"navigator",lookup(e){let t=[];if(typeof navigator<"u"){let{languages:o,userLanguage:a,language:i}=navigator;if(o)for(let r=0;r<o.length;r++)t.push(o[r]);a&&t.push(a),i&&t.push(i)}return t.length>0?t:void 0}},g_1={name:"htmlTag",lookup(e){let{htmlTag:t}=e,o,a=t||(typeof document<"u"?document.documentElement:null);return a&&typeof a.getAttribute=="function"&&(o=a.getAttribute("lang")),o}},v_1={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;let o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof t=="number"?t:0]?.replace("/",""):void 0}},b_1={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,o=typeof t=="number"?t+1:1,a=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(a)return a[o]}},M01=!1;try{document.cookie,M01=!0}catch{}var S01=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];M01||S01.splice(1,1);var y_1=()=>({order:S01,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),dm=class{constructor(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,o)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=c_1(o,this.options||{},y_1()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=i=>i.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(f_1),this.addDetector(m_1),this.addDetector(u_1),this.addDetector(p_1),this.addDetector(h_1),this.addDetector(g_1),this.addDetector(v_1),this.addDetector(b_1),this.addDetector(d_1)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,o=[];return t.forEach(a=>{if(this.detectors[a]){let i=this.detectors[a].lookup(this.options);i&&typeof i=="string"&&(i=[i]),i&&(o=o.concat(i))}}),o=o.filter(a=>a!=null&&!l_1(a)).map(a=>this.options.convertDetectedLanguage(a)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}cacheUserLanguage(t){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||o.forEach(a=>{this.detectors[a]&&this.detectors[a].cacheUserLanguage(t,this.options)}))}};dm.type="languageDetector";s();s();var T_1=L(H(),1);s();var pm=L(H(),1);s();var k_1=L(R01());s();var Gb=(e,t,o,a)=>{let i=[o,{code:t,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);e6(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},E01={},v9=(e,t,o,a)=>{e6(o)&&E01[o]||(e6(o)&&(E01[o]=new Date),Gb(e,t,o,a))},_01=(e,t)=>()=>{if(e.isInitialized)t();else{let o=()=>{setTimeout(()=>{e.off("initialized",o)},0),t()};e.on("initialized",o)}},Kb=(e,t,o)=>{e.loadNamespaces(t,_01(e,o))},hP=(e,t,o,a)=>{if(e6(o)&&(o=[o]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Kb(e,o,a);o.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,_01(e,a))},P01=(e,t,o={})=>!t.languages||!t.languages.length?(v9(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:o.lng,precheck:(a,i)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}});var e6=e=>typeof e=="string",gP=e=>typeof e=="object"&&e!==null;s();s();var x_1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z_1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},w_1=e=>z_1[e],vP=e=>e.replace(x_1,w_1);var bP={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:vP,transDefaultProps:void 0},qb=(e={})=>{bP={...bP,...e}},um=()=>bP;s();var C01,Wb=e=>{C01=e},t6=()=>C01;s();var A01=L(H(),1);s();var Zb={type:"3rdParty",init(e){qb(e.options.react),Wb(e)}};var I8=(0,A01.createContext)(),Jb=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};s();var N01=L(H(),1);s();var Da=L(H(),1);s();s();var Xn=class e extends Error{constructor(t,o,a){super(t),this.name="TranslationParserError",this.position=o,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,e)}};s();var O01={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},R_1=new RegExp(Object.keys(O01).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),$01=e=>e.replace(R_1,t=>O01[t]).replace(/&#(\d+);/g,(t,o)=>String.fromCharCode(parseInt(o,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,o)=>String.fromCharCode(parseInt(o,16)));s();var I01=e=>{let t=[],o=0,a="",i=()=>{a&&(t.push({type:"Text",value:a,position:o-a.length}),a="")};for(;o<e.length;){let r=e[o];if(r==="<"){let n=e.slice(o).match(/^<(\d+)>/);if(n)i(),t.push({type:"TagOpen",value:n[0],position:o,tagNumber:parseInt(n[1],10)}),o+=n[0].length;else{let c=e.slice(o).match(/^<\/(\d+)>/);c?(i(),t.push({type:"TagClose",value:c[0],position:o,tagNumber:parseInt(c[1],10)}),o+=c[0].length):(a+=r,o+=1)}}else a+=r,o+=1}return i(),t};s();var hm=L(H(),1);var E_1=(e,t,o)=>{let{type:a,props:i={}}=e;if(i.children&&Array.isArray(i.children)&&o){let{children:r,...n}=i;return hm.default.createElement(a,n,...t)}return t.length===0?hm.default.createElement(a,i):t.length===1?hm.default.createElement(a,i,t[0]):hm.default.createElement(a,i,...t)},D01=(e,t=[])=>{if(!e)return[];let o=I01(e),a=[],i=[],r=new Set,n=()=>{if(i.length===0)return t;let c=i[i.length-1];return c.declaration.props?.children&&Array.isArray(c.declaration.props.children)?c.declaration.props.children:c.declarations};if(o.forEach(c=>{switch(c.type){case"Text":{let l=$01(c.value);(i.length>0?i[i.length-1].children:a).push(l)}break;case"TagOpen":{let{tagNumber:l}=c,f=n(),m=f[l];if(!m){r.add(l);let d=`<${l}>`;(i.length>0?i[i.length-1].children:a).push(d);break}i.push({tagNumber:l,children:[],position:c.position,declaration:m,declarations:f})}break;case"TagClose":{let{tagNumber:l}=c;if(r.has(l)){let u=`</${l}>`;(i.length>0?i[i.length-1].children:a).push(u),r.delete(l);break}if(i.length===0)throw new Xn(`Unexpected closing tag </${l}> at position ${c.position}`,c.position,e);let f=i.pop();if(f.tagNumber!==l)throw new Xn(`Mismatched tags: expected </${f.tagNumber}> but got </${l}> at position ${c.position}`,c.position,e);let m=E_1(f.declaration,f.children,f.declarations);(i.length>0?i[i.length-1].children:a).push(m)}break}}),i.length>0){let c=i[i.length-1];throw new Xn(`Unclosed tag <${c.tagNumber}> at position ${c.position}`,c.position,e)}return a};function Xb({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let c=r||t6();if(!c)return v9(c,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:e}),Da.default.createElement(Da.default.Fragment,{},t);let l=n||c.t?.bind(c)||(u=>u),f=a||l.ns||c.options?.defaultNS;f=e6(f)?[f]:f||["translation"];let m=i;c.options?.interpolation?.defaultVariables&&(m=i&&Object.keys(i).length>0?{...i,...c.options.interpolation.defaultVariables}:{...c.options.interpolation.defaultVariables});let d=l(e,{defaultValue:t,...m,ns:f});try{let u=D01(d,o);return Da.default.createElement(Da.default.Fragment,{},...u)}catch(u){return Gb(c,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${e}": ${u.message}`,{i18nKey:e,error:u}),Da.default.createElement(Da.default.Fragment,{},d)}}Xb.displayName="IcuTransWithoutContext";function L01({i18nKey:e,defaultTranslation:t,content:o,ns:a,values:i={},i18n:r,t:n}){let{i18n:c,defaultNS:l}=(0,N01.useContext)(I8)||{},f=r||c||t6(),m=n||f?.t.bind(f);return Xb({i18nKey:e,defaultTranslation:t,content:o,ns:a||m?.ns||l||f?.options?.defaultNS,values:i,i18n:f,t:n})}L01.displayName="IcuTrans";s();var I0=L(H(),1),V01=L(kP(),1);var L_1=(e,t)=>{if(e6(t))return t;if(gP(t)&&e6(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){let o=e[e.length-1];return typeof o=="function"?"":o}return e},j_1={t:L_1,ready:!1},F_1=()=>()=>{},o6=(e,t={})=>{let{i18n:o}=t,{i18n:a,defaultNS:i}=(0,I0.useContext)(I8)||{},r=o||a||t6();r&&!r.reportNamespaces&&(r.reportNamespaces=new Jb),r||v9(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let n=(0,I0.useMemo)(()=>({...um(),...r?.options?.react,...t}),[r,t]),{useSuspense:c,keyPrefix:l}=n,f=e||i||r?.options?.defaultNS,m=e6(f)?[f]:f||["translation"],d=(0,I0.useMemo)(()=>m,m);r?.reportNamespaces?.addUsedNamespaces?.(d);let u=(0,I0.useRef)(0),p=(0,I0.useCallback)(M=>{if(!r)return F_1;let{bindI18n:S,bindI18nStore:N}=n,C=()=>{u.current+=1,M()};return S&&r.on(S,C),N&&r.store.on(N,C),()=>{S&&S.split(" ").forEach(R=>r.off(R,C)),N&&N.split(" ").forEach(R=>r.store.off(R,C))}},[r,n]),b=(0,I0.useRef)(),g=(0,I0.useCallback)(()=>{if(!r)return j_1;let M=!!(r.isInitialized||r.initializedStoreOnce)&&d.every(P=>P01(P,r,n)),S=t.lng||r.language,N=u.current,C=b.current;if(C&&C.ready===M&&C.lng===S&&C.keyPrefix===l&&C.revision===N)return C;let O={t:r.getFixedT(S,n.nsMode==="fallback"?d:d[0],l,{scopeNs:d}),ready:M,lng:S,keyPrefix:l,revision:N};return b.current=O,O},[r,d,l,n,t.lng]),[x,y]=(0,I0.useState)(0),{t:v,ready:k}=(0,V01.useSyncExternalStore)(p,g,g);(0,I0.useEffect)(()=>{if(r&&!k&&!c){let M=()=>y(S=>S+1);t.lng?hP(r,t.lng,d,M):Kb(r,d,M)}},[r,t.lng,d,k,c,x]);let w=r||{},T=(0,I0.useRef)(null),A=(0,I0.useRef)(),_=M=>{let S=Object.getOwnPropertyDescriptors(M);S.__original&&delete S.__original;let N=Object.create(Object.getPrototypeOf(M),S);if(!Object.prototype.hasOwnProperty.call(N,"__original"))try{Object.defineProperty(N,"__original",{value:M,writable:!1,enumerable:!1,configurable:!1})}catch{}return N},z=(0,I0.useMemo)(()=>{let M=w,S=M?.language,N=M;M&&(T.current&&T.current.__original===M?A.current!==S?(N=_(M),T.current=N,A.current=S):N=T.current:(N=_(M),T.current=N,A.current=S));let C=!k&&!c?(...O)=>(v9(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),v(...O)):v,R=[C,N,k];return R.t=C,R.i18n=N,R.ready=k,R},[v,w,k,w.resolvedLanguage,w.language,w.languages]);if(r&&c&&!k)throw new Promise(M=>{let S=()=>M();t.lng?hP(r,t.lng,d,S):Kb(r,d,S)});return z};s();var U01=L(H(),1);s();s();var Yb=L(H(),1);function Qb({i18n:e,defaultNS:t,children:o}){let a=(0,Yb.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,Yb.createElement)(I8.Provider,{value:a},o)}s();var G_1=L(H(),1);s();var V_1=L(H(),1);s();s();var ty=[{code:"en",nativeName:"English",englishName:"English",flagCode:"US",dir:"ltr",isDefault:!0},{code:"pt-BR",nativeName:"Português (BR)",englishName:"Portuguese (Brazil)",flagCode:"BR",dir:"ltr"},{code:"es",nativeName:"Español",englishName:"Spanish",flagCode:"ES",dir:"ltr"},{code:"ar",nativeName:"العربية",englishName:"Arabic",flagCode:"AE",dir:"rtl"},{code:"az",nativeName:"Azərbaycan dili",englishName:"Azerbaijani",flagCode:"AZ",dir:"ltr"},{code:"bg",nativeName:"Български",englishName:"Bulgarian",flagCode:"BG",dir:"ltr"},{code:"bn",nativeName:"বাংলা",englishName:"Bengali",flagCode:"BD",dir:"ltr"},{code:"ca",nativeName:"Català",englishName:"Catalan",flagCode:"ES",dir:"ltr"},{code:"cs",nativeName:"Čeština",englishName:"Czech",flagCode:"CZ",dir:"ltr"},{code:"da",nativeName:"Dansk",englishName:"Danish",flagCode:"DK",dir:"ltr"},{code:"de",nativeName:"Deutsch",englishName:"German",flagCode:"DE",dir:"ltr"},{code:"el",nativeName:"Ελληνικά",englishName:"Greek",flagCode:"GR",dir:"ltr"},{code:"eo",nativeName:"Esperanto",englishName:"Esperanto",flagCode:"EU",dir:"ltr"},{code:"et",nativeName:"Eesti",englishName:"Estonian",flagCode:"EE",dir:"ltr"},{code:"fa",nativeName:"فارسی",englishName:"Persian",flagCode:"IR",dir:"rtl"},{code:"fi",nativeName:"Suomi",englishName:"Finnish",flagCode:"FI",dir:"ltr"},{code:"fr",nativeName:"Français",englishName:"French",flagCode:"FR",dir:"ltr"},{code:"ga",nativeName:"Gaeilge",englishName:"Irish",flagCode:"IE",dir:"ltr"},{code:"he",nativeName:"עברית",englishName:"Hebrew",flagCode:"IL",dir:"rtl"},{code:"hi",nativeName:"हिन्दी",englishName:"Hindi",flagCode:"IN",dir:"ltr"},{code:"hu",nativeName:"Magyar",englishName:"Hungarian",flagCode:"HU",dir:"ltr"},{code:"id",nativeName:"Bahasa Indonesia",englishName:"Indonesian",flagCode:"ID",dir:"ltr"},{code:"it",nativeName:"Italiano",englishName:"Italian",flagCode:"IT",dir:"ltr"},{code:"ja",nativeName:"日本語",englishName:"Japanese",flagCode:"JP",dir:"ltr"},{code:"ko",nativeName:"한국어",englishName:"Korean",flagCode:"KR",dir:"ltr"},{code:"lt",nativeName:"Lietuvių",englishName:"Lithuanian",flagCode:"LT",dir:"ltr"},{code:"lv",nativeName:"Latviešu",englishName:"Latvian",flagCode:"LV",dir:"ltr"},{code:"ms",nativeName:"Bahasa Melayu",englishName:"Malay",flagCode:"MY",dir:"ltr"},{code:"nb",nativeName:"Norsk Bokmål",englishName:"Norwegian Bokmål",flagCode:"NO",dir:"ltr"},{code:"nl",nativeName:"Nederlands",englishName:"Dutch",flagCode:"NL",dir:"ltr"},{code:"pl",nativeName:"Polski",englishName:"Polish",flagCode:"PL",dir:"ltr"},{code:"pt",nativeName:"Português",englishName:"Portuguese",flagCode:"PT",dir:"ltr"},{code:"ro",nativeName:"Română",englishName:"Romanian",flagCode:"RO",dir:"ltr"},{code:"ru",nativeName:"Русский",englishName:"Russian",flagCode:"RU",dir:"ltr"},{code:"sk",nativeName:"Slovenčina",englishName:"Slovak",flagCode:"SK",dir:"ltr"},{code:"sl",nativeName:"Slovenščina",englishName:"Slovenian",flagCode:"SI",dir:"ltr"},{code:"sv",nativeName:"Svenska",englishName:"Swedish",flagCode:"SE",dir:"ltr"},{code:"th",nativeName:"ไทย",englishName:"Thai",flagCode:"TH",dir:"ltr"},{code:"tl",nativeName:"Tagalog",englishName:"Tagalog",flagCode:"PH",dir:"ltr"},{code:"tr",nativeName:"Türkçe",englishName:"Turkish",flagCode:"TR",dir:"ltr"},{code:"uk",nativeName:"Українська",englishName:"Ukrainian",flagCode:"UA",dir:"ltr"},{code:"ur",nativeName:"اردو",englishName:"Urdu",flagCode:"PK",dir:"rtl"},{code:"zh",nativeName:"中文",englishName:"Chinese",flagCode:"CN",dir:"ltr"}],xP="en",zP=ty.map(e=>e.code),LK2=new Set(zP),oy=ty.map(e=>({code:e.code,name:e.nativeName,englishName:e.englishName,flag:e.flagCode,dir:e.dir})),K_1=new Map(ty.map(e=>[e.code.toLowerCase(),e])),ey=new Map;for(let e of ty){let t=e.code.split("-")[0].toLowerCase();(!ey.has(t)||"isDefault"in e&&e.isDefault)&&ey.set(t,e.code)}function H01(e,t=xP){let o=e?.trim();if(!o)return t;let a=K_1.get(o.toLowerCase());if(a)return a.code;let i=o.split("-")[0]?.toLowerCase();return i&&ey.has(i)?ey.get(i)??t:t}var z0=xP,x3="translations",q_1=!1,Na="https://cdn.jsdelivr.net/npm/@zappway/embeds@2.0.3/dist/locales",RP=zP,VK2=new Set(RP),vm={main:{localeDirectory:"locales-ZappWay",splitDirectories:["i18n-split"],browserDirectories:[],cdnDirectory:"locales-ZappWay",cdnSplit:!0},lp:{localeDirectory:"locales-ZappWay-LP",splitDirectories:["i18n-split-lp","i18n-split-zappway-lp"],browserDirectories:[],cdnDirectory:"locales-ZappWay-LP",cdnSplit:!1},integrations:{localeDirectory:"locales-Integrations",splitDirectories:["i18n-split-integrations"],browserDirectories:[],cdnDirectory:"locales-Integrations",cdnSplit:!1},emails:{localeDirectory:"locales-Emails",splitDirectories:["i18n-split-emails"],browserDirectories:[],cdnDirectory:"locales-Emails",cdnSplit:!1},workers:{localeDirectory:"locales-Workers",splitDirectories:["i18n-split-workers"],browserDirectories:[],cdnDirectory:"locales-Workers",cdnSplit:!1},zappflux:{localeDirectory:"locales-ZappFlux",splitDirectories:["i18n-split-zappflux"],browserDirectories:[],cdnDirectory:"locales-ZappFlux",cdnSplit:!1},"zappflux-lp":{localeDirectory:"locales-ZappFlux-LP",splitDirectories:["i18n-split-zappflux-lp"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-LP",cdnSplit:!1},"zappflux-templates":{localeDirectory:"locales-ZappFlux-Templates",splitDirectories:["i18n-split-zappflux-templates"],browserDirectories:[],cdnDirectory:"locales-ZappFlux-Templates",cdnSplit:!1,namespaceFiles:!0},"pitch-deck":{localeDirectory:"locales-PitchDeck",splitDirectories:["i18n-split-pitch-deck"],browserDirectories:[],cdnDirectory:"locales-PitchDeck",cdnSplit:!1},reports:{localeDirectory:"locales-Reports",splitDirectories:["i18n-split-reports"],browserDirectories:[],cdnDirectory:"locales-Reports",cdnSplit:!1},rag:{localeDirectory:"locales-RAG",splitDirectories:["i18n-split-rag"],browserDirectories:[],cdnDirectory:"locales-RAG",cdnSplit:!1}},sy={lp:"lp",rag:"rag",flow:"zappflux",emails:"emails",workers:"workers",reports:"reports",zappflux:"zappflux",integrations:"integrations","pitch-deck":"pitch-deck","zappflux-lp":"zappflux-lp","zappflux-templates":"zappflux-templates",WhatsAppSettings:"integrations",WhatsAppIntegrationPage:"integrations",WhatsAppBusiness_IntegrationSettings:"integrations",TelegramSettings:"integrations",Telegram_IntegrationSettings:"integrations",InstagramSettings:"integrations",Instagram_IntegrationSettings:"integrations",MessengerSettings:"integrations",Messenger_IntegrationSettings:"integrations",TikTokSettings:"integrations",TikTok_IntegrationSettings:"integrations",ZendeskSettings:"integrations",Zendesk_IntegrationSettings:"integrations",SlackSettings:"integrations",ShopifySettings:"integrations",ConnectWhatsApp:"integrations",QRCode:"integrations",crisp:"integrations",crispConfig:"integrations",crispSettingsModal:"integrations"},ay=null,gm=null,g7=null,MP=null,Qn=null,b9=null,D0=null,SP=null,W_1=globalThis.eval;function Z_1(){if(g7)return g7;try{if(typeof __non_webpack_require__=="function")g7=__non_webpack_require__;else if(typeof Y8=="function")g7=Y8;else if(globalThis.require)g7=globalThis.require;else{let e="require";g7=globalThis[e]||W_1(e)}return g7}catch(e){return console.error(" [i18n-runtime-loader] Critical: Failed to obtain require function",e),null}}function ec(){if(typeof window<"u")return!1;if(ay&&gm)return!0;try{let e=Z_1();return e?(ay=e("fs"),gm=e("path"),MP=ay.readFileSync,Qn=ay.existsSync,b9=gm.join,D0=gm.resolve,SP=gm.dirname,!0):!1}catch{return!1}}var iy=new Map,G01=new Map;function EP(e){if(ec(),!Qn)return[];let t=new Set;return e.filter(o=>!!o).filter(o=>t.has(o)||!Qn(o)?!1:(t.add(o),!0))}function J_1(e){if(ec(),!(!g7||!SP))try{let o=g7.resolve.call(g7,`${e}/package.json`);return SP(o)}catch{return}}var ry=null;function X_1(){if(ry)return ry;if(ec(),!D0)return[];let e=process.cwd(),t=h.ZW_I18N_CACHE_ROOT;return ry=EP([t,D0(e,".next/cache"),D0(e,"../.next/cache"),D0(e,"../../.next/cache"),D0(e,"apps/zappway/dashboard/.next/cache"),D0(e,"packages/zappflux/packages/app/.next/cache"),"/var/task/.next/cache","/var/task/apps/zappway/dashboard/.next/cache"]),ry}var ny=null;function Y_1(){if(ny)return ny;if(ec(),!D0||!b9)return[];let e=process.cwd(),t=J_1("@zappway/lib");return ny=EP([t,D0(e,"packages/zappway/lib"),D0(e,"../packages/zappway/lib"),D0(e,"../../packages/zappway/lib"),D0(e,"../../../packages/zappway/lib"),D0(e,"../../../../packages/zappway/lib"),D0(e,"node_modules/@zappway/lib"),D0(e,"../node_modules/@zappway/lib"),D0(e,"../../node_modules/@zappway/lib"),D0(e,"../../../node_modules/@zappway/lib"),D0(e,"../../../../node_modules/@zappway/lib")]).filter(o=>Qn(b9(o,"locales"))),ny}var wP=new Map;function K01(e){if(wP.has(e))return wP.get(e);if(ec(),!MP||!Qn||!Qn(e))return null;try{let t=MP(e,"utf8"),o=JSON.parse(t);return wP.set(e,o),o}catch{return null}}function TP(e,t){if(!e)return null;let o=t||x3;if(o===x3)return e;if(e[o])return e[o];let a=o.split("."),i=e,r=!0;for(let n of a)if(i&&typeof i=="object"&&n in i)i=i[n];else{r=!1;break}return r&&i&&typeof i=="object"?i:o!==x3?{}:e}var cy=null;function Q_1(){return cy||(cy=EP([...X_1(),...Y_1()]),cy)}function fy(e){return H01(e,z0)}function _P(e,t,o){if(typeof window<"u"||!ec())return{};let a=fy(e),i=o||x3,r=`node:${a}:${t}:${i}`,n=iy.get(r);if(n)return n;let c=vm[t];if(t==="main"&&i!==x3&&sy[i])return iy.set(r,{}),{};let l=Q_1(),f=[];for(let d of l){for(let u of c.splitDirectories)f.push(b9(d,u,a,`${i}.json`)),f.push(b9(d,"locales",u,a,`${i}.json`));f.push(b9(d,c.localeDirectory,a,`${i}.json`)),f.push(b9(d,"locales",c.localeDirectory,a,`${i}.json`))}for(let d of f){let u=K01(d);if(u&&Object.keys(u).length>0)return iy.set(r,u),u}let m={};for(let d of l){let u=b9(d,"locales",c.localeDirectory,a,"translations.json"),p=K01(u);if(p){if(m=TP(p,o)||{},Object.keys(m).length>0)break}else q_1&&o===x3&&console.warn(` [i18n] Bundle not found or empty: ${u} (CWD: ${typeof process<"u"?process.cwd():"unknown"})`)}return Object.keys(m).length===0&&a!==z0?_P(z0,t,o):(iy.set(r,m),m)}function PP(e,t,o){let a=t.map(i=>_P(e,i,o));return W01(a)}async function ly(e,t=2e3){let o=new AbortController,a=setTimeout(()=>o.abort(),t);try{let i=await fetch(`${e}?v=${Date.now()}`,{signal:o.signal,cache:"force-cache"});return clearTimeout(a),i.ok?await i.json():null}catch{return clearTimeout(a),null}}async function eP1(e,t,o){let a=fy(e),i=o||x3,n=`${typeof window>"u"?"node":"browser"}:${a}:${t}:${i}`,c=G01.get(n);if(c)return await c||{};let l=vm[t],f=(async()=>{if(typeof window>"u"){let m=_P(e,t,o);if(m&&Object.keys(m).length>0)return m;let d=t==="main"&&i!==x3&&!i.includes(".")?`${Na}/${l.cdnDirectory}/${a}/${i}.json`:`${Na}/${l.cdnDirectory}/${a}/translations.json`;try{let u=await ly(d,3e3);if(u){let p=TP(u,o);if(p&&Object.keys(p).length>0)return p}}catch{}}else{for(let p of l.browserDirectories){let b=await ly(`/locales-runtime/${p}/${a}/${i}.json`);if(b)return b}let m=await ly(`/api/i18n/${a}/${i}`);if(m)return m;let d=t==="main"&&i!==x3&&!i.includes(".")?`${Na}/${l.cdnDirectory}/${a}/${i}.json`:`${Na}/${l.cdnDirectory}/${a}/translations.json`,u=await ly(d);if(u)return TP(u,o)||{}}return{}})();return G01.set(n,f),f||{}}async function my(e,t,o){let a=t.map(r=>eP1(e,r,o)),i=await Promise.all(a);return W01(i)}function q01(e,t){let o={...e};for(let[a,i]of Object.entries(t||{})){let r=o[a];r&&typeof r=="object"&&i&&typeof i=="object"&&!Array.isArray(i)?o[a]=q01(r,i):o[a]=i}return o}function W01(e){return e.reduce((t,o)=>q01(t,o||{}),{})}var tP1={type:"backend",init:()=>{},read:(e,t,o)=>{my(e,["main"],t).then(a=>{t===x3&&a&&Object.entries(a).forEach(([i,r])=>{i!==x3&&r&&typeof r=="object"&&!Array.isArray(r)&&$0.addResourceBundle(e,i,r,!0,!0)}),o(null,a)}).catch(a=>{o(a,null)})}};$0.use(tP1).use(dm).use(Zb).init({fallbackLng:z0,supportedLngs:RP,ns:[x3],defaultNS:x3,partialBundledLanguages:!0,nonExplicitSupportedLngs:!0,nsSeparator:":",keySeparator:".",interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],lookupCookie:"NEXT_LOCALE",caches:["cookie"]}});var j2=$0;s();var L2=L(H());s();var w0=L(H(),1),GP=L(kP(),1);s();s();var Y0=L(H(),1);var y9={};o0(y9,{ERROR_REVALIDATE_EVENT:()=>oP1,FOCUS_EVENT:()=>Z01,MUTATE_EVENT:()=>X01,RECONNECT_EVENT:()=>J01});s();var Z01=0,J01=1,X01=2,oP1=3;s();var Y01=Object.prototype.hasOwnProperty;function dy(e,t){var o,a;if(e===t)return!0;if(e&&t&&(o=e.constructor)===t.constructor){if(o===Date)return e.getTime()===t.getTime();if(o===RegExp)return e.toString()===t.toString();if(o===Array){if((a=e.length)===t.length)for(;a--&&dy(e[a],t[a]););return a===-1}if(!o||typeof e=="object"){a=0;for(o in e)if(Y01.call(e,o)&&++a&&!Y01.call(t,o)||!(o in t)||!dy(e[o],t[o]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}var a6=new WeakMap,i6=()=>{},m3=i6(),tc=Object,z2=e=>e===m3,O5=e=>typeof e=="function",C4=(e,t)=>({...e,...t}),by=e=>O5(e.then),CP={},uy={},LP="undefined",oc=typeof window!=LP,hy=typeof document!=LP,e41=oc&&"Deno"in window,t41=()=>oc&&typeof window.requestAnimationFrame!=LP,yy=(e,t)=>{let o=a6.get(e);return[()=>!z2(t)&&e.get(t)||CP,a=>{if(!z2(t)){let i=e.get(t);t in uy||(uy[t]=i),o[5](t,C4(i,a),i||CP)}},o[6],()=>!z2(t)&&t in uy?uy[t]:!z2(t)&&e.get(t)||CP]},$P=!0,aP1=()=>$P,[IP,DP]=oc&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[i6,i6],iP1=()=>{let e=hy&&document.visibilityState;return z2(e)||e!=="hidden"},rP1=e=>(hy&&document.addEventListener("visibilitychange",e),IP("focus",e),()=>{hy&&document.removeEventListener("visibilitychange",e),DP("focus",e)}),nP1=e=>{let t=()=>{$P=!0,e()},o=()=>{$P=!1};return IP("online",t),IP("offline",o),()=>{DP("online",t),DP("offline",o)}},o41={isOnline:aP1,isVisible:iP1},a41={initFocus:rP1,initReconnect:nP1},ac=!Y0.default.useId,x9=!oc||e41,jP=e=>t41()?window.requestAnimationFrame(e):setTimeout(e,1),D8=x9?Y0.useEffect:Y0.useLayoutEffect,AP=typeof navigator<"u"&&navigator.connection,NP=!x9&&AP&&(["slow-2g","2g"].includes(AP.effectiveType)||AP.saveData),py=new WeakMap,cP1=e=>tc.prototype.toString.call(e),OP=(e,t)=>e===`[object ${t}]`,lP1=0,gy=e=>{let t=typeof e,o=cP1(e),a=OP(o,"Date"),i=OP(o,"RegExp"),r=OP(o,"Object"),n,c;if(tc(e)===e&&!a&&!i){if(n=py.get(e),n)return n;if(n=++lP1+"~",py.set(e,n),Array.isArray(e)){for(n="@",c=0;c<e.length;c++)n+=gy(e[c])+",";py.set(e,n)}if(r){n="#";let l=tc.keys(e).sort();for(;!z2(c=l.pop());)z2(e[c])||(n+=c+":"+gy(e[c])+",");py.set(e,n)}}else n=a?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return n},La=e=>{if(O5(e))try{e=e()}catch{e=""}let t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?gy(e):"",[e,t]},sP1=0,k9=()=>++sP1;async function ky(...e){let[t,o,a,i]=e,r=C4({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{}),n=r.populateCache,c=r.rollbackOnError,l=r.optimisticData,f=u=>typeof c=="function"?c(u):c!==!1,m=r.throwOnError;if(O5(o)){let u=o,p=[],b=t.keys();for(let g of b)!/^\$(inf|sub)\$/.test(g)&&u(t.get(g)._k)&&p.push(g);return Promise.all(p.map(d))}return d(o);async function d(u){let[p]=La(u);if(!p)return;let[b,g]=yy(t,p),[x,y,v,k]=a6.get(t),w=()=>{let O=x[p];return(O5(r.revalidate)?r.revalidate(b().data,u):r.revalidate!==!1)&&(delete v[p],delete k[p],O&&O[0])?O[0](2).then(()=>b().data):b().data};if(e.length<3)return w();let T=a,A,_=!1,z=k9();y[p]=[z,0];let M=!z2(l),S=b(),N=S.data,C=S._c,R=z2(C)?N:C;if(M&&(l=O5(l)?l(R,N):l,g({data:l,_c:R})),O5(T))try{T=T(R)}catch(O){A=O,_=!0}if(T&&by(T))if(T=await T.catch(O=>{A=O,_=!0}),z!==y[p][0]){if(_)throw A;return T}else _&&M&&f(A)&&(n=!0,g({data:R,_c:m3}));if(n&&!_)if(O5(n)){let O=n(T,R);g({data:O,error:m3,_c:m3})}else g({data:T,error:m3,_c:m3});if(y[p][1]=k9(),Promise.resolve(w()).then(()=>{g({_c:m3})}),_){if(m)throw A;return}return T}}var Q01=(e,t)=>{for(let o in e)e[o][0]&&e[o][0](t)},FP=(e,t)=>{if(!a6.has(e)){let o=C4(a41,t),a=Object.create(null),i=ky.bind(m3,e),r=i6,n=Object.create(null),c=(m,d)=>{let u=n[m]||[];return n[m]=u,u.push(d),()=>{let p=u.indexOf(d);p>=0&&(u[p]=u[u.length-1],u.pop())}},l=(m,d,u)=>{e.set(m,d);let p=n[m];if(p)for(let b of p)b(d,u)},f=()=>{if(!a6.has(e)&&(a6.set(e,[a,Object.create(null),Object.create(null),Object.create(null),i,l,c]),!x9)){let m=o.initFocus(setTimeout.bind(m3,Q01.bind(m3,a,0))),d=o.initReconnect(setTimeout.bind(m3,Q01.bind(m3,a,1)));r=()=>{m&&m(),d&&d(),a6.delete(e)}}};return f(),[e,i,f,r]}return[e,a6.get(e)[4]]},fP1=(e,t,o,a,i)=>{let r=o.errorRetryCount,n=i.retryCount,c=~~((Math.random()+.5)*(1<<(n<8?n:8)))*o.errorRetryInterval;!z2(r)&&n>r||setTimeout(a,c,i)},i41=dy,[xy,bm]=FP(new Map),zy=C4({onLoadingSlow:i6,onSuccess:i6,onError:i6,onErrorRetry:fP1,onDiscarded:i6,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:NP?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:NP?5e3:3e3,compare:i41,isPaused:()=>!1,cache:xy,mutate:bm,fallback:{}},o41),BP=(e,t)=>{let o=C4(e,t);if(t){let{use:a,fallback:i}=e,{use:r,fallback:n}=t;a&&r&&(o.use=a.concat(r)),i&&n&&(o.fallback=C4(i,n))}return o},vy=(0,Y0.createContext)({}),VP=e=>{let{value:t}=e,o=(0,Y0.useContext)(vy),a=O5(t),i=(0,Y0.useMemo)(()=>a?t(o):t,[a,o,t]),r=(0,Y0.useMemo)(()=>a?i:BP(o,i),[a,o,i]),n=i&&i.provider,c=(0,Y0.useRef)(m3);n&&!c.current&&(c.current=FP(n(r.cache||xy),i));let l=c.current;return l&&(r.cache=l[0],r.mutate=l[1]),D8(()=>{if(l)return l[2]&&l[2](),l[3]},[]),(0,Y0.createElement)(vy.Provider,C4(e,{value:r}))};s();var r41="$inf$";var ic=L(H(),1);var n41=oc&&window.__SWR_DEVTOOLS_USE__,mP1=n41?window.__SWR_DEVTOOLS_USE__:[],dP1=()=>{n41&&(window.__SWR_DEVTOOLS_REACT__=ic.default)},c41=e=>O5(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],wy=()=>{let e=(0,ic.useContext)(vy);return(0,ic.useMemo)(()=>C4(zy,e),[e])};var uP1=e=>(t,o,a)=>e(t,o&&((...r)=>{let[n]=La(t),[,,,c]=a6.get(xy);if(n.startsWith(r41))return o(...r);let l=c[n];return z2(l)?o(...r):(delete c[n],l)}),a),pP1=mP1.concat(uP1),l41=e=>function(...o){let a=wy(),[i,r,n]=c41(o),c=BP(a,n),l=e,{use:f}=c,m=(f||[]).concat(pP1);for(let d=m.length;d--;)l=m[d](l);return l(i,r||c.fetcher||null,c)},s41=(e,t,o)=>{let a=t[e]||(t[e]=[]);return a.push(o),()=>{let i=a.indexOf(o);i>=0&&(a[i]=a[a.length-1],a.pop())}},f41=(e,t)=>(...o)=>{let[a,i,r]=c41(o),n=(r.use||[]).concat(t);return e(a,i,{...r,use:n})};dP1();var hP1=()=>{},pq2=hP1();var UP=w0.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),HP={dedupe:!0},My=Promise.resolve(m3);My.status="fulfilled";My.value=m3;var gP1=()=>i6,vP1=(e,t,o)=>{let{cache:a,compare:i,suspense:r,fallbackData:n,revalidateOnMount:c,revalidateIfStale:l,refreshInterval:f,refreshWhenHidden:m,refreshWhenOffline:d,keepPreviousData:u,strictServerPrefetchWarning:p}=o,[b,g,x,y]=a6.get(a),[v,k]=La(e),w=(0,w0.useRef)(!1),T=(0,w0.useRef)(!1),A=(0,w0.useRef)(v),_=(0,w0.useRef)(t),z=(0,w0.useRef)(o),M=()=>z.current,S=()=>M().isVisible()&&M().isOnline(),[N,C,R,O]=yy(a,v),P=(0,w0.useRef)({}).current,E=z2(n)?z2(o.fallback)?m3:o.fallback[v]:n,D=(M1,w1)=>{for(let B1 in P){let A1=B1;if(A1==="data"){if(!i(M1[A1],w1[A1])&&(!z2(M1[A1])||!i(o1,w1[A1])))return!1}else if(w1[A1]!==M1[A1])return!1}return!0},I=!w.current,$=(0,w0.useMemo)(()=>{let M1=N(),w1=O(),B1=d1=>{let H1=C4(d1);return delete H1._k,(()=>{if(!v||!t||M().isPaused())return!1;if(I&&!z2(c))return c;let G1=z2(E)?H1.data:E;return r?z2(G1)||l:z2(G1)||l})()?{isValidating:!0,isLoading:!0,...H1}:H1},A1=B1(M1),Z1=M1===w1?A1:B1(w1),c2=A1;return[()=>{let d1=B1(N());return D(d1,c2)?(c2.data=d1.data,c2.isLoading=d1.isLoading,c2.isValidating=d1.isValidating,c2.error=d1.error,c2):(c2=d1,d1)},()=>Z1]},[a,v]),V=(0,GP.useSyncExternalStore)((0,w0.useCallback)(M1=>R(v,(w1,B1)=>{D(B1,w1)||M1()}),[a,v]),$[0],$[1]),K=b[v]&&b[v].length>0,X=V.data,e1=z2(X)?E&&by(E)?UP(E):E:X,Y=V.error,q=(0,w0.useRef)(e1),o1=u?z2(X)?z2(q.current)?e1:q.current:X:e1,W=v&&z2(e1),Z=(0,w0.useRef)(null);!x9&&(0,GP.useSyncExternalStore)(gP1,()=>(Z.current=!1,Z),()=>(Z.current=!0,Z));let r1=Z.current;p&&r1&&!r&&W&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let x1=!v||!t||M().isPaused()||K&&!z2(Y)?!1:I&&!z2(c)?c:r?z2(e1)?!1:l:z2(e1)||l,h1=I&&x1,T1=z2(V.isValidating)?h1:V.isValidating,F1=z2(V.isLoading)?h1:V.isLoading,V1=(0,w0.useCallback)(async M1=>{let w1=_.current;if(!v||!w1||T.current||M().isPaused())return!1;let B1,A1,Z1=!0,c2=M1||{},d1=!x[v]||!c2.dedupe,H1=()=>ac?!T.current&&v===A.current&&w.current:v===A.current,$1={isValidating:!1,isLoading:!1},G1=()=>{C($1)},E1=()=>{let s1=x[v];s1&&s1[1]===A1&&delete x[v]},i1={isValidating:!0};z2(N().data)&&(i1.isLoading=!0);try{if(d1&&(C(i1),o.loadingTimeout&&z2(N().data)&&setTimeout(()=>{Z1&&H1()&&M().onLoadingSlow(v,o)},o.loadingTimeout),x[v]=[w1(k),k9()]),[B1,A1]=x[v],B1=await B1,d1&&setTimeout(E1,o.dedupingInterval),!x[v]||x[v][1]!==A1)return d1&&H1()&&M().onDiscarded(v),!1;$1.error=m3;let s1=g[v];if(!z2(s1)&&(A1<=s1[0]||A1<=s1[1]||s1[1]===0))return G1(),d1&&H1()&&M().onDiscarded(v),!1;let j=N().data;$1.data=i(j,B1)?j:B1,d1&&H1()&&M().onSuccess(B1,v,o)}catch(s1){E1();let j=M(),{shouldRetryOnError:U}=j;j.isPaused()||($1.error=s1,d1&&H1()&&(j.onError(s1,v,j),(U===!0||O5(U)&&U(s1))&&(!M().revalidateOnFocus||!M().revalidateOnReconnect||S())&&j.onErrorRetry(s1,v,j,B=>{let G=b[v];G&&G[0]&&G[0](y9.ERROR_REVALIDATE_EVENT,B)},{retryCount:(c2.retryCount||0)+1,dedupe:!0})))}return Z1=!1,G1(),!0},[v,a]),n1=(0,w0.useCallback)((...M1)=>ky(a,A.current,...M1),[]);if(D8(()=>{_.current=t,z.current=o,z2(X)||(q.current=X)}),D8(()=>{if(!v)return;let M1=V1.bind(m3,HP),w1=0;M().revalidateOnFocus&&(w1=Date.now()+M().focusThrottleInterval);let A1=s41(v,b,(Z1,c2={})=>{if(Z1==y9.FOCUS_EVENT){let d1=Date.now();M().revalidateOnFocus&&d1>w1&&S()&&(w1=d1+M().focusThrottleInterval,M1())}else if(Z1==y9.RECONNECT_EVENT)M().revalidateOnReconnect&&S()&&M1();else{if(Z1==y9.MUTATE_EVENT)return V1();if(Z1==y9.ERROR_REVALIDATE_EVENT)return V1(c2)}});return T.current=!1,A.current=v,w.current=!0,C({_k:k}),x1&&(x[v]||(z2(e1)||x9?M1():jP(M1))),()=>{T.current=!0,A1()}},[v]),D8(()=>{let M1;function w1(){let A1=O5(f)?f(N().data):f;A1&&M1!==-1&&(M1=setTimeout(B1,A1))}function B1(){!N().error&&(m||M().isVisible())&&(d||M().isOnline())?V1(HP).then(w1):w1()}return w1(),()=>{M1&&(clearTimeout(M1),M1=-1)}},[f,m,d,v]),(0,w0.useDebugValue)(o1),r){if(!ac&&x9&&W)throw new Error("Fallback data is required when using Suspense in SSR.");W&&(_.current=t,z.current=o,T.current=!1);let M1=y[v],w1=!z2(M1)&&W?n1(M1):My;if(UP(w1),!z2(Y)&&W)throw Y;let B1=W?V1(HP):My;!z2(o1)&&W&&(B1.status="fulfilled",B1.value=!0),UP(B1)}return{mutate:n1,get data(){return P.data=!0,o1},get error(){return P.error=!0,Y},get isValidating(){return P.isValidating=!0,T1},get isLoading(){return P.isLoading=!0,F1}}},hq2=tc.defineProperty(VP,"defaultValue",{value:zy}),Sy=l41(vP1);s();s();var m41=(e,t,o)=>{if(e&&"reportValidity"in e){let a=_1(o,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},Ty=(e,t)=>{for(let o in t.fields){let a=t.fields[o];a&&a.ref&&"reportValidity"in a.ref?m41(a.ref,o,e):a&&a.refs&&a.refs.forEach(i=>m41(i,o,e))}},KP=(e,t)=>{t.shouldUseNativeValidation&&Ty(e,t);let o={};for(let a in e){let i=_1(t.fields,a),r=Object.assign(e[a]||{},{ref:i&&i.ref});if(bP1(t.names||Object.keys(e),a)){let n=Object.assign({},_1(o,a));N2(n,"root",r),N2(o,a,n)}else N2(o,a,r)}return o},bP1=(e,t)=>{let o=d41(t).replace(/[.*+?^${}()|\\]/g,"\\$&");return e.some(a=>d41(a).match(`^${o}\\.\\d+`))};function d41(e){return e.replace(/[\[\]]/g,"")}var k7={};o0(k7,{$ZodAny:()=>DA,$ZodArray:()=>BA,$ZodAsyncError:()=>r6,$ZodBase64:()=>TA,$ZodBase64URL:()=>RA,$ZodBigInt:()=>Ky,$ZodBigIntFormat:()=>AA,$ZodBoolean:()=>Pm,$ZodCIDRv4:()=>wA,$ZodCIDRv6:()=>MA,$ZodCUID:()=>mA,$ZodCUID2:()=>dA,$ZodCatch:()=>rO,$ZodCheck:()=>t3,$ZodCheckBigIntFormat:()=>BC,$ZodCheckEndsWith:()=>QC,$ZodCheckGreaterThan:()=>Fy,$ZodCheckIncludes:()=>XC,$ZodCheckLengthEquals:()=>qC,$ZodCheckLessThan:()=>jy,$ZodCheckLowerCase:()=>ZC,$ZodCheckMaxLength:()=>GC,$ZodCheckMaxSize:()=>VC,$ZodCheckMimeType:()=>tA,$ZodCheckMinLength:()=>KC,$ZodCheckMinSize:()=>UC,$ZodCheckMultipleOf:()=>jC,$ZodCheckNumberFormat:()=>FC,$ZodCheckOverwrite:()=>oA,$ZodCheckProperty:()=>eA,$ZodCheckRegex:()=>WC,$ZodCheckSizeEquals:()=>HC,$ZodCheckStartsWith:()=>YC,$ZodCheckStringFormat:()=>pc,$ZodCheckUpperCase:()=>JC,$ZodCodec:()=>Am,$ZodCustom:()=>uO,$ZodCustomStringFormat:()=>PA,$ZodDate:()=>FA,$ZodDefault:()=>tO,$ZodDiscriminatedUnion:()=>HA,$ZodE164:()=>EA,$ZodEmail:()=>cA,$ZodEmoji:()=>sA,$ZodEncodeError:()=>z9,$ZodEnum:()=>ZA,$ZodError:()=>Ba,$ZodExactOptional:()=>QA,$ZodFile:()=>XA,$ZodFunction:()=>fO,$ZodGUID:()=>rA,$ZodIPv4:()=>kA,$ZodIPv6:()=>xA,$ZodISODate:()=>vA,$ZodISODateTime:()=>gA,$ZodISODuration:()=>yA,$ZodISOTime:()=>bA,$ZodIntersection:()=>GA,$ZodJWT:()=>_A,$ZodKSUID:()=>hA,$ZodLazy:()=>dO,$ZodLiteral:()=>JA,$ZodMAC:()=>zA,$ZodMap:()=>qA,$ZodNaN:()=>nO,$ZodNanoID:()=>fA,$ZodNever:()=>LA,$ZodNonOptional:()=>aO,$ZodNull:()=>IA,$ZodNullable:()=>eO,$ZodNumber:()=>Gy,$ZodNumberFormat:()=>CA,$ZodObject:()=>U41,$ZodObjectJIT:()=>VA,$ZodOptional:()=>Wy,$ZodPipe:()=>Zy,$ZodPrefault:()=>oO,$ZodPreprocess:()=>cO,$ZodPromise:()=>mO,$ZodReadonly:()=>lO,$ZodRealError:()=>Y4,$ZodRecord:()=>KA,$ZodRegistry:()=>Qy,$ZodSet:()=>WA,$ZodString:()=>Ua,$ZodStringFormat:()=>Z2,$ZodSuccess:()=>iO,$ZodSymbol:()=>OA,$ZodTemplateLiteral:()=>sO,$ZodTransform:()=>YA,$ZodTuple:()=>qy,$ZodType:()=>a2,$ZodULID:()=>uA,$ZodURL:()=>lA,$ZodUUID:()=>nA,$ZodUndefined:()=>$A,$ZodUnion:()=>Cm,$ZodUnknown:()=>NA,$ZodVoid:()=>jA,$ZodXID:()=>pA,$ZodXor:()=>UA,$brand:()=>WP,$constructor:()=>J,$input:()=>hO,$output:()=>pO,Doc:()=>_m,JSONSchema:()=>G51,JSONSchemaGenerator:()=>Pk,NEVER:()=>qP,TimePrecision:()=>yO,_any:()=>FO,_array:()=>qO,_base64:()=>vk,_base64url:()=>bk,_bigint:()=>OO,_boolean:()=>CO,_catch:()=>BA1,_check:()=>H51,_cidrv4:()=>hk,_cidrv6:()=>gk,_coercedBigint:()=>$O,_coercedBoolean:()=>AO,_coercedDate:()=>GO,_coercedNumber:()=>SO,_coercedString:()=>vO,_cuid:()=>lk,_cuid2:()=>sk,_custom:()=>ZO,_date:()=>HO,_decode:()=>Py,_decodeAsync:()=>Ay,_default:()=>LA1,_discriminatedUnion:()=>TA1,_e164:()=>yk,_email:()=>tk,_emoji:()=>nk,_encode:()=>_y,_encodeAsync:()=>Cy,_endsWith:()=>xc,_enum:()=>AA1,_file:()=>WO,_float32:()=>RO,_float64:()=>EO,_gt:()=>b7,_gte:()=>$4,_guid:()=>Im,_includes:()=>yc,_int:()=>TO,_int32:()=>_O,_int64:()=>IO,_intersection:()=>RA1,_ipv4:()=>uk,_ipv6:()=>pk,_isoDate:()=>xO,_isoDateTime:()=>kO,_isoDuration:()=>wO,_isoTime:()=>zO,_jwt:()=>kk,_ksuid:()=>dk,_lazy:()=>GA1,_length:()=>Ka,_literal:()=>$A1,_lowercase:()=>vc,_lt:()=>v7,_lte:()=>I5,_mac:()=>bO,_map:()=>PA1,_max:()=>I5,_maxLength:()=>Ga,_maxSize:()=>E9,_mime:()=>zc,_min:()=>$4,_minLength:()=>L8,_minSize:()=>y7,_multipleOf:()=>R9,_nan:()=>KO,_nanoid:()=>ck,_nativeEnum:()=>OA1,_negative:()=>zk,_never:()=>VO,_nonnegative:()=>Mk,_nonoptional:()=>jA1,_nonpositive:()=>wk,_normalize:()=>wc,_null:()=>jO,_nullable:()=>NA1,_number:()=>MO,_optional:()=>DA1,_overwrite:()=>n6,_parse:()=>lc,_parseAsync:()=>fc,_pipe:()=>VA1,_positive:()=>xk,_promise:()=>KA1,_property:()=>Sk,_readonly:()=>UA1,_record:()=>_A1,_refine:()=>JO,_regex:()=>gc,_safeDecode:()=>$y,_safeDecodeAsync:()=>Dy,_safeEncode:()=>Oy,_safeEncodeAsync:()=>Iy,_safeParse:()=>dc,_safeParseAsync:()=>uc,_set:()=>CA1,_size:()=>Ha,_slugify:()=>Rc,_startsWith:()=>kc,_string:()=>gO,_stringFormat:()=>Ec,_stringbool:()=>e$,_success:()=>FA1,_superRefine:()=>XO,_symbol:()=>NO,_templateLiteral:()=>HA1,_toLowerCase:()=>Sc,_toUpperCase:()=>Tc,_transform:()=>IA1,_trim:()=>Mc,_tuple:()=>EA1,_uint32:()=>PO,_uint64:()=>DO,_ulid:()=>fk,_undefined:()=>LO,_union:()=>MA1,_unknown:()=>BO,_uppercase:()=>bc,_url:()=>Dm,_uuid:()=>ok,_uuidv4:()=>ak,_uuidv6:()=>ik,_uuidv7:()=>rk,_void:()=>UO,_xid:()=>mk,_xor:()=>SA1,clone:()=>A4,config:()=>V3,createStandardJSONSchemaMethod:()=>_c,createToJSONSchemaMethod:()=>t$,decode:()=>KP1,decodeAsync:()=>WP1,describe:()=>YO,encode:()=>GP1,encodeAsync:()=>qP1,extractDefs:()=>P9,finalize:()=>C9,flattenError:()=>Sm,formatError:()=>Tm,globalConfig:()=>ja,globalRegistry:()=>Q0,initializeContext:()=>_9,isValidBase64:()=>SA,isValidBase64URL:()=>j41,isValidJWT:()=>F41,locales:()=>$m,meta:()=>QO,parse:()=>sc,parseAsync:()=>mc,prettifyError:()=>cC,process:()=>F2,regexes:()=>$5,registry:()=>ek,safeDecode:()=>JP1,safeDecodeAsync:()=>YP1,safeEncode:()=>ZP1,safeEncodeAsync:()=>XP1,safeParse:()=>lC,safeParseAsync:()=>sC,toDotPath:()=>b41,toJSONSchema:()=>_k,treeifyError:()=>nC,util:()=>z1,version:()=>aA});s();s();var u41,qP=Object.freeze({status:"aborted"});function J(e,t,o){function a(c,l){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:l,constr:n,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,l);let f=n.prototype,m=Object.keys(f);for(let d=0;d<m.length;d++){let u=m[d];u in c||(c[u]=f[u].bind(c))}}let i=o?.Parent??Object;class r extends i{}Object.defineProperty(r,"name",{value:e});function n(c){var l;let f=o?.Parent?new r:this;a(f,c),(l=f._zod).deferred??(l.deferred=[]);for(let m of f._zod.deferred)m();return f}return Object.defineProperty(n,"init",{value:a}),Object.defineProperty(n,Symbol.hasInstance,{value:c=>o?.Parent&&c instanceof o.Parent?!0:c?._zod?.traits?.has(e)}),Object.defineProperty(n,"name",{value:e}),n}var WP=Symbol("zod_brand"),r6=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},z9=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(u41=globalThis).__zod_globalConfig??(u41.__zod_globalConfig={});var ja=globalThis.__zod_globalConfig;function V3(e){return e&&Object.assign(ja,e),ja}s();s();var z1={};o0(z1,{BIGINT_FORMAT_RANGES:()=>iC,Class:()=>JP,NUMBER_FORMAT_RANGES:()=>aC,aborted:()=>T9,allowsEval:()=>QP,assert:()=>wP1,assertEqual:()=>yP1,assertIs:()=>xP1,assertNever:()=>zP1,assertNotEqual:()=>kP1,assignProp:()=>M9,base64ToUint8Array:()=>h41,base64urlToUint8Array:()=>FP1,cached:()=>nc,captureStackTrace:()=>Ey,cleanEnum:()=>jP1,cleanRegex:()=>xm,clone:()=>A4,cloneDef:()=>SP1,createTransparentProxy:()=>CP1,defineLazy:()=>k2,esc:()=>Ry,escapeRegex:()=>xe,explicitlyAborted:()=>rC,extend:()=>$P1,finalizeIssue:()=>O4,floatSafeRemainder:()=>XP,getElementAtPath:()=>TP1,getEnumValues:()=>km,getLengthableOrigin:()=>Mm,getParsedType:()=>PP1,getSizableOrigin:()=>wm,hexToUint8Array:()=>VP1,isObject:()=>Fa,isPlainObject:()=>S9,issue:()=>cc,joinValues:()=>a1,jsonStringifyReplacer:()=>rc,merge:()=>DP1,mergeDefs:()=>N8,normalizeParams:()=>S1,nullish:()=>w9,numKeys:()=>_P1,objectClone:()=>MP1,omit:()=>OP1,optionalKeys:()=>oC,parsedType:()=>y1,partial:()=>NP1,pick:()=>AP1,prefixIssues:()=>X4,primitiveTypes:()=>tC,promiseAllObject:()=>RP1,propertyKeyTypes:()=>zm,randomString:()=>EP1,required:()=>LP1,safeExtend:()=>IP1,shallowClone:()=>eC,slugify:()=>YP,stringifyPrimitive:()=>v1,uint8ArrayToBase64:()=>g41,uint8ArrayToBase64url:()=>BP1,uint8ArrayToHex:()=>UP1,unwrapMessage:()=>ym});s();function yP1(e){return e}function kP1(e){return e}function xP1(e){}function zP1(e){throw new Error("Unexpected value in exhaustive check")}function wP1(e){}function km(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,i])=>t.indexOf(+a)===-1).map(([a,i])=>i)}function a1(e,t="|"){return e.map(o=>v1(o)).join(t)}function rc(e,t){return typeof t=="bigint"?t.toString():t}function nc(e){return{get value(){{let o=e();return Object.defineProperty(this,"value",{value:o}),o}throw new Error("cached value already set")}}}function w9(e){return e==null}function xm(e){let t=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(t,o)}function XP(e,t){let o=e/t,a=Math.round(o),i=Number.EPSILON*Math.max(Math.abs(o),1);return Math.abs(o-a)<i?0:o-a}var p41=Symbol("evaluating");function k2(e,t,o){let a;Object.defineProperty(e,t,{get(){if(a!==p41)return a===void 0&&(a=p41,a=o()),a},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function MP1(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function M9(e,t,o){Object.defineProperty(e,t,{value:o,writable:!0,enumerable:!0,configurable:!0})}function N8(...e){let t={};for(let o of e){let a=Object.getOwnPropertyDescriptors(o);Object.assign(t,a)}return Object.defineProperties({},t)}function SP1(e){return N8(e._zod.def)}function TP1(e,t){return t?t.reduce((o,a)=>o?.[a],e):e}function RP1(e){let t=Object.keys(e),o=t.map(a=>e[a]);return Promise.all(o).then(a=>{let i={};for(let r=0;r<t.length;r++)i[t[r]]=a[r];return i})}function EP1(e=10){let t="abcdefghijklmnopqrstuvwxyz",o="";for(let a=0;a<e;a++)o+=t[Math.floor(Math.random()*t.length)];return o}function Ry(e){return JSON.stringify(e)}function YP(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Ey="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Fa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var QP=nc(()=>{if(ja.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function S9(e){if(Fa(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let o=t.prototype;return!(Fa(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function eC(e){return S9(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function _P1(e){let t=0;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&t++;return t}var PP1=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},zm=new Set(["string","number","symbol"]),tC=new Set(["string","number","bigint","boolean","symbol","undefined"]);function xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A4(e,t,o){let a=new e._zod.constr(t??e._zod.def);return(!t||o?.parent)&&(a._zod.parent=e),a}function S1(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function CP1(e){let t;return new Proxy({},{get(o,a,i){return t??(t=e()),Reflect.get(t,a,i)},set(o,a,i,r){return t??(t=e()),Reflect.set(t,a,i,r)},has(o,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(o,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(o){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(o,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(o,a,i){return t??(t=e()),Reflect.defineProperty(t,a,i)}})}function v1(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function oC(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var aC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},iC={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function AP1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let r=N8(e._zod.def,{get shape(){let n={};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(n[c]=o.shape[c])}return M9(this,"shape",n),n},checks:[]});return A4(e,r)}function OP1(e,t){let o=e._zod.def,a=o.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let r=N8(e._zod.def,{get shape(){let n={...e._zod.def.shape};for(let c in t){if(!(c in o.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete n[c]}return M9(this,"shape",n),n},checks:[]});return A4(e,r)}function $P1(e,t){if(!S9(t))throw new Error("Invalid input to extend: expected a plain object");let o=e._zod.def.checks;if(o&&o.length>0){let r=e._zod.def.shape;for(let n in t)if(Object.getOwnPropertyDescriptor(r,n)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=N8(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return M9(this,"shape",r),r}});return A4(e,i)}function IP1(e,t){if(!S9(t))throw new Error("Invalid input to safeExtend: expected a plain object");let o=N8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return M9(this,"shape",a),a}});return A4(e,o)}function DP1(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let o=N8(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return M9(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return A4(e,o)}function NP1(e,t,o){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let n=N8(t._zod.def,{get shape(){let c=t._zod.def.shape,l={...c};if(o)for(let f in o){if(!(f in c))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(l[f]=e?new e({type:"optional",innerType:c[f]}):c[f])}else for(let f in c)l[f]=e?new e({type:"optional",innerType:c[f]}):c[f];return M9(this,"shape",l),l},checks:[]});return A4(t,n)}function LP1(e,t,o){let a=N8(t._zod.def,{get shape(){let i=t._zod.def.shape,r={...i};if(o)for(let n in o){if(!(n in r))throw new Error(`Unrecognized key: "${n}"`);o[n]&&(r[n]=new e({type:"nonoptional",innerType:i[n]}))}else for(let n in i)r[n]=new e({type:"nonoptional",innerType:i[n]});return M9(this,"shape",r),r}});return A4(t,a)}function T9(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function rC(e,t=0){if(e.aborted===!0)return!0;for(let o=t;o<e.issues.length;o++)if(e.issues[o]?.continue===!1)return!0;return!1}function X4(e,t){return t.map(o=>{var a;return(a=o).path??(a.path=[]),o.path.unshift(e),o})}function ym(e){return typeof e=="string"?e:e?.message}function O4(e,t,o){let a=e.message?e.message:ym(e.inst?._zod.def?.error?.(e))??ym(t?.error?.(e))??ym(o.customError?.(e))??ym(o.localeError?.(e))??"Invalid input",{inst:i,continue:r,input:n,...c}=e;return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=n),c}function wm(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Mm(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function y1(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let o=e;if(o&&Object.getPrototypeOf(o)!==Object.prototype&&"constructor"in o&&o.constructor)return o.constructor.name}}return t}function cc(...e){let[t,o,a]=e;return typeof t=="string"?{message:t,code:"custom",input:o,inst:a}:{...t}}function jP1(e){return Object.entries(e).filter(([t,o])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function h41(e){let t=atob(e),o=new Uint8Array(t.length);for(let a=0;a<t.length;a++)o[a]=t.charCodeAt(a);return o}function g41(e){let t="";for(let o=0;o<e.length;o++)t+=String.fromCharCode(e[o]);return btoa(t)}function FP1(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-t.length%4)%4);return h41(t+o)}function BP1(e){return g41(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function VP1(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let o=new Uint8Array(t.length/2);for(let a=0;a<t.length;a+=2)o[a/2]=Number.parseInt(t.slice(a,a+2),16);return o}function UP1(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var JP=class{constructor(...t){}};var v41=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,rc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ba=J("$ZodError",v41),Y4=J("$ZodError",v41,{Parent:Error});function Sm(e,t=o=>o.message){let o={},a=[];for(let i of e.issues)i.path.length>0?(o[i.path[0]]=o[i.path[0]]||[],o[i.path[0]].push(t(i))):a.push(t(i));return{formErrors:a,fieldErrors:o}}function Tm(e,t=o=>o.message){let o={_errors:[]},a=(i,r=[])=>{for(let n of i.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(c=>a({issues:c},[...r,...n.path]));else if(n.code==="invalid_key")a({issues:n.issues},[...r,...n.path]);else if(n.code==="invalid_element")a({issues:n.issues},[...r,...n.path]);else{let c=[...r,...n.path];if(c.length===0)o._errors.push(t(n));else{let l=o,f=0;for(;f<c.length;){let m=c[f];f===c.length-1?(l[m]=l[m]||{_errors:[]},l[m]._errors.push(t(n))):l[m]=l[m]||{_errors:[]},l=l[m],f++}}}};return a(e),o}function nC(e,t=o=>o.message){let o={errors:[]},a=(i,r=[])=>{var n,c;for(let l of i.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(f=>a({issues:f},[...r,...l.path]));else if(l.code==="invalid_key")a({issues:l.issues},[...r,...l.path]);else if(l.code==="invalid_element")a({issues:l.issues},[...r,...l.path]);else{let f=[...r,...l.path];if(f.length===0){o.errors.push(t(l));continue}let m=o,d=0;for(;d<f.length;){let u=f[d],p=d===f.length-1;typeof u=="string"?(m.properties??(m.properties={}),(n=m.properties)[u]??(n[u]={errors:[]}),m=m.properties[u]):(m.items??(m.items=[]),(c=m.items)[u]??(c[u]={errors:[]}),m=m.items[u]),p&&m.errors.push(t(l)),d++}}};return a(e),o}function b41(e){let t=[],o=e.map(a=>typeof a=="object"?a.key:a);for(let a of o)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function cC(e){let t=[],o=[...e.issues].sort((a,i)=>(a.path??[]).length-(i.path??[]).length);for(let a of o)t.push(`✖ ${a.message}`),a.path?.length&&t.push(` → at ${b41(a.path)}`);return t.join(`
518
518
  `)}var lc=e=>(t,o,a,i)=>{let r=a?{...a,async:!1}:{async:!1},n=t._zod.run({value:o,issues:[]},r);if(n instanceof Promise)throw new r6;if(n.issues.length){let c=new(i?.Err??e)(n.issues.map(l=>O4(l,r,V3())));throw Ey(c,i?.callee),c}return n.value},sc=lc(Y4),fc=e=>async(t,o,a,i)=>{let r=a?{...a,async:!0}:{async:!0},n=t._zod.run({value:o,issues:[]},r);if(n instanceof Promise&&(n=await n),n.issues.length){let c=new(i?.Err??e)(n.issues.map(l=>O4(l,r,V3())));throw Ey(c,i?.callee),c}return n.value},mc=fc(Y4),dc=e=>(t,o,a)=>{let i=a?{...a,async:!1}:{async:!1},r=t._zod.run({value:o,issues:[]},i);if(r instanceof Promise)throw new r6;return r.issues.length?{success:!1,error:new(e??Ba)(r.issues.map(n=>O4(n,i,V3())))}:{success:!0,data:r.value}},lC=dc(Y4),uc=e=>async(t,o,a)=>{let i=a?{...a,async:!0}:{async:!0},r=t._zod.run({value:o,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(n=>O4(n,i,V3())))}:{success:!0,data:r.value}},sC=uc(Y4),_y=e=>(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return lc(e)(t,o,i)},GP1=_y(Y4),Py=e=>(t,o,a)=>lc(e)(t,o,a),KP1=Py(Y4),Cy=e=>async(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return fc(e)(t,o,i)},qP1=Cy(Y4),Ay=e=>async(t,o,a)=>fc(e)(t,o,a),WP1=Ay(Y4),Oy=e=>(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return dc(e)(t,o,i)},ZP1=Oy(Y4),$y=e=>(t,o,a)=>dc(e)(t,o,a),JP1=$y(Y4),Iy=e=>async(t,o,a)=>{let i=a?{...a,direction:"backward"}:{direction:"backward"};return uc(e)(t,o,i)},XP1=Iy(Y4),Dy=e=>async(t,o,a)=>uc(e)(t,o,a),YP1=Dy(Y4);s();s();var $5={};o0($5,{base64:()=>SC,base64url:()=>Ny,bigint:()=>AC,boolean:()=>$C,browserEmail:()=>nC1,cidrv4:()=>wC,cidrv6:()=>MC,cuid:()=>fC,cuid2:()=>mC,date:()=>EC,datetime:()=>PC,domain:()=>sC1,duration:()=>gC,e164:()=>RC,email:()=>bC,emoji:()=>yC,extendedDuration:()=>QP1,guid:()=>vC,hex:()=>fC1,hostname:()=>lC1,html5Email:()=>aC1,httpProtocol:()=>TC,idnEmail:()=>rC1,integer:()=>OC,ipv4:()=>kC,ipv6:()=>xC,ksuid:()=>pC,lowercase:()=>NC,mac:()=>zC,md5_base64:()=>dC1,md5_base64url:()=>uC1,md5_hex:()=>mC1,nanoid:()=>hC,null:()=>IC,number:()=>Ly,rfc5322Email:()=>iC1,sha1_base64:()=>hC1,sha1_base64url:()=>gC1,sha1_hex:()=>pC1,sha256_base64:()=>bC1,sha256_base64url:()=>yC1,sha256_hex:()=>vC1,sha384_base64:()=>xC1,sha384_base64url:()=>zC1,sha384_hex:()=>kC1,sha512_base64:()=>MC1,sha512_base64url:()=>SC1,sha512_hex:()=>wC1,string:()=>CC,time:()=>_C,ulid:()=>dC,undefined:()=>DC,unicodeEmail:()=>y41,uppercase:()=>LC,uuid:()=>Va,uuid4:()=>eC1,uuid6:()=>tC1,uuid7:()=>oC1,xid:()=>uC});s();var fC=/^[cC][0-9a-z]{6,}$/,mC=/^[0-9a-z]+$/,dC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,uC=/^[0-9a-vA-V]{20}$/,pC=/^[A-Za-z0-9]{27}$/,hC=/^[a-zA-Z0-9_-]{21}$/,gC=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QP1=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,vC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Va=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,eC1=Va(4),tC1=Va(6),oC1=Va(7),bC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,aC1=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,iC1=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,y41=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rC1=y41,nC1=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,cC1="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function yC(){return new RegExp(cC1,"u")}var kC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,xC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,zC=e=>{let t=xe(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},wC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,MC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,SC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ny=/^[A-Za-z0-9_-]*$/,lC1=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,sC1=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,TC=/^https?$/,RC=/^\+[1-9]\d{6,14}$/,k41="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",EC=new RegExp(`^${k41}$`);function x41(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _C(e){return new RegExp(`^${x41(e)}$`)}function PC(e){let t=x41({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${o.join("|")})`;return new RegExp(`^${k41}T(?:${a})$`)}var CC=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},AC=/^-?\d+n?$/,OC=/^-?\d+$/,Ly=/^-?\d+(?:\.\d+)?$/,$C=/^(?:true|false)$/i,IC=/^null$/i;var DC=/^undefined$/i;var NC=/^[^A-Z]*$/,LC=/^[^a-z]*$/,fC1=/^[0-9a-fA-F]*$/;function Rm(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Em(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var mC1=/^[0-9a-fA-F]{32}$/,dC1=Rm(22,"=="),uC1=Em(22),pC1=/^[0-9a-fA-F]{40}$/,hC1=Rm(27,"="),gC1=Em(27),vC1=/^[0-9a-fA-F]{64}$/,bC1=Rm(43,"="),yC1=Em(43),kC1=/^[0-9a-fA-F]{96}$/,xC1=Rm(64,""),zC1=Em(64),wC1=/^[0-9a-fA-F]{128}$/,MC1=Rm(86,"=="),SC1=Em(86);var t3=J("$ZodCheck",(e,t)=>{var o;e._zod??(e._zod={}),e._zod.def=t,(o=e._zod).onattach??(o.onattach=[])}),w41={number:"number",bigint:"bigint",object:"date"},jy=J("$ZodCheckLessThan",(e,t)=>{t3.init(e,t);let o=w41[typeof t.value];e._zod.onattach.push(a=>{let i=a._zod.bag,r=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:o,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fy=J("$ZodCheckGreaterThan",(e,t)=>{t3.init(e,t);let o=w41[typeof t.value];e._zod.onattach.push(a=>{let i=a._zod.bag,r=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:o,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jC=J("$ZodCheckMultipleOf",(e,t)=>{t3.init(e,t),e._zod.onattach.push(o=>{var a;(a=o._zod.bag).multipleOf??(a.multipleOf=t.value)}),e._zod.check=o=>{if(typeof o.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%t.value===BigInt(0):XP(o.value,t.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:t.value,input:o.value,inst:e,continue:!t.abort})}}),FC=J("$ZodCheckNumberFormat",(e,t)=>{t3.init(e,t),t.format=t.format||"float64";let o=t.format?.includes("int"),a=o?"int":"number",[i,r]=aC[t.format];e._zod.onattach.push(n=>{let c=n._zod.bag;c.format=t.format,c.minimum=i,c.maximum=r,o&&(c.pattern=OC)}),e._zod.check=n=>{let c=n.value;if(o){if(!Number.isInteger(c)){n.issues.push({expected:a,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?n.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort}):n.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:a,inclusive:!0,continue:!t.abort});return}}c<i&&n.issues.push({origin:"number",input:c,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),c>r&&n.issues.push({origin:"number",input:c,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),BC=J("$ZodCheckBigIntFormat",(e,t)=>{t3.init(e,t);let[o,a]=iC[t.format];e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,r.minimum=o,r.maximum=a}),e._zod.check=i=>{let r=i.value;r<o&&i.issues.push({origin:"bigint",input:r,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),r>a&&i.issues.push({origin:"bigint",input:r,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),VC=J("$ZodCheckMaxSize",(e,t)=>{var o;t3.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!w9(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let i=a.value;i.size<=t.maximum||a.issues.push({origin:wm(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),UC=J("$ZodCheckMinSize",(e,t)=>{var o;t3.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!w9(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let i=a.value;i.size>=t.minimum||a.issues.push({origin:wm(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),HC=J("$ZodCheckSizeEquals",(e,t)=>{var o;t3.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!w9(i)&&i.size!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=a=>{let i=a.value,r=i.size;if(r===t.size)return;let n=r>t.size;a.issues.push({origin:wm(i),...n?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),GC=J("$ZodCheckMaxLength",(e,t)=>{var o;t3.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!w9(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let i=a.value;if(i.length<=t.maximum)return;let n=Mm(i);a.issues.push({origin:n,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),KC=J("$ZodCheckMinLength",(e,t)=>{var o;t3.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!w9(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let i=a.value;if(i.length>=t.minimum)return;let n=Mm(i);a.issues.push({origin:n,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),qC=J("$ZodCheckLengthEquals",(e,t)=>{var o;t3.init(e,t),(o=e._zod.def).when??(o.when=a=>{let i=a.value;return!w9(i)&&i.length!==void 0}),e._zod.onattach.push(a=>{let i=a._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=a=>{let i=a.value,r=i.length;if(r===t.length)return;let n=Mm(i),c=r>t.length;a.issues.push({origin:n,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),pc=J("$ZodCheckStringFormat",(e,t)=>{var o,a;t3.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.patterns.add(t.pattern))}),t.pattern?(o=e._zod).check??(o.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),WC=J("$ZodCheckRegex",(e,t)=>{pc.init(e,t),e._zod.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ZC=J("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=NC),pc.init(e,t)}),JC=J("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=LC),pc.init(e,t)}),XC=J("$ZodCheckIncludes",(e,t)=>{t3.init(e,t);let o=xe(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${o}`:o);t.pattern=a,e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),YC=J("$ZodCheckStartsWith",(e,t)=>{t3.init(e,t);let o=new RegExp(`^${xe(t.prefix)}.*`);t.pattern??(t.pattern=o),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),QC=J("$ZodCheckEndsWith",(e,t)=>{t3.init(e,t);let o=new RegExp(`.*${xe(t.suffix)}$`);t.pattern??(t.pattern=o),e._zod.onattach.push(a=>{let i=a._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function z41(e,t,o){e.issues.length&&t.issues.push(...X4(o,e.issues))}var eA=J("$ZodCheckProperty",(e,t)=>{t3.init(e,t),e._zod.check=o=>{let a=t.schema._zod.run({value:o.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(i=>z41(i,o,t.property));z41(a,o,t.property)}}),tA=J("$ZodCheckMimeType",(e,t)=>{t3.init(e,t);let o=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{o.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),oA=J("$ZodCheckOverwrite",(e,t)=>{t3.init(e,t),e._zod.check=o=>{o.value=t.tx(o.value)}});s();var _m=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let a=t.split(`
519
519
  `).filter(n=>n),i=Math.min(...a.map(n=>n.length-n.trimStart().length)),r=a.map(n=>n.slice(i)).map(n=>" ".repeat(this.indent*2)+n);for(let n of r)this.content.push(n)}compile(){let t=Function,o=this?.args,i=[...(this?.content??[""]).map(r=>` ${r}`)];return new t(...o,i.join(`
520
520
  `))}};s();var aA={major:4,minor:4,patch:3};var a2=J("$ZodType",(e,t)=>{var o;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=aA;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let i of a)for(let r of i._zod.onattach)r(e);if(a.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(n,c,l)=>{let f=T9(n),m;for(let d of c){if(d._zod.def.when){if(rC(n)||!d._zod.def.when(n))continue}else if(f)continue;let u=n.issues.length,p=d._zod.check(n);if(p instanceof Promise&&l?.async===!1)throw new r6;if(m||p instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await p,n.issues.length!==u&&(f||(f=T9(n,u)))});else{if(n.issues.length===u)continue;f||(f=T9(n,u))}}return m?m.then(()=>n):n},r=(n,c,l)=>{if(T9(n))return n.aborted=!0,n;let f=i(c,a,l);if(f instanceof Promise){if(l.async===!1)throw new r6;return f.then(m=>e._zod.parse(m,l))}return e._zod.parse(f,l)};e._zod.run=(n,c)=>{if(c.skipChecks)return e._zod.parse(n,c);if(c.direction==="backward"){let f=e._zod.parse({value:n.value,issues:[]},{...c,skipChecks:!0});return f instanceof Promise?f.then(m=>r(m,n,c)):r(f,n,c)}let l=e._zod.parse(n,c);if(l instanceof Promise){if(c.async===!1)throw new r6;return l.then(f=>i(f,a,c))}return i(l,a,c)}}k2(e,"~standard",()=>({validate:i=>{try{let r=lC(e,i);return r.success?{value:r.data}:{issues:r.error?.issues}}catch{return sC(e,i).then(n=>n.success?{value:n.data}:{issues:n.error?.issues})}},vendor:"zod",version:1}))}),Ua=J("$ZodString",(e,t)=>{a2.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??CC(e._zod.bag),e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),Z2=J("$ZodStringFormat",(e,t)=>{pc.init(e,t),Ua.init(e,t)}),rA=J("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=vC),Z2.init(e,t)}),nA=J("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Va(a))}else t.pattern??(t.pattern=Va());Z2.init(e,t)}),cA=J("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=bC),Z2.init(e,t)}),lA=J("$ZodURL",(e,t)=>{Z2.init(e,t),e._zod.check=o=>{try{let a=o.value.trim();if(!t.normalize&&t.protocol?.source===TC.source&&!/^https?:\/\//i.test(a)){o.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:o.value,inst:e,continue:!t.abort});return}let i=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:o.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:o.value,inst:e,continue:!t.abort})),t.normalize?o.value=i.href:o.value=a;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!t.abort})}}}),sA=J("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yC()),Z2.init(e,t)}),fA=J("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=hC),Z2.init(e,t)}),mA=J("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=fC),Z2.init(e,t)}),dA=J("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=mC),Z2.init(e,t)}),uA=J("$ZodULID",(e,t)=>{t.pattern??(t.pattern=dC),Z2.init(e,t)}),pA=J("$ZodXID",(e,t)=>{t.pattern??(t.pattern=uC),Z2.init(e,t)}),hA=J("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=pC),Z2.init(e,t)}),gA=J("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=PC(t)),Z2.init(e,t)}),vA=J("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=EC),Z2.init(e,t)}),bA=J("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_C(t)),Z2.init(e,t)}),yA=J("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=gC),Z2.init(e,t)}),kA=J("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=kC),Z2.init(e,t),e._zod.bag.format="ipv4"}),xA=J("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=xC),Z2.init(e,t),e._zod.bag.format="ipv6",e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!t.abort})}}}),zA=J("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=zC(t.delimiter)),Z2.init(e,t),e._zod.bag.format="mac"}),wA=J("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=wC),Z2.init(e,t)}),MA=J("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=MC),Z2.init(e,t),e._zod.check=o=>{let a=o.value.split("/");try{if(a.length!==2)throw new Error;let[i,r]=a;if(!r)throw new Error;let n=Number(r);if(`${n}`!==r)throw new Error;if(n<0||n>128)throw new Error;new URL(`http://[${i}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!t.abort})}}});function SA(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var TA=J("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=SC),Z2.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=o=>{SA(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!t.abort})}});function j41(e){if(!Ny.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),o=t.padEnd(Math.ceil(t.length/4)*4,"=");return SA(o)}var RA=J("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ny),Z2.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=o=>{j41(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!t.abort})}}),EA=J("$ZodE164",(e,t)=>{t.pattern??(t.pattern=RC),Z2.init(e,t)});function F41(e,t=null){try{let o=e.split(".");if(o.length!==3)return!1;let[a]=o;if(!a)return!1;let i=JSON.parse(atob(a));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var _A=J("$ZodJWT",(e,t)=>{Z2.init(e,t),e._zod.check=o=>{F41(o.value,t.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!t.abort})}}),PA=J("$ZodCustomStringFormat",(e,t)=>{Z2.init(e,t),e._zod.check=o=>{t.fn(o.value)||o.issues.push({code:"invalid_format",format:t.format,input:o.value,inst:e,continue:!t.abort})}}),Gy=J("$ZodNumber",(e,t)=>{a2.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ly,e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=Number(o.value)}catch{}let i=o.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return o;let r=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...r?{received:r}:{}}),o}}),CA=J("$ZodNumberFormat",(e,t)=>{FC.init(e,t),Gy.init(e,t)}),Pm=J("$ZodBoolean",(e,t)=>{a2.init(e,t),e._zod.pattern=$C,e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=!!o.value}catch{}let i=o.value;return typeof i=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),o}}),Ky=J("$ZodBigInt",(e,t)=>{a2.init(e,t),e._zod.pattern=AC,e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),AA=J("$ZodBigIntFormat",(e,t)=>{BC.init(e,t),Ky.init(e,t)}),OA=J("$ZodSymbol",(e,t)=>{a2.init(e,t),e._zod.parse=(o,a)=>{let i=o.value;return typeof i=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),o}}),$A=J("$ZodUndefined",(e,t)=>{a2.init(e,t),e._zod.pattern=DC,e._zod.values=new Set([void 0]),e._zod.parse=(o,a)=>{let i=o.value;return typeof i>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),o}}),IA=J("$ZodNull",(e,t)=>{a2.init(e,t),e._zod.pattern=IC,e._zod.values=new Set([null]),e._zod.parse=(o,a)=>{let i=o.value;return i===null||o.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),o}}),DA=J("$ZodAny",(e,t)=>{a2.init(e,t),e._zod.parse=o=>o}),NA=J("$ZodUnknown",(e,t)=>{a2.init(e,t),e._zod.parse=o=>o}),LA=J("$ZodNever",(e,t)=>{a2.init(e,t),e._zod.parse=(o,a)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),jA=J("$ZodVoid",(e,t)=>{a2.init(e,t),e._zod.parse=(o,a)=>{let i=o.value;return typeof i>"u"||o.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),o}}),FA=J("$ZodDate",(e,t)=>{a2.init(e,t),e._zod.parse=(o,a)=>{if(t.coerce)try{o.value=new Date(o.value)}catch{}let i=o.value,r=i instanceof Date;return r&&!Number.isNaN(i.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:i,...r?{received:"Invalid Date"}:{},inst:e}),o}});function S41(e,t,o){e.issues.length&&t.issues.push(...X4(o,e.issues)),t.value[o]=e.value}var BA=J("$ZodArray",(e,t)=>{a2.init(e,t),e._zod.parse=(o,a)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),o;o.value=Array(i.length);let r=[];for(let n=0;n<i.length;n++){let c=i[n],l=t.element._zod.run({value:c,issues:[]},a);l instanceof Promise?r.push(l.then(f=>S41(f,o,n))):S41(l,o,n)}return r.length?Promise.all(r).then(()=>o):o}});function Hy(e,t,o,a,i,r){let n=o in a;if(e.issues.length){if(i&&r&&!n)return;t.issues.push(...X4(o,e.issues))}if(!n&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[o]});return}e.value===void 0?n&&(t.value[o]=void 0):t.value[o]=e.value}function B41(e){let t=Object.keys(e.shape);for(let a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);let o=oC(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function V41(e,t,o,a,i,r){let n=[],c=i.keySet,l=i.catchall._zod,f=l.def.type,m=l.optin==="optional",d=l.optout==="optional";for(let u in t){if(u==="__proto__"||c.has(u))continue;if(f==="never"){n.push(u);continue}let p=l.run({value:t[u],issues:[]},a);p instanceof Promise?e.push(p.then(b=>Hy(b,o,u,t,m,d))):Hy(p,o,u,t,m,d)}return n.length&&o.issues.push({code:"unrecognized_keys",keys:n,input:t,inst:r}),e.length?Promise.all(e).then(()=>o):o}var U41=J("$ZodObject",(e,t)=>{if(a2.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...c};return Object.defineProperty(t,"shape",{value:l}),l}})}let a=nc(()=>B41(t));k2(e._zod,"propValues",()=>{let c=t.shape,l={};for(let f in c){let m=c[f]._zod;if(m.values){l[f]??(l[f]=new Set);for(let d of m.values)l[f].add(d)}}return l});let i=Fa,r=t.catchall,n;e._zod.parse=(c,l)=>{n??(n=a.value);let f=c.value;if(!i(f))return c.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),c;c.value={};let m=[],d=n.shape;for(let u of n.keys){let p=d[u],b=p._zod.optin==="optional",g=p._zod.optout==="optional",x=p._zod.run({value:f[u],issues:[]},l);x instanceof Promise?m.push(x.then(y=>Hy(y,c,u,f,b,g))):Hy(x,c,u,f,b,g)}return r?V41(m,f,c,l,a.value,e):m.length?Promise.all(m).then(()=>c):c}}),VA=J("$ZodObjectJIT",(e,t)=>{U41.init(e,t);let o=e._zod.parse,a=nc(()=>B41(t)),i=u=>{let p=new _m(["shape","payload","ctx"]),b=a.value,g=k=>{let w=Ry(k);return`shape[${w}]._zod.run({ value: input[${w}], issues: [] }, ctx)`};p.write("const input = payload.value;");let x=Object.create(null),y=0;for(let k of b.keys)x[k]=`key_${y++}`;p.write("const newResult = {};");for(let k of b.keys){let w=x[k],T=Ry(k),A=u[k],_=A?._zod?.optin==="optional",z=A?._zod?.optout==="optional";p.write(`const ${w} = ${g(k)};`),_&&z?p.write(`