File: src/webdav-min.js

Recommend this page to a friend!
  Classes of Dom Hastings   JS Webdav Client   src/webdav-min.js   Download  
File: src/webdav-min.js
Role: Class source
Content type: text/plain
Description: Class source
Class: JS Webdav Client
Access files of a Webdav server
Author: By
Last change: Increased the size of the item buttons.
Add a `Tree` component to enable copy and move operations again. Fixes #111.
Combine path-related functions.
Ensure `HTTP` operations always return a response.
Minor changes to adhere to WebDAV spec.
Use locally stored copy of `Window` object in `State`, instead of the global object.
Refactor code - replacing nested events with direct calls.
Added path to top of list.
Fix MOVE operations on non-Apache hosts. Fixes #89.
Refine Nginx example with docker-compose file
Add first pass at i18n (using i18next).
Add `pushstate` when previews are opened in lightbox and `popstate` when closed. Still work to do with potentially managing the `popstate` handler for files too. Potentially addresses the main problem in #59.
Adding functional test.
Replace webpack with esbuild.
Replace Babel with TypeScript.
Replace Karma with Jest.
Replace ESLint and Stylelint with Prettier.
Date: 7 months ago
Size: 134,902 bytes
 

Contents

Class file image Download
(()=>{var Yi=Object.create;var Ir=Object.defineProperty,Zi=Object.defineProperties,Qi=Object.getOwnPropertyDescriptor,Xi=Object.getOwnPropertyDescriptors,ea=Object.getOwnPropertyNames,Sn=Object.getOwnPropertySymbols,ta=Object.getPrototypeOf,Pn=Object.prototype.hasOwnProperty,ra=Object.prototype.propertyIsEnumerable;var Cn=(i,t,e)=>t in i?Ir(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,X=(i,t)=>{for(var e in t||(t={}))Pn.call(t,e)&&Cn(i,e,t[e]);if(Sn)for(var e of Sn(t))ra.call(t,e)&&Cn(i,e,t[e]);return i},dr=(i,t)=>Zi(i,Xi(t));var At=(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 Le=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports);var na=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ea(t))!Pn.call(i,n)&&n!==e&&Ir(i,n,{get:()=>t[n],enumerable:!(r=Qi(t,n))||r.enumerable});return i};var I=(i,t,e)=>(e=i!=null?Yi(ta(i)):{},na(t||!i||!i.__esModule?Ir(e,"default",{value:i,enumerable:!0}):e,i));var On=(i,t,e)=>{if(!t.has(i))throw TypeError("Cannot "+e)};var l=(i,t,e)=>(On(i,t,"read from private field"),e?e.call(i):t.get(i)),E=(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)},x=(i,t,e,r)=>(On(i,t,"write to private field"),r?r.call(i,e):t.set(i,e),e);var A=(i,t,e)=>new Promise((r,n)=>{var a=u=>{try{o(e.next(u))}catch(m){n(m)}},s=u=>{try{o(e.throw(u))}catch(m){n(m)}},o=u=>u.done?r(u.value):Promise.resolve(u.value).then(a,s);o((e=e.apply(i,t)).next())});var hr=Le(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.AttributeAction=me.IgnoreCaseMode=me.SelectorType=void 0;var ia;(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"})(ia=me.SelectorType||(me.SelectorType={}));me.IgnoreCaseMode={Unknown:null,QuirksMode:"quirks",IgnoreCase:!0,CaseSensitive:!1};var aa;(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"})(aa=me.AttributeAction||(me.AttributeAction={}))});var Rn=Le(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.parse=it.isTraversal=void 0;var R=hr(),kn=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,sa=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,oa=new Map([[126,R.AttributeAction.Element],[94,R.AttributeAction.Start],[36,R.AttributeAction.End],[42,R.AttributeAction.Any],[33,R.AttributeAction.Not],[124,R.AttributeAction.Hyphen]]),ua=new Set(["has","not","matches","is","where","host","host-context"]);function Ln(i){switch(i.type){case R.SelectorType.Adjacent:case R.SelectorType.Child:case R.SelectorType.Descendant:case R.SelectorType.Parent:case R.SelectorType.Sibling:case R.SelectorType.ColumnCombinator:return!0;default:return!1}}it.isTraversal=Ln;var la=new Set(["contains","icontains"]);function ca(i,t,e){var r=parseInt(t,16)-65536;return r!==r||e?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Lt(i){return i.replace(sa,ca)}function Hr(i){return i===39||i===34}function An(i){return i===32||i===9||i===10||i===12||i===13}function fa(i){var t=[],e=Tn(t,"".concat(i),0);if(e<i.length)throw new Error("Unmatched selector: ".concat(i.slice(e)));return t}it.parse=fa;function Tn(i,t,e){var r=[];function n(q){var j=t.slice(e+q).match(kn);if(!j)throw new Error("Expected name, found ".concat(t.slice(e)));var $=j[0];return e+=q+$.length,Lt($)}function a(q){for(e+=q;e<t.length&&An(t.charCodeAt(e));)e++}function s(){e+=1;for(var q=e,j=1;j>0&&e<t.length;e++)t.charCodeAt(e)===40&&!o(e)?j++:t.charCodeAt(e)===41&&!o(e)&&j--;if(j)throw new Error("Parenthesis not matched");return Lt(t.slice(q,e-1))}function o(q){for(var j=0;t.charCodeAt(--q)===92;)j++;return(j&1)===1}function u(){if(r.length>0&&Ln(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function m(q){if(r.length>0&&r[r.length-1].type===R.SelectorType.Descendant){r[r.length-1].type=q;return}u(),r.push({type:q})}function y(q,j){r.push({type:R.SelectorType.Attribute,name:q,action:j,value:n(1),namespace:null,ignoreCase:"quirks"})}function c(){if(r.length&&r[r.length-1].type===R.SelectorType.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");i.push(r)}if(a(0),t.length===e)return e;e:for(;e<t.length;){var v=t.charCodeAt(e);switch(v){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==R.SelectorType.Descendant)&&(u(),r.push({type:R.SelectorType.Descendant})),a(1);break}case 62:{m(R.SelectorType.Child),a(1);break}case 60:{m(R.SelectorType.Parent),a(1);break}case 126:{m(R.SelectorType.Sibling),a(1);break}case 43:{m(R.SelectorType.Adjacent),a(1);break}case 46:{y("class",R.AttributeAction.Element);break}case 35:{y("id",R.AttributeAction.Equals);break}case 91:{a(1);var g=void 0,S=null;t.charCodeAt(e)===124?g=n(1):t.startsWith("*|",e)?(S="*",g=n(2)):(g=n(0),t.charCodeAt(e)===124&&t.charCodeAt(e+1)!==61&&(S=g,g=n(1))),a(0);var d=R.AttributeAction.Exists,f=oa.get(t.charCodeAt(e));if(f){if(d=f,t.charCodeAt(e+1)!==61)throw new Error("Expected `=`");a(2)}else t.charCodeAt(e)===61&&(d=R.AttributeAction.Equals,a(1));var h="",p=null;if(d!=="exists"){if(Hr(t.charCodeAt(e))){for(var b=t.charCodeAt(e),w=e+1;w<t.length&&(t.charCodeAt(w)!==b||o(w));)w+=1;if(t.charCodeAt(w)!==b)throw new Error("Attribute value didn't end");h=Lt(t.slice(e+1,w)),e=w+1}else{for(var O=e;e<t.length&&(!An(t.charCodeAt(e))&&t.charCodeAt(e)!==93||o(e));)e+=1;h=Lt(t.slice(O,e))}a(0);var C=t.charCodeAt(e)|32;C===115?(p=!1,a(1)):C===105&&(p=!0,a(1))}if(t.charCodeAt(e)!==93)throw new Error("Attribute selector didn't terminate");e+=1;var L={type:R.SelectorType.Attribute,name:g,action:d,value:h,namespace:S,ignoreCase:p};r.push(L);break}case 58:{if(t.charCodeAt(e+1)===58){r.push({type:R.SelectorType.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(e)===40?s():null});continue}var F=n(1).toLowerCase(),N=null;if(t.charCodeAt(e)===40)if(ua.has(F)){if(Hr(t.charCodeAt(e+1)))throw new Error("Pseudo-selector ".concat(F," cannot be quoted"));if(N=[],e=Tn(N,t,e+1),t.charCodeAt(e)!==41)throw new Error("Missing closing parenthesis in :".concat(F," (").concat(t,")"));e+=1}else{if(N=s(),la.has(F)){var ne=N.charCodeAt(0);ne===N.charCodeAt(N.length-1)&&Hr(ne)&&(N=N.slice(1,-1))}N=Lt(N)}r.push({type:R.SelectorType.Pseudo,name:F,data:N});break}case 44:{c(),r=[],a(1);break}default:{if(t.startsWith("/*",e)){var Pe=t.indexOf("*/",e+2);if(Pe<0)throw new Error("Comment was not terminated");e=Pe+2,r.length===0&&a(0);break}var S=null,K=void 0;if(v===42)e+=1,K="*";else if(v===124){if(K="",t.charCodeAt(e+1)===124){m(R.SelectorType.ColumnCombinator),a(2);break}}else if(kn.test(t.slice(e)))K=n(0);else break e;t.charCodeAt(e)===124&&t.charCodeAt(e+1)!==124&&(S=K,t.charCodeAt(e+1)===42?(K="*",e+=2):K=n(1)),r.push(K==="*"?{type:R.SelectorType.Universal,namespace:S}:{type:R.SelectorType.Tag,name:K,namespace:S})}}}return c(),e}});var _n=Le(st=>{"use strict";var pr=st&&st.__spreadArray||function(i,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,a;r<n;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return i.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(st,"__esModule",{value:!0});st.stringify=void 0;var M=hr(),Nn=["\\",'"'],jn=pr(pr([],Nn,!0),["(",")"],!1),da=new Set(Nn.map(function(i){return i.charCodeAt(0)})),Dn=new Set(jn.map(function(i){return i.charCodeAt(0)})),at=new Set(pr(pr([],jn,!0),["~","^","$","*","+","!","|",":","[","]"," ","."],!1).map(function(i){return i.charCodeAt(0)}));function $n(i){return i.map(function(t){return t.map(ha).join("")}).join(", ")}st.stringify=$n;function ha(i,t,e){switch(i.type){case M.SelectorType.Child:return t===0?"> ":" > ";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+1<e.length&&"name"in e[t+1]?"":"".concat(Mn(i.namespace),"*");case M.SelectorType.Tag:return Fn(i);case M.SelectorType.PseudoElement:return"::".concat(Ee(i.name,at)).concat(i.data===null?"":"(".concat(Ee(i.data,Dn),")"));case M.SelectorType.Pseudo:return":".concat(Ee(i.name,at)).concat(i.data===null?"":"(".concat(typeof i.data=="string"?Ee(i.data,Dn):$n(i.data),")"));case M.SelectorType.Attribute:{if(i.name==="id"&&i.action===M.AttributeAction.Equals&&i.ignoreCase==="quirks"&&!i.namespace)return"#".concat(Ee(i.value,at));if(i.name==="class"&&i.action===M.AttributeAction.Element&&i.ignoreCase==="quirks"&&!i.namespace)return".".concat(Ee(i.value,at));var r=Fn(i);return i.action===M.AttributeAction.Exists?"[".concat(r,"]"):"[".concat(r).concat(pa(i.action),'="').concat(Ee(i.value,da),'"').concat(i.ignoreCase===null?"":i.ignoreCase?" i":" s","]")}}}function pa(i){switch(i){case M.AttributeAction.Equals:return"";case M.AttributeAction.Element:return"~";case M.AttributeAction.Start:return"^";case M.AttributeAction.End:return"$";case M.AttributeAction.Any:return"*";case M.AttributeAction.Not:return"!";case M.AttributeAction.Hyphen:return"|";case M.AttributeAction.Exists:throw new Error("Shouldn't be here")}}function Fn(i){return"".concat(Mn(i.namespace)).concat(Ee(i.name,at))}function Mn(i){return i!==null?"".concat(i==="*"?"*":Ee(i,at),"|"):""}function Ee(i,t){for(var e=0,r="",n=0;n<i.length;n++)t.has(i.charCodeAt(n))&&(r+="".concat(i.slice(e,n),"\\").concat(i.charAt(n)),e=n+1);return r.length>0?r+i.slice(e):i}});var In=Le(ee=>{"use strict";var ga=ee&&ee.__createBinding||(Object.create?function(i,t,e,r){r===void 0&&(r=e);var n=Object.getOwnPropertyDescriptor(t,e);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(i,r,n)}:function(i,t,e,r){r===void 0&&(r=e),i[r]=t[e]}),ma=ee&&ee.__exportStar||function(i,t){for(var e in i)e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e)&&ga(t,i,e)};Object.defineProperty(ee,"__esModule",{value:!0});ee.stringify=ee.parse=ee.isTraversal=void 0;ma(hr(),ee);var qn=Rn();Object.defineProperty(ee,"isTraversal",{enumerable:!0,get:function(){return qn.isTraversal}});Object.defineProperty(ee,"parse",{enumerable:!0,get:function(){return qn.parse}});var va=_n();Object.defineProperty(ee,"stringify",{enumerable:!0,get:function(){return va.stringify}})});var ae=Le(k=>{"use strict";var gr,ya=k&&k.__classPrivateFieldSet||function(i,t,e,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?i!==t||!n:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(i,e):n?n.value=e:t.set(i,e),e},ba=k&&k.__classPrivateFieldGet||function(i,t,e,r){if(e==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?i!==t||!r:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?r:e==="a"?r.call(i):r?r.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 wa=In();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,wa.parse)(i).map(r=>r.reduce((n,a)=>{var s;return a.type==="tag"?document.createElement(a.name):(a.type==="attribute"&&a.name!=="class"&&n.setAttribute(a.name,(s=a.value)!==null&&s!==void 0?s:""),a.type==="attribute"&&a.name==="class"&&n.classList.add(a.value),n)},document.createElement("div")));return t.forEach(r=>{r instanceof xe&&(r=r.element()),e.append(r)}),e};k.hasClass=(i,t)=>i.classList.contains(t);k.off=(i,t,e,r={})=>i.removeEventListener(t,e,r);k.on=(i,t,e,r={})=>i.addEventListener(t,e,r);k.once=(i,t,e,r={})=>(0,k.on)(i,t,e,Object.assign(Object.assign({},typeof r=="boolean"?{capture:r}:r),{once:!0}));k.onEach=(i,t,e,r={})=>t.forEach(n=>(0,k.on)(i,n,e,r));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 xe=class{constructor(t){gr.set(this,void 0),ya(this,gr,t,"f")}static fromSelector(t,...e){return new xe((0,k.h)(t,...e))}static fromString(t){return new xe((0,k.s)(t))}addClass(...t){(0,k.addClass)(this.element(),...t)}append(...t){t.forEach(e=>{e instanceof xe&&(e=e.element()),this.element().append(e)})}element(){return ba(this,gr,"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,r={}){(0,k.on)(this.element(),t,e,r)}off(t,e,r={}){(0,k.off)(this.element(),t,e,r)}once(t,e,r={}){(0,k.once)(this.element(),t,e,r)}onEach(t,e,r={}){(0,k.onEach)(this.element(),t,e,r)}query(t){return this.element().querySelector(t)}queryAll(t){return this.element().querySelectorAll(t)}removeClass(...t){(0,k.removeClass)(this.element(),...t)}};k.Element=xe,gr=new WeakMap,k.default=xe});var Kt=Le((oo,Jn)=>{var Sr=Object.defineProperty,xa=Object.defineProperties,Sa=Object.getOwnPropertyDescriptor,Ca=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertyNames,zn=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,Bn=(i,t,e)=>t in i?Sr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,We=(i,t)=>{for(var e in t||={})Wn.call(t,e)&&Bn(i,e,t[e]);if(zn)for(var e of zn(t))Oa.call(t,e)&&Bn(i,e,t[e]);return i},Ht=(i,t)=>xa(i,Ca(t)),ka=(i,t)=>{for(var e in t)Sr(i,e,{get:t[e],enumerable:!0})},Aa=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Pa(t))!Wn.call(i,n)&&n!==e&&Sr(i,n,{get:()=>t[n],enumerable:!(r=Sa(t,n))||r.enumerable});return i},La=i=>Aa(Sr({},"__esModule",{value:!0}),i),Gn={};ka(Gn,{Melba:()=>Cr,default:()=>_a,error:()=>Na,info:()=>ja,success:()=>$a,toast:()=>Ut,warning:()=>Ma});Jn.exports=La(Gn);var Ta=class{#e={};on(i,t){i in this.#e||(this.#e[i]=[]),this.#e[i].push(t)}once(i,t){let e=(...r)=>{t(...r),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))}},Ra=Ta,Da=(()=>{try{return document.querySelector(":focus-within"),!0}catch{return!1}})(),Fa=Da,U=class extends Ra{constructor(i,{animation:t=U.defaults.animation,animationDuration:e=U.defaults.animationDuration,closeLabel:r=U.defaults.closeLabel,container:n=null,containerClass:a=U.defaults.containerClass,containerElement:s=U.defaults.containerElement,events:o={},hide:u=U.defaults.hide,root:m=U.defaults.root,toastClass:y=U.defaults.toastClass,toastElement:c=U.defaults.toastElement,toastHideClass:v=U.defaults.toastHideClass,toastShowClass:g=U.defaults.toastShowClass,type:S=U.defaults.type}){if(super(),!i)throw new TypeError("'content' cannot be empty.");if(this.animation=t,this.events=o,this.toastHideClass=v,this.toastShowClass=g,n||(n=this.getContainer({containerClass:a,containerElement:s,root:m})),this.container=n,u===!0&&(u=U.defaults.hideDelay),u!==!1&&u<100&&(u*=1e3),this.hideDelay=u,e<100&&(e*=1e3),this.build({closeLabel:r,content:i,toastClass:y,toastElement:c,type:S}),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:r,type:n}){this.element=document.createElement(r),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--${n}`),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=(Fa?":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(),r=()=>{a||(this.element.addEventListener("transitionend",()=>e()),a=!0)},n=()=>{this.show(),this.element.removeEventListener("transitionstart",()=>r()),this.element.removeEventListener("transitionend",()=>e()),this.element.removeEventListener("mouseover",()=>n()),this.element.addEventListener("mouseout",()=>this.hide())},a=!1;this.element.addEventListener("mouseover",()=>n()),this.element.addEventListener("transitionstart",()=>r());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 r=e.querySelector(`${t}.${i}`);if(r)return r;let n=document.createElement(t);return n.classList.add(i),e.appendChild(n),n}getElement(){return this.element}static settings(i){U.defaults=We(We({},U.defaults),i)}},Cr=U;Cr.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 Ut=(i,t={})=>new Cr(i,Ht(We({},t),{autoShow:!0})),Na=(i,t={})=>Ut(i,Ht(We({},t),{type:"error"})),ja=(i,t={})=>Ut(i,Ht(We({},t),{type:"info"})),$a=(i,t={})=>Ut(i,Ht(We({},t),{type:"success",hide:!0})),Ma=(i,t={})=>Ut(i,Ht(We({},t),{type:"warning"})),_a=Cr});var Li=Le((Ai,sn)=>{(function(i){typeof Ai=="object"&&typeof sn<"u"?sn.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,r){function n(o,u){if(!e[o]){if(!t[o]){var m=typeof At=="function"&&At;if(!u&&m)return m(o,!0);if(a)return a(o,!0);var y=new Error("Cannot find module '"+o+"'");throw y.code="MODULE_NOT_FOUND",y}var c=e[o]={exports:{}};t[o][0].call(c.exports,function(v){return n(t[o][1][v]||v)},c,c.exports,i,t,e,r)}return e[o].exports}for(var a=typeof At=="function"&&At,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(i,t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.create=e.visible=void 0;var r=function(s){var o=arguments.length>1&&arguments[1]!==void 0&&arguments[1],u=document.createElement("div");return u.innerHTML=s.trim(),o===!0?u.children:u.firstChild},n=function(s,o){var u=s.children;return u.length===1&&u[0].tagName===o},a=function(s){return(s=s||document.querySelector(".basicLightbox"))!=null&&s.ownerDocument.body.contains(s)===!0};e.visible=a,e.create=function(s,o){var u=function(c,v){var g=r(` <div class="basicLightbox `.concat(v.className,`"> <div class="basicLightbox__placeholder" role="dialog"></div> </div> `)),S=g.querySelector(".basicLightbox__placeholder");c.forEach(function(p){return S.appendChild(p)});var d=n(S,"IMG"),f=n(S,"VIDEO"),h=n(S,"IFRAME");return d===!0&&g.classList.add("basicLightbox--img"),f===!0&&g.classList.add("basicLightbox--video"),h===!0&&g.classList.add("basicLightbox--iframe"),g}(s=function(c){var v=typeof c=="string",g=c instanceof HTMLElement==1;if(v===!1&&g===!1)throw new Error("Content must be a DOM element/node or string");return v===!0?Array.from(r(c,!0)):c.tagName==="TEMPLATE"?[c.content.cloneNode(!0)]:Array.from(c.children)}(s),o=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if((c=Object.assign({},c)).closable==null&&(c.closable=!0),c.className==null&&(c.className=""),c.onShow==null&&(c.onShow=function(){}),c.onClose==null&&(c.onClose=function(){}),typeof c.closable!="boolean")throw new Error("Property `closable` must be a boolean");if(typeof c.className!="string")throw new Error("Property `className` must be a string");if(typeof c.onShow!="function")throw new Error("Property `onShow` must be a function");if(typeof c.onClose!="function")throw new Error("Property `onClose` must be a function");return c}(o)),m=function(c){return o.onClose(y)!==!1&&function(v,g){return v.classList.remove("basicLightbox--visible"),setTimeout(function(){return a(v)===!1||v.parentElement.removeChild(v),g()},410),!0}(u,function(){if(typeof c=="function")return c(y)})};o.closable===!0&&u.addEventListener("click",function(c){c.target===u&&m()});var y={element:function(){return u},visible:function(){return a(u)},show:function(c){return o.onShow(y)!==!1&&function(v,g){return document.body.appendChild(v),setTimeout(function(){requestAnimationFrame(function(){return v.classList.add("basicLightbox--visible"),g()})},10),!0}(u,function(){if(typeof c=="function")return c(y)})},close:m};return y}},{}]},{},[1])(1)})});var Ti=Le((wu,Nr)=>{var Ts=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,r={},n={manual:i.Prism&&i.Prism.manual,disableWorkerMessageHandler:i.Prism&&i.Prism.disableWorkerMessageHandler,util:{encode:function d(f){return f instanceof a?new a(f.type,d(f.content),f.alias):Array.isArray(f)?f.map(d):f.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(d){return Object.prototype.toString.call(d).slice(8,-1)},objId:function(d){return d.__id||Object.defineProperty(d,"__id",{value:++e}),d.__id},clone:function d(f,h){h=h||{};var p,b;switch(n.util.type(f)){case"Object":if(b=n.util.objId(f),h[b])return h[b];p={},h[b]=p;for(var w in f)f.hasOwnProperty(w)&&(p[w]=d(f[w],h));return p;case"Array":return b=n.util.objId(f),h[b]?h[b]:(p=[],h[b]=p,f.forEach(function(O,C){p[C]=d(O,h)}),p);default:return f}},getLanguage:function(d){for(;d;){var f=t.exec(d.className);if(f)return f[1].toLowerCase();d=d.parentElement}return"none"},setLanguage:function(d,f){d.className=d.className.replace(RegExp(t,"gi"),""),d.classList.add("language-"+f)},currentScript:function(){if(typeof document>"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 f=document.getElementsByTagName("script");for(var h in f)if(f[h].src==d)return f[h]}return null}},isActive:function(d,f,h){for(var p="no-"+f;d;){var b=d.classList;if(b.contains(f))return!0;if(b.contains(p))return!1;d=d.parentElement}return!!h}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(d,f){var h=n.util.clone(n.languages[d]);for(var p in f)h[p]=f[p];return h},insertBefore:function(d,f,h,p){p=p||n.languages;var b=p[d],w={};for(var O in b)if(b.hasOwnProperty(O)){if(O==f)for(var C in h)h.hasOwnProperty(C)&&(w[C]=h[C]);h.hasOwnProperty(O)||(w[O]=b[O])}var L=p[d];return p[d]=w,n.languages.DFS(n.languages,function(F,N){N===L&&F!=d&&(this[F]=w)}),w},DFS:function d(f,h,p,b){b=b||{};var w=n.util.objId;for(var O in f)if(f.hasOwnProperty(O)){h.call(f,O,f[O],p||O);var C=f[O],L=n.util.type(C);L==="Object"&&!b[w(C)]?(b[w(C)]=!0,d(C,h,null,b)):L==="Array"&&!b[w(C)]&&(b[w(C)]=!0,d(C,h,O,b))}}},plugins:{},highlightAll:function(d,f){n.highlightAllUnder(document,d,f)},highlightAllUnder:function(d,f,h){var p={callback:h,container:d,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};n.hooks.run("before-highlightall",p),p.elements=Array.prototype.slice.apply(p.container.querySelectorAll(p.selector)),n.hooks.run("before-all-elements-highlight",p);for(var b=0,w;w=p.elements[b++];)n.highlightElement(w,f===!0,p.callback)},highlightElement:function(d,f,h){var p=n.util.getLanguage(d),b=n.languages[p];n.util.setLanguage(d,p);var w=d.parentElement;w&&w.nodeName.toLowerCase()==="pre"&&n.util.setLanguage(w,p);var O=d.textContent,C={element:d,language:p,grammar:b,code:O};function L(N){C.highlightedCode=N,n.hooks.run("before-insert",C),C.element.innerHTML=C.highlightedCode,n.hooks.run("after-highlight",C),n.hooks.run("complete",C),h&&h.call(C.element)}if(n.hooks.run("before-sanity-check",C),w=C.element.parentElement,w&&w.nodeName.toLowerCase()==="pre"&&!w.hasAttribute("tabindex")&&w.setAttribute("tabindex","0"),!C.code){n.hooks.run("complete",C),h&&h.call(C.element);return}if(n.hooks.run("before-highlight",C),!C.grammar){L(n.util.encode(C.code));return}if(f&&i.Worker){var F=new Worker(n.filename);F.onmessage=function(N){L(N.data)},F.postMessage(JSON.stringify({language:C.language,code:C.code,immediateClose:!0}))}else L(n.highlight(C.code,C.grammar,C.language))},highlight:function(d,f,h){var p={code:d,grammar:f,language:h};if(n.hooks.run("before-tokenize",p),!p.grammar)throw new Error('The language "'+p.language+'" has no grammar.');return p.tokens=n.tokenize(p.code,p.grammar),n.hooks.run("after-tokenize",p),a.stringify(n.util.encode(p.tokens),p.language)},tokenize:function(d,f){var h=f.rest;if(h){for(var p in h)f[p]=h[p];delete f.rest}var b=new u;return m(b,b.head,d),o(d,b,f,b.head,0),c(b)},hooks:{all:{},add:function(d,f){var h=n.hooks.all;h[d]=h[d]||[],h[d].push(f)},run:function(d,f){var h=n.hooks.all[d];if(!(!h||!h.length))for(var p=0,b;b=h[p++];)b(f)}},Token:a};i.Prism=n;function a(d,f,h,p){this.type=d,this.content=f,this.alias=h,this.length=(p||"").length|0}a.stringify=function d(f,h){if(typeof f=="string")return f;if(Array.isArray(f)){var p="";return f.forEach(function(L){p+=d(L,h)}),p}var b={type:f.type,content:d(f.content,h),tag:"span",classes:["token",f.type],attributes:{},language:h},w=f.alias;w&&(Array.isArray(w)?Array.prototype.push.apply(b.classes,w):b.classes.push(w)),n.hooks.run("wrap",b);var O="";for(var C in b.attributes)O+=" "+C+'="'+(b.attributes[C]||"").replace(/"/g,"&quot;")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+O+">"+b.content+"</"+b.tag+">"};function s(d,f,h,p){d.lastIndex=f;var b=d.exec(h);if(b&&p&&b[1]){var w=b[1].length;b.index+=w,b[0]=b[0].slice(w)}return b}function o(d,f,h,p,b,w){for(var O in h)if(!(!h.hasOwnProperty(O)||!h[O])){var C=h[O];C=Array.isArray(C)?C:[C];for(var L=0;L<C.length;++L){if(w&&w.cause==O+","+L)return;var F=C[L],N=F.inside,ne=!!F.lookbehind,Pe=!!F.greedy,K=F.alias;if(Pe&&!F.pattern.global){var q=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,q+"g")}for(var j=F.pattern||F,$=p.next,V=b;$!==f.tail&&!(w&&V>=w.reach);V+=$.value.length,$=$.next){var ie=$.value;if(f.length>d.length)return;if(!(ie instanceof a)){var Ue=1,z;if(Pe){if(z=s(j,V,d,ne),!z||z.index>=d.length)break;var tt=z.index,_r=z.index+z[0].length,G=V;for(G+=$.value.length;tt>=G;)$=$.next,G+=$.value.length;if(G-=$.value.length,V=G,$.value instanceof a)continue;for(var Ke=$;Ke!==f.tail&&(G<_r||typeof Ke.value=="string");Ke=Ke.next)Ue++,G+=Ke.value.length;Ue--,ie=d.slice(V,G),z.index-=V}else if(z=s(j,0,ie,ne),!z)continue;var tt=z.index,ge=z[0],rt=ie.slice(0,tt),Oe=ie.slice(tt+ge.length),ke=V+ie.length;w&&ke>w.reach&&(w.reach=ke);var Ae=$.prev;rt&&(Ae=m(f,Ae,rt),V+=rt.length),y(f,Ae,Ue);var fr=new a(O,N?n.tokenize(ge,N):ge,K,ge);if($=m(f,Ae,fr),Oe&&m(f,$,Oe),Ue>1){var Ve={cause:O+","+L,reach:ke};o(d,f,h,$.prev,V,Ve),w&&Ve.reach>w.reach&&(w.reach=Ve.reach)}}}}}}function u(){var d={value:null,prev:null,next:null},f={value:null,prev:d,next:null};d.next=f,this.head=d,this.tail=f,this.length=0}function m(d,f,h){var p=f.next,b={value:h,prev:f,next:p};return f.next=b,p.prev=b,d.length++,b}function y(d,f,h){for(var p=f.next,b=0;b<h&&p!==d.tail;b++)p=p.next;f.next=p,p.prev=f,d.length-=b}function c(d){for(var f=[],h=d.head.next;h!==d.tail;)f.push(h.value),h=h.next;return f}if(!i.document)return i.addEventListener&&(n.disableWorkerMessageHandler||i.addEventListener("message",function(d){var f=JSON.parse(d.data),h=f.language,p=f.code,b=f.immediateClose;i.postMessage(n.highlight(p,n.languages[h],h)),b&&i.close()},!1)),n;var v=n.util.currentScript();v&&(n.filename=v.src,v.hasAttribute("data-manual")&&(n.manual=!0));function g(){n.manual||n.highlightAll()}if(!n.manual){var S=document.readyState;S==="loading"||S==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",g):window.requestAnimationFrame?window.requestAnimationFrame(g):window.setTimeout(g,16)}return n}(Ts);typeof Nr<"u"&&Nr.exports&&(Nr.exports=P);typeof global<"u"&&(global.Prism=P);P.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\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:/<!\[CDATA\[[\s\S]*?\]\]>/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"},/&#x?[\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(/&amp;/,"&"))});Object.defineProperty(P.languages.markup.tag,"addInlined",{value:function(t,e){var r={};r["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:P.languages[e]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+e]={pattern:/[\s\S]+/,inside:P.languages[e]};var a={};a[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:n},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(v,g){return"\u2716 Error "+v+" while fetching file: "+g},e="\u2716 Error: File does not exist or is empty",r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",a="loading",s="loaded",o="failed",u="pre[data-src]:not(["+n+'="'+s+'"]):not(['+n+'="'+a+'"])';function m(v,g,S){var d=new XMLHttpRequest;d.open("GET",v,!0),d.onreadystatechange=function(){d.readyState==4&&(d.status<400&&d.responseText?g(d.responseText):d.status>=400?S(t(d.status,d.statusText)):S(e))},d.send(null)}function y(v){var g=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(g){var S=Number(g[1]),d=g[2],f=g[3];return d?f?[S,Number(f)]:[S,void 0]:[S,S]}}P.hooks.add("before-highlightall",function(v){v.selector+=", "+u}),P.hooks.add("before-sanity-check",function(v){var g=v.element;if(g.matches(u)){v.code="",g.setAttribute(n,a);var S=g.appendChild(document.createElement("CODE"));S.textContent=i;var d=g.getAttribute("data-src"),f=v.language;if(f==="none"){var h=(/\.(\w+)$/.exec(d)||[,"none"])[1];f=r[h]||h}P.util.setLanguage(S,f),P.util.setLanguage(g,f);var p=P.plugins.autoloader;p&&p.loadLanguages(f),m(d,function(b){g.setAttribute(n,s);var w=y(g.getAttribute("data-range"));if(w){var O=b.split(/\r\n?|\n/g),C=w[0],L=w[1]==null?O.length:w[1];C<0&&(C+=O.length),C=Math.max(0,Math.min(C-1,O.length)),L<0&&(L+=O.length),L=Math.max(0,Math.min(L,O.length)),b=O.slice(C,L).join(` `),g.hasAttribute("data-start")||g.setAttribute("data-start",String(C+1))}S.textContent=b,P.highlightElement(S)},function(b){g.setAttribute(n,o),S.textContent=b})}}),P.plugins.fileHighlight={highlight:function(g){for(var S=(g||document).querySelectorAll(u),d=0,f;f=S[d++];)P.highlightElement(f)}};var c=!1;P.fileHighlight=function(){c||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),c=!0),P.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var mr=I(ae()),Tt=class extends mr.default{constructor(){let t="<main></main>";super((0,mr.s)(t))}};var Ur=(...i)=>Hn(i.map(Kr).filter(t=>t).join("/")),vr=i=>Hn(se(i)),Hn=i=>i.startsWith("/")?i:`/${i}`,Un=i=>{let t=Ur(i).split(/\//),e=t.pop();return[Ur(...t),e]},se=i=>i.endsWith("/")?i:`${i}/`,Kr=i=>i.replace(/^\/+|\/+$/g,""),H=Ur;var Vr=class{#e={};on(t,e){t in this.#e||(this.#e[t]=[]),this.#e[t].push(e)}once(t,e){let r=(...n)=>{e(...n),this.off(t,r)};this.on(t,r)}off(t,e){if(!(t in this.#e))return;let r=this.#e[t].indexOf(e);r!==-1&&this.#e[t].splice(r,1)}emit(t,...e){t in this.#e&&this.#e[t].forEach(r=>r(...e))}},Te=Vr;var Rt,Dt,ot,ut,lt,Re,Ft,Nt,jt,Se,ct,ft,$t,dt,De,Fe,zr=class extends Te{constructor({fullPath:e,collection:r=null,copy:n=!0,del:a=!0,directory:s=!1,mimeType:o="",modified:u,move:m=!0,placeholder:y=!1,rename:c=!0,size:v=0,title:g=""}){super();E(this,Rt,void 0);E(this,Dt,void 0);E(this,ot,void 0);E(this,ut,void 0);E(this,lt,void 0);E(this,Re,void 0);E(this,Ft,void 0);E(this,Nt,void 0);E(this,jt,void 0);E(this,Se,void 0);E(this,ct,void 0);E(this,ft,void 0);E(this,$t,void 0);E(this,dt,void 0);E(this,De,void 0);E(this,Fe,void 0);let[S,d]=this.getFilename(e),f=new Date;f.setTime(u),x(this,ct,S),x(this,Se,d),x(this,Rt,n),x(this,ot,s),x(this,Re,e),x(this,De,g),x(this,Nt,f),x(this,jt,m),x(this,dt,v),x(this,Ft,o),x(this,Dt,a),x(this,$t,c),x(this,ft,y),this.collection=r}createParentEntry(){return this.update({fullPath:se(this.path),title:"&larr;",copy:!1,del:!1,move:!1,rename:!1})}getFilename(e){return Un(e)}update(e={}){let r=new zr(X({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",r),r}get copy(){return l(this,Rt)}get del(){return l(this,Dt)}get directory(){return l(this,ot)}get displaySize(){return l(this,ot)?"":(l(this,ut)||x(this,ut,["bytes","KiB","MiB","GiB","TiB","PiB"].reduce((e,r)=>typeof e=="string"?e:e<1024?`${e.toFixed(2*(r==="bytes"?0:1))} ${r}`:e/1024,l(this,dt))),l(this,ut))}get extension(){return this.directory?"":(l(this,lt)||x(this,lt,this.name.split(".").pop()),l(this,lt))}get fullPath(){return l(this,Re)}get mimeType(){return l(this,Ft)}get modified(){return l(this,Nt)}get move(){return l(this,jt)}get name(){return l(this,Se)}set name(e){x(this,Se,encodeURIComponent(e)),x(this,De,null),x(this,Fe,null),x(this,Re,H(l(this,ct),l(this,Se))),this.directory&&x(this,Re,se(l(this,Re))),this.title,this.type,this.emit("updated")}get path(){return l(this,ct)}get placeholder(){return l(this,ft)}set placeholder(e){x(this,ft,e)}get rename(){return l(this,$t)}get size(){return l(this,dt)}get title(){return l(this,De)||x(this,De,decodeURIComponent(l(this,Se))),l(this,De)}get type(){if(!l(this,Fe)){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[r,n]of Object.entries(e))if(l(this,Se).match(n))return x(this,Fe,r);x(this,Fe,"unknown")}return l(this,Fe)}},Ce=zr;Rt=new WeakMap,Dt=new WeakMap,ot=new WeakMap,ut=new WeakMap,lt=new WeakMap,Re=new WeakMap,Ft=new WeakMap,Nt=new WeakMap,jt=new WeakMap,Se=new WeakMap,ct=new WeakMap,ft=new WeakMap,$t=new WeakMap,dt=new WeakMap,De=new WeakMap,Fe=new WeakMap;var _t,te,qt,It,yr,br,Mt=class extends Te{constructor(e,{sortDirectoriesFirst:r=!1}={}){super();E(this,_t,void 0);E(this,te,void 0);E(this,qt,void 0);E(this,It,()=>{l(this,te).sort((e,r)=>l(this,qt)&&l(this,br).call(this,e,r)||l(this,yr).call(this,e,r))});E(this,yr,(e,r)=>e.fullPath<r.fullPath?-1:1);E(this,br,(e,r)=>(r.directory?1:0)-(e.directory?1:0));x(this,qt,r),x(this,te,e.map(a=>new Ce(dr(X({},a),{collection:this}))));let n=l(this,te).shift();x(this,_t,H(n.fullPath)),n.fullPath!=="/"&&l(this,te).unshift(n.createParentEntry()),l(this,It).call(this)}add(e){e.collection=this,l(this,te).push(e),l(this,It).call(this),this.emit("updated")}filter(e){return l(this,te).filter(e)}forEach(e){l(this,te).forEach(e)}map(e){return l(this,te).map(e)}path(){return l(this,_t)}remove(e){x(this,te,l(this,te).filter(r=>r!==e)),this.emit("updated")}};_t=new WeakMap,te=new WeakMap,qt=new WeakMap,It=new WeakMap,yr=new WeakMap,br=new WeakMap;var Kn=(i,t)=>i.getElementsByTagName(t)[0],ht=(i,t)=>{let e=Kn(i,t);return e?e.textContent:""},pt,gt,wr,Br=class{constructor(t,e=new DOMParser){E(this,pt,void 0);E(this,gt,void 0);E(this,wr,void 0);x(this,wr,e),x(this,gt,e.parseFromString(t,"application/xml"))}collection({sortDirectoriesFirst:t=!1}={}){return l(this,pt)||x(this,pt,new Mt(this.responseToPrimitives(l(this,gt).getElementsByTagName("D:response")),{sortDirectoriesFirst:t})),l(this,pt)}responseToPrimitives(t=l(this,gt).getElementsByTagName("D:response")){return Array.from(t).map(e=>({directory:!!Kn(e,"D:collection"),fullPath:ht(e,"D:href"),modified:Date.parse(ht(e,"lp1:getlastmodified")||ht(e,"D:getlastmodified")),size:parseInt(ht(e,"lp1:getcontentlength")||ht(e,"D:getcontentlength"),10),mimeType:ht(e,"D:getcontenttype")}))}};pt=new WeakMap,gt=new WeakMap,wr=new WeakMap;var Er=Br;var ze,Be,Wr=class extends Error{constructor(e,r){super("Request failure");E(this,ze,void 0);E(this,Be,void 0);x(this,ze,e),x(this,Be,r)}request(){return l(this,ze)}response(){return l(this,Be)}method(){return l(this,ze).method}url(){return l(this,ze).url}statusText(){return l(this,Be).statusText}status(){return l(this,Be).status}};ze=new WeakMap,Be=new WeakMap;var xr=Wr;var Ea={PROPFIND:{headers:{Depth:"1"}}},Ne=(i,t,e)=>A(void 0,null,function*(){let r=new Request(t,dr(X(X({},Ea[i]||{}),e),{method:i})),n=yield fetch(r);if(!n.ok)throw new xr(r,n);return n}),Gr=class{GET(t,e={}){return Ne("GET",t,e)}HEAD(t,e={}){return Ne("HEAD",t,e)}PUT(t,e={}){return Ne("PUT",t,e)}PROPFIND(t,e={}){return Ne("PROPFIND",t,e)}DELETE(t,e={}){return Ne("DELETE",t,e)}MKCOL(t,e={}){return Ne("MKCOL",t,e)}COPY(t,e={}){return Ne("COPY",t,e)}MOVE(t,e={}){return Ne("MOVE",t,e)}},Vn=Gr;var vi=I(Kt());function fe(i){return fe=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},fe(i)}function J(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function Yn(i,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function Y(i,t,e){return t&&Yn(i.prototype,t),e&&Yn(i,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function de(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Vt(i,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vt(i,t)}function mt(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),t&&Vt(i,t)}function Ge(i,t){if(t&&(fe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return de(i)}function oe(i){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(i)}function ve(i,t,e){return t in i?Object.defineProperty(i,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[t]=e,i}function Jr(i){if(Array.isArray(i))return i}function Yr(i){if(typeof Symbol<"u"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Pr(i,t){(t==null||t>i.length)&&(t=i.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=i[e];return r}function Zr(i,t){if(!!i){if(typeof i=="string")return Pr(i,t);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Pr(i,t)}}function Qr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xr(i){return Jr(i)||Yr(i)||Zr(i)||Qr()}function Zn(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function Qn(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Zn(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Zn(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}var qa={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){console&&console[t]&&console[t].apply(console,e)}},Ia=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};J(this,i),this.init(t,e)}return Y(i,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=e||qa,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,r,n,a){return a&&!this.debug?null:(typeof e[0]=="string"&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[r](e))}},{key:"create",value:function(e){return new i(this.logger,Qn(Qn({},{prefix:"".concat(this.prefix,":").concat(e,":")}),this.options))}}]),i}(),be=new Ia,$e=function(){function i(){J(this,i),this.observers={}}return Y(i,[{key:"on",value:function(e,r){var n=this;return e.split(" ").forEach(function(a){n.observers[a]=n.observers[a]||[],n.observers[a].push(r)}),this}},{key:"off",value:function(e,r){if(!!this.observers[e]){if(!r){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(function(n){return n!==r})}}},{key:"emit",value:function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if(this.observers[e]){var s=[].concat(this.observers[e]);s.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach(function(u){u.apply(u,[e].concat(n))})}}}]),i}();function zt(){var i,t,e=new Promise(function(r,n){i=r,t=n});return e.resolve=i,e.reject=t,e}function Xn(i){return i==null?"":""+i}function Ha(i,t,e){i.forEach(function(r){t[r]&&(e[r]=t[r])})}function tn(i,t,e){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function n(){return!i||typeof i=="string"}for(var a=typeof t!="string"?[].concat(t):t.split(".");a.length>1;){if(n())return{};var s=r(a.shift());!i[s]&&e&&(i[s]=new e),Object.prototype.hasOwnProperty.call(i,s)?i=i[s]:i={}}return n()?{}:{obj:i,k:r(a.shift())}}function ei(i,t,e){var r=tn(i,t,Object),n=r.obj,a=r.k;n[a]=e}function Ua(i,t,e,r){var n=tn(i,t,Object),a=n.obj,s=n.k;a[s]=a[s]||[],r&&(a[s]=a[s].concat(e)),r||a[s].push(e)}function Ar(i,t){var e=tn(i,t),r=e.obj,n=e.k;if(!!r)return r[n]}function ti(i,t,e){var r=Ar(i,e);return r!==void 0?r:Ar(t,e)}function hi(i,t,e){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in i?typeof i[r]=="string"||i[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?e&&(i[r]=t[r]):hi(i[r],t[r],e):i[r]=t[r]);return i}function vt(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Ka={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Va(i){return typeof i=="string"?i.replace(/[&<>"'\/]/g,function(t){return Ka[t]}):i}var Tr=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,za=[" ",",","?","!",";"];function Ba(i,t,e){t=t||"",e=e||"";var r=za.filter(function(o){return t.indexOf(o)<0&&e.indexOf(o)<0});if(r.length===0)return!0;var n=new RegExp("(".concat(r.map(function(o){return o==="?"?"\\?":o}).join("|"),")")),a=!n.test(i);if(!a){var s=i.indexOf(e);s>0&&!n.test(i.substring(0,s))&&(a=!0)}return a}function ri(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function Or(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ri(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):ri(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}function Wa(i){var t=Ga();return function(){var r=oe(i),n;if(t){var a=oe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ge(this,n)}}function Ga(){if(typeof Reflect>"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 pi(i,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!!i){if(i[t])return i[t];for(var r=t.split(e),n=i,a=0;a<r.length;++a){if(!n||typeof n[r[a]]=="string"&&a+1<r.length)return;if(n[r[a]]===void 0){for(var s=2,o=r.slice(a,a+s).join(e),u=n[o];u===void 0&&r.length>a+s;)s++,o=r.slice(a,a+s).join(e),u=n[o];if(u===void 0)return;if(u===null)return null;if(t.endsWith(o)){if(typeof u=="string")return u;if(o&&typeof u[o]=="string")return u[o]}var m=r.slice(a+s).join(e);return m?pi(u,m,e):void 0}n=n[r[a]]}return n}}var Ja=function(i){mt(e,i);var t=Wa(e);function e(r){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return J(this,e),n=t.call(this),Tr&&$e.call(de(n)),n.data=r||{},n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return Y(e,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var a=this.options.ns.indexOf(n);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(n,a,s){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,m=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,y=[n,a];s&&typeof s!="string"&&(y=y.concat(s)),s&&typeof s=="string"&&(y=y.concat(u?s.split(u):s)),n.indexOf(".")>-1&&(y=n.split("."));var c=Ar(this.data,y);return c||!m||typeof s!="string"?c:pi(this.data&&this.data[n]&&this.data[n][a],s,u)}},{key:"addResource",value:function(n,a,s,o){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},m=this.options.keySeparator;m===void 0&&(m=".");var y=[n,a];s&&(y=y.concat(m?s.split(m):s)),n.indexOf(".")>-1&&(y=n.split("."),o=a,a=y[1]),this.addNamespaces(a),ei(this.data,y,o),u.silent||this.emit("added",n,a,s,o)}},{key:"addResources",value:function(n,a,s){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in s)(typeof s[u]=="string"||Object.prototype.toString.apply(s[u])==="[object Array]")&&this.addResource(n,a,u,s[u],{silent:!0});o.silent||this.emit("added",n,a,s)}},{key:"addResourceBundle",value:function(n,a,s,o,u){var m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},y=[n,a];n.indexOf(".")>-1&&(y=n.split("."),o=s,s=a,a=y[1]),this.addNamespaces(a);var c=Ar(this.data,y)||{};o?hi(c,s,u):c=Or(Or({},c),s),ei(this.data,y,c),m.silent||this.emit("added",n,a,s)}},{key:"removeResourceBundle",value:function(n,a){this.hasResourceBundle(n,a)&&delete this.data[n][a],this.removeNamespaces(a),this.emit("removed",n,a)}},{key:"hasResourceBundle",value:function(n,a){return this.getResource(n,a)!==void 0}},{key:"getResourceBundle",value:function(n,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Or(Or({},{}),this.getResource(n,a)):this.getResource(n,a)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"hasLanguageSomeTranslations",value:function(n){var a=this.getDataByLanguage(n),s=a&&Object.keys(a)||[];return!!s.find(function(o){return a[o]&&Object.keys(a[o]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),e}($e),gi={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,r,n,a){var s=this;return t.forEach(function(o){s.processors[o]&&(e=s.processors[o].process(e,r,n,a))}),e}};function ni(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function B(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ni(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):ni(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}function Ya(i){var t=Za();return function(){var r=oe(i),n;if(t){var a=oe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ge(this,n)}}function Za(){if(typeof Reflect>"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 ii={},ai=function(i){mt(e,i);var t=Ya(e);function e(r){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return J(this,e),n=t.call(this),Tr&&$e.call(de(n)),Ha(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,de(n)),n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=be.create("translator"),n}return Y(e,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(n==null)return!1;var s=this.resolve(n,a);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(n,a){var s=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ns||this.options.defaultNS||[],m=s&&n.indexOf(s)>-1,y=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!Ba(n,s,o);if(m&&!y){var c=n.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:n,namespaces:u};var v=n.split(s);(s!==o||s===o&&this.options.ns.indexOf(v[0])>-1)&&(u=v.shift()),n=v.join(o)}return typeof u=="string"&&(u=[u]),{key:n,namespaces:u}}},{key:"translate",value:function(n,a,s){var o=this;if(fe(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var u=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,m=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,y=this.extractFromKey(n[n.length-1],a),c=y.key,v=y.namespaces,g=v[v.length-1],S=a.lng||this.language,d=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S&&S.toLowerCase()==="cimode"){if(d){var f=a.nsSeparator||this.options.nsSeparator;return u?(h.res="".concat(g).concat(f).concat(c),h):"".concat(g).concat(f).concat(c)}return u?(h.res=c,h):c}var h=this.resolve(n,a),p=h&&h.res,b=h&&h.usedKey||c,w=h&&h.exactUsedKey||c,O=Object.prototype.toString.apply(p),C=["[object Number]","[object Function]","[object RegExp]"],L=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,N=typeof p!="string"&&typeof p!="boolean"&&typeof p!="number";if(F&&p&&N&&C.indexOf(O)<0&&!(typeof L=="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 ne=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,p,B(B({},a),{},{ns:v})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return u?(h.res=ne,h):ne}if(m){var Pe=O==="[object Array]",K=Pe?[]:{},q=Pe?w:b;for(var j in p)if(Object.prototype.hasOwnProperty.call(p,j)){var $="".concat(q).concat(m).concat(j);K[j]=this.translate($,B(B({},a),{joinArrays:!1,ns:v})),K[j]===$&&(K[j]=p[j])}p=K}}else if(F&&typeof L=="string"&&O==="[object Array]")p=p.join(L),p&&(p=this.extendTranslation(p,n,a,s));else{var V=!1,ie=!1,Ue=a.count!==void 0&&typeof a.count!="string",z=e.hasDefaultValue(a),_r=Ue?this.pluralResolver.getSuffix(S,a.count,a):"",G=a["defaultValue".concat(_r)]||a.defaultValue;!this.isValidLookup(p)&&z&&(V=!0,p=G),this.isValidLookup(p)||(ie=!0,p=c);var Ke=a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,tt=Ke&&ie?void 0:p,ge=z&&G!==p&&this.options.updateMissing;if(ie||V||ge){if(this.logger.log(ge?"updateKey":"missingKey",S,g,c,ge?G:p),m){var rt=this.resolve(c,B(B({},a),{},{keySeparator:!1}));rt&&rt.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 Oe=[],ke=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ke&&ke[0])for(var Ae=0;Ae<ke.length;Ae++)Oe.push(ke[Ae]);else this.options.saveMissingTo==="all"?Oe=this.languageUtils.toResolveHierarchy(a.lng||this.language):Oe.push(a.lng||this.language);var fr=function(nt,qr,En){var xn=z&&En!==p?En:tt;o.options.missingKeyHandler?o.options.missingKeyHandler(nt,g,qr,xn,ge,a):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(nt,g,qr,xn,ge,a),o.emit("missingKey",nt,g,qr,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ue?Oe.forEach(function(Ve){o.pluralResolver.getSuffixes(Ve,a).forEach(function(nt){fr([Ve],c+nt,a["defaultValue".concat(nt)]||G)})}):fr(Oe,c,G))}p=this.extendTranslation(p,n,a,h,s),ie&&p===c&&this.options.appendNamespaceToMissingKey&&(p="".concat(g,":").concat(c)),(ie||V)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(g,":").concat(c):c,V?p:void 0):p=this.options.parseMissingKeyHandler(p))}return u?(h.res=p,h):p}},{key:"extendTranslation",value:function(n,a,s,o,u){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,B(B({},this.options.interpolation.defaultVariables),s),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(B(B({},s),{interpolation:B(B({},this.options.interpolation),s.interpolation)}));var y=typeof n=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),c;if(y){var v=n.match(this.interpolator.nestingRegexp);c=v&&v.length}var g=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(g=B(B({},this.options.interpolation.defaultVariables),g)),n=this.interpolator.interpolate(n,g,s.lng||this.language,s),y){var S=n.match(this.interpolator.nestingRegexp),d=S&&S.length;c<d&&(s.nest=!1)}s.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var p=arguments.length,b=new Array(p),w=0;w<p;w++)b[w]=arguments[w];return u&&u[0]===b[0]&&!s.context?(m.logger.warn("It seems you are nesting recursively key: ".concat(b[0]," in key: ").concat(a[0])),null):m.translate.apply(m,b.concat([a]))},s)),s.interpolation&&this.interpolator.reset()}var f=s.postProcess||this.options.postProcess,h=typeof f=="string"?[f]:f;return n!=null&&h&&h.length&&s.applyPostProcessor!==!1&&(n=gi.handle(h,n,a,this.options&&this.options.postProcessPassResolved?B({i18nResolved:o},s):s,this)),n}},{key:"resolve",value:function(n){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,u,m,y,c;return typeof n=="string"&&(n=[n]),n.forEach(function(v){if(!a.isValidLookup(o)){var g=a.extractFromKey(v,s),S=g.key;u=S;var d=g.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var f=s.count!==void 0&&typeof s.count!="string",h=f&&!s.ordinal&&s.count===0&&a.pluralResolver.shouldUseIntlApi(),p=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",b=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);d.forEach(function(w){a.isValidLookup(o)||(c=w,!ii["".concat(b[0],"-").concat(w)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(c)&&(ii["".concat(b[0],"-").concat(w)]=!0,a.logger.warn('key "'.concat(u,'" for languages "').concat(b.join(", "),`" won't get resolved as namespace "`).concat(c,'" 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(o)){y=O;var C=[S];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(C,S,O,w,s);else{var L;f&&(L=a.pluralResolver.getSuffix(O,s.count,s));var F="".concat(a.options.pluralSeparator,"zero");if(f&&(C.push(S+L),h&&C.push(S+F)),p){var N="".concat(S).concat(a.options.contextSeparator).concat(s.context);C.push(N),f&&(C.push(N+L),h&&C.push(N+F))}}for(var ne;ne=C.pop();)a.isValidLookup(o)||(m=ne,o=a.getResource(O,w,ne,s))}}))})}}),{res:o,usedKey:u,exactUsedKey:m,usedLng:y,usedNS:c}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,a,s){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,a,s,o):this.resourceStore.getResource(n,a,s,o)}}],[{key:"hasDefaultValue",value:function(n){var a="defaultValue";for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&a===s.substring(0,a.length)&&n[s]!==void 0)return!0;return!1}}]),e}($e);function en(i){return i.charAt(0).toUpperCase()+i.slice(1)}var Qa=function(){function i(t){J(this,i),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=be.create("languageUtils")}return Y(i,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var r=e.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var r=e.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(e){if(typeof e=="string"&&e.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(a){return a.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=en(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=en(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=en(n[2].toLowerCase()))),n.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 r=this;if(!e)return null;var n;return e.forEach(function(a){if(!n){var s=r.formatLanguageCode(a);(!r.options.supportedLngs||r.isSupportedCode(s))&&(n=s)}}),!n&&this.options.supportedLngs&&e.forEach(function(a){if(!n){var s=r.getLanguagePartFromCode(a);if(r.isSupportedCode(s))return n=s;n=r.options.supportedLngs.find(function(o){if(o.indexOf(s)===0)return o})}}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}},{key:"getFallbackCodes",value:function(e,r){if(!e)return[];if(typeof e=="function"&&(e=e(r)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!r)return e.default||[];var n=e[r];return n||(n=e[this.getScriptPartFromCode(r)]),n||(n=e[this.formatLanguageCode(r)]),n||(n=e[this.getLanguagePartFromCode(r)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,r){var n=this,a=this.getFallbackCodes(r||this.options.fallbackLng||[],e),s=[],o=function(m){!m||(n.isSupportedCode(m)?s.push(m):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(m)))};return typeof e=="string"&&e.indexOf("-")>-1?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):typeof e=="string"&&o(this.formatLanguageCode(e)),a.forEach(function(u){s.indexOf(u)<0&&o(n.formatLanguageCode(u))}),s}}]),i}(),Xa=[{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}],es={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)}},ts=["v1","v2","v3"],si={zero:0,one:1,two:2,few:3,many:4,other:5};function rs(){var i={};return Xa.forEach(function(t){t.lngs.forEach(function(e){i[e]={numbers:t.nr,plurals:es[t.fc]}})}),i}var ns=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};J(this,i),this.languageUtils=t,this.options=e,this.logger=be.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=rs()}return Y(i,[{key:"addRule",value:function(e,r){this.rules[e]=r}},{key:"getRule",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(function(a){return"".concat(r).concat(a)})}},{key:"getSuffixes",value:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.getRule(e,n);return a?this.shouldUseIntlApi()?a.resolvedOptions().pluralCategories.sort(function(s,o){return si[s]-si[o]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):a.numbers.map(function(s){return r.getSuffix(e,s,n)}):[]}},{key:"getSuffix",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.getRule(e,n);return a?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(a.select(r)):this.getSuffixRetroCompatible(a,r):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,r){var n=this,a=e.noAbs?e.plurals(r):e.plurals(Math.abs(r)),s=e.numbers[a];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var o=function(){return n.options.prepend&&s.toString()?n.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?o():this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString()}},{key:"shouldUseIntlApi",value:function(){return!ts.includes(this.options.compatibilityJSON)}}]),i}();function oi(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function he(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?oi(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):oi(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}var is=function(){function i(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};J(this,i),this.logger=be.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Y(i,[{key:"init",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var r=e.interpolation;this.escape=r.escape!==void 0?r.escape:Va,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?vt(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?vt(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?vt(r.nestingPrefix):r.nestingPrefixEscaped||vt("$t("),this.nestingSuffix=r.nestingSuffix?vt(r.nestingSuffix):r.nestingSuffixEscaped||vt(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.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 r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,r,n,a){var s=this,o,u,m,y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(f){return f.replace(/\$/g,"$$$$")}var v=function(h){if(h.indexOf(s.formatSeparator)<0){var p=ti(r,y,h);return s.alwaysFormat?s.format(p,void 0,n,he(he(he({},a),r),{},{interpolationkey:h})):p}var b=h.split(s.formatSeparator),w=b.shift().trim(),O=b.join(s.formatSeparator).trim();return s.format(ti(r,y,w),O,n,he(he(he({},a),r),{},{interpolationkey:w}))};this.resetRegExp();var g=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,S=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,d=[{regex:this.regexpUnescape,safeValue:function(h){return c(h)}},{regex:this.regexp,safeValue:function(h){return s.escapeValue?c(s.escape(h)):c(h)}}];return d.forEach(function(f){for(m=0;o=f.regex.exec(e);){var h=o[1].trim();if(u=v(h),u===void 0)if(typeof g=="function"){var p=g(e,o,a);u=typeof p=="string"?p:""}else if(a&&a.hasOwnProperty(h))u="";else if(S){u=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(e)),u="";else typeof u!="string"&&!s.useRawValueToEscape&&(u=Xn(u));var b=f.safeValue(u);if(e=e.replace(o[0],b),S?(f.regex.lastIndex+=u.length,f.regex.lastIndex-=o[0].length):f.regex.lastIndex=0,m++,m>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,r){var n=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,o,u=he({},a);u.applyPostProcessor=!1,delete u.defaultValue;function m(g,S){var d=this.nestingOptionsSeparator;if(g.indexOf(d)<0)return g;var f=g.split(new RegExp("".concat(d,"[ ]*{"))),h="{".concat(f[1]);g=f[0],h=this.interpolate(h,u),h=h.replace(/'/g,'"');try{u=JSON.parse(h),S&&(u=he(he({},S),u))}catch(p){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),p),"".concat(g).concat(d).concat(h)}return delete u.defaultValue,g}for(;s=this.nestingRegexp.exec(e);){var y=[],c=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var v=s[1].split(this.formatSeparator).map(function(g){return g.trim()});s[1]=v.shift(),y=v,c=!0}if(o=r(m.call(this,s[1].trim(),u),u),o&&s[0]===e&&typeof o!="string")return o;typeof o!="string"&&(o=Xn(o)),o||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(e)),o=""),c&&(o=y.reduce(function(g,S){return n.format(g,S,a.lng,he(he({},a),{},{interpolationkey:s[1].trim()}))},o.trim())),e=e.replace(s[0],o),this.regexp.lastIndex=0}return e}}]),i}();function ui(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function je(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ui(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):ui(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}function as(i){var t=i.toLowerCase().trim(),e={};if(i.indexOf("(")>-1){var r=i.split("(");t=r[0].toLowerCase().trim();var n=r[1].substring(0,r[1].length-1);if(t==="currency"&&n.indexOf(":")<0)e.currency||(e.currency=n.trim());else if(t==="relativetime"&&n.indexOf(":")<0)e.range||(e.range=n.trim());else{var a=n.split(";");a.forEach(function(s){if(!!s){var o=s.split(":"),u=Xr(o),m=u[0],y=u.slice(1),c=y.join(":").trim().replace(/^'+|'+$/g,"");e[m.trim()]||(e[m.trim()]=c),c==="false"&&(e[m.trim()]=!1),c==="true"&&(e[m.trim()]=!0),isNaN(c)||(e[m.trim()]=parseInt(c,10))}})}}return{formatName:t,formatOptions:e}}var ss=function(){function i(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};J(this,i),this.logger=be.create("formatter"),this.options=t,this.formats={number:function(r,n,a){return new Intl.NumberFormat(n,a).format(r)},currency:function(r,n,a){return new Intl.NumberFormat(n,je(je({},a),{},{style:"currency"})).format(r)},datetime:function(r,n,a){return new Intl.DateTimeFormat(n,je({},a)).format(r)},relativetime:function(r,n,a){return new Intl.RelativeTimeFormat(n,je({},a)).format(r,a.range||"day")},list:function(r,n,a){return new Intl.ListFormat(n,je({},a)).format(r)}},this.init(t)}return Y(i,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},n=r.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,r){this.formats[e.toLowerCase().trim()]=r}},{key:"format",value:function(e,r,n,a){var s=this,o=r.split(this.formatSeparator),u=o.reduce(function(m,y){var c=as(y),v=c.formatName,g=c.formatOptions;if(s.formats[v]){var S=m;try{var d=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},f=d.locale||d.lng||a.locale||a.lng||n;S=s.formats[v](m,f,je(je(je({},g),a),d))}catch(h){s.logger.warn(h)}return S}else s.logger.warn("there was no format function for ".concat(v));return m},e);return u}}]),i}();function li(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function ci(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?li(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):li(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}function os(i){var t=us();return function(){var r=oe(i),n;if(t){var a=oe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ge(this,n)}}function us(){if(typeof Reflect>"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 ls(i,t){i.pending[t]!==void 0&&(delete i.pending[t],i.pendingCount--)}var cs=function(i){mt(e,i);var t=os(e);function e(r,n,a){var s,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return J(this,e),s=t.call(this),Tr&&$e.call(de(s)),s.backend=r,s.store=n,s.services=a,s.languageUtils=a.languageUtils,s.options=o,s.logger=be.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=o.maxParallelReads||10,s.readingCalls=0,s.maxRetries=o.maxRetries>=0?o.maxRetries:5,s.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(a,o.backend,o),s}return Y(e,[{key:"queueLoad",value:function(n,a,s,o){var u=this,m={},y={},c={},v={};return n.forEach(function(g){var S=!0;a.forEach(function(d){var f="".concat(g,"|").concat(d);!s.reload&&u.store.hasResourceBundle(g,d)?u.state[f]=2:u.state[f]<0||(u.state[f]===1?y[f]===void 0&&(y[f]=!0):(u.state[f]=1,S=!1,y[f]===void 0&&(y[f]=!0),m[f]===void 0&&(m[f]=!0),v[d]===void 0&&(v[d]=!0)))}),S||(c[g]=!0)}),(Object.keys(m).length||Object.keys(y).length)&&this.queue.push({pending:y,pendingCount:Object.keys(y).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(m),pending:Object.keys(y),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(v)}}},{key:"loaded",value:function(n,a,s){var o=n.split("|"),u=o[0],m=o[1];a&&this.emit("failedLoading",u,m,a),s&&this.store.addResourceBundle(u,m,s),this.state[n]=a?-1:2;var y={};this.queue.forEach(function(c){Ua(c.loaded,[u],m),ls(c,n),a&&c.errors.push(a),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(function(v){y[v]||(y[v]={});var g=c.loaded[v];g.length&&g.forEach(function(S){y[v][S]===void 0&&(y[v][S]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(function(c){return!c.done})}},{key:"read",value:function(n,a,s){var o=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,m=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,y=arguments.length>5?arguments[5]:void 0;if(!n.length)return y(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:a,fcName:s,tried:u,wait:m,callback:y});return}return this.readingCalls++,this.backend[s](n,a,function(c,v){if(o.readingCalls--,o.waitingReads.length>0){var g=o.waitingReads.shift();o.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(c&&v&&u<o.maxRetries){setTimeout(function(){o.read.call(o,n,a,s,u+1,m*2,y)},m);return}y(c,v)})}},{key:"prepareLoading",value:function(n,a){var s=this,o=arguments.length>2&&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 n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof a=="string"&&(a=[a]);var m=this.queueLoad(n,a,o,u);if(!m.toLoad.length)return m.pending.length||u(),null;m.toLoad.forEach(function(y){s.loadOne(y)})}},{key:"load",value:function(n,a,s){this.prepareLoading(n,a,{},s)}},{key:"reload",value:function(n,a,s){this.prepareLoading(n,a,{reload:!0},s)}},{key:"loadOne",value:function(n){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),u=o[0],m=o[1];this.read(u,m,"read",void 0,void 0,function(y,c){y&&a.logger.warn("".concat(s,"loading namespace ").concat(m," for language ").concat(u," failed"),y),!y&&c&&a.logger.log("".concat(s,"loaded namespace ").concat(m," for language ").concat(u),c),a.loaded(n,y,c)})}},{key:"saveMissing",value:function(n,a,s,o,u){var m=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(s,'" 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}s==null||s===""||(this.backend&&this.backend.create&&this.backend.create(n,a,s,o,null,ci(ci({},m),{},{isUpdate:u})),!(!n||!n[0])&&this.store.addResource(n[0],a,s,o))}}]),e}($e);function fs(){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(fe(t[1])==="object"&&(e=t[1]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(e.tDescription=t[2]),fe(t[2])==="object"||fe(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(n){e[n]=r[n]})}return e},interpolation:{escapeValue:!0,format:function(t,e,r,n){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function fi(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 di(i,t){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(i);t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable})),e.push.apply(e,r)}return e}function ye(i){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?di(Object(e),!0).forEach(function(r){ve(i,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):di(Object(e)).forEach(function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(e,r))})}return i}function ds(i){var t=hs();return function(){var r=oe(i),n;if(t){var a=oe(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Ge(this,n)}}function hs(){if(typeof Reflect>"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 kr(){}function ps(i){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(i));t.forEach(function(e){typeof i[e]=="function"&&(i[e]=i[e].bind(i))})}var Lr=function(i){mt(e,i);var t=ds(e);function e(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(J(this,e),r=t.call(this),Tr&&$e.call(de(r)),r.options=fi(n),r.services={},r.logger=be,r.modules={external:[]},ps(de(r)),a&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,a),Ge(r,de(r));setTimeout(function(){r.init(n,a)},0)}return r}return Y(e,[{key:"init",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(s=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 o=fs();this.options=ye(ye(ye({},o),this.options),fi(a)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ye(ye({},o.interpolation),this.options.interpolation)),a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);function u(h){return h?typeof h=="function"?new h:h:null}if(!this.options.isClone){this.modules.logger?be.init(u(this.modules.logger),this.options):be.init(null,this.options);var m;this.modules.formatter?m=this.modules.formatter:typeof Intl<"u"&&(m=ss);var y=new Qa(this.options);this.store=new Ja(this.options.resources,this.options);var c=this.services;c.logger=be,c.resourceStore=this.store,c.languageUtils=y,c.pluralResolver=new ns(y,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),m&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(c.formatter=u(m),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new is(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new cs(u(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(h){for(var p=arguments.length,b=new Array(p>1?p-1:0),w=1;w<p;w++)b[w-1]=arguments[w];n.emit.apply(n,[h].concat(b))}),this.modules.languageDetector&&(c.languageDetector=u(this.modules.languageDetector),c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=u(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ai(this.services,this.options),this.translator.on("*",function(h){for(var p=arguments.length,b=new Array(p>1?p-1:0),w=1;w<p;w++)b[w-1]=arguments[w];n.emit.apply(n,[h].concat(b))}),this.modules.external.forEach(function(h){h.init&&h.init(n)})}if(this.format=this.options.interpolation.format,s||(s=kr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>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 g=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];g.forEach(function(h){n[h]=function(){var p;return(p=n.store)[h].apply(p,arguments)}});var S=["addResource","addResources","addResourceBundle","removeResourceBundle"];S.forEach(function(h){n[h]=function(){var p;return(p=n.store)[h].apply(p,arguments),n}});var d=zt(),f=function(){var p=function(w,O){n.isInitialized&&!n.initializedStoreOnce&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),d.resolve(O),s(w,O)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return p(null,n.t.bind(n));n.changeLanguage(n.options.lng,p)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),d}},{key:"loadResources",value:function(n){var a=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr,o=s,u=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return o();var m=[],y=function(g){if(!!g){var S=a.services.languageUtils.toResolveHierarchy(g);S.forEach(function(d){m.indexOf(d)<0&&m.push(d)})}};if(u)y(u);else{var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.forEach(function(v){return y(v)})}this.options.preload&&this.options.preload.forEach(function(v){return y(v)}),this.services.backendConnector.load(m,this.options.ns,function(v){!v&&!a.resolvedLanguage&&a.language&&a.setResolvedLanguage(a.language),o(v)})}else o(null)}},{key:"reloadResources",value:function(n,a,s){var o=zt();return n||(n=this.languages),a||(a=this.options.ns),s||(s=kr),this.services.backendConnector.reload(n,a,function(u){o.resolve(),s(u)}),o}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&gi.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"setResolvedLanguage",value:function(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1))for(var a=0;a<this.languages.length;a++){var s=this.languages[a];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(n,a){var s=this;this.isLanguageChangingTo=n;var o=zt();this.emit("languageChanging",n);var u=function(v){s.language=v,s.languages=s.services.languageUtils.toResolveHierarchy(v),s.resolvedLanguage=void 0,s.setResolvedLanguage(v)},m=function(v,g){g?(u(g),s.translator.changeLanguage(g),s.isLanguageChangingTo=void 0,s.emit("languageChanged",g),s.logger.log("languageChanged",g)):s.isLanguageChangingTo=void 0,o.resolve(function(){return s.t.apply(s,arguments)}),a&&a(v,function(){return s.t.apply(s,arguments)})},y=function(v){!n&&!v&&s.services.languageDetector&&(v=[]);var g=typeof v=="string"?v:s.services.languageUtils.getBestMatchFromCodes(v);g&&(s.language||u(g),s.translator.language||s.translator.changeLanguage(g),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage(g)),s.loadResources(g,function(S){m(S,g)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?y(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(y):y(n),o}},{key:"getFixedT",value:function(n,a,s){var o=this,u=function m(y,c){var v;if(fe(c)!=="object"){for(var g=arguments.length,S=new Array(g>2?g-2:0),d=2;d<g;d++)S[d-2]=arguments[d];v=o.options.overloadTranslationOptionHandler([y,c].concat(S))}else v=ye({},c);v.lng=v.lng||m.lng,v.lngs=v.lngs||m.lngs,v.ns=v.ns||m.ns,v.keyPrefix=v.keyPrefix||s||m.keyPrefix;var f=o.options.keySeparator||".",h=v.keyPrefix?"".concat(v.keyPrefix).concat(f).concat(y):y;return o.t(h,v)};return typeof n=="string"?u.lng=n:u.lngs=n,u.ns=a,u.keyPrefix=s,u}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var a=this,s=arguments.length>1&&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 o=this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,m=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var y=function(g,S){var d=a.services.backendConnector.state["".concat(g,"|").concat(S)];return d===-1||d===2};if(s.precheck){var c=s.precheck(this,y);if(c!==void 0)return c}return!!(this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||y(o,n)&&(!u||y(m,n)))}},{key:"loadNamespaces",value:function(n,a){var s=this,o=zt();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(u){s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),this.loadResources(function(u){o.resolve(),a&&a(u)}),o):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(n,a){var s=zt();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],u=n.filter(function(m){return o.indexOf(m)<0});return u.length?(this.options.preload=o.concat(u),this.loadResources(function(m){s.resolve(),a&&a(m)}),s):(a&&a(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!n)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(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kr,o=ye(ye(ye({},this.options),a),{isClone:!0}),u=new e(o),m=["store","services","language"];return m.forEach(function(y){u[y]=n[y]}),u.services=ye({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new ai(u.services,u.options),u.translator.on("*",function(y){for(var c=arguments.length,v=new Array(c>1?c-1:0),g=1;g<c;g++)v[g-1]=arguments[g];u.emit.apply(u,[y].concat(v))}),u.init(o,s),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),e}($e);ve(Lr,"createInstance",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Lr(i,t)});var Z=Lr.createInstance();Z.createInstance=Lr.createInstance;var Ko=Z.createInstance,Vo=Z.init,zo=Z.loadResources,Bo=Z.reloadResources,mi=Z.use,Wo=Z.changeLanguage,Go=Z.getFixedT,T=Z.t,Jo=Z.exists,Yo=Z.setDefaultNamespace,Zo=Z.hasLoadedNamespace,Qo=Z.loadNamespaces,Xo=Z.loadLanguages;var gs=()=>{let i=new Map;return i.set("GET",new Map),i.set("PROPFIND",new Map),i},Bt,Me,ue,Wt,Rr,Gt,yt,Jt,pe,Yt,rn=class{constructor({bypassCheck:t,sortDirectoriesFirst:e},r=gs(),n=new Vn){E(this,Bt,void 0);E(this,Me,void 0);E(this,ue,void 0);E(this,Wt,void 0);E(this,Rr,(t,e)=>{let r=l(this,Me).get(t);r.has(e)&&r.delete(e)});E(this,Gt,(t,e)=>{let r=l(this,Me).get(t);return r.has(e)?r.get(e):null});E(this,yt,(t,e)=>l(this,Me).get(t).has(e));E(this,Jt,(t,e,r)=>{l(this,Me).get(t).set(e,r)});E(this,pe,(t,e=!1)=>A(this,null,function*(){try{return yield t()}catch(r){if(!(r instanceof xr))throw r;return e||(0,vi.error)(T("failure",{interpolation:{escapeValue:!1},method:r.method(),url:r.url(),statusText:r.statusText(),status:r.status()})),r.response()}}));E(this,Yt,t=>{let e=`${location.protocol}//${location.hostname}${location.port?`:${location.port}`:""}`,r=new RegExp(`^${e}`);if(!t.match(r)){if(t.match(/^http/))throw new TypeError(`Invalid destination host: '${t}'.`);return`${e}${t}`}return t});x(this,Bt,t),x(this,Wt,e),x(this,Me,r),x(this,ue,n)}check(t,e=!1){return A(this,null,function*(){return l(this,Bt)?Promise.resolve({ok:!0,status:200}):l(this,pe).call(this,()=>l(this,ue).HEAD(t),e)})}copy(t,e,r,n=!1){return A(this,null,function*(){let a={Destination:l(this,Yt).call(this,e),Overwrite:n?"T":"F"};return r.directory&&(a.Depth="infinity"),l(this,pe).call(this,()=>l(this,ue).COPY(t,{headers:a}))})}createDirectory(t){return A(this,null,function*(){return l(this,pe).call(this,()=>l(this,ue).MKCOL(t))})}del(t){return A(this,null,function*(){return l(this,pe).call(this,()=>l(this,ue).DELETE(t,{headers:{Depth:"infinity"}}))})}get(t){return A(this,null,function*(){if(!l(this,yt).call(this,"GET",t)){let e=yield l(this,pe).call(this,()=>l(this,ue).GET(t));if(!e.ok)return;l(this,Jt).call(this,"GET",t,yield e.text())}return l(this,Gt).call(this,"GET",t)})}invalidateCache(t){l(this,yt).call(this,"PROPFIND",t)&&l(this,Rr).call(this,"PROPFIND",t)}list(t,e=!1){return A(this,null,function*(){if(t=se(t),!e&&l(this,yt).call(this,"PROPFIND",t))return l(this,Gt).call(this,"PROPFIND",t);let r=yield this.check(t);if(!r||!r.ok&&r.status!==405)return;let n=yield l(this,pe).call(this,()=>l(this,ue).PROPFIND(t)),a=new Er(yield n.text()),s=a.collection({sortDirectoriesFirst:l(this,Wt)});return l(this,Jt).call(this,"PROPFIND",t,s),s})}move(t,e,r,n=!1){return A(this,null,function*(){let a=l(this,Yt).call(this,e);return l(this,pe).call(this,()=>l(this,ue).MOVE(t,{headers:{Destination:r.directory?se(a):a,Overwrite:n?"T":"F"}}))})}upload(t,e){return A(this,null,function*(){let r=H(t,e.name);return l(this,pe).call(this,()=>l(this,ue).PUT(r,{headers:{"Content-Type":e.type},body:e}))})}};Bt=new WeakMap,Me=new WeakMap,ue=new WeakMap,Wt=new WeakMap,Rr=new WeakMap,Gt=new WeakMap,yt=new WeakMap,Jt=new WeakMap,pe=new WeakMap,Yt=new WeakMap;var yi=rn;var Je=I(ae());var bi=I(Kt());var ms=(i,t,e)=>A(void 0,null,function*(){let r=yield i.list(t.getPath(),!0);if(!r)return;t.setCollection(r);let[n]=r.filter(o=>o.name===e.name);if(n){if(!confirm(T("overwriteFileConfirmation",{file:n.title})))return;r.remove(n)}let a=new Ce({fullPath:H(t.getPath(),e.name),modified:Date.now(),size:e.size,mimeType:e.type,placeholder:!0,collection:r});if(r.add(a),!(yield i.upload(location.pathname,e)).ok){r.remove(a),t.update();return}a.placeholder=!1,t.update(),(0,bi.success)(T("successfullyUploaded",{interpolation:{escapeValue:!1},file:e.name}))}),Dr=ms;var wi=I(Kt());var bt,_e,Zt=class extends Je.default{constructor(e,r){super((0,Je.s)(`<footer class="upload"> <span class="droppable">${T("dropFilesAnywhereToUpload")}</span> ${T("or")} <span class="files">${T("uploadFiles")} <input type="file" multiple></span> ${T("or")} <a href="#" class="create-directory">${T("createNewDirectory")}</a> </footer>`));E(this,bt,void 0);E(this,_e,void 0);x(this,bt,e),x(this,_e,r),this.bindEvents()}bindEvents(){let e=this.query('input[type="file"]'),r=this.query(".create-directory");(0,Je.on)(e,"change",()=>A(this,null,function*(){for(let n of e.files)Dr(l(this,bt),l(this,_e),n);l(this,_e).update(),e.value=null})),(0,Je.on)(r,"click",n=>A(this,null,function*(){n.preventDefault();let a=prompt("",T("directoryName"));!a||this.handleCreateDirectory(se(H(location.pathname,a)),a)}))}handleCreateDirectory(e,r){return A(this,null,function*(){if(!(yield l(this,bt).createDirectory(e)).ok)return;(0,wi.success)(T("successfullyCreated",{interpolation:{escapeValue:!1},directoryName:r}));let a=l(this,_e).getCollection();a.add(new Ce({directory:!0,fullPath:e,modified:Date.now(),collection:a})),l(this,_e).update()})}};bt=new WeakMap,_e=new WeakMap;var Fr=I(ae());var Ei=i=>decodeURIComponent(i.getPath()),Ye,nn=class extends Fr.default{constructor(e){super((0,Fr.s)(`<header> <h1>${Ei(e)}</h1> </header>`));E(this,Ye,void 0);x(this,Ye,e),this.bindEvents()}bindEvents(){l(this,Ye).on("updated",()=>{l(this,Ye).isDirectory()&&this.update()})}update(){this.query("h1").innerHTML=Ei(l(this,Ye))}};Ye=new WeakMap;var xi=nn;var ki=[],vs=ki.forEach,ys=ki.slice;function bs(i){return vs.call(ys.call(arguments,1),function(t){if(t)for(var e in t)i[e]===void 0&&(i[e]=t[e])}),i}var Si=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,ws=function(t,e,r){var n=r||{};n.path=n.path||"/";var a=encodeURIComponent(e),s="".concat(t,"=").concat(a);if(n.maxAge>0){var o=n.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(n.domain){if(!Si.test(n.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(n.domain)}if(n.path){if(!Si.test(n.path))throw new TypeError("option path is invalid");s+="; Path=".concat(n.path)}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(n.expires.toUTCString())}if(n.httpOnly&&(s+="; HttpOnly"),n.secure&&(s+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return s},Ci={create:function(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+r*60*1e3)),n&&(a.domain=n),document.cookie=ws(t,encodeURIComponent(e),a)},read:function(t){for(var e="".concat(t,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(e)===0)return a.substring(e.length,a.length)}return null},remove:function(t){this.create(t,"",-1)}},Es={name:"cookie",lookup:function(t){var e;if(t.lookupCookie&&typeof document<"u"){var r=Ci.read(t.lookupCookie);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupCookie&&typeof document<"u"&&Ci.create(e.lookupCookie,t,e.cookieMinutes,e.cookieDomain,e.cookieOptions)}},xs={name:"querystring",lookup:function(t){var e;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var n=r.substring(1),a=n.split("&"),s=0;s<a.length;s++){var o=a[s].indexOf("=");if(o>0){var u=a[s].substring(0,o);u===t.lookupQuerystring&&(e=a[s].substring(o+1))}}}return e}},Qt=null,Pi=function(){if(Qt!==null)return Qt;try{Qt=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Qt=!1}return Qt},Ss={name:"localStorage",lookup:function(t){var e;if(t.lookupLocalStorage&&Pi()){var r=window.localStorage.getItem(t.lookupLocalStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&Pi()&&window.localStorage.setItem(e.lookupLocalStorage,t)}},Xt=null,Oi=function(){if(Xt!==null)return Xt;try{Xt=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Xt=!1}return Xt},Cs={name:"sessionStorage",lookup:function(t){var e;if(t.lookupSessionStorage&&Oi()){var r=window.sessionStorage.getItem(t.lookupSessionStorage);r&&(e=r)}return e},cacheUserLanguage:function(t,e){e.lookupSessionStorage&&Oi()&&window.sessionStorage.setItem(e.lookupSessionStorage,t)}},Ps={name:"navigator",lookup:function(t){var e=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)e.push(navigator.languages[r]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return e.length>0?e:void 0}},Os={name:"htmlTag",lookup:function(t){var e,r=t.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(e=r.getAttribute("lang")),e}},ks={name:"path",lookup:function(t){var e;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof r[t.lookupFromPathIndex]!="string")return;e=r[t.lookupFromPathIndex].replace("/","")}else e=r[0].replace("/","")}return e}},As={name:"subdomain",lookup:function(t){var e=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,r=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(!!r)return r[e]}};function Ls(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}}var an=function(){function i(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};J(this,i),this.type="languageDetector",this.detectors={},this.init(t,e)}return Y(i,[{key:"init",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=bs(r,this.options||{},Ls()),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Es),this.addDetector(xs),this.addDetector(Ss),this.addDetector(Cs),this.addDetector(Ps),this.addDetector(Os),this.addDetector(ks),this.addDetector(As)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var r=this;e||(e=this.options.order);var n=[];return e.forEach(function(a){if(r.detectors[a]){var s=r.detectors[a].lookup(r.options);s&&typeof s=="string"&&(s=[s]),s&&(n=n.concat(s))}}),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,r){var n=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||r.forEach(function(a){n.detectors[a]&&n.detectors[a].cacheUserLanguage(e,n.options)}))}}]),i}();an.type="languageDetector";var He=I(ae());var ji=I(Li()),D=I(ae());var $i=I(Ti());var re=I(ae());var Et=I(ae());var wt,on=class extends Et.default{constructor(...e){super((0,Et.h)('dialog[tabindex="0"]'));E(this,wt,void 0);x(this,wt,(0,Et.h)(".content",...e)),this.element().append(l(this,wt)),document.body.append(this.element()),this.bindEvents()}append(...e){l(this,wt).append(...e.map(r=>r instanceof Et.default?r.element():r))}bindEvents(){this.on("click",e=>{e.target===this.element()&&this.close()}),this.on("keydown",e=>{e.key==="Escape"&&this.close()})}close(){this.element().removeAttribute("open")}open(){this.element().setAttribute("open",""),this.element().focus()}setLabel(e){this.element().setAttribute("aria-label",e)}};wt=new WeakMap;var Ri=on;var $r=I(ae());var we=I(ae());var Rs=i=>` <div class="leaf" tabindex="0" aria-selected="false" aria-expanded="false" > <span class="toggle"></span> <span class="name"></span> <section class="children"></section> </div> `,Ze,Q,ln=class extends we.default{constructor(e,r){super((0,we.s)(Rs(e)));E(this,Ze,void 0);E(this,Q,void 0);this.query(".name").append((0,we.t)(e.name())),x(this,Ze,r),x(this,Q,e),this.bindEvents(),this.update()}bindEvents(){let e=a=>A(this,null,function*(){a.hasChildren()===null&&(yield l(this,Ze).getChildren(l(this,Q))),a.hasChildren()&&l(this,Q).children().forEach(s=>l(this,Ze).getChildren(s))}),r=()=>{this.emit(new CustomEvent(this.expanded()?"leaf-collapsed":"leaf-expanded",{bubbles:!0,detail:[this]})),this.element().setAttribute("aria-expanded",this.expanded()?"false":"true"),e(l(this,Q))},n=()=>{this.emit(new CustomEvent(this.selected()?"leaf-deselected":"leaf-selected",{bubbles:!0,detail:[this]})),this.element().setAttribute("aria-selected",this.selected()?"false":"true"),e(l(this,Q))};(0,we.on)(this.toggle(),"click",a=>{a.preventDefault(),a.stopPropagation(),r()}),this.on("click",a=>{a.button||(a.preventDefault(),a.stopPropagation(),n(),l(this,Q).hasChildren()&&this.element().matches('[aria-expanded="false"]')&&r())}),l(this,Q).on("updated",()=>this.update())}children(){return this.query(".children")}expanded(){return this.element().getAttribute("aria-expanded")==="true"}node(){return l(this,Q)}selected(){return this.element().getAttribute("aria-selected")==="true"}toggle(){return this.query(".toggle")}update(){if(l(this,Q).hasChildren()!==null){if(l(this,Q).hasChildren()){this.addClass("hasChildren"),(0,we.empty)(this.children()),l(this,Q).children().forEach(e=>{let r=new ln(e,l(this,Ze));this.children().append(r.element())});return}this.addClass("hasNoChildren")}}},un=ln;Ze=new WeakMap,Q=new WeakMap;var Di=un;var er,qe,tr,cn=class extends Te{constructor(e,r,n=null){super();E(this,er,void 0);E(this,qe,void 0);E(this,tr,void 0);x(this,er,e),x(this,tr,r),x(this,qe,n)}children(){return l(this,qe)}fullPath(){return l(this,er)}hasChildren(){return l(this,qe)===null?null:l(this,qe).length>0}name(){return l(this,tr)}setChildren(e){x(this,qe,e),this.emit("updated")}};er=new WeakMap,qe=new WeakMap,tr=new WeakMap;var jr=cn;var xt,Qe,rr,St,fn=class extends $r.default{constructor(e,r={}){super((0,$r.s)('<div class="tree"></div>'));E(this,xt,void 0);E(this,Qe,{multiple:!1,rootLabel:"/"});E(this,rr,void 0);E(this,St,null);x(this,xt,e),x(this,Qe,X(X({},l(this,Qe)),r)),x(this,rr,new jr([],l(this,Qe).rootLabel)),this.bindEvents(),this.build(l(this,rr))}bindEvents(){this.on("leaf-deselected",()=>this.setSelected(null)),this.on("leaf-selected",({detail:[e]})=>{l(this,Qe).multiple||this.clearSelected(),this.setSelected(e.node())})}build(e){return A(this,null,function*(){this.append(new Di(e,l(this,xt))),l(this,xt).getChildren(e)})}clearSelected(){this.queryAll('.leaf[aria-selected="true"]').forEach(e=>e.setAttribute("aria-selected","false"))}setSelected(e){x(this,St,e),this.emitCustom("selected",e)}value(){return l(this,St)&&l(this,St).fullPath()}};xt=new WeakMap,Qe=new WeakMap,rr=new WeakMap,St=new WeakMap;var Fi=fn;var Ct,Ie,dn=class{constructor(t={}){E(this,Ct,new Map);E(this,Ie,{debug:!0,depth:2});x(this,Ie,X(X({},l(this,Ie)),t))}getChildren(n){return A(this,arguments,function*(t,e=!1,r=l(this,Ie).depth){if(r===0)return null;let a=t.fullPath().length===0?"/":vr(t.fullPath().join("/"));return(!l(this,Ct).has(a)||e)&&l(this,Ct).set(a,fetch(a,{method:"PROPFIND",headers:{Depth:"1"}}).then(s=>A(this,null,function*(){if(!s.ok)return l(this,Ie).debug&&console.error(s),[];let o=new Er(yield s.text()).responseToPrimitives(),u=o.filter(y=>y.directory&&y.fullPath!==a).sort((y,c)=>y.fullPath<c.fullPath?-1:1),m=u.map(y=>{let c=Kr(y.fullPath).split("/"),v=decodeURIComponent(c.slice(0).pop()),g=new jr(c,v);return this.getChildren(g,e,r-1),g});return t.setChildren(m),m})).catch(s=>(l(this,Ie).debug&&console.error(s),[]))),l(this,Ct).get(a)})}};Ct=new WeakMap,Ie=new WeakMap;var Ni=dn;var Pt,hn=class extends Ri{constructor(e){super();E(this,Pt,void 0);x(this,Pt,new Fi(new Ni)),this.append((0,re.h)("header",(0,re.h)("h2",(0,re.t)(e))),l(this,Pt),(0,re.h)("footer",(0,re.h)('button[type="submit"]',(0,re.t)("Choose")),(0,re.h)("button",(0,re.t)("Cancel")))),this.addClass("tree-view-modal"),this.bindLocalEvents()}bindLocalEvents(){(0,re.on)(this.query('button[type="submit"]'),"click",()=>{let e=l(this,Pt).value();if(e===null){this.emitCustom("selected",null);return}this.emitCustom("selected",vr(H(...e)))}),(0,re.on)(this.query('button:not([type="submit"])'),"click",()=>{this.emitCustom("cancelled")})}value(){return A(this,null,function*(){return new Promise(e=>{this.on("cancelled",()=>e(null)),this.on("selected",({detail:[r]})=>e(r))})})}};Pt=new WeakMap;var pn=hn;var Ds=(i,t="li")=>{if(!i)return[null,null];let e=i.parentElement;if(!e)return[null,null];let r=Array.from(e.querySelectorAll(t)),n=r.indexOf(i);if(n===-1)return[null,null];let a=n>0?r[n-1]:null,s=n<r.length-1?r[n+1]:null;return[a,s]},Mr=Ds;var nr=I(Kt());var Fs=i=>`<li tabindex="0" data-full-path="${i.fullPath}" data-type="${i.type}"> <span class="title">${i.title}</span> <input type="text" name="rename" class="hidden" readonly> <span class="size">${i.displaySize}</span> <a href="${i.fullPath}" download="${i.name}" title="${T("download")} (\u21E7+\u23CE)"></a> <a href="#" title="${T("copy")}" class="copy"></a> <a href="#" title="${T("rename")} (F2)" class="rename"></a> <a href="#" title="${T("move")}" class="move"></a> <a href="#" title="${T("delete")} (\u2421)" class="delete"></a> </li>`,W,_,le,ar,gn=class extends D.default{constructor(e,r,n){super((0,D.s)(Fs(e)));E(this,W,void 0);E(this,_,void 0);E(this,le,void 0);E(this,ar,Object.freeze({video:e=>`<video autoplay controls><source src="${e.fullPath}"/></video>`,audio:e=>`<audio autoplay controls><source src="${e.fullPath}"/></audio>`,image:e=>`<img alt="${e.title}" src="${e.fullPath}"/>`,font:e=>{let r={eot:"embedded-opentype",otf:"opentype",ttf:"truetype"},n=e.name.replace(/^.+\.([^.]+)$/,"$1").toLowerCase(),a=e.fullPath.replace(/\W+/g,"_"),s=`${T("pangram")} 0123456789<br/> ${T("alphabet")}`;return`<style>@font-face{font-family:"${a}";src:url("${e.fullPath}") format("${r[n]||n}")}</style> <h1 style="font-family:'${a}'">${e.title}</h1> <p style="font-family:'${a}';font-size:1.5em">${s}</p> <p style="font-family:'${a}'">${s}</p> <p style="font-family:'${a}'"><strong>${s}</strong></p> <p style="font-family:'${a}'"><em>${s}</em></p>`},text:(e,r)=>`<pre><code class="language-${e.extension}">${r.replace(/[<>]/g,n=>n==="<"?"&lt;":"&gt;")}</code></pre>`,pdf:e=>`<iframe src="${e.fullPath}" height="100%" width="100%"></iframe>`}));x(this,W,r),x(this,le,n),x(this,_,e),this.addClass(e.directory?"directory":"file",e.type?e.type:"unknown"),e.placeholder&&this.addClass("loading"),e.copy||this.query(".copy").setAttribute("hidden",""),e.del||this.query(".delete").setAttribute("hidden",""),e.move||this.query(".move").setAttribute("hidden",""),e.rename||this.query(".rename").setAttribute("hidden",""),this.bindEvents()}bindEvents(){this.on("click",r=>{if(r.ctrlKey||r.button===1){window.open(l(this,_).fullPath);return}if(r.shiftKey){this.download();return}this.open()});let e=()=>{l(this,_).off("updated",e),this.update()};l(this,_).on("updated",e),(0,D.on)(this.query("[download]"),"click",r=>r.stopPropagation()),(0,D.on)(this.query(".delete"),"click",r=>{r.preventDefault(),r.stopPropagation(),this.del()}),(0,D.on)(this.query(".rename"),"click",r=>{r.stopPropagation(),r.preventDefault(),this.rename()}),(0,D.on)(this.query(".copy"),"click",r=>{r.stopPropagation(),r.preventDefault(),this.copy()}),(0,D.on)(this.query(".move"),"click",r=>{r.stopPropagation(),r.preventDefault(),this.move()}),this.on("keydown",r=>{if(["F2","Delete","Enter"].includes(r.key)){if(r.preventDefault(),r.key==="F2"&&l(this,_).rename&&this.rename(),r.key==="Delete"&&l(this,_).del&&this.del(),r.key==="Enter"&&!l(this,_).directory&&r.shiftKey){this.download();return}r.key==="Enter"&&this.open()}})}copy(){return A(this,null,function*(){let e=l(this,_),r=new pn(T("copyItemTitle",{file:e.title}));r.open();let n=yield r.value();if(r.close(),!n)return;let a=H(n,e.name);(yield l(this,W).check(a,!0)).ok&&!confirm(T("overwriteFileConfirmation",{file:e.name}))||!(yield l(this,W).copy(e.fullPath,a,e,!0)).ok||(l(this,W).invalidateCache(se(n)),(0,nr.success)(T("successfullyCopied",{interpolation:{escapeValue:!1},from:e.title,to:a})))})}del(){return A(this,null,function*(){let e=l(this,_);if(!e.del)throw new TypeError(`'${e.name}' is read only.`);if(this.addClass("loading"),!confirm(T("deleteConfirmation",{file:e.title}))){this.removeClass("loading");return}!(yield l(this,W).del(e.fullPath)).ok||(l(this,le).getCollection().remove(l(this,_)),this.element().remove(),(0,nr.success)(T("successfullyDeleted",{interpolation:{escapeValue:!1},file:e.title})))})}download(){l(this,_).directory||(0,D.emit)(this.query("[download]"),new MouseEvent("click"))}move(){return A(this,null,function*(){let e=l(this,_),r=new pn(T("moveItemTitle",{file:e.title}));r.open();let n=yield r.value();if(r.close(),!n)return;let a=H(n,e.name);(yield l(this,W).check(a,!0)).ok&&!confirm(T("overwriteFileConfirmation",{file:e.name}))||!(yield l(this,W).move(e.fullPath,a,e,!0)).ok||(l(this,W).invalidateCache(se(n)),l(this,le).update(!0),(0,nr.success)(T("successfullyMoved",{interpolation:{escapeValue:!1},from:e.title,to:a})))})}open(){return A(this,null,function*(){if(this.hasClass("open"))return;this.addClass("open","loading");let e=l(this,_);if(!(yield l(this,W).check(e.fullPath)).ok){this.removeClass("open","loading");return}if(e.directory){l(this,le).setPath(e.fullPath),this.removeClass("open","loading");return}let n=(s,o=null)=>{let u=()=>y.close(),m=c=>{if(!["Escape","ArrowUp","ArrowDown"].includes(c.key))return;let[v,g]=Mr(this.element(),'li:not(.directory):not([data-type="unknown"])');u(),c.key==="ArrowUp"&&v&&(0,D.emit)(v,new MouseEvent("click")),c.key==="ArrowDown"&&g&&(0,D.emit)(g,new MouseEvent("click"))},y=(0,ji.create)(s,{className:e.type,onShow:()=>(this.removeClass("loading"),(0,D.on)(document,"keydown",m),o&&o(y),l(this,le).showPath(e.fullPath),l(this,le).on("updated",u),!0),onClose:()=>((0,D.off)(document,"keydown",m),l(this,le).off("updated",u),l(this,le).showPath(e.path),this.removeClass("open"),!0)});y.show()};if(["video","audio","image","font","pdf"].includes(e.type)){n(l(this,ar)[e.type](e)),this.removeClass("loading");return}if(e.type!=="text"){this.removeClass("open","loading"),this.download();return}let a=yield l(this,W).get(e.fullPath);if(!a){this.removeClass("open","loading");return}n(l(this,ar).text(e,a),s=>$i.default.highlightAllUnder(s.element())),this.removeClass("loading")})}rename(){return A(this,null,function*(){let e=l(this,_);if(!e.rename)throw new TypeError(`'${e.name}' cannot be renamed.`);let r=this.element(),n=this.query(".title"),a=this.query("input"),s=()=>{n.innerText=a.value,a.style.setProperty("width",`${n.scrollWidth}px`)},o=()=>A(this,null,function*(){if(a.value!==e.title){this.addClass("loading"),u();let g=H(e.path,a.value);if(!(yield l(this,W).move(e.fullPath,g,e)).ok)return;(0,nr.success)(T("successfullyRenamed",{interpolation:{escapeValue:!1},from:e.title,to:a.value})),e.name=a.value}m()}),u=()=>{(0,D.off)(a,"blur",y),(0,D.off)(a,"keydown",c),(0,D.off)(a,"input",v)},m=()=>{(0,D.removeClass)(n,"invisible"),(0,D.addClass)(a,"hidden"),a.value=e.title,s(),u(),r.focus()},y=()=>A(this,null,function*(){yield o()}),c=g=>A(this,null,function*(){g.stopPropagation(),g.key==="Enter"&&(g.preventDefault(),yield o()),g.key==="Escape"&&m()}),v=()=>s();(0,D.addClass)(n,"invisible"),(0,D.removeClass)(a,"hidden"),a.value=e.title,s(),a.removeAttribute("readonly"),(0,D.on)(a,"blur",y),(0,D.on)(a,"keydown",c),(0,D.on)(a,"input",v),a.focus()})}update(){let e=new gn(l(this,_),l(this,W),l(this,le));this.element().replaceWith(e.element())}},ir=gn;W=new WeakMap,_=new WeakMap,le=new WeakMap,ar=new WeakMap;var Ns=(()=>{try{return document.querySelector(":focus-within"),!0}catch(i){return!1}})(),Mi=Ns;var Ot,ce,mn=class extends He.default{constructor(e,r){super((0,He.s)('<ul class="loading"></ul>'));E(this,Ot,void 0);E(this,ce,void 0);x(this,Ot,e),x(this,ce,r),this.load(),this.bindEvents()}bindEvents(){l(this,ce).on("updated",r=>{if(l(this,ce).isDirectory()){this.load(r);return}let n=this.query(`[data-full-path="${l(this,ce).getPath()}"]`);!n||(0,He.emit)(n,new MouseEvent("click"))}),l(this,ce).on("collection-updated",()=>this.render()),(0,He.on)(document,"keydown",r=>{if(!["ArrowUp","ArrowDown"].includes(r.key))return;r.preventDefault(),r.stopPropagation();let n=this.query(`li:focus${Mi?", li:focus-within":""}`),[a,s]=n?Mr(n):[this.element().firstElementChild,this.element().firstElementChild];r.key==="ArrowUp"&&a&&a.focus(),r.key==="ArrowDown"&&s&&s.focus()})}load(e=!1){return A(this,null,function*(){let r=yield l(this,Ot).list(l(this,ce).getPath(),e);!r||this.update(r)})}render(){this.addClass("loading"),this.empty(),l(this,ce).getCollection().forEach(e=>this.append(new ir(e,l(this,Ot),l(this,ce)))),this.removeClass("loading")}update(e){l(this,ce).setCollection(e),this.render()}};Ot=new WeakMap,ce=new WeakMap;var _i=mn;var qi=I(ae());var Xe,et,sr,kt,or,ur,vn=class extends Te{constructor(e,r){super();E(this,Xe,void 0);E(this,et,void 0);E(this,sr,void 0);E(this,kt,void 0);E(this,or,void 0);E(this,ur,()=>this.emit("collection-updated"));x(this,kt,e),x(this,or,r),x(this,et,r.location),x(this,sr,r.history),this.bindEvents(),this.setTitle(this.getPath())}bindEvents(){(0,qi.on)(l(this,or),"popstate",()=>this.update())}getCollection(){return l(this,Xe)}getPath(){return l(this,et).pathname}getTitleForPath(e){return T("title",{interpolation:{escapeValue:!1},path:decodeURIComponent(e)})}isDirectory(){return this.getPath().endsWith("/")}setCollection(e){l(this,Xe)&&l(this,Xe).off("updated",l(this,ur)),x(this,Xe,e),e.on("updated",l(this,ur))}setPath(e){l(this,et).pathname!==e&&(this.showPath(e),this.emit("updated"))}setTitle(e){let r=this.getTitleForPath(e);l(this,kt).title!==r&&(l(this,kt).title=r)}showPath(e){l(this,et).pathname!==e&&(l(this,sr).pushState({path:e},this.getTitleForPath(e),e),this.setTitle(e))}update(e=!1){this.emit("updated",e)}};Xe=new WeakMap,et=new WeakMap,sr=new WeakMap,kt=new WeakMap,or=new WeakMap,ur=new WeakMap;var Ii=vn;var yn=document.createElement("span"),Hi=(...i)=>i.every(t=>Ui(t)),Ui=i=>{let t=`on${i}`;return yn.hasAttribute(t)||yn.setAttribute(t,""),typeof yn[`on${i}`]=="function"},Ki=Ui;var Vi=I(ae());var lr,cr,bn=class extends Vi.default{constructor(e,r,n){super(e);E(this,lr,void 0);E(this,cr,void 0);x(this,lr,r),x(this,cr,n),this.bindEvents()}dav(){return l(this,lr)}state(){return l(this,cr)}};lr=new WeakMap,cr=new WeakMap;var zi=bn;var wn=class extends zi{bindEvents(){let t=Ki("touchstart"),e=Hi("dragstart","drop");t&&this.addClass("is-touch"),e||this.addClass("no-drag-drop"),e&&(this.onEach(["dragenter","dragover"],r=>{r.preventDefault(),r.stopPropagation(),this.addClass("active")}),this.onEach(["dragleave","drop"],r=>{r.preventDefault(),r.stopPropagation(),this.removeClass("active")}),this.on("drop",r=>A(this,null,function*(){let{files:n}=r.dataTransfer;for(let a of n)yield Dr(this.dav(),this.state(),a)})))}},Bi=wn;var Wi={translation:{pangram:"\u201EFix, Schwyz!\u201C, qu\xE4kt J\xFCrgen bl\xF6d vom Pa\xDF.",alphabet:"Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz \xC4\xE4 \xD6\xF6 \xDC\xFC \u1E9E\xDF",dropFilesAnywhereToUpload:"Datei/en hineinverschieben um sie hochzuladen",uploadFiles:"Datei/en hochladen",or:"oder",createNewDirectory:"Neuen Ordner erstellen",delete:"L\xF6schen",rename:"Umbenennen",download:"Herunterladen",deleteConfirmation:"Willst du wirklich die Datei '%s' l\xF6schen?",overwriteFileConfirmation:"Die Datei '{{file}}' existiert bereits, willst du sie \xFCberschreiben?",failure:"{{method}} {{url}} fehlgeschlagen: {{statusText}} ({{status}})",successfullyUploaded:"'{{file}}' wurde erfolgreich hochgeladen.",successfullyRenamed:"'{{from}}' wurde erfolgreich umbenannt in '{{to}}'.",successfullyMoved:"'{{from}}' wurde erfolgreich verschoben nach '{{to}}'.",successfullyDeleted:"'{{file}}' wurde gel\xF6scht.",successfullyCreated:"'{{directoryName}}' wurde erstellt.",title:"{{path}} | WebDAV"}};var Gi={translation:{alphabet:"Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz",createNewDirectory:"create new directory",copyItemTitle:"Where do you want to copy '{{file}}' to?",copy:"Copy",delete:"Delete",deleteConfirmation:"Are you sure you want to delete '{{file}}'?",directoryName:"Directory name",download:"Download",dropFilesAnywhereToUpload:"Drop files anywhere to upload",failure:"{{method}} {{url}} failed: {{statusText}} ({{status}})",move:"Move",moveItemTitle:"Where do you want to move '{{file}}' to?",or:"or",overwriteFileConfirmation:"A file called '{{file}}' already exists, would you like to overwrite it?",pangram:"The quick brown fox jumps over the lazy dog.",rename:"Rename",successfullyCopied:"'{{from}}' successfully copied to '{{to}}'.",successfullyCreated:"'{{directoryName}}' has been created.",successfullyDeleted:"'{{file}}' has been deleted.",successfullyMoved:"'{{from}}' successfully moved to '{{to}}'.",successfullyRenamed:"'{{from}}' successfully renamed to '{{to}}'.",successfullyUploaded:"'{{file}}' has been successfully uploaded.",title:"{{path}} | WebDAV",uploadFiles:"upload files"}};var Ji={translation:{pangram:"Lu\xEDs arg\xFCia \xE0 J\xFAlia que \xABbra\xE7\xF5es, f\xE9, ch\xE1, \xF3xido, p\xF4r, z\xE2ng\xE3o\xBB eram palavras do portugu\xEAs.",alphabet:"Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz \xC1\xE1 \xC2\xE2 \xC3\xE3 \xC0\xE0 \xC7\xE7 \xC9\xE9 \xCA\xEA \xCD\xED \xD3\xF3 \xD4\xF4 \xD5\xF5 \xDA\xFA",dropFilesAnywhereToUpload:"Mova o(s) arquivo(s) interno(s) para carreg\xE1-los",uploadFiles:"Carregar arquivo(s)",or:"ou",createNewDirectory:"Criar uma nova pasta",delete:"Eliminar",rename:"Renomear",download:"Descarregar",deleteConfirmation:'Quer mesmo apagar o arquivo "{{file}}"?',overwriteFileConfirmation:'O arquivo "{{file}}" j\xE1 existe, voc\xEA quer sobrescrev\xEA-lo?',failure:"{{method}} {{url}} falhou: {{statusText}} ({{status}})",successfullyUploaded:'"{{file}}" foi carregada com \xEAxito.',successfullyRenamed:'"{{from}}" foi alterado para "{{to}}" com \xEAxito.',successfullyMoved:'"{{from}}" foi transferida com \xEAxito para "{{to}}".',successfullyDeleted:'"{{file}}" foi suprimido.',successfullyCreated:'"{{directoryName}}" foi criada.',title:"{{path}} | WebDAV"}};mi(an).init({detection:{caches:[]},fallbackLng:"en",resources:{de:Wi,en:Gi,pt:Ji}}).then(()=>{let i=new Ii(document,window),t=new yi({bypassCheck:!!document.querySelector("[data-disable-check]"),sortDirectoriesFirst:!!document.querySelector("[data-sort-directories-first]")}),e=new Tt,r=new xi(i),n=new _i(t,i),a=new Zt(t,i),s=new Bi(document.body,t,i);e.append(r,n),s.append(e,a)});})(); /** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT <https://opensource.org/licenses/MIT> * @author Lea Verou <https://lea.verou.me> * @namespace * @public */ //# sourceMappingURL=webdav.js.map