PageSourceSearch

https://philaposte-web-app.vercel.app/_next/static/chunks/2ye4st4k4i9xp.js

js philaposte-web-app.vercel.app collected 2026-10-03 07:29:08 UTC 87,769 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,73981,(e,t,r)=>{!function(n,i){if("function"==typeof define&&define.amd){let n;void 0!==(n=i(e.r,r,t))&&e.v(n)}else t.exports?t.exports=i():n.numeral=i()}(e.e,function(){var e,t,r,n,i,s={},o={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function u(e,t){this._input=e,this._value=t}return(n=function(e){var t,r,o,a;if(n.isNumeral(e))t=e.value();else if(0===e||void 0===e)t=0;else if(null===e||i.isNaN(e))t=null;else if("string"==typeof e)if(l.zeroFormat&&e===l.zeroFormat)t=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)t=null;else{for(r in s)if((a="function"==typeof s[r].regexps.unformat?s[r].regexps.unformat():s[r].regexps.unformat)&&e.match(a)){o=s[r].unformat;break}t=(o=o||n._.stringToNumber)(e)}else t=Number(e)||null;return new u(e,t)}).version="2.0.6",n.isNumeral=function(e){return e instanceof u},n._=i={numberToFormat:function(e,t,r){var i,s,a,l,u,c,p,d=o[n.options.currentLocale],h=!1,f=!1,g=0,m="",y="",b=!1;if(s=Math.abs(e=e||0),n._.includes(t,"(")?(h=!0,t=t.replace(/[\(|\)]/g,"")):(n._.includes(t,"+")||n._.includes(t,"-"))&&(u=n._.includes(t,"+")?t.indexOf("+"):e<0?t.indexOf("-"):-1,t=t.replace(/[\+|\-]/g,"")),n._.includes(t,"a")&&(i=!!(i=t.match(/a(k|m|b|t)?/))&&i[1],n._.includes(t," a")&&(m=" "),t=t.replace(RegExp(m+"a[kmbt]?"),""),s>=1e12&&!i||"t"===i?(m+=d.abbreviations.trillion,e/=1e12):s<1e12&&s>=1e9&&!i||"b"===i?(m+=d.abbreviations.billion,e/=1e9):s<1e9&&s>=1e6&&!i||"m"===i?(m+=d.abbreviations.million,e/=1e6):(s<1e6&&s>=1e3&&!i||"k"===i)&&(m+=d.abbreviations.thousand,e/=1e3)),n._.includes(t,"[.]")&&(f=!0,t=t.replace("[.]",".")),a=e.toString().split(".")[0],l=t.split(".")[1],c=t.indexOf(","),g=(t.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(n._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),y=n._.toFixed(e,l[0].length+l[1].length,r,l[1].length)):y=n._.toFixed(e,l.length,r),a=y.split(".")[0],y=n._.includes(y,".")?d.delimiters.decimal+y.split(".")[1]:"",f&&0===Number(y.slice(1))&&(y="")):a=n._.toFixed(e,0,r),m&&!i&&Number(a)>=1e3&&m!==d.abbreviations.trillion)switch(a=String(Number(a)/1e3),m){case d.abbreviations.thousand:m=d.abbreviations.million;break;case d.abbreviations.million:m=d.abbreviations.billion;break;case d.abbreviations.billion:m=d.abbreviations.trillion}if(n._.includes(a,"-")&&(a=a.slice(1),b=!0),a.length<g)for(var v=g-a.length;v>0;v--)a="0"+a;return c>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===t.indexOf(".")&&(a=""),p=a+y+(m||""),h?p=(h&&b?"(":"")+p+(h&&b?")":""):u>=0?p=0===u?(b?"-":"+")+p:p+(b?"-":"+"):b&&(p="-"+p),p},stringToNumber:function(e){var t,r,n,i=o[l.currentLocale],s=e,a={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)r=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)r=null;else{for(t in r=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),a)if(n=RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),s.match(n)){r*=Math.pow(10,a[t]);break}r*=((e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1)*Number(e=e.replace(/[^0-9\.]+/g,""))}return r},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return -1!==e.indexOf(t)},insert:function(e,t,r){return e.slice(0,r)+t+e.slice(r)},reduce:function(e,t){if(this===null)throw TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw TypeError(t+" is not a function");var r,n=Object(e),i=n.length>>>0,s=0;if(3==arguments.length)r=arguments[2];else{for(;s<i&&!(s in n);)s++;if(s>=i)throw TypeError("Reduce of empty array with no initial value");r=n[s++]}for(;s<i;s++)s in n&&(r=t(r,n[s],s,n));return r},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var r=i.multiplier(t);return e>r?e:r},1)},toFixed:function(e,t,r,n){var i,s,o,a,l=e.toString().split("."),u=t-(n||0);return o=Math.pow(10,i=2===l.length?Math.min(Math.max(l[1].length,u),t):u),a=(r(e+"e+"+i)/o).toFixed(i),n>t-i&&(s=RegExp("\\.?0{1,"+(n-(t-i))+"}$"),a=a.replace(s,"")),a}},n.options=l,n.formats=s,n.locales=o,n.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},n.localeData=function(e){if(!e)return o[l.currentLocale];if(!o[e=e.toLowerCase()])throw Error("Unknown locale : "+e);return o[e]},n.reset=function(){for(var e in a)l[e]=a[e]},n.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},n.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},n.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},n.register=function(e,t,r){if(t=t.toLowerCase(),this[e+"s"][t])throw TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=r,r},n.validate=function(e,t){var r,i,s,o,a,l,u,c;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;
1if(""===e)return!1;try{u=n.localeData(t)}catch(e){u=n.localeData(n.locale())}if(s=u.currency.symbol,a=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,null!==(c=e.match(/^[^\d]+/))&&(e=e.substr(1),c[0]!==s)||null!==(c=e.match(/[^\d]+$/))&&(e=e.slice(0,-1),c[0]!==a.thousand&&c[0]!==a.million&&c[0]!==a.billion&&c[0]!==a.trillion))return!1;if(l=RegExp(i+"{2}"),!e.match(/[^\d.,]/g))if((o=e.split(r)).length>2);else if(o.length<2)return!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l);else if(1===o[0].length)return!!o[0].match(/^\d+$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/);else return!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/);return!1},n.fn=u.prototype={clone:function(){return n(this)},format:function(e,t){var r,i,o,a=this._value,u=e||l.defaultFormat;if(t=t||Math.round,0===a&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===a&&null!==l.nullFormat)i=l.nullFormat;else{for(r in s)if(u.match(s[r].regexps.format)){o=s[r].format;break}i=(o=o||n._.numberToFormat)(a,u,t)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var t=i.correctionFactor.call(null,this._value,e);return this._value=i.reduce([this._value,e],function(e,r,n,i){return e+Math.round(t*r)},0)/t,this},subtract:function(e){var t=i.correctionFactor.call(null,this._value,e);return this._value=i.reduce([e],function(e,r,n,i){return e-Math.round(t*r)},Math.round(this._value*t))/t,this},multiply:function(e){return this._value=i.reduce([this._value,e],function(e,t,r,n){var s=i.correctionFactor(e,t);return Math.round(e*s)*Math.round(t*s)/Math.round(s*s)},1),this},divide:function(e){return this._value=i.reduce([this._value,e],function(e,t,r,n){var s=i.correctionFactor(e,t);return Math.round(e*s)/Math.round(t*s)}),this},difference:function(e){return Math.abs(n(this._value).subtract(e).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,t,r){var i,s=n._.includes(t," BPS")?" ":"";return e*=1e4,t=t.replace(/\s?BPS/,""),i=n._.numberToFormat(e,t,r),n._.includes(i,")")?((i=i.split("")).splice(-1,0,s+"BPS"),i=i.join("")):i=i+s+"BPS",i},unformat:function(e){return+(1e-4*n._.stringToNumber(e)).toFixed(15)}}),t={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r="("+(r=(e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(t.suffixes.filter(function(t){return 0>e.suffixes.indexOf(t)})).join("|")).replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,s){var o,a,l,u=n._.includes(i,"ib")?t:e,c=n._.includes(i," b")||n._.includes(i," ib")?" ":"";for(o=0,i=i.replace(/\s?i?b/,"");o<=u.suffixes.length;o++)if(a=Math.pow(u.base,o),l=Math.pow(u.base,o+1),null===r||0===r||r>=a&&r<l){c+=u.suffixes[o],a>0&&(r/=a);break}return n._.numberToFormat(r,i,s)+c},unformat:function(r){var i,s,o=n._.stringToNumber(r);if(o){for(i=e.suffixes.length-1;i>=0;
1i--){if(n._.includes(r,e.suffixes[i])){s=Math.pow(e.base,i);break}if(n._.includes(r,t.suffixes[i])){s=Math.pow(t.base,i);break}}o*=s||1}return o}}),n.register("format","currency",{regexps:{format:/(\$)/},format:function(e,t,r){var i,s,o=n.locales[n.options.currentLocale],a={before:t.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:t.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(t=t.replace(/\s?\$\s?/,""),i=n._.numberToFormat(e,t,r),e>=0?(a.before=a.before.replace(/[\-\(]/,""),a.after=a.after.replace(/[\-\)]/,"")):!(e<0)||n._.includes(a.before,"-")||n._.includes(a.before,"(")||(a.before="-"+a.before),s=0;s<a.before.length;s++)switch(a.before[s]){case"$":i=n._.insert(i,o.currency.symbol,s);break;case" ":i=n._.insert(i," ",s+o.currency.symbol.length-1)}for(s=a.after.length-1;s>=0;s--)switch(a.after[s]){case"$":i=s===a.after.length-1?i+o.currency.symbol:n._.insert(i,o.currency.symbol,-(a.after.length-(1+s)));break;case" ":i=s===a.after.length-1?i+" ":n._.insert(i," ",-(a.after.length-(1+s)+o.currency.symbol.length-1))}return i}}),n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,t,r){var i=("number"!=typeof e||n._.isNaN(e)?"0e+0":e.toExponential()).split("e");return t=t.replace(/e[\+|\-]{1}0/,""),n._.numberToFormat(Number(i[0]),t,r)+"e"+i[1]},unformat:function(e){var t=n._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(t[0]),i=Number(t[1]);return i=n._.includes(e,"e-")?i*=-1:i,n._.reduce([r,Math.pow(10,i)],function(e,t,r,i){var s=n._.correctionFactor(e,t);return e*s*(t*s)/(s*s)},1)}}),n.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,t,r){var i=n.locales[n.options.currentLocale],s=n._.includes(t," o")?" ":"";return t=t.replace(/\s?o/,""),s+=i.ordinal(e),n._.numberToFormat(e,t,r)+s}}),n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,t,r){var i,s=n._.includes(t," %")?" ":"";return n.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?\%/,""),i=n._.numberToFormat(e,t,r),n._.includes(i,")")?((i=i.split("")).splice(-1,0,s+"%"),i=i.join("")):i=i+s+"%",i},unformat:function(e){var t=n._.stringToNumber(e);return n.options.scalePercentBy100?.01*t:t}}),n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,r){var n=Math.floor(e/60/60),i=Math.floor((e-60*n*60)/60),s=Math.round(e-60*n*60-60*i);return n+":"+(i<10?"0"+i:i)+":"+(s<10?"0"+s:s)},unformat:function(e){var t=e.split(":"),r=0;return 3===t.length?(r+=60*Number(t[0])*60,r+=60*Number(t[1]),r+=Number(t[2])):2===t.length&&(r+=60*Number(t[0]),r+=Number(t[1])),Number(r)}}),n})},7705,(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,s=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case o:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case y:case m:case u:return e;default:return t}}case s:return t}}}function k(e){return S(e)===d}r.AsyncMode=p,r.ConcurrentMode=d,r.ContextConsumer=c,r.ContextProvider=u,r.Element=i,r.ForwardRef=h,r.Fragment=o,r.Lazy=y,r.Memo=m,r.Portal=s,r.Profiler=l,r.StrictMode=a,r.Suspense=f,r.isAsyncMode=function(e){return k(e)||S(e)===p},r.isConcurrentMode=k,r.isContextConsumer=function(e){return S(e)===c},r.isContextProvider=function(e){return S(e)===u},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},r.isForwardRef=function(e){return S(e)===h},r.isFragment=function(e){return S(e)===o},r.isLazy=function(e){return S(e)===y},r.isMemo=function(e){return S(e)===m},r.isPortal=function(e){return S(e)===s},r.isProfiler=function(e){return S(e)===l},r.isStrictMode=function(e){return S(e)===a},r.isSuspense=function(e){return S(e)===f},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===a||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===x||e.$$typeof===_||e.$$typeof===b)},r.typeOf=S},67875,(e,t,r)=>{"use strict";
1t.exports=e.r(7705)},34980,(e,t,r)=>{"use strict";var n=e.r(67875),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return n.isMemo(e)?o:a[e.$$typeof]||i}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;t.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var o=c(r);p&&(o=o.concat(p(r)));for(var a=l(t),g=l(r),m=0;m<o.length;++m){var y=o[m];if(!s[y]&&!(n&&n[y])&&!(g&&g[y])&&!(a&&a[y])){var b=d(r,y);try{u(t,y,b)}catch(e){}}}}return t}},60121,(e,t,r)=>{"use strict";var n=e.r(91788),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=s({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return a(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),o(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};r.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},90979,(e,t,r)=>{"use strict";t.exports=e.r(60121)},71587,9007,71179,47620,98404,e=>{"use strict";let t;var r=e.i(91788);let n="u">typeof window?r.useLayoutEffect:r.useEffect;e.i(50461);let i={defaultNS:"common",errorStackTraceLimit:0,i18n:{defaultLocale:"en",locales:["en"]},get initImmediate(){return"u">typeof window},get initAsync(){return"u">typeof window},interpolation:{escapeValue:!1},load:"currentOnly",localeExtension:"json",localePath:"./public/locales",localeStructure:"{{lng}}/{{ns}}",react:{useSuspense:!1},reloadOnPrerender:!1,serializeConfig:!0,use:[]},s=["backend","detection"],o=e=>"string"==typeof e,a=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},l=e=>null==e?"":String(e),u=/###/g,c=e=>e&&e.includes("###")?e.replace(u,"."):e,p=e=>!e||o(e),d=(e,t,r)=>{let n=o(t)?t.split("."):t,i=0;for(;i<n.length-1;){if(p(e))return{};let t=c(n[i]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return p(e)?{}:{obj:e,k:c(n[i])}},h=(e,t,r)=>{let{obj:n,k:i}=d(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let s=t[t.length-1],o=t.slice(0,t.length-1),a=d(e,o,Object);for(;void 0===a.obj&&o.length;)s=`${o[o.length-1]}.${s}`,a=d(e,o=o.slice(0,o.length-1),Object),a?.obj&&void 0!==a.obj[`${a.k}.${s}`]&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=r},f=(e,t)=>{let{obj:r,k:n}=d(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},g=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(Object.prototype.hasOwnProperty.call(e,n)?o(e[n])||e[n]instanceof String||o(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):g(e[n],t[n],r):e[n]=t[n]);return e},m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},y=e=>o(e)?e.replace(/[&<>"'\/]/g,e=>m[e]):e,b=[" ",",","?","!",";"],v=new class{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 r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),x=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let s="";for(let o=e;o<n.length;++o)if(o!==e&&(s+=r),s+=n[o],void 0!==(t=i[s])){if(["string","number","boolean"].includes(typeof t)&&o<n.length-1)continue;e+=o-e+1;break}i=t}return i},_=e=>e?.replace(/_/g,"-"),S={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 k{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||S,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,r,n){return n&&!this.debug?null:(e=e.map(e=>o(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),o(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new k(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new k(this.logger,e)}}var $=new k;class L{constructor(){this.observers={}}
1on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};return this.on(e,r),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n<r;n++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,n])=>{for(let i=0;i<n;i++)r(e,...t)})}}class O extends L{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.includes(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,r,n={}){let i,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):o(r)&&s?i.push(...r.split(s)):i.push(r)));let l=f(this.data,i);return(!l&&!t&&!r&&e.includes(".")&&(e=i[0],t=i[1],r=i.slice(2).join(".")),!l&&a&&o(r))?x(this.data?.[e]?.[t],r,s):l}addResource(e,t,r,n,i={silent:!1}){let s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[e,t];r&&(o=o.concat(s?r.split(s):r)),e.includes(".")&&(o=e.split("."),n=t,t=o[1]),this.addNamespaces(t),h(this.data,o,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(let n in r)(o(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,s={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(".")&&(o=e.split("."),n=r,r=t,t=o[1]),this.addNamespaces(t);let a=f(this.data,o)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?g(a,r,i):a={...a,...r},h(this.data,o,a),s.silent||this.emit("added",e,t,r)}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 w={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};let N=Symbol("i18next/PATH_KEY");function C(e,t){let r,n,i,{[N]:s}=e((n=[],(i=Object.create(null)).get=(e,t)=>(r?.revoke?.(),t===N)?n:(n.push(t),(r=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy)),o=t?.keySeparator??".",a=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(s.length>1&&a){let e=t?.ns,r=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(r&&(l?r:r.length>1?r.slice(1):[]).includes(s[0]))return`${s[0]}${a}${s.slice(1).join(o)}`}return s.join(o)}let E=e=>!o(e)&&"boolean"!=typeof e&&"number"!=typeof e;class P extends L{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=$.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let r={...t};if(null==e)return!1;let n=this.resolve(e,r);if(n?.res===void 0)return!1;let i=E(n.res);return!1!==r.returnObjects||!i}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],s=r&&e.includes(r),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let n=b.filter(e=>!t.includes(e)&&!r.includes(e));if(0===n.length)return!0;let i=v.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),s=!i.test(e);if(!s){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(s=!0)}return s})(e,r,n);if(s&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o(i)?[i]:i};let s=e.split(r);(r!==n||r===n&&this.options.ns.includes(s[0]))&&(i=s.shift()),e=s.join(n)}return{key:e,namespaces:o(i)?[i]:i}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=C(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?C(e,{...this.options,...n}):String(e));let i=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),u=l[l.length-1],c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let p=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p?.toLowerCase()==="cimode")return d?i?{res:`${u}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:a;let h=this.resolve(e,n),f=h?.res,g=h?.usedKey||a,m=h?.exactUsedKey||a,y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==n.count&&!o(n.count),x=P.hasDefaultValue(n),_=v?this.pluralResolver.getSuffix(p,n.count,n):"",S=n.ordinal&&v?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",k=v&&!n.ordinal&&0===n.count,$=k&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${S}`]||n.defaultValue,L=f;b&&!f&&x&&(L=$);let O=E(L),w=Object.prototype.toString.apply(L);if(b&&L&&O&&!["[object Number]","[object Function]","[object RegExp]"].includes(w)&&!(o(y)&&Array.isArray(L))
1){if(!n.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(g,L,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(h.res=e,h.usedParams=this.getUsedParamsDetails(n),h):e}if(s){let e=Array.isArray(L),t=e?[]:{},r=e?m:g;for(let e in L)if(Object.prototype.hasOwnProperty.call(L,e)){let i=`${r}${s}${e}`;x&&!f?t[e]=this.translate(i,{...n,defaultValue:E($)?$[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...n,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=L[e])}f=t}}else if(b&&o(y)&&Array.isArray(f))(f=f.join(y))&&(f=this.extendTranslation(f,e,n,r));else{let t=!1,i=!1;!this.isValidLookup(f)&&x&&(t=!0,f=$),this.isValidLookup(f)||(i=!0,f=a);let o=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:f,l=x&&$!==f&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",p,u,v&&!l?`${a}${this.pluralResolver.getSuffix(p,n.count,n)}`:a,l?$:f),s){let e=this.resolve(a,{...n,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,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=x&&r!==f?r:o;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,i,l,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,i,l,n),this.emit("missingKey",e,u,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);k&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,n[`defaultValue${t}`]||$)})}):r(e,a,$))}f=this.extendTranslation(f,e,n,h,r),i&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${u}${c}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${a}`:a,t?f:void 0,n))}return i?(h.res=f,h.usedParams=this.getUsedParamsDetails(n),h):f}extendTranslation(e,t,r,n,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let s;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let a=o(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&!o(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let s=r.postProcess||this.options.postProcess,a=o(s)?[s]:s;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=w.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,i,s,a;return o(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?C(e,{...this.options,...t}
1):e)),e.forEach(e=>{if(this.isValidLookup(r))return;let l=this.extractFromKey(e,t),u=l.key;n=u;let c=l.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let p=void 0!==t.count&&!o(t.count),d=p&&!t.ordinal&&0===t.count,h=void 0!==t.context&&(o(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(r)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${f.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!!!")),f.forEach(n=>{let o;if(this.isValidLookup(r))return;s=n;let a=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,u,n,e,t);else{let e;p&&(e=this.pluralResolver.getSuffix(n,t.count,t));let r=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&e.startsWith(i)&&a.push(u+e.replace(i,this.options.pluralSeparator)),a.push(u+e),d&&a.push(u+r)),h){let n=`${u}${this.options.contextSeparator||"_"}${t.context}`;a.push(n),p&&(t.ordinal&&e.startsWith(i)&&a.push(n+e.replace(i,this.options.pluralSeparator)),a.push(n+e),d&&a.push(n+r))}}for(;o=a.pop();)this.isValidLookup(r)||(i=o,r=this.getResource(n,e,o,t))}))})}),{res:r,usedKey:n,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){let t=e.replace&&!o(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class j{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$.create("languageUtils")}getScriptPartFromCode(e){if(!(e=_(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=_(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(o(e)&&e.includes("-")){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.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>e===n||(!!e.includes("-")||!!n.includes("-"))&&!!(e.includes("-")&&!n.includes("-")&&e.slice(0,e.indexOf("-"))===n||e.startsWith(n)&&n.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),o(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];
1return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return o(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):o(e)&&i(this.formatLanguageCode(e)),r.forEach(e=>{n.includes(e)||i(this.formatLanguageCode(e))}),n}}let R={zero:0,one:1,two:2,few:3,many:4,other:5},F={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class T{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=$.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let r,n=_("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:n,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{r=new Intl.PluralRules(n,{type:i})}catch(i){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),F;if(!e.match(/-|_/))return F;let n=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(n,t)}return this.pluralRulesCache[s]=r,r}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>R[e]-R[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){let n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let A=(e,t,r,n=".",i=!0)=>{let s,a=void 0!==(s=f(e,r))?s:f(t,r);return!a&&i&&o(r)&&void 0===(a=x(e,r,n))&&(a=x(t,r,n)),a},I=e=>e.replace(/\$/g,"$$$$");class M{constructor(e={}){this.logger=$.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:r,useRawValueToEscape:n,prefix:i,prefixEscaped:s,suffix:o,suffixEscaped:a,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:y,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"{{",this.suffix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=p?p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):d||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==b&&b,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,r,n){let i,s,a,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=A(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),s=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(A(t,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),o,r,{...n,...t,interpolationkey:s})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let p=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=n?.interpolation?.ski
1pOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;i=t.regex.exec(e);){let r=i[1].trim();if(void 0===(s=c(r)))if("function"==typeof p){let t=p(e,i,n);s=o(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),s="";else o(s)||this.useRawValueToEscape||(s=l(s));let u=t.safeValue(s);if(e=e.replace(i[0],I(u)),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,i,s,a=(e,t)=>{let r=this.nestingOptionsSeparator;if(!e.includes(r))return e;let n=e.split(RegExp(`${r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),i=`{${n[1]}`;e=n[0];let o=(i=this.interpolate(i,s)).match(/'/g),a=i.match(/"/g);((o?.length??0)%2!=0||a)&&(a?.length??0)%2==0||(i=i.replace(/'/g,'"'));try{s=JSON.parse(i),t&&(s={...t,...s})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let u=[];(s=(s={...r}).replace&&!o(s.replace)?s.replace:s).applyPostProcessor=!1,delete s.defaultValue;let c=/{.*}/s.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==c&&(u=n[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,c)),(i=t(a.call(this,n[1].trim(),s),s))&&n[0]===e&&!o(i))return i;o(i)||(i=l(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),u.length&&(i=u.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}let B=e=>{let t={};return(r,n,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});let o=n+JSON.stringify(s),a=t[o];return a||(a=e(_(n),i),t[o]=a),a(r)}},D=e=>(t,r,n)=>e(_(r),n)(t);class V{constructor(e={}){this.logger=$.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let r=t.cacheInBuiltFormats?B:D;this.formats={number:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=B(t)}format(e,t,r,n={}){if(!t||null==e)return e;let i=t.split(this.formatSeparator),s=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;s.push(t)}return s.reduce((e,t)=>{let{formatName:i,formatOptions:s}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.includes("(")){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].slice(0,-1);"currency"!==t||i.includes(":")?"relativetime"!==t||i.includes(":")?i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),s=t.trim();r[s]||(r[s]=i),"false"===i&&(r[s]=!1),"true"===i&&(r[s]=!0),isNaN(i)||(r[s]=parseInt(i,10))}}):r.range||(r.range=i.trim()):r.currency||(r.currency=i.trim())}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{let o=n?.formatParams?.[n.interpolationkey]||{},a=o.locale||o.lng||n.locale||n.lng||r;t=this.formats[i](e,a,{...s,...n,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class z extends L{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=$.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){let i={},s={},o={},a={};
1return e.forEach(e=>{let n=!0;t.forEach(t=>{let o=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===s[o]&&(s[o]=!0):(this.state[o]=1,n=!1,void 0===s[o]&&(s[o]=!0),void 0===i[o]&&(i[o]=!0),void 0===a[t]&&(a[t]=!0)))}),n||(o[e]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(a)}}loaded(e,t,r){let n=e.split("|"),i=n[0],s=n[1];t&&this.emit("failedLoading",i,s,t),!t&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let o={};this.queue.forEach(r=>{((e,t,r,n)=>{let{obj:i,k:s}=d(e,t,Object);i[s]=i[s]||[],i[s].push(r)})(r.loaded,[i],s),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{o[e]||(o[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,s){if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:s});this.readingCalls++;let o=(o,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)}o&&a&&n<this.maxRetries?setTimeout(()=>{this.read(e,t,r,n+1,2*i,s)},i):s(o,a)},a=this.backend[r].bind(this.backend);if(2===a.length){try{let r=a(e,t);r&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}return}return a(e,t,o)}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();o(e)&&(e=this.languageUtils.toResolveHierarchy(e)),o(t)&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){let r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,s),this.loaded(e,r,s)})}saveMissing(e,t,r,n,i,s={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" 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!!!");if(null!=r&&""!==r){if(this.backend?.create){let a={...s,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,a):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else l(e,t,r,n,o,a)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let U=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),o(e[1])&&(t.defaultValue=e[1]),o(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];
1Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),K=e=>(o(e.ns)&&(e.ns=[e.ns]),o(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),o(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),H=()=>{};class W extends L{constructor(e={},t){if(super(),this.options=K(e),this.services={},this.logger=$,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(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&&(o(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let r=U();this.options={...r,...this.options,...K(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation}
1,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);let n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?$.init(n(this.modules.logger),this.options):$.init(null,this.options),e=this.modules.formatter?this.modules.formatter:V;let t=new j(this.options);this.store=new O(this.options.resources,this.options);let r=this.services;r.logger=$,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new T(t,{prepend:this.options.pluralSeparator}),e&&(r.formatter=n(e),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new M(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new z(n(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(r.languageDetector=n(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=n(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new P(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=H),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 i=a(),s=()=>{let e=(e,r)=>{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),i.resolve(r),t(e,r)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),i}loadResources(e,t=H){let r=t,n=o(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};n?t(n):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),r(e)})}else r(null)}reloadResources(e,t,r){let n=a();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=H),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}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&&w.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"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=a();
1this.emit("languageChanging",e);let n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,s)=>{s?this.isLanguageChangingTo===e&&(n(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},s=t=>{e||t||!this.services.languageDetector||(t=[]);let r=o(t)?t:t&&t[0],s=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(o(t)?[t]:t);s&&(this.language||n(s),this.translator.language||this.translator.changeLanguage(s),this.services.languageDetector?.cacheUserLanguage?.(s)),this.loadResources(s,e=>{i(e,s)})};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(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),r}getFixedT(e,t,r,n){let i=n?.scopeNs,s=(e,t,...n)=>{let o,a;(o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t}).lng=o.lng||s.lng,o.lngs=o.lngs||s.lngs;let l=void 0!==o.ns&&null!==o.ns;o.ns=o.ns||s.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||s.keyPrefix);let u={...this.options,...o};Array.isArray(i)&&!l&&(u.ns=i),"function"==typeof o.keyPrefix&&(o.keyPrefix=C(o.keyPrefix,u));let c=this.options.keySeparator||".";return o.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=C(e,u)),`${o.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=C(e,u)),a=o.keyPrefix?`${o.keyPrefix}${c}${e}`:e),this.t(a,o)};return o(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=r,s}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 r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let s=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,s);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,e)&&(!n||s(i,e)))}loadNamespaces(e,t){let r=a();return this.options.ns?(o(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=a();o(e)&&(e=[e]);let n=this.options.preload||[],i=e.filter(e=>!n.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=n.concat(i),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(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 j(U());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"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let r=new W(e,t);return r.createInstance=W.createInstance,r}cloneInstance(e={},t=H){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new W(n);if((void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new O(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{}),n),i.services.resourceStore=i.store),e.interpolation){let t={...U().interpolation,...this.options.interpolation,...e.interpolation},r={...n,interpolation:t};i.services.interpolator=new M(r)}return i.translator=new P(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let q=W.createInstance();q.createInstance,q.dir,q.init,q.loadResources,q.reloadResources,q.use,q.changeLanguage,q.getFixedT,q.t,q.exists,q.setDefaultNamespace,q.hasLoadedNamespace,q.loadNamespaces,q.loadLanguages;var Z=e.i(34980);let J={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,"!doctype":!0,"!DOCTYPE":!0},Y=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function G(e){let t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(J[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){let t=e.indexOf("-->");return{type:"comment",comment:-1!==t?e.slice(4,t):""}}let n=new RegExp(Y),i=null;for(;null!==(i=n.exec(e));)if(i[0].trim())if(i[1]){let e=i[1].trim(),r=[e,null],s=e.indexOf("=");s>-1&&(r=[e.slice(0,s),e.slice(s+1)]),t.attrs[r[0]]=r[1],n.lastIndex--}else i[2]&&(t.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}let Q=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,X=/<\/?([^\s]+?)[/\s>]/,ee=/^\s*$/,et=/^(script|style)$/i,er=Object.create(null);var en=function(e,t){let r,n,i,s=t&&t.components||er,o=t&&t.allowedTags,a=!1;if(o){let t,r="function"==typeof o?o:function(e){return o.indexOf(e)>-1},n="",i=0;for(Q.lastIndex=0;t=Q.exec(e);){let s=t[0];n+=e.slice(i,t.index);let o=s.match(X);s.startsWith("<!--")||o&&r(o[1])?(n+=s,i=t.index+s.length):(a=!0,n+="\0",Q.lastIndex=i=t.index+1)}e=n+e.slice(i)}let l=[],u=[],c=-1,p=!1,d=0;if(0!==e.indexOf("<")){let t=e.indexOf("<");l.push({type:"text",content:-1===t?e:e.substring(0,t)})}let h=[];for(;i=Q.exec(e);)h.push(i);return h.forEach(function(e,t){let r=e[0];if(!r||r.startsWith("<!--"))return;let n=0,i=0,s=-1,o=null;for(let e=0;e<r.length;e++){let t=r.charAt(e);o?t===o&&(o=null):'"'===t||"'"===t?o=t:"<"===t?2==++n&&(s=e):">"===t&&i++}let a=s>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(s+1));if(n>i&&a){let e=r.substring(0,s),n=r.substring(e.length);h[t][0]=n,h[t].index+=e.length}}),h.forEach(function(t,i){let o,a,f=t[0];if(!f)return;let g=t.index;if(g<d)return;if(p)if(f!=="</"+r.name+">")return;else p=!1;let m="/"!==f.charAt(1),y=f.startsWith("<!--"),b=g+f.length,v=e.charAt(b),x=h[i+1];if("<"===v&&x){let t=e.substring(b,x.index);o=t.split("<").length>t.split(">").length}if(y){let t=G(f);if(c<0)return l.push(t),l;(a=u[c]).children.push(t);let r=e.slice(b,x?x.index:void 0);return r.length>0&&a.children.push({type:"text",content:r}),l}if(m){c++,"tag"===(r=G(f)).type&&s[r.name]&&(r.type="component",p=!0);let t=!1;if(!p&&!r.voidElement&&et.test(r.name)){t=!0,n||(n=e.toLowerCase());let i=n.indexOf("</"+r.name.toLowerCase()+">",b),s=-1===i?e.length:i,o=e.slice(b,s);o&&r.children.push({type:"text",content:o}),d=s}r.voidElement||p||t||!v||"<"===v||r.children.push({type:"text",content:e.slice(b,x?x.index:void 0)}),0===c&&l.push(r),(a=u[c-1])&&a.children.push(r),u[c]=r}if((!m||r.voidElement)&&(c>-1&&(r.voidElement||r.name===f.slice(2,-1))&&(r=-1==--c?l:u[c]),!p&&("<"!==v||o)&&v)){a=-1===c?l:u[c].children;let t=x?x.index:-1,r=e.slice(b,-1===t?void 0:t);ee.test(r)&&(r=" "),(t>-1&&c+a.length>=0||" "!==r)&&a.push({type:"text",content:r})}}),a&&function e(t){t.forEach(function(t){if("text"===t.type){t.content=t.content.split("\0").join("<");return}if("comment"===t.type){t.comment=t.comment.split("\0").join("<");return}for(let e in t.attrs){let r=t.attrs[e];"string"==typeof r&&r.indexOf("\0")>
1-1&&(t.attrs[e]=r.split("\0").join("<"))}t.children.length&&e(t.children)})}(l),l};let ei=(e,t,r,n)=>{let i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);ec(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},es={},eo=(e,t,r,n)=>{ec(r)&&es[r]||(ec(r)&&(es[r]=new Date),ei(e,t,r,n))},ea=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},el=(e,t,r)=>{e.loadNamespaces(t,ea(e,r))},eu=(e,t,r,n)=>{if(ec(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return el(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,ea(e,n))},ec=e=>"string"==typeof e,ep=e=>"object"==typeof e&&null!==e,ed=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eh={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ef=e=>eh[e],eg=e=>e.replace(ed,ef),em={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:eg,transDefaultProps:void 0},ey=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},eb=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?ev(t):t},ev=e=>Array.isArray(e)?e:[e],ex=(e,t,n,i)=>{if(!e)return"";let s="",o=ev(e),a=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return o.forEach((e,o)=>{if(ec(e)){s+=`${e}`;return}if((0,r.isValidElement)(e)){let{props:r,type:l}=e,u=Object.keys(r).length,c=a.indexOf(l)>-1,p=r.children;if(!p&&c&&!u){s+=`<${l}/>`;return}if(!p&&(!c||u)||r.i18nIsDynamicList){s+=`<${o}></${o}>`;return}if(c&&u<=1){let e=ec(p)?p:ex(p,t,n,i);s+=`<${l}>${e}</${l}>`;return}let d=ex(p,t,n,i);s+=`<${o}>${d}</${o}>`;return}if(null===e)return void ei(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:i});if(ep(e)){let{format:t,...r}=e,o=Object.keys(r);if(1===o.length){let e=t?`${o[0]}, ${t}`:o[0];s+=`{{${e}}}`;return}ei(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:i,child:e});return}ei(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:i,child:e})}),s},e_=(e,t,n)=>{let i=e.key||t,s=(0,r.cloneElement)(e,{key:i});return!s.props||!s.props.children||0>n.indexOf(`${t}/>`)&&0>n.indexOf(`${t} />`)?s:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,s)},{key:i})},eS=(0,r.createContext)();class ek{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}e.s(["Trans",0,function({children:e,count:n,parent:i,i18nKey:s,context:o,tOptions:a={},values:l,defaults:u,components:c,ns:p,i18n:d,t:h,shouldUnescape:f,...g}){let{i18n:m,defaultNS:y}=(0,r.useContext)(eS)||{},b=d||m||t,v=h||b?.t.bind(b);return function({children:e,count:n,parent:i,i18nKey:s,context:o,tOptions:a={},values:l,defaults:u,components:c,ns:p,i18n:d,t:h,shouldUnescape:f,...g}){let m=d||t;if(!m)return eo(m,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.",{i18nKey:s}),e;let y=h||m.t.bind(m)||(e=>e),b={...em,...m.options?.react},v=p||y.ns||m.options?.defaultNS;v=ec(v)?[v]:v||["translation"];let{transDefaultProps:x}=b,_=x?.tOptions?{...x.tOptions,...a}:a,S=f??x?.shouldUnescape,k=x?.values?{...x.values,...l}:l,$=x?.components?{...x.components,...c}:c,L=ex(e,b,m,s),O=u||_?.defaultValue||L||b.transEmptyNodeValue||("function"==typeof s?C(s):s),{hashTransKey:w}=b,N=s||(w?w(L||O):L||O);l=m.options?.interpolation?.defaultVariables?k&&Object.keys(k).length>0?{...k,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables}:k;let E=(e=>{let t={};if(!e)return t;let n=e=>
1{ev(e).forEach(e=>{ec(e)||(ey(e)?n(eb(e)):ep(e)&&!(0,r.isValidElement)(e)&&Object.assign(t,e))})};return n(e),t})(e);E&&"number"==typeof E.count&&void 0===n&&(n=E.count);let P=!l&&(void 0===n||m.options?.interpolation?.alwaysFormat)&&e?{interpolation:{..._.interpolation,prefix:"#$?",suffix:"?$#"}}:_.interpolation,j={..._,context:o||_.context,count:n,...l,...P,defaultValue:O,ns:v},R=N?y(N,j):O;R===N&&O&&(R=O);let F=((e,t,r,n)=>{if(!e)return null;if(Array.isArray(e))return e.map((e,r)=>e_(e,r,t));if(ep(e)){let r;return r={},Object.keys(e).forEach(n=>{Object.assign(r,{[n]:e_(e[n],n,t)})}),r}return eo(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null})($,R,m,s),T=F||e,A=null;!(!ep(F)||Array.isArray(F))&&Object.keys(F).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(A=F,T=e);let I=((e,t,n,i,s,o,a)=>{if(""===n)return[];let l=s.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(l.map(e=>`<${e}`).join("|")).test(n);if(!e&&!t&&!u&&!a)return[n];let c=t??{},p=e=>{ev(e).forEach(e=>{ec(e)||(ey(e)?p(eb(e)):ep(e)&&!(0,r.isValidElement)(e)&&Object.assign(c,e))})};p(e);let d=Object.keys(c),h=en(`<0>${n}</0>`,{allowedTags:e=>/^\d+$/.test(e)||l.indexOf(e)>-1||d.indexOf(e)>-1}),f={...c,...o},g=(e,t,n)=>{let i=eb(e),s=y(i,t.children,n);return Array.isArray(i)&&i.every(r.isValidElement)&&0===s.length||e.props?.i18nIsDynamicList?i:s},m=(e,t,n,i,s)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:i},s?void 0:t))):n.push(...r.Children.map([e],e=>{if(e.type===r.Fragment||e.props?.i18nIsDynamicList!==void 0){let n={key:i};return e&&e.props&&Object.keys(e.props).forEach(t=>{"children"!==t&&"i18nIsDynamicList"!==t&&(n[t]=e.props[t])}),(0,r.createElement)(e.type,n,s?null:t)}let n={key:i};return e&&e.props&&Object.keys(e.props).forEach(t=>{"ref"!==t&&"children"!==t&&(n[t]=e.props[t])}),(0,r.cloneElement)(e,n,s?null:t)}))},y=(e,n,o)=>{let c=ev(e),p=ev(n),d={};return p.reduce((e,n,p)=>{let h=n.children?.[0]?.content&&i.services.interpolator.interpolate(n.children[0].content,f,i.language);if("tag"===n.type){var b,v;let x,_=c[parseInt(n.name,10)];!_&&t&&(_=t[n.name]),1!==o.length||_||(_=o[0][n.name]),_||(_={});let S={...n.attrs};a&&Object.keys(S).forEach(e=>{let t=S[e];ec(t)&&(S[e]=eg(t))});let k=0!==Object.keys(S).length?(b={props:S},(x={...v=_}).props={...v.props,...b.props},x):_,$=(0,r.isValidElement)(k),L=$&&ey(n,!0)&&!n.voidElement,O=u&&ep(k)&&k.dummy&&!$,w=ep(t)&&Object.hasOwnProperty.call(t,n.name);if(ec(k)){let t=i.services.interpolator.interpolate(k,f,i.language);e.push(t)}else if(ey(k)||L){let t=g(k,n,o);m(k,t,e,p)}else if(O)m(k,y(c,n.children,o),e,p);else if(Number.isNaN(parseFloat(n.name)))if(w){let t=g(k,n,o);m(k,t,e,p,n.voidElement)}else if(s.transSupportBasicHtmlNodes&&l.indexOf(n.name)>-1)if(n.voidElement)e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`}));else{let t,i=d[n.name]||0;d[n.name]=i+1;let s=0;for(let e=0;e<c.length;e+=1){let o=c[e];if((0,r.isValidElement)(o)&&o.type===n.name){if(s===i){t=o;break}s+=1}}let a=y(t?ev(eb(t)):c,n.children,o);e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`},a))}else if(n.voidElement)e.push(`<${n.name} />`);else{let t=y(c,n.children,o);e.push(`<${n.name}>${t}</${n.name}>`)}else if(ep(k)&&!$){let t=n.children[0]?h:null;t&&e.push(t)}else m(k,h,e,p,1!==n.children.length||!h)}else if("text"===n.type){let t=s.transWrapTextNodes,o="function"==typeof s.unescape?s.unescape:em.unescape,l=a?o(i.services.interpolator.interpolate(n.content,f,i.language)):i.services.interpolator.interpolate(n.content,f,i.language);t?e.push((0,r.createElement)(t,{key:`${n.name}-${p}`},l)):e.push(l)}return e},[])};return eb(y([{dummy:!0,children:e||[]}],h,ev(e||[]))[0])})(T,A,R,m,b,j,S),M=i??b.defaultTransParent;return M?(0,r.createElement)(M,g,I):I}({children:e,count:n,parent:i,i18nKey:s,context:o,tOptions:a,values:l,defaults:u,components:c,ns:p||v?.ns||y||b?.options?.defaultNS,i18n:b,t:h,shouldUnescape:f,...g})}],9007);let e$={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;
1":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"},eL=RegExp(Object.keys(e$).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var eO=e.i(90979);let ew={t:(e,t)=>{if(ec(t))return t;if(ep(t)&&ec(t.defaultValue))return t.defaultValue;if("function"==typeof e)return"";if(Array.isArray(e)){let t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},eN=()=>()=>{};function eC({i18n:e,defaultNS:t,children:n}){let i=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(eS.Provider,{value:i},n)}e.s(["useTranslation",0,(e,n={})=>{let{i18n:i}=n,{i18n:s,defaultNS:o}=(0,r.useContext)(eS)||{},a=i||s||t;a&&!a.reportNamespaces&&(a.reportNamespaces=new ek),a||eo(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");let l=(0,r.useMemo)(()=>({...em,...a?.options?.react,...n}),[a,n]),{useSuspense:u,keyPrefix:c}=l,p=e||o||a?.options?.defaultNS,d=ec(p)?[p]:p||["translation"],h=(0,r.useMemo)(()=>d,d);a?.reportNamespaces?.addUsedNamespaces?.(h);let f=(0,r.useRef)(0),g=(0,r.useCallback)(e=>{if(!a)return eN;let{bindI18n:t,bindI18nStore:r}=l,n=()=>{f.current+=1,e()};return t&&a.on(t,n),r&&a.store.on(r,n),()=>{t&&t.split(" ").forEach(e=>a.off(e,n)),r&&r.split(" ").forEach(e=>a.store.off(e,n))}},[a,l]),m=(0,r.useRef)(),y=(0,r.useCallback)(()=>{if(!a)return ew;let e=!!(a.isInitialized||a.initializedStoreOnce)&&h.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
1isLanguageChangingTo,e))return!1}}):(eo(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,a,l)),t=n.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===t&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(t,"fallback"===l.nsMode?h:h[0],c,{scopeNs:h}),ready:e,lng:t,keyPrefix:c,revision:r};return m.current=s,s},[a,h,c,l,n.lng]),[b,v]=(0,r.useState)(0),{t:x,ready:_}=(0,eO.useSyncExternalStore)(g,y,y);(0,r.useEffect)(()=>{if(a&&!_&&!u){let e=()=>v(e=>e+1);n.lng?eu(a,n.lng,h,e):el(a,h,e)}},[a,n.lng,h,_,u,b]);let S=a||{},k=(0,r.useRef)(null),$=(0,r.useRef)(),L=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let r=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return r},O=(0,r.useMemo)(()=>{let e=S?.language,t=S;k.current&&k.current.__original===S?$.current!==e?(k.current=t=L(S),$.current=e):t=k.current:(k.current=t=L(S),$.current=e);let r=_||u?x:(...e)=>(eo(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),x(...e)),n=[r,t,_];return n.t=r,n.i18n=t,n.ready=_,n},[x,S,_,S.resolvedLanguage,S.language,S.languages]);if(a&&u&&!_)throw new Promise(e=>{let t=()=>e();n.lng?eu(a,n.lng,h,t):el(a,h,t)});return O}],71179),e.s([],47620);let eE=null,eP=(e,t)=>{if(t&&e.isInitialized)for(let r of Object.keys(t))for(let n of Object.keys(t[r]))e?.store?.data&&e.store.data[r]&&e.store.data[r][n]||e.addResourceBundle(r,n,t[r][n],!0,!0)};e.s(["appWithTranslation",0,(e,t=null)=>(0,Z.default)(o=>{let{_nextI18Next:a}=o.pageProps||{},l=a?.initialLocale??o?.router?.locale,u=a?.ns,c=(0,r.useRef)(null),p=(0,r.useMemo)(()=>{if(!a&&!t)return null;let e=t??a?.userConfig;if(!e)throw Error("appWithTranslation was called without a next-i18next config");if(!e?.i18n)throw Error("appWithTranslation was called without config.i18n");if(!e?.i18n?.defaultLocale)throw Error("config.i18n does not include a defaultLocale property");let{initialI18nStore:r}=a||{},n=t?.resources??r;l||(l=e.i18n.defaultLocale);let o=c.current;if(o)eP(o,n);else{var p;let t,r;eP(o=(void 0===(p={...((e,t={})=>{if("string"!=typeof e?.lng)throw Error("config.lng was not passed into createConfig");let{i18n:r,...n}=e,{i18n:o,...a}=i,l={...a,...n,...o,...r},{defaultNS:u,lng:c,localeExtension:p,localePath:d,nonExplicitSupportedLngs:h}=l,f=l.locales.filter(e=>"default"!==e);if("cimode"===c)return l;void 0===l.fallbackLng&&(l.fallbackLng=l.defaultLocale,"default"===l.fallbackLng&&([l.fallbackLng]=f));let g=e?.interpolation?.prefix,m=e?.interpolation?.suffix,y=g??"{{",b=m??"}}";"string"!=typeof e?.localeStructure&&(g||m)&&(l.localeStructure=`${y}lng${b}/${y}ns${b}`);let{fallbackLng:v,localeStructure:x}=l;if(h){let e=(e,t)=>{let[r]=t.split("-");return e[t]=[r],e};if("string"==typeof v)l.fallbackLng=l.locales.filter(e=>e.includes("-")).reduce(e,{default:[v]});else if(Array.isArray(v))l.fallbackLng=l.locales.filter(e=>e.includes("-")).reduce(e,{default:v});else if("object"==typeof v)l.fallbackLng=Object.entries(l.fallbackLng).reduce((e,[t,r])=>(e[t]=t.includes("-")?Array.from(new Set([t.split("-")[0],...r])):r,e),v);else if("function"==typeof v)throw Error("If nonExplicitSupportedLngs is true, no functions are allowed for fallbackLng")}return e?.use?.filter(Boolean).some(e=>"backend"===e.type)||("string"==typeof d?l.backend={addPath:`${d}/${x}.missing.${p}`,loadPath:`${d}/${x}.${p}`}:"function"==typeof d&&(l.backend={addPath:(e,t)=>d(e,t,!0),loadPath:(e,t)=>d(e,t,!1)})),"string"==typeof l.ns||Array.isArray(l.ns)||(l.ns=[u]),s.forEac
1h(t=>{e[t]&&(l[t]={...l[t],...e[t]})}),l})({...e,lng:l}),lng:l,...u&&{ns:u},resources:n}).ns&&(p.ns=[]),(r=q.createInstance(p)).isInitialized?t=Promise.resolve(q.t):(p?.use?.filter(Boolean).forEach(e=>r.use(e)),"function"==typeof p.onPreInitI18next&&p.onPreInitI18next(r),t=r.init(p)),{i18n:r,initPromise:t}).i18n,n),eE=o,c.current=o}return o},[a,l,u]);return n(()=>{p&&l&&p.changeLanguage(l)},[p,l]),null!==p?r.default.createElement(eC,{i18n:p},r.default.createElement(e,o)):r.default.createElement(e,{key:l,...o})},e),"globalI18n",()=>eE],98404),e.s([],71587)},41224,e=>{e.v({button:"Button-module-scss-module__LCpCZW__button",button__gray:"Button-module-scss-module__LCpCZW__button__gray",button__green:"Button-module-scss-module__LCpCZW__button__green",button__icon:"Button-module-scss-module__LCpCZW__button__icon",button__light:"Button-module-scss-module__LCpCZW__button__light",button__primary:"Button-module-scss-module__LCpCZW__button__primary",button__red:"Button-module-scss-module__LCpCZW__button__red",button__secondary:"Button-module-scss-module__LCpCZW__button__secondary",button__tertiary:"Button-module-scss-module__LCpCZW__button__tertiary",button__text:"Button-module-scss-module__LCpCZW__button__text",button__transparent:"Button-module-scss-module__LCpCZW__button__transparent",button__white:"Button-module-scss-module__LCpCZW__button__white",disabled:"Button-module-scss-module__LCpCZW__disabled",uppercase:"Button-module-scss-module__LCpCZW__uppercase",with__border:"Button-module-scss-module__LCpCZW__with__border"})},71914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return l}});let n=e.r(91788),i=e.r(99604),s="function"==typeof IntersectionObserver,o=new Map,a=[];function l({rootRef:e,rootMargin:t,disabled:r}){let u=r||!s,[c,p]=(0,n.useState)(!1),d=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{d.current=e},[]);return(0,n.useEffect)(()=>{if(s){if(u||c)return;let r=d.current;if(r&&r.tagName)return function(e,t,r){let{id:n,observer:i,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=a.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},a.push(r),o.set(r,t),t}(r);return s.set(e,t),i.observe(e),function(){if(s.delete(e),i.unobserve(e),0===s.size){i.disconnect(),o.delete(n);let e=a.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&a.splice(e,1)}}}(r,e=>e&&p(e),{root:e?.current,rootMargin:t})}else if(!c){let e=(0,i.requestIdleCallback)(()=>p(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,t,e,c,d.current]),[h,c,(0,n.useCallback)(()=>{p(!1)},[])]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2531,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return n}});let n=(t,r)=>e.r(92090).normalizeLocalePath(t,r);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},54471,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return i}});let n=e.r(70090);function i(t,r,i,s){{let o=e.r(2531).normalizeLocalePath,a=e.r(62205).detectDomainLocale,l=r||o(t,i).detectedLocale,u=a(s,void 0,l);if(u){let e=`http${u.http?"":"s"}://`,r=l===u.defaultLocale?"":`/${l}`;return`${e}${u.domain}${(0,n.normalizePathTrailingSlash)(`${r}${t}`)}`}return!1}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48735,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},39149,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return $},useLinkStatus:function(){return k}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(52456),o=e.r(9381),a=s._(e.r(91788)),l=e.r(60472),u=e.r(71112),c=e.r(28169),p=e.r(89129),d=e.r(14862),h=e.r(25479),f=e.r(71914),g=e.r(54471),m=e.r(44113),y=e.r(34151);e.r(48735);let b=new Set;function v(e,t,r,n){if(!("u"<typeof window)&&(0,u.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(b.has(i))return;b.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function x(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}let _=a.default.forwardRef(function(e,t){let r,n,{href:i,as:s,children:c,prefetch:b=null,passHref:_,replace:S,shallow:k,scroll:$,locale:L,onClick:O,onNavigate:w,onMouseEnter:N,onTouchStart:C,legacyBehavior:E=!1,transitionTypes:P,...j}=e;r=c,E&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let R=a.default.useContext(h.RouterContext),F=!1!==b,{href:T,as:A}=a.default.useMemo(()=>{if(!R){let e=x(i);return{href:e,as:s?x(s):e}}let[e,t]=(0,l.resolveHref)(R,i,!0);return{href:e,as:s?(0,l.resolveHref)(R,s):t||e}},[R,i,s]),I=a.default.useRef(T),M=a.default.useRef(A);E&&(n=a.default.Children.only(r));let B=E?n&&"object"==typeof n&&n.ref:t,[D,V,z]=(0,f.useIntersection)({rootMargin:"200px"}),U=a.default.useCallback(e=>{(M.current!==A||I.current!==T)&&(z(),M.current=A,I.current=T),D(e)},[A,T,z,D]),K=(0,y.useMergedRef)(U,B);a.default.useEffect(()=>{!R||V&&F&&v(R,T,A,{locale:L})},[A,T,V,L,F,R?.locale,R]);let H={ref:K,onClick(e){E||"function"!=typeof O||O(e),E&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!R||e.defaultPrevented||function(e,t,r,n,i,s,o,a,l){let c,{nodeName:p}=e.currentTarget;if(!("A"===p.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,u.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let e=o??!0;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:a,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,R,T,A,S,k,$,L,w)},onMouseEnter(e){E||"function"!=typeof N||N(e),E&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&v(R,T,A,{locale:L,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){E||"function"!=typeof C||C(e),E&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&v(R,T,A,{locale:L,priority:!0,bypassPrefetchedCheck:!0})}};if((0,p.isAbsoluteUrl)(A))H.href=A;else if(!E||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==L?L:R?.locale;H.href=R?.isLocaleDomain&&(0,g.getDomainLocale)(A,e,R?.locales,R?.domainLocales)||(0,m.addBasePath)((0,d.addLocale)(A,e,R?.defaultLocale))}return E?a.default.cloneElement(n,H):(0,o.jsx)("a",{...j,...H,children:r})}),S=(0,a.createContext)({pending:!1}),k=()=>(0,a.useContext)(S),$=_;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41158,(e,t,r)=>{t.exports=e.r(39149)},28189,e=>{"use strict";var t=e.i(9381),r=e.i(41224),n=e.i(72043),i=e.i(41158);e.s(["Button",0,function({text:e="",className:s="",onClick:o=e=>{},disabled:a=!1,type:l="button",loading:u=!1,loadingText:c="",theme:p="primary",icon:d,squareCorner:h=!1,border:f=!1,uppercase:g=!1,href:m="",openLinkInNewTab:y=!1,...b}){return(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)(i.default,{className:(0,n.default)({[r.default.button]:!0,[r.default[`button__${p}`]]:!0,[s]:!!s,[r.default.square__corner]:h,[r.default.with__border]:f,[r.default.uppercase]:g,[r.default.disabled]:a}),target:y?"_blank":"_self",href:a?"#":m,...b,children:(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)("img",{src:d,className:r.default.button__icon}),(0,t.jsx)("p",{className:r.default.button__text,children:u?c:e})]})}),!m&&(0,t.jsxs)("button",{type:l,onClick:o,disabled:a||u,className:(0,n.default)({[r.default.button]:!0,[r.default[`button__${p}`]]:!0,[s]:!!s,[r.default.square__corner]:h,[r.default.with__border]:f,[r.default.uppercase]:g}),...b,children:[d&&(0,t.jsx)("img",{src:d,className:r.default.button__icon}),(0,t.jsx)("p",{className:r.default.button__text,children:u?c:e})]})]})}])}]);

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.