@opencloud-eu/web-pkg 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { d as L, u as w, c as r, a as n, _ as v, r as g, b as z, o as s, e as h } from "./index-CPsauqxc.js";
1
+ import { d as L, u as w, c as r, a as n, _ as v, r as g, b as z, o as s, e as h } from "./index-DZecEYvt.js";
2
2
  import { MdPreview as P, MdEditor as y, config as C, XSSPlugin as I } from "md-editor-v3";
3
3
  import { useGettext as D } from "vue3-gettext";
4
4
  import "@casl/vue";
@@ -5,9 +5,9 @@ var u1=Object.defineProperty;var Nf=Se=>{throw TypeError(Se)};var l1=(Se,Pe,He)=
5
5
  * @license MIT
6
6
  */(function(e){const t=cn,r=ni,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{const F=new i(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return f(F,b,S)}s.poolSize=8192;function f(F,b,S){if(typeof F=="string")return E(F,b);if(a.isView(F))return p(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(at(F,a)||F&&at(F.buffer,a)||typeof u<"u"&&(at(F,u)||F&&at(F.buffer,u)))return h(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=F.valueOf&&F.valueOf();if(M!=null&&M!==F)return s.from(M,b,S);const H=g(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return f(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function d(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function x(F,b,S){return d(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return x(F,b,S)};function m(F){return d(F),l(F<0?0:y(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function E(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=T(F,b)|0;let M=l(S);const H=M.write(F,b);return H!==S&&(M=M.slice(0,H)),M}function A(F){const b=F.length<0?0:y(F.length)|0,S=l(b);for(let M=0;M<b;M+=1)S[M]=F[M]&255;return S}function p(F){if(at(F,i)){const b=new i(F);return h(b.buffer,b.byteOffset,b.byteLength)}return A(F)}function h(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let M;return b===void 0&&S===void 0?M=new i(F):S===void 0?M=new i(F,b):M=new i(F,b,S),Object.setPrototypeOf(M,s.prototype),M}function g(F){if(s.isBuffer(F)){const b=y(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||Ot(F.length)?l(0):A(F);if(F.type==="Buffer"&&Array.isArray(F.data))return A(F.data)}function y(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(at(b,i)&&(b=s.from(b,b.offset,b.byteLength)),at(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let M=b.length,H=S.length;for(let z=0,ne=Math.min(M,H);z<ne;++z)if(b[z]!==S[z]){M=b[z],H=S[z];break}return M<H?-1:H<M?1:0},s.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let M;if(S===void 0)for(S=0,M=0;M<b.length;++M)S+=b[M].length;const H=s.allocUnsafe(S);let z=0;for(M=0;M<b.length;++M){let ne=b[M];if(at(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function T(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||at(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return nt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ue(F).length;default:if(H)return M?-1:nt(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=T;function P(F,b,S){let M=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return K(this,b,S);case"utf8":case"utf-8":return ce(this,b,S);case"ascii":return xe(this,b,S);case"latin1":case"binary":return be(this,b,S);case"base64":return he(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,b,S);default:if(M)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const M=F[b];F[b]=F[S],F[S]=M}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)I(this,S,S+7),I(this,S+1,S+6),I(this,S+2,S+5),I(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?ce(this,0,b):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,M,H,z){if(at(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),M===void 0&&(M=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||M>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=M)return 0;if(H>=z)return-1;if(S>=M)return 1;if(S>>>=0,M>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,Ae=M-S;const je=Math.min(ne,Ae),Me=this.slice(H,z),De=b.slice(S,M);for(let Ie=0;Ie<je;++Ie)if(Me[Ie]!==De[Ie]){ne=Me[Ie],Ae=De[Ie];break}return ne<Ae?-1:Ae<ne?1:0};function O(F,b,S,M,H){if(F.length===0)return-1;if(typeof S=="string"?(M=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ot(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,M)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,M,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,M,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,M,H){let z=1,ne=F.length,Ae=b.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,Ae/=2,S/=2}function je(De,Ie){return z===1?De[Ie]:De.readUInt16BE(Ie*z)}let Me;if(H){let De=-1;for(Me=S;Me<ne;Me++)if(je(F,Me)===je(b,De===-1?0:Me-De)){if(De===-1&&(De=Me),Me-De+1===Ae)return De*z}else De!==-1&&(Me-=Me-De),De=-1}else for(S+Ae>ne&&(S=ne-Ae),Me=S;Me>=0;Me--){let De=!0;for(let Ie=0;Ie<Ae;Ie++)if(je(F,Me+Ie)!==je(b,Ie)){De=!1;break}if(De)return Me}return-1}s.prototype.includes=function(b,S,M){return this.indexOf(b,S,M)!==-1},s.prototype.indexOf=function(b,S,M){return O(this,b,S,M,!0)},s.prototype.lastIndexOf=function(b,S,M){return O(this,b,S,M,!1)};function G(F,b,S,M){S=Number(S)||0;const H=F.length-S;M?(M=Number(M),M>H&&(M=H)):M=H;const z=b.length;M>z/2&&(M=z/2);let ne;for(ne=0;ne<M;++ne){const Ae=parseInt(b.substr(ne*2,2),16);if(Ot(Ae))return ne;F[S+ne]=Ae}return ne}function L(F,b,S,M){return ct(nt(b,F.length-S),F,S,M)}function D(F,b,S,M){return ct(Ze(b),F,S,M)}function oe(F,b,S,M){return ct(Ue(b),F,S,M)}function re(F,b,S,M){return ct(Ne(b,F.length-S),F,S,M)}s.prototype.write=function(b,S,M,H){if(S===void 0)H="utf8",M=this.length,S=0;else if(M===void 0&&typeof S=="string")H=S,M=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(M)?(M=M>>>0,H===void 0&&(H="utf8")):(H=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((M===void 0||M>z)&&(M=z),b.length>0&&(M<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return G(this,b,S,M);case"utf8":case"utf-8":return L(this,b,S,M);case"ascii":case"latin1":case"binary":return D(this,b,S,M);case"base64":return oe(this,b,S,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,b,S,M);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function he(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function ce(F,b,S){S=Math.min(F.length,S);const M=[];let H=b;for(;H<S;){const z=F[H];let ne=null,Ae=z>239?4:z>223?3:z>191?2:1;if(H+Ae<=S){let je,Me,De,Ie;switch(Ae){case 1:z<128&&(ne=z);break;case 2:je=F[H+1],(je&192)===128&&(Ie=(z&31)<<6|je&63,Ie>127&&(ne=Ie));break;case 3:je=F[H+1],Me=F[H+2],(je&192)===128&&(Me&192)===128&&(Ie=(z&15)<<12|(je&63)<<6|Me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(ne=Ie));break;case 4:je=F[H+1],Me=F[H+2],De=F[H+3],(je&192)===128&&(Me&192)===128&&(De&192)===128&&(Ie=(z&15)<<18|(je&63)<<12|(Me&63)<<6|De&63,Ie>65535&&Ie<1114112&&(ne=Ie))}}ne===null?(ne=65533,Ae=1):ne>65535&&(ne-=65536,M.push(ne>>>10&1023|55296),ne=56320|ne&1023),M.push(ne),H+=Ae}return fe(M)}const ge=4096;function fe(F){const b=F.length;if(b<=ge)return String.fromCharCode.apply(String,F);let S="",M=0;for(;M<b;)S+=String.fromCharCode.apply(String,F.slice(M,M+=ge));return S}function xe(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]&127);return M}function be(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]);return M}function K(F,b,S){const M=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>M)&&(S=M);let H="";for(let z=b;z<S;++z)H+=Rt[F[z]];return H}function Q(F,b,S){const M=F.slice(b,S);let H="";for(let z=0;z<M.length-1;z+=2)H+=String.fromCharCode(M[z]+M[z+1]*256);return H}s.prototype.slice=function(b,S){const M=this.length;b=~~b,S=S===void 0?M:~~S,b<0?(b+=M,b<0&&(b=0)):b>M&&(b=M),S<0?(S+=M,S<0&&(S=0)):S>M&&(S=M),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function ee(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||ee(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||ee(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||ee(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+M*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||ee(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const M=this[b]|this[b+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const M=this[b+1]|this[b]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(M<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||ee(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||ee(b,8,this.length),r.read(this,b,!1,52,8)};function ue(F,b,S,M,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+M>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const Ae=Math.pow(2,8*M)-1;ue(this,b,S,M,Ae,0)}let z=1,ne=0;for(this[S]=b&255;++ne<M&&(z*=256);)this[S+ne]=b/z&255;return S+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const Ae=Math.pow(2,8*M)-1;ue(this,b,S,M,Ae,0)}let z=M-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,M,H){pe(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,b,S,M,H){pe(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=ot(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ot(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const je=Math.pow(2,8*M-1);ue(this,b,S,M,je-1,-je)}let z=0,ne=1,Ae=0;for(this[S]=b&255;++z<M&&(ne*=256);)b<0&&Ae===0&&this[S+z-1]!==0&&(Ae=1),this[S+z]=(b/ne>>0)-Ae&255;return S+M},s.prototype.writeIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const je=Math.pow(2,8*M-1);ue(this,b,S,M,je-1,-je)}let z=M-1,ne=1,Ae=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&Ae===0&&this[S+z+1]!==0&&(Ae=1),this[S+z]=(b/ne>>0)-Ae&255;return S+M},s.prototype.writeInt8=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=ot(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ot(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,M,H,z){if(S+M>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,M,23,4),S+4}s.prototype.writeFloatLE=function(b,S,M){return q(this,b,S,!0,M)},s.prototype.writeFloatBE=function(b,S,M){return q(this,b,S,!1,M)};function $(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,M,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,M){return $(this,b,S,!0,M)},s.prototype.writeDoubleBE=function(b,S,M){return $(this,b,S,!1,M)},s.prototype.copy=function(b,S,M,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(M||(M=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<M&&(H=M),H===M||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-M&&(H=b.length-S+M);const z=H-M;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,M,H):i.prototype.set.call(b,this.subarray(M,H),S),z},s.prototype.fill=function(b,S,M,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,M=this.length):typeof M=="string"&&(H=M,M=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<M)throw new RangeError("Out of range index");if(M<=S)return this;S=S>>>0,M=M===void 0?this.length:M>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<M;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),Ae=ne.length;if(Ae===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<M-S;++z)this[z+S]=ne[z%Ae]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let M=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=Y(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=Y(H)),H+="n"),M+=` It must be ${b}. Received ${H}`,M},RangeError);function Y(F){let b="",S=F.length;const M=F[0]==="-"?1:0;for(;S>=M+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function se(F,b,S){le(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&de(b,F.length-(S+1))}function pe(F,b,S,M,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let Ae;throw b===0||b===BigInt(0)?Ae=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:Ae=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",Ae,F)}se(M,H,z)}function le(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function de(F,b,S){throw Math.floor(F)!==F?(le(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Le=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Le,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function nt(F,b){b=b||1/0;let S;const M=F.length;let H=null;const z=[];for(let ne=0;ne<M;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===M){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function Ze(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function Ne(F,b){let S,M,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),M=S>>8,H=S%256,z.push(H),z.push(M);return z}function Ue(F){return t.toByteArray(te(F))}function ct(F,b,S,M){let H;for(H=0;H<M&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function at(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function Ot(F){return F!==F}const Rt=function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const M=S*16;for(let H=0;H<16;++H)b[M+H]=F[S]+F[H]}return b}();function ot(F){return typeof BigInt>"u"?Jt:F}function Jt(){throw new Error("BigInt not supported")}})(fa);const yr=fa.Buffer;function we(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const da=we.prototype,pa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pa[e]={value:e}}),Object.defineProperties(we,pa),Object.defineProperty(da,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(da);return Z.toFlatObject(e,a,function(c){return c!==Error.prototype},u=>u!=="isAxiosError"),we.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var qh=null;function ii(e){return Z.isPlainObject(e)||Z.isArray(e)}function ga(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function ya(e,t,r){return e?e.concat(t).map(function(o,i){return o=ga(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Hh(e){return Z.isArray(e)&&!e.some(ii)}const Vh=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function fn(e,t,r){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,A){return!Z.isUndefined(A[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(Z.isDate(m))return m.toISOString();if(!c&&Z.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(m)||Z.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):yr.from(m):m}function s(m,E,A){let p=m;if(m&&!A&&typeof m=="object"){if(Z.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(Z.isArray(m)&&Hh(m)||(Z.isFileList(m)||Z.endsWith(E,"[]"))&&(p=Z.toArray(m)))return E=ga(E),p.forEach(function(g,y){!(Z.isUndefined(g)||g===null)&&t.append(a===!0?ya([E],y,i):a===null?E:E+"[]",l(g))}),!1}return ii(m)?!0:(t.append(ya(A,E,i),l(m)),!1)}const f=[],d=Object.assign(Vh,{defaultVisitor:s,convertValue:l,isVisitable:ii});function x(m,E){if(!Z.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(m),Z.forEach(m,function(p,h){(!(Z.isUndefined(p)||p===null)&&o.call(t,p,Z.isString(h)?h.trim():h,E,d))===!0&&x(p,E?E.concat(h):[h])}),f.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return x(e),t}function ma(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function oi(e,t){this._pairs=[],e&&fn(e,this,t)}const ba=oi.prototype;ba.append=function(t,r){this._pairs.push([t,r])},ba.toString=function(t){const r=t?function(n){return t.call(this,n,ma)}:ma;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Wh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wa(e,t,r){if(!t)return e;const n=r&&r.encode||Wh;Z.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Z.isURLSearchParams(t)?t.toString():new oi(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class va{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gh=typeof URLSearchParams<"u"?URLSearchParams:oi,Kh=typeof FormData<"u"?FormData:null,zh=typeof Blob<"u"?Blob:null,Xh={isBrowser:!0,classes:{URLSearchParams:Gh,FormData:Kh,Blob:zh},protocols:["http","https","file","blob","url","data"]};const si=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,Yh=si&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),Jh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zh=si&&window.location.href||"http://localhost";var Qh=Object.freeze({__proto__:null,hasBrowserEnv:si,hasStandardBrowserEnv:Yh,hasStandardBrowserWebWorkerEnv:Jh,navigator:ai,origin:Zh}),ut={...Qh,...Xh};function ed(e,t){return fn(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ut.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function td(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function rd(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function xa(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),c=i>=r.length;return a=!a&&Z.isArray(o)?o.length:a,c?(Z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Z.isArray(o[a])&&(o[a]=rd(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(td(n),o,r,0)}),r}return null}function nd(e,t,r){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Br={transitional:Ea,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(xa(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ed(t,this.formSerializer).toString();if((u=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fn(u?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),nd(t)):t}],transformResponse:[function(t){const r=this.transitional||Br.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?we.from(u,we.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{Br.headers[e]={}});const id=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var od=e=>{const t={};let r,n,o;return e&&e.split(`
7
7
  `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&id[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Aa=Symbol("internals");function Lr(e){return e&&String(e).trim().toLowerCase()}function hn(e){return e===!1||e==null?e:Z.isArray(e)?e.map(hn):String(e)}function sd(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const ad=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ui(e,t,r,n,o){if(Z.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Z.isString(t)){if(Z.isString(n))return t.indexOf(n)!==-1;if(Z.isRegExp(n))return n.test(t)}}function ud(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ld(e,t){const r=Z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,c,l){const s=Lr(c);if(!s)throw new Error("header name must be a non-empty string");const f=Z.findKey(o,s);(!f||o[f]===void 0||l===!0||l===void 0&&o[f]!==!1)&&(o[f||c]=hn(u))}const a=(u,c)=>Z.forEach(u,(l,s)=>i(l,s,c));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Z.isString(t)&&(t=t.trim())&&!ad(t))a(od(t),r);else if(Z.isHeaders(t))for(const[u,c]of t.entries())i(c,u,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Lr(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return sd(o);if(Z.isFunction(r))return r.call(this,o,n);if(Z.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Lr(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ui(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Lr(a),a){const u=Z.findKey(n,a);u&&(!r||ui(n,n[u],u,r))&&(delete n[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||ui(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(n,i);if(a){r[a]=hn(o),delete r[i];return}const u=t?ud(i):String(i).trim();u!==i&&delete r[i],r[u]=hn(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
8
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ld(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function li(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ta(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function Sa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,d=0;for(;f!==o;)d+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const x=s&&l-s;return x?Math.round(d*1e3/x):void 0}}function hd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const dn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return hd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},_a=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oa=e=>(...t)=>Z.asap(()=>e(...t));var dd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,pd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!gd(t);return e&&n||r==!1?yd(e,t):t}const Ra=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,f,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,f,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,f,d)}else return n(l,s,f,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,f)=>o(Ra(l),Ra(s),f,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const f=c[s]||o,d=f(e[s],t[s],s);Z.isUndefined(d)&&f!==u||(r[s]=d)}),r}var Ia=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=wa(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...s]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&dd(t.url))){const l=o&&i&&pd.read(i);l&&a.set(o,l)}return t},md=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,d,x,m;function E(){x&&x(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function p(){if(!A)return;const g=yt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:g,config:e,request:A};Sa(function(P){r(P),E()},function(P){n(P),E()},w),A=null}"onloadend"in A?A.onloadend=p:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(p)},A.onabort=function(){A&&(n(new we("Request aborted",we.ECONNABORTED,e,A)),A=null)},A.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ea;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(y,w){A.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),l&&([d,m]=dn(l,!0),A.addEventListener("progress",d)),c&&A.upload&&([f,x]=dn(c),A.upload.addEventListener("progress",f),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=g=>{A&&(n(!g||g.type?new mr(null,e,A):g),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=cd(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const bd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>Z.asap(u),c}},wd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},vd=async function*(e,t){for await(const r of Ed(e))yield*wd(r,t)},Ed=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Pa=(e,t,r,n)=>{const o=vd(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let d=i+=f;r(d)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fa=pn&&typeof ReadableStream=="function",xd=pn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ca=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ad=Fa&&Ca(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=64*1024,ci=Fa&&Ca(()=>Z.isReadableStream(new Response("").body)),gn={stream:ci&&(e=>e.body)};pn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gn[t]&&(gn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Td=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await xd(e)).byteLength},Sd=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Td(t)};var _d=pn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:l,headers:s,withCredentials:f="same-origin",fetchOptions:d}=Ia(e);l=l?(l+"").toLowerCase():"text";let x=bd([o,i&&i.toAbortSignal()],a),m;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(c&&Ad&&r!=="get"&&r!=="head"&&(A=await Sd(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(Z.isFormData(n)&&(T=w.headers.get("content-type"))&&s.setContentType(T),w.body){const[P,I]=_a(A,dn(Oa(c)));n=Pa(w.body,Ba,P,I)}}Z.isString(f)||(f=f?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:x,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?f:void 0});let h=await fetch(m);const g=ci&&(l==="stream"||l==="response");if(ci&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const T=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&_a(T,dn(Oa(u),!0))||[];h=new Response(Pa(h.body,Ba,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await gn[Z.findKey(gn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,T)=>{Sa(w,T,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const fi={http:qh,xhr:md,fetch:_d};Z.forEach(fi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const La=e=>`- ${e}`,Od=e=>Z.isFunction(e)||e===null||e===!1;var Ua={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Od(r)&&(n=fi[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
8
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ld(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function li(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ta(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function Sa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),s=n[i];a||(a=l),r[o]=c,n[o]=l;let f=i,d=0;for(;f!==o;)d+=r[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const x=s&&l-s;return x?Math.round(d*1e3/x):void 0}}function hd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),f=s-r;f>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-f)))},()=>o&&a(o)]}const dn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return hd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,c=a-n,l=o(c),s=a<=u;n=a;const f={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(f)},r)},_a=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oa=e=>(...t)=>Z.asap(()=>e(...t));var dd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,pd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!gd(t);return e&&(n||r==!1)?yd(e,t):t}const Ra=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,f,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,f,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,f,d)}else return n(l,s,f,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,f){if(f in t)return n(l,s);if(f in e)return n(void 0,l)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,f)=>o(Ra(l),Ra(s),f,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const f=c[s]||o,d=f(e[s],t[s],s);Z.isUndefined(d)&&f!==u||(r[s]=d)}),r}var Ia=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=wa(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let c;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[l,...s]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&dd(t.url))){const l=o&&i&&pd.read(i);l&&a.set(o,l)}return t},md=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:c,onDownloadProgress:l}=o,s,f,d,x,m;function E(){x&&x(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function p(){if(!A)return;const g=yt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:g,config:e,request:A};Sa(function(P){r(P),E()},function(P){n(P),E()},w),A=null}"onloadend"in A?A.onloadend=p:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(p)},A.onabort=function(){A&&(n(new we("Request aborted",we.ECONNABORTED,e,A)),A=null)},A.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ea;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&Z.forEach(a.toJSON(),function(y,w){A.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),l&&([d,m]=dn(l,!0),A.addEventListener("progress",d)),c&&A.upload&&([f,x]=dn(c),A.upload.addEventListener("progress",f),A.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(s=g=>{A&&(n(!g||g.type?new mr(null,e,A):g),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=cd(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}A.send(i||null)})};const bd=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>Z.asap(u),c}},wd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},vd=async function*(e,t){for await(const r of Ed(e))yield*wd(r,t)},Ed=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Pa=(e,t,r,n)=>{const o=vd(e,t);let i=0,a,u=c=>{a||(a=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:l,value:s}=await o.next();if(l){u(),c.close();return}let f=s.byteLength;if(r){let d=i+=f;r(d)}c.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(c){return u(c),o.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fa=pn&&typeof ReadableStream=="function",xd=pn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ca=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ad=Fa&&Ca(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=64*1024,ci=Fa&&Ca(()=>Z.isReadableStream(new Response("").body)),gn={stream:ci&&(e=>e.body)};pn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gn[t]&&(gn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Td=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await xd(e)).byteLength},Sd=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Td(t)};var _d=pn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:c,responseType:l,headers:s,withCredentials:f="same-origin",fetchOptions:d}=Ia(e);l=l?(l+"").toLowerCase():"text";let x=bd([o,i&&i.toAbortSignal()],a),m;const E=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let A;try{if(c&&Ad&&r!=="get"&&r!=="head"&&(A=await Sd(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(Z.isFormData(n)&&(T=w.headers.get("content-type"))&&s.setContentType(T),w.body){const[P,I]=_a(A,dn(Oa(c)));n=Pa(w.body,Ba,P,I)}}Z.isString(f)||(f=f?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:x,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?f:void 0});let h=await fetch(m);const g=ci&&(l==="stream"||l==="response");if(ci&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const T=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&_a(T,dn(Oa(u),!0))||[];h=new Response(Pa(h.body,Ba,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await gn[Z.findKey(gn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,T)=>{Sa(w,T,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const fi={http:qh,xhr:md,fetch:_d};Z.forEach(fi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const La=e=>`- ${e}`,Od=e=>Z.isFunction(e)||e===null||e===!1;var Ua={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!Od(r)&&(n=fi[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
9
  `+i.map(La).join(`
10
- `):" "+La(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:fi};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function ja(e){return hi(e),e.headers=yt.from(e.headers),e.data=li.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ua.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return hi(e),n.data=li.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ta(n)||(hi(e),n&&n.response&&(n.response.data=li.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const Ma="1.8.3",yn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ka={};yn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ma+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!ka[a]&&(ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},yn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Nd(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new we("option "+i+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var mn={assertOptions:Nd,validators:yn};const Ct=mn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
10
+ `):" "+La(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:fi};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function ja(e){return hi(e),e.headers=yt.from(e.headers),e.data=li.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ua.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return hi(e),n.data=li.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ta(n)||(hi(e),n&&n.response&&(n.response.data=li.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const Ma="1.8.4",yn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ka={};yn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ma+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!ka[a]&&(ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},yn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Nd(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],c=u===void 0||a(u,i,e);if(c!==!0)throw new we("option "+i+" must be "+c,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var mn={assertOptions:Nd,validators:yn};const Ct=mn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
11
  `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&mn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:mn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),mn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(c=c&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,f=0,d;if(!c){const m=[ja.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);f<d;)s=s.then(m[f++],m[f++]);return s}d=u.length;let x=r;for(f=0;f<d;){const m=u[f++],E=u[f++];try{x=m(x)}catch(A){E.call(this,A);break}}try{s=ja.call(this,x)}catch(m){return Promise.reject(m)}for(f=0,d=l.length;f<d;)s=s.then(l[f++],l[f++]);return s}getUri(t){t=rr(this.defaults,t);const r=Na(t.baseURL,t.url,t.allowAbsoluteUrls);return wa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Rd=class Lf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Lf(function(o){t=o}),cancel:t}}};function Id(e){return function(r){return e.apply(null,r)}}function Pd(e){return Z.isObject(e)&&e.isAxiosError===!0}const di={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(di).forEach(([e,t])=>{di[t]=e});function Da(e){const t=new nr(e),r=na(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Da(rr(e,o))},r}const Ye=Da(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Rd,Ye.isCancel=Ta,Ye.VERSION=Ma,Ye.toFormData=fn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Id,Ye.isAxiosError=Pd,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>xa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ua.getAdapter,Ye.HttpStatusCode=di,Ye.default=Ye;const{Axios:f1,AxiosError:h1,CanceledError:d1,isCancel:p1,CancelToken:g1,VERSION:y1,all:m1,Cancel:b1,isAxiosError:w1,spread:v1,toFormData:E1,AxiosHeaders:x1,HttpStatusCode:A1,formToJSON:T1,getAdapter:S1,mergeConfig:_1}=Ye,bn=e=>encodeURIComponent(e).split("%2F").join("/"),Fd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Cd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Bd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Fd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Ld=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:c}=t,l=u===!0||u==="keep"&&i,s=c===!0||c==="keep"&&a;let f=r;return o.length>0&&((f||l)&&(f+="/"),f+=o.join("/")),s&&(f+="/"),!f&&l&&(f+="/"),f},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Cd(e);const n=Bd(e);return Ld(n,r)};class $a extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Ud extends $a{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function jd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Md(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const wn=e=>({value:e,type:null}),kd=e=>wn(e),Fe=e=>wn(e),pi=e=>wn(e),Dd=e=>wn(e),$d={Permissions:Fe("permissions"),IsFavorite:pi("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:pi("getcontentlength"),ContentSize:pi("size"),LastModifiedDate:Fe("getlastmodified"),Tags:kd("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:Dd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries($d).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var qd=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,Hd=typeof self=="object"&&self&&self.Object===Object&&self,gi=qd||Hd||Function("return this")(),br=gi.Symbol,qa=Object.prototype,Vd=qa.hasOwnProperty,Wd=qa.toString,Ur=br?br.toStringTag:void 0;function Gd(e){var t=Vd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Wd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Kd=Object.prototype,zd=Kd.toString;function Xd(e){return zd.call(e)}var Yd="[object Null]",Jd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Jd:Yd:Ha&&Ha in Object(e)?Gd(e):Xd(e)}function Zd(e){return e!=null&&typeof e=="object"}var Qd="[object Symbol]";function yi(e){return typeof e=="symbol"||Zd(e)&&Va(e)==Qd}function ep(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var mi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(mi(e))return ep(e,Ka)+"";if(yi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var tp="[object AsyncFunction]",rp="[object Function]",np="[object GeneratorFunction]",ip="[object Proxy]";function op(e){if(!za(e))return!1;var t=Va(e);return t==rp||t==np||t==tp||t==ip}var bi=gi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sp(e){return!!Xa&&Xa in e}var ap=Function.prototype,up=ap.toString;function lp(e){if(e!=null){try{return up.call(e)}catch{}try{return e+""}catch{}}return""}var cp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,hp=Function.prototype,dp=Object.prototype,pp=hp.toString,gp=dp.hasOwnProperty,yp=RegExp("^"+pp.call(gp).replace(cp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mp(e){if(!za(e)||sp(e))return!1;var t=op(e)?yp:fp;return t.test(lp(e))}function bp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=bp(e,t);return mp(r)?r:void 0}function wp(e,t){return e===t||e!==e&&t!==t}var vp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ep=/^\w*$/;function xp(e,t){if(mi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yi(e)?!0:Ep.test(e)||!vp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function Ap(){this.__data__=jr?jr(null):{},this.size=0}function Tp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Sp="__lodash_hash_undefined__",_p=Object.prototype,Op=_p.hasOwnProperty;function Np(e){var t=this.__data__;if(jr){var r=t[e];return r===Sp?void 0:r}return Op.call(t,e)?t[e]:void 0}var Rp=Object.prototype,Ip=Rp.hasOwnProperty;function Pp(e){var t=this.__data__;return jr?t[e]!==void 0:Ip.call(t,e)}var Fp="__lodash_hash_undefined__";function Cp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Fp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=Ap,or.prototype.delete=Tp,or.prototype.get=Np,or.prototype.has=Pp,or.prototype.set=Cp;function Bp(){this.__data__=[],this.size=0}function vn(e,t){for(var r=e.length;r--;)if(wp(e[r][0],t))return r;return-1}var Lp=Array.prototype,Up=Lp.splice;function jp(e){var t=this.__data__,r=vn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Up.call(t,r,1),--this.size,!0}function Mp(e){var t=this.__data__,r=vn(t,e);return r<0?void 0:t[r][1]}function kp(e){return vn(this.__data__,e)>-1}function Dp(e,t){var r=this.__data__,n=vn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Bp,wr.prototype.delete=jp,wr.prototype.get=Mp,wr.prototype.has=kp,wr.prototype.set=Dp;var $p=Ya(gi,"Map");function qp(){this.size=0,this.__data__={hash:new or,map:new($p||wr),string:new or}}function Hp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function En(e,t){var r=e.__data__;return Hp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Vp(e){var t=En(this,e).delete(e);return this.size-=t?1:0,t}function Wp(e){return En(this,e).get(e)}function Gp(e){return En(this,e).has(e)}function Kp(e,t){var r=En(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=qp,sr.prototype.delete=Vp,sr.prototype.get=Wp,sr.prototype.has=Gp,sr.prototype.set=Kp;var zp="Expected a function";function wi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(zp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(wi.Cache||sr),r}wi.Cache=sr;var Xp=500;function Yp(e){var t=wi(e,function(n){return r.size===Xp&&r.clear(),n}),r=t.cache;return t}var Jp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zp=/\\(\\)?/g,Qp=Yp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Jp,function(r,n,o,i){t.push(o?i.replace(Zp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function eg(e,t){return mi(e)?e:xp(e,t)?[e]:Qp(Mr(e))}function tg(e){if(typeof e=="string"||yi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function rg(e,t){t=eg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[tg(t[r++])];return r&&r==n?e:void 0}function ng(e,t,r){var n=e==null?void 0:rg(e,t);return n===void 0?r:n}function ig(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function og(e,t,r){var n=e.length;return r=r===void 0?n:r,ig(e,t,r)}var sg="\\ud800-\\udfff",ag="\\u0300-\\u036f",ug="\\ufe20-\\ufe2f",lg="\\u20d0-\\u20ff",cg=ag+ug+lg,fg="\\ufe0e\\ufe0f",hg="\\u200d",dg=RegExp("["+hg+sg+cg+fg+"]");function Ja(e){return dg.test(e)}function pg(e){return e.split("")}var Za="\\ud800-\\udfff",gg="\\u0300-\\u036f",yg="\\ufe20-\\ufe2f",mg="\\u20d0-\\u20ff",bg=gg+yg+mg,wg="\\ufe0e\\ufe0f",vg="["+Za+"]",vi="["+bg+"]",Ei="\\ud83c[\\udffb-\\udfff]",Eg="(?:"+vi+"|"+Ei+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",xg="\\u200d",ru=Eg+"?",nu="["+wg+"]?",Ag="(?:"+xg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Tg=nu+ru+Ag,Sg="(?:"+[Qa+vi+"?",vi,eu,tu,vg].join("|")+")",_g=RegExp(Ei+"(?="+Ei+")|"+Sg+Tg,"g");function Og(e){return e.match(_g)||[]}function Ng(e){return Ja(e)?Og(e):pg(e)}function Rg(e){return function(t){t=Mr(t);var r=Ja(t)?Ng(t):void 0,n=r?r[0]:t.charAt(0),o=r?og(r,1).join(""):t.slice(1);return n[e]()+o}}var Ig=Rg("toUpperCase");function Pg(e){return Ig(Mr(e).toLowerCase())}function Fg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Cg(e){return function(t){return e==null?void 0:e[t]}}var Bg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Lg=Cg(Bg),Ug=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jg="\\u0300-\\u036f",Mg="\\ufe20-\\ufe2f",kg="\\u20d0-\\u20ff",Dg=jg+Mg+kg,$g="["+Dg+"]",qg=RegExp($g,"g");function Hg(e){return e=Mr(e),e&&e.replace(Ug,Lg).replace(qg,"")}var Vg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Wg(e){return e.match(Vg)||[]}var Gg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Kg(e){return Gg.test(e)}var iu="\\ud800-\\udfff",zg="\\u0300-\\u036f",Xg="\\ufe20-\\ufe2f",Yg="\\u20d0-\\u20ff",Jg=zg+Xg+Yg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Zg="\\xac\\xb1\\xd7\\xf7",Qg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",e0="\\u2000-\\u206f",t0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",r0="\\ufe0e\\ufe0f",uu=Zg+Qg+e0+t0,lu="['’]",cu="["+uu+"]",n0="["+Jg+"]",fu="\\d+",i0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+fu+ou+su+au+"]",o0="\\ud83c[\\udffb-\\udfff]",s0="(?:"+n0+"|"+o0+")",a0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",u0="\\u200d",yu="(?:"+hu+"|"+du+")",l0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=s0+"?",vu="["+r0+"]?",c0="(?:"+u0+"(?:"+[a0,pu,gu].join("|")+")"+vu+wu+")*",f0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",h0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",d0=vu+wu+c0,p0="(?:"+[i0,pu,gu].join("|")+")"+d0,g0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[cu,vr,"$"].join("|")+")",l0+"+"+bu+"(?="+[cu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,h0,f0,fu,p0].join("|"),"g");function y0(e){return e.match(g0)||[]}function m0(e,t,r){return e=Mr(e),t=t,t===void 0?Kg(e)?y0(e):Wg(e):e.match(t)||[]}var b0="['’]",w0=RegExp(b0,"g");function v0(e){return function(t){return Fg(m0(Hg(t).replace(w0,"")),e,"")}}var E0=v0(function(e,t,r){return t=t.toLowerCase(),e+(r?Pg(t):t)});const x0={complex:["tar.bz2","tar.gz","tar.xz"]},xi=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",A0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(x0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},xn=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[E0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,A;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||on.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let c,l,s;u&&(c=u[ae.ActiveLock],l=c[ae.LockOwner],s=c[ae.LockTime]);let f=[];e.props[ae.ShareTypes]&&(f=e.props[ae.ShareTypes]["share-type"],Array.isArray(f)||(f=[f]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const x={id:n,fileId:n,storageId:A0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!c,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((A=e.props[ae.ContentLength])==null?void 0:A.toString())||"0",indicators:[],permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:f,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:xn(e.props[ae.Audio]),location:xn(e.props[ae.Location]),image:xn(e.props[ae.Image]),photo:xn(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>xi(n)};return Object.defineProperty(x,"nodeId",{get(){return xu(this.id)}}),x}function T0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=ra.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:ra.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],indicators:[],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>xi(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",An=e=>(e==null?void 0:e.driveType)==="public";function S0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function Ai(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function _0(e){var f,d,x,m,E,A;const t=e.publicLinkPassword,r=(f=e.props)==null?void 0:f[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(x=e.props)==null?void 0:x[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(A=e.props)==null?void 0:A[ae.PublicLinkShareOwner],c=e.publicLinkType;let l,s;return c==="ocm"?(l=`ocm/${e.id}`,s=Md(e.id)):(l=`public/${e.id}`,s=jd(e.id)),Object.assign(O0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:c})}function O0(e,t){var f,d,x,m,E,A;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(f=e.root)==null?void 0:f.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||S0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||Ai(e.id),{leadingSlash:!0}),c=_e(e.serverUrl,"remote.php/dav",u),l=(m=(x=e.root)==null?void 0:x.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:N0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,indicators:[],tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(A=e.owner)==null?void 0:A.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>xi(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(c,p)},isMember(p){var h;return An(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function N0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const R0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return ng(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ti={},Tn={exports:{}},Su;function Si(){if(Su)return Tn.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,T,P){return Function.prototype.apply.call(w,T,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}Tn.exports=i,Tn.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function c(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(w){for(var T=[],P=1;P<arguments.length;P++)T.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(T.length>0&&(j=T[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,T);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,T);return!0};function l(y,w,T,P){var I,O,j;if(u(T),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,T.listener?T.listener:T),O=y._events),j=O[w]),j===void 0)j=O[w]=T,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[T,j]:[j,T]:P?j.unshift(T):j.push(T),I=c(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,T){return l(this,w,T,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,T){return l(this,w,T,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(y,w,T){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:T},I=s.bind(P);return I.listener=T,P.wrapFn=I,I}i.prototype.once=function(w,T){return u(T),this.on(w,f(this,w,T)),this},i.prototype.prependOnceListener=function(w,T){return u(T),this.prependListener(w,f(this,w,T)),this},i.prototype.removeListener=function(w,T){var P,I,O,j,G;if(u(T),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===T||P.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||T));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===T||P[j].listener===T){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||T)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var T,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=P[w],typeof T=="function")this.removeListener(w,T);else if(T!==void 0)for(I=T.length-1;I>=0;I--)this.removeListener(w,T[I]);return this};function d(y,w,T){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?A(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):x.call(y,w)},i.prototype.listenerCount=x;function x(y){var w=this._events;if(w!==void 0){var T=w[y];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var T=new Array(w),P=0;P<w;++P)T[P]=y[P];return T}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function A(y){for(var w=new Array(y.length),T=0;T<w.length;++T)w[T]=y[T].listener||y[T];return w}function p(y,w){return new Promise(function(T,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),T([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,T){typeof y.on=="function"&&g(y,"error",w,T)}function g(y,w,T,P){if(typeof y.on=="function")P.once?y.once(w,T):y.on(w,T);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),T(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return Tn.exports}var Sn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Sn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Sn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Sn.exports}var _i,Ou;function Nu(){return Ou||(Ou=1,_i=Si().EventEmitter),_i}var Oi={},Ru;function _n(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function f(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],T=y[1],P=new i(f(h,w,T)),I=0,O=T>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return T===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),T===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function x(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,T=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),T.push(x(w));return T.join("")}function E(h){for(var g,y=h.length,w=y%3,T=[],P=16383,I=0,O=y-w;I<O;I+=P)T.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],T.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],T.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),T.join("")}var A={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */A.read=function(h,g,y,w,T){var P,I,O=T*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?T-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},A.write=function(h,g,y,w,T,P){var I,O,j,G=P*8-T-1,L=(1<<G)-1,D=L>>1,oe=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,ce=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,T),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,T),I=0));T>=8;h[y+re]=O&255,re+=he,O/=256,T-=8);for(I=I<<T|O,G+=T;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=ce*128};/*!
12
12
  * The buffer module from node.js, for the browser.
13
13
  *
@@ -5,9 +5,9 @@ var u1=Object.defineProperty;var Oc=Se=>{throw TypeError(Se)};var l1=(Se,Pe,He)=
5
5
  * @license MIT
6
6
  */(function(e){const t=ln,r=ni,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:u}=globalThis;s.TYPED_ARRAY_SUPPORT=f(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const F=new i(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,i.prototype),Object.setPrototypeOf(F,b),F.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function l(F){if(F>o)throw new RangeError('The value "'+F+'" is invalid for option "size"');const b=new i(F);return Object.setPrototypeOf(b,s.prototype),b}function s(F,b,S){if(typeof F=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return c(F,b,S)}s.poolSize=8192;function c(F,b,S){if(typeof F=="string")return E(F,b);if(a.isView(F))return p(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(at(F,a)||F&&at(F.buffer,a)||typeof u<"u"&&(at(F,u)||F&&at(F.buffer,u)))return h(F,b,S);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=F.valueOf&&F.valueOf();if(M!=null&&M!==F)return s.from(M,b,S);const H=g(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),b,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}s.from=function(F,b,S){return c(F,b,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function d(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function T(F,b,S){return d(F),F<=0?l(F):b!==void 0?typeof S=="string"?l(F).fill(b,S):l(F).fill(b):l(F)}s.alloc=function(F,b,S){return T(F,b,S)};function m(F){return d(F),l(F<0?0:y(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function E(F,b){if((typeof b!="string"||b==="")&&(b="utf8"),!s.isEncoding(b))throw new TypeError("Unknown encoding: "+b);const S=A(F,b)|0;let M=l(S);const H=M.write(F,b);return H!==S&&(M=M.slice(0,H)),M}function x(F){const b=F.length<0?0:y(F.length)|0,S=l(b);for(let M=0;M<b;M+=1)S[M]=F[M]&255;return S}function p(F){if(at(F,i)){const b=new i(F);return h(b.buffer,b.byteOffset,b.byteLength)}return x(F)}function h(F,b,S){if(b<0||F.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<b+(S||0))throw new RangeError('"length" is outside of buffer bounds');let M;return b===void 0&&S===void 0?M=new i(F):S===void 0?M=new i(F,b):M=new i(F,b,S),Object.setPrototypeOf(M,s.prototype),M}function g(F){if(s.isBuffer(F)){const b=y(F.length)|0,S=l(b);return S.length===0||F.copy(S,0,0,b),S}if(F.length!==void 0)return typeof F.length!="number"||Ot(F.length)?l(0):x(F);if(F.type==="Buffer"&&Array.isArray(F.data))return x(F.data)}function y(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==s.prototype},s.compare=function(b,S){if(at(b,i)&&(b=s.from(b,b.offset,b.byteLength)),at(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(b)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===S)return 0;let M=b.length,H=S.length;for(let z=0,ne=Math.min(M,H);z<ne;++z)if(b[z]!==S[z]){M=b[z],H=S[z];break}return M<H?-1:H<M?1:0},s.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(b,S){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return s.alloc(0);let M;if(S===void 0)for(S=0,M=0;M<b.length;++M)S+=b[M].length;const H=s.allocUnsafe(S);let z=0;for(M=0;M<b.length;++M){let ne=b[M];if(at(ne,i))z+ne.length>H.length?(s.isBuffer(ne)||(ne=s.from(ne)),ne.copy(H,z)):i.prototype.set.call(H,ne,z);else if(s.isBuffer(ne))ne.copy(H,z);else throw new TypeError('"list" argument must be an Array of Buffers');z+=ne.length}return H};function A(F,b){if(s.isBuffer(F))return F.length;if(a.isView(F)||at(F,a))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);const S=F.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return nt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Ue(F).length;default:if(H)return M?-1:nt(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=A;function P(F,b,S){let M=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,b>>>=0,S<=b))return"";for(F||(F="utf8");;)switch(F){case"hex":return K(this,b,S);case"utf8":case"utf-8":return fe(this,b,S);case"ascii":return xe(this,b,S);case"latin1":case"binary":return be(this,b,S);case"base64":return he(this,b,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,b,S);default:if(M)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),M=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const M=F[b];F[b]=F[S],F[S]=M}s.prototype.swap16=function(){const b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<b;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<b;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<b;S+=8)I(this,S,S+7),I(this,S+1,S+6),I(this,S+2,S+5),I(this,S+3,S+4);return this},s.prototype.toString=function(){const b=this.length;return b===0?"":arguments.length===0?fe(this,0,b):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(b){if(!s.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:s.compare(this,b)===0},s.prototype.inspect=function(){let b="";const S=e.INSPECT_MAX_BYTES;return b=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(b+=" ... "),"<Buffer "+b+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(b,S,M,H,z){if(at(b,i)&&(b=s.from(b,b.offset,b.byteLength)),!s.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(S===void 0&&(S=0),M===void 0&&(M=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||M>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=M)return 0;if(H>=z)return-1;if(S>=M)return 1;if(S>>>=0,M>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,Ae=M-S;const je=Math.min(ne,Ae),Me=this.slice(H,z),De=b.slice(S,M);for(let Ie=0;Ie<je;++Ie)if(Me[Ie]!==De[Ie]){ne=Me[Ie],Ae=De[Ie];break}return ne<Ae?-1:Ae<ne?1:0};function O(F,b,S,M,H){if(F.length===0)return-1;if(typeof S=="string"?(M=S,S=0):S>2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ot(S)&&(S=H?0:F.length-1),S<0&&(S=F.length+S),S>=F.length){if(H)return-1;S=F.length-1}else if(S<0)if(H)S=0;else return-1;if(typeof b=="string"&&(b=s.from(b,M)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,M,H);if(typeof b=="number")return b=b&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,b,S):i.prototype.lastIndexOf.call(F,b,S):j(F,[b],S,M,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,M,H){let z=1,ne=F.length,Ae=b.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,Ae/=2,S/=2}function je(De,Ie){return z===1?De[Ie]:De.readUInt16BE(Ie*z)}let Me;if(H){let De=-1;for(Me=S;Me<ne;Me++)if(je(F,Me)===je(b,De===-1?0:Me-De)){if(De===-1&&(De=Me),Me-De+1===Ae)return De*z}else De!==-1&&(Me-=Me-De),De=-1}else for(S+Ae>ne&&(S=ne-Ae),Me=S;Me>=0;Me--){let De=!0;for(let Ie=0;Ie<Ae;Ie++)if(je(F,Me+Ie)!==je(b,Ie)){De=!1;break}if(De)return Me}return-1}s.prototype.includes=function(b,S,M){return this.indexOf(b,S,M)!==-1},s.prototype.indexOf=function(b,S,M){return O(this,b,S,M,!0)},s.prototype.lastIndexOf=function(b,S,M){return O(this,b,S,M,!1)};function G(F,b,S,M){S=Number(S)||0;const H=F.length-S;M?(M=Number(M),M>H&&(M=H)):M=H;const z=b.length;M>z/2&&(M=z/2);let ne;for(ne=0;ne<M;++ne){const Ae=parseInt(b.substr(ne*2,2),16);if(Ot(Ae))return ne;F[S+ne]=Ae}return ne}function L(F,b,S,M){return ft(nt(b,F.length-S),F,S,M)}function D(F,b,S,M){return ft(Ze(b),F,S,M)}function oe(F,b,S,M){return ft(Ue(b),F,S,M)}function re(F,b,S,M){return ft(Ne(b,F.length-S),F,S,M)}s.prototype.write=function(b,S,M,H){if(S===void 0)H="utf8",M=this.length,S=0;else if(M===void 0&&typeof S=="string")H=S,M=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(M)?(M=M>>>0,H===void 0&&(H="utf8")):(H=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((M===void 0||M>z)&&(M=z),b.length>0&&(M<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let ne=!1;for(;;)switch(H){case"hex":return G(this,b,S,M);case"utf8":case"utf-8":return L(this,b,S,M);case"ascii":case"latin1":case"binary":return D(this,b,S,M);case"base64":return oe(this,b,S,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,b,S,M);default:if(ne)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),ne=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function he(F,b,S){return b===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(b,S))}function fe(F,b,S){S=Math.min(F.length,S);const M=[];let H=b;for(;H<S;){const z=F[H];let ne=null,Ae=z>239?4:z>223?3:z>191?2:1;if(H+Ae<=S){let je,Me,De,Ie;switch(Ae){case 1:z<128&&(ne=z);break;case 2:je=F[H+1],(je&192)===128&&(Ie=(z&31)<<6|je&63,Ie>127&&(ne=Ie));break;case 3:je=F[H+1],Me=F[H+2],(je&192)===128&&(Me&192)===128&&(Ie=(z&15)<<12|(je&63)<<6|Me&63,Ie>2047&&(Ie<55296||Ie>57343)&&(ne=Ie));break;case 4:je=F[H+1],Me=F[H+2],De=F[H+3],(je&192)===128&&(Me&192)===128&&(De&192)===128&&(Ie=(z&15)<<18|(je&63)<<12|(Me&63)<<6|De&63,Ie>65535&&Ie<1114112&&(ne=Ie))}}ne===null?(ne=65533,Ae=1):ne>65535&&(ne-=65536,M.push(ne>>>10&1023|55296),ne=56320|ne&1023),M.push(ne),H+=Ae}return ce(M)}const ge=4096;function ce(F){const b=F.length;if(b<=ge)return String.fromCharCode.apply(String,F);let S="",M=0;for(;M<b;)S+=String.fromCharCode.apply(String,F.slice(M,M+=ge));return S}function xe(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]&127);return M}function be(F,b,S){let M="";S=Math.min(F.length,S);for(let H=b;H<S;++H)M+=String.fromCharCode(F[H]);return M}function K(F,b,S){const M=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>M)&&(S=M);let H="";for(let z=b;z<S;++z)H+=Rt[F[z]];return H}function Q(F,b,S){const M=F.slice(b,S);let H="";for(let z=0;z<M.length-1;z+=2)H+=String.fromCharCode(M[z]+M[z+1]*256);return H}s.prototype.slice=function(b,S){const M=this.length;b=~~b,S=S===void 0?M:~~S,b<0?(b+=M,b<0&&(b=0)):b>M&&(b=M),S<0?(S+=M,S<0&&(S=0)):S>M&&(S=M),S<b&&(S=b);const H=this.subarray(b,S);return Object.setPrototypeOf(H,s.prototype),H};function ee(F,b,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+b>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b+--S],z=1;for(;S>0&&(z*=256);)H+=this[b+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(b,S){return b=b>>>0,S||ee(b,1,this.length),this[b]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(b,S){return b=b>>>0,S||ee(b,2,this.length),this[b]|this[b+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(b,S){return b=b>>>0,S||ee(b,2,this.length),this[b]<<8|this[b+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},s.prototype.readBigUInt64LE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24,z=this[++b]+this[++b]*2**8+this[++b]*2**16+M*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=S*2**24+this[++b]*2**16+this[++b]*2**8+this[++b],z=this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=this[b],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[b+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(b,S,M){b=b>>>0,S=S>>>0,M||ee(b,S,this.length);let H=S,z=1,ne=this[b+--H];for(;H>0&&(z*=256);)ne+=this[b+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(b,S){return b=b>>>0,S||ee(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},s.prototype.readInt16LE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const M=this[b]|this[b+1]<<8;return M&32768?M|4294901760:M},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const M=this[b+1]|this[b]<<8;return M&32768?M|4294901760:M},s.prototype.readInt32LE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},s.prototype.readInt32BE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},s.prototype.readBigInt64LE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(M<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=ot(function(b){b=b>>>0,le(b,"offset");const S=this[b],M=this[b+7];(S===void 0||M===void 0)&&de(b,this.length-8);const H=(S<<24)+this[++b]*2**16+this[++b]*2**8+this[++b];return(BigInt(H)<<BigInt(32))+BigInt(this[++b]*2**24+this[++b]*2**16+this[++b]*2**8+M)}),s.prototype.readFloatLE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),r.read(this,b,!0,23,4)},s.prototype.readFloatBE=function(b,S){return b=b>>>0,S||ee(b,4,this.length),r.read(this,b,!1,23,4)},s.prototype.readDoubleLE=function(b,S){return b=b>>>0,S||ee(b,8,this.length),r.read(this,b,!0,52,8)},s.prototype.readDoubleBE=function(b,S){return b=b>>>0,S||ee(b,8,this.length),r.read(this,b,!1,52,8)};function ue(F,b,S,M,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>H||b<z)throw new RangeError('"value" argument is out of bounds');if(S+M>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const Ae=Math.pow(2,8*M)-1;ue(this,b,S,M,Ae,0)}let z=1,ne=0;for(this[S]=b&255;++ne<M&&(z*=256);)this[S+ne]=b/z&255;return S+M},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,M=M>>>0,!H){const Ae=Math.pow(2,8*M)-1;ue(this,b,S,M,Ae,0)}let z=M-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+M},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,65535,0),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,65535,0),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,4294967295,0),this[S+3]=b>>>24,this[S+2]=b>>>16,this[S+1]=b>>>8,this[S]=b&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,4294967295,0),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4};function V(F,b,S,M,H){pe(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z,z=z>>8,F[S++]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,ne=ne>>8,F[S++]=ne,S}function R(F,b,S,M,H){pe(b,M,H,F,S,7);let z=Number(b&BigInt(4294967295));F[S+7]=z,z=z>>8,F[S+6]=z,z=z>>8,F[S+5]=z,z=z>>8,F[S+4]=z;let ne=Number(b>>BigInt(32)&BigInt(4294967295));return F[S+3]=ne,ne=ne>>8,F[S+2]=ne,ne=ne>>8,F[S+1]=ne,ne=ne>>8,F[S]=ne,S+8}s.prototype.writeBigUInt64LE=ot(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ot(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const je=Math.pow(2,8*M-1);ue(this,b,S,M,je-1,-je)}let z=0,ne=1,Ae=0;for(this[S]=b&255;++z<M&&(ne*=256);)b<0&&Ae===0&&this[S+z-1]!==0&&(Ae=1),this[S+z]=(b/ne>>0)-Ae&255;return S+M},s.prototype.writeIntBE=function(b,S,M,H){if(b=+b,S=S>>>0,!H){const je=Math.pow(2,8*M-1);ue(this,b,S,M,je-1,-je)}let z=M-1,ne=1,Ae=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&Ae===0&&this[S+z+1]!==0&&(Ae=1),this[S+z]=(b/ne>>0)-Ae&255;return S+M},s.prototype.writeInt8=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,1,127,-128),b<0&&(b=255+b+1),this[S]=b&255,S+1},s.prototype.writeInt16LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,2147483647,-2147483648),this[S]=b&255,this[S+1]=b>>>8,this[S+2]=b>>>16,this[S+3]=b>>>24,S+4},s.prototype.writeInt32BE=function(b,S,M){return b=+b,S=S>>>0,M||ue(this,b,S,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[S]=b>>>24,this[S+1]=b>>>16,this[S+2]=b>>>8,this[S+3]=b&255,S+4},s.prototype.writeBigInt64LE=ot(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ot(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,M,H,z){if(S+M>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,M,23,4),S+4}s.prototype.writeFloatLE=function(b,S,M){return q(this,b,S,!0,M)},s.prototype.writeFloatBE=function(b,S,M){return q(this,b,S,!1,M)};function $(F,b,S,M,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,M,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,M){return $(this,b,S,!0,M)},s.prototype.writeDoubleBE=function(b,S,M){return $(this,b,S,!1,M)},s.prototype.copy=function(b,S,M,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(M||(M=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<M&&(H=M),H===M||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),b.length-S<H-M&&(H=b.length-S+M);const z=H-M;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,M,H):i.prototype.set.call(b,this.subarray(M,H),S),z},s.prototype.fill=function(b,S,M,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,M=this.length):typeof M=="string"&&(H=M,M=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!s.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(b.length===1){const ne=b.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(b=ne)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(S<0||this.length<S||this.length<M)throw new RangeError("Out of range index");if(M<=S)return this;S=S>>>0,M=M===void 0?this.length:M>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<M;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),Ae=ne.length;if(Ae===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<M-S;++z)this[z+S]=ne[z%Ae]}return this};const B={};function U(F,b,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:b.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${F}]`,this.stack,delete this.name}get code(){return F}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${F}]: ${this.message}`}}}U("ERR_BUFFER_OUT_OF_BOUNDS",function(F){return F?`${F} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(F,b){return`The "${F}" argument must be of type number. Received type ${typeof b}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,b,S){let M=`The value of "${F}" is out of range.`,H=S;return Number.isInteger(S)&&Math.abs(S)>2**32?H=Y(String(S)):typeof S=="bigint"&&(H=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(H=Y(H)),H+="n"),M+=` It must be ${b}. Received ${H}`,M},RangeError);function Y(F){let b="",S=F.length;const M=F[0]==="-"?1:0;for(;S>=M+4;S-=3)b=`_${F.slice(S-3,S)}${b}`;return`${F.slice(0,S)}${b}`}function se(F,b,S){le(b,"offset"),(F[b]===void 0||F[b+S]===void 0)&&de(b,F.length-(S+1))}function pe(F,b,S,M,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let Ae;throw b===0||b===BigInt(0)?Ae=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:Ae=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",Ae,F)}se(M,H,z)}function le(F,b){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(b,"number",F)}function de(F,b,S){throw Math.floor(F)!==F?(le(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):b<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${b}`,F)}const Le=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Le,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function nt(F,b){b=b||1/0;let S;const M=F.length;let H=null;const z=[];for(let ne=0;ne<M;++ne){if(S=F.charCodeAt(ne),S>55295&&S<57344){if(!H){if(S>56319){(b-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===M){(b-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(b-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(b-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((b-=1)<0)break;z.push(S)}else if(S<2048){if((b-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((b-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((b-=4)<0)break;z.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return z}function Ze(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function Ne(F,b){let S,M,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),M=S>>8,H=S%256,z.push(H),z.push(M);return z}function Ue(F){return t.toByteArray(te(F))}function ft(F,b,S,M){let H;for(H=0;H<M&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function at(F,b){return F instanceof b||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===b.name}function Ot(F){return F!==F}const Rt=function(){const F="0123456789abcdef",b=new Array(256);for(let S=0;S<16;++S){const M=S*16;for(let H=0;H<16;++H)b[M+H]=F[S]+F[H]}return b}();function ot(F){return typeof BigInt>"u"?Jt:F}function Jt(){throw new Error("BigInt not supported")}})(ca);const yr=ca.Buffer;function we(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Z.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const da=we.prototype,pa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pa[e]={value:e}}),Object.defineProperties(we,pa),Object.defineProperty(da,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(da);return Z.toFlatObject(e,a,function(f){return f!==Error.prototype},u=>u!=="isAxiosError"),we.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var $h=null;function ii(e){return Z.isPlainObject(e)||Z.isArray(e)}function ga(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function ya(e,t,r){return e?e.concat(t).map(function(o,i){return o=ga(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function qh(e){return Z.isArray(e)&&!e.some(ii)}const Hh=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function fn(e,t,r){if(!Z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,x){return!Z.isUndefined(x[E])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(Z.isDate(m))return m.toISOString();if(!f&&Z.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(m)||Z.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):yr.from(m):m}function s(m,E,x){let p=m;if(m&&!x&&typeof m=="object"){if(Z.endsWith(E,"{}"))E=n?E:E.slice(0,-2),m=JSON.stringify(m);else if(Z.isArray(m)&&qh(m)||(Z.isFileList(m)||Z.endsWith(E,"[]"))&&(p=Z.toArray(m)))return E=ga(E),p.forEach(function(g,y){!(Z.isUndefined(g)||g===null)&&t.append(a===!0?ya([E],y,i):a===null?E:E+"[]",l(g))}),!1}return ii(m)?!0:(t.append(ya(x,E,i),l(m)),!1)}const c=[],d=Object.assign(Hh,{defaultVisitor:s,convertValue:l,isVisitable:ii});function T(m,E){if(!Z.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+E.join("."));c.push(m),Z.forEach(m,function(p,h){(!(Z.isUndefined(p)||p===null)&&o.call(t,p,Z.isString(h)?h.trim():h,E,d))===!0&&T(p,E?E.concat(h):[h])}),c.pop()}}if(!Z.isObject(e))throw new TypeError("data must be an object");return T(e),t}function ma(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function oi(e,t){this._pairs=[],e&&fn(e,this,t)}const ba=oi.prototype;ba.append=function(t,r){this._pairs.push([t,r])},ba.toString=function(t){const r=t?function(n){return t.call(this,n,ma)}:ma;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Vh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function wa(e,t,r){if(!t)return e;const n=r&&r.encode||Vh;Z.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=Z.isURLSearchParams(t)?t.toString():new oi(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class va{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(n){n!==null&&t(n)})}}var Ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wh=typeof URLSearchParams<"u"?URLSearchParams:oi,Gh=typeof FormData<"u"?FormData:null,Kh=typeof Blob<"u"?Blob:null,zh={isBrowser:!0,classes:{URLSearchParams:Wh,FormData:Gh,Blob:Kh},protocols:["http","https","file","blob","url","data"]};const si=typeof window<"u"&&typeof document<"u",ai=typeof navigator=="object"&&navigator||void 0,Xh=si&&(!ai||["ReactNative","NativeScript","NS"].indexOf(ai.product)<0),Yh=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Jh=si&&window.location.href||"http://localhost";var Zh=Object.freeze({__proto__:null,hasBrowserEnv:si,hasStandardBrowserEnv:Xh,hasStandardBrowserWebWorkerEnv:Yh,navigator:ai,origin:Jh}),ut={...Zh,...zh};function Qh(e,t){return fn(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ut.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ed(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function td(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function xa(e){function t(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const u=Number.isFinite(+a),f=i>=r.length;return a=!a&&Z.isArray(o)?o.length:a,f?(Z.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!Z.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&Z.isArray(o[a])&&(o[a]=td(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(ed(n),o,r,0)}),r}return null}function rd(e,t,r){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Br={transitional:Ea,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=Z.isObject(t);if(i&&Z.isHTMLForm(t)&&(t=new FormData(t)),Z.isFormData(t))return o?JSON.stringify(xa(t)):t;if(Z.isArrayBuffer(t)||Z.isBuffer(t)||Z.isStream(t)||Z.isFile(t)||Z.isBlob(t)||Z.isReadableStream(t))return t;if(Z.isArrayBufferView(t))return t.buffer;if(Z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Qh(t,this.formSerializer).toString();if((u=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return fn(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),rd(t)):t}],transformResponse:[function(t){const r=this.transitional||Br.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(t)||Z.isReadableStream(t))return t;if(t&&Z.isString(t)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(u){if(a)throw u.name==="SyntaxError"?we.from(u,we.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],e=>{Br.headers[e]={}});const nd=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var id=e=>{const t={};let r,n,o;return e&&e.split(`
7
7
  `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&nd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Aa=Symbol("internals");function Lr(e){return e&&String(e).trim().toLowerCase()}function cn(e){return e===!1||e==null?e:Z.isArray(e)?e.map(cn):String(e)}function od(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const sd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ui(e,t,r,n,o){if(Z.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!Z.isString(t)){if(Z.isString(n))return t.indexOf(n)!==-1;if(Z.isRegExp(n))return n.test(t)}}function ad(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ud(e,t){const r=Z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,a){return this[n].call(this,t,o,i,a)},configurable:!0})})}let yt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,f,l){const s=Lr(f);if(!s)throw new Error("header name must be a non-empty string");const c=Z.findKey(o,s);(!c||o[c]===void 0||l===!0||l===void 0&&o[c]!==!1)&&(o[c||f]=cn(u))}const a=(u,f)=>Z.forEach(u,(l,s)=>i(l,s,f));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Z.isString(t)&&(t=t.trim())&&!sd(t))a(id(t),r);else if(Z.isHeaders(t))for(const[u,f]of t.entries())i(f,u,n);else t!=null&&i(r,t,n);return this}get(t,r){if(t=Lr(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return od(o);if(Z.isFunction(r))return r.call(this,o,n);if(Z.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Lr(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ui(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=Lr(a),a){const u=Z.findKey(n,a);u&&(!r||ui(n,n[u],u,r))&&(delete n[u],o=!0)}}return Z.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||ui(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return Z.forEach(this,(o,i)=>{const a=Z.findKey(n,i);if(a){r[a]=cn(o),delete r[i];return}const u=t?ad(i):String(i).trim();u!==i&&delete r[i],r[u]=cn(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Z.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&Z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
8
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ud(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function li(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ta(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function Sa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ld(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),s=n[i];a||(a=l),r[o]=f,n[o]=l;let c=i,d=0;for(;c!==o;)d+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=s&&l-s;return T?Math.round(d*1e3/T):void 0}}function cd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),c=s-r;c>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-c)))},()=>o&&a(o)]}const hn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return cd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,f=a-n,l=o(f),s=a<=u;n=a;const c={loaded:a,total:u,progress:u?a/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(c)},r)},_a=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oa=e=>(...t)=>Z.asap(()=>e(...t));var hd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,dd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!pd(t);return e&&n||r==!1?gd(e,t):t}const Ra=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,c,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,c,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,c,d)}else return n(l,s,c,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,c){if(c in t)return n(l,s);if(c in e)return n(void 0,l)}const f={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,c)=>o(Ra(l),Ra(s),c,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const c=f[s]||o,d=c(e[s],t[s],s);Z.isUndefined(d)&&c!==u||(r[s]=d)}),r}var Ia=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=wa(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[l,...s]=f?f.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&hd(t.url))){const l=o&&i&&dd.read(i);l&&a.set(o,l)}return t},yd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:l}=o,s,c,d,T,m;function E(){T&&T(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function p(){if(!x)return;const g=yt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:g,config:e,request:x};Sa(function(P){r(P),E()},function(P){n(P),E()},w),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(n(new we("Request aborted",we.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ea;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,x)),x=null},i===void 0&&a.setContentType(null),"setRequestHeader"in x&&Z.forEach(a.toJSON(),function(y,w){x.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),l&&([d,m]=hn(l,!0),x.addEventListener("progress",d)),f&&x.upload&&([c,T]=hn(f),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(s=g=>{x&&(n(!g||g.type?new mr(null,e,x):g),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=ld(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}x.send(i||null)})};const md=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>Z.asap(u),f}},bd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},wd=async function*(e,t){for await(const r of vd(e))yield*bd(r,t)},vd=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Pa=(e,t,r,n)=>{const o=wd(e,t);let i=0,a,u=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:l,value:s}=await o.next();if(l){u(),f.close();return}let c=s.byteLength;if(r){let d=i+=c;r(d)}f.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},dn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fa=dn&&typeof ReadableStream=="function",Ed=dn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ca=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xd=Fa&&Ca(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=64*1024,fi=Fa&&Ca(()=>Z.isReadableStream(new Response("").body)),pn={stream:fi&&(e=>e.body)};dn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pn[t]&&(pn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Ad=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await Ed(e)).byteLength},Td=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Ad(t)};var Sd=dn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:s,withCredentials:c="same-origin",fetchOptions:d}=Ia(e);l=l?(l+"").toLowerCase():"text";let T=md([o,i&&i.toAbortSignal()],a),m;const E=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let x;try{if(f&&xd&&r!=="get"&&r!=="head"&&(x=await Td(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),A;if(Z.isFormData(n)&&(A=w.headers.get("content-type"))&&s.setContentType(A),w.body){const[P,I]=_a(x,hn(Oa(f)));n=Pa(w.body,Ba,P,I)}}Z.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:T,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?c:void 0});let h=await fetch(m);const g=fi&&(l==="stream"||l==="response");if(fi&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const A=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&_a(A,hn(Oa(u),!0))||[];h=new Response(Pa(h.body,Ba,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await pn[Z.findKey(pn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,A)=>{Sa(w,A,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const ci={http:$h,xhr:yd,fetch:Sd};Z.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const La=e=>`- ${e}`,_d=e=>Z.isFunction(e)||e===null||e===!1;var Ua={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!_d(r)&&(n=ci[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
8
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Aa]=this[Aa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=Lr(a);n[u]||(ud(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};yt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(yt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(yt);function li(e,t){const r=this||Br,n=t||r,o=yt.from(n.headers);let i=n.data;return Z.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ta(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(mr,we,{__CANCEL__:!0});function Sa(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new we("Request failed with status code "+r.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function ld(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fd(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),s=n[i];a||(a=l),r[o]=f,n[o]=l;let c=i,d=0;for(;c!==o;)d+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const T=s&&l-s;return T?Math.round(d*1e3/T):void 0}}function cd(e,t){let r=0,n=1e3/t,o,i;const a=(l,s=Date.now())=>{r=s,o=null,i&&(clearTimeout(i),i=null),e.apply(null,l)};return[(...l)=>{const s=Date.now(),c=s-r;c>=n?a(l,s):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-c)))},()=>o&&a(o)]}const hn=(e,t,r=3)=>{let n=0;const o=fd(50,250);return cd(i=>{const a=i.loaded,u=i.lengthComputable?i.total:void 0,f=a-n,l=o(f),s=a<=u;n=a;const c={loaded:a,total:u,progress:u?a/u:void 0,bytes:f,rate:l||void 0,estimated:l&&u&&s?(u-a)/l:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(c)},r)},_a=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Oa=e=>(...t)=>Z.asap(()=>e(...t));var hd=ut.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ut.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,dd=ut.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];Z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Z.isString(n)&&a.push("path="+n),Z.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function gd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Na(e,t,r){let n=!pd(t);return e&&(n||r==!1)?gd(e,t):t}const Ra=e=>e instanceof yt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,c,d){return Z.isPlainObject(l)&&Z.isPlainObject(s)?Z.merge.call({caseless:d},l,s):Z.isPlainObject(s)?Z.merge({},s):Z.isArray(s)?s.slice():s}function o(l,s,c,d){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l,c,d)}else return n(l,s,c,d)}function i(l,s){if(!Z.isUndefined(s))return n(void 0,s)}function a(l,s){if(Z.isUndefined(s)){if(!Z.isUndefined(l))return n(void 0,l)}else return n(void 0,s)}function u(l,s,c){if(c in t)return n(l,s);if(c in e)return n(void 0,l)}const f={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:(l,s,c)=>o(Ra(l),Ra(s),c,!0)};return Z.forEach(Object.keys(Object.assign({},e,t)),function(s){const c=f[s]||o,d=c(e[s],t[s],s);Z.isUndefined(d)&&c!==u||(r[s]=d)}),r}var Ia=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=yt.from(a),t.url=wa(Na(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let f;if(Z.isFormData(r)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((f=a.getContentType())!==!1){const[l,...s]=f?f.split(";").map(c=>c.trim()).filter(Boolean):[];a.setContentType([l||"multipart/form-data",...s].join("; "))}}if(ut.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&hd(t.url))){const l=o&&i&&dd.read(i);l&&a.set(o,l)}return t},yd=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ia(e);let i=o.data;const a=yt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:l}=o,s,c,d,T,m;function E(){T&&T(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function p(){if(!x)return;const g=yt.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),w={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:g,config:e,request:x};Sa(function(P){r(P),E()},function(P){n(P),E()},w),x=null}"onloadend"in x?x.onloadend=p:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(p)},x.onabort=function(){x&&(n(new we("Request aborted",we.ECONNABORTED,e,x)),x=null)},x.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,x)),x=null},x.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||Ea;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,w.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,x)),x=null},i===void 0&&a.setContentType(null),"setRequestHeader"in x&&Z.forEach(a.toJSON(),function(y,w){x.setRequestHeader(w,y)}),Z.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),u&&u!=="json"&&(x.responseType=o.responseType),l&&([d,m]=hn(l,!0),x.addEventListener("progress",d)),f&&x.upload&&([c,T]=hn(f),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(s=g=>{x&&(n(!g||g.type?new mr(null,e,x):g),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const h=ld(o.url);if(h&&ut.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}x.send(i||null)})};const md=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,u();const s=l instanceof Error?l:this.reason;n.abort(s instanceof we?s:new mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>Z.asap(u),f}},bd=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},wd=async function*(e,t){for await(const r of vd(e))yield*bd(r,t)},vd=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Pa=(e,t,r,n)=>{const o=wd(e,t);let i=0,a,u=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({async pull(f){try{const{done:l,value:s}=await o.next();if(l){u(),f.close();return}let c=s.byteLength;if(r){let d=i+=c;r(d)}f.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},dn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Fa=dn&&typeof ReadableStream=="function",Ed=dn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ca=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xd=Fa&&Ca(()=>{let e=!1;const t=new Request(ut.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ba=64*1024,fi=Fa&&Ca(()=>Z.isReadableStream(new Response("").body)),pn={stream:fi&&(e=>e.body)};dn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!pn[t]&&(pn[t]=Z.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,n)})})})(new Response);const Ad=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(ut.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e=e+""),Z.isString(e))return(await Ed(e)).byteLength},Td=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Ad(t)};var Sd=dn&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:i,timeout:a,onDownloadProgress:u,onUploadProgress:f,responseType:l,headers:s,withCredentials:c="same-origin",fetchOptions:d}=Ia(e);l=l?(l+"").toLowerCase():"text";let T=md([o,i&&i.toAbortSignal()],a),m;const E=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let x;try{if(f&&xd&&r!=="get"&&r!=="head"&&(x=await Td(s,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),A;if(Z.isFormData(n)&&(A=w.headers.get("content-type"))&&s.setContentType(A),w.body){const[P,I]=_a(x,hn(Oa(f)));n=Pa(w.body,Ba,P,I)}}Z.isString(c)||(c=c?"include":"omit");const p="credentials"in Request.prototype;m=new Request(t,{...d,signal:T,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:p?c:void 0});let h=await fetch(m);const g=fi&&(l==="stream"||l==="response");if(fi&&(u||g&&E)){const w={};["status","statusText","headers"].forEach(O=>{w[O]=h[O]});const A=Z.toFiniteNumber(h.headers.get("content-length")),[P,I]=u&&_a(A,hn(Oa(u),!0))||[];h=new Response(Pa(h.body,Ba,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await pn[Z.findKey(pn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,A)=>{Sa(w,A,{data:y,headers:yt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:p.cause||p}):we.from(p,p&&p.code,e,m)}});const ci={http:$h,xhr:yd,fetch:Sd};Z.forEach(ci,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const La=e=>`- ${e}`,_d=e=>Z.isFunction(e)||e===null||e===!1;var Ua={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let i=0;i<t;i++){r=e[i];let a;if(n=r,!_d(r)&&(n=ci[(a=String(r)).toLowerCase()],n===void 0))throw new we(`Unknown adapter '${a}'`);if(n)break;o[a||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,f])=>`adapter ${u} `+(f===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
9
9
  `+i.map(La).join(`
10
- `):" "+La(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ci};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function ja(e){return hi(e),e.headers=yt.from(e.headers),e.data=li.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ua.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return hi(e),n.data=li.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ta(n)||(hi(e),n&&n.response&&(n.response.data=li.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const Ma="1.8.3",gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ka={};gn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ma+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!ka[a]&&(ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},gn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Od(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],f=u===void 0||a(u,i,e);if(f!==!0)throw new we("option "+i+" must be "+f,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var yn={assertOptions:Od,validators:gn};const Ct=yn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
10
+ `):" "+La(i[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ci};function hi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function ja(e){return hi(e),e.headers=yt.from(e.headers),e.data=li.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ua.getAdapter(e.adapter||Br.adapter)(e).then(function(n){return hi(e),n.data=li.call(e,e.transformResponse,n),n.headers=yt.from(n.headers),n},function(n){return Ta(n)||(hi(e),n&&n.response&&(n.response.data=li.call(e,e.transformResponse,n.response),n.response.headers=yt.from(n.response.headers))),Promise.reject(n)})}const Ma="1.8.4",gn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ka={};gn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ma+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,u)=>{if(t===!1)throw new we(o(a," has been removed"+(r?" in "+r:"")),we.ERR_DEPRECATED);return r&&!ka[a]&&(ka[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,u):!0}},gn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Od(e,t,r){if(typeof e!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=t[i];if(a){const u=e[i],f=u===void 0||a(u,i,e);if(f!==!0)throw new we("option "+i+" must be "+f,we.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new we("Unknown option "+i,we.ERR_BAD_OPTION)}}var yn={assertOptions:Od,validators:gn};const Ct=yn.validators;let nr=class{constructor(t){this.defaults=t,this.interceptors={request:new va,response:new va}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
11
11
  `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&yn.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),o!=null&&(Z.isFunction(o)?r.paramsSerializer={serialize:o}:yn.assertOptions(o,{encode:Ct.function,serialize:Ct.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),yn.assertOptions(r,{baseUrl:Ct.spelling("baseURL"),withXsrfToken:Ct.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&Z.merge(i.common,i[r.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=yt.concat(a,i);const u=[];let f=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(f=f&&E.synchronous,u.unshift(E.fulfilled,E.rejected))});const l=[];this.interceptors.response.forEach(function(E){l.push(E.fulfilled,E.rejected)});let s,c=0,d;if(!f){const m=[ja.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),d=m.length,s=Promise.resolve(r);c<d;)s=s.then(m[c++],m[c++]);return s}d=u.length;let T=r;for(c=0;c<d;){const m=u[c++],E=u[c++];try{T=m(T)}catch(x){E.call(this,x);break}}try{s=ja.call(this,T)}catch(m){return Promise.reject(m)}for(c=0,d=l.length;c<d;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Na(t.baseURL,t.url,t.allowAbsoluteUrls);return wa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),Z.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let Nd=class Bc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bc(function(o){t=o}),cancel:t}}};function Rd(e){return function(r){return e.apply(null,r)}}function Id(e){return Z.isObject(e)&&e.isAxiosError===!0}const di={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(di).forEach(([e,t])=>{di[t]=e});function Da(e){const t=new nr(e),r=na(nr.prototype.request,t);return Z.extend(r,nr.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Da(rr(e,o))},r}const Ye=Da(Br);Ye.Axios=nr,Ye.CanceledError=mr,Ye.CancelToken=Nd,Ye.isCancel=Ta,Ye.VERSION=Ma,Ye.toFormData=fn,Ye.AxiosError=we,Ye.Cancel=Ye.CanceledError,Ye.all=function(t){return Promise.all(t)},Ye.spread=Rd,Ye.isAxiosError=Id,Ye.mergeConfig=rr,Ye.AxiosHeaders=yt,Ye.formToJSON=e=>xa(Z.isHTMLForm(e)?new FormData(e):e),Ye.getAdapter=Ua.getAdapter,Ye.HttpStatusCode=di,Ye.default=Ye;const{Axios:c1,AxiosError:h1,CanceledError:d1,isCancel:p1,CancelToken:g1,VERSION:y1,all:m1,Cancel:b1,isAxiosError:w1,spread:v1,toFormData:E1,AxiosHeaders:x1,HttpStatusCode:A1,formToJSON:T1,getAdapter:S1,mergeConfig:_1}=Ye,mn=e=>encodeURIComponent(e).split("%2F").join("/"),Pd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Fd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Cd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(Pd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Bd=(e,t)=>{const{prefix:r,pathname:n}=e,{parts:o,hasLeading:i,hasTrailing:a}=n,{leadingSlash:u,trailingSlash:f}=t,l=u===!0||u==="keep"&&i,s=f===!0||f==="keep"&&a;let c=r;return o.length>0&&((c||l)&&(c+="/"),c+=o.join("/")),s&&(c+="/"),!c&&l&&(c+="/"),c},_e=(...e)=>{const t=e[e.length-1];let r;t&&typeof t=="object"&&(r=t,e=e.slice(0,-1)),r={leadingSlash:!0,trailingSlash:!1,...r},e=Fd(e);const n=Cd(e);return Bd(n,r)};class $a extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Ld extends $a{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Ud(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function jd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}class Ge{}ye(Ge,"Shared","S"),ye(Ge,"Shareable","R"),ye(Ge,"Mounted","M"),ye(Ge,"Deletable","D"),ye(Ge,"Renameable","N"),ye(Ge,"Moveable","V"),ye(Ge,"Updateable","NV"),ye(Ge,"FileUpdateable","W"),ye(Ge,"FolderCreateable","CK"),ye(Ge,"Deny","Z"),ye(Ge,"SecureView","X");var kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const bn=e=>({value:e,type:null}),Md=e=>bn(e),Fe=e=>bn(e),pi=e=>bn(e),kd=e=>bn(e),Dd={Permissions:Fe("permissions"),IsFavorite:pi("favorite"),FileId:Fe("fileid"),FileParent:Fe("file-parent"),Name:Fe("name"),OwnerId:Fe("owner-id"),OwnerDisplayName:Fe("owner-display-name"),PrivateLink:Fe("privatelink"),ContentLength:pi("getcontentlength"),ContentSize:pi("size"),LastModifiedDate:Fe("getlastmodified"),Tags:Md("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Fe("getetag"),MimeType:Fe("getcontenttype"),ResourceType:kd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Fe("owner"),LockTime:Fe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Fe("downloadURL"),Highlights:Fe("highlights"),MetaPathForUser:Fe("meta-path-for-user"),RemoteItemId:Fe("remote-item-id"),ShareId:Fe("shareid"),ShareRoot:Fe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Fe("share-permissions"),TrashbinOriginalFilename:Fe("trashbin-original-filename"),TrashbinOriginalLocation:Fe("trashbin-original-location"),TrashbinDeletedDate:Fe("trashbin-delete-datetime"),PublicLinkItemType:Fe("public-link-item-type"),PublicLinkPermission:Fe("public-link-permission"),PublicLinkExpiration:Fe("public-link-expiration"),PublicLinkShareDate:Fe("public-link-share-datetime"),PublicLinkShareOwner:Fe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Dd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var $d=typeof Mt=="object"&&Mt&&Mt.Object===Object&&Mt,qd=typeof self=="object"&&self&&self.Object===Object&&self,gi=$d||qd||Function("return this")(),br=gi.Symbol,qa=Object.prototype,Hd=qa.hasOwnProperty,Vd=qa.toString,Ur=br?br.toStringTag:void 0;function Wd(e){var t=Hd.call(e,Ur),r=e[Ur];try{e[Ur]=void 0;var n=!0}catch{}var o=Vd.call(e);return n&&(t?e[Ur]=r:delete e[Ur]),o}var Gd=Object.prototype,Kd=Gd.toString;function zd(e){return Kd.call(e)}var Xd="[object Null]",Yd="[object Undefined]",Ha=br?br.toStringTag:void 0;function Va(e){return e==null?e===void 0?Yd:Xd:Ha&&Ha in Object(e)?Wd(e):zd(e)}function Jd(e){return e!=null&&typeof e=="object"}var Zd="[object Symbol]";function yi(e){return typeof e=="symbol"||Jd(e)&&Va(e)==Zd}function Qd(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var mi=Array.isArray,Wa=br?br.prototype:void 0,Ga=Wa?Wa.toString:void 0;function Ka(e){if(typeof e=="string")return e;if(mi(e))return Qd(e,Ka)+"";if(yi(e))return Ga?Ga.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function za(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ep="[object AsyncFunction]",tp="[object Function]",rp="[object GeneratorFunction]",np="[object Proxy]";function ip(e){if(!za(e))return!1;var t=Va(e);return t==tp||t==rp||t==ep||t==np}var bi=gi["__core-js_shared__"],Xa=function(){var e=/[^.]+$/.exec(bi&&bi.keys&&bi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function op(e){return!!Xa&&Xa in e}var sp=Function.prototype,ap=sp.toString;function up(e){if(e!=null){try{return ap.call(e)}catch{}try{return e+""}catch{}}return""}var lp=/[\\^$.*+?()[\]{}|]/g,fp=/^\[object .+?Constructor\]$/,cp=Function.prototype,hp=Object.prototype,dp=cp.toString,pp=hp.hasOwnProperty,gp=RegExp("^"+dp.call(pp).replace(lp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yp(e){if(!za(e)||op(e))return!1;var t=ip(e)?gp:fp;return t.test(up(e))}function mp(e,t){return e==null?void 0:e[t]}function Ya(e,t){var r=mp(e,t);return yp(r)?r:void 0}function bp(e,t){return e===t||e!==e&&t!==t}var wp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vp=/^\w*$/;function Ep(e,t){if(mi(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||yi(e)?!0:vp.test(e)||!wp.test(e)||t!=null&&e in Object(t)}var jr=Ya(Object,"create");function xp(){this.__data__=jr?jr(null):{},this.size=0}function Ap(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Tp="__lodash_hash_undefined__",Sp=Object.prototype,_p=Sp.hasOwnProperty;function Op(e){var t=this.__data__;if(jr){var r=t[e];return r===Tp?void 0:r}return _p.call(t,e)?t[e]:void 0}var Np=Object.prototype,Rp=Np.hasOwnProperty;function Ip(e){var t=this.__data__;return jr?t[e]!==void 0:Rp.call(t,e)}var Pp="__lodash_hash_undefined__";function Fp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=jr&&t===void 0?Pp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=xp,or.prototype.delete=Ap,or.prototype.get=Op,or.prototype.has=Ip,or.prototype.set=Fp;function Cp(){this.__data__=[],this.size=0}function wn(e,t){for(var r=e.length;r--;)if(bp(e[r][0],t))return r;return-1}var Bp=Array.prototype,Lp=Bp.splice;function Up(e){var t=this.__data__,r=wn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lp.call(t,r,1),--this.size,!0}function jp(e){var t=this.__data__,r=wn(t,e);return r<0?void 0:t[r][1]}function Mp(e){return wn(this.__data__,e)>-1}function kp(e,t){var r=this.__data__,n=wn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Cp,wr.prototype.delete=Up,wr.prototype.get=jp,wr.prototype.has=Mp,wr.prototype.set=kp;var Dp=Ya(gi,"Map");function $p(){this.size=0,this.__data__={hash:new or,map:new(Dp||wr),string:new or}}function qp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vn(e,t){var r=e.__data__;return qp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Hp(e){var t=vn(this,e).delete(e);return this.size-=t?1:0,t}function Vp(e){return vn(this,e).get(e)}function Wp(e){return vn(this,e).has(e)}function Gp(e,t){var r=vn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=$p,sr.prototype.delete=Hp,sr.prototype.get=Vp,sr.prototype.has=Wp,sr.prototype.set=Gp;var Kp="Expected a function";function wi(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Kp);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(wi.Cache||sr),r}wi.Cache=sr;var zp=500;function Xp(e){var t=wi(e,function(n){return r.size===zp&&r.clear(),n}),r=t.cache;return t}var Yp=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Jp=/\\(\\)?/g,Zp=Xp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yp,function(r,n,o,i){t.push(o?i.replace(Jp,"$1"):n||r)}),t});function Mr(e){return e==null?"":Ka(e)}function Qp(e,t){return mi(e)?e:Ep(e,t)?[e]:Zp(Mr(e))}function eg(e){if(typeof e=="string"||yi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tg(e,t){t=Qp(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[eg(t[r++])];return r&&r==n?e:void 0}function rg(e,t,r){var n=e==null?void 0:tg(e,t);return n===void 0?r:n}function ng(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}function ig(e,t,r){var n=e.length;return r=r===void 0?n:r,ng(e,t,r)}var og="\\ud800-\\udfff",sg="\\u0300-\\u036f",ag="\\ufe20-\\ufe2f",ug="\\u20d0-\\u20ff",lg=sg+ag+ug,fg="\\ufe0e\\ufe0f",cg="\\u200d",hg=RegExp("["+cg+og+lg+fg+"]");function Ja(e){return hg.test(e)}function dg(e){return e.split("")}var Za="\\ud800-\\udfff",pg="\\u0300-\\u036f",gg="\\ufe20-\\ufe2f",yg="\\u20d0-\\u20ff",mg=pg+gg+yg,bg="\\ufe0e\\ufe0f",wg="["+Za+"]",vi="["+mg+"]",Ei="\\ud83c[\\udffb-\\udfff]",vg="(?:"+vi+"|"+Ei+")",Qa="[^"+Za+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",tu="[\\ud800-\\udbff][\\udc00-\\udfff]",Eg="\\u200d",ru=vg+"?",nu="["+bg+"]?",xg="(?:"+Eg+"(?:"+[Qa,eu,tu].join("|")+")"+nu+ru+")*",Ag=nu+ru+xg,Tg="(?:"+[Qa+vi+"?",vi,eu,tu,wg].join("|")+")",Sg=RegExp(Ei+"(?="+Ei+")|"+Tg+Ag,"g");function _g(e){return e.match(Sg)||[]}function Og(e){return Ja(e)?_g(e):dg(e)}function Ng(e){return function(t){t=Mr(t);var r=Ja(t)?Og(t):void 0,n=r?r[0]:t.charAt(0),o=r?ig(r,1).join(""):t.slice(1);return n[e]()+o}}var Rg=Ng("toUpperCase");function Ig(e){return Rg(Mr(e).toLowerCase())}function Pg(e,t,r,n){for(var o=-1,i=e==null?0:e.length;++o<i;)r=t(r,e[o],o,e);return r}function Fg(e){return function(t){return e==null?void 0:e[t]}}var Cg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Bg=Fg(Cg),Lg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ug="\\u0300-\\u036f",jg="\\ufe20-\\ufe2f",Mg="\\u20d0-\\u20ff",kg=Ug+jg+Mg,Dg="["+kg+"]",$g=RegExp(Dg,"g");function qg(e){return e=Mr(e),e&&e.replace(Lg,Bg).replace($g,"")}var Hg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Vg(e){return e.match(Hg)||[]}var Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Gg(e){return Wg.test(e)}var iu="\\ud800-\\udfff",Kg="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Yg=Kg+zg+Xg,ou="\\u2700-\\u27bf",su="a-z\\xdf-\\xf6\\xf8-\\xff",Jg="\\xac\\xb1\\xd7\\xf7",Zg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Qg="\\u2000-\\u206f",e0=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",au="A-Z\\xc0-\\xd6\\xd8-\\xde",t0="\\ufe0e\\ufe0f",uu=Jg+Zg+Qg+e0,lu="['’]",fu="["+uu+"]",r0="["+Yg+"]",cu="\\d+",n0="["+ou+"]",hu="["+su+"]",du="[^"+iu+uu+cu+ou+su+au+"]",i0="\\ud83c[\\udffb-\\udfff]",o0="(?:"+r0+"|"+i0+")",s0="[^"+iu+"]",pu="(?:\\ud83c[\\udde6-\\uddff]){2}",gu="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+au+"]",a0="\\u200d",yu="(?:"+hu+"|"+du+")",u0="(?:"+vr+"|"+du+")",mu="(?:"+lu+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+lu+"(?:D|LL|M|RE|S|T|VE))?",wu=o0+"?",vu="["+t0+"]?",l0="(?:"+a0+"(?:"+[s0,pu,gu].join("|")+")"+vu+wu+")*",f0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",h0=vu+wu+l0,d0="(?:"+[n0,pu,gu].join("|")+")"+h0,p0=RegExp([vr+"?"+hu+"+"+mu+"(?="+[fu,vr,"$"].join("|")+")",u0+"+"+bu+"(?="+[fu,vr+yu,"$"].join("|")+")",vr+"?"+yu+"+"+mu,vr+"+"+bu,c0,f0,cu,d0].join("|"),"g");function g0(e){return e.match(p0)||[]}function y0(e,t,r){return e=Mr(e),t=t,t===void 0?Gg(e)?g0(e):Vg(e):e.match(t)||[]}var m0="['’]",b0=RegExp(m0,"g");function w0(e){return function(t){return Pg(y0(qg(t).replace(b0,"")),e,"")}}var v0=w0(function(e,t,r){return t=t.toLowerCase(),e+(r?Ig(t):t)});const E0={complex:["tar.bz2","tar.gz","tar.xz"]},xi=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Eu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",x0=e=>Eu(e,0),xu=e=>Eu(e,1),Au=e=>{const t=e.name;if(e.type==="directory"||e.isFolder)return"";const r=t.split(".");if(r.length>2)for(let n=0;n<r.length;n++){const o=r.slice(n,r.length).join(".");if(E0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},En=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[v0(r)]=e[r]}),t};function Er(e,t=[]){var m,E,x;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||Qn.basename(e.filename),n=e.props[ae.FileId],o=e.type==="directory";let i;e.filename.startsWith("/files")||e.filename.startsWith("/space")?i=e.filename.split("/").slice(3).join("/"):i=e.filename,i.startsWith("/")||(i=`/${i}`);const a=Au({...e,name:r}),u=e.props[ae.LockDiscovery];let f,l,s;u&&(f=u[ae.ActiveLock],l=f[ae.LockOwner],s=f[ae.LockTime]);let c=[];e.props[ae.ShareTypes]&&(c=e.props[ae.ShareTypes]["share-type"],Array.isArray(c)||(c=[c]));const d={};for(const p of t||[]){const h=p.split(":").pop();e.props[h]&&(d[p]=e.props[h])}const T={id:n,fileId:n,storageId:x0(n),parentFolderId:e.props[ae.FileParent],mimeType:e.props[ae.MimeType],name:r,extension:o?"":a,path:i,webDavPath:e.filename,type:o?"folder":e.type,isFolder:o,locked:!!f,lockOwner:l,lockTime:s,processing:e.processing||!1,mdate:e.props[ae.LastModifiedDate],size:o?((E=e.props[ae.ContentSize])==null?void 0:E.toString())||"0":((x=e.props[ae.ContentLength])==null?void 0:x.toString())||"0",indicators:[],permissions:e.props[ae.Permissions]||"",starred:e.props[ae.IsFavorite]!==0,etag:e.props[ae.ETag],shareTypes:c,privateLink:e.props[ae.PrivateLink],downloadURL:e.props[ae.DownloadURL],remoteItemId:e.props[ae.RemoteItemId],remoteItemPath:e.props[ae.ShareRoot],owner:{id:e.props[ae.OwnerId],displayName:e.props[ae.OwnerDisplayName]},tags:(e.props[ae.Tags]||"").toString().split(",").filter(Boolean),audio:En(e.props[ae.Audio]),location:En(e.props[ae.Location]),image:En(e.props[ae.Image]),photo:En(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(Ge.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(Ge.Deletable)>=0},canRename:function(){return this.permissions.indexOf(Ge.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(Ge.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(Ge.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(Ge.Updateable)>=0||this.permissions.indexOf(Ge.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(Ge.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(Ge.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(Ge.Deny)>=0},getDomSelector:()=>xi(n)};return Object.defineProperty(T,"nodeId",{get(){return xu(this.id)}}),T}function A0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Au({name:r,type:e.type}),o=ra.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:ra.basename(r),extension:n,path:_e(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],indicators:[],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>xi(o)}}var bt=(e=>(e.createUpload="libre.graph/driveItem/upload/create",e.createPermissions="libre.graph/driveItem/permissions/create",e.createChildren="libre.graph/driveItem/children/create",e.readBasic="libre.graph/driveItem/basic/read",e.readPath="libre.graph/driveItem/path/read",e.readQuota="libre.graph/driveItem/quota/read",e.readContent="libre.graph/driveItem/content/read",e.readChildren="libre.graph/driveItem/children/read",e.readDeleted="libre.graph/driveItem/deleted/read",e.readPermissions="libre.graph/driveItem/permissions/read",e.readVersions="libre.graph/driveItem/versions/read",e.updatePath="libre.graph/driveItem/path/update",e.updateDeleted="libre.graph/driveItem/deleted/update",e.updatePermissions="libre.graph/driveItem/permissions/update",e.updateVersions="libre.graph/driveItem/versions/update",e.deleteStandard="libre.graph/driveItem/standard/delete",e.deleteDeleted="libre.graph/driveItem/deleted/delete",e.deletePermissions="libre.graph/driveItem/permissions/delete",e))(bt||{});const Tu=e=>(e==null?void 0:e.driveType)==="personal",xn=e=>(e==null?void 0:e.driveType)==="public";function T0(e,t){return _e("spaces",e,t,{leadingSlash:!0})}function Ai(e,t=""){return _e("spaces","trash-bin",e,t,{leadingSlash:!0})}function S0(e){var c,d,T,m,E,x;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(d=e.props)==null?void 0:d[ae.PublicLinkItemType],o=(T=e.props)==null?void 0:T[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(E=e.props)==null?void 0:E[ae.PublicLinkShareDate],u=(x=e.props)==null?void 0:x[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=jd(e.id)):(l=`public/${e.id}`,s=Ud(e.id)),Object.assign(_0({...e,driveType:"public",driveAlias:l,webDavPath:s},{}),{...r&&{fileId:r},...t&&{publicLinkPassword:t},...n&&{publicLinkItemType:n},...o&&{publicLinkPermission:parseInt(o)},...i&&{publicLinkExpiration:i},...a&&{publicLinkShareDate:a},...u&&{publicLinkShareOwner:u},publicLinkType:f})}function _0(e,t){var c,d,T,m,E,x;let r,n;e.special&&(r=e.special.find(p=>p.specialFolder.name==="image"),n=e.special.find(p=>p.specialFolder.name==="readme"),r&&(r.webDavUrl=decodeURI(r.webDavUrl)),n&&(n.webDavUrl=decodeURI(n.webDavUrl)));const o=((d=(c=e.root)==null?void 0:c.deleted)==null?void 0:d.state)==="trashed",i=_e(e.webDavPath||T0(e.id),{leadingSlash:!0}),a=_e(e.serverUrl,"remote.php/dav",i),u=_e(e.webDavTrashPath||Ai(e.id),{leadingSlash:!0}),f=_e(e.serverUrl,"remote.php/dav",u),l=(m=(T=e.root)==null?void 0:T.permissions)==null?void 0:m.reduce((p,h)=>{var g;return p[(h.grantedToV2.user||h.grantedToV2.group).id]={grantedTo:h.grantedToV2,permissions:O0(h,t),roleId:(g=h.roles)==null?void 0:g[0]},p},{}),s={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:i,webDavTrashPath:u,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((E=e.quota)==null?void 0:E.used)||0,indicators:[],tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(x=e.owner)==null?void 0:x.user,disabled:o,root:e.root,spaceQuota:e.quota,members:l||{},spaceImageData:r,spaceReadmeData:n,canUpload:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canRename:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canEditDescription:function({user:p,ability:h}={}){return h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canRestore:function({user:p,ability:h}={}){return this.disabled?h!=null&&h.can("update-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions):!1},canDisable:function({user:p,ability:h}={}){return this.disabled?!1:h!=null&&h.can("delete-all","Drive")?!0:vt(this,p).includes(bt.deletePermissions)},canShare:function({user:p}={}){return vt(this,p).includes(bt.createPermissions)},canEditImage:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canEditReadme:function({user:p}={}){return this.disabled?!1:vt(this,p).includes(bt.deletePermissions)},canRestoreFromTrashbin:function({user:p}={}){return vt(this,p).includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:p}={}){return vt(this,p).includes(bt.deletePermissions)},canListVersions:function({user:p}={}){return Tu(this)&&this.isOwner(p)?!0:vt(this,p).includes(bt.readVersions)},canCreate:function(){return!0},canEditTags:function(){return!1},isMounted:function(){return!0},isReceivedShare:function(){return!1},isShareRoot:function(){return["share","mountpoint","public"].includes(e.driveType)},canDeny:()=>!1,getDomSelector:()=>xi(e.id),getDriveAliasAndItem({path:p}){return _e(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return _e(a,p)},getWebDavTrashUrl({path:p}){return _e(f,p)},isMember(p){var h;return xn(this)?!1:this.isOwner(p)||this.members[p.id]?!0:(h=p.memberOf)==null?void 0:h.some(g=>!!this.members[g.id])},isOwner(p){var h;return(p==null?void 0:p.id)===((h=this.owner)==null?void 0:h.id)}};return Object.defineProperty(s,"nodeId",{get(){return xu(this.id)}}),s}function vt(e,t){var o;const r=[];if(!t)return r;const n=e.members[t.id];return n&&r.push(...n.permissions),(o=t.memberOf)==null||o.forEach(i=>{const a=e.members[i.id];a&&r.push(...a.permissions)}),[...new Set(r)]}function O0(e,t){var n;if(e["@libre.graph.permissions.actions"])return e["@libre.graph.permissions.actions"];const r=t[(n=e.roles)==null?void 0:n[0]];if(r){const o=r.rolePermissions.find(({condition:i})=>i==="exists @Resource.Root");return(o==null?void 0:o.allowedResourceActions)||[]}return[]}const N0=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),r.searchParams.append("format","json");const n=r.href;return{async getCapabilities(){const o=await t.get(n);return rg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ti={},An={exports:{}},Su;function Si(){if(Su)return An.exports;Su=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(w,A,P){return Function.prototype.apply.call(w,A,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:r=function(w){return Object.getOwnPropertyNames(w)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(w){return w!==w};function i(){i.init.call(this)}An.exports=i,An.exports.once=p,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||o(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(w){for(var A=[],P=1;P<arguments.length;P++)A.push(arguments[P]);var I=w==="error",O=this._events;if(O!==void 0)I=I&&O.error===void 0;else if(!I)return!1;if(I){var j;if(A.length>0&&(j=A[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=O[w];if(L===void 0)return!1;if(typeof L=="function")t(L,this,A);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,A);return!0};function l(y,w,A,P){var I,O,j;if(u(A),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",w,A.listener?A.listener:A),O=y._events),j=O[w]),j===void 0)j=O[w]=A,++y._eventsCount;else if(typeof j=="function"?j=O[w]=P?[A,j]:[j,A]:P?j.unshift(A):j.push(A),I=f(y),I>0&&j.length>I&&!j.warned){j.warned=!0;var G=new Error("Possible EventEmitter memory leak detected. "+j.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=w,G.count=j.length,n(G)}return y}i.prototype.addListener=function(w,A){return l(this,w,A,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(w,A){return l(this,w,A,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,w,A){var P={fired:!1,wrapFn:void 0,target:y,type:w,listener:A},I=s.bind(P);return I.listener=A,P.wrapFn=I,I}i.prototype.once=function(w,A){return u(A),this.on(w,c(this,w,A)),this},i.prototype.prependOnceListener=function(w,A){return u(A),this.prependListener(w,c(this,w,A)),this},i.prototype.removeListener=function(w,A){var P,I,O,j,G;if(u(A),I=this._events,I===void 0)return this;if(P=I[w],P===void 0)return this;if(P===A||P.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete I[w],I.removeListener&&this.emit("removeListener",w,P.listener||A));else if(typeof P!="function"){for(O=-1,j=P.length-1;j>=0;j--)if(P[j]===A||P[j].listener===A){G=P[j].listener,O=j;break}if(O<0)return this;O===0?P.shift():E(P,O),P.length===1&&(I[w]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",w,G||A)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(w){var A,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[w]),this;if(arguments.length===0){var O=Object.keys(P),j;for(I=0;I<O.length;++I)j=O[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=P[w],typeof A=="function")this.removeListener(w,A);else if(A!==void 0)for(I=A.length-1;I>=0;I--)this.removeListener(w,A[I]);return this};function d(y,w,A){var P=y._events;if(P===void 0)return[];var I=P[w];return I===void 0?[]:typeof I=="function"?A?[I.listener||I]:[I]:A?x(I):m(I,I.length)}i.prototype.listeners=function(w){return d(this,w,!0)},i.prototype.rawListeners=function(w){return d(this,w,!1)},i.listenerCount=function(y,w){return typeof y.listenerCount=="function"?y.listenerCount(w):T.call(y,w)},i.prototype.listenerCount=T;function T(y){var w=this._events;if(w!==void 0){var A=w[y];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,w){for(var A=new Array(w),P=0;P<w;++P)A[P]=y[P];return A}function E(y,w){for(;w+1<y.length;w++)y[w]=y[w+1];y.pop()}function x(y){for(var w=new Array(y.length),A=0;A<w.length;++A)w[A]=y[A].listener||y[A];return w}function p(y,w){return new Promise(function(A,P){function I(j){y.removeListener(w,O),P(j)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",I),A([].slice.call(arguments))}g(y,w,O,{once:!0}),w!=="error"&&h(y,I,{once:!0})})}function h(y,w,A){typeof y.on=="function"&&g(y,"error",w,A)}function g(y,w,A,P){if(typeof y.on=="function")P.once?y.once(w,A):y.on(w,A);else if(typeof y.addEventListener=="function")y.addEventListener(w,function I(O){P.once&&y.removeEventListener(w,I),A(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return An.exports}var Tn={exports:{}},_u;function ar(){return _u||(_u=1,typeof Object.create=="function"?Tn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Tn.exports}var _i,Ou;function Nu(){return Ou||(Ou=1,_i=Si().EventEmitter),_i}var Oi={},Ru;function Sn(){return Ru||(Ru=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=d,r.fromByteArray=E;for(var n=[],o=[],i=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,f=a.length;u<f;++u)n[u]=a[u],o[a.charCodeAt(u)]=u;o[45]=62,o[95]=63;function l(h){var g=h.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=h.indexOf("=");y===-1&&(y=g);var w=y===g?0:4-y%4;return[y,w]}function s(h){var g=l(h),y=g[0],w=g[1];return(y+w)*3/4-w}function c(h,g,y){return(g+y)*3/4-y}function d(h){var g,y=l(h),w=y[0],A=y[1],P=new i(c(h,w,A)),I=0,O=A>0?w-4:w,j;for(j=0;j<O;j+=4)g=o[h.charCodeAt(j)]<<18|o[h.charCodeAt(j+1)]<<12|o[h.charCodeAt(j+2)]<<6|o[h.charCodeAt(j+3)],P[I++]=g>>16&255,P[I++]=g>>8&255,P[I++]=g&255;return A===2&&(g=o[h.charCodeAt(j)]<<2|o[h.charCodeAt(j+1)]>>4,P[I++]=g&255),A===1&&(g=o[h.charCodeAt(j)]<<10|o[h.charCodeAt(j+1)]<<4|o[h.charCodeAt(j+2)]>>2,P[I++]=g>>8&255,P[I++]=g&255),P}function T(h){return n[h>>18&63]+n[h>>12&63]+n[h>>6&63]+n[h&63]}function m(h,g,y){for(var w,A=[],P=g;P<y;P+=3)w=(h[P]<<16&16711680)+(h[P+1]<<8&65280)+(h[P+2]&255),A.push(T(w));return A.join("")}function E(h){for(var g,y=h.length,w=y%3,A=[],P=16383,I=0,O=y-w;I<O;I+=P)A.push(m(h,I,I+P>O?O:I+P));return w===1?(g=h[y-1],A.push(n[g>>2]+n[g<<4&63]+"==")):w===2&&(g=(h[y-2]<<8)+h[y-1],A.push(n[g>>10]+n[g>>4&63]+n[g<<2&63]+"=")),A.join("")}var x={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */x.read=function(h,g,y,w,A){var P,I,O=A*8-w-1,j=(1<<O)-1,G=j>>1,L=-7,D=y?A-1:0,oe=y?-1:1,re=h[g+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=O;L>0;P=P*256+h[g+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=w;L>0;I=I*256+h[g+D],D+=oe,L-=8);if(P===0)P=1-G;else{if(P===j)return I?NaN:(re?-1:1)*(1/0);I=I+Math.pow(2,w),P=P-G}return(re?-1:1)*I*Math.pow(2,P-w)},x.write=function(h,g,y,w,A,P){var I,O,j,G=P*8-A-1,L=(1<<G)-1,D=L>>1,oe=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=w?0:P-1,he=w?1:-1,fe=g<0||g===0&&1/g<0?1:0;for(g=Math.abs(g),isNaN(g)||g===1/0?(O=isNaN(g)?1:0,I=L):(I=Math.floor(Math.log(g)/Math.LN2),g*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?g+=oe/j:g+=oe*Math.pow(2,1-D),g*j>=2&&(I++,j/=2),I+D>=L?(O=0,I=L):I+D>=1?(O=(g*j-1)*Math.pow(2,A),I=I+D):(O=g*Math.pow(2,D-1)*Math.pow(2,A),I=0));A>=8;h[y+re]=O&255,re+=he,O/=256,A-=8);for(I=I<<A|O,G+=A;G>0;h[y+re]=I&255,re+=he,I/=256,G-=8);h[y+re-he]|=fe*128};/*!
12
12
  * The buffer module from node.js, for the browser.
13
13
  *