+(()=>{var fi=Object.create;var vr=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptor,pi=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertyNames,Kr=Object.getOwnPropertySymbols,mi=Object.getPrototypeOf,zr=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable;var Vr=(i,t,e)=>t in i?vr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Me=(i,t)=>{for(var e in t||(t={}))zr.call(t,e)&&Vr(i,e,t[e]);if(Kr)for(var e of Kr(t))vi.call(t,e)&&Vr(i,e,t[e]);return i},Wt=(i,t)=>di(i,pi(t));var ht=(i=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(i,{get:(t,e)=>(typeof require!="undefined"?require:t)[e]}):i)(function(i){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+i+'" is not supported')});var xe=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var yi=(i,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gi(t))!zr.call(i,r)&&r!==e&&vr(i,r,{get:()=>t[r],enumerable:!(n=hi(t,r))||n.enumerable});return i};var Y=(i,t,e)=>(e=i!=null?fi(mi(i)):{},yi(t||!i||!i.__esModule?vr(e,"default",{value:i,enumerable:!0}):e,i));var Br=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var h=(i,t,e)=>(Br(i,t,"read from private field"),e?e.call(i):t.get(i)),x=(i,t,e)=>{if(t.has(i))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(i):t.set(i,e)},C=(i,t,e,n)=>(Br(i,t,"write to private field"),n?n.call(i,e):t.set(i,e),e);var T=(i,t,e)=>new Promise((n,r)=>{var a=u=>{try{s(e.next(u))}catch(v){r(v)}},o=u=>{try{s(e.throw(u))}catch(v){r(v)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,o);s((e=e.apply(i,t)).next())});var Gt=xe(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.AttributeAction=ce.IgnoreCaseMode=ce.SelectorType=void 0;var bi;(function(i){i.Attribute="attribute",i.Pseudo="pseudo",i.PseudoElement="pseudo-element",i.Tag="tag",i.Universal="universal",i.Adjacent="adjacent",i.Child="child",i.Descendant="descendant",i.Parent="parent",i.Sibling="sibling",i.ColumnCombinator="column-combinator"})(bi=ce.SelectorType||(ce.SelectorType={}));ce.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var wi;(function(i){i.Any="any",i.Element="element",i.End="end",i.Equals="equals",i.Exists="exists",i.Hyphen="hyphen",i.Not="not",i.Start="start"})(wi=ce.AttributeAction||(ce.AttributeAction={}))});var Zr=xe(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.parse=Ye.isTraversal=void 0;var L=Gt(),Wr=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Ei=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Si=new Map([[126,L.AttributeAction.Element],[94,L.AttributeAction.Start],[36,L.AttributeAction.End],[42,L.AttributeAction.Any],[33,L.AttributeAction.Not],[124,L.AttributeAction.Hyphen]]),xi=new Set(["has","not","matches","is","where","host","host-context"]);function Jr(i){switch(i.type){case L.SelectorType.Adjacent:case L.SelectorType.Child:case L.SelectorType.Descendant:case L.SelectorType.Parent:case L.SelectorType.Sibling:case L.SelectorType.ColumnCombinator:return!0;default:return!1}}Ye.isTraversal=Jr;var Ci=new Set(["contains","icontains"]);function Pi(i,t,e){var n=parseInt(t,16)-65536;return n!==n||e?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320)}function pt(i){return i.replace(Ei,Pi)}function yr(i){return i===39||i===34}function Gr(i){return i===32||i===9||i===10||i===12||i===13}function Oi(i){var t=[],e=Yr(t,"".concat(i),0);if(e0&&e0&&Jr(n[n.length-1]))throw new Error("Did not expect successive traversals.")}function v(_){if(n.length>0&&n[n.length-1].type===L.SelectorType.Descendant){n[n.length-1].type=_;return}u(),n.push({type:_})}function y(_,N){n.push({type:L.SelectorType.Attribute,name:_,action:N,value:r(1),namespace:null,ignoreCase:"quirks"})}function l(){if(n.length&&n[n.length-1].type===L.SelectorType.Descendant&&n.pop(),n.length===0)throw new Error("Empty sub-selector");i.push(n)}if(a(0),t.length===e)return e;e:for(;e{"use strict";var Jt=Qe&&Qe.__spreadArray||function(i,t,e){if(e||arguments.length===2)for(var n=0,r=t.length,a;n ":" > ";case M.SelectorType.Parent:return t===0?"< ":" < ";case M.SelectorType.Sibling:return t===0?"~ ":" ~ ";case M.SelectorType.Adjacent:return t===0?"+ ":" + ";case M.SelectorType.Descendant:return" ";case M.SelectorType.ColumnCombinator:return t===0?"|| ":" || ";case M.SelectorType.Universal:return i.namespace==="*"&&t+10?n+i.slice(e):i}});var sn=xe(Z=>{"use strict";var Ti=Z&&Z.__createBinding||(Object.create?function(i,t,e,n){n===void 0&&(n=e);var r=Object.getOwnPropertyDescriptor(t,e);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,n,r)}:function(i,t,e,n){n===void 0&&(n=e),i[n]=t[e]}),Ri=Z&&Z.__exportStar||function(i,t){for(var e in i)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&Ti(t,i,e)};Object.defineProperty(Z,"__esModule",{value:!0});Z.stringify=Z.parse=Z.isTraversal=void 0;Ri(Gt(),Z);var on=Zr();Object.defineProperty(Z,"isTraversal",{enumerable:!0,get:function(){return on.isTraversal}});Object.defineProperty(Z,"parse",{enumerable:!0,get:function(){return on.parse}});var Fi=an();Object.defineProperty(Z,"stringify",{enumerable:!0,get:function(){return Fi.stringify}})});var Ce=xe(k=>{"use strict";var Yt,Di=k&&k.__classPrivateFieldSet||function(i,t,e,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?i!==t||!r:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(i,e):r?r.value=e:t.set(i,e),e},ji=k&&k.__classPrivateFieldGet||function(i,t,e,n){if(e==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?i!==t||!n:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?n:e==="a"?n.call(i):n?n.value:t.get(i)};Object.defineProperty(k,"__esModule",{value:!0}),k.Element=k.t=k.s=k.removeClass=k.onEach=k.once=k.on=k.off=k.hasClass=k.h=k.empty=k.emitCustom=k.emit=k.addClass=void 0;var Ni=sn();k.addClass=(i,...t)=>i.classList.add(...t);k.emit=(i,t)=>i.dispatchEvent(t);k.emitCustom=(i,t,...e)=>(0,k.emit)(i,new CustomEvent(t,{detail:e}));k.empty=i=>{for(var t;i.hasChildNodes();)(t=i.firstChild)===null||t===void 0||t.remove()};k.h=(i,...t)=>{let[e]=(0,Ni.parse)(i).map(n=>n.reduce((r,a)=>{var o;return a.type==="tag"?document.createElement(a.name):(a.type==="attribute"&&a.name!=="class"&&r.setAttribute(a.name,(o=a.value)!==null&&o!==void 0?o:""),a.type==="attribute"&&a.name==="class"&&r.classList.add(a.value),r)},document.createElement("div")));return t.forEach(n=>{n instanceof ge&&(n=n.element()),e.append(n)}),e};k.hasClass=(i,t)=>i.classList.contains(t);k.off=(i,t,e,n={})=>i.removeEventListener(t,e,n);k.on=(i,t,e,n={})=>i.addEventListener(t,e,n);k.once=(i,t,e,n={})=>(0,k.on)(i,t,e,Object.assign(Object.assign({},typeof n=="boolean"?{capture:n}:n),{once:!0}));k.onEach=(i,t,e,n={})=>t.forEach(r=>(0,k.on)(i,r,e,n));k.removeClass=(i,...t)=>i.classList.remove(...t);k.s=i=>{let t=document.createElement("div");return t.innerHTML=i,t.firstElementChild};k.t=i=>document.createTextNode(i);var ge=class{constructor(t){Yt.set(this,void 0),Di(this,Yt,t,"f")}static fromSelector(t,...e){return new ge((0,k.h)(t,...e))}static fromString(t){return new ge((0,k.s)(t))}addClass(...t){(0,k.addClass)(this.element(),...t)}append(...t){t.forEach(e=>{e instanceof ge&&(e=e.element()),this.element().append(e)})}element(){return ji(this,Yt,"f")}emit(t){return(0,k.emit)(this.element(),t)}emitCustom(t,...e){return(0,k.emitCustom)(this.element(),t,...e)}empty(){(0,k.empty)(this.element())}hasClass(t){return(0,k.hasClass)(this.element(),t)}on(t,e,n={}){(0,k.on)(this.element(),t,e,n)}off(t,e,n={}){(0,k.off)(this.element(),t,e,n)}once(t,e,n={}){(0,k.once)(this.element(),t,e,n)}onEach(t,e,n={}){(0,k.onEach)(this.element(),t,e,n)}query(t){return this.element().querySelector(t)}queryAll(t){return this.element().querySelectorAll(t)}removeClass(...t){(0,k.removeClass)(this.element(),...t)}};k.Element=ge,Yt=new WeakMap,k.default=ge});var kt=xe((ko,gn)=>{var rr=Object.defineProperty,qi=Object.defineProperties,Ui=Object.getOwnPropertyDescriptor,Hi=Object.getOwnPropertyDescriptors,Ki=Object.getOwnPropertyNames,fn=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,dn=(i,t,e)=>t in i?rr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,qe=(i,t)=>{for(var e in t||={})hn.call(t,e)&&dn(i,e,t[e]);if(fn)for(var e of fn(t))Vi.call(t,e)&&dn(i,e,t[e]);return i},Pt=(i,t)=>qi(i,Hi(t)),zi=(i,t)=>{for(var e in t)rr(i,e,{get:t[e],enumerable:!0})},Bi=(i,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ki(t))!hn.call(i,r)&&r!==e&&rr(i,r,{get:()=>t[r],enumerable:!(n=Ui(t,r))||n.enumerable});return i},Wi=i=>Bi(rr({},"__esModule",{value:!0}),i),pn={};zi(pn,{Melba:()=>nr,default:()=>ra,error:()=>Qi,info:()=>Xi,success:()=>ea,toast:()=>Ot,warning:()=>ta});gn.exports=Wi(pn);var Gi=class{#e={};on(i,t){i in this.#e||(this.#e[i]=[]),this.#e[i].push(t)}once(i,t){let e=(...n)=>{t(...n),this.off(i,e)};this.on(i,e)}off(i,t){if(!(i in this.#e))return;let e=this.#e[i].indexOf(t);e!==-1&&this.#e[i].splice(e,1)}emit(i,...t){i in this.#e&&this.#e[i].forEach(e=>e(...t))}},Ji=Gi,Yi=(()=>{try{return document.querySelector(":focus-within"),!0}catch{return!1}})(),Zi=Yi,I=class extends Ji{constructor(i,{animation:t=I.defaults.animation,animationDuration:e=I.defaults.animationDuration,closeLabel:n=I.defaults.closeLabel,container:r=null,containerClass:a=I.defaults.containerClass,containerElement:o=I.defaults.containerElement,events:s={},hide:u=I.defaults.hide,root:v=I.defaults.root,toastClass:y=I.defaults.toastClass,toastElement:l=I.defaults.toastElement,toastHideClass:m=I.defaults.toastHideClass,toastShowClass:g=I.defaults.toastShowClass,type:E=I.defaults.type}){if(super(),!i)throw new TypeError("'content' cannot be empty.");if(this.animation=t,this.events=s,this.toastHideClass=m,this.toastShowClass=g,r||(r=this.getContainer({containerClass:a,containerElement:o,root:v})),this.container=r,u===!0&&(u=I.defaults.hideDelay),u!==!1&&u<100&&(u*=1e3),this.hideDelay=u,e<100&&(e*=1e3),this.build({closeLabel:n,content:i,toastClass:y,toastElement:l,type:E}),this.hideDelay!==!1&&this.autoHide(e),this.animation){window.requestAnimationFrame(()=>this.show());return}this.autoShow&&this.show()}autoHide(i){if(this.hideDelay)return window.setTimeout(()=>this.hide(),this.hideDelay+(this.animation?i:0))}build({closeLabel:i,content:t,toastClass:e,toastElement:n,type:r}){this.element=document.createElement(n),this.element.setAttribute("title",t),this.element.setAttribute("role","status"),this.element.setAttribute("tabindex","0"),this.element.classList.add(e),this.element.classList.add(`toast--${r}`),this.element.appendChild(this.buildClose(i)),this.element.appendChild(document.createTextNode(t)),this.element.addEventListener("keydown",a=>{a.key==="Escape"&&(a.preventDefault(),this.hide())}),this.container.appendChild(this.element),this.emit("build")}show(){this.element.classList.remove(this.toastHideClass),this.element.classList.add(this.toastShowClass),this.emit("show")}hide(i=!1){if(!i&&this.hasFocus)return;let t=(Zi?":focus-within, ":"")+":focus, :hover";if(!i&&this.element.matches(t)&&this.element.addEventListener("mouseout",()=>{this.hasFocus=!1,this.hideDelay>0&&this.hide()}),this.element.classList.remove(this.toastShowClass),this.element.classList.add(this.toastHideClass),this.emit("hide"),this.animation){let e=()=>this.remove(),n=()=>{a||(this.element.addEventListener("transitionend",()=>e()),a=!0)},r=()=>{this.show(),this.element.removeEventListener("transitionstart",()=>n()),this.element.removeEventListener("transitionend",()=>e()),this.element.removeEventListener("mouseover",()=>r()),this.element.addEventListener("mouseout",()=>this.hide())},a=!1;this.element.addEventListener("mouseover",()=>r()),this.element.addEventListener("transitionstart",()=>n());return}this.remove()}remove(){this.element.parentNode===this.container&&(this.container.removeChild(this.element),this.emit("remove"))}buildClose(i){let t=document.createElement("button");return t.setAttribute("title",i),t.appendChild(document.createTextNode(i)),t.addEventListener("click",()=>this.hide()),t}getContainer({containerClass:i,containerElement:t,root:e}){let n=e.querySelector(`${t}.${i}`);if(n)return n;let r=document.createElement(t);return r.classList.add(i),e.appendChild(r),r}getElement(){return this.element}static settings(i){I.defaults=qe(qe({},I.defaults),i)}},nr=I;nr.defaults={animation:!0,animationDuration:400,autoShow:!0,closeLabel:"Close",containerClass:"toast__container",containerElement:"div",hide:!1,hideDelay:5,root:document.body,toastClass:"toast",toastElement:"div",toastHideClass:"toast--hide",toastShowClass:"toast--show",type:"info"};var Ot=(i,t={})=>new nr(i,Pt(qe({},t),{autoShow:!0})),Qi=(i,t={})=>Ot(i,Pt(qe({},t),{type:"error"})),Xi=(i,t={})=>Ot(i,Pt(qe({},t),{type:"info"})),ea=(i,t={})=>Ot(i,Pt(qe({},t),{type:"success",hide:!0})),ta=(i,t={})=>Ot(i,Pt(qe({},t),{type:"warning"})),ra=nr});var Gn=xe((Wn,Dr)=>{(function(i){typeof Wn=="object"&&typeof Dr<"u"?Dr.exports=i():typeof define=="function"&&define.amd?define([],i):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).basicLightbox=i()})(function(){return function i(t,e,n){function r(s,u){if(!e[s]){if(!t[s]){var v=typeof ht=="function"&&ht;if(!u&&v)return v(s,!0);if(a)return a(s,!0);var y=new Error("Cannot find module '"+s+"'");throw y.code="MODULE_NOT_FOUND",y}var l=e[s]={exports:{}};t[s][0].call(l.exports,function(m){return r(t[s][1][m]||m)},l,l.exports,i,t,e,n)}return e[s].exports}for(var a=typeof ht=="function"&&ht,o=0;o1&&arguments[1]!==void 0&&arguments[1],u=document.createElement("div");return u.innerHTML=o.trim(),s===!0?u.children:u.firstChild},r=function(o,s){var u=o.children;return u.length===1&&u[0].tagName===s},a=function(o){return(o=o||document.querySelector(".basicLightbox"))!=null&&o.ownerDocument.body.contains(o)===!0};e.visible=a,e.create=function(o,s){var u=function(l,m){var g=n(`
+
- `)),x=m.querySelector(".basicLightbox__placeholder");l.forEach(function(p){return x.appendChild(p)});var h=t(x,"IMG"),f=t(x,"VIDEO"),d=t(x,"IFRAME");return h===!0&&m.classList.add("basicLightbox--img"),f===!0&&m.classList.add("basicLightbox--video"),d===!0&&m.classList.add("basicLightbox--iframe"),m}(o=function(l){var v=typeof l=="string",m=l instanceof HTMLElement==1;if(v===!1&&m===!1)throw new Error("Content must be a DOM element/node or string");return v===!0?Array.from(n(l,!0)):l.tagName==="TEMPLATE"?[l.content.cloneNode(!0)]:Array.from(l.children)}(o),s=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if((l=Object.assign({},l)).closable==null&&(l.closable=!0),l.className==null&&(l.className=""),l.onShow==null&&(l.onShow=function(){}),l.onClose==null&&(l.onClose=function(){}),typeof l.closable!="boolean")throw new Error("Property `closable` must be a boolean");if(typeof l.className!="string")throw new Error("Property `className` must be a string");if(typeof l.onShow!="function")throw new Error("Property `onShow` must be a function");if(typeof l.onClose!="function")throw new Error("Property `onClose` must be a function");return l}(s)),c=function(l){return s.onClose(g)!==!1&&function(v,m){return v.classList.remove("basicLightbox--visible"),setTimeout(function(){return a(v)===!1||v.parentElement.removeChild(v),m()},410),!0}(u,function(){if(typeof l=="function")return l(g)})};s.closable===!0&&u.addEventListener("click",function(l){l.target===u&&c()});var g={element:function(){return u},visible:function(){return a(u)},show:function(l){return s.onShow(g)!==!1&&function(v,m){return document.body.appendChild(v),setTimeout(function(){requestAnimationFrame(function(){return v.classList.add("basicLightbox--visible"),m()})},10),!0}(u,function(){if(typeof l=="function")return l(g)})},close:c};return g}},{}]},{},[1])(1)})});var xr=Kt((Ti,Rt)=>{var Sn=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var O=function(i){var r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,e=0,n={},t={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function h(f){return f instanceof a?new a(f.type,h(f.content),f.alias):Array.isArray(f)?f.map(h):f.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(p){var h=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack)||[])[1];if(h){var f=document.getElementsByTagName("script");for(var d in f)if(f[d].src==h)return f[d]}return null}},isActive:function(h,f,d){for(var p="no-"+f;h;){var y=h.classList;if(y.contains(f))return!0;if(y.contains(p))return!1;h=h.parentElement}return!!d}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(h,f){var d=t.util.clone(t.languages[h]);for(var p in f)d[p]=f[p];return d},insertBefore:function(h,f,d,p){p=p||t.languages;var y=p[h],w={};for(var E in y)if(y.hasOwnProperty(E)){if(E==f)for(var S in d)d.hasOwnProperty(S)&&(w[S]=d[S]);d.hasOwnProperty(E)||(w[E]=y[E])}var P=p[h];return p[h]=w,t.languages.DFS(t.languages,function(C,N){N===P&&C!=h&&(this[C]=w)}),w},DFS:function h(f,d,p,y){y=y||{};var w=t.util.objId;for(var E in f)if(f.hasOwnProperty(E)){d.call(f,E,f[E],p||E);var S=f[E],P=t.util.type(S);P==="Object"&&!y[w(S)]?(y[w(S)]=!0,h(S,d,null,y)):P==="Array"&&!y[w(S)]&&(y[w(S)]=!0,h(S,d,E,y))}}},plugins:{},highlightAll:function(h,f){t.highlightAllUnder(document,h,f)},highlightAllUnder:function(h,f,d){var p={callback:d,container:h,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};t.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),t.hooks.run("before-all-elements-highlight",p);for(var y=0,w;w=p.elements[y++];)t.highlightElement(w,f===!0,p.callback)},highlightElement:function(h,f,d){var p=t.util.getLanguage(h),y=t.languages[p];t.util.setLanguage(h,p);var w=h.parentElement;w&&w.nodeName.toLowerCase()==="pre"&&t.util.setLanguage(w,p);var E=h.textContent,S={element:h,language:p,grammar:y,code:E};function P(N){S.highlightedCode=N,t.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,t.hooks.run("after-highlight",S),t.hooks.run("complete",S),d&&d.call(S.element)}if(t.hooks.run("before-sanity-check",S),w=S.element.parentElement,w&&w.nodeName.toLowerCase()==="pre"&&!w.hasAttribute("tabindex")&&w.setAttribute("tabindex","0"),!S.code){t.hooks.run("complete",S),d&&d.call(S.element);return}if(t.hooks.run("before-highlight",S),!S.grammar){P(t.util.encode(S.code));return}if(f&&i.Worker){var C=new Worker(t.filename);C.onmessage=function(N){P(N.data)},C.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else P(t.highlight(S.code,S.grammar,S.language))},highlight:function(h,f,d){var p={code:h,grammar:f,language:d};if(t.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=t.tokenize(p.code,p.grammar),t.hooks.run("after-tokenize",p),a.stringify(t.util.encode(p.tokens),p.language)},tokenize:function(h,f){var d=f.rest;if(d){for(var p in d)f[p]=d[p];delete f.rest}var y=new u;return c(y,y.head,h),s(h,y,f,y.head,0),l(y)},hooks:{all:{},add:function(h,f){var d=t.hooks.all;d[h]=d[h]||[],d[h].push(f)},run:function(h,f){var d=t.hooks.all[h];if(!(!d||!d.length))for(var p=0,y;y=d[p++];)y(f)}},Token:a};i.Prism=t;function a(h,f,d,p){this.type=h,this.content=f,this.alias=d,this.length=(p||"").length|0}a.stringify=function h(f,d){if(typeof f=="string")return f;if(Array.isArray(f)){var p="";return f.forEach(function(P){p+=h(P,d)}),p}var y={type:f.type,content:h(f.content,d),tag:"span",classes:["token",f.type],attributes:{},language:d},w=f.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(y.classes,w):y.classes.push(w)),t.hooks.run("wrap",y);var E="";for(var S in y.attributes)E+=" "+S+'="'+(y.attributes[S]||"").replace(/"/g,""")+'"';return"<"+y.tag+' class="'+y.classes.join(" ")+'"'+E+">"+y.content+""+y.tag+">"};function o(h,f,d,p){h.lastIndex=f;var y=h.exec(d);if(y&&p&&y[1]){var w=y[1].length;y.index+=w,y[0]=y[0].slice(w)}return y}function s(h,f,d,p,y,w){for(var E in d)if(!(!d.hasOwnProperty(E)||!d[E])){var S=d[E];S=Array.isArray(S)?S:[S];for(var P=0;P=w.reach);T+=R.value.length,R=R.next){var q=R.value;if(f.length>h.length)return;if(!(q instanceof a)){var Se=1,I;if(xe){if(I=o(J,T,h,W),!I||I.index>=h.length)break;var je=I.index,Ht=I.index+I[0].length,H=T;for(H+=R.value.length;je>=H;)R=R.next,H+=R.value.length;if(H-=R.value.length,T=H,R.value instanceof a)continue;for(var Oe=R;Oe!==f.tail&&(Hw.reach&&(w.reach=pe);var ge=R.prev;Ne&&(ge=c(f,ge,Ne),T+=Ne.length),g(f,ge,Se);var At=new a(E,N?t.tokenize(re,N):re,se,re);if(R=c(f,ge,At),he&&c(f,R,he),Se>1){var Ee={cause:E+","+P,reach:pe};s(h,f,d,R.prev,T,Ee),w&&Ee.reach>w.reach&&(w.reach=Ee.reach)}}}}}}function u(){var h={value:null,prev:null,next:null},f={value:null,prev:h,next:null};h.next=f,this.head=h,this.tail=f,this.length=0}function c(h,f,d){var p=f.next,y={value:d,prev:f,next:p};return f.next=y,p.prev=y,h.length++,y}function g(h,f,d){for(var p=f.next,y=0;y/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/?[\da-f]{1,8};/i]};O.languages.markup.tag.inside["attr-value"].inside.entity=O.languages.markup.entity;O.languages.markup.doctype.inside["internal-subset"].inside=O.languages.markup;O.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&/,"&"))});Object.defineProperty(O.languages.markup.tag,"addInlined",{value:function(r,e){var n={};n["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:O.languages[e]},n.cdata=/^$/i;var t={"included-cdata":{pattern://i,inside:n}};t["language-"+e]={pattern:/[\s\S]+/,inside:O.languages[e]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:t},O.languages.insertBefore("markup","cdata",a)}});Object.defineProperty(O.languages.markup.tag,"addAttribute",{value:function(i,r){O.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:O.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});O.languages.html=O.languages.markup;O.languages.mathml=O.languages.markup;O.languages.svg=O.languages.markup;O.languages.xml=O.languages.extend("markup",{});O.languages.ssml=O.languages.xml;O.languages.atom=O.languages.xml;O.languages.rss=O.languages.xml;(function(i){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+r.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var e=i.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))})(O);O.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};O.languages.javascript=O.languages.extend("clike",{"class-name":[O.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});O.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;O.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:O.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:O.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:O.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:O.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:O.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});O.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:O.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});O.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});O.languages.markup&&(O.languages.markup.tag.addInlined("script","javascript"),O.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));O.languages.js=O.languages.javascript;(function(){if(typeof O>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i="Loading\u2026",r=function(v,m){return"\u2716 Error "+v+" while fetching file: "+m},e="\u2716 Error: File does not exist or is empty",n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",a="loading",o="loaded",s="failed",u="pre[data-src]:not(["+t+'="'+o+'"]):not(['+t+'="'+a+'"])';function c(v,m,x){var h=new XMLHttpRequest;h.open("GET",v,!0),h.onreadystatechange=function(){h.readyState==4&&(h.status<400&&h.responseText?m(h.responseText):h.status>=400?x(r(h.status,h.statusText)):x(e))},h.send(null)}function g(v){var m=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(m){var x=Number(m[1]),h=m[2],f=m[3];return h?f?[x,Number(f)]:[x,void 0]:[x,x]}}O.hooks.add("before-highlightall",function(v){v.selector+=", "+u}),O.hooks.add("before-sanity-check",function(v){var m=v.element;if(m.matches(u)){v.code="",m.setAttribute(t,a);var x=m.appendChild(document.createElement("CODE"));x.textContent=i;var h=m.getAttribute("data-src"),f=v.language;if(f==="none"){var d=(/\.(\w+)$/.exec(h)||[,"none"])[1];f=n[d]||d}O.util.setLanguage(x,f),O.util.setLanguage(m,f);var p=O.plugins.autoloader;p&&p.loadLanguages(f),c(h,function(y){m.setAttribute(t,o);var w=g(m.getAttribute("data-range"));if(w){var E=y.split(/\r\n?|\n/g),S=w[0],P=w[1]==null?E.length:w[1];S<0&&(S+=E.length),S=Math.max(0,Math.min(S-1,E.length)),P<0&&(P+=E.length),P=Math.max(0,Math.min(P,E.length)),y=E.slice(S,P).join(`
-`),m.hasAttribute("data-start")||m.setAttribute("data-start",String(S+1))}x.textContent=y,O.highlightElement(x)},function(y){m.setAttribute(t,s),x.textContent=y})}}),O.plugins.fileHighlight={highlight:function(m){for(var x=(m||document).querySelectorAll(u),h=0,f;f=x[h++];)O.highlightElement(f)}};var l=!1;O.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),O.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var Jr=Kt(ce=>{"use strict";var Ut=ce&&ce.__assign||function(){return Ut=Object.assign||function(i){for(var r,e=1,n=arguments.length;e0&&e.hide()}),this.element.classList.remove(this.toastShowClass),this.element.classList.add(this.toastHideClass),this.trigger("hide"),this.animation){var n=function(){return e.remove()},t=function(){o||(e.element.addEventListener("transitionend",function(){return n()}),o=!0)},a=function(){e.show(),e.element.removeEventListener("transitionstart",function(){return t()}),e.element.removeEventListener("transitionend",function(){return n()}),e.element.removeEventListener("mouseover",function(){return a()}),e.element.addEventListener("mouseout",function(){return e.hide()})},o=!1;this.element.addEventListener("mouseover",function(){return a()}),this.element.addEventListener("transitionstart",function(){return t()});return}this.remove()}},i.prototype.remove=function(){this.element.parentNode===this.container&&(this.container.removeChild(this.element),this.trigger("remove"))},i.prototype.buildClose=function(r){var e=this,n=document.createElement("button");return n.setAttribute("title",r),n.appendChild(document.createTextNode(r)),n.addEventListener("click",function(){return e.hide()}),n},i.prototype.getContainer=function(r){var e=r.containerClass,n=r.containerElement,t=r.root,a=t.querySelector("".concat(n,".").concat(e));if(a)return a;var o=document.createElement(n);return o.classList.add(e),t.appendChild(o),o},i.prototype.on=function(r,e){this.events[r]||(this.events[r]=[]),this.events[r].push(e)},i.prototype.off=function(r,e){if(e===void 0&&(e=null),!e){this.events[r]=[];return}var n=this.events[r].indexOf(e);n===-1&&this.events[r].splice(n,1)},i.prototype.trigger=function(r){for(var e=this,n=[],t=1;t-1});var hr,gr;function We(i){if(typeof i!="string"&&(i=String(i)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(i)||i==="")throw new TypeError('Invalid character in header field name: "'+i+'"');return i.toLowerCase()}function Gt(i){return typeof i!="string"&&(i=String(i)),i}function Yt(i){var r={next:function(){var e=i.shift();return{done:e===void 0,value:e}}};return z.iterable&&(r[Symbol.iterator]=function(){return r}),r}function D(i){this.map={},i instanceof D?i.forEach(function(r,e){this.append(e,r)},this):Array.isArray(i)?i.forEach(function(r){this.append(r[0],r[1])},this):i&&Object.getOwnPropertyNames(i).forEach(function(r){this.append(r,i[r])},this)}D.prototype.append=function(i,r){i=We(i),r=Gt(r);var e=this.map[i];this.map[i]=e?e+", "+r:r};D.prototype.delete=function(i){delete this.map[We(i)]};D.prototype.get=function(i){return i=We(i),this.has(i)?this.map[i]:null};D.prototype.has=function(i){return this.map.hasOwnProperty(We(i))};D.prototype.set=function(i,r){this.map[We(i)]=Gt(r)};D.prototype.forEach=function(i,r){for(var e in this.map)this.map.hasOwnProperty(e)&&i.call(r,this.map[e],e,this)};D.prototype.keys=function(){var i=[];return this.forEach(function(r,e){i.push(e)}),Yt(i)};D.prototype.values=function(){var i=[];return this.forEach(function(r){i.push(r)}),Yt(i)};D.prototype.entries=function(){var i=[];return this.forEach(function(r,e){i.push([e,r])}),Yt(i)};z.iterable&&(D.prototype[Symbol.iterator]=D.prototype.entries);function Jt(i){if(i.bodyUsed)return Promise.reject(new TypeError("Already read"));i.bodyUsed=!0}function mr(i){return new Promise(function(r,e){i.onload=function(){r(i.result)},i.onerror=function(){e(i.error)}})}function pn(i){var r=new FileReader,e=mr(r);return r.readAsArrayBuffer(i),e}function gn(i){var r=new FileReader,e=mr(r);return r.readAsText(i),e}function mn(i){for(var r=new Uint8Array(i),e=new Array(r.length),n=0;n-1?r:i}function Le(i,r){if(!(this instanceof Le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');r=r||{};var e=r.body;if(i instanceof Le){if(i.bodyUsed)throw new TypeError("Already read");this.url=i.url,this.credentials=i.credentials,r.headers||(this.headers=new D(i.headers)),this.method=i.method,this.mode=i.mode,this.signal=i.signal,!e&&i._bodyInit!=null&&(e=i._bodyInit,i.bodyUsed=!0)}else this.url=String(i);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new D(r.headers)),this.method=yn(r.method||this.method||"GET"),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&e)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(e),(this.method==="GET"||this.method==="HEAD")&&(r.cache==="no-store"||r.cache==="no-cache")){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$1_="+new Date().getTime());else{var t=/\?/;this.url+=(t.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Le.prototype.clone=function(){return new Le(this,{body:this._bodyInit})};function bn(i){var r=new FormData;return i.trim().split("&").forEach(function(e){if(e){var n=e.split("="),t=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");r.append(decodeURIComponent(t),decodeURIComponent(a))}}),r}function wn(i){var r=new D,e=i.replace(/\r?\n[\t ]+/g," ");return e.split("\r").map(function(n){return n.indexOf(`
-`)===0?n.substr(1,n.length):n}).forEach(function(n){var t=n.split(":"),a=t.shift().trim();if(a){var o=t.join(":").trim();r.append(a,o)}}),r}vr.call(Le.prototype);function ne(i,r){if(!(this instanceof ne))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');r||(r={}),this.type="default",this.status=r.status===void 0?200:r.status,this.ok=this.status>=200&&this.status<300,this.statusText=r.statusText===void 0?"":""+r.statusText,this.headers=new D(r.headers),this.url=r.url||"",this._initBody(i)}vr.call(ne.prototype);ne.prototype.clone=function(){return new ne(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new D(this.headers),url:this.url})};ne.error=function(){var i=new ne(null,{status:0,statusText:""});return i.type="error",i};var xn=[301,302,303,307,308];ne.redirect=function(i,r){if(xn.indexOf(r)===-1)throw new RangeError("Invalid status code");return new ne(null,{status:r,headers:{location:i}})};var ke=_.DOMException;try{new ke}catch{ke=function(r,e){this.message=r,this.name=e;var n=Error(r);this.stack=n.stack},ke.prototype=Object.create(Error.prototype),ke.prototype.constructor=ke}function yr(i,r){return new Promise(function(e,n){var t=new Le(i,r);if(t.signal&&t.signal.aborted)return n(new ke("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var u={status:a.status,statusText:a.statusText,headers:wn(a.getAllResponseHeaders()||"")};u.url="responseURL"in a?a.responseURL:u.headers.get("X-Request-URL");var c="response"in a?a.response:a.responseText;setTimeout(function(){e(new ne(c,u))},0)},a.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},a.onabort=function(){setTimeout(function(){n(new ke("Aborted","AbortError"))},0)};function s(u){try{return u===""&&_.location.href?_.location.href:u}catch{return u}}a.open(t.method,s(t.url),!0),t.credentials==="include"?a.withCredentials=!0:t.credentials==="omit"&&(a.withCredentials=!1),"responseType"in a&&(z.blob?a.responseType="blob":z.arrayBuffer&&t.headers.get("Content-Type")&&t.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(a.responseType="arraybuffer")),r&&typeof r.headers=="object"&&!(r.headers instanceof D)?Object.getOwnPropertyNames(r.headers).forEach(function(u){a.setRequestHeader(u,Gt(r.headers[u]))}):t.headers.forEach(function(u,c){a.setRequestHeader(c,u)}),t.signal&&(t.signal.addEventListener("abort",o),a.onreadystatechange=function(){a.readyState===4&&t.signal.removeEventListener("abort",o)}),a.send(typeof t._bodyInit>"u"?null:t._bodyInit)})}yr.polyfill=!0;_.fetch||(_.fetch=yr,_.Headers=D,_.Request=Le,_.Response=ne);var Pe={},U=class{hasEvent(r){return r in Pe}on(r,e){this.hasEvent(r)||(Pe[r]=[]),Pe[r].push(e)}off(r,e=null){if(!!this.hasEvent(r)){if(e===null)return Pe[r]=[];Pe[r]=Pe[r].filter(n=>n!==e)}}trigger(r,...e){if(this.hasEvent(r)){let n=!1;Pe[r].forEach(t=>{n||t(...e)===!1&&(n=!0)})}}};var Je,X=class extends U{constructor(e=null){super();k(this,Je,void 0);e!==null&&L(this,Je,this.createNodeFromString(e))}get element(){return b(this,Je)}createNodesFromString(e){let n=document.createElement("div"),t=document.createDocumentFragment();n.innerHTML=e;for(let a of n.childNodes)t.appendChild(a);return t}createNodeFromString(e){return this.createNodesFromString(e).firstChild}emptyNode(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}};Je=new WeakMap;var qr=Wt(wr());var Hr=Wt(xr());function Q(i){return Q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Q(i)}function V(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function Sr(i,r){for(var e=0;ei.length)&&(r=i.length);for(var e=0,n=new Array(r);e1&&arguments[1]!==void 0?arguments[1]:{};V(this,i),this.init(r,e)}return K(i,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||On,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t1?n-1:0),a=1;a-1?s.replace(/###/g,"."):s}function t(){return!i||typeof i=="string"}for(var a=typeof r!="string"?[].concat(r):r.split(".");a.length>1;){if(t())return{};var o=n(a.shift());!i[o]&&e&&(i[o]=new e),Object.prototype.hasOwnProperty.call(i,o)?i=i[o]:i={}}return t()?{}:{obj:i,k:n(a.shift())}}function Lr(i,r,e){var n=ir(i,r,Object),t=n.obj,a=n.k;t[a]=e}function Ln(i,r,e,n){var t=ir(i,r,Object),a=t.obj,o=t.k;a[o]=a[o]||[],n&&(a[o]=a[o].concat(e)),n||a[o].push(e)}function Nt(i,r){var e=ir(i,r),n=e.obj,t=e.k;if(!!n)return n[t]}function Pr(i,r,e){var n=Nt(i,e);return n!==void 0?n:Nt(r,e)}function Ur(i,r,e){for(var n in r)n!=="__proto__"&&n!=="constructor"&&(n in i?typeof i[n]=="string"||i[n]instanceof String||typeof r[n]=="string"||r[n]instanceof String?e&&(i[n]=r[n]):Ur(i[n],r[n],e):i[n]=r[n]);return i}function Ie(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Pn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Cn(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,function(r){return Pn[r]}):i}var $t=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,An=[" ",",","?","!",";"];function Fn(i,r,e){r=r||"",e=e||"";var n=An.filter(function(s){return r.indexOf(s)<0&&e.indexOf(s)<0});if(n.length===0)return!0;var t=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!t.test(i);if(!a){var o=i.indexOf(e);o>0&&!t.test(i.substring(0,o))&&(a=!0)}return a}function Cr(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);r&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),e.push.apply(e,n)}return e}function Tt(i){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Br(i,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!i){if(i[r])return i[r];for(var n=r.split(e),t=i,a=0;aa+o;)o++,s=n.slice(a,a+o).join(e),u=t[s];if(u===void 0)return;if(u===null)return null;if(r.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var c=n.slice(a+o).join(e);return c?Br(u,c,e):void 0}t=t[n[a]]}return t}}var Tn=function(i){$e(e,i);var r=Rn(e);function e(n){var t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return V(this,e),t=r.call(this),$t&&ve.call(ee(t)),t.data=n||{},t.options=a,t.options.keySeparator===void 0&&(t.options.keySeparator="."),t.options.ignoreJSONStructure===void 0&&(t.options.ignoreJSONStructure=!0),t}return K(e,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(t,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,g=[t,a];o&&typeof o!="string"&&(g=g.concat(o)),o&&typeof o=="string"&&(g=g.concat(u?o.split(u):o)),t.indexOf(".")>-1&&(g=t.split("."));var l=Nt(this.data,g);return l||!c||typeof o!="string"?l:Br(this.data&&this.data[t]&&this.data[t][a],o,u)}},{key:"addResource",value:function(t,a,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var g=[t,a];o&&(g=g.concat(c?o.split(c):o)),t.indexOf(".")>-1&&(g=t.split("."),s=a,a=g[1]),this.addNamespaces(a),Lr(this.data,g,s),u.silent||this.emit("added",t,a,o,s)}},{key:"addResources",value:function(t,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(t,a,u,o[u],{silent:!0});s.silent||this.emit("added",t,a,o)}},{key:"addResourceBundle",value:function(t,a,o,s,u){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},g=[t,a];t.indexOf(".")>-1&&(g=t.split("."),s=o,o=a,a=g[1]),this.addNamespaces(a);var l=Nt(this.data,g)||{};s?Ur(l,o,u):l=Tt(Tt({},l),o),Lr(this.data,g,l),c.silent||this.emit("added",t,a,o)}},{key:"removeResourceBundle",value:function(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}},{key:"hasResourceBundle",value:function(t,a){return this.getResource(t,a)!==void 0}},{key:"getResourceBundle",value:function(t,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Tt(Tt({},{}),this.getResource(t,a)):this.getResource(t,a)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"hasLanguageSomeTranslations",value:function(t){var a=this.getDataByLanguage(t),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),e}(ve),Mr={processors:{},addPostProcessor:function(r){this.processors[r.name]=r},handle:function(r,e,n,t,a){var o=this;return r.forEach(function(s){o.processors[s]&&(e=o.processors[s].process(e,n,t,a))}),e}};function Ar(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);r&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),e.push.apply(e,n)}return e}function B(i){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Fr={},Rr=function(i){$e(e,i);var r=jn(e);function e(n){var t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return V(this,e),t=r.call(this),$t&&ve.call(ee(t)),kn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,ee(t)),t.options=a,t.options.keySeparator===void 0&&(t.options.keySeparator="."),t.logger=oe.create("translator"),t}return K(e,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;var o=this.resolve(t,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(t,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ns||this.options.defaultNS||[],c=o&&t.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Fn(t,o,s);if(c&&!g){var l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:u};var v=t.split(o);(o!==s||o===s&&this.options.ns.indexOf(v[0])>-1)&&(u=v.shift()),t=v.join(s)}return typeof u=="string"&&(u=[u]),{key:t,namespaces:u}}},{key:"translate",value:function(t,a,o){var s=this;if(Q(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);var u=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,g=this.extractFromKey(t[t.length-1],a),l=g.key,v=g.namespaces,m=v[v.length-1],x=a.lng||this.language,h=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x&&x.toLowerCase()==="cimode"){if(h){var f=a.nsSeparator||this.options.nsSeparator;return u?(d.res="".concat(m).concat(f).concat(l),d):"".concat(m).concat(f).concat(l)}return u?(d.res=l,d):l}var d=this.resolve(t,a),p=d&&d.res,y=d&&d.usedKey||l,w=d&&d.exactUsedKey||l,E=Object.prototype.toString.apply(p),S=["[object Number]","[object Function]","[object RegExp]"],P=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof p!="string"&&typeof p!="boolean"&&typeof p!="number";if(C&&p&&N&&S.indexOf(E)<0&&!(typeof P=="string"&&E==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var W=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,p,B(B({},a),{},{ns:v})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return u?(d.res=W,d):W}if(c){var xe=E==="[object Array]",se=xe?[]:{},Ve=xe?w:y;for(var J in p)if(Object.prototype.hasOwnProperty.call(p,J)){var R="".concat(Ve).concat(c).concat(J);se[J]=this.translate(R,B(B({},a),{joinArrays:!1,ns:v})),se[J]===R&&(se[J]=p[J])}p=se}}else if(C&&typeof P=="string"&&E==="[object Array]")p=p.join(P),p&&(p=this.extendTranslation(p,t,a,o));else{var T=!1,q=!1,Se=a.count!==void 0&&typeof a.count!="string",I=e.hasDefaultValue(a),Ht=Se?this.pluralResolver.getSuffix(x,a.count,a):"",H=a["defaultValue".concat(Ht)]||a.defaultValue;!this.isValidLookup(p)&&I&&(T=!0,p=H),this.isValidLookup(p)||(q=!0,p=l);var Oe=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,je=Oe&&q?void 0:p,re=I&&H!==p&&this.options.updateMissing;if(q||T||re){if(this.logger.log(re?"updateKey":"missingKey",x,m,l,re?H:p),c){var Ne=this.resolve(l,B(B({},a),{},{keySeparator:!1}));Ne&&Ne.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.")}var he=[],pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(var ge=0;ge1&&arguments[1]!==void 0?arguments[1]:{},s,u,c,g,l;return typeof t=="string"&&(t=[t]),t.forEach(function(v){if(!a.isValidLookup(s)){var m=a.extractFromKey(v,o),x=m.key;u=x;var h=m.namespaces;a.options.fallbackNS&&(h=h.concat(a.options.fallbackNS));var f=o.count!==void 0&&typeof o.count!="string",d=f&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),p=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",y=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);h.forEach(function(w){a.isValidLookup(s)||(l=w,!Fr["".concat(y[0],"-").concat(w)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(l)&&(Fr["".concat(y[0],"-").concat(w)]=!0,a.logger.warn('key "'.concat(u,'" for languages "').concat(y.join(", "),`" won't get resolved as namespace "`).concat(l,'" 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!!!")),y.forEach(function(E){if(!a.isValidLookup(s)){g=E;var S=[x];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(S,x,E,w,o);else{var P;f&&(P=a.pluralResolver.getSuffix(E,o.count,o));var C="".concat(a.options.pluralSeparator,"zero");if(f&&(S.push(x+P),d&&S.push(x+C)),p){var N="".concat(x).concat(a.options.contextSeparator).concat(o.context);S.push(N),f&&(S.push(N+P),d&&S.push(N+C))}}for(var W;W=S.pop();)a.isValidLookup(s)||(c=W,s=a.getResource(E,w,W,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:c,usedLng:g,usedNS:l}}},{key:"isValidLookup",value:function(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}},{key:"getResource",value:function(t,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,a,o,s):this.resourceStore.getResource(t,a,o,s)}}],[{key:"hasDefaultValue",value:function(t){var a="defaultValue";for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&a===o.substring(0,a.length)&&t[o]!==void 0)return!0;return!1}}]),e}(ve);function nr(i){return i.charAt(0).toUpperCase()+i.slice(1)}var _n=function(){function i(r){V(this,i),this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oe.create("languageUtils")}return K(i,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],t=e.split("-");return this.options.lowerCaseLng?t=t.map(function(a){return a.toLowerCase()}):t.length===2?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),n.indexOf(t[1].toLowerCase())>-1&&(t[1]=nr(t[1].toLowerCase()))):t.length===3&&(t[0]=t[0].toLowerCase(),t[1].length===2&&(t[1]=t[1].toUpperCase()),t[0]!=="sgn"&&t[2].length===2&&(t[2]=t[2].toUpperCase()),n.indexOf(t[1].toLowerCase())>-1&&(t[1]=nr(t[1].toLowerCase())),n.indexOf(t[2].toLowerCase())>-1&&(t[2]=nr(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n=this;if(!e)return null;var t;return e.forEach(function(a){if(!t){var o=n.formatLanguageCode(a);(!n.options.supportedLngs||n.isSupportedCode(o))&&(t=o)}}),!t&&this.options.supportedLngs&&e.forEach(function(a){if(!t){var o=n.getLanguagePartFromCode(a);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var t=e[n];return t||(t=e[this.getScriptPartFromCode(n)]),t||(t=e[this.formatLanguageCode(n)]),t||(t=e[this.getLanguagePartFromCode(n)]),t||(t=e.default),t||[]}},{key:"toResolveHierarchy",value:function(e,n){var t=this,a=this.getFallbackCodes(n||this.options.fallbackLng||[],e),o=[],s=function(c){!c||(t.isSupportedCode(c)?o.push(c):t.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),a.forEach(function(u){o.indexOf(u)<0&&s(t.formatLanguageCode(u))}),o}}]),i}(),$n=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],In={1:function(r){return Number(r>1)},2:function(r){return Number(r!=1)},3:function(r){return 0},4:function(r){return Number(r%10==1&&r%100!=11?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2)},5:function(r){return Number(r==0?0:r==1?1:r==2?2:r%100>=3&&r%100<=10?3:r%100>=11?4:5)},6:function(r){return Number(r==1?0:r>=2&&r<=4?1:2)},7:function(r){return Number(r==1?0:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?1:2)},8:function(r){return Number(r==1?0:r==2?1:r!=8&&r!=11?2:3)},9:function(r){return Number(r>=2)},10:function(r){return Number(r==1?0:r==2?1:r<7?2:r<11?3:4)},11:function(r){return Number(r==1||r==11?0:r==2||r==12?1:r>2&&r<20?2:3)},12:function(r){return Number(r%10!=1||r%100==11)},13:function(r){return Number(r!==0)},14:function(r){return Number(r==1?0:r==2?1:r==3?2:3)},15:function(r){return Number(r%10==1&&r%100!=11?0:r%10>=2&&(r%100<10||r%100>=20)?1:2)},16:function(r){return Number(r%10==1&&r%100!=11?0:r!==0?1:2)},17:function(r){return Number(r==1||r%10==1&&r%100!=11?0:1)},18:function(r){return Number(r==0?0:r==1?1:2)},19:function(r){return Number(r==1?0:r==0||r%100>1&&r%100<11?1:r%100>10&&r%100<20?2:3)},20:function(r){return Number(r==1?0:r==0||r%100>0&&r%100<20?1:2)},21:function(r){return Number(r%100==1?1:r%100==2?2:r%100==3||r%100==4?3:0)},22:function(r){return Number(r==1?0:r==2?1:(r<0||r>10)&&r%10==0?2:3)}},Un=["v1","v2","v3"],Dr={zero:0,one:1,two:2,few:3,many:4,other:5};function Bn(){var i={};return $n.forEach(function(r){r.lngs.forEach(function(e){i[e]={numbers:r.nr,plurals:In[r.fc]}})}),i}var Mn=function(){function i(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V(this,i),this.languageUtils=r,this.options=e,this.logger=oe.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Bn()}return K(i,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=this.getRule(e,n);return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,t).map(function(a){return"".concat(n).concat(a)})}},{key:"getSuffixes",value:function(e){var n=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(e,t);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return Dr[o]-Dr[s]}).map(function(o){return"".concat(n.options.prepend).concat(o)}):a.numbers.map(function(o){return n.getSuffix(e,o,t)}):[]}},{key:"getSuffix",value:function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(e,t);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(n)):this.getSuffixRetroCompatible(a,n):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,n){var t=this,a=e.noAbs?e.plurals(n):e.plurals(Math.abs(n)),o=e.numbers[a];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return t.options.prepend&&o.toString()?t.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!Un.includes(this.options.compatibilityJSON)}}]),i}();function Tr(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);r&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),e.push.apply(e,n)}return e}function te(i){for(var r=1;r0&&arguments[0]!==void 0?arguments[0]:{};V(this,i),this.logger=oe.create("interpolator"),this.options=r,this.format=r.interpolation&&r.interpolation.format||function(e){return e},this.init(r)}return K(i,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:Cn,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Ie(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Ie(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Ie(n.nestingPrefix):n.nestingPrefixEscaped||Ie("$t("),this.nestingSuffix=n.nestingSuffix?Ie(n.nestingSuffix):n.nestingSuffixEscaped||Ie(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var t="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(t,"g")}},{key:"interpolate",value:function(e,n,t,a){var o=this,s,u,c,g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(f){return f.replace(/\$/g,"$$$$")}var v=function(d){if(d.indexOf(o.formatSeparator)<0){var p=Pr(n,g,d);return o.alwaysFormat?o.format(p,void 0,t,te(te(te({},a),n),{},{interpolationkey:d})):p}var y=d.split(o.formatSeparator),w=y.shift().trim(),E=y.join(o.formatSeparator).trim();return o.format(Pr(n,g,w),E,t,te(te(te({},a),n),{},{interpolationkey:w}))};this.resetRegExp();var m=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,x=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,h=[{regex:this.regexpUnescape,safeValue:function(d){return l(d)}},{regex:this.regexp,safeValue:function(d){return o.escapeValue?l(o.escape(d)):l(d)}}];return h.forEach(function(f){for(c=0;s=f.regex.exec(e);){var d=s[1].trim();if(u=v(d),u===void 0)if(typeof m=="function"){var p=m(e,s,a);u=typeof p=="string"?p:""}else if(a&&a.hasOwnProperty(d))u="";else if(x){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(d," for interpolating ").concat(e)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=kr(u));var y=f.safeValue(u);if(e=e.replace(s[0],y),x?(f.regex.lastIndex+=u.length,f.regex.lastIndex-=s[0].length):f.regex.lastIndex=0,c++,c>=o.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var t=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u=te({},a);u.applyPostProcessor=!1,delete u.defaultValue;function c(m,x){var h=this.nestingOptionsSeparator;if(m.indexOf(h)<0)return m;var f=m.split(new RegExp("".concat(h,"[ ]*{"))),d="{".concat(f[1]);m=f[0],d=this.interpolate(d,u),d=d.replace(/'/g,'"');try{u=JSON.parse(d),x&&(u=te(te({},x),u))}catch(p){return this.logger.warn("failed parsing options string in nesting for key ".concat(m),p),"".concat(m).concat(h).concat(d)}return delete u.defaultValue,m}for(;o=this.nestingRegexp.exec(e);){var g=[],l=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var v=o[1].split(this.formatSeparator).map(function(m){return m.trim()});o[1]=v.shift(),g=v,l=!0}if(s=n(c.call(this,o[1].trim(),u),u),s&&o[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=kr(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),s=""),l&&(s=g.reduce(function(m,x){return t.format(m,x,a.lng,te(te({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),e=e.replace(o[0],s),this.regexp.lastIndex=0}return e}}]),i}();function jr(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);r&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),e.push.apply(e,n)}return e}function me(i){for(var r=1;r-1){var n=i.split("(");r=n[0].toLowerCase().trim();var t=n[1].substring(0,n[1].length-1);if(r==="currency"&&t.indexOf(":")<0)e.currency||(e.currency=t.trim());else if(r==="relativetime"&&t.indexOf(":")<0)e.range||(e.range=t.trim());else{var a=t.split(";");a.forEach(function(o){if(!!o){var s=o.split(":"),u=rr(s),c=u[0],g=u.slice(1),l=g.join(":").trim().replace(/^'+|'+$/g,"");e[c.trim()]||(e[c.trim()]=l),l==="false"&&(e[c.trim()]=!1),l==="true"&&(e[c.trim()]=!0),isNaN(l)||(e[c.trim()]=parseInt(l,10))}})}}return{formatName:r,formatOptions:e}}var zn=function(){function i(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};V(this,i),this.logger=oe.create("formatter"),this.options=r,this.formats={number:function(n,t,a){return new Intl.NumberFormat(t,a).format(n)},currency:function(n,t,a){return new Intl.NumberFormat(t,me(me({},a),{},{style:"currency"})).format(n)},datetime:function(n,t,a){return new Intl.DateTimeFormat(t,me({},a)).format(n)},relativetime:function(n,t,a){return new Intl.RelativeTimeFormat(t,me({},a)).format(n,a.range||"day")},list:function(n,t,a){return new Intl.ListFormat(t,me({},a)).format(n)}},this.init(r)}return K(i,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},t=n.interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,n){this.formats[e.toLowerCase().trim()]=n}},{key:"format",value:function(e,n,t,a){var o=this,s=n.split(this.formatSeparator),u=s.reduce(function(c,g){var l=Hn(g),v=l.formatName,m=l.formatOptions;if(o.formats[v]){var x=c;try{var h=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},f=h.locale||h.lng||a.locale||a.lng||t;x=o.formats[v](c,f,me(me(me({},m),a),h))}catch(d){o.logger.warn(d)}return x}else o.logger.warn("there was no format function for ".concat(v));return c},e);return u}}]),i}();function Nr(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);r&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),e.push.apply(e,n)}return e}function _r(i){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wn(i,r){i.pending[r]!==void 0&&(delete i.pending[r],i.pendingCount--)}var Jn=function(i){$e(e,i);var r=Vn(e);function e(n,t,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return V(this,e),o=r.call(this),$t&&ve.call(ee(o)),o.backend=n,o.store=t,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=oe.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return K(e,[{key:"queueLoad",value:function(t,a,o,s){var u=this,c={},g={},l={},v={};return t.forEach(function(m){var x=!0;a.forEach(function(h){var f="".concat(m,"|").concat(h);!o.reload&&u.store.hasResourceBundle(m,h)?u.state[f]=2:u.state[f]<0||(u.state[f]===1?g[f]===void 0&&(g[f]=!0):(u.state[f]=1,x=!1,g[f]===void 0&&(g[f]=!0),c[f]===void 0&&(c[f]=!0),v[h]===void 0&&(v[h]=!0)))}),x||(l[m]=!0)}),(Object.keys(c).length||Object.keys(g).length)&&this.queue.push({pending:g,pendingCount:Object.keys(g).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(g),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(v)}}},{key:"loaded",value:function(t,a,o){var s=t.split("|"),u=s[0],c=s[1];a&&this.emit("failedLoading",u,c,a),o&&this.store.addResourceBundle(u,c,o),this.state[t]=a?-1:2;var g={};this.queue.forEach(function(l){Ln(l.loaded,[u],c),Wn(l,t),a&&l.errors.push(a),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(function(v){g[v]||(g[v]={});var m=l.loaded[v];m.length&&m.forEach(function(x){g[v][x]===void 0&&(g[v][x]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(t,a,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,g=arguments.length>5?arguments[5]:void 0;if(!t.length)return g(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:o,tried:u,wait:c,callback:g});return}return this.readingCalls++,this.backend[o](t,a,function(l,v){if(s.readingCalls--,s.waitingReads.length>0){var m=s.waitingReads.shift();s.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(l&&v&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof a=="string"&&(a=[a]);var c=this.queueLoad(t,a,s,u);if(!c.toLoad.length)return c.pending.length||u(),null;c.toLoad.forEach(function(g){o.loadOne(g)})}},{key:"load",value:function(t,a,o){this.prepareLoading(t,a,{},o)}},{key:"reload",value:function(t,a,o){this.prepareLoading(t,a,{reload:!0},o)}},{key:"loadOne",value:function(t){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=t.split("|"),u=s[0],c=s[1];this.read(u,c,"read",void 0,void 0,function(g,l){g&&a.logger.warn("".concat(o,"loading namespace ").concat(c," for language ").concat(u," failed"),g),!g&&l&&a.logger.log("".concat(o,"loaded namespace ").concat(c," for language ").concat(u),l),a.loaded(t,g,l)})}},{key:"saveMissing",value:function(t,a,o,s,u){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}o==null||o===""||(this.backend&&this.backend.create&&this.backend.create(t,a,o,s,null,_r(_r({},c),{},{isUpdate:u})),!(!t||!t[0])&&this.store.addResource(t[0],a,o,s))}}]),e}(ve);function Gn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var e={};if(Q(r[1])==="object"&&(e=r[1]),typeof r[1]=="string"&&(e.defaultValue=r[1]),typeof r[2]=="string"&&(e.tDescription=r[2]),Q(r[2])==="object"||Q(r[3])==="object"){var n=r[3]||r[2];Object.keys(n).forEach(function(t){e[t]=n[t]})}return e},interpolation:{escapeValue:!0,format:function(r,e,n,t){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function $r(i){return typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i}function Ir(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);r&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable})),e.push.apply(e,n)}return e}function ae(i){for(var r=1;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jt(){}function Xn(i){var r=Object.getOwnPropertyNames(Object.getPrototypeOf(i));r.forEach(function(e){typeof i[e]=="function"&&(i[e]=i[e].bind(i))})}var _t=function(i){$e(e,i);var r=Yn(e);function e(){var n,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(V(this,e),n=r.call(this),$t&&ve.call(ee(n)),n.options=$r(t),n.services={},n.logger=oe,n.modules={external:[]},Xn(ee(n)),a&&!n.isInitialized&&!t.isClone){if(!n.options.initImmediate)return n.init(t,a),Ce(n,ee(n));setTimeout(function(){n.init(t,a)},0)}return n}return K(e,[{key:"init",value:function(){var t=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=Gn();this.options=ae(ae(ae({},s),this.options),$r(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ae(ae({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function u(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?oe.init(u(this.modules.logger),this.options):oe.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=zn);var g=new _n(this.options);this.store=new Tn(this.options.resources,this.options);var l=this.services;l.logger=oe,l.resourceStore=this.store,l.languageUtils=g,l.pluralResolver=new Mn(g,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(l.formatter=u(c),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new qn(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Jn(u(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(d){for(var p=arguments.length,y=new Array(p>1?p-1:0),w=1;w
1?p-1:0),w=1;w
0&&v[0]!=="dev"&&(this.options.lng=v[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var m=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];m.forEach(function(d){t[d]=function(){var p;return(p=t.store)[d].apply(p,arguments)}});var x=["addResource","addResources","addResourceBundle","removeResourceBundle"];x.forEach(function(d){t[d]=function(){var p;return(p=t.store)[d].apply(p,arguments),t}});var h=Ye(),f=function(){var p=function(w,E){t.isInitialized&&!t.initializedStoreOnce&&t.logger.warn("init: i18next is already initialized. You should call init just once!"),t.isInitialized=!0,t.options.isClone||t.logger.log("initialized",t.options),t.emit("initialized",t.options),h.resolve(E),o(w,E)};if(t.languages&&t.options.compatibilityAPI!=="v1"&&!t.isInitialized)return p(null,t.t.bind(t));t.changeLanguage(t.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),h}},{key:"loadResources",value:function(t){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jt,s=o,u=typeof t=="string"?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var c=[],g=function(m){if(!!m){var x=a.services.languageUtils.toResolveHierarchy(m);x.forEach(function(h){c.indexOf(h)<0&&c.push(h)})}};if(u)g(u);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(v){return g(v)})}this.options.preload&&this.options.preload.forEach(function(v){return g(v)}),this.services.backendConnector.load(c,this.options.ns,function(v){!v&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(v)})}else s(null)}},{key:"reloadResources",value:function(t,a,o){var s=Ye();return t||(t=this.languages),a||(a=this.options.ns),o||(o=jt),this.services.backendConnector.reload(t,a,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Mr.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}},{key:"setResolvedLanguage",value:function(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(var a=0;a-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(t,a){var o=this;this.isLanguageChangingTo=t;var s=Ye();this.emit("languageChanging",t);var u=function(v){o.language=v,o.languages=o.services.languageUtils.toResolveHierarchy(v),o.resolvedLanguage=void 0,o.setResolvedLanguage(v)},c=function(v,m){m?(u(m),o.translator.changeLanguage(m),o.isLanguageChangingTo=void 0,o.emit("languageChanged",m),o.logger.log("languageChanged",m)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(v,function(){return o.t.apply(o,arguments)})},g=function(v){!t&&!v&&o.services.languageDetector&&(v=[]);var m=typeof v=="string"?v:o.services.languageUtils.getBestMatchFromCodes(v);m&&(o.language||u(m),o.translator.language||o.translator.changeLanguage(m),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(m)),o.loadResources(m,function(x){c(x,m)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?g(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(g):g(t),s}},{key:"getFixedT",value:function(t,a,o){var s=this,u=function c(g,l){var v;if(Q(l)!=="object"){for(var m=arguments.length,x=new Array(m>2?m-2:0),h=2;h1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var g=function(m,x){var h=a.services.backendConnector.state["".concat(m,"|").concat(x)];return h===-1||h===2};if(o.precheck){var l=o.precheck(this,g);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||g(s,t)&&(!u||g(c,t)))}},{key:"loadNamespaces",value:function(t,a){var o=this,s=Ye();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),a&&a(u)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(t,a){var o=Ye();typeof t=="string"&&(t=[t]);var s=this.options.preload||[],u=t.filter(function(c){return s.indexOf(c)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(c){o.resolve(),a&&a(c)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";var a=["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"];return a.indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var t=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jt,s=ae(ae(ae({},this.options),a),{isClone:!0}),u=new e(s),c=["store","services","language"];return c.forEach(function(g){u[g]=t[g]}),u.services=ae({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Rr(u.services,u.options),u.translator.on("*",function(g){for(var l=arguments.length,v=new Array(l>1?l-1:0),m=1;m0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new _t(i,r)});var M=_t.createInstance();M.createInstance=_t.createInstance;var da=M.createInstance,ha=M.init,pa=M.loadResources,ga=M.reloadResources,ma=M.use,va=M.changeLanguage,ya=M.getFixedT,ba=M.t,wa=M.exists,xa=M.setDefaultNamespace,Sa=M.hasLoadedNamespace,Oa=M.loadNamespaces,Ea=M.loadLanguages,A=M;var Qn=i=>i.replace(/^\/+|\/+$/g,""),ei=(...i)=>`/${i.map(Qn).filter(r=>r).join("/")}`,$=ei;var It,j,Xe,Ze=class extends X{constructor(e,n=btoa){super(`
- ${e.title}
+ `)),E=g.querySelector(".basicLightbox__placeholder");l.forEach(function(p){return E.appendChild(p)});var d=r(E,"IMG"),c=r(E,"VIDEO"),f=r(E,"IFRAME");return d===!0&&g.classList.add("basicLightbox--img"),c===!0&&g.classList.add("basicLightbox--video"),f===!0&&g.classList.add("basicLightbox--iframe"),g}(o=function(l){var m=typeof l=="string",g=l instanceof HTMLElement==1;if(m===!1&&g===!1)throw new Error("Content must be a DOM element/node or string");return m===!0?Array.from(n(l,!0)):l.tagName==="TEMPLATE"?[l.content.cloneNode(!0)]:Array.from(l.children)}(o),s=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if((l=Object.assign({},l)).closable==null&&(l.closable=!0),l.className==null&&(l.className=""),l.onShow==null&&(l.onShow=function(){}),l.onClose==null&&(l.onClose=function(){}),typeof l.closable!="boolean")throw new Error("Property `closable` must be a boolean");if(typeof l.className!="string")throw new Error("Property `className` must be a string");if(typeof l.onShow!="function")throw new Error("Property `onShow` must be a function");if(typeof l.onClose!="function")throw new Error("Property `onClose` must be a function");return l}(s)),v=function(l){return s.onClose(y)!==!1&&function(m,g){return m.classList.remove("basicLightbox--visible"),setTimeout(function(){return a(m)===!1||m.parentElement.removeChild(m),g()},410),!0}(u,function(){if(typeof l=="function")return l(y)})};s.closable===!0&&u.addEventListener("click",function(l){l.target===u&&v()});var y={element:function(){return u},visible:function(){return a(u)},show:function(l){return s.onShow(y)!==!1&&function(m,g){return document.body.appendChild(m),setTimeout(function(){requestAnimationFrame(function(){return m.classList.add("basicLightbox--visible"),g()})},10),!0}(u,function(){if(typeof l=="function")return l(y)})},close:v};return y}},{}]},{},[1])(1)})});var Jn=xe((Us,dr)=>{var Ga=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var P=function(i){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,e=0,n={},r={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function d(c){return c instanceof a?new a(c.type,d(c.content),c.alias):Array.isArray(c)?c.map(d):c.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(p){var d=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(p.stack)||[])[1];if(d){var c=document.getElementsByTagName("script");for(var f in c)if(c[f].src==d)return c[f]}return null}},isActive:function(d,c,f){for(var p="no-"+c;d;){var b=d.classList;if(b.contains(c))return!0;if(b.contains(p))return!1;d=d.parentElement}return!!f}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(d,c){var f=r.util.clone(r.languages[d]);for(var p in c)f[p]=c[p];return f},insertBefore:function(d,c,f,p){p=p||r.languages;var b=p[d],w={};for(var O in b)if(b.hasOwnProperty(O)){if(O==c)for(var S in f)f.hasOwnProperty(S)&&(w[S]=f[S]);f.hasOwnProperty(O)||(w[O]=b[O])}var A=p[d];return p[d]=w,r.languages.DFS(r.languages,function(R,D){D===A&&R!=d&&(this[R]=w)}),w},DFS:function d(c,f,p,b){b=b||{};var w=r.util.objId;for(var O in c)if(c.hasOwnProperty(O)){f.call(c,O,c[O],p||O);var S=c[O],A=r.util.type(S);A==="Object"&&!b[w(S)]?(b[w(S)]=!0,d(S,f,null,b)):A==="Array"&&!b[w(S)]&&(b[w(S)]=!0,d(S,f,O,b))}}},plugins:{},highlightAll:function(d,c){r.highlightAllUnder(document,d,c)},highlightAllUnder:function(d,c,f){var p={callback:f,container:d,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),r.hooks.run("before-all-elements-highlight",p);for(var b=0,w;w=p.elements[b++];)r.highlightElement(w,c===!0,p.callback)},highlightElement:function(d,c,f){var p=r.util.getLanguage(d),b=r.languages[p];r.util.setLanguage(d,p);var w=d.parentElement;w&&w.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(w,p);var O=d.textContent,S={element:d,language:p,grammar:b,code:O};function A(D){S.highlightedCode=D,r.hooks.run("before-insert",S),S.element.innerHTML=S.highlightedCode,r.hooks.run("after-highlight",S),r.hooks.run("complete",S),f&&f.call(S.element)}if(r.hooks.run("before-sanity-check",S),w=S.element.parentElement,w&&w.nodeName.toLowerCase()==="pre"&&!w.hasAttribute("tabindex")&&w.setAttribute("tabindex","0"),!S.code){r.hooks.run("complete",S),f&&f.call(S.element);return}if(r.hooks.run("before-highlight",S),!S.grammar){A(r.util.encode(S.code));return}if(c&&i.Worker){var R=new Worker(r.filename);R.onmessage=function(D){A(D.data)},R.postMessage(JSON.stringify({language:S.language,code:S.code,immediateClose:!0}))}else A(r.highlight(S.code,S.grammar,S.language))},highlight:function(d,c,f){var p={code:d,grammar:c,language:f};if(r.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=r.tokenize(p.code,p.grammar),r.hooks.run("after-tokenize",p),a.stringify(r.util.encode(p.tokens),p.language)},tokenize:function(d,c){var f=c.rest;if(f){for(var p in f)c[p]=f[p];delete c.rest}var b=new u;return v(b,b.head,d),s(d,b,c,b.head,0),l(b)},hooks:{all:{},add:function(d,c){var f=r.hooks.all;f[d]=f[d]||[],f[d].push(c)},run:function(d,c){var f=r.hooks.all[d];if(!(!f||!f.length))for(var p=0,b;b=f[p++];)b(c)}},Token:a};i.Prism=r;function a(d,c,f,p){this.type=d,this.content=c,this.alias=f,this.length=(p||"").length|0}a.stringify=function d(c,f){if(typeof c=="string")return c;if(Array.isArray(c)){var p="";return c.forEach(function(A){p+=d(A,f)}),p}var b={type:c.type,content:d(c.content,f),tag:"span",classes:["token",c.type],attributes:{},language:f},w=c.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(b.classes,w):b.classes.push(w)),r.hooks.run("wrap",b);var O="";for(var S in b.attributes)O+=" "+S+'="'+(b.attributes[S]||"").replace(/"/g,""")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+O+">"+b.content+""+b.tag+">"};function o(d,c,f,p){d.lastIndex=c;var b=d.exec(f);if(b&&p&&b[1]){var w=b[1].length;b.index+=w,b[0]=b[0].slice(w)}return b}function s(d,c,f,p,b,w){for(var O in f)if(!(!f.hasOwnProperty(O)||!f[O])){var S=f[O];S=Array.isArray(S)?S:[S];for(var A=0;A=w.reach);H+=$.value.length,$=$.next){var ee=$.value;if(c.length>d.length)return;if(!(ee instanceof a)){var je=1,K;if(be){if(K=o(N,H,d,X),!K||K.index>=d.length)break;var We=K.index,gr=K.index+K[0].length,z=H;for(z+=$.value.length;We>=z;)$=$.next,z+=$.value.length;if(z-=$.value.length,H=z,$.value instanceof a)continue;for(var Ne=$;Ne!==c.tail&&(zw.reach&&(w.reach=Ee);var Se=$.prev;Ge&&(Se=v(c,Se,Ge),H+=Ge.length),y(c,Se,je);var Bt=new a(O,D?r.tokenize(le,D):le,U,le);if($=v(c,Se,Bt),we&&v(c,$,we),je>1){var $e={cause:O+","+A,reach:Ee};s(d,c,f,$.prev,H,$e),w&&$e.reach>w.reach&&(w.reach=$e.reach)}}}}}}function u(){var d={value:null,prev:null,next:null},c={value:null,prev:d,next:null};d.next=c,this.head=d,this.tail=c,this.length=0}function v(d,c,f){var p=c.next,b={value:f,prev:c,next:p};return c.next=b,p.prev=b,d.length++,b}function y(d,c,f){for(var p=c.next,b=0;b/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/?[\da-f]{1,8};/i]};P.languages.markup.tag.inside["attr-value"].inside.entity=P.languages.markup.entity;P.languages.markup.doctype.inside["internal-subset"].inside=P.languages.markup;P.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.replace(/&/,"&"))});Object.defineProperty(P.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^$)/i,lookbehind:!0,inside:P.languages[e]},n.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:P.languages[e]};var a={};a[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},P.languages.insertBefore("markup","cdata",a)}});Object.defineProperty(P.languages.markup.tag,"addAttribute",{value:function(i,t){P.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+i+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:P.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});P.languages.html=P.languages.markup;P.languages.mathml=P.languages.markup;P.languages.svg=P.languages.markup;P.languages.xml=P.languages.extend("markup",{});P.languages.ssml=P.languages.xml;P.languages.atom=P.languages.xml;P.languages.rss=P.languages.xml;(function(i){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;i.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},i.languages.css.atrule.inside.rest=i.languages.css;var e=i.languages.markup;e&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css"))})(P);P.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};P.languages.javascript=P.languages.extend("clike",{"class-name":[P.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});P.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;P.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:P.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:P.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:P.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:P.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:P.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});P.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:P.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});P.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});P.languages.markup&&(P.languages.markup.tag.addInlined("script","javascript"),P.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));P.languages.js=P.languages.javascript;(function(){if(typeof P>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var i="Loading\u2026",t=function(m,g){return"\u2716 Error "+m+" while fetching file: "+g},e="\u2716 Error: File does not exist or is empty",n={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},r="data-src-status",a="loading",o="loaded",s="failed",u="pre[data-src]:not(["+r+'="'+o+'"]):not(['+r+'="'+a+'"])';function v(m,g,E){var d=new XMLHttpRequest;d.open("GET",m,!0),d.onreadystatechange=function(){d.readyState==4&&(d.status<400&&d.responseText?g(d.responseText):d.status>=400?E(t(d.status,d.statusText)):E(e))},d.send(null)}function y(m){var g=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(m||"");if(g){var E=Number(g[1]),d=g[2],c=g[3];return d?c?[E,Number(c)]:[E,void 0]:[E,E]}}P.hooks.add("before-highlightall",function(m){m.selector+=", "+u}),P.hooks.add("before-sanity-check",function(m){var g=m.element;if(g.matches(u)){m.code="",g.setAttribute(r,a);var E=g.appendChild(document.createElement("CODE"));E.textContent=i;var d=g.getAttribute("data-src"),c=m.language;if(c==="none"){var f=(/\.(\w+)$/.exec(d)||[,"none"])[1];c=n[f]||f}P.util.setLanguage(E,c),P.util.setLanguage(g,c);var p=P.plugins.autoloader;p&&p.loadLanguages(c),v(d,function(b){g.setAttribute(r,o);var w=y(g.getAttribute("data-range"));if(w){var O=b.split(/\r\n?|\n/g),S=w[0],A=w[1]==null?O.length:w[1];S<0&&(S+=O.length),S=Math.max(0,Math.min(S-1,O.length)),A<0&&(A+=O.length),A=Math.max(0,Math.min(A,O.length)),b=O.slice(S,A).join(`
+`),g.hasAttribute("data-start")||g.setAttribute("data-start",String(S+1))}E.textContent=b,P.highlightElement(E)},function(b){g.setAttribute(r,s),E.textContent=b})}}),P.plugins.fileHighlight={highlight:function(g){for(var E=(g||document).querySelectorAll(u),d=0,c;c=E[d++];)P.highlightElement(c)}};var l=!1;P.fileHighlight=function(){l||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),l=!0),P.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var Zt=Y(Ce()),gt=class extends Zt.default{constructor(){let t="";super((0,Zt.s)(t))}};var br=class{#e={};on(t,e){t in this.#e||(this.#e[t]=[]),this.#e[t].push(e)}once(t,e){let n=(...r)=>{e(...r),this.off(t,n)};this.on(t,n)}off(t,e){if(!(t in this.#e))return;let n=this.#e[t].indexOf(e);n!==-1&&this.#e[t].splice(n,1)}emit(t,...e){t in this.#e&&this.#e[t].forEach(n=>n(...e))}},Xe=br;var $i=i=>i.replace(/^\/+|\/+$/g,""),Mi=(...i)=>`/${i.map($i).filter(t=>t).join("/")}`,B=Mi;var _i=i=>i.endsWith("/")?i:`${i}/`,Pe=_i;var mt,et,tt,rt,Oe,vt,yt,me,nt,it,bt,at,ke,Ae,wr=class extends Xe{constructor({directory:e=!1,fullPath:n,title:r="",modified:a,size:o=0,mimeType:s="",del:u=!0,rename:v=!0,placeholder:y=!1,collection:l=null}){super();x(this,mt,void 0);x(this,et,void 0);x(this,tt,void 0);x(this,rt,void 0);x(this,Oe,void 0);x(this,vt,void 0);x(this,yt,void 0);x(this,me,void 0);x(this,nt,void 0);x(this,it,void 0);x(this,bt,void 0);x(this,at,void 0);x(this,ke,void 0);x(this,Ae,void 0);let[m,g]=this.getFilename(n),E=new Date;E.setTime(a),C(this,nt,m),C(this,me,g),C(this,et,e),C(this,Oe,n),C(this,ke,r),C(this,yt,E),C(this,at,o),C(this,vt,s),C(this,mt,u),C(this,bt,v),C(this,it,y),this.collection=l}createParentEntry(){return this.update({fullPath:Pe(this.path),title:"←",del:!1,rename:!1})}getFilename(e){let n=B(e).split(/\//),r=n.pop();return[B(...n),r]}update(e={}){let n=new wr(Me({directory:this.directory,fullPath:this.fullPath,modified:this.modified.getTime(),size:this.size,mimeType:this.mimeType,del:this.del,rename:this.rename,collection:this.collection},e));return this.emit("replaced",n),n}get del(){return h(this,mt)}get directory(){return h(this,et)}get displaySize(){return h(this,et)?"":(h(this,tt)||C(this,tt,["bytes","KiB","MiB","GiB","TiB","PiB"].reduce((e,n)=>typeof e=="string"?e:e<1024?`${e.toFixed(2*(n==="bytes"?0:1))} ${n}`:e/1024,h(this,at))),h(this,tt))}get extension(){return this.directory?"":(h(this,rt)||C(this,rt,this.name.split(".").pop()),h(this,rt))}get fullPath(){return h(this,Oe)}get mimeType(){return h(this,vt)}get modified(){return h(this,yt)}get name(){return h(this,me)}set name(e){C(this,me,encodeURIComponent(e)),C(this,ke,null),C(this,Ae,null),C(this,Oe,B(h(this,nt),h(this,me))),this.directory&&C(this,Oe,Pe(h(this,Oe))),this.title,this.type,this.emit("updated")}get path(){return h(this,nt)}get placeholder(){return h(this,it)}set placeholder(e){C(this,it,e)}get rename(){return h(this,bt)}get size(){return h(this,at)}get title(){return h(this,ke)||C(this,ke,decodeURIComponent(h(this,me))),h(this,ke)}get type(){if(!h(this,Ae)){let e={text:/\.(?:te?xt|i?nfo|php|cgi|faq|ini|htaccess|log|md|sql|sfv|conf|sh|pl|pm|py|rb|(?:s?c|sa)ss|js|java|coffee|[sx]?html?|xml)$/i,image:/\.(?:jpe?g|gif|a?png|svg)$/i,video:/\.(?:mp(?:e?g)?4|mov|avi|webm|ogv|mkv)$/i,audio:/\.(?:mp3|wav|ogg|flac|mka)$/i,font:/\.(?:woff2?|eot|[ot]tf)$/i,pdf:/\.pdf$/i};for(let[n,r]of Object.entries(e))if(h(this,me).match(r))return C(this,Ae,n);C(this,Ae,"unknown")}return h(this,Ae)}},ve=wr;mt=new WeakMap,et=new WeakMap,tt=new WeakMap,rt=new WeakMap,Oe=new WeakMap,vt=new WeakMap,yt=new WeakMap,me=new WeakMap,nt=new WeakMap,it=new WeakMap,bt=new WeakMap,at=new WeakMap,ke=new WeakMap,Ae=new WeakMap;var Et,Q,St,xt,Qt,Xt,wt=class extends Xe{constructor(e,{sortDirectoriesFirst:n=!1}={}){super();x(this,Et,void 0);x(this,Q,void 0);x(this,St,void 0);x(this,xt,()=>{h(this,Q).sort((e,n)=>h(this,St)&&h(this,Xt).call(this,e,n)||h(this,Qt).call(this,e,n))});x(this,Qt,(e,n)=>e.fullPath(n.directory?1:0)-(e.directory?1:0));C(this,St,n),C(this,Q,e.map(a=>new ve(Wt(Me({},a),{collection:this}))));let r=h(this,Q).shift();C(this,Et,B(r.fullPath)),r.fullPath!=="/"&&h(this,Q).unshift(r.createParentEntry()),h(this,xt).call(this)}add(e){e.collection=this,h(this,Q).push(e),h(this,xt).call(this),this.emit("updated")}filter(e){return h(this,Q).filter(e)}forEach(e){h(this,Q).forEach(e)}map(e){return h(this,Q).map(e)}path(){return h(this,Et)}remove(e){C(this,Q,h(this,Q).filter(n=>n!==e)),this.emit("updated")}};Et=new WeakMap,Q=new WeakMap,St=new WeakMap,xt=new WeakMap,Qt=new WeakMap,Xt=new WeakMap;var un=(i,t)=>i.getElementsByTagName(t)[0],ot=(i,t)=>{let e=un(i,t);return e?e.textContent:""},st,Ct,er,Er=class{constructor(t,e=new DOMParser){x(this,st,void 0);x(this,Ct,void 0);x(this,er,void 0);C(this,er,e),C(this,Ct,e.parseFromString(t,"application/xml"))}collection({sortDirectoriesFirst:t=!1}={}){return h(this,st)||C(this,st,new wt(this.responseToPrimitives(h(this,Ct).getElementsByTagName("D:response")),{sortDirectoriesFirst:t})),h(this,st)}responseToPrimitives(t){return Array.from(t).map(e=>({directory:!!un(e,"D:collection"),fullPath:ot(e,"D:href"),modified:Date.parse(ot(e,"lp1:getlastmodified")||ot(e,"D:getlastmodified")),size:parseInt(ot(e,"lp1:getcontentlength")||ot(e,"D:getcontentlength"),10),mimeType:ot(e,"D:getcontenttype")}))}};st=new WeakMap,Ct=new WeakMap,er=new WeakMap;var ln=Er;var _e,Ie,Sr=class extends Error{constructor(e,n){super("Request failure");x(this,_e,void 0);x(this,Ie,void 0);C(this,_e,e),C(this,Ie,n)}request(){return h(this,_e)}response(){return h(this,Ie)}method(){return h(this,_e).method}url(){return h(this,_e).url}statusText(){return h(this,Ie).statusText}status(){return h(this,Ie).status}};_e=new WeakMap,Ie=new WeakMap;var tr=Sr;var Ii={PROPFIND:{headers:{Depth:"1"}}},Le=(i,t,e)=>T(void 0,null,function*(){let n=new Request(t,Wt(Me(Me({},Ii[i]||{}),e),{method:i})),r=yield fetch(n);if(!r.ok)throw new tr(n,r);return r}),xr=class{GET(t,e={}){return Le("GET",t,e)}HEAD(t,e={}){return Le("HEAD",t,e)}PUT(t,e={}){return Le("PUT",t,e)}PROPFIND(t,e={}){return Le("PROPFIND",t,e)}DELETE(t,e={}){return Le("DELETE",t,e)}MKCOL(t,e={}){return Le("MKCOL",t,e)}COPY(t,e={}){return Le("COPY",t,e)}MOVE(t,e={}){return Le("MOVE",t,e)}},cn=xr;var Mn=Y(kt());function ie(i){return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ie(i)}function W(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function mn(i,t){for(var e=0;ei.length)&&(t=i.length);for(var e=0,n=new Array(t);e1&&arguments[1]!==void 0?arguments[1]:{};W(this,i),this.init(t,e)}return G(i,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||na,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r1?n-1:0),a=1;a-1?s.replace(/###/g,"."):s}function r(){return!i||typeof i=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(r())return{};var o=n(a.shift());!i[o]&&e&&(i[o]=new e),Object.prototype.hasOwnProperty.call(i,o)?i=i[o]:i={}}return r()?{}:{obj:i,k:n(a.shift())}}function wn(i,t,e){var n=Tr(i,t,Object),r=n.obj,a=n.k;r[a]=e}function oa(i,t,e,n){var r=Tr(i,t,Object),a=r.obj,o=r.k;a[o]=a[o]||[],n&&(a[o]=a[o].concat(e)),n||a[o].push(e)}function sr(i,t){var e=Tr(i,t),n=e.obj,r=e.k;if(!!n)return n[r]}function En(i,t,e){var n=sr(i,e);return n!==void 0?n:sr(t,e)}function Dn(i,t,e){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in i?typeof i[n]=="string"||i[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?e&&(i[n]=t[n]):Dn(i[n],t[n],e):i[n]=t[n]);return i}function lt(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var sa={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function ua(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,function(t){return sa[t]}):i}var lr=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,la=[" ",",","?","!",";"];function ca(i,t,e){t=t||"",e=e||"";var n=la.filter(function(s){return t.indexOf(s)<0&&e.indexOf(s)<0});if(n.length===0)return!0;var r=new RegExp("(".concat(n.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),a=!r.test(i);if(!a){var o=i.indexOf(e);o>0&&!r.test(i.substring(0,o))&&(a=!0)}return a}function Sn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function ar(i){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jn(i,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!i){if(i[t])return i[t];for(var n=t.split(e),r=i,a=0;aa+o;)o++,s=n.slice(a,a+o).join(e),u=r[s];if(u===void 0)return;if(u===null)return null;if(t.endsWith(s)){if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s]}var v=n.slice(a+o).join(e);return v?jn(u,v,e):void 0}r=r[n[a]]}return r}}var ha=function(i){ut(e,i);var t=fa(e);function e(n){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return W(this,e),r=t.call(this),lr&&Re.call(ae(r)),r.data=n||{},r.options=a,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return G(e,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var a=this.options.ns.indexOf(r);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(r,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,v=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[r,a];o&&typeof o!="string"&&(y=y.concat(o)),o&&typeof o=="string"&&(y=y.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(y=r.split("."));var l=sr(this.data,y);return l||!v||typeof o!="string"?l:jn(this.data&&this.data[r]&&this.data[r][a],o,u)}},{key:"addResource",value:function(r,a,o,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},v=this.options.keySeparator;v===void 0&&(v=".");var y=[r,a];o&&(y=y.concat(v?o.split(v):o)),r.indexOf(".")>-1&&(y=r.split("."),s=a,a=y[1]),this.addNamespaces(a),wn(this.data,y,s),u.silent||this.emit("added",r,a,o,s)}},{key:"addResources",value:function(r,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in o)(typeof o[u]=="string"||Object.prototype.toString.apply(o[u])==="[object Array]")&&this.addResource(r,a,u,o[u],{silent:!0});s.silent||this.emit("added",r,a,o)}},{key:"addResourceBundle",value:function(r,a,o,s,u){var v=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[r,a];r.indexOf(".")>-1&&(y=r.split("."),s=o,o=a,a=y[1]),this.addNamespaces(a);var l=sr(this.data,y)||{};s?Dn(l,o,u):l=ar(ar({},l),o),wn(this.data,y,l),v.silent||this.emit("added",r,a,o)}},{key:"removeResourceBundle",value:function(r,a){this.hasResourceBundle(r,a)&&delete this.data[r][a],this.removeNamespaces(a),this.emit("removed",r,a)}},{key:"hasResourceBundle",value:function(r,a){return this.getResource(r,a)!==void 0}},{key:"getResourceBundle",value:function(r,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ar(ar({},{}),this.getResource(r,a)):this.getResource(r,a)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"hasLanguageSomeTranslations",value:function(r){var a=this.getDataByLanguage(r),o=a&&Object.keys(a)||[];return!!o.find(function(s){return a[s]&&Object.keys(a[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),e}(Re),Nn={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,r,a){var o=this;return t.forEach(function(s){o.processors[s]&&(e=o.processors[s].process(e,n,r,a))}),e}};function xn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function V(i){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var Cn={},Pn=function(i){ut(e,i);var t=pa(e);function e(n){var r,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return W(this,e),r=t.call(this),lr&&Re.call(ae(r)),aa(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,ae(r)),r.options=a,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=he.create("translator"),r}return G(e,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,a);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,a){var o=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ns||this.options.defaultNS||[],v=o&&r.indexOf(o)>-1,y=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!ca(r,o,s);if(v&&!y){var l=r.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:r,namespaces:u};var m=r.split(o);(o!==s||o===s&&this.options.ns.indexOf(m[0])>-1)&&(u=m.shift()),r=m.join(s)}return typeof u=="string"&&(u=[u]),{key:r,namespaces:u}}},{key:"translate",value:function(r,a,o){var s=this;if(ie(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var u=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,v=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,y=this.extractFromKey(r[r.length-1],a),l=y.key,m=y.namespaces,g=m[m.length-1],E=a.lng||this.language,d=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(E&&E.toLowerCase()==="cimode"){if(d){var c=a.nsSeparator||this.options.nsSeparator;return u?(f.res="".concat(g).concat(c).concat(l),f):"".concat(g).concat(c).concat(l)}return u?(f.res=l,f):l}var f=this.resolve(r,a),p=f&&f.res,b=f&&f.usedKey||l,w=f&&f.exactUsedKey||l,O=Object.prototype.toString.apply(p),S=["[object Number]","[object Function]","[object RegExp]"],A=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,D=typeof p!="string"&&typeof p!="boolean"&&typeof p!="number";if(R&&p&&D&&S.indexOf(O)<0&&!(typeof A=="string"&&O==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var X=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,p,V(V({},a),{},{ns:m})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return u?(f.res=X,f):X}if(v){var be=O==="[object Array]",U=be?[]:{},_=be?w:b;for(var N in p)if(Object.prototype.hasOwnProperty.call(p,N)){var $="".concat(_).concat(v).concat(N);U[N]=this.translate($,V(V({},a),{joinArrays:!1,ns:m})),U[N]===$&&(U[N]=p[N])}p=U}}else if(R&&typeof A=="string"&&O==="[object Array]")p=p.join(A),p&&(p=this.extendTranslation(p,r,a,o));else{var H=!1,ee=!1,je=a.count!==void 0&&typeof a.count!="string",K=e.hasDefaultValue(a),gr=je?this.pluralResolver.getSuffix(E,a.count,a):"",z=a["defaultValue".concat(gr)]||a.defaultValue;!this.isValidLookup(p)&&K&&(H=!0,p=z),this.isValidLookup(p)||(ee=!0,p=l);var Ne=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,We=Ne&&ee?void 0:p,le=K&&z!==p&&this.options.updateMissing;if(ee||H||le){if(this.logger.log(le?"updateKey":"missingKey",E,g,l,le?z:p),v){var Ge=this.resolve(l,V(V({},a),{},{keySeparator:!1}));Ge&&Ge.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.")}var we=[],Ee=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ee&&Ee[0])for(var Se=0;Se1&&arguments[1]!==void 0?arguments[1]:{},s,u,v,y,l;return typeof r=="string"&&(r=[r]),r.forEach(function(m){if(!a.isValidLookup(s)){var g=a.extractFromKey(m,o),E=g.key;u=E;var d=g.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var c=o.count!==void 0&&typeof o.count!="string",f=c&&!o.ordinal&&o.count===0&&a.pluralResolver.shouldUseIntlApi(),p=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",b=o.lngs?o.lngs:a.languageUtils.toResolveHierarchy(o.lng||a.language,o.fallbackLng);d.forEach(function(w){a.isValidLookup(s)||(l=w,!Cn["".concat(b[0],"-").concat(w)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(l)&&(Cn["".concat(b[0],"-").concat(w)]=!0,a.logger.warn('key "'.concat(u,'" for languages "').concat(b.join(", "),`" won't get resolved as namespace "`).concat(l,'" 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!!!")),b.forEach(function(O){if(!a.isValidLookup(s)){y=O;var S=[E];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(S,E,O,w,o);else{var A;c&&(A=a.pluralResolver.getSuffix(O,o.count,o));var R="".concat(a.options.pluralSeparator,"zero");if(c&&(S.push(E+A),f&&S.push(E+R)),p){var D="".concat(E).concat(a.options.contextSeparator).concat(o.context);S.push(D),c&&(S.push(D+A),f&&S.push(D+R))}}for(var X;X=S.pop();)a.isValidLookup(s)||(v=X,s=a.getResource(O,w,X,o))}}))})}}),{res:s,usedKey:u,exactUsedKey:v,usedLng:y,usedNS:l}}},{key:"isValidLookup",value:function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,a,o){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,a,o,s):this.resourceStore.getResource(r,a,o,s)}}],[{key:"hasDefaultValue",value:function(r){var a="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&a===o.substring(0,a.length)&&r[o]!==void 0)return!0;return!1}}]),e}(Re);function Lr(i){return i.charAt(0).toUpperCase()+i.slice(1)}var ma=function(){function i(t){W(this,i),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=he.create("languageUtils")}return G(i,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var n=e.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],r=e.split("-");return this.options.lowerCaseLng?r=r.map(function(a){return a.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Lr(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Lr(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Lr(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var n=this;if(!e)return null;var r;return e.forEach(function(a){if(!r){var o=n.formatLanguageCode(a);(!n.options.supportedLngs||n.isSupportedCode(o))&&(r=o)}}),!r&&this.options.supportedLngs&&e.forEach(function(a){if(!r){var o=n.getLanguagePartFromCode(a);if(n.isSupportedCode(o))return r=o;r=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}},{key:"getFallbackCodes",value:function(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];var r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}},{key:"toResolveHierarchy",value:function(e,n){var r=this,a=this.getFallbackCodes(n||this.options.fallbackLng||[],e),o=[],s=function(v){!v||(r.isSupportedCode(v)?o.push(v):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(v)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),a.forEach(function(u){o.indexOf(u)<0&&s(r.formatLanguageCode(u))}),o}}]),i}(),va=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ya={1:function(t){return Number(t>1)},2:function(t){return Number(t!=1)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},5:function(t){return Number(t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5)},6:function(t){return Number(t==1?0:t>=2&&t<=4?1:2)},7:function(t){return Number(t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2)},8:function(t){return Number(t==1?0:t==2?1:t!=8&&t!=11?2:3)},9:function(t){return Number(t>=2)},10:function(t){return Number(t==1?0:t==2?1:t<7?2:t<11?3:4)},11:function(t){return Number(t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(t!==0)},14:function(t){return Number(t==1?0:t==2?1:t==3?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:t!==0?1:2)},17:function(t){return Number(t==1||t%10==1&&t%100!=11?0:1)},18:function(t){return Number(t==0?0:t==1?1:2)},19:function(t){return Number(t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3)},20:function(t){return Number(t==1?0:t==0||t%100>0&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3)}},ba=["v1","v2","v3"],On={zero:0,one:1,two:2,few:3,many:4,other:5};function wa(){var i={};return va.forEach(function(t){t.lngs.forEach(function(e){i[e]={numbers:t.nr,plurals:ya[t.fc]}})}),i}var Ea=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,i),this.languageUtils=t,this.options=e,this.logger=he.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=wa()}return G(i,[{key:"addRule",value:function(e,n){this.rules[e]=n}},{key:"getRule",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(function(a){return"".concat(n).concat(a)})}},{key:"getSuffixes",value:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(e,r);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(o,s){return On[o]-On[s]}).map(function(o){return"".concat(n.options.prepend).concat(o)}):a.numbers.map(function(o){return n.getSuffix(e,o,r)}):[]}},{key:"getSuffix",value:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(e,r);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(n)):this.getSuffixRetroCompatible(a,n):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,n){var r=this,a=e.noAbs?e.plurals(n):e.plurals(Math.abs(n)),o=e.numbers[a];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));var s=function(){return r.options.prepend&&o.toString()?r.options.prepend+o.toString():o.toString()};return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?"_plural_".concat(o.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!ba.includes(this.options.compatibilityJSON)}}]),i}();function kn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function oe(i){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};W(this,i),this.logger=he.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return G(i,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var n=e.interpolation;this.escape=n.escape!==void 0?n.escape:ua,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?lt(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?lt(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?lt(n.nestingPrefix):n.nestingPrefixEscaped||lt("$t("),this.nestingSuffix=n.nestingSuffix?lt(n.nestingSuffix):n.nestingSuffixEscaped||lt(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")}},{key:"interpolate",value:function(e,n,r,a){var o=this,s,u,v,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(c){return c.replace(/\$/g,"$$$$")}var m=function(f){if(f.indexOf(o.formatSeparator)<0){var p=En(n,y,f);return o.alwaysFormat?o.format(p,void 0,r,oe(oe(oe({},a),n),{},{interpolationkey:f})):p}var b=f.split(o.formatSeparator),w=b.shift().trim(),O=b.join(o.formatSeparator).trim();return o.format(En(n,y,w),O,r,oe(oe(oe({},a),n),{},{interpolationkey:w}))};this.resetRegExp();var g=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,E=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:function(f){return l(f)}},{regex:this.regexp,safeValue:function(f){return o.escapeValue?l(o.escape(f)):l(f)}}];return d.forEach(function(c){for(v=0;s=c.regex.exec(e);){var f=s[1].trim();if(u=m(f),u===void 0)if(typeof g=="function"){var p=g(e,s,a);u=typeof p=="string"?p:""}else if(a&&a.hasOwnProperty(f))u="";else if(E){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(f," for interpolating ").concat(e)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=bn(u));var b=c.safeValue(u);if(e=e.replace(s[0],b),E?(c.regex.lastIndex+=u.length,c.regex.lastIndex-=s[0].length):c.regex.lastIndex=0,v++,v>=o.maxReplaces)break}}),e}},{key:"nest",value:function(e,n){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u=oe({},a);u.applyPostProcessor=!1,delete u.defaultValue;function v(g,E){var d=this.nestingOptionsSeparator;if(g.indexOf(d)<0)return g;var c=g.split(new RegExp("".concat(d,"[ ]*{"))),f="{".concat(c[1]);g=c[0],f=this.interpolate(f,u),f=f.replace(/'/g,'"');try{u=JSON.parse(f),E&&(u=oe(oe({},E),u))}catch(p){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),p),"".concat(g).concat(d).concat(f)}return delete u.defaultValue,g}for(;o=this.nestingRegexp.exec(e);){var y=[],l=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var m=o[1].split(this.formatSeparator).map(function(g){return g.trim()});o[1]=m.shift(),y=m,l=!0}if(s=n(v.call(this,o[1].trim(),u),u),s&&o[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=bn(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),s=""),l&&(s=y.reduce(function(g,E){return r.format(g,E,a.lng,oe(oe({},a),{},{interpolationkey:o[1].trim()}))},s.trim())),e=e.replace(o[0],s),this.regexp.lastIndex=0}return e}}]),i}();function An(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function Te(i){for(var t=1;t-1){var n=i.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);if(t==="currency"&&r.indexOf(":")<0)e.currency||(e.currency=r.trim());else if(t==="relativetime"&&r.indexOf(":")<0)e.range||(e.range=r.trim());else{var a=r.split(";");a.forEach(function(o){if(!!o){var s=o.split(":"),u=Ar(s),v=u[0],y=u.slice(1),l=y.join(":").trim().replace(/^'+|'+$/g,"");e[v.trim()]||(e[v.trim()]=l),l==="false"&&(e[v.trim()]=!1),l==="true"&&(e[v.trim()]=!0),isNaN(l)||(e[v.trim()]=parseInt(l,10))}})}}return{formatName:t,formatOptions:e}}var Ca=function(){function i(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};W(this,i),this.logger=he.create("formatter"),this.options=t,this.formats={number:function(n,r,a){return new Intl.NumberFormat(r,a).format(n)},currency:function(n,r,a){return new Intl.NumberFormat(r,Te(Te({},a),{},{style:"currency"})).format(n)},datetime:function(n,r,a){return new Intl.DateTimeFormat(r,Te({},a)).format(n)},relativetime:function(n,r,a){return new Intl.RelativeTimeFormat(r,Te({},a)).format(n,a.range||"day")},list:function(n,r,a){return new Intl.ListFormat(r,Te({},a)).format(n)}},this.init(t)}return G(i,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=n.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}},{key:"add",value:function(e,n){this.formats[e.toLowerCase().trim()]=n}},{key:"format",value:function(e,n,r,a){var o=this,s=n.split(this.formatSeparator),u=s.reduce(function(v,y){var l=xa(y),m=l.formatName,g=l.formatOptions;if(o.formats[m]){var E=v;try{var d=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},c=d.locale||d.lng||a.locale||a.lng||r;E=o.formats[m](v,c,Te(Te(Te({},g),a),d))}catch(f){o.logger.warn(f)}return E}else o.logger.warn("there was no format function for ".concat(m));return v},e);return u}}]),i}();function Ln(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function Tn(i){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ka(i,t){i.pending[t]!==void 0&&(delete i.pending[t],i.pendingCount--)}var Aa=function(i){ut(e,i);var t=Pa(e);function e(n,r,a){var o,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return W(this,e),o=t.call(this),lr&&Re.call(ae(o)),o.backend=n,o.store=r,o.services=a,o.languageUtils=a.languageUtils,o.options=s,o.logger=he.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=s.maxParallelReads||10,o.readingCalls=0,o.maxRetries=s.maxRetries>=0?s.maxRetries:5,o.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(a,s.backend,s),o}return G(e,[{key:"queueLoad",value:function(r,a,o,s){var u=this,v={},y={},l={},m={};return r.forEach(function(g){var E=!0;a.forEach(function(d){var c="".concat(g,"|").concat(d);!o.reload&&u.store.hasResourceBundle(g,d)?u.state[c]=2:u.state[c]<0||(u.state[c]===1?y[c]===void 0&&(y[c]=!0):(u.state[c]=1,E=!1,y[c]===void 0&&(y[c]=!0),v[c]===void 0&&(v[c]=!0),m[d]===void 0&&(m[d]=!0)))}),E||(l[g]=!0)}),(Object.keys(v).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(v),pending:Object.keys(y),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(m)}}},{key:"loaded",value:function(r,a,o){var s=r.split("|"),u=s[0],v=s[1];a&&this.emit("failedLoading",u,v,a),o&&this.store.addResourceBundle(u,v,o),this.state[r]=a?-1:2;var y={};this.queue.forEach(function(l){oa(l.loaded,[u],v),ka(l,r),a&&l.errors.push(a),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(function(m){y[m]||(y[m]={});var g=l.loaded[m];g.length&&g.forEach(function(E){y[m][E]===void 0&&(y[m][E]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,a,o){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!r.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:a,fcName:o,tried:u,wait:v,callback:y});return}return this.readingCalls++,this.backend[o](r,a,function(l,m){if(s.readingCalls--,s.waitingReads.length>0){var g=s.waitingReads.shift();s.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(l&&m&&u2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof a=="string"&&(a=[a]);var v=this.queueLoad(r,a,s,u);if(!v.toLoad.length)return v.pending.length||u(),null;v.toLoad.forEach(function(y){o.loadOne(y)})}},{key:"load",value:function(r,a,o){this.prepareLoading(r,a,{},o)}},{key:"reload",value:function(r,a,o){this.prepareLoading(r,a,{reload:!0},o)}},{key:"loadOne",value:function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=r.split("|"),u=s[0],v=s[1];this.read(u,v,"read",void 0,void 0,function(y,l){y&&a.logger.warn("".concat(o,"loading namespace ").concat(v," for language ").concat(u," failed"),y),!y&&l&&a.logger.log("".concat(o,"loaded namespace ").concat(v," for language ").concat(u),l),a.loaded(r,y,l)})}},{key:"saveMissing",value:function(r,a,o,s,u){var v=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}o==null||o===""||(this.backend&&this.backend.create&&this.backend.create(r,a,o,s,null,Tn(Tn({},v),{},{isUpdate:u})),!(!r||!r[0])&&this.store.addResource(r[0],a,o,s))}}]),e}(Re);function La(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e={};if(ie(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),ie(t[2])==="object"||ie(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(r){e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:function(t,e,n,r){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Rn(i){return typeof i.ns=="string"&&(i.ns=[i.ns]),typeof i.fallbackLng=="string"&&(i.fallbackLng=[i.fallbackLng]),typeof i.fallbackNS=="string"&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&i.supportedLngs.indexOf("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i}function Fn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),e.push.apply(e,n)}return e}function de(i){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function or(){}function Fa(i){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(i));t.forEach(function(e){typeof i[e]=="function"&&(i[e]=i[e].bind(i))})}var ur=function(i){ut(e,i);var t=Ta(e);function e(){var n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(W(this,e),n=t.call(this),lr&&Re.call(ae(n)),n.options=Rn(r),n.services={},n.logger=he,n.modules={external:[]},Fa(ae(n)),a&&!n.isInitialized&&!r.isClone){if(!n.options.initImmediate)return n.init(r,a),Ue(n,ae(n));setTimeout(function(){n.init(r,a)},0)}return n}return G(e,[{key:"init",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(o=a,a={}),!a.defaultNS&&a.defaultNS!==!1&&a.ns&&(typeof a.ns=="string"?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));var s=La();this.options=de(de(de({},s),this.options),Rn(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=de(de({},s.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function u(f){return f?typeof f=="function"?new f:f:null}if(!this.options.isClone){this.modules.logger?he.init(u(this.modules.logger),this.options):he.init(null,this.options);var v;this.modules.formatter?v=this.modules.formatter:typeof Intl<"u"&&(v=Ca);var y=new ma(this.options);this.store=new ha(this.options.resources,this.options);var l=this.services;l.logger=he,l.resourceStore=this.store,l.languageUtils=y,l.pluralResolver=new Ea(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),v&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(l.formatter=u(v),l.formatter.init(l,this.options),this.options.interpolation.format=l.formatter.format.bind(l.formatter)),l.interpolator=new Sa(this.options),l.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},l.backendConnector=new Aa(u(this.modules.backend),l.resourceStore,l,this.options),l.backendConnector.on("*",function(f){for(var p=arguments.length,b=new Array(p>1?p-1:0),w=1;w
1?p-1:0),w=1;w
0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var g=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];g.forEach(function(f){r[f]=function(){var p;return(p=r.store)[f].apply(p,arguments)}});var E=["addResource","addResources","addResourceBundle","removeResourceBundle"];E.forEach(function(f){r[f]=function(){var p;return(p=r.store)[f].apply(p,arguments),r}});var d=Lt(),c=function(){var p=function(w,O){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),d.resolve(O),o(w,O)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return p(null,r.t.bind(r));r.changeLanguage(r.options.lng,p)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),d}},{key:"loadResources",value:function(r){var a=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:or,s=o,u=typeof r=="string"?r:this.language;if(typeof r=="function"&&(s=r),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return s();var v=[],y=function(g){if(!!g){var E=a.services.languageUtils.toResolveHierarchy(g);E.forEach(function(d){v.indexOf(d)<0&&v.push(d)})}};if(u)y(u);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(m){return y(m)})}this.options.preload&&this.options.preload.forEach(function(m){return y(m)}),this.services.backendConnector.load(v,this.options.ns,function(m){!m&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),s(m)})}else s(null)}},{key:"reloadResources",value:function(r,a,o){var s=Lt();return r||(r=this.languages),a||(a=this.options.ns),o||(o=or),this.services.backendConnector.reload(r,a,function(u){s.resolve(),o(u)}),s}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&Nn.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"setResolvedLanguage",value:function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var a=0;a-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(r,a){var o=this;this.isLanguageChangingTo=r;var s=Lt();this.emit("languageChanging",r);var u=function(m){o.language=m,o.languages=o.services.languageUtils.toResolveHierarchy(m),o.resolvedLanguage=void 0,o.setResolvedLanguage(m)},v=function(m,g){g?(u(g),o.translator.changeLanguage(g),o.isLanguageChangingTo=void 0,o.emit("languageChanged",g),o.logger.log("languageChanged",g)):o.isLanguageChangingTo=void 0,s.resolve(function(){return o.t.apply(o,arguments)}),a&&a(m,function(){return o.t.apply(o,arguments)})},y=function(m){!r&&!m&&o.services.languageDetector&&(m=[]);var g=typeof m=="string"?m:o.services.languageUtils.getBestMatchFromCodes(m);g&&(o.language||u(g),o.translator.language||o.translator.changeLanguage(g),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(g)),o.loadResources(g,function(E){v(E,g)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(y):y(r),s}},{key:"getFixedT",value:function(r,a,o){var s=this,u=function v(y,l){var m;if(ie(l)!=="object"){for(var g=arguments.length,E=new Array(g>2?g-2:0),d=2;d1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,v=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var y=function(g,E){var d=a.services.backendConnector.state["".concat(g,"|").concat(E)];return d===-1||d===2};if(o.precheck){var l=o.precheck(this,y);if(l!==void 0)return l}return!!(this.hasResourceBundle(s,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(s,r)&&(!u||y(v,r)))}},{key:"loadNamespaces",value:function(r,a){var o=this,s=Lt();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(u){o.options.ns.indexOf(u)<0&&o.options.ns.push(u)}),this.loadResources(function(u){s.resolve(),a&&a(u)}),s):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(r,a){var o=Lt();typeof r=="string"&&(r=[r]);var s=this.options.preload||[],u=r.filter(function(v){return s.indexOf(v)<0});return u.length?(this.options.preload=s.concat(u),this.loadResources(function(v){o.resolve(),a&&a(v)}),o):(a&&a(),Promise.resolve())}},{key:"dir",value:function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var a=["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"];return a.indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:or,s=de(de(de({},this.options),a),{isClone:!0}),u=new e(s),v=["store","services","language"];return v.forEach(function(y){u[y]=r[y]}),u.services=de({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new Pn(u.services,u.options),u.translator.on("*",function(y){for(var l=arguments.length,m=new Array(l>1?l-1:0),g=1;g0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ur(i,t)});var J=ur.createInstance();J.createInstance=ur.createInstance;var us=J.createInstance,ls=J.init,cs=J.loadResources,fs=J.reloadResources,$n=J.use,ds=J.changeLanguage,hs=J.getFixedT,j=J.t,ps=J.exists,gs=J.setDefaultNamespace,ms=J.hasLoadedNamespace,vs=J.loadNamespaces,ys=J.loadLanguages;var Da=()=>{let i=new Map;return i.set("GET",new Map),i.set("PROPFIND",new Map),i},Rt,He,re,Ft,Dt,jt,Nt,se,$t,Tt=class{constructor({bypassCheck:t,sortDirectoriesFirst:e},n=Da(),r=new cn){x(this,Rt,void 0);x(this,He,void 0);x(this,re,void 0);x(this,Ft,void 0);x(this,Dt,(t,e)=>{let n=h(this,He).get(t);return n.has(e)?n.get(e):null});x(this,jt,(t,e)=>h(this,He).get(t).has(e));x(this,Nt,(t,e,n)=>{h(this,He).get(t).set(e,n)});x(this,se,t=>T(this,null,function*(){try{return yield t()}catch(e){if(!(e instanceof tr))throw e;(0,Mn.error)(j("failure",{interpolation:{escapeValue:!1},method:e.method(),url:e.url(),statusText:e.statusText(),status:e.status()}))}}));x(this,$t,t=>{let e=`${location.protocol}//${location.hostname}${location.port?`:${location.port}`:""}`,n=new RegExp(`^${e}`);if(!t.match(n)){if(t.match(/^http/))throw new TypeError(`Invalid destination host: '${t}'.`);return`${e}${t}`}return t});C(this,Rt,t),C(this,Ft,e),C(this,He,n),C(this,re,r)}check(t){return T(this,null,function*(){return h(this,Rt)?Promise.resolve({ok:!0,status:200}):h(this,se).call(this,()=>h(this,re).HEAD(t))})}copy(t,e){return T(this,null,function*(){return h(this,se).call(this,()=>h(this,re).COPY(t,{headers:{Destination:h(this,$t).call(this,e)}}))})}del(t){return T(this,null,function*(){return h(this,se).call(this,()=>h(this,re).DELETE(t))})}get(t){return T(this,null,function*(){if(!h(this,jt).call(this,"GET",t)){let e=yield h(this,se).call(this,()=>h(this,re).GET(t));if(!e||!e.ok)return;h(this,Nt).call(this,"GET",t,yield e.text())}return h(this,Dt).call(this,"GET",t)})}list(t,e=!1){return T(this,null,function*(){if(t=Pe(t),!e&&h(this,jt).call(this,"PROPFIND",t))return h(this,Dt).call(this,"PROPFIND",t);let n=yield this.check(t);if(!n||!n.ok&&n.status!==405)return;let r=yield h(this,se).call(this,()=>h(this,re).PROPFIND(t)),a=new ln(yield r.text()),o=a.collection({sortDirectoriesFirst:h(this,Ft)});return h(this,Nt).call(this,"PROPFIND",t,o),o})}mkcol(t){return T(this,null,function*(){return h(this,se).call(this,()=>h(this,re).MKCOL(t))})}move(t,e,n){return T(this,null,function*(){let r=h(this,$t).call(this,e);return h(this,se).call(this,()=>h(this,re).MOVE(t,{headers:{Destination:n.directory?Pe(r):r}}))})}upload(t,e){return T(this,null,function*(){let n=B(t,e.name);return h(this,se).call(this,()=>h(this,re).PUT(n,{headers:{"Content-Type":e.type},body:e}))})}};Rt=new WeakMap,He=new WeakMap,re=new WeakMap,Ft=new WeakMap,Dt=new WeakMap,jt=new WeakMap,Nt=new WeakMap,se=new WeakMap,$t=new WeakMap;var Ke=Y(Ce());var _n=Y(kt());var ja=(i,t,e)=>T(void 0,null,function*(){let n=yield i.list(t.getPath(),!0);if(!n)return;t.setCollection(n);let[r]=n.filter(s=>s.name===e.name);if(r){if(!confirm(j("overwriteFileConfirmation",{file:r.title})))return;n.remove(r)}let a=new ve({fullPath:B(t.getPath(),e.name),modified:Date.now(),size:e.size,mimeType:e.type,placeholder:!0,collection:n});if(n.add(a),!(yield i.upload(location.pathname,e))){n.remove(a),t.update();return}a.placeholder=!1,t.update(),(0,_n.success)(j("successfullyUploaded",{interpolation:{escapeValue:!1},file:e.name}))}),cr=ja;var In=Y(kt());var ct,Fe,Mt=class extends Ke.default{constructor(e,n){super((0,Ke.s)(``));x(this,ct,void 0);x(this,Fe,void 0);C(this,ct,e),C(this,Fe,n),this.bindEvents()}bindEvents(){let e=this.query('input[type="file"]'),n=this.query(".create-directory");(0,Ke.on)(e,"change",()=>T(this,null,function*(){for(let r of e.files)cr(h(this,ct),h(this,Fe),r);h(this,Fe).update(),e.value=null})),(0,Ke.on)(n,"click",r=>T(this,null,function*(){r.preventDefault();let a=prompt("",j("directoryName"));!a||this.handleCreateDirectory(Pe(B(location.pathname,a)),a)}))}handleCreateDirectory(e,n){return T(this,null,function*(){if(!(yield h(this,ct).mkcol(e)))return;(0,In.success)(j("successfullyCreated",{interpolation:{escapeValue:!1},directoryName:n}));let a=h(this,Fe).getCollection();a.add(new ve({directory:!0,fullPath:e,modified:Date.now(),collection:a})),h(this,Fe).update()})}};ct=new WeakMap,Fe=new WeakMap;var fr=Y(Ce());var qn=i=>decodeURIComponent(i.getPath()),Ve,Rr=class extends fr.default{constructor(e){super((0,fr.s)(`
+
${qn(e)}
+`));x(this,Ve,void 0);C(this,Ve,e),this.bindEvents()}bindEvents(){h(this,Ve).on("updated",()=>{h(this,Ve).isDirectory()&&this.update()})}update(){this.query("h1").innerHTML=qn(h(this,Ve))}};Ve=new WeakMap;var Un=Rr;var Bn=[],Na=Bn.forEach,$a=Bn.slice;function Ma(i){return Na.call($a.call(arguments,1),function(t){if(t)for(var e in t)i[e]===void 0&&(i[e]=t[e])}),i}var Hn=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,_a=function(t,e,n){var r=n||{};r.path=r.path||"/";var a=encodeURIComponent(e),o="".concat(t,"=").concat(a);if(r.maxAge>0){var s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(r.domain){if(!Hn.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(r.domain)}if(r.path){if(!Hn.test(r.path))throw new TypeError("option path is invalid");o+="; Path=".concat(r.path)}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(r.expires.toUTCString())}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite){var u=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},Kn={create:function(t,e,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=_a(t,encodeURIComponent(e),a)},read:function(t){for(var e="".concat(t,"="),n=document.cookie.split(";"),r=0;r-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var r=n.substring(1),a=r.split("&"),o=0;o0){var u=a[o].substring(0,s);u===t.lookupQuerystring&&(e=a[o].substring(s+1))}}}return e}},_t=null,Vn=function(){if(_t!==null)return _t;try{_t=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{_t=!1}return _t},Ua={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&Vn()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&Vn()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},It=null,zn=function(){if(It!==null)return It;try{It=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{It=!1}return It},Ha={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&zn()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(e=n)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&zn()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},Ka={name:"navigator",lookup:function(t){var e=[];if(typeof navigator<"u"){if(navigator.languages)for(var n=0;n0?e:void 0}},Va={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||(typeof document<"u"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(e=n.getAttribute("lang")),e}},za={name:"path",lookup:function(t){var e;if(typeof window<"u"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},Ba={name:"subdomain",lookup:function(t){var e=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(!!n)return n[e]}};function Wa(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var Fr=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};W(this,i),this.type="languageDetector",this.detectors={},this.init(t,e)}return G(i,[{key:"init",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=Ma(n,this.options||{},Wa()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Ia),this.addDetector(qa),this.addDetector(Ua),this.addDetector(Ha),this.addDetector(Ka),this.addDetector(Va),this.addDetector(za),this.addDetector(Ba)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var n=this;e||(e=this.options.order);var r=[];return e.forEach(function(a){if(n.detectors[a]){var o=n.detectors[a].lookup(n.options);o&&typeof o=="string"&&(o=[o]),o&&(r=r.concat(o))}}),this.services.languageUtils.getBestMatchFromCodes?r:r.length>0?r[0]:null}},{key:"cacheUserLanguage",value:function(e,n){var r=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(function(a){r.detectors[a]&&r.detectors[a].cacheUserLanguage(e,r.options)}))}}]),i}();Fr.type="languageDetector";var De=Y(Ce());var Yn=Y(Gn()),F=Y(Ce()),Zn=Y(Jn());var Ja=(i,t="li")=>{if(!i)return[null,null];let e=i.parentElement;if(!e)return[null,null];let n=Array.from(e.querySelectorAll(t)),r=n.indexOf(i);if(r===-1)return[null,null];let a=r>0?n[r-1]:null,o=r`