PageSourceSearch

https://faceauraai.com/assets/i18n-BJnwxXTQ.js

js faceauraai.com collected 2026-09-24 10:10:58 UTC 65,102 bytes, 1 lines download raw bytes

vendor: 5,169 bytes, line 1
1function e(e,t){for(var n=0;n<t.length;n++){const o=t[n];if("string"!=typeof o&&!Array.isArray(o))for(const t in o)if("default"!==t&&!(t in e)){const n=Object.getOwnPropertyDescriptor(o,t);n&&Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>o[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),n}var s={exports:{}},r={},i=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.iterator;var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||v}function O(){}function w(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||v}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=S.prototype;var k=w.prototype=new O;k.constructor=w,b(k,S.prototype),k.isPureReactComponent=!0;var L=Array.isArray,P=Object.prototype.hasOwnProperty,j={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,s={},r=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(r=""+t.key),t)P.call(t,o)&&!R.hasOwnProperty(o)&&(s[o]=t[o]);var l=arguments.length-2;if(1===l)s.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];s.children=u}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===s[o]&&(s[o]=l[o]);return{$$typeof:i,type:e,key:r,ref:a,props:s,_owner:j.current}}function $(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function T(e,t,n,o,s){var r=typeof e;"undefined"!==r&&"boolean"!==r||(e=null);var l=!1;if(null===e)l=!0;else switch(r){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return s=s(l=e),e=""===o?"."+N(l,0):o,L(s)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),T(s,t,n,"",function(e){return e})):null!=s&&($(s)&&(s=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,n+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(E,"$&/")+"/")+e)),t.push(s)),1;if(l=0,o=""===o?".":o+":",L(e))for(var u=0;u<e.length;u++){var c=o+N(r=e[u],u);l+=T(r,t,n,c,s)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=m&&e[m]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(r=e.next()).done;)l+=T(r=r.value,t,n,c=o+N(r,u++),s);else if("object"===r)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function _(e,t,n){if(null==e)return e;var o=[],s=0;return T(e,o,"","",function(e){return t.call(n,e,s++)}),o}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},F={transition:null},V={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:F,ReactCurrentOwner:j};function A(){throw Error("act(...) is not supported in production builds of React.")}r.Children={map:_,forEach:function(e,t,n){_(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return _(e,function(){t++}),t},toArray:function(e){return _(e,function(e){return e})||[]},only:function(e){if(!$(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=S,r.Fragment=l,r.Profiler=c,r.PureComponent=w,r.StrictMode=u,r.Suspense=f,r.__SECRET_INT
vendor: 5,265 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,r.act=A,r.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=b({},e.props),s=e.key,r=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,a=j.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)P.call(t,u)&&!R.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:i,type:e.type,key:s,ref:r,props:o,_owner:a}},r.createContext=function(e){return(e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},r.createElement=C,r.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:h,render:e}},r.isValidElement=$,r.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:I}},r.memo=function(e,t){return{$$typeof:g,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=F.transition;F.transition={};try{e()}finally{F.transition=t}},r.unstable_act=A,r.useCallback=function(e,t){return D.current.useCallback(e,t)},r.useContext=function(e){return D.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return D.current.useDeferredValue(e)},r.useEffect=function(e,t){return D.current.useEffect(e,t)},r.useId=function(){return D.current.useId()},r.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},r.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return D.current.useMemo(e,t)},r.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},r.useRef=function(e){return D.current.useRef(e)},r.useState=function(e){return D.current.useState(e)},r.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},r.useTransition=function(){return D.current.useTransition()},r.version="18.3.1",s.exports=r;var M=s.exports;const U=n(M),H=e({__proto__:null,default:U},[M]),q=e=>"string"==typeof e,K=()=>{let e,t;const n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},z=e=>null==e?"":""+e,B=/###/g,X=e=>e&&e.indexOf("###")>-1?e.replace(B,"."):e,J=e=>!e||q(e),W=(e,t,n)=>{const o=q(t)?t.split("."):t;let s=0;for(;s<o.length-1;){if(J(e))return{};const t=X(o[s]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++s}return J(e)?{}:{obj:e,k:X(o[s])}},G=(e,t,n)=>{const{obj:o,k:s}=W(e,t,Object);if(void 0!==o||1===t.length)return void(o[s]=n);let r=t[t.length-1],i=t.slice(0,t.length-1),a=W(e,i,Object);for(;void 0===a.obj&&i.length;)r=`${i[i.length-1]}.${r}`,i=i.slice(0,i.length-1),a=W(e,i,Object),(null==a?void 0:a.obj)&&void 0!==a.obj[`${a.k}.${r}`]&&(a.obj=void 0);a.obj[`${a.k}.${r}`]=n},Y=(e,t)=>{const{obj:n,k:o}=W(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},Q=(e,t,n)=>{for(const o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?q(e[o])||e[o]instanceof String||q(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):Q(e[o],t[o],n):e[o]=t[o]);return e},Z=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const te=e=>q(e)?e.replace(/[&<>"'\/]/g,e=>ee[e]):e;const ne=[" ",",","?","!",";"],oe=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),se=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const o=t.split(n);let s=e;for(let r=0;r<o.length;){if(!s||"object"!=typeof s)return;let e,t="";for(let i=r;i<o.length;++i)if(i!==r&&(t+=n),t+=o[i],e=s[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&i<o.length-1)continue;r+=i-r+1;break}s=e}return s},re=e=>null==e?void 0:e.replace("_","-"),ie={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,o;null==(o=null==(n=null==console?void 0:console[e])?void 0:n.apply)||o.call(n,console,t)}};class ae{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ie,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,n,o){return o&&!this.debug?null:(q(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new ae(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new ae(this.logger,e)}}var le=new ae;class ue{constructor(){this.observers={}}
1on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let s=0;s<o;s++)n.apply(n,[e,...t])})}}}class ce extends ue{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,o={}){var s,r;const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.indexOf(".")>-1?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):q(n)&&i?l.push(...n.split(i)):l.push(n)));const u=Y(this.data,l);return!u&&!t&&!n&&e.indexOf(".")>-1&&(e=l[0],t=l[1],n=l.slice(2).join(".")),!u&&a&&q(n)?se(null==(r=null==(s=this.data)?void 0:s[e])?void 0:r[t],n,i):u}addResource(e,t,n,o,s={silent:!1}){const r=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator;let i=[e,t];n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split("."),o=t,t=i[1]),this.addNamespaces(t),G(this.data,i,o),s.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(const s in n)(q(n[s])||Array.isArray(n[s]))&&this.addResource(e,t,s,n[s],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,s,r={silent:!1,skipCopy:!1}){let i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),o=n,n=t,t=i[1]),this.addNamespaces(t);let a=Y(this.data,i)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?Q(a,n,s):a={...a,...n},G(this.data,i,a),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}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(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var pe={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,s){return e.forEach(e=>{var r;t=(null==(r=this.processors[e])?void 0:r.process(t,n,o,s))??t}),t}};const de={},he=e=>!q(e)&&"boolean"!=typeof e&&"number"!=typeof e;class fe extends ue{constructor(e,t={}){var n,o;super(),n=e,o=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"].forEach(e=>{n[e]&&(o[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=le.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const o=this.resolve(e,n);return void 0!==(null==o?void 0:o.res)}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const r=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const o=ne.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===o.length)return!0;const s=oe.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`);let r=!s.test(e);if(!r){const t=e.indexOf(n);t>0&&!s.test(e.substring(0,t))&&(r=!0)}return r})(e,n,o));if(r&&!i){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:q(s)?[s]:s};const r=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(r[0])>-1)&&(s=r.shift()),e=r.join(o)}return{key:e,namespaces:q(s)?[s]:s}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof options&&(o={...o}),o||(o={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const s=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],o),l=a[a.length-1];let u=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=o.lng||this.language,p=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===(null==c?void 0:c.toLowerCase()))return p?s?{res:`${l}${u}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(o)}:`${l}${u}${i}`:s?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(o)}:i;const d=this.resolve(e,o);let h=null==d?void 0:d.res;const f=(null==d?void 0:d.usedKey)||i,g=(null==d?void 0:d.exactUsedKey)||i,y=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==o.count&&!q(o.count),b=fe.hasDefaultValue(o),x=v?this.pluralResolver.getSuffix(c,o.count,o):"",S=o.ordinal&&v?this.pluralResolver.getSuffix(c,o.count,{ordinal:!1}):"",O=v&&!o.ordinal&&0===o.count,w=O&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${x}`]||o[`defaultValue${S}`]||o.defaultValue;let k=h;m&&!h&&b&&(k=w);const L=he(k),P=Object.prototype.toString.apply(k);if(!(m&&k&&L&&["[object Number]","[object Function]","[object RegExp]"].indexOf(P)<0)||q(y)&&Array.isArray(k))if(m&&q(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,e,o,n));else{let t=!1,s=!1;!this.isValidLookup(h)&&b&&(t=!0,h=w),this.isValidLookup(h)||(s=!0,h=i);const a=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:h,p=b&&w!==h&&this.options.updateMissing;if(s||t||p){if(this.logger.log(p?"updateKey":"missingKey",c,l,i,p?w:h),r){const e=this.resolve(i,{...o,keySeparator:!1});e&&e.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 e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let o=0;o<t.length;o++)e.push(t[o]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);const n=(e,t,n)=>{var s;const r=b&&n!==h?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,p,o):(null==(s=this.backendConnector)?void 0:s.saveMissing)&&this.backendConnector.saveMissing(e,l,t,r,p,o),this.emit
1("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,o);O&&o[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],i+t,o[`defaultValue${t}`]||w)})}):n(e,i,w))}h=this.extendTranslation(h,e,o,d,n),s&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${l}${u}${i}`),(s||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${i}`:i,t?h:void 0,o))}else{if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...o,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return s?(d.res=e,d.usedParams=this.getUsedParamsDetails(o),d):e}if(r){const e=Array.isArray(k),t=e?[]:{},n=e?g:f;for(const s in k)if(Object.prototype.hasOwnProperty.call(k,s)){const e=`${n}${r}${s}`;t[s]=b&&!h?this.translate(e,{...o,defaultValue:he(w)?w[s]:void 0,joinArrays:!1,ns:a}):this.translate(e,{...o,joinArrays:!1,ns:a}),t[s]===e&&(t[s]=k[s])}h=t}}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(o),d):h}extendTranslation(e,t,n,o,s){var r,i;if(null==(r=this.i18nFormat)?void 0:r.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const r=q(e)&&(void 0!==(null==(i=null==n?void 0:n.interpolation)?void 0:i.skipOnVariables)?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(r){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let l=n.replace&&!q(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||o.usedLng,n),r){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>(null==s?void 0:s[0])!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=q(a)?[a]:a;return null!=e&&(null==l?void 0:l.length)&&!1!==n.applyPostProcessor&&(e=pe.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,s,r,i;return q(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),l=a.key;o=l;let u=a.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!q(t.count),p=c&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(q(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{var a,u;this.isValidLookup(n)||(i=e,de[`${h[0]}-${e}`]||!(null==(a=this.utils)?void 0:a.hasLoadedNamespace)||(null==(u=this.utils)?void 0:u.hasLoadedNamespace(i))||(de[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${h.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),h.forEach(o=>{var i;if(this.isValidLookup(n))return;r=o;const a=[l];if(null==(i=this.i18nFormat)?void 0:i.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,o,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(o,t.count,t));const n=`${this.options.pluralSeparator}zero`,s=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(a.push(l+e),t.ordinal&&0===e.indexOf(s)&&a.push(l+e.replace(s,this.options.pluralSeparator)),p&&a.push(l+n)),d){const o=`${l}${this.options.contextSeparator}${t.context}`;a.push(o),c&&(a.push(o+e),t.ordinal&&0===e.indexOf(s)&&a.push(o+e.replace(s,this.options.pluralSeparator)),p&&a.push(o+n))}}let u;for(;u=a.pop();)this.isValidLookup(n)||(s=u,n=this.getResource(o,e,u,t))}))})}),{res:n,usedKey:o,exactUsedKey:s,usedLng:r,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){var s;return(null==(s=this.i18nFormat)?void 0:s.getResource)?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}
vendor: 3,103 bytes, line 1
1getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!q(e.replace);let o=n?e.replace:e;if(n&&void 0!==e.count&&(o.count=e.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!n){o={...o};for(const e of t)delete o[e]}return o}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class ge{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=le.create("languageUtils")}getScriptPartFromCode(e){if(!(e=re(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=re(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(q(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(t){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o?e:e.indexOf("-")<0&&o.indexOf("-")<0?void 0:e.indexOf("-")>0&&o.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===o||0===e.indexOf(o)&&o.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),q(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],s=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return q(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(e))):q(e)&&s(this.formatLanguageCode(e)),n.forEac
1h(e=>{o.indexOf(e)<0&&s(this.formatLanguageCode(e))}),o}}const ye={zero:0,one:1,two:2,few:3,many:4,other:5},me={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ve{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=le.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=re("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let r;try{r=new Intl.PluralRules(n,{type:o})}catch(i){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),me;if(!e.match(/-|_/))return me;const n=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(n,t)}return this.pluralRulesCache[s]=r,r}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(null==n?void 0:n.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>ye[e]-ye[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const be=(e,t,n,o=".",s=!0)=>{let r=((e,t,n)=>{const o=Y(e,n);return void 0!==o?o:Y(t,n)})(e,t,n);return!r&&s&&q(n)&&(r=se(e,n,o),void 0===r&&(r=se(t,n,o))),r},xe=e=>e.replace(/\$/g,"$$$$");class Se{constructor(e={}){var t;this.logger=le.create("interpolator"),this.options=e,this.format=(null==(t=null==e?void 0:e.interpolation)?void 0:t.format)||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:s,prefixEscaped:r,suffix:i,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:te,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=s?Z(s):r||"{{",this.suffix=i?Z(i):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?Z(p):d||Z("$t("),this.nestingSuffix=h?Z(h):f||Z(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>(null==e?void 0:e.source)===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,o){var s;let r,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=e=>{if(e.indexOf(this.formatSeparator)<0){const s=be(t,l,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,n,{...o,...t,interpolationkey:e}):s}const s=e.split(this.formatSeparator),r=s.shift().trim(),i=s.join(this.formatSeparator).trim();return this.format(be(t,l,r,this.options.keySeparator,this.options.ignoreJSONStructure),i,n,{...o,...t,interpolationkey:r})};this.resetRegExp();const c=(null==o?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,p=void 0!==(null==(s=null==o?void 0:o.interpolation)?void 0:s.skipOnVariables)?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>xe(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?xe(this.escape(e)):xe(e)}
1].forEach(t=>{for(a=0;r=t.regex.exec(e);){const n=r[1].trim();if(i=u(n),void 0===i)if("function"==typeof c){const t=c(e,r,o);i=q(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))i="";else{if(p){i=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else q(i)||this.useRawValueToEscape||(i=z(i));const s=t.safeValue(i);if(e=e.replace(r[0],s),p?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,s,r;const i=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const o=e.split(new RegExp(`${n}[ ]*{`));let s=`{${o[1]}`;e=o[0],s=this.interpolate(s,r);const i=s.match(/'/g),a=s.match(/"/g);(((null==i?void 0:i.length)??0)%2==0&&!a||a.length%2!=0)&&(s=s.replace(/'/g,'"'));try{r=JSON.parse(s),t&&(r={...t,...r})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,l),`${e}${n}${s}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let a=[];r={...n},r=r.replace&&!q(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;const l=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==l&&(a=o[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,l)),s=t(i.call(this,o[1].trim(),r),r),s&&o[0]===e&&!q(s))return s;q(s)||(s=z(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),s=""),a.length&&(s=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),s.trim())),e=e.replace(o[0],s),this.regexp.lastIndex=0}return e}}const Oe=e=>{const t={};return(n,o,s)=>{let r=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(r={...r,[s.interpolationkey]:void 0});const i=o+JSON.stringify(r);let a=t[i];return a||(a=e(re(o),s),t[i]=a),a(n)}},we=e=>(t,n,o)=>e(re(n),o)(t);class ke{constructor(e={}){this.logger=le.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Oe:we;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Oe(t)}format(e,t,n,o={}){const s=t.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(e=>e.indexOf(")")>-1)){const e=s.findIndex(e=>e.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,e)].join(this.formatSeparator)}return s.reduce((e,t)=>{var s;const{formatName:r,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const o=e.split("(");t=o[0].toLowerCase().trim();const s=o[1].substring(0,o[1].length-1);"currency"===t&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):"relativetime"===t&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(e=>{if(e){const[t,...o]=e.split(":"),s=o.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=s),"false"===s&&(n[r]=!1),"true"===s&&(n[r]=!0),isNaN(s)||(n[r]=parseInt(s,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{const a=(null==(s=null==o?void 0:o.formatParams)?void 0:s[o.interpolationkey])||{},l=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[r](e,l,{...i,...o,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class Le extends ue{constructor(e,t,n,o={}){var s,r;super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=le.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],null==(r=null==(s=this.backend)?void 0:s.init)||r.call(s,n,o.backend,o)}queueLoad(e,t,n,o){const s={},r={},i={},a={};
vendor: 1,491 bytes, line 1
1return e.forEach(e=>{let o=!0;t.forEach(t=>{const i=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===r[i]&&(r[i]=!0):(this.state[i]=1,o=!1,void 0===r[i]&&(r[i]=!0),void 0===s[i]&&(s[i]=!0),void 0===a[t]&&(a[t]=!0)))}),o||(i[e]=!0)}),(Object.keys(s).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(r),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const o=e.split("|"),s=o[0],r=o[1];t&&this.emit("failedLoading",s,r,t),!t&&n&&this.store.addResourceBundle(s,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const i={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:o,k:s}=W(e,t,Object);o[s]=o[s]||[],o[s].push(n)})(n.loaded,[s],r),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{i[e]||(i[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===i[e][t]&&(i[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",i),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,s=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:s,callback:r});this.readingCalls++;const i=(i,a)=>
1{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}i&&a&&o<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,o+1,2*s,r)},s):r(i,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,i);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>i(null,e)).catch(i):i(null,n)}catch(l){i(l)}}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();q(e)&&(e=this.languageUtils.toResolveHierarchy(e)),q(t)&&(t=[t]);const s=this.queueLoad(e,t,n,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),o=n[0],s=n[1];this.read(o,s,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${s} for language ${o} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${s} for language ${o}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,o,s,r={},i=()=>{}){var a,l,u,c,p;if(!(null==(l=null==(a=this.services)?void 0:a.utils)?void 0:l.hasLoadedNamespace)||(null==(c=null==(u=this.services)?void 0:u.utils)?void 0:c.hasLoadedNamespace(t))){if(null!=n&&""!==n){if(null==(p=this.backend)?void 0:p.create){const a={...r,isUpdate:s},l=this.backend.create.bind(this.backend);if(l.length<6)try{let s;s=5===l.length?l(e,t,n,o,a):l(e,t,n,o),s&&"function"==typeof s.then?s.then(e=>i(null,e)).catch(i):i(null,s)}catch(d){i(d)}else l(e,t,n,o,i,a)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Pe=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),q(e[1])&&(t.defaultValue=e[1]),q(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),je=e=>{var t,n;return q(e.ns)&&(e.ns=[e.ns]),q(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),q(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),(null==(n=null==(t=e.supportedLngs)?void 0:t.indexOf)?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e},Re=()=>{};class Ce extends ue{constructor(e={},t){var n;if(super(),this.options=je(e),this.services={},this.logger=le,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),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,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(q(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=Pe();this.options={...n,...this.options,...je(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation}
1,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?le.init(o(this.modules.logger),this.options):le.init(null,this.options),e=this.modules.formatter?this.modules.formatter:ke;const t=new ge(this.options);this.store=new ce(this.options.resources,this.options);const s=this.services;s.logger=le,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new ve(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(s.formatter=o(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Se(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Le(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new fe(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Re),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[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(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const s=K(),r=()=>{const e=(e,n)=>{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),s.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),s}loadResources(e,t=Re){var n,o;let s=t;const r=q(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===(null==r?void 0:r.toLowerCase())&&(!this.options.preload||0===this.options.preload.length))return s();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}null==(o=null==(n=this.options.preload)?void 0:n.forEach)||o.call(n,e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(e)})}else s(null)}reloadResources(e,t,n){const o=K();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Re),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}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"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&pe.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=K();
1this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},s=(s,r)=>{r?this.isLanguageChangingTo===e&&(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(s,(...e)=>this.t(...e))},r=t=>{var n,r;e||t||!this.services.languageDetector||(t=[]);const i=q(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(i)?i:this.services.languageUtils.getBestMatchFromCodes(q(t)?[t]:t);a&&(this.language||o(a),this.translator.language||this.translator.changeLanguage(a),null==(r=null==(n=this.services.languageDetector)?void 0:n.cacheUserLanguage)||r.call(n,a)),this.loadResources(a,e=>{s(e,a)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const o=(e,t,...s)=>{let r;r="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(s)):{...t},r.lng=r.lng||o.lng,r.lngs=r.lngs||o.lngs,r.ns=r.ns||o.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||n||o.keyPrefix);const i=this.options.keySeparator||".";let a;return a=r.keyPrefix&&Array.isArray(e)?e.map(e=>`${r.keyPrefix}${i}${e}`):r.keyPrefix?`${r.keyPrefix}${i}${e}`:e,this.t(a,r)};return q(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}t(...e){var t;return null==(t=this.translator)?void 0:t.translate(...e)}exists(...e){var t;return null==(t=this.translator)?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;
1if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,s=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const r=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,r);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!r(n,e)||o&&!r(s,e)))}loadNamespaces(e,t){const n=K();return this.options.ns?(q(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=K();q(e)&&(e=[e]);const o=this.options.preload||[],s=e.filter(e=>o.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return s.length?(this.options.preload=o.concat(s),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){var t,n;if(e||(e=this.resolvedLanguage||((null==(t=this.languages)?void 0:t.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(s){}const o=(null==(n=this.services)?void 0:n.languageUtils)||new ge(Pe());return e.toLowerCase().indexOf("-latn")>1?"ltr":["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"].indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new Ce(e,t)}cloneInstance(e={},t=Re){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const o={...this.options,...e,isClone:!0},s=new Ce(o);void 0===e.debug&&void 0===e.prefix||(s.logger=s.logger.clone(e));if(["store","services","language"].forEach(e=>{s[e]=this[e]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,o)=>(n[o]={...e[t][o]},n),e[t]),e),{});s.store=new ce(e,o),s.services.resourceStore=s.store}return s.translator=new fe(s.services,o),s.translator.on("*",(e,...t)=>{s.emit(e,...t)}),s.init(o,t),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const $e=Ce.createInstance();$e.createInstance=Ce.createInstance,$e.createInstance,$e.dir,$e.init,$e.loadResources,$e.reloadResources,$e.use,$e.changeLanguage,$e.getFixedT,$e.t,$e.exists,$e.setDefaultNamespace,$e.hasLoadedNamespace,$e.loadNamespaces,$e.loadLanguages;const Ee={},Ne=(e,t,n,o)=>{De(n)&&Ee[n]||(De(n)&&(Ee[n]=new Date),((e,t,n,o)=>{var s,r,i,a;const l=[n,{code:t,...o||{}}];if(null==(r=null==(s=null==e?void 0:e.services)?void 0:s.logger)?void 0:r.forward)return e.services.logger.forward(l,"warn","react-i18next::",!0);De(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),(null==(a=null==(i=null==e?void 0:e.services)?void 0:i.logger)?void 0:a.warn)?e.services.logger.warn(...l):(null==console?void 0:console.warn)&&console.warn(...l)})(e,t,n,o))},Te=(e,t)=>
1()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},_e=(e,t,n)=>{e.loadNamespaces(t,Te(e,n))},Ie=(e,t,n,o)=>{if(De(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return _e(e,n,o);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Te(e,o))},De=e=>"string"==typeof e,Fe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ve={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ae=e=>Ve[e];let Me={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Fe,Ae)};let Ue;const He={type:"3rdParty",init(e){((e={})=>{Me={...Me,...e}})(e.options.react),(e=>{Ue=e})(e)}},qe=M.createContext();class Ke{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ze=(e,t,n,o)=>e.getFixedT(t,n,o),Be=(e,t={})=>{var n,o,s,r;const{i18n:i}=t,{i18n:a,defaultNS:l}=M.useContext(qe)||{},u=i||a||Ue;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new Ke),!u){Ne(u,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return De(t)?t:"object"==typeof(n=t)&&null!==n&&De(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}(null==(n=u.options.react)?void 0:n.wait)&&Ne(u,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const c={...Me,...u.options.react,...t},{useSuspense:p,keyPrefix:d}=c;let h=e||l||(null==(o=u.options)?void 0:o.defaultNS);h=De(h)?[h]:h||["translation"],null==(r=(s=u.reportNamespaces).addUsedNamespaces)||r.call(s,h);const f=(u.isInitialized||u.initializedStoreOnce)&&h.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,o)=>{var s;if((null==(s=n.bindI18n)?void 0:s.indexOf("languageChanging"))>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e))return!1}}):(Ne(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,u,c)),g=((e,t,n,o)=>M.useCallback(ze(e,t,n,o),[e,t,n,o]))(u,t.lng||null,"fallback"===c.nsMode?h:h[0],d),y=()=>g,m=()=>ze(u,t.lng||null,"fallback"===c.nsMode?h:h[0],d),[v,b]=M.useState(y);let x=h.join();t.lng&&(x=`${t.lng}${x}`);const S=((e,t)=>{const n=M.useRef();return M.useEffect(()=>{n.current=e},[e,t]),n.current})(x),O=M.useRef(!0);M.useEffect(()=>{const{bindI18n:e,bindI18nStore:n}=c;O.current=!0,f||p||(t.lng?Ie(u,t.lng,h,()=>{O.current&&b(m)}):_e(u,h,()=>{O.current&&b(m)})),f&&S&&S!==x&&O.current&&b(m);const o=()=>{O.current&&b(m)};return e&&(null==u||u.on(e,o)),n&&(null==u||u.store.on(n,o)),()=>{O.current=!1,u&&(null==e||e.split(" ").forEach(e=>u.off(e,o))),n&&u&&n.split(" ").forEach(e=>u.store.off(e,o))}},[u,x]),M.useEffect(()=>{O.current&&f&&b(y)},[u,d,f]);const w=[v,u,f];if(w.t=v,w.i18n=u,w.ready=f,f)return w;if(!f&&!p)return w;throw new Promise(e=>{t.lng?Ie(u,t.lng,h,()=>e()):_e(u,h,()=>e())})};function Xe(e){return(Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(){return"function"==typeof XMLHttpRequest||"object"===("undefined"==typeof XMLHttpRequest?"undefined":Xe(XMLHttpRequest))}const We={},Ge=function(e,t,n){let o=Promise.resolve();if(t&&t.length>0){document.getElementsByTagName("link");const e=document.querySelector("meta[property=csp-nonce]"),n=(null==e?void 0:e.nonce)||(null==e?void 0:e.getAttribute("nonce"));o=Promise.allSettled(t.map(e=>{if((e=function(e){return"/"+e}(e))in We)return;We[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${o}`))return;const s=document.createElement("link");return s.rel=t?"stylesheet":"modulepreload",t||(s.as="script"),s.crossOrigin="",s.href=e,n&&s.setAttribute("nonce",n),document.head.appendChild(s),t?new Promise((t,n)=>{s.addEventListener("load",t),s.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${e}`)))}):void 0}))}function s(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(t=>{for(const e of t||[])"rejected"===e.status&&s(e.reason);return e().catch(s)})};function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ye(Object(n),!0).forEach(function(t){Ze(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ze(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=et(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=et(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==et(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e){return(et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var tt,nt,ot="function"==typeof fetch?fetch:void 0;if("undefined"!=typeof global&&global.fetch?ot=global.fetch:"undefined"!=typeof window&&window.fetch&&(ot=window.fetch),Je()&&("undefined"!=typeof global&&global.XMLHttpRequest?tt=global.XMLHttpRequest:"undefined"!=typeof window&&window.XMLHttpRequest&&(tt=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("undefined"!=typeof global&&global.ActiveXObject?nt=global.ActiveXObject:"undefined"!=typeof window&&window.ActiveXObject&&(nt=window.ActiveXObject)),"function"!=typeof ot&&(ot=void 0),!ot&&!tt&&!nt)try{Ge(()=>import("./browser-ponyfill-BHdSbRgZ.js").then(e=>e.b),[]).then(function(e){ot=e.default}).catch(function(){})}catch(gt){}var st=function(e,t){if(t&&"object"===et(t)){var n="";for(var o in t)n+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},rt=function(e,t,n,o){var s=function(e){if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(function(t){n(null,{status:e.status,data:t})}).catch(n)};if(o){var r=o(e,t);if(r instanceof Promise)return void r.then(s).catch(n)}"function"==typeof fetch?fetch(e,t).then(s).catch(n):ot(e,t).then(s).catch(n)},it=!1,at=function(e,t,n,o){return"function"==typeof n&&(o=n,n=void 0),o=o||function(){},ot&&0!==t.indexOf("file:")?function(e,t,n,o){e.queryStringParams&&(t=st(t,e.queryStringParams));var s=Qe({},"function"==typeof e.customHeaders?e.customHeaders():e.customHeaders);"undefined"==typeof window&&"undefined"!=typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(s["Content-Type"]="application/json");var r="function"==typeof e.requestOptions?e.requestOptions(n):e.requestOptions,i=Qe({method:n?"POST":"GET",body:n?e.stringify(n):void 0,headers:s},it?{}:r),a="function"==typeof e.alternateFetch&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{rt(t,i,o,a)}catch(gt){if(!r||0===Object.keys(r).length||!gt.message||gt.message.indexOf("not implemented")<0)return o(gt);try{Object.keys(r).forEach(function(e){delete i[e]}),rt(t,i,o,a),it=!0}catch(l){o(l)}}}(e,t,n,o):Je()||"function"==typeof ActiveXObject?function(e,t,n,o){n&&"object"===et(n)&&(n=st("",n).slice(1)),e.queryStringParams&&(t=st(t,e.queryStringParams));try{var s=tt?new tt:new nt("MSXML2.XMLHTTP.3.0");s.open(n?"POST":"GET",t,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,n&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var r=e.customHeaders;if(r="function"==typeof r?r():r)for(var i in r)s.setRequestHeader(i,r[i]);s.onreadystatechange=function(){s.readyState>3&&o(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(n)}catch(gt){console}}(e,t,n,o):void o(new Error("No fetch and no xhr implementation found!"))};function lt(e){return(lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ut(Object(n),!0).forEach(function(t){dt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pt(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ht(o.key),o)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dt(e,t,n){return(t=ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e){var t=function(e,t){if("object"!=lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lt(t)?t:t+""}var ft=pt(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.services=t,this.options=n,this.allOptions=o,this.type="backend",this.init(t,n,o)},[{key:"init",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=ct(ct(ct({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,n){return dt({},t,n||"")},parseLoadPayload:function(e,t){},request:at,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),n),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===lt(s)&&"function"==typeof s.unref&&s.unref()}}},{key:"readMulti",value:function(e,t,n){this._readAny(e,e,t,t,n)}},{key:"read",value:function(e,t,n){this._readAny([e],e,[t],t,n)}},{key:"_readAny",value:function(e,t,n,o,s){var r,i=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,n)),(a=function(e){return!!e&&"function"==typeof e.then}(r=a)?r:Promise.resolve(r)).then(function(r){if(!r)return s(null,{});var a=i.services.interpolator.interpolate(r,{lng:e.join("+"),ns:n.join("+")});i.loadUrl(a,s,t,o)})}},{key:"loadUrl",value:function(e,t,n,o){var s=this,r="string"==typeof n?[n]:n,i="string"==typeof o?[o]:o,a=this.options.parseLoadPayload(r,i);this.options.request(this.options,e,a,function(r,i){if(i&&(i.status>=500&&i.status<600||!i.status))return t("failed loading "+e+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return t("failed loading "+e+"; status code: "+i.status,!1);if(!i&&r&&r.message){var a=r.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return a.indexOf(e)>-1}))return t("failed loading "+e+": "+r.message,!0)}if(r)return t(r,!1);var l,u;try{l="string"==typeof i.data?s.options.parse(i.data,n,o):i.data}catch(gt){u="failed parsing "+e+" to json"}if(u)return t(u,!1);t(null,l)})}},{key:"create",value:function(e,t,n,o,s){var r=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var i=this.options.parsePayload(t,n,o),a=0,l=[],u=[];e.forEach(function(n){var o=r.options.addPath;"function"==typeof r.options.addPath&&(o=r.options.addPath(n,t));var c=r.services.interpolator.interpolate(o,{lng:n,ns:t});r.options.request(r.options,c,i,function(t,n){a+=1,l.push(t),u.push(n),a===e.length&&"function"==typeof s&&s(l,u)})})}}},{key:"reload",value:function(){var e=this,t=this.services,n=t.backendConnector,o=t.languageUtils,s=t.logger,r=n.language;if(!r||"cimode"!==r.toLowerCase()){var i=[],a=function(e){o.toResolveHierarchy(e).forEach(function(e){i.indexOf(e)<0&&i.push(e)})};
1a(r),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return a(e)}),i.forEach(function(t){e.allOptions.ns.forEach(function(e){n.read(t,e,"read",null,null,function(o,r){o&&s.warn("loading namespace ".concat(e," for language ").concat(t," failed"),o),!o&&r&&s.log("loaded namespace ".concat(e," for language ").concat(t),r),n.loaded("".concat(t,"|").concat(e),o,r)})})})}}}]);ft.type="backend";export{ft as B,H as R,Ge as _,o as a,He as b,t as c,U as d,n as g,$e as i,M as r,Be 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.