(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();const pr=[];let hm=!0;const mm=console.error;function gh(u){pr.length>5||!hm||pr.push(u)}function gm(u){pr.push({type:"runtime",args:u})}function pm(u){u.preventDefault()}function b0(u){try{const i=u.find(s=>s instanceof Error);if(i&&i.stack)gh({type:"console.error",args:i});else if(u.length>0){const s=u.map(c=>typeof c=="object"?JSON.stringify(c):String(c)).join(" "),o=new Error(s);gh({type:"console.error",args:o})}}catch(i){console.warn(i)}}window.addEventListener("error",gm);window.addEventListener("unhandledrejection",pm);console.error=function(...i){b0(i),mm.apply(this,i)};function x0(){return window.removeEventListener("error",gm),window.removeEventListener("unhandledrejection",pm),console.error=mm,hm=!1,pr}const S0=1e3,ph=Symbol("postMessageResponseTimeout");let or=0;const Ys="*";class Sr{client;baseTimeout;waitRes=new Map;removeListeners=new Set;clear;constructor(i,s){this.client=i,this.baseTimeout=s?.timeout||S0;const o=this.emitResponse.bind(this);this.clear=()=>{window.removeEventListener("message",o)},window.addEventListener("message",o)}destroy(){this.clear(),this.removeListeners.forEach(i=>i())}isTimeout(i){return i===ph}post(i,s,o){or++;const{timeout:c,origin:f=Ys}=o||{};return this.client.postMessage({data:s,id:or,type:i},f),new Promise(d=>{this.waitRes.set(or,g=>{d(g)}),setTimeout(()=>{this.waitRes.delete(or),d(ph)},c||this.baseTimeout)})}on(i,s,o){const{once:c,origin:f=Ys}=o||{},d=async p=>{const{id:m,type:v,data:x}=p.data;let E;v===i&&(E=await s(x),console.log(i,c,E,x),(m&&f===p.origin||f===Ys)&&p.source?.postMessage({fromType:i,id:m,data:E},p.origin),c&&g())};window.addEventListener("message",d);const g=()=>{window.removeEventListener("message",d),this.removeListeners.delete(g)};return this.removeListeners.add(g),g}emitResponse(i){const s=i.data,{id:o,data:c}=s,f=this.waitRes.get(o);f&&f(c)}}function E0(u){if(Object.prototype.hasOwnProperty.call(u,"__esModule"))return u;var i=u.default;if(typeof i=="function"){var s=function o(){var c=!1;try{c=this instanceof o}catch{}return c?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(u).forEach(function(o){var c=Object.getOwnPropertyDescriptor(u,o);Object.defineProperty(s,o,c.get?c:{enumerable:!0,get:function(){return u[o]}})}),s}var Dl={},Vs={},Qs={},Xs={},yh;function _0(){if(yh)return Xs;yh=1;const u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Xs.encode=function(i){if(0<=i&&i>>=i,v>0&&(m|=c),p+=u.encode(m);while(v>0);return p},Qs}var Nt={};const w0={},C0=Object.freeze(Object.defineProperty({__proto__:null,default:w0},Symbol.toStringTag,{value:"Module"})),O0=E0(C0);var Zs,bh;function N0(){return bh||(bh=1,Zs=typeof URL=="function"?URL:O0.URL),Zs}var xh;function Er(){if(xh)return Nt;xh=1;const u=N0();function i(G,Z,F){if(Z in G)return G[Z];if(arguments.length===3)return F;throw new Error('"'+Z+'" is a required argument.')}Nt.getArg=i;const s=(function(){return!("__proto__"in Object.create(null))})();function o(G){return G}function c(G){return d(G)?"$"+G:G}Nt.toSetString=s?o:c;function f(G){return d(G)?G.slice(1):G}Nt.fromSetString=s?o:f;function d(G){if(!G)return!1;const Z=G.length;if(Z<9||G.charCodeAt(Z-1)!==95||G.charCodeAt(Z-2)!==95||G.charCodeAt(Z-3)!==111||G.charCodeAt(Z-4)!==116||G.charCodeAt(Z-5)!==111||G.charCodeAt(Z-6)!==114||G.charCodeAt(Z-7)!==112||G.charCodeAt(Z-8)!==95||G.charCodeAt(Z-9)!==95)return!1;for(let F=Z-10;F>=0;F--)if(G.charCodeAt(F)!==36)return!1;return!0}function g(G,Z){return G===Z?0:G===null?1:Z===null?-1:G>Z?1:-1}function p(G,Z){let F=G.generatedLine-Z.generatedLine;return F!==0||(F=G.generatedColumn-Z.generatedColumn,F!==0)||(F=g(G.source,Z.source),F!==0)||(F=G.originalLine-Z.originalLine,F!==0)||(F=G.originalColumn-Z.originalColumn,F!==0)?F:g(G.name,Z.name)}Nt.compareByGeneratedPositionsInflated=p;function m(G){return JSON.parse(G.replace(/^\)]}'[^\n]*\n/,""))}Nt.parseSourceMapInput=m;const v="http:",x=`${v}//host`;function E(G){return Z=>{const F=D(Z),ae=M(Z),he=new u(Z,ae);G(he);const me=he.toString();return F==="absolute"?me:F==="scheme-relative"?me.slice(v.length):F==="path-absolute"?me.slice(x.length):z(ae,me)}}function S(G,Z){return new u(G,Z).toString()}function w(G,Z){let F=0;do{const ae=G+F++;if(Z.indexOf(ae)===-1)return ae}while(!0)}function M(G){const Z=G.split("..").length-1,F=w("p",G);let ae=`${x}/`;for(let he=0;he0&&!ae[ae.length-1]&&ae.pop();F.length>0&&ae.length>0&&F[0]===ae[0];)F.shift(),ae.shift();return ae.map(()=>"..").concat(F).join("/")+Z.search+Z.hash}const V=E(G=>{G.pathname=G.pathname.replace(/\/?$/,"/")}),W=E(G=>{G.href=new u(".",G.toString()).toString()}),Q=E(G=>{});Nt.normalize=Q;function ue(G,Z){const F=D(Z),ae=D(G);if(G=V(G),F==="absolute")return S(Z,void 0);if(ae==="absolute")return S(Z,G);if(F==="scheme-relative")return Q(Z);if(ae==="scheme-relative")return S(Z,S(G,x)).slice(v.length);if(F==="path-absolute")return Q(Z);if(ae==="path-absolute")return S(Z,S(G,x)).slice(x.length);const he=M(Z+G),me=S(Z,S(G,he));return z(he,me)}Nt.join=ue;function pe(G,Z){const F=Ee(G,Z);return typeof F=="string"?F:Q(Z)}Nt.relative=pe;function Ee(G,Z){if(D(G)!==D(Z))return null;const ae=M(G+Z),he=new u(G,ae),me=new u(Z,ae);try{new u("",me.toString())}catch{return null}return me.protocol!==he.protocol||me.user!==he.user||me.password!==he.password||me.hostname!==he.hostname||me.port!==he.port?null:z(he,me)}function ye(G,Z,F){G&&D(Z)==="path-absolute"&&(Z=Z.replace(/^\//,""));let ae=Q(Z||"");return G&&(ae=ue(G,ae)),F&&(ae=ue(W(F),ae)),ae}return Nt.computeSourceURL=ye,Nt}var Ks={},Sh;function vm(){if(Sh)return Ks;Sh=1;class u{constructor(){this._array=[],this._set=new Map}static fromArray(s,o){const c=new u;for(let f=0,d=s.length;f=0)return o;throw new Error('"'+s+'" is not in the set.')}at(s){if(s>=0&&sf||d==f&&p>=g||u.compareByGeneratedPositionsInflated(o,c)<=0}class s{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(c,f){this._array.forEach(c,f)}add(c){i(this._last,c)?(this._last=c,this._array.push(c)):(this._sorted=!1,this._array.push(c))}toArray(){return this._sorted||(this._array.sort(u.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}return $s.MappingList=s,$s}var _h;function bm(){if(_h)return Vs;_h=1;const u=ym(),i=Er(),s=vm().ArraySet,o=A0().MappingList;class c{constructor(d){d||(d={}),this._file=i.getArg(d,"file",null),this._sourceRoot=i.getArg(d,"sourceRoot",null),this._skipValidation=i.getArg(d,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new o,this._sourcesContents=null}static fromSourceMap(d){const g=d.sourceRoot,p=new c({file:d.file,sourceRoot:g});return d.eachMapping(function(m){const v={generated:{line:m.generatedLine,column:m.generatedColumn}};m.source!=null&&(v.source=m.source,g!=null&&(v.source=i.relative(g,v.source)),v.original={line:m.originalLine,column:m.originalColumn},m.name!=null&&(v.name=m.name)),p.addMapping(v)}),d.sources.forEach(function(m){let v=m;g!=null&&(v=i.relative(g,m)),p._sources.has(v)||p._sources.add(v);const x=d.sourceContentFor(m);x!=null&&p.setSourceContent(m,x)}),p}addMapping(d){const g=i.getArg(d,"generated"),p=i.getArg(d,"original",null);let m=i.getArg(d,"source",null),v=i.getArg(d,"name",null);this._skipValidation||this._validateMapping(g,p,m,v),m!=null&&(m=String(m),this._sources.has(m)||this._sources.add(m)),v!=null&&(v=String(v),this._names.has(v)||this._names.add(v)),this._mappings.add({generatedLine:g.line,generatedColumn:g.column,originalLine:p&&p.line,originalColumn:p&&p.column,source:m,name:v})}setSourceContent(d,g){let p=d;this._sourceRoot!=null&&(p=i.relative(this._sourceRoot,p)),g!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(p)]=g):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(p)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))}applySourceMap(d,g,p){let m=g;if(g==null){if(d.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);m=d.file}const v=this._sourceRoot;v!=null&&(m=i.relative(v,m));const x=this._mappings.toArray().length>0?new s:this._sources,E=new s;this._mappings.unsortedForEach(function(S){if(S.source===m&&S.originalLine!=null){const O=d.originalPositionFor({line:S.originalLine,column:S.originalColumn});O.source!=null&&(S.source=O.source,p!=null&&(S.source=i.join(p,S.source)),v!=null&&(S.source=i.relative(v,S.source)),S.originalLine=O.line,S.originalColumn=O.column,O.name!=null&&(S.name=O.name))}const w=S.source;w!=null&&!x.has(w)&&x.add(w);const M=S.name;M!=null&&!E.has(M)&&E.add(M)},this),this._sources=x,this._names=E,d.sources.forEach(function(S){const w=d.sourceContentFor(S);w!=null&&(p!=null&&(S=i.join(p,S)),v!=null&&(S=i.relative(v,S)),this.setSourceContent(S,w))},this)}_validateMapping(d,g,p,m){if(g&&typeof g.line!="number"&&typeof g.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(d&&"line"in d&&"column"in d&&d.line>0&&d.column>=0&&!g&&!p&&!m)){if(!(d&&"line"in d&&"column"in d&&g&&"line"in g&&"column"in g&&d.line>0&&d.column>=0&&g.line>0&&g.column>=0&&p))throw new Error("Invalid mapping: "+JSON.stringify({generated:d,source:p,original:g,name:m}))}}_serializeMappings(){let d=0,g=1,p=0,m=0,v=0,x=0,E="",S,w,M,O;const D=this._mappings.toArray();for(let z=0,V=D.length;z0){if(!i.compareByGeneratedPositionsInflated(w,D[z-1]))continue;S+=","}S+=u.encode(w.generatedColumn-d),d=w.generatedColumn,w.source!=null&&(O=this._sources.indexOf(w.source),S+=u.encode(O-x),x=O,S+=u.encode(w.originalLine-1-m),m=w.originalLine-1,S+=u.encode(w.originalColumn-p),p=w.originalColumn,w.name!=null&&(M=this._names.indexOf(w.name),S+=u.encode(M-v),v=M)),E+=S}return E}_generateSourcesContent(d,g){return d.map(function(p){if(!this._sourcesContents)return null;g!=null&&(p=i.relative(g,p));const m=i.toSetString(p);return Object.prototype.hasOwnProperty.call(this._sourcesContents,m)?this._sourcesContents[m]:null},this)}toJSON(){const d={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(d.file=this._file),this._sourceRoot!=null&&(d.sourceRoot=this._sourceRoot),this._sourcesContents&&(d.sourcesContent=this._generateSourcesContent(d.sources,d.sourceRoot)),d}toString(){return JSON.stringify(this.toJSON())}}return c.prototype._version=3,Vs.SourceMapGenerator=c,Vs}var zl={},Js={},wh;function R0(){return wh||(wh=1,(function(u){u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2;function i(s,o,c,f,d,g){const p=Math.floor((o-s)/2)+s,m=d(c,f[p],!0);return m===0?p:m>0?o-p>1?i(p,o,c,f,d,g):g===u.LEAST_UPPER_BOUND?o1?i(s,p,c,f,d,g):g==u.LEAST_UPPER_BOUND?p:s<0?-1:s}u.search=function(o,c,f,d){if(c.length===0)return-1;let g=i(-1,c.length,o,c,f,d||u.GREATEST_LOWER_BOUND);if(g<0)return-1;for(;g-1>=0&&f(c[g],c[g-1],!0)===0;)--g;return g}})(Js)),Js}var cr={exports:{}},Ch;function xm(){if(Ch)return cr.exports;Ch=1;let u=null;return cr.exports=function(){if(typeof u=="string")return fetch(u).then(s=>s.arrayBuffer());if(u instanceof ArrayBuffer)return Promise.resolve(u);throw new Error("You must provide the string URL or ArrayBuffer contents of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer")},cr.exports.initialize=i=>{u=i},cr.exports}var Fs,Oh;function T0(){if(Oh)return Fs;Oh=1;const u=xm();function i(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let s=null;return Fs=function(){if(s)return s;const c=[];return s=u().then(f=>WebAssembly.instantiate(f,{env:{mapping_callback(d,g,p,m,v,x,E,S,w,M){const O=new i;O.generatedLine=d+1,O.generatedColumn=g,p&&(O.lastGeneratedColumn=m-1),v&&(O.source=x,O.originalLine=E+1,O.originalColumn=S,w&&(O.name=M)),c[c.length-1](O)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(f=>({exports:f.instance.exports,withMappingCallback:(d,g)=>{c.push(d);try{g()}finally{c.pop()}}})).then(null,f=>{throw s=null,f}),s},Fs}var Nh;function M0(){if(Nh)return zl;Nh=1;const u=Er(),i=R0(),s=vm().ArraySet;ym();const o=xm(),c=T0(),f=Symbol("smcInternal");class d{constructor(E,S){return E==f?Promise.resolve(this):m(E,S)}static initialize(E){o.initialize(E["lib/mappings.wasm"])}static fromSourceMap(E,S){return v(E,S)}static async with(E,S,w){const M=await new d(E,S);try{return await w(M)}finally{M.destroy()}}eachMapping(E,S,w){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(E){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}d.prototype._version=3,d.GENERATED_ORDER=1,d.ORIGINAL_ORDER=2,d.GREATEST_LOWER_BOUND=1,d.LEAST_UPPER_BOUND=2,zl.SourceMapConsumer=d;class g extends d{constructor(E,S){return super(f).then(w=>{let M=E;typeof E=="string"&&(M=u.parseSourceMapInput(E));const O=u.getArg(M,"version"),D=u.getArg(M,"sources").map(String),z=u.getArg(M,"names",[]),V=u.getArg(M,"sourceRoot",null),W=u.getArg(M,"sourcesContent",null),Q=u.getArg(M,"mappings"),ue=u.getArg(M,"file",null),pe=u.getArg(M,"x_google_ignoreList",null);if(O!=w._version)throw new Error("Unsupported version: "+O);return w._sourceLookupCache=new Map,w._names=s.fromArray(z.map(String),!0),w._sources=s.fromArray(D,!0),w._absoluteSources=s.fromArray(w._sources.toArray().map(function(Ee){return u.computeSourceURL(V,Ee,S)}),!0),w.sourceRoot=V,w.sourcesContent=W,w._mappings=Q,w._sourceMapURL=S,w.file=ue,w.x_google_ignoreList=pe,w._computedColumnSpans=!1,w._mappingsPtr=0,w._wasm=null,c().then(Ee=>(w._wasm=Ee,w))})}_findSourceIndex(E){const S=this._sourceLookupCache.get(E);if(typeof S=="number")return S;const w=u.computeSourceURL(null,E,this._sourceMapURL);if(this._absoluteSources.has(w)){const O=this._absoluteSources.indexOf(w);return this._sourceLookupCache.set(E,O),O}const M=u.computeSourceURL(this.sourceRoot,E,this._sourceMapURL);if(this._absoluteSources.has(M)){const O=this._absoluteSources.indexOf(M);return this._sourceLookupCache.set(E,O),O}return-1}static fromSourceMap(E,S){return new g(E.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return this._mappingsPtr===0&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const E=this._mappings,S=E.length,w=this._wasm.exports.allocate_mappings(S)>>>0,M=new Uint8Array(this._wasm.exports.memory.buffer,w,S);for(let D=0;D{D.source!==null&&(D.source=this._absoluteSources.at(D.source),D.name!==null&&(D.name=this._names.at(D.name))),this._computedColumnSpans&&D.lastGeneratedColumn===null&&(D.lastGeneratedColumn=1/0),E.call(M,D)},()=>{switch(O){case d.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case d.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(E){let S=u.getArg(E,"source");const w=u.getArg(E,"line"),M=E.column||0;if(S=this._findSourceIndex(S),S<0)return[];if(w<1)throw new Error("Line numbers must be >= 1");if(M<0)throw new Error("Column numbers must be >= 0");const O=[];return this._wasm.withMappingCallback(D=>{let z=D.lastGeneratedColumn;this._computedColumnSpans&&z===null&&(z=1/0),O.push({line:D.generatedLine,column:D.generatedColumn,lastColumn:z})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),S,w-1,"column"in E,M)}),O}destroy(){this._mappingsPtr!==0&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(E){const S={generatedLine:u.getArg(E,"line"),generatedColumn:u.getArg(E,"column")};if(S.generatedLine<1)throw new Error("Line numbers must be >= 1");if(S.generatedColumn<0)throw new Error("Column numbers must be >= 0");let w=u.getArg(E,"bias",d.GREATEST_LOWER_BOUND);w==null&&(w=d.GREATEST_LOWER_BOUND);let M;if(this._wasm.withMappingCallback(O=>M=O,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),S.generatedLine-1,S.generatedColumn,w)}),M&&M.generatedLine===S.generatedLine){let O=u.getArg(M,"source",null);O!==null&&(O=this._absoluteSources.at(O));let D=u.getArg(M,"name",null);return D!==null&&(D=this._names.at(D)),{source:O,line:u.getArg(M,"originalLine",null),column:u.getArg(M,"originalColumn",null),name:D}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(E){return E==null}):!1}sourceContentFor(E,S){if(!this.sourcesContent)return null;const w=this._findSourceIndex(E);if(w>=0)return this.sourcesContent[w];if(S)return null;throw new Error('"'+E+'" is not in the SourceMap.')}generatedPositionFor(E){let S=u.getArg(E,"source");if(S=this._findSourceIndex(S),S<0)return{line:null,column:null,lastColumn:null};const w={source:S,originalLine:u.getArg(E,"line"),originalColumn:u.getArg(E,"column")};if(w.originalLine<1)throw new Error("Line numbers must be >= 1");if(w.originalColumn<0)throw new Error("Column numbers must be >= 0");let M=u.getArg(E,"bias",d.GREATEST_LOWER_BOUND);M==null&&(M=d.GREATEST_LOWER_BOUND);let O;if(this._wasm.withMappingCallback(D=>O=D,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),w.source,w.originalLine-1,w.originalColumn,M)}),O&&O.source===w.source){let D=O.lastGeneratedColumn;return this._computedColumnSpans&&D===null&&(D=1/0),{line:u.getArg(O,"generatedLine",null),column:u.getArg(O,"generatedColumn",null),lastColumn:D}}return{line:null,column:null,lastColumn:null}}}g.prototype.consumer=d,zl.BasicSourceMapConsumer=g;class p extends d{constructor(E,S){return super(f).then(w=>{let M=E;typeof E=="string"&&(M=u.parseSourceMapInput(E));const O=u.getArg(M,"version"),D=u.getArg(M,"sections");if(O!=w._version)throw new Error("Unsupported version: "+O);let z={line:-1,column:0};return Promise.all(D.map(V=>{if(V.url)throw new Error("Support for url field in sections not implemented.");const W=u.getArg(V,"offset"),Q=u.getArg(W,"line"),ue=u.getArg(W,"column");if(Q({generatedOffset:{generatedLine:Q+1,generatedColumn:ue+1},consumer:Ee}))})).then(V=>(w._sections=V,w))})}get sources(){const E=[];for(let S=0;S=0?this._sections[S]:null,M=S>=0&&S+1=0?this._sections[S]:null,M=S>=0&&S+1{const D=w.generatedOffset.generatedLine-1,z=w.generatedOffset.generatedColumn-1;return O.line===1&&(O.column+=z,typeof O.lastColumn=="number"&&(O.lastColumn+=z)),O.lastColumn===1/0&&M&&O.line===M.generatedOffset.generatedLine&&(O.lastColumn=M.generatedOffset.generatedColumn-2),O.line+=D,O}):[]}eachMapping(E,S,w){this._sections.forEach((M,O)=>{const D=O+1=0;p--)this.prepend(g[p]);else if(g[c]||typeof g=="string")this.children.unshift(g);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+g);return this}walk(g){let p;for(let m=0,v=this.children.length;m0){for(p=[],m=0;m{const u=Date.now();for(const[i,s]of Da.entries())u-s.timestamp>D0&&Da.delete(i)},6e4);async function U0(){if(!Ps)try{await so.SourceMapConsumer.initialize({"lib/mappings.wasm":"https://unpkg.com/source-map@0.7.6/lib/mappings.wasm"}),Ps=!0}catch(u){console.warn("Failed to initialize SourceMapConsumer:",u);try{await so.SourceMapConsumer.initialize({}),Ps=!0}catch(i){throw console.error("SourceMapConsumer initialization failed completely:",i),i}}}function H0(u){if(!u||!u.stack)return`no-stack-${u?.message||"unknown"}`;const o=u.stack.split(` `).slice(0,3).map(c=>c.replace(/\?t=\d+/g,"").replace(/\?v=[\w\d]+/g,"").replace(/\d{13,}/g,"TIMESTAMP"));return`${u.name||"Error"}-${u.message}-${o.join("|")}`}const B0="preview-inject/";async function fr(u,i=5){if(!u||!u.stack)return{errorMessage:u?.message||"",mappedStack:u?.stack||"",sourceContext:[]};const s=H0(u);if(Da.has(s)){const v=Da.get(s);return console.log("Using cached error mapping for:",s),v}if(Da.size>=z0)return null;await U0();const o=u.stack.split(` `),c=[],f=[],d=new Map,g=new Map;let p=0;for(const v of o){const x=v.match(/at\s+(.+?)\s+\((.+?):(\d+):(\d+)\)|at\s+(.+?):(\d+):(\d+)/);if(!x){c.push(v);continue}let E,S,w,M;x[1]?(E=x[1],S=x[2],w=parseInt(x[3]),M=parseInt(x[4])):(E="",S=x[5],w=parseInt(x[6]),M=parseInt(x[7]));try{const O=`${S}.map`;let D=d.get(O);if(!D){const V=await G0(O);D=await new so.SourceMapConsumer(V),d.set(O,D)}const z=D.originalPositionFor({line:w,column:M});if(z.source){if(z.source.includes(B0))continue;const V=z.source.split("/").filter(ue=>ue!=="..").join("/"),Q=` at ${z.name||E} (${V}:${z.line}:${z.column})`;if(c.push(Q),z.line&&z.column&&p>>":" "} ${p.toString().padStart(4," ")} | ${o[g]||""}`;d.push(x)}return d.join(` `)}async function G0(u){try{const i=await fetch(u);if(!i.ok)throw new Error(`Failed to load source map: ${i.status}`);return await i.json()}catch(i){const s=i instanceof Error?i.message:String(i);throw new Error(`Error loading source map from ${u}: ${s}`)}}class Y0{client;originalConsoleError;constructor(){const i=x0();i.length>0&&i.forEach(s=>{s.type==="console.error"?this.handleConsoleError(s.args):s.type==="runtime"&&this.handleError(s.args)}),this.client=new Sr(window.parent),this.originalConsoleError=console.error,this.initErrorHandlers()}initErrorHandlers(){window.addEventListener("error",this.handleError.bind(this)),window.addEventListener("unhandledrejection",this.handlePromiseRejection.bind(this)),this.interceptConsoleError()}async handleError(i){const s=i.target;if(!(s&&s instanceof HTMLElement&&s.tagName&&["IMG","SCRIPT","LINK","VIDEO","AUDIO","SOURCE","IFRAME"].includes(s.tagName))&&i.error&&i.error.stack)try{const o=await fr(i.error);this.sendError(o)}catch(o){console.warn("Failed to map error stack:",o)}}async handlePromiseRejection(i){const s=i.reason instanceof Error?i.reason:new Error(String(i.reason));if(s.stack)try{const o=await fr(s);this.sendError(o)}catch(o){console.warn("Failed to map promise rejection stack:",o)}}interceptConsoleError(){console.error=(...i)=>{this.originalConsoleError.apply(console,i);const s=i.find(o=>o instanceof Error);if(s&&s.stack)this.handleConsoleError(s);else if(i.length>0){const o=i.map(f=>typeof f=="object"?JSON.stringify(f):String(f)).join(" "),c=new Error(o);this.handleConsoleError(c)}}}async handleConsoleError(i){try{const s=await fr(i);this.sendError(s)}catch(s){console.warn("Failed to map console error stack:",s)}}reportError(i){this.handleReactError(i)}async handleReactError(i){try{const s=await fr(i);this.sendError(s)}catch(s){console.warn("Failed to map React error stack:",s)}}async sendError(i){if(!i){console.warn("error is too many");return}if(i.sourceContext.length!==0)try{await this.client.post("runtime-error",i)}catch(s){console.warn("Failed to send error to parent:",s)}}destroy(){console.error=this.originalConsoleError,this.client.destroy()}}function V0(){const u=new Y0;return window.runtimeErrorCollector=u,u}class Q0{_client;constructor(){this._client=new Sr(window.parent),this._domContentLoadedListener()}_domContentLoadedListener(){const i=()=>{console.log("DOMContentLoaded"),this._client.post("DOMContentLoaded"),document.removeEventListener("DOMContentLoaded",i)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",i):(console.log("DOMContentLoaded"),this._client.post("DOMContentLoaded"))}}function X0(){return new Q0}const mo=u=>{const i="/preview/98029076-e116-42c4-ae1f-3da3697c48e3/2844488";return u.startsWith(i)?u.replaceAll(i,"")||"/":u||"/"},Z0="modulepreload",K0=function(u){return"/preview/98029076-e116-42c4-ae1f-3da3697c48e3/2844488/"+u},Th={},Sm=function(i,s,o){let c=Promise.resolve();if(s&&s.length>0){let m=function(v){return Promise.all(v.map(x=>Promise.resolve(x).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};var d=m;document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=g?.nonce||g?.getAttribute("nonce");c=m(s.map(v=>{if(v=K0(v),v in Th)return;Th[v]=!0;const x=v.endsWith(".css"),E=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${E}`))return;const S=document.createElement("link");if(S.rel=x?"stylesheet":Z0,x||(S.as="script"),S.crossOrigin="",S.href=v,p&&S.setAttribute("nonce",p),document.head.appendChild(S),x)return new Promise((w,M)=>{S.addEventListener("load",w),S.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${v}`)))})}))}function f(g){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=g,window.dispatchEvent(p),!p.defaultPrevented)throw g}return c.then(g=>{for(const p of g||[])p.status==="rejected"&&f(p.reason);return i().catch(f)})};async function $0(){const i=await await Sm(()=>Promise.resolve().then(()=>Lb),[]).then(s=>s.navigatePromise).catch(s=>(console.error(s),Promise.resolve(()=>{})));window.REACT_APP_ROUTER={push:(s,o)=>{i(s,o)},replace:(s,o,c)=>{i(s,{replace:!0,...c})},forward:()=>{i(1)},back:()=>{i(-1)},refresh:()=>{i(0)},prefetch:(s,o)=>{i(s,o)}}}const Em=new Promise(u=>{$0().then(()=>{u(window.REACT_APP_ROUTER)})}),go=()=>window.REACT_APP_ROUTER,_m=new Sr(window.parent),oo=async(u,i)=>{await _m.post("routeWillChange",{next:mo(u)},i)};function J0(u){const i=document.querySelector(u);i&&i.scrollIntoView({behavior:"smooth"})}function F0(){const u=window.open;return window.open=function(i,s,o){return i&&typeof i=="string"&&i.startsWith("#")?(J0(i),null):(u(i,"_blank",o),null)},()=>{window.open=u}}function W0(){const u=async i=>{const o=i.target.closest("a");if(!o||o.tagName!=="A")return;const c=o.getAttribute("href");if(c&&!["#","javascript:void(0)",""].includes(c)&&!c.startsWith("#")){if(i.preventDefault(),c.startsWith("/")){const f=go();await oo(c,{timeout:500});const d=mo(c);f.push(d);return}window.open(o.href,"_blank")}};return window.addEventListener("click",u,!0),()=>{window.removeEventListener("click",u,!0)}}const Mh=u=>u.startsWith("http://")||u.startsWith("https://");function P0(){const u=()=>{const i=go(),s=i.push;i.push=async function(c,f,d){return Mh(c)?(window.open(c,"_blank"),Promise.resolve(!1)):(await oo(c,{timeout:500}),s.call(this,c,f,d))};const o=i.replace;i.replace=async function(c,f,d){return Mh(c)?(window.open(c,"_blank"),Promise.resolve(!1)):(await oo(c,{timeout:500}),o.call(this,c,f,d))}};return window.addEventListener("load",u),()=>{window.removeEventListener("load",u)}}async function I0(){await Em;const u=F0(),i=W0(),s=P0();return()=>{_m.destroy(),u(),i(),s()}}async function ey(){const u=await Sm(()=>Promise.resolve().then(()=>Mb),void 0).then(c=>c.default).catch(c=>[]);let i=[],s=0;function o(c,f){const{path:d="",children:g,index:p}=c;s++;const m=p===!0||d==="",v=d&&d[0]==="/",x=d.slice(-1)==="/"?d.slice(0,-1):d,E=m?f.path:`${f.path}/${x}`,S=v&&!m?d:E,w={id:s,parentId:f.id,path:S};/\*/.test(w.path)||i.push(w),g&&g.forEach(M=>o(M,w))}return u.forEach(c=>o(c,{id:0,path:""})),i}async function ty(){const u=new Sr(window.parent),i=await ey();window.REACT_APP_ROUTES=i,u.post("routes",{routes:i}),u.on("getRouteInfo",async p=>i),await Em,u.on("routeAction",async p=>{const m=go(),{action:v,route:x}=p;switch(v){case"goForward":m.forward();break;case"goBack":m.back();break;case"refresh":m.refresh();break;case"goTo":x&&m.push(x);break;default:console.warn("Unknown action:",v)}});function s(){const p=window.history.state?.index??0,m=window.history.length>p+1,v=p>0,x=window.location.pathname;u.post("updateNavigationState",{canGoForward:m,canGoBack:v,currentRoute:mo(x)})}function o(){const p=new MutationObserver(v=>{v.forEach(x=>{(x.type==="childList"||x.type==="characterData")&&u.post("titleChanged",{title:document.title})})}),m=document.querySelector("title");return u.post("titleChanged",{title:document.title}),m&&p.observe(m,{childList:!0,characterData:!0,subtree:!0}),p}let c=o();function f(){c.disconnect(),setTimeout(()=>{c=o()},100)}const d=window.history.pushState,g=window.history.replaceState;return window.history.pushState=function(p,m,v){d.apply(this,arguments),s(),f()},window.history.replaceState=function(p,m,v){g.apply(this,arguments),s(),f()},{destroy:()=>{u.destroy(),c.disconnect()}}}const ny=!0;console.log("Is preview build:",ny);async function ay(){V0(),I0(),X0(),ty()}ay();var Is={exports:{}},Ul={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var jh;function ly(){if(jh)return Ul;jh=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:u,type:o,key:d,ref:c!==void 0?c:null,props:f}}return Ul.Fragment=i,Ul.jsx=s,Ul.jsxs=s,Ul}var Lh;function iy(){return Lh||(Lh=1,Is.exports=ly()),Is.exports}var b=iy(),eo={exports:{}},se={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Dh;function ry(){if(Dh)return se;Dh=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.iterator;function E(C){return C===null||typeof C!="object"?null:(C=x&&C[x]||C["@@iterator"],typeof C=="function"?C:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,M={};function O(C,q,$){this.props=C,this.context=q,this.refs=M,this.updater=$||S}O.prototype.isReactComponent={},O.prototype.setState=function(C,q){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,q,"setState")},O.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function D(){}D.prototype=O.prototype;function z(C,q,$){this.props=C,this.context=q,this.refs=M,this.updater=$||S}var V=z.prototype=new D;V.constructor=z,w(V,O.prototype),V.isPureReactComponent=!0;var W=Array.isArray,Q={H:null,A:null,T:null,S:null,V:null},ue=Object.prototype.hasOwnProperty;function pe(C,q,$,K,ee,be){return $=be.ref,{$$typeof:u,type:C,key:q,ref:$!==void 0?$:null,props:be}}function Ee(C,q){return pe(C.type,q,void 0,void 0,void 0,C.props)}function ye(C){return typeof C=="object"&&C!==null&&C.$$typeof===u}function G(C){var q={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function($){return q[$]})}var Z=/\/+/g;function F(C,q){return typeof C=="object"&&C!==null&&C.key!=null?G(""+C.key):q.toString(36)}function ae(){}function he(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(ae,ae):(C.status="pending",C.then(function(q){C.status==="pending"&&(C.status="fulfilled",C.value=q)},function(q){C.status==="pending"&&(C.status="rejected",C.reason=q)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function me(C,q,$,K,ee){var be=typeof C;(be==="undefined"||be==="boolean")&&(C=null);var re=!1;if(C===null)re=!0;else switch(be){case"bigint":case"string":case"number":re=!0;break;case"object":switch(C.$$typeof){case u:case i:re=!0;break;case v:return re=C._init,me(re(C._payload),q,$,K,ee)}}if(re)return ee=ee(C),re=K===""?"."+F(C,0):K,W(ee)?($="",re!=null&&($=re.replace(Z,"$&/")+"/"),me(ee,q,$,"",function(tn){return tn})):ee!=null&&(ye(ee)&&(ee=Ee(ee,$+(ee.key==null||C&&C.key===ee.key?"":(""+ee.key).replace(Z,"$&/")+"/")+re)),q.push(ee)),1;re=0;var it=K===""?".":K+":";if(W(C))for(var Te=0;Tetypeof u=="string",Hl=()=>{let u,i;const s=new Promise((o,c)=>{u=o,i=c});return s.resolve=u,s.reject=i,s},Uh=u=>u==null?"":""+u,uy=(u,i,s)=>{u.forEach(o=>{i[o]&&(s[o]=i[o])})},sy=/###/g,Hh=u=>u&&u.indexOf("###")>-1?u.replace(sy,"."):u,Bh=u=>!u||ie(u),Gl=(u,i,s)=>{const o=ie(i)?i.split("."):i;let c=0;for(;c{const{obj:o,k:c}=Gl(u,i,Object);if(o!==void 0||i.length===1){o[c]=s;return}let f=i[i.length-1],d=i.slice(0,i.length-1),g=Gl(u,d,Object);for(;g.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),g=Gl(u,d,Object),g?.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=s},oy=(u,i,s,o)=>{const{obj:c,k:f}=Gl(u,i,Object);c[f]=c[f]||[],c[f].push(s)},yr=(u,i)=>{const{obj:s,k:o}=Gl(u,i);if(s&&Object.prototype.hasOwnProperty.call(s,o))return s[o]},cy=(u,i,s)=>{const o=yr(u,s);return o!==void 0?o:yr(i,s)},wm=(u,i,s)=>{for(const o in i)o!=="__proto__"&&o!=="constructor"&&(o in u?ie(u[o])||u[o]instanceof String||ie(i[o])||i[o]instanceof String?s&&(u[o]=i[o]):wm(u[o],i[o],s):u[o]=i[o]);return u},Ma=u=>u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var fy={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const dy=u=>ie(u)?u.replace(/[&<>"'\/]/g,i=>fy[i]):u;class hy{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const s=this.regExpMap.get(i);if(s!==void 0)return s;const o=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,o),this.regExpQueue.push(i),o}}const my=[" ",",","?","!",";"],gy=new hy(20),py=(u,i,s)=>{i=i||"",s=s||"";const o=my.filter(d=>i.indexOf(d)<0&&s.indexOf(d)<0);if(o.length===0)return!0;const c=gy.getRegExp(`(${o.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!c.test(u);if(!f){const d=u.indexOf(s);d>0&&!c.test(u.substring(0,d))&&(f=!0)}return f},co=(u,i,s=".")=>{if(!u)return;if(u[i])return Object.prototype.hasOwnProperty.call(u,i)?u[i]:void 0;const o=i.split(s);let c=u;for(let f=0;f-1&&pu?.replace("_","-"),yy={type:"logger",log(u){this.output("log",u)},warn(u){this.output("warn",u)},error(u){this.output("error",u)},output(u,i){console?.[u]?.apply?.(console,i)}};class vr{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||yy,this.options=s,this.debug=s.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,s,o,c){return c&&!this.debug?null:(ie(i[0])&&(i[0]=`${o}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new vr(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new vr(this.logger,i)}}var Dt=new vr;class _r{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const c=this.observers[o].get(s)||0;this.observers[o].set(s,c+1)}),this}off(i,s){if(this.observers[i]){if(!s){delete this.observers[i];return}this.observers[i].delete(s)}}emit(i,...s){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([c,f])=>{for(let d=0;d{for(let d=0;d-1&&this.options.ns.splice(s,1)}getResource(i,s,o,c={}){const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;i.indexOf(".")>-1?g=i.split("."):(g=[i,s],o&&(Array.isArray(o)?g.push(...o):ie(o)&&f?g.push(...o.split(f)):g.push(o)));const p=yr(this.data,g);return!p&&!s&&!o&&i.indexOf(".")>-1&&(i=g[0],s=g[1],o=g.slice(2).join(".")),p||!d||!ie(o)?p:co(this.data?.[i]?.[s],o,f)}addResource(i,s,o,c,f={silent:!1}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[i,s];o&&(g=g.concat(d?o.split(d):o)),i.indexOf(".")>-1&&(g=i.split("."),c=s,s=g[1]),this.addNamespaces(s),qh(this.data,g,c),f.silent||this.emit("added",i,s,o,c)}addResources(i,s,o,c={silent:!1}){for(const f in o)(ie(o[f])||Array.isArray(o[f]))&&this.addResource(i,s,f,o[f],{silent:!0});c.silent||this.emit("added",i,s,o)}addResourceBundle(i,s,o,c,f,d={silent:!1,skipCopy:!1}){let g=[i,s];i.indexOf(".")>-1&&(g=i.split("."),c=o,o=s,s=g[1]),this.addNamespaces(s);let p=yr(this.data,g)||{};d.skipCopy||(o=JSON.parse(JSON.stringify(o))),c?wm(p,o,f):p={...p,...o},qh(this.data,g,p),d.silent||this.emit("added",i,s,o)}removeResourceBundle(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}hasResourceBundle(i,s){return this.getResource(i,s)!==void 0}getResourceBundle(i,s){return s||(s=this.options.defaultNS),this.getResource(i,s)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const s=this.getDataByLanguage(i);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var Cm={processors:{},addPostProcessor(u){this.processors[u.name]=u},handle(u,i,s,o,c){return u.forEach(f=>{i=this.processors[f]?.process(i,s,o,c)??i}),i}};const Om=Symbol("i18next/PATH_KEY");function vy(){const u=[],i=Object.create(null);let s;return i.get=(o,c)=>(s?.revoke?.(),c===Om?u:(u.push(c),s=Proxy.revocable(o,i),s.proxy)),Proxy.revocable(Object.create(null),i).proxy}function fo(u,i){const{[Om]:s}=u(vy());return s.join(i?.keySeparator??".")}const Gh={},Yh=u=>!ie(u)&&typeof u!="boolean"&&typeof u!="number";class br extends _r{constructor(i,s={}){super(),uy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dt.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const o={...s};return i==null?!1:this.resolve(i,o)?.res!==void 0}extractFromKey(i,s){let o=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let f=s.ns||this.options.defaultNS||[];const d=o&&i.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!py(i,o,c);if(d&&!g){const p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:ie(f)?[f]:f};const m=i.split(o);(o!==c||o===c&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),i=m.join(c)}return{key:i,namespaces:ie(f)?[f]:f}}translate(i,s,o){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(c={...c}),c||(c={}),i==null)return"";typeof i=="function"&&(i=fo(i,c)),Array.isArray(i)||(i=[String(i)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:g,namespaces:p}=this.extractFromKey(i[i.length-1],c),m=p[p.length-1];let v=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const x=c.lng||this.language,E=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return E?f?{res:`${m}${v}${g}`,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:m,usedParams:this.getUsedParamsDetails(c)}:`${m}${v}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:x,usedNS:m,usedParams:this.getUsedParamsDetails(c)}:g;const S=this.resolve(i,c);let w=S?.res;const M=S?.usedKey||g,O=S?.exactUsedKey||g,D=["[object Number]","[object Function]","[object RegExp]"],z=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,V=!this.i18nFormat||this.i18nFormat.handleAsObject,W=c.count!==void 0&&!ie(c.count),Q=br.hasDefaultValue(c),ue=W?this.pluralResolver.getSuffix(x,c.count,c):"",pe=c.ordinal&&W?this.pluralResolver.getSuffix(x,c.count,{ordinal:!1}):"",Ee=W&&!c.ordinal&&c.count===0,ye=Ee&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${ue}`]||c[`defaultValue${pe}`]||c.defaultValue;let G=w;V&&!w&&Q&&(G=ye);const Z=Yh(G),F=Object.prototype.toString.apply(G);if(V&&G&&Z&&D.indexOf(F)<0&&!(ie(z)&&Array.isArray(G))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(M,G,{...c,ns:p}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(S.res=ae,S.usedParams=this.getUsedParamsDetails(c),S):ae}if(d){const ae=Array.isArray(G),he=ae?[]:{},me=ae?O:M;for(const U in G)if(Object.prototype.hasOwnProperty.call(G,U)){const X=`${me}${d}${U}`;Q&&!w?he[U]=this.translate(X,{...c,defaultValue:Yh(ye)?ye[U]:void 0,joinArrays:!1,ns:p}):he[U]=this.translate(X,{...c,joinArrays:!1,ns:p}),he[U]===X&&(he[U]=G[U])}w=he}}else if(V&&ie(z)&&Array.isArray(w))w=w.join(z),w&&(w=this.extendTranslation(w,i,c,o));else{let ae=!1,he=!1;!this.isValidLookup(w)&&Q&&(ae=!0,w=ye),this.isValidLookup(w)||(he=!0,w=g);const U=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&he?void 0:w,X=Q&&ye!==w&&this.options.updateMissing;if(he||ae||X){if(this.logger.log(X?"updateKey":"missingKey",x,m,g,X?ye:w),d){const q=this.resolve(g,{...c,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const ve=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ve&&ve[0])for(let q=0;q{const ee=Q&&K!==w?K:U;this.options.missingKeyHandler?this.options.missingKeyHandler(q,m,$,ee,X,c):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,m,$,ee,X,c),this.emit("missingKey",q,m,$,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&W?I.forEach(q=>{const $=this.pluralResolver.getSuffixes(q,c);Ee&&c[`defaultValue${this.options.pluralSeparator}zero`]&&$.indexOf(`${this.options.pluralSeparator}zero`)<0&&$.push(`${this.options.pluralSeparator}zero`),$.forEach(K=>{C([q],g+K,c[`defaultValue${K}`]||ye)})}):C(I,g,ye))}w=this.extendTranslation(w,i,c,S,o),he&&w===g&&this.options.appendNamespaceToMissingKey&&(w=`${m}${v}${g}`),(he||ae)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${v}${g}`:g,ae?w:void 0,c))}return f?(S.res=w,S.usedParams=this.getUsedParamsDetails(c),S):w}extendTranslation(i,s,o,c,f){if(this.i18nFormat?.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const p=ie(i)&&(o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(p){const x=i.match(this.interpolator.nestingRegexp);m=x&&x.length}let v=o.replace&&!ie(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),i=this.interpolator.interpolate(i,v,o.lng||this.language||c.usedLng,o),p){const x=i.match(this.interpolator.nestingRegexp),E=x&&x.length;mf?.[0]===x[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${s[0]}`),null):this.translate(...x,s),o)),o.interpolation&&this.interpolator.reset()}const d=o.postProcess||this.options.postProcess,g=ie(d)?[d]:d;return i!=null&&g?.length&&o.applyPostProcessor!==!1&&(i=Cm.handle(g,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),i}resolve(i,s={}){let o,c,f,d,g;return ie(i)&&(i=[i]),i.forEach(p=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(p,s),v=m.key;c=v;let x=m.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const E=s.count!==void 0&&!ie(s.count),S=E&&!s.ordinal&&s.count===0,w=s.context!==void 0&&(ie(s.context)||typeof s.context=="number")&&s.context!=="",M=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);x.forEach(O=>{this.isValidLookup(o)||(g=O,!Gh[`${M[0]}-${O}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(g)&&(Gh[`${M[0]}-${O}`]=!0,this.logger.warn(`key "${c}" for languages "${M.join(", ")}" won't get resolved as namespace "${g}" 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(D=>{if(this.isValidLookup(o))return;d=D;const z=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(z,v,D,O,s);else{let W;E&&(W=this.pluralResolver.getSuffix(D,s.count,s));const Q=`${this.options.pluralSeparator}zero`,ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(s.ordinal&&W.indexOf(ue)===0&&z.push(v+W.replace(ue,this.options.pluralSeparator)),z.push(v+W),S&&z.push(v+Q)),w){const pe=`${v}${this.options.contextSeparator||"_"}${s.context}`;z.push(pe),E&&(s.ordinal&&W.indexOf(ue)===0&&z.push(pe+W.replace(ue,this.options.pluralSeparator)),z.push(pe+W),S&&z.push(pe+Q))}}let V;for(;V=z.pop();)this.isValidLookup(o)||(f=V,o=this.getResource(D,O,V,s))}))})}),{res:o,usedKey:c,exactUsedKey:f,usedLng:d,usedNS:g}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,s,o,c={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(i,s,o,c):this.resourceStore.getResource(i,s,o,c)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=i.replace&&!ie(i.replace);let c=o?i.replace:i;if(o&&typeof i.count<"u"&&(c.count=i.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!o){c={...c};for(const f of s)delete c[f]}return c}static hasDefaultValue(i){const s="defaultValue";for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&s===o.substring(0,s.length)&&i[o]!==void 0)return!0;return!1}}class Vh{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(i){if(i=Yl(i),!i||i.indexOf("-")<0)return null;const s=i.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(i){if(i=Yl(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(ie(i)&&i.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(i)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let s;return i.forEach(o=>{if(s)return;const c=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&i.forEach(o=>{if(s)return;const c=this.getScriptPartFromCode(o);if(this.isSupportedCode(c))return s=c;const f=this.getLanguagePartFromCode(o);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&(d.indexOf("-")>0&&f.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===f||d.indexOf(f)===0&&f.length>1))return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(i,s){if(!i)return[];if(typeof i=="function"&&(i=i(s)),ie(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let o=i[s];return o||(o=i[this.getScriptPartFromCode(s)]),o||(o=i[this.formatLanguageCode(s)]),o||(o=i[this.getLanguagePartFromCode(s)]),o||(o=i.default),o||[]}toResolveHierarchy(i,s){const o=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],i),c=[],f=d=>{d&&(this.isSupportedCode(d)?c.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return ie(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):ie(i)&&f(this.formatLanguageCode(i)),o.forEach(d=>{c.indexOf(d)<0&&f(this.formatLanguageCode(d))}),c}}const Qh={zero:0,one:1,two:2,few:3,many:4,other:5},Xh={select:u=>u===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class by{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=Dt.create("pluralResolver"),this.pluralRulesCache={}}addRule(i,s){this.rules[i]=s}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const o=Yl(i==="dev"?"en":i),c=s.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:o,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(o,{type:c})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Xh;if(!i.match(/-|_/))return Xh;const p=this.languageUtils.getLanguagePartFromCode(i);d=this.getRule(p,s)}return this.pluralRulesCache[f]=d,d}needsPlural(i,s={}){let o=this.getRule(i,s);return o||(o=this.getRule("dev",s)),o?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(i,s,o={}){return this.getSuffixes(i,o).map(c=>`${s}${c}`)}getSuffixes(i,s={}){let o=this.getRule(i,s);return o||(o=this.getRule("dev",s)),o?o.resolvedOptions().pluralCategories.sort((c,f)=>Qh[c]-Qh[f]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(i,s,o={}){const c=this.getRule(i,o);return c?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,o))}}const Zh=(u,i,s,o=".",c=!0)=>{let f=cy(u,i,s);return!f&&c&&ie(s)&&(f=co(u,s,o),f===void 0&&(f=co(i,s,o))),f},to=u=>u.replace(/\$/g,"$$$$");class xy{constructor(i={}){this.logger=Dt.create("interpolator"),this.options=i,this.format=i?.interpolation?.format||(s=>s),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:o,useRawValueToEscape:c,prefix:f,prefixEscaped:d,suffix:g,suffixEscaped:p,formatSeparator:m,unescapeSuffix:v,unescapePrefix:x,nestingPrefix:E,nestingPrefixEscaped:S,nestingSuffix:w,nestingSuffixEscaped:M,nestingOptionsSeparator:O,maxReplaces:D,alwaysFormat:z}=i.interpolation;this.escape=s!==void 0?s:dy,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Ma(f):d||"{{",this.suffix=g?Ma(g):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=v?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=E?Ma(E):S||Ma("$t("),this.nestingSuffix=w?Ma(w):M||Ma(")"),this.nestingOptionsSeparator=O||",",this.maxReplaces=D||1e3,this.alwaysFormat=z!==void 0?z:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,o)=>s?.source===o?(s.lastIndex=0,s):new RegExp(o,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,s,o,c){let f,d,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=S=>{if(S.indexOf(this.formatSeparator)<0){const D=Zh(s,p,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,o,{...c,...s,interpolationkey:S}):D}const w=S.split(this.formatSeparator),M=w.shift().trim(),O=w.join(this.formatSeparator).trim();return this.format(Zh(s,p,M,this.options.keySeparator,this.options.ignoreJSONStructure),O,o,{...c,...s,interpolationkey:M})};this.resetRegExp();const v=c?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=c?.interpolation?.skipOnVariables!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:S=>to(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?to(this.escape(S)):to(S)}].forEach(S=>{for(g=0;f=S.regex.exec(i);){const w=f[1].trim();if(d=m(w),d===void 0)if(typeof v=="function"){const O=v(i,f,c);d=ie(O)?O:""}else if(c&&Object.prototype.hasOwnProperty.call(c,w))d="";else if(x){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${i}`),d="";else!ie(d)&&!this.useRawValueToEscape&&(d=Uh(d));const M=S.safeValue(d);if(i=i.replace(f[0],M),x?(S.regex.lastIndex+=d.length,S.regex.lastIndex-=f[0].length):S.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),i}nest(i,s,o={}){let c,f,d;const g=(p,m)=>{const v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;const x=p.split(new RegExp(`${v}[ ]*{`));let E=`{${x[1]}`;p=x[0],E=this.interpolate(E,d);const S=E.match(/'/g),w=E.match(/"/g);((S?.length??0)%2===0&&!w||w.length%2!==0)&&(E=E.replace(/'/g,'"'));try{d=JSON.parse(E),m&&(d={...m,...d})}catch(M){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,M),`${p}${v}${E}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,p};for(;c=this.nestingRegexp.exec(i);){let p=[];d={...o},d=d.replace&&!ie(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const m=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(m!==-1&&(p=c[1].slice(m).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),c[1]=c[1].slice(0,m)),f=s(g.call(this,c[1].trim(),d),d),f&&c[0]===i&&!ie(f))return f;ie(f)||(f=Uh(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${i}`),f=""),p.length&&(f=p.reduce((v,x)=>this.format(v,x,o.lng,{...o,interpolationkey:c[1].trim()}),f.trim())),i=i.replace(c[0],f),this.regexp.lastIndex=0}return i}}const Sy=u=>{let i=u.toLowerCase().trim();const s={};if(u.indexOf("(")>-1){const o=u.split("(");i=o[0].toLowerCase().trim();const c=o[1].substring(0,o[1].length-1);i==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):i==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(d=>{if(d){const[g,...p]=d.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),v=g.trim();s[v]||(s[v]=m),m==="false"&&(s[v]=!1),m==="true"&&(s[v]=!0),isNaN(m)||(s[v]=parseInt(m,10))}})}return{formatName:i,formatOptions:s}},Kh=u=>{const i={};return(s,o,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const d=o+JSON.stringify(f);let g=i[d];return g||(g=u(Yl(o),c),i[d]=g),g(s)}},Ey=u=>(i,s,o)=>u(Yl(s),o)(i);class _y{constructor(i={}){this.logger=Dt.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const o=s.cacheInBuiltFormats?Kh:Ey;this.formats={number:o((c,f)=>{const d=new Intl.NumberFormat(c,{...f});return g=>d.format(g)}),currency:o((c,f)=>{const d=new Intl.NumberFormat(c,{...f,style:"currency"});return g=>d.format(g)}),datetime:o((c,f)=>{const d=new Intl.DateTimeFormat(c,{...f});return g=>d.format(g)}),relativetime:o((c,f)=>{const d=new Intl.RelativeTimeFormat(c,{...f});return g=>d.format(g,f.range||"day")}),list:o((c,f)=>{const d=new Intl.ListFormat(c,{...f});return g=>d.format(g)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=Kh(s)}format(i,s,o,c={}){const f=s.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{const{formatName:m,formatOptions:v}=Sy(p);if(this.formats[m]){let x=g;try{const E=c?.formatParams?.[c.interpolationkey]||{},S=E.locale||E.lng||c.locale||c.lng||o;x=this.formats[m](g,S,{...v,...c,...E})}catch(E){this.logger.warn(E)}return x}else this.logger.warn(`there was no format function for ${m}`);return g},i)}}const wy=(u,i)=>{u.pending[i]!==void 0&&(delete u.pending[i],u.pendingCount--)};class Cy extends _r{constructor(i,s,o,c={}){super(),this.backend=i,this.store=s,this.services=o,this.languageUtils=o.languageUtils,this.options=c,this.logger=Dt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(o,c.backend,c)}queueLoad(i,s,o,c){const f={},d={},g={},p={};return i.forEach(m=>{let v=!0;s.forEach(x=>{const E=`${m}|${x}`;!o.reload&&this.store.hasResourceBundle(m,x)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?d[E]===void 0&&(d[E]=!0):(this.state[E]=1,v=!1,d[E]===void 0&&(d[E]=!0),f[E]===void 0&&(f[E]=!0),p[x]===void 0&&(p[x]=!0)))}),v||(g[m]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(p)}}loaded(i,s,o){const c=i.split("|"),f=c[0],d=c[1];s&&this.emit("failedLoading",f,d,s),!s&&o&&this.store.addResourceBundle(f,d,o,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&o&&(this.state[i]=0);const g={};this.queue.forEach(p=>{oy(p.loaded,[f],d),wy(p,i),s&&p.errors.push(s),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{g[m]||(g[m]={});const v=p.loaded[m];v.length&&v.forEach(x=>{g[m][x]===void 0&&(g[m][x]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(i,s,o,c=0,f=this.retryTimeout,d){if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:o,tried:c,wait:f,callback:d});return}this.readingCalls++;const g=(m,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(m&&v&&c{this.read.call(this,i,s,o,c+1,f*2,d)},f);return}d(m,v)},p=this.backend[o].bind(this.backend);if(p.length===2){try{const m=p(i,s);m&&typeof m.then=="function"?m.then(v=>g(null,v)).catch(g):g(null,m)}catch(m){g(m)}return}return p(i,s,g)}prepareLoading(i,s,o={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ie(i)&&(i=this.languageUtils.toResolveHierarchy(i)),ie(s)&&(s=[s]);const f=this.queueLoad(i,s,o,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(i,s,o){this.prepareLoading(i,s,{},o)}reload(i,s,o){this.prepareLoading(i,s,{reload:!0},o)}loadOne(i,s=""){const o=i.split("|"),c=o[0],f=o[1];this.read(c,f,"read",void 0,void 0,(d,g)=>{d&&this.logger.warn(`${s}loading namespace ${f} for language ${c} failed`,d),!d&&g&&this.logger.log(`${s}loaded namespace ${f} for language ${c}`,g),this.loaded(i,d,g)})}saveMissing(i,s,o,c,f,d={},g=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(s)){this.logger.warn(`did not save key "${o}" as the namespace "${s}" 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(!(o==null||o==="")){if(this.backend?.create){const p={...d,isUpdate:f},m=this.backend.create.bind(this.backend);if(m.length<6)try{let v;m.length===5?v=m(i,s,o,c,p):v=m(i,s,o,c),v&&typeof v.then=="function"?v.then(x=>g(null,x)).catch(g):g(null,v)}catch(v){g(v)}else m(i,s,o,c,g,p)}!i||!i[0]||this.store.addResource(i[0],s,o,c)}}}const $h=()=>({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:u=>{let i={};if(typeof u[1]=="object"&&(i=u[1]),ie(u[1])&&(i.defaultValue=u[1]),ie(u[2])&&(i.tDescription=u[2]),typeof u[2]=="object"||typeof u[3]=="object"){const s=u[3]||u[2];Object.keys(s).forEach(o=>{i[o]=s[o]})}return i},interpolation:{escapeValue:!0,format:u=>u,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Jh=u=>(ie(u.ns)&&(u.ns=[u.ns]),ie(u.fallbackLng)&&(u.fallbackLng=[u.fallbackLng]),ie(u.fallbackNS)&&(u.fallbackNS=[u.fallbackNS]),u.supportedLngs?.indexOf?.("cimode")<0&&(u.supportedLngs=u.supportedLngs.concat(["cimode"])),typeof u.initImmediate=="boolean"&&(u.initAsync=u.initImmediate),u),dr=()=>{},Oy=u=>{Object.getOwnPropertyNames(Object.getPrototypeOf(u)).forEach(s=>{typeof u[s]=="function"&&(u[s]=u[s].bind(u))})};class Vl extends _r{constructor(i={},s){if(super(),this.options=Jh(i),this.services={},this.logger=Dt,this.modules={external:[]},Oy(this),s&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,s),this;setTimeout(()=>{this.init(i,s)},0)}}init(i={},s){this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(ie(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const o=$h();this.options={...o,...this.options,...Jh(i)},this.options.interpolation={...o.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);const c=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Dt.init(c(this.modules.logger),this.options):Dt.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=_y;const v=new Vh(this.options);this.store=new kh(this.options.resources,this.options);const x=this.services;x.logger=Dt,x.resourceStore=this.store,x.languageUtils=v,x.pluralResolver=new by(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(x.formatter=c(m),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new xy(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new Cy(c(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(S,...w)=>{this.emit(S,...w)}),this.modules.languageDetector&&(x.languageDetector=c(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=c(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new br(this.services,this.options),this.translator.on("*",(S,...w)=>{this.emit(S,...w)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,s||(s=dr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(m=>{this[m]=(...v)=>this.store[m](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...v)=>(this.store[m](...v),this)});const g=Hl(),p=()=>{const m=(v,x)=>{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),g.resolve(x),s(v,x)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),g}loadResources(i,s=dr){let o=s;const c=ie(i)?i:this.language;if(typeof i=="function"&&(o=i),!this.options.resources||this.options.partialBundledLanguages){if(c?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const f=[],d=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(m=>{m!=="cimode"&&f.indexOf(m)<0&&f.push(m)})};c?d(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(p=>d(p)),this.options.preload?.forEach?.(g=>d(g)),this.services.backendConnector.load(f,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(g)})}else o(null)}reloadResources(i,s,o){const c=Hl();return typeof i=="function"&&(o=i,i=void 0),typeof s=="function"&&(o=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),o||(o=dr),this.services.backendConnector.reload(i,s,f=>{c.resolve(),o(f)}),c}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Cm.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const o=Hl();this.emit("languageChanging",i);const c=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,p)=>{p?this.isLanguageChangingTo===i&&(c(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve((...m)=>this.t(...m)),s&&s(g,(...m)=>this.t(...m))},d=g=>{!i&&!g&&this.services.languageDetector&&(g=[]);const p=ie(g)?g:g&&g[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(ie(g)?[g]:g);m&&(this.language||c(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,v=>{f(v,m)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(i),o}getFixedT(i,s,o){const c=(f,d,...g)=>{let p;typeof d!="object"?p=this.options.overloadTranslationOptionHandler([f,d].concat(g)):p={...d},p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||o||c.keyPrefix);const m=this.options.keySeparator||".";let v;return p.keyPrefix&&Array.isArray(f)?v=f.map(x=>(typeof x=="function"&&(x=fo(x,d)),`${p.keyPrefix}${m}${x}`)):(typeof f=="function"&&(f=fo(f,d)),v=p.keyPrefix?`${p.keyPrefix}${m}${f}`:f),this.t(v,p)};return ie(i)?c.lng=i:c.lngs=i,c.ns=s,c.keyPrefix=o,c}t(...i){return this.translator?.translate(...i)}exists(...i){return this.translator?.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,s={}){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 o=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const d=(g,p)=>{const m=this.services.backendConnector.state[`${g}|${p}`];return m===-1||m===0||m===2};if(s.precheck){const g=s.precheck(this,d);if(g!==void 0)return g}return!!(this.hasResourceBundle(o,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(o,i)&&(!c||d(f,i)))}loadNamespaces(i,s){const o=Hl();return this.options.ns?(ie(i)&&(i=[i]),i.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{o.resolve(),s&&s(c)}),o):(s&&s(),Promise.resolve())}loadLanguages(i,s){const o=Hl();ie(i)&&(i=[i]);const c=this.options.preload||[],f=i.filter(d=>c.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=c.concat(f),this.loadResources(d=>{o.resolve(),s&&s(d)}),o):(s&&s(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!i)return"rtl";try{const c=new Intl.Locale(i);if(c&&c.getTextInfo){const f=c.getTextInfo();if(f&&f.direction)return f.direction}}catch{}const s=["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"],o=this.services?.languageUtils||new Vh($h());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){return new Vl(i,s)}cloneInstance(i={},s=dr){const o=i.forkResourceStore;o&&delete i.forkResourceStore;const c={...this.options,...i,isClone:!0},f=new Vl(c);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},o){const g=Object.keys(this.store.data).reduce((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((v,x)=>(v[x]={...p[m][x]},v),p[m]),p),{});f.store=new kh(g,c),f.services.resourceStore=f.store}return f.translator=new br(f.services,c),f.translator.on("*",(g,...p)=>{f.emit(g,...p)}),f.init(c,s),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pe=Vl.createInstance();Pe.createInstance=Vl.createInstance;Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;const Ny=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ay={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ry=u=>Ay[u],Ty=u=>u.replace(Ny,Ry);let Fh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Ty};const My=(u={})=>{Fh={...Fh,...u}},jy={type:"3rdParty",init(u){My(u.options.react)}},{slice:Ly,forEach:Dy}=[];function zy(u){return Dy.call(Ly.call(arguments,1),i=>{if(i)for(const s in i)u[s]===void 0&&(u[s]=i[s])}),u}function Uy(u){return typeof u!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(u))}const Wh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Hy=function(u,i){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},c=encodeURIComponent(i);let f=`${u}=${c}`;if(o.maxAge>0){const d=o.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(d)}`}if(o.domain){if(!Wh.test(o.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${o.domain}`}if(o.path){if(!Wh.test(o.path))throw new TypeError("option path is invalid");f+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(f+="; HttpOnly"),o.secure&&(f+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(f+="; Partitioned"),f},Ph={create(u,i,s,o){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(c.expires=new Date,c.expires.setTime(c.expires.getTime()+s*60*1e3)),o&&(c.domain=o),document.cookie=Hy(u,i,c)},read(u){const i=`${u}=`,s=document.cookie.split(";");for(let o=0;o-1&&(o=window.location.hash.substring(window.location.hash.indexOf("?")));const f=o.substring(1).split("&");for(let d=0;d0&&f[d].substring(0,g)===i&&(s=f[d].substring(g+1))}}return s}},ky={name:"hash",lookup(u){let{lookupHash:i,lookupFromHashIndex:s}=u,o;if(typeof window<"u"){const{hash:c}=window.location;if(c&&c.length>2){const f=c.substring(1);if(i){const d=f.split("&");for(let g=0;g0&&d[g].substring(0,p)===i&&(o=d[g].substring(p+1))}}if(o)return o;if(!o&&s>-1){const d=c.match(/\/([a-zA-Z-]*)/g);return Array.isArray(d)?d[typeof s=="number"?s:0]?.replace("/",""):void 0}}}return o}};let ja=null;const Ih=()=>{if(ja!==null)return ja;try{if(ja=typeof window<"u"&&window.localStorage!==null,!ja)return!1;const u="i18next.translate.boo";window.localStorage.setItem(u,"foo"),window.localStorage.removeItem(u)}catch{ja=!1}return ja};var Gy={name:"localStorage",lookup(u){let{lookupLocalStorage:i}=u;if(i&&Ih())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(u,i){let{lookupLocalStorage:s}=i;s&&Ih()&&window.localStorage.setItem(s,u)}};let La=null;const em=()=>{if(La!==null)return La;try{if(La=typeof window<"u"&&window.sessionStorage!==null,!La)return!1;const u="i18next.translate.boo";window.sessionStorage.setItem(u,"foo"),window.sessionStorage.removeItem(u)}catch{La=!1}return La};var Yy={name:"sessionStorage",lookup(u){let{lookupSessionStorage:i}=u;if(i&&em())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(u,i){let{lookupSessionStorage:s}=i;s&&em()&&window.sessionStorage.setItem(s,u)}},Vy={name:"navigator",lookup(u){const i=[];if(typeof navigator<"u"){const{languages:s,userLanguage:o,language:c}=navigator;if(s)for(let f=0;f0?i:void 0}},Qy={name:"htmlTag",lookup(u){let{htmlTag:i}=u,s;const o=i||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(s=o.getAttribute("lang")),s}},Xy={name:"path",lookup(u){let{lookupFromPathIndex:i}=u;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?s[typeof i=="number"?i:0]?.replace("/",""):void 0}},Zy={name:"subdomain",lookup(u){let{lookupFromSubdomainIndex:i}=u;const s=typeof i=="number"?i+1:1,o=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(o)return o[s]}};let Nm=!1;try{document.cookie,Nm=!0}catch{}const Am=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Nm||Am.splice(1,1);const Ky=()=>({order:Am,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:u=>u});class Rm{constructor(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(i,s)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i,this.options=zy(s,this.options||{},Ky()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=c=>c.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(By),this.addDetector(qy),this.addDetector(Gy),this.addDetector(Yy),this.addDetector(Vy),this.addDetector(Qy),this.addDetector(Xy),this.addDetector(Zy),this.addDetector(ky)}addDetector(i){return this.detectors[i.name]=i,this}detect(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return i.forEach(o=>{if(this.detectors[o]){let c=this.detectors[o].lookup(this.options);c&&typeof c=="string"&&(c=[c]),c&&(s=s.concat(c))}}),s=s.filter(o=>o!=null&&!Uy(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||s.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(i,this.options)}))}}Rm.type="languageDetector";const tm=Object.assign({}),kl={};Object.keys(tm).forEach(u=>{const i=u.match(/\.\/([^/]+)\/([^/]+)\.ts$/);if(i){const[,s]=i,o=tm[u];kl[s]||(kl[s]={translation:{}}),o.default&&(kl[s].translation={...kl[s].translation,...o.default})}});Pe.use(Rm).use(jy).init({lng:"en",fallbackLng:"en",debug:!1,resources:kl,interpolation:{escapeValue:!1}});var no={exports:{}},Bl={},ao={exports:{}},lo={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var nm;function $y(){return nm||(nm=1,(function(u){function i(U,X){var I=U.length;U.push(X);e:for(;0>>1,C=U[ve];if(0>>1;vec(K,I))eec(be,K)?(U[ve]=be,U[ee]=I,ve=ee):(U[ve]=K,U[$]=I,ve=$);else if(eec(be,I))U[ve]=be,U[ee]=I,ve=ee;else break e}}return X}function c(U,X){var I=U.sortIndex-X.sortIndex;return I!==0?I:U.id-X.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;u.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();u.unstable_now=function(){return d.now()-g}}var p=[],m=[],v=1,x=null,E=3,S=!1,w=!1,M=!1,O=!1,D=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function W(U){for(var X=s(m);X!==null;){if(X.callback===null)o(m);else if(X.startTime<=U)o(m),X.sortIndex=X.expirationTime,i(p,X);else break;X=s(m)}}function Q(U){if(M=!1,W(U),!w)if(s(p)!==null)w=!0,ue||(ue=!0,F());else{var X=s(m);X!==null&&me(Q,X.startTime-U)}}var ue=!1,pe=-1,Ee=5,ye=-1;function G(){return O?!0:!(u.unstable_now()-yeU&&G());){var ve=x.callback;if(typeof ve=="function"){x.callback=null,E=x.priorityLevel;var C=ve(x.expirationTime<=U);if(U=u.unstable_now(),typeof C=="function"){x.callback=C,W(U),X=!0;break t}x===s(p)&&o(p),W(U)}else o(p);x=s(p)}if(x!==null)X=!0;else{var q=s(m);q!==null&&me(Q,q.startTime-U),X=!1}}break e}finally{x=null,E=I,S=!1}X=void 0}}finally{X?F():ue=!1}}}var F;if(typeof V=="function")F=function(){V(Z)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,he=ae.port2;ae.port1.onmessage=Z,F=function(){he.postMessage(null)}}else F=function(){D(Z,0)};function me(U,X){pe=D(function(){U(u.unstable_now())},X)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(U){U.callback=null},u.unstable_forceFrameRate=function(U){0>U||125ve?(U.sortIndex=I,i(m,U),s(p)===null&&U===s(m)&&(M?(z(pe),pe=-1):M=!0,me(Q,I-ve))):(U.sortIndex=C,i(p,U),w||S||(w=!0,ue||(ue=!0,F()))),U},u.unstable_shouldYield=G,u.unstable_wrapCallback=function(U){var X=E;return function(){var I=E;E=X;try{return U.apply(this,arguments)}finally{E=I}}}})(lo)),lo}var am;function Jy(){return am||(am=1,ao.exports=$y()),ao.exports}var io={exports:{}},We={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var lm;function Fy(){if(lm)return We;lm=1;var u=po();function i(p){var m="https://react.dev/errors/"+p;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),io.exports=Fy(),io.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var rm;function Py(){if(rm)return Bl;rm=1;var u=Jy(),i=po(),s=Wy();function o(e){var t="https://react.dev/errors/"+e;if(1C||(e.current=ve[C],ve[C]=null,C--)}function K(e,t){C++,ve[C]=e.current,e.current=t}var ee=q(null),be=q(null),re=q(null),it=q(null);function Te(e,t){switch(K(re,t),K(be,e),K(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Qd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$(ee),K(ee,e)}function tn(){$(ee),$(be),$(re)}function Nr(e){e.memoizedState!==null&&K(it,e);var t=ee.current,n=Qd(t,e.type);t!==n&&(K(be,e),K(ee,n))}function $l(e){be.current===e&&($(ee),$(be)),it.current===e&&($(it),Rl._currentValue=I)}var Ar=Object.prototype.hasOwnProperty,Rr=u.unstable_scheduleCallback,Tr=u.unstable_cancelCallback,Wm=u.unstable_shouldYield,Pm=u.unstable_requestPaint,At=u.unstable_now,Im=u.unstable_getCurrentPriorityLevel,Eo=u.unstable_ImmediatePriority,_o=u.unstable_UserBlockingPriority,Jl=u.unstable_NormalPriority,eg=u.unstable_LowPriority,wo=u.unstable_IdlePriority,tg=u.log,ng=u.unstable_setDisableYieldValue,Ha=null,rt=null;function nn(e){if(typeof tg=="function"&&ng(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Ha,e)}catch{}}var ut=Math.clz32?Math.clz32:ig,ag=Math.log,lg=Math.LN2;function ig(e){return e>>>=0,e===0?32:31-(ag(e)/lg|0)|0}var Fl=256,Wl=4194304;function Nn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pl(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var l=0,r=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~r,a!==0?l=Nn(a):(h&=y,h!==0?l=Nn(h):n||(n=y&~e,n!==0&&(l=Nn(n))))):(y=a&~r,y!==0?l=Nn(y):h!==0?l=Nn(h):n||(n=a&~e,n!==0&&(l=Nn(n)))),l===0?0:t!==0&&t!==l&&(t&r)===0&&(r=l&-l,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:l}function Ba(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Co(){var e=Fl;return Fl<<=1,(Fl&4194048)===0&&(Fl=256),e}function Oo(){var e=Wl;return Wl<<=1,(Wl&62914560)===0&&(Wl=4194304),e}function Mr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ug(e,t,n,a,l,r){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,_=e.expirationTimes,T=e.hiddenUpdates;for(n=h&~n;0)":-1l||_[a]!==T[l]){var H=` `+_[a].replace(" at new "," at ");return e.displayName&&H.includes("")&&(H=H.replace("",e.displayName)),H}while(1<=a&&0<=l);break}}}finally{Hr=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Wn(n):""}function hg(e){switch(e.tag){case 26:case 27:case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 15:return Br(e.type,!1);case 11:return Br(e.type.render,!1);case 1:return Br(e.type,!0);case 31:return Wn("Activity");default:return""}}function Uo(e){try{var t="";do t+=hg(e),e=e.return;while(e);return t}catch(n){return` Error generating stack: `+n.message+` `+n.stack}}function gt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ho(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mg(e){var t=Ho(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(h){a=""+h,r.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ti(e){e._valueTracker||(e._valueTracker=mg(e))}function Bo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Ho(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ni(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gg=/[\n"\\]/g;function pt(e){return e.replace(gg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qr(e,t,n,a,l,r,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gt(t)):e.value!==""+gt(t)&&(e.value=""+gt(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?kr(e,h,gt(t)):n!=null?kr(e,h,gt(n)):a!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+gt(y):e.removeAttribute("name")}function qo(e,t,n,a,l,r,h,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+gt(n):"",t=t!=null?""+gt(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h)}function kr(e,t,n){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Pn(e,t,n,a){if(e=e.options,t){t={};for(var l=0;l"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xr=!1;if(Bt)try{var Va={};Object.defineProperty(Va,"passive",{get:function(){Xr=!0}}),window.addEventListener("test",Va,Va),window.removeEventListener("test",Va,Va)}catch{Xr=!1}var ln=null,Zr=null,li=null;function Zo(){if(li)return li;var e,t=Zr,n=t.length,a,l="value"in ln?ln.value:ln.textContent,r=l.length;for(e=0;e=Za),Po=" ",Io=!1;function ec(e,t){switch(e){case"keyup":return Vg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var na=!1;function Xg(e,t){switch(e){case"compositionend":return tc(t);case"keypress":return t.which!==32?null:(Io=!0,Po);case"textInput":return e=t.data,e===Po&&Io?null:e;default:return null}}function Zg(e,t){if(na)return e==="compositionend"||!Wr&&ec(e,t)?(e=Zo(),li=Zr=ln=null,na=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=oc(n)}}function fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ni(e.document)}return t}function eu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ep=Bt&&"documentMode"in document&&11>=document.documentMode,aa=null,tu=null,Fa=null,nu=!1;function hc(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nu||aa==null||aa!==ni(a)||(a=aa,"selectionStart"in a&&eu(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Fa&&Ja(Fa,a)||(Fa=a,a=$i(tu,"onSelect"),0>=h,l-=h,kt=1<<32-ut(t)+l|n<r?r:8;var h=U.T,y={};U.T=y,Gu(e,!1,t,n);try{var _=l(),T=U.S;if(T!==null&&T(y,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var H=op(_,a);fl(e,t,H,ht(e))}else fl(e,t,a,ht(e))}catch(k){fl(e,t,{then:function(){},status:"rejected",reason:k},ht())}finally{X.p=r,U.T=h}}function mp(){}function qu(e,t,n,a){if(e.tag!==5)throw Error(o(476));var l=gf(e).queue;mf(e,l,t,I,n===null?mp:function(){return pf(e),n(a)})}function gf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:I},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Qt,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function pf(e){var t=gf(e).next.queue;fl(e,t,{},ht())}function ku(){return Fe(Rl)}function yf(){return Be().memoizedState}function vf(){return Be().memoizedState}function gp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=ht();e=sn(n);var a=on(t,e,n);a!==null&&(mt(a,t,n),il(a,t,n)),t={cache:pu()},e.payload=t;return}t=t.return}}function pp(e,t,n){var a=ht();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ai(e)?xf(t,n):(n=ru(e,t,n,a),n!==null&&(mt(n,e,a),Sf(n,t,a)))}function bf(e,t,n){var a=ht();fl(e,t,n,a)}function fl(e,t,n,a){var l={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ai(e))xf(t,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var h=t.lastRenderedState,y=r(h,n);if(l.hasEagerState=!0,l.eagerState=y,st(y,h))return fi(e,t,l,0),Re===null&&ci(),!1}catch{}finally{}if(n=ru(e,t,l,a),n!==null)return mt(n,e,a),Sf(n,t,a),!0}return!1}function Gu(e,t,n,a){if(a={lane:2,revertLane:bs(),action:a,hasEagerState:!1,eagerState:null,next:null},Ai(e)){if(t)throw Error(o(479))}else t=ru(e,n,a,2),t!==null&&mt(t,e,2)}function Ai(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function xf(e,t){ha=Ei=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sf(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Ao(e,n)}}var Ri={readContext:Fe,use:wi,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useLayoutEffect:ze,useInsertionEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useSyncExternalStore:ze,useId:ze,useHostTransitionStatus:ze,useFormState:ze,useActionState:ze,useOptimistic:ze,useMemoCache:ze,useCacheRefresh:ze},Ef={readContext:Fe,use:wi,useCallback:function(e,t){return nt().memoizedState=[e,t===void 0?null:t],e},useContext:Fe,useEffect:lf,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ni(4194308,4,of.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var n=nt();t=t===void 0?null:t;var a=e();if(kn){nn(!0);try{e()}finally{nn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=nt();if(n!==void 0){var l=n(t);if(kn){nn(!0);try{n(t)}finally{nn(!1)}}}else l=t;return a.memoizedState=a.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},a.queue=e,e=e.dispatch=pp.bind(null,oe,e),[a.memoizedState,e]},useRef:function(e){var t=nt();return e={current:e},t.memoizedState=e},useState:function(e){e=zu(e);var t=e.queue,n=bf.bind(null,oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Hu,useDeferredValue:function(e,t){var n=nt();return Bu(n,e,t)},useTransition:function(){var e=zu(!1);return e=mf.bind(null,oe,e.queue,!0,!1),nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=oe,l=nt();if(Se){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Re===null)throw Error(o(349));(ge&124)!==0||Yc(a,t,n)}l.memoizedState=n;var r={value:n,getSnapshot:t};return l.queue=r,lf(Qc.bind(null,a,r,e),[e]),a.flags|=2048,ga(9,Oi(),Vc.bind(null,a,r,n,t),null),n},useId:function(){var e=nt(),t=Re.identifierPrefix;if(Se){var n=Gt,a=kt;n=(a&~(1<<32-ut(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=_i++,0ne?(Xe=P,P=null):Xe=P.sibling;var xe=j(A,P,R[ne],B);if(xe===null){P===null&&(P=Xe);break}e&&P&&xe.alternate===null&&t(A,P),N=r(xe,N,ne),ce===null?J=xe:ce.sibling=xe,ce=xe,P=Xe}if(ne===R.length)return n(A,P),Se&&Dn(A,ne),J;if(P===null){for(;nene?(Xe=P,P=null):Xe=P.sibling;var On=j(A,P,xe.value,B);if(On===null){P===null&&(P=Xe);break}e&&P&&On.alternate===null&&t(A,P),N=r(On,N,ne),ce===null?J=On:ce.sibling=On,ce=On,P=Xe}if(xe.done)return n(A,P),Se&&Dn(A,ne),J;if(P===null){for(;!xe.done;ne++,xe=R.next())xe=k(A,xe.value,B),xe!==null&&(N=r(xe,N,ne),ce===null?J=xe:ce.sibling=xe,ce=xe);return Se&&Dn(A,ne),J}for(P=a(P);!xe.done;ne++,xe=R.next())xe=L(P,A,ne,xe.value,B),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?ne:xe.key),N=r(xe,N,ne),ce===null?J=xe:ce.sibling=xe,ce=xe);return e&&P.forEach(function(v0){return t(A,v0)}),Se&&Dn(A,ne),J}function Ne(A,N,R,B){if(typeof R=="object"&&R!==null&&R.type===w&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case E:e:{for(var J=R.key;N!==null;){if(N.key===J){if(J=R.type,J===w){if(N.tag===7){n(A,N.sibling),B=l(N,R.props.children),B.return=A,A=B;break e}}else if(N.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ee&&wf(J)===N.type){n(A,N.sibling),B=l(N,R.props),hl(B,R),B.return=A,A=B;break e}n(A,N);break}else t(A,N);N=N.sibling}R.type===w?(B=jn(R.props.children,A.mode,B,R.key),B.return=A,A=B):(B=hi(R.type,R.key,R.props,null,A.mode,B),hl(B,R),B.return=A,A=B)}return h(A);case S:e:{for(J=R.key;N!==null;){if(N.key===J)if(N.tag===4&&N.stateNode.containerInfo===R.containerInfo&&N.stateNode.implementation===R.implementation){n(A,N.sibling),B=l(N,R.children||[]),B.return=A,A=B;break e}else{n(A,N);break}else t(A,N);N=N.sibling}B=ou(R,A.mode,B),B.return=A,A=B}return h(A);case Ee:return J=R._init,R=J(R._payload),Ne(A,N,R,B)}if(me(R))return le(A,N,R,B);if(F(R)){if(J=F(R),typeof J!="function")throw Error(o(150));return R=J.call(R),te(A,N,R,B)}if(typeof R.then=="function")return Ne(A,N,Ti(R),B);if(R.$$typeof===V)return Ne(A,N,yi(A,R),B);Mi(A,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,N!==null&&N.tag===6?(n(A,N.sibling),B=l(N,R),B.return=A,A=B):(n(A,N),B=su(R,A.mode,B),B.return=A,A=B),h(A)):n(A,N)}return function(A,N,R,B){try{dl=0;var J=Ne(A,N,R,B);return pa=null,J}catch(P){if(P===al||P===bi)throw P;var ce=ot(29,P,null,A.mode);return ce.lanes=B,ce.return=A,ce}finally{}}}var ya=Cf(!0),Of=Cf(!1),St=q(null),Tt=null;function fn(e){var t=e.alternate;K(ke,ke.current&1),K(St,e),Tt===null&&(t===null||da.current!==null||t.memoizedState!==null)&&(Tt=e)}function Nf(e){if(e.tag===22){if(K(ke,ke.current),K(St,e),Tt===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Tt=e)}}else dn()}function dn(){K(ke,ke.current),K(St,St.current)}function Xt(e){$(St),Tt===e&&(Tt=null),$(ke)}var ke=q(0);function ji(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Ms(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Yu(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vu={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=ht(),l=sn(a);l.payload=t,n!=null&&(l.callback=n),t=on(e,l,a),t!==null&&(mt(t,e,a),il(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=ht(),l=sn(a);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=on(e,l,a),t!==null&&(mt(t,e,a),il(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ht(),a=sn(n);a.tag=2,t!=null&&(a.callback=t),t=on(e,a,n),t!==null&&(mt(t,e,n),il(t,e,n))}};function Af(e,t,n,a,l,r,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,h):t.prototype&&t.prototype.isPureReactComponent?!Ja(n,a)||!Ja(l,r):!0}function Rf(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Vu.enqueueReplaceState(t,t.state,null)}function Gn(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}var Li=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Tf(e){Li(e)}function Mf(e){console.error(e)}function jf(e){Li(e)}function Di(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Lf(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Qu(e,t,n){return n=sn(n),n.tag=3,n.payload={element:null},n.callback=function(){Di(e,t)},n}function Df(e){return e=sn(e),e.tag=3,e}function zf(e,t,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var r=a.value;e.payload=function(){return l(r)},e.callback=function(){Lf(t,n,a)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Lf(t,n,a),typeof l!="function"&&(vn===null?vn=new Set([this]):vn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function vp(e,t,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&el(t,n,l,!0),n=St.current,n!==null){switch(n.tag){case 13:return Tt===null?ms():n.alternate===null&&De===0&&(De=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===bu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),ps(e,a,l)),!1;case 22:return n.flags|=65536,a===bu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),ps(e,a,l)),!1}throw Error(o(435,n.tag))}return ps(e,a,l),ms(),!1}if(Se)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,a!==du&&(e=Error(o(422),{cause:a}),Ia(yt(e,n)))):(a!==du&&(t=Error(o(423),{cause:a}),Ia(yt(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,a=yt(a,n),l=Qu(e.stateNode,a,l),Eu(e,l),De!==4&&(De=2)),!1;var r=Error(o(520),{cause:a});if(r=yt(r,n),xl===null?xl=[r]:xl.push(r),De!==4&&(De=2),t===null)return!0;a=yt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Qu(n.stateNode,a,e),Eu(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(vn===null||!vn.has(r))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Df(l),zf(l,e,n,a),Eu(n,l),!1}n=n.return}while(n!==null);return!1}var Uf=Error(o(461)),Ve=!1;function Ze(e,t,n,a){t.child=e===null?Of(t,null,n,a):ya(t,e.child,n,a)}function Hf(e,t,n,a,l){n=n.render;var r=t.ref;if("ref"in a){var h={};for(var y in a)y!=="ref"&&(h[y]=a[y])}else h=a;return Bn(t),a=Nu(e,t,n,h,r,l),y=Au(),e!==null&&!Ve?(Ru(e,t,l),Zt(e,t,l)):(Se&&y&&cu(t),t.flags|=1,Ze(e,t,a,l),t.child)}function Bf(e,t,n,a,l){if(e===null){var r=n.type;return typeof r=="function"&&!uu(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,qf(e,t,r,a,l)):(e=hi(n.type,null,a,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Pu(e,l)){var h=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ja,n(h,a)&&e.ref===t.ref)return Zt(e,t,l)}return t.flags|=1,e=qt(r,a),e.ref=t.ref,e.return=t,t.child=e}function qf(e,t,n,a,l){if(e!==null){var r=e.memoizedProps;if(Ja(r,a)&&e.ref===t.ref)if(Ve=!1,t.pendingProps=a=r,Pu(e,l))(e.flags&131072)!==0&&(Ve=!0);else return t.lanes=e.lanes,Zt(e,t,l)}return Xu(e,t,n,a,l)}function kf(e,t,n){var a=t.pendingProps,l=a.children,r=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=r!==null?r.baseLanes|n:n,e!==null){for(l=t.child=e.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;t.childLanes=r&~a}else t.childLanes=0,t.child=null;return Gf(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vi(t,r!==null?r.cachePool:null),r!==null?Bc(t,r):wu(),Nf(t);else return t.lanes=t.childLanes=536870912,Gf(e,t,r!==null?r.baseLanes|n:n,n)}else r!==null?(vi(t,r.cachePool),Bc(t,r),dn(),t.memoizedState=null):(e!==null&&vi(t,null),wu(),dn());return Ze(e,t,l,n),t.child}function Gf(e,t,n,a){var l=vu();return l=l===null?null:{parent:qe._currentValue,pool:l},t.memoizedState={baseLanes:n,cachePool:l},e!==null&&vi(t,null),wu(),Nf(t),e!==null&&el(e,t,a,!0),null}function zi(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Xu(e,t,n,a,l){return Bn(t),n=Nu(e,t,n,a,void 0,l),a=Au(),e!==null&&!Ve?(Ru(e,t,l),Zt(e,t,l)):(Se&&a&&cu(t),t.flags|=1,Ze(e,t,n,l),t.child)}function Yf(e,t,n,a,l,r){return Bn(t),t.updateQueue=null,n=kc(t,a,n,l),qc(e),a=Au(),e!==null&&!Ve?(Ru(e,t,r),Zt(e,t,r)):(Se&&a&&cu(t),t.flags|=1,Ze(e,t,n,r),t.child)}function Vf(e,t,n,a,l){if(Bn(t),t.stateNode===null){var r=ua,h=n.contextType;typeof h=="object"&&h!==null&&(r=Fe(h)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Vu,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},xu(t),h=n.contextType,r.context=typeof h=="object"&&h!==null?Fe(h):ua,r.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(Yu(t,n,h,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(h=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),h!==r.state&&Vu.enqueueReplaceState(r,r.state,null),ul(t,a,r,l),rl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var y=t.memoizedProps,_=Gn(n,y);r.props=_;var T=r.context,H=n.contextType;h=ua,typeof H=="object"&&H!==null&&(h=Fe(H));var k=n.getDerivedStateFromProps;H=typeof k=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,H||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||T!==h)&&Rf(t,r,a,h),un=!1;var j=t.memoizedState;r.state=j,ul(t,a,r,l),rl(),T=t.memoizedState,y||j!==T||un?(typeof k=="function"&&(Yu(t,n,k,a),T=t.memoizedState),(_=un||Af(t,n,_,a,j,T,h))?(H||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=T),r.props=a,r.state=T,r.context=h,a=_):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,Su(e,t),h=t.memoizedProps,H=Gn(n,h),r.props=H,k=t.pendingProps,j=r.context,T=n.contextType,_=ua,typeof T=="object"&&T!==null&&(_=Fe(T)),y=n.getDerivedStateFromProps,(T=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(h!==k||j!==_)&&Rf(t,r,a,_),un=!1,j=t.memoizedState,r.state=j,ul(t,a,r,l),rl();var L=t.memoizedState;h!==k||j!==L||un||e!==null&&e.dependencies!==null&&pi(e.dependencies)?(typeof y=="function"&&(Yu(t,n,y,a),L=t.memoizedState),(H=un||Af(t,n,H,a,j,L,_)||e!==null&&e.dependencies!==null&&pi(e.dependencies))?(T||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,L,_),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,L,_)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=L),r.props=a,r.state=L,r.context=_,a=H):(typeof r.componentDidUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,zi(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=ya(t,e.child,null,l),t.child=ya(t,null,n,l)):Ze(e,t,n,l),t.memoizedState=r.state,e=t.child):e=Zt(e,t,l),e}function Qf(e,t,n,a){return Pa(),t.flags|=256,Ze(e,t,n,a),t.child}var Zu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ku(e){return{baseLanes:e,cachePool:Tc()}}function $u(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Et),e}function Xf(e,t,n){var a=t.pendingProps,l=!1,r=(t.flags&128)!==0,h;if((h=r)||(h=e!==null&&e.memoizedState===null?!1:(ke.current&2)!==0),h&&(l=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(l?fn(t):dn(),Se){var y=Le,_;if(_=y){e:{for(_=y,y=Rt;_.nodeType!==8;){if(!y){y=null;break e}if(_=Ot(_.nextSibling),_===null){y=null;break e}}y=_}y!==null?(t.memoizedState={dehydrated:y,treeContext:Ln!==null?{id:kt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},_=ot(18,null,null,0),_.stateNode=y,_.return=t,t.child=_,Ie=t,Le=null,_=!0):_=!1}_||Un(t)}if(y=t.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return Ms(y)?t.lanes=32:t.lanes=536870912,null;Xt(t)}return y=a.children,a=a.fallback,l?(dn(),l=t.mode,y=Ui({mode:"hidden",children:y},l),a=jn(a,l,n,null),y.return=t,a.return=t,y.sibling=a,t.child=y,l=t.child,l.memoizedState=Ku(n),l.childLanes=$u(e,h,n),t.memoizedState=Zu,a):(fn(t),Ju(t,y))}if(_=e.memoizedState,_!==null&&(y=_.dehydrated,y!==null)){if(r)t.flags&256?(fn(t),t.flags&=-257,t=Fu(e,t,n)):t.memoizedState!==null?(dn(),t.child=e.child,t.flags|=128,t=null):(dn(),l=a.fallback,y=t.mode,a=Ui({mode:"visible",children:a.children},y),l=jn(l,y,n,null),l.flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,ya(t,e.child,null,n),a=t.child,a.memoizedState=Ku(n),a.childLanes=$u(e,h,n),t.memoizedState=Zu,t=l);else if(fn(t),Ms(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var T=h.dgst;h=T,a=Error(o(419)),a.stack="",a.digest=h,Ia({value:a,source:null,stack:null}),t=Fu(e,t,n)}else if(Ve||el(e,t,n,!1),h=(n&e.childLanes)!==0,Ve||h){if(h=Re,h!==null&&(a=n&-n,a=(a&42)!==0?1:jr(a),a=(a&(h.suspendedLanes|n))!==0?0:a,a!==0&&a!==_.retryLane))throw _.retryLane=a,ra(e,a),mt(h,e,a),Uf;y.data==="$?"||ms(),t=Fu(e,t,n)}else y.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,Le=Ot(y.nextSibling),Ie=t,Se=!0,zn=null,Rt=!1,e!==null&&(bt[xt++]=kt,bt[xt++]=Gt,bt[xt++]=Ln,kt=e.id,Gt=e.overflow,Ln=t),t=Ju(t,a.children),t.flags|=4096);return t}return l?(dn(),l=a.fallback,y=t.mode,_=e.child,T=_.sibling,a=qt(_,{mode:"hidden",children:a.children}),a.subtreeFlags=_.subtreeFlags&65011712,T!==null?l=qt(T,l):(l=jn(l,y,n,null),l.flags|=2),l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,y=e.child.memoizedState,y===null?y=Ku(n):(_=y.cachePool,_!==null?(T=qe._currentValue,_=_.parent!==T?{parent:T,pool:T}:_):_=Tc(),y={baseLanes:y.baseLanes|n,cachePool:_}),l.memoizedState=y,l.childLanes=$u(e,h,n),t.memoizedState=Zu,a):(fn(t),n=e.child,e=n.sibling,n=qt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=n,t.memoizedState=null,n)}function Ju(e,t){return t=Ui({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ui(e,t){return e=ot(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Fu(e,t,n){return ya(t,e.child,null,n),e=Ju(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zf(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),mu(e.return,t,n)}function Wu(e,t,n,a,l){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=l)}function Kf(e,t,n){var a=t.pendingProps,l=a.revealOrder,r=a.tail;if(Ze(e,t,a.children,n),a=ke.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zf(e,n,t);else if(e.tag===19)Zf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(K(ke,a),l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&ji(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Wu(t,!1,l,n,r);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&ji(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Wu(t,!0,n,null,r);break;case"together":Wu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Zt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),yn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(el(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pi(e)))}function bp(e,t,n){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),rn(t,qe,e.memoizedState.cache),Pa();break;case 27:case 5:Nr(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:rn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(fn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Xf(e,t,n):(fn(t),e=Zt(e,t,n),e!==null?e.sibling:null);fn(t);break;case 19:var l=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(el(e,t,n,!1),a=(n&t.childLanes)!==0),l){if(a)return Kf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),K(ke,ke.current),a)break;return null;case 22:case 23:return t.lanes=0,kf(e,t,n);case 24:rn(t,qe,e.memoizedState.cache)}return Zt(e,t,n)}function $f(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ve=!0;else{if(!Pu(e,n)&&(t.flags&128)===0)return Ve=!1,bp(e,t,n);Ve=(e.flags&131072)!==0}else Ve=!1,Se&&(t.flags&1048576)!==0&&_c(t,gi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,l=a._init;if(a=l(a._payload),t.type=a,typeof a=="function")uu(a)?(e=Gn(a,e),t.tag=1,t=Vf(null,t,a,e,n)):(t.tag=0,t=Xu(null,t,a,e,n));else{if(a!=null){if(l=a.$$typeof,l===W){t.tag=11,t=Hf(null,t,a,e,n);break e}else if(l===pe){t.tag=14,t=Bf(null,t,a,e,n);break e}}throw t=he(a)||a,Error(o(306,t,""))}}return t;case 0:return Xu(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,l=Gn(a,t.pendingProps),Vf(e,t,a,l,n);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var r=t.memoizedState;l=r.element,Su(e,t),ul(t,a,null,n);var h=t.memoizedState;if(a=h.cache,rn(t,qe,a),a!==r.cache&&gu(t,[qe],n,!0),rl(),a=h.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=Qf(e,t,a,n);break e}else if(a!==l){l=yt(Error(o(424)),t),Ia(l),t=Qf(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Ot(e.firstChild),Ie=t,Se=!0,zn=null,Rt=!0,n=Of(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pa(),a===l){t=Zt(e,t,n);break e}Ze(e,t,a,n)}t=t.child}return t;case 26:return zi(e,t),e===null?(n=Pd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Se||(n=t.type,e=t.pendingProps,a=Fi(re.current).createElement(n),a[Je]=t,a[et]=e,$e(a,n,e),Ye(a),t.stateNode=a):t.memoizedState=Pd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Nr(t),e===null&&Se&&(a=t.stateNode=Jd(t.type,t.pendingProps,re.current),Ie=t,Rt=!0,l=Le,Sn(t.type)?(js=l,Le=Ot(a.firstChild)):Le=l),Ze(e,t,t.pendingProps.children,n),zi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((l=a=Le)&&(a=Kp(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,Ie=t,Le=Ot(a.firstChild),Rt=!1,l=!0):l=!1),l||Un(t)),Nr(t),l=t.type,r=t.pendingProps,h=e!==null?e.memoizedProps:null,a=r.children,As(l,r)?a=null:h!==null&&As(l,h)&&(t.flags|=32),t.memoizedState!==null&&(l=Nu(e,t,fp,null,null,n),Rl._currentValue=l),zi(e,t),Ze(e,t,a,n),t.child;case 6:return e===null&&Se&&((e=n=Le)&&(n=$p(n,t.pendingProps,Rt),n!==null?(t.stateNode=n,Ie=t,Le=null,e=!0):e=!1),e||Un(t)),null;case 13:return Xf(e,t,n);case 4:return Te(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ya(t,null,a,n):Ze(e,t,a,n),t.child;case 11:return Hf(e,t,t.type,t.pendingProps,n);case 7:return Ze(e,t,t.pendingProps,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,rn(t,t.type,a.value),Ze(e,t,a.children,n),t.child;case 9:return l=t.type._context,a=t.pendingProps.children,Bn(t),l=Fe(l),a=a(l),t.flags|=1,Ze(e,t,a,n),t.child;case 14:return Bf(e,t,t.type,t.pendingProps,n);case 15:return qf(e,t,t.type,t.pendingProps,n);case 19:return Kf(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=Ui(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=qt(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return kf(e,t,n);case 24:return Bn(t),a=Fe(qe),e===null?(l=vu(),l===null&&(l=Re,r=pu(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=n),l=r),t.memoizedState={parent:a,cache:l},xu(t),rn(t,qe,l)):((e.lanes&n)!==0&&(Su(e,t),ul(t,null,null,n),rl()),l=e.memoizedState,r=t.memoizedState,l.parent!==a?(l={parent:a,cache:a},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),rn(t,qe,a)):(a=r.cache,rn(t,qe,a),a!==l.cache&&gu(t,[qe],n,!0))),Ze(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Kt(e){e.flags|=4}function Jf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ah(t)){if(t=St.current,t!==null&&((ge&4194048)===ge?Tt!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==Tt))throw ll=bu,Mc;e.flags|=8192}}function Hi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oo():536870912,e.lanes|=t,Sa|=t)}function ml(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function xp(e,t,n){var a=t.pendingProps;switch(fu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(t),null;case 1:return je(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Vt(qe),tn(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wa(t)?Kt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oc())),je(t),null;case 26:return n=t.memoizedState,e===null?(Kt(t),n!==null?(je(t),Jf(t,n)):(je(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Kt(t),je(t),Jf(t,n)):(je(t),t.flags&=-16777217):(e.memoizedProps!==a&&Kt(t),je(t),t.flags&=-16777217),null;case 27:$l(t),n=re.current;var l=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return je(t),null}e=ee.current,Wa(t)?wc(t):(e=Jd(l,a,n),t.stateNode=e,Kt(t))}return je(t),null;case 5:if($l(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kt(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return je(t),null}if(e=ee.current,Wa(t))wc(t);else{switch(l=Fi(re.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=l.createElement("div"),e.innerHTML="