(()=>{var Hr=Object.defineProperty;var Br=ge=>{throw TypeError(ge)};var Kr=(ge,K,$)=>K in ge?Hr(ge,K,{enumerable:!0,configurable:!0,writable:!0,value:$}):ge[K]=$;var Ie=(ge,K,$)=>Kr(ge,typeof K!="symbol"?K+"":K,$),_r=(ge,K,$)=>K.has(ge)||Br("Cannot "+$);var F=(ge,K,$)=>(_r(ge,K,"read from private field"),$?$.call(ge):K.get(ge)),Re=(ge,K,$)=>K.has(ge)?Br("Cannot add the same private member more than once"):K instanceof WeakSet?K.add(ge):K.set(ge,$),_e=(ge,K,$,M)=>(_r(ge,K,"write to private field"),M?M.call(ge,$):K.set(ge,$),$),Xe=(ge,K,$)=>(_r(ge,K,"access private method"),$);var sr=(ge,K,$,M)=>({set _(z){_e(ge,K,z,$)},get _(){return F(ge,K,M)}});(self.webpackChunktalk=self.webpackChunktalk||[]).push([["defaultVendors-node_modules_css-loader_dist_runtime_getUrl_js-node_modules_debounce_index_js--b3ccbc"],{36117:function(ge,K){var $,M,z;function oe(W){"@babel/helpers - typeof";return oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},oe(W)}(function(W,Y){if(1)M=[K],$=Y,z=typeof $=="function"?$.apply(K,M):$,z!==void 0&&(ge.exports=z);else var H})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:this,function(W){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.CancelablePromise=void 0,W.cancelable=Vt,W.default=void 0,W.isCancelablePromise=ze;function Y(k,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(j&&j.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),Object.defineProperty(k,"prototype",{writable:!1}),j&&H(k,j)}function H(k,j){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,me){return X.__proto__=me,X},H(k,j)}function te(k){var j=ue();return function(){var X=de(k),me;if(j){var Ce=de(this).constructor;me=Reflect.construct(X,arguments,Ce)}else me=X.apply(this,arguments);return J(this,me)}}function J(k,j){if(j&&(oe(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ae(k)}function ae(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function ue(){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 de(k){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},de(k)}function se(k,j){var B=typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(!B){if(Array.isArray(k)||(B=ie(k))||j&&k&&typeof k.length=="number"){B&&(k=B);var X=0,me=function(){};return{s:me,n:function(){return X>=k.length?{done:!0}:{done:!1,value:k[X++]}},e:function(et){throw et},f:me}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ce=!0,we=!1,Et;return{s:function(){B=B.call(k)},n:function(){var et=B.next();return Ce=et.done,et},e:function(et){we=!0,Et=et},f:function(){try{!Ce&&B.return!=null&&B.return()}finally{if(we)throw Et}}}}function ie(k,j){if(k){if(typeof k=="string")return V(k,j);var B=Object.prototype.toString.call(k).slice(8,-1);if(B==="Object"&&k.constructor&&(B=k.constructor.name),B==="Map"||B==="Set")return Array.from(k);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return V(k,j)}}function V(k,j){(j==null||j>k.length)&&(j=k.length);for(var B=0,X=new Array(j);B<j;B++)X[B]=k[B];return X}function D(k,j){if(!(k instanceof j))throw new TypeError("Cannot call a class as a function")}function Q(k,j){for(var B=0;B<j.length;B++){var X=j[B];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(k,X.key,X)}}function ee(k,j,B){return j&&Q(k.prototype,j),B&&Q(k,B),Object.defineProperty(k,"prototype",{writable:!1}),k}function ve(k,j,B){return j in k?Object.defineProperty(k,j,{value:B,enumerable:!0,configurable:!0,writable:!0}):k[j]=B,k}function he(k,j,B){$e(k,j),j.set(k,B)}function $e(k,j){if(j.has(k))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ee(k,j){var B=Ae(k,j,"get");return Fe(k,B)}function Fe(k,j){return j.get?j.get.call(k):j.value}function nt(k,j,B){var X=Ae(k,j,"set");return Ye(k,X,B),B}function Ae(k,j,B){if(!j.has(k))throw new TypeError("attempted to "+B+" private field on non-instance");return j.get(k)}function Ye(k,j,B){if(j.set)j.set.call(k,B);else{if(!j.writable)throw new TypeError("attempted to set read only private field");j.value=B}}var fe=typeof Symbol<"u"?Symbol.toStringTag:"@@toStringTag",q=new WeakMap,ce=new WeakMap,Je=function(){function k(j){var B=j.executor,X=B===void 0?function(){}:B,me=j.internals,Ce=me===void 0?St():me,we=j.promise,Et=we===void 0?new Promise(function(qe,et){return X(qe,et,function(ot){Ce.onCancelList.push(ot)})}):we;D(this,k),he(this,q,{writable:!0,value:void 0}),he(this,ce,{writable:!0,value:void 0}),ve(this,fe,"CancelablePromise"),this.cancel=this.cancel.bind(this),nt(this,q,Ce),nt(this,ce,Et||new Promise(function(qe,et){return X(qe,et,function(ot){Ce.onCancelList.push(ot)})}))}return ee(k,[{key:"then",value:function(B,X){return Pt(Ee(this,ce).then(Qe(B,Ee(this,q)),Qe(X,Ee(this,q))),Ee(this,q))}},{key:"catch",value:function(B){return Pt(Ee(this,ce).catch(Qe(B,Ee(this,q))),Ee(this,q))}},{key:"finally",value:function(B,X){var me=this;return X&&Ee(this,q).onCancelList.push(B),Pt(Ee(this,ce).finally(Qe(function(){if(B)return X&&(Ee(me,q).onCancelList=Ee(me,q).onCancelList.filter(function(Ce){return Ce!==B})),B()},Ee(this,q))),Ee(this,q))}},{key:"cancel",value:function(){Ee(this,q).isCanceled=!0;var B=Ee(this,q).onCancelList;Ee(this,q).onCancelList=[];var X=se(B),me;try{for(X.s();!(me=X.n()).done;){var Ce=me.value;if(typeof Ce=="function")try{Ce()}catch(we){console.error(we)}}}catch(we){X.e(we)}finally{X.f()}}},{key:"isCanceled",value:function(){return Ee(this,q).isCanceled===!0}}]),k}(),ft=function(k){Y(B,k);var j=te(B);function B(X){return D(this,B),j.call(this,{executor:X})}return ee(B)}(Je);W.CancelablePromise=ft,ve(ft,"all",function(j){return It(j,Promise.all(j))}),ve(ft,"allSettled",function(j){return It(j,Promise.allSettled(j))}),ve(ft,"any",function(j){return It(j,Promise.any(j))}),ve(ft,"race",function(j){return It(j,Promise.race(j))}),ve(ft,"resolve",function(j){return Vt(Promise.resolve(j))}),ve(ft,"reject",function(j){return Vt(Promise.reject(j))}),ve(ft,"isCancelable",ze);var rn=ft;W.default=rn;function Vt(k){return Pt(k,St())}function ze(k){return k instanceof ft||k instanceof Je}function Qe(k,j){if(k)return function(B){if(!j.isCanceled){var X=k(B);return ze(X)&&j.onCancelList.push(X.cancel),X}return B}}function Pt(k,j){return new Je({internals:j,promise:k})}function It(k,j){var B=St();return B.onCancelList.push(function(){var X=se(k),me;try{for(X.s();!(me=X.n()).done;){var Ce=me.value;ze(Ce)&&Ce.cancel()}}catch(we){X.e(we)}finally{X.f()}}),new Je({internals:B,promise:j})}function St(){return{isCanceled:!1,onCancelList:[]}}})},61118:(ge,K,$)=>{"use strict";$.d(K,{A:()=>H});var M=$(71354),z=$.n(M),oe=$(76314),W=$.n(oe),Y=W()(z());Y.push([ge.id,`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-dba65098] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
li.action.active[data-v-dba65098] {
  background-color: var(--color-background-hover);
  border-radius: 6px;
  padding: 0;
}
.action--disabled[data-v-dba65098] {
  pointer-events: none;
  opacity: 0.5;
}
.action--disabled[data-v-dba65098]:hover, .action--disabled[data-v-dba65098]:focus {
  cursor: default;
  opacity: 0.5;
}
.action--disabled *[data-v-dba65098] {
  opacity: 1 !important;
}
.action-button[data-v-dba65098] {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  padding-right: calc((var(--default-clickable-area) - 16px) / 2);
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  color: var(--color-main-text);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  font-weight: normal;
  font-size: var(--default-font-size);
  line-height: var(--default-clickable-area);
}
.action-button > span[data-v-dba65098] {
  cursor: pointer;
  white-space: nowrap;
}
.action-button__icon[data-v-dba65098] {
  width: var(--default-clickable-area);
  height: var(--default-clickable-area);
  opacity: 1;
  background-position: calc((var(--default-clickable-area) - 16px) / 2) center;
  background-size: 16px;
  background-repeat: no-repeat;
}
.action-button[data-v-dba65098] .material-design-icon {
  width: var(--default-clickable-area);
  height: var(--default-clickable-area);
  opacity: 1;
}
.action-button[data-v-dba65098] .material-design-icon .material-design-icon__svg {
  vertical-align: middle;
}
.action-button__longtext-wrapper[data-v-dba65098], .action-button__longtext[data-v-dba65098] {
  max-width: 220px;
  line-height: 1.6em;
  padding: calc((var(--default-clickable-area) - 1.6em) / 2) 0;
  cursor: pointer;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-button__longtext[data-v-dba65098] {
  cursor: pointer;
  white-space: pre-wrap !important;
}
.action-button__name[data-v-dba65098] {
  font-weight: bold;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}
.action-button__menu-icon[data-v-dba65098] {
  margin-left: auto;
  margin-right: calc((var(--default-clickable-area) - 16px) / 2 * -1);
}
.action-button__pressed-icon[data-v-dba65098] {
  margin-left: auto;
  margin-right: calc((var(--default-clickable-area) - 16px) / 2 * -1);
}`,"",{version:3,sources:["webpack://./node_modules/@nextcloud/vue/dist/assets/NcActionButton-CNq6xIdS.css"],names:[],mappings:"AAAA;;;EAGE;AACF;;;EAGE;AACF;;CAEC;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;;;EAGE;AACF;EACE,+CAA+C;EAC/C,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,oBAAoB;EACpB,YAAY;AACd;AACA;EACE,eAAe;EACf,YAAY;AACd;AACA;EACE,qBAAqB;AACvB;AACA;EACE,aAAa;EACb,uBAAuB;EACvB,WAAW;EACX,YAAY;EACZ,SAAS;EACT,UAAU;EACV,+DAA+D;EAC/D,sBAAsB;EACtB,eAAe;EACf,mBAAmB;EACnB,6BAA6B;EAC7B,SAAS;EACT,gBAAgB;EAChB,6BAA6B;EAC7B,gBAAgB;EAChB,mBAAmB;EACnB,mCAAmC;EACnC,0CAA0C;AAC5C;AACA;EACE,eAAe;EACf,mBAAmB;AACrB;AACA;EACE,oCAAoC;EACpC,qCAAqC;EACrC,UAAU;EACV,4EAA4E;EAC5E,qBAAqB;EACrB,4BAA4B;AAC9B;AACA;EACE,oCAAoC;EACpC,qCAAqC;EACrC,UAAU;AACZ;AACA;EACE,sBAAsB;AACxB;AACA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,4DAA4D;EAC5D,eAAe;EACf,iBAAiB;EACjB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,eAAe;EACf,gCAAgC;AAClC;AACA;EACE,iBAAiB;EACjB,uBAAuB;EACvB,gBAAgB;EAChB,mBAAmB;EACnB,eAAe;EACf,qBAAqB;AACvB;AACA;EACE,iBAAiB;EACjB,mEAAmE;AACrE;AACA;EACE,iBAAiB;EACjB,mEAAmE;AACrE",sourcesContent:[`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-dba65098] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
li.action.active[data-v-dba65098] {
  background-color: var(--color-background-hover);
  border-radius: 6px;
  padding: 0;
}
.action--disabled[data-v-dba65098] {
  pointer-events: none;
  opacity: 0.5;
}
.action--disabled[data-v-dba65098]:hover, .action--disabled[data-v-dba65098]:focus {
  cursor: default;
  opacity: 0.5;
}
.action--disabled *[data-v-dba65098] {
  opacity: 1 !important;
}
.action-button[data-v-dba65098] {
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  padding-right: calc((var(--default-clickable-area) - 16px) / 2);
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
  color: var(--color-main-text);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  font-weight: normal;
  font-size: var(--default-font-size);
  line-height: var(--default-clickable-area);
}
.action-button > span[data-v-dba65098] {
  cursor: pointer;
  white-space: nowrap;
}
.action-button__icon[data-v-dba65098] {
  width: var(--default-clickable-area);
  height: var(--default-clickable-area);
  opacity: 1;
  background-position: calc((var(--default-clickable-area) - 16px) / 2) center;
  background-size: 16px;
  background-repeat: no-repeat;
}
.action-button[data-v-dba65098] .material-design-icon {
  width: var(--default-clickable-area);
  height: var(--default-clickable-area);
  opacity: 1;
}
.action-button[data-v-dba65098] .material-design-icon .material-design-icon__svg {
  vertical-align: middle;
}
.action-button__longtext-wrapper[data-v-dba65098], .action-button__longtext[data-v-dba65098] {
  max-width: 220px;
  line-height: 1.6em;
  padding: calc((var(--default-clickable-area) - 1.6em) / 2) 0;
  cursor: pointer;
  text-align: start;
  overflow: hidden;
  text-overflow: ellipsis;
}
.action-button__longtext[data-v-dba65098] {
  cursor: pointer;
  white-space: pre-wrap !important;
}
.action-button__name[data-v-dba65098] {
  font-weight: bold;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}
.action-button__menu-icon[data-v-dba65098] {
  margin-left: auto;
  margin-right: calc((var(--default-clickable-area) - 16px) / 2 * -1);
}
.action-button__pressed-icon[data-v-dba65098] {
  margin-left: auto;
  margin-right: calc((var(--default-clickable-area) - 16px) / 2 * -1);
}`],sourceRoot:""}]);const H=Y},63202:(ge,K,$)=>{"use strict";$.d(K,{A:()=>H});var M=$(71354),z=$.n(M),oe=$(76314),W=$.n(oe),Y=W()(z());Y.push([ge.id,`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-b9668c9e] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.app-navigation-caption[data-v-b9668c9e] {
  color: var(--color-text-maxcontrast);
  line-height: var(--default-clickable-area);
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: none !important;
  user-select: none;
  pointer-events: none;
  margin-left: 12px;
  padding-right: 14px;
  height: var(--default-clickable-area);
  display: flex;
  align-items: center;
}`,"",{version:3,sources:["webpack://./node_modules/@nextcloud/vue/dist/assets/NcActionCaption-JVhz4Wp7.css"],names:[],mappings:"AAAA;;;EAGE;AACF;;;EAGE;AACF;;CAEC;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,oCAAoC;EACpC,0CAA0C;EAC1C,mBAAmB;EACnB,uBAAuB;EACvB,2BAA2B;EAC3B,iBAAiB;EACjB,oBAAoB;EACpB,iBAAiB;EACjB,mBAAmB;EACnB,qCAAqC;EACrC,aAAa;EACb,mBAAmB;AACrB",sourcesContent:[`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-b9668c9e] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.app-navigation-caption[data-v-b9668c9e] {
  color: var(--color-text-maxcontrast);
  line-height: var(--default-clickable-area);
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: none !important;
  user-select: none;
  pointer-events: none;
  margin-left: 12px;
  padding-right: 14px;
  height: var(--default-clickable-area);
  display: flex;
  align-items: center;
}`],sourceRoot:""}]);const H=Y},27611:(ge,K,$)=>{"use strict";$.d(K,{A:()=>H});var M=$(71354),z=$.n(M),oe=$(76314),W=$.n(oe),Y=W()(z());Y.push([ge.id,`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-3e2324b7] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.action-separator[data-v-3e2324b7] {
  height: 0;
  margin: 5px 10px 5px 15px;
  border-bottom: 1px solid var(--color-border-dark);
  cursor: default;
}`,"",{version:3,sources:["webpack://./node_modules/@nextcloud/vue/dist/assets/NcActionSeparator-Ct2RnclR.css"],names:[],mappings:"AAAA;;;EAGE;AACF;;;EAGE;AACF;;CAEC;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,SAAS;EACT,yBAAyB;EACzB,iDAAiD;EACjD,eAAe;AACjB",sourcesContent:[`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-3e2324b7] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.action-separator[data-v-3e2324b7] {
  height: 0;
  margin: 5px 10px 5px 15px;
  border-bottom: 1px solid var(--color-border-dark);
  cursor: default;
}`],sourceRoot:""}]);const H=Y},65027:(ge,K,$)=>{"use strict";$.d(K,{A:()=>H});var M=$(71354),z=$.n(M),oe=$(76314),W=$.n(oe),Y=W()(z());Y.push([ge.id,`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-5e97fe1f] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.progress-bar[data-v-5e97fe1f] {
  display: block;
  height: var(--progress-bar-height);
  --progress-bar-color: var(--497e8a2b);
}
.progress-bar--linear[data-v-5e97fe1f] {
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--color-background-dark);
  border-radius: calc(var(--progress-bar-height) / 2);
}
.progress-bar--linear[data-v-5e97fe1f]::-webkit-progress-bar {
  height: var(--progress-bar-height);
  background-color: transparent;
}
.progress-bar--linear[data-v-5e97fe1f]::-webkit-progress-value {
  background: var(--progress-bar-color, var(--gradient-primary-background));
  border-radius: calc(var(--progress-bar-height) / 2);
}
.progress-bar--linear[data-v-5e97fe1f]::-moz-progress-bar {
  background: var(--progress-bar-color, var(--gradient-primary-background));
  border-radius: calc(var(--progress-bar-height) / 2);
}
.progress-bar--circular[data-v-5e97fe1f] {
  width: var(--progress-bar-height);
  color: var(--progress-bar-color, var(--color-primary-element));
}
.progress-bar--error[data-v-5e97fe1f] {
  color: var(--color-error) !important;
}
.progress-bar--error[data-v-5e97fe1f]::-moz-progress-bar {
  background: var(--color-error) !important;
}
.progress-bar--error[data-v-5e97fe1f]::-webkit-progress-value {
  background: var(--color-error) !important;
}`,"",{version:3,sources:["webpack://./node_modules/@nextcloud/vue/dist/assets/NcProgressBar--z-WqmX4.css"],names:[],mappings:"AAAA;;;EAGE;AACF;;;EAGE;AACF;;CAEC;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,oBAAoB;EACpB,mBAAmB;EACnB,uBAAuB;AACzB;AACA;EACE,cAAc;EACd,kCAAkC;EAClC,qCAAqC;AACvC;AACA;EACE,WAAW;EACX,gBAAgB;EAChB,SAAS;EACT,UAAU;EACV,wCAAwC;EACxC,mDAAmD;AACrD;AACA;EACE,kCAAkC;EAClC,6BAA6B;AAC/B;AACA;EACE,yEAAyE;EACzE,mDAAmD;AACrD;AACA;EACE,yEAAyE;EACzE,mDAAmD;AACrD;AACA;EACE,iCAAiC;EACjC,8DAA8D;AAChE;AACA;EACE,oCAAoC;AACtC;AACA;EACE,yCAAyC;AAC3C;AACA;EACE,yCAAyC;AAC3C",sourcesContent:[`/**
 * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/**
 * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-5e97fe1f] {
  display: flex;
  align-self: center;
  justify-self: center;
  align-items: center;
  justify-content: center;
}
.progress-bar[data-v-5e97fe1f] {
  display: block;
  height: var(--progress-bar-height);
  --progress-bar-color: var(--497e8a2b);
}
.progress-bar--linear[data-v-5e97fe1f] {
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--color-background-dark);
  border-radius: calc(var(--progress-bar-height) / 2);
}
.progress-bar--linear[data-v-5e97fe1f]::-webkit-progress-bar {
  height: var(--progress-bar-height);
  background-color: transparent;
}
.progress-bar--linear[data-v-5e97fe1f]::-webkit-progress-value {
  background: var(--progress-bar-color, var(--gradient-primary-background));
  border-radius: calc(var(--progress-bar-height) / 2);
}
.progress-bar--linear[data-v-5e97fe1f]::-moz-progress-bar {
  background: var(--progress-bar-color, var(--gradient-primary-background));
  border-radius: calc(var(--progress-bar-height) / 2);
}
.progress-bar--circular[data-v-5e97fe1f] {
  width: var(--progress-bar-height);
  color: var(--progress-bar-color, var(--color-primary-element));
}
.progress-bar--error[data-v-5e97fe1f] {
  color: var(--color-error) !important;
}
.progress-bar--error[data-v-5e97fe1f]::-moz-progress-bar {
  background: var(--color-error) !important;
}
.progress-bar--error[data-v-5e97fe1f]::-webkit-progress-value {
  background: var(--color-error) !important;
}`],sourceRoot:""}]);const H=Y},4417:ge=>{"use strict";ge.exports=function(K,$){return $||($={}),K&&(K=String(K.__esModule?K.default:K),/^['"].*['"]$/.test(K)&&(K=K.slice(1,-1)),$.hash&&(K+=$.hash),/["'() \t\n]|(%20)/.test(K)||$.needQuotes?'"'.concat(K.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):K)}},17334:ge=>{function K($,M=100,z={}){if(typeof $!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof $}\`.`);if(M<0)throw new RangeError("`wait` must not be negative.");const{immediate:oe}=typeof z=="boolean"?{immediate:z}:z;let W,Y,H,te,J;function ae(){const se=W,ie=Y;return W=void 0,Y=void 0,J=$.apply(se,ie),J}function ue(){const se=Date.now()-te;se<M&&se>=0?H=setTimeout(ue,M-se):(H=void 0,oe||(J=ae()))}const de=function(...se){if(W&&this!==W&&Object.getPrototypeOf(this)===Object.getPrototypeOf(W))throw new Error("Debounced method called with different contexts of the same prototype.");W=this,Y=se,te=Date.now();const ie=oe&&!H;return H||(H=setTimeout(ue,M)),ie&&(J=ae()),J};return Object.defineProperty(de,"isPending",{get(){return H!==void 0}}),de.clear=()=>{H&&(clearTimeout(H),H=void 0)},de.flush=()=>{H&&de.trigger()},de.trigger=()=>{J=ae(),de.clear()},de}ge.exports.debounce=K,ge.exports=K},26368:ge=>{"use strict";var K=Object.prototype.hasOwnProperty,$="~";function M(){}Object.create&&(M.prototype=Object.create(null),new M().__proto__||($=!1));function z(H,te,J){this.fn=H,this.context=te,this.once=J||!1}function oe(H,te,J,ae,ue){if(typeof J!="function")throw new TypeError("The listener must be a function");var de=new z(J,ae||H,ue),se=$?$+te:te;return H._events[se]?H._events[se].fn?H._events[se]=[H._events[se],de]:H._events[se].push(de):(H._events[se]=de,H._eventsCount++),H}function W(H,te){--H._eventsCount===0?H._events=new M:delete H._events[te]}function Y(){this._events=new M,this._eventsCount=0}Y.prototype.eventNames=function(){var te=[],J,ae;if(this._eventsCount===0)return te;for(ae in J=this._events)K.call(J,ae)&&te.push($?ae.slice(1):ae);return Object.getOwnPropertySymbols?te.concat(Object.getOwnPropertySymbols(J)):te},Y.prototype.listeners=function(te){var J=$?$+te:te,ae=this._events[J];if(!ae)return[];if(ae.fn)return[ae.fn];for(var ue=0,de=ae.length,se=new Array(de);ue<de;ue++)se[ue]=ae[ue].fn;return se},Y.prototype.listenerCount=function(te){var J=$?$+te:te,ae=this._events[J];return ae?ae.fn?1:ae.length:0},Y.prototype.emit=function(te,J,ae,ue,de,se){var ie=$?$+te:te;if(!this._events[ie])return!1;var V=this._events[ie],D=arguments.length,Q,ee;if(V.fn){switch(V.once&&this.removeListener(te,V.fn,void 0,!0),D){case 1:return V.fn.call(V.context),!0;case 2:return V.fn.call(V.context,J),!0;case 3:return V.fn.call(V.context,J,ae),!0;case 4:return V.fn.call(V.context,J,ae,ue),!0;case 5:return V.fn.call(V.context,J,ae,ue,de),!0;case 6:return V.fn.call(V.context,J,ae,ue,de,se),!0}for(ee=1,Q=new Array(D-1);ee<D;ee++)Q[ee-1]=arguments[ee];V.fn.apply(V.context,Q)}else{var ve=V.length,he;for(ee=0;ee<ve;ee++)switch(V[ee].once&&this.removeListener(te,V[ee].fn,void 0,!0),D){case 1:V[ee].fn.call(V[ee].context);break;case 2:V[ee].fn.call(V[ee].context,J);break;case 3:V[ee].fn.call(V[ee].context,J,ae);break;case 4:V[ee].fn.call(V[ee].context,J,ae,ue);break;default:if(!Q)for(he=1,Q=new Array(D-1);he<D;he++)Q[he-1]=arguments[he];V[ee].fn.apply(V[ee].context,Q)}}return!0},Y.prototype.on=function(te,J,ae){return oe(this,te,J,ae,!1)},Y.prototype.once=function(te,J,ae){return oe(this,te,J,ae,!0)},Y.prototype.removeListener=function(te,J,ae,ue){var de=$?$+te:te;if(!this._events[de])return this;if(!J)return W(this,de),this;var se=this._events[de];if(se.fn)se.fn===J&&(!ue||se.once)&&(!ae||se.context===ae)&&W(this,de);else{for(var ie=0,V=[],D=se.length;ie<D;ie++)(se[ie].fn!==J||ue&&!se[ie].once||ae&&se[ie].context!==ae)&&V.push(se[ie]);V.length?this._events[de]=V.length===1?V[0]:V:W(this,de)}return this},Y.prototype.removeAllListeners=function(te){var J;return te?(J=$?$+te:te,this._events[J]&&W(this,J)):(this._events=new M,this._eventsCount=0),this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.addListener=Y.prototype.on,Y.prefixed=$,Y.EventEmitter=Y,ge.exports=Y},44845:(ge,K,$)=>{"use strict";$.r(K),$.d(K,{default:()=>_n});var M=$(85471),z=$(5270),oe=$(21379),W=$(25500),Y=$(32981),H=$(63814),te=$(82680),J=$(39649),ae=$(65043),ue=$(5460),de=$(21777),se=$(54914),ie=$(9165),V=$(61338),D=$(36117),Q=$(57975);const ee={name:"FileIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ve=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon file-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},he=[],$e=(0,z.a)(ee,ve,he,!1,null,null);const Ee=$e.exports,Fe=()=>{var ne,E,I;const x=(0,Y.C)("files","config",null),G=(0,M.KR)((ne=x?.show_hidden)!=null?ne:!0),re=(0,M.KR)((E=x?.sort_favorites_first)!=null?E:!0),be=(0,M.KR)((I=x?.crop_image_previews)!=null?I:!0);return(0,M.sV)(async()=>{var Te,Se,xe,Le,ke,ut;if((0,te.f)())console.debug("Skip loading files settings - currently on public share");else try{const{data:Pe}=await ae.Ay.get((0,H.Jv)("/apps/files/api/v1/configs"));G.value=(Se=(Te=Pe?.data)==null?void 0:Te.show_hidden)!=null?Se:!1,re.value=(Le=(xe=Pe?.data)==null?void 0:xe.sort_favorites_first)!=null?Le:!0,be.value=(ut=(ke=Pe?.data)==null?void 0:ke.crop_image_previews)!=null?ut:!0}catch(Pe){console.error("Could not load files settings",Pe),(0,z.l)((0,z.t)("Could not load files settings"))}}),{showHiddenFiles:G,sortFavoritesFirst:re,cropImagePreviews:be}},nt=ne=>{var E,I,x,G,re,be,Te,Se,xe,Le,ke,ut;const Pe=ct=>ct==="asc"?"ascending":ct==="desc"?"descending":"none",Ge=(0,Y.C)("files","viewConfigs",null),rt=(0,M.KR)({sortBy:(I=(E=Ge?.files)==null?void 0:E.sorting_mode)!=null?I:"basename",order:Pe((G=(x=Ge?.files)==null?void 0:x.sorting_direction)!=null?G:"asc")}),_t=(0,M.KR)({sortBy:(be=(re=Ge?.recent)==null?void 0:re.sorting_mode)!=null?be:"basename",order:Pe((Se=(Te=Ge?.recent)==null?void 0:Te.sorting_direction)!=null?Se:"asc")}),De=(0,M.KR)({sortBy:(Le=(xe=Ge?.favorites)==null?void 0:xe.sorting_mode)!=null?Le:"basename",order:Pe((ut=(ke=Ge?.favorites)==null?void 0:ke.sorting_direction)!=null?ut:"asc")});(0,M.sV)(async()=>{var ct,Tt,Lt,Bt,Oe,Me,yt,Ct,wn,en,Cn,Wt,Xn,Nn,xn;if((0,te.f)())console.debug("Skip loading files views - currently on public share");else try{const{data:dt}=await ae.Ay.get((0,H.Jv)("/apps/files/api/v1/views"));rt.value={sortBy:(Lt=(Tt=(ct=dt?.data)==null?void 0:ct.files)==null?void 0:Tt.sorting_mode)!=null?Lt:"basename",order:Pe((Oe=(Bt=dt?.data)==null?void 0:Bt.files)==null?void 0:Oe.sorting_direction)},De.value={sortBy:(Ct=(yt=(Me=dt?.data)==null?void 0:Me.favorites)==null?void 0:yt.sorting_mode)!=null?Ct:"basename",order:Pe((en=(wn=dt?.data)==null?void 0:wn.favorites)==null?void 0:en.sorting_direction)},_t.value={sortBy:(Xn=(Wt=(Cn=dt?.data)==null?void 0:Cn.recent)==null?void 0:Wt.sorting_mode)!=null?Xn:"basename",order:Pe((xn=(Nn=dt?.data)==null?void 0:Nn.recent)==null?void 0:xn.sorting_direction)}}catch(dt){console.error("Could not load files views",dt),(0,z.l)((0,z.t)("Could not load files views"))}});const We=(0,M.EW)(()=>(0,J.BA)(ne||"files")==="files"?rt.value:(0,J.BA)(ne)==="recent"?_t.value:De.value),mt=(0,M.EW)(()=>We.value.sortBy),Be=(0,M.EW)(()=>We.value.order);return{filesViewConfig:rt,favoritesViewConfig:De,recentViewConfig:_t,currentConfig:We,sortBy:mt,order:Be}},Ae={name:"MenuUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ye=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon menu-up-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M7,15L12,10L17,15H7Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},fe=[],q=(0,z.a)(Ae,Ye,fe,!1,null,null);const ce=q.exports,Je={name:"MenuDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ft=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon menu-down-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M7,10L12,15L17,10H7Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},rn=[],Vt=(0,z.a)(Je,ft,rn,!1,null,null);const ze=Vt.exports,Qe={"file-picker__file-icon":"_file-picker__file-icon_19mjt_9"},Pt=(0,M.pM)({__name:"LoadingTableRow",props:{showCheckbox:{type:Boolean}},setup(ne){return{__sfc:!0,fileListIconStyles:Qe}}});var It=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I("tr",{staticClass:"file-picker__row loading-row",attrs:{"aria-hidden":"true"}},[E.showCheckbox?I("td",{staticClass:"row-checkbox"},[I("span")]):E._e(),I("td",{staticClass:"row-name"},[I("div",{staticClass:"row-wrapper"},[I("span",{class:x.fileListIconStyles["file-picker__file-icon"]}),I("span")])]),E._m(0),E._m(1)])},St=[function(){var ne=this,E=ne._self._c;return ne._self._setupProxy,E("td",{staticClass:"row-size"},[E("span")])},function(){var ne=this,E=ne._self._c;return ne._self._setupProxy,E("td",{staticClass:"row-modified"},[E("span")])}],k=(0,z.a)(Pt,It,St,!1,null,"15187afc");const j=k.exports,B=new ue.A({concurrency:5});function X(ne){const{resolve:E,promise:I}=Promise.withResolvers();return B.add(()=>{const x=new Image;return x.onerror=()=>E(!1),x.onload=()=>E(!0),x.src=ne,I}),I}function me(ne,E={}){var I;E={size:32,cropPreview:!1,mimeFallback:!0,...E};try{const x=((I=ne.attributes)==null?void 0:I.previewUrl)||(0,H.Jv)("/core/preview?fileId={fileid}",{fileid:ne.fileid});let G;try{G=new URL(x)}catch{G=new URL(x,window.location.origin)}return G.searchParams.set("x","".concat(E.size)),G.searchParams.set("y","".concat(E.size)),G.searchParams.set("mimeFallback","".concat(E.mimeFallback)),G.searchParams.set("a",E.cropPreview===!0?"0":"1"),G.searchParams.set("c","".concat(ne.attributes.etag)),G}catch{return null}}const Ce=(ne,E)=>{const I=(0,M.KR)(null),x=(0,M.KR)(!1);return(0,M.nT)(()=>{x.value=!1,I.value=me((0,J.BA)(ne),(0,J.BA)(E||{})),I.value&&X(I.value.href).then(G=>{x.value=G})}),{previewURL:I,previewLoaded:x}},we={name:"FolderIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Et=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon folder-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},qe=[],et=(0,z.a)(we,Et,qe,!1,null,null);const ot=et.exports,At={name:"FilePreview"},ht=(0,M.pM)({...At,props:{node:null,cropImagePreviews:{type:Boolean}},setup(ne){const E=ne,I=(0,M.KR)(Qe),{previewURL:x,previewLoaded:G}=Ce((0,M.lW)(E,"node"),(0,M.EW)(()=>({cropPreview:E.cropImagePreviews}))),re=(0,M.EW)(()=>E.node.type===oe.pt.File);return{__sfc:!0,fileListIconStyles:I,props:E,previewURL:x,previewLoaded:G,isFile:re,IconFile:Ee,IconFolder:ot}}});var fn=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I("div",{class:x.fileListIconStyles["file-picker__file-icon"],style:x.previewLoaded?{backgroundImage:"url(".concat(x.previewURL,")")}:void 0},[x.previewLoaded?E._e():[x.isFile?I(x.IconFile,{attrs:{size:20}}):I(x.IconFolder,{attrs:{size:20}})]],2)},sn=[],Kt=(0,z.a)(ht,fn,sn,!1,null,null);const on=Kt.exports,He=(0,M.pM)({__name:"FileListRow",props:{allowPickDirectory:{type:Boolean},selected:{type:Boolean},showCheckbox:{type:Boolean},canPick:{type:Boolean},node:null,cropImagePreviews:{type:Boolean}},emits:["update:selected","enter-directory"],setup(ne,{emit:E}){const I=ne,x=(0,M.EW)(()=>{var Le;return((Le=I.node.attributes)==null?void 0:Le.displayName)||I.node.basename.slice(0,I.node.extension?-I.node.extension.length:void 0)}),G=(0,M.EW)(()=>I.node.extension),re=(0,M.EW)(()=>I.node.type===oe.pt.Folder),be=(0,M.EW)(()=>I.canPick&&(I.allowPickDirectory||!re.value));function Te(){E("update:selected",!I.selected)}function Se(){re.value?E("enter-directory",I.node):Te()}function xe(Le){Le.key==="Enter"&&Se()}return{__sfc:!0,props:I,emit:E,displayName:x,fileExtension:G,isDirectory:re,isPickable:be,toggleSelected:Te,handleClick:Se,handleKeyDown:xe,formatFileSize:oe.v7,NcCheckboxRadioSwitch:W.AO,NcDateTime:W.lT,t:z.t,FilePreview:on}}});var tt=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I("tr",E._g({class:["file-picker__row",{"file-picker__row--selected":E.selected&&!E.showCheckbox}],attrs:{tabindex:E.showCheckbox&&!x.isDirectory?void 0:0,"aria-selected":x.isPickable?E.selected:void 0,"data-filename":E.node.basename,"data-testid":"file-list-row"}},{click:x.handleClick,...!E.showCheckbox||x.isDirectory?{keydown:x.handleKeyDown}:{}}),[E.showCheckbox?I("td",{staticClass:"row-checkbox",on:{click:function(G){return G.stopPropagation(),(()=>{}).apply(null,arguments)}}},[I(x.NcCheckboxRadioSwitch,{attrs:{"aria-label":x.t("Select the row for {nodename}",{nodename:x.displayName}),checked:E.selected,disabled:!x.isPickable,"data-testid":"row-checkbox"},on:{"update:checked":x.toggleSelected}})],1):E._e(),I("td",{staticClass:"row-name"},[I("div",{staticClass:"file-picker__name-container",attrs:{"data-testid":"row-name"}},[I(x.FilePreview,{attrs:{node:E.node,"crop-image-previews":E.cropImagePreviews}}),I("div",{staticClass:"file-picker__file-name",attrs:{title:x.displayName},domProps:{textContent:E._s(x.displayName)}}),I("div",{staticClass:"file-picker__file-extension",domProps:{textContent:E._s(x.fileExtension)}})],1)]),I("td",{staticClass:"row-size"},[E._v(" "+E._s(x.formatFileSize(E.node.size||0))+" ")]),I("td",{staticClass:"row-modified"},[I(x.NcDateTime,{attrs:{timestamp:E.node.mtime,"ignore-seconds":!0}})],1)])},Dt=[],In=(0,z.a)(He,tt,Dt,!1,null,"cb12dccb");const Zt=In.exports,Tn=(0,M.pM)({__name:"FileList",props:{currentView:null,multiselect:{type:Boolean},allowPickDirectory:{type:Boolean},loading:{type:Boolean},files:null,selectedFiles:null,path:null},emits:["update:path","update:selectedFiles"],setup(ne,{emit:E}){const I=ne,x=(0,M.KR)(),{currentConfig:G}=nt(I.currentView),re=(0,M.EW)(()=>{var Be;return(Be=x.value)!=null?Be:G.value}),be=(0,M.EW)(()=>re.value.sortBy==="basename"?re.value.order==="none"?void 0:re.value.order:void 0),Te=(0,M.EW)(()=>re.value.sortBy==="size"?re.value.order==="none"?void 0:re.value.order:void 0),Se=(0,M.EW)(()=>re.value.sortBy==="mtime"?re.value.order==="none"?void 0:re.value.order:void 0),xe=Be=>{re.value.sortBy===Be?re.value.order==="ascending"?x.value={sortBy:re.value.sortBy,order:"descending"}:x.value={sortBy:re.value.sortBy,order:"ascending"}:x.value={sortBy:Be,order:"ascending"}},{sortFavoritesFirst:Le,cropImagePreviews:ke}=Fe(),ut=(0,M.EW)(()=>(0,oe.ur)(I.files,{sortFoldersFirst:!0,sortFavoritesFirst:Le.value,sortingOrder:re.value.order==="descending"?"desc":"asc",sortingMode:re.value.sortBy})),Pe=(0,M.EW)(()=>I.files.filter(Be=>I.allowPickDirectory||Be.type!==oe.pt.Folder)),Ge=(0,M.EW)(()=>!I.loading&&I.selectedFiles.length>0&&I.selectedFiles.length>=Pe.value.length);function rt(){I.selectedFiles.length<Pe.value.length?E("update:selectedFiles",Pe.value):E("update:selectedFiles",[])}function _t(Be){I.selectedFiles.includes(Be)?E("update:selectedFiles",I.selectedFiles.filter(ct=>ct.path!==Be.path)):I.multiselect?E("update:selectedFiles",[...I.selectedFiles,Be]):E("update:selectedFiles",[Be])}function De(Be){E("update:path",Be.path)}const We=(0,M.KR)(4),mt=(0,M.KR)();{const Be=()=>(0,M.dY)(()=>{var ct,Tt,Lt,Bt,Oe;const Me=((Tt=(ct=mt.value)==null?void 0:ct.parentElement)==null?void 0:Tt.children)||[];let yt=((Bt=(Lt=mt.value)==null?void 0:Lt.parentElement)==null?void 0:Bt.clientHeight)||450;for(let Ct=0;Ct<Me.length;Ct++)(Oe=mt.value)!=null&&Oe.isSameNode(Me[Ct])||(yt-=Me[Ct].clientHeight);We.value=Math.max(1,Math.floor((yt-50)/50))});(0,M.sV)(()=>{window.addEventListener("resize",Be),Be()}),(0,M.hi)(()=>{window.removeEventListener("resize",Be)})}return{__sfc:!0,props:I,emit:E,customSortingConfig:x,filesAppSorting:G,sortingConfig:re,sortByName:be,sortBySize:Te,sortByModified:Se,toggleSorting:xe,sortFavoritesFirst:Le,cropImagePreviews:ke,sortedFiles:ut,selectableFiles:Pe,allSelected:Ge,onSelectAll:rt,onNodeSelected:_t,onChangeDirectory:De,skeletonNumber:We,fileContainer:mt,NcButton:W.x1,NcCheckboxRadioSwitch:W.AO,t:z.t,IconSortAscending:ce,IconSortDescending:ze,LoadingTableRow:j,FileListRow:Zt}}});var Ut=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I("div",{ref:"fileContainer",staticClass:"file-picker__files"},[I("table",[I("thead",[I("tr",[E.multiselect?I("th",{staticClass:"row-checkbox"},[I("span",{staticClass:"hidden-visually"},[E._v(" "+E._s(x.t("Select entry"))+" ")]),E.multiselect?I(x.NcCheckboxRadioSwitch,{attrs:{"aria-label":x.t("Select all entries"),checked:x.allSelected,"data-testid":"select-all-checkbox"},on:{"update:checked":x.onSelectAll}}):E._e()],1):E._e(),I("th",{staticClass:"row-name",attrs:{"aria-sort":x.sortByName}},[I("div",{staticClass:"header-wrapper"},[I("span",{staticClass:"file-picker__header-preview"}),I(x.NcButton,{attrs:{wide:!0,type:"tertiary","data-test":"file-picker_sort-name"},on:{click:function(G){return x.toggleSorting("basename")}},scopedSlots:E._u([{key:"icon",fn:function(){return[x.sortByName==="ascending"?I(x.IconSortAscending,{attrs:{size:20}}):x.sortByName==="descending"?I(x.IconSortDescending,{attrs:{size:20}}):I("span",{staticStyle:{width:"44px"}})]},proxy:!0}])},[E._v(" "+E._s(x.t("Name"))+" ")])],1)]),I("th",{staticClass:"row-size",attrs:{"aria-sort":x.sortBySize}},[I(x.NcButton,{attrs:{wide:!0,type:"tertiary"},on:{click:function(G){return x.toggleSorting("size")}},scopedSlots:E._u([{key:"icon",fn:function(){return[x.sortBySize==="ascending"?I(x.IconSortAscending,{attrs:{size:20}}):x.sortBySize==="descending"?I(x.IconSortDescending,{attrs:{size:20}}):I("span",{staticStyle:{width:"44px"}})]},proxy:!0}])},[E._v(" "+E._s(x.t("Size"))+" ")])],1),I("th",{staticClass:"row-modified",attrs:{"aria-sort":x.sortByModified}},[I(x.NcButton,{attrs:{wide:!0,type:"tertiary"},on:{click:function(G){return x.toggleSorting("mtime")}},scopedSlots:E._u([{key:"icon",fn:function(){return[x.sortByModified==="ascending"?I(x.IconSortAscending,{attrs:{size:20}}):x.sortByModified==="descending"?I(x.IconSortDescending,{attrs:{size:20}}):I("span",{staticStyle:{width:"44px"}})]},proxy:!0}])},[E._v(" "+E._s(x.t("Modified"))+" ")])],1)])]),I("tbody",[E.loading?E._l(x.skeletonNumber,function(G){return I(x.LoadingTableRow,{key:G,attrs:{"show-checkbox":E.multiselect}})}):E._l(x.sortedFiles,function(G){return I(x.FileListRow,{key:G.fileid||G.path,attrs:{"allow-pick-directory":E.allowPickDirectory,"show-checkbox":E.multiselect,"can-pick":E.multiselect||E.selectedFiles.length===0||E.selectedFiles.includes(G),selected:E.selectedFiles.includes(G),node:G,"crop-image-previews":x.cropImagePreviews},on:{"update:selected":function(re){return x.onNodeSelected(G)},"enter-directory":x.onChangeDirectory}})})],2)])])},On=[],Sn=(0,z.a)(Tn,Ut,On,!1,null,"006fdbd0");const zt=Sn.exports,qn={name:"HomeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Yt=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon home-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},Rt=[],an=(0,z.a)(qn,Yt,Rt,!1,null,null);const $n=an.exports,hn={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Jt=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},ln=[],pn=(0,z.a)(hn,Jt,ln,!1,null,null);const Qt=pn.exports,st=(0,M.pM)({__name:"FilePickerBreadcrumbs",props:{path:null,showMenu:{type:Boolean}},emits:["update:path","create-node"],setup(ne,{emit:E}){const I=ne,x=(0,M.KR)(!1),G=(0,M.KR)(""),re=(0,M.KR)();function be(){var xe,Le,ke,ut;const Pe=G.value.trim(),Ge=(Le=(xe=re.value)==null?void 0:xe.$el)==null?void 0:Le.querySelector("input");let rt="";return Pe.length===0?rt=(0,z.t)("Folder name cannot be empty."):Pe.includes("/")?rt=(0,z.t)('"/" is not allowed inside a folder name.'):["..","."].includes(Pe)?rt=(0,z.t)('"{name}" is an invalid folder name.',{name:Pe}):(ke=window.OC.config)!=null&&ke.blacklist_files_regex&&Pe.match((ut=window.OC.config)==null?void 0:ut.blacklist_files_regex)&&(rt=(0,z.t)('"{name}" is not an allowed folder name',{name:Pe})),Ge&&Ge.setCustomValidity(rt),rt===""}const Te=function(){const xe=G.value.trim();be()&&(x.value=!1,E("create-node",xe),G.value="")},Se=(0,M.EW)(()=>I.path.split("/").filter(xe=>xe!=="").map((xe,Le,ke)=>({name:xe,path:"/"+ke.slice(0,Le+1).join("/")})));return{__sfc:!0,props:I,emit:E,actionsOpen:x,newNodeName:G,nameInput:re,validateInput:be,onSubmit:Te,pathElements:Se,IconFolder:ot,IconHome:$n,IconPlus:Qt,NcActions:W.B6,NcActionInput:W.Az,NcBreadcrumbs:W.Qz,NcBreadcrumb:W.R1,t:z.t}}});var Ln=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I(x.NcBreadcrumbs,{staticClass:"file-picker__breadcrumbs",scopedSlots:E._u([{key:"default",fn:function(){return[I(x.NcBreadcrumb,{attrs:{name:x.t("All files"),title:x.t("Home")},on:{click:function(G){return x.emit("update:path","/")}},scopedSlots:E._u([{key:"icon",fn:function(){return[I(x.IconHome,{attrs:{size:20}})]},proxy:!0}])}),E._l(x.pathElements,function(G){return I(x.NcBreadcrumb,{key:G.path,attrs:{name:G.name,title:G.path},on:{click:function(re){return x.emit("update:path",G.path)}}})})]},proxy:!0},E.showMenu?{key:"actions",fn:function(){return[I(x.NcActions,{attrs:{"aria-label":x.t("Create directory"),"force-menu":!0,"force-name":!0,"menu-name":x.t("New"),open:x.actionsOpen,type:"secondary"},on:{"update:open":function(G){x.actionsOpen=G},close:function(G){x.newNodeName=""}},scopedSlots:E._u([{key:"icon",fn:function(){return[I(x.IconPlus,{attrs:{size:20}})]},proxy:!0}],null,!1,2971667417)},[I(x.NcActionInput,{ref:"nameInput",attrs:{value:x.newNodeName,label:x.t("New folder"),placeholder:x.t("New folder name")},on:{"update:value":function(G){x.newNodeName=G},submit:x.onSubmit,input:x.validateInput},scopedSlots:E._u([{key:"icon",fn:function(){return[I(x.IconFolder,{attrs:{size:20}})]},proxy:!0}],null,!1,1614167509)})],1)]},proxy:!0}:null],null,!0)})},gn=[],Rn=(0,z.a)(st,Ln,gn,!1,null,"b357227a");const Bn=Rn.exports,Ue={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Fn=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},kn=[],at=(0,z.a)(Ue,Fn,kn,!1,null,null);const Gt=at.exports,un={name:"MagnifyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var mn=function(){var E=this,I=E._self._c;return I("span",E._b({staticClass:"material-design-icon magnify-icon",attrs:{"aria-hidden":E.title?null:"true","aria-label":E.title,role:"img"},on:{click:function(x){return E.$emit("click",x)}}},"span",E.$attrs,!1),[I("svg",{staticClass:"material-design-icon__svg",attrs:{fill:E.fillColor,width:E.size,height:E.size,viewBox:"0 0 24 24"}},[I("path",{attrs:{d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"}},[E.title?I("title",[E._v(E._s(E.title))]):E._e()])])])},Mn=[],jn=(0,z.a)(un,mn,Mn,!1,null,null);const Vn=jn.exports,Dn=ne=>{const E=[{id:"files",label:(0,z.t)("All files"),icon:ie.fEr},{id:"recent",label:(0,z.t)("Recent"),icon:ie.NZC},{id:"favorites",label:(0,z.t)("Favorites"),icon:ie.ZL5}],I=ne.value?E.filter(({id:x})=>x==="files"):E;return{allViews:E,availableViews:I}},Un=(0,M.pM)({__name:"FilePickerNavigation",props:{currentView:null,filterString:null,isCollapsed:{type:Boolean},disabledNavigation:{type:Boolean}},emits:["update:currentView","update:filterString"],setup(ne,{emit:E}){const I=ne,{availableViews:x}=Dn((0,M.KR)((0,de.HW)()===null)),G=(0,M.EW)(()=>{var be;return(be=x.filter(Te=>Te.id===I.currentView)[0])!=null?be:x[0]});return{__sfc:!0,props:I,emit:E,availableViews:x,currentViewObject:G,updateFilterValue:be=>E("update:filterString",be),IconClose:Gt,IconMagnify:Vn,NcButton:W.x1,NcIconSvgWrapper:W.K1,NcSelect:W.EQ,NcTextField:W.v,Fragment:se.F,t:z.t}}});var zn=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I(x.Fragment,[I(x.NcTextField,{staticClass:"file-picker__filter-input",attrs:{value:E.filterString,label:x.t("Filter file list"),"show-trailing-button":!!E.filterString},on:{"update:value":x.updateFilterValue,"trailing-button-click":function(G){return x.updateFilterValue("")}},scopedSlots:E._u([{key:"trailing-button-icon",fn:function(){return[I(x.IconClose,{attrs:{size:16}})]},proxy:!0}])},[I(x.IconMagnify,{attrs:{size:16}})],1),x.availableViews.length>1&&!E.disabledNavigation?[E.isCollapsed?I(x.NcSelect,{attrs:{"aria-label":x.t("Current view selector"),clearable:!1,searchable:!1,options:x.availableViews,value:x.currentViewObject},on:{input:G=>x.emit("update:currentView",G.id)}}):I("ul",{staticClass:"file-picker__side"},E._l(x.availableViews,function(G){return I("li",{key:G.id},[I(x.NcButton,{attrs:{type:E.currentView===G.id?"primary":"tertiary",wide:!0},on:{click:function(re){return E.$emit("update:currentView",G.id)}},scopedSlots:E._u([{key:"icon",fn:function(){return[I(x.NcIconSvgWrapper,{attrs:{path:G.icon,size:20}})]},proxy:!0}],null,!0)},[E._v(" "+E._s(G.label)+" ")])],1)}),0)]:E._e()],2)},Gn=[],vn=(0,z.a)(Un,zn,Gn,!1,null,"b42054b8");const yn=vn.exports;function bn(ne){const E=new AbortController,I=Math.round(Date.now()/1e3)-60*60*24*14;return new D.CancelablePromise(async(x,G,re)=>{re(()=>E.abort());try{const{data:be}=await ne.search("/",{signal:E.signal,details:!0,data:(0,oe.R3)(I)}),Te=be.results.map(Se=>(0,oe.Al)(Se));x(Te)}catch(be){G(be)}})}function pt(ne,E){const I=new AbortController;return new D.CancelablePromise(async(x,G,re)=>{re(()=>I.abort());try{const Te=(await ne.getDirectoryContents((0,Q.join)(oe.lJ,E),{signal:I.signal,details:!0,includeSelf:!0,data:(0,oe.VL)()})).data.map(Se=>(0,oe.Al)(Se));x({contents:Te.filter(({path:Se})=>Se!==E),folder:Te.find(({path:Se})=>Se===E)})}catch(be){G(be)}})}async function gt(ne,E){const{data:I}=await ne.stat((0,Q.join)(oe.lJ,E),{details:!0,data:(0,oe.VL)()});return(0,oe.Al)(I)}const En=function(ne,E){const I=(0,oe.H4)(),x=(0,M.IJ)([]),G=(0,M.IJ)(null),re=(0,M.KR)(!0),be=(0,M.KR)(null);async function Te(xe){const Le=(0,Q.join)(E.value,xe);await I.createDirectory((0,Q.join)(oe.lJ,Le));const ke=await gt(I,Le);return x.value=[...x.value,ke],ke}async function Se(){be.value&&be.value.cancel(),re.value=!0,ne.value==="favorites"?be.value=(0,oe.Q$)(I,E.value):ne.value==="recent"?be.value=bn(I):be.value=pt(I,E.value);const xe=await be.value;"folder"in xe?(G.value=xe.folder,x.value=xe.contents):(G.value=null,x.value=xe),be.value=null,re.value=!1}return(0,M.wB)([ne,E],()=>Se()),(0,M.sV)(()=>Se()),{isLoading:re,files:x,folder:G,loadFiles:Se,createDirectory:Te}},An=function(ne){const E=(0,M.EW)(()=>ne.value.map(x=>x.split("/")));return{isSupportedMimeType:x=>{const G=x.split("/");return E.value.some(([re,be])=>(G[0]===re||re==="*")&&(G[1]===be||be==="*"))}}},qt={name:"FilePicker"},cn=(0,M.pM)({...qt,props:{buttons:null,name:null,allowPickDirectory:{type:Boolean,default:!1},disabledNavigation:{type:Boolean,default:!1},container:{default:"body"},filterFn:{default:void 0},mimetypeFilter:{default:()=>[]},multiselect:{type:Boolean,default:!0},path:{default:void 0}},emits:["close"],setup(ne,{emit:E}){const I=ne,x=(0,M.KR)(!0),G=(0,M.EW)(()=>{const Oe=xe.value.length===0&&I.allowPickDirectory&&_t.value?[_t.value]:xe.value;return(typeof I.buttons=="function"?I.buttons(Oe,ut.value,Te.value):I.buttons).map(yt=>({...yt,disabled:yt.disabled||De.value,callback:()=>{re=!0,be(yt.callback,Oe)}}))});let re=!1;const be=async(Oe,Me)=>{Oe(Me),E("close",Me),re=!1},Te=(0,M.KR)("files"),Se=(0,M.EW)(()=>Te.value==="favorites"?(0,z.t)("Favorites"):Te.value==="recent"?(0,z.t)("Recent"):""),xe=(0,M.IJ)([]),Le=(0,M.KR)(window?.sessionStorage.getItem("NC.FilePicker.LastPath")||"/"),ke=(0,M.KR)("");(0,M.wB)([ke],()=>{I.path===void 0&&ke.value&&window.sessionStorage.setItem("NC.FilePicker.LastPath",ke.value),xe.value=[]});const ut=(0,M.EW)({get:()=>Te.value==="files"?ke.value||I.path||Le.value:"/",set:Oe=>{ke.value=Oe}}),Pe=(0,M.KR)(""),{isSupportedMimeType:Ge}=An((0,M.lW)(I,"mimetypeFilter")),{files:rt,folder:_t,isLoading:De,loadFiles:We,createDirectory:mt}=En(Te,ut);(0,M.sV)(()=>We());const{showHiddenFiles:Be}=Fe(),ct=(0,M.EW)(()=>{let Oe=rt.value;return Be.value||(Oe=Oe.filter(Me=>!Me.basename.startsWith("."))),I.mimetypeFilter.length>0&&(Oe=Oe.filter(Me=>Me.type==="folder"||Me.mime&&Ge(Me.mime))),Pe.value&&(Oe=Oe.filter(Me=>Me.basename.toLowerCase().includes(Pe.value.toLowerCase()))),I.filterFn&&(Oe=Oe.filter(Me=>I.filterFn(Me))),Oe}),Tt=(0,M.EW)(()=>Te.value==="files"?(0,z.t)("Upload some content or sync with your devices!"):Te.value==="recent"?(0,z.t)("Files and folders you recently modified will show up here."):(0,z.t)("Files and folders you mark as favorite will show up here."));return{__sfc:!0,props:I,emit:E,isOpen:x,dialogButtons:G,isHandlingCallback:re,handleButtonClick:be,currentView:Te,viewHeadline:Se,selectedFiles:xe,savedPath:Le,navigatedPath:ke,currentPath:ut,filterString:Pe,isSupportedMimeType:Ge,files:rt,currentFolder:_t,isLoading:De,loadFiles:We,createDirectory:mt,showHiddenFiles:Be,filteredFiles:ct,noFilesDescription:Tt,onCreateFolder:async Oe=>{try{const Me=await mt(Oe);ke.value=Me.path,(0,V.Ic)("files:node:created",rt.value.filter(yt=>yt.basename===Oe)[0])}catch(Me){console.warn("Could not create new folder",{name:Oe,error:Me}),(0,z.l)((0,z.t)("Could not create the new folder"))}},handleClose:Oe=>{!Oe&&!re&&E("close")},IconFile:Ee,FileList:zt,FilePickerBreadcrumbs:Bn,FilePickerNavigation:yn,NcDialog:W.i$,NcEmptyContent:W.yI,t:z.t}}});var Ke=function(){var E=this,I=E._self._c,x=E._self._setupProxy;return I(x.NcDialog,{attrs:{container:E.container,buttons:x.dialogButtons,name:E.name,size:"large","content-classes":"file-picker__content","dialog-classes":"file-picker","navigation-classes":"file-picker__navigation",open:x.isOpen},on:{"update:open":[function(G){x.isOpen=G},x.handleClose]},scopedSlots:E._u([{key:"navigation",fn:function({isCollapsed:G}){return[I(x.FilePickerNavigation,{attrs:{"is-collapsed":G,"current-view":x.currentView,"filter-string":x.filterString,"disabled-navigation":E.disabledNavigation},on:{"update:currentView":function(re){x.currentView=re},"update:current-view":function(re){x.currentView=re},"update:filterString":function(re){x.filterString=re},"update:filter-string":function(re){x.filterString=re}}})]}}])},[I("div",{staticClass:"file-picker__main"},[x.currentView==="files"?I(x.FilePickerBreadcrumbs,{attrs:{path:x.currentPath,"show-menu":E.allowPickDirectory},on:{"update:path":function(G){x.currentPath=G},"create-node":x.onCreateFolder}}):I("div",{staticClass:"file-picker__view"},[I("h3",[E._v(E._s(x.viewHeadline))])]),x.isLoading||x.filteredFiles.length>0?I(x.FileList,{attrs:{"allow-pick-directory":E.allowPickDirectory,"current-view":x.currentView,files:x.filteredFiles,multiselect:E.multiselect,loading:x.isLoading,path:x.currentPath,"selected-files":x.selectedFiles,name:x.viewHeadline},on:{"update:path":[function(G){x.currentPath=G},function(G){x.currentView="files"}],"update:selectedFiles":function(G){x.selectedFiles=G},"update:selected-files":function(G){x.selectedFiles=G}}}):x.filterString?I(x.NcEmptyContent,{attrs:{name:x.t("No matching files"),description:x.t("No files matching your filter were found.")},scopedSlots:E._u([{key:"icon",fn:function(){return[I(x.IconFile)]},proxy:!0}])}):I(x.NcEmptyContent,{attrs:{name:x.t("No files in here"),description:x.noFilesDescription},scopedSlots:E._u([{key:"icon",fn:function(){return[I(x.IconFile)]},proxy:!0}])})],1)])},$t=[],Wn=(0,z.a)(cn,Ke,$t,!1,null,"20b719ba");const _n=Wn.exports},21379:(ge,K,$)=>{"use strict";$.d(K,{pt:()=>Qe,vd:()=>B,di:()=>At,nF:()=>ot,a7:()=>V,aX:()=>Ae,H4:()=>Et,VL:()=>ft,R3:()=>Vt,PY:()=>we,Al:()=>et,lJ:()=>me,v7:()=>He,Q$:()=>qe,m1:()=>L,E6:()=>sn,ur:()=>Tn,KT:()=>ht});var M=$(35947),z=$(21777),oe=$(57975),W=$(71225),Y=$(63814),H=$(36117),te=$(44719),J=$(82680);if(!/^((admin\-setting|collection|map)s|deck|flow|search)$/.test($.j))var ae=$(87485);var ue=$(53334),de=class extends EventTarget{dispatchTypedEvent(e,t){return super.dispatchEvent(t)}},se=$(65606);const ie=(0,M.YK)().setApp("@nextcloud/files").detectUser().build();var V=(e=>(e[e.UploadFromDevice=0]="UploadFromDevice",e[e.CreateNew=1]="CreateNew",e[e.Other=2]="Other",e))(V||{});class D{constructor(){Ie(this,"_entries",[])}registerEntry(t){this.validateEntry(t),t.category=t.category??1,this._entries.push(t)}unregisterEntry(t){const o=typeof t=="string"?this.getEntryIndex(t):this.getEntryIndex(t.id);if(o===-1){ie.warn("Entry not found, nothing removed",{entry:t,entries:this.getEntries()});return}this._entries.splice(o,1)}getEntries(t){return t?this._entries.filter(o=>typeof o.enabled=="function"?o.enabled(t):!0):this._entries}getEntryIndex(t){return this._entries.findIndex(o=>o.id===t)}validateEntry(t){if(!t.id||!t.displayName||!(t.iconSvgInline||t.iconClass)||!t.handler)throw new Error("Invalid entry");if(typeof t.id!="string"||typeof t.displayName!="string")throw new Error("Invalid id or displayName property");if(t.iconClass&&typeof t.iconClass!="string"||t.iconSvgInline&&typeof t.iconSvgInline!="string")throw new Error("Invalid icon provided");if(t.enabled!==void 0&&typeof t.enabled!="function")throw new Error("Invalid enabled property");if(typeof t.handler!="function")throw new Error("Invalid handler property");if("order"in t&&typeof t.order!="number")throw new Error("Invalid order property");if(this.getEntryIndex(t.id)!==-1)throw new Error("Duplicate entry")}}const Q=function(){return typeof window._nc_newfilemenu>"u"&&(window._nc_newfilemenu=new D,ie.debug("NewFileMenu initialized")),window._nc_newfilemenu};var ee=(e=>(e.DEFAULT="default",e.HIDDEN="hidden",e))(ee||{});class ve{constructor(t){Ie(this,"_action");this.validateAction(t),this._action=t}get id(){return this._action.id}get displayName(){return this._action.displayName}get title(){return this._action.title}get iconSvgInline(){return this._action.iconSvgInline}get enabled(){return this._action.enabled}get exec(){return this._action.exec}get execBatch(){return this._action.execBatch}get order(){return this._action.order}get parent(){return this._action.parent}get default(){return this._action.default}get inline(){return this._action.inline}get renderInline(){return this._action.renderInline}validateAction(t){if(!t.id||typeof t.id!="string")throw new Error("Invalid id");if(!t.displayName||typeof t.displayName!="function")throw new Error("Invalid displayName function");if("title"in t&&typeof t.title!="function")throw new Error("Invalid title function");if(!t.iconSvgInline||typeof t.iconSvgInline!="function")throw new Error("Invalid iconSvgInline function");if(!t.exec||typeof t.exec!="function")throw new Error("Invalid exec function");if("enabled"in t&&typeof t.enabled!="function")throw new Error("Invalid enabled function");if("execBatch"in t&&typeof t.execBatch!="function")throw new Error("Invalid execBatch function");if("order"in t&&typeof t.order!="number")throw new Error("Invalid order");if("parent"in t&&typeof t.parent!="string")throw new Error("Invalid parent");if(t.default&&!Object.values(ee).includes(t.default))throw new Error("Invalid default");if("inline"in t&&typeof t.inline!="function")throw new Error("Invalid inline function");if("renderInline"in t&&typeof t.renderInline!="function")throw new Error("Invalid renderInline function")}}const he=function(e){if(typeof window._nc_fileactions>"u"&&(window._nc_fileactions=[],ie.debug("FileActions initialized")),window._nc_fileactions.find(t=>t.id===e.id)){ie.error(`FileAction ${e.id} already registered`,{action:e});return}window._nc_fileactions.push(e)},$e=function(){return typeof window._nc_fileactions>"u"&&(window._nc_fileactions=[],ie.debug("FileActions initialized")),window._nc_fileactions};class Ee{constructor(t){Ie(this,"_header");this.validateHeader(t),this._header=t}get id(){return this._header.id}get order(){return this._header.order}get enabled(){return this._header.enabled}get render(){return this._header.render}get updated(){return this._header.updated}validateHeader(t){if(!t.id||!t.render||!t.updated)throw new Error("Invalid header: id, render and updated are required");if(typeof t.id!="string")throw new Error("Invalid id property");if(t.enabled!==void 0&&typeof t.enabled!="function")throw new Error("Invalid enabled property");if(t.render&&typeof t.render!="function")throw new Error("Invalid render property");if(t.updated&&typeof t.updated!="function")throw new Error("Invalid updated property")}}const Fe=function(e){if(typeof window._nc_filelistheader>"u"&&(window._nc_filelistheader=[],ie.debug("FileListHeaders initialized")),window._nc_filelistheader.find(t=>t.id===e.id)){ie.error(`Header ${e.id} already registered`,{header:e});return}window._nc_filelistheader.push(e)},nt=function(){return typeof window._nc_filelistheader>"u"&&(window._nc_filelistheader=[],ie.debug("FileListHeaders initialized")),window._nc_filelistheader};var Ae=(e=>(e[e.NONE=0]="NONE",e[e.CREATE=4]="CREATE",e[e.READ=1]="READ",e[e.UPDATE=2]="UPDATE",e[e.DELETE=8]="DELETE",e[e.SHARE=16]="SHARE",e[e.ALL=31]="ALL",e))(Ae||{});const Ye=["d:getcontentlength","d:getcontenttype","d:getetag","d:getlastmodified","d:creationdate","d:displayname","d:quota-available-bytes","d:resourcetype","nc:has-preview","nc:is-encrypted","nc:mount-type","oc:comments-unread","oc:favorite","oc:fileid","oc:owner-display-name","oc:owner-id","oc:permissions","oc:size"],fe={d:"DAV:",nc:"http://nextcloud.org/ns",oc:"http://owncloud.org/ns",ocs:"http://open-collaboration-services.org/ns"},q=function(e,t={nc:"http://nextcloud.org/ns"}){typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...Ye],window._nc_dav_namespaces={...fe});const o={...window._nc_dav_namespaces,...t};if(window._nc_dav_properties.find(p=>p===e))return ie.warn(`${e} already registered`,{prop:e}),!1;if(e.startsWith("<")||e.split(":").length!==2)return ie.error(`${e} is not valid. See example: 'oc:fileid'`,{prop:e}),!1;const d=e.split(":")[0];return o[d]?(window._nc_dav_properties.push(e),window._nc_dav_namespaces=o,!0):(ie.error(`${e} namespace unknown`,{prop:e,namespaces:o}),!1)},ce=function(){return typeof window._nc_dav_properties>"u"&&(window._nc_dav_properties=[...Ye]),window._nc_dav_properties.map(e=>`<${e} />`).join(" ")},Je=function(){return typeof window._nc_dav_namespaces>"u"&&(window._nc_dav_namespaces={...fe}),Object.keys(window._nc_dav_namespaces).map(e=>`xmlns:${e}="${window._nc_dav_namespaces?.[e]}"`).join(" ")},ft=function(){return`<?xml version="1.0"?>
		<d:propfind ${Je()}>
			<d:prop>
				${ce()}
			</d:prop>
		</d:propfind>`},rn=function(){return`<?xml version="1.0"?>
		<oc:filter-files ${Je()}>
			<d:prop>
				${ce()}
			</d:prop>
			<oc:filter-rules>
				<oc:favorite>1</oc:favorite>
			</oc:filter-rules>
		</oc:filter-files>`},Vt=function(e){return`<?xml version="1.0" encoding="UTF-8"?>
<d:searchrequest ${Je()}
	xmlns:ns="https://github.com/icewind1991/SearchDAV/ns">
	<d:basicsearch>
		<d:select>
			<d:prop>
				${ce()}
			</d:prop>
		</d:select>
		<d:from>
			<d:scope>
				<d:href>/files/${(0,z.HW)()?.uid}/</d:href>
				<d:depth>infinity</d:depth>
			</d:scope>
		</d:from>
		<d:where>
			<d:and>
				<d:or>
					<d:not>
						<d:eq>
							<d:prop>
								<d:getcontenttype/>
							</d:prop>
							<d:literal>httpd/unix-directory</d:literal>
						</d:eq>
					</d:not>
					<d:eq>
						<d:prop>
							<oc:size/>
						</d:prop>
						<d:literal>0</d:literal>
					</d:eq>
				</d:or>
				<d:gt>
					<d:prop>
						<d:getlastmodified/>
					</d:prop>
					<d:literal>${e}</d:literal>
				</d:gt>
			</d:and>
		</d:where>
		<d:orderby>
			<d:order>
				<d:prop>
					<d:getlastmodified/>
				</d:prop>
				<d:descending/>
			</d:order>
		</d:orderby>
		<d:limit>
			<d:nresults>100</d:nresults>
			<ns:firstresult>0</ns:firstresult>
		</d:limit>
	</d:basicsearch>
</d:searchrequest>`},ze=function(e=""){let t=Ae.NONE;return e&&((e.includes("C")||e.includes("K"))&&(t|=Ae.CREATE),e.includes("G")&&(t|=Ae.READ),(e.includes("W")||e.includes("N")||e.includes("V"))&&(t|=Ae.UPDATE),e.includes("D")&&(t|=Ae.DELETE),e.includes("R")&&(t|=Ae.SHARE)),t};var Qe=(e=>(e.Folder="folder",e.File="file",e))(Qe||{});const Pt=function(e,t){return e.match(t)!==null},It=(e,t)=>{if(e.id&&typeof e.id!="number")throw new Error("Invalid id type of value");if(!e.source)throw new Error("Missing mandatory source");try{new URL(e.source)}catch{throw new Error("Invalid source format, source must be a valid URL")}if(!e.source.startsWith("http"))throw new Error("Invalid source format, only http(s) is supported");if(e.displayname&&typeof e.displayname!="string")throw new Error("Invalid displayname type");if(e.mtime&&!(e.mtime instanceof Date))throw new Error("Invalid mtime type");if(e.crtime&&!(e.crtime instanceof Date))throw new Error("Invalid crtime type");if(!e.mime||typeof e.mime!="string"||!e.mime.match(/^[-\w.]+\/[-+\w.]+$/gi))throw new Error("Missing or invalid mandatory mime");if("size"in e&&typeof e.size!="number"&&e.size!==void 0)throw new Error("Invalid size type");if("permissions"in e&&e.permissions!==void 0&&!(typeof e.permissions=="number"&&e.permissions>=Ae.NONE&&e.permissions<=Ae.ALL))throw new Error("Invalid permissions");if(e.owner&&e.owner!==null&&typeof e.owner!="string")throw new Error("Invalid owner type");if(e.attributes&&typeof e.attributes!="object")throw new Error("Invalid attributes type");if(e.root&&typeof e.root!="string")throw new Error("Invalid root type");if(e.root&&!e.root.startsWith("/"))throw new Error("Root must start with a leading slash");if(e.root&&!e.source.includes(e.root))throw new Error("Root must be part of the source");if(e.root&&Pt(e.source,t)){const o=e.source.match(t)[0];if(!e.source.includes((0,oe.join)(o,e.root)))throw new Error("The root must be relative to the service. e.g /files/emma")}if(e.status&&!Object.values(St).includes(e.status))throw new Error("Status must be a valid NodeStatus")};var St=(e=>(e.NEW="new",e.FAILED="failed",e.LOADING="loading",e.LOCKED="locked",e))(St||{});class k{constructor(t,o){Ie(this,"_data");Ie(this,"_attributes");Ie(this,"_knownDavService",/(remote|public)\.php\/(web)?dav/i);Ie(this,"readonlyAttributes",Object.entries(Object.getOwnPropertyDescriptors(k.prototype)).filter(t=>typeof t[1].get=="function"&&t[0]!=="__proto__").map(t=>t[0]));Ie(this,"handler",{set:(t,o,d)=>this.readonlyAttributes.includes(o)?!1:Reflect.set(t,o,d),deleteProperty:(t,o)=>this.readonlyAttributes.includes(o)?!1:Reflect.deleteProperty(t,o),get:(t,o,d)=>this.readonlyAttributes.includes(o)?(ie.warn(`Accessing "Node.attributes.${o}" is deprecated, access it directly on the Node instance.`),Reflect.get(this,o)):Reflect.get(t,o,d)});It(t,o||this._knownDavService),this._data={displayname:t.attributes?.displayname,...t,attributes:{}},this._attributes=new Proxy(this._data.attributes,this.handler),this.update(t.attributes??{}),o&&(this._knownDavService=o)}get source(){return this._data.source.replace(/\/$/i,"")}get encodedSource(){const{origin:t}=new URL(this.source);return t+(0,W.O0)(this.source.slice(t.length))}get basename(){return(0,oe.basename)(this.source)}get displayname(){return this._data.displayname||this.basename}set displayname(t){this._data.displayname=t}get extension(){return(0,oe.extname)(this.source)}get dirname(){if(this.root){let o=this.source;this.isDavRessource&&(o=o.split(this._knownDavService).pop());const d=o.indexOf(this.root),p=this.root.replace(/\/$/,"");return(0,oe.dirname)(o.slice(d+p.length)||"/")}const t=new URL(this.source);return(0,oe.dirname)(t.pathname)}get mime(){return this._data.mime}get mtime(){return this._data.mtime}set mtime(t){this._data.mtime=t}get crtime(){return this._data.crtime}get size(){return this._data.size}set size(t){this.updateMtime(),this._data.size=t}get attributes(){return this._attributes}get permissions(){return this.owner===null&&!this.isDavRessource?Ae.READ:this._data.permissions!==void 0?this._data.permissions:Ae.NONE}set permissions(t){this.updateMtime(),this._data.permissions=t}get owner(){return this.isDavRessource?this._data.owner:null}get isDavRessource(){return Pt(this.source,this._knownDavService)}get root(){return this._data.root?this._data.root.replace(/^(.+)\/$/,"$1"):this.isDavRessource&&(0,oe.dirname)(this.source).split(this._knownDavService).pop()||null}get path(){if(this.root){let t=this.source;this.isDavRessource&&(t=t.split(this._knownDavService).pop());const o=t.indexOf(this.root),d=this.root.replace(/\/$/,"");return t.slice(o+d.length)||"/"}return(this.dirname+"/"+this.basename).replace(/\/\//g,"/")}get fileid(){return this._data?.id}get status(){return this._data?.status}set status(t){this._data.status=t}move(t){It({...this._data,source:t},this._knownDavService);const o=this.basename;this._data.source=t,this.displayname===o&&this.basename!==o&&(this.displayname=this.basename),this.updateMtime()}rename(t){if(t.includes("/"))throw new Error("Invalid basename");this.move((0,oe.dirname)(this.source)+"/"+t)}updateMtime(){this._data.mtime&&(this._data.mtime=new Date)}update(t){for(const[o,d]of Object.entries(t))try{d===void 0?delete this.attributes[o]:this.attributes[o]=d}catch(p){if(p instanceof TypeError)continue;throw p}}}class j extends k{get type(){return Qe.File}}class B extends k{constructor(t){super({...t,mime:"httpd/unix-directory"})}get type(){return Qe.Folder}get extension(){return null}get mime(){return"httpd/unix-directory"}}function X(){return(0,J.f)()?`/files/${(0,J.G)()}`:`/files/${(0,z.HW)()?.uid}`}const me=X();function Ce(){const e=(0,Y.dC)("dav");return(0,J.f)()?e.replace("remote.php","public.php"):e}const we=Ce(),Et=function(e=we,t={}){const o=(0,te.UU)(e,{headers:t});function d(_){o.setHeaders({...t,"X-Requested-With":"XMLHttpRequest",requesttoken:_??""})}return(0,z.zo)(d),d((0,z.do)()),(0,te.Gu)().patch("fetch",(_,T)=>{const O=T.headers;return O?.method&&(T.method=O.method,delete O.method),fetch(_,T)}),o},qe=(e,t="/",o=me)=>{const d=new AbortController;return new H.CancelablePromise(async(p,_,T)=>{T(()=>d.abort());try{const m=(await e.getDirectoryContents(`${o}${t}`,{signal:d.signal,details:!0,data:rn(),headers:{method:"REPORT"},includeSelf:!0})).data.filter(S=>S.filename!==t).map(S=>et(S,o));p(m)}catch(O){_(O)}})},et=function(e,t=me,o=we){let d=(0,z.HW)()?.uid;if((0,J.f)())d=d??"anonymous";else if(!d)throw new Error("No user id found");const p=e.props,_=ze(p?.permissions),T=String(p?.["owner-id"]||d),O=p.fileid||0,m={id:O,source:`${o}${e.filename}`,mtime:new Date(Date.parse(e.lastmod)),mime:e.mime||"application/octet-stream",displayname:p.displayname!==void 0?String(p.displayname):void 0,size:p?.size||Number.parseInt(p.getcontentlength||"0"),status:O<0?St.FAILED:void 0,permissions:_,owner:T,root:t,attributes:{...e,...p,hasPreview:p?.["has-preview"]}};return delete m.attributes?.props,e.type==="file"?new j(m):new B(m)};var ot=(e=>(e.ReservedName="reserved name",e.Character="character",e.Extension="extension",e))(ot||{});class At extends Error{constructor(t){super(`Invalid ${t.reason} '${t.segment}' in filename '${t.filename}'`,{cause:t})}get filename(){return this.cause.filename}get reason(){return this.cause.reason}get segment(){return this.cause.segment}}function ht(e){const t=(0,ae.F)().files,o=t.forbidden_filename_characters??window._oc_config?.forbidden_filenames_characters??["/","\\"];for(const m of o)if(e.includes(m))throw new At({segment:m,reason:"character",filename:e});if(e=e.toLocaleLowerCase(),(t.forbidden_filenames??[".htaccess"]).includes(e))throw new At({filename:e,segment:e,reason:"reserved name"});const p=e.indexOf(".",1),_=e.substring(0,p===-1?void 0:p);if((t.forbidden_filename_basenames??[]).includes(_))throw new At({filename:e,segment:_,reason:"reserved name"});const O=t.forbidden_filename_extensions??[".part",".filepart"];for(const m of O)if(e.length>m.length&&e.endsWith(m))throw new At({segment:m,reason:"extension",filename:e})}function fn(e){try{return ht(e),!0}catch(t){if(t instanceof At)return!1;throw t}}function sn(e,t,o){const d={suffix:T=>`(${T})`,ignoreFileExtension:!1,...o};let p=e,_=1;for(;t.includes(p);){const T=d.ignoreFileExtension?"":(0,oe.extname)(e);p=`${(0,oe.basename)(e,T)} ${d.suffix(_++)}${T}`}return p}const Kt=["B","KB","MB","GB","TB","PB"],on=["B","KiB","MiB","GiB","TiB","PiB"];function He(e,t=!1,o=!1,d=!1){o=o&&!d,typeof e=="string"&&(e=Number(e));let p=e>0?Math.floor(Math.log(e)/Math.log(d?1e3:1024)):0;p=Math.min((o?on.length:Kt.length)-1,p);const _=o?on[p]:Kt[p];let T=(e/Math.pow(d?1e3:1024,p)).toFixed(1);return t===!0&&p===0?(T!=="0.0"?"< 1 ":"0 ")+(o?on[1]:Kt[1]):(p<2?T=parseFloat(T).toFixed(0):T=parseFloat(T).toLocaleString((0,ue.lO)()),T+" "+_)}function tt(e,t=!1){try{e=`${e}`.toLocaleLowerCase().replaceAll(/\s+/g,"").replaceAll(",",".")}catch{return null}const o=e.match(/^([0-9]*(\.[0-9]*)?)([kmgtp]?)(i?)b?$/);if(o===null||o[1]==="."||o[1]==="")return null;const d={"":0,k:1,m:2,g:3,t:4,p:5,e:6},p=`${o[1]}`,_=o[4]==="i"||t?1024:1e3;return Math.round(Number.parseFloat(p)*_**d[o[3]])}function Dt(e){return e instanceof Date?e.toISOString():String(e)}function In(e,t,o){t=t??[_=>_],o=o??[];const d=t.map((_,T)=>(o[T]??"asc")==="asc"?1:-1),p=Intl.Collator([(0,ue.Z0)(),(0,ue.lO)()],{numeric:!0,usage:"sort"});return[...e].sort((_,T)=>{for(const[O,m]of t.entries()){const S=p.compare(Dt(m(_)),Dt(m(T)));if(S!==0)return S*d[O]}return 0})}var Zt=(e=>(e.Name="basename",e.Modified="mtime",e.Size="size",e))(Zt||{});function Tn(e,t={}){const o={sortingMode:"basename",sortingOrder:"asc",...t},d=T=>T.lastIndexOf(".")>0?T.slice(0,T.lastIndexOf(".")):T,p=[...o.sortFavoritesFirst?[T=>T.attributes?.favorite!==1]:[],...o.sortFoldersFirst?[T=>T.type!=="folder"]:[],...o.sortingMode!=="basename"?[T=>T[o.sortingMode]]:[],T=>d(T.attributes?.displayname||T.basename),T=>T.basename],_=[...o.sortFavoritesFirst?["asc"]:[],...o.sortFoldersFirst?["asc"]:[],...o.sortingMode==="mtime"?[o.sortingOrder==="asc"?"desc":"asc"]:[],...o.sortingMode!=="mtime"&&o.sortingMode!=="basename"?[o.sortingOrder]:[],o.sortingOrder,o.sortingOrder];return In(e,p,_)}class Ut extends null{constructor(){super(...arguments);Ie(this,"_views",[]);Ie(this,"_currentView",null)}register(o){if(this._views.find(d=>d.id===o.id))throw new Error(`View id ${o.id} is already registered`);this._views.push(o),this.dispatchTypedEvent("update",new CustomEvent("update"))}remove(o){const d=this._views.findIndex(p=>p.id===o);d!==-1&&(this._views.splice(d,1),this.dispatchTypedEvent("update",new CustomEvent("update")))}setActive(o){this._currentView=o;const d=new CustomEvent("updateActive",{detail:o});this.dispatchTypedEvent("updateActive",d)}get active(){return this._currentView}get views(){return this._views}}const On=function(){return typeof window._nc_navigation>"u"&&(window._nc_navigation=new Ut,ie.debug("Navigation service initialized")),window._nc_navigation};class Sn{constructor(t){Ie(this,"_column");zt(t),this._column=t}get id(){return this._column.id}get title(){return this._column.title}get render(){return this._column.render}get sort(){return this._column.sort}get summary(){return this._column.summary}}const zt=function(e){if(!e.id||typeof e.id!="string")throw new Error("A column id is required");if(!e.title||typeof e.title!="string")throw new Error("A column title is required");if(!e.render||typeof e.render!="function")throw new Error("A render function is required");if(e.sort&&typeof e.sort!="function")throw new Error("Column sortFunction must be a function");if(e.summary&&typeof e.summary!="function")throw new Error("Column summary must be a function");return!0};function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yt={},Rt={};(function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",d="["+t+"]["+o+"]*",p=new RegExp("^"+d+"$"),_=function(O,m){const S=[];let U=m.exec(O);for(;U;){const le=[];le.startIndex=m.lastIndex-U[0].length;const pe=U.length;for(let ye=0;ye<pe;ye++)le.push(U[ye]);S.push(le),U=m.exec(O)}return S},T=function(O){const m=p.exec(O);return!(m===null||typeof m>"u")};e.isExist=function(O){return typeof O<"u"},e.isEmptyObject=function(O){return Object.keys(O).length===0},e.merge=function(O,m,S){if(m){const U=Object.keys(m),le=U.length;for(let pe=0;pe<le;pe++)S==="strict"?O[U[pe]]=[m[U[pe]]]:O[U[pe]]=m[U[pe]]}},e.getValue=function(O){return e.isExist(O)?O:""},e.isName=T,e.getAllMatches=_,e.nameRegexp=d})(Rt);const an=Rt,$n={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,t){t=Object.assign({},$n,t);const o=[];let d=!1,p=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let _=0;_<e.length;_++)if(e[_]==="<"&&e[_+1]==="?"){if(_+=2,_=Jt(e,_),_.err)return _}else if(e[_]==="<"){let T=_;if(_++,e[_]==="!"){_=ln(e,_);continue}else{let O=!1;e[_]==="/"&&(O=!0,_++);let m="";for(;_<e.length&&e[_]!==">"&&e[_]!==" "&&e[_]!=="	"&&e[_]!==`
`&&e[_]!=="\r";_++)m+=e[_];if(m=m.trim(),m[m.length-1]==="/"&&(m=m.substring(0,m.length-1),_--),!kn(m)){let le;return m.trim().length===0?le="Invalid space after '<'.":le="Tag '"+m+"' is an invalid name.",Ue("InvalidTag",le,at(e,_))}const S=st(e,_);if(S===!1)return Ue("InvalidAttr","Attributes for '"+m+"' have open quote.",at(e,_));let U=S.value;if(_=S.index,U[U.length-1]==="/"){const le=_-U.length;U=U.substring(0,U.length-1);const pe=gn(U,t);if(pe===!0)d=!0;else return Ue(pe.err.code,pe.err.msg,at(e,le+pe.err.line))}else if(O)if(S.tagClosed){if(U.trim().length>0)return Ue("InvalidTag","Closing tag '"+m+"' can't have attributes or invalid starting.",at(e,T));if(o.length===0)return Ue("InvalidTag","Closing tag '"+m+"' has not been opened.",at(e,T));{const le=o.pop();if(m!==le.tagName){let pe=at(e,le.tagStartPos);return Ue("InvalidTag","Expected closing tag '"+le.tagName+"' (opened in line "+pe.line+", col "+pe.col+") instead of closing tag '"+m+"'.",at(e,T))}o.length==0&&(p=!0)}}else return Ue("InvalidTag","Closing tag '"+m+"' doesn't have proper closing.",at(e,_));else{const le=gn(U,t);if(le!==!0)return Ue(le.err.code,le.err.msg,at(e,_-U.length+le.err.line));if(p===!0)return Ue("InvalidXml","Multiple possible root nodes found.",at(e,_));t.unpairedTags.indexOf(m)!==-1||o.push({tagName:m,tagStartPos:T}),d=!0}for(_++;_<e.length;_++)if(e[_]==="<")if(e[_+1]==="!"){_++,_=ln(e,_);continue}else if(e[_+1]==="?"){if(_=Jt(e,++_),_.err)return _}else break;else if(e[_]==="&"){const le=Bn(e,_);if(le==-1)return Ue("InvalidChar","char '&' is not expected.",at(e,_));_=le}else if(p===!0&&!hn(e[_]))return Ue("InvalidXml","Extra text at the end",at(e,_));e[_]==="<"&&_--}}else{if(hn(e[_]))continue;return Ue("InvalidChar","char '"+e[_]+"' is not expected.",at(e,_))}if(d){if(o.length==1)return Ue("InvalidTag","Unclosed tag '"+o[0].tagName+"'.",at(e,o[0].tagStartPos));if(o.length>0)return Ue("InvalidXml","Invalid '"+JSON.stringify(o.map(_=>_.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Ue("InvalidXml","Start tag expected.",1);return!0};function hn(e){return e===" "||e==="	"||e===`
`||e==="\r"}function Jt(e,t){const o=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){const d=e.substr(o,t-o);if(t>5&&d==="xml")return Ue("InvalidXml","XML declaration allowed only at the start of the document.",at(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function ln(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let o=1;for(t+=8;t<e.length;t++)if(e[t]==="<")o++;else if(e[t]===">"&&(o--,o===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}const pn='"',Qt="'";function st(e,t){let o="",d="",p=!1;for(;t<e.length;t++){if(e[t]===pn||e[t]===Qt)d===""?d=e[t]:d!==e[t]||(d="");else if(e[t]===">"&&d===""){p=!0;break}o+=e[t]}return d!==""?!1:{value:o,index:t,tagClosed:p}}const Ln=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function gn(e,t){const o=an.getAllMatches(e,Ln),d={};for(let p=0;p<o.length;p++){if(o[p][1].length===0)return Ue("InvalidAttr","Attribute '"+o[p][2]+"' has no space in starting.",Gt(o[p]));if(o[p][3]!==void 0&&o[p][4]===void 0)return Ue("InvalidAttr","Attribute '"+o[p][2]+"' is without value.",Gt(o[p]));if(o[p][3]===void 0&&!t.allowBooleanAttributes)return Ue("InvalidAttr","boolean attribute '"+o[p][2]+"' is not allowed.",Gt(o[p]));const _=o[p][2];if(!Fn(_))return Ue("InvalidAttr","Attribute '"+_+"' is an invalid name.",Gt(o[p]));if(!d.hasOwnProperty(_))d[_]=1;else return Ue("InvalidAttr","Attribute '"+_+"' is repeated.",Gt(o[p]))}return!0}function Rn(e,t){let o=/\d/;for(e[t]==="x"&&(t++,o=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(o))break}return-1}function Bn(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,Rn(e,t);let o=0;for(;t<e.length;t++,o++)if(!(e[t].match(/\w/)&&o<20)){if(e[t]===";")break;return-1}return t}function Ue(e,t,o){return{err:{code:e,msg:t,line:o.line||o,col:o.col}}}function Fn(e){return an.isName(e)}function kn(e){return an.isName(e)}function at(e,t){const o=e.substring(0,t).split(/\r?\n/);return{line:o.length,col:o[o.length-1].length+1}}function Gt(e){return e.startIndex+e[1].length}var un={};const mn={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,o){return e}},Mn=function(e){return Object.assign({},mn,e)};un.buildOptions=Mn,un.defaultOptions=mn;class jn{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,o){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:o})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}var Vn=jn;const Dn=Rt;function Un(e,t){const o={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let d=1,p=!1,_=!1,T="";for(;t<e.length;t++)if(e[t]==="<"&&!_){if(p&&vn(e,t))t+=7,[entityName,val,t]=zn(e,t+1),val.indexOf("&")===-1&&(o[gt(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(p&&yn(e,t))t+=8;else if(p&&bn(e,t))t+=8;else if(p&&pt(e,t))t+=9;else if(Gn)_=!0;else throw new Error("Invalid DOCTYPE");d++,T=""}else if(e[t]===">"){if(_?e[t-1]==="-"&&e[t-2]==="-"&&(_=!1,d--):d--,d===0)break}else e[t]==="["?p=!0:T+=e[t];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:o,i:t}}function zn(e,t){let o="";for(;t<e.length&&e[t]!=="'"&&e[t]!=='"';t++)o+=e[t];if(o=o.trim(),o.indexOf(" ")!==-1)throw new Error("External entites are not supported");const d=e[t++];let p="";for(;t<e.length&&e[t]!==d;t++)p+=e[t];return[o,p,t]}function Gn(e,t){return e[t+1]==="!"&&e[t+2]==="-"&&e[t+3]==="-"}function vn(e,t){return e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="N"&&e[t+4]==="T"&&e[t+5]==="I"&&e[t+6]==="T"&&e[t+7]==="Y"}function yn(e,t){return e[t+1]==="!"&&e[t+2]==="E"&&e[t+3]==="L"&&e[t+4]==="E"&&e[t+5]==="M"&&e[t+6]==="E"&&e[t+7]==="N"&&e[t+8]==="T"}function bn(e,t){return e[t+1]==="!"&&e[t+2]==="A"&&e[t+3]==="T"&&e[t+4]==="T"&&e[t+5]==="L"&&e[t+6]==="I"&&e[t+7]==="S"&&e[t+8]==="T"}function pt(e,t){return e[t+1]==="!"&&e[t+2]==="N"&&e[t+3]==="O"&&e[t+4]==="T"&&e[t+5]==="A"&&e[t+6]==="T"&&e[t+7]==="I"&&e[t+8]==="O"&&e[t+9]==="N"}function gt(e){if(Dn.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var En=Un;const An=/^[-+]?0x[a-fA-F0-9]+$/,qt=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const cn={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Ke(e,t={}){if(t=Object.assign({},cn,t),!e||typeof e!="string")return e;let o=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(o))return e;if(t.hex&&An.test(o))return Number.parseInt(o,16);{const d=qt.exec(o);if(d){const p=d[1],_=d[2];let T=$t(d[3]);const O=d[4]||d[6];if(!t.leadingZeros&&_.length>0&&p&&o[2]!==".")return e;if(!t.leadingZeros&&_.length>0&&!p&&o[1]!==".")return e;{const m=Number(o),S=""+m;return S.search(/[eE]/)!==-1||O?t.eNotation?m:e:o.indexOf(".")!==-1?S==="0"&&T===""||S===T||p&&S==="-"+T?m:e:_?T===S||p+T===S?m:e:o===S||o===p+S?m:e}}else return e}}function $t(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}var Wn=Ke;function _n(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const o of e)if(typeof o=="string"&&t===o||o instanceof RegExp&&o.test(t))return!0}:()=>!1}var ne=_n;const E=Rt,I=Vn,x=En,G=Wn,re=ne;let be=class{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(o,d)=>String.fromCharCode(Number.parseInt(d,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(o,d)=>String.fromCharCode(Number.parseInt(d,16))}},this.addExternalEntities=Te,this.parseXml=ut,this.parseTextData=Se,this.resolveNameSpace=xe,this.buildAttributesMap=ke,this.isItStopNode=_t,this.replaceEntitiesValue=Ge,this.readStopNodeData=Be,this.saveTextToParentTag=rt,this.addChild=Pe,this.ignoreAttributesFn=re(this.options.ignoreAttributes)}};function Te(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const d=t[o];this.lastEntities[d]={regex:new RegExp("&"+d+";","g"),val:e[d]}}}function Se(e,t,o,d,p,_,T){if(e!==void 0&&(this.options.trimValues&&!d&&(e=e.trim()),e.length>0)){T||(e=this.replaceEntitiesValue(e));const O=this.options.tagValueProcessor(t,e,o,p,_);return O==null?e:typeof O!=typeof e||O!==e?O:this.options.trimValues?ct(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?ct(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function xe(e){if(this.options.removeNSPrefix){const t=e.split(":"),o=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=o+t[1])}return e}const Le=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function ke(e,t,o){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const d=E.getAllMatches(e,Le),p=d.length,_={};for(let T=0;T<p;T++){const O=this.resolveNameSpace(d[T][1]);if(this.ignoreAttributesFn(O,t))continue;let m=d[T][4],S=this.options.attributeNamePrefix+O;if(O.length)if(this.options.transformAttributeName&&(S=this.options.transformAttributeName(S)),S==="__proto__"&&(S="#__proto__"),m!==void 0){this.options.trimValues&&(m=m.trim()),m=this.replaceEntitiesValue(m);const U=this.options.attributeValueProcessor(O,m,t);U==null?_[S]=m:typeof U!=typeof m||U!==m?_[S]=U:_[S]=ct(m,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(_[S]=!0)}if(!Object.keys(_).length)return;if(this.options.attributesGroupName){const T={};return T[this.options.attributesGroupName]=_,T}return _}}const ut=function(e){e=e.replace(/\r\n?/g,`
`);const t=new I("!xml");let o=t,d="",p="";for(let _=0;_<e.length;_++)if(e[_]==="<")if(e[_+1]==="/"){const O=We(e,">",_,"Closing Tag is not closed.");let m=e.substring(_+2,O).trim();if(this.options.removeNSPrefix){const le=m.indexOf(":");le!==-1&&(m=m.substr(le+1))}this.options.transformTagName&&(m=this.options.transformTagName(m)),o&&(d=this.saveTextToParentTag(d,o,p));const S=p.substring(p.lastIndexOf(".")+1);if(m&&this.options.unpairedTags.indexOf(m)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${m}>`);let U=0;S&&this.options.unpairedTags.indexOf(S)!==-1?(U=p.lastIndexOf(".",p.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=p.lastIndexOf("."),p=p.substring(0,U),o=this.tagsNodeStack.pop(),d="",_=O}else if(e[_+1]==="?"){let O=mt(e,_,!1,"?>");if(!O)throw new Error("Pi Tag is not closed.");if(d=this.saveTextToParentTag(d,o,p),!(this.options.ignoreDeclaration&&O.tagName==="?xml"||this.options.ignorePiTags)){const m=new I(O.tagName);m.add(this.options.textNodeName,""),O.tagName!==O.tagExp&&O.attrExpPresent&&(m[":@"]=this.buildAttributesMap(O.tagExp,p,O.tagName)),this.addChild(o,m,p)}_=O.closeIndex+1}else if(e.substr(_+1,3)==="!--"){const O=We(e,"-->",_+4,"Comment is not closed.");if(this.options.commentPropName){const m=e.substring(_+4,O-2);d=this.saveTextToParentTag(d,o,p),o.add(this.options.commentPropName,[{[this.options.textNodeName]:m}])}_=O}else if(e.substr(_+1,2)==="!D"){const O=x(e,_);this.docTypeEntities=O.entities,_=O.i}else if(e.substr(_+1,2)==="!["){const O=We(e,"]]>",_,"CDATA is not closed.")-2,m=e.substring(_+9,O);d=this.saveTextToParentTag(d,o,p);let S=this.parseTextData(m,o.tagname,p,!0,!1,!0,!0);S==null&&(S=""),this.options.cdataPropName?o.add(this.options.cdataPropName,[{[this.options.textNodeName]:m}]):o.add(this.options.textNodeName,S),_=O+2}else{let O=mt(e,_,this.options.removeNSPrefix),m=O.tagName;const S=O.rawTagName;let U=O.tagExp,le=O.attrExpPresent,pe=O.closeIndex;this.options.transformTagName&&(m=this.options.transformTagName(m)),o&&d&&o.tagname!=="!xml"&&(d=this.saveTextToParentTag(d,o,p,!1));const ye=o;if(ye&&this.options.unpairedTags.indexOf(ye.tagname)!==-1&&(o=this.tagsNodeStack.pop(),p=p.substring(0,p.lastIndexOf("."))),m!==t.tagname&&(p+=p?"."+m:m),this.isItStopNode(this.options.stopNodes,p,m)){let Z="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)m[m.length-1]==="/"?(m=m.substr(0,m.length-1),p=p.substr(0,p.length-1),U=m):U=U.substr(0,U.length-1),_=O.closeIndex;else if(this.options.unpairedTags.indexOf(m)!==-1)_=O.closeIndex;else{const Ne=this.readStopNodeData(e,S,pe+1);if(!Ne)throw new Error(`Unexpected end of ${S}`);_=Ne.i,Z=Ne.tagContent}const je=new I(m);m!==U&&le&&(je[":@"]=this.buildAttributesMap(U,p,m)),Z&&(Z=this.parseTextData(Z,m,p,!0,le,!0,!0)),p=p.substr(0,p.lastIndexOf(".")),je.add(this.options.textNodeName,Z),this.addChild(o,je,p)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){m[m.length-1]==="/"?(m=m.substr(0,m.length-1),p=p.substr(0,p.length-1),U=m):U=U.substr(0,U.length-1),this.options.transformTagName&&(m=this.options.transformTagName(m));const Z=new I(m);m!==U&&le&&(Z[":@"]=this.buildAttributesMap(U,p,m)),this.addChild(o,Z,p),p=p.substr(0,p.lastIndexOf("."))}else{const Z=new I(m);this.tagsNodeStack.push(o),m!==U&&le&&(Z[":@"]=this.buildAttributesMap(U,p,m)),this.addChild(o,Z,p),o=Z}d="",_=pe}}else d+=e[_];return t.child};function Pe(e,t,o){const d=this.options.updateTag(t.tagname,o,t[":@"]);d===!1||(typeof d=="string"&&(t.tagname=d),e.addChild(t))}const Ge=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const o=this.docTypeEntities[t];e=e.replace(o.regx,o.val)}for(let t in this.lastEntities){const o=this.lastEntities[t];e=e.replace(o.regex,o.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const o=this.htmlEntities[t];e=e.replace(o.regex,o.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function rt(e,t,o,d){return e&&(d===void 0&&(d=Object.keys(t.child).length===0),e=this.parseTextData(e,t.tagname,o,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,d),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function _t(e,t,o){const d="*."+o;for(const p in e){const _=e[p];if(d===_||t===_)return!0}return!1}function De(e,t,o=">"){let d,p="";for(let _=t;_<e.length;_++){let T=e[_];if(d)T===d&&(d="");else if(T==='"'||T==="'")d=T;else if(T===o[0])if(o[1]){if(e[_+1]===o[1])return{data:p,index:_}}else return{data:p,index:_};else T==="	"&&(T=" ");p+=T}}function We(e,t,o,d){const p=e.indexOf(t,o);if(p===-1)throw new Error(d);return p+t.length-1}function mt(e,t,o,d=">"){const p=De(e,t+1,d);if(!p)return;let _=p.data;const T=p.index,O=_.search(/\s/);let m=_,S=!0;O!==-1&&(m=_.substring(0,O),_=_.substring(O+1).trimStart());const U=m;if(o){const le=m.indexOf(":");le!==-1&&(m=m.substr(le+1),S=m!==p.data.substr(le+1))}return{tagName:m,tagExp:_,closeIndex:T,attrExpPresent:S,rawTagName:U}}function Be(e,t,o){const d=o;let p=1;for(;o<e.length;o++)if(e[o]==="<")if(e[o+1]==="/"){const _=We(e,">",o,`${t} is not closed`);if(e.substring(o+2,_).trim()===t&&(p--,p===0))return{tagContent:e.substring(d,o),i:_};o=_}else if(e[o+1]==="?")o=We(e,"?>",o+1,"StopNode is not closed.");else if(e.substr(o+1,3)==="!--")o=We(e,"-->",o+3,"StopNode is not closed.");else if(e.substr(o+1,2)==="![")o=We(e,"]]>",o,"StopNode is not closed.")-2;else{const _=mt(e,o,">");_&&((_&&_.tagName)===t&&_.tagExp[_.tagExp.length-1]!=="/"&&p++,o=_.closeIndex)}}function ct(e,t,o){if(t&&typeof e=="string"){const d=e.trim();return d==="true"?!0:d==="false"?!1:G(e,o)}else return E.isExist(e)?e:""}var Tt=be,Lt={};function Bt(e,t){return Oe(e,t)}function Oe(e,t,o){let d;const p={};for(let _=0;_<e.length;_++){const T=e[_],O=Me(T);let m="";if(o===void 0?m=O:m=o+"."+O,O===t.textNodeName)d===void 0?d=T[O]:d+=""+T[O];else{if(O===void 0)continue;if(T[O]){let S=Oe(T[O],t,m);const U=Ct(S,t);T[":@"]?yt(S,T[":@"],m,t):Object.keys(S).length===1&&S[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?S=S[t.textNodeName]:Object.keys(S).length===0&&(t.alwaysCreateTextNode?S[t.textNodeName]="":S=""),p[O]!==void 0&&p.hasOwnProperty(O)?(Array.isArray(p[O])||(p[O]=[p[O]]),p[O].push(S)):t.isArray(O,m,U)?p[O]=[S]:p[O]=S}}}return typeof d=="string"?d.length>0&&(p[t.textNodeName]=d):d!==void 0&&(p[t.textNodeName]=d),p}function Me(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const d=t[o];if(d!==":@")return d}}function yt(e,t,o,d){if(t){const p=Object.keys(t),_=p.length;for(let T=0;T<_;T++){const O=p[T];d.isArray(O,o+"."+O,!0,!0)?e[O]=[t[O]]:e[O]=t[O]}}}function Ct(e,t){const{textNodeName:o}=t,d=Object.keys(e).length;return!!(d===0||d===1&&(e[o]||typeof e[o]=="boolean"||e[o]===0))}Lt.prettify=Bt;const{buildOptions:wn}=un,en=Tt,{prettify:Cn}=Lt,Wt=Yt;var Nn=class{constructor(t){this.externalEntities={},this.options=wn(t)}parse(t,o){if(typeof t!="string")if(t.toString)t=t.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(o){o===!0&&(o={});const _=Wt.validate(t,o);if(_!==!0)throw Error(`${_.err.msg}:${_.err.line}:${_.err.col}`)}const d=new en(this.options);d.addExternalEntities(this.externalEntities);const p=d.parseXml(t);return this.options.preserveOrder||p===void 0?p:Cn(p,this.options)}addEntity(t,o){if(o.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(o==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=o}};const xn=`
`;function dt(e,t){let o="";return t.format&&t.indentBy.length>0&&(o=xn),Hn(e,t,"",o)}function Hn(e,t,o,d){let p="",_=!1;for(let T=0;T<e.length;T++){const O=e[T],m=Kn(O);if(m===void 0)continue;let S="";if(o.length===0?S=m:S=`${o}.${m}`,m===t.textNodeName){let Z=O[m];cr(S,t)||(Z=t.tagValueProcessor(m,Z),Z=er(Z,t)),_&&(p+=d),p+=Z,_=!1;continue}else if(m===t.cdataPropName){_&&(p+=d),p+=`<![CDATA[${O[m][0][t.textNodeName]}]]>`,_=!1;continue}else if(m===t.commentPropName){p+=d+`<!--${O[m][0][t.textNodeName]}-->`,_=!0;continue}else if(m[0]==="?"){const Z=Zn(O[":@"],t),je=m==="?xml"?"":d;let Ne=O[m][0][t.textNodeName];Ne=Ne.length!==0?" "+Ne:"",p+=je+`<${m}${Ne}${Z}?>`,_=!0;continue}let U=d;U!==""&&(U+=t.indentBy);const le=Zn(O[":@"],t),pe=d+`<${m}${le}`,ye=Hn(O[m],t,S,U);t.unpairedTags.indexOf(m)!==-1?t.suppressUnpairedNode?p+=pe+">":p+=pe+"/>":(!ye||ye.length===0)&&t.suppressEmptyNode?p+=pe+"/>":ye&&ye.endsWith(">")?p+=pe+`>${ye}${d}</${m}>`:(p+=pe+">",ye&&d!==""&&(ye.includes("/>")||ye.includes("</"))?p+=d+t.indentBy+ye+d:p+=ye,p+=`</${m}>`),_=!0}return p}function Kn(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const d=t[o];if(e.hasOwnProperty(d)&&d!==":@")return d}}function Zn(e,t){let o="";if(e&&!t.ignoreAttributes)for(let d in e){if(!e.hasOwnProperty(d))continue;let p=t.attributeValueProcessor(d,e[d]);p=er(p,t),p===!0&&t.suppressBooleanAttributes?o+=` ${d.substr(t.attributeNamePrefix.length)}`:o+=` ${d.substr(t.attributeNamePrefix.length)}="${p}"`}return o}function cr(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let o=e.substr(e.lastIndexOf(".")+1);for(let d in t.stopNodes)if(t.stopNodes[d]===e||t.stopNodes[d]==="*."+o)return!0;return!1}function er(e,t){if(e&&e.length>0&&t.processEntities)for(let o=0;o<t.entities.length;o++){const d=t.entities[o];e=e.replace(d.regex,d.val)}return e}var dr=dt;const Yn=dr,fr=ne,Jn={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function Ft(e){this.options=Object.assign({},Jn,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=fr(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gr),this.processTextOrObjNode=hr,this.options.format?(this.indentate=pr,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ft.prototype.build=function(e){return this.options.preserveOrder?Yn(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)},Ft.prototype.j2x=function(e,t,o){let d="",p="";const _=o.join(".");for(let T in e)if(Object.prototype.hasOwnProperty.call(e,T))if(typeof e[T]>"u")this.isAttribute(T)&&(p+="");else if(e[T]===null)this.isAttribute(T)?p+="":T[0]==="?"?p+=this.indentate(t)+"<"+T+"?"+this.tagEndChar:p+=this.indentate(t)+"<"+T+"/"+this.tagEndChar;else if(e[T]instanceof Date)p+=this.buildTextValNode(e[T],T,"",t);else if(typeof e[T]!="object"){const O=this.isAttribute(T);if(O&&!this.ignoreAttributesFn(O,_))d+=this.buildAttrPairStr(O,""+e[T]);else if(!O)if(T===this.options.textNodeName){let m=this.options.tagValueProcessor(T,""+e[T]);p+=this.replaceEntitiesValue(m)}else p+=this.buildTextValNode(e[T],T,"",t)}else if(Array.isArray(e[T])){const O=e[T].length;let m="",S="";for(let U=0;U<O;U++){const le=e[T][U];if(!(typeof le>"u"))if(le===null)T[0]==="?"?p+=this.indentate(t)+"<"+T+"?"+this.tagEndChar:p+=this.indentate(t)+"<"+T+"/"+this.tagEndChar;else if(typeof le=="object")if(this.options.oneListGroup){const pe=this.j2x(le,t+1,o.concat(T));m+=pe.val,this.options.attributesGroupName&&le.hasOwnProperty(this.options.attributesGroupName)&&(S+=pe.attrStr)}else m+=this.processTextOrObjNode(le,T,t,o);else if(this.options.oneListGroup){let pe=this.options.tagValueProcessor(T,le);pe=this.replaceEntitiesValue(pe),m+=pe}else m+=this.buildTextValNode(le,T,"",t)}this.options.oneListGroup&&(m=this.buildObjectNode(m,T,S,t)),p+=m}else if(this.options.attributesGroupName&&T===this.options.attributesGroupName){const O=Object.keys(e[T]),m=O.length;for(let S=0;S<m;S++)d+=this.buildAttrPairStr(O[S],""+e[T][O[S]])}else p+=this.processTextOrObjNode(e[T],T,t,o);return{attrStr:d,val:p}},Ft.prototype.buildAttrPairStr=function(e,t){return t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t),this.options.suppressBooleanAttributes&&t==="true"?" "+e:" "+e+'="'+t+'"'};function hr(e,t,o,d){const p=this.j2x(e,o+1,d.concat(t));return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],t,p.attrStr,o):this.buildObjectNode(p.val,t,p.attrStr,o)}Ft.prototype.buildObjectNode=function(e,t,o,d){if(e==="")return t[0]==="?"?this.indentate(d)+"<"+t+o+"?"+this.tagEndChar:this.indentate(d)+"<"+t+o+this.closeTag(t)+this.tagEndChar;{let p="</"+t+this.tagEndChar,_="";return t[0]==="?"&&(_="?",p=""),(o||o==="")&&e.indexOf("<")===-1?this.indentate(d)+"<"+t+o+_+">"+e+p:this.options.commentPropName!==!1&&t===this.options.commentPropName&&_.length===0?this.indentate(d)+`<!--${e}-->`+this.newLine:this.indentate(d)+"<"+t+o+_+this.tagEndChar+e+this.indentate(d)+p}},Ft.prototype.closeTag=function(e){let t="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(t="/"):this.options.suppressEmptyNode?t="/":t=`></${e}`,t},Ft.prototype.buildTextValNode=function(e,t,o,d){if(this.options.cdataPropName!==!1&&t===this.options.cdataPropName)return this.indentate(d)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&t===this.options.commentPropName)return this.indentate(d)+`<!--${e}-->`+this.newLine;if(t[0]==="?")return this.indentate(d)+"<"+t+o+"?"+this.tagEndChar;{let p=this.options.tagValueProcessor(t,e);return p=this.replaceEntitiesValue(p),p===""?this.indentate(d)+"<"+t+o+this.closeTag(t)+this.tagEndChar:this.indentate(d)+"<"+t+o+">"+p+"</"+t+this.tagEndChar}},Ft.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const o=this.options.entities[t];e=e.replace(o.regex,o.val)}return e};function pr(e){return this.options.indentBy.repeat(e)}function gr(e){return e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName?e.substr(this.attrPrefixLen):!1}var tr=Ft,nr={XMLParser:Nn,XMLValidator:Yt,XMLBuilder:tr};function Qn(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);if(e=e.trim(),e.length===0||nr.XMLValidator.validate(e)!==!0)return!1;let t;const o=new nr.XMLParser;try{t=o.parse(e)}catch{return!1}return!(!t||!Object.keys(t).some(d=>d.toLowerCase()==="svg"))}class Pr{constructor(t){Ie(this,"_view");vr(t),this._view=t}get id(){return this._view.id}get name(){return this._view.name}get caption(){return this._view.caption}get emptyTitle(){return this._view.emptyTitle}get emptyCaption(){return this._view.emptyCaption}get getContents(){return this._view.getContents}get icon(){return this._view.icon}set icon(t){this._view.icon=t}get order(){return this._view.order}set order(t){this._view.order=t}get params(){return this._view.params}set params(t){this._view.params=t}get columns(){return this._view.columns}get emptyView(){return this._view.emptyView}get parent(){return this._view.parent}get sticky(){return this._view.sticky}get expanded(){return this._view.expanded}set expanded(t){this._view.expanded=t}get defaultSortKey(){return this._view.defaultSortKey}get loadChildViews(){return this._view.loadChildViews}}const vr=function(e){if(!e.id||typeof e.id!="string")throw new Error("View id is required and must be a string");if(!e.name||typeof e.name!="string")throw new Error("View name is required and must be a string");if(e.columns&&e.columns.length>0&&(!e.caption||typeof e.caption!="string"))throw new Error("View caption is required for top-level views and must be a string");if(!e.getContents||typeof e.getContents!="function")throw new Error("View getContents is required and must be a function");if(!e.icon||typeof e.icon!="string"||!Qn(e.icon))throw new Error("View icon is required and must be a valid svg string");if("order"in e&&typeof e.order!="number")throw new Error("View order must be a number");if(e.columns&&e.columns.forEach(t=>{if(!(t instanceof Sn))throw new Error("View columns must be an array of Column. Invalid column found")}),e.emptyView&&typeof e.emptyView!="function")throw new Error("View emptyView must be a function");if(e.parent&&typeof e.parent!="string")throw new Error("View parent must be a string");if("sticky"in e&&typeof e.sticky!="boolean")throw new Error("View sticky must be a boolean");if("expanded"in e&&typeof e.expanded!="boolean")throw new Error("View expanded must be a boolean");if(e.defaultSortKey&&typeof e.defaultSortKey!="string")throw new Error("View defaultSortKey must be a string");if(e.loadChildViews&&typeof e.loadChildViews!="function")throw new Error("View loadChildViews must be a function");return!0};var Tr=typeof se=="object"&&se.env&&se.env.NODE_DEBUG&&/\bsemver\b/i.test(se.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};const Or="2.0.0",yr=256,Sr=Number.MAX_SAFE_INTEGER||9007199254740991,br=16,Er=yr-6;var Ar={MAX_LENGTH:yr,MAX_SAFE_COMPONENT_LENGTH:br,MAX_SAFE_BUILD_LENGTH:Er,MAX_SAFE_INTEGER:Sr,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:Or,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},rr={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:d,MAX_LENGTH:p}=Ar,_=Tr;t=e.exports={};const T=t.re=[],O=t.safeRe=[],m=t.src=[],S=t.t={};let U=0;const le="[a-zA-Z0-9-]",pe=[["\\s",1],["\\d",p],[le,d]],ye=je=>{for(const[Ne,wt]of pe)je=je.split(`${Ne}*`).join(`${Ne}{0,${wt}}`).split(`${Ne}+`).join(`${Ne}{1,${wt}}`);return je},Z=(je,Ne,wt)=>{const ir=ye(Ne),nn=U++;_(je,nn,Ne),S[je]=nn,m[nn]=Ne,T[nn]=new RegExp(Ne,wt?"g":void 0),O[nn]=new RegExp(ir,wt?"g":void 0)};Z("NUMERICIDENTIFIER","0|[1-9]\\d*"),Z("NUMERICIDENTIFIERLOOSE","\\d+"),Z("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${le}*`),Z("MAINVERSION",`(${m[S.NUMERICIDENTIFIER]})\\.(${m[S.NUMERICIDENTIFIER]})\\.(${m[S.NUMERICIDENTIFIER]})`),Z("MAINVERSIONLOOSE",`(${m[S.NUMERICIDENTIFIERLOOSE]})\\.(${m[S.NUMERICIDENTIFIERLOOSE]})\\.(${m[S.NUMERICIDENTIFIERLOOSE]})`),Z("PRERELEASEIDENTIFIER",`(?:${m[S.NUMERICIDENTIFIER]}|${m[S.NONNUMERICIDENTIFIER]})`),Z("PRERELEASEIDENTIFIERLOOSE",`(?:${m[S.NUMERICIDENTIFIERLOOSE]}|${m[S.NONNUMERICIDENTIFIER]})`),Z("PRERELEASE",`(?:-(${m[S.PRERELEASEIDENTIFIER]}(?:\\.${m[S.PRERELEASEIDENTIFIER]})*))`),Z("PRERELEASELOOSE",`(?:-?(${m[S.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${m[S.PRERELEASEIDENTIFIERLOOSE]})*))`),Z("BUILDIDENTIFIER",`${le}+`),Z("BUILD",`(?:\\+(${m[S.BUILDIDENTIFIER]}(?:\\.${m[S.BUILDIDENTIFIER]})*))`),Z("FULLPLAIN",`v?${m[S.MAINVERSION]}${m[S.PRERELEASE]}?${m[S.BUILD]}?`),Z("FULL",`^${m[S.FULLPLAIN]}$`),Z("LOOSEPLAIN",`[v=\\s]*${m[S.MAINVERSIONLOOSE]}${m[S.PRERELEASELOOSE]}?${m[S.BUILD]}?`),Z("LOOSE",`^${m[S.LOOSEPLAIN]}$`),Z("GTLT","((?:<|>)?=?)"),Z("XRANGEIDENTIFIERLOOSE",`${m[S.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),Z("XRANGEIDENTIFIER",`${m[S.NUMERICIDENTIFIER]}|x|X|\\*`),Z("XRANGEPLAIN",`[v=\\s]*(${m[S.XRANGEIDENTIFIER]})(?:\\.(${m[S.XRANGEIDENTIFIER]})(?:\\.(${m[S.XRANGEIDENTIFIER]})(?:${m[S.PRERELEASE]})?${m[S.BUILD]}?)?)?`),Z("XRANGEPLAINLOOSE",`[v=\\s]*(${m[S.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[S.XRANGEIDENTIFIERLOOSE]})(?:\\.(${m[S.XRANGEIDENTIFIERLOOSE]})(?:${m[S.PRERELEASELOOSE]})?${m[S.BUILD]}?)?)?`),Z("XRANGE",`^${m[S.GTLT]}\\s*${m[S.XRANGEPLAIN]}$`),Z("XRANGELOOSE",`^${m[S.GTLT]}\\s*${m[S.XRANGEPLAINLOOSE]}$`),Z("COERCEPLAIN",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`),Z("COERCE",`${m[S.COERCEPLAIN]}(?:$|[^\\d])`),Z("COERCEFULL",m[S.COERCEPLAIN]+`(?:${m[S.PRERELEASE]})?(?:${m[S.BUILD]})?(?:$|[^\\d])`),Z("COERCERTL",m[S.COERCE],!0),Z("COERCERTLFULL",m[S.COERCEFULL],!0),Z("LONETILDE","(?:~>?)"),Z("TILDETRIM",`(\\s*)${m[S.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",Z("TILDE",`^${m[S.LONETILDE]}${m[S.XRANGEPLAIN]}$`),Z("TILDELOOSE",`^${m[S.LONETILDE]}${m[S.XRANGEPLAINLOOSE]}$`),Z("LONECARET","(?:\\^)"),Z("CARETTRIM",`(\\s*)${m[S.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",Z("CARET",`^${m[S.LONECARET]}${m[S.XRANGEPLAIN]}$`),Z("CARETLOOSE",`^${m[S.LONECARET]}${m[S.XRANGEPLAINLOOSE]}$`),Z("COMPARATORLOOSE",`^${m[S.GTLT]}\\s*(${m[S.LOOSEPLAIN]})$|^$`),Z("COMPARATOR",`^${m[S.GTLT]}\\s*(${m[S.FULLPLAIN]})$|^$`),Z("COMPARATORTRIM",`(\\s*)${m[S.GTLT]}\\s*(${m[S.LOOSEPLAIN]}|${m[S.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",Z("HYPHENRANGE",`^\\s*(${m[S.XRANGEPLAIN]})\\s+-\\s+(${m[S.XRANGEPLAIN]})\\s*$`),Z("HYPHENRANGELOOSE",`^\\s*(${m[S.XRANGEPLAINLOOSE]})\\s+-\\s+(${m[S.XRANGEPLAINLOOSE]})\\s*$`),Z("STAR","(<|>)?=?\\s*\\*"),Z("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),Z("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(rr,rr.exports);var $r=rr.exports;const Lr=Object.freeze({loose:!0}),it=Object.freeze({}),lt=e=>e?typeof e!="object"?Lr:e:it;var kt=null;const Ve=/^[0-9]+$/,Ze=(e,t)=>{const o=Ve.test(e),d=Ve.test(t);return o&&d&&(e=+e,t=+t),e===t?0:o&&!d?-1:d&&!o?1:e<t?-1:1};var Ht={compareIdentifiers:Ze,rcompareIdentifiers:(e,t)=>Ze(t,e)};const Nt=null,{MAX_LENGTH:xt,MAX_SAFE_INTEGER:Ot}=Ar,{safeRe:tn,t:Mt}=$r,Wr=null,{compareIdentifiers:bt}=Ht;let Zr=class jt{constructor(t,o){if(o=Wr(o),t instanceof jt){if(t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>xt)throw new TypeError(`version is longer than ${xt} characters`);Nt("SemVer",t,o),this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease;const d=t.trim().match(o.loose?tn[Mt.LOOSE]:tn[Mt.FULL]);if(!d)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>Ot||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ot||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ot||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(p=>{if(/^[0-9]+$/.test(p)){const _=+p;if(_>=0&&_<Ot)return _}return p}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Nt("SemVer.compare",this.version,this.options,t),!(t instanceof jt)){if(typeof t=="string"&&t===this.version)return 0;t=new jt(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof jt||(t=new jt(t,this.options)),bt(this.major,t.major)||bt(this.minor,t.minor)||bt(this.patch,t.patch)}comparePre(t){if(t instanceof jt||(t=new jt(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let o=0;do{const d=this.prerelease[o],p=t.prerelease[o];if(Nt("prerelease compare",o,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return bt(d,p)}while(++o)}compareBuild(t){t instanceof jt||(t=new jt(t,this.options));let o=0;do{const d=this.build[o],p=t.build[o];if(Nt("build compare",o,d,p),d===void 0&&p===void 0)return 0;if(p===void 0)return 1;if(d===void 0)return-1;if(d===p)continue;return bt(d,p)}while(++o)}inc(t,o,d){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",o,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",o,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",o,d),this.inc("pre",o,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",o,d),this.inc("pre",o,d);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const p=Number(d)?1:0;if(!o&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[p];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(o===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(p)}}if(o){let _=[o,p];d===!1&&(_=[o]),bt(this.prerelease[0],o)===0?isNaN(this.prerelease[1])&&(this.prerelease=_):this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Yr=null;const Rr=null,vt=(e,t,o=!1)=>{if(e instanceof Rr)return e;try{return new Rr(e,t)}catch(d){if(!o)return null;throw d}};var i=null;const n=null,r=(e,t)=>{const o=n(e,t);return o?o.version:null};var s=null;const u=null,l=null,g=(e,t)=>new l(e,t).major;var h=null;const w=null;class c{constructor(t){Ie(this,"bus");typeof t.getVersion!="function"||!u(t.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):w(t.getVersion())!==w(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()),this.bus=t}getVersion(){return"3.3.1"}subscribe(t,o){this.bus.subscribe(t,o)}unsubscribe(t,o){this.bus.unsubscribe(t,o)}emit(t,o){this.bus.emit(t,o)}}class a{constructor(){Ie(this,"handlers",new Map)}getVersion(){return"3.3.1"}subscribe(t,o){this.handlers.set(t,(this.handlers.get(t)||[]).concat(o))}unsubscribe(t,o){this.handlers.set(t,(this.handlers.get(t)||[]).filter(d=>d!==o))}emit(t,o){(this.handlers.get(t)||[]).forEach(d=>{try{d(o)}catch(p){console.error("could not invoke event listener",p)}})}}let v=null;function f(){return v!==null?v:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?v=new c(window._nc_event_bus):v=window._nc_event_bus=new a,v)}function A(e,t){f().emit(e,t)}/*!
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */class C extends de{constructor(o,d=100){super();Ie(this,"id");Ie(this,"order");this.id=o,this.order=d}filter(o){throw new Error("Not implemented")}updateChips(o){this.dispatchTypedEvent("update:chips",new CustomEvent("update:chips",{detail:o}))}filterUpdated(){this.dispatchTypedEvent("update:filter",new CustomEvent("update:filter"))}}function y(e){if(window._nc_filelist_filters||(window._nc_filelist_filters=new Map),window._nc_filelist_filters.has(e.id))throw new Error(`File list filter "${e.id}" already registered`);window._nc_filelist_filters.set(e.id,e),A("files:filter:added",e)}function N(e){window._nc_filelist_filters&&window._nc_filelist_filters.has(e)&&(window._nc_filelist_filters.delete(e),A("files:filter:removed",e))}function R(){return window._nc_filelist_filters?[...window._nc_filelist_filters.values()]:[]}const b=function(e){return Q().registerEntry(e)},P=function(e){return Q().unregisterEntry(e)},L=function(e){return Q().getEntries(e).sort((o,d)=>o.order!==void 0&&d.order!==void 0&&o.order!==d.order?o.order-d.order:o.displayName.localeCompare(d.displayName,void 0,{numeric:!0,sensitivity:"base"}))}},35947:(ge,K,$)=>{"use strict";$.d(K,{YK:()=>se});var M=$(21777),z=(V=>(V[V.Debug=0]="Debug",V[V.Info=1]="Info",V[V.Warn=2]="Warn",V[V.Error=3]="Error",V[V.Fatal=4]="Fatal",V))(z||{}),oe=Object.defineProperty,W=(V,D,Q)=>D in V?oe(V,D,{enumerable:!0,configurable:!0,writable:!0,value:Q}):V[D]=Q,Y=(V,D,Q)=>(W(V,typeof D!="symbol"?D+"":D,Q),Q);class H{constructor(D){Y(this,"context"),this.context=D||{}}formatMessage(D,Q,ee){let ve="["+z[Q].toUpperCase()+"] ";return ee&&ee.app&&(ve+=ee.app+": "),typeof D=="string"?ve+D:(ve+="Unexpected ".concat(D.name),D.message&&(ve+=' "'.concat(D.message,'"')),Q===z.Debug&&D.stack&&(ve+=`

Stack trace:
`.concat(D.stack)),ve)}log(D,Q,ee){var ve,he;if(!(typeof((ve=this.context)==null?void 0:ve.level)=="number"&&D<((he=this.context)==null?void 0:he.level)))switch(typeof Q=="object"&&ee?.error===void 0&&(ee.error=Q),D){case z.Debug:console.debug(this.formatMessage(Q,z.Debug,ee),ee);break;case z.Info:console.info(this.formatMessage(Q,z.Info,ee),ee);break;case z.Warn:console.warn(this.formatMessage(Q,z.Warn,ee),ee);break;case z.Error:console.error(this.formatMessage(Q,z.Error,ee),ee);break;case z.Fatal:default:console.error(this.formatMessage(Q,z.Fatal,ee),ee);break}}debug(D,Q){this.log(z.Debug,D,Object.assign({},this.context,Q))}info(D,Q){this.log(z.Info,D,Object.assign({},this.context,Q))}warn(D,Q){this.log(z.Warn,D,Object.assign({},this.context,Q))}error(D,Q){this.log(z.Error,D,Object.assign({},this.context,Q))}fatal(D,Q){this.log(z.Fatal,D,Object.assign({},this.context,Q))}}function te(V){return new H(V)}var J=Object.defineProperty,ae=(V,D,Q)=>D in V?J(V,D,{enumerable:!0,configurable:!0,writable:!0,value:Q}):V[D]=Q,ue=(V,D,Q)=>(ae(V,typeof D!="symbol"?D+"":D,Q),Q);class de{constructor(D){ue(this,"context"),ue(this,"factory"),this.context={},this.factory=D}setApp(D){return this.context.app=D,this}setLogLevel(D){return this.context.level=D,this}setUid(D){return this.context.uid=D,this}detectUser(){const D=(0,M.HW)();return D!==null&&(this.context.uid=D.uid),this}detectLogLevel(){const D=this,Q=()=>{var ee,ve;document.readyState==="complete"||document.readyState==="interactive"?(D.context.level=(ve=(ee=window._oc_config)==null?void 0:ee.loglevel)!=null?ve:z.Warn,window._oc_debug&&(D.context.level=z.Debug),document.removeEventListener("readystatechange",Q)):document.addEventListener("readystatechange",Q)};return Q(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function se(){return new de(te)}function ie(){return se().build()}},71225:(ge,K,$)=>{"use strict";$.d(K,{O0:()=>M,P8:()=>z});function M(H){return H&&H.split("/").map(encodeURIComponent).join("/")}function z(H){return H.replace(/\\/g,"/").replace(/.*\//,"")}function oe(H){return H.replace(/\\/g,"/").replace(/\/[^\/]*$/,"")}function W(...H){if(arguments.length<1)return"";const te=H.filter(V=>V.length>0);if(te.length<1)return"";const J=te[te.length-1],ae=te[0].charAt(0)==="/",ue=J.charAt(J.length-1)==="/",de=te.reduce((V,D)=>V.concat(D.split("/")),[]);let se=!ae;const ie=de.reduce((V,D)=>D===""?V:se?(se=!1,V+D):V+"/"+D,"");return ue?ie+"/":ie}function Y(H,te){const J=(H||"").split("/").filter(ue=>ue!=="."),ae=(te||"").split("/").filter(ue=>ue!==".");return H=W.apply(void 0,J),te=W.apply(void 0,ae),H===te}},82680:(ge,K,$)=>{"use strict";$.d(K,{G:()=>oe,f:()=>z});var M=$(32981);function z(){return(0,M.C)("files_sharing","isPublic",null)??document.querySelector('input#isPublic[type="hidden"][name="isPublic"][value="1"]')!==null}function oe(){return(0,M.C)("files_sharing","sharingToken",null)??document.querySelector('input#sharingToken[type="hidden"]')?.value??null}},18503:(ge,K,$)=>{"use strict";$.d(K,{A:()=>Ye});var M=$(85072),z=$.n(M),oe=$(97825),W=$.n(oe),Y=$(77659),H=$.n(Y),te=$(55056),J=$.n(te),ae=$(10540),ue=$.n(ae),de=$(41113),se=$.n(de),ie=$(61118),V={};V.styleTagTransform=se(),V.setAttributes=J(),V.insert=H().bind(null,"head"),V.domAPI=W(),V.insertStyleElement=ue();var D=z()(ie.A,V);const Q=ie.A&&ie.A.locals?ie.A.locals:void 0;var ee=$(25763),ve=$(56178),he=$(5340),$e=$(51431);const Ee={name:"NcActionButton",components:{CheckIcon:ee.C,ChevronRightIcon:ve.C},mixins:[he.A],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:fe=>["button","checkbox","radio","reset","submit"].includes(fe)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const fe={};return this.isInSemanticMenu?(fe.role="menuitem",this.type==="radio"?(fe.role="menuitemradio",fe["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(fe.role="menuitemcheckbox",fe["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(fe["aria-pressed"]=this.modelValue?"true":"false"),fe}},methods:{handleClick(fe){this.onClick(fe),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var Fe=function(){var q=this,ce=q._self._c;return ce("li",{staticClass:"action",class:{"action--disabled":q.disabled},attrs:{role:q.isInSemanticMenu&&"presentation"}},[ce("button",q._b({class:["action-button button-vue",{"action-button--active":q.isChecked,focusable:q.isFocusable}],attrs:{"aria-label":q.ariaLabel,disabled:q.disabled,title:q.title,type:q.nativeType},on:{click:q.handleClick}},"button",q.buttonAttributes,!1),[q._t("icon",function(){return[ce("span",{staticClass:"action-button__icon",class:[q.isIconUrl?"action-button__icon--url":q.icon],style:{backgroundImage:q.isIconUrl?`url(${q.icon})`:null},attrs:{"aria-hidden":"true"}})]}),q.name?ce("span",{staticClass:"action-button__longtext-wrapper"},[ce("strong",{staticClass:"action-button__name"},[q._v(" "+q._s(q.name)+" ")]),ce("br"),ce("span",{staticClass:"action-button__longtext",domProps:{textContent:q._s(q.text)}})]):q.isLongText?ce("span",{staticClass:"action-button__longtext",domProps:{textContent:q._s(q.text)}}):ce("span",{staticClass:"action-button__text"},[q._v(q._s(q.text))]),q.isMenu?ce("ChevronRightIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):q.isChecked===!0?ce("CheckIcon",{staticClass:"action-button__pressed-icon",attrs:{size:20}}):q.isChecked===!1?ce("span",{staticClass:"action-button__pressed-icon material-design-icon"}):q._e(),q._e()],2)])},nt=[],Ae=(0,$e.n)(Ee,Fe,nt,!1,null,"dba65098");const Ye=Ae.exports},75625:(ge,K,$)=>{"use strict";$.d(K,{A:()=>Fe});var M=$(85072),z=$.n(M),oe=$(97825),W=$.n(oe),Y=$(77659),H=$.n(Y),te=$(55056),J=$.n(te),ae=$(10540),ue=$.n(ae),de=$(41113),se=$.n(de),ie=$(63202),V={};V.styleTagTransform=se(),V.setAttributes=J(),V.insert=H().bind(null,"head"),V.domAPI=W(),V.insertStyleElement=ue();var D=z()(ie.A,V);const Q=ie.A&&ie.A.locals?ie.A.locals:void 0;var ee=$(51431);const ve={name:"NcActionCaption",inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{name:{type:String,required:!0}}};var he=function(){var Ae=this,Ye=Ae._self._c;return Ye("li",{staticClass:"app-navigation-caption",attrs:{role:Ae.isInSemanticMenu&&"presentation"}},[Ae._v(" "+Ae._s(Ae.name)+" ")])},$e=[],Ee=(0,ee.n)(ve,he,$e,!1,null,"b9668c9e");const Fe=Ee.exports},15502:(ge,K,$)=>{"use strict";$.d(K,{A:()=>Fe});var M=$(85072),z=$.n(M),oe=$(97825),W=$.n(oe),Y=$(77659),H=$.n(Y),te=$(55056),J=$.n(te),ae=$(10540),ue=$.n(ae),de=$(41113),se=$.n(de),ie=$(27611),V={};V.styleTagTransform=se(),V.setAttributes=J(),V.insert=H().bind(null,"head"),V.domAPI=W(),V.insertStyleElement=ue();var D=z()(ie.A,V);const Q=ie.A&&ie.A.locals?ie.A.locals:void 0;var ee=$(51431);const ve={name:"NcActionSeparator"};var he=function(){var Ae=this,Ye=Ae._self._c;return Ye("li",{staticClass:"action action-separator action--disabled",attrs:{role:"separator"}})},$e=[],Ee=(0,ee.n)(ve,he,$e,!1,null,"3e2324b7");const Fe=Ee.exports},74484:(ge,K,$)=>{"use strict";$.d(K,{N:()=>fe});var M=$(85072),z=$.n(M),oe=$(97825),W=$.n(oe),Y=$(77659),H=$.n(Y),te=$(55056),J=$.n(te),ae=$(10540),ue=$.n(ae),de=$(41113),se=$.n(de),ie=$(65027),V={};V.styleTagTransform=se(),V.setAttributes=J(),V.insert=H().bind(null,"head"),V.domAPI=W(),V.insertStyleElement=ue();var D=z()(ie.A,V);const Q=ie.A&&ie.A.locals?ie.A.locals:void 0;var ee=$(85471),ve=$(51431);const he={name:"NcProgressBar",props:{value:{type:Number,default:0,validator(q){return q>=0&&q<=100}},size:{type:[String,Number],default:"small",validator(q){return["small","medium"].includes(q)||typeof q=="number"}},error:{type:Boolean,default:!1},type:{type:String,default:"linear",validator(q){return["linear","circular"].includes(q)}},color:{type:String,default:null}},data(){return{stroke:4}},computed:{height(){return this.type==="circular"?Number.isInteger(this.size)?this.size:44:this.size==="small"?4:this.size==="medium"?6:this.size},progress(){return this.value/100},radius(){return this.height/2},radiusNormalized(){return this.radius-3*this.stroke},circumference(){return this.radiusNormalized*2*Math.PI}}},$e=()=>{(0,ee.$9)((q,ce)=>({"497e8a2b":q.color}))},Ee=he.setup;he.setup=Ee?(q,ce)=>($e(),Ee(q,ce)):$e;const Fe=he;var nt=function(){var ce=this,Je=ce._self._c;return ce.type==="circular"?Je("span",{staticClass:"progress-bar progress-bar--circular",class:{"progress-bar--error":ce.error},style:{"--progress-bar-height":ce.height+"px"},attrs:{role:"progressbar","aria-valuenow":ce.value}},[Je("svg",{attrs:{height:ce.height,width:ce.height}},[Je("circle",{attrs:{stroke:"currentColor",fill:"transparent","stroke-dasharray":`${ce.progress*ce.circumference} ${(1-ce.progress)*ce.circumference}`,"stroke-dashoffset":.25*ce.circumference,"stroke-width":ce.stroke,r:ce.radiusNormalized,cx:ce.radius,cy:ce.radius}}),Je("circle",{attrs:{stroke:"var(--color-background-darker)",fill:"transparent","stroke-dasharray":`${(1-ce.progress)*ce.circumference} ${ce.progress*ce.circumference}`,"stroke-dashoffset":(.25-ce.progress)*ce.circumference,"stroke-width":ce.stroke,r:ce.radiusNormalized,cx:ce.radius,cy:ce.radius}})])]):Je("progress",{staticClass:"progress-bar progress-bar--linear vue",class:{"progress-bar--error":ce.error},style:{"--progress-bar-height":ce.height+"px"},attrs:{max:"100"},domProps:{value:ce.value}})},Ae=[],Ye=(0,ve.n)(Fe,nt,Ae,!1,null,"5e97fe1f");const fe=Ye.exports},5460:(ge,K,$)=>{"use strict";var de,se,ie,V,D,Q,ee,ve,he,$e,Ee,Fe,nt,Ae,Ye,fe,Fr,kr,Mr,jr,Vr,or,wr,Cr,ar,Dr,lr;$.d(K,{A:()=>ue});var M=$(26368);const z=null;class oe extends Error{constructor(j){super(j),this.name="TimeoutError"}}class W extends Error{constructor(j){super(),this.name="AbortError",this.message=j}}const Y=k=>globalThis.DOMException===void 0?new W(k):new DOMException(k),H=k=>{const j=k.reason===void 0?Y("This operation was aborted."):k.reason;return j instanceof Error?j:Y(j)};function te(k,j){const{milliseconds:B,fallback:X,message:me,customTimers:Ce={setTimeout,clearTimeout}}=j;let we;const qe=new Promise((et,ot)=>{if(typeof B!="number"||Math.sign(B)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${B}\``);if(j.signal){const{signal:ht}=j;ht.aborted&&ot(H(ht)),ht.addEventListener("abort",()=>{ot(H(ht))})}if(B===Number.POSITIVE_INFINITY){k.then(et,ot);return}const At=new oe;we=Ce.setTimeout.call(void 0,()=>{if(X){try{et(X())}catch(ht){ot(ht)}return}typeof k.cancel=="function"&&k.cancel(),me===!1?et():me instanceof Error?ot(me):(At.message=me??`Promise timed out after ${B} milliseconds`,ot(At))},B),(async()=>{try{et(await k)}catch(ht){ot(ht)}})()}).finally(()=>{qe.clear()});return qe.clear=()=>{Ce.clearTimeout.call(void 0,we),we=void 0},qe}function J(k,j,B){let X=0,me=k.length;for(;me>0;){const Ce=Math.trunc(me/2);let we=X+Ce;B(k[we],j)<=0?(X=++we,me-=Ce+1):me=Ce}return X}class ae{constructor(){Re(this,de,[])}enqueue(j,B){B={priority:0,...B};const X={priority:B.priority,run:j};if(this.size&&F(this,de)[this.size-1].priority>=B.priority){F(this,de).push(X);return}const me=J(F(this,de),X,(Ce,we)=>we.priority-Ce.priority);F(this,de).splice(me,0,X)}dequeue(){return F(this,de).shift()?.run}filter(j){return F(this,de).filter(B=>B.priority===j.priority).map(B=>B.run)}get size(){return F(this,de).length}}de=new WeakMap;class ue extends M{constructor(B){super();Re(this,fe);Re(this,se);Re(this,ie);Re(this,V,0);Re(this,D);Re(this,Q);Re(this,ee,0);Re(this,ve);Re(this,he);Re(this,$e);Re(this,Ee);Re(this,Fe,0);Re(this,nt);Re(this,Ae);Re(this,Ye);Ie(this,"timeout");if(B={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:ae,...B},!(typeof B.intervalCap=="number"&&B.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${B.intervalCap?.toString()??""}\` (${typeof B.intervalCap})`);if(B.interval===void 0||!(Number.isFinite(B.interval)&&B.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${B.interval?.toString()??""}\` (${typeof B.interval})`);_e(this,se,B.carryoverConcurrencyCount),_e(this,ie,B.intervalCap===Number.POSITIVE_INFINITY||B.interval===0),_e(this,D,B.intervalCap),_e(this,Q,B.interval),_e(this,$e,new B.queueClass),_e(this,Ee,B.queueClass),this.concurrency=B.concurrency,this.timeout=B.timeout,_e(this,Ye,B.throwOnTimeout===!0),_e(this,Ae,B.autoStart===!1)}get concurrency(){return F(this,nt)}set concurrency(B){if(!(typeof B=="number"&&B>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${B}\` (${typeof B})`);_e(this,nt,B),Xe(this,fe,ar).call(this)}async add(B,X={}){return X={timeout:this.timeout,throwOnTimeout:F(this,Ye),...X},new Promise((me,Ce)=>{F(this,$e).enqueue(async()=>{sr(this,Fe)._++,sr(this,V)._++;try{X.signal?.throwIfAborted();let we=B({signal:X.signal});X.timeout&&(we=te(Promise.resolve(we),{milliseconds:X.timeout})),X.signal&&(we=Promise.race([we,Xe(this,fe,Dr).call(this,X.signal)]));const Et=await we;me(Et),this.emit("completed",Et)}catch(we){if(we instanceof oe&&!X.throwOnTimeout){me();return}Ce(we),this.emit("error",we)}finally{Xe(this,fe,Mr).call(this)}},X),this.emit("add"),Xe(this,fe,or).call(this)})}async addAll(B,X){return Promise.all(B.map(async me=>this.add(me,X)))}start(){return F(this,Ae)?(_e(this,Ae,!1),Xe(this,fe,ar).call(this),this):this}pause(){_e(this,Ae,!0)}clear(){_e(this,$e,new(F(this,Ee)))}async onEmpty(){F(this,$e).size!==0&&await Xe(this,fe,lr).call(this,"empty")}async onSizeLessThan(B){F(this,$e).size<B||await Xe(this,fe,lr).call(this,"next",()=>F(this,$e).size<B)}async onIdle(){F(this,Fe)===0&&F(this,$e).size===0||await Xe(this,fe,lr).call(this,"idle")}get size(){return F(this,$e).size}sizeBy(B){return F(this,$e).filter(B).length}get pending(){return F(this,Fe)}get isPaused(){return F(this,Ae)}}se=new WeakMap,ie=new WeakMap,V=new WeakMap,D=new WeakMap,Q=new WeakMap,ee=new WeakMap,ve=new WeakMap,he=new WeakMap,$e=new WeakMap,Ee=new WeakMap,Fe=new WeakMap,nt=new WeakMap,Ae=new WeakMap,Ye=new WeakMap,fe=new WeakSet,Fr=function(){return F(this,ie)||F(this,V)<F(this,D)},kr=function(){return F(this,Fe)<F(this,nt)},Mr=function(){sr(this,Fe)._--,Xe(this,fe,or).call(this),this.emit("next")},jr=function(){Xe(this,fe,Cr).call(this),Xe(this,fe,wr).call(this),_e(this,he,void 0)},Vr=function(){const B=Date.now();if(F(this,ve)===void 0){const X=F(this,ee)-B;if(X<0)_e(this,V,F(this,se)?F(this,Fe):0);else return F(this,he)===void 0&&_e(this,he,setTimeout(()=>{Xe(this,fe,jr).call(this)},X)),!0}return!1},or=function(){if(F(this,$e).size===0)return F(this,ve)&&clearInterval(F(this,ve)),_e(this,ve,void 0),this.emit("empty"),F(this,Fe)===0&&this.emit("idle"),!1;if(!F(this,Ae)){const B=!F(this,fe,Vr);if(F(this,fe,Fr)&&F(this,fe,kr)){const X=F(this,$e).dequeue();return X?(this.emit("active"),X(),B&&Xe(this,fe,wr).call(this),!0):!1}}return!1},wr=function(){F(this,ie)||F(this,ve)!==void 0||(_e(this,ve,setInterval(()=>{Xe(this,fe,Cr).call(this)},F(this,Q))),_e(this,ee,Date.now()+F(this,Q)))},Cr=function(){F(this,V)===0&&F(this,Fe)===0&&F(this,ve)&&(clearInterval(F(this,ve)),_e(this,ve,void 0)),_e(this,V,F(this,se)?F(this,Fe):0),Xe(this,fe,ar).call(this)},ar=function(){for(;Xe(this,fe,or).call(this););},Dr=async function(B){return new Promise((X,me)=>{B.addEventListener("abort",()=>{me(B.reason)},{once:!0})})},lr=async function(B,X){return new Promise(me=>{const Ce=()=>{X&&!X()||(this.off(B,Ce),me())};this.on(B,Ce)})}},44719:(ge,K,$)=>{"use strict";var it,lt,kt,Ve,Ze,Xt,Ht,Nt,xt,Ot,tn,Mt,Ur,bt,ur,Nr,zr;$.d(K,{Gu:()=>Er,UU:()=>br});var M=$(65606);/*! For license information please see index.js.LICENSE.txt */var z={2:i=>{function n(u,l,g){u instanceof RegExp&&(u=r(u,g)),l instanceof RegExp&&(l=r(l,g));var h=s(u,l,g);return h&&{start:h[0],end:h[1],pre:g.slice(0,h[0]),body:g.slice(h[0]+u.length,h[1]),post:g.slice(h[1]+l.length)}}function r(u,l){var g=l.match(u);return g?g[0]:null}function s(u,l,g){var h,w,c,a,v,f=g.indexOf(u),A=g.indexOf(l,f+1),C=f;if(f>=0&&A>0){for(h=[],c=g.length;C>=0&&!v;)C==f?(h.push(C),f=g.indexOf(u,C+1)):h.length==1?v=[h.pop(),A]:((w=h.pop())<c&&(c=w,a=A),A=g.indexOf(l,C+1)),C=f<A&&f>=0?f:A;h.length&&(v=[c,a])}return v}i.exports=n,n.range=s},101:function(i,n,r){var s;i=r.nmd(i),function(u){var l=(i&&i.exports,typeof global=="object"&&global);l.global!==l&&l.window;var g=function(v){this.message=v};(g.prototype=new Error).name="InvalidCharacterError";var h=function(v){throw new g(v)},w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,a={encode:function(v){v=String(v),/[^\0-\xFF]/.test(v)&&h("The string to be encoded contains characters outside of the Latin1 range.");for(var f,A,C,y,N=v.length%3,R="",b=-1,P=v.length-N;++b<P;)f=v.charCodeAt(b)<<16,A=v.charCodeAt(++b)<<8,C=v.charCodeAt(++b),R+=w.charAt((y=f+A+C)>>18&63)+w.charAt(y>>12&63)+w.charAt(y>>6&63)+w.charAt(63&y);return N==2?(f=v.charCodeAt(b)<<8,A=v.charCodeAt(++b),R+=w.charAt((y=f+A)>>10)+w.charAt(y>>4&63)+w.charAt(y<<2&63)+"="):N==1&&(y=v.charCodeAt(b),R+=w.charAt(y>>2)+w.charAt(y<<4&63)+"=="),R},decode:function(v){var f=(v=String(v).replace(c,"")).length;f%4==0&&(f=(v=v.replace(/==?$/,"")).length),(f%4==1||/[^+a-zA-Z0-9/]/.test(v))&&h("Invalid character: the string to be decoded is not correctly encoded.");for(var A,C,y=0,N="",R=-1;++R<f;)C=w.indexOf(v.charAt(R)),A=y%4?64*A+C:C,y++%4&&(N+=String.fromCharCode(255&A>>(-2*y&6)));return N},version:"1.0.0"};(s=function(){return a}.call(n,r,n,i))===void 0||(i.exports=s)}()},172:(i,n)=>{n.d=function(r){if(!r)return 0;for(var s=(r=r.toString()).length,u=r.length;u--;){var l=r.charCodeAt(u);56320<=l&&l<=57343&&u--,127<l&&l<=2047?s++:2047<l&&l<=65535&&(s+=2)}return s}},526:i=>{var n={utf8:{stringToBytes:function(r){return n.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(n.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var s=[],u=0;u<r.length;u++)s.push(255&r.charCodeAt(u));return s},bytesToString:function(r){for(var s=[],u=0;u<r.length;u++)s.push(String.fromCharCode(r[u]));return s.join("")}}};i.exports=n},298:i=>{var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(s,u){return s<<u|s>>>32-u},rotr:function(s,u){return s<<32-u|s>>>u},endian:function(s){if(s.constructor==Number)return 16711935&r.rotl(s,8)|4278255360&r.rotl(s,24);for(var u=0;u<s.length;u++)s[u]=r.endian(s[u]);return s},randomBytes:function(s){for(var u=[];s>0;s--)u.push(Math.floor(256*Math.random()));return u},bytesToWords:function(s){for(var u=[],l=0,g=0;l<s.length;l++,g+=8)u[g>>>5]|=s[l]<<24-g%32;return u},wordsToBytes:function(s){for(var u=[],l=0;l<32*s.length;l+=8)u.push(s[l>>>5]>>>24-l%32&255);return u},bytesToHex:function(s){for(var u=[],l=0;l<s.length;l++)u.push((s[l]>>>4).toString(16)),u.push((15&s[l]).toString(16));return u.join("")},hexToBytes:function(s){for(var u=[],l=0;l<s.length;l+=2)u.push(parseInt(s.substr(l,2),16));return u},bytesToBase64:function(s){for(var u=[],l=0;l<s.length;l+=3)for(var g=s[l]<<16|s[l+1]<<8|s[l+2],h=0;h<4;h++)8*l+6*h<=8*s.length?u.push(n.charAt(g>>>6*(3-h)&63)):u.push("=");return u.join("")},base64ToBytes:function(s){s=s.replace(/[^A-Z0-9+\/]/gi,"");for(var u=[],l=0,g=0;l<s.length;g=++l%4)g!=0&&u.push((n.indexOf(s.charAt(l-1))&Math.pow(2,-2*g+8)-1)<<2*g|n.indexOf(s.charAt(l))>>>6-2*g);return u}},i.exports=r},635:(i,n,r)=>{const s=r(31),u=r(338),l=r(221);i.exports={XMLParser:u,XMLValidator:s,XMLBuilder:l}},705:(i,n)=>{const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",u=new RegExp("^"+s+"$");n.isExist=function(l){return l!==void 0},n.isEmptyObject=function(l){return Object.keys(l).length===0},n.merge=function(l,g,h){if(g){const w=Object.keys(g),c=w.length;for(let a=0;a<c;a++)l[w[a]]=h==="strict"?[g[w[a]]]:g[w[a]]}},n.getValue=function(l){return n.isExist(l)?l:""},n.isName=function(l){return u.exec(l)!=null},n.getAllMatches=function(l,g){const h=[];let w=g.exec(l);for(;w;){const c=[];c.startIndex=g.lastIndex-w[0].length;const a=w.length;for(let v=0;v<a;v++)c.push(w[v]);h.push(c),w=g.exec(l)}return h},n.nameRegexp=s},31:(i,n,r)=>{const s=r(705),u={allowBooleanAttributes:!1,unpairedTags:[]};function l(b){return b===" "||b==="	"||b===`
`||b==="\r"}function g(b,P){const L=P;for(;P<b.length;P++)if(!(b[P]!="?"&&b[P]!=" ")){const e=b.substr(L,P-L);if(P>5&&e==="xml")return C("InvalidXml","XML declaration allowed only at the start of the document.",N(b,P));if(b[P]=="?"&&b[P+1]==">"){P++;break}}return P}function h(b,P){if(b.length>P+5&&b[P+1]==="-"&&b[P+2]==="-"){for(P+=3;P<b.length;P++)if(b[P]==="-"&&b[P+1]==="-"&&b[P+2]===">"){P+=2;break}}else if(b.length>P+8&&b[P+1]==="D"&&b[P+2]==="O"&&b[P+3]==="C"&&b[P+4]==="T"&&b[P+5]==="Y"&&b[P+6]==="P"&&b[P+7]==="E"){let L=1;for(P+=8;P<b.length;P++)if(b[P]==="<")L++;else if(b[P]===">"&&(L--,L===0))break}else if(b.length>P+9&&b[P+1]==="["&&b[P+2]==="C"&&b[P+3]==="D"&&b[P+4]==="A"&&b[P+5]==="T"&&b[P+6]==="A"&&b[P+7]==="["){for(P+=8;P<b.length;P++)if(b[P]==="]"&&b[P+1]==="]"&&b[P+2]===">"){P+=2;break}}return P}n.validate=function(b,P){P=Object.assign({},u,P);const L=[];let e=!1,t=!1;b[0]==="\uFEFF"&&(b=b.substr(1));for(let d=0;d<b.length;d++)if(b[d]==="<"&&b[d+1]==="?"){if(d+=2,d=g(b,d),d.err)return d}else{if(b[d]!=="<"){if(l(b[d]))continue;return C("InvalidChar","char '"+b[d]+"' is not expected.",N(b,d))}{let p=d;if(d++,b[d]==="!"){d=h(b,d);continue}{let _=!1;b[d]==="/"&&(_=!0,d++);let T="";for(;d<b.length&&b[d]!==">"&&b[d]!==" "&&b[d]!=="	"&&b[d]!==`
`&&b[d]!=="\r";d++)T+=b[d];if(T=T.trim(),T[T.length-1]==="/"&&(T=T.substring(0,T.length-1),d--),o=T,!s.isName(o)){let S;return S=T.trim().length===0?"Invalid space after '<'.":"Tag '"+T+"' is an invalid name.",C("InvalidTag",S,N(b,d))}const O=a(b,d);if(O===!1)return C("InvalidAttr","Attributes for '"+T+"' have open quote.",N(b,d));let m=O.value;if(d=O.index,m[m.length-1]==="/"){const S=d-m.length;m=m.substring(0,m.length-1);const U=f(m,P);if(U!==!0)return C(U.err.code,U.err.msg,N(b,S+U.err.line));e=!0}else if(_){if(!O.tagClosed)return C("InvalidTag","Closing tag '"+T+"' doesn't have proper closing.",N(b,d));if(m.trim().length>0)return C("InvalidTag","Closing tag '"+T+"' can't have attributes or invalid starting.",N(b,p));if(L.length===0)return C("InvalidTag","Closing tag '"+T+"' has not been opened.",N(b,p));{const S=L.pop();if(T!==S.tagName){let U=N(b,S.tagStartPos);return C("InvalidTag","Expected closing tag '"+S.tagName+"' (opened in line "+U.line+", col "+U.col+") instead of closing tag '"+T+"'.",N(b,p))}L.length==0&&(t=!0)}}else{const S=f(m,P);if(S!==!0)return C(S.err.code,S.err.msg,N(b,d-m.length+S.err.line));if(t===!0)return C("InvalidXml","Multiple possible root nodes found.",N(b,d));P.unpairedTags.indexOf(T)!==-1||L.push({tagName:T,tagStartPos:p}),e=!0}for(d++;d<b.length;d++)if(b[d]==="<"){if(b[d+1]==="!"){d++,d=h(b,d);continue}if(b[d+1]!=="?")break;if(d=g(b,++d),d.err)return d}else if(b[d]==="&"){const S=A(b,d);if(S==-1)return C("InvalidChar","char '&' is not expected.",N(b,d));d=S}else if(t===!0&&!l(b[d]))return C("InvalidXml","Extra text at the end",N(b,d));b[d]==="<"&&d--}}}var o;return e?L.length==1?C("InvalidTag","Unclosed tag '"+L[0].tagName+"'.",N(b,L[0].tagStartPos)):!(L.length>0)||C("InvalidXml","Invalid '"+JSON.stringify(L.map(d=>d.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):C("InvalidXml","Start tag expected.",1)};const w='"',c="'";function a(b,P){let L="",e="",t=!1;for(;P<b.length;P++){if(b[P]===w||b[P]===c)e===""?e=b[P]:e!==b[P]||(e="");else if(b[P]===">"&&e===""){t=!0;break}L+=b[P]}return e===""&&{value:L,index:P,tagClosed:t}}const v=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function f(b,P){const L=s.getAllMatches(b,v),e={};for(let t=0;t<L.length;t++){if(L[t][1].length===0)return C("InvalidAttr","Attribute '"+L[t][2]+"' has no space in starting.",R(L[t]));if(L[t][3]!==void 0&&L[t][4]===void 0)return C("InvalidAttr","Attribute '"+L[t][2]+"' is without value.",R(L[t]));if(L[t][3]===void 0&&!P.allowBooleanAttributes)return C("InvalidAttr","boolean attribute '"+L[t][2]+"' is not allowed.",R(L[t]));const o=L[t][2];if(!y(o))return C("InvalidAttr","Attribute '"+o+"' is an invalid name.",R(L[t]));if(e.hasOwnProperty(o))return C("InvalidAttr","Attribute '"+o+"' is repeated.",R(L[t]));e[o]=1}return!0}function A(b,P){if(b[++P]===";")return-1;if(b[P]==="#")return function(e,t){let o=/\d/;for(e[t]==="x"&&(t++,o=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(o))break}return-1}(b,++P);let L=0;for(;P<b.length;P++,L++)if(!(b[P].match(/\w/)&&L<20)){if(b[P]===";")break;return-1}return P}function C(b,P,L){return{err:{code:b,msg:P,line:L.line||L,col:L.col}}}function y(b){return s.isName(b)}function N(b,P){const L=b.substring(0,P).split(/\r?\n/);return{line:L.length,col:L[L.length-1].length+1}}function R(b){return b.startIndex+b[1].length}},221:(i,n,r)=>{const s=r(87),u={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(c,a){return a},attributeValueProcessor:function(c,a){return a},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function l(c){this.options=Object.assign({},u,c),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=w),this.processTextOrObjNode=g,this.options.format?(this.indentate=h,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function g(c,a,v){const f=this.j2x(c,v+1);return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],a,f.attrStr,v):this.buildObjectNode(f.val,a,f.attrStr,v)}function h(c){return this.options.indentBy.repeat(c)}function w(c){return!(!c.startsWith(this.options.attributeNamePrefix)||c===this.options.textNodeName)&&c.substr(this.attrPrefixLen)}l.prototype.build=function(c){return this.options.preserveOrder?s(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0).val)},l.prototype.j2x=function(c,a){let v="",f="";for(let A in c)if(Object.prototype.hasOwnProperty.call(c,A))if(c[A]===void 0)this.isAttribute(A)&&(f+="");else if(c[A]===null)this.isAttribute(A)?f+="":A[0]==="?"?f+=this.indentate(a)+"<"+A+"?"+this.tagEndChar:f+=this.indentate(a)+"<"+A+"/"+this.tagEndChar;else if(c[A]instanceof Date)f+=this.buildTextValNode(c[A],A,"",a);else if(typeof c[A]!="object"){const C=this.isAttribute(A);if(C)v+=this.buildAttrPairStr(C,""+c[A]);else if(A===this.options.textNodeName){let y=this.options.tagValueProcessor(A,""+c[A]);f+=this.replaceEntitiesValue(y)}else f+=this.buildTextValNode(c[A],A,"",a)}else if(Array.isArray(c[A])){const C=c[A].length;let y="",N="";for(let R=0;R<C;R++){const b=c[A][R];if(b!==void 0)if(b===null)A[0]==="?"?f+=this.indentate(a)+"<"+A+"?"+this.tagEndChar:f+=this.indentate(a)+"<"+A+"/"+this.tagEndChar;else if(typeof b=="object")if(this.options.oneListGroup){const P=this.j2x(b,a+1);y+=P.val,this.options.attributesGroupName&&b.hasOwnProperty(this.options.attributesGroupName)&&(N+=P.attrStr)}else y+=this.processTextOrObjNode(b,A,a);else if(this.options.oneListGroup){let P=this.options.tagValueProcessor(A,b);P=this.replaceEntitiesValue(P),y+=P}else y+=this.buildTextValNode(b,A,"",a)}this.options.oneListGroup&&(y=this.buildObjectNode(y,A,N,a)),f+=y}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){const C=Object.keys(c[A]),y=C.length;for(let N=0;N<y;N++)v+=this.buildAttrPairStr(C[N],""+c[A][C[N]])}else f+=this.processTextOrObjNode(c[A],A,a);return{attrStr:v,val:f}},l.prototype.buildAttrPairStr=function(c,a){return a=this.options.attributeValueProcessor(c,""+a),a=this.replaceEntitiesValue(a),this.options.suppressBooleanAttributes&&a==="true"?" "+c:" "+c+'="'+a+'"'},l.prototype.buildObjectNode=function(c,a,v,f){if(c==="")return a[0]==="?"?this.indentate(f)+"<"+a+v+"?"+this.tagEndChar:this.indentate(f)+"<"+a+v+this.closeTag(a)+this.tagEndChar;{let A="</"+a+this.tagEndChar,C="";return a[0]==="?"&&(C="?",A=""),!v&&v!==""||c.indexOf("<")!==-1?this.options.commentPropName!==!1&&a===this.options.commentPropName&&C.length===0?this.indentate(f)+`<!--${c}-->`+this.newLine:this.indentate(f)+"<"+a+v+C+this.tagEndChar+c+this.indentate(f)+A:this.indentate(f)+"<"+a+v+C+">"+c+A}},l.prototype.closeTag=function(c){let a="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(a="/"):a=this.options.suppressEmptyNode?"/":`></${c}`,a},l.prototype.buildTextValNode=function(c,a,v,f){if(this.options.cdataPropName!==!1&&a===this.options.cdataPropName)return this.indentate(f)+`<![CDATA[${c}]]>`+this.newLine;if(this.options.commentPropName!==!1&&a===this.options.commentPropName)return this.indentate(f)+`<!--${c}-->`+this.newLine;if(a[0]==="?")return this.indentate(f)+"<"+a+v+"?"+this.tagEndChar;{let A=this.options.tagValueProcessor(a,c);return A=this.replaceEntitiesValue(A),A===""?this.indentate(f)+"<"+a+v+this.closeTag(a)+this.tagEndChar:this.indentate(f)+"<"+a+v+">"+A+"</"+a+this.tagEndChar}},l.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(let a=0;a<this.options.entities.length;a++){const v=this.options.entities[a];c=c.replace(v.regex,v.val)}return c},i.exports=l},87:i=>{function n(g,h,w,c){let a="",v=!1;for(let f=0;f<g.length;f++){const A=g[f],C=r(A);if(C===void 0)continue;let y="";if(y=w.length===0?C:`${w}.${C}`,C===h.textNodeName){let P=A[C];u(y,h)||(P=h.tagValueProcessor(C,P),P=l(P,h)),v&&(a+=c),a+=P,v=!1;continue}if(C===h.cdataPropName){v&&(a+=c),a+=`<![CDATA[${A[C][0][h.textNodeName]}]]>`,v=!1;continue}if(C===h.commentPropName){a+=c+`<!--${A[C][0][h.textNodeName]}-->`,v=!0;continue}if(C[0]==="?"){const P=s(A[":@"],h),L=C==="?xml"?"":c;let e=A[C][0][h.textNodeName];e=e.length!==0?" "+e:"",a+=L+`<${C}${e}${P}?>`,v=!0;continue}let N=c;N!==""&&(N+=h.indentBy);const R=c+`<${C}${s(A[":@"],h)}`,b=n(A[C],h,y,N);h.unpairedTags.indexOf(C)!==-1?h.suppressUnpairedNode?a+=R+">":a+=R+"/>":b&&b.length!==0||!h.suppressEmptyNode?b&&b.endsWith(">")?a+=R+`>${b}${c}</${C}>`:(a+=R+">",b&&c!==""&&(b.includes("/>")||b.includes("</"))?a+=c+h.indentBy+b+c:a+=b,a+=`</${C}>`):a+=R+"/>",v=!0}return a}function r(g){const h=Object.keys(g);for(let w=0;w<h.length;w++){const c=h[w];if(g.hasOwnProperty(c)&&c!==":@")return c}}function s(g,h){let w="";if(g&&!h.ignoreAttributes)for(let c in g){if(!g.hasOwnProperty(c))continue;let a=h.attributeValueProcessor(c,g[c]);a=l(a,h),a===!0&&h.suppressBooleanAttributes?w+=` ${c.substr(h.attributeNamePrefix.length)}`:w+=` ${c.substr(h.attributeNamePrefix.length)}="${a}"`}return w}function u(g,h){let w=(g=g.substr(0,g.length-h.textNodeName.length-1)).substr(g.lastIndexOf(".")+1);for(let c in h.stopNodes)if(h.stopNodes[c]===g||h.stopNodes[c]==="*."+w)return!0;return!1}function l(g,h){if(g&&g.length>0&&h.processEntities)for(let w=0;w<h.entities.length;w++){const c=h.entities[w];g=g.replace(c.regex,c.val)}return g}i.exports=function(g,h){let w="";return h.format&&h.indentBy.length>0&&(w=`
`),n(g,h,"",w)}},193:(i,n,r)=>{const s=r(705);function u(v,f){let A="";for(;f<v.length&&v[f]!=="'"&&v[f]!=='"';f++)A+=v[f];if(A=A.trim(),A.indexOf(" ")!==-1)throw new Error("External entites are not supported");const C=v[f++];let y="";for(;f<v.length&&v[f]!==C;f++)y+=v[f];return[A,y,f]}function l(v,f){return v[f+1]==="!"&&v[f+2]==="-"&&v[f+3]==="-"}function g(v,f){return v[f+1]==="!"&&v[f+2]==="E"&&v[f+3]==="N"&&v[f+4]==="T"&&v[f+5]==="I"&&v[f+6]==="T"&&v[f+7]==="Y"}function h(v,f){return v[f+1]==="!"&&v[f+2]==="E"&&v[f+3]==="L"&&v[f+4]==="E"&&v[f+5]==="M"&&v[f+6]==="E"&&v[f+7]==="N"&&v[f+8]==="T"}function w(v,f){return v[f+1]==="!"&&v[f+2]==="A"&&v[f+3]==="T"&&v[f+4]==="T"&&v[f+5]==="L"&&v[f+6]==="I"&&v[f+7]==="S"&&v[f+8]==="T"}function c(v,f){return v[f+1]==="!"&&v[f+2]==="N"&&v[f+3]==="O"&&v[f+4]==="T"&&v[f+5]==="A"&&v[f+6]==="T"&&v[f+7]==="I"&&v[f+8]==="O"&&v[f+9]==="N"}function a(v){if(s.isName(v))return v;throw new Error(`Invalid entity name ${v}`)}i.exports=function(v,f){const A={};if(v[f+3]!=="O"||v[f+4]!=="C"||v[f+5]!=="T"||v[f+6]!=="Y"||v[f+7]!=="P"||v[f+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{f+=9;let C=1,y=!1,N=!1,R="";for(;f<v.length;f++)if(v[f]!=="<"||N)if(v[f]===">"){if(N?v[f-1]==="-"&&v[f-2]==="-"&&(N=!1,C--):C--,C===0)break}else v[f]==="["?y=!0:R+=v[f];else{if(y&&g(v,f))f+=7,[entityName,val,f]=u(v,f+1),val.indexOf("&")===-1&&(A[a(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(y&&h(v,f))f+=8;else if(y&&w(v,f))f+=8;else if(y&&c(v,f))f+=9;else{if(!l)throw new Error("Invalid DOCTYPE");N=!0}C++,R=""}if(C!==0)throw new Error("Unclosed DOCTYPE")}return{entities:A,i:f}}},63:(i,n)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(s,u){return u},attributeValueProcessor:function(s,u){return u},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(s,u,l){return s}};n.buildOptions=function(s){return Object.assign({},r,s)},n.defaultOptions=r},299:(i,n,r)=>{const s=r(705),u=r(365),l=r(193),g=r(494);function h(e){const t=Object.keys(e);for(let o=0;o<t.length;o++){const d=t[o];this.lastEntities[d]={regex:new RegExp("&"+d+";","g"),val:e[d]}}}function w(e,t,o,d,p,_,T){if(e!==void 0&&(this.options.trimValues&&!d&&(e=e.trim()),e.length>0)){T||(e=this.replaceEntitiesValue(e));const O=this.options.tagValueProcessor(t,e,o,p,_);return O==null?e:typeof O!=typeof e||O!==e?O:this.options.trimValues||e.trim()===e?L(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function c(e){if(this.options.removeNSPrefix){const t=e.split(":"),o=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=o+t[1])}return e}const a=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function v(e,t,o){if(!this.options.ignoreAttributes&&typeof e=="string"){const d=s.getAllMatches(e,a),p=d.length,_={};for(let T=0;T<p;T++){const O=this.resolveNameSpace(d[T][1]);let m=d[T][4],S=this.options.attributeNamePrefix+O;if(O.length)if(this.options.transformAttributeName&&(S=this.options.transformAttributeName(S)),S==="__proto__"&&(S="#__proto__"),m!==void 0){this.options.trimValues&&(m=m.trim()),m=this.replaceEntitiesValue(m);const U=this.options.attributeValueProcessor(O,m,t);_[S]=U==null?m:typeof U!=typeof m||U!==m?U:L(m,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(_[S]=!0)}if(!Object.keys(_).length)return;if(this.options.attributesGroupName){const T={};return T[this.options.attributesGroupName]=_,T}return _}}const f=function(e){e=e.replace(/\r\n?/g,`
`);const t=new u("!xml");let o=t,d="",p="";for(let _=0;_<e.length;_++)if(e[_]==="<")if(e[_+1]==="/"){const T=R(e,">",_,"Closing Tag is not closed.");let O=e.substring(_+2,T).trim();if(this.options.removeNSPrefix){const U=O.indexOf(":");U!==-1&&(O=O.substr(U+1))}this.options.transformTagName&&(O=this.options.transformTagName(O)),o&&(d=this.saveTextToParentTag(d,o,p));const m=p.substring(p.lastIndexOf(".")+1);if(O&&this.options.unpairedTags.indexOf(O)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${O}>`);let S=0;m&&this.options.unpairedTags.indexOf(m)!==-1?(S=p.lastIndexOf(".",p.lastIndexOf(".")-1),this.tagsNodeStack.pop()):S=p.lastIndexOf("."),p=p.substring(0,S),o=this.tagsNodeStack.pop(),d="",_=T}else if(e[_+1]==="?"){let T=b(e,_,!1,"?>");if(!T)throw new Error("Pi Tag is not closed.");if(d=this.saveTextToParentTag(d,o,p),!(this.options.ignoreDeclaration&&T.tagName==="?xml"||this.options.ignorePiTags)){const O=new u(T.tagName);O.add(this.options.textNodeName,""),T.tagName!==T.tagExp&&T.attrExpPresent&&(O[":@"]=this.buildAttributesMap(T.tagExp,p,T.tagName)),this.addChild(o,O,p)}_=T.closeIndex+1}else if(e.substr(_+1,3)==="!--"){const T=R(e,"-->",_+4,"Comment is not closed.");if(this.options.commentPropName){const O=e.substring(_+4,T-2);d=this.saveTextToParentTag(d,o,p),o.add(this.options.commentPropName,[{[this.options.textNodeName]:O}])}_=T}else if(e.substr(_+1,2)==="!D"){const T=l(e,_);this.docTypeEntities=T.entities,_=T.i}else if(e.substr(_+1,2)==="!["){const T=R(e,"]]>",_,"CDATA is not closed.")-2,O=e.substring(_+9,T);d=this.saveTextToParentTag(d,o,p);let m=this.parseTextData(O,o.tagname,p,!0,!1,!0,!0);m==null&&(m=""),this.options.cdataPropName?o.add(this.options.cdataPropName,[{[this.options.textNodeName]:O}]):o.add(this.options.textNodeName,m),_=T+2}else{let T=b(e,_,this.options.removeNSPrefix),O=T.tagName;const m=T.rawTagName;let S=T.tagExp,U=T.attrExpPresent,le=T.closeIndex;this.options.transformTagName&&(O=this.options.transformTagName(O)),o&&d&&o.tagname!=="!xml"&&(d=this.saveTextToParentTag(d,o,p,!1));const pe=o;if(pe&&this.options.unpairedTags.indexOf(pe.tagname)!==-1&&(o=this.tagsNodeStack.pop(),p=p.substring(0,p.lastIndexOf("."))),O!==t.tagname&&(p+=p?"."+O:O),this.isItStopNode(this.options.stopNodes,p,O)){let ye="";if(S.length>0&&S.lastIndexOf("/")===S.length-1)O[O.length-1]==="/"?(O=O.substr(0,O.length-1),p=p.substr(0,p.length-1),S=O):S=S.substr(0,S.length-1),_=T.closeIndex;else if(this.options.unpairedTags.indexOf(O)!==-1)_=T.closeIndex;else{const je=this.readStopNodeData(e,m,le+1);if(!je)throw new Error(`Unexpected end of ${m}`);_=je.i,ye=je.tagContent}const Z=new u(O);O!==S&&U&&(Z[":@"]=this.buildAttributesMap(S,p,O)),ye&&(ye=this.parseTextData(ye,O,p,!0,U,!0,!0)),p=p.substr(0,p.lastIndexOf(".")),Z.add(this.options.textNodeName,ye),this.addChild(o,Z,p)}else{if(S.length>0&&S.lastIndexOf("/")===S.length-1){O[O.length-1]==="/"?(O=O.substr(0,O.length-1),p=p.substr(0,p.length-1),S=O):S=S.substr(0,S.length-1),this.options.transformTagName&&(O=this.options.transformTagName(O));const ye=new u(O);O!==S&&U&&(ye[":@"]=this.buildAttributesMap(S,p,O)),this.addChild(o,ye,p),p=p.substr(0,p.lastIndexOf("."))}else{const ye=new u(O);this.tagsNodeStack.push(o),O!==S&&U&&(ye[":@"]=this.buildAttributesMap(S,p,O)),this.addChild(o,ye,p),o=ye}d="",_=le}}else d+=e[_];return t.child};function A(e,t,o){const d=this.options.updateTag(t.tagname,o,t[":@"]);d===!1||(typeof d=="string"&&(t.tagname=d),e.addChild(t))}const C=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const o=this.docTypeEntities[t];e=e.replace(o.regx,o.val)}for(let t in this.lastEntities){const o=this.lastEntities[t];e=e.replace(o.regex,o.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const o=this.htmlEntities[t];e=e.replace(o.regex,o.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function y(e,t,o,d){return e&&(d===void 0&&(d=Object.keys(t.child).length===0),(e=this.parseTextData(e,t.tagname,o,!1,!!t[":@"]&&Object.keys(t[":@"]).length!==0,d))!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function N(e,t,o){const d="*."+o;for(const p in e){const _=e[p];if(d===_||t===_)return!0}return!1}function R(e,t,o,d){const p=e.indexOf(t,o);if(p===-1)throw new Error(d);return p+t.length-1}function b(e,t,o){const d=function(U,le){let pe,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",Z="";for(let je=le;je<U.length;je++){let Ne=U[je];if(pe)Ne===pe&&(pe="");else if(Ne==='"'||Ne==="'")pe=Ne;else if(Ne===ye[0]){if(!ye[1])return{data:Z,index:je};if(U[je+1]===ye[1])return{data:Z,index:je}}else Ne==="	"&&(Ne=" ");Z+=Ne}}(e,t+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!d)return;let p=d.data;const _=d.index,T=p.search(/\s/);let O=p,m=!0;T!==-1&&(O=p.substring(0,T),p=p.substring(T+1).trimStart());const S=O;if(o){const U=O.indexOf(":");U!==-1&&(O=O.substr(U+1),m=O!==d.data.substr(U+1))}return{tagName:O,tagExp:p,closeIndex:_,attrExpPresent:m,rawTagName:S}}function P(e,t,o){const d=o;let p=1;for(;o<e.length;o++)if(e[o]==="<")if(e[o+1]==="/"){const _=R(e,">",o,`${t} is not closed`);if(e.substring(o+2,_).trim()===t&&(p--,p===0))return{tagContent:e.substring(d,o),i:_};o=_}else if(e[o+1]==="?")o=R(e,"?>",o+1,"StopNode is not closed.");else if(e.substr(o+1,3)==="!--")o=R(e,"-->",o+3,"StopNode is not closed.");else if(e.substr(o+1,2)==="![")o=R(e,"]]>",o,"StopNode is not closed.")-2;else{const _=b(e,o,">");_&&((_&&_.tagName)===t&&_.tagExp[_.tagExp.length-1]!=="/"&&p++,o=_.closeIndex)}}function L(e,t,o){if(t&&typeof e=="string"){const d=e.trim();return d==="true"||d!=="false"&&g(e,o)}return s.isExist(e)?e:""}i.exports=class{constructor(e){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,o)=>String.fromCharCode(Number.parseInt(o,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,o)=>String.fromCharCode(Number.parseInt(o,16))}},this.addExternalEntities=h,this.parseXml=f,this.parseTextData=w,this.resolveNameSpace=c,this.buildAttributesMap=v,this.isItStopNode=N,this.replaceEntitiesValue=C,this.readStopNodeData=P,this.saveTextToParentTag=y,this.addChild=A}}},338:(i,n,r)=>{const{buildOptions:s}=r(63),u=r(299),{prettify:l}=r(728),g=r(31);i.exports=class{constructor(h){this.externalEntities={},this.options=s(h)}parse(h,w){if(typeof h!="string"){if(!h.toString)throw new Error("XML data is accepted in String or Bytes[] form.");h=h.toString()}if(w){w===!0&&(w={});const v=g.validate(h,w);if(v!==!0)throw Error(`${v.err.msg}:${v.err.line}:${v.err.col}`)}const c=new u(this.options);c.addExternalEntities(this.externalEntities);const a=c.parseXml(h);return this.options.preserveOrder||a===void 0?a:l(a,this.options)}addEntity(h,w){if(w.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(h.indexOf("&")!==-1||h.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(w==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[h]=w}}},728:(i,n)=>{function r(g,h,w){let c;const a={};for(let v=0;v<g.length;v++){const f=g[v],A=s(f);let C="";if(C=w===void 0?A:w+"."+A,A===h.textNodeName)c===void 0?c=f[A]:c+=""+f[A];else{if(A===void 0)continue;if(f[A]){let y=r(f[A],h,C);const N=l(y,h);f[":@"]?u(y,f[":@"],C,h):Object.keys(y).length!==1||y[h.textNodeName]===void 0||h.alwaysCreateTextNode?Object.keys(y).length===0&&(h.alwaysCreateTextNode?y[h.textNodeName]="":y=""):y=y[h.textNodeName],a[A]!==void 0&&a.hasOwnProperty(A)?(Array.isArray(a[A])||(a[A]=[a[A]]),a[A].push(y)):h.isArray(A,C,N)?a[A]=[y]:a[A]=y}}}return typeof c=="string"?c.length>0&&(a[h.textNodeName]=c):c!==void 0&&(a[h.textNodeName]=c),a}function s(g){const h=Object.keys(g);for(let w=0;w<h.length;w++){const c=h[w];if(c!==":@")return c}}function u(g,h,w,c){if(h){const a=Object.keys(h),v=a.length;for(let f=0;f<v;f++){const A=a[f];c.isArray(A,w+"."+A,!0,!0)?g[A]=[h[A]]:g[A]=h[A]}}}function l(g,h){const{textNodeName:w}=h,c=Object.keys(g).length;return c===0||!(c!==1||!g[w]&&typeof g[w]!="boolean"&&g[w]!==0)}n.prettify=function(g,h){return r(g,h)}},365:i=>{i.exports=class{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,r){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:r})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}},135:i=>{function n(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}i.exports=function(r){return r!=null&&(n(r)||function(s){return typeof s.readFloatLE=="function"&&typeof s.slice=="function"&&n(s.slice(0,0))}(r)||!!r._isBuffer)}},542:(i,n,r)=>{(function(){var s=r(298),u=r(526).utf8,l=r(135),g=r(526).bin,h=function(w,c){w.constructor==String?w=c&&c.encoding==="binary"?g.stringToBytes(w):u.stringToBytes(w):l(w)?w=Array.prototype.slice.call(w,0):Array.isArray(w)||w.constructor===Uint8Array||(w=w.toString());for(var a=s.bytesToWords(w),v=8*w.length,f=1732584193,A=-271733879,C=-1732584194,y=271733878,N=0;N<a.length;N++)a[N]=16711935&(a[N]<<8|a[N]>>>24)|4278255360&(a[N]<<24|a[N]>>>8);a[v>>>5]|=128<<v%32,a[14+(v+64>>>9<<4)]=v;var R=h._ff,b=h._gg,P=h._hh,L=h._ii;for(N=0;N<a.length;N+=16){var e=f,t=A,o=C,d=y;f=R(f,A,C,y,a[N+0],7,-680876936),y=R(y,f,A,C,a[N+1],12,-389564586),C=R(C,y,f,A,a[N+2],17,606105819),A=R(A,C,y,f,a[N+3],22,-1044525330),f=R(f,A,C,y,a[N+4],7,-176418897),y=R(y,f,A,C,a[N+5],12,1200080426),C=R(C,y,f,A,a[N+6],17,-1473231341),A=R(A,C,y,f,a[N+7],22,-45705983),f=R(f,A,C,y,a[N+8],7,1770035416),y=R(y,f,A,C,a[N+9],12,-1958414417),C=R(C,y,f,A,a[N+10],17,-42063),A=R(A,C,y,f,a[N+11],22,-1990404162),f=R(f,A,C,y,a[N+12],7,1804603682),y=R(y,f,A,C,a[N+13],12,-40341101),C=R(C,y,f,A,a[N+14],17,-1502002290),f=b(f,A=R(A,C,y,f,a[N+15],22,1236535329),C,y,a[N+1],5,-165796510),y=b(y,f,A,C,a[N+6],9,-1069501632),C=b(C,y,f,A,a[N+11],14,643717713),A=b(A,C,y,f,a[N+0],20,-373897302),f=b(f,A,C,y,a[N+5],5,-701558691),y=b(y,f,A,C,a[N+10],9,38016083),C=b(C,y,f,A,a[N+15],14,-660478335),A=b(A,C,y,f,a[N+4],20,-405537848),f=b(f,A,C,y,a[N+9],5,568446438),y=b(y,f,A,C,a[N+14],9,-1019803690),C=b(C,y,f,A,a[N+3],14,-187363961),A=b(A,C,y,f,a[N+8],20,1163531501),f=b(f,A,C,y,a[N+13],5,-1444681467),y=b(y,f,A,C,a[N+2],9,-51403784),C=b(C,y,f,A,a[N+7],14,1735328473),f=P(f,A=b(A,C,y,f,a[N+12],20,-1926607734),C,y,a[N+5],4,-378558),y=P(y,f,A,C,a[N+8],11,-2022574463),C=P(C,y,f,A,a[N+11],16,1839030562),A=P(A,C,y,f,a[N+14],23,-35309556),f=P(f,A,C,y,a[N+1],4,-1530992060),y=P(y,f,A,C,a[N+4],11,1272893353),C=P(C,y,f,A,a[N+7],16,-155497632),A=P(A,C,y,f,a[N+10],23,-1094730640),f=P(f,A,C,y,a[N+13],4,681279174),y=P(y,f,A,C,a[N+0],11,-358537222),C=P(C,y,f,A,a[N+3],16,-722521979),A=P(A,C,y,f,a[N+6],23,76029189),f=P(f,A,C,y,a[N+9],4,-640364487),y=P(y,f,A,C,a[N+12],11,-421815835),C=P(C,y,f,A,a[N+15],16,530742520),f=L(f,A=P(A,C,y,f,a[N+2],23,-995338651),C,y,a[N+0],6,-198630844),y=L(y,f,A,C,a[N+7],10,1126891415),C=L(C,y,f,A,a[N+14],15,-1416354905),A=L(A,C,y,f,a[N+5],21,-57434055),f=L(f,A,C,y,a[N+12],6,1700485571),y=L(y,f,A,C,a[N+3],10,-1894986606),C=L(C,y,f,A,a[N+10],15,-1051523),A=L(A,C,y,f,a[N+1],21,-2054922799),f=L(f,A,C,y,a[N+8],6,1873313359),y=L(y,f,A,C,a[N+15],10,-30611744),C=L(C,y,f,A,a[N+6],15,-1560198380),A=L(A,C,y,f,a[N+13],21,1309151649),f=L(f,A,C,y,a[N+4],6,-145523070),y=L(y,f,A,C,a[N+11],10,-1120210379),C=L(C,y,f,A,a[N+2],15,718787259),A=L(A,C,y,f,a[N+9],21,-343485551),f=f+e>>>0,A=A+t>>>0,C=C+o>>>0,y=y+d>>>0}return s.endian([f,A,C,y])};h._ff=function(w,c,a,v,f,A,C){var y=w+(c&a|~c&v)+(f>>>0)+C;return(y<<A|y>>>32-A)+c},h._gg=function(w,c,a,v,f,A,C){var y=w+(c&v|a&~v)+(f>>>0)+C;return(y<<A|y>>>32-A)+c},h._hh=function(w,c,a,v,f,A,C){var y=w+(c^a^v)+(f>>>0)+C;return(y<<A|y>>>32-A)+c},h._ii=function(w,c,a,v,f,A,C){var y=w+(a^(c|~v))+(f>>>0)+C;return(y<<A|y>>>32-A)+c},h._blocksize=16,h._digestsize=16,i.exports=function(w,c){if(w==null)throw new Error("Illegal argument "+w);var a=s.wordsToBytes(h(w,c));return c&&c.asBytes?a:c&&c.asString?g.bytesToString(a):s.bytesToHex(a)}})()},285:(i,n,r)=>{var s=r(2);i.exports=function(R){return R?(R.substr(0,2)==="{}"&&(R="\\{\\}"+R.substr(2)),N(function(b){return b.split("\\\\").join(u).split("\\{").join(l).split("\\}").join(g).split("\\,").join(h).split("\\.").join(w)}(R),!0).map(a)):[]};var u="\0SLASH"+Math.random()+"\0",l="\0OPEN"+Math.random()+"\0",g="\0CLOSE"+Math.random()+"\0",h="\0COMMA"+Math.random()+"\0",w="\0PERIOD"+Math.random()+"\0";function c(R){return parseInt(R,10)==R?parseInt(R,10):R.charCodeAt(0)}function a(R){return R.split(u).join("\\").split(l).join("{").split(g).join("}").split(h).join(",").split(w).join(".")}function v(R){if(!R)return[""];var b=[],P=s("{","}",R);if(!P)return R.split(",");var L=P.pre,e=P.body,t=P.post,o=L.split(",");o[o.length-1]+="{"+e+"}";var d=v(t);return t.length&&(o[o.length-1]+=d.shift(),o.push.apply(o,d)),b.push.apply(b,o),b}function f(R){return"{"+R+"}"}function A(R){return/^-?0\d/.test(R)}function C(R,b){return R<=b}function y(R,b){return R>=b}function N(R,b){var P=[],L=s("{","}",R);if(!L)return[R];var e=L.pre,t=L.post.length?N(L.post,!1):[""];if(/\$$/.test(L.pre))for(var o=0;o<t.length;o++){var d=e+"{"+L.body+"}"+t[o];P.push(d)}else{var p,_,T=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(L.body),O=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(L.body),m=T||O,S=L.body.indexOf(",")>=0;if(!m&&!S)return L.post.match(/,.*\}/)?N(R=L.pre+"{"+L.body+g+L.post):[R];if(m)p=L.body.split(/\.\./);else if((p=v(L.body)).length===1&&(p=N(p[0],!1).map(f)).length===1)return t.map(function(Xr){return L.pre+p[0]+Xr});if(m){var U=c(p[0]),le=c(p[1]),pe=Math.max(p[0].length,p[1].length),ye=p.length==3?Math.abs(c(p[2])):1,Z=C;le<U&&(ye*=-1,Z=y);var je=p.some(A);_=[];for(var Ne=U;Z(Ne,le);Ne+=ye){var wt;if(O)(wt=String.fromCharCode(Ne))==="\\"&&(wt="");else if(wt=String(Ne),je){var ir=pe-wt.length;if(ir>0){var nn=new Array(ir+1).join("0");wt=Ne<0?"-"+nn+wt.slice(1):nn+wt}}_.push(wt)}}else{_=[];for(var dn=0;dn<p.length;dn++)_.push.apply(_,N(p[dn],!1))}for(dn=0;dn<_.length;dn++)for(o=0;o<t.length;o++)d=e+_[dn]+t[o],(!b||m||d)&&P.push(d)}return P}},829:i=>{function n(c){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},n(c)}function r(c){var a=typeof Map=="function"?new Map:void 0;return r=function(v){if(v===null||(f=v,Function.toString.call(f).indexOf("[native code]")===-1))return v;var f;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(a!==void 0){if(a.has(v))return a.get(v);a.set(v,A)}function A(){return s(v,arguments,l(this).constructor)}return A.prototype=Object.create(v.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),u(A,v)},r(c)}function s(c,a,v){return s=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(f,A,C){var y=[null];y.push.apply(y,A);var N=new(Function.bind.apply(f,y));return C&&u(N,C.prototype),N},s.apply(null,arguments)}function u(c,a){return u=Object.setPrototypeOf||function(v,f){return v.__proto__=f,v},u(c,a)}function l(c){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},l(c)}var g=function(c){function a(v){var f;return function(A,C){if(!(A instanceof C))throw new TypeError("Cannot call a class as a function")}(this,a),(f=function(A,C){return!C||n(C)!=="object"&&typeof C!="function"?function(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(A):C}(this,l(a).call(this,v))).name="ObjectPrototypeMutationError",f}return function(v,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(f&&f.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),f&&u(v,f)}(a,c),a}(r(Error));function h(c,a){for(var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},f=a.split("."),A=f.length,C=function(R){var b=f[R];if(!c)return{v:void 0};if(b==="+"){if(Array.isArray(c))return{v:c.map(function(L,e){var t=f.slice(R+1);return t.length>0?h(L,t.join("."),v):v(c,e,f,R)})};var P=f.slice(0,R).join(".");throw new Error("Object at wildcard (".concat(P,") is not an array"))}c=v(c,b,f,R)},y=0;y<A;y++){var N=C(y);if(n(N)==="object")return N.v}return c}function w(c,a){return c.length===a+1}i.exports={set:function(c,a,v){if(n(c)!="object"||c===null||a===void 0)return c;if(typeof a=="number")return c[a]=v,c[a];try{return h(c,a,function(f,A,C,y){if(f===Reflect.getPrototypeOf({}))throw new g("Attempting to mutate Object.prototype");if(!f[A]){var N=Number.isInteger(Number(C[y+1])),R=C[y+1]==="+";f[A]=N||R?[]:{}}return w(C,y)&&(f[A]=v),f[A]})}catch(f){if(f instanceof g)throw f;return c}},get:function(c,a){if(n(c)!="object"||c===null||a===void 0)return c;if(typeof a=="number")return c[a];try{return h(c,a,function(v,f){return v[f]})}catch{return c}},has:function(c,a){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(c)!="object"||c===null||a===void 0)return!1;if(typeof a=="number")return a in c;try{var f=!1;return h(c,a,function(A,C,y,N){if(!w(y,N))return A&&A[C];f=v.own?A.hasOwnProperty(C):C in A}),f}catch{return!1}},hasOwn:function(c,a,v){return this.has(c,a,v||{own:!0})},isIn:function(c,a,v){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(n(c)!="object"||c===null||a===void 0)return!1;try{var A=!1,C=!1;return h(c,a,function(y,N,R,b){return A=A||y===v||!!y&&y[N]===v,C=w(R,b)&&n(y)==="object"&&N in y,y&&y[N]}),f.validPath?A&&C:A}catch{return!1}},ObjectPrototypeMutationError:g}},47:(i,n,r)=>{var s=r(410),u=function(c){return typeof c=="string"};function l(c,a){for(var v=[],f=0;f<c.length;f++){var A=c[f];A&&A!=="."&&(A===".."?v.length&&v[v.length-1]!==".."?v.pop():a&&v.push(".."):v.push(A))}return v}var g=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,h={};function w(c){return g.exec(c).slice(1)}h.resolve=function(){for(var c="",a=!1,v=arguments.length-1;v>=-1&&!a;v--){var f=v>=0?arguments[v]:M.cwd();if(!u(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(c=f+"/"+c,a=f.charAt(0)==="/")}return(a?"/":"")+(c=l(c.split("/"),!a).join("/"))||"."},h.normalize=function(c){var a=h.isAbsolute(c),v=c.substr(-1)==="/";return(c=l(c.split("/"),!a).join("/"))||a||(c="."),c&&v&&(c+="/"),(a?"/":"")+c},h.isAbsolute=function(c){return c.charAt(0)==="/"},h.join=function(){for(var c="",a=0;a<arguments.length;a++){var v=arguments[a];if(!u(v))throw new TypeError("Arguments to path.join must be strings");v&&(c+=c?"/"+v:v)}return h.normalize(c)},h.relative=function(c,a){function v(b){for(var P=0;P<b.length&&b[P]==="";P++);for(var L=b.length-1;L>=0&&b[L]==="";L--);return P>L?[]:b.slice(P,L+1)}c=h.resolve(c).substr(1),a=h.resolve(a).substr(1);for(var f=v(c.split("/")),A=v(a.split("/")),C=Math.min(f.length,A.length),y=C,N=0;N<C;N++)if(f[N]!==A[N]){y=N;break}var R=[];for(N=y;N<f.length;N++)R.push("..");return(R=R.concat(A.slice(y))).join("/")},h._makeLong=function(c){return c},h.dirname=function(c){var a=w(c),v=a[0],f=a[1];return v||f?(f&&(f=f.substr(0,f.length-1)),v+f):"."},h.basename=function(c,a){var v=w(c)[2];return a&&v.substr(-1*a.length)===a&&(v=v.substr(0,v.length-a.length)),v},h.extname=function(c){return w(c)[3]},h.format=function(c){if(!s.isObject(c))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof c);var a=c.root||"";if(!u(a))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof c.root);return(c.dir?c.dir+h.sep:"")+(c.base||"")},h.parse=function(c){if(!u(c))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof c);var a=w(c);if(!a||a.length!==4)throw new TypeError("Invalid path '"+c+"'");return a[1]=a[1]||"",a[2]=a[2]||"",a[3]=a[3]||"",{root:a[0],dir:a[0]+a[1].slice(0,a[1].length-1),base:a[2],ext:a[3],name:a[2].slice(0,a[2].length-a[3].length)}},h.sep="/",h.delimiter=":",i.exports=h},647:(i,n)=>{var r=Object.prototype.hasOwnProperty;function s(l){try{return decodeURIComponent(l.replace(/\+/g," "))}catch{return null}}function u(l){try{return encodeURIComponent(l)}catch{return null}}n.stringify=function(l,g){g=g||"";var h,w,c=[];for(w in typeof g!="string"&&(g="?"),l)if(r.call(l,w)){if((h=l[w])||h!=null&&!isNaN(h)||(h=""),w=u(w),h=u(h),w===null||h===null)continue;c.push(w+"="+h)}return c.length?g+c.join("&"):""},n.parse=function(l){for(var g,h=/([^=?#&]+)=?([^&]*)/g,w={};g=h.exec(l);){var c=s(g[1]),a=s(g[2]);c===null||a===null||c in w||(w[c]=a)}return w}},670:i=>{i.exports=function(n,r){if(r=r.split(":")[0],!(n=+n))return!1;switch(r){case"http":case"ws":return n!==80;case"https":case"wss":return n!==443;case"ftp":return n!==21;case"gopher":return n!==70;case"file":return!1}return n!==0}},494:i=>{const n=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const s={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};i.exports=function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l=Object.assign({},s,l),!u||typeof u!="string")return u;let g=u.trim();if(l.skipLike!==void 0&&l.skipLike.test(g))return u;if(l.hex&&n.test(g))return Number.parseInt(g,16);{const w=r.exec(g);if(w){const c=w[1],a=w[2];let v=((h=w[3])&&h.indexOf(".")!==-1&&((h=h.replace(/0+$/,""))==="."?h="0":h[0]==="."?h="0"+h:h[h.length-1]==="."&&(h=h.substr(0,h.length-1))),h);const f=w[4]||w[6];if(!l.leadingZeros&&a.length>0&&c&&g[2]!=="."||!l.leadingZeros&&a.length>0&&!c&&g[1]!==".")return u;{const A=Number(g),C=""+A;return C.search(/[eE]/)!==-1||f?l.eNotation?A:u:g.indexOf(".")!==-1?C==="0"&&v===""||C===v||c&&C==="-"+v?A:u:a?v===C||c+v===C?A:u:g===C||g===c+C?A:u}}return u}var h}},737:(i,n,r)=>{var s=r(670),u=r(647),l=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,g=/[\n\r\t]/g,h=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,w=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,a=/^[a-zA-Z]:/;function v(b){return(b||"").toString().replace(l,"")}var f=[["#","hash"],["?","query"],function(b,P){return y(P.protocol)?b.replace(/\\/g,"/"):b},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],A={hash:1,query:1};function C(b){var P,L=(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}).location||{},e={},t=typeof(b=b||L);if(b.protocol==="blob:")e=new R(unescape(b.pathname),{});else if(t==="string")for(P in e=new R(b,{}),A)delete e[P];else if(t==="object"){for(P in b)P in A||(e[P]=b[P]);e.slashes===void 0&&(e.slashes=h.test(b.href))}return e}function y(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function N(b,P){b=(b=v(b)).replace(g,""),P=P||{};var L,e=c.exec(b),t=e[1]?e[1].toLowerCase():"",o=!!e[2],d=!!e[3],p=0;return o?d?(L=e[2]+e[3]+e[4],p=e[2].length+e[3].length):(L=e[2]+e[4],p=e[2].length):d?(L=e[3]+e[4],p=e[3].length):L=e[4],t==="file:"?p>=2&&(L=L.slice(2)):y(t)?L=e[4]:t?o&&(L=L.slice(2)):p>=2&&y(P.protocol)&&(L=e[4]),{protocol:t,slashes:o||y(t),slashesCount:p,rest:L}}function R(b,P,L){if(b=(b=v(b)).replace(g,""),!(this instanceof R))return new R(b,P,L);var e,t,o,d,p,_,T=f.slice(),O=typeof P,m=this,S=0;for(O!=="object"&&O!=="string"&&(L=P,P=null),L&&typeof L!="function"&&(L=u.parse),e=!(t=N(b||"",P=C(P))).protocol&&!t.slashes,m.slashes=t.slashes||e&&P.slashes,m.protocol=t.protocol||P.protocol||"",b=t.rest,(t.protocol==="file:"&&(t.slashesCount!==2||a.test(b))||!t.slashes&&(t.protocol||t.slashesCount<2||!y(m.protocol)))&&(T[3]=[/(.*)/,"pathname"]);S<T.length;S++)typeof(d=T[S])!="function"?(o=d[0],_=d[1],o!=o?m[_]=b:typeof o=="string"?~(p=o==="@"?b.lastIndexOf(o):b.indexOf(o))&&(typeof d[2]=="number"?(m[_]=b.slice(0,p),b=b.slice(p+d[2])):(m[_]=b.slice(p),b=b.slice(0,p))):(p=o.exec(b))&&(m[_]=p[1],b=b.slice(0,p.index)),m[_]=m[_]||e&&d[3]&&P[_]||"",d[4]&&(m[_]=m[_].toLowerCase())):b=d(b,m);L&&(m.query=L(m.query)),e&&P.slashes&&m.pathname.charAt(0)!=="/"&&(m.pathname!==""||P.pathname!=="")&&(m.pathname=function(U,le){if(U==="")return le;for(var pe=(le||"/").split("/").slice(0,-1).concat(U.split("/")),ye=pe.length,Z=pe[ye-1],je=!1,Ne=0;ye--;)pe[ye]==="."?pe.splice(ye,1):pe[ye]===".."?(pe.splice(ye,1),Ne++):Ne&&(ye===0&&(je=!0),pe.splice(ye,1),Ne--);return je&&pe.unshift(""),Z!=="."&&Z!==".."||pe.push(""),pe.join("/")}(m.pathname,P.pathname)),m.pathname.charAt(0)!=="/"&&y(m.protocol)&&(m.pathname="/"+m.pathname),s(m.port,m.protocol)||(m.host=m.hostname,m.port=""),m.username=m.password="",m.auth&&(~(p=m.auth.indexOf(":"))?(m.username=m.auth.slice(0,p),m.username=encodeURIComponent(decodeURIComponent(m.username)),m.password=m.auth.slice(p+1),m.password=encodeURIComponent(decodeURIComponent(m.password))):m.username=encodeURIComponent(decodeURIComponent(m.auth)),m.auth=m.password?m.username+":"+m.password:m.username),m.origin=m.protocol!=="file:"&&y(m.protocol)&&m.host?m.protocol+"//"+m.host:"null",m.href=m.toString()}R.prototype={set:function(b,P,L){var e=this;switch(b){case"query":typeof P=="string"&&P.length&&(P=(L||u.parse)(P)),e[b]=P;break;case"port":e[b]=P,s(P,e.protocol)?P&&(e.host=e.hostname+":"+P):(e.host=e.hostname,e[b]="");break;case"hostname":e[b]=P,e.port&&(P+=":"+e.port),e.host=P;break;case"host":e[b]=P,w.test(P)?(P=P.split(":"),e.port=P.pop(),e.hostname=P.join(":")):(e.hostname=P,e.port="");break;case"protocol":e.protocol=P.toLowerCase(),e.slashes=!L;break;case"pathname":case"hash":if(P){var t=b==="pathname"?"/":"#";e[b]=P.charAt(0)!==t?t+P:P}else e[b]=P;break;case"username":case"password":e[b]=encodeURIComponent(P);break;case"auth":var o=P.indexOf(":");~o?(e.username=P.slice(0,o),e.username=encodeURIComponent(decodeURIComponent(e.username)),e.password=P.slice(o+1),e.password=encodeURIComponent(decodeURIComponent(e.password))):e.username=encodeURIComponent(decodeURIComponent(P))}for(var d=0;d<f.length;d++){var p=f[d];p[4]&&(e[p[1]]=e[p[1]].toLowerCase())}return e.auth=e.password?e.username+":"+e.password:e.username,e.origin=e.protocol!=="file:"&&y(e.protocol)&&e.host?e.protocol+"//"+e.host:"null",e.href=e.toString(),e},toString:function(b){b&&typeof b=="function"||(b=u.stringify);var P,L=this,e=L.host,t=L.protocol;t&&t.charAt(t.length-1)!==":"&&(t+=":");var o=t+(L.protocol&&L.slashes||y(L.protocol)?"//":"");return L.username?(o+=L.username,L.password&&(o+=":"+L.password),o+="@"):L.password?(o+=":"+L.password,o+="@"):L.protocol!=="file:"&&y(L.protocol)&&!e&&L.pathname!=="/"&&(o+="@"),(e[e.length-1]===":"||w.test(L.hostname)&&!L.port)&&(e+=":"),o+=e+L.pathname,(P=typeof L.query=="object"?b(L.query):L.query)&&(o+=P.charAt(0)!=="?"?"?"+P:P),L.hash&&(o+=L.hash),o}},R.extractProtocol=N,R.location=C,R.trimLeft=v,R.qs=u,i.exports=R},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},oe={};function W(i){var n=oe[i];if(n!==void 0)return n.exports;var r=oe[i]={id:i,loaded:!1,exports:{}};return z[i].call(r.exports,r,r.exports,W),r.loaded=!0,r.exports}W.n=i=>{var n=i&&i.__esModule?()=>i.default:()=>i;return W.d(n,{a:n}),n},W.d=(i,n)=>{for(var r in n)W.o(n,r)&&!W.o(i,r)&&Object.defineProperty(i,r,{enumerable:!0,get:n[r]})},W.o=(i,n)=>Object.prototype.hasOwnProperty.call(i,n),W.nmd=i=>(i.paths=[],i.children||(i.children=[]),i);var Y={};W.d(Y,{hT:()=>ze,O4:()=>Qe,Kd:()=>rn,YK:()=>Vt,UU:()=>Ir,Gu:()=>X,ky:()=>Te,h4:()=>re,ch:()=>be,hq:()=>$t,i5:()=>Se});var H=W(737),te=W.n(H);function J(i){if(!ae(i))throw new Error("Parameter was not an error")}function ae(i){return!!i&&typeof i=="object"&&(n=i,Object.prototype.toString.call(n)==="[object Error]")||i instanceof Error;var n}class ue extends Error{constructor(n,r){const s=[...arguments],{options:u,shortMessage:l}=function(h){let w,c="";if(h.length===0)w={};else if(ae(h[0]))w={cause:h[0]},c=h.slice(1).join(" ")||"";else if(h[0]&&typeof h[0]=="object")w=Object.assign({},h[0]),c=h.slice(1).join(" ")||"";else{if(typeof h[0]!="string")throw new Error("Invalid arguments passed to Layerr");w={},c=c=h.join(" ")||""}return{options:w,shortMessage:c}}(s);let g=l;if(u.cause&&(g=`${g}: ${u.cause.message}`),super(g),this.message=g,u.name&&typeof u.name=="string"?this.name=u.name:this.name="Layerr",u.cause&&Object.defineProperty(this,"_cause",{value:u.cause}),Object.defineProperty(this,"_info",{value:{}}),u.info&&typeof u.info=="object"&&Object.assign(this._info,u.info),Error.captureStackTrace){const h=u.constructorOpt||this.constructor;Error.captureStackTrace(this,h)}}static cause(n){return J(n),n._cause&&ae(n._cause)?n._cause:null}static fullStack(n){J(n);const r=ue.cause(n);return r?`${n.stack}
caused by: ${ue.fullStack(r)}`:n.stack??""}static info(n){J(n);const r={},s=ue.cause(n);return s&&Object.assign(r,ue.info(s)),n._info&&Object.assign(r,n._info),r}toString(){let n=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(n=`${n}: ${this.message}`),n}}var de=W(47),se=W.n(de);const ie="__PATH_SEPARATOR_POSIX__",V="__PATH_SEPARATOR_WINDOWS__";function D(i){try{const n=i.replace(/\//g,ie).replace(/\\\\/g,V);return encodeURIComponent(n).split(V).join("\\\\").split(ie).join("/")}catch(n){throw new ue(n,"Failed encoding path")}}function Q(i){return i.startsWith("/")?i:"/"+i}function ee(i){let n=i;return n[0]!=="/"&&(n="/"+n),/^.+\/$/.test(n)&&(n=n.substr(0,n.length-1)),n}function ve(i){let n=new(te())(i).pathname;return n.length<=0&&(n="/"),ee(n)}function he(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];return function(){return function(s){var u=[];if(s.length===0)return"";if(typeof s[0]!="string")throw new TypeError("Url must be a string. Received "+s[0]);if(s[0].match(/^[^/:]+:\/*$/)&&s.length>1){var l=s.shift();s[0]=l+s[0]}s[0].match(/^file:\/\/\//)?s[0]=s[0].replace(/^([^/:]+):\/*/,"$1:///"):s[0]=s[0].replace(/^([^/:]+):\/*/,"$1://");for(var g=0;g<s.length;g++){var h=s[g];if(typeof h!="string")throw new TypeError("Url must be a string. Received "+h);h!==""&&(g>0&&(h=h.replace(/^[\/]+/,"")),h=g<s.length-1?h.replace(/[\/]+$/,""):h.replace(/[\/]+$/,"/"),u.push(h))}var w=u.join("/"),c=(w=w.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return c.shift()+(c.length>0?"?":"")+c.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(n.reduce((s,u,l)=>((l===0||u!=="/"||u==="/"&&s[s.length-1]!=="/")&&s.push(u),s),[]))}var $e=W(542),Ee=W.n($e);const Fe="abcdef0123456789";function nt(i,n){const r=i.url.replace("//",""),s=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),u=i.method?i.method.toUpperCase():"GET",l=!!/(^|,)\s*auth\s*($|,)/.test(n.qop)&&"auth",g=`00000000${n.nc}`.slice(-8),h=function(f,A,C,y,N,R,b){const P=b||Ee()(`${A}:${C}:${y}`);return f&&f.toLowerCase()==="md5-sess"?Ee()(`${P}:${N}:${R}`):P}(n.algorithm,n.username,n.realm,n.password,n.nonce,n.cnonce,n.ha1),w=Ee()(`${u}:${s}`),c=l?Ee()(`${h}:${n.nonce}:${g}:${n.cnonce}:${l}:${w}`):Ee()(`${h}:${n.nonce}:${w}`),a={username:n.username,realm:n.realm,nonce:n.nonce,uri:s,qop:l,response:c,nc:g,cnonce:n.cnonce,algorithm:n.algorithm,opaque:n.opaque},v=[];for(const f in a)a[f]&&(f==="qop"||f==="nc"||f==="algorithm"?v.push(`${f}=${a[f]}`):v.push(`${f}="${a[f]}"`));return`Digest ${v.join(", ")}`}function Ae(i){return(i.headers&&i.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Ye=W(101),fe=W.n(Ye);function q(i){return fe().decode(i)}function ce(i,n){var r;return`Basic ${r=`${i}:${n}`,fe().encode(r)}`}const Je=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,ft=Je.fetch.bind(Je),rn=(Je.Headers,Je.Request),Vt=Je.Response;let ze=function(i){return i.Auto="auto",i.Digest="digest",i.None="none",i.Password="password",i.Token="token",i}({}),Qe=function(i){return i.DataTypeNoLength="data-type-no-length",i.InvalidAuthType="invalid-auth-type",i.InvalidOutputFormat="invalid-output-format",i.LinkUnsupportedAuthType="link-unsupported-auth",i.InvalidUpdateRange="invalid-update-range",i.NotSupported="not-supported",i}({});function Pt(i,n,r,s,u){switch(i.authType){case ze.Auto:n&&r&&(i.headers.Authorization=ce(n,r));break;case ze.Digest:i.digest=function(g,h,w){return{username:g,password:h,ha1:w,nc:0,algorithm:"md5",hasDigestAuth:!1}}(n,r,u);break;case ze.None:break;case ze.Password:i.headers.Authorization=ce(n,r);break;case ze.Token:i.headers.Authorization=`${(l=s).token_type} ${l.access_token}`;break;default:throw new ue({info:{code:Qe.InvalidAuthType}},`Invalid auth type: ${i.authType}`)}var l}W(345),W(800);const It="@@HOTPATCHER",St=()=>{};function k(i){return{original:i,methods:[i],final:!1}}class j{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=It}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(n){this.configuration.getEmptyAction=n}control(n){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!n||n.__type__!==It)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(n.configuration.registry).forEach(s=>{this.configuration.registry.hasOwnProperty(s)?r&&(this.configuration.registry[s]=Object.assign({},n.configuration.registry[s])):this.configuration.registry[s]=Object.assign({},n.configuration.registry[s])}),n._configuration=this.configuration,this}execute(n){const r=this.get(n)||St;for(var s=arguments.length,u=new Array(s>1?s-1:0),l=1;l<s;l++)u[l-1]=arguments[l];return r(...u)}get(n){const r=this.configuration.registry[n];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${n}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return function(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];if(u.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var g=arguments.length,h=new Array(g),w=0;w<g;w++)h[w]=arguments[w];let c=h;const a=this;for(;u.length>0;)c=[u.shift().apply(a,c)];return c[0]}}(...r.methods)}isPatched(n){return!!this.configuration.registry[n]}patch(n,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:u=!1}=s;if(this.configuration.registry[n]&&this.configuration.registry[n].final)throw new Error(`Failed patching '${n}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${n}': Provided method is not a function`);if(u)this.configuration.registry[n]?this.configuration.registry[n].methods.push(r):this.configuration.registry[n]=k(r);else if(this.isPatched(n)){const{original:l}=this.configuration.registry[n];this.configuration.registry[n]=Object.assign(k(r),{original:l})}else this.configuration.registry[n]=k(r);return this}patchInline(n,r){this.isPatched(n)||this.patch(n,r);for(var s=arguments.length,u=new Array(s>2?s-2:0),l=2;l<s;l++)u[l-2]=arguments[l];return this.execute(n,...u)}plugin(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];return s.forEach(l=>{this.patch(n,l,{chain:!0})}),this}restore(n){if(!this.isPatched(n))throw new Error(`Failed restoring method: No method present for key: ${n}`);if(typeof this.configuration.registry[n].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${n}`);return this.configuration.registry[n].methods=[this.configuration.registry[n].original],this}setFinal(n){if(!this.configuration.registry.hasOwnProperty(n))throw new Error(`Failed marking '${n}' as final: No method found for key`);return this.configuration.registry[n].final=!0,this}}let B=null;function X(){return B||(B=new j),B}function me(i){return function(n){if(typeof n!="object"||n===null||Object.prototype.toString.call(n)!="[object Object]")return!1;if(Object.getPrototypeOf(n)===null)return!0;let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}(i)?Object.assign({},i):Object.setPrototypeOf(Object.assign({},i),Object.getPrototypeOf(i))}function Ce(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];let s=null,u=[...n];for(;u.length>0;){const l=u.shift();s=s?we(s,l):me(l)}return s}function we(i,n){const r=me(i);return Object.keys(n).forEach(s=>{r.hasOwnProperty(s)?Array.isArray(n[s])?r[s]=Array.isArray(r[s])?[...r[s],...n[s]]:[...n[s]]:typeof n[s]=="object"&&n[s]?r[s]=typeof r[s]=="object"&&r[s]?we(r[s],n[s]):me(n[s]):r[s]=n[s]:r[s]=n[s]}),r}function Et(i){const n={};for(const r of i.keys())n[r]=i.get(r);return n}function qe(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];if(n.length===0)return{};const s={};return n.reduce((u,l)=>(Object.keys(l).forEach(g=>{const h=g.toLowerCase();s.hasOwnProperty(h)?u[s[h]]=l[g]:(s[h]=g,u[g]=l[g])}),u),{})}W(805);const et=typeof ArrayBuffer=="function",{toString:ot}=Object.prototype;function At(i){return et&&(i instanceof ArrayBuffer||ot.call(i)==="[object ArrayBuffer]")}function ht(i){return i!=null&&i.constructor!=null&&typeof i.constructor.isBuffer=="function"&&i.constructor.isBuffer(i)}function fn(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}function sn(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const Kt=fn(function(i){const n=i._digest;return delete i._digest,n.hasDigestAuth&&(i=Ce(i,{headers:{Authorization:nt(i,n)}})),sn(Dt(i),function(r){let s=!1;return u=function(g){return s?g:r},(l=function(){if(r.status==401)return n.hasDigestAuth=function(g,h){if(!Ae(g))return!1;const w=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const c=g.headers&&g.headers.get("www-authenticate")||"",a=w.exec(c);if(!a)break;h[a[1]]=a[2]||a[3]}return h.nc+=1,h.cnonce=function(){let c="";for(let a=0;a<32;++a)c=`${c}${Fe[Math.floor(16*Math.random())]}`;return c}(),!0}(r,n),function(){if(n.hasDigestAuth)return sn(Dt(i=Ce(i,{headers:{Authorization:nt(i,n)}})),function(g){return g.status==401?n.hasDigestAuth=!1:n.nc++,s=!0,g})}();n.nc++}())&&l.then?l.then(u):u(l);var u,l})}),on=fn(function(i,n){return sn(Dt(i),function(r){return r.ok?(n.authType=ze.Password,r):r.status==401&&Ae(r)?(n.authType=ze.Digest,Pt(n,n.username,n.password,void 0,void 0),i._digest=n.digest,Kt(i)):r})}),He=fn(function(i,n){return n.authType===ze.Auto?on(i,n):i._digest?Kt(i):Dt(i)});function tt(i,n,r){const s=me(i);return s.headers=qe(n.headers,s.headers||{},r.headers||{}),r.data!==void 0&&(s.data=r.data),r.signal&&(s.signal=r.signal),n.httpAgent&&(s.httpAgent=n.httpAgent),n.httpsAgent&&(s.httpsAgent=n.httpsAgent),n.digest&&(s._digest=n.digest),typeof n.withCredentials=="boolean"&&(s.withCredentials=n.withCredentials),s}function Dt(i){const n=X();return n.patchInline("request",r=>n.patchInline("fetch",ft,r.url,function(s){let u={};const l={method:s.method};if(s.headers&&(u=qe(u,s.headers)),s.data!==void 0){const[g,h]=function(w){if(typeof w=="string")return[w,{}];if(ht(w))return[w,{}];if(At(w))return[w,{}];if(w&&typeof w=="object")return[JSON.stringify(w),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof w)}(s.data);l.body=g,u=qe(u,h)}return s.signal&&(l.signal=s.signal),s.withCredentials&&(l.credentials="include"),l.headers=u,l}(r)),i)}var In=W(285);const Zt=i=>{if(typeof i!="string")throw new TypeError("invalid pattern");if(i.length>65536)throw new TypeError("pattern is too long")},Tn={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ut=i=>i.replace(/[[\]\\-]/g,"\\$&"),On=i=>i.join(""),Sn=(i,n)=>{const r=n;if(i.charAt(r)!=="[")throw new Error("not in a brace expression");const s=[],u=[];let l=r+1,g=!1,h=!1,w=!1,c=!1,a=r,v="";e:for(;l<i.length;){const y=i.charAt(l);if(y!=="!"&&y!=="^"||l!==r+1){if(y==="]"&&g&&!w){a=l+1;break}if(g=!0,y!=="\\"||w){if(y==="["&&!w){for(const[N,[R,b,P]]of Object.entries(Tn))if(i.startsWith(N,l)){if(v)return["$.",!1,i.length-r,!0];l+=N.length,P?u.push(R):s.push(R),h=h||b;continue e}}w=!1,v?(y>v?s.push(Ut(v)+"-"+Ut(y)):y===v&&s.push(Ut(y)),v="",l++):i.startsWith("-]",l+1)?(s.push(Ut(y+"-")),l+=2):i.startsWith("-",l+1)?(v=y,l+=2):(s.push(Ut(y)),l++)}else w=!0,l++}else c=!0,l++}if(a<l)return["",!1,0,!1];if(!s.length&&!u.length)return["$.",!1,i.length-r,!0];if(u.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!c)return[(f=s[0].length===2?s[0].slice(-1):s[0],f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,a-r,!1];var f;const A="["+(c?"^":"")+On(s)+"]",C="["+(c?"":"^")+On(u)+"]";return[s.length&&u.length?"("+A+"|"+C+")":s.length?A:C,h,a-r,!0]},zt=function(i){let{windowsPathsNoEscape:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n?i.replace(/\[([^\/\\])\]/g,"$1"):i.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},qn=new Set(["!","?","+","*","@"]),Yt=i=>qn.has(i),Rt="(?!\\.)",an=new Set(["[","."]),$n=new Set(["..","."]),hn=new Set("().*{}+?[]^$\\!"),Jt="[^/]",ln=Jt+"*?",pn=Jt+"+?",vt=class vt{constructor(n,r){Re(this,Mt);Ie(this,"type");Re(this,it);Re(this,lt);Re(this,kt,!1);Re(this,Ve,[]);Re(this,Ze);Re(this,Xt);Re(this,Ht);Re(this,Nt,!1);Re(this,xt);Re(this,Ot);Re(this,tn,!1);let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=n,n&&_e(this,lt,!0),_e(this,Ze,r),_e(this,it,F(this,Ze)?F(F(this,Ze),it):this),_e(this,xt,F(this,it)===this?s:F(F(this,it),xt)),_e(this,Ht,F(this,it)===this?[]:F(F(this,it),Ht)),n!=="!"||F(F(this,it),Nt)||F(this,Ht).push(this),_e(this,Xt,F(this,Ze)?F(F(this,Ze),Ve).length:0)}get hasMagic(){if(F(this,lt)!==void 0)return F(this,lt);for(const n of F(this,Ve))if(typeof n!="string"&&(n.type||n.hasMagic))return _e(this,lt,!0);return F(this,lt)}toString(){return F(this,Ot)!==void 0?F(this,Ot):this.type?_e(this,Ot,this.type+"("+F(this,Ve).map(n=>String(n)).join("|")+")"):_e(this,Ot,F(this,Ve).map(n=>String(n)).join(""))}push(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];for(const u of r)if(u!==""){if(typeof u!="string"&&!(u instanceof vt&&F(u,Ze)===this))throw new Error("invalid part: "+u);F(this,Ve).push(u)}}toJSON(){const n=this.type===null?F(this,Ve).slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...F(this,Ve).map(r=>r.toJSON())];return this.isStart()&&!this.type&&n.unshift([]),this.isEnd()&&(this===F(this,it)||F(F(this,it),Nt)&&F(this,Ze)?.type==="!")&&n.push({}),n}isStart(){if(F(this,it)===this)return!0;if(!F(this,Ze)?.isStart())return!1;if(F(this,Xt)===0)return!0;const n=F(this,Ze);for(let r=0;r<F(this,Xt);r++){const s=F(n,Ve)[r];if(!(s instanceof vt&&s.type==="!"))return!1}return!0}isEnd(){if(F(this,it)===this||F(this,Ze)?.type==="!")return!0;if(!F(this,Ze)?.isEnd())return!1;if(!this.type)return F(this,Ze)?.isEnd();const n=F(this,Ze)?F(F(this,Ze),Ve).length:0;return F(this,Xt)===n-1}copyIn(n){typeof n=="string"?this.push(n):this.push(n.clone(this))}clone(n){const r=new vt(this.type,n);for(const s of F(this,Ve))r.copyIn(s);return r}static fromGlob(n){var u;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=new vt(null,void 0,r);return Xe(u=vt,bt,ur).call(u,n,s,0,r),s}toMMPattern(){if(this!==F(this,it))return F(this,it).toMMPattern();const n=this.toString(),[r,s,u,l]=this.toRegExpSource();if(!(u||F(this,lt)||F(this,xt).nocase&&!F(this,xt).nocaseMagicOnly&&n.toUpperCase()!==n.toLowerCase()))return s;const g=(F(this,xt).nocase?"i":"")+(l?"u":"");return Object.assign(new RegExp(`^${r}$`,g),{_src:r,_glob:n})}get options(){return F(this,xt)}toRegExpSource(n){const r=n??!!F(this,xt).dot;if(F(this,it)===this&&Xe(this,Mt,Ur).call(this),!this.type){const w=this.isStart()&&this.isEnd(),c=F(this,Ve).map(f=>{var R;const[A,C,y,N]=typeof f=="string"?Xe(R=vt,bt,zr).call(R,f,F(this,lt),w):f.toRegExpSource(n);return _e(this,lt,F(this,lt)||y),_e(this,kt,F(this,kt)||N),A}).join("");let a="";if(this.isStart()&&typeof F(this,Ve)[0]=="string"&&(F(this,Ve).length!==1||!$n.has(F(this,Ve)[0]))){const f=an,A=r&&f.has(c.charAt(0))||c.startsWith("\\.")&&f.has(c.charAt(2))||c.startsWith("\\.\\.")&&f.has(c.charAt(4)),C=!r&&!n&&f.has(c.charAt(0));a=A?"(?!(?:^|/)\\.\\.?(?:$|/))":C?Rt:""}let v="";return this.isEnd()&&F(F(this,it),Nt)&&F(this,Ze)?.type==="!"&&(v="(?:$|\\/)"),[a+c+v,zt(c),_e(this,lt,!!F(this,lt)),F(this,kt)]}const s=this.type==="*"||this.type==="+",u=this.type==="!"?"(?:(?!(?:":"(?:";let l=Xe(this,Mt,Nr).call(this,r);if(this.isStart()&&this.isEnd()&&!l&&this.type!=="!"){const w=this.toString();return _e(this,Ve,[w]),this.type=null,_e(this,lt,void 0),[w,zt(this.toString()),!1,!1]}let g=!s||n||r?"":Xe(this,Mt,Nr).call(this,!0);g===l&&(g=""),g&&(l=`(?:${l})(?:${g})*?`);let h="";return h=this.type==="!"&&F(this,tn)?(this.isStart()&&!r?Rt:"")+pn:u+l+(this.type==="!"?"))"+(!this.isStart()||r||n?"":Rt)+ln+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&g?")":this.type==="*"&&g?")?":`)${this.type}`),[h,zt(l),_e(this,lt,!!F(this,lt)),F(this,kt)]}};it=new WeakMap,lt=new WeakMap,kt=new WeakMap,Ve=new WeakMap,Ze=new WeakMap,Xt=new WeakMap,Ht=new WeakMap,Nt=new WeakMap,xt=new WeakMap,Ot=new WeakMap,tn=new WeakMap,Mt=new WeakSet,Ur=function(){if(this!==F(this,it))throw new Error("should only call on root");if(F(this,Nt))return this;let n;for(this.toString(),_e(this,Nt,!0);n=F(this,Ht).pop();){if(n.type!=="!")continue;let r=n,s=F(r,Ze);for(;s;){for(let u=F(r,Xt)+1;!s.type&&u<F(s,Ve).length;u++)for(const l of F(n,Ve)){if(typeof l=="string")throw new Error("string part in extglob AST??");l.copyIn(F(s,Ve)[u])}r=s,s=F(r,Ze)}}return this},bt=new WeakSet,ur=function(n,r,s,u){var A,C;let l=!1,g=!1,h=-1,w=!1;if(r.type===null){let y=s,N="";for(;y<n.length;){const R=n.charAt(y++);if(l||R==="\\")l=!l,N+=R;else if(g)y===h+1?R!=="^"&&R!=="!"||(w=!0):R!=="]"||y===h+2&&w||(g=!1),N+=R;else if(R!=="[")if(u.noext||!Yt(R)||n.charAt(y)!=="(")N+=R;else{r.push(N),N="";const b=new vt(R,r);y=Xe(A=vt,bt,ur).call(A,n,b,y,u),r.push(b)}else g=!0,h=y,w=!1,N+=R}return r.push(N),y}let c=s+1,a=new vt(null,r);const v=[];let f="";for(;c<n.length;){const y=n.charAt(c++);if(l||y==="\\")l=!l,f+=y;else if(g)c===h+1?y!=="^"&&y!=="!"||(w=!0):y!=="]"||c===h+2&&w||(g=!1),f+=y;else if(y!=="[")if(Yt(y)&&n.charAt(c)==="("){a.push(f),f="";const N=new vt(y,a);a.push(N),c=Xe(C=vt,bt,ur).call(C,n,N,c,u)}else if(y!=="|"){if(y===")")return f===""&&F(r,Ve).length===0&&_e(r,tn,!0),a.push(f),f="",r.push(...v,a),c;f+=y}else a.push(f),f="",v.push(a),a=new vt(null,r);else g=!0,h=c,w=!1,f+=y}return r.type=null,_e(r,lt,void 0),_e(r,Ve,[n.substring(s-1)]),c},Nr=function(n){return F(this,Ve).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[s,u,l,g]=r.toRegExpSource(n);return _e(this,kt,F(this,kt)||g),s}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},zr=function(n,r){let s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=!1,l="",g=!1;for(let h=0;h<n.length;h++){const w=n.charAt(h);if(u)u=!1,l+=(hn.has(w)?"\\":"")+w;else if(w!=="\\"){if(w==="["){const[c,a,v,f]=Sn(n,h);if(v){l+=c,g=g||a,h+=v-1,r=r||f;continue}}w!=="*"?w!=="?"?l+=w.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(l+=Jt,r=!0):(l+=s&&n==="*"?pn:ln,r=!0)}else h===n.length-1?l+="\\\\":u=!0}return[l,zt(n),!!r,g]},Re(vt,bt);let Qt=vt;const st=function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zt(n),!(!r.nocomment&&n.charAt(0)==="#")&&new qt(n,r).match(i)},Ln=/^\*+([^+@!?\*\[\(]*)$/,gn=i=>n=>!n.startsWith(".")&&n.endsWith(i),Rn=i=>n=>n.endsWith(i),Bn=i=>(i=i.toLowerCase(),n=>!n.startsWith(".")&&n.toLowerCase().endsWith(i)),Ue=i=>(i=i.toLowerCase(),n=>n.toLowerCase().endsWith(i)),Fn=/^\*+\.\*+$/,kn=i=>!i.startsWith(".")&&i.includes("."),at=i=>i!=="."&&i!==".."&&i.includes("."),Gt=/^\.\*+$/,un=i=>i!=="."&&i!==".."&&i.startsWith("."),mn=/^\*+$/,Mn=i=>i.length!==0&&!i.startsWith("."),jn=i=>i.length!==0&&i!=="."&&i!=="..",Vn=/^\?+([^+@!?\*\[\(]*)?$/,Dn=i=>{let[n,r=""]=i;const s=vn([n]);return r?(r=r.toLowerCase(),u=>s(u)&&u.toLowerCase().endsWith(r)):s},Un=i=>{let[n,r=""]=i;const s=yn([n]);return r?(r=r.toLowerCase(),u=>s(u)&&u.toLowerCase().endsWith(r)):s},zn=i=>{let[n,r=""]=i;const s=yn([n]);return r?u=>s(u)&&u.endsWith(r):s},Gn=i=>{let[n,r=""]=i;const s=vn([n]);return r?u=>s(u)&&u.endsWith(r):s},vn=i=>{let[n]=i;const r=n.length;return s=>s.length===r&&!s.startsWith(".")},yn=i=>{let[n]=i;const r=n.length;return s=>s.length===r&&s!=="."&&s!==".."},bn=typeof M=="object"&&M?typeof M.env=="object"&&M.env&&M.env.__MINIMATCH_TESTING_PLATFORM__||M.platform:"posix";st.sep=bn==="win32"?"\\":"/";const pt=Symbol("globstar **");st.GLOBSTAR=pt,st.filter=function(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>st(r,i,n)};const gt=function(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},i,n)};st.defaults=i=>{if(!i||typeof i!="object"||!Object.keys(i).length)return st;const n=st;return Object.assign(function(r,s){return n(r,s,gt(i,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends n.Minimatch{constructor(r){super(r,gt(i,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return n.defaults(gt(i,r)).Minimatch}},AST:class extends n.AST{constructor(r,s){super(r,s,gt(i,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.AST.fromGlob(r,gt(i,s))}},unescape:function(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.unescape(r,gt(i,s))},escape:function(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.escape(r,gt(i,s))},filter:function(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.filter(r,gt(i,s))},defaults:r=>n.defaults(gt(i,r)),makeRe:function(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.makeRe(r,gt(i,s))},braceExpand:function(r){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.braceExpand(r,gt(i,s))},match:function(r,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.match(r,s,gt(i,u))},sep:n.sep,GLOBSTAR:pt})};const En=function(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Zt(i),n.nobrace||!/\{(?:(?!\{).)*\}/.test(i)?[i]:In(i)};st.braceExpand=En,st.makeRe=function(i){return new qt(i,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},st.match=function(i,n){const r=new qt(n,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return i=i.filter(s=>r.match(s)),r.options.nonull&&!i.length&&i.push(n),i};const An=/[?*]|[+@!]\(.*?\)|\[|\]/;class qt{constructor(n){Ie(this,"options");Ie(this,"set");Ie(this,"pattern");Ie(this,"windowsPathsNoEscape");Ie(this,"nonegate");Ie(this,"negate");Ie(this,"comment");Ie(this,"empty");Ie(this,"preserveMultipleSlashes");Ie(this,"partial");Ie(this,"globSet");Ie(this,"globParts");Ie(this,"nocase");Ie(this,"isWindows");Ie(this,"platform");Ie(this,"windowsNoMagicRoot");Ie(this,"regexp");let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zt(n),r=r||{},this.options=r,this.pattern=n,this.platform=r.platform||bn,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const n of this.set)for(const r of n)if(typeof r!="string")return!0;return!1}debug(){}make(){const n=this.pattern,r=this.options;if(!r.nocomment&&n.charAt(0)==="#")return void(this.comment=!0);if(!n)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const s=this.globSet.map(l=>this.slashSplit(l));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let u=this.globParts.map((l,g,h)=>{if(this.isWindows&&this.windowsNoMagicRoot){const w=!(l[0]!==""||l[1]!==""||l[2]!=="?"&&An.test(l[2])||An.test(l[3])),c=/^[a-z]:/i.test(l[0]);if(w)return[...l.slice(0,4),...l.slice(4).map(a=>this.parse(a))];if(c)return[l[0],...l.slice(1).map(a=>this.parse(a))]}return l.map(w=>this.parse(w))});if(this.debug(this.pattern,u),this.set=u.filter(l=>l.indexOf(!1)===-1),this.isWindows)for(let l=0;l<this.set.length;l++){const g=this.set[l];g[0]===""&&g[1]===""&&this.globParts[l][2]==="?"&&typeof g[3]=="string"&&/^[a-z]:$/i.test(g[3])&&(g[2]="?")}this.debug(this.pattern,this.set)}preprocess(n){if(this.options.noglobstar)for(let s=0;s<n.length;s++)for(let u=0;u<n[s].length;u++)n[s][u]==="**"&&(n[s][u]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(n=this.firstPhasePreProcess(n),n=this.secondPhasePreProcess(n)):n=r>=1?this.levelOneOptimize(n):this.adjascentGlobstarOptimize(n),n}adjascentGlobstarOptimize(n){return n.map(r=>{let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let u=s;for(;r[u+1]==="**";)u++;u!==s&&r.splice(s,u-s)}return r})}levelOneOptimize(n){return n.map(r=>(r=r.reduce((s,u)=>{const l=s[s.length-1];return u==="**"&&l==="**"?s:u===".."&&l&&l!==".."&&l!=="."&&l!=="**"?(s.pop(),s):(s.push(u),s)},[])).length===0?[""]:r)}levelTwoFileOptimize(n){Array.isArray(n)||(n=this.slashSplit(n));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let u=1;u<n.length-1;u++){const l=n[u];u===1&&l===""&&n[0]===""||l!=="."&&l!==""||(r=!0,n.splice(u,1),u--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){const u=n[s-1];u&&u!=="."&&u!==".."&&u!=="**"&&(r=!0,n.splice(s-1,2),s-=2)}}while(r);return n.length===0?[""]:n}firstPhasePreProcess(n){let r=!1;do{r=!1;for(let s of n){let u=-1;for(;(u=s.indexOf("**",u+1))!==-1;){let g=u;for(;s[g+1]==="**";)g++;g>u&&s.splice(u+1,g-u);let h=s[u+1];const w=s[u+2],c=s[u+3];if(h!==".."||!w||w==="."||w===".."||!c||c==="."||c==="..")continue;r=!0,s.splice(u,1);const a=s.slice(0);a[u]="**",n.push(a),u--}if(!this.preserveMultipleSlashes){for(let g=1;g<s.length-1;g++){const h=s[g];g===1&&h===""&&s[0]===""||h!=="."&&h!==""||(r=!0,s.splice(g,1),g--)}s[0]!=="."||s.length!==2||s[1]!=="."&&s[1]!==""||(r=!0,s.pop())}let l=0;for(;(l=s.indexOf("..",l+1))!==-1;){const g=s[l-1];if(g&&g!=="."&&g!==".."&&g!=="**"){r=!0;const h=l===1&&s[l+1]==="**"?["."]:[];s.splice(l-1,2,...h),s.length===0&&s.push(""),l-=2}}}}while(r);return n}secondPhasePreProcess(n){for(let r=0;r<n.length-1;r++)for(let s=r+1;s<n.length;s++){const u=this.partsMatch(n[r],n[s],!this.preserveMultipleSlashes);if(u){n[r]=[],n[s]=u;break}}return n.filter(r=>r.length)}partsMatch(n,r){let s=arguments.length>2&&arguments[2]!==void 0&&arguments[2],u=0,l=0,g=[],h="";for(;u<n.length&&l<r.length;)if(n[u]===r[l])g.push(h==="b"?r[l]:n[u]),u++,l++;else if(s&&n[u]==="**"&&r[l]===n[u+1])g.push(n[u]),u++;else if(s&&r[l]==="**"&&n[u]===r[l+1])g.push(r[l]),l++;else if(n[u]!=="*"||!r[l]||!this.options.dot&&r[l].startsWith(".")||r[l]==="**"){if(r[l]!=="*"||!n[u]||!this.options.dot&&n[u].startsWith(".")||n[u]==="**"||h==="a")return!1;h="b",g.push(r[l]),u++,l++}else{if(h==="b")return!1;h="a",g.push(n[u]),u++,l++}return n.length===r.length&&g}parseNegate(){if(this.nonegate)return;const n=this.pattern;let r=!1,s=0;for(let u=0;u<n.length&&n.charAt(u)==="!";u++)r=!r,s++;s&&(this.pattern=n.slice(s)),this.negate=r}matchOne(n,r){let s=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const u=this.options;if(this.isWindows){const y=typeof n[0]=="string"&&/^[a-z]:$/i.test(n[0]),N=!y&&n[0]===""&&n[1]===""&&n[2]==="?"&&/^[a-z]:$/i.test(n[3]),R=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),b=N?3:y?0:void 0,P=!R&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:R?0:void 0;if(typeof b=="number"&&typeof P=="number"){const[L,e]=[n[b],r[P]];L.toLowerCase()===e.toLowerCase()&&(r[P]=L,P>b?r=r.slice(P):b>P&&(n=n.slice(b)))}}const{optimizationLevel:l=1}=this.options;l>=2&&(n=this.levelTwoFileOptimize(n)),this.debug("matchOne",this,{file:n,pattern:r}),this.debug("matchOne",n.length,r.length);for(var g=0,h=0,w=n.length,c=r.length;g<w&&h<c;g++,h++){this.debug("matchOne loop");var a=r[h],v=n[g];if(this.debug(r,a,v),a===!1)return!1;if(a===pt){this.debug("GLOBSTAR",[r,a,v]);var f=g,A=h+1;if(A===c){for(this.debug("** at the end");g<w;g++)if(n[g]==="."||n[g]===".."||!u.dot&&n[g].charAt(0)===".")return!1;return!0}for(;f<w;){var C=n[f];if(this.debug(`
globstar while`,n,f,r,A,C),this.matchOne(n.slice(f),r.slice(A),s))return this.debug("globstar found match!",f,w,C),!0;if(C==="."||C===".."||!u.dot&&C.charAt(0)==="."){this.debug("dot detected!",n,f,r,A);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!s||(this.debug(`
>>> no match, partial?`,n,f,r,A),f!==w))}let y;if(typeof a=="string"?(y=v===a,this.debug("string match",a,v,y)):(y=a.test(v),this.debug("pattern match",a,v,y)),!y)return!1}if(g===w&&h===c)return!0;if(g===w)return s;if(h===c)return g===w-1&&n[g]==="";throw new Error("wtf?")}braceExpand(){return En(this.pattern,this.options)}parse(n){Zt(n);const r=this.options;if(n==="**")return pt;if(n==="")return"";let s,u=null;(s=n.match(mn))?u=r.dot?jn:Mn:(s=n.match(Ln))?u=(r.nocase?r.dot?Ue:Bn:r.dot?Rn:gn)(s[1]):(s=n.match(Vn))?u=(r.nocase?r.dot?Un:Dn:r.dot?zn:Gn)(s):(s=n.match(Fn))?u=r.dot?at:kn:(s=n.match(Gt))&&(u=un);const l=Qt.fromGlob(n,this.options).toMMPattern();return u&&typeof l=="object"&&Reflect.defineProperty(l,"test",{value:u}),l}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const n=this.set;if(!n.length)return this.regexp=!1,this.regexp;const r=this.options,s=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",u=new Set(r.nocase?["i"]:[]);let l=n.map(w=>{const c=w.map(a=>{if(a instanceof RegExp)for(const v of a.flags.split(""))u.add(v);return typeof a=="string"?a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):a===pt?pt:a._src});return c.forEach((a,v)=>{const f=c[v+1],A=c[v-1];a===pt&&A!==pt&&(A===void 0?f!==void 0&&f!==pt?c[v+1]="(?:\\/|"+s+"\\/)?"+f:c[v]=s:f===void 0?c[v-1]=A+"(?:\\/|"+s+")?":f!==pt&&(c[v-1]=A+"(?:\\/|\\/"+s+"\\/)"+f,c[v+1]=pt))}),c.filter(a=>a!==pt).join("/")}).join("|");const[g,h]=n.length>1?["(?:",")"]:["",""];l="^"+g+l+h+"$",this.negate&&(l="^(?!"+l+").+$");try{this.regexp=new RegExp(l,[...u].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(n){return this.preserveMultipleSlashes?n.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(n)?["",...n.split(/\/+/)]:n.split(/\/+/)}match(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",n,this.pattern),this.comment)return!1;if(this.empty)return n==="";if(n==="/"&&r)return!0;const s=this.options;this.isWindows&&(n=n.split("\\").join("/"));const u=this.slashSplit(n);this.debug(this.pattern,"split",u);const l=this.set;this.debug(this.pattern,"set",l);let g=u[u.length-1];if(!g)for(let h=u.length-2;!g&&h>=0;h--)g=u[h];for(let h=0;h<l.length;h++){const w=l[h];let c=u;if(s.matchBase&&w.length===1&&(c=[g]),this.matchOne(c,w,r))return!!s.flipNegate||!this.negate}return!s.flipNegate&&this.negate}static defaults(n){return st.defaults(n).Minimatch}}function cn(i){const n=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${i.status} ${i.statusText}`);return n.status=i.status,n.response=i,n}function Ke(i,n){const{status:r}=n;if(r===401&&i.digest)return n;if(r>=400)throw cn(n);return n}function $t(i,n){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:n,headers:i.headers?Et(i.headers):{},status:i.status,statusText:i.statusText}:n}st.AST=Qt,st.Minimatch=qt,st.escape=function(i){let{windowsPathsNoEscape:n=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n?i.replace(/[?*()[\]]/g,"[$&]"):i.replace(/[?*()[\]\\]/g,"\\$&")},st.unescape=zt;const Wn=(_n=function(i,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=tt({url:he(i.remoteURL,D(n)),method:"COPY",headers:{Destination:he(i.remoteURL,D(r)),Overwrite:s.overwrite===!1?"F":"T",Depth:s.shallow?"0":"infinity"}},i,s);return g=function(h){Ke(i,h)},(l=He(u,i))&&l.then||(l=Promise.resolve(l)),g?l.then(g):l;var l,g},function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];try{return Promise.resolve(_n.apply(this,i))}catch(r){return Promise.reject(r)}});var _n,ne=W(635),E=W(829),I=W.n(E),x=function(i){return i.Array="array",i.Object="object",i.Original="original",i}(x||{});function G(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:x.Original;const s=I().get(i,n);return r==="array"&&Array.isArray(s)===!1?[s]:r==="object"&&Array.isArray(s)?s[0]:s}function re(i){return new Promise(n=>{n(function(r){const{multistatus:s}=r;if(s==="")return{multistatus:{response:[]}};if(!s)throw new Error("Invalid response: No root multistatus found");const u={multistatus:Array.isArray(s)?s[0]:s};return I().set(u,"multistatus.response",G(u,"multistatus.response",x.Array)),I().set(u,"multistatus.response",I().get(u,"multistatus.response").map(l=>function(g){const h=Object.assign({},g);return h.status?I().set(h,"status",G(h,"status",x.Object)):(I().set(h,"propstat",G(h,"propstat",x.Object)),I().set(h,"propstat.prop",G(h,"propstat.prop",x.Object))),h}(l))),u}(new ne.XMLParser({removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1}}).parse(i)))})}function be(i,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:s=null,getcontentlength:u="0",resourcetype:l=null,getcontenttype:g=null,getetag:h=null}=i,w=l&&typeof l=="object"&&l.collection!==void 0?"directory":"file",c={filename:n,basename:se().basename(n),lastmod:s,size:parseInt(u,10),type:w,etag:typeof h=="string"?h.replace(/"/g,""):null};return w==="file"&&(c.mime=g&&typeof g=="string"?g.split(";")[0]:""),r&&(i.displayname!==void 0&&(i.displayname=String(i.displayname)),c.props=i),c}function Te(i,n){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],s=null;try{i.multistatus.response[0].propstat&&(s=i.multistatus.response[0])}catch{}if(!s)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:u,status:l}}=s,[g,h,w]=l.split(" ",3),c=parseInt(h,10);if(c>=400){const a=new Error(`Invalid response: ${c} ${w}`);throw a.status=c,a}return be(u,ee(n),r)}function Se(i){switch(String(i)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(i),10)}}function xe(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const Le=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:s=!1}=r,u=tt({url:he(i.remoteURL,D(n)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},i,r);return xe(He(u,i),function(l){return Ke(i,l),xe(l.text(),function(g){return xe(re(g),function(h){const w=Te(h,n,s);return $t(l,w,s)})})})});function ke(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const ut=Pe(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=function(l){if(!l||l==="/")return[];let g=l;const h=[];do h.push(g),g=se().dirname(g);while(g&&g!=="/");return h}(ee(n));s.sort((l,g)=>l.length>g.length?1:g.length>l.length?-1:0);let u=!1;return function(l,g,h){if(typeof l[_t]=="function"){let y=function(N){try{for(;!(w=v.next()).done;)if((N=g(w.value))&&N.then){if(!mt(N))return void N.then(y,a||(a=De.bind(null,c=new We,2)));N=N.v}c?De(c,1,N):c=N}catch(R){De(c||(c=new We),2,R)}};var w,c,a,v=l[_t]();if(y(),v.return){var f=function(N){try{w.done||v.return()}catch{}return N};if(c&&c.then)return c.then(f,function(N){throw f(N)});f()}return c}if(!("length"in l))throw new TypeError("Object is not iterable");for(var A=[],C=0;C<l.length;C++)A.push(l[C]);return function(y,N,R){var b,P,L=-1;return function e(t){try{for(;++L<y.length&&(!R||!R());)if((t=N(L))&&t.then){if(!mt(t))return void t.then(e,P||(P=De.bind(null,b=new We,2)));t=t.v}b?De(b,1,t):b=t}catch(o){De(b||(b=new We),2,o)}}(),b}(A,function(y){return g(A[y])},h)}(s,function(l){return g=function(){return function(w,c){try{var a=ke(Le(i,l),function(v){if(v.type!=="directory")throw new Error(`Path includes a file: ${n}`)})}catch(v){return c(v)}return a&&a.then?a.then(void 0,c):a}(0,function(w){const c=w;return function(){if(c.status===404)return u=!0,rt(Be(i,l,{...r,recursive:!1}));throw w}()})},(h=function(){if(u)return rt(Be(i,l,{...r,recursive:!1}))}())&&h.then?h.then(g):g();var g,h},function(){return!1})});function Pe(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}function Ge(){}function rt(i,n){if(!n)return i&&i.then?i.then(Ge):Promise.resolve()}const _t=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function De(i,n,r){if(!i.s){if(r instanceof We){if(!r.s)return void(r.o=De.bind(null,i,n));1&n&&(n=r.s),r=r.v}if(r&&r.then)return void r.then(De.bind(null,i,n),De.bind(null,i,2));i.s=n,i.v=r;const s=i.o;s&&s(i)}}const We=function(){function i(){}return i.prototype.then=function(n,r){const s=new i,u=this.s;if(u){const l=1&u?n:r;if(l){try{De(s,1,l(this.v))}catch(g){De(s,2,g)}return s}return this}return this.o=function(l){try{const g=l.v;1&l.s?De(s,1,n?n(g):g):r?De(s,1,r(g)):De(s,2,g)}catch(g){De(s,2,g)}},s},i}();function mt(i){return i instanceof We&&1&i.s}const Be=Pe(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return ut(i,n,r);const s=tt({url:he(i.remoteURL,(u=D(n),u.endsWith("/")?u:u+"/")),method:"MKCOL"},i,r);var u;return ke(He(s,i),function(l){Ke(i,l)})});var ct=W(388),Tt=W.n(ct);const Lt=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let h=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(h=`${h}${r.range.end}`),s.Range=h}const u=tt({url:he(i.remoteURL,D(n)),method:"GET",headers:s},i,r);return g=function(h){if(Ke(i,h),s.Range&&h.status!==206){const w=new Error(`Invalid response code for partial request: ${h.status}`);throw w.status=h.status,w}return r.callback&&setTimeout(()=>{r.callback(h)},0),h.body},(l=He(u,i))&&l.then||(l=Promise.resolve(l)),g?l.then(g):l;var l,g}),Bt=()=>{},Oe=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n,r){r.url||(r.url=he(i.remoteURL,D(n)));const s=tt(r,i,{});return l=function(g){return Ke(i,g),g},(u=He(s,i))&&u.then||(u=Promise.resolve(u)),l?u.then(l):u;var u,l}),Me=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=tt({url:he(i.remoteURL,D(n)),method:"DELETE"},i,r);return l=function(g){Ke(i,g)},(u=He(s,i))&&u.then||(u=Promise.resolve(u)),l?u.then(l):u;var u,l}),yt=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(s,u){try{var l=(g=Le(i,n,r),h=function(){return!0},w?h?h(g):g:(g&&g.then||(g=Promise.resolve(g)),h?g.then(h):g))}catch(c){return u(c)}var g,h,w;return l&&l.then?l.then(void 0,u):l}(0,function(s){if(s.status===404)return!1;throw s})});function Ct(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const wn=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=tt({url:he(i.remoteURL,D(n),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},i,r);return Ct(He(s,i),function(u){return Ke(i,u),Ct(u.text(),function(l){if(!l)throw new Error("Failed parsing directory contents: Empty response");return Ct(re(l),function(g){const h=Q(n);let w=function(c,a,v){let f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],A=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const C=se().join(a,"/"),{multistatus:{response:y}}=c,N=y.map(R=>{const b=function(L){try{return L.replace(/^https?:\/\/[^\/]+/,"")}catch(e){throw new ue(e,"Failed normalising HREF")}}(R.href),{propstat:{prop:P}}=R;return be(P,C==="/"?decodeURIComponent(ee(b)):ee(se().relative(decodeURIComponent(C),decodeURIComponent(b))),f)});return A?N:N.filter(R=>R.basename&&(R.type==="file"||R.filename!==v.replace(/\/$/,"")))}(g,Q(i.remoteBasePath||i.remotePath),h,r.details,r.includeSelf);return r.glob&&(w=function(c,a){return c.filter(v=>st(v.filename,a,{matchBase:!0}))}(w,r.glob)),$t(u,w,r.details)})})})});function en(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}const Cn=en(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=tt({url:he(i.remoteURL,D(n)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[xn]},i,r);return Wt(He(s,i),function(u){return Ke(i,u),Wt(u.text(),function(l){return $t(u,l,r.details)})})});function Wt(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const Xn=en(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=tt({url:he(i.remoteURL,D(n)),method:"GET"},i,r);return Wt(He(s,i),function(u){let l;return Ke(i,u),function(g,h){var w=g();return w&&w.then?w.then(h):h()}(function(){return Wt(u.arrayBuffer(),function(g){l=g})},function(){return $t(u,l,r.details)})})}),Nn=en(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:s="binary"}=r;if(s!=="binary"&&s!=="text")throw new ue({info:{code:Qe.InvalidOutputFormat}},`Invalid output format: ${s}`);return s==="text"?Cn(i,n,r):Xn(i,n,r)}),xn=i=>i;function dt(i){return new ne.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(Hn({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:i}}},"d"))}function Hn(i,n){const r={...i};for(const s in r)r.hasOwnProperty(s)&&(r[s]&&typeof r[s]=="object"&&s.indexOf(":")===-1?(r[`${n}:${s}`]=Hn(r[s],n),delete r[s]):/^@_/.test(s)===!1&&(r[`${n}:${s}`]=r[s],delete r[s]));return r}function Kn(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}function Zn(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}const cr=Zn(function(i,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=tt({url:he(i.remoteURL,D(n)),method:"UNLOCK",headers:{"Lock-Token":r}},i,s);return Kn(He(u,i),function(l){if(Ke(i,l),l.status!==204&&l.status!==200)throw cn(l)})}),er=Zn(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:s,timeout:u=dr}=r,l={Accept:"text/plain,application/xml",Timeout:u};s&&(l.If=s);const g=tt({url:he(i.remoteURL,D(n)),method:"LOCK",headers:l,data:dt(i.contactHref)},i,r);return Kn(He(g,i),function(h){return Ke(i,h),Kn(h.text(),function(w){const c=(f=w,new ne.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),a=I().get(c,"prop.lockdiscovery.activelock.locktoken.href"),v=I().get(c,"prop.lockdiscovery.activelock.timeout");var f;if(!a)throw cn(h,"No lock token received: ");return{token:a,serverTimeout:v}})})}),dr="Infinite, Second-4100000000";function Yn(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const fr=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=n.path||"/",s=tt({url:he(i.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},i,n);return Yn(He(s,i),function(u){return Ke(i,u),Yn(u.text(),function(l){return Yn(re(l),function(g){const h=function(w){try{const[c]=w.multistatus.response,{propstat:{prop:{"quota-used-bytes":a,"quota-available-bytes":v}}}=c;return a!==void 0&&v!==void 0?{used:parseInt(String(a),10),available:Se(v)}:null}catch{}return null}(g);return $t(u,h,n.details)})})})});function Jn(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const Ft=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:s=!1}=r,u=tt({url:he(i.remoteURL,D(n)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":i.headers["Content-Type"]||"application/xml; charset=utf-8"}},i,r);return Jn(He(u,i),function(l){return Ke(i,l),Jn(l.text(),function(g){return Jn(re(g),function(h){const w=function(c,a,v){const f={truncated:!1,results:[]};return f.truncated=c.multistatus.response.some(A=>(A.status||A.propstat?.status).split(" ",3)?.[1]==="507"&&A.href.replace(/\/$/,"").endsWith(D(a).replace(/\/$/,""))),c.multistatus.response.forEach(A=>{if(A.propstat===void 0)return;const C=A.href.split("/").map(decodeURIComponent).join("/");f.results.push(be(A.propstat.prop,C,v))}),f}(h,n,s);return $t(l,w,s)})})})}),hr=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const u=tt({url:he(i.remoteURL,D(n)),method:"MOVE",headers:{Destination:he(i.remoteURL,D(r)),Overwrite:s.overwrite===!1?"F":"T"}},i,s);return g=function(h){Ke(i,h)},(l=He(u,i))&&l.then||(l=Promise.resolve(l)),g?l.then(g):l;var l,g});var pr=W(172);const gr=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:u=!0,overwrite:l=!0}=s,g={"Content-Type":"application/octet-stream"};u===!1||(g["Content-Length"]=typeof u=="number"?`${u}`:`${function(a){if(At(a))return a.byteLength;if(ht(a))return a.length;if(typeof a=="string")return(0,pr.d)(a);throw new ue({info:{code:Qe.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),l||(g["If-None-Match"]="*");const h=tt({url:he(i.remoteURL,D(n)),method:"PUT",headers:g,data:r},i,s);return c=function(a){try{Ke(i,a)}catch(v){const f=v;if(f.status!==412||l)throw f;return!1}return!0},(w=He(h,i))&&w.then||(w=Promise.resolve(w)),c?w.then(c):w;var w,c}),tr=function(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}(function(i,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=tt({url:he(i.remoteURL,D(n)),method:"OPTIONS"},i,r);return l=function(g){try{Ke(i,g)}catch(h){throw h}return{compliance:(g.headers.get("DAV")??"").split(",").map(h=>h.trim()),server:g.headers.get("Server")??""}},(u=He(s,i))&&u.then||(u=Promise.resolve(u)),l?u.then(l):u;var u,l});function Pn(i,n,r){return r?n?n(i):i:(i&&i.then||(i=Promise.resolve(i)),n?i.then(n):i)}const xr=Qn(function(i,n,r,s,u){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>s||r<0)throw new ue({info:{code:Qe.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const g={"Content-Type":"application/octet-stream","Content-Length":""+(s-r+1),"Content-Range":`bytes ${r}-${s}/*`},h=tt({url:he(i.remoteURL,D(n)),method:"PUT",headers:g,data:u},i,l);return Pn(He(h,i),function(w){Ke(i,w)})});function mr(i,n){var r=i();return r&&r.then?r.then(n):n(r)}const nr=Qn(function(i,n,r,s,u){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>s||r<0)throw new ue({info:{code:Qe.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const g={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(s-r+1),"X-Update-Range":`bytes=${r}-${s}`},h=tt({url:he(i.remoteURL,D(n)),method:"PATCH",headers:g,data:u},i,l);return Pn(He(h,i),function(w){Ke(i,w)})});function Qn(i){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return Promise.resolve(i.apply(this,n))}catch(s){return Promise.reject(s)}}}const Pr=Qn(function(i,n,r,s,u){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Pn(tr(i,n,l),function(g){let h=!1;return mr(function(){if(g.compliance.includes("sabredav-partialupdate"))return Pn(nr(i,n,r,s,u,l),function(w){return h=!0,w})},function(w){let c=!1;return h?w:mr(function(){if(g.server.includes("Apache")&&g.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Pn(xr(i,n,r,s,u,l),function(a){return c=!0,a})},function(a){if(c)return a;throw new ue({info:{code:Qe.NotSupported}},"Not supported")})})})}),vr="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Ir(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:s,contactHref:u=vr,ha1:l,headers:g={},httpAgent:h,httpsAgent:w,password:c,token:a,username:v,withCredentials:f}=n;let A=r;A||(A=v||c?ze.Password:ze.None);const C={authType:A,remoteBasePath:s,contactHref:u,ha1:l,headers:Object.assign({},g),httpAgent:h,httpsAgent:w,password:c,remotePath:ve(i),remoteURL:i,token:a,username:v,withCredentials:f};return Pt(C,v,c,a,l),{copyFile:(y,N,R)=>Wn(C,y,N,R),createDirectory:(y,N)=>Be(C,y,N),createReadStream:(y,N)=>function(R,b){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const L=new(Tt()).PassThrough;return Lt(R,b,P).then(e=>{e.pipe(L)}).catch(e=>{L.emit("error",e)}),L}(C,y,N),createWriteStream:(y,N,R)=>function(b,P){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Bt;const t=new(Tt()).PassThrough,o={};L.overwrite===!1&&(o["If-None-Match"]="*");const d=tt({url:he(b.remoteURL,D(P)),method:"PUT",headers:o,data:t,maxRedirects:0},b,L);return He(d,b).then(p=>Ke(b,p)).then(p=>{setTimeout(()=>{e(p)},0)}).catch(p=>{t.emit("error",p)}),t}(C,y,N,R),customRequest:(y,N)=>Oe(C,y,N),deleteFile:(y,N)=>Me(C,y,N),exists:(y,N)=>yt(C,y,N),getDirectoryContents:(y,N)=>wn(C,y,N),getFileContents:(y,N)=>Nn(C,y,N),getFileDownloadLink:y=>function(N,R){let b=he(N.remoteURL,D(R));const P=/^https:/i.test(b)?"https":"http";switch(N.authType){case ze.None:break;case ze.Password:{const L=q(N.headers.Authorization.replace(/^Basic /i,"").trim());b=b.replace(/^https?:\/\//,`${P}://${L}@`);break}default:throw new ue({info:{code:Qe.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${N.authType}`)}return b}(C,y),getFileUploadLink:y=>function(N,R){let b=`${he(N.remoteURL,D(R))}?Content-Type=application/octet-stream`;const P=/^https:/i.test(b)?"https":"http";switch(N.authType){case ze.None:break;case ze.Password:{const L=q(N.headers.Authorization.replace(/^Basic /i,"").trim());b=b.replace(/^https?:\/\//,`${P}://${L}@`);break}default:throw new ue({info:{code:Qe.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${N.authType}`)}return b}(C,y),getHeaders:()=>Object.assign({},C.headers),getQuota:y=>fr(C,y),lock:(y,N)=>er(C,y,N),moveFile:(y,N,R)=>hr(C,y,N,R),putFileContents:(y,N,R)=>gr(C,y,N,R),partialUpdateFileContents:(y,N,R,b,P)=>Pr(C,y,N,R,b,P),getDAVCompliance:y=>tr(C,y),search:(y,N)=>Ft(C,y,N),setHeaders:y=>{C.headers=Object.assign({},y)},stat:(y,N)=>Le(C,y,N),unlock:(y,N,R)=>cr(C,y,N,R)}}var Tr=Y.hT,Or=Y.O4,yr=Y.Kd,Sr=Y.YK,br=Y.UU,Er=Y.Gu,Gr=Y.ky,Ar=Y.h4,rr=Y.ch,$r=Y.hq,Lr=Y.i5}}]);})();

//# sourceMappingURL=talk-defaultVendors-node_modules_css-loader_dist_runtime_getUrl_js-node_modules_debounce_index_js--b3ccbc.js.map?v=ac96c8258f35f603283b