1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,682656,t=>{"use strict";t.s(["GB",0,0x40000000,"MB",0,1048576,"TRANSFER_LIMIT_FOR_ALL",0,0x3200000000,"UNLIMITED_TRANSFER_LIMIT",0,null])},281704,t=>{"use strict";var e,r=((e={})[e.DAYS_365_IN_SECONDS=31536e3]="DAYS_365_IN_SECONDS",e[e.DAYS_90_IN_SECONDS=7776e3]="DAYS_90_IN_SECONDS",e[e.DAYS_60_IN_SECONDS=5184e3]="DAYS_60_IN_SECONDS",e[e.DAYS_30_IN_SECONDS=2592e3]="DAYS_30_IN_SECONDS",e[e.DAYS_28_IN_SECONDS=2419200]="DAYS_28_IN_SECONDS",e[e.DAYS_7_IN_SECONDS=604800]="DAYS_7_IN_SECONDS",e[e.DAYS_3_IN_SECONDS=259200]="DAYS_3_IN_SECONDS",e[e.ONE_DAY_IN_SECONDS=86400]="ONE_DAY_IN_SECONDS",e[e.ONE_HOUR_IN_SECONDS=3600]="ONE_HOUR_IN_SECONDS",e[e.ONE_MINUTE_IN_SECONDS=60]="ONE_MINUTE_IN_SECONDS",e[e.ONE_WEEK_IN_MILLISECONDS=6048e5]="ONE_WEEK_IN_MILLISECONDS",e[e.ONE_DAY_IN_MILLISECONDS=864e5]="ONE_DAY_IN_MILLISECONDS",e[e.ONE_HOUR_IN_MILLISECONDS=36e5]="ONE_HOUR_IN_MILLISECONDS",e[e.ONE_MINUTE_IN_MILLISECONDS=6e4]="ONE_MINUTE_IN_MILLISECONDS",e[e.ONE_SECOND_IN_MILLISECONDS=1e3]="ONE_SECOND_IN_MILLISECONDS",e);t.s(["TIME_SPANS",()=>r])},486352,6789,t=>{"use strict";var e=t.i(390150);t.s(["default",0,{track:function(t,r={}){try{e.datadogRum.addError(t,r)}catch{}}}],6789),t.s([],486352)},638310,t=>{"use strict";let e,r;var i,a=t.i(884978),s=t.i(682656),n=t.i(281704),o=t.i(37160);t.i(486352);var l=t.i(6789),u=t.i(715653);t.i(91677);var h=t.i(479068),d=t.i(348314);let{slice:c,forEach:p}=[],g=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,f=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},i=encodeURIComponent(e),a=`${t}=${i}`;if(r.maxAge>0){let t=r.maxAge-0;if(Number.isNaN(t))throw Error("maxAge should be a Number");a+=`; Max-Age=${Math.floor(t)}`}if(r.domain){if(!g.test(r.domain))throw TypeError("option domain is invalid");a+=`; Domain=${r.domain}`}if(r.path){if(!g.test(r.path))throw TypeError("option path is invalid");a+=`; Path=${r.path}`}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw TypeError("option expires is invali
1d");a+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(a+="; HttpOnly"),r.secure&&(a+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return r.partitioned&&(a+="; Partitioned"),a},m={create(t,e,r,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*r*1e3)),i&&(a.domain=i),document.cookie=f(t,e,a)},read(t){let e=`${t}=`,r=document.cookie.split(";");for(let t=0;t<r.length;t++){let i=r[t];for(;" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var _={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&"u">typeof document)return m.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:r,cookieMinutes:i,cookieDomain:a,cookieOptions:s}=e;r&&"u">typeof document&&m.create(r,t,i,a,s)}},y={name:"querystring",lookup(t){let e,{lookupQuerystring:r}=t;if("u">typeof window){let{search:t}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(t=window.location.hash.substring(window.location.hash.indexOf("?")));let i=t.substring(1).split("&");for(let t=0;t<i.length;t++){let a=i[t].indexOf("=");a>0&&i[t].substring(0,a)===r&&(e=i[t].substring(a+1))}}return e}},v={name:"hash",lookup(t){let e,{lookupHash:r,lookupFromHashIndex:i}=t;if("u">typeof window){let{hash:t}=window.location;if(t&&t.length>2){let a=t.substring(1);if(r){let t=a.split("&");for(let i=0;i<t.length;i++){let a=t[i].indexOf("=");a>0&&t[i].substring(0,a)===r&&(e=t[i].substring(a+1))}}if(e)return e;if(!e&&i>-1){let e=t.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(e))return;return e["number"==typeof i?i:0]?.replace("/","")}}}return e}};let b=null,w=()=>{if(null!==b)return b;try{if(!(b="u">typeof window&&null!==window.localStorage))return!1;let t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){b=!1}return b};var S={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&w())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:r}=e;r&&w()&&window.localStorage.setItem(r,t)}};let k=null,x=()=>{if(null!==k)return k;try{if(!(k="u">typeof window&&null!==window.sessionStorage))return!1;let t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){k=!1}return k};var E={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&x())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:r}=e;r&&x()&&window.sessionStorage.setItem(r,t)}},N={name:"navigator",lookup(t){let e=[];
1if("u">typeof navigator){let{languages:t,userLanguage:r,language:i}=navigator;if(t)for(let r=0;r<t.length;r++)e.push(t[r]);r&&e.push(r),i&&e.push(i)}return e.length>0?e:void 0}},O={name:"htmlTag",lookup(t){let e,{htmlTag:r}=t,i=r||("u">typeof document?document.documentElement:null);return i&&"function"==typeof i.getAttribute&&(e=i.getAttribute("lang")),e}},L={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if("u"<typeof window)return;let r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(r))return r["number"==typeof e?e:0]?.replace("/","")}},R={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t,r="u">typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r["number"==typeof e?e+1:1]}};let I=!1;try{document.cookie,I=!0}catch(t){}let A=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];I||A.splice(1,1);class C{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,e)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=function(t){return p.call(c.call(arguments,1),e=>{if(e)for(let r in e)void 0===t[r]&&(t[r]=e[r])}),t}(e,this.options||{},{order:A,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=t=>t.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(_),this.addDetector(y),this.addDetector(S),this.addDetector(E),this.addDetector(N),this.addDetector(O),this.addDetector(L),this.addDetector(R),this.addDetector(v)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,e=[];return(t.forEach(t=>{if(this.detectors[t]){let r=this.detectors[t].lookup(this.options);r&&"string"==typeof r&&(r=[r]),r&&(e=e.concat(r))}}),e=e.filter(t=>null!=t&&!("string"==typeof t&&[/<\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(e=>e.test(t)))).map(t=>this.options.convertDetectedLanguage(t)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?e:e.length>0?e[0]:null}cacheUserLanguage(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;!e||this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||e.forEach(e=>{this.detectors[e]&&this.detectors[e].cacheUserLanguage(t,this.options)})}}C.type="languageDetector";var $=t.i(663077);let D=new C,T="wt_lang";D.addDetector({name:"wtCookie",lookup:()=>$.default.get(T)??void 0,cacheUserLanguage(t,e){$.default.set(T,t,{expires:(e.cookieMinutes??525600)/1440,domain:e.cookieDomain,path:"/",secure:!0})}});let j={da:["da-DK","en"],de:["de-DE","en"],es:["es-ES","en"],fr:["fr-FR","en"],it:["it-IT","en"],nb:["nb-NO","en"],nl:["nl-NL","en"],pl:["pl-PL","en"],pt:["pt-PT","en"],sv:["sv-SE","en"],tr:["tr-TR","en"],"pt-BR":["pt-BR","en"],"es-LA":["es-LA","en"],"es-419":["es-LA","en"]},z=[...Object.keys(j),"en"],{i18n:P}=(i={cookieDomain:(0,o.getCookieDomain)()},e={react:{useSuspense:!1},supportedLngs:z,fallbackLng:{default:["en"],...j},debug:!1,resources:{en:{translation:d.default}},preload:["en"],detection:{order:["wtCookie","navigator"],caches:["wtCookie"],cookieDomain:i?.cookieDomain,cookieMinutes:525600},load:"languageOnly",partialBundledLanguages:!0,interpolation:{escapeValue:!1,prefix:"%{",suffix:"}"},returnNull:!1,nonExplicitSupportedLngs:!0,lng:void i?.lngOverride},{i18n:r=u.default.createInstance(e).use(D).use({type:"backend",init:()=>null,read:(e,r,i)=>{t.f({"../../locale/da-DK.json":{id:()=>571434,module:()=>t.A(571434)},"../../locale/de-DE.json":{id:()=>874613,module:()=>t.A(874613)},"../../locale/en.json":{id:()=>59331,module:()=>t.A(59331)},"../../locale/es-ES.json":{id:()=>316490,module:()=>t.A(316490)}
1,"../../locale/es-LA.json":{id:()=>248674,module:()=>t.A(248674)},"../../locale/fr-FR.json":{id:()=>152902,module:()=>t.A(152902)},"../../locale/it-IT.json":{id:()=>611368,module:()=>t.A(611368)},"../../locale/nb-NO.json":{id:()=>189341,module:()=>t.A(189341)},"../../locale/nl-NL.json":{id:()=>663669,module:()=>t.A(663669)},"../../locale/pl-PL.json":{id:()=>85725,module:()=>t.A(85725)},"../../locale/pt-BR.json":{id:()=>164792,module:()=>t.A(164792)},"../../locale/pt-PT.json":{id:()=>191629,module:()=>t.A(191629)},"../../locale/sv-SE.json":{id:()=>17947,module:()=>t.A(17947)},"../../locale/tr-TR.json":{id:()=>565440,module:()=>t.A(565440)}}).import(`../../locale/${e}.json`).then(t=>{i(null,t)}).catch(t=>{i(t,null)})}}).use(h.initReactI18next),promise:r.init()});class U{static get locale(){let t=P.language;return"pt-BR"===t?"pt-BR":"es-LA"===t||"es-419"===t?"es-419":t.split("-")[0]}static t(t,e){try{return P.t(t,e)}catch(e){return l.default.track(`I18n Error: ${e}. TranslationKey: ${t}`),t||""}}static megabytes(t){return this.number(t/1048576,{precision:1,delimiter:""})+" "+U.t("number.human.storage_units.units.mb")}static numberOfGigabytes(t,e){return this.number(t/0x40000000,{precision:e??1,delimiter:""})}static gigabytes(t){return this.number(t/0x40000000,{precision:1,delimiter:""})+" "+U.t("number.human.storage_units.units.gb")}static size(t,e={}){let r;if("number"!=typeof t)return e.allowNull&&t===s.UNLIMITED_TRANSFER_LIMIT||l.default.track(`I18n.size called with ${t}, returning empty string instead`),"";let i=U.t("number.human.storage_units.format")||"%n%u",a=Math.max(0,t),n=0;for(e.format=e.format||i,e.delimiter=e.delimiter||"";a>=1024&&n<4;)a/=1024,n++;return 0===n?(r=U.t("number.human.storage_units.units.byte",{count:a}),e.precision=0):(r=[null,"kb","mb","gb","tb"][n],r=U.t("number.human.storage_units.units."+r),a-Math.floor(a)==0&&(e.precision=0)),t=U.number(a,e),e.format.replace("%u",r).replace("%n",t)}static number(t,e={}){let r,i=U.t("number.format")||{};e.precision="precision"in e?e.precision:1,e.separator=e.separator||i.separator||".",e.delimiter="delimiter"in e?e.delimiter:i.delimiter||"";let a=t<0,s=Math.abs(t).toFixed(e.precision).toString().split("."),n=[];for(t=s[0];t.length>0;)n.unshift(t.substr(Math.max(0,t.length-3),3)),t=t.substr(0,t.length-3);return r=n.join(e.delimiter),e.precision>0&&(r+=e.separator+s[1]),a&&(r="-"+r),r}static date(t=new Date,e="default"){let r,i=t.getFullYear(),a=t.getMonth(),s=t.getDate(),n=t.getDay(),o={"%-d":s,"%d":("0"+s).slice(-2),"%m":("0"+(a+1)).slice(-2),"%Y":i,"%y":i.toString().substr(2,2),"%B":U.t("date.month_names."+(a+1)),"%A":U.t("date.day_names."+n)},l=RegExp(Object.keys(o).join("|"),"gi");return"without_day"===e||"with_day"===e?("with_day"===e&&(r="%A, %-d %B %Y"),"without_day"===e&&(r="%-d %B %Y")):(r=U.t("date.formats."+e),e===r&&(r=U.t("date.formats.default"))),r.replace(l,t=>o[t])}static time(t=new Date){let e=("0"+t.getHours()).slice(-2),r=("0"+t.getMinutes()).slice(-2),i="";return t.toLocaleTimeString().match(/AM|PM/)&&(e=t.getHours()%12||12,i=" "+(t.getHours()>=12&&24>t.getHours()?"PM":"AM")),`${e}:${r}${i}`}static relativeTime(t){for(let e of(t instanceof Date&&(t=(new Date().getTime()-t.getTime())/1e3),[[n.TIME_SPANS.DAYS_365_IN_SECONDS,"over_x_years"],[n.TIME_SPANS.DAYS_30_IN_SECONDS,"x_months"],[n.TIME_SPANS.DAYS_7_IN_SECONDS,"x_weeks"],[n.TIME_SPANS.ONE_DAY_IN_SECONDS,"x_days"],[n.TIME_SPANS.ONE_HOUR_IN_SECONDS,"about_x_hours"],[n.TIME_SPANS.ONE_MINUTE_IN_SECONDS,"x_minutes"],[1,"x_seconds"],[0,"less_than_x_seconds"]])){if(t<e[0])continue;let r=Math.round(t/e[0]);return isFinite(r)||(r=0),U.t("datetime.distance_in_words."+e[1],{count:r})}return null}static image(t){return"en"!==U.locale&&(t=`locales/${U.locale}/${t}`),a.default.lookup(t)}}t.s(["default",0,U,"i18n",0,P],638310)},390150,t=>{"use strict";let e;var r=t.i(367416),i=t.i(13362);function a(t,e){let a,s=0,n=[],o=!0,l=0,u=[],{stop:h}=(0,r.addEventListener)(t,"message",({data:t})=>{if("wrote"!==t.type||t.streamId!==e)return;let r=u[0];r&&(r.id===t.id?(u.shift(),s+=t.additionalBytesCount,n.push(t.result),a=t.trailer,r.writeCallback?r.writeCallback(t.result.byteLength):r.finishCallback&&r.finishCallback()):r.id<t.id&&h())});function d(){let t=0===n.length?new Uint8Array(0):(0,i.concatBuffers)(n.concat(a)),e={rawBytesCount:s,output:t,outputBytesCount:t.byteLength,encoding:"deflate"};return s=0,n=[],e}function c(){o||(t.postMessage({action:"reset",streamId:e}),o=!0)}return{isAsync:!0,get isEmpty(){return o},write(r,i){t.postMessage({action:"write",id:l,data:r,streamId:e}),u.push({id:l,writeCallback:i,data:r}),o=!1,l+=1},finish(t){c(),u.length?(u.forEach(t=>{delete t.writeCallback}),u[u.length-1].finishCallback=()=>t(d())):t(d())},finishSync(){c();let t=u.map(t=>t.data).join("");return u.length=0,{...d(),pendingData:t}},estimateEncodedBytesCount:t=>t.length/8,stop(){h()}}}var s=t.i(804226),n=t.i(425090),o=t.i(374782);function l({configuredUrl:t,error:e,source:r,scriptType:i}){var a;if(n.display.error(`${r} failed to start: an error occurred while initializing the ${i}:`,e),e instanceof Event||e instanceof Error&&((a=e.message).includes("Content Security Policy")||a.includes("requires 'TrustedScriptURL'"))){let e;e=t?`Please make sure the ${i} URL ${t} is correct and CSP is correctly configured.`:"Please make sure CSP is correctly configured.",n.display.error(`${e} See documentation at ${o.DOCS_ORIGIN}/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay`)}else"worker"===i&&(0,s.addTelemetryError)(e)}var u=t.i(730231),h=t.i(841698),d=t.i(416704);
1let c=30*d.ONE_SECOND;function p(t){return new Worker(t.workerUrl||URL.createObjectURL(new Blob(['(()=>{function t(t){if(1===t.length)return t[0];const e=t.reduce((t,e)=>t+e.length,0),a=new Uint8Array(e);let n=0;for(const e of t)a.set(e,n),n+=e.length;return a}function e(t){for(var e=t.length;--e>=0;)t[e]=0}var a=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),n=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),i=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=Array(576);e(s);var h=Array(60);e(h);var l=Array(512);e(l);var _=Array(256);e(_);var o=Array(29);e(o);var d,u,f,c=Array(30);function p(t,e,a,n,r){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=n,this.max_length=r,this.has_stree=t?.length}function g(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}e(c);var v=function(t){return t<256?l[t]:l[256+(t>>>7)]},w=function(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},m=function(t,e,a){t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,w(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},b=function(t,e,a){m(t,a[2*e],a[2*e+1])},y=function(t,e){var a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},z=function(t,e,a){var n,r,i=Array(16),s=0;for(n=1;n<=15;n++)i[n]=s=s+a[n-1]<<1;for(r=0;r<=e;r++){var h=t[2*r+1];0!==h&&(t[2*r]=y(i[h]++,h))}},k=function(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},x=function(t){t.bi_valid>8?w(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},A=function(t,e,a,n){var r=2*e,i=2*a;return t[r]<t[i]||t[r]===t[i]&&n[e]<=n[a]},U=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&A(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!A(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},B=function(t,e,r){var i,s,h,l,d=0;if(0!==t.last_lit)do{i=t.pending_buf[t.d_buf+2*d]<<8|t.pending_buf[t.d_buf+2*d+1],s=t.pending_buf[t.l_buf+d],d++,0===i?b(t,s,e):(h=_[s],b(t,h+256+1,e),0!==(l=a[h])&&(s-=o[h],m(t,s,l)),i--,h=v(i),b(t,h,r),0!==(l=n[h])&&(i-=c[h],m(t,i,l)))}while(d<t.last_lit);b(t,256,e)},I=function(t,e){var a,n,r,i=e.dyn_tree,s=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,_=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==i[2*a]?(t.heap[++t.heap_len]=_=a,t.depth[a]=0):i[2*a+1]=0;for(;t.heap_len<2;)i[2*(r=t.heap[++t.heap_len]=_<2?++_:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=s[2*r+1]);for(e.max_code=_,a=t.heap_len>>1;a>=1;a--)U(t,i,a);r=l;do{a=t.heap[1],t.heap[1]=t.heap[t.heap_len--],U(t,i,1),n=t.heap[1],t.heap[--t.heap_max]=a,t.heap[--t.heap_max]=n,i[2*r]=i[2*a]+i[2*n],t.depth[r]=(t.depth[a]>=t.depth[n]?t.depth[a]:t.depth[n])+1,i[2*a+1]=i[2*n+1]=r,t.heap[1]=r++,U(t,i,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var a,n,r,i,s,h,l=e.dyn_tree,_=e.max_code,o=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,c=e.stat_desc.max_length,p=0;for(i=0;i<=15;i++)t.bl_count[i]=0;for(l[2*t.heap[t.heap_max]+1]=0,a=t.heap_max+1;a<573;a++)(i=l[2*l[2*(n=t.heap[a])+1]+1]+1)>c&&(i=c,p++),l[2*n+1]=i,n>_||(t.bl_count[i]++,s=0,n>=f&&(s=u[n-f]),h=l[2*n],t.opt_len+=h*(i+s),d&&(t.static_len+=h*(o[2*n+1]+s)));if(0!==p){do{for(i=c-1;0===t.bl_count[i];)i--;t.bl_count[i]--,t.bl_count[i+1]+=2,t.bl_count[c]--,p-=2}while(p>0);for(i=c;0!==i;i--)for(n=t.bl_count[i];0!==n;)(r=t.heap[--a])>_||(l[2*r+1]!==i&&(t.opt_len+=(i-l[2*r+1])*l[2*r],l[2*r+1]=i),n--)}}(t,e),z(i,_,t.bl_count)},E=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),e[2*(a+1)+1]=65535,n=0;n<=a;n++)r=s,s=e[2*(n+1)+1],++h<l&&r===s||(h<_?t.bl_tree[2*r]+=h:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):h<=10?t.bl_tree[34]++:t.bl_tree[36]++,h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4))},D=function(t,e,a){var n,r,i=-1,s=e[1],h=0,l=7,_=4;for(0===s&&(l=138,_=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++h<l&&r===s)){if(h<_)do{b(t,r,t.bl_tree)}while(0!==--h);else 0!==r?(r!==i&&(b(t,r,t.bl_tree),h--),b(t,16,t.bl_tree),m(t,h-3,2)):h<=10?(b(t,17,t.bl_tree),m(t,h-3,3)):(b(t,18,t.bl_tree),m(t,h-11,7));h=0,i=r,0===s?(l=138,_=3):r===s?(l=6,_=3):(l=7,_=4)}},M=!1,j=function(t,e,a,n){m(t,0+(n?1:0),3),function(t,e,a){x(t),w(t,a),w(t,~a),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a)},C=j,L=function(t,e,a,n){for(var r=65535&t,i=t>>>16&65535,s=0;0!==a;){a-=s=a>2e3?2e3:a;do{i=i+(r=r+e[n++]|0)|0}while(--s);r%=65521,i%=65521}return r|i<<16},S=new Uint32Array(function(){for(var t,e=[],a=0;a<256;a++){t=a;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e}()),O=function(t,e,a,n){var r=S,i=n+a;t^=-1;for(var s=n;s<i;s++)t=t>>>8^r[255&(t^e[s])];return-1^t},T={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},q=C,F=function(t,e,a){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&a,t.last_lit++,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(_[a]+256+1)]++,t.dyn_dtree[2*v(e)]++),t.last_lit===t.lit_bufsize-1},G=-2,H=258,J=262,K=103,N=113,P=666,Q=function(t,e){return t.msg=T[e],e},R=function(t){return(t<<1)-(t>4?9:0)},V=function(t){for(var e=t.length;--e>=0;)t[e]=0},W=function(t,e,a){return(e<<t.hash_shift^a)&t.hash_mask},X=function(t){var e=t.state,a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},Y=function(t,e){(function(t,e,a,n){var r,l,_=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),I(t,t.l_desc),I(t,t.d_desc),_=function(t){var e;
1for(E(t,t.dyn_ltree,t.l_desc.max_code),E(t,t.dyn_dtree,t.d_desc.max_code),I(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*i[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(l=t.static_len+3+7>>>3)<=r&&(r=l)):r=l=a+5,a+4<=r&&-1!==e?j(t,e,a,n):4===t.strategy||l===r?(m(t,2+(n?1:0),3),B(t,s,h)):(m(t,4+(n?1:0),3),function(t,e,a,n){var r;for(m(t,e-257,5),m(t,a-1,5),m(t,n-4,4),r=0;r<n;r++)m(t,t.bl_tree[2*i[r]+1],3);D(t,t.dyn_ltree,e-1),D(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),B(t,t.dyn_ltree,t.dyn_dtree)),k(t),n&&x(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,X(t.strm)},Z=function(t,e){t.pending_buf[t.pending++]=e},$=function(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},tt=function(t,e,a,n){var r=t.avail_in;return r>n&&(r=n),0===r?0:(t.avail_in-=r,e.set(t.input.subarray(t.next_in,t.next_in+r),a),1===t.state.wrap?t.adler=L(t.adler,e,r,a):2===t.state.wrap&&(t.adler=O(t.adler,e,r,a)),t.next_in+=r,t.total_in+=r,r)},et=function(t,e){var a,n,r=t.max_chain_length,i=t.strstart,s=t.prev_length,h=t.nice_match,l=t.strstart>t.w_size-J?t.strstart-(t.w_size-J):0,_=t.window,o=t.w_mask,d=t.prev,u=t.strstart+H,f=_[i+s-1],c=_[i+s];t.prev_length>=t.good_match&&(r>>=2),h>t.lookahead&&(h=t.lookahead);do{if(_[(a=e)+s]===c&&_[a+s-1]===f&&_[a]===_[i]&&_[++a]===_[i+1]){i+=2,a++;do{}while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&i<u);if(n=H-(u-i),i=u-H,n>s){if(t.match_start=e,s=n,n>=h)break;f=_[i+s-1],c=_[i+s]}}}while((e=d[e&o])>l&&0!==--r);return s<=t.lookahead?s:t.lookahead},at=function(t){var e,a,n,r,i,s=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-J)){t.window.set(t.window.subarray(s,s+s),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,e=a=t.hash_size;do{n=t.head[--e],t.head[e]=n>=s?n-s:0}while(--a);e=a=s;do{n=t.prev[--e],t.prev[e]=n>=s?n-s:0}while(--a);r+=s}if(0===t.strm.avail_in)break;if(a=tt(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=a,t.lookahead+t.insert>=3)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=W(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=W(t,t.ins_h,t.window[i+3-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<J&&0!==t.strm.avail_in)},nt=function(t,e){for(var a,n;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a)),t.match_length>=3)if(n=F(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!==--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=W(t,t.ins_h,t.window[t.strstart+1]);else n=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2},rt=function(t,e){for(var a,n,r;;){if(t.lookahead<J){if(at(t),t.lookahead<J&&0===e)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-J&&(t.match_length=et(t,a),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){r=t.strstart+t.lookahead-3,n=F(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=r&&(t.ins_h=W(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!==--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(Y(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=F(t,0,t.window[t.strstart-1]))&&Y(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=F(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2};function it(t,e,a,n,r){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=n,this.func=r}var st=[new it(0,0,0,0,function(t,e){var a=65535;for(a>t.pending_buf_size-5&&(a=t.pending_buf_size-5);;){if(t.lookahead<=1){if(at(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+a;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Y(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-J&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Y(t,!1),t.strm.avail_out),1)}),new it(4,4,8,4,nt),new it(4,5,16,8,nt),new it(4,6,32,32,nt),new it(4,4,16,16,rt),new it(8,16,32,32,rt),new it(8,16,128,128,rt),new it(8,32,128,256,rt),new it(32,128,258,1024,rt),new it(32,258,258,4096,rt)];function ht(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),V(this.dyn_ltree),V(this.dyn_dtree),V(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),V(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}for(var lt=function(t){var e,i=function(t){if(!t?.state)return Q(t,G);t.total_in=t.total_out=0,t.data_type=2;var e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:N,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){M||(function(){var t,e,i,g,v,w=Array(16);for(i=0,g=0;g<28;g++)for(o[g]=i,t=0;t<1<<a[g];t++)_[i++]=g;for(_[i-1]=g,v=0,g=0;g<16;g++)for(c[g]=v,t=0;t<1<<n[g];t++)l[v++]=g;for(v>>=7;g<30;g++)for(c[g]=v<<7,t=0;t<1<<n[g]-7;t++)l[256+v++]=g;for(e=0;e<=15;e++)w[e]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,w[8]++;for(;t<=255;)s[2*t+1]=9,t++,w[9]++;for(;t<=279;)s[2*t+1]=7,t++,w[7]++;for(;t<=287;)s[2*t+1]=8,t++,w[8]++;for(z(s,287,w),t=0;t<30;t++)h[2*t+1]=5,h[2*t]=y(t,5);d=new p(s,a,257,286,15),u=new p(h,n,0,30,15),f=new p([],r,0,19,7)}(),M=!0),t.l_desc=new g(t.dyn_ltree,d),t.d_desc=new g(t.dyn_dtree,u),t.bl_desc=new g(t.bl_tree,f),t.bi_buf=0,t.bi_valid=0,k(t)}(e),0}(t);return 0===i&&((e=t.state).window_size=2*e.w_size,V(e.head),e.max_lazy_match=st[e.level].max_lazy,e.good_match=st[e.level].good_length,e.nice_match=st[e.level].nice_length,e.max_chain_length=st[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0),i},_t=function(t,e){var a,n;if(!t?.state||e>5||e<0)return t?Q(t,G):G;var r=t.state;if(!t.output||!t.input&&0!==t.avail_in||r.status===P&&4!==e)return Q(t,0===t.avail_out?-5:G);r.strm=t;var i=r.last_flush;if(r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,Z(r,31),Z(r,139),Z(r,8),r.gzhead?(Z(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Z(r,255&r.gzhead.time),Z(r,r.gzhead.time>>8&255),Z(r,r.gzhead.time>>16&255),Z(r,r.gzhead.time>>24&255),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,255&r.gzhead.os),r.gzhead.extra?.length&&(Z(r,255&r.gzhead.extra.length),Z(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=O(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,0),Z(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Z(r,3),r.status=N);else{var h=8+(r.w_bits-8<<4)<<8;h|=(r.strategy>
1=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(h|=32),h+=31-h%31,r.status=N,$(r,h),0!==r.strstart&&($(r,t.adler>>>16),$(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(a=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending!==r.pending_buf_size));)Z(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){a=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),X(t),a=r.pending,r.pending===r.pending_buf_size)){n=1;break}n=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Z(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(t.adler=O(t.adler,r.pending_buf,r.pending-a,a)),0===n&&(r.status=K)}else r.status=K;if(r.status===K&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&X(t),r.pending+2<=r.pending_buf_size&&(Z(r,255&t.adler),Z(r,t.adler>>8&255),t.adler=0,r.status=N)):r.status=N),0!==r.pending){if(X(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&R(e)<=R(i)&&4!==e)return Q(t,-5);if(r.status===P&&0!==t.avail_in)return Q(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&r.status!==P){var l=2===r.strategy?function(t,e){for(var a;;){if(0===t.lookahead&&(at(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var a,n,r,i,s=t.window;;){if(t.lookahead<=H){if(at(t),t.lookahead<=H&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=s[r=t.strstart-1])===s[++r]&&n===s[++r]&&n===s[++r]){i=t.strstart+H;do{}while(n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&n===s[++r]&&r<i);t.match_length=H-(i-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=F(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=F(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(Y(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Y(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Y(t,!1),0===t.strm.avail_out)?1:2}(r,e):st[r.level].func(r,e);if(3!==l&&4!==l||(r.status=P),1===l||3===l)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===l&&(1===e?function(t){m(t,2,3),b(t,256,s),function(t){16===t.bi_valid?(w(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(r):5!==e&&(q(r,0,0,!1),3===e&&(V(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),X(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(Z(r,255&t.adler),Z(r,t.adler>>8&255),Z(r,t.adler>>16&255),Z(r,t.adler>>24&255),Z(r,255&t.total_in),Z(r,t.total_in>>8&255),Z(r,t.total_in>>16&255),Z(r,t.total_in>>24&255)):($(r,t.adler>>>16),$(r,65535&t.adler)),X(t),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},ot=function(t){if(!t?.state)return G;var e=t.state.status;return 42!==e&&69!==e&&73!==e&&91!==e&&e!==K&&e!==N&&e!==P?Q(t,G):(t.state=null,e===N?Q(t,-3):0)},dt=new Uint8Array(256),ut=0;ut<256;ut++)dt[ut]=ut>=252?6:ut>=248?5:ut>=240?4:ut>=224?3:ut>=192?2:1;dt[254]=dt[254]=1;var ft=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},ct=Object.prototype.toString;function pt(){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0};var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ft,this.strm.avail_out=0;var e,a,n=function(t,e,a,n,r,i){if(!t)return G;var s=1;if(-1===e&&(e=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==a||n<8||n>15||e<0||e>9||i<0||i>4)return Q(t,G);8===n&&(n=9);var h=new ht;return t.state=h,h.strm=t,h.wrap=s,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=r+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new Uint8Array(2*h.w_size),h.head=new Uint16Array(h.hash_size),h.prev=new Uint16Array(h.w_size),h.lit_bufsize=1<<r+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new Uint8Array(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=e,h.strategy=i,h.method=a,lt(t)}(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw Error(T[n]);if(t.header&&(e=this.strm,a=t.header,e?.state&&(2!==e.state.wrap||(e.state.gzhead=a))),t.dictionary){var r;if(r="[object ArrayBuffer]"===ct.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=function(t,e){var a=e.length;if(!t?.state)return G;var n=t.state,r=n.wrap;if(2===r||1===r&&42!==n.status||n.lookahead)return G;if(1===r&&(t.adler=L(t.adler,e,a,0)),n.wrap=0,a>=n.w_size){0===r&&(V(n.head),n.strstart=0,n.block_start=0,n.insert=0);var i=new Uint8Array(n.w_size);
1i.set(e.subarray(a-n.w_size,a),0),e=i,a=n.w_size}var s=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,at(n);n.lookahead>=3;){var _=n.strstart,o=n.lookahead-2;do{n.ins_h=W(n,n.ins_h,n.window[_+3-1]),n.prev[_&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=_,_++}while(--o);n.strstart=_,n.lookahead=2,at(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=h,t.input=l,t.avail_in=s,n.wrap=r,0}(this.strm,r)))throw Error(T[n]);this._dict_set=!0}}function gt(t,e,a){try{t.postMessage({type:"errored",error:e,streamId:a})}catch{t.postMessage({type:"errored",error:e+"",streamId:a})}}function vt(t){const e=t.strm.adler;return new Uint8Array([3,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e])}pt.prototype.push=function(t,e){var a,n,r=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?4:0,"[object ArrayBuffer]"===ct.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;)if(0===r.avail_out&&(r.output=new Uint8Array(i),r.next_out=0,r.avail_out=i),(2===n||3===n)&&r.avail_out<=6)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else{if(1===(a=_t(r,n)))return r.next_out>0&&this.onData(r.output.subarray(0,r.next_out)),a=ot(this.strm),this.onEnd(a),this.ended=!0,0===a;if(0!==r.avail_out){if(n>0&&r.next_out>0)this.onData(r.output.subarray(0,r.next_out)),r.avail_out=0;else if(0===r.avail_in)break}else this.onData(r.output)}return!0},pt.prototype.onData=function(t){this.chunks.push(t)},pt.prototype.onEnd=function(t){0===t&&(this.result=function(t){for(var e=0,a=0,n=t.length;a<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,h=t.length;i<h;i++){var l=t[i];r.set(l,s),s+=l.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e=self){try{const a=new Map;e.addEventListener("message",n=>{try{const r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"7.10.0"};case"write":{let n=e.get(a.streamId);n||(n=new pt,e.set(a.streamId,n));const r=n.chunks.length,i=(new TextEncoder).encode(a.data);return n.push(i,2),{type:"wrote",id:a.id,streamId:a.streamId,result:t(n.chunks.slice(r)),trailer:vt(n),additionalBytesCount:i.length}}case"reset":e.delete(a.streamId)}}(a,n.data);r&&e.postMessage(r)}catch(t){gt(e,t,n.data&&"streamId"in n.data?n.data.streamId:void 0)}})}catch(t){gt(e,t)}}()})();'])))}let g={status:0};function f(t,e,i){switch(0===g.status&&function(t,e){try{let i=(0,u.mockable)(p)(t),{stop:a}=(0,r.addEventListener)(i,"error",r=>{m(t,e,r)}),{stop:s}=(0,r.addEventListener)(i,"message",({data:r})=>{var i;"errored"===r.type?m(t,e,r.error,r.streamId):"initialized"===r.type&&(i=r.version,1===g.status&&(g={status:3,worker:g.worker,stop:g.stop,version:i}))});i.postMessage({action:"init"}),(0,h.setTimeout)(()=>{var t;return t=e,void(1===g.status&&(n.display.error(`${t} failed to start: a timeout occurred while initializing the Worker`),g.initializationFailureCallbacks.forEach(t=>t()),g={status:2}))},c),g={status:1,worker:i,stop:()=>{a(),s()},initializationFailureCallbacks:[]}}catch(r){m(t,e,r)}}(t,e),g.status){case 1:return g.initializationFailureCallbacks.push(i),g.worker;case 3:return g.worker}}function m(t,e,r,i){1===g.status||0===g.status?(l({configuredUrl:t.workerUrl,error:r,source:e,scriptType:"worker"}),1===g.status&&g.initializationFailureCallbacks.forEach(t=>t()),g={status:2}):(0,s.addTelemetryError)(r,{worker_version:3===g.status&&g.version,stream_id:i})}var _=t.i(252406);t.i(812863);var y=t.i(325560),v=t.i(797970),b=t.i(28625);async function w(){try{return await (0,u.mockable)(S)()}catch(t){l({error:t,source:"Recorder",scriptType:"module"})}}async function S(){return(await t.A(29111)).startRecording}var k=t.i(114898),x=t.i(937808),E=t.i(517783),N=t.i(596092);async function O(t,e,r){try{return await r}finally{t.notify(e)}}var L=t.i(230495),R=t.i(562653),I=t.i(77382);function A(){return void 0!==I.globalObject.Profiler}var C=t.i(584490),$=t.i(864877);async function D(){try{return await (0,u.mockable)(T)()}catch(t){l({error:t,source:"Profiler",scriptType:"module"})}}async function T(){return(await t.A(78293)).createRumProfiler}var j=t.i(76740);t.i(295057);var z=t.i(401513);t.i(589537);var P=t.i(852107);let U=function(){let t;if((0,L.canUseEventBridge)()&&!(0,L.bridgeSupports)(L.BridgeCapability.RECORDS))return{start:b.noop,stop:b.noop,getReplayStats:()=>void 0,onRumStart:b.noop,isRecording:()=>!1,getSessionReplayLink:()=>void 0};let{strategy:e,shouldStartImmediately:r}=(t=0,{strategy:{start(){t=1},stop(){t=2},isRecording:()=>!1,getSessionReplayLink:b.noop},shouldStartImmediately:e=>1===t||0===t&&!e.startSessionReplayRecordingManually});return{start:t=>e.start(t),stop:()=>e.stop(),getSessionReplayLink:()=>e.getSessionReplayLink(),onRumStart:function(t,i,n,o,l,u){let h;e=function(t,e,r,i,a,n){let o,l=0;e.subscribe(k.LifeCycleEventType.SESSION_EXPIRED,()=>{(2===l||3===l)&&(p(),l=1)}),e.subscribe(k.LifeCycleEventType.SESSION_RENEWED,()=>{1===l&&c()});let u=new x.Observable;!function(t,e){let r,i,a;if(!t.metricsEnabled)return b.noop;let{unsubscribe:n}=e.subscribe(t=>{switch(t.type){case"start":r={forced:t.forced,timestamp:(0,d.timeStampNow)()},i=void 0,a=void 0;break;case"document-ready":r&&(i=(0,d.elapsed)(r.timestamp,(0,d.timeStampNow)()));break;
1case"recorder-settled":r&&(a=(0,d.elapsed)(r.timestamp,(0,d.timeStampNow)()));break;case"aborted":case"deflate-encoder-load-failed":case"recorder-load-failed":case"succeeded":var e,o,l,u;n(),r&&(0,s.addTelemetryMetrics)(s.TelemetryMetrics.RECORDER_INIT_METRICS_TELEMETRY_NAME,{metrics:(e=r.forced,o=a,l=(0,d.elapsed)(r.timestamp,(0,d.timeStampNow)()),u=t.type,{forced:e,loadRecorderModuleDuration:o,recorderInitDuration:l,result:u,waitForDocReadyDuration:i})})}})}(n,u);let h=async s=>{u.notify({type:"start",forced:s});let[h]=await Promise.all([O(u,{type:"recorder-settled"},w()),O(u,{type:"document-ready"},(0,E.asyncRunOnReadyState)("interactive"))]);if(2!==l)return void u.notify({type:"aborted"});if(!h){l=0,u.notify({type:"recorder-load-failed"});return}let d=a();if(!d){l=0,u.notify({type:"deflate-encoder-load-failed"});return}({stop:o}=h(e,t,r,i,d,n)),l=3,u.notify({type:"succeeded"})};function c(e){var i,a,s,n,o;let u=r.findTrackedSession(),d=u?(0,y.computeSessionReplayState)(u,t):void 0;if(i=d,a=e,!(void 0!==i&&(i!==y.SessionReplayState.OFF||a?.force))){l=1;return}if(2===(s=l)||3===s)return;l=2;let c=(n=d,(o=e)&&o.force&&n===y.SessionReplayState.OFF||!1);h(c).catch(N.monitorError),c&&r.updateSessionState({forcedReplay:"1"})}function p(){3===l&&o?.(),l=0}return{start:c,stop:p,getSessionReplayLink:()=>{var e,a,s,n;let o,u,h;return e=0!==l,o=r.findTrackedSession(),a=t,s=o,n=e,u=s?(0,y.computeSessionReplayState)(s,a)===y.SessionReplayState.OFF?"incorrect-session-plan":n?void 0:"replay-not-started":"rum-not-tracked",h=i.findView(),(0,v.getSessionReplayUrl)(t,{viewContext:h,errorType:u,session:o})},isRecording:()=>3===l}}(i,t,n,o,function(){return!h&&(l??=f(i,"Datadog Session Replay",()=>e.stop()))&&(h=a(l,R.DeflateEncoderStreamId.REPLAY)),h},u),r(i)&&e.start()},isRecording:()=>3===g.status&&e.isRecording(),getReplayStats:t=>3===g.status?(0,_.getReplayStats)(t):void 0}}(),F=(0,z.makeRumPublicApi)(U,{onRumStart:function(t,r,i,a,s,n){var o,l;let h,d=a.findTrackedSession();if(!d||(o=i,l=d,(0,L.canUseEventBridge)()?!(0,L.bridgeSupports)(L.BridgeCapability.PROFILES):!(0,j.isSampled)(l.id,(0,j.correctedChildSampleRate)(o.sessionSampleRate,o.profilingSampleRate))))return;let c=(h={status:"starting"},r.assemble.register(({eventType:t})=>t!==C.RumEventType.VIEW&&t!==C.RumEventType.LONG_TASK&&t!==C.RumEventType.ACTION&&t!==C.RumEventType.VITAL?$.
1SKIPPED:{type:t,_dd:{profiling:h}}),{get:()=>h,set:t=>{h=t}});(0,u.mockable)(A)()?(0,u.mockable)(D)().then(r=>{r?(e=r(i,t,a,c,n,s,void 0)).start():c.set({status:"error",error_reason:"failed-to-lazy-load"})}).catch(N.monitorError):c.set({status:"error",error_reason:"not-supported-by-browser"})},stop:()=>{e?.stop()}},{startDeflateWorker:f,createDeflateEncoder:a,sdkName:"rum"});(0,P.defineGlobal)(I.globalObject,"DD_RUM",F),t.s(["datadogRum",0,F],390150)},91677,715653,479068,514849,789362,t=>{"use strict";let e;var r=t.i(999161);let i=t=>"string"==typeof t,a=()=>{let t,e,r=new Promise((r,i)=>{t=r,e=i});return r.resolve=t,r.reject=e,r},s=t=>null==t?"":String(t),n=/###/g,o=t=>t&&t.includes("###")?t.replace(n,"."):t,l=t=>!t||i(t),u=(t,e,r)=>{let a=i(e)?e.split("."):e,s=0;for(;s<a.length-1;){if(l(t))return{};let e=o(a[s]);!t[e]&&r&&(t[e]=new r),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++s}return l(t)?{}:{obj:t,k:o(a[s])}},h=(t,e,r)=>{let{obj:i,k:a}=u(t,e,Object);if(void 0!==i||1===e.length){i[a]=r;return}let s=e[e.length-1],n=e.slice(0,e.length-1),o=u(t,n,Object);for(;void 0===o.obj&&n.length;)s=`${n[n.length-1]}.${s}`,o=u(t,n=n.slice(0,n.length-1),Object),o?.obj&&void 0!==o.obj[`${o.k}.${s}`]&&(o.obj=void 0);o.obj[`${o.k}.${s}`]=r},d=(t,e)=>{let{obj:r,k:i}=u(t,e);if(r&&Object.prototype.hasOwnProperty.call(r,i))return r[i]},c=(t,e,r)=>{for(let a in e)"__proto__"!==a&&"constructor"!==a&&(Object.prototype.hasOwnProperty.call(t,a)?i(t[a])||t[a]instanceof String||i(e[a])||e[a]instanceof String?r&&(t[a]=e[a]):c(t[a],e[a],r):t[a]=e[a]);return t},p={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},g=t=>i(t)?t.replace(/[&<>"'\/]/g,t=>p[t]):t,f=[" ",",","?","!",";"],m=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let e=this.regExpMap.get(t);if(void 0!==e)return e;let r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}(20),_=(t,e,r=".")=>{if(!t)return;if(t[e]){if(!Object.prototype.hasOwnProperty.call(t,e))return;return t[e]}let i=e.split(r),a=t;for(let t=0;t<i.length;){let e;if(!a||"object"!=typeof a)return;let s="";for(let n=t;n<i.length;++n)if(n!==t&&(s+=r),s+=i[n],void 0!==(e=a[s])){if(["string","number","boolean"].includes(typeof e)&&n<i.length-1)continue;t+=n-t+1;break}a=e}return a},y=t=>t?.replace(/_/g,"-"),v={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};var b=new class t{constructor(t,e={}){this.init(t,e)}init(t,e={}){this.prefix=e.prefix||"i18next:",this.logger=t||v,this.options=e,this.debug=e.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,r,a){return a&&!this.debug?null:(t=t.map(t=>i(t)?t.replace(/[\r\n\x00-\x1F\x7F]/g," "):t),i(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[e](t))}create(e){return new t(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new t(this.logger,e)}};class w{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach(t=>{this.observers[t]||(this.observers[t]=new Map);let r=this.observers[t].get(e)||0;this.observers[t].set(e,r+1)}),this}off(t,e){if(this.observers[t]){if(!e)return void delete this.observers[t];this.observers[t].delete(e)}}once(t,e){let r=(...i)=>{e(...i),this.off(t,r)};return this.on(t,r),this}emit(t,...e){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([t,r])=>{for(let i=0;i<r;i++)t(...e)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,i])=>{for(let a=0;a<i;a++)r(t,...e)})}}class S extends w{constructor(t,e={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){let e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,r,a={}){let s,n=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,o=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;t.includes(".")?s=t.split("."):(s=[t,e],r&&(Array.isArray(r)?s.push(...r):i(r)&&n?s.push(...r.split(n)):s.push(r)));let l=d(this.data,s);return(!l&&!e&&!r&&t.includes(".")&&(t=s[0],e=s[1],r=s.slice(2).join(".")),!l&&o&&i(r))?_(this.data?.[t]?.[e],r,n):l}addResource(t,e,r,i,a={silent:!1}){let s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,n=[t,e];r&&(n=n.concat(s?r.split(s):r)),t.includes(".")&&(n=t.split("."),i=e,e=n[1]),this.addNamespaces(e),h(this.data,n,i),a.silent||this.emit
1("added",t,e,r,i)}addResources(t,e,r,a={silent:!1}){for(let a in r)(i(r[a])||Array.isArray(r[a]))&&this.addResource(t,e,a,r[a],{silent:!0});a.silent||this.emit("added",t,e,r)}addResourceBundle(t,e,r,i,a,s={silent:!1,skipCopy:!1}){let n=[t,e];t.includes(".")&&(n=t.split("."),i=r,r=e,e=n[1]),this.addNamespaces(e);let o=d(this.data,n)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?c(o,r,a):o={...o,...r},h(this.data,n,o),s.silent||this.emit("added",t,e,r)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find(t=>e[t]&&Object.keys(e[t]).length>0)}toJSON(){return this.data}}var k={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,r,i,a){return t.forEach(t=>{e=this.processors[t]?.process(e,r,i,a)??e}),e}};let x=Symbol("i18next/PATH_KEY");function E(t,e){let r,i,a,{[x]:s}=t((i=[],(a=Object.create(null)).get=(t,e)=>(r?.revoke?.(),e===x)?i:(i.push(e),(r=Proxy.revocable(t,a)).proxy),Proxy.revocable(Object.create(null),a).proxy)),n=e?.keySeparator??".",o=e?.nsSeparator??":",l=e?.enableSelector==="strict";if(s.length>1&&o){let t=e?.ns,r=l?Array.isArray(t)?t:t?[t]:null:Array.isArray(t)?t:null;if(r&&(l?r:r.length>1?r.slice(1):[]).includes(s[0]))return`${s[0]}${o}${s.slice(1).join(n)}`}return s.join(n)}let N=t=>!i(t)&&"boolean"!=typeof t&&"number"!=typeof t;class O extends w{constructor(t,e={}){super(),((t,e,r)=>{t.forEach(t=>{e[t]&&(r[t]=e[t])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1i18nFormat","utils"],t,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=b.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,e={interpolation:{}}){let r={...e};if(null==t)return!1;let i=this.resolve(t,r);if(i?.res===void 0)return!1;let a=N(i.res);return!1!==r.returnObjects||!a}extractFromKey(t,e){let r=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let a=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,s=e.ns||this.options.defaultNS||[],n=r&&t.includes(r),o=!this.options.userDefinedKeySeparator&&!e.keySeparator&&!this.options.userDefinedNsSeparator&&!e.nsSeparator&&!((t,e,r)=>{e=e||"",r=r||"";let i=f.filter(t=>!e.includes(t)&&!r.includes(t));if(0===i.length)return!0;let a=m.getRegExp(`(${i.map(t=>"?"===t?"\\?":t).join("|")})`),s=!a.test(t);if(!s){let e=t.indexOf(r);e>0&&!a.test(t.substring(0,e))&&(s=!0)}return s})(t,r,a);if(n&&!o){let e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:i(s)?[s]:s};let n=t.split(r);(r!==a||r===a&&this.options.ns.includes(n[0]))&&(s=n.shift()),t=n.join(a)}return{key:t,namespaces:i(s)?[s]:s}}translate(t,e,r){let a="object"==typeof e?{...e}:e;if("object"!=typeof a&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof a&&(a={...a}),a||(a={}),null==t)return"";"function"==typeof t&&(t=E(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map(t=>"function"==typeof t?E(t,{...this.options,...a}):String(t));let s=void 0!==a.returnDetails?a.returnDetails:this.options.returnDetails,n=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),u=l[l.length-1],h=void 0!==a.nsSeparator?a.nsSeparator:this.options.nsSeparator;void 0===h&&(h=":");let d=a.lng||this.language,c=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return c?s?{res:`${u}${h}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:`${u}${h}${o}`:s?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(a)}:o;let p=this.resolve(t,a),g=p?.res,f=p?.usedKey||o,m=p?.exactUsedKey||o,_=void 0!==a.joinArrays?a.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==a.count&&!i(a.count),b=O.hasDefaultValue(a),w=v?this.pluralResolver.getSuffix(d,a.count,a):"",S=a.ordinal&&v?this.pluralResolver.getSuffix(d,a.count,{ordinal:!1}):"",k=v&&!a.ordinal&&0===a.count,x=k&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${w}`]||a[`defaultValue${S}`]||a.defaultValue,L=g;y&&!g&&b&&(L=x);let R=N(L),I=Object.prototype.toString.apply(L);if(y&&L&&R&&!["[object Number]","[object Function]","[object RegExp]"].includes(I)&&!(i(_)&&Array.isArray(L))
1){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,L,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(p.res=t,p.usedParams=this.getUsedParamsDetails(a),p):t}if(n){let t=Array.isArray(L),e=t?[]:{},r=t?m:f;for(let t in L)if(Object.prototype.hasOwnProperty.call(L,t)){let i=`${r}${n}${t}`;b&&!g?e[t]=this.translate(i,{...a,defaultValue:N(x)?x[t]:void 0,...{joinArrays:!1,ns:l}}):e[t]=this.translate(i,{...a,joinArrays:!1,ns:l}),e[t]===i&&(e[t]=L[t])}g=e}}else if(y&&i(_)&&Array.isArray(g))(g=g.join(_))&&(g=this.extendTranslation(g,t,a,r));else{let e=!1,i=!1;!this.isValidLookup(g)&&b&&(e=!0,g=x),this.isValidLookup(g)||(i=!0,g=o);let s=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:g,l=b&&x!==g&&this.options.updateMissing;if(i||e||l){if(this.logger.log(l?"updateKey":"missingKey",d,u,v&&!l?`${o}${this.pluralResolver.getSuffix(d,a.count,a)}`:o,l?x:g),n){let t=this.resolve(o,{...a,keySeparator:!1});t&&t.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 t=[],e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if("fallback"===this.options.saveMissingTo&&e&&e[0])for(let r=0;r<e.length;r++)t.push(e[r]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(a.lng||this.language):t.push(a.lng||this.language);let r=(t,e,r)=>{let i=b&&r!==g?r:s;this.options.missingKeyHandler?this.options.missingKeyHandler(t,u,e,i,l,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,u,e,i,l,a),this.emit("missingKey",t,u,e,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?t.forEach(t=>{let e=this.pluralResolver.getSuffixes(t,a);k&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!e.includes(`${this.options.pluralSeparator}zero`)&&e.push(`${this.options.pluralSeparator}zero`),e.forEach(e=>{r([t],o+e,a[`defaultValue${e}`]||x)})}):r(t,o,x))}g=this.extendTranslation(g,t,a,p,r),i&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${u}${h}${o}`),(i||e)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${h}${o}`:o,e?g:void 0,a))}return s?(p.res=g,p.usedParams=this.getUsedParamsDetails(a),p):g}extendTranslation(t,e,r,a,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){let n;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let o=i(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(o){let e=t.match(this.interpolator.nestingRegexp);n=e&&e.length}let l=r.replace&&!i(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),t=this.interpolator.interpolate(t,l,r.lng||this.language||a.usedLng,r),o){let e=t.match(this.interpolator.nestingRegexp);n<(e&&e.length)&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),!1!==r.nest&&(t=this.interpolator.nest(t,(...t)=>s?.[0]!==t[0]||r.context?this.translate(...t,e):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${e[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let n=r.postProcess||this.options.postProcess,o=i(n)?[n]:n;return null!=t&&o?.length&&!1!==r.applyPostProcessor&&(t=k.handle(o,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,e={}){let r,a,s,n,o;return i(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(t=>"function"==typeof t?E(t,{...this.options,...e}):t)),t.forEach(t=>{if(this.isValidLookup(r))return;let l=this.extractFromKey(t,e),u=l.key;a=u;let h=l.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));let d=void 0!==e.count&&!i(e.count),c=d&&!e.ordinal&&0===e.count,p=void 0!==e.context&&(i(e.context)||"number"==typeof e.context)&&""!==e.context,g=e.lngs?e.lngs:this.languageUtils.toResolveHierarchy(e.lng||this.language,e.fallbackLng);h.forEach(t=>{this.isValidLookup(r)||(o=t,!this.checkedLoadedFor[`${g[0]}-${t}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${g[0]}-${t}`]=!0,this.logger.warn(`key "${a}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(i=>
1{let a;if(this.isValidLookup(r))return;n=i;let o=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,u,i,t,e);else{let t;d&&(t=this.pluralResolver.getSuffix(i,e.count,e));let r=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(e.ordinal&&t.startsWith(a)&&o.push(u+t.replace(a,this.options.pluralSeparator)),o.push(u+t),c&&o.push(u+r)),p){let i=`${u}${this.options.contextSeparator||"_"}${e.context}`;o.push(i),d&&(e.ordinal&&t.startsWith(a)&&o.push(i+t.replace(a,this.options.pluralSeparator)),o.push(i+t),c&&o.push(i+r))}}for(;a=o.pop();)this.isValidLookup(r)||(s=a,r=this.getResource(i,t,a,e))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:n,usedNS:o}}isValidLookup(t){return void 0!==t&&!(!this.options.returnNull&&null===t)&&!(!this.options.returnEmptyString&&""===t)}getResource(t,e,r,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,e,r,i):this.resourceStore.getResource(t,e,r,i)}getUsedParamsDetails(t={}){let e=t.replace&&!i(t.replace),r=e?t.replace:t;if(e&&void 0!==t.count&&(r={...r,count:t.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!e)for(let t of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[t];return r}static hasDefaultValue(t){for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e.startsWith("defaultValue")&&void 0!==t[e])return!0;return!1}}class L{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=b.create("languageUtils")}getScriptPartFromCode(t){if(!(t=y(t))||!t.includes("-"))return null;let e=t.split("-");return 2===e.length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(t){if(!(t=y(t))||!t.includes("-"))return t;let e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(i(t)&&t.includes("-")){let e;try{e=Intl.getCanonicalLocales(t)[0]}catch(t){}return(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)?e:this.options.lowerCaseLng?t.toLowerCase():t}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){let e;return t?(t.forEach(t=>{if(e)return;let r=this.formatLanguageCode(t);(!this.options.supportedLngs||this.isSupportedCode(r))&&(e=r)}),!e&&this.options.supportedLngs&&t.forEach(t=>{if(e)return;let r=this.getScriptPartFromCode(t);if(this.isSupportedCode(r))return e=r;let i=this.getLanguagePartFromCode(t);if(this.isSupportedCode(i))return e=i;e=this.options.supportedLngs.find(t=>t===i||(!!t.includes("-")||!!i.includes("-"))&&!!(t.includes("-")&&!i.includes("-")&&t.slice(0,t.indexOf("-"))===i||t.startsWith(i)&&i.length>1))}),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e):null}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),i(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let r=t[e];return r||(r=t[this.getScriptPartFromCode(e)]),r||(r=t[this.formatLanguageCode(e)]),r||(r=t[this.getLanguagePartFromCode(e)]),r||(r=t.default),r||[]}toResolveHierarchy(t,e){let r=this.getFallbackCodes((!1===e?[]:e)||this.options.fallbackLng||[],t),a=[],s=t=>{t&&(this.isSupportedCode(t)?a.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return i(t)&&(t.includes("-")||t.includes("_"))?("languageOnly"!==this.options.load&&s(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&s(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&s(this.getLanguagePartFromCode(t))):i(t)&&s(this.formatLanguageCode(t)),r.forEach(t=>{a.includes(t)||s(this.formatLanguageCode(t))}),a}}let R={zero:0,one:1,two:2,few:3,many:4,other:5},I={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class A{constructor(t,e={}){this.languageUtils=t,this.options=e,this.logger=b.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,e={}){let r,i=y("dev"===t?"en":t),a=e.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:i,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];try{r=new Intl.PluralRules(i,{type:a})}catch(a){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl pol
1yfill!"),I;if(!t.match(/-|_/))return I;let i=this.languageUtils.getLanguagePartFromCode(t);r=this.getRule(i,e)}return this.pluralRulesCache[s]=r,r}needsPlural(t,e={}){let r=this.getRule(t,e);return r||(r=this.getRule("dev",e)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,e,r={}){return this.getSuffixes(t,r).map(t=>`${e}${t}`)}getSuffixes(t,e={}){let r=this.getRule(t,e);return(r||(r=this.getRule("dev",e)),r)?r.resolvedOptions().pluralCategories.sort((t,e)=>R[t]-R[e]).map(t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`):[]}getSuffix(t,e,r={}){let i=this.getRule(t,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",e,r))}}let C=(t,e,r,a=".",s=!0)=>{let n,o=void 0!==(n=d(t,r))?n:d(e,r);return!o&&s&&i(r)&&void 0===(o=_(t,r,a))&&(o=_(e,r,a)),o},$=t=>t.replace(/\$/g,"$$$$");class D{constructor(t={}){this.logger=b.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:e,escapeValue:r,useRawValueToEscape:i,prefix:a,prefixEscaped:s,suffix:n,suffixEscaped:o,formatSeparator:l,unescapeSuffix:u,unescapePrefix:h,nestingPrefix:d,nestingPrefixEscaped:c,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:_,alwaysFormat:y}=t.interpolation;this.escape=void 0!==e?e:g,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"{{",this.suffix=n?n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):o||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):c||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=p?p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=m||",",this.maxReplaces=_||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=(t,e)=>t?.source===e?(t.lastIndex=0,t):RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,e,r,a){let n,o,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=t=>{if(!t.includes(this.formatSeparator)){let i=C(e,u,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...a,...e,interpolationkey:t}):i}let i=t.split(this.formatSeparator),s=i.shift().trim(),n=i.join(this.formatSeparator).trim();return this.format(C(e,u,s,this.options.keySeparator,this.options.ignoreJSONStructure),n,r,{...a,...e,interpolationkey:s})};this.resetRegExp(),!this.escapeValue&&"string"==typeof t&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&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 d=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>t},{regex:this.regexp,safeValue:t=>this.escapeValue?this.escape(t):t}].forEach(e=>{for(l=0;n=e.regex.exec(t);){let r=n[1].trim();if(void 0===(o=h(r)))if("function"==typeof d){let e=d(t,n,a);o=i(e)?e:""}else if(a&&Object.prototype.hasOwnProperty.call(a,r))o="";else if(c){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${t}`),o="";else i(o)||this.useRawValueToEscape||(o=s(o));let u=e.safeValue(o);if(t=t.replace(n[0],$(u)),c?(e.regex.lastIndex+=u.length,e.regex.lastIndex-=n[0].length):e.regex.lastIndex=0,++l>=this.maxReplaces)break}}),t}nest(t,e,r={}){let a,n,o,l=(t,e)=>{let r=this.nestingOptionsSeparator;if(!t.includes(r))return t;let i=t.split(RegExp(`${r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),a=`{${i[1]}`;t=i[0];let s=(a=this.interpolate(a,o)).match(/'/g),n=a.match(/"/g);((s?.length??0)%2!=0||n)&&(n?.length??0)%2==0||(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),e&&(o={...e,...o}
1)}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${r}${a}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,t};for(;a=this.nestingRegexp.exec(t);){let u=[];(o=(o={...r}).replace&&!i(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let h=/{.*}/s.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(-1!==h&&(u=a[1].slice(h).split(this.formatSeparator).map(t=>t.trim()).filter(Boolean),a[1]=a[1].slice(0,h)),(n=e(l.call(this,a[1].trim(),o),o))&&a[0]===t&&!i(n))return n;i(n)||(n=s(n)),n||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),n=""),u.length&&(n=u.reduce((t,e)=>this.format(t,e,r.lng,{...r,interpolationkey:a[1].trim()}),n.trim())),t=t.replace(a[0],n),this.regexp.lastIndex=0}return t}}let T=t=>{let e={};return(r,i,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});let n=i+JSON.str
1ingify(s),o=e[n];return o||(o=t(y(i),a),e[n]=o),o(r)}},j=t=>(e,r,i)=>t(y(r),i)(e);class z{constructor(t={}){this.logger=b.create("formatter"),this.options=t,this.init(t)}init(t,e={interpolation:{}}){this.formatSeparator=e.interpolation.formatSeparator||",";let r=e.cacheInBuiltFormats?T:j;this.formats={number:r((t,e)=>{let r=new Intl.NumberFormat(t,{...e});return t=>r.format(t)}),currency:r((t,e)=>{let r=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>r.format(t)}),datetime:r((t,e)=>{let r=new Intl.DateTimeFormat(t,{...e});return t=>r.format(t)}),relativetime:r((t,e)=>{let r=new Intl.RelativeTimeFormat(t,{...e});return t=>r.format(t,e.range||"day")}),list:r((t,e)=>{let r=new Intl.ListFormat(t,{...e});return t=>r.format(t)})}}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=T(e)}format(t,e,r,i={}){if(!e||null==t)return t;let a=e.split(this.formatSeparator),s=[];for(let t=0;t<a.length;t++){let e=a[t];for(;e.indexOf("(")>-1&&!e.includes(")")&&t+1<a.length;)e=`${e}${this.formatSeparator}${a[++t]}`;s.push(e)}return s.reduce((t,e)=>{let{formatName:a,formatOptions:s}=(t=>{let e=t.toLowerCase().trim(),r={};if(t.includes("(")){let i=t.split("(");e=i[0].toLowerCase().trim();let a=i[1].slice(0,-1);"currency"!==e||a.includes(":")?"relativetime"!==e||a.includes(":")?a.split(";").forEach(t=>{if(t){let[e,...i]=t.split(":"),a=i.join(":").trim().replace(/^'+|'+$/g,""),s=e.trim();r[s]||(r[s]=a),"false"===a&&(r[s]=!1),"true"===a&&(r[s]=!0),isNaN(a)||(r[s]=parseInt(a,10))}}):r.range||(r.range=a.trim()):r.currency||(r.currency=a.trim())}return{formatName:e,formatOptions:r}})(e);if(this.formats[a]){let e=t;try{let n=i?.formatParams?.[i.interpolationkey]||{},o=n.locale||n.lng||i.locale||i.lng||r;e=this.formats[a](t,o,{...s,...i,...n})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${a}`),t},t)}}class P extends w{constructor(t,e,r,i={}){super(),this.backend=t,this.store=e,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=b.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(t,e,r,i){let a={},s={},n={},o={};return t.forEach(t=>{let i=!0;e.forEach(e=>{let n=`${t}|${e}`;!r.reload&&this.store.hasResourceBundle(t,e)?this.state[n]=2:this.state[n]<0||(1===this.state[n]?void 0===s[n]&&(s[n]=!0):(this.state[n]=1,i=!1,void 0===s[n]&&(s[n]=!0),void 0===a[n]&&(a[n]=!0),void 0===o[e]&&(o[e]=!0)))}),i||(n[t]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(n),toLoadNamespaces:Object.keys(o)}}loaded(t,e,r){let i=t.split("|"),a=i[0],s=i[1];e&&this.emit("failedLoading",a,s,e),!e&&r&&this.store.addResourceBundle(a,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&r&&(this.state[t]=0);let n={};this.queue.forEach(r=>{((t,e,r)=>{let{obj:i,k:a}=u(t,e,Object);i[a]=i[a]||[],i[a].push(r)})(r.loaded,[a],s),void 0!==r.pending[t]&&(delete r.pending[t],r.pendingCount--),e&&r.errors.push(e),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(t=>{n[t]||(n[t]={});let e=r.loaded[t];e.length&&e.forEach(e=>{void 0===n[t][e]&&(n[t][e]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",n),this.queue=this.queue.filter(t=>!t.done)}read(t,e,r,i=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:r,tried:i,wait:a,callback:s});this.readingCalls++;let n=(n,o)=>{if(this.readingCalls--,this.waitingReads.length>0){let t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}n&&o&&i<this.maxRetries?setTimeout(()=>{this.read(t,e,r,i+1,2*a,s)},a):s(n,o)},o=this.backend[r].bind(this.backend);if(2===o.length){try{let r=o(t,e);r&&"function"==typeof r.then?r.then(t=>n(null,t)).catch(n):n(null,r)}catch(t){n(t)}return}return o(t,e,n)}prepareLoading(t,e,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();i(t)&&(t=this.languageUtils.toResolveHierarchy(t)),i(e)&&(e=[e]);let s=this.queueLoad(t,e,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;
1s.toLoad.forEach(t=>{this.loadOne(t)})}load(t,e,r){this.prepareLoading(t,e,{},r)}reload(t,e,r){this.prepareLoading(t,e,{reload:!0},r)}loadOne(t,e=""){let r=t.split("|"),i=r[0],a=r[1];this.read(i,a,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${e}loading namespace ${a} for language ${i} failed`,r),!r&&s&&this.logger.log(`${e}loaded namespace ${a} for language ${i}`,s),this.loaded(t,r,s)})}saveMissing(t,e,r,i,a,s={},n=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(e))return void this.logger.warn(`did not save key "${r}" as the namespace "${e}" 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 o={...s,isUpdate:a},l=this.backend.create.bind(this.backend);if(l.length<6)try{let a;(a=5===l.length?l(t,e,r,i,o):l(t,e,r,i))&&"function"==typeof a.then?a.then(t=>n(null,t)).catch(n):n(null,a)}catch(t){n(t)}else l(t,e,r,i,n,o)}t&&t[0]&&this.store.addResource(t[0],e,r,i)}}}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:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),i(t[1])&&(e.defaultValue=t[1]),i(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){let r=t[3]||t[2];Object.keys(r).forEach(t=>{e[t]=r[t]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),F=t=>(i(t.ns)&&(t.ns=[t.ns]),i(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),i(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&!t.supportedLngs.includes("cimode")&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),M=()=>{};class V extends w{constructor(t={},e){if(super(),this.options=F(t),this.services={},this.logger=b,this.modules={external:[]},(t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))})})(this),e&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,e),this;setTimeout(()=>{this.init(t,e)},0)}}init(t={},e){this.isInitializing=!0,"function"==typeof t&&(e=t,t={}),null==t.defaultNS&&t.ns&&(i(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));let r=U();this.options={...r,...this.options,...F(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);let s=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;this.modules.logger?b.init(s(this.modules.logger),this.options):b.init(null,this.options),t=this.modules.formatter?this.modules.formatter:z;let e=new L(this.options);this.store=new S(this.options.resources,this.options);let r=this.services;r.logger=b,r.resourceStore=this.store,r.languageUtils=e,r.pluralResolver=new A(e,{prepend:this.options.pluralSeparator}),t&&(r.formatter=s(t),r.formatter.init&&r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new D(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new P(s(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(t,...e)=>
1{this.emit(t,...e)}),this.modules.languageDetector&&(r.languageDetector=s(this.modules.languageDetector),r.languageDetector.init&&r.languageDetector.init(r,this.options.detection,this.options)),this.modules.i18nFormat&&(r.i18nFormat=s(this.modules.i18nFormat),r.i18nFormat.init&&r.i18nFormat.init(this)),this.translator=new O(this.services,this.options),this.translator.on("*",(t,...e)=>{this.emit(t,...e)}),this.modules.external.forEach(t=>{t.init&&t.init(this)})}if(this.format=this.options.interpolation.format,e||(e=M),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[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(t=>{this[t]=(...e)=>this.store[t](...e)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=(...e)=>(this.store[t](...e),this)});let n=a(),o=()=>{let t=(t,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),n.resolve(r),e(t,r)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),n}loadResources(t,e=M){let r=e,a=i(t)?t:this.language;if("function"==typeof t&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let t=[],e=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"!==e&&(t.includes(e)||t.push(e))})};a?e(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(t=>e(t)),this.options.preload?.forEach?.(t=>e(t)),this.services.backendConnector.load(t,this.options.ns,t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(t)})}else r(null)}reloadResources(t,e,r){let i=a();return"function"==typeof t&&(r=t,t=void 0),"function"==typeof e&&(r=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),r||(r=M),this.services.backendConnector.reload(t,e,t=>{i.resolve(),r(t)}),i}use(t){if(!t)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&k.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!["cimode","dev"].includes(t)){for(let t=0;t<this.languages.length;t++){let e=this.languages[t];if(!["cimode","dev"].includes(e)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,e){this.isLanguageChangingTo=t;let r=a();this.emit("languageChanging",t);let s=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},n=(i,a)=>{a?this.isLanguageChangingTo===t&&(s(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,r.resolve((...t)=>this.t(...t)),e&&e(i,(...t)=>this.t(...t))},o=e=>{t||e||!this.services.languageDetector||(e=[]);let r=i(e)?e:e&&e[0],a=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(i(e)?[e]:e);a&&(this.language||s(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,t=>{n(t,a)})};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t):o(this.services.languageDetector.detect()),r}getFixedT(t,e,r,a){let s=a?.scopeNs,n=(t,e,...i)=>{let a,o;(a="object"!=typeof e?this.options.overloadTranslationOptionHandler([t,e].concat(i)):{...e}).lng=a.lng||n.lng,a.lngs=a.lngs||n.lngs;let l=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||n.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||r||n.keyPrefix);let u={...this.options,...a};Array.isArray(s)&&!l&&(u.ns=s),"function"==typeof a.keyPrefix&&(a.keyPrefix=E(a.keyPrefix,u));let h=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(t)?o=t.map(t=>("function"==typeof t&&(t=E(t,u)),`${a.keyPrefix}${h}${t}`)):("function"==typeof t&&(t=E(t,u)),o=a.keyPrefix?`${a.keyPrefix}${h}${t}`:t),this.t(o,a)};return i(t)?n.lng=t:n.lngs=t,n.ns=e,n.keyPrefix=r,n}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,e={}){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=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let s=(t,e)=>{let r=this.services.backendConnector.state[`${t}|${e}`];return -1===r||0===r||2===r};if(e.precheck){let t=e.precheck(this,s);if(void 0!==t)return t}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!i||s(a,t)))}loadNamespaces(t,e){let r=a();return this.options.ns?(i(t)&&(t=[t]),t.forEach(t=>{this.options.ns.includes(t)||this.options.ns.push(t)}),this.loadResources(t=>{r.resolve(),e&&e(t)}),r):(e&&e(),Promise.resolve())}loadLanguages(t,e){let r=a();i(t)&&(t=[t]);let s=this.options.preload||[],n=t.filter(t=>!s.includes(t)&&this.services.languageUtils.isSupportedCode(t));return n.length?(this.options.preload=s.concat(n),this.loadResources(t=>{r.resolve(),e&&e(t)}),r):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{let e=new Intl.Locale(t);if(e&&e.getTextInfo){let t=e.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}let e=this.services?.languageUtils||new L(U());return t.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(e.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},e){let r=new V(t,e);return r.createInstance=V.createInstance,r}cloneInstance(t={},e=M){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new V(i);if((void 0!==t.debug||void 0!==t.prefix)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(t=>{a[t]=this[t]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new S(Object.keys(this.store.data).reduce((t,e)=>(t[e]={...this.store.data[e]},t[e]=Object.keys(t[e]).reduce((r,i)=>(r[i]={...t[e][i]},r),t[e]),t),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...U().interpolation,...this.options.interpolation,...t.interpolation},r={...i,interpolation:e};a.services.interpolator=new D(r)}return a.translator=new O(a.services,i),a.translator.on("*",(t,...e)=>{a.emit(t,...e)}),a.init(i,e),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let B=V.createInstance();B.createInstance,B.dir,B.init,B.loadResources,B.reloadResources,B.use,B.changeLanguage,B.getFixedT,B.t,B.exists,B.setDefaultNamespace,B.hasLoadedNamespace,B.loadNamespaces,B.loadLanguages,t.s(["default",0,B,"keyFromSelector",0,E],715653);let Y={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},H=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?("[^"]*"|'[^']*')/g;function K(t){let e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=t.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(e.name=r[1],(Y[r[1]]||"/"===t.charAt(t.length-2))&&(e.voidElement=!0),e.name.startsWith("!--"))){let e=t.indexOf("-->");return{type:"comment",comment:-1!==e?t.slice(4,e):""}}let i=new RegExp(H),a=null;for(;null!==(a=i.exec(t));)if(a[0].trim())if(a[1]){let t=a[1].trim(),r=[t,null],s=t.indexOf("=");s>-1&&(r=[t.slice(0,s),t.slice(s+1)]),e.attrs[r[0]]=r[1],i.lastIndex--}else a[2]&&(e.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return e}let Z=/<!--[\s\S]*?-->|<[a-zA-Z0-9\-!/](?:"[^"]*"|'[^']*'|[^'">])*>/g,W=/<\/?([^\s]+?)[/\s>]/,q=/^\s*$/,J=/^(script|style)$/i,G=Object.create(null);var Q=function(t,e){let r,i,a,s=e&&e.components||G,n=e&&e.allowedTags,o=!1;if(n){let e,r="function"==typeof n?n:function(t){return n.indexOf(t)>-1},i="",a=0;for(Z.lastIndex=0;e=Z.exec(t);){let s=e[0];
1i+=t.slice(a,e.index);let n=s.match(W);s.startsWith("<!--")||n&&r(n[1])?(i+=s,a=e.index+s.length):(o=!0,i+="\0",Z.lastIndex=a=e.index+1)}t=i+t.slice(a)}let l=[],u=[],h=-1,d=!1,c=0;if(0!==t.indexOf("<")){let e=t.indexOf("<");l.push({type:"text",content:-1===e?t:t.substring(0,e)})}let p=[];for(;a=Z.exec(t);)p.push(a);return p.forEach(function(t,e){let r=t[0];if(!r||r.startsWith("<!--"))return;let i=0,a=0,s=-1,n=null;for(let t=0;t<r.length;t++){let e=r.charAt(t);n?e===n&&(n=null):'"'===e||"'"===e?n=e:"<"===e?2==++i&&(s=t):">"===e&&a++}let o=s>-1&&/[a-zA-Z0-9\-!/]/.test(r.charAt(s+1));if(i>a&&o){let t=r.substring(0,s),i=r.substring(t.length);p[e][0]=i,p[e].index+=t.length}}),p.forEach(function(e,a){let n,o,g=e[0];if(!g)return;let f=e.index;if(f<c)return;if(d)if(g!=="</"+r.name+">")return;else d=!1;let m="/"!==g.charAt(1),_=g.startsWith("<!--"),y=f+g.length,v=t.charAt(y),b=p[a+1];if("<"===v&&b){let e=t.substring(y,b.index);n=e.split("<").length>e.split(">").length}if(_){let e=K(g);if(h<0)return l.push(e),l;(o=u[h]).children.push(e);let r=t.slice(y,b?b.index:void 0);return r.length>0&&o.children.push({type:"text",content:r}),l}if(m){h++,"tag"===(r=K(g)).type&&s[r.name]&&(r.type="component",d=!0);let e=!1;if(!d&&!r.voidElement&&J.test(r.name)){e=!0,i||(i=t.toLowerCase());let a=i.indexOf("</"+r.name.toLowerCase()+">",y),s=-1===a?t.length:a,n=t.slice(y,s);n&&r.children.push({type:"text",content:n}),c=s}r.voidElement||d||e||!v||"<"===v||r.children.push({type:"text",content:t.slice(y,b?b.index:void 0)}),0===h&&l.push(r),(o=u[h-1])&&o.children.push(r),u[h]=r}if((!m||r.voidElement)&&(h>-1&&(r.voidElement||r.name===g.slice(2,-1))&&(r=-1==--h?l:u[h]),!d&&("<"!==v||n)&&v)){o=-1===h?l:u[h].children;let e=b?b.index:-1,r=t.slice(y,-1===e?void 0:e);q.test(r)&&(r=" "),(e>-1&&h+o.length>=0||" "!==r)&&o.push({type:"text",content:r})}}),o&&function t(e){e.forEach(function(e){if("text"===e.type){e.content=e.content.split("\0").join("<");return}if("comment"===e.type){e.comment=e.comment.split("\0").join("<");return}for(let t in e.attrs){let r=e.attrs[t];"string"==typeof r&&r.indexOf("\0")>-1&&(e.attrs[t]=r.split("\0").join("<"))}e.children.length&&t(e.children)})}(l),l};let X=(t,e,r,i)=>{let a=[r,{code:e,...i||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);ts(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...a):console?.warn&&console.warn(...a)},tt={},te=(t,e,r,i)=>{ts(r)&&tt[r]||(ts(r)&&(tt[r]=new Date),X(t,e,r,i))},tr=(t,e)=>()=>{if(t.isInitialized)e();else{let r=()=>{setTimeout(()=>{t.off("initialized",r)},0),e()};t.on("initialized",r)}},ti=(t,e,r)=>{t.loadNamespaces(e,tr(t,r))},ta=(t,e,r,i)=>{if(ts(r)&&(r=[r]),t.options.preload&&t.options.preload.indexOf(e)>-1)return ti(t,r,i);r.forEach(e=>{0>t.options.ns.indexOf(e)&&t.options.ns.push(e)}),t.loadLanguages(e,tr(t,i))},ts=t=>"string"==typeof t,tn=t=>"object"==typeof t&&null!==t,to=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tl={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},tu=t=>tl[t],th=t=>t.replace(to,tu),td={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:th,transDefaultProps:void 0},tc=(t,e)=>{if(!t)return!1;let r=t.props?.children??t.children;return e?r.length>0:!!r},tp=t=>{if(!t)return[];let e=t.props?.children??t.children;return t.props?.i18nIsDynamicList?tg(e):e},tg=t=>Array.isArray(t)?t:[t],tf=(t,e,i,a)=>{if(!t)return"";let s="",n=tg(t),o=e?.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return n.forEach((t,n)=>{if(ts(t)){s+=`${t}`;return}if((0,r.isValidElement)(t)){let{props:r,type:l}=t,u=Object.keys(r).length,h=o.indexOf(l)>-1,d=r.children;if(!d&&h&&!u){s+=`<${l}/>`;return}if(!d&&(!h||u)||r.i18nIsDynamicList){s+=`<${n}></${n}>`;return}if(h&&u<=1){let t=ts(d)?d:tf(d,e,i,a);s+=`<${l}>${t}</${l}>`;return}let c=tf(d,e,i,a);s+=`<${n}>${c}</${n}>`;return}if(null===t)return void X(i,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:a});if(tn(t)){let{format:e,...r}=t,n=Object.keys(r);if(1===n.length){let t=e?`${n[0]}, ${e}`:n[0];s+=`{{${t}}}`;return}X(i,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:a,child:t});return}X(i,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:a,child:t})}),s},tm=(t,e,i)=>{let a=t.key||e,s=(0,r.cloneElement)(t,{key:a});return!s.props||!s.props.children||0>i.indexOf(`${e}/>`)&&0>i.indexOf(`${e} />`)?s:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,s)},{key:a})};t.s(["initReactI18next",0,{type:"3rdParty",init(t){((t={})=>{td={...td,...t}})(t.options.react),e=t}}],479068);let t_=(0,r.createContext)();class ty{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}t.s(["Trans",0,function({children:t,count:i,parent:a,i18nKey:s,context:n,tOptions:o={}
1,values:l,defaults:u,components:h,ns:d,i18n:c,t:p,shouldUnescape:g,...f}){let{i18n:m,defaultNS:_}=(0,r.useContext)(t_)||{},y=c||m||e,v=p||y?.t.bind(y);return function({children:t,count:i,parent:a,i18nKey:s,context:n,tOptions:o={},values:l,defaults:u,components:h,ns:d,i18n:c,t:p,shouldUnescape:g,...f}){let m=c||e;if(!m)return te(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}),t;let _=p||m.t.bind(m)||(t=>t),y={...td,...m.options?.react},v=d||_.ns||m.options?.defaultNS;v=ts(v)?[v]:v||["translation"];let{transDefaultProps:b}=y,w=b?.tOptions?{...b.tOptions,...o}:o,S=g??b?.shouldUnescape,k=b?.values?{...b.values,...l}:l,x=b?.components?{...b.components,...h}:h,N=tf(t,y,m,s),O=u||w?.defaultValue||N||y.transEmptyNodeValue||("function"==typeof s?E(s):s),{hashTransKey:L}=y,R=s||(L?L(N||O):N||O);l=m.options?.interpolation?.defaultVariables?k&&Object.keys(k).length>0?{...k,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables}:k;let I=(t=>{let e={};if(!t)return e;let i=t=>{tg(t).forEach(t=>{ts(t)||(tc(t)?i(tp(t)):tn(t)&&!(0,r.isValidElement)(t)&&Object.assign(e,t))})};return i(t),e})(t);I&&"number"==typeof I.count&&void 0===i&&(i=I.count);let A=!l&&(void 0===i||m.options?.interpolation?.alwaysFormat)&&t?{interpolation:{...w.interpolation,prefix:"#$?",suffix:"?$#"}}:w.interpolation,C={...w,context:n||w.context,count:i,...l,...A,defaultValue:O,ns:v},$=R?_(R,C):O;$===R&&O&&($=O);let D=((t,e,r,i)=>{if(!t)return null;if(Array.isArray(t))return t.map((t,r)=>tm(t,r,e));if(tn(t)){let r;return r={},Object.keys(t).forEach(i=>{Object.assign(r,{[i]:tm(t[i],i,e)})}),r}return te(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:i}),null})(x,$,m,s),T=D||t,j=null;!(!tn(D)||Array.isArray(D))&&Object.keys(D).reduce((t,e)=>t&&Number.isNaN(Number.parseFloat(e)),!0)&&(j=D,T=t);let z=((t,e,i,a,s,n,o)=>{if(""===i)return[];let l=s.transKeepBasicHtmlNodesFor||[],u=i&&new RegExp(l.map(t=>`<${t}`).join("|")).test(i);if(!t&&!e&&!u&&!o)return[i];let h=e??{},d=t=>{tg(t).forEach(t=>{ts(t)||(tc(t)?d(tp(t)):tn(t)&&!(0,r.isValidElement)(t)&&Object.assign(h,t))})};d(t);let c=Object.keys(h),p=Q(`<0>${i}</0>`,{allowedTags:t=>/^\d+$/.test(t)||l.indexOf(t)>-1||c.indexOf(t)>-1}),g={...h,...n},f=(t,e,i)=>{let a=tp(t),s=_(a,e.children,i);return Array.isArray(a)&&a.every(r.isValidElement)&&0===s.length||t.props?.i18nIsDynamicList?a:s},m=(t,e,i,a,s)=>{t.dummy?(t.children=e,i.push((0,r.cloneElement)(t,{key:a},s?void 0:e))):i.push(...r.Children.map([t],t=>{if(t.type===r.Fragment||t.props?.i18nIsDynamicList!==void 0){let i={key:a};return t&&t.props&&Object.keys(t.props).forEach(e=>{"children"!==e&&"i18nIsDynamicList"!==e&&(i[e]=t.props[e])}),(0,r.createElement)(t.type,i,s?null:e)}let i={key:a};return t&&t.props&&Object.keys(t.props).forEach(e=>{"ref"!==e&&"children"!==e&&(i[e]=t.props[e])}),(0,r.cloneElement)(t,i,s?null:e)}))},_=(t,i,n)=>{let h=tg(t),d=tg(i),c={};return d.reduce((t,i,d)=>{let p=i.children?.[0]?.content&&a.services.interpolator.interpolate(i.children[0].content,g,a.language);if("tag"===i.type){var y,v;let b,w=h[parseInt(i.name,10)];!w&&e&&(w=e[i.name]),1!==n.length||w||(w=n[0][i.name]),w||(w={});let S={...i.attrs};o&&Object.keys(S).forEach(t=>{let e=S[t];ts(e)&&(S[t]=th(e))});let k=0!==Object.keys(S).length?(y={props:S},(b={...v=w}).props={...v.props,...y.props},b):w,x=(0,r.isValidElement)(k),E=x&&tc(i,!0)&&!i.voidElement,N=u&&tn(k)&&k.dummy&&!x,O=tn(e)&&Object.hasOwnProperty.call(e,i.name);if(ts(k)){let e=a.services.interpolator.interpolate(k,g,a.language);t.push(e)}else if(tc(k)||E){let e=f(k,i,n);m(k,e,t,d)}else if(N)m(k,_(h,i.children,n),t,d);else if(Number.isNaN(parseFloat(i.name)))if(O){let e=f(k,i,n);m(k,e,t,d,i.voidElement)}else if(s.transSupportBasicHtmlNodes&&l.indexOf(i.name)>-1)if(i.voidElement)t.push((0,r.createElement)(i.name,{key:`${i.name}-${d}`}));else{let e,a=c[i.name]||0;c[i.name]=a+1;let s=0;for(let t=0;t<h.length;t+=1){let n=h[t];if((0,r.isValidElement)(n)&&n.type===i.name){if(s===a){e=n;break}s+=1}}let o=_(e?tg(tp(e)):h,i.children,n);t.push((0,r.createElement)(i.name,{key:`${i.name}-${d}`},o))}else if(i.voidElement)t.push(`<${i.name} />`);else{let e=_(h,i.children,n);t.push(`<${i.name}>${e}</${i.name}>`)}else if(tn(k)&&!x){let e=i.children[0]?p:null;e&&t.push(e)}else m(k,p,t,d,1!==i.children.length||!p)}else if("text"===i.type){let e=s.transWrapTextNodes,n="function"==typeof s.unescape?s.unescape:td.unescape,l=o?n(a.services.interpolator.interpolate(i.content,g,a.language)):a.services.interpolator.interpolate(i.content,g,a.language);e?t.push((0,r.createElement)(e,{key:`${i.name}-${d}`},l)):t.push(l)}return t},[])};return tp(_([{dummy:!0,children:t||[]}],p,tg(t||[]))[0])})(T,j,$,m,y,C,S),P=a??y.defaultTransParent;return P?(0,r.createElement)(P,f,z):z}({children:t,count:i,parent:a,i18nKey:s,context:n,tOptions:o,values:l,defaults:u,components:h,ns:d||v?.ns||_||y?.options?.defaultNS,i18n:y,t:p,shouldUne
1scape:g,...f})}],514849);let tv={" ":" ","&":"&","<":"<",">":">",""":'"',"'":"'","©":"©","®":"®","™":"â¢","…":"â¦","–":"â","—":"â","‘":"â","’":"â","‚":"â","“":"â","”":"â","„":"â","†":"â ","‡":"â¡","•":"â¢","′":"â²","″":"â³","‹":"â¹","›":"âº","§":"§","¶":"¶","·":"·"," ":"â"," ":"â"," ":"â","€":"â¬","£":"£","¥":"Â¥","¢":"¢","¤":"¤","×":"Ã","÷":"÷","−":"â","±":"±","≠":"â ","≤":"â¤","≥":"â¥","≈":"â","≡":"â¡","∞":"â","∫":"â«","∑":"â","∏":"â","√":"â","∂":"â","‰":"â°","°":"°","µ":"µ","←":"â","↑":"â","→":"â","↓":"â","↔":"â","↵":"âµ","⇐":"â","⇑":"â","⇒":"â","⇓":"â","⇔":"â","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"Ï","ρ":"Ï","σ":"Ï","τ":"Ï","υ":"Ï
","φ":"Ï","χ":"Ï","ψ":"Ï","ω":"Ï","Α":"Î","Β":"Î","Γ":"Î","Δ":"Î","Ε":"Î","Ζ
1":"Î","Η":"Î","Θ":"Î","Ι":"Î","Κ":"Î","Λ":"Î","Μ":"Î","Ν":"Î","Ξ":"Î","Ο":"Î","Π":"Î ","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Î¥","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"Ã","Á":"Ã","Â":"Ã","Ã":"Ã","Ä":"Ã","Å":"Ã
","Æ":"Ã","Ç":"Ã","È":"Ã","É":"Ã","Ê":"Ã","Ë":"Ã","Ì":"Ã","Í":"Ã","Î":"Ã","Ï":"Ã","Ð":"Ã","Ñ":"Ã","Ò":"Ã","Ó":"Ã","Ô":"Ã","Õ":"Ã","Ö":"Ã","Ø":"Ã","Ù":"Ã","Ú":"Ã","Û":"Ã","Ü":"Ã","Ý":"Ã","Þ":"Ã","ß":"Ã","à":"à ","á":"á","â":"â","ã":"ã","ä":"ä","å":"Ã¥","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"Ã","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ","¡":"¡","¿":"¿","ƒ":"Æ","ˆ":"Ë","˜":"Ë","Œ":"Å","œ":"Å","Š":"Å ","š":"Å¡","Ÿ":"Ÿ","ª":"ª","º":"º","¯":"¯","´":"´","¸":"¸","¹":"¹","²":"²","³":"³","¼":"¼","½":"½","¾":"¾","♠":"â ","♣":"â£","♥":"â¥","♦":"â¦","◊":"â","‾":"â¾","⁄":"â","℘":"â","ℑ":"â","ℜ":"â","ℵ":"âµ"},tb=RegExp(Object.keys(tv).map(t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var tw=t.i(477526);let tS={t:(t,e)=>{if(ts(e))return e;if(tn(e)&&ts(e.defaultValue))return e.defaultValue;if("function"==typeof t)return"";if(Array.isArray(t)){let e=t[t.length-1];return"function"==typeof e?"":e}return t},ready:!1},tk=()=>()=>{};t.s(["useTranslation",0,(t,i={})=>{let{i18n:a}=i,{i18n:s,defaultNS:n}=(0,r.useContext)(t_)||{},o=a||s||e;o&&!o.reportNamespaces&&(o.reportNamespaces=new ty),o||te(o,"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)(()=>({...td,...o?.options?.react,...i}),[o,i]),{useSuspense:u,keyPrefix:h}=l,d=t||n||o?.options?.defaultNS,c=ts(d)?[d]:d||["translation"],p=(0,r.useMemo)(()=>c,c);o?.reportNamespaces?.addUsedNamespaces?.(p);let g=(0,r.useRef)(0),f=(0,r.useCallback)(t=>{if(!o)return tk;let{bindI18n:e,bindI18nStore:r}=l,i=()=>{g.current+=1,t()};return e&&o.on(e,i),r&&o.store.on(r,i),()=>{e&&e.split(" ").forEach(t=>o.off(t,i)),r&&r.split(" ").forEach(t=>o.store.off(t,i))}},[o,l]),m=(0,r.useRef)(),_=(0,r.useCallback)(()=>{if(!o)return tS;let t=!!(o.isInitialized||o.initializedStoreOnce)&&p.every(t=>((t,e,r={})=>e.languages&&e.languages.length?e.hasLoadedNamespace(t,{lng:r.lng,precheck:(e,i)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!i(e.isLanguageChangingTo,t))return!1}}):(te(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0))(t,o,l)),e=i.lng||o.language,r=g.current,a=m.current;if(a&&a.ready===t&&a.lng===e&&a.keyPrefix===h&&a.revision===r)return a;let s={t:o.getFixedT(e,"fallback"===l.nsMode?p:p[0],h,{scopeNs:p}),ready:t,lng:e,keyPrefix:h,revision:r};return m.current=s,s},[o,p,h,l,i.lng]),[y,v]=(0,r.useState)(0),{t:b,ready:w}=(0,tw.useSyncExternalStore)(f,_,_);(0,r.useEffect)(()=>{if(o&&!w&&!u){let t=()=>v(t=>t+1);i.lng?ta(o,i.lng,p,t):ti(o,p,t)}},[o,i.lng,p,w,u,y]);let S=o||{},k=(0,r.useRef)(null),x=(0,r.useRef)(),E=t=>{let e=Object.getOwnPropertyDescriptors(t);e.__original&&delete e.__original;let r=Object.create(Object.getPrototypeOf(t),e);if(!Object.prototype.hasOwnProperty.call(r,"__original"))try{Object.defineProperty(r,"__original",{value:t,writable:!1,enumerable:!1,
1configurable:!1})}catch(t){}return r},N=(0,r.useMemo)(()=>{let t=S?.language,e=S;k.current&&k.current.__original===S?x.current!==t?(k.current=e=E(S),x.current=t):e=k.current:(k.current=e=E(S),x.current=t);let r=w||u?b:(...t)=>(te(o,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),b(...t)),i=[r,e,w];return i.t=r,i.i18n=e,i.ready=w,i},[b,S,w,S.resolvedLanguage,S.language,S.languages]);if(o&&u&&!w)throw new Promise(t=>{let e=()=>t();i.lng?ta(o,i.lng,p,e):ti(o,p,e)});return N}],789362),t.s([],91677)},525723,(t,e,r)=>{"use strict";var i=t.r(999161),a="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=i.useState,n=i.useEffect,o=i.useLayoutEffect,l=i.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!a(t,r)}catch(t){return!0}}var h="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),i=s({inst:{value:r,getSnapshot:e}}),a=i[0].inst,h=i[1];return o(function(){a.value=r,a.getSnapshot=e,u(a)&&h({inst:a})},[t,r,e]),n(function(){return u(a)&&h({inst:a}),t(function(){u(a)&&h({inst:a})})},[t]),l(r),r};r.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:h},477526,(t,e,r)=>{"use strict";t.i(625108),e.exports=t.r(525723)}]);
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.