From a73c107d3f59fbd6136a3254057c2902a7ce13b5 Mon Sep 17 00:00:00 2001 From: guoyunhe Date: Thu, 25 Apr 2024 07:29:38 +0000 Subject: [PATCH] deploy: 44f41a239a9b1d9bdaf46e3e00eec7aea3b8fc2b --- assets/{index-57P9cVF0.js => index-DnsjsWml.js} | 8 ++++---- index.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename assets/{index-57P9cVF0.js => index-DnsjsWml.js} (99%) diff --git a/assets/index-57P9cVF0.js b/assets/index-DnsjsWml.js similarity index 99% rename from assets/index-57P9cVF0.js rename to assets/index-DnsjsWml.js index a2398b0..850e8a6 100644 --- a/assets/index-57P9cVF0.js +++ b/assets/index-DnsjsWml.js @@ -42,7 +42,7 @@ Error generating stack: `+c.message+` Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var c="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,r)}init(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||zx,this.options=r,this.debug=r.debug}log(){for(var e=arguments.length,r=new Array(e),o=0;o{this.observers[o]||(this.observers[o]=new Map);const l=this.observers[o].get(r)||0;this.observers[o].set(r,l+1)}),this}off(e,r){if(this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e].delete(r)}}emit(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l{let[s,d]=a;for(let u=0;u{let[s,d]=a;for(let u=0;u{t=o,e=l});return r.resolve=t,r.reject=e,r}function Gu(t){return t==null?"":""+t}function Ux(t,e,r){t.forEach(o=>{e[o]&&(r[o]=e[o])})}const Hx=/###/g;function dl(t,e,r){function o(s){return s&&s.indexOf("###")>-1?s.replace(Hx,"."):s}function l(){return!t||typeof t=="string"}const c=typeof e!="string"?e:e.split(".");let a=0;for(;a":">",'"':""","'":"'","/":"/"};function Gx(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>Vx[e]):t}class Jx{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const r=this.regExpMap.get(e);if(r!==void 0)return r;const o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}}const Xx=[" ",",","?","!",";"],Kx=new Jx(20);function Qx(t,e,r){e=e||"",r=r||"";const o=Xx.filter(a=>e.indexOf(a)<0&&r.indexOf(a)<0);if(o.length===0)return!0;const l=Kx.getRegExp(`(${o.map(a=>a==="?"?"\\?":a).join("|")})`);let c=!l.test(t);if(!c){const a=t.indexOf(r);a>0&&!l.test(t.substring(0,a))&&(c=!0)}return c}function Xs(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(r);let l=t;for(let c=0;c-1&&d0?t.replace("_","-"):t}class Xu extends Wc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const r=this.options.ns.indexOf(e);r>-1&&this.options.ns.splice(r,1)}getResource(e,r,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,a=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;e.indexOf(".")>-1?s=e.split("."):(s=[e,r],o&&(Array.isArray(o)?s.push(...o):typeof o=="string"&&c?s.push(...o.split(c)):s.push(o)));const d=uc(this.data,s);return!d&&!r&&!o&&e.indexOf(".")>-1&&(e=s[0],r=s[1],o=s.slice(2).join(".")),d||!a||typeof o!="string"?d:Xs(this.data&&this.data[e]&&this.data[e][r],o,c)}addResource(e,r,o,l){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let s=[e,r];o&&(s=s.concat(a?o.split(a):o)),e.indexOf(".")>-1&&(s=e.split("."),l=r,r=s[1]),this.addNamespaces(r),Ju(this.data,s,l),c.silent||this.emit("added",e,r,o,l)}addResources(e,r,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const c in o)(typeof o[c]=="string"||Object.prototype.toString.apply(o[c])==="[object Array]")&&this.addResource(e,r,c,o[c],{silent:!0});l.silent||this.emit("added",e,r,o)}addResourceBundle(e,r,o,l,c){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,r];e.indexOf(".")>-1&&(s=e.split("."),l=o,o=r,r=s[1]),this.addNamespaces(r);let d=uc(this.data,s)||{};a.skipCopy||(o=JSON.parse(JSON.stringify(o))),l?Cb(d,o,c):d={...d,...o},Ju(this.data,s,d),a.silent||this.emit("added",e,r,o)}removeResourceBundle(e,r){this.hasResourceBundle(e,r)&&delete this.data[e][r],this.removeNamespaces(r),this.emit("removed",e,r)}hasResourceBundle(e,r){return this.getResource(e,r)!==void 0}getResourceBundle(e,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,r)}:this.getResource(e,r)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const r=this.getDataByLanguage(e);return!!(r&&Object.keys(r)||[]).find(l=>r[l]&&Object.keys(r[l]).length>0)}toJSON(){return this.data}}var Tb={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,o,l){return t.forEach(c=>{this.processors[c]&&(e=this.processors[c].process(e,r,o,l))}),e}};const Ku={};class yc extends Wc{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Ux(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=jt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,r);return o&&o.res!==void 0}extractFromKey(e,r){let o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let c=r.ns||this.options.defaultNS||[];const a=o&&e.indexOf(o)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Qx(e,o,l);if(a&&!s){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:c};const u=e.split(o);(o!==l||o===l&&this.options.ns.indexOf(u[0])>-1)&&(c=u.shift()),e=u.join(l)}return typeof c=="string"&&(c=[c]),{key:e,namespaces:c}}translate(e,r,o){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const l=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,c=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),d=s[s.length-1],u=r.lng||this.language,h=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(h){const v=r.nsSeparator||this.options.nsSeparator;return l?{res:`${d}${v}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:`${d}${v}${a}`}return l?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:d,usedParams:this.getUsedParamsDetails(r)}:a}const y=this.resolve(e,r);let b=y&&y.res;const P=y&&y.usedKey||a,j=y&&y.exactUsedKey||a,x=Object.prototype.toString.apply(b),S=["[object Number]","[object Function]","[object RegExp]"],O=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject;if(p&&b&&(typeof b!="string"&&typeof b!="boolean"&&typeof b!="number")&&S.indexOf(x)<0&&!(typeof O=="string"&&x==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const v=this.options.returnedObjectHandler?this.options.returnedObjectHandler(P,b,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return l?(y.res=v,y.usedParams=this.getUsedParamsDetails(r),y):v}if(c){const v=x==="[object Array]",E=v?[]:{},C=v?j:P;for(const I in b)if(Object.prototype.hasOwnProperty.call(b,I)){const D=`${C}${c}${I}`;E[I]=this.translate(D,{...r,joinArrays:!1,ns:s}),E[I]===D&&(E[I]=b[I])}b=E}}else if(p&&typeof O=="string"&&x==="[object Array]")b=b.join(O),b&&(b=this.extendTranslation(b,e,r,o));else{let v=!1,E=!1;const C=r.count!==void 0&&typeof r.count!="string",I=yc.hasDefaultValue(r),D=C?this.pluralResolver.getSuffix(u,r.count,r):"",X=r.ordinal&&C?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",R=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),K=R&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${D}`]||r[`defaultValue${X}`]||r.defaultValue;!this.isValidLookup(b)&&I&&(v=!0,b=K),this.isValidLookup(b)||(E=!0,b=a);const be=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:b,me=I&&K!==b&&this.options.updateMissing;if(E||v||me){if(this.logger.log(me?"updateKey":"missingKey",u,d,a,me?K:b),c){const k=this.resolve(a,{...r,keySeparator:!1});k&&k.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ke=[];const Ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ee&&Ee[0])for(let k=0;k{const ee=I&&U!==b?U:be;this.options.missingKeyHandler?this.options.missingKeyHandler(k,d,z,ee,me,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(k,d,z,ee,me,r),this.emit("missingKey",k,d,z,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&C?ke.forEach(k=>{const z=this.pluralResolver.getSuffixes(k,r);R&&r[`defaultValue${this.options.pluralSeparator}zero`]&&z.indexOf(`${this.options.pluralSeparator}zero`)<0&&z.push(`${this.options.pluralSeparator}zero`),z.forEach(U=>{Z([k],a+U,r[`defaultValue${U}`]||K)})}):Z(ke,a,K))}b=this.extendTranslation(b,e,r,y,o),E&&b===a&&this.options.appendNamespaceToMissingKey&&(b=`${d}:${a}`),(E||v)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${a}`:a,v?b:void 0):b=this.options.parseMissingKeyHandler(b))}return l?(y.res=b,y.usedParams=this.getUsedParamsDetails(r),y):b}extendTranslation(e,r,o,l,c){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const u=typeof e=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(u){const b=e.match(this.interpolator.nestingRegexp);h=b&&b.length}let y=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),e=this.interpolator.interpolate(e,y,o.lng||this.language,o),u){const b=e.match(this.interpolator.nestingRegexp),P=b&&b.length;h1&&arguments[1]!==void 0?arguments[1]:{},o,l,c,a,s;return typeof e=="string"&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(o))return;const u=this.extractFromKey(d,r),h=u.key;l=h;let y=u.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const b=r.count!==void 0&&typeof r.count!="string",P=b&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),j=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",x=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);y.forEach(S=>{this.isValidLookup(o)||(s=S,!Ku[`${x[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(Ku[`${x[0]}-${S}`]=!0,this.logger.warn(`key "${l}" for languages "${x.join(", ")}" won't get resolved as 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!!!")),x.forEach(O=>{if(this.isValidLookup(o))return;a=O;const p=[h];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,h,O,S,r);else{let v;b&&(v=this.pluralResolver.getSuffix(O,r.count,r));const E=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(p.push(h+v),r.ordinal&&v.indexOf(C)===0&&p.push(h+v.replace(C,this.options.pluralSeparator)),P&&p.push(h+E)),j){const I=`${h}${this.options.contextSeparator}${r.context}`;p.push(I),b&&(p.push(I+v),r.ordinal&&v.indexOf(C)===0&&p.push(I+v.replace(C,this.options.pluralSeparator)),P&&p.push(I+E))}}let m;for(;m=p.pop();)this.isValidLookup(o)||(c=m,o=this.getResource(O,S,m,r))}))})}),{res:o,usedKey:l,exactUsedKey:c,usedLng:a,usedNS:s}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,r,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,r,o,l):this.resourceStore.getResource(e,r,o,l)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&typeof e.replace!="string";let l=o?e.replace:e;if(o&&typeof e.count<"u"&&(l.count=e.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!o){l={...l};for(const c of r)delete l[c]}return l}static hasDefaultValue(e){const r="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&r===o.substring(0,r.length)&&e[o]!==void 0)return!0;return!1}}function Ja(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Qu{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jt.create("languageUtils")}getScriptPartFromCode(e){if(e=pc(e),!e||e.indexOf("-")<0)return null;const r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(e){if(e=pc(e),!e||e.indexOf("-")<0)return e;const r=e.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map(l=>l.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=Ja(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=Ja(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=Ja(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(o=>{if(r)return;const l=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(l))&&(r=l)}),!r&&this.options.supportedLngs&&e.forEach(o=>{if(r)return;const l=this.getLanguagePartFromCode(o);if(this.isSupportedCode(l))return r=l;r=this.options.supportedLngs.find(c=>{if(c===l)return c;if(!(c.indexOf("-")<0&&l.indexOf("-")<0)&&(c.indexOf("-")>0&&l.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===l||c.indexOf(l)===0&&l.length>1))return c})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];let o=e[r];return o||(o=e[this.getScriptPartFromCode(r)]),o||(o=e[this.formatLanguageCode(r)]),o||(o=e[this.getLanguagePartFromCode(r)]),o||(o=e.default),o||[]}toResolveHierarchy(e,r){const o=this.getFallbackCodes(r||this.options.fallbackLng||[],e),l=[],c=a=>{a&&(this.isSupportedCode(a)?l.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(e))):typeof e=="string"&&c(this.formatLanguageCode(e)),o.forEach(a=>{l.indexOf(a)<0&&c(this.formatLanguageCode(a))}),l}}let Yx=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Zx={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const e1=["v1","v2","v3"],n1=["v4"],Yu={zero:0,one:1,two:2,few:3,many:4,other:5};function t1(){const t={};return Yx.forEach(e=>{e.lngs.forEach(r=>{t[r]={numbers:e.nr,plurals:Zx[e.fc]}})}),t}class r1{constructor(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=r,this.logger=jt.create("pluralResolver"),(!this.options.compatibilityJSON||n1.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=t1()}addRule(e,r){this.rules[e]=r}getRule(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(pc(e==="dev"?"en":e),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(l=>`${r}${l}`)}getSuffixes(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((l,c)=>Yu[l]-Yu[c]).map(l=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${l}`):o.numbers.map(l=>this.getSuffix(e,l,r)):[]}getSuffix(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=this.getRule(e,o);return l?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${l.select(r)}`:this.getSuffixRetroCompatible(l,r):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,r){const o=e.noAbs?e.plurals(r):e.plurals(Math.abs(r));let l=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(l===2?l="plural":l===1&&(l=""));const c=()=>this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString();return this.options.compatibilityJSON==="v1"?l===1?"":typeof l=="number"?`_plural_${l.toString()}`:c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!e1.includes(this.options.compatibilityJSON)}}function Zu(t,e,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=Wx(t,e,r);return!c&&l&&typeof r=="string"&&(c=Xs(t,r,o),c===void 0&&(c=Xs(e,r,o))),c}class o1{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=jt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(r=>r),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const r=e.interpolation;this.escape=r.escape!==void 0?r.escape:Gx,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Qr(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Qr(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Qr(r.nestingPrefix):r.nestingPrefixEscaped||Qr("$t("),this.nestingSuffix=r.nestingSuffix?Qr(r.nestingSuffix):r.nestingSuffixEscaped||Qr(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(r,o)=>r&&r.source===o?(r.lastIndex=0,r):new RegExp(o,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,r,o,l){let c,a,s;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(j){return j.replace(/\$/g,"$$$$")}const h=j=>{if(j.indexOf(this.formatSeparator)<0){const p=Zu(r,d,j,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,o,{...l,...r,interpolationkey:j}):p}const x=j.split(this.formatSeparator),S=x.shift().trim(),O=x.join(this.formatSeparator).trim();return this.format(Zu(r,d,S,this.options.keySeparator,this.options.ignoreJSONStructure),O,o,{...l,...r,interpolationkey:S})};this.resetRegExp();const y=l&&l.missingInterpolationHandler||this.options.missingInterpolationHandler,b=l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:j=>u(j)},{regex:this.regexp,safeValue:j=>this.escapeValue?u(this.escape(j)):u(j)}].forEach(j=>{for(s=0;c=j.regex.exec(e);){const x=c[1].trim();if(a=h(x),a===void 0)if(typeof y=="function"){const O=y(e,c,l);a=typeof O=="string"?O:""}else if(l&&Object.prototype.hasOwnProperty.call(l,x))a="";else if(b){a=c[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=Gu(a));const S=j.safeValue(a);if(e=e.replace(c[0],S),b?(j.regex.lastIndex+=a.length,j.regex.lastIndex-=c[0].length):j.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),e}nest(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l,c,a;function s(d,u){const h=this.nestingOptionsSeparator;if(d.indexOf(h)<0)return d;const y=d.split(new RegExp(`${h}[ ]*{`));let b=`{${y[1]}`;d=y[0],b=this.interpolate(b,a);const P=b.match(/'/g),j=b.match(/"/g);(P&&P.length%2===0&&!j||j.length%2!==0)&&(b=b.replace(/'/g,'"'));try{a=JSON.parse(b),u&&(a={...u,...a})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,x),`${d}${h}${b}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,d}for(;l=this.nestingRegexp.exec(e);){let d=[];a={...o},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let u=!1;if(l[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(l[1])){const h=l[1].split(this.formatSeparator).map(y=>y.trim());l[1]=h.shift(),d=h,u=!0}if(c=r(s.call(this,l[1].trim(),a),a),c&&l[0]===e&&typeof c!="string")return c;typeof c!="string"&&(c=Gu(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${e}`),c=""),u&&(c=d.reduce((h,y)=>this.format(h,y,o.lng,{...o,interpolationkey:l[1].trim()}),c.trim())),e=e.replace(l[0],c),this.regexp.lastIndex=0}return e}}function l1(t){let e=t.toLowerCase().trim();const r={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const l=o[1].substring(0,o[1].length-1);e==="currency"&&l.indexOf(":")<0?r.currency||(r.currency=l.trim()):e==="relativetime"&&l.indexOf(":")<0?r.range||(r.range=l.trim()):l.split(";").forEach(a=>{if(!a)return;const[s,...d]=a.split(":"),u=d.join(":").trim().replace(/^'+|'+$/g,"");r[s.trim()]||(r[s.trim()]=u),u==="false"&&(r[s.trim()]=!1),u==="true"&&(r[s.trim()]=!0),isNaN(u)||(r[s.trim()]=parseInt(u,10))})}return{formatName:e,formatOptions:r}}function Yr(t){const e={};return function(o,l,c){const a=l+JSON.stringify(c);let s=e[a];return s||(s=t(pc(l),c),e[a]=s),s(o)}}class i1{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=jt.create("formatter"),this.options=e,this.formats={number:Yr((r,o)=>{const l=new Intl.NumberFormat(r,{...o});return c=>l.format(c)}),currency:Yr((r,o)=>{const l=new Intl.NumberFormat(r,{...o,style:"currency"});return c=>l.format(c)}),datetime:Yr((r,o)=>{const l=new Intl.DateTimeFormat(r,{...o});return c=>l.format(c)}),relativetime:Yr((r,o)=>{const l=new Intl.RelativeTimeFormat(r,{...o});return c=>l.format(c,o.range||"day")}),list:Yr((r,o)=>{const l=new Intl.ListFormat(r,{...o});return c=>l.format(c)})},this.init(e)}init(e){const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}add(e,r){this.formats[e.toLowerCase().trim()]=r}addCached(e,r){this.formats[e.toLowerCase().trim()]=Yr(r)}format(e,r,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((s,d)=>{const{formatName:u,formatOptions:h}=l1(d);if(this.formats[u]){let y=s;try{const b=l&&l.formatParams&&l.formatParams[l.interpolationkey]||{},P=b.locale||b.lng||l.locale||l.lng||o;y=this.formats[u](s,P,{...h,...l,...b})}catch(b){this.logger.warn(b)}return y}else this.logger.warn(`there was no format function for ${u}`);return s},e)}}function c1(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class a1 extends Wc{constructor(e,r,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=r,this.services=o,this.languageUtils=o.languageUtils,this.options=l,this.logger=jt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,l.backend,l)}queueLoad(e,r,o,l){const c={},a={},s={},d={};return e.forEach(u=>{let h=!0;r.forEach(y=>{const b=`${u}|${y}`;!o.reload&&this.store.hasResourceBundle(u,y)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?a[b]===void 0&&(a[b]=!0):(this.state[b]=1,h=!1,a[b]===void 0&&(a[b]=!0),c[b]===void 0&&(c[b]=!0),d[y]===void 0&&(d[y]=!0)))}),h||(s[u]=!0)}),(Object.keys(c).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(d)}}loaded(e,r,o){const l=e.split("|"),c=l[0],a=l[1];r&&this.emit("failedLoading",c,a,r),o&&this.store.addResourceBundle(c,a,o,void 0,void 0,{skipCopy:!0}),this.state[e]=r?-1:2;const s={};this.queue.forEach(d=>{qx(d.loaded,[c],a),c1(d,e),r&&d.errors.push(r),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(u=>{s[u]||(s[u]={});const h=d.loaded[u];h.length&&h.forEach(y=>{s[u][y]===void 0&&(s[u][y]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(d=>!d.done)}read(e,r,o){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:r,fcName:o,tried:l,wait:c,callback:a});return}this.readingCalls++;const s=(u,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(u&&h&&l{this.read.call(this,e,r,o,l+1,c*2,a)},c);return}a(u,h)},d=this.backend[o].bind(this.backend);if(d.length===2){try{const u=d(e,r);u&&typeof u.then=="function"?u.then(h=>s(null,h)).catch(s):s(null,u)}catch(u){s(u)}return}return d(e,r,s)}prepareLoading(e,r){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof r=="string"&&(r=[r]);const c=this.queueLoad(e,r,o,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(a=>{this.loadOne(a)})}load(e,r,o){this.prepareLoading(e,r,{},o)}reload(e,r,o){this.prepareLoading(e,r,{reload:!0},o)}loadOne(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),l=o[0],c=o[1];this.read(l,c,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${c} for language ${l} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${c} for language ${l}`,s),this.loaded(e,a,s)})}saveMissing(e,r,o,l,c){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${o}" as the namespace "${r}" 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&&this.backend.create){const d={...a,isUpdate:c},u=this.backend.create.bind(this.backend);if(u.length<6)try{let h;u.length===5?h=u(e,r,o,l,d):h=u(e,r,o,l),h&&typeof h.then=="function"?h.then(y=>s(null,y)).catch(s):s(null,h)}catch(h){s(h)}else u(e,r,o,l,s,d)}!e||!e[0]||this.store.addResource(e[0],r,o,l)}}}function ep(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let r={};if(typeof e[1]=="object"&&(r=e[1]),typeof e[1]=="string"&&(r.defaultValue=e[1]),typeof e[2]=="string"&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const o=e[3]||e[2];Object.keys(o).forEach(l=>{r[l]=o[l]})}return r},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function np(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Oi(){}function s1(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(r=>{typeof t[r]=="function"&&(t[r]=t[r].bind(t))})}class Cl extends Wc{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=np(e),this.services={},this.logger=jt,this.modules={external:[]},s1(this),r&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,r),this;setTimeout(()=>{this.init(e,r)},0)}}init(){var e=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(o=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const l=ep();this.options={...l,...this.options,...np(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...l.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function c(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?jt.init(c(this.modules.logger),this.options):jt.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:typeof Intl<"u"&&(h=i1);const y=new Qu(this.options);this.store=new Xu(this.options.resources,this.options);const b=this.services;b.logger=jt,b.resourceStore=this.store,b.languageUtils=y,b.pluralResolver=new r1(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(b.formatter=c(h),b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new o1(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new a1(c(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",function(P){for(var j=arguments.length,x=new Array(j>1?j-1:0),S=1;S1?j-1:0),S=1;S{P.init&&P.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Oi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const d=Go(),u=()=>{const h=(y,b)=>{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),d.resolve(b),o(y,b)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),d}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oi;const l=typeof e=="string"?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const c=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&c.indexOf(u)<0&&c.push(u)})};l?a(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>a(d)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(c,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(s)})}else o(null)}reloadResources(e,r,o){const l=Go();return e||(e=this.languages),r||(r=this.options.ns),o||(o=Oi),this.services.backendConnector.reload(e,r,c=>{l.resolve(),o(c)}),l}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Tb.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let r=0;r-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,r){var o=this;this.isLanguageChangingTo=e;const l=Go();this.emit("languageChanging",e);const c=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},a=(d,u)=>{u?(c(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,l.resolve(function(){return o.t(...arguments)}),r&&r(d,function(){return o.t(...arguments)})},s=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const u=typeof d=="string"?d:this.services.languageUtils.getBestMatchFromCodes(d);u&&(this.language||c(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,h=>{a(h,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),l}getFixedT(e,r,o){var l=this;const c=function(a,s){let d;if(typeof s!="object"){for(var u=arguments.length,h=new Array(u>2?u-2:0),y=2;y`${d.keyPrefix}${b}${j}`):P=d.keyPrefix?`${d.keyPrefix}${b}${a}`:a,l.t(P,d)};return typeof e=="string"?c.lng=e:c.lngs=e,c.ns=r,c.keyPrefix=o,c}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=r.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const a=(s,d)=>{const u=this.services.backendConnector.state[`${s}|${d}`];return u===-1||u===2};if(r.precheck){const s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,e)&&(!l||a(c,e)))}loadNamespaces(e,r){const o=Go();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{o.resolve(),r&&r(l)}),o):(r&&r(),Promise.resolve())}loadLanguages(e,r){const o=Go();typeof e=="string"&&(e=[e]);const l=this.options.preload||[],c=e.filter(a=>l.indexOf(a)<0);return c.length?(this.options.preload=l.concat(c),this.loadResources(a=>{o.resolve(),r&&r(a)}),o):(r&&r(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const r=["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&&this.services.languageUtils||new Qu(ep());return r.indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Cl(e,r)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oi;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const l={...this.options,...e,isClone:!0},c=new Cl(l);return(e.debug!==void 0||e.prefix!==void 0)&&(c.logger=c.logger.clone(e)),["store","services","language"].forEach(s=>{c[s]=this[s]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},o&&(c.store=new Xu(this.store.data,l),c.services.resourceStore=c.store),c.translator=new yc(c.services,l),c.translator.on("*",function(s){for(var d=arguments.length,u=new Array(d>1?d-1:0),h=1;h()=>{if(t.isInitialized)e();else{const r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}};function rp(t,e,r){t.loadNamespaces(e,Ab(t,r))}function op(t,e,r,o){typeof r=="string"&&(r=[r]),r.forEach(l=>{t.options.ns.indexOf(l)<0&&t.options.ns.push(l)}),t.loadLanguages(e,Ab(t,o))}function u1(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=e.languages[0],l=e.options?e.options.fallbackLng:!1,c=e.languages[e.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const a=(s,d)=>{const u=e.services.backendConnector.state[`${s}|${d}`];return u===-1||u===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(o,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(o,t)&&(!l||a(c,t)))}function p1(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(Ks("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(l,c)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&l.services.backendConnector.backend&&l.isLanguageChangingTo&&!c(l.isLanguageChangingTo,t))return!1}}):u1(t,e,r)}const y1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,h1={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},b1=t=>h1[t],O1=t=>t.replace(y1,b1);let m1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:O1};function j1(){return m1}let g1;function x1(){return g1}const Rb=B.createContext();class v1{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const w1=(t,e)=>{const r=B.useRef();return B.useEffect(()=>{r.current=e?r.current:t},[t,e]),r.current};function Lb(t,e,r,o){return t.getFixedT(e,r,o)}function P1(t,e,r,o){return B.useCallback(Lb(t,e,r,o),[t,e,r,o])}function S1(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=e,{i18n:o,defaultNS:l}=B.useContext(Rb)||{},c=r||o||x1();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new v1),!c){Ks("You will need to pass in an i18next instance by using initReactI18next");const v=(C,I)=>typeof I=="string"?I:I&&typeof I=="object"&&typeof I.defaultValue=="string"?I.defaultValue:Array.isArray(C)?C[C.length-1]:C,E=[v,{},!1];return E.t=v,E.i18n={},E.ready=!1,E}c.options.react&&c.options.react.wait!==void 0&&Ks("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...j1(),...c.options.react,...e},{useSuspense:s,keyPrefix:d}=a;let u=t||l||c.options&&c.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(u);const h=(c.isInitialized||c.initializedStoreOnce)&&u.every(v=>p1(v,c,a)),y=P1(c,e.lng||null,a.nsMode==="fallback"?u:u[0],d),b=()=>y,P=()=>Lb(c,e.lng||null,a.nsMode==="fallback"?u:u[0],d),[j,x]=B.useState(b);let S=u.join();e.lng&&(S=`${e.lng}${S}`);const O=w1(S),p=B.useRef(!0);B.useEffect(()=>{const{bindI18n:v,bindI18nStore:E}=a;p.current=!0,!h&&!s&&(e.lng?op(c,e.lng,u,()=>{p.current&&x(P)}):rp(c,u,()=>{p.current&&x(P)})),h&&O&&O!==S&&p.current&&x(P);function C(){p.current&&x(P)}return v&&c&&c.on(v,C),E&&c&&c.store.on(E,C),()=>{p.current=!1,v&&c&&v.split(" ").forEach(I=>c.off(I,C)),E&&c&&E.split(" ").forEach(I=>c.store.off(I,C))}},[c,S]),B.useEffect(()=>{p.current&&h&&x(b)},[c,d,h]);const m=[j,c,h];if(m.t=j,m.i18n=c,m.ready=h,h||!h&&!s)return m;throw new Promise(v=>{e.lng?op(c,e.lng,u,()=>v()):rp(c,u,()=>v())})}function _1(t){let{i18n:e,defaultNS:r,children:o}=t;const l=B.useMemo(()=>({i18n:e,defaultNS:r}),[e,r]);return B.createElement(Rb.Provider,{value:l},o)}/** - * @remix-run/router v1.15.3 + * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. * @@ -51,7 +51,7 @@ Error generating stack: `+c.message+` * * @license MIT */function Tl(){return Tl=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function Fb(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function I1(){return Math.random().toString(36).substr(2,8)}function ip(t,e){return{usr:t.state,key:t.key,idx:e}}function Qs(t,e,r,o){return r===void 0&&(r=null),Tl({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Ao(e):e,{state:r,key:e&&e.key||o||I1()})}function hc(t){let{pathname:e="/",search:r="",hash:o=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(e+=o.charAt(0)==="#"?o:"#"+o),e}function Ao(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let o=t.indexOf("?");o>=0&&(e.search=t.substr(o),t=t.substr(0,o)),t&&(e.pathname=t)}return e}function k1(t,e,r,o){o===void 0&&(o={});let{window:l=document.defaultView,v5Compat:c=!1}=o,a=l.history,s=Qt.Pop,d=null,u=h();u==null&&(u=0,a.replaceState(Tl({},a.state,{idx:u}),""));function h(){return(a.state||{idx:null}).idx}function y(){s=Qt.Pop;let S=h(),O=S==null?null:S-u;u=S,d&&d({action:s,location:x.location,delta:O})}function b(S,O){s=Qt.Push;let p=Qs(x.location,S,O);r&&r(p,S),u=h()+1;let m=ip(p,u),v=x.createHref(p);try{a.pushState(m,"",v)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;l.location.assign(v)}c&&d&&d({action:s,location:x.location,delta:1})}function P(S,O){s=Qt.Replace;let p=Qs(x.location,S,O);r&&r(p,S),u=h();let m=ip(p,u),v=x.createHref(p);a.replaceState(m,"",v),c&&d&&d({action:s,location:x.location,delta:0})}function j(S){let O=l.location.origin!=="null"?l.location.origin:l.location.href,p=typeof S=="string"?S:hc(S);return p=p.replace(/ $/,"%20"),Qe(O,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,O)}let x={get action(){return s},get location(){return t(l,a)},listen(S){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(lp,y),d=S,()=>{l.removeEventListener(lp,y),d=null}},createHref(S){return e(l,S)},createURL:j,encodeLocation(S){let O=j(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:b,replace:P,go(S){return a.go(S)}};return x}var cp;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(cp||(cp={}));function N1(t,e,r){r===void 0&&(r="/");let o=typeof e=="string"?Ao(e):e,l=Io(o.pathname||"/",r);if(l==null)return null;let c=Mb(t);C1(c);let a=null;for(let s=0;a==null&&s{let d={relativePath:s===void 0?c.path||"":s,caseSensitive:c.caseSensitive===!0,childrenIndex:a,route:c};d.relativePath.startsWith("/")&&(Qe(d.relativePath.startsWith(o),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+o+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(o.length));let u=cr([o,d.relativePath]),h=r.concat(d);c.children&&c.children.length>0&&(Qe(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Mb(c.children,e,h,u)),!(c.path==null&&!c.index)&&e.push({path:u,score:D1(u,c.index),routesMeta:h})};return t.forEach((c,a)=>{var s;if(c.path===""||!((s=c.path)!=null&&s.includes("?")))l(c,a);else for(let d of Db(c.path))l(c,a,d)}),e}function Db(t){let e=t.split("/");if(e.length===0)return[];let[r,...o]=e,l=r.endsWith("?"),c=r.replace(/\?$/,"");if(o.length===0)return l?[c,""]:[c];let a=Db(o.join("/")),s=[];return s.push(...a.map(d=>d===""?c:[c,d].join("/"))),l&&s.push(...a),s.map(d=>t.startsWith("/")&&d===""?"/":d)}function C1(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:B1(e.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}const T1=/^:[\w-]+$/,A1=3,R1=2,L1=1,F1=10,M1=-2,ap=t=>t==="*";function D1(t,e){let r=t.split("/"),o=r.length;return r.some(ap)&&(o+=M1),e&&(o+=R1),r.filter(l=>!ap(l)).reduce((l,c)=>l+(T1.test(c)?A1:c===""?L1:F1),o)}function B1(t,e){return t.length===e.length&&t.slice(0,-1).every((o,l)=>o===e[l])?t[t.length-1]-e[e.length-1]:0}function $1(t,e){let{routesMeta:r}=t,o={},l="/",c=[];for(let a=0;a{let{paramName:b,isOptional:P}=h;if(b==="*"){let x=s[y]||"";a=c.slice(0,c.length-x.length).replace(/(.)\/+$/,"$1")}const j=s[y];return P&&!j?u[b]=void 0:u[b]=(j||"").replace(/%2F/g,"/"),u},{}),pathname:c,pathnameBase:a,pattern:t}}function z1(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Fb(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let o=[],l="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,d)=>(o.push({paramName:s,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(o.push({paramName:"*"}),l+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":t!==""&&t!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,e?void 0:"i"),o]}function U1(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Fb(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Io(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,o=t.charAt(r);return o&&o!=="/"?null:t.slice(r)||"/"}function H1(t,e){e===void 0&&(e="/");let{pathname:r,search:o="",hash:l=""}=typeof t=="string"?Ao(t):t;return{pathname:r?r.startsWith("/")?r:q1(r,e):e,search:G1(o),hash:J1(l)}}function q1(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Xa(t,e,r,o){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function W1(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function Bb(t,e){let r=W1(t);return e?r.map((o,l)=>l===t.length-1?o.pathname:o.pathnameBase):r.map(o=>o.pathnameBase)}function $b(t,e,r,o){o===void 0&&(o=!1);let l;typeof t=="string"?l=Ao(t):(l=Tl({},t),Qe(!l.pathname||!l.pathname.includes("?"),Xa("?","pathname","search",l)),Qe(!l.pathname||!l.pathname.includes("#"),Xa("#","pathname","hash",l)),Qe(!l.search||!l.search.includes("#"),Xa("#","search","hash",l)));let c=t===""||l.pathname==="",a=c?"/":l.pathname,s;if(a==null)s=r;else{let y=e.length-1;if(!o&&a.startsWith("..")){let b=a.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}s=y>=0?e[y]:"/"}let d=H1(l,s),u=a&&a!=="/"&&a.endsWith("/"),h=(c||a===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(u||h)&&(d.pathname+="/"),d}const cr=t=>t.join("/").replace(/\/\/+/g,"/"),V1=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),G1=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,J1=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function X1(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const zb=["post","put","patch","delete"];new Set(zb);const K1=["get",...zb];new Set(K1);/** - * React Router v6.22.3 + * React Router v6.23.0 * * Copyright (c) Remix Software Inc. * @@ -59,8 +59,8 @@ Error generating stack: `+c.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Al(){return Al=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),B.useCallback(function(u,h){if(h===void 0&&(h={}),!s.current)return;if(typeof u=="number"){o.go(u);return}let y=$b(u,JSON.parse(a),c,h.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:cr([e,y.pathname])),(h.replace?o.replace:o.push)(y,h.state,h)},[e,o,a,c,t])}function Jc(t,e){let{relative:r}=e===void 0?{}:e,{future:o}=B.useContext(Or),{matches:l}=B.useContext(Ur),{pathname:c}=Ro(),a=JSON.stringify(Bb(l,o.v7_relativeSplatPath));return B.useMemo(()=>$b(t,JSON.parse(a),c,r==="path"),[t,a,c,r])}function Z1(t,e){return ev(t,e)}function ev(t,e,r,o){Vl()||Qe(!1);let{navigator:l}=B.useContext(Or),{matches:c}=B.useContext(Ur),a=c[c.length-1],s=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let u=Ro(),h;if(e){var y;let S=typeof e=="string"?Ao(e):e;d==="/"||(y=S.pathname)!=null&&y.startsWith(d)||Qe(!1),h=S}else h=u;let b=h.pathname||"/",P=b;if(d!=="/"){let S=d.replace(/^\//,"").split("/");P="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let j=N1(t,{pathname:P}),x=lv(j&&j.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:cr([d,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?d:cr([d,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),c,r,o);return e&&x?B.createElement(Gc.Provider,{value:{location:Al({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Qt.Pop}},x):x}function nv(){let t=sv(),e=X1(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},e),r?B.createElement("pre",{style:l},r):null,null)}const tv=B.createElement(nv,null);class rv extends B.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?B.createElement(Ur.Provider,{value:this.props.routeContext},B.createElement(Hb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ov(t){let{routeContext:e,match:r,children:o}=t,l=B.useContext(Vc);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),B.createElement(Ur.Provider,{value:e},o)}function lv(t,e,r,o){var l;if(e===void 0&&(e=[]),r===void 0&&(r=null),o===void 0&&(o=null),t==null){var c;if((c=r)!=null&&c.errors)t=r.matches;else return null}let a=t,s=(l=r)==null?void 0:l.errors;if(s!=null){let h=a.findIndex(y=>y.route.id&&(s==null?void 0:s[y.route.id]));h>=0||Qe(!1),a=a.slice(0,Math.min(a.length,h+1))}let d=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let h=0;h=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((h,y,b)=>{let P,j=!1,x=null,S=null;r&&(P=s&&y.route.id?s[y.route.id]:void 0,x=y.route.errorElement||tv,d&&(u<0&&b===0?(dv("route-fallback",!1),j=!0,S=null):u===b&&(j=!0,S=y.route.hydrateFallbackElement||null)));let O=e.concat(a.slice(0,b+1)),p=()=>{let m;return P?m=x:j?m=S:y.route.Component?m=B.createElement(y.route.Component,null):y.route.element?m=y.route.element:m=h,B.createElement(ov,{match:y,routeContext:{outlet:h,matches:O,isDataRoute:r!=null},children:m})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?B.createElement(rv,{location:r.location,revalidation:r.revalidation,component:x,error:P,children:p(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):p()},null)}var Vb=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Vb||{}),bc=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(bc||{});function iv(t){let e=B.useContext(Vc);return e||Qe(!1),e}function cv(t){let e=B.useContext(Ub);return e||Qe(!1),e}function av(t){let e=B.useContext(Ur);return e||Qe(!1),e}function Gb(t){let e=av(),r=e.matches[e.matches.length-1];return r.route.id||Qe(!1),r.route.id}function sv(){var t;let e=B.useContext(Hb),r=cv(bc.UseRouteError),o=Gb(bc.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[o]}function fv(){let{router:t}=iv(Vb.UseNavigateStable),e=Gb(bc.UseNavigateStable),r=B.useRef(!1);return qb(()=>{r.current=!0}),B.useCallback(function(l,c){c===void 0&&(c={}),r.current&&(typeof l=="number"?t.navigate(l):t.navigate(l,Al({fromRouteId:e},c)))},[t,e])}const sp={};function dv(t,e,r){!e&&!sp[t]&&(sp[t]=!0)}function Jb(t){Qe(!1)}function uv(t){let{basename:e="/",children:r=null,location:o,navigationType:l=Qt.Pop,navigator:c,static:a=!1,future:s}=t;Vl()&&Qe(!1);let d=e.replace(/^\/*/,"/"),u=B.useMemo(()=>({basename:d,navigator:c,static:a,future:Al({v7_relativeSplatPath:!1},s)}),[d,s,c,a]);typeof o=="string"&&(o=Ao(o));let{pathname:h="/",search:y="",hash:b="",state:P=null,key:j="default"}=o,x=B.useMemo(()=>{let S=Io(h,d);return S==null?null:{location:{pathname:S,search:y,hash:b,state:P,key:j},navigationType:l}},[d,h,y,b,P,j,l]);return x==null?null:B.createElement(Or.Provider,{value:u},B.createElement(Gc.Provider,{children:r,value:x}))}function pv(t){let{children:e,location:r}=t;return Z1(Zs(e),r)}new Promise(()=>{});function Zs(t,e){e===void 0&&(e=[]);let r=[];return B.Children.forEach(t,(o,l)=>{if(!B.isValidElement(o))return;let c=[...e,l];if(o.type===B.Fragment){r.push.apply(r,Zs(o.props.children,c));return}o.type!==Jb&&Qe(!1),!o.props.index||!o.props.children||Qe(!1);let a={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=Zs(o.props.children,c)),r.push(a)}),r}/** - * React Router DOM v6.22.3 + */function Al(){return Al=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),B.useCallback(function(u,h){if(h===void 0&&(h={}),!s.current)return;if(typeof u=="number"){o.go(u);return}let y=$b(u,JSON.parse(a),c,h.relative==="path");t==null&&e!=="/"&&(y.pathname=y.pathname==="/"?e:cr([e,y.pathname])),(h.replace?o.replace:o.push)(y,h.state,h)},[e,o,a,c,t])}function Jc(t,e){let{relative:r}=e===void 0?{}:e,{future:o}=B.useContext(Or),{matches:l}=B.useContext(Ur),{pathname:c}=Ro(),a=JSON.stringify(Bb(l,o.v7_relativeSplatPath));return B.useMemo(()=>$b(t,JSON.parse(a),c,r==="path"),[t,a,c,r])}function Z1(t,e){return ev(t,e)}function ev(t,e,r,o){Vl()||Qe(!1);let{navigator:l}=B.useContext(Or),{matches:c}=B.useContext(Ur),a=c[c.length-1],s=a?a.params:{};a&&a.pathname;let d=a?a.pathnameBase:"/";a&&a.route;let u=Ro(),h;if(e){var y;let S=typeof e=="string"?Ao(e):e;d==="/"||(y=S.pathname)!=null&&y.startsWith(d)||Qe(!1),h=S}else h=u;let b=h.pathname||"/",P=b;if(d!=="/"){let S=d.replace(/^\//,"").split("/");P="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let j=N1(t,{pathname:P}),x=lv(j&&j.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:cr([d,l.encodeLocation?l.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?d:cr([d,l.encodeLocation?l.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),c,r,o);return e&&x?B.createElement(Gc.Provider,{value:{location:Al({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Qt.Pop}},x):x}function nv(){let t=sv(),e=X1(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return B.createElement(B.Fragment,null,B.createElement("h2",null,"Unexpected Application Error!"),B.createElement("h3",{style:{fontStyle:"italic"}},e),r?B.createElement("pre",{style:l},r):null,null)}const tv=B.createElement(nv,null);class rv extends B.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?B.createElement(Ur.Provider,{value:this.props.routeContext},B.createElement(Hb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ov(t){let{routeContext:e,match:r,children:o}=t,l=B.useContext(Vc);return l&&l.static&&l.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=r.route.id),B.createElement(Ur.Provider,{value:e},o)}function lv(t,e,r,o){var l;if(e===void 0&&(e=[]),r===void 0&&(r=null),o===void 0&&(o=null),t==null){var c;if((c=r)!=null&&c.errors)t=r.matches;else return null}let a=t,s=(l=r)==null?void 0:l.errors;if(s!=null){let h=a.findIndex(y=>y.route.id&&(s==null?void 0:s[y.route.id])!==void 0);h>=0||Qe(!1),a=a.slice(0,Math.min(a.length,h+1))}let d=!1,u=-1;if(r&&o&&o.v7_partialHydration)for(let h=0;h=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((h,y,b)=>{let P,j=!1,x=null,S=null;r&&(P=s&&y.route.id?s[y.route.id]:void 0,x=y.route.errorElement||tv,d&&(u<0&&b===0?(dv("route-fallback",!1),j=!0,S=null):u===b&&(j=!0,S=y.route.hydrateFallbackElement||null)));let O=e.concat(a.slice(0,b+1)),p=()=>{let m;return P?m=x:j?m=S:y.route.Component?m=B.createElement(y.route.Component,null):y.route.element?m=y.route.element:m=h,B.createElement(ov,{match:y,routeContext:{outlet:h,matches:O,isDataRoute:r!=null},children:m})};return r&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?B.createElement(rv,{location:r.location,revalidation:r.revalidation,component:x,error:P,children:p(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):p()},null)}var Vb=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Vb||{}),bc=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(bc||{});function iv(t){let e=B.useContext(Vc);return e||Qe(!1),e}function cv(t){let e=B.useContext(Ub);return e||Qe(!1),e}function av(t){let e=B.useContext(Ur);return e||Qe(!1),e}function Gb(t){let e=av(),r=e.matches[e.matches.length-1];return r.route.id||Qe(!1),r.route.id}function sv(){var t;let e=B.useContext(Hb),r=cv(bc.UseRouteError),o=Gb(bc.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[o]}function fv(){let{router:t}=iv(Vb.UseNavigateStable),e=Gb(bc.UseNavigateStable),r=B.useRef(!1);return qb(()=>{r.current=!0}),B.useCallback(function(l,c){c===void 0&&(c={}),r.current&&(typeof l=="number"?t.navigate(l):t.navigate(l,Al({fromRouteId:e},c)))},[t,e])}const sp={};function dv(t,e,r){!e&&!sp[t]&&(sp[t]=!0)}function Jb(t){Qe(!1)}function uv(t){let{basename:e="/",children:r=null,location:o,navigationType:l=Qt.Pop,navigator:c,static:a=!1,future:s}=t;Vl()&&Qe(!1);let d=e.replace(/^\/*/,"/"),u=B.useMemo(()=>({basename:d,navigator:c,static:a,future:Al({v7_relativeSplatPath:!1},s)}),[d,s,c,a]);typeof o=="string"&&(o=Ao(o));let{pathname:h="/",search:y="",hash:b="",state:P=null,key:j="default"}=o,x=B.useMemo(()=>{let S=Io(h,d);return S==null?null:{location:{pathname:S,search:y,hash:b,state:P,key:j},navigationType:l}},[d,h,y,b,P,j,l]);return x==null?null:B.createElement(Or.Provider,{value:u},B.createElement(Gc.Provider,{children:r,value:x}))}function pv(t){let{children:e,location:r}=t;return Z1(Zs(e),r)}new Promise(()=>{});function Zs(t,e){e===void 0&&(e=[]);let r=[];return B.Children.forEach(t,(o,l)=>{if(!B.isValidElement(o))return;let c=[...e,l];if(o.type===B.Fragment){r.push.apply(r,Zs(o.props.children,c));return}o.type!==Jb&&Qe(!1),!o.props.index||!o.props.children||Qe(!1);let a={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(a.children=Zs(o.props.children,c)),r.push(a)}),r}/** + * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. * diff --git a/index.html b/index.html index d3ded86..78befd6 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ } }(window.location)) - +