PageSourceSearch

https://emosophie.org/_next/static/chunks/9117-adabc3e5fcc566fa.js

js emosophie.org collected 2026-09-24 12:06:48 UTC 54,391 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9117],{7034:function(e,t,i){i.d(t,{Z:function(){return p}});var s=i(2265);let r=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase()),n=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)},a=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim()},l=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let h=(0,s.forwardRef)((e,t)=>{let{color:i="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:n,className:h="",children:p,iconNode:d,...c}=e;return(0,s.createElement)("svg",{ref:t,...u,width:r,height:r,stroke:i,strokeWidth:n?24*Number(o)/Number(r):o,className:a("lucide",h),...!p&&!l(c)&&{"aria-hidden":"true"},...c},[...d.map(e=>{let[t,i]=e;return(0,s.createElement)(t,i)}),...Array.isArray(p)?p:[p]])}),p=((e,t)=>{let i=(0,s.forwardRef)((i,o)=>{let{className:l,...u}=i;return(0,s.createElement)(h,{ref:o,iconNode:t,className:a("lucide-".concat(r(n(e))),"lucide-".concat(e),l),...u})});return i.displayName=n(e),i})("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},3145:function(e,t,i){i.d(t,{default:function(){return r.a}});var s=i(8461),r=i.n(s)},9376:function(e,t,i){var s=i(5475);i.o(s,"usePathname")&&i.d(t,{usePathname:function(){return s.usePathname}}),i.o(s,"useRouter")&&i.d(t,{useRouter:function(){return s.useRouter}}),i.o(s,"useSearchParams")&&i.d(t,{useSearchParams:function(){return s.useSearchParams}})},8461:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},getImageProps:function(){return a}});let s=i(7043),r=i(5346),o=i(5878),n=s._(i(5084));function a(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,i]of Object.entries(t))void 0===i&&delete t[e];return{props:t}}let l=o.Image},8614:function(e,t,i){i.d(t,{M:function(){return x}});var s=i(7437),r=i(2265),o=i(8881),n=i(3576),a=i(1534),l=i(4252),u=i(3537),h=i(5750);class p extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,i=(0,u.R)(e)&&e.offsetWidth||0,s=this.props.sizeRef.current;s.height=t.offsetHeight||0,s.width=t.offsetWidth||0,s.top=t.offsetTop,s.left=t.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(e){let{children:t,isPresent:i,anchorX:o,root:n}=e,a=(0,r.useId)(),l=(0,r.useRef)(null),u=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,r.useContext)(h._);return(0,r.useInsertionEffect)(()=>{let{width:e,height:t,top:s,left:r,right:h}=u.current;if(i||!l.current||!e||!t)return;l.current.dataset.motionPopId=a;let p=document.createElement("style");d&&(p.nonce=d);let c=null!=n?n:document.head;return c.appendChild(p),p.sheet&&p.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===o?"left: ".concat(r):"right: ".concat(h),"px !important;\n            top: ").concat(s,"px !important;\n          }\n        ")),()=>{c.contains(p)&&c.removeChild(p)}},[i]),(0,s.jsx)(p,{isPresent:i,childRef:l,sizeRef:u,children:r.cloneElement(t,{ref:l})})}let c=e=>{let{children:t,initial:i,isPresent:o,onExitComplete:a,custom:u,presenceAffectsLayout:h,mode:p,anchorX:c,root:f}=e,m=(0,n.h)(g),y=(0,r.useId)(),x=!0,v=(0,r.useMemo)(()=>(x=!1,{id:y,initial:i,isPresent:o,custom:u,onExitComplete:e=>
1{for(let t of(m.set(e,!0),m.values()))if(!t)return;a&&a()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[o,m,a]);return h&&x&&(v={...v}),(0,r.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[o]),r.useEffect(()=>{o||m.size||!a||a()},[o]),"popLayout"===p&&(t=(0,s.jsx)(d,{isPresent:o,anchorX:c,root:f,children:t})),(0,s.jsx)(l.O.Provider,{value:v,children:t})};function g(){return new Map}var f=i(9637);let m=e=>e.key||"";function y(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let x=e=>{let{children:t,custom:i,initial:l=!0,onExitComplete:u,presenceAffectsLayout:h=!0,mode:p="sync",propagate:d=!1,anchorX:g="left",root:x}=e,[v,b]=(0,f.oO)(d),S=(0,r.useMemo)(()=>y(t),[t]),k=d&&!v?[]:S.map(m),w=(0,r.useRef)(!0),L=(0,r.useRef)(S),O=(0,n.h)(()=>new Map),[C,R]=(0,r.useState)(S),[$,P]=(0,r.useState)(S);(0,a.L)(()=>{w.current=!1,L.current=S;for(let e=0;e<$.length;e++){let t=m($[e]);k.includes(t)?O.delete(t):!0!==O.get(t)&&O.set(t,!1)}},[$,k.length,k.join("-")]);let N=[];if(S!==C){let e=[...S];for(let t=0;t<$.length;t++){let i=$[t],s=m(i);k.includes(s)||(e.splice(t,0,i),N.push(i))}return"wait"===p&&N.length&&(e=N),P(y(e)),R(S),null}let{forceRender:j}=(0,r.useContext)(o.p);return(0,s.jsx)(s.Fragment,{children:$.map(e=>{let t=m(e),r=(!d||!!v)&&(S===$||k.includes(t));return(0,s.jsx)(c,{isPresent:r,initial:(!w.current||!!l)&&void 0,custom:i,presenceAffectsLayout:h,mode:p,root:x,onExitComplete:r?void 0:()=>{if(!O.has(t))return;O.set(t,!0);let e=!0;O.forEach(t=>{t||(e=!1)}),e&&(null==j||j(),P(L.current),d&&(null==b||b()),u&&u())},anchorX:g,children:e},t)})})}},9427:function(e,t,i){i.d(t,{Z:function(){return L}});let{slice:s,forEach:r}=[],o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,n=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},s=encodeURIComponent(t),r=`${e}=${s}`;if(i.maxAge>0){let e=i.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(e)}`}if(i.domain){if(!o.test(i.domain))throw TypeError("option domain is invalid");r+=`; Domain=${i.domain}`}if(i.path){if(!o.test(i.path))throw TypeError("option path is invalid");r+=`; Path=${i.path}`}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
1d");r+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(r+="; HttpOnly"),i.secure&&(r+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"none":r+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return i.partitioned&&(r+="; Partitioned"),r},a={create(e,t,i,s){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};i&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+6e4*i)),s&&(r.domain=s),document.cookie=n(e,t,r)},read(e){let t=`${e}=`,i=document.cookie.split(";");for(let e=0;e<i.length;e++){let s=i[e];for(;" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(t))return s.substring(t.length,s.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var l={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return a.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:i,cookieMinutes:s,cookieDomain:r,cookieOptions:o}=t;i&&"undefined"!=typeof document&&a.create(i,e,s,r,o)}},u={name:"querystring",lookup(e){let t,{lookupQuerystring:i}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let s=e.substring(1).split("&");for(let e=0;e<s.length;e++){let r=s[e].indexOf("=");r>0&&s[e].substring(0,r)===i&&(t=s[e].substring(r+1))}}return t}},h={name:"hash",lookup(e){let t,{lookupHash:i,lookupFromHashIndex:s}=e;if("undefined"!=typeof window){let{hash:e}=window.location;if(e&&e.length>2){let r=e.substring(1);if(i){let e=r.split("&");for(let s=0;s<e.length;s++){let r=e[s].indexOf("=");r>0&&e[s].substring(0,r)===i&&(t=e[s].substring(r+1))}}if(t)return t;if(!t&&s>-1){let t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;return t["number"==typeof s?s:0]?.replace("/","")}}}return t}};let p=null,d=()=>{if(null!==p)return p;try{if(!(p="undefined"!=typeof window&&null!==window.localStorage))return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){p=!1}return p};var c={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&d())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:i}=t;i&&d()&&window.localStorage.setItem(i,e)}};let g=null,f=()=>{if(null!==g)return g;try{if(!(g="undefined"!=typeof window&&null!==window.sessionStorage))return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){g=!1}return g};var m={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&f())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:i}=t;i&&f()&&window.sessionStorage.setItem(i,e)}},y={name:"navigator",lookup(e){let t=[];if("undefined"!=typeof navigator){let{languages:e,userLanguage:i,language:s}=navigator;if(e)for(let i=0;i<e.length;i++)t.push(e[i]);i&&t.push(i),s&&t.push(s)}return t.length>0?t:void 0}},x={name:"htmlTag",lookup(e){let t,{htmlTag:i}=e,s=i||("undefined"!=typeof document?document.documentElement:null);return s&&"function"==typeof s.getAttribute&&(t=s.getAttribute("lang")),t}},v={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;let i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(i))return i["number"==typeof t?t:0]?.replace("/","")}},b={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,i="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i["number"==typeof t?t+1:1]}};let S=!1;try{document.cookie,S=!0}catch(e){}let k=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];S||k.splice(1,1);let w=()=>({order:k,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return r.call(s.call(arguments,1
1),t=>{if(t)for(let i in t)void 0===e[i]&&(e[i]=t[i])}),e}(t,this.options||{},w()),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(l),this.addDetector(u),this.addDetector(c),this.addDetector(m),this.addDetector(y),this.addDetector(x),this.addDetector(v),this.addDetector(b),this.addDetector(h)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let i=this.detectors[e].lookup(this.options);i&&"string"==typeof i&&(i=[i]),i&&(t=t.concat(i))}}),t=t.filter(e=>null!=e&&!("string"==typeof e&&[/<\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(e)))).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}L.type="languageDetector"},6550:function(e,t,i){i.d(t,{ZP:function(){return ee}});let s=e=>"string"==typeof e,r=()=>{let e,t;let i=new Promise((i,s)=>{e=i,t=s});return i.resolve=e,i.reject=t,i},o=e=>null==e?"":""+e,n=(e,t,i)=>{e.forEach(e=>{t[e]&&(i[e]=t[e])})},a=/###/g,l=e=>e&&e.indexOf("###")>-1?e.replace(a,"."):e,u=e=>!e||s(e),h=(e,t,i)=>{let r=s(t)?t.split("."):t,o=0;for(;o<r.length-1;){if(u(e))return{};let t=l(r[o]);!e[t]&&i&&(e[t]=new i),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return u(e)?{}:{obj:e,k:l(r[o])}},p=(e,t,i)=>{let{obj:s,k:r}=h(e,t,Object);if(void 0!==s||1===t.length){s[r]=i;return}let o=t[t.length-1],n=t.slice(0,t.length-1),a=h(e,n,Object);for(;void 0===a.obj&&n.length;)o=`${n[n.length-1]}.${o}`,a=h(e,n=n.slice(0,n.length-1),Object),a?.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=i},d=(e,t,i,s)=>{let{obj:r,k:o}=h(e,t,Object);r[o]=r[o]||[],r[o].push(i)},c=(e,t)=>{let{obj:i,k:s}=h(e,t);if(i&&Object.prototype.hasOwnProperty.call(i,s))return i[s]},g=(e,t,i)=>{let s=c(e,i);return void 0!==s?s:c(t,i)},f=(e,t,i)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?s(e[r])||e[r]instanceof String||s(t[r])||t[r]instanceof String?i&&(e[r]=t[r]):f(e[r],t[r],i):e[r]=t[r]);return e},m=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var y={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let x=e=>s(e)?e.replace(/[&<>"'\/]/g,e=>y[e]):e;class v{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}let b=[" ",",","?","!",";"],S=new v(20),k=(e,t,i)=>{t=t||"",i=i||"";let s=b.filter(e=>0>t.indexOf(e)&&0>i.indexOf(e));if(0===s.length)return!0;let r=S.getRegExp(`(${s.map(e=>"?"===e?"\\?":e).join("|")})`),o=!r.test(e);
1if(!o){let t=e.indexOf(i);t>0&&!r.test(e.substring(0,t))&&(o=!0)}return o},w=(e,t,i=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let s=t.split(i),r=e;for(let e=0;e<s.length;){let t;if(!r||"object"!=typeof r)return;let o="";for(let n=e;n<s.length;++n)if(n!==e&&(o+=i),o+=s[n],void 0!==(t=r[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&n<s.length-1)continue;e+=n-e+1;break}r=t}return r},L=e=>e?.replace("_","-"),O={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class C{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||O,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,i,r){return r&&!this.debug?null:(s(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new C(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new C(this.logger,e)}}var R=new C;class ${constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let i=this.observers[e].get(t)||0;this.observers[e].set(t,i+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,i])=>{for(let s=0;s<i;s++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,s])=>{for(let r=0;r<s;r++)i.apply(i,[e,...t])})}}class P extends ${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){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i,r={}){let o;let n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],i&&(Array.isArray(i)?o.push(...i):s(i)&&n?o.push(...i.split(n)):o.push(i)));let l=c(this.data,o);return(!l&&!t&&!i&&e.indexOf(".")>-1&&(e=o[0],t=o[1],i=o.slice(2).join(".")),!l&&a&&s(i))?w(this.data?.[e]?.[t],i,n):l}addResource(e,t,i,s,r={silent:!1}){let o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=[e,t];i&&(n=n.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(n=e.split("."),s=t,t=n[1]),this.addNamespaces(t),p(this.data,n,s),r.silent||this.emit("added",e,t,i,s)}addResources(e,t,i,r={silent:!1}){for(let r in i)(s(i[r])||Array.isArray(i[r]))&&this.addResource(e,t,r,i[r],{silent:!0});r.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,s,r,o={silent:!1,skipCopy:!1}){let n=[e,t];e.indexOf(".")>-1&&(n=e.split("."),s=i,i=t,t=n[1]),this.addNamespaces(t);let a=c(this.data,n)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?f(a,i,r):a={...a,...i},p(this.data,n,a),o.silent||this.emit("added",e,t,i)}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){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var N={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,s,r){return e.forEach(e=>{t=this.processors[e]?.process(t,i,s,r)??t}),t}};let j=Symbol("i18next/PATH_KEY");function E(e,t){let{[j]:i}=e(function(){let e;let t=[],i=Object.create(null);return i.get=(s,r)=>(e?.revoke?.(),r===j)?t:(t.push(r),(e=Proxy.revocable(s,i)).proxy),Proxy.revocable(Object.create(null),i).proxy}());return i.join(t?.keySeparator??".")}let I={},D=e=>!s(e)&&"boolean"!=typeof e&&"number"!=typeof e;class F extends ${constructor(e,t={}){super(),n(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=R.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let i={...t};if(null==e)return!1;let s=this.resolve(e,i);return s?.res!==void 0}extractFromKey(e,t){let i=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===i&&(i=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],n=i&&e.indexOf(i)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!k(e,i,r);if(n&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:s(o)?[o]:o};let n=e.split(i);(i!==r||i===r&&this.options.ns.indexOf(n[0])>-1)&&(o=n.shift()),e=n.join(r)}return{key:e,namespaces:s(o)?[o]:o}}translate(e,t,i){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=E(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);let o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,n=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],r),u=l[l.length-1],h=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===h&&(h=":");let p=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p?.toLowerCase()==="cimode")return d?o?{res:`${u}${h}${a}`,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${h}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:a;let c=this.resolve(e,r),g=c?.res,f=c?.usedKey||a,m=c?.exactUsedKey||a,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!s(r.count),b=F.hasDefaultValue(r),S=v?this.pluralResolver.getSuffix(p,r.count,r):"",k=r.ordinal&&v?this.pluralResolver.getSuffix(p,r.count,{ordinal:!1}):"",w=v&&!r.ordinal&&0===r.count,L=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue,O=g;x&&!g&&b&&(O=L);let C=D(O),R=Object.prototype.toString.apply(O);if(x&&O&&C&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(R)&&!(s(y)&&Array.isArray(O))){if
1(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,O,{...r,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(c.res=e,c.usedParams=this.getUsedParamsDetails(r),c):e}if(n){let e=Array.isArray(O),t=e?[]:{},i=e?m:f;for(let e in O)if(Object.prototype.hasOwnProperty.call(O,e)){let s=`${i}${n}${e}`;b&&!g?t[e]=this.translate(s,{...r,defaultValue:D(L)?L[e]:void 0,joinArrays:!1,ns:l}):t[e]=this.translate(s,{...r,joinArrays:!1,ns:l}),t[e]===s&&(t[e]=O[e])}g=t}}else if(x&&s(y)&&Array.isArray(g))(g=g.join(y))&&(g=this.extendTranslation(g,e,r,i));else{let t=!1,s=!1;!this.isValidLookup(g)&&b&&(t=!0,g=L),this.isValidLookup(g)||(s=!0,g=a);let o=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:g,l=b&&L!==g&&this.options.updateMissing;if(s||t||l){if(this.logger.log(l?"updateKey":"missingKey",p,u,a,l?L:g),n){let e=this.resolve(a,{...r,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=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let i=0;i<t.length;i++)e.push(t[i]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let i=(e,t,i)=>{let s=b&&i!==g?i:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,s,l,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,s,l,r),this.emit("missingKey",e,u,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{i([e],a+t,r[`defaultValue${t}`]||L)})}):i(e,a,L))}g=this.extendTranslation(g,e,r,c,i),s&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${u}${h}${a}`),(s||t)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${h}${a}`:a,t?g:void 0,r))}return o?(c.res=g,c.usedParams=this.getUsedParamsDetails(r),c):g}extendTranslation(e,t,i,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){let n;i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let a=s(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);n=t&&t.length}let l=i.replace&&!s(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,i.lng||this.language||r.usedLng,i),a){let t=e.match(this.interpolator.nestingRegexp);n<(t&&t.length)&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),!1!==i.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||i.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),i)),i.interpolation&&this.interpolator.reset()}let n=i.postProcess||this.options.postProcess,a=s(n)?[n]:n;return null!=e&&a?.length&&!1!==i.applyPostProcessor&&(e=N.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,t={}){let i,r,o,n,a;return s(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(i))return;let l=this.extractFromKey(e,t),u=l.key;r=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let p=void 0!==t.count&&!s(t.count),d=p&&!t.ordinal&&0===t.count,c=void 0!==t.context&&(s(t.context)||"number"==typeof t.context)&&""!==t.context,g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
1h.forEach(e=>{this.isValidLookup(i)||(a=e,!I[`${g[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(I[`${g[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(s=>{let r;if(this.isValidLookup(i))return;n=s;let a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,s,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(s,t.count,t));let i=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&0===e.indexOf(r)&&a.push(u+e.replace(r,this.options.pluralSeparator)),a.push(u+e),d&&a.push(u+i)),c){let s=`${u}${this.options.contextSeparator||"_"}${t.context}`;a.push(s),p&&(t.ordinal&&0===e.indexOf(r)&&a.push(s+e.replace(r,this.options.pluralSeparator)),a.push(s+e),d&&a.push(s+i))}}for(;r=a.pop();)this.isValidLookup(i)||(o=r,i=this.getResource(s,e,r,t))}))})}),{res:i,usedKey:r,exactUsedKey:o,usedLng:n,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,i,s):this.resourceStore.getResource(e,t,i,s)}getUsedParamsDetails(e={}){let t=e.replace&&!s(e.replace),i=t?e.replace:e;if(t&&void 0!==e.count&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!t)for(let e of(i={...i},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete i[e];return i}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&void 0!==e[i])return!0;return!1}}class T{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=R.create("languageUtils")}getScriptPartFromCode(e){if(!(e=L(e))||0>e.indexOf("-"))return null;let 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=L(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(s(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t: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){let t;return e?(e.forEach(e=>{if(t)return;let i=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let i=this.getScriptPartFromCode(e);if(this.isSupportedCode(i))return t=i;let s=this.getLanguagePartFromCode(e);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(e=>{if(e===s||!(0>e.indexOf("-")&&0>s.indexOf("-"))&&(e.indexOf("-")>0&&0>s.indexOf("-")&&e.substring(0,e.indexOf("-"))===s||0===e.indexOf(s)&&s.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),s(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return s(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):s(e)&&o(this.formatLanguageCode(e)),i.forEac
1h(e=>{0>r.indexOf(e)&&o(this.formatLanguageCode(e))}),r}}let A={zero:0,one:1,two:2,few:3,many:4,other:5},V={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class U{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=R.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let i;let s=L("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:s,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{i=new Intl.PluralRules(s,{type:r})}catch(r){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V;if(!e.match(/-|_/))return V;let s=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(s,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,i={}){return this.getSuffixes(e,i).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let i=this.getRule(e,t);return(i||(i=this.getRule("dev",t)),i)?i.resolvedOptions().pluralCategories.sort((e,t)=>A[e]-A[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,i={}){let s=this.getRule(e,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,i))}}let M=(e,t,i,r=".",o=!0)=>{let n=g(e,t,i);return!n&&o&&s(i)&&void 0===(n=w(e,i,r))&&(n=w(t,i,r)),n},z=e=>e.replace(/\$/g,"$$$$");class K{constructor(e={}){this.logger=R.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:r,prefixEscaped:o,suffix:n,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:c,nestingSuffixEscaped:g,nestingOptionsSeparator:f,maxReplaces:y,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:x,this.escapeValue=void 0===i||i,this.useRawValueToEscape=void 0!==s&&s,this.prefix=r?m(r):o||"{{",this.suffix=n?m(n):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=p?m(p):d||m("$t("),this.nestingSuffix=c?m(c):g||m(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):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,i,r){let n,a,l;let u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=e=>{if(0>e.indexOf(this.formatSeparator)){let s=M(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(s,void 0,i,{...r,...t,interpolationkey:e}):s}let s=e.split(this.formatSeparator),o=s.shift().trim(),n=s.join(this.formatSeparator).trim();return this.format(M(t,u,o,this.options.keySeparator,this.options.ignoreJSONStructure),n,i,{...r,...t,interpolationkey:o})};this.resetRegExp();let p=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>z(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?z(this.escape(e)):z(e)}].forEach(t=>{for(l=0;n=t.regex.exec(e);){let i=n[1].trim();if(void 0===(a=h(i))){if("function"==typeof p){let t=p(e,n,r);a=s(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,i))a="";else if(d){a=n[0];continue}else this.logger.warn(`missed to pass in variable ${i} for interpolating ${e}`),a=""}else s(a)||this.useRawValueToEscape||(a=o(a));let u=t.safeValue(a);if(e=e.replace(n[0],u),d?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=n[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,i={}){let r,n,a;let l=(e,t)=>
1{let i=this.nestingOptionsSeparator;if(0>e.indexOf(i))return e;let s=e.split(RegExp(`${i}[ ]*{`)),r=`{${s[1]}`;e=s[0];let o=(r=this.interpolate(r,a)).match(/'/g),n=r.match(/"/g);((o?.length??0)%2!=0||n)&&n.length%2==0||(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${i}${r}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(a=(a={...i}).replace&&!s(a.replace)?a.replace:a).applyPostProcessor=!1,delete a.defaultValue;let h=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==h&&(u=r[1].slice(h).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,h)),(n=t(l.call(this,r[1].trim(),a),a))&&r[0]===e&&!s(n))return n;s(n)||(n=o(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),u.length&&(n=u.reduce((e,t)=>this.format(e,t,i.lng,{...i,interpolationkey:r[1].trim()}),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}let H=e=>{let t=e.toLowerCase().trim(),i={};if(e.indexOf("(")>-1){let s=e.split("(");t=s[0].toLowerCase().trim();let r=s[1].substring(0,s[1].length-1);"currency"===t&&0>r.indexOf(":")?i.currency||(i.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?i.range||(i.range=r.trim()):r.split(";").forEach(e=>{if(e){let[t,...s]=e.split(":"),r=s.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();i[o]||(i[o]=r),"false"===r&&(i[o]=!1),"true"===r&&(i[o]=!0),isNaN(r)||(i[o]=parseInt(r,10))}})}return{formatName:t,formatOptions:i}},B=e=>{let t={};return(i,s,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});let n=s+JSON.stringify(o),a=t[n];return a||(a=e(L(s),r),t[n]=a),a(i)}},_=e=>(t,i,s)=>e(L(i),s)(t);class J{constructor(e={}){this.logger=R.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let i=t.cacheInBuiltFormats?B:_;this.formats={number:i((e,t)=>{let i=new Intl.NumberFormat(e,{...t});return e=>i.format(e)}),currency:i((e,t)=>{let i=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>i.format(e)}),datetime:i((e,t)=>{let i=new Intl.DateTimeFormat(e,{...t});return e=>i.format(e)}),relativetime:i((e,t)=>{let i=new Intl.RelativeTimeFormat(e,{...t});return e=>i.format(e,t.range||"day")}),list:i((e,t)=>{let i=new Intl.ListFormat(e,{...t});return e=>i.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=B(t)}format(e,t,i,s={}){let r=t.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&0>r[0].indexOf(")")&&r.find(e=>e.indexOf(")")>-1)){let e=r.findIndex(e=>e.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,e)].join(this.formatSeparator)}return r.reduce((e,t)=>{let{formatName:r,formatOptions:o}=H(t);if(this.formats[r]){let t=e;try{let n=s?.formatParams?.[s.interpolationkey]||{},a=n.locale||n.lng||s.locale||s.lng||i;t=this.formats[r](e,a,{...o,...s,...n})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}let q=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)};class W extends ${constructor(e,t,i,s={}){super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=R.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,s.backend,s)}queueLoad(e,t,i,s){let r={},o={},n={},a={};return e.forEach(e=>{let s=!0;t.forEach(t=>{let n=`${e}|${t}`;!i.reload&&this.store.hasResourceBundle(e,t)?this.state[n]=2:this.state[n]<0||(1===this.state[n]?void 0===o[n]&&(o[n]=!0):(this.state[n]=1,s=!1,void 0===o[n]&&(o[n]=!0),void 0===r[n]&&(r[n]=!0),void 0===a[t]&&(a[t]=!0)))}),s||(n[e]=!0)}),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(n),toLoadNamespaces:Object.keys(a)}}loaded(e,t,i){let s=e.split("|"),r=s[0],o=s[1];
1t&&this.emit("failedLoading",r,o,t),!t&&i&&this.store.addResourceBundle(r,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let n={};this.queue.forEach(i=>{d(i.loaded,[r],o),q(i,e),t&&i.errors.push(t),0!==i.pendingCount||i.done||(Object.keys(i.loaded).forEach(e=>{n[e]||(n[e]={});let t=i.loaded[e];t.length&&t.forEach(t=>{void 0===n[e][t]&&(n[e][t]=!0)})}),i.done=!0,i.errors.length?i.callback(i.errors):i.callback())}),this.emit("loaded",n),this.queue=this.queue.filter(e=>!e.done)}read(e,t,i,s=0,r=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:s,wait:r,callback:o});return}this.readingCalls++;let n=(n,a)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(n&&a&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,s+1,2*r,o)},r);return}o(n,a)},a=this.backend[i].bind(this.backend);if(2===a.length){try{let i=a(e,t);i&&"function"==typeof i.then?i.then(e=>n(null,e)).catch(n):n(null,i)}catch(e){n(e)}return}return a(e,t,n)}prepareLoading(e,t,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();s(e)&&(e=this.languageUtils.toResolveHierarchy(e)),s(t)&&(t=[t]);let o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e,t=""){let i=e.split("|"),s=i[0],r=i[1];this.read(s,r,"read",void 0,void 0,(i,o)=>{i&&this.logger.warn(`${t}loading namespace ${r} for language ${s} failed`,i),!i&&o&&this.logger.log(`${t}loaded namespace ${r} for language ${s}`,o),this.loaded(e,i,o)})}saveMissing(e,t,i,s,r,o={},n=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" 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(null!=i&&""!==i){if(this.backend?.create){let a={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;(r=5===l.length?l(e,t,i,s,a):l(e,t,i,s))&&"function"==typeof r.then?r.then(e=>n(null,e)).catch(n):n(null,r)}catch(e){n(e)}else l(e,t,i,s,n,a)}e&&e[0]&&this.store.addResource(e[0],t,i,s)}}}let Z=()=>({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]),s(e[1])&&(t.defaultValue=e[1]),s(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let i=e[3]||e[2];
1Object.keys(i).forEach(e=>{t[e]=i[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Y=e=>(s(e.ns)&&(e.ns=[e.ns]),s(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),s(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Q=()=>{},G=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})};class X extends ${constructor(e={},t){if(super(),this.options=Y(e),this.services={},this.logger=R,this.modules={external:[]},G(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,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(s(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let i=Z();this.options={...i,...this.options,...Y(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation}
1,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?R.init(o(this.modules.logger),this.options):R.init(null,this.options),e=this.modules.formatter?this.modules.formatter:J;let t=new T(this.options);this.store=new P(this.options.resources,this.options);let s=this.services;s.logger=R,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new U(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),e&&(!this.options.interpolation.format||this.options.interpolation.format===i.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 K(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new W(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 F(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=Q),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let 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)});let n=r(),a=()=>{let e=(e,i)=>{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),n.resolve(i),t(e,i)};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?a():setTimeout(a,0),n}loadResources(e,t=Q){let i=t,r=s(e)?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return i();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),i(e)})}else i(null)}reloadResources(e,t,i){let s=r();return"function"==typeof e&&(i=e,e=void 0),"function"==typeof t&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=Q),this.services.backendConnector.reload(e,t,e=>{s.resolve(),i(e)}),s}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw 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&&N.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++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let i=r();
1this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},n=(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,i.resolve((...e)=>this.t(...e)),t&&t(s,(...e)=>this.t(...e))},a=t=>{e||t||!this.services.languageDetector||(t=[]);let i=s(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(i)?i:this.services.languageUtils.getBestMatchFromCodes(s(t)?[t]:t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{n(e,r)})};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(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}getFixedT(e,t,i){let r=(e,t,...s)=>{let o,n;(o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(s)):{...t}).lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||i||r.keyPrefix);let a=this.options.keySeparator||".";return o.keyPrefix&&Array.isArray(e)?n=e.map(e=>("function"==typeof e&&(e=E(e,{...this.options,...t})),`${o.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=E(e,{...this.options,...t})),n=o.keyPrefix?`${o.keyPrefix}${a}${e}`:e),this.t(n,o)};return s(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=i,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.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;let i=t.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;let o=(e,t)=>{let i=this.services.backendConnector.state[`${e}|${t}`];return -1===i||0===i||2===i};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!s||o(r,e)))}loadNamespaces(e,t){let i=r();return this.options.ns?(s(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=r();s(e)&&(e=[e]);let o=this.options.preload||[],n=e.filter(e=>0>o.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return n.length?(this.options.preload=o.concat(n),this.loadResources(e=>{i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new T(Z());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(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new X(e,t)}cloneInstance(e={},t=Q){let i=e.forkResourceStore;i&&delete e.forkResourceStore;let s={...this.options,...e,isClone:!0},r=new X(s);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i){let e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((i,s)=>(i[s]={...e[t][s]},i),e[t]),e),{});r.store=new P(e,s),r.services.resourceStore=r.store}return r.translator=new F(r.services,s),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(s,t),r.translator.options=s,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}}}let ee=X.createInstance();ee.createInstance=X.createInstance,ee.createInstance,ee.dir,ee.init,ee.loadResources,ee.reloadResources,ee.use,ee.changeLanguage,ee.getFixedT,ee.t,ee.exists,ee.setDefaultNamespace,ee.hasLoadedNamespace,ee.loadNamespaces,ee.loadLanguages}}]);

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.