LightRAG/lightrag/api/webui/assets/utils-vendor-elCzPYZl.js
2025-07-14 17:19:28 +08:00

6 lines
104 KiB
JavaScript
Generated

import{R as bt}from"./react-vendor-CgPb4pW_.js";const yt=r=>{let e;const t=new Set,n=(c,u)=>{const d=typeof c=="function"?c(e):c;if(!Object.is(d,e)){const h=e;e=u??(typeof d!="object"||d===null)?d:Object.assign({},e,d),t.forEach(b=>b(e,h))}},s=()=>e,a={setState:n,getState:s,getInitialState:()=>l,subscribe:c=>(t.add(c),()=>t.delete(c))},l=e=r(n,s,a);return a},jr=r=>r?yt(r):yt,$r=r=>r;function Ir(r,e=$r){const t=bt.useSyncExternalStore(r.subscribe,()=>e(r.getState()),()=>e(r.getInitialState()));return bt.useDebugValue(t),t}const xt=r=>{const e=jr(r),t=n=>Ir(e,n);return Object.assign(t,e),t},ho=r=>r?xt(r):xt;function Xt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r)){var s=r.length;for(e=0;e<s;e++)r[e]&&(t=Xt(r[e]))&&(n&&(n+=" "),n+=t)}else for(t in r)r[t]&&(n&&(n+=" "),n+=t);return n}function po(){for(var r,e,t=0,n="",s=arguments.length;t<s;t++)(r=arguments[t])&&(e=Xt(r))&&(n&&(n+=" "),n+=e);return n}const dt="-",Dr=r=>{const e=Mr(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=r;return{getClassGroupId:i=>{const a=i.split(dt);return a[0]===""&&a.length!==1&&a.shift(),Qt(a,e)||Ur(i)},getConflictingClassGroupIds:(i,a)=>{const l=t[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},Qt=(r,e)=>{var i;if(r.length===0)return e.classGroupId;const t=r[0],n=e.nextPart.get(t),s=n?Qt(r.slice(1),n):void 0;if(s)return s;if(e.validators.length===0)return;const o=r.join(dt);return(i=e.validators.find(({validator:a})=>a(o)))==null?void 0:i.classGroupId},wt=/^\[(.+)\]$/,Ur=r=>{if(wt.test(r)){const e=wt.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}},Mr=r=>{const{theme:e,classGroups:t}=r,n={nextPart:new Map,validators:[]};for(const s in t)tt(t[s],n,s,e);return n},tt=(r,e,t,n)=>{r.forEach(s=>{if(typeof s=="string"){const o=s===""?e:St(e,s);o.classGroupId=t;return}if(typeof s=="function"){if(zr(s)){tt(s(n),e,t,n);return}e.validators.push({validator:s,classGroupId:t});return}Object.entries(s).forEach(([o,i])=>{tt(i,St(e,o),t,n)})})},St=(r,e)=>{let t=r;return e.split(dt).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},zr=r=>r.isThemeGetter,Br=r=>{if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,n=new Map;const s=(o,i)=>{t.set(o,i),e++,e>r&&(e=0,n=t,t=new Map)};return{get(o){let i=t.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return s(o,i),i},set(o,i){t.has(o)?t.set(o,i):s(o,i)}}},rt="!",nt=":",Vr=nt.length,Hr=r=>{const{prefix:e,experimentalParseClassName:t}=r;let n=s=>{const o=[];let i=0,a=0,l=0,c;for(let p=0;p<s.length;p++){let m=s[p];if(i===0&&a===0){if(m===nt){o.push(s.slice(l,p)),l=p+Vr;continue}if(m==="/"){c=p;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const u=o.length===0?s:s.substring(l),d=Kr(u),h=d!==u,b=c&&c>l?c-l:void 0;return{modifiers:o,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:b}};if(e){const s=e+nt,o=n;n=i=>i.startsWith(s)?o(i.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(t){const s=n;n=o=>t({className:o,parseClassName:s})}return n},Kr=r=>r.endsWith(rt)?r.substring(0,r.length-1):r.startsWith(rt)?r.substring(1):r,_r=r=>{const e=Object.fromEntries(r.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const s=[];let o=[];return n.forEach(i=>{i[0]==="["||e[i]?(s.push(...o.sort(),i),o=[]):o.push(i)}),s.push(...o.sort()),s}},qr=r=>({cache:Br(r.cacheSize),parseClassName:Hr(r),sortModifiers:_r(r),...Dr(r)}),Jr=/\s+/,Gr=(r,e)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:s,sortModifiers:o}=e,i=[],a=r.trim().split(Jr);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:h,hasImportantModifier:b,baseClassName:p,maybePostfixModifierPosition:m}=t(u);if(d){l=u+(l.length>0?" "+l:l);continue}let g=!!m,O=n(g?p.substring(0,m):p);if(!O){if(!g){l=u+(l.length>0?" "+l:l);continue}if(O=n(p),!O){l=u+(l.length>0?" "+l:l);continue}g=!1}const v=o(h).join(":"),C=b?v+rt:v,A=C+O;if(i.includes(A))continue;i.push(A);const P=s(O,g);for(let T=0;T<P.length;++T){const L=P[T];i.push(C+L)}l=u+(l.length>0?" "+l:l)}return l};function Wr(){let r=0,e,t,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Yt(e))&&(n&&(n+=" "),n+=t);return n}const Yt=r=>{if(typeof r=="string")return r;let e,t="";for(let n=0;n<r.length;n++)r[n]&&(e=Yt(r[n]))&&(t&&(t+=" "),t+=e);return t};function Xr(r,...e){let t,n,s,o=i;function i(l){const c=e.reduce((u,d)=>d(u),r());return t=qr(c),n=t.cache.get,s=t.cache.set,o=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=Gr(l,t);return s(l,u),u}return function(){return o(Wr.apply(null,arguments))}}const j=r=>{const e=t=>t[r]||[];return e.isThemeGetter=!0,e},Zt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,er=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Qr=/^\d+\/\d+$/,Yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,en=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,le=r=>Qr.test(r),E=r=>!!r&&!Number.isNaN(Number(r)),re=r=>!!r&&Number.isInteger(Number(r)),We=r=>r.endsWith("%")&&E(r.slice(0,-1)),ee=r=>Yr.test(r),nn=()=>!0,sn=r=>Zr.test(r)&&!en.test(r),tr=()=>!1,on=r=>tn.test(r),an=r=>rn.test(r),ln=r=>!y(r)&&!x(r),cn=r=>de(r,sr,tr),y=r=>Zt.test(r),ne=r=>de(r,or,sn),Xe=r=>de(r,pn,E),Rt=r=>de(r,rr,tr),un=r=>de(r,nr,an),Le=r=>de(r,ir,on),x=r=>er.test(r),me=r=>fe(r,or),dn=r=>fe(r,gn),Ot=r=>fe(r,rr),fn=r=>fe(r,sr),hn=r=>fe(r,nr),Ae=r=>fe(r,ir,!0),de=(r,e,t)=>{const n=Zt.exec(r);return n?n[1]?e(n[1]):t(n[2]):!1},fe=(r,e,t=!1)=>{const n=er.exec(r);return n?n[1]?e(n[1]):t:!1},rr=r=>r==="position"||r==="percentage",nr=r=>r==="image"||r==="url",sr=r=>r==="length"||r==="size"||r==="bg-size",or=r=>r==="length",pn=r=>r==="number",gn=r=>r==="family-name",ir=r=>r==="shadow",mn=()=>{const r=j("color"),e=j("font"),t=j("text"),n=j("font-weight"),s=j("tracking"),o=j("leading"),i=j("breakpoint"),a=j("container"),l=j("spacing"),c=j("radius"),u=j("shadow"),d=j("inset-shadow"),h=j("text-shadow"),b=j("drop-shadow"),p=j("blur"),m=j("perspective"),g=j("aspect"),O=j("ease"),v=j("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...A(),x,y],T=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],w=()=>[x,y,l],F=()=>[le,"full","auto",...w()],Z=()=>[re,"none","subgrid",x,y],D=()=>["auto",{span:["full",re,x,y]},re,x,y],U=()=>[re,"auto",x,y],ge=()=>["auto","min","max","fr",x,y],K=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],M=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...w()],G=()=>[le,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],S=()=>[r,x,y],z=()=>[...A(),Ot,Rt,{position:[x,y]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",fn,cn,{size:[x,y]}],ae=()=>[We,me,ne],$=()=>["","none","full",c,x,y],J=()=>["",E,me,ne],ke=()=>["solid","dashed","dotted","double"],gt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[E,We,Ot,Rt],mt=()=>["","none",p,x,y],Ee=()=>["none",E,x,y],ve=()=>["none",E,x,y],Ge=()=>[E,x,y],Ce=()=>[le,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ee],breakpoint:[ee],color:[nn],container:[ee],"drop-shadow":[ee],ease:["in","out","in-out"],font:[ln],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ee],shadow:[ee],spacing:["px",E],text:[ee],"text-shadow":[ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",le,y,x,g]}],container:["container"],columns:[{columns:[E,y,x,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{start:F()}],end:[{end:F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[re,"auto",x,y]}],basis:[{basis:[le,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,le,"auto","initial","none",y]}],grow:[{grow:["",E,x,y]}],shrink:[{shrink:["",E,x,y]}],order:[{order:[re,"first","last","none",x,y]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...K(),"normal"]}],"justify-items":[{"justify-items":[...M(),"normal"]}],"justify-self":[{"justify-self":["auto",...M()]}],"align-content":[{content:["normal",...K()]}],"align-items":[{items:[...M(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...M(),{baseline:["","last"]}]}],"place-content":[{"place-content":K()}],"place-items":[{"place-items":[...M(),"baseline"]}],"place-self":[{"place-self":["auto",...M()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[a,"screen",...G()]}],"min-w":[{"min-w":[a,"screen","none",...G()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",t,me,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,x,Xe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",We,y]}],"font-family":[{font:[dn,y,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,x,y]}],"line-clamp":[{"line-clamp":[E,"none",x,Xe]}],leading:[{leading:[o,...w()]}],"list-image":[{"list-image":["none",x,y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",x,ne]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[E,"auto",x,y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x,y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:z()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},re,x,y],radial:["",x,y],conic:[re,x,y]},hn,un]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ke(),"hidden","none"]}],"divide-style":[{divide:[...ke(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,x,y]}],"outline-w":[{outline:["",E,me,ne]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",u,Ae,Le]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",d,Ae,Le]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[E,ne]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,Ae,Le]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[E,x,y]}],"mix-blend":[{"mix-blend":[...gt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":gt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[x,y]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:z()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,y]}],filter:[{filter:["","none",x,y]}],blur:[{blur:mt()}],brightness:[{brightness:[E,x,y]}],contrast:[{contrast:[E,x,y]}],"drop-shadow":[{"drop-shadow":["","none",b,Ae,Le]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",E,x,y]}],"hue-rotate":[{"hue-rotate":[E,x,y]}],invert:[{invert:["",E,x,y]}],saturate:[{saturate:[E,x,y]}],sepia:[{sepia:["",E,x,y]}],"backdrop-filter":[{"backdrop-filter":["","none",x,y]}],"backdrop-blur":[{"backdrop-blur":mt()}],"backdrop-brightness":[{"backdrop-brightness":[E,x,y]}],"backdrop-contrast":[{"backdrop-contrast":[E,x,y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,x,y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,x,y]}],"backdrop-invert":[{"backdrop-invert":["",E,x,y]}],"backdrop-opacity":[{"backdrop-opacity":[E,x,y]}],"backdrop-saturate":[{"backdrop-saturate":[E,x,y]}],"backdrop-sepia":[{"backdrop-sepia":["",E,x,y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",x,y]}],ease:[{ease:["linear","initial",O,x,y]}],delay:[{delay:[E,x,y]}],animate:[{animate:["none",v,x,y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,x,y]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[x,y,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x,y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x,y]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[E,me,ne,Xe]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},go=Xr(mn);function ar(r,e){return function(){return r.apply(e,arguments)}}const{toString:bn}=Object.prototype,{getPrototypeOf:ft}=Object,{iterator:ze,toStringTag:lr}=Symbol,Be=(r=>e=>{const t=bn.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),W=r=>(r=r.toLowerCase(),e=>Be(e)===r),Ve=r=>e=>typeof e===r,{isArray:he}=Array,we=Ve("undefined");function yn(r){return r!==null&&!we(r)&&r.constructor!==null&&!we(r.constructor)&&_(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const cr=W("ArrayBuffer");function xn(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&cr(r.buffer),e}const wn=Ve("string"),_=Ve("function"),ur=Ve("number"),He=r=>r!==null&&typeof r=="object",Sn=r=>r===!0||r===!1,Te=r=>{if(Be(r)!=="object")return!1;const e=ft(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(lr in r)&&!(ze in r)},Rn=W("Date"),On=W("File"),kn=W("Blob"),En=W("FileList"),vn=r=>He(r)&&_(r.pipe),Cn=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||_(r.append)&&((e=Be(r))==="formdata"||e==="object"&&_(r.toString)&&r.toString()==="[object FormData]"))},Ln=W("URLSearchParams"),[An,Pn,Tn,Nn]=["ReadableStream","Request","Response","Headers"].map(W),Fn=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Re(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,s;if(typeof r!="object"&&(r=[r]),he(r))for(n=0,s=r.length;n<s;n++)e.call(null,r[n],n,r);else{const o=t?Object.getOwnPropertyNames(r):Object.keys(r),i=o.length;let a;for(n=0;n<i;n++)a=o[n],e.call(null,r[a],a,r)}}function dr(r,e){e=e.toLowerCase();const t=Object.keys(r);let n=t.length,s;for(;n-- >0;)if(s=t[n],e===s.toLowerCase())return s;return null}const se=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fr=r=>!we(r)&&r!==se;function st(){const{caseless:r}=fr(this)&&this||{},e={},t=(n,s)=>{const o=r&&dr(e,s)||s;Te(e[o])&&Te(n)?e[o]=st(e[o],n):Te(n)?e[o]=st({},n):he(n)?e[o]=n.slice():e[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Re(arguments[n],t);return e}const jn=(r,e,t,{allOwnKeys:n}={})=>(Re(e,(s,o)=>{t&&_(s)?r[o]=ar(s,t):r[o]=s},{allOwnKeys:n}),r),$n=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),In=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Dn=(r,e,t,n)=>{let s,o,i;const a={};if(e=e||{},r==null)return e;do{for(s=Object.getOwnPropertyNames(r),o=s.length;o-- >0;)i=s[o],(!n||n(i,r,e))&&!a[i]&&(e[i]=r[i],a[i]=!0);r=t!==!1&&ft(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Un=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},Mn=r=>{if(!r)return null;if(he(r))return r;let e=r.length;if(!ur(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},zn=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&ft(Uint8Array)),Bn=(r,e)=>{const n=(r&&r[ze]).call(r);let s;for(;(s=n.next())&&!s.done;){const o=s.value;e.call(r,o[0],o[1])}},Vn=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Hn=W("HTMLFormElement"),Kn=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,s){return n.toUpperCase()+s}),kt=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),_n=W("RegExp"),hr=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};Re(t,(s,o)=>{let i;(i=e(s,o,r))!==!1&&(n[o]=i||s)}),Object.defineProperties(r,n)},qn=r=>{hr(r,(e,t)=>{if(_(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(_(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},Jn=(r,e)=>{const t={},n=s=>{s.forEach(o=>{t[o]=!0})};return he(r)?n(r):n(String(r).split(e)),t},Gn=()=>{},Wn=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Xn(r){return!!(r&&_(r.append)&&r[lr]==="FormData"&&r[ze])}const Qn=r=>{const e=new Array(10),t=(n,s)=>{if(He(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[s]=n;const o=he(n)?[]:{};return Re(n,(i,a)=>{const l=t(i,s+1);!we(l)&&(o[a]=l)}),e[s]=void 0,o}}return n};return t(r,0)},Yn=W("AsyncFunction"),Zn=r=>r&&(He(r)||_(r))&&_(r.then)&&_(r.catch),pr=((r,e)=>r?setImmediate:e?((t,n)=>(se.addEventListener("message",({source:s,data:o})=>{s===se&&o===t&&n.length&&n.shift()()},!1),s=>{n.push(s),se.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",_(se.postMessage)),es=typeof queueMicrotask<"u"?queueMicrotask.bind(se):typeof process<"u"&&process.nextTick||pr,ts=r=>r!=null&&_(r[ze]),f={isArray:he,isArrayBuffer:cr,isBuffer:yn,isFormData:Cn,isArrayBufferView:xn,isString:wn,isNumber:ur,isBoolean:Sn,isObject:He,isPlainObject:Te,isReadableStream:An,isRequest:Pn,isResponse:Tn,isHeaders:Nn,isUndefined:we,isDate:Rn,isFile:On,isBlob:kn,isRegExp:_n,isFunction:_,isStream:vn,isURLSearchParams:Ln,isTypedArray:zn,isFileList:En,forEach:Re,merge:st,extend:jn,trim:Fn,stripBOM:$n,inherits:In,toFlatObject:Dn,kindOf:Be,kindOfTest:W,endsWith:Un,toArray:Mn,forEachEntry:Bn,matchAll:Vn,isHTMLForm:Hn,hasOwnProperty:kt,hasOwnProp:kt,reduceDescriptors:hr,freezeMethods:qn,toObjectSet:Jn,toCamelCase:Kn,noop:Gn,toFiniteNumber:Wn,findKey:dr,global:se,isContextDefined:fr,isSpecCompliantForm:Xn,toJSONObject:Qn,isAsyncFn:Yn,isThenable:Zn,setImmediate:pr,asap:es,isIterable:ts};function k(r,e,t,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}f.inherits(k,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const gr=k.prototype,mr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{mr[r]={value:r}});Object.defineProperties(k,mr);Object.defineProperty(gr,"isAxiosError",{value:!0});k.from=(r,e,t,n,s,o)=>{const i=Object.create(gr);return f.toFlatObject(r,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),k.call(i,r.message,e,t,n,s),i.cause=r,i.name=r.name,o&&Object.assign(i,o),i};const rs=null;function ot(r){return f.isPlainObject(r)||f.isArray(r)}function br(r){return f.endsWith(r,"[]")?r.slice(0,-2):r}function Et(r,e,t){return r?r.concat(e).map(function(s,o){return s=br(s),!t&&o?"["+s+"]":s}).join(t?".":""):e}function ns(r){return f.isArray(r)&&!r.some(ot)}const ss=f.toFlatObject(f,{},null,function(e){return/^is[A-Z]/.test(e)});function Ke(r,e,t){if(!f.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=f.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!f.isUndefined(g[m])});const n=t.metaTokens,s=t.visitor||u,o=t.dots,i=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(e);if(!f.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(f.isDate(p))return p.toISOString();if(f.isBoolean(p))return p.toString();if(!l&&f.isBlob(p))throw new k("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(p)||f.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,g){let O=p;if(p&&!g&&typeof p=="object"){if(f.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(f.isArray(p)&&ns(p)||(f.isFileList(p)||f.endsWith(m,"[]"))&&(O=f.toArray(p)))return m=br(m),O.forEach(function(C,A){!(f.isUndefined(C)||C===null)&&e.append(i===!0?Et([m],A,o):i===null?m:m+"[]",c(C))}),!1}return ot(p)?!0:(e.append(Et(g,m,o),c(p)),!1)}const d=[],h=Object.assign(ss,{defaultVisitor:u,convertValue:c,isVisitable:ot});function b(p,m){if(!f.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),f.forEach(p,function(O,v){(!(f.isUndefined(O)||O===null)&&s.call(e,O,f.isString(v)?v.trim():v,m,h))===!0&&b(O,m?m.concat(v):[v])}),d.pop()}}if(!f.isObject(r))throw new TypeError("data must be an object");return b(r),e}function vt(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ht(r,e){this._pairs=[],r&&Ke(r,this,e)}const yr=ht.prototype;yr.append=function(e,t){this._pairs.push([e,t])};yr.toString=function(e){const t=e?function(n){return e.call(this,n,vt)}:vt;return this._pairs.map(function(s){return t(s[0])+"="+t(s[1])},"").join("&")};function os(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xr(r,e,t){if(!e)return r;const n=t&&t.encode||os;f.isFunction(t)&&(t={serialize:t});const s=t&&t.serialize;let o;if(s?o=s(e,t):o=f.isURLSearchParams(e)?e.toString():new ht(e,t).toString(n),o){const i=r.indexOf("#");i!==-1&&(r=r.slice(0,i)),r+=(r.indexOf("?")===-1?"?":"&")+o}return r}class Ct{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){f.forEach(this.handlers,function(n){n!==null&&e(n)})}}const wr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},is=typeof URLSearchParams<"u"?URLSearchParams:ht,as=typeof FormData<"u"?FormData:null,ls=typeof Blob<"u"?Blob:null,cs={isBrowser:!0,classes:{URLSearchParams:is,FormData:as,Blob:ls},protocols:["http","https","file","blob","url","data"]},pt=typeof window<"u"&&typeof document<"u",it=typeof navigator=="object"&&navigator||void 0,us=pt&&(!it||["ReactNative","NativeScript","NS"].indexOf(it.product)<0),ds=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fs=pt&&window.location.href||"http://localhost",hs=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:us,hasStandardBrowserWebWorkerEnv:ds,navigator:it,origin:fs},Symbol.toStringTag,{value:"Module"})),B={...hs,...cs};function ps(r,e){return Ke(r,new B.classes.URLSearchParams,Object.assign({visitor:function(t,n,s,o){return B.isNode&&f.isBuffer(t)?(this.append(n,t.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function gs(r){return f.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ms(r){const e={},t=Object.keys(r);let n;const s=t.length;let o;for(n=0;n<s;n++)o=t[n],e[o]=r[o];return e}function Sr(r){function e(t,n,s,o){let i=t[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=t.length;return i=!i&&f.isArray(s)?s.length:i,l?(f.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!a):((!s[i]||!f.isObject(s[i]))&&(s[i]=[]),e(t,n,s[i],o)&&f.isArray(s[i])&&(s[i]=ms(s[i])),!a)}if(f.isFormData(r)&&f.isFunction(r.entries)){const t={};return f.forEachEntry(r,(n,s)=>{e(gs(n),s,t,0)}),t}return null}function bs(r,e,t){if(f.isString(r))try{return(e||JSON.parse)(r),f.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Oe={transitional:wr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,o=f.isObject(e);if(o&&f.isHTMLForm(e)&&(e=new FormData(e)),f.isFormData(e))return s?JSON.stringify(Sr(e)):e;if(f.isArrayBuffer(e)||f.isBuffer(e)||f.isStream(e)||f.isFile(e)||f.isBlob(e)||f.isReadableStream(e))return e;if(f.isArrayBufferView(e))return e.buffer;if(f.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ps(e,this.formSerializer).toString();if((a=f.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ke(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||s?(t.setContentType("application/json",!1),bs(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.transitional,n=t&&t.forcedJSONParsing,s=this.responseType==="json";if(f.isResponse(e)||f.isReadableStream(e))return e;if(e&&f.isString(e)&&(n&&!this.responseType||s)){const i=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?k.from(a,k.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:B.classes.FormData,Blob:B.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],r=>{Oe.headers[r]={}});const ys=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xs=r=>{const e={};let t,n,s;return r&&r.split(`
`).forEach(function(i){s=i.indexOf(":"),t=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!t||e[t]&&ys[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Lt=Symbol("internals");function be(r){return r&&String(r).trim().toLowerCase()}function Ne(r){return r===!1||r==null?r:f.isArray(r)?r.map(Ne):String(r)}function ws(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const Ss=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Qe(r,e,t,n,s){if(f.isFunction(n))return n.call(this,e,t);if(s&&(e=t),!!f.isString(e)){if(f.isString(n))return e.indexOf(n)!==-1;if(f.isRegExp(n))return n.test(e)}}function Rs(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Os(r,e){const t=f.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(s,o,i){return this[n].call(this,e,s,o,i)},configurable:!0})})}let q=class{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function o(a,l,c){const u=be(l);if(!u)throw new Error("header name must be a non-empty string");const d=f.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||l]=Ne(a))}const i=(a,l)=>f.forEach(a,(c,u)=>o(c,u,l));if(f.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(f.isString(e)&&(e=e.trim())&&!Ss(e))i(xs(e),t);else if(f.isObject(e)&&f.isIterable(e)){let a={},l,c;for(const u of e){if(!f.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?f.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}i(a,t)}else e!=null&&o(t,e,n);return this}get(e,t){if(e=be(e),e){const n=f.findKey(this,e);if(n){const s=this[n];if(!t)return s;if(t===!0)return ws(s);if(f.isFunction(t))return t.call(this,s,n);if(f.isRegExp(t))return t.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e),e){const n=f.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Qe(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let s=!1;function o(i){if(i=be(i),i){const a=f.findKey(n,i);a&&(!t||Qe(n,n[a],a,t))&&(delete n[a],s=!0)}}return f.isArray(e)?e.forEach(o):o(e),s}clear(e){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const o=t[n];(!e||Qe(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const t=this,n={};return f.forEach(this,(s,o)=>{const i=f.findKey(n,o);if(i){t[i]=Ne(s),delete t[o];return}const a=e?Rs(o):String(o).trim();a!==o&&delete t[o],t[a]=Ne(s),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return f.forEach(this,(n,s)=>{n!=null&&n!==!1&&(t[s]=e&&f.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(s=>n.set(s)),n}static accessor(e){const n=(this[Lt]=this[Lt]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=be(i);n[a]||(Os(s,i),n[a]=!0)}return f.isArray(e)?e.forEach(o):o(e),this}};q.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);f.reduceDescriptors(q.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}});f.freezeMethods(q);function Ye(r,e){const t=this||Oe,n=e||t,s=q.from(n.headers);let o=n.data;return f.forEach(r,function(a){o=a.call(t,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Rr(r){return!!(r&&r.__CANCEL__)}function pe(r,e,t){k.call(this,r??"canceled",k.ERR_CANCELED,e,t),this.name="CanceledError"}f.inherits(pe,k,{__CANCEL__:!0});function Or(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new k("Request failed with status code "+t.status,[k.ERR_BAD_REQUEST,k.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function ks(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Es(r,e){r=r||10;const t=new Array(r),n=new Array(r);let s=0,o=0,i;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=n[o];i||(i=c),t[s]=l,n[s]=c;let d=o,h=0;for(;d!==s;)h+=t[d++],d=d%r;if(s=(s+1)%r,s===o&&(o=(o+1)%r),c-i<e)return;const b=u&&c-u;return b?Math.round(h*1e3/b):void 0}}function vs(r,e){let t=0,n=1e3/e,s,o;const i=(c,u=Date.now())=>{t=u,s=null,o&&(clearTimeout(o),o=null),r.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-t;d>=n?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},n-d)))},()=>s&&i(s)]}const je=(r,e,t=3)=>{let n=0;const s=Es(50,250);return vs(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,c=s(l),u=i<=a;n=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};r(d)},t)},At=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Pt=r=>(...e)=>f.asap(()=>r(...e)),Cs=B.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,B.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(B.origin),B.navigator&&/(msie|trident)/i.test(B.navigator.userAgent)):()=>!0,Ls=B.hasStandardBrowserEnv?{write(r,e,t,n,s,o){const i=[r+"="+encodeURIComponent(e)];f.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),f.isString(n)&&i.push("path="+n),f.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function As(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function Ps(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function kr(r,e,t){let n=!As(e);return r&&(n||t==!1)?Ps(r,e):e}const Tt=r=>r instanceof q?{...r}:r;function ie(r,e){e=e||{};const t={};function n(c,u,d,h){return f.isPlainObject(c)&&f.isPlainObject(u)?f.merge.call({caseless:h},c,u):f.isPlainObject(u)?f.merge({},u):f.isArray(u)?u.slice():u}function s(c,u,d,h){if(f.isUndefined(u)){if(!f.isUndefined(c))return n(void 0,c,d,h)}else return n(c,u,d,h)}function o(c,u){if(!f.isUndefined(u))return n(void 0,u)}function i(c,u){if(f.isUndefined(u)){if(!f.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in e)return n(c,u);if(d in r)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u,d)=>s(Tt(c),Tt(u),d,!0)};return f.forEach(Object.keys(Object.assign({},r,e)),function(u){const d=l[u]||s,h=d(r[u],e[u],u);f.isUndefined(h)&&d!==a||(t[u]=h)}),t}const Er=r=>{const e=ie({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=e;e.headers=i=q.from(i),e.url=xr(kr(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(f.isFormData(t)){if(B.hasStandardBrowserEnv||B.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(B.hasStandardBrowserEnv&&(n&&f.isFunction(n)&&(n=n(e)),n||n!==!1&&Cs(e.url))){const c=s&&o&&Ls.read(o);c&&i.set(s,c)}return e},Ts=typeof XMLHttpRequest<"u",Ns=Ts&&function(r){return new Promise(function(t,n){const s=Er(r);let o=s.data;const i=q.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,u,d,h,b,p;function m(){b&&b(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function O(){if(!g)return;const C=q.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),P={data:!a||a==="text"||a==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:r,request:g};Or(function(L){t(L),m()},function(L){n(L),m()},P),g=null}"onloadend"in g?g.onloadend=O:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(O)},g.onabort=function(){g&&(n(new k("Request aborted",k.ECONNABORTED,r,g)),g=null)},g.onerror=function(){n(new k("Network Error",k.ERR_NETWORK,r,g)),g=null},g.ontimeout=function(){let A=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||wr;s.timeoutErrorMessage&&(A=s.timeoutErrorMessage),n(new k(A,P.clarifyTimeoutError?k.ETIMEDOUT:k.ECONNABORTED,r,g)),g=null},o===void 0&&i.setContentType(null),"setRequestHeader"in g&&f.forEach(i.toJSON(),function(A,P){g.setRequestHeader(P,A)}),f.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),a&&a!=="json"&&(g.responseType=s.responseType),c&&([h,p]=je(c,!0),g.addEventListener("progress",h)),l&&g.upload&&([d,b]=je(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",b)),(s.cancelToken||s.signal)&&(u=C=>{g&&(n(!C||C.type?new pe(null,r,g):C),g.abort(),g=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const v=ks(s.url);if(v&&B.protocols.indexOf(v)===-1){n(new k("Unsupported protocol "+v+":",k.ERR_BAD_REQUEST,r));return}g.send(o||null)})},Fs=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,s;const o=function(c){if(!s){s=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof k?u:new pe(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{i=null,o(new k(`timeout ${e} of ms exceeded`,k.ETIMEDOUT))},e);const a=()=>{r&&(i&&clearTimeout(i),i=null,r.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),r=null)};r.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>f.asap(a),l}},js=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,s;for(;n<t;)s=n+e,yield r.slice(n,s),n=s},$s=async function*(r,e){for await(const t of Is(r))yield*js(t,e)},Is=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Nt=(r,e,t,n)=>{const s=$s(r,e);let o=0,i,a=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await s.next();if(c){a(),l.close();return}let d=u.byteLength;if(t){let h=o+=d;t(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},_e=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vr=_e&&typeof ReadableStream=="function",Ds=_e&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),Cr=(r,...e)=>{try{return!!r(...e)}catch{return!1}},Us=vr&&Cr(()=>{let r=!1;const e=new Request(B.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Ft=64*1024,at=vr&&Cr(()=>f.isReadableStream(new Response("").body)),$e={stream:at&&(r=>r.body)};_e&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!$e[e]&&($e[e]=f.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new k(`Response type '${e}' is not supported`,k.ERR_NOT_SUPPORT,n)})})})(new Response);const Ms=async r=>{if(r==null)return 0;if(f.isBlob(r))return r.size;if(f.isSpecCompliantForm(r))return(await new Request(B.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(f.isArrayBufferView(r)||f.isArrayBuffer(r))return r.byteLength;if(f.isURLSearchParams(r)&&(r=r+""),f.isString(r))return(await Ds(r)).byteLength},zs=async(r,e)=>{const t=f.toFiniteNumber(r.getContentLength());return t??Ms(e)},Bs=_e&&(async r=>{let{url:e,method:t,data:n,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Er(r);c=c?(c+"").toLowerCase():"text";let b=Fs([s,o&&o.toAbortSignal()],i),p;const m=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let g;try{if(l&&Us&&t!=="get"&&t!=="head"&&(g=await zs(u,n))!==0){let P=new Request(e,{method:"POST",body:n,duplex:"half"}),T;if(f.isFormData(n)&&(T=P.headers.get("content-type"))&&u.setContentType(T),P.body){const[L,w]=At(g,je(Pt(l)));n=Nt(P.body,Ft,L,w)}}f.isString(d)||(d=d?"include":"omit");const O="credentials"in Request.prototype;p=new Request(e,{...h,signal:b,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:O?d:void 0});let v=await fetch(p,h);const C=at&&(c==="stream"||c==="response");if(at&&(a||C&&m)){const P={};["status","statusText","headers"].forEach(F=>{P[F]=v[F]});const T=f.toFiniteNumber(v.headers.get("content-length")),[L,w]=a&&At(T,je(Pt(a),!0))||[];v=new Response(Nt(v.body,Ft,L,()=>{w&&w(),m&&m()}),P)}c=c||"text";let A=await $e[f.findKey($e,c)||"text"](v,r);return!C&&m&&m(),await new Promise((P,T)=>{Or(P,T,{data:A,headers:q.from(v.headers),status:v.status,statusText:v.statusText,config:r,request:p})})}catch(O){throw m&&m(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new k("Network Error",k.ERR_NETWORK,r,p),{cause:O.cause||O}):k.from(O,O&&O.code,r,p)}}),lt={http:rs,xhr:Ns,fetch:Bs};f.forEach(lt,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const jt=r=>`- ${r}`,Vs=r=>f.isFunction(r)||r===null||r===!1,Lr={getAdapter:r=>{r=f.isArray(r)?r:[r];const{length:e}=r;let t,n;const s={};for(let o=0;o<e;o++){t=r[o];let i;if(n=t,!Vs(t)&&(n=lt[(i=String(t)).toLowerCase()],n===void 0))throw new k(`Unknown adapter '${i}'`);if(n)break;s[i||"#"+o]=n}if(!n){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=e?o.length>1?`since :
`+o.map(jt).join(`
`):" "+jt(o[0]):"as no adapter specified";throw new k("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:lt};function Ze(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new pe(null,r)}function $t(r){return Ze(r),r.headers=q.from(r.headers),r.data=Ye.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Lr.getAdapter(r.adapter||Oe.adapter)(r).then(function(n){return Ze(r),n.data=Ye.call(r,r.transformResponse,n),n.headers=q.from(n.headers),n},function(n){return Rr(n)||(Ze(r),n&&n.response&&(n.response.data=Ye.call(r,r.transformResponse,n.response),n.response.headers=q.from(n.response.headers))),Promise.reject(n)})}const Ar="1.10.0",qe={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{qe[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const It={};qe.transitional=function(e,t,n){function s(o,i){return"[Axios v"+Ar+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,a)=>{if(e===!1)throw new k(s(i," has been removed"+(t?" in "+t:"")),k.ERR_DEPRECATED);return t&&!It[i]&&(It[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(o,i,a):!0}};qe.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Hs(r,e,t){if(typeof r!="object")throw new k("options must be an object",k.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let s=n.length;for(;s-- >0;){const o=n[s],i=e[o];if(i){const a=r[o],l=a===void 0||i(a,o,r);if(l!==!0)throw new k("option "+o+" must be "+l,k.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new k("Unknown option "+o,k.ERR_BAD_OPTION)}}const Fe={assertOptions:Hs,validators:qe},Q=Fe.validators;let oe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ct,response:new Ct}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+o):n.stack=o}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=ie(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:o}=t;n!==void 0&&Fe.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean)},!1),s!=null&&(f.isFunction(s)?t.paramsSerializer={serialize:s}:Fe.assertOptions(s,{encode:Q.function,serialize:Q.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Fe.assertOptions(t,{baseUrl:Q.spelling("baseURL"),withXsrfToken:Q.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&f.merge(o.common,o[t.method]);o&&f.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),t.headers=q.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,h;if(!l){const p=[$t.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,c),h=p.length,u=Promise.resolve(t);d<h;)u=u.then(p[d++],p[d++]);return u}h=a.length;let b=t;for(d=0;d<h;){const p=a[d++],m=a[d++];try{b=p(b)}catch(g){m.call(this,g);break}}try{u=$t.call(this,b)}catch(p){return Promise.reject(p)}for(d=0,h=c.length;d<h;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=ie(this.defaults,e);const t=kr(e.baseURL,e.url,e.allowAbsoluteUrls);return xr(t,e.params,e.paramsSerializer)}};f.forEach(["delete","get","head","options"],function(e){oe.prototype[e]=function(t,n){return this.request(ie(n||{},{method:e,url:t,data:(n||{}).data}))}});f.forEach(["post","put","patch"],function(e){function t(n){return function(o,i,a){return this.request(ie(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}oe.prototype[e]=t(),oe.prototype[e+"Form"]=t(!0)});let Ks=class Pr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{n.subscribe(a),o=a}).then(s);return i.cancel=function(){n.unsubscribe(o)},i},e(function(o,i,a){n.reason||(n.reason=new pe(o,i,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Pr(function(s){e=s}),cancel:e}}};function _s(r){return function(t){return r.apply(null,t)}}function qs(r){return f.isObject(r)&&r.isAxiosError===!0}const ct={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ct).forEach(([r,e])=>{ct[e]=r});function Tr(r){const e=new oe(r),t=ar(oe.prototype.request,e);return f.extend(t,oe.prototype,e,{allOwnKeys:!0}),f.extend(t,e,null,{allOwnKeys:!0}),t.create=function(s){return Tr(ie(r,s))},t}const N=Tr(Oe);N.Axios=oe;N.CanceledError=pe;N.CancelToken=Ks;N.isCancel=Rr;N.VERSION=Ar;N.toFormData=Ke;N.AxiosError=k;N.Cancel=N.CanceledError;N.all=function(e){return Promise.all(e)};N.spread=_s;N.isAxiosError=qs;N.mergeConfig=ie;N.AxiosHeaders=q;N.formToJSON=r=>Sr(f.isHTMLForm(r)?new FormData(r):r);N.getAdapter=Lr.getAdapter;N.HttpStatusCode=ct;N.default=N;const{Axios:yo,AxiosError:xo,CanceledError:wo,isCancel:So,CancelToken:Ro,VERSION:Oo,all:ko,Cancel:Eo,isAxiosError:vo,spread:Co,toFormData:Lo,AxiosHeaders:Ao,HttpStatusCode:Po,formToJSON:To,getAdapter:No,mergeConfig:Fo}=N,R=r=>typeof r=="string",ye=()=>{let r,e;const t=new Promise((n,s)=>{r=n,e=s});return t.resolve=r,t.reject=e,t},Dt=r=>r==null?"":""+r,Js=(r,e,t)=>{r.forEach(n=>{e[n]&&(t[n]=e[n])})},Gs=/###/g,Ut=r=>r&&r.indexOf("###")>-1?r.replace(Gs,"."):r,Mt=r=>!r||R(r),xe=(r,e,t)=>{const n=R(e)?e.split("."):e;let s=0;for(;s<n.length-1;){if(Mt(r))return{};const o=Ut(n[s]);!r[o]&&t&&(r[o]=new t),Object.prototype.hasOwnProperty.call(r,o)?r=r[o]:r={},++s}return Mt(r)?{}:{obj:r,k:Ut(n[s])}},zt=(r,e,t)=>{const{obj:n,k:s}=xe(r,e,Object);if(n!==void 0||e.length===1){n[s]=t;return}let o=e[e.length-1],i=e.slice(0,e.length-1),a=xe(r,i,Object);for(;a.obj===void 0&&i.length;)o=`${i[i.length-1]}.${o}`,i=i.slice(0,i.length-1),a=xe(r,i,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t},Ws=(r,e,t,n)=>{const{obj:s,k:o}=xe(r,e,Object);s[o]=s[o]||[],s[o].push(t)},Ie=(r,e)=>{const{obj:t,k:n}=xe(r,e);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},Xs=(r,e,t)=>{const n=Ie(r,t);return n!==void 0?n:Ie(e,t)},Nr=(r,e,t)=>{for(const n in e)n!=="__proto__"&&n!=="constructor"&&(n in r?R(r[n])||r[n]instanceof String||R(e[n])||e[n]instanceof String?t&&(r[n]=e[n]):Nr(r[n],e[n],t):r[n]=e[n]);return r},ce=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Qs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Ys=r=>R(r)?r.replace(/[&<>"'\/]/g,e=>Qs[e]):r;class Zs{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}const eo=[" ",",","?","!",";"],to=new Zs(20),ro=(r,e,t)=>{e=e||"",t=t||"";const n=eo.filter(i=>e.indexOf(i)<0&&t.indexOf(i)<0);if(n.length===0)return!0;const s=to.getRegExp(`(${n.map(i=>i==="?"?"\\?":i).join("|")})`);let o=!s.test(r);if(!o){const i=r.indexOf(t);i>0&&!s.test(r.substring(0,i))&&(o=!0)}return o},ut=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0;const n=e.split(t);let s=r;for(let o=0;o<n.length;){if(!s||typeof s!="object")return;let i,a="";for(let l=o;l<n.length;++l)if(l!==o&&(a+=t),a+=n[l],i=s[a],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<n.length-1)continue;o+=l-o+1;break}s=i}return s},De=r=>r==null?void 0:r.replace("_","-"),no={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,e){var t,n;(n=(t=console==null?void 0:console[r])==null?void 0:t.apply)==null||n.call(t,console,e)}};class Ue{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||no,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,s){return s&&!this.debug?null:(R(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ue(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ue(this.logger,e)}}var Y=new Ue;class Je{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const s=this.observers[n].get(t)||0;this.observers[n].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[a,l]=i;for(let c=0;c<l;c++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[a,l]=i;for(let c=0;c<l;c++)a.apply(a,[e,...n])})}}class Bt extends Je{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){var c,u;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,i=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):R(n)&&o?a.push(...n.split(o)):a.push(n)));const l=Ie(this.data,a);return!l&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),l||!i||!R(n)?l:ut((u=(c=this.data)==null?void 0:c[e])==null?void 0:u[t],n,o)}addResource(e,t,n,s){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),s=t,t=a[1]),this.addNamespaces(t),zt(this.data,a,s),o.silent||this.emit("added",e,t,n,s)}addResources(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in n)(R(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});s.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,s,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),s=n,n=t,t=a[1]),this.addNamespaces(t);let l=Ie(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),s?Nr(l,n,o):l={...l,...n},zt(this.data,a,l),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}}var Fr={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,e,t,n,s){return r.forEach(o=>{var i;e=((i=this.processors[o])==null?void 0:i.process(e,t,n,s))??e}),e}};const Vt={},Ht=r=>!R(r)&&typeof r!="boolean"&&typeof r!="number";class Me extends Je{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Js(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Y.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}extractFromKey(e,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!ro(e,n,s);if(i&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:R(o)?[o]:o};const c=e.split(n);(n!==s||n===s&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),e=c.join(s)}return{key:e,namespaces:R(o)?[o]:o}}translate(e,t,n){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const s=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,o=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],t),l=a[a.length-1],c=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(u){const D=t.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${D}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:`${l}${D}${i}`}return s?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(t)}:i}const d=this.resolve(e,t);let h=d==null?void 0:d.res;const b=(d==null?void 0:d.usedKey)||i,p=(d==null?void 0:d.exactUsedKey)||i,m=["[object Number]","[object Function]","[object RegExp]"],g=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject,v=t.count!==void 0&&!R(t.count),C=Me.hasDefaultValue(t),A=v?this.pluralResolver.getSuffix(c,t.count,t):"",P=t.ordinal&&v?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",T=v&&!t.ordinal&&t.count===0,L=T&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${A}`]||t[`defaultValue${P}`]||t.defaultValue;let w=h;O&&!h&&C&&(w=L);const F=Ht(w),Z=Object.prototype.toString.apply(w);if(O&&w&&F&&m.indexOf(Z)<0&&!(R(g)&&Array.isArray(w))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,w,{...t,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(d.res=D,d.usedParams=this.getUsedParamsDetails(t),d):D}if(o){const D=Array.isArray(w),U=D?[]:{},ge=D?p:b;for(const K in w)if(Object.prototype.hasOwnProperty.call(w,K)){const M=`${ge}${o}${K}`;C&&!h?U[K]=this.translate(M,{...t,defaultValue:Ht(L)?L[K]:void 0,joinArrays:!1,ns:a}):U[K]=this.translate(M,{...t,joinArrays:!1,ns:a}),U[K]===M&&(U[K]=w[K])}h=U}}else if(O&&R(g)&&Array.isArray(h))h=h.join(g),h&&(h=this.extendTranslation(h,e,t,n));else{let D=!1,U=!1;!this.isValidLookup(h)&&C&&(D=!0,h=L),this.isValidLookup(h)||(U=!0,h=i);const K=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:h,M=C&&L!==h&&this.options.updateMissing;if(U||D||M){if(this.logger.log(M?"updateKey":"missingKey",c,l,i,M?L:h),o){const z=this.resolve(i,{...t,keySeparator:!1});z&&z.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 H=[];const G=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&G&&G[0])for(let z=0;z<G.length;z++)H.push(G[z]);else this.options.saveMissingTo==="all"?H=this.languageUtils.toResolveHierarchy(t.lng||this.language):H.push(t.lng||this.language);const S=(z,X,te)=>{var $;const ae=C&&te!==h?te:K;this.options.missingKeyHandler?this.options.missingKeyHandler(z,l,X,ae,M,t):($=this.backendConnector)!=null&&$.saveMissing&&this.backendConnector.saveMissing(z,l,X,ae,M,t),this.emit("missingKey",z,l,X,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?H.forEach(z=>{const X=this.pluralResolver.getSuffixes(z,t);T&&t[`defaultValue${this.options.pluralSeparator}zero`]&&X.indexOf(`${this.options.pluralSeparator}zero`)<0&&X.push(`${this.options.pluralSeparator}zero`),X.forEach(te=>{S([z],i+te,t[`defaultValue${te}`]||L)})}):S(H,i,L))}h=this.extendTranslation(h,e,t,d,n),U&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${i}`),(U||D)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,D?h:void 0))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(t),d):h}extendTranslation(e,t,n,s,o){var c,u;var i=this;if((c=this.i18nFormat)!=null&&c.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const d=R(e)&&(((u=n==null?void 0:n.interpolation)==null?void 0:u.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(d){const p=e.match(this.interpolator.nestingRegexp);h=p&&p.length}let b=n.replace&&!R(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),e=this.interpolator.interpolate(e,b,n.lng||this.language||s.usedLng,n),d){const p=e.match(this.interpolator.nestingRegexp),m=p&&p.length;h<m&&(n.nest=!1)}!n.lng&&s&&s.res&&(n.lng=this.language||s.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var p=arguments.length,m=new Array(p),g=0;g<p;g++)m[g]=arguments[g];return(o==null?void 0:o[0])===m[0]&&!n.context?(i.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`),null):i.translate(...m,t)},n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=R(a)?[a]:a;return e!=null&&(l!=null&&l.length)&&n.applyPostProcessor!==!1&&(e=Fr.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,s,o,i,a;return R(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,t),u=c.key;s=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=t.count!==void 0&&!R(t.count),b=h&&!t.ordinal&&t.count===0,p=t.context!==void 0&&(R(t.context)||typeof t.context=="number")&&t.context!=="",m=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(g=>{var O,v;this.isValidLookup(n)||(a=g,!Vt[`${m[0]}-${g}`]&&((O=this.utils)!=null&&O.hasLoadedNamespace)&&!((v=this.utils)!=null&&v.hasLoadedNamespace(a))&&(Vt[`${m[0]}-${g}`]=!0,this.logger.warn(`key "${s}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),m.forEach(C=>{var T;if(this.isValidLookup(n))return;i=C;const A=[u];if((T=this.i18nFormat)!=null&&T.addLookupKeys)this.i18nFormat.addLookupKeys(A,u,C,g,t);else{let L;h&&(L=this.pluralResolver.getSuffix(C,t.count,t));const w=`${this.options.pluralSeparator}zero`,F=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(A.push(u+L),t.ordinal&&L.indexOf(F)===0&&A.push(u+L.replace(F,this.options.pluralSeparator)),b&&A.push(u+w)),p){const Z=`${u}${this.options.contextSeparator}${t.context}`;A.push(Z),h&&(A.push(Z+L),t.ordinal&&L.indexOf(F)===0&&A.push(Z+L.replace(F,this.options.pluralSeparator)),b&&A.push(Z+w))}}let P;for(;P=A.pop();)this.isValidLookup(n)||(o=P,n=this.getResource(C,g,P,t))}))})}),{res:n,usedKey:s,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,n){var o;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(o=this.i18nFormat)!=null&&o.getResource?this.i18nFormat.getResource(e,t,n,s):this.resourceStore.getResource(e,t,n,s)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!R(e.replace);let s=n?e.replace:e;if(n&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!n){s={...s};for(const o of t)delete s[o]}return s}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}class Kt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Y.create("languageUtils")}getScriptPartFromCode(e){if(e=De(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=De(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(R(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(n=>{if(t)return;const s=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(n=>{if(t)return;const s=this.getLanguagePartFromCode(n);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(o=>{if(o===s)return o;if(!(o.indexOf("-")<0&&s.indexOf("-")<0)&&(o.indexOf("-")>0&&s.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===s||o.indexOf(s)===0&&s.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),R(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),s=[],o=i=>{i&&(this.isSupportedCode(i)?s.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return R(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):R(e)&&o(this.formatLanguageCode(e)),n.forEach(i=>{s.indexOf(i)<0&&o(this.formatLanguageCode(i))}),s}}const _t={zero:0,one:1,two:2,few:3,many:4,other:5},qt={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class so{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Y.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=De(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:s})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),qt;if(!e.match(/-|_/))return qt;const l=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(l,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(s=>`${t}${s}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((s,o)=>_t[s]-_t[o]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(e,n);return s?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Jt=function(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=Xs(r,e,t);return!o&&s&&R(t)&&(o=ut(r,t,n),o===void 0&&(o=ut(e,t,n))),o},et=r=>r.replace(/\$/g,"$$$$");class oo{constructor(){var t;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:s,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:b,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:g,maxReplaces:O,alwaysFormat:v}=e.interpolation;this.escape=t!==void 0?t:Ys,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=o?ce(o):i||"{{",this.suffix=a?ce(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=h?ce(h):b||ce("$t("),this.nestingSuffix=p?ce(p):m||ce(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=O||1e3,this.alwaysFormat=v!==void 0?v:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,n)=>(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,s){var b;let o,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Jt(t,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,n,{...s,...t,interpolationkey:p}):v}const m=p.split(this.formatSeparator),g=m.shift().trim(),O=m.join(this.formatSeparator).trim();return this.format(Jt(t,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),O,n,{...s,...t,interpolationkey:g})};this.resetRegExp();const u=(s==null?void 0:s.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((b=s==null?void 0:s.interpolation)==null?void 0:b.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>et(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?et(this.escape(p)):et(p)}].forEach(p=>{for(a=0;o=p.regex.exec(e);){const m=o[1].trim();if(i=c(m),i===void 0)if(typeof u=="function"){const O=u(e,o,s);i=R(O)?O:""}else if(s&&Object.prototype.hasOwnProperty.call(s,m))i="";else if(d){i=o[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${e}`),i="";else!R(i)&&!this.useRawValueToEscape&&(i=Dt(i));const g=p.safeValue(i);if(e=e.replace(o[0],g),d?(p.regex.lastIndex+=i.length,p.regex.lastIndex-=o[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,i;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,i);const b=h.match(/'/g),p=h.match(/"/g);(((b==null?void 0:b.length)??0)%2===0&&!p||p.length%2!==0)&&(h=h.replace(/'/g,'"'));try{i=JSON.parse(h),c&&(i={...c,...i})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,m),`${l}${u}${h}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;s=this.nestingRegexp.exec(e);){let l=[];i={...n},i=i.replace&&!R(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const u=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=u.shift(),l=u,c=!0}if(o=t(a.call(this,s[1].trim(),i),i),o&&s[0]===e&&!R(o))return o;R(o)||(o=Dt(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),o=""),c&&(o=l.reduce((u,d)=>this.format(u,d,n.lng,{...n,interpolationkey:s[1].trim()}),o.trim())),e=e.replace(s[0],o),this.regexp.lastIndex=0}return e}}const io=r=>{let e=r.toLowerCase().trim();const t={};if(r.indexOf("(")>-1){const n=r.split("(");e=n[0].toLowerCase().trim();const s=n[1].substring(0,n[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(i=>{if(i){const[a,...l]=i.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();t[u]||(t[u]=c),c==="false"&&(t[u]=!1),c==="true"&&(t[u]=!0),isNaN(c)||(t[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:t}},ue=r=>{const e={};return(t,n,s)=>{let o=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(o={...o,[s.interpolationkey]:void 0});const i=n+JSON.stringify(o);let a=e[i];return a||(a=r(De(n),s),e[i]=a),a(t)}};class ao{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Y.create("formatter"),this.options=e,this.formats={number:ue((t,n)=>{const s=new Intl.NumberFormat(t,{...n});return o=>s.format(o)}),currency:ue((t,n)=>{const s=new Intl.NumberFormat(t,{...n,style:"currency"});return o=>s.format(o)}),datetime:ue((t,n)=>{const s=new Intl.DateTimeFormat(t,{...n});return o=>s.format(o)}),relativetime:ue((t,n)=>{const s=new Intl.RelativeTimeFormat(t,{...n});return o=>s.format(o,n.range||"day")}),list:ue((t,n)=>{const s=new Intl.ListFormat(t,{...n});return o=>s.format(o)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ue(t)}format(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(a=>a.indexOf(")")>-1)){const a=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,a)].join(this.formatSeparator)}return o.reduce((a,l)=>{var d;const{formatName:c,formatOptions:u}=io(l);if(this.formats[c]){let h=a;try{const b=((d=s==null?void 0:s.formatParams)==null?void 0:d[s.interpolationkey])||{},p=b.locale||b.lng||s.locale||s.lng||n;h=this.formats[c](a,p,{...u,...s,...b})}catch(b){this.logger.warn(b)}return h}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const lo=(r,e)=>{r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)};class co extends Je{constructor(e,t,n){var o,i;let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=s,this.logger=Y.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],(i=(o=this.backend)==null?void 0:o.init)==null||i.call(o,n,s.backend,s)}queueLoad(e,t,n,s){const o={},i={},a={},l={};return e.forEach(c=>{let u=!0;t.forEach(d=>{const h=`${c}|${d}`;!n.reload&&this.store.hasResourceBundle(c,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?i[h]===void 0&&(i[h]=!0):(this.state[h]=1,u=!1,i[h]===void 0&&(i[h]=!0),o[h]===void 0&&(o[h]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,n){const s=e.split("|"),o=s[0],i=s[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(l=>{Ws(l.loaded,[o],i),lo(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:s,wait:o,callback:i});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,s+1,o*2,i)},o);return}i(c,u)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(e,t);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,t,a)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();R(e)&&(e=this.languageUtils.toResolveHierarchy(e)),R(t)&&(t=[t]);const o=this.queueLoad(e,t,n,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach(i=>{this.loadOne(i)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=e.split("|"),s=n[0],o=n[1];this.read(s,o,"read",void 0,void 0,(i,a)=>{i&&this.logger.warn(`${t}loading namespace ${o} for language ${s} failed`,i),!i&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${s}`,a),this.loaded(e,i,a)})}saveMissing(e,t,n,s,o){var l,c,u,d,h;let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((d=(u=this.services)==null?void 0:u.utils)!=null&&d.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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(!(n==null||n==="")){if((h=this.backend)!=null&&h.create){const b={...i,isUpdate:o},p=this.backend.create.bind(this.backend);if(p.length<6)try{let m;p.length===5?m=p(e,t,n,s,b):m=p(e,t,n,s),m&&typeof m.then=="function"?m.then(g=>a(null,g)).catch(a):a(null,m)}catch(m){a(m)}else p(e,t,n,s,a,b)}!e||!e[0]||this.store.addResource(e[0],t,n,s)}}}const Gt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:r=>{let e={};if(typeof r[1]=="object"&&(e=r[1]),R(r[1])&&(e.defaultValue=r[1]),R(r[2])&&(e.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){const t=r[3]||r[2];Object.keys(t).forEach(n=>{e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Wt=r=>{var e,t;return R(r.ns)&&(r.ns=[r.ns]),R(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),R(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((t=(e=r.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Pe=()=>{},uo=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(t=>{typeof r[t]=="function"&&(r[t]=r[t].bind(r))})};class Se extends Je{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Wt(e),this.services={},this.logger=Y,this.modules={external:[]},uo(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(R(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const s=Gt();this.options={...s,...this.options,...Wt(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Y.init(o(this.modules.logger),this.options):Y.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=ao;const d=new Kt(this.options);this.store=new Bt(this.options.resources,this.options);const h=this.services;h.logger=Y,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new so(d,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=o(u),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new oo(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new co(o(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(b){for(var p=arguments.length,m=new Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];e.emit(b,...m)}),this.modules.languageDetector&&(h.languageDetector=o(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=o(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Me(this.services,this.options),this.translator.on("*",function(b){for(var p=arguments.length,m=new Array(p>1?p-1:0),g=1;g<p;g++)m[g-1]=arguments[g];e.emit(b,...m)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Pe),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=ye(),c=()=>{const u=(d,h)=>{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),l.resolve(h),n(d,h)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),l}loadResources(e){var o,i;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe;const s=R(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((s==null?void 0:s.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const a=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(d=>{d!=="cimode"&&a.indexOf(d)<0&&a.push(d)})};s?l(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>l(u)),(i=(o=this.options.preload)==null?void 0:o.forEach)==null||i.call(o,c=>l(c)),this.services.backendConnector.load(a,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(c)})}else n(null)}reloadResources(e,t,n){const s=ye();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Pe),this.services.backendConnector.reload(e,t,o=>{s.resolve(),n(o)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Fr.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const s=ye();this.emit("languageChanging",e);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,s.resolve(function(){return n.t(...arguments)}),t&&t(l,function(){return n.t(...arguments)})},a=l=>{var u,d;!e&&!l&&this.services.languageDetector&&(l=[]);const c=R(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),(d=(u=this.services.languageDetector)==null?void 0:u.cacheUserLanguage)==null||d.call(u,c)),this.loadResources(c,h=>{i(h,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),s}getFixedT(e,t,n){var s=this;const o=function(i,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=s.options.overloadTranslationOptionHandler([i,a].concat(u))}else l={...a};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||o.keyPrefix);const h=s.options.keySeparator||".";let b;return l.keyPrefix&&Array.isArray(i)?b=i.map(p=>`${l.keyPrefix}${h}${p}`):b=l.keyPrefix?`${l.keyPrefix}${h}${i}`:i,s.t(b,l)};return R(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(){var s;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(s=this.translator)==null?void 0:s.translate(...t)}exists(){var s;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(s=this.translator)==null?void 0:s.exists(...t)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const i=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(t.precheck){const a=t.precheck(this,i);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!s||i(o,e)))}loadNamespaces(e,t){const n=ye();return this.options.ns?(R(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=ye();R(e)&&(e=[e]);const s=this.options.preload||[],o=e.filter(i=>s.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return o.length?(this.options.preload=s.concat(o),this.loadResources(i=>{n.resolve(),t&&t(i)}),n):(t&&t(),Promise.resolve())}dir(e){var s,o;if(e||(e=this.resolvedLanguage||(((s=this.languages)==null?void 0:s.length)>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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"],n=((o=this.services)==null?void 0:o.languageUtils)||new Kt(Gt());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Se(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const s={...this.options,...e,isClone:!0},o=new Se(s);if((e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const a=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},Object.keys(l[c]).reduce((u,d)=>(u[d]={...l[c][d]},u),{})),{});o.store=new Bt(a,s),o.services.resourceStore=o.store}return o.translator=new Me(o.services,s),o.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];o.emit(a,...c)}),o.init(s,t),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const V=Se.createInstance();V.createInstance=Se.createInstance;V.createInstance;V.dir;V.init;V.loadResources;V.reloadResources;V.use;V.changeLanguage;V.getFixedT;V.t;V.exists;V.setDefaultNamespace;V.hasLoadedNamespace;V.loadNamespaces;V.loadLanguages;const jo=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));export{ho as a,N as b,po as c,jo as d,V as i,go as t};