PageSourceSearch

https://octocounts.com/assets/vendor-i18n-k0TTF2pe.js

js octocounts.com collected 2026-10-02 00:32:16 UTC 67,147 bytes, 9 lines download raw bytes

vendor: 7,197 bytes, line 1
1import{g as rt,r as N,a as at}from"./vendor-react-DbFVZiS9.js";const b=i=>typeof i=="string",ee=()=>{let i,e;const t=new Promise((s,n)=>{i=s,e=n});return t.resolve=i,t.reject=e,t},Ee=i=>i==null?"":String(i),ot=(i,e,t)=>{i.forEach(s=>{e[s]&&(t[s]=e[s])})},lt=/###/g,$e=i=>i&&i.includes("###")?i.replace(lt,"."):i,ke=i=>!i||b(i),se=(i,e,t)=>{const s=b(e)?e.split("."):e;let n=0;for(;n<s.length-1;){if(ke(i))return{};const r=$e(s[n]);!i[r]&&t&&(i[r]=new t),Object.prototype.hasOwnProperty.call(i,r)?i=i[r]:i={},++n}return ke(i)?{}:{obj:i,k:$e(s[n])}},Ne=(i,e,t)=>{const{obj:s,k:n}=se(i,e,Object);if(s!==void 0||e.length===1){s[n]=t;return}let r=e[e.length-1],a=e.slice(0,e.length-1),o=se(i,a,Object);for(;o.obj===void 0&&a.length;)r=`${a[a.length-1]}.${r}`,a=a.slice(0,a.length-1),o=se(i,a,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${r}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${r}`]=t},ut=(i,e,t,s)=>{const{obj:n,k:r}=se(i,e,Object);n[r]=n[r]||[],n[r].push(t)},ue=(i,e)=>{const{obj:t,k:s}=se(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,s))return t[s]},ct=(i,e,t)=>{const s=ue(i,t);return s!==void 0?s:ue(e,t)},qe=(i,e,t)=>{for(const s in e)s!=="__proto__"&&s!=="constructor"&&(s in i?b(i[s])||i[s]instanceof String||b(e[s])||e[s]instanceof String?t&&(i[s]=e[s]):qe(i[s],e[s],t):i[s]=e[s]);return i},z=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},dt=i=>b(i)?i.replace(/[&<>"'\/]/g,e=>ft[e]):i;class ht{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}const pt=[" ",",","?","!",";"],gt=new ht(20),mt=(i,e,t)=>{e=e||"",t=t||"";const s=pt.filter(a=>!e.includes(a)&&!t.includes(a));if(s.length===0)return!0;const n=gt.getRegExp(`(${s.map(a=>a==="?"?"\\?":a).join("|")})`);let r=!n.test(i);if(!r){const a=i.indexOf(t);a>0&&!n.test(i.substring(0,a))&&(r=!0)}return r},be=(i,e,t=".")=>{if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const s=e.split(t);let n=i;for(let r=0;r<s.length;){if(!n||typeof n!="object")return;let a,o="";for(let l=r;l<s.length;++l)if(l!==r&&(o+=t),o+=s[l],a=n[o],a!==void 0){if(["string","number","boolean"].includes(typeof a)&&l<s.length-1)continue;r+=l-r+1;break}n=a}return n},ie=i=>i==null?void 0:i.replace(/_/g,"-"),yt={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,s;(s=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||s.call(t,console,e)}};class ce{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||yt,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,n){return n&&!this.debug?null:(e=e.map(r=>b(r)?r.replace(/[\r\n\x00-\x1F\x7F]/g," "):r),b(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new ce(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ce(this.logger,e)}}var M=new ce;class de{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const n=this.observers[s].get(t)||0;this.observers[s].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){const s=(...n)=>{t(...n),this.off(e,s)};return this.on(e,s),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([n,r])=>{for(let a=0;a<r;a++)n(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let a=0;a<r;a++)n(e,...t)})}}class Re extends de{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s,n={}){var u,f;const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.includes(".")?o=e.split("."):(o=[e,t],s&&(Array.isArray(s)?o.push(...s):b(s)&&r?o.push(...s.split(r)):o.push(s)));const l=ue(this.data,o);return!l&&!t&&!s&&e.includes(".")&&(e=o[0],t=o[1],s=o.slice(2).join(".")),l||!a||!b(s)?l:be((f=(u=this.data)==null?void 0:u[e])==null?void 0:f[t],s,r)}addResource(e,t,s,n,r={silent:!1}){const a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[e,t];s&&(o=o.concat(a?s.split(a):s)),e.includes(".")&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),Ne(this.data,o,n),r.silent||this.emit("added",e,t,s,n)}addResources(e,t,s,n={silent:!1}){for(const r in s)(b(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});n.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,n,r,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(".")&&(o=e.split("."),n=s,s=t,t=o[1]),this.addNamespaces(t);let l=ue(this.data,o)||{};a.skipCopy||(s=JSON.parse(JSON.stringify(s))),n?qe(l,s,r):l={...l,...s},Ne(this.data,o,l),a.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var Ye={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,s,n){return i.forEach(r=>{var a;e=((a=this.processors[r])==null?void 0:a.process(e,t,s,n))??e}),e}};const Ze=Symbol("i18next/PATH_KEY");function St(){const i=[],e=Object.create(null);let t;return e.get=(s,n)=>{var r;return(r=t==null?void 0:t.revoke)==null||r.call(t),n===Ze?i:(i.push(n),t=Proxy.revocable(s,e),t.proxy)},Proxy.revocable(Object.create(null),e).proxy}function Z(i,e){const{[Ze]:t}=i(St()),s=(e==null?void 0:e.keySeparator)??".",n=(e==null?void 0:e.nsSeparator)??":",r=(e==null?void 0:e.enableSelector)==="strict";if(t.length>1&&n){const a=e==null?void 0:e.ns,o=r?Array.isArray(a)?a:a?[a]:null:Array.isArray(a)?a:null;if(o&&(r?o:o.length>1?o.slice(1):[]).includes(t[0]))return`${t[0]}${n}${t.slice(1).join(s)}`}return t.join(s)}const pe=i=>!b(i)&&typeof i!="boolean"&&typeof i!="number";class fe extends de{constructor(e,t={}){super(),ot(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=M.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const s={...t};if(e==null)return!1;const n=this.resolve(e,s);if((n==null?void 0:n.res)===void 0)return!1;const r=pe(n.res);return!(s.returnObjects===!1&&r)}extractFromKey(e,t){let s=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let r=t.ns||this.options.defaultNS||[];const a=s&&e.includes(s),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!mt(e,s,n);if(a&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:b(r)?[r]:r};const u=e.split(s);(s!==n||s===n&&this.options.ns.includes(u[0]))&&(r=u.shift()),e=u.join(n)}return{key:e,namespaces:b(r)?[r]:r}}translate(e,t,s){let n=typeof t=="object"?{...t}:t;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";typeof e=="function"&&(e=Z(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(v=>typeof v=="function"?Z(v,{...this.options,...n}):String(v));const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(e[e.length-1],n),u=l[l.length-1];let f=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;f===void 0&&(f=":");const c=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode")return p?r?{res:`${u}${f}${o}`,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${f}${o}`:r?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:o;const h=this.resolve(e,n);let d=h==null?void 0:h.res;const g=(h==null?void 0:h.usedKey)||o,S=(h==null?void 0:h.exactUsedKey)||o,T=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,w=n.count!==void 0&&!b(n.count),C=fe.hasDefaultValue(n),j=w?this.pluralResolver.getSuffix(c,n.count,n):"",E=n.ordinal&&w?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",P=w&&!n.ordinal&&n.count===0,m=P&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${j}`]||n[`defaultValue${E}`]||n.defaultValue;let L=d;k&&!d&&C&&(L=m);const I=pe(L),R=Object.prototype.toString.apply(L);
vendor: 35,574 bytes, line 1
1if(k&&L&&I&&!T.includes(R)&&!(b(y)&&Array.isArray(L))){if(!n.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(g,L,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(h.res=v,h.usedParams=this.getUsedParamsDetails(n),h):v}if(a){const v=Array.isArray(L),x=v?[]:{},A=v?S:g;for(const O in L)if(Object.prototype.hasOwnProperty.call(L,O)){const F=`${A}${a}${O}`;C&&!d?x[O]=this.translate(F,{...n,defaultValue:pe(m)?m[O]:void 0,joinArrays:!1,ns:l}):x[O]=this.translate(F,{...n,joinArrays:!1,ns:l}),x[O]===F&&(x[O]=L[O])}d=x}}else if(k&&b(y)&&Array.isArray(d))d=d.join(y),d&&(d=this.extendTranslation(d,e,n,s));else{let v=!1,x=!1;!this.isValidLookup(d)&&C&&(v=!0,d=m),this.isValidLookup(d)||(x=!0,d=o);const O=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:d,F=C&&m!==d&&this.options.updateMissing;if(x||v||F){if(this.logger.log(F?"updateKey":"missingKey",c,u,w&&!F?`${o}${this.pluralResolver.getSuffix(c,n.count,n)}`:o,F?m:d),a){const $=this.resolve(o,{...n,keySeparator:!1});$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let H=[];const _=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&_&&_[0])for(let $=0;$<_.length;$++)H.push(_[$]);else this.options.saveMissingTo==="all"?H=this.languageUtils.toResolveHierarchy(n.lng||this.language):H.push(n.lng||this.language);const J=($,D,K)=>{var Y;const q=C&&K!==d?K:O;this.options.missingKeyHandler?this.options.missingKeyHandler($,u,D,q,F,n):(Y=this.backendConnector)!=null&&Y.saveMissing&&this.backendConnector.saveMissing($,u,D,q,F,n),this.emit("missingKey",$,u,D,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?H.forEach($=>{const D=this.pluralResolver.getSuffixes($,n);P&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!D.includes(`${this.options.pluralSeparator}zero`)&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(K=>{J([$],o+K,n[`defaultValue${K}`]||m)})}):J(H,o,m))}d=this.extendTranslation(d,e,n,h,s),x&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${u}${f}${o}`),(x||v)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${f}${o}`:o,v?d:void 0,n))}return r?(h.res=d,h.usedParams=this.getUsedParamsDetails(n),h):d}extendTranslation(e,t,s,n,r){var l,u;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const f=b(e)&&(((u=s==null?void 0:s.interpolation)==null?void 0:u.skipOnVariables)!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(f){const h=e.match(this.interpolator.nestingRegexp);c=h&&h.length}let p=s.replace&&!b(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),e=this.interpolator.interpolate(e,p,s.lng||this.language||n.usedLng,s),f){const h=e.match(this.interpolator.nestingRegexp),d=h&&h.length;c<d&&(s.nest=!1)}!s.lng&&n&&n.res&&(s.lng=this.language||n.usedLng),s.nest!==!1&&(e=this.interpolator.nest(e,(...h)=>(r==null?void 0:r[0])===h[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`),null):this.translate(...h,t),s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,o=b(a)?[a]:a;return e!=null&&(o!=null&&o.length)&&s.applyPostProcessor!==!1&&(e=Ye.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,t={}){let s,n,r,a,o;return b(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?Z(l,{...this.options,...t}):l)),e.forEach(l=>{if(this.isValidLookup(s))return;const u=this.extractFromKey(l,t),f=u.key;n=f;let c=u.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const p=t.count!==void 0&&!b(t.count),h=p&&!t.ordinal&&t.count===0,d=t.context!==void 0&&(b(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(S=>{var T,y;this.isValidLookup(s)||(o=S,!this.checkedLoadedFor[`${g[0]}-${S}`]&&((T=this.utils)!=null&&T.hasLoadedNamespace)&&!((y=this.utils)!=null&&y.hasLoadedNamespace(o))&&(this.checkedLoadedFor[`${g[0]}-${S}`]=!0,this.logger.warn(`key "${n}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(k=>{var j;if(this.isValidLookup(s))return;a=k;const w=[f];if((j=this.i18nFormat)!=null&&j.addLookupKeys)this.i18nFormat.addLookupKeys(w,f,k,S,t);else{let E;p&&(E=this.pluralResolver.getSuffix(k,t.count,t));const P=`${this.options.pluralSeparator}zero`,m=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&E.startsWith(m)&&w.push(f+E.replace(m,this.options.pluralSeparator)),w.push(f+E),h&&w.push(f+P)),d){const L=`${f}${this.options.contextSeparator||"_"}${t.context}`;w.push(L),p&&(t.ordinal&&E.startsWith(m)&&w.push(L+E.replace(m,this.options.pluralSeparator)),w.push(L+E),h&&w.push(L+P))}}let C;for(;C=w.pop();)this.isValidLookup(s)||(r=C,s=this.getResource(k,S,C,t))}))})}),{res:s,usedKey:n,exactUsedKey:r,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,s,n={}){var r;return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(e,t,s,n):this.resourceStore.getResource(e,t,s,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=e.replace&&!b(e.replace);let n=s?e.replace:e;if(s&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!s){n={...n};for(const r of t)delete n[r]}return n}static hasDefaultValue(e){const t="defaultValue";for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&s.startsWith(t)&&e[s]!==void 0)return!0;return!1}}class Pe{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M.create("languageUtils")}getScriptPartFromCode(e){if(e=ie(e),!e||!e.includes("-"))return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ie(e),!e||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(b(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(s=>{if(t)return;const n=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(s=>{if(t)return;const n=this.getScriptPartFromCode(s);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(s);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(a=>a===r?!0:!a.includes("-")&&!r.includes("-")?!1:!!(a.includes("-")&&!r.includes("-")&&a.slice(0,a.indexOf("-"))===r||a.startsWith(r)&&r.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),b(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){const s=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),n=[],r=a=>{a&&(this.isSupportedCode(a)?n.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return b(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):b(e)&&r(this.formatLanguageCode(e)),s.forEach(a=>{n.includes(a)||r(this.formatLanguageCode(a))}),n}}const Te={zero:0,one:1,two:2,few:3,many:4,other:5},Ae={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class xt{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=M.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const s=ie(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:s,type:n});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let a;try{a=new Intl.PluralRules(s,{type:n})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Ae;if(!e.match(/-|_/))return Ae;const l=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(l,t)}return this.pluralRulesCache[r]=a,a}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),(s==null?void 0:s.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(n=>`${t}${n}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?s.resolvedOptions().pluralCategories.sort((n,r)=>Te[n]-Te[r]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t,s={}){const n=this.getRule(e,s);return n?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}const Fe=(i,e,t,s=".",n=!0)=>{let r=ct(i,e,t);return!r&&n&&b(t)&&(r=be(i,t,s),r===void 0&&(r=be(e,t,s))),r},ge=i=>i.replace(/\$/g,"$$$$");class je{constructor(e={}){var t;this.logger=M.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(s=>s),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:s,useRawValueToEscape:n,prefix:r,prefixEscaped:a,suffix:o,suffixEscaped:l,formatSeparator:u,unescapeSuffix:f,unescapePrefix:c,nestingPrefix:p,nestingPrefixEscaped:h,nestingSuffix:d,nestingSuffixEscaped:g,nestingOptionsSeparator:S,maxReplaces:T,alwaysFormat:y}=e.interpolation;this.escape=t!==void 0?t:dt,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=r?z(r):a||"{{",this.suffix=o?z(o):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=f?"":c?z(c):"-",this.unescapeSuffix=this.unescapePrefix?"":f?z(f):"",this.nestingPrefix=p?z(p):h||z("$t("),this.nestingSuffix=d?z(d):g||z(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=T||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,s)=>(t==null?void 0:t.source)===s?(t.lastIndex=0,t):new RegExp(s,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,s,n){var h;let r,a,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=d=>{if(!d.includes(this.formatSeparator)){const y=Fe(t,l,d,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,s,{...n,...t,interpolationkey:d}):y}const g=d.split(this.formatSeparator),S=g.shift().trim(),T=g.join(this.formatSeparator).trim();return this.format(Fe(t,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),T,s,{...n,...t,interpolationkey:S})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const f=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,c=((h=n==null?void 0:n.interpolation)==null?void 0:h.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d=>ge(d)},{regex:this.regexp,safeValue:d=>this.escapeValue?ge(this.escape(d)):ge(d)}].forEach(d=>{for(o=0;r=d.regex.exec(e);){const g=r[1].trim();if(a=u(g),a===void 0)if(typeof f=="function"){const T=f(e,r,n);a=b(T)?T:""}else if(n&&Object.prototype.hasOwnProperty.call(n,g))a="";else if(c){a=r[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`),a="";else!b(a)&&!this.useRawValueToEscape&&(a=Ee(a));const S=d.safeValue(a);if(e=e.replace(r[0],S),c?(d.regex.lastIndex+=a.length,d.regex.lastIndex-=r[0].length):d.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,s={}){let n,r,a;const o=(l,u)=>{const f=this.nestingOptionsSeparator;if(!l.includes(f))return l;const c=l.split(new RegExp(`${z(f)}[ ]*{`));let p=`{${c[1]}`;l=c[0],p=this.interpolate(p,a);const h=p.match(/'/g),d=p.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!d||((d==null?void 0:d.length)??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),u&&(a={...u,...a})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${f}${p}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,l};for(;n=this.nestingRegexp.exec(e);){let l=[];a={...s},a=a.replace&&!b(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;const u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(u!==-1&&(l=n[1].slice(u).split(this.formatSeparator).map(f=>f.trim()).filter(Boolean),n[1]=n[1].slice(0,u)),r=t(o.call(this,n[1].trim(),a),a),r&&n[0]===e&&!b(r))return r;b(r)||(r=Ee(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l.length&&(r=l.reduce((f,c)=>this.format(f,c,s.lng,{...s,interpolationkey:n[1].trim()}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const bt=i=>{let e=i.toLowerCase().trim();const t={};if(i.includes("(")){const s=i.split("(");e=s[0].toLowerCase().trim();const n=s[1].slice(0,-1);e==="currency"&&!n.includes(":")?t.currency||(t.currency=n.trim()):e==="relativetime"&&!n.includes(":")?t.range||(t.range=n.trim()):n.split(";").forEach(a=>{if(a){const[o,...l]=a.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),f=o.trim();t[f]||(t[f]=u),u==="false"&&(t[f]=!1),u==="true"&&(t[f]=!0),isNaN(u)||(t[f]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},Ie=i=>{const e={};return(t,s,n)=>{let r=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(r={...r,[n.interpolationkey]:void 0});const a=s+JSON.stringify(r);let o=e[a];return o||(o=i(ie(s),n),e[a]=o),o(t)}},wt=i=>(e,t,s)=>i(ie(t),s)(e);class vt{constructor(e={}){this.logger=M.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const s=t.cacheInBuiltFormats?Ie:wt;this.formats={number:s((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return o=>a.format(o)}),currency:s((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>a.format(o)}),datetime:s((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return o=>a.format(o)}),relativetime:s((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return o=>a.format(o,r.range||"day")}),list:s((n,r)=>{const a=new Intl.ListFormat(n,{...r});return o=>a.format(o)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ie(t)}format(e,t,s,n={}){if(!t||e==null)return e;const r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&!r[0].includes(")")&&r.find(o=>o.includes(")"))){const o=r.findIndex(l=>l.includes(")"));r[0]=[r[0],...r.splice(1,o)].join(this.formatSeparator)}return r.reduce((o,l)=>{var c;const{formatName:u,formatOptions:f}=bt(l);if(this.formats[u]){let p=o;try{const h=((c=n==null?void 0:n.formatParams)==null?void 0:c[n.interpolationkey])||{},d=h.locale||h.lng||n.locale||n.lng||s;p=this.formats[u](o,d,{...f,...n,...h})}catch(h){this.logger.warn(h)}return p}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}const Lt=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class Ot extends de{constructor(e,t,s,n={}){var r,a;super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=n,this.logger=M.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(a=(r=this.backend)==null?void 0:r.init)==null||a.call(r,s,n.backend,n)}queueLoad(e,t,s,n){const r={},a={},o={},l={};return e.forEach(u=>{let f=!0;t.forEach(c=>{const p=`${u}|${c}`;!s.reload&&this.store.hasResourceBundle(u,c)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,f=!1,a[p]===void 0&&(a[p]=!0),r[p]===void 0&&(r[p]=!0),l[c]===void 0&&(l[c]=!0)))}),f||(o[u]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,t,s){const n=e.split("|"),r=n[0],a=n[1];t&&this.emit("failedLoading",r,a,t),!t&&s&&this.store.addResourceBundle(r,a,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);const o={};this.queue.forEach(l=>{ut(l.loaded,[r],a),Lt(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{o[u]||(o[u]={});const f=l.loaded[u];f.length&&f.forEach(c=>{o[u][c]===void 0&&(o[u][c]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(e,t,s,n=0,r=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:s,tried:n,wait:r,callback:a});return}this.readingCalls++;const o=(u,f)=>{if(this.readingCalls--,this.waitingReads.length>0){const c=this.waitingReads.shift();this.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}if(u&&f&&n<this.maxRetries){setTimeout(()=>{this.read(e,t,s,n+1,r*2,a)},r);return}a(u,f)},l=this.backend[s].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(f=>o(null,f)).catch(o):o(null,u)}catch(u){o(u)}return}return l(e,t,o)}prepareLoading(e,t,s={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();b(e)&&(e=this.languageUtils.toResolveHierarchy(e)),b(t)&&(t=[t]);const r=this.queueLoad(e,t,s,n);if(!r.toLoad.length)return r.pending.length||n(),null;r.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){const s=e.split("|"),n=s[0],r=s[1];this.read(n,r,"read",void 0,void 0,(a,o)=>{a&&this.logger.warn(`${t}loading namespace ${r} for language ${n} failed`,a),!a&&o&&this.logger.log(`${t}loaded namespace ${r} for language ${n}`,o),this.loaded(e,a,o)})}saveMissing(e,t,s,n,r,a={},o=()=>{}){var l,u,f,c,p;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((c=(f=this.services)==null?void 0:f.utils)!=null&&c.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if((p=this.backend)!=null&&p.create){const h={...a,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let g;d.length===5?g=d(e,t,s,n,h):g=d(e,t,s,n),g&&typeof g.then=="function"?g.then(S=>o(null,S)).catch(o):o(null,g)}catch(g){o(g)}else d(e,t,s,n,o,h)}!e||!e[0]||this.store.addResource(e[0],t,s,n)}}}const me=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),b(i[1])&&(e.defaultValue=i[1]),b(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(s=>{e[s]=t[s]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),De=i=>(b(i.ns)&&(i.ns=[i.ns]),b(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),b(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&!i.supportedLngs.includes("cimode")&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i),ae=()=>{},Ct=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class ne extends de{constructor(e={},t){if(super(),this.options=De(e),this.services={},this.logger=M,this.modules={external:[]},Ct(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(b(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const s=me();this.options={...s,...this.options,...De(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);const n=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?M.init(n(this.modules.logger),this.options):M.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=vt;const f=new Pe(this.options);this.store=new Re(this.options.resources,this.options);const c=this.services;c.logger=M,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new xt(f,{prepend:this.options.pluralSeparator}),u&&(c.formatter=n(u),c.formatter.init&&c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new je(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Ot(n(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(p,...h)=>{this.emit(p,...h)}),this.modules.languageDetector&&(c.languageDetector=n(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=n(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new fe(this.services,this.options),this.translator.on("*",(p,...h)=>{this.emit(p,...h)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,t||(t=ae),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...f)=>this.store[u](...f)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...f)=>(this.store[u](...f),this)});const o=ee(),l=()=>{const u=(f,c)=>{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),o.resolve(c),t(f,c)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(e,t=ae){var r,a;let s=t;const n=b(e)?e:this.language;if(typeof e=="function"&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const o=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(c=>{c!=="cimode"&&(o.includes(c)||o.push(c))})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),(a=(r=this.options.preload)==null?void 0:r.forEach)==null||a.call(r,u=>l(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(u)})}else s(null)}reloadResources(e,t,s){const n=ee();return typeof e=="function"&&(s=e,e=void 0),typeof t=="function"&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=ae),this.services.backendConnector.reload(e,t,r=>{n.resolve(),s(r)}),n}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"&&Ye.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"].includes(e)){for(let t=0;t<this.languages.length;t++){const s=this.languages[t];if(!["cimode","dev"].includes(s)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const s=ee();this.emit("languageChanging",e);const n=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,l)=>{l?this.isLanguageChangingTo===e&&(n(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,s.resolve((...u)=>this.t(...u)),t&&t(o,(...u)=>this.t(...u))},a=o=>{var f,c;!e&&!o&&this.services.languageDetector&&(o=[]);const l=b(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(b(o)?[o]:o);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),(c=(f=this.services.languageDetector)==null?void 0:f.cacheUserLanguage)==null||c.call(f,u)),this.loadResources(u,p=>{r(p,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),s}getFixedT(e,t,s,n){const r=n==null?void 0:n.scopeNs,a=(o,l,...u)=>{let f;typeof l!="object"?f=this.options.overloadTranslationOptionHandler([o,l].concat(u)):f={...l},f.lng=f.lng||a.lng,f.lngs=f.lngs||a.lngs;const c=f.ns!==void 0&&f.ns!==null;f.ns=f.ns||a.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||s||a.keyPrefix);const p={...this.options,...f};Array.isArray(r)&&!c&&(p.ns=r),typeof f.keyPrefix=="function"&&(f.keyPrefix=Z(f.keyPrefix,p));const h=this.options.keySeparator||".";let d;return f.keyPrefix&&Array.isArray(o)?d=o.map(g=>(typeof g=="function"&&(g=Z(g,p)),`${f.keyPrefix}${h}${g}`)):(typeof o=="function"&&(o=Z(o,p)),d=f.keyPrefix?`${f.keyPrefix}${h}${o}`:o),this.t(d,f)};return b(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=s,a}t(...e){var t;return(t=this.translator)==null?void 0:t.translate(...e)}exists(...e){var t;return(t=this.translator)==null?void 0:t.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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 s=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const a=(o,l)=>{const u=this.services.backendConnector.state[`${o}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const o=t.precheck(this,a);if(o!==void 0)return o}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(s,e)&&(!n||a(r,e)))}loadNamespaces(e,t){const s=ee();return this.options.ns?(b(e)&&(e=[e]),e.forEach(n=>{this.options.ns.includes(n)||this.options.ns.push(n)}),this.loadResources(n=>{s.resolve(),t&&t(n)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){const s=ee();b(e)&&(e=[e]);const n=this.options.preload||[],r=e.filter(a=>!n.includes(a)&&this.services.languageUtils.isSupportedCode(a));return r.length?(this.options.preload=n.concat(r),this.loadResources(a=>{s.resolve(),t&&t(a)}),s):(t&&t(),Promise.resolve())}dir(e){var n,r;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const a=new Intl.Locale(e);if(a&&a.getTextInfo){const o=a.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=((r=this.services)==null?void 0:r.languageUtils)||new Pe(me());return e.toLowerCase().indexOf("-latn")>1?"ltr":t.includes(s.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const s=new ne(e,t);return s.createInstance=ne.createInstance,s}cloneInstance(e={},t=ae){const s=e.forkResourceStore;s&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},r=new ne(n);if((e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s){const o=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((f,c)=>(f[c]={...l[u][c]},f),l[u]),l),{});r.store=new Re(o,n),r.services.resourceStore=r.store}if(e.interpolation){const l={...me().interpolation,...this.options.interpolation,...e.interpolation},u={...n,interpolation:l};r.services.interpolator=new je(u)}return r.translator=new fe(r.services,n),r.translator.on("*",(o,...l)=>{r.emit(o,...l)}),r.init(n,t),r.translator.options=n,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const U=ne.createInstance();U.createInstance;U.dir;U.init;U.loadResources;U.reloadResources;U.use;U.changeLanguage;U.getFixedT;U.t;U.exists;U.setDefaultNamespace;U.hasLoadedNamespace;U.loadNamespaces;U.loadLanguages;var ye,Ve;function Et(){return Ve||(Ve=1,ye={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ye}var $t=Et();const kt=rt($t);var Nt=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Ue(i){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=i.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(kt[t[1]]||i.charAt(i.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var s=i.indexOf("-->");return{type:"comment",comment:s!==-1?i.slice(4,s):""}}for(var n=new RegExp(Nt),r=null;(r=n.exec(i))!==null;)if(r[0].trim())if(r[1]){var a=r[1].trim(),o=[a,""];a.indexOf("=")>-1&&(o=a.split("=")),e.attrs[o[0]]=o[1],n.lastIndex--}else r[2]&&(e.attrs[r[2]]=r[3].trim().substring(1,r[3].length-1));return e}var Rt=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Pt=/^\s*$/,Tt=Object.create(null);function Ge(i,e){switch(e.type){case"text":return i+e.content;case"tag":return i+="<"+e.name+(e.attrs?(function(t){var s=[];for(var n in t)s.push(n+'="'+t[n]+'"');return s.length?" "+s.join(" "):""})(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?i:i+e.children.reduce(Ge,"")+"</"+e.name+">";
vendor: 4,237 bytes, line 1
1case"comment":return i+"<!--"+e.comment+"-->"}}var At={parse:function(i,e){e||(e={}),e.components||(e.components=Tt);var t,s=[],n=[],r=-1,a=!1;if(i.indexOf("<")!==0){var o=i.indexOf("<");s.push({type:"text",content:o===-1?i:i.substring(0,o)})}return i.replace(Rt,function(l,u){if(a){if(l!=="</"+t.name+">")return;a=!1}var f,c=l.charAt(1)!=="/",p=l.startsWith("<!--"),h=u+l.length,d=i.charAt(h);if(p){var g=Ue(l);return r<0?(s.push(g),s):((f=n[r]).children.push(g),s)}if(c&&(r++,(t=Ue(l)).type==="tag"&&e.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!d||d==="<"||t.children.push({type:"text",content:i.slice(h,i.indexOf("<",h))}),r===0&&s.push(t),(f=n[r-1])&&f.children.push(t),n[r]=t),(!c||t.voidElement)&&(r>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(r--,t=r===-1?s:n[r]),!a&&d!=="<"&&d)){f=r===-1?s:n[r].children;var S=i.indexOf("<",h),T=i.slice(h,S===-1?void 0:S);Pt.test(T)&&(T=" "),(S>-1&&r+f.length>=0||T!==" ")&&f.push({type:"text",content:T})}}),s},stringify:function(i){return i.reduce(function(e,t){return e+Ge("",t)},"")}};const oe=(i,e,t,s)=>{var r,a,o,l;const n=[t,{code:e,...s||{}}];if((a=(r=i==null?void 0:i.services)==null?void 0:r.logger)!=null&&a.forward)return i.services.logger.forward(n,"warn","react-i18next::",!0);V(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),(l=(o=i==null?void 0:i.services)==null?void 0:o.logger)!=null&&l.warn?i.services.logger.warn(...n):console!=null&&console.warn&&console.warn(...n)},He={},re=(i,e,t,s)=>{V(t)&&He[t]||(V(t)&&(He[t]=new Date),oe(i,e,t,s))},Qe=(i,e)=>()=>{if(i.isInitialized)e();else{const t=()=>{setTimeout(()=>{i.off("initialized",t)},0),e()};i.on("initialized",t)}},we=(i,e,t)=>{i.loadNamespaces(e,Qe(i,t))},Ke=(i,e,t,s)=>{if(V(t)&&(t=[t]),i.options.preload&&i.options.preload.indexOf(e)>-1)return we(i,t,s);t.forEach(n=>{i.options.ns.indexOf(n)<0&&i.options.ns.push(n)}),i.loadLanguages(e,Qe(i,s))},Ft=(i,e,t={})=>!e.languages||!e.languages.length?(re(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(i,{lng:t.lng,precheck:(s,n)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!n(s.isLanguageChangingTo,i))return!1}}),V=i=>typeof i=="string",B=i=>typeof i=="object"&&i!==null,jt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,It={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Dt=i=>It[i],Xe=i=>i.replace(jt,Dt);let ve={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Xe,transDefaultProps:void 0};const Vt=(i={})=>{ve={...ve,...i}},Oe=()=>ve;let et;const Ut=i=>{et=i},Ce=()=>et,le=(i,e)=>{var s;if(!i)return!1;const t=((s=i.props)==null?void 0:s.children)??i.children;return e?t.length>0:!!t},te=i=>{var t,s;if(!i)return[];const e=((t=i.props)==null?void 0:t.children)??i.children;return(s=i.props)!=null&&s.i18nIsDynamicList?W(e):e},Ht=i=>Array.isArray(i)&&i.every(N.isValidElement),W=i=>Array.isArray(i)?i:[i],Kt=(i,e)=>{const t={...e};return t.props={...e.props,...i.props},t},Mt=i=>{const e={};if(!i)return e;const t=s=>{W(s).forEach(r=>{V(r)||(le(r)?t(te(r)):B(r)&&!N.isValidElement(r)&&Object.assign(e,r))})};return t(i),e},Le=(i,e,t,s)=>{if(!i)return"";let n="";const r=W(i),a=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return r.forEach((o,l)=>{if(V(o)){n+=`${o}`;return}if(N.isValidElement(o)){const{props:u,type:f}=o,c=Object.keys(u).length,p=a.indexOf(f)>-1,h=u.children;if(!h&&p&&!c){n+=`<${f}/>`;return}if(!h&&(!p||c)||u.i18nIsDynamicList){n+=`<${l}></${l}>`;return}if(p&&c<=1){const g=V(h)?h:Le(h,e,t,s);n+=`<${f}>${g}</${f}>`;return}const d=Le(h,e,t,s);n+=`<${l}>${d}</${l}>`;return}if(o===null){oe(t,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:s});return}if(B(o)){const{format:u,...f}=o,c=Object.keys(f);if(c.length===1){const p=u?`${c[0]}, ${u}
1`:c[0];n+=`{{${p}}}`;return}oe(t,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:s,child:o});return}oe(t,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:s,child:o})}),n},_t=(i,e=[],t={})=>{if(!i)return i;const s=Object.keys(t),n=[...e,...s];let r="",a=0;for(;a<i.length;)if(i[a]==="<"){let o=!1;const l=i.slice(a).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(l){const u=l[1];(/^\d+$/.test(u)||n.includes(u))&&(o=!0,r+=l[0],a+=l[0].length)}if(!o){const u=i.slice(a).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(u){const f=u[1];(/^\d+$/.test(f)||n.includes(f))&&(o=!0,r+=u[0],a+=u[0].length)}}o||(r+="&lt;",a+=1)}else r+=i[a],a+=1;return r},zt=(i,e,t,s,n,r,a)=>{if(t==="")return[];const o=n.transKeepBasicHtmlNodesFor||[],l=t&&new RegExp(o.map(y=>`<${y}`).join("|")).test(t);if(!i&&!e&&!l&&!a)return[t];const u=e??{},f=y=>{W(y).forEach(w=>{V(w)||(le(w)?f(te(w)):B(w)&&!N.isValidElement(w)&&Object.assign(u,w))})};f(i);const c=_t(t,o,u),p=At.parse(`<0>${c}</0>`),h={...u,...r},d=(y,k,w)=>{var E;const C=te(y),j=S(C,k.children,w);return Ht(C)&&j.length===0||(E=y.props)!=null&&E.i18nIsDynamicList?C:j},g=(y,k,w,C,j)=>{y.dummy?(y.children=k,w.push(N.cloneElement(y,{key:C},j?void 0:k))):w.push(...N.Children.map([y],E=>{var m;if(E.type===N.Fragment||((m=E.props)==null?void 0:m.i18nIsDynamicList)!==void 0){const L={key:C};return E&&E.props&&Object.keys(E.props).forEach(I=>{I==="children"||I==="i18nIsDynamicList"||(L[I]=E.props[I])}),N.createElement(E.type,L,j?null:k)}const P={key:C};return E&&E.props&&Object.keys(E.props).forEach(L=>{L==="ref"||L==="children"||(P[L]=E.props[L])}),N.cloneElement(E,P,j?null:k)}))},S=(y,k,w)=>{const C=W(y),j=W(k),E={};return j.reduce((P,m,L)=>{var R,v;const I=((v=(R=m.children)==null?void 0:R[0])==null?void 0:v.content)&&s.services.interpolator.interpolate(m.children[0].content,h,s.language);if(m.type==="tag"){let x=C[parseInt(m.name,10)];!x&&e&&(x=e[m.name]),w.length===1&&!x&&(x=w[0][m.name]),x||(x={});const A={...m.attrs};a&&Object.keys(A).forEach($=>{const D=A[$];V(D)&&(A[$]=Xe(D))});const O=Object.keys(A).length!==0?Kt({props:A},x):x,F=N.isValidElement(O),H=F&&le(m,!0)&&!m.voidElement,_=l&&B(O)&&O.dummy&&!F,J=B(e)&&Object.hasOwnProperty.call(e,m.name);if(V(O)){const $=s.services.interpolator.interpolate(O,h,s.language);P.push($)}else if(le(O)||H){const $=d(O,m,w);g(O,$,P,L)}else if(_){const $=S(C,m.children,w);g(O,$,P,L)}else if(Number.isNaN(parseFloat(m.name)))if(J){const $=d(O,m,w);g(O,$,P,L,m.voidElement)}else if(n.transSupportBasicHtmlNodes&&o.indexOf(m.name)>-1)if(m.voidElement)P.push(N.createElement(m.name,{key:`${m.name}-${L}`}));else{const $=E[m.name]||0;E[m.name]=$+1;let D,K=0;for(let X=0;X<C.length;X+=1){const he=C[X];if(N.isValidElement(he)&&he.type===m.name){if(K===$){D=he;break}K+=1}}const q=D?W(te(D)):C,Y=S(q,m.children,w);P.push(N.createElement(m.name,{key:`${m.name}-${L}`},Y))}else if(m.voidElement)P.push(`<${m.name} />`);else{const $=S(C,m.children,w);P.push(`<${m.name}>${$}</${m.name}>`)}else if(B(O)&&!F){const $=m.children[0]?I:null;$&&P.push($)}else g(O,I,P,L,m.children.length!==1||!I)}else if(m.type==="text"){const x=n.transWrapTextNodes,A=typeof n.unescape=="function"?n.unescape:Oe().unescape,O=a?A(s.services.interpolator.interpolate(m.content,h,s.language)):s.services.interpolator.interpolate(m.content,h,s.language);x?P.push(N.createElement(x,{key:`${m.name}-${L}`},O)):P.push(O)}return P},[])},T=S([{dummy:!0,children:i||[]}],p,W(i||[]));return te(T[0])},tt=(i,e,t)=>{const s=i.key||e,n=N.cloneElement(i,{key:s});if(!n.props||!n.props.children||t.indexOf(`${e}/>`)<0&&t.indexOf(`${e} />`)<0)return n;function r(){return N.createElement(N.Fragment,null,n)}return N.createElement(r,{key:s})},Bt=(i,e)=>i.map((t,s)=>tt(t,s,e)),Wt=(i,e)=>{const t={};
1return Object.keys(i).forEach(s=>{Object.assign(t,{[s]:tt(i[s],s,e)})}),t},Jt=(i,e,t,s)=>i?Array.isArray(i)?Bt(i,e):B(i)?Wt(i,e):(re(t,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:s}),null):null,qt=i=>!B(i)||Array.isArray(i)?!1:Object.keys(i).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0);function Yt({children:i,count:e,parent:t,i18nKey:s,context:n,tOptions:r={},values:a,defaults:o,components:l,ns:u,i18n:f,t:c,shouldUnescape:p,...h}){var J,$,D,K,q,Y;const d=f||Ce();if(!d)return re(d,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:s}),i;const g=c||d.t.bind(d)||(X=>X),S={...Oe(),...(J=d.options)==null?void 0:J.react};let T=u||g.ns||(($=d.options)==null?void 0:$.defaultNS);T=V(T)?[T]:T||["translation"];const{transDefaultProps:y}=S,k=y!=null&&y.tOptions?{...y.tOptions,...r}:r,w=p??(y==null?void 0:y.shouldUnescape),C=y!=null&&y.values?{...y.values,...a}:a,j=y!=null&&y.components?{...y.components,...l}:l,E=Le(i,S,d,s),P=o||(k==null?void 0:k.defaultValue)||E||S.transEmptyNodeValue||(typeof s=="function"?Z(s):s),{hashTransKey:m}=S,L=s||(m?m(E||P):E||P);(K=(D=d.options)==null?void 0:D.interpolation)!=null&&K.defaultVariables?a=C&&Object.keys(C).length>0?{...C,...d.options.interpolation.defaultVariables}:{...d.options.interpolation.defaultVariables}:a=C;const I=Mt(i);I&&typeof I.count=="number"&&e===void 0&&(e=I.count);const R=a||e!==void 0&&!((Y=(q=d.options)==null?void 0:q.interpolation)!=null&&Y.alwaysFormat)||!i?k.interpolation:{interpolation:{...k.interpolation,prefix:"#$?",suffix:"?$#"}},v={...k,context:n||k.context,count:e,...a,...R,defaultValue:P,ns:T};let x=L?g(L,v):P;x===L&&P&&(x=P);const A=Jt(j,x,d,s);let O=A||i,F=null;qt(A)&&(F=A,O=i);const H=zt(O,F,x,d,S,v,w),_=t??S.defaultTransParent;return _?N.createElement(_,h,H):H}const bs={type:"3rdParty",init(i){Vt(i.options.react),Ut(i)}},st=N.createContext();class Zt{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function ws({children:i,count:e,parent:t,i18nKey:s,context:n,tOptions:r={},values:a,defaults:o,components:l,ns:u,i18n:f,t:c,shouldUnescape:p,...h}){var y;const{i18n:d,defaultNS:g}=N.useContext(st)||{},S=f||d||Ce(),T=c||(S==null?void 0:S.t.bind(S));return Yt({children:i,count:e,parent:t,i18nKey:s,context:n,tOptions:r,values:a,defaults:o,components:l,ns:u||(T==null?void 0:T.ns)||g||((y=S==null?void 0:S.options)==null?void 0:y.defaultNS),i18n:S,t:c,shouldUnescape:p,...h})}var Se={exports:{}},xe={};/**
2 * @license React
3 * use-sync-external-store-shim.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Me;function Gt(){if(Me)return xe;Me=1;var i=at();function e(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var t=typeof Object.is=="function"?Object.is:e,s=i.useState,n=i.useEffect,r=i.useLayoutEffect,a=i.useDebugValue;function o(c,p){var h=p(),d=s({inst:{value:h,getSnapshot:p}}),g=d[0].inst,S=d[1];return r(function(){g.value=h,g.getSnapshot=p,l(g)&&S({inst:g})},[c,h,p]),n(function(){return l(g)&&S({inst:g}),c(function(){l(g)&&S({inst:g})})},[c]),a(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!t(c,h)}catch{return!0}}function u(c,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:o;return xe.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:f,xe}var _e;function Qt(){return _e||(_e=1,Se.exports=Gt()),Se.exports}var Xt=Qt();const es=(i,e)=>{if(V(e))return e;if(B(e)&&V(e.defaultValue))return e.defaultValue;if(typeof i=="function")return"";if(Array.isArray(i)){const t=i[i.length-1];return typeof t=="function"?"":t}return i},ts={t:es,ready:!1},ss=()=>()=>{},vs=(i,e={})=>{var m,L,I;const{i18n:t}=e,{i18n:s,defaultNS:n}=N.useContext(st)||{},r=t||s||Ce();r&&!r.reportNamespaces&&(r.reportNamespaces=new Zt),r||re(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const a=N.useMemo(()=>{var R;return{...Oe(),...(R=r==null?void 0:r.options)==null?void 0:R.react,...e}},[r,e]),{useSuspense:o,keyPrefix:l}=a,u=n||((m=r==null?void 0:r.options)==null?void 0:m.defaultNS),f=V(u)?[u]:u||["translation"],c=N.useMemo(()=>f,f);(I=(L=r==null?void 0:r.reportNamespaces)==null?void 0:L.addUsedNamespaces)==null||I.call(L,c);const p=N.useRef(0),h=N.useCallback(R=>
9{if(!r)return ss;const{bindI18n:v,bindI18nStore:x}=a,A=()=>{p.current+=1,R()};return v&&r.on(v,A),x&&r.store.on(x,A),()=>{v&&v.split(" ").forEach(O=>r.off(O,A)),x&&x.split(" ").forEach(O=>r.store.off(O,A))}},[r,a]),d=N.useRef(),g=N.useCallback(()=>{if(!r)return ts;const R=!!(r.isInitialized||r.initializedStoreOnce)&&c.every(H=>Ft(H,r,a)),v=e.lng||r.language,x=p.current,A=d.current;if(A&&A.ready===R&&A.lng===v&&A.keyPrefix===l&&A.revision===x)return A;const F={t:r.getFixedT(v,a.nsMode==="fallback"?c:c[0],l,{scopeNs:c}),ready:R,lng:v,keyPrefix:l,revision:x};return d.current=F,F},[r,c,l,a,e.lng]),[S,T]=N.useState(0),{t:y,ready:k}=Xt.useSyncExternalStore(h,g,g);N.useEffect(()=>{if(r&&!k&&!o){const R=()=>T(v=>v+1);e.lng?Ke(r,e.lng,c,R):we(r,c,R)}},[r,e.lng,c,k,o,S]);const w=r||{},C=N.useRef(null),j=N.useRef(),E=R=>{const v=Object.getOwnPropertyDescriptors(R);v.__original&&delete v.__original;const x=Object.create(Object.getPrototypeOf(R),v);if(!Object.prototype.hasOwnProperty.call(x,"__original"))try{Object.defineProperty(x,"__original",{value:R,writable:!1,enumerable:!1,configurable:!1})}catch{}return x},P=N.useMemo(()=>{const R=w,v=R==null?void 0:R.language;let x=R;R&&(C.current&&C.current.__original===R?j.current!==v?(x=E(R),C.current=x,j.current=v):x=C.current:(x=E(R),C.current=x,j.current=v));const A=!k&&!o?(...F)=>(re(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),y(...F)):y,O=[A,x,k];return O.t=A,O.i18n=x,O.ready=k,O},[y,w,k,w.resolvedLanguage,w.language,w.languages]);if(r&&o&&!k)throw new Promise(R=>{const v=()=>R();e.lng?Ke(r,e.lng,c,v):we(r,c,v)});return P},{slice:ns,forEach:is}=[];function rs(i){return is.call(ns.call(arguments,1),e=>{if(e)for(const t in e)i[t]===void 0&&(i[t]=e[t])}),i}
vendor: 6,946 bytes, line 9
9function as(i){return typeof i!="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(t=>t.test(i))}const ze=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,os=function(i,e){const s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},n=encodeURIComponent(e);let r=`${i}=${n}`;if(s.maxAge>0){const a=s.maxAge-0;if(Number.isNaN(a))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(a)}`}if(s.domain){if(!ze.test(s.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${s.domain}`}if(s.path){if(!ze.test(s.path))throw new TypeError("option path is invalid");r+=`; Path=${s.path}`}if(s.expires){if(typeof s.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+=`; Expires=${s.expires.toUTCString()}`}if(s.httpOnly&&(r+="; HttpOnly"),s.secure&&(r+="; Secure"),s.sameSite)switch(typeof s.sameSite=="string"?s.sameSite.toLowerCase():s.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s.partitioned&&(r+="; Partitioned"),r},Be={create(i,e,t,s){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+t*60*1e3)),s&&(n.domain=s),document.cookie=os(i,e,n)},read(i){const e=`${i}=`,t=document.cookie.split(";");for(let s=0;s<t.length;s++){let n=t[s];for(;n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return null},remove(i,e){this.create(i,"",-1,e)}};var ls={name:"cookie",lookup(i){let{lookupCookie:e}=i;if(e&&typeof document<"u")return Be.read(e)||void 0},cacheUserLanguage(i,e){let{lookupCookie:t,cookieMinutes:s,cookieDomain:n,cookieOptions:r}=e;t&&typeof document<"u"&&Be.create(t,i,s,n,r)}},us={name:"querystring",lookup(i){var s;let{lookupQuerystring:e}=i,t;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&((s=window.location.hash)==null?void 0:s.indexOf("?"))>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const a=n.substring(1).split("&");for(let o=0;o<a.length;o++){const l=a[o].indexOf("=");l>0&&a[o].substring(0,l)===e&&(t=a[o].substring(l+1))}}return t}},cs={name:"hash",lookup(i){var n;let{lookupHash:e,lookupFromHashIndex:t}=i,s;if(typeof window<"u"){const{hash:r}=window.location;if(r&&r.length>2){const a=r.substring(1);if(e){const o=a.split("&");for(let l=0;l<o.length;l++){const u=o[l].indexOf("=");u>0&&o[l].substring(0,u)===e&&(s=o[l].substring(u+1))}}if(s)return s;if(!s&&t>-1){const o=r.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?(n=o[typeof t=="number"?t:0])==null?void 0:n.replace("/",""):void 0}}}return s}};let G=null;const We=()=>{if(G!==null)return G;try{if(G=typeof window<"u"&&window.localStorage!==null,!G)return!1;const i="i18next.translate.boo";window.localStorage.setItem(i,"foo"),window.localStorage.removeItem(i)}catch{G=!1}return G};var fs={name:"localStorage",lookup(i){let{lookupLocalStorage:e}=i;if(e&&We())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(i,e){let{lookupLocalStorage:t}=e;t&&We()&&window.localStorage.setItem(t,i)}};let Q=null;const Je=()=>{if(Q!==null)return Q;try{if(Q=typeof window<"u"&&window.sessionStorage!==null,!Q)return!1;const i="i18next.translate.boo";window.sessionStorage.setItem(i,"foo"),window.sessionStorage.removeItem(i)}catch{Q=!1}return Q};var ds={name:"sessionStorage",lookup(i){let{lookupSessionStorage:e}=i;if(e&&Je())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(i,e){let{lookupSessionStorage:t}=e;t&&Je()&&window.sessionStorage.setItem(t,i)}},hs={name:"navigator",lookup(i){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:s,language:n}=navigator;if(t)for(let r=0;r<t.length;r++)e.push(t[r]);s&&e.push(s),n&&e.push(n)}return e.length>0?e:void 0}},ps={name:"htmlTag",lookup(i){let{htmlTag:e}=i,t;const s=e||(typeof document<"u"?document.documentElement:null);return s&&typeof s.getAttribute=="function"&&(t=s.getAttribute("lang")),t}},gs={name:"path",lookup(i){var n;let{lookupFromPathIndex:e}=i;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?(n=t[typeof e=="number"?e:0])==null?void 0:n.replace("/",""):void 0}},ms={name:"subdomain",lookup(i){var n,r;let{lookupFromSubdomainIndex:e}=i;const t=typeof e=="number"?e+1:1,s=typeof window<"u"&&((r=(n=window.location)==null?void 0:n.hostname)==null?void 0:r.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(s)return s[t]}};let nt=!1;try{document.cookie,nt=!0}catch{}const it=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];nt||it.splice(1,1);const ys=()=>({order:it,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:i=>i});class Ss{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=rs(t,this.options||{},ys()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=n=>n.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=s,this.addDetector(ls),this.addDetector(us),this.addDetector(fs),this.addDetector(ds),this.addDetector(hs),this.addDetector(ps),this.addDetector(gs),this.addDetector(ms),this.addDetector(cs)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(s=>{if(this.detectors[s]){let n=this.detectors[s].lookup(this.options);n&&typeof n=="string"&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(s=>s!=null&&!as(s)).map(s=>this.options.convertDetectedLanguage(s)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(s=>{this.detectors[s]&&this.detectors[s].cacheUserLanguage(e,this.options)}))}}Ss.type="languageDetector";export{Ss as B,ws as T,bs as a,U as i,vs as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.