@opencloud-eu/web-pkg 2.3.0 → 3.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,50 +0,0 @@
1
- var c1=Object.defineProperty;var Mc=Te=>{throw TypeError(Te)};var h1=(Te,Ie,qe)=>Ie in Te?c1(Te,Ie,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Te[Ie]=qe;var ye=(Te,Ie,qe)=>h1(Te,typeof Ie!="symbol"?Ie+"":Ie,qe),Xs=(Te,Ie,qe)=>Ie.has(Te)||Mc("Cannot "+qe);var J=(Te,Ie,qe)=>(Xs(Te,Ie,"read from private field"),qe?qe.call(Te):Ie.get(Te)),Ne=(Te,Ie,qe)=>Ie.has(Te)?Mc("Cannot add the same private member more than once"):Ie instanceof WeakSet?Ie.add(Te):Ie.set(Te,qe),ve=(Te,Ie,qe,er)=>(Xs(Te,Ie,"write to private field"),er?er.call(Te,qe):Ie.set(Te,qe),qe),$e=(Te,Ie,qe)=>(Xs(Te,Ie,"access private method"),qe);var an=(Te,Ie,qe,er)=>({set _(ri){ve(Te,Ie,ri,qe)},get _(){return J(Te,Ie,er)}});(function(){"use strict";var Tt,Ir,Pr,zt,tn,Fr,rn,St,Cr,pt,nn,_t,Br,Vt,on,Yn,_e,Dc,$c,qc,Hc,Vc,Zn,Ys,Js,Qn,Wc,ei,tt,nt,Wt,ke,Ye,Xt,cr,Yt,Bt,hr,sn,dr,Kc,Jt,ti,Zs,zc;var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qe={exports:{}},er;function ri(){return er||(er=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(f,l,s){this.fn=f,this.context=l,this.once=s||!1}function i(f,l,s,c,d){if(typeof s!="function")throw new TypeError("The listener must be a function");var T=new o(s,c||f,d),m=r?r+l:l;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],T]:f._events[m].push(T):(f._events[m]=T,f._eventsCount++),f}function a(f,l){--f._eventsCount===0?f._events=new n:delete f._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,c;if(this._eventsCount===0)return l;for(c in s=this._events)t.call(s,c)&&l.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,c=this._events[s];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,T=c.length,m=new Array(T);d<T;d++)m[d]=c[d].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,c=this._events[s];return c?c.fn?1:c.length:0},u.prototype.emit=function(l,s,c,d,T,m){var E=r?r+l:l;if(!this._events[E])return!1;var x=this._events[E],p=arguments.length,h,g;if(x.fn){switch(x.once&&this.removeListener(l,x.fn,void 0,!0),p){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,s),!0;case 3:return x.fn.call(x.context,s,c),!0;case 4:return x.fn.call(x.context,s,c,d),!0;case 5:return x.fn.call(x.context,s,c,d,T),!0;case 6:return x.fn.call(x.context,s,c,d,T,m),!0}for(g=1,h=new Array(p-1);g<p;g++)h[g-1]=arguments[g];x.fn.apply(x.context,h)}else{var y=x.length,w;for(g=0;g<y;g++)switch(x[g].once&&this.removeListener(l,x[g].fn,void 0,!0),p){case 1:x[g].fn.call(x[g].context);break;case 2:x[g].fn.call(x[g].context,s);break;case 3:x[g].fn.call(x[g].context,s,c);break;case 4:x[g].fn.call(x[g].context,s,c,d);break;default:if(!h)for(w=1,h=new Array(p-1);w<p;w++)h[w-1]=arguments[w];x[g].fn.apply(x[g].context,h)}}return!0},u.prototype.on=function(l,s,c){return i(this,l,s,c,!1)},u.prototype.once=function(l,s,c){return i(this,l,s,c,!0)},u.prototype.removeListener=function(l,s,c,d){var T=r?r+l:l;if(!this._events[T])return this;if(!s)return a(this,T),this;var m=this._events[T];if(m.fn)m.fn===s&&(!d||m.once)&&(!c||m.context===c)&&a(this,T);else{for(var E=0,x=[],p=m.length;E<p;E++)(m[E].fn!==s||d&&!m[E].once||c&&m[E].context!==c)&&x.push(m[E]);x.length?this._events[T]=x.length===1?x[0]:x:a(this,T)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&a(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u}(qe)),qe.exports}var Xc=ri(),Yc=Ie(Xc);class Qs extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Jc extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const ea=e=>globalThis.DOMException===void 0?new Jc(e):new DOMException(e),ta=e=>{const t=e.reason===void 0?ea("This operation was aborted."):e.reason;return t instanceof Error?t:ea(t)};function Zc(e,t){const{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout,clearTimeout}}=t;let a,u;const l=new Promise((s,c)=>{if(typeof r!="number"||Math.sign(r)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(t.signal){const{signal:T}=t;T.aborted&&c(ta(T)),u=()=>{c(ta(T))},T.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,c);return}const d=new Qs;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(T){c(T)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?c(o):(d.message=o??`Promise timed out after ${r} milliseconds`,c(d))},r),(async()=>{try{s(await e)}catch(T){c(T)}})()}).finally(()=>{l.clear(),u&&t.signal&&t.signal.removeEventListener("abort",u)});return l.clear=()=>{i.clearTimeout.call(void 0,a),a=void 0},l}function Qc(e,t,r){let n=0,o=e.length;for(;o>0;){const i=Math.trunc(o/2);let a=n+i;r(e[a],t)<=0?(n=++a,o-=i+1):o=i}return n}class eh{constructor(){Ne(this,Tt,[])}enqueue(t,r){r={priority:0,...r};const n={priority:r.priority,id:r.id,run:t};if(this.size===0||J(this,Tt)[this.size-1].priority>=r.priority){J(this,Tt).push(n);return}const o=Qc(J(this,Tt),n,(i,a)=>a.priority-i.priority);J(this,Tt).splice(o,0,n)}setPriority(t,r){const n=J(this,Tt).findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=J(this,Tt).splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){const t=J(this,Tt).shift();return t==null?void 0:t.run}filter(t){return J(this,Tt).filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return J(this,Tt).length}}Tt=new WeakMap;class th extends Yc{constructor(r){var n,o;super();Ne(this,_e);Ne(this,Ir);Ne(this,Pr);Ne(this,zt,0);Ne(this,tn);Ne(this,Fr);Ne(this,rn,0);Ne(this,St);Ne(this,Cr);Ne(this,pt);Ne(this,nn);Ne(this,_t,0);Ne(this,Br);Ne(this,Vt);Ne(this,on);Ne(this,Yn,1n);ye(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:eh,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${((n=r.intervalCap)==null?void 0:n.toString())??""}\` (${typeof r.intervalCap})`);if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${((o=r.interval)==null?void 0:o.toString())??""}\` (${typeof r.interval})`);ve(this,Ir,r.carryoverConcurrencyCount),ve(this,Pr,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ve(this,tn,r.intervalCap),ve(this,Fr,r.interval),ve(this,pt,new r.queueClass),ve(this,nn,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ve(this,on,r.throwOnTimeout===!0),ve(this,Vt,r.autoStart===!1)}get concurrency(){return J(this,Br)}set concurrency(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);ve(this,Br,r),$e(this,_e,Qn).call(this)}setPriority(r,n){J(this,pt).setPriority(r,n)}async add(r,n={}){return n.id??(n.id=(an(this,Yn)._++).toString()),n={timeout:this.timeout,throwOnTimeout:J(this,on),...n},new Promise((o,i)=>{J(this,pt).enqueue(async()=>{var a;an(this,_t)._++,an(this,zt)._++;try{(a=n.signal)==null||a.throwIfAborted();let u=r({signal:n.signal});n.timeout&&(u=Zc(Promise.resolve(u),{milliseconds:n.timeout})),n.signal&&(u=Promise.race([u,$e(this,_e,Wc).call(this,n.signal)]));const f=await u;o(f),this.emit("completed",f)}catch(u){if(u instanceof Qs&&!n.throwOnTimeout){o();return}i(u),this.emit("error",u)}finally{$e(this,_e,qc).call(this)}},n),this.emit("add"),$e(this,_e,Zn).call(this)})}async addAll(r,n){return Promise.all(r.map(async o=>this.add(o,n)))}start(){return J(this,Vt)?(ve(this,Vt,!1),$e(this,_e,Qn).call(this),this):this}pause(){ve(this,Vt,!0)}clear(){ve(this,pt,new(J(this,nn)))}async onEmpty(){J(this,pt).size!==0&&await $e(this,_e,ei).call(this,"empty")}async onSizeLessThan(r){J(this,pt).size<r||await $e(this,_e,ei).call(this,"next",()=>J(this,pt).size<r)}async onIdle(){J(this,_t)===0&&J(this,pt).size===0||await $e(this,_e,ei).call(this,"idle")}get size(){return J(this,pt).size}sizeBy(r){return J(this,pt).filter(r).length}get pending(){return J(this,_t)}get isPaused(){return J(this,Vt)}}Ir=new WeakMap,Pr=new WeakMap,zt=new WeakMap,tn=new WeakMap,Fr=new WeakMap,rn=new WeakMap,St=new WeakMap,Cr=new WeakMap,pt=new WeakMap,nn=new WeakMap,_t=new WeakMap,Br=new WeakMap,Vt=new WeakMap,on=new WeakMap,Yn=new WeakMap,_e=new WeakSet,Dc=function(){return J(this,Pr)||J(this,zt)<J(this,tn)},$c=function(){return J(this,_t)<J(this,Br)},qc=function(){an(this,_t)._--,$e(this,_e,Zn).call(this),this.emit("next")},Hc=function(){$e(this,_e,Js).call(this),$e(this,_e,Ys).call(this),ve(this,Cr,void 0)},Vc=function(){const r=Date.now();if(J(this,St)===void 0){const n=J(this,rn)-r;if(n<0)ve(this,zt,J(this,Ir)?J(this,_t):0);else return J(this,Cr)===void 0&&ve(this,Cr,setTimeout(()=>{$e(this,_e,Hc).call(this)},n)),!0}return!1},Zn=function(){if(J(this,pt).size===0)return J(this,St)&&clearInterval(J(this,St)),ve(this,St,void 0),this.emit("empty"),J(this,_t)===0&&this.emit("idle"),!1;if(!J(this,Vt)){const r=!J(this,_e,Vc);if(J(this,_e,Dc)&&J(this,_e,$c)){const n=J(this,pt).dequeue();return n?(this.emit("active"),n(),r&&$e(this,_e,Ys).call(this),!0):!1}}return!1},Ys=function(){J(this,Pr)||J(this,St)!==void 0||(ve(this,St,setInterval(()=>{$e(this,_e,Js).call(this)},J(this,Fr))),ve(this,rn,Date.now()+J(this,Fr)))},Js=function(){J(this,zt)===0&&J(this,_t)===0&&J(this,St)&&(clearInterval(J(this,St)),ve(this,St,void 0)),ve(this,zt,J(this,Ir)?J(this,_t):0),$e(this,_e,Qn).call(this)},Qn=function(){for(;$e(this,_e,Zn).call(this););},Wc=async function(r){return new Promise((n,o)=>{r.addEventListener("abort",()=>{o(r.reason)},{once:!0})})},ei=async function(r,n){return new Promise(o=>{const i=()=>{n&&!n()||(this.off(r,i),o())};this.on(r,i)})};const Ut=globalThis||void 0||self;function rh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ra={exports:{}},ze=ra.exports={},It,Pt;function ni(){throw new Error("setTimeout has not been defined")}function ii(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?It=setTimeout:It=ni}catch{It=ni}try{typeof clearTimeout=="function"?Pt=clearTimeout:Pt=ii}catch{Pt=ii}})();function na(e){if(It===setTimeout)return setTimeout(e,0);if((It===ni||!It)&&setTimeout)return It=setTimeout,setTimeout(e,0);try{return It(e,0)}catch{try{return It.call(null,e,0)}catch{return It.call(this,e,0)}}}function nh(e){if(Pt===clearTimeout)return clearTimeout(e);if((Pt===ii||!Pt)&&clearTimeout)return Pt=clearTimeout,clearTimeout(e);try{return Pt(e)}catch{try{return Pt.call(null,e)}catch{return Pt.call(this,e)}}}var jt=[],pr=!1,tr,un=-1;function ih(){!pr||!tr||(pr=!1,tr.length?jt=tr.concat(jt):un=-1,jt.length&&ia())}function ia(){if(!pr){var e=na(ih);pr=!0;for(var t=jt.length;t;){for(tr=jt,jt=[];++un<t;)tr&&tr[un].run();un=-1,t=jt.length}tr=null,pr=!1,nh(e)}}ze.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];jt.push(new oa(e,t)),jt.length===1&&!pr&&na(ia)};function oa(e,t){this.fun=e,this.array=t}oa.prototype.run=function(){this.fun.apply(null,this.array)},ze.title="browser",ze.browser=!0,ze.env={},ze.argv=[],ze.version="",ze.versions={};function kt(){}ze.on=kt,ze.addListener=kt,ze.once=kt,ze.off=kt,ze.removeListener=kt,ze.removeAllListeners=kt,ze.emit=kt,ze.prependListener=kt,ze.prependOnceListener=kt,ze.listeners=function(e){return[]},ze.binding=function(e){throw new Error("process.binding is not supported")},ze.cwd=function(){return"/"},ze.chdir=function(e){throw new Error("process.chdir is not supported")},ze.umask=function(){return 0};var oh=ra.exports;const me=rh(oh);function sa(e,t){return function(){return e.apply(t,arguments)}}const{toString:sh}=Object.prototype,{getPrototypeOf:oi}=Object,{iterator:ln,toStringTag:aa}=Symbol,fn=(e=>t=>{const r=sh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>fn(t)===e),cn=e=>t=>typeof t===e,{isArray:gr}=Array,Lr=cn("undefined");function ah(e){return e!==null&&!Lr(e)&&e.constructor!==null&&!Lr(e.constructor)&&yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ua=Nt("ArrayBuffer");function uh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ua(e.buffer),t}const lh=cn("string"),yt=cn("function"),la=cn("number"),hn=e=>e!==null&&typeof e=="object",fh=e=>e===!0||e===!1,dn=e=>{if(fn(e)!=="object")return!1;const t=oi(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(aa in e)&&!(ln in e)},ch=Nt("Date"),hh=Nt("File"),dh=Nt("Blob"),ph=Nt("FileList"),gh=e=>hn(e)&&yt(e.pipe),yh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yt(e.append)&&((t=fn(e))==="formdata"||t==="object"&&yt(e.toString)&&e.toString()==="[object FormData]"))},mh=Nt("URLSearchParams"),[bh,wh,vh,Eh]=["ReadableStream","Request","Response","Headers"].map(Nt),xh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ur(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),gr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let u;for(n=0;n<a;n++)u=i[n],t.call(null,e[u],u,e)}}function fa(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Ut,ca=e=>!Lr(e)&&e!==rr;function si(){const{caseless:e}=ca(this)&&this||{},t={},r=(n,o)=>{const i=e&&fa(t,o)||o;dn(t[i])&&dn(n)?t[i]=si(t[i],n):dn(n)?t[i]=si({},n):gr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ur(arguments[n],r);return t}const Ah=(e,t,r,{allOwnKeys:n}={})=>(Ur(t,(o,i)=>{r&&yt(o)?e[i]=sa(o,r):e[i]=o},{allOwnKeys:n}),e),Th=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Sh=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},_h=(e,t,r,n)=>{let o,i,a;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!n||n(a,e,t))&&!u[a]&&(t[a]=e[a],u[a]=!0);e=r!==!1&&oi(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Oh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Nh=e=>{if(!e)return null;if(gr(e))return e;let t=e.length;if(!la(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Rh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&oi(Uint8Array)),Ih=(e,t)=>{const n=(e&&e[ln]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ph=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Fh=Nt("HTMLFormElement"),Ch=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),ha=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Bh=Nt("RegExp"),da=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ur(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Lh=e=>{da(e,(t,r)=>{if(yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(yt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Uh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return gr(e)?n(e):n(String(e).split(t)),r},jh=()=>{},kh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Mh(e){return!!(e&&yt(e.append)&&e[aa]==="FormData"&&e[ln])}const Dh=e=>{const t=new Array(10),r=(n,o)=>{if(hn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=gr(n)?[]:{};return Ur(n,(a,u)=>{const f=r(a,o+1);!Lr(f)&&(i[u]=f)}),t[o]=void 0,i}}return n};return r(e,0)},$h=Nt("AsyncFunction"),qh=e=>e&&(hn(e)||yt(e))&&yt(e.then)&&yt(e.catch),pa=((e,t)=>e?setImmediate:t?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yt(rr.postMessage)),Hh=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof me<"u"&&me.nextTick||pa;var Z={isArray:gr,isArrayBuffer:ua,isBuffer:ah,isFormData:yh,isArrayBufferView:uh,isString:lh,isNumber:la,isBoolean:fh,isObject:hn,isPlainObject:dn,isReadableStream:bh,isRequest:wh,isResponse:vh,isHeaders:Eh,isUndefined:Lr,isDate:ch,isFile:hh,isBlob:dh,isRegExp:Bh,isFunction:yt,isStream:gh,isURLSearchParams:mh,isTypedArray:Rh,isFileList:ph,forEach:Ur,merge:si,extend:Ah,trim:xh,stripBOM:Th,inherits:Sh,toFlatObject:_h,kindOf:fn,kindOfTest:Nt,endsWith:Oh,toArray:Nh,forEachEntry:Ih,matchAll:Ph,isHTMLForm:Fh,hasOwnProperty:ha,hasOwnProp:ha,reduceDescriptors:da,freezeMethods:Lh,toObjectSet:Uh,toCamelCase:Ch,noop:jh,toFiniteNumber:kh,findKey:fa,global:rr,isContextDefined:ca,isSpecCompliantForm:Mh,toJSONObject:Dh,isAsyncFn:$h,isThenable:qh,setImmediate:pa,asap:Hh,isIterable:e=>e!=null&&yt(e[ln])},ga={},pn={};pn.byteLength=Gh,pn.toByteArray=zh,pn.fromByteArray=Jh;for(var Ft=[],wt=[],Vh=typeof Uint8Array<"u"?Uint8Array:Array,ai="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr=0,Wh=ai.length;yr<Wh;++yr)Ft[yr]=ai[yr],wt[ai.charCodeAt(yr)]=yr;wt[45]=62,wt[95]=63;function ya(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Gh(e){var t=ya(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Kh(e,t,r){return(t+r)*3/4-r}function zh(e){var t,r=ya(e),n=r[0],o=r[1],i=new Vh(Kh(e,n,o)),a=0,u=o>0?n-4:n,f;for(f=0;f<u;f+=4)t=wt[e.charCodeAt(f)]<<18|wt[e.charCodeAt(f+1)]<<12|wt[e.charCodeAt(f+2)]<<6|wt[e.charCodeAt(f+3)],i[a++]=t>>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=wt[e.charCodeAt(f)]<<2|wt[e.charCodeAt(f+1)]>>4,i[a++]=t&255),o===1&&(t=wt[e.charCodeAt(f)]<<10|wt[e.charCodeAt(f+1)]<<4|wt[e.charCodeAt(f+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Xh(e){return Ft[e>>18&63]+Ft[e>>12&63]+Ft[e>>6&63]+Ft[e&63]}function Yh(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),o.push(Xh(n));return o.join("")}function Jh(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Yh(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(Ft[t>>2]+Ft[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Ft[t>>10]+Ft[t>>4&63]+Ft[t<<2&63]+"=")),o.join("")}var ui={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ui.read=function(e,t,r,n,o){var i,a,u=o*8-n-1,f=(1<<u)-1,l=f>>1,s=-7,c=r?o-1:0,d=r?-1:1,T=e[t+c];for(c+=d,i=T&(1<<-s)-1,T>>=-s,s+=u;s>0;i=i*256+e[t+c],c+=d,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+c],c+=d,s-=8);if(i===0)i=1-l;else{if(i===f)return a?NaN:(T?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(T?-1:1)*a*Math.pow(2,i-n)},ui.write=function(e,t,r,n,o,i){var a,u,f,l=i*8-o-1,s=(1<<l)-1,c=s>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,T=n?0:i-1,m=n?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+c>=1?t+=d/f:t+=d*Math.pow(2,1-c),t*f>=2&&(a++,f/=2),a+c>=s?(u=0,a=s):a+c>=1?(u=(t*f-1)*Math.pow(2,o),a=a+c):(u=t*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;e[r+T]=u&255,T+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+T]=a&255,T+=m,a/=256,l-=8);e[r+T-m]|=E*128};/*!
2
- * The buffer module from node.js, for the browser.
3
- *
4
- * @author Feross Aboukhadijeh <https://feross.org>
5
- * @license MIT
6
- */(function(e){const t=pn,r=ui,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(st(F,a)||F&&st(F.buffer,a)||typeof u<"u"&&(st(F,u)||F&&st(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 k=F.valueOf&&F.valueOf();if(k!=null&&k!==F)return s.from(k,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 k=l(S);const H=k.write(F,b);return H!==S&&(k=k.slice(0,H)),k}function x(F){const b=F.length<0?0:y(F.length)|0,S=l(b);for(let k=0;k<b;k+=1)S[k]=F[k]&255;return S}function p(F){if(st(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 k;return b===void 0&&S===void 0?k=new i(F):S===void 0?k=new i(F,b):k=new i(F,b,S),Object.setPrototypeOf(k,s.prototype),k}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(st(b,i)&&(b=s.from(b,b.offset,b.byteLength)),st(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 k=b.length,H=S.length;for(let z=0,ne=Math.min(k,H);z<ne;++z)if(b[z]!==S[z]){k=b[z],H=S[z];break}return k<H?-1:H<k?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 k;if(S===void 0)for(S=0,k=0;k<b.length;++k)S+=b[k].length;const H=s.allocUnsafe(S);let z=0;for(k=0;k<b.length;++k){let ne=b[k];if(st(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)||st(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,k=arguments.length>2&&arguments[2]===!0;if(!k&&S===0)return 0;let H=!1;for(;;)switch(b){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return rt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return Le(F).length;default:if(H)return k?-1:rt(F).length;b=(""+b).toLowerCase(),H=!0}}s.byteLength=A;function P(F,b,S){let k=!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 Ee(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(k)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),k=!0}}s.prototype._isBuffer=!0;function I(F,b,S){const k=F[b];F[b]=F[S],F[S]=k}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,k,H,z){if(st(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),k===void 0&&(k=b?b.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||k>b.length||H<0||z>this.length)throw new RangeError("out of range index");if(H>=z&&S>=k)return 0;if(H>=z)return-1;if(S>=k)return 1;if(S>>>=0,k>>>=0,H>>>=0,z>>>=0,this===b)return 0;let ne=z-H,xe=k-S;const Ue=Math.min(ne,xe),je=this.slice(H,z),Me=b.slice(S,k);for(let Re=0;Re<Ue;++Re)if(je[Re]!==Me[Re]){ne=je[Re],xe=Me[Re];break}return ne<xe?-1:xe<ne?1:0};function O(F,b,S,k,H){if(F.length===0)return-1;if(typeof S=="string"?(k=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,k)),s.isBuffer(b))return b.length===0?-1:j(F,b,S,k,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,k,H);throw new TypeError("val must be string, number or Buffer")}function j(F,b,S,k,H){let z=1,ne=F.length,xe=b.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(F.length<2||b.length<2)return-1;z=2,ne/=2,xe/=2,S/=2}function Ue(Me,Re){return z===1?Me[Re]:Me.readUInt16BE(Re*z)}let je;if(H){let Me=-1;for(je=S;je<ne;je++)if(Ue(F,je)===Ue(b,Me===-1?0:je-Me)){if(Me===-1&&(Me=je),je-Me+1===xe)return Me*z}else Me!==-1&&(je-=je-Me),Me=-1}else for(S+xe>ne&&(S=ne-xe),je=S;je>=0;je--){let Me=!0;for(let Re=0;Re<xe;Re++)if(Ue(F,je+Re)!==Ue(b,Re)){Me=!1;break}if(Me)return je}return-1}s.prototype.includes=function(b,S,k){return this.indexOf(b,S,k)!==-1},s.prototype.indexOf=function(b,S,k){return O(this,b,S,k,!0)},s.prototype.lastIndexOf=function(b,S,k){return O(this,b,S,k,!1)};function G(F,b,S,k){S=Number(S)||0;const H=F.length-S;k?(k=Number(k),k>H&&(k=H)):k=H;const z=b.length;k>z/2&&(k=z/2);let ne;for(ne=0;ne<k;++ne){const xe=parseInt(b.substr(ne*2,2),16);if(Ot(xe))return ne;F[S+ne]=xe}return ne}function L(F,b,S,k){return ft(rt(b,F.length-S),F,S,k)}function D(F,b,S,k){return ft(Je(b),F,S,k)}function oe(F,b,S,k){return ft(Le(b),F,S,k)}function re(F,b,S,k){return ft(Oe(b,F.length-S),F,S,k)}s.prototype.write=function(b,S,k,H){if(S===void 0)H="utf8",k=this.length,S=0;else if(k===void 0&&typeof S=="string")H=S,k=this.length,S=0;else if(isFinite(S))S=S>>>0,isFinite(k)?(k=k>>>0,H===void 0&&(H="utf8")):(H=k,k=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const z=this.length-S;if((k===void 0||k>z)&&(k=z),b.length>0&&(k<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,k);case"utf8":case"utf-8":return L(this,b,S,k);case"ascii":case"latin1":case"binary":return D(this,b,S,k);case"base64":return oe(this,b,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,b,S,k);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 k=[];let H=b;for(;H<S;){const z=F[H];let ne=null,xe=z>239?4:z>223?3:z>191?2:1;if(H+xe<=S){let Ue,je,Me,Re;switch(xe){case 1:z<128&&(ne=z);break;case 2:Ue=F[H+1],(Ue&192)===128&&(Re=(z&31)<<6|Ue&63,Re>127&&(ne=Re));break;case 3:Ue=F[H+1],je=F[H+2],(Ue&192)===128&&(je&192)===128&&(Re=(z&15)<<12|(Ue&63)<<6|je&63,Re>2047&&(Re<55296||Re>57343)&&(ne=Re));break;case 4:Ue=F[H+1],je=F[H+2],Me=F[H+3],(Ue&192)===128&&(je&192)===128&&(Me&192)===128&&(Re=(z&15)<<18|(Ue&63)<<12|(je&63)<<6|Me&63,Re>65535&&Re<1114112&&(ne=Re))}}ne===null?(ne=65533,xe=1):ne>65535&&(ne-=65536,k.push(ne>>>10&1023|55296),ne=56320|ne&1023),k.push(ne),H+=xe}return ce(k)}const ge=4096;function ce(F){const b=F.length;if(b<=ge)return String.fromCharCode.apply(String,F);let S="",k=0;for(;k<b;)S+=String.fromCharCode.apply(String,F.slice(k,k+=ge));return S}function Ee(F,b,S){let k="";S=Math.min(F.length,S);for(let H=b;H<S;++H)k+=String.fromCharCode(F[H]&127);return k}function be(F,b,S){let k="";S=Math.min(F.length,S);for(let H=b;H<S;++H)k+=String.fromCharCode(F[H]);return k}function K(F,b,S){const k=F.length;(!b||b<0)&&(b=0),(!S||S<0||S>k)&&(S=k);let H="";for(let z=b;z<S;++z)H+=Rt[F[z]];return H}function Q(F,b,S){const k=F.slice(b,S);let H="";for(let z=0;z<k.length-1;z+=2)H+=String.fromCharCode(k[z]+k[z+1]*256);return H}s.prototype.slice=function(b,S){const k=this.length;b=~~b,S=S===void 0?k:~~S,b<0?(b+=k,b<0&&(b=0)):b>k&&(b=k),S<0?(S+=k,S<0&&(S=0)):S>k&&(S=k),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,k){b=b>>>0,S=S>>>0,k||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,k){b=b>>>0,S=S>>>0,k||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=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===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+k*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===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+k;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(b,S,k){b=b>>>0,S=S>>>0,k||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,k){b=b>>>0,S=S>>>0,k||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 k=this[b]|this[b+1]<<8;return k&32768?k|4294901760:k},s.prototype.readInt16BE=function(b,S){b=b>>>0,S||ee(b,2,this.length);const k=this[b+1]|this[b]<<8;return k&32768?k|4294901760:k},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=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===void 0)&&de(b,this.length-8);const H=this[b+4]+this[b+5]*2**8+this[b+6]*2**16+(k<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++b]*2**8+this[++b]*2**16+this[++b]*2**24)}),s.prototype.readBigInt64BE=it(function(b){b=b>>>0,le(b,"offset");const S=this[b],k=this[b+7];(S===void 0||k===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+k)}),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,k,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+k>F.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(b,S,k,H){if(b=+b,S=S>>>0,k=k>>>0,!H){const xe=Math.pow(2,8*k)-1;ue(this,b,S,k,xe,0)}let z=1,ne=0;for(this[S]=b&255;++ne<k&&(z*=256);)this[S+ne]=b/z&255;return S+k},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(b,S,k,H){if(b=+b,S=S>>>0,k=k>>>0,!H){const xe=Math.pow(2,8*k)-1;ue(this,b,S,k,xe,0)}let z=k-1,ne=1;for(this[S+z]=b&255;--z>=0&&(ne*=256);)this[S+z]=b/ne&255;return S+k},s.prototype.writeUint8=s.prototype.writeUInt8=function(b,S,k){return b=+b,S=S>>>0,k||ue(this,b,S,1,255,0),this[S]=b&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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,k,H){pe(b,k,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,k,H){pe(b,k,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=it(function(b,S=0){return V(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=it(function(b,S=0){return R(this,b,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(b,S,k,H){if(b=+b,S=S>>>0,!H){const Ue=Math.pow(2,8*k-1);ue(this,b,S,k,Ue-1,-Ue)}let z=0,ne=1,xe=0;for(this[S]=b&255;++z<k&&(ne*=256);)b<0&&xe===0&&this[S+z-1]!==0&&(xe=1),this[S+z]=(b/ne>>0)-xe&255;return S+k},s.prototype.writeIntBE=function(b,S,k,H){if(b=+b,S=S>>>0,!H){const Ue=Math.pow(2,8*k-1);ue(this,b,S,k,Ue-1,-Ue)}let z=k-1,ne=1,xe=0;for(this[S+z]=b&255;--z>=0&&(ne*=256);)b<0&&xe===0&&this[S+z+1]!==0&&(xe=1),this[S+z]=(b/ne>>0)-xe&255;return S+k},s.prototype.writeInt8=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||ue(this,b,S,2,32767,-32768),this[S]=b&255,this[S+1]=b>>>8,S+2},s.prototype.writeInt16BE=function(b,S,k){return b=+b,S=S>>>0,k||ue(this,b,S,2,32767,-32768),this[S]=b>>>8,this[S+1]=b&255,S+2},s.prototype.writeInt32LE=function(b,S,k){return b=+b,S=S>>>0,k||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,k){return b=+b,S=S>>>0,k||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=it(function(b,S=0){return V(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=it(function(b,S=0){return R(this,b,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function N(F,b,S,k,H,z){if(S+k>F.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function q(F,b,S,k,H){return b=+b,S=S>>>0,H||N(F,b,S,4),r.write(F,b,S,k,23,4),S+4}s.prototype.writeFloatLE=function(b,S,k){return q(this,b,S,!0,k)},s.prototype.writeFloatBE=function(b,S,k){return q(this,b,S,!1,k)};function $(F,b,S,k,H){return b=+b,S=S>>>0,H||N(F,b,S,8),r.write(F,b,S,k,52,8),S+8}s.prototype.writeDoubleLE=function(b,S,k){return $(this,b,S,!0,k)},s.prototype.writeDoubleBE=function(b,S,k){return $(this,b,S,!1,k)},s.prototype.copy=function(b,S,k,H){if(!s.isBuffer(b))throw new TypeError("argument should be a Buffer");if(k||(k=0),!H&&H!==0&&(H=this.length),S>=b.length&&(S=b.length),S||(S=0),H>0&&H<k&&(H=k),H===k||b.length===0||this.length===0)return 0;if(S<0)throw new RangeError("targetStart out of bounds");if(k<0||k>=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-k&&(H=b.length-S+k);const z=H-k;return this===b&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,k,H):i.prototype.set.call(b,this.subarray(k,H),S),z},s.prototype.fill=function(b,S,k,H){if(typeof b=="string"){if(typeof S=="string"?(H=S,S=0,k=this.length):typeof k=="string"&&(H=k,k=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<k)throw new RangeError("Out of range index");if(k<=S)return this;S=S>>>0,k=k===void 0?this.length:k>>>0,b||(b=0);let z;if(typeof b=="number")for(z=S;z<k;++z)this[z]=b;else{const ne=s.isBuffer(b)?b:s.from(b,H),xe=ne.length;if(xe===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(z=0;z<k-S;++z)this[z+S]=ne[z%xe]}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 k=`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"),k+=` It must be ${b}. Received ${H}`,k},RangeError);function Y(F){let b="",S=F.length;const k=F[0]==="-"?1:0;for(;S>=k+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,k,H,z){if(F>S||F<b){const ne=typeof b=="bigint"?"n":"";let xe;throw b===0||b===BigInt(0)?xe=`>= 0${ne} and < 2${ne} ** ${(z+1)*8}${ne}`:xe=`>= -(2${ne} ** ${(z+1)*8-1}${ne}) and < 2 ** ${(z+1)*8-1}${ne}`,new B.ERR_OUT_OF_RANGE("value",xe,F)}se(k,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 Be=/[^+/0-9A-Za-z-_]/g;function te(F){if(F=F.split("=")[0],F=F.trim().replace(Be,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function rt(F,b){b=b||1/0;let S;const k=F.length;let H=null;const z=[];for(let ne=0;ne<k;++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===k){(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 Je(F){const b=[];for(let S=0;S<F.length;++S)b.push(F.charCodeAt(S)&255);return b}function Oe(F,b){let S,k,H;const z=[];for(let ne=0;ne<F.length&&!((b-=2)<0);++ne)S=F.charCodeAt(ne),k=S>>8,H=S%256,z.push(H),z.push(k);return z}function Le(F){return t.toByteArray(te(F))}function ft(F,b,S,k){let H;for(H=0;H<k&&!(H+S>=b.length||H>=F.length);++H)b[H+S]=F[H];return H}function st(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 k=S*16;for(let H=0;H<16;++H)b[k+H]=F[S]+F[H]}return b}();function it(F){return typeof BigInt>"u"?Zt:F}function Zt(){throw new Error("BigInt not supported")}})(ga);const mr=ga.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 ma=we.prototype,ba={};["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=>{ba[e]={value:e}}),Object.defineProperties(we,ba),Object.defineProperty(ma,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(ma);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 Zh=null;function li(e){return Z.isPlainObject(e)||Z.isArray(e)}function wa(e){return Z.endsWith(e,"[]")?e.slice(0,-2):e}function va(e,t,r){return e?e.concat(t).map(function(o,i){return o=wa(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Qh(e){return Z.isArray(e)&&!e.some(li)}const ed=Z.toFlatObject(Z,{},null,function(t){return/^is[A-Z]/.test(t)});function gn(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]):mr.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=wa(E),p.forEach(function(g,y){!(Z.isUndefined(g)||g===null)&&t.append(a===!0?va([E],y,i):a===null?E:E+"[]",l(g))}),!1}return li(m)?!0:(t.append(va(x,E,i),l(m)),!1)}const c=[],d=Object.assign(ed,{defaultVisitor:s,convertValue:l,isVisitable:li});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 Ea(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function fi(e,t){this._pairs=[],e&&gn(e,this,t)}const xa=fi.prototype;xa.append=function(t,r){this._pairs.push([t,r])},xa.toString=function(t){const r=t?function(n){return t.call(this,n,Ea)}:Ea;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function td(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Aa(e,t,r){if(!t)return e;const n=r&&r.encode||td;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 fi(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ta{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 Sa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rd=typeof URLSearchParams<"u"?URLSearchParams:fi,nd=typeof FormData<"u"?FormData:null,id=typeof Blob<"u"?Blob:null,od={isBrowser:!0,classes:{URLSearchParams:rd,FormData:nd,Blob:id},protocols:["http","https","file","blob","url","data"]};const ci=typeof window<"u"&&typeof document<"u",hi=typeof navigator=="object"&&navigator||void 0,sd=ci&&(!hi||["ReactNative","NativeScript","NS"].indexOf(hi.product)<0),ad=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ud=ci&&window.location.href||"http://localhost";var ld=Object.freeze({__proto__:null,hasBrowserEnv:ci,hasStandardBrowserEnv:sd,hasStandardBrowserWebWorkerEnv:ad,navigator:hi,origin:ud}),at={...ld,...od};function fd(e,t){return gn(e,new at.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return at.isNode&&Z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function cd(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function hd(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 _a(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]=hd(o[a])),!u)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){const r={};return Z.forEachEntry(e,(n,o)=>{t(cd(n),o,r,0)}),r}return null}function dd(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 jr={transitional:Sa,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(_a(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 fd(t,this.formSerializer).toString();if((u=Z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return gn(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),dd(t)):t}],transformResponse:[function(t){const r=this.transitional||jr.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:at.classes.FormData,Blob:at.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=>{jr.headers[e]={}});const pd=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 gd=e=>{const t={};let r,n,o;return e&&e.split(`
7
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||t[r]&&pd[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};const Oa=Symbol("internals");function kr(e){return e&&String(e).trim().toLowerCase()}function yn(e){return e===!1||e==null?e:Z.isArray(e)?e.map(yn):String(e)}function yd(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 md=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function di(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 bd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function wd(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 mt=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(u,f,l){const s=kr(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]=yn(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())&&!md(t))a(gd(t),r);else if(Z.isObject(t)&&Z.isIterable(t)){let u={},f,l;for(const s of t){if(!Z.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(f=u[l])?Z.isArray(f)?[...f,s[1]]:[f,s[1]]:s[1]}a(u,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=kr(t),t){const n=Z.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return yd(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=kr(t),t){const n=Z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||di(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=kr(a),a){const u=Z.findKey(n,a);u&&(!r||di(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||di(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]=yn(o),delete r[i];return}const u=t?bd(i):String(i).trim();u!==i&&delete r[i],r[u]=yn(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
- `)}getSetCookie(){return this.get("set-cookie")||[]}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[Oa]=this[Oa]={accessors:{}}).accessors,o=this.prototype;function i(a){const u=kr(a);n[u]||(wd(o,a),n[u]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(mt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),Z.freezeMethods(mt);function pi(e,t){const r=this||jr,n=t||r,o=mt.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 Na(e){return!!(e&&e.__CANCEL__)}function br(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}Z.inherits(br,we,{__CANCEL__:!0});function Ra(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 vd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ed(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 xd(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 mn=(e,t,r=3)=>{let n=0;const o=Ed(50,250);return xd(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)},Ia=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Pa=e=>(...t)=>Z.asap(()=>e(...t));var Ad=at.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,at.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(at.origin),at.navigator&&/(msie|trident)/i.test(at.navigator.userAgent)):()=>!0,Td=at.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 Sd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _d(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fa(e,t,r){let n=!Sd(t);return e&&(n||r==!1)?_d(e,t):t}const Ca=e=>e instanceof mt?{...e}:e;function nr(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(Ca(l),Ca(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 Ba=e=>{const t=nr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=mt.from(a),t.url=Aa(Fa(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(at.hasStandardBrowserEnv||at.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(at.hasStandardBrowserEnv&&(n&&Z.isFunction(n)&&(n=n(t)),n||n!==!1&&Ad(t.url))){const l=o&&i&&Td.read(i);l&&a.set(o,l)}return t},Od=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Ba(e);let i=o.data;const a=mt.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=mt.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};Ra(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||Sa;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]=mn(l,!0),x.addEventListener("progress",d)),f&&x.upload&&([c,T]=mn(f),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(s=g=>{x&&(n(!g||g.type?new br(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=vd(o.url);if(h&&at.protocols.indexOf(h)===-1){n(new we("Unsupported protocol "+h+":",we.ERR_BAD_REQUEST,e));return}x.send(i||null)})};const Nd=(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 br(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}},Rd=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},Id=async function*(e,t){for await(const r of Pd(e))yield*Rd(r,t)},Pd=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()}},La=(e,t,r,n)=>{const o=Id(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})},bn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ua=bn&&typeof ReadableStream=="function",Fd=bn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ja=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cd=Ua&&ja(()=>{let e=!1;const t=new Request(at.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ka=64*1024,gi=Ua&&ja(()=>Z.isReadableStream(new Response("").body)),wn={stream:gi&&(e=>e.body)};bn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wn[t]&&(wn[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 Bd=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new Request(at.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 Fd(e)).byteLength},Ld=async(e,t)=>{const r=Z.toFiniteNumber(e.getContentLength());return r??Bd(t)};var Ud=bn&&(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}=Ba(e);l=l?(l+"").toLowerCase():"text";let T=Nd([o,i&&i.toAbortSignal()],a),m;const E=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let x;try{if(f&&Cd&&r!=="get"&&r!=="head"&&(x=await Ld(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]=Ia(x,mn(Pa(f)));n=La(w.body,ka,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=gi&&(l==="stream"||l==="response");if(gi&&(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&&Ia(A,mn(Pa(u),!0))||[];h=new Response(La(h.body,ka,P,()=>{I&&I(),E&&E()}),w)}l=l||"text";let y=await wn[Z.findKey(wn,l)||"text"](h,e);return!g&&E&&E(),await new Promise((w,A)=>{Ra(w,A,{data:y,headers:mt.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:m})})}catch(p){throw E&&E(),p&&p.name==="TypeError"&&/Load failed|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 yi={http:Zh,xhr:Od,fetch:Ud};Z.forEach(yi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ma=e=>`- ${e}`,jd=e=>Z.isFunction(e)||e===null||e===!1;var Da={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,!jd(r)&&(n=yi[(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
- `+i.map(Ma).join(`
10
- `):" "+Ma(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:yi};function mi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new br(null,e)}function $a(e){return mi(e),e.headers=mt.from(e.headers),e.data=pi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Da.getAdapter(e.adapter||jr.adapter)(e).then(function(n){return mi(e),n.data=pi.call(e,e.transformResponse,n),n.headers=mt.from(n.headers),n},function(n){return Na(n)||(mi(e),n&&n.response&&(n.response.data=pi.call(e,e.transformResponse,n.response),n.response.headers=mt.from(n.response.headers))),Promise.reject(n)})}const qa="1.9.0",vn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ha={};vn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+qa+"] 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&&!Ha[a]&&(Ha[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}},vn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function kd(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 En={assertOptions:kd,validators:vn};const Ct=En.validators;let ir=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ta,response:new Ta}}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
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=nr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&En.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}:En.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),En.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=mt.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=[$a.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=$a.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=nr(this.defaults,t);const r=Fa(t.baseURL,t.url,t.allowAbsoluteUrls);return Aa(r,t.params,t.paramsSerializer)}};Z.forEach(["delete","get","head","options"],function(t){ir.prototype[t]=function(r,n){return this.request(nr(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(nr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ir.prototype[t]=r(),ir.prototype[t+"Form"]=r(!0)});let Md=class Gc{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 br(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 Gc(function(o){t=o}),cancel:t}}};function Dd(e){return function(r){return e.apply(null,r)}}function $d(e){return Z.isObject(e)&&e.isAxiosError===!0}const bi={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(bi).forEach(([e,t])=>{bi[t]=e});function Va(e){const t=new ir(e),r=sa(ir.prototype.request,t);return Z.extend(r,ir.prototype,t,{allOwnKeys:!0}),Z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Va(nr(e,o))},r}const Xe=Va(jr);Xe.Axios=ir,Xe.CanceledError=br,Xe.CancelToken=Md,Xe.isCancel=Na,Xe.VERSION=qa,Xe.toFormData=gn,Xe.AxiosError=we,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=Dd,Xe.isAxiosError=$d,Xe.mergeConfig=nr,Xe.AxiosHeaders=mt,Xe.formToJSON=e=>_a(Z.isHTMLForm(e)?new FormData(e):e),Xe.getAdapter=Da.getAdapter,Xe.HttpStatusCode=bi,Xe.default=Xe;const{Axios:g1,AxiosError:y1,CanceledError:m1,isCancel:b1,CancelToken:w1,VERSION:v1,all:E1,Cancel:x1,isAxiosError:A1,spread:T1,toFormData:S1,AxiosHeaders:_1,HttpStatusCode:O1,formToJSON:N1,getAdapter:R1,mergeConfig:I1}=Xe,xn=e=>encodeURIComponent(e).split("%2F").join("/"),qd=/^(\w+:\/\/[^/?]+)?(.*?)$/,Hd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Vd=e=>{const t=e.join("/"),[,r="",n=""]=t.match(qd)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Wd=(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},Se=(...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=Hd(e);const n=Vd(e);return Wd(n,r)};class Wa extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Gd extends Wa{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Kd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function zd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}var wi,Ga;function Xd(){if(Ga)return wi;Ga=1;function e(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function t(o,i){for(var a="",u=0,f=-1,l=0,s,c=0;c<=o.length;++c){if(c<o.length)s=o.charCodeAt(c);else{if(s===47)break;s=47}if(s===47){if(!(f===c-1||l===1))if(f!==c-1&&l===2){if(a.length<2||u!==2||a.charCodeAt(a.length-1)!==46||a.charCodeAt(a.length-2)!==46){if(a.length>2){var d=a.lastIndexOf("/");if(d!==a.length-1){d===-1?(a="",u=0):(a=a.slice(0,d),u=a.length-1-a.lastIndexOf("/")),f=c,l=0;continue}}else if(a.length===2||a.length===1){a="",u=0,f=c,l=0;continue}}i&&(a.length>0?a+="/..":a="..",u=2)}else a.length>0?a+="/"+o.slice(f+1,c):a=o.slice(f+1,c),u=c-f-1;f=c,l=0}else s===46&&l!==-1?++l:l=-1}return a}function r(o,i){var a=i.dir||i.root,u=i.base||(i.name||"")+(i.ext||"");return a?a===i.root?a+u:a+o+u:u}var n={resolve:function(){for(var i="",a=!1,u,f=arguments.length-1;f>=-1&&!a;f--){var l;f>=0?l=arguments[f]:(u===void 0&&(u=me.cwd()),l=u),e(l),l.length!==0&&(i=l+"/"+i,a=l.charCodeAt(0)===47)}return i=t(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(e(i),i.length===0)return".";var a=i.charCodeAt(0)===47,u=i.charCodeAt(i.length-1)===47;return i=t(i,!a),i.length===0&&!a&&(i="."),i.length>0&&u&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return e(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a<arguments.length;++a){var u=arguments[a];e(u),u.length>0&&(i===void 0?i=u:i+="/"+u)}return i===void 0?".":n.normalize(i)},relative:function(i,a){if(e(i),e(a),i===a||(i=n.resolve(i),a=n.resolve(a),i===a))return"";for(var u=1;u<i.length&&i.charCodeAt(u)===47;++u);for(var f=i.length,l=f-u,s=1;s<a.length&&a.charCodeAt(s)===47;++s);for(var c=a.length,d=c-s,T=l<d?l:d,m=-1,E=0;E<=T;++E){if(E===T){if(d>T){if(a.charCodeAt(s+E)===47)return a.slice(s+E+1);if(E===0)return a.slice(s+E)}else l>T&&(i.charCodeAt(u+E)===47?m=E:E===0&&(m=0));break}var x=i.charCodeAt(u+E),p=a.charCodeAt(s+E);if(x!==p)break;x===47&&(m=E)}var h="";for(E=u+m+1;E<=f;++E)(E===f||i.charCodeAt(E)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+a.slice(s+m):(s+=m,a.charCodeAt(s)===47&&++s,a.slice(s))},_makeLong:function(i){return i},dirname:function(i){if(e(i),i.length===0)return".";for(var a=i.charCodeAt(0),u=a===47,f=-1,l=!0,s=i.length-1;s>=1;--s)if(a=i.charCodeAt(s),a===47){if(!l){f=s;break}}else l=!1;return f===-1?u?"/":".":u&&f===1?"//":i.slice(0,f)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');e(i);var u=0,f=-1,l=!0,s;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var c=a.length-1,d=-1;for(s=i.length-1;s>=0;--s){var T=i.charCodeAt(s);if(T===47){if(!l){u=s+1;break}}else d===-1&&(l=!1,d=s+1),c>=0&&(T===a.charCodeAt(c)?--c===-1&&(f=s):(c=-1,f=d))}return u===f?f=d:f===-1&&(f=i.length),i.slice(u,f)}else{for(s=i.length-1;s>=0;--s)if(i.charCodeAt(s)===47){if(!l){u=s+1;break}}else f===-1&&(l=!1,f=s+1);return f===-1?"":i.slice(u,f)}},extname:function(i){e(i);for(var a=-1,u=0,f=-1,l=!0,s=0,c=i.length-1;c>=0;--c){var d=i.charCodeAt(c);if(d===47){if(!l){u=c+1;break}continue}f===-1&&(l=!1,f=c+1),d===46?a===-1?a=c:s!==1&&(s=1):a!==-1&&(s=-1)}return a===-1||f===-1||s===0||s===1&&a===f-1&&a===u+1?"":i.slice(a,f)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){e(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var u=i.charCodeAt(0),f=u===47,l;f?(a.root="/",l=1):l=0;for(var s=-1,c=0,d=-1,T=!0,m=i.length-1,E=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!T){c=m+1;break}continue}d===-1&&(T=!1,d=m+1),u===46?s===-1?s=m:E!==1&&(E=1):s!==-1&&(E=-1)}return s===-1||d===-1||E===0||E===1&&s===d-1&&s===c+1?d!==-1&&(c===0&&f?a.base=a.name=i.slice(1,d):a.base=a.name=i.slice(c,d)):(c===0&&f?(a.name=i.slice(1,s),a.base=i.slice(1,d)):(a.name=i.slice(c,s),a.base=i.slice(c,d)),a.ext=i.slice(s,d)),c>0?a.dir=i.slice(0,c-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,wi=n,wi}var Ka=Xd(),za=Ie(Ka);class We{}ye(We,"Shared","S"),ye(We,"Shareable","R"),ye(We,"Mounted","M"),ye(We,"Deletable","D"),ye(We,"Renameable","N"),ye(We,"Moveable","V"),ye(We,"Updateable","NV"),ye(We,"FileUpdateable","W"),ye(We,"FolderCreateable","CK"),ye(We,"Deny","Z"),ye(We,"SecureView","X");var Mt=(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))(Mt||{});const An=e=>({value:e,type:null}),Yd=e=>An(e),Pe=e=>An(e),vi=e=>An(e),Jd=e=>An(e),Zd={Permissions:Pe("permissions"),IsFavorite:vi("favorite"),FileId:Pe("fileid"),FileParent:Pe("file-parent"),Name:Pe("name"),OwnerId:Pe("owner-id"),OwnerDisplayName:Pe("owner-display-name"),PrivateLink:Pe("privatelink"),ContentLength:vi("getcontentlength"),ContentSize:vi("size"),LastModifiedDate:Pe("getlastmodified"),Tags:Yd("tags"),Audio:{value:"audio",type:null},Location:{value:"location",type:null},Image:{value:"image",type:null},Photo:{value:"photo",type:null},ETag:Pe("getetag"),MimeType:Pe("getcontenttype"),ResourceType:Jd("resourcetype"),LockDiscovery:{value:"lockdiscovery",type:null},LockOwner:Pe("owner"),LockTime:Pe("locktime"),ActiveLock:{value:"activelock",type:null},DownloadURL:Pe("downloadURL"),Highlights:Pe("highlights"),MetaPathForUser:Pe("meta-path-for-user"),RemoteItemId:Pe("remote-item-id"),ShareId:Pe("shareid"),ShareRoot:Pe("shareroot"),ShareTypes:{value:"share-types",type:null},SharePermissions:Pe("share-permissions"),TrashbinOriginalFilename:Pe("trashbin-original-filename"),TrashbinOriginalLocation:Pe("trashbin-original-location"),TrashbinDeletedDate:Pe("trashbin-delete-datetime"),PublicLinkItemType:Pe("public-link-item-type"),PublicLinkPermission:Pe("public-link-permission"),PublicLinkExpiration:Pe("public-link-expiration"),PublicLinkShareDate:Pe("public-link-share-datetime"),PublicLinkShareOwner:Pe("public-link-share-owner")},ae=Object.fromEntries(Object.entries(Zd).map(([e,t])=>[e,t.value])),fr=class fr{};ye(fr,"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(fr,"PublicLink",fr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(fr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(fr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let or=fr;var Qd=typeof Ut=="object"&&Ut&&Ut.Object===Object&&Ut,ep=typeof self=="object"&&self&&self.Object===Object&&self,Ei=Qd||ep||Function("return this")(),wr=Ei.Symbol,Xa=Object.prototype,tp=Xa.hasOwnProperty,rp=Xa.toString,Mr=wr?wr.toStringTag:void 0;function np(e){var t=tp.call(e,Mr),r=e[Mr];try{e[Mr]=void 0;var n=!0}catch{}var o=rp.call(e);return n&&(t?e[Mr]=r:delete e[Mr]),o}var ip=Object.prototype,op=ip.toString;function sp(e){return op.call(e)}var ap="[object Null]",up="[object Undefined]",Ya=wr?wr.toStringTag:void 0;function Ja(e){return e==null?e===void 0?up:ap:Ya&&Ya in Object(e)?np(e):sp(e)}function lp(e){return e!=null&&typeof e=="object"}var fp="[object Symbol]";function xi(e){return typeof e=="symbol"||lp(e)&&Ja(e)==fp}function cp(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 Ai=Array.isArray,Za=wr?wr.prototype:void 0,Qa=Za?Za.toString:void 0;function eu(e){if(typeof e=="string")return e;if(Ai(e))return cp(e,eu)+"";if(xi(e))return Qa?Qa.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function tu(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hp="[object AsyncFunction]",dp="[object Function]",pp="[object GeneratorFunction]",gp="[object Proxy]";function yp(e){if(!tu(e))return!1;var t=Ja(e);return t==dp||t==pp||t==hp||t==gp}var Ti=Ei["__core-js_shared__"],ru=function(){var e=/[^.]+$/.exec(Ti&&Ti.keys&&Ti.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function mp(e){return!!ru&&ru in e}var bp=Function.prototype,wp=bp.toString;function vp(e){if(e!=null){try{return wp.call(e)}catch{}try{return e+""}catch{}}return""}var Ep=/[\\^$.*+?()[\]{}|]/g,xp=/^\[object .+?Constructor\]$/,Ap=Function.prototype,Tp=Object.prototype,Sp=Ap.toString,_p=Tp.hasOwnProperty,Op=RegExp("^"+Sp.call(_p).replace(Ep,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Np(e){if(!tu(e)||mp(e))return!1;var t=yp(e)?Op:xp;return t.test(vp(e))}function Rp(e,t){return e==null?void 0:e[t]}function nu(e,t){var r=Rp(e,t);return Np(r)?r:void 0}function Ip(e,t){return e===t||e!==e&&t!==t}var Pp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fp=/^\w*$/;function Cp(e,t){if(Ai(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||xi(e)?!0:Fp.test(e)||!Pp.test(e)||t!=null&&e in Object(t)}var Dr=nu(Object,"create");function Bp(){this.__data__=Dr?Dr(null):{},this.size=0}function Lp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Up="__lodash_hash_undefined__",jp=Object.prototype,kp=jp.hasOwnProperty;function Mp(e){var t=this.__data__;if(Dr){var r=t[e];return r===Up?void 0:r}return kp.call(t,e)?t[e]:void 0}var Dp=Object.prototype,$p=Dp.hasOwnProperty;function qp(e){var t=this.__data__;return Dr?t[e]!==void 0:$p.call(t,e)}var Hp="__lodash_hash_undefined__";function Vp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dr&&t===void 0?Hp:t,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=Bp,sr.prototype.delete=Lp,sr.prototype.get=Mp,sr.prototype.has=qp,sr.prototype.set=Vp;function Wp(){this.__data__=[],this.size=0}function Tn(e,t){for(var r=e.length;r--;)if(Ip(e[r][0],t))return r;return-1}var Gp=Array.prototype,Kp=Gp.splice;function zp(e){var t=this.__data__,r=Tn(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Kp.call(t,r,1),--this.size,!0}function Xp(e){var t=this.__data__,r=Tn(t,e);return r<0?void 0:t[r][1]}function Yp(e){return Tn(this.__data__,e)>-1}function Jp(e,t){var r=this.__data__,n=Tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vr(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])}}vr.prototype.clear=Wp,vr.prototype.delete=zp,vr.prototype.get=Xp,vr.prototype.has=Yp,vr.prototype.set=Jp;var Zp=nu(Ei,"Map");function Qp(){this.size=0,this.__data__={hash:new sr,map:new(Zp||vr),string:new sr}}function eg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Sn(e,t){var r=e.__data__;return eg(t)?r[typeof t=="string"?"string":"hash"]:r.map}function tg(e){var t=Sn(this,e).delete(e);return this.size-=t?1:0,t}function rg(e){return Sn(this,e).get(e)}function ng(e){return Sn(this,e).has(e)}function ig(e,t){var r=Sn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ar(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])}}ar.prototype.clear=Qp,ar.prototype.delete=tg,ar.prototype.get=rg,ar.prototype.has=ng,ar.prototype.set=ig;var og="Expected a function";function Si(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(og);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(Si.Cache||ar),r}Si.Cache=ar;var sg=500;function ag(e){var t=Si(e,function(n){return r.size===sg&&r.clear(),n}),r=t.cache;return t}var ug=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lg=/\\(\\)?/g,fg=ag(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ug,function(r,n,o,i){t.push(o?i.replace(lg,"$1"):n||r)}),t});function $r(e){return e==null?"":eu(e)}function cg(e,t){return Ai(e)?e:Cp(e,t)?[e]:fg($r(e))}function hg(e){if(typeof e=="string"||xi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function dg(e,t){t=cg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[hg(t[r++])];return r&&r==n?e:void 0}function pg(e,t,r){var n=e==null?void 0:dg(e,t);return n===void 0?r:n}function gg(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 yg(e,t,r){var n=e.length;return r=r===void 0?n:r,gg(e,t,r)}var mg="\\ud800-\\udfff",bg="\\u0300-\\u036f",wg="\\ufe20-\\ufe2f",vg="\\u20d0-\\u20ff",Eg=bg+wg+vg,xg="\\ufe0e\\ufe0f",Ag="\\u200d",Tg=RegExp("["+Ag+mg+Eg+xg+"]");function iu(e){return Tg.test(e)}function Sg(e){return e.split("")}var ou="\\ud800-\\udfff",_g="\\u0300-\\u036f",Og="\\ufe20-\\ufe2f",Ng="\\u20d0-\\u20ff",Rg=_g+Og+Ng,Ig="\\ufe0e\\ufe0f",Pg="["+ou+"]",_i="["+Rg+"]",Oi="\\ud83c[\\udffb-\\udfff]",Fg="(?:"+_i+"|"+Oi+")",su="[^"+ou+"]",au="(?:\\ud83c[\\udde6-\\uddff]){2}",uu="[\\ud800-\\udbff][\\udc00-\\udfff]",Cg="\\u200d",lu=Fg+"?",fu="["+Ig+"]?",Bg="(?:"+Cg+"(?:"+[su,au,uu].join("|")+")"+fu+lu+")*",Lg=fu+lu+Bg,Ug="(?:"+[su+_i+"?",_i,au,uu,Pg].join("|")+")",jg=RegExp(Oi+"(?="+Oi+")|"+Ug+Lg,"g");function kg(e){return e.match(jg)||[]}function Mg(e){return iu(e)?kg(e):Sg(e)}function Dg(e){return function(t){t=$r(t);var r=iu(t)?Mg(t):void 0,n=r?r[0]:t.charAt(0),o=r?yg(r,1).join(""):t.slice(1);return n[e]()+o}}var $g=Dg("toUpperCase");function qg(e){return $g($r(e).toLowerCase())}function Hg(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 Vg(e){return function(t){return e==null?void 0:e[t]}}var Wg={À:"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"},Gg=Vg(Wg),Kg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zg="\\u0300-\\u036f",Xg="\\ufe20-\\ufe2f",Yg="\\u20d0-\\u20ff",Jg=zg+Xg+Yg,Zg="["+Jg+"]",Qg=RegExp(Zg,"g");function e0(e){return e=$r(e),e&&e.replace(Kg,Gg).replace(Qg,"")}var t0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function r0(e){return e.match(t0)||[]}var n0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function i0(e){return n0.test(e)}var cu="\\ud800-\\udfff",o0="\\u0300-\\u036f",s0="\\ufe20-\\ufe2f",a0="\\u20d0-\\u20ff",u0=o0+s0+a0,hu="\\u2700-\\u27bf",du="a-z\\xdf-\\xf6\\xf8-\\xff",l0="\\xac\\xb1\\xd7\\xf7",f0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c0="\\u2000-\\u206f",h0=" \\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",pu="A-Z\\xc0-\\xd6\\xd8-\\xde",d0="\\ufe0e\\ufe0f",gu=l0+f0+c0+h0,yu="['’]",mu="["+gu+"]",p0="["+u0+"]",bu="\\d+",g0="["+hu+"]",wu="["+du+"]",vu="[^"+cu+gu+bu+hu+du+pu+"]",y0="\\ud83c[\\udffb-\\udfff]",m0="(?:"+p0+"|"+y0+")",b0="[^"+cu+"]",Eu="(?:\\ud83c[\\udde6-\\uddff]){2}",xu="[\\ud800-\\udbff][\\udc00-\\udfff]",Er="["+pu+"]",w0="\\u200d",Au="(?:"+wu+"|"+vu+")",v0="(?:"+Er+"|"+vu+")",Tu="(?:"+yu+"(?:d|ll|m|re|s|t|ve))?",Su="(?:"+yu+"(?:D|LL|M|RE|S|T|VE))?",_u=m0+"?",Ou="["+d0+"]?",E0="(?:"+w0+"(?:"+[b0,Eu,xu].join("|")+")"+Ou+_u+")*",x0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",A0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",T0=Ou+_u+E0,S0="(?:"+[g0,Eu,xu].join("|")+")"+T0,_0=RegExp([Er+"?"+wu+"+"+Tu+"(?="+[mu,Er,"$"].join("|")+")",v0+"+"+Su+"(?="+[mu,Er+Au,"$"].join("|")+")",Er+"?"+Au+"+"+Tu,Er+"+"+Su,A0,x0,bu,S0].join("|"),"g");function O0(e){return e.match(_0)||[]}function N0(e,t,r){return e=$r(e),t=t,t===void 0?i0(e)?O0(e):r0(e):e.match(t)||[]}var R0="['’]",I0=RegExp(R0,"g");function P0(e){return function(t){return Hg(N0(e0(t).replace(I0,"")),e,"")}}var F0=P0(function(e,t,r){return t=t.toLowerCase(),e+(r?qg(t):t)});const C0={complex:["tar.bz2","tar.gz","tar.xz"]},Ni=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Nu=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",B0=e=>Nu(e,0),Ru=e=>Nu(e,1),Iu=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(C0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},_n=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[F0(r)]=e[r]}),t};function xr(e,t=[]){var m,E,x;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||Ka.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=Iu({...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:B0(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",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:_n(e.props[ae.Audio]),location:_n(e.props[ae.Location]),image:_n(e.props[ae.Image]),photo:_n(e.props[ae.Photo]),extraProps:d,canUpload:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canDownload:function(){return this.permissions.indexOf(We.SecureView)===-1},canBeDeleted:function(){return this.permissions.indexOf(We.Deletable)>=0},canRename:function(){return this.permissions.indexOf(We.Renameable)>=0},canShare:function({ability:p}){return p.can("create-all","Share")&&this.permissions.indexOf(We.Shareable)>=0},canCreate:function(){return this.permissions.indexOf(We.FolderCreateable)>=0},canEditTags:function(){return this.permissions.indexOf(We.Updateable)>=0||this.permissions.indexOf(We.FileUpdateable)>=0},isMounted:function(){return this.permissions.indexOf(We.Mounted)>=0},isReceivedShare:function(){return this.permissions.indexOf(We.Shared)>=0},isShareRoot(){return e.props[ae.ShareRoot]?e.filename.split("/").length===3:!1},canDeny:function(){return this.permissions.indexOf(We.Deny)>=0},getDomSelector:()=>Ni(n)};return Object.defineProperty(T,"nodeId",{get(){return Ru(this.id)}}),T}function L0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Iu({name:r,type:e.type}),o=za.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:za.basename(r),extension:n,path:Se(e.props[ae.TrashbinOriginalLocation],{leadingSlash:!0}),id:o,parentFolderId:e.props[ae.FileParent],webDavPath:"",canUpload:()=>!1,canDownload:()=>!1,canBeDeleted:()=>!0,canBeRestored:function(){return!0},canRename:()=>!1,canShare:()=>!1,canCreate:()=>!1,isMounted:()=>!1,isReceivedShare:()=>!1,getDomSelector:()=>Ni(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 Pu=e=>(e==null?void 0:e.driveType)==="personal",On=e=>(e==null?void 0:e.driveType)==="public";function U0(e,t){return Se("spaces",e,t,{leadingSlash:!0})}function Ri(e,t=""){return Se("spaces","trash-bin",e,t,{leadingSlash:!0})}function j0(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=zd(e.id)):(l=`public/${e.id}`,s=Kd(e.id)),Object.assign(k0({...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 k0(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=Se(e.webDavPath||U0(e.id),{leadingSlash:!0}),a=Se(e.serverUrl,"remote.php/dav",i),u=Se(e.webDavTrashPath||Ri(e.id),{leadingSlash:!0}),f=Se(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:M0(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,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 Pu(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 Pu(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:()=>Ni(e.id),getDriveAliasAndItem({path:p}){return Se(this.driveAlias,p,{leadingSlash:!1})},getWebDavUrl({path:p}){return Se(a,p)},getWebDavTrashUrl({path:p}){return Se(f,p)},isMember(p){var h;return On(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 Ru(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 M0(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 D0=(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 pg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ii={},Nn={exports:{}},Fu;function Pi(){if(Fu)return Nn.exports;Fu=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)}Nn.exports=i,Nn.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 Nn.exports}var Rn={exports:{}},Cu;function ur(){return Cu||(Cu=1,typeof Object.create=="function"?Rn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Rn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Rn.exports}var Fi,Bu;function Lu(){return Bu||(Bu=1,Fi=Pi().EventEmitter),Fi}var Ci={},Uu;function In(){return Uu||(Uu=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
- * The buffer module from node.js, for the browser.
13
- *
14
- * @author Feross Aboukhadijeh <https://feross.org>
15
- * @license MIT
16
- */(function(h){const g=r,y=x,w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;h.Buffer=L,h.SlowBuffer=Q,h.INSPECT_MAX_BYTES=50;const A=2147483647;h.kMaxLength=A;const{Uint8Array:P,ArrayBuffer:I,SharedArrayBuffer:O}=globalThis;L.TYPED_ARRAY_SUPPORT=j(),!L.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 j(){try{const C=new P(1),v={foo:function(){return 42}};return Object.setPrototypeOf(v,P.prototype),Object.setPrototypeOf(C,v),C.foo()===42}catch{return!1}}Object.defineProperty(L.prototype,"parent",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.buffer}}),Object.defineProperty(L.prototype,"offset",{enumerable:!0,get:function(){if(L.isBuffer(this))return this.byteOffset}});function G(C){if(C>A)throw new RangeError('The value "'+C+'" is invalid for option "size"');const v=new P(C);return Object.setPrototypeOf(v,L.prototype),v}function L(C,v,_){if(typeof C=="number"){if(typeof v=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(C)}return D(C,v,_)}L.poolSize=8192;function D(C,v,_){if(typeof C=="string")return fe(C,v);if(I.isView(C))return ce(C);if(C==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);if(Lt(C,I)||C&&Lt(C.buffer,I)||typeof O<"u"&&(Lt(C,O)||C&&Lt(C.buffer,O)))return Ee(C,v,_);if(typeof C=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const M=C.valueOf&&C.valueOf();if(M!=null&&M!==C)return L.from(M,v,_);const W=be(C);if(W)return W;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof C[Symbol.toPrimitive]=="function")return L.from(C[Symbol.toPrimitive]("string"),v,_);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C)}L.from=function(C,v,_){return D(C,v,_)},Object.setPrototypeOf(L.prototype,P.prototype),Object.setPrototypeOf(L,P);function oe(C){if(typeof C!="number")throw new TypeError('"size" argument must be of type number');if(C<0)throw new RangeError('The value "'+C+'" is invalid for option "size"')}function re(C,v,_){return oe(C),C<=0?G(C):v!==void 0?typeof _=="string"?G(C).fill(v,_):G(C).fill(v):G(C)}L.alloc=function(C,v,_){return re(C,v,_)};function he(C){return oe(C),G(C<0?0:K(C)|0)}L.allocUnsafe=function(C){return he(C)},L.allocUnsafeSlow=function(C){return he(C)};function fe(C,v){if((typeof v!="string"||v==="")&&(v="utf8"),!L.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const _=ee(C,v)|0;let M=G(_);const W=M.write(C,v);return W!==_&&(M=M.slice(0,W)),M}function ge(C){const v=C.length<0?0:K(C.length)|0,_=G(v);for(let M=0;M<v;M+=1)_[M]=C[M]&255;return _}function ce(C){if(Lt(C,P)){const v=new P(C);return Ee(v.buffer,v.byteOffset,v.byteLength)}return ge(C)}function Ee(C,v,_){if(v<0||C.byteLength<v)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<v+(_||0))throw new RangeError('"length" is outside of buffer bounds');let M;return v===void 0&&_===void 0?M=new P(C):_===void 0?M=new P(C,v):M=new P(C,v,_),Object.setPrototypeOf(M,L.prototype),M}function be(C){if(L.isBuffer(C)){const v=K(C.length)|0,_=G(v);return _.length===0||C.copy(_,0,0,v),_}if(C.length!==void 0)return typeof C.length!="number"||zs(C.length)?G(0):ge(C);if(C.type==="Buffer"&&Array.isArray(C.data))return ge(C.data)}function K(C){if(C>=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return C|0}function Q(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(v){return v!=null&&v._isBuffer===!0&&v!==L.prototype},L.compare=function(v,_){if(Lt(v,P)&&(v=L.from(v,v.offset,v.byteLength)),Lt(_,P)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(v)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(v===_)return 0;let M=v.length,W=_.length;for(let X=0,ie=Math.min(M,W);X<ie;++X)if(v[X]!==_[X]){M=v[X],W=_[X];break}return M<W?-1:W<M?1:0},L.isEncoding=function(v){switch(String(v).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}},L.concat=function(v,_){if(!Array.isArray(v))throw new TypeError('"list" argument must be an Array of Buffers');if(v.length===0)return L.alloc(0);let M;if(_===void 0)for(_=0,M=0;M<v.length;++M)_+=v[M].length;const W=L.allocUnsafe(_);let X=0;for(M=0;M<v.length;++M){let ie=v[M];if(Lt(ie,P))X+ie.length>W.length?(L.isBuffer(ie)||(ie=L.from(ie)),ie.copy(W,X)):P.prototype.set.call(W,ie,X);else if(L.isBuffer(ie))ie.copy(W,X);else throw new TypeError('"list" argument must be an Array of Buffers');X+=ie.length}return W};function ee(C,v){if(L.isBuffer(C))return C.length;if(I.isView(C)||Lt(C,I))return C.byteLength;if(typeof C!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof C);const _=C.length,M=arguments.length>2&&arguments[2]===!0;if(!M&&_===0)return 0;let W=!1;for(;;)switch(v){case"ascii":case"latin1":case"binary":return _;case"utf8":case"utf-8":return Ue(C).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _*2;case"hex":return _>>>1;case"base64":return Re(C).length;default:if(W)return M?-1:Ue(C).length;v=(""+v).toLowerCase(),W=!0}}L.byteLength=ee;function ue(C,v,_){let M=!1;if((v===void 0||v<0)&&(v=0),v>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,v>>>=0,_<=v))return"";for(C||(C="utf8");;)switch(C){case"hex":return rt(this,v,_);case"utf8":case"utf-8":return pe(this,v,_);case"ascii":return Be(this,v,_);case"latin1":case"binary":return te(this,v,_);case"base64":return se(this,v,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Je(this,v,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function V(C,v,_){const M=C[v];C[v]=C[_],C[_]=M}L.prototype.swap16=function(){const v=this.length;if(v%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<v;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const v=this.length;if(v%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<v;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const v=this.length;if(v%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<v;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const v=this.length;return v===0?"":arguments.length===0?pe(this,0,v):ue.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(v){if(!L.isBuffer(v))throw new TypeError("Argument must be a Buffer");return this===v?!0:L.compare(this,v)===0},L.prototype.inspect=function(){let v="";const _=h.INSPECT_MAX_BYTES;return v=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(v+=" ... "),"<Buffer "+v+">"},w&&(L.prototype[w]=L.prototype.inspect),L.prototype.compare=function(v,_,M,W,X){if(Lt(v,P)&&(v=L.from(v,v.offset,v.byteLength)),!L.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof v);if(_===void 0&&(_=0),M===void 0&&(M=v?v.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||M>v.length||W<0||X>this.length)throw new RangeError("out of range index");if(W>=X&&_>=M)return 0;if(W>=X)return-1;if(_>=M)return 1;if(_>>>=0,M>>>=0,W>>>=0,X>>>=0,this===v)return 0;let ie=X-W,Ae=M-_;const Ge=Math.min(ie,Ae),De=this.slice(W,X),Ke=v.slice(_,M);for(let Ce=0;Ce<Ge;++Ce)if(De[Ce]!==Ke[Ce]){ie=De[Ce],Ae=Ke[Ce];break}return ie<Ae?-1:Ae<ie?1:0};function R(C,v,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,zs(_)&&(_=W?0:C.length-1),_<0&&(_=C.length+_),_>=C.length){if(W)return-1;_=C.length-1}else if(_<0)if(W)_=0;else return-1;if(typeof v=="string"&&(v=L.from(v,M)),L.isBuffer(v))return v.length===0?-1:N(C,v,_,M,W);if(typeof v=="number")return v=v&255,typeof P.prototype.indexOf=="function"?W?P.prototype.indexOf.call(C,v,_):P.prototype.lastIndexOf.call(C,v,_):N(C,[v],_,M,W);throw new TypeError("val must be string, number or Buffer")}function N(C,v,_,M,W){let X=1,ie=C.length,Ae=v.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||v.length<2)return-1;X=2,ie/=2,Ae/=2,_/=2}function Ge(Ke,Ce){return X===1?Ke[Ce]:Ke.readUInt16BE(Ce*X)}let De;if(W){let Ke=-1;for(De=_;De<ie;De++)if(Ge(C,De)===Ge(v,Ke===-1?0:De-Ke)){if(Ke===-1&&(Ke=De),De-Ke+1===Ae)return Ke*X}else Ke!==-1&&(De-=De-Ke),Ke=-1}else for(_+Ae>ie&&(_=ie-Ae),De=_;De>=0;De--){let Ke=!0;for(let Ce=0;Ce<Ae;Ce++)if(Ge(C,De+Ce)!==Ge(v,Ce)){Ke=!1;break}if(Ke)return De}return-1}L.prototype.includes=function(v,_,M){return this.indexOf(v,_,M)!==-1},L.prototype.indexOf=function(v,_,M){return R(this,v,_,M,!0)},L.prototype.lastIndexOf=function(v,_,M){return R(this,v,_,M,!1)};function q(C,v,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const X=v.length;M>X/2&&(M=X/2);let ie;for(ie=0;ie<M;++ie){const Ae=parseInt(v.substr(ie*2,2),16);if(zs(Ae))return ie;C[_+ie]=Ae}return ie}function $(C,v,_,M){return Jn(Ue(v,C.length-_),C,_,M)}function B(C,v,_,M){return Jn(je(v),C,_,M)}function U(C,v,_,M){return Jn(Re(v),C,_,M)}function Y(C,v,_,M){return Jn(Me(v,C.length-_),C,_,M)}L.prototype.write=function(v,_,M,W){if(_===void 0)W="utf8",M=this.length,_=0;else if(M===void 0&&typeof _=="string")W=_,M=this.length,_=0;else if(isFinite(_))_=_>>>0,isFinite(M)?(M=M>>>0,W===void 0&&(W="utf8")):(W=M,M=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const X=this.length-_;if((M===void 0||M>X)&&(M=X),v.length>0&&(M<0||_<0)||_>this.length)throw new RangeError("Attempt to write outside buffer bounds");W||(W="utf8");let ie=!1;for(;;)switch(W){case"hex":return q(this,v,_,M);case"utf8":case"utf-8":return $(this,v,_,M);case"ascii":case"latin1":case"binary":return B(this,v,_,M);case"base64":return U(this,v,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,v,_,M);default:if(ie)throw new TypeError("Unknown encoding: "+W);W=(""+W).toLowerCase(),ie=!0}},L.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function se(C,v,_){return v===0&&_===C.length?g.fromByteArray(C):g.fromByteArray(C.slice(v,_))}function pe(C,v,_){_=Math.min(C.length,_);const M=[];let W=v;for(;W<_;){const X=C[W];let ie=null,Ae=X>239?4:X>223?3:X>191?2:1;if(W+Ae<=_){let Ge,De,Ke,Ce;switch(Ae){case 1:X<128&&(ie=X);break;case 2:Ge=C[W+1],(Ge&192)===128&&(Ce=(X&31)<<6|Ge&63,Ce>127&&(ie=Ce));break;case 3:Ge=C[W+1],De=C[W+2],(Ge&192)===128&&(De&192)===128&&(Ce=(X&15)<<12|(Ge&63)<<6|De&63,Ce>2047&&(Ce<55296||Ce>57343)&&(ie=Ce));break;case 4:Ge=C[W+1],De=C[W+2],Ke=C[W+3],(Ge&192)===128&&(De&192)===128&&(Ke&192)===128&&(Ce=(X&15)<<18|(Ge&63)<<12|(De&63)<<6|Ke&63,Ce>65535&&Ce<1114112&&(ie=Ce))}}ie===null?(ie=65533,Ae=1):ie>65535&&(ie-=65536,M.push(ie>>>10&1023|55296),ie=56320|ie&1023),M.push(ie),W+=Ae}return de(M)}const le=4096;function de(C){const v=C.length;if(v<=le)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<v;)_+=String.fromCharCode.apply(String,C.slice(M,M+=le));return _}function Be(C,v,_){let M="";_=Math.min(C.length,_);for(let W=v;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,v,_){let M="";_=Math.min(C.length,_);for(let W=v;W<_;++W)M+=String.fromCharCode(C[W]);return M}function rt(C,v,_){const M=C.length;(!v||v<0)&&(v=0),(!_||_<0||_>M)&&(_=M);let W="";for(let X=v;X<_;++X)W+=l1[C[X]];return W}function Je(C,v,_){const M=C.slice(v,_);let W="";for(let X=0;X<M.length-1;X+=2)W+=String.fromCharCode(M[X]+M[X+1]*256);return W}L.prototype.slice=function(v,_){const M=this.length;v=~~v,_=_===void 0?M:~~_,v<0?(v+=M,v<0&&(v=0)):v>M&&(v=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<v&&(_=v);const W=this.subarray(v,_);return Object.setPrototypeOf(W,L.prototype),W};function Oe(C,v,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+v>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(v,_,M){v=v>>>0,_=_>>>0,M||Oe(v,_,this.length);let W=this[v],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[v+ie]*X;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(v,_,M){v=v>>>0,_=_>>>0,M||Oe(v,_,this.length);let W=this[v+--_],X=1;for(;_>0&&(X*=256);)W+=this[v+--_]*X;return W},L.prototype.readUint8=L.prototype.readUInt8=function(v,_){return v=v>>>0,_||Oe(v,1,this.length),this[v]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(v,_){return v=v>>>0,_||Oe(v,2,this.length),this[v]|this[v+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(v,_){return v=v>>>0,_||Oe(v,2,this.length),this[v]<<8|this[v+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),(this[v]|this[v+1]<<8|this[v+2]<<16)+this[v+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),this[v]*16777216+(this[v+1]<<16|this[v+2]<<8|this[v+3])},L.prototype.readBigUInt64LE=Qt(function(v){v=v>>>0,H(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===void 0)&&z(v,this.length-8);const W=_+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24,X=this[++v]+this[++v]*2**8+this[++v]*2**16+M*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Qt(function(v){v=v>>>0,H(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===void 0)&&z(v,this.length-8);const W=_*2**24+this[++v]*2**16+this[++v]*2**8+this[++v],X=this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+M;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(v,_,M){v=v>>>0,_=_>>>0,M||Oe(v,_,this.length);let W=this[v],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[v+ie]*X;return X*=128,W>=X&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(v,_,M){v=v>>>0,_=_>>>0,M||Oe(v,_,this.length);let W=_,X=1,ie=this[v+--W];for(;W>0&&(X*=256);)ie+=this[v+--W]*X;return X*=128,ie>=X&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(v,_){return v=v>>>0,_||Oe(v,1,this.length),this[v]&128?(255-this[v]+1)*-1:this[v]},L.prototype.readInt16LE=function(v,_){v=v>>>0,_||Oe(v,2,this.length);const M=this[v]|this[v+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(v,_){v=v>>>0,_||Oe(v,2,this.length);const M=this[v+1]|this[v]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24},L.prototype.readInt32BE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]},L.prototype.readBigInt64LE=Qt(function(v){v=v>>>0,H(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===void 0)&&z(v,this.length-8);const W=this[v+4]+this[v+5]*2**8+this[v+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++v]*2**8+this[++v]*2**16+this[++v]*2**24)}),L.prototype.readBigInt64BE=Qt(function(v){v=v>>>0,H(v,"offset");const _=this[v],M=this[v+7];(_===void 0||M===void 0)&&z(v,this.length-8);const W=(_<<24)+this[++v]*2**16+this[++v]*2**8+this[++v];return(BigInt(W)<<BigInt(32))+BigInt(this[++v]*2**24+this[++v]*2**16+this[++v]*2**8+M)}),L.prototype.readFloatLE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),y.read(this,v,!0,23,4)},L.prototype.readFloatBE=function(v,_){return v=v>>>0,_||Oe(v,4,this.length),y.read(this,v,!1,23,4)},L.prototype.readDoubleLE=function(v,_){return v=v>>>0,_||Oe(v,8,this.length),y.read(this,v,!0,52,8)},L.prototype.readDoubleBE=function(v,_){return v=v>>>0,_||Oe(v,8,this.length),y.read(this,v,!1,52,8)};function Le(C,v,_,M,W,X){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(v>W||v<X)throw new RangeError('"value" argument is out of bounds');if(_+M>C.length)throw new RangeError("Index out of range")}L.prototype.writeUintLE=L.prototype.writeUIntLE=function(v,_,M,W){if(v=+v,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,v,_,M,Ae,0)}let X=1,ie=0;for(this[_]=v&255;++ie<M&&(X*=256);)this[_+ie]=v/X&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(v,_,M,W){if(v=+v,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,v,_,M,Ae,0)}let X=M-1,ie=1;for(this[_+X]=v&255;--X>=0&&(ie*=256);)this[_+X]=v/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,1,255,0),this[_]=v&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,65535,0),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,65535,0),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,4,4294967295,0),this[_+3]=v>>>24,this[_+2]=v>>>16,this[_+1]=v>>>8,this[_]=v&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,4,4294967295,0),this[_]=v>>>24,this[_+1]=v>>>16,this[_+2]=v>>>8,this[_+3]=v&255,_+4};function ft(C,v,_,M,W){k(v,M,W,C,_,7);let X=Number(v&BigInt(4294967295));C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X;let ie=Number(v>>BigInt(32)&BigInt(4294967295));return C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,ie=ie>>8,C[_++]=ie,_}function st(C,v,_,M,W){k(v,M,W,C,_,7);let X=Number(v&BigInt(4294967295));C[_+7]=X,X=X>>8,C[_+6]=X,X=X>>8,C[_+5]=X,X=X>>8,C[_+4]=X;let ie=Number(v>>BigInt(32)&BigInt(4294967295));return C[_+3]=ie,ie=ie>>8,C[_+2]=ie,ie=ie>>8,C[_+1]=ie,ie=ie>>8,C[_]=ie,_+8}L.prototype.writeBigUInt64LE=Qt(function(v,_=0){return ft(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Qt(function(v,_=0){return st(this,v,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(v,_,M,W){if(v=+v,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,v,_,M,Ge-1,-Ge)}let X=0,ie=1,Ae=0;for(this[_]=v&255;++X<M&&(ie*=256);)v<0&&Ae===0&&this[_+X-1]!==0&&(Ae=1),this[_+X]=(v/ie>>0)-Ae&255;return _+M},L.prototype.writeIntBE=function(v,_,M,W){if(v=+v,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,v,_,M,Ge-1,-Ge)}let X=M-1,ie=1,Ae=0;for(this[_+X]=v&255;--X>=0&&(ie*=256);)v<0&&Ae===0&&this[_+X+1]!==0&&(Ae=1),this[_+X]=(v/ie>>0)-Ae&255;return _+M},L.prototype.writeInt8=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,1,127,-128),v<0&&(v=255+v+1),this[_]=v&255,_+1},L.prototype.writeInt16LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,32767,-32768),this[_]=v&255,this[_+1]=v>>>8,_+2},L.prototype.writeInt16BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,2,32767,-32768),this[_]=v>>>8,this[_+1]=v&255,_+2},L.prototype.writeInt32LE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,4,2147483647,-2147483648),this[_]=v&255,this[_+1]=v>>>8,this[_+2]=v>>>16,this[_+3]=v>>>24,_+4},L.prototype.writeInt32BE=function(v,_,M){return v=+v,_=_>>>0,M||Le(this,v,_,4,2147483647,-2147483648),v<0&&(v=4294967295+v+1),this[_]=v>>>24,this[_+1]=v>>>16,this[_+2]=v>>>8,this[_+3]=v&255,_+4},L.prototype.writeBigInt64LE=Qt(function(v,_=0){return ft(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Qt(function(v,_=0){return st(this,v,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ot(C,v,_,M,W,X){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Rt(C,v,_,M,W){return v=+v,_=_>>>0,W||Ot(C,v,_,4),y.write(C,v,_,M,23,4),_+4}L.prototype.writeFloatLE=function(v,_,M){return Rt(this,v,_,!0,M)},L.prototype.writeFloatBE=function(v,_,M){return Rt(this,v,_,!1,M)};function it(C,v,_,M,W){return v=+v,_=_>>>0,W||Ot(C,v,_,8),y.write(C,v,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(v,_,M){return it(this,v,_,!0,M)},L.prototype.writeDoubleBE=function(v,_,M){return it(this,v,_,!1,M)},L.prototype.copy=function(v,_,M,W){if(!L.isBuffer(v))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=v.length&&(_=v.length),_||(_=0),W>0&&W<M&&(W=M),W===M||v.length===0||this.length===0)return 0;if(_<0)throw new RangeError("targetStart out of bounds");if(M<0||M>=this.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("sourceEnd out of bounds");W>this.length&&(W=this.length),v.length-_<W-M&&(W=v.length-_+M);const X=W-M;return this===v&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,M,W):P.prototype.set.call(v,this.subarray(M,W),_),X},L.prototype.fill=function(v,_,M,W){if(typeof v=="string"){if(typeof _=="string"?(W=_,_=0,M=this.length):typeof M=="string"&&(W=M,M=this.length),W!==void 0&&typeof W!="string")throw new TypeError("encoding must be a string");if(typeof W=="string"&&!L.isEncoding(W))throw new TypeError("Unknown encoding: "+W);if(v.length===1){const ie=v.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(v=ie)}}else typeof v=="number"?v=v&255:typeof v=="boolean"&&(v=Number(v));if(_<0||this.length<_||this.length<M)throw new RangeError("Out of range index");if(M<=_)return this;_=_>>>0,M=M===void 0?this.length:M>>>0,v||(v=0);let X;if(typeof v=="number")for(X=_;X<M;++X)this[X]=v;else{const ie=L.isBuffer(v)?v:L.from(v,W),Ae=ie.length;if(Ae===0)throw new TypeError('The value "'+v+'" is invalid for argument "value"');for(X=0;X<M-_;++X)this[X+_]=ie[X%Ae]}return this};const Zt={};function F(C,v,_){Zt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:v.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${C}]`,this.stack,delete this.name}get code(){return C}set code(W){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:W,writable:!0})}toString(){return`${this.name} [${C}]: ${this.message}`}}}F("ERR_BUFFER_OUT_OF_BOUNDS",function(C){return C?`${C} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(C,v){return`The "${C}" argument must be of type number. Received type ${typeof v}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,v,_){let M=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=b(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=b(W)),W+="n"),M+=` It must be ${v}. Received ${W}`,M},RangeError);function b(C){let v="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)v=`_${C.slice(_-3,_)}${v}`;return`${C.slice(0,_)}${v}`}function S(C,v,_){H(v,"offset"),(C[v]===void 0||C[v+_]===void 0)&&z(v,C.length-(_+1))}function k(C,v,_,M,W,X){if(C>_||C<v){const ie=typeof v=="bigint"?"n":"";let Ae;throw v===0||v===BigInt(0)?Ae=`>= 0${ie} and < 2${ie} ** ${(X+1)*8}${ie}`:Ae=`>= -(2${ie} ** ${(X+1)*8-1}${ie}) and < 2 ** ${(X+1)*8-1}${ie}`,new Zt.ERR_OUT_OF_RANGE("value",Ae,C)}S(M,W,X)}function H(C,v){if(typeof C!="number")throw new Zt.ERR_INVALID_ARG_TYPE(v,"number",C)}function z(C,v,_){throw Math.floor(C)!==C?(H(C,_),new Zt.ERR_OUT_OF_RANGE("offset","an integer",C)):v<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${v}`,C)}const ne=/[^+/0-9A-Za-z-_]/g;function xe(C){if(C=C.split("=")[0],C=C.trim().replace(ne,""),C.length<2)return"";for(;C.length%4!==0;)C=C+"=";return C}function Ue(C,v){v=v||1/0;let _;const M=C.length;let W=null;const X=[];for(let ie=0;ie<M;++ie){if(_=C.charCodeAt(ie),_>55295&&_<57344){if(!W){if(_>56319){(v-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===M){(v-=3)>-1&&X.push(239,191,189);continue}W=_;continue}if(_<56320){(v-=3)>-1&&X.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(v-=3)>-1&&X.push(239,191,189);if(W=null,_<128){if((v-=1)<0)break;X.push(_)}else if(_<2048){if((v-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((v-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((v-=4)<0)break;X.push(_>>18|240,_>>12&63|128,_>>6&63|128,_&63|128)}else throw new Error("Invalid code point")}return X}function je(C){const v=[];for(let _=0;_<C.length;++_)v.push(C.charCodeAt(_)&255);return v}function Me(C,v){let _,M,W;const X=[];for(let ie=0;ie<C.length&&!((v-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,X.push(W),X.push(M);return X}function Re(C){return g.toByteArray(xe(C))}function Jn(C,v,_,M){let W;for(W=0;W<M&&!(W+_>=v.length||W>=C.length);++W)v[W+_]=C[W];return W}function Lt(C,v){return C instanceof v||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===v.name}function zs(C){return C!==C}const l1=function(){const C="0123456789abcdef",v=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)v[M+W]=C[_]+C[W]}return v}();function Qt(C){return typeof BigInt>"u"?f1:C}function f1(){throw new Error("BigInt not supported")}})(t);const p=t.Buffer;e.Blob=t.Blob,e.BlobOptions=t.BlobOptions,e.Buffer=t.Buffer,e.File=t.File,e.FileOptions=t.FileOptions,e.INSPECT_MAX_BYTES=t.INSPECT_MAX_BYTES,e.SlowBuffer=t.SlowBuffer,e.TranscodeEncoding=t.TranscodeEncoding,e.atob=t.atob,e.btoa=t.btoa,e.constants=t.constants,e.default=p,e.isAscii=t.isAscii,e.isUtf8=t.isUtf8,e.kMaxLength=t.kMaxLength,e.kStringMaxLength=t.kStringMaxLength,e.resolveObjectURL=t.resolveObjectURL,e.transcode=t.transcode}(Ci)),Ci}var Bi={},Li={},Ui,ju;function ku(){return ju||(ju=1,Ui=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),Ui}var ji,Mu;function Pn(){if(Mu)return ji;Mu=1;var e=ku();return ji=function(){return e()&&!!Symbol.toStringTag},ji}var ki,Du;function $u(){return Du||(Du=1,ki=Object),ki}var Mi,qu;function $0(){return qu||(qu=1,Mi=Error),Mi}var Di,Hu;function q0(){return Hu||(Hu=1,Di=EvalError),Di}var $i,Vu;function H0(){return Vu||(Vu=1,$i=RangeError),$i}var qi,Wu;function V0(){return Wu||(Wu=1,qi=ReferenceError),qi}var Hi,Gu;function Ku(){return Gu||(Gu=1,Hi=SyntaxError),Hi}var Vi,zu;function qr(){return zu||(zu=1,Vi=TypeError),Vi}var Wi,Xu;function W0(){return Xu||(Xu=1,Wi=URIError),Wi}var Gi,Yu;function G0(){return Yu||(Yu=1,Gi=Math.abs),Gi}var Ki,Ju;function K0(){return Ju||(Ju=1,Ki=Math.floor),Ki}var zi,Zu;function z0(){return Zu||(Zu=1,zi=Math.max),zi}var Xi,Qu;function X0(){return Qu||(Qu=1,Xi=Math.min),Xi}var Yi,el;function Y0(){return el||(el=1,Yi=Math.pow),Yi}var Ji,tl;function J0(){return tl||(tl=1,Ji=Math.round),Ji}var Zi,rl;function Z0(){return rl||(rl=1,Zi=Number.isNaN||function(t){return t!==t}),Zi}var Qi,nl;function Q0(){if(nl)return Qi;nl=1;var e=Z0();return Qi=function(r){return e(r)||r===0?r:r<0?-1:1},Qi}var eo,il;function ey(){return il||(il=1,eo=Object.getOwnPropertyDescriptor),eo}var to,ol;function Ar(){if(ol)return to;ol=1;var e=ey();if(e)try{e([],"length")}catch{e=null}return to=e,to}var ro,sl;function Fn(){if(sl)return ro;sl=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ro=e,ro}var no,al;function ty(){if(al)return no;al=1;var e=typeof Symbol<"u"&&Symbol,t=ku();return no=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},no}var io,ul;function ll(){return ul||(ul=1,io=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),io}var oo,fl;function cl(){if(fl)return oo;fl=1;var e=$u();return oo=e.getPrototypeOf||null,oo}var so,hl;function ry(){if(hl)return so;hl=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(f,l){for(var s=[],c=0;c<f.length;c+=1)s[c]=f[c];for(var d=0;d<l.length;d+=1)s[d+f.length]=l[d];return s},i=function(f,l){for(var s=[],c=l,d=0;c<f.length;c+=1,d+=1)s[d]=f[c];return s},a=function(u,f){for(var l="",s=0;s<u.length;s+=1)l+=u[s],s+1<u.length&&(l+=f);return l};return so=function(f){var l=this;if(typeof l!="function"||t.apply(l)!==n)throw new TypeError(e+l);for(var s=i(arguments,1),c,d=function(){if(this instanceof c){var p=l.apply(this,o(s,arguments));return Object(p)===p?p:this}return l.apply(f,o(s,arguments))},T=r(0,l.length-s.length),m=[],E=0;E<T;E++)m[E]="$"+E;if(c=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var x=function(){};x.prototype=l.prototype,c.prototype=new x,x.prototype=null}return c},so}var ao,dl;function Hr(){if(dl)return ao;dl=1;var e=ry();return ao=Function.prototype.bind||e,ao}var uo,pl;function lo(){return pl||(pl=1,uo=Function.prototype.call),uo}var fo,gl;function co(){return gl||(gl=1,fo=Function.prototype.apply),fo}var ho,yl;function ny(){return yl||(yl=1,ho=typeof Reflect<"u"&&Reflect&&Reflect.apply),ho}var po,ml;function bl(){if(ml)return po;ml=1;var e=Hr(),t=co(),r=lo(),n=ny();return po=n||e.call(r,t),po}var go,wl;function yo(){if(wl)return go;wl=1;var e=Hr(),t=qr(),r=lo(),n=bl();return go=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},go}var mo,vl;function iy(){if(vl)return mo;vl=1;var e=yo(),t=Ar(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return mo=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(u){return i(u==null?u:o(u))}:!1,mo}var bo,El;function xl(){if(El)return bo;El=1;var e=ll(),t=cl(),r=iy();return bo=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,bo}var wo,Al;function Tl(){if(Al)return wo;Al=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Hr();return wo=r.call(e,t),wo}var vo,Sl;function _l(){if(Sl)return vo;Sl=1;var e,t=$u(),r=$0(),n=q0(),o=H0(),i=V0(),a=Ku(),u=qr(),f=W0(),l=G0(),s=K0(),c=z0(),d=X0(),T=Y0(),m=J0(),E=Q0(),x=Function,p=function(q){try{return x('"use strict"; return ('+q+").constructor;")()}catch{}},h=Ar(),g=Fn(),y=function(){throw new u},w=h?function(){try{return arguments.callee,y}catch{try{return h(arguments,"callee").get}catch{return y}}}():y,A=ty()(),P=xl(),I=cl(),O=ll(),j=co(),G=lo(),L={},D=typeof Uint8Array>"u"||!P?e:P(Uint8Array),oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":h,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&P?P(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":w,"%TypedArray%":D,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":G,"%Function.prototype.apply%":j,"%Object.defineProperty%":g,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":c,"%Math.min%":d,"%Math.pow%":T,"%Math.round%":m,"%Math.sign%":E,"%Reflect.getPrototypeOf%":O};if(P)try{null.error}catch(q){var re=P(P(q));oe["%Error.prototype%"]=re}var he=function q($){var B;if($==="%AsyncFunction%")B=p("async function () {}");else if($==="%GeneratorFunction%")B=p("function* () {}");else if($==="%AsyncGeneratorFunction%")B=p("async function* () {}");else if($==="%AsyncGenerator%"){var U=q("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if($==="%AsyncIteratorPrototype%"){var Y=q("%AsyncGenerator%");Y&&P&&(B=P(Y.prototype))}return oe[$]=B,B},fe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ge=Hr(),ce=Tl(),Ee=ge.call(G,Array.prototype.concat),be=ge.call(j,Array.prototype.splice),K=ge.call(G,String.prototype.replace),Q=ge.call(G,String.prototype.slice),ee=ge.call(G,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,R=function($){var B=Q($,0,1),U=Q($,-1);if(B==="%"&&U!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(U==="%"&&B!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Y=[];return K($,ue,function(se,pe,le,de){Y[Y.length]=le?K(de,V,"$1"):pe||se}),Y},N=function($,B){var U=$,Y;if(ce(fe,U)&&(Y=fe[U],U="%"+Y[0]+"%"),ce(oe,U)){var se=oe[U];if(se===L&&(se=he(U)),typeof se>"u"&&!B)throw new u("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:Y,name:U,value:se}}throw new a("intrinsic "+$+" does not exist!")};return vo=function($,B){if(typeof $!="string"||$.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new u('"allowMissing" argument must be a boolean');if(ee(/^%?[^%]*%?$/,$)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=R($),Y=U.length>0?U[0]:"",se=N("%"+Y+"%",B),pe=se.name,le=se.value,de=!1,Be=se.alias;Be&&(Y=Be[0],be(U,Ee([0,1],Be)));for(var te=1,rt=!0;te<U.length;te+=1){var Je=U[te],Oe=Q(Je,0,1),Le=Q(Je,-1);if((Oe==='"'||Oe==="'"||Oe==="`"||Le==='"'||Le==="'"||Le==="`")&&Oe!==Le)throw new a("property names with quotes must have matching quotes");if((Je==="constructor"||!rt)&&(de=!0),Y+="."+Je,pe="%"+Y+"%",ce(oe,pe))le=oe[pe];else if(le!=null){if(!(Je in le)){if(!B)throw new u("base intrinsic for "+$+" exists, but the property is not available.");return}if(h&&te+1>=U.length){var ft=h(le,Je);rt=!!ft,rt&&"get"in ft&&!("originalValue"in ft.get)?le=ft.get:le=le[Je]}else rt=ce(le,Je),le=le[Je];rt&&!de&&(oe[pe]=le)}}return le},vo}var Eo,Ol;function Vr(){if(Ol)return Eo;Ol=1;var e=_l(),t=yo(),r=t([e("%String.prototype.indexOf%")]);return Eo=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},Eo}var xo,Nl;function oy(){if(Nl)return xo;Nl=1;var e=Pn()(),t=Vr(),r=t("Object.prototype.toString"),n=function(u){return e&&u&&typeof u=="object"&&Symbol.toStringTag in u?!1:r(u)==="[object Arguments]"},o=function(u){return n(u)?!0:u!==null&&typeof u=="object"&&"length"in u&&typeof u.length=="number"&&u.length>=0&&r(u)!=="[object Array]"&&"callee"in u&&r(u.callee)==="[object Function]"},i=function(){return n(arguments)}();return n.isLegacyArguments=o,xo=i?n:o,xo}var Ao,Rl;function sy(){if(Rl)return Ao;Rl=1;var e=Vr(),t=Pn()(),r=Tl(),n=Ar(),o;if(t){var i=e("RegExp.prototype.exec"),a={},u=function(){throw a},f={toString:u,valueOf:u};typeof Symbol.toPrimitive=="symbol"&&(f[Symbol.toPrimitive]=u),o=function(d){if(!d||typeof d!="object")return!1;var T=n(d,"lastIndex"),m=T&&r(T,"value");if(!m)return!1;try{i(d,f)}catch(E){return E===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(d){return!d||typeof d!="object"&&typeof d!="function"?!1:l(d)===s}}return Ao=o,Ao}var To,Il;function ay(){if(Il)return To;Il=1;var e=Vr(),t=sy(),r=e("RegExp.prototype.exec"),n=qr();return To=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},To}var So,Pl;function uy(){if(Pl)return So;Pl=1;var e=Vr(),t=ay(),r=t(/^\s*(?:function)?\*/),n=Pn()(),o=xl(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},f;return So=function(s){if(typeof s!="function")return!1;if(r(a(s)))return!0;if(!n){var c=i(s);return c==="[object GeneratorFunction]"}if(!o)return!1;if(typeof f>"u"){var d=u();f=d?o(d):!1}return o(s)===f},So}var _o,Fl;function ly(){if(Fl)return _o;Fl=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(h){h!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(g){try{var y=e.call(g);return o.test(y)}catch{return!1}},a=function(g){try{return i(g)?!1:(e.call(g),!0)}catch{return!1}},u=Object.prototype.toString,f="[object Object]",l="[object Function]",s="[object GeneratorFunction]",c="[object HTMLAllCollection]",d="[object HTML document.all class]",T="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,E=!(0 in[,]),x=function(){return!1};if(typeof document=="object"){var p=document.all;u.call(p)===u.call(document.all)&&(x=function(g){if((E||!g)&&(typeof g>"u"||typeof g=="object"))try{var y=u.call(g);return(y===c||y===d||y===T||y===f)&&g("")==null}catch{}return!1})}return _o=t?function(g){if(x(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;try{t(g,null,r)}catch(y){if(y!==n)return!1}return!i(g)&&a(g)}:function(g){if(x(g))return!0;if(!g||typeof g!="function"&&typeof g!="object")return!1;if(m)return a(g);if(i(g))return!1;var y=u.call(g);return y!==l&&y!==s&&!/^\[object HTML/.test(y)?!1:a(g)},_o}var Oo,Cl;function fy(){if(Cl)return Oo;Cl=1;var e=ly(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(f,l,s){for(var c=0,d=f.length;c<d;c++)r.call(f,c)&&(s==null?l(f[c],c,f):l.call(s,f[c],c,f))},o=function(f,l,s){for(var c=0,d=f.length;c<d;c++)s==null?l(f.charAt(c),c,f):l.call(s,f.charAt(c),c,f)},i=function(f,l,s){for(var c in f)r.call(f,c)&&(s==null?l(f[c],c,f):l.call(s,f[c],c,f))};function a(u){return t.call(u)==="[object Array]"}return Oo=function(f,l,s){if(!e(l))throw new TypeError("iterator must be a function");var c;arguments.length>=3&&(c=s),a(f)?n(f,l,c):typeof f=="string"?o(f,l,c):i(f,l,c)},Oo}var No,Bl;function cy(){return Bl||(Bl=1,No=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),No}var Ro,Ll;function hy(){if(Ll)return Ro;Ll=1;var e=cy(),t=typeof globalThis>"u"?Te:globalThis;return Ro=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Ro}var Io={exports:{}},Po,Ul;function dy(){if(Ul)return Po;Ul=1;var e=Fn(),t=Ku(),r=qr(),n=Ar();return Po=function(i,a,u){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,d=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&d?d.configurable:!s,enumerable:f===null&&d?d.enumerable:!f,value:u,writable:l===null&&d?d.writable:!l});else if(c||!f&&!l&&!s)i[a]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Po}var Fo,jl;function py(){if(jl)return Fo;jl=1;var e=Fn(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Fo=t,Fo}var Co,kl;function gy(){if(kl)return Co;kl=1;var e=_l(),t=dy(),r=py()(),n=Ar(),o=qr(),i=e("%Math.floor%");return Co=function(u,f){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||i(f)!==f)throw new o("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],s=!0,c=!0;if("length"in u&&n){var d=n(u,"length");d&&!d.configurable&&(s=!1),d&&!d.writable&&(c=!1)}return(s||c||!l)&&(r?t(u,"length",f,!0,!0):t(u,"length",f)),u},Co}var Bo,Ml;function yy(){if(Ml)return Bo;Ml=1;var e=Hr(),t=co(),r=bl();return Bo=function(){return r(e,t,arguments)},Bo}var Dl;function my(){return Dl||(Dl=1,function(e){var t=gy(),r=Fn(),n=yo(),o=yy();e.exports=function(a){var u=n(arguments),f=a.length-(arguments.length-1);return t(u,1+(f>0?f:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(Io)),Io.exports}var Lo,$l;function ql(){if($l)return Lo;$l=1;var e=fy(),t=hy(),r=my(),n=Vr(),o=Ar(),i=n("Object.prototype.toString"),a=Pn()(),u=typeof globalThis>"u"?Te:globalThis,f=t(),l=n("String.prototype.slice"),s=Object.getPrototypeOf,c=n("Array.prototype.indexOf",!0)||function(x,p){for(var h=0;h<x.length;h+=1)if(x[h]===p)return h;return-1},d={__proto__:null};a&&o&&s?e(f,function(E){var x=new u[E];if(Symbol.toStringTag in x){var p=s(x),h=o(p,Symbol.toStringTag);if(!h){var g=s(p);h=o(g,Symbol.toStringTag)}d["$"+E]=r(h.get)}}):e(f,function(E){var x=new u[E],p=x.slice||x.set;p&&(d["$"+E]=r(p))});var T=function(x){var p=!1;return e(d,function(h,g){if(!p)try{"$"+h(x)===g&&(p=l(g,1))}catch{}}),p},m=function(x){var p=!1;return e(d,function(h,g){if(!p)try{h(x),p=l(g,1)}catch{}}),p};return Lo=function(x){if(!x||typeof x!="object")return!1;if(!a){var p=l(i(x),8,-1);return c(f,p)>-1?p:p!=="Object"?!1:m(x)}return o?T(x):null},Lo}var Uo,Hl;function by(){if(Hl)return Uo;Hl=1;var e=ql();return Uo=function(r){return!!e(r)},Uo}var Vl;function wy(){return Vl||(Vl=1,function(e){var t=oy(),r=uy(),n=ql(),o=by();function i(te){return te.call.bind(te)}var a=typeof BigInt<"u",u=typeof Symbol<"u",f=i(Object.prototype.toString),l=i(Number.prototype.valueOf),s=i(String.prototype.valueOf),c=i(Boolean.prototype.valueOf);if(a)var d=i(BigInt.prototype.valueOf);if(u)var T=i(Symbol.prototype.valueOf);function m(te,rt){if(typeof te!="object")return!1;try{return rt(te),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function E(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=E;function x(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Q(te)}e.isArrayBufferView=x;function p(te){return n(te)==="Uint8Array"}e.isUint8Array=p;function h(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=h;function g(te){return n(te)==="Uint16Array"}e.isUint16Array=g;function y(te){return n(te)==="Uint32Array"}e.isUint32Array=y;function w(te){return n(te)==="Int8Array"}e.isInt8Array=w;function A(te){return n(te)==="Int16Array"}e.isInt16Array=A;function P(te){return n(te)==="Int32Array"}e.isInt32Array=P;function I(te){return n(te)==="Float32Array"}e.isFloat32Array=I;function O(te){return n(te)==="Float64Array"}e.isFloat64Array=O;function j(te){return n(te)==="BigInt64Array"}e.isBigInt64Array=j;function G(te){return n(te)==="BigUint64Array"}e.isBigUint64Array=G;function L(te){return f(te)==="[object Map]"}L.working=typeof Map<"u"&&L(new Map);function D(te){return typeof Map>"u"?!1:L.working?L(te):te instanceof Map}e.isMap=D;function oe(te){return f(te)==="[object Set]"}oe.working=typeof Set<"u"&&oe(new Set);function re(te){return typeof Set>"u"?!1:oe.working?oe(te):te instanceof Set}e.isSet=re;function he(te){return f(te)==="[object WeakMap]"}he.working=typeof WeakMap<"u"&&he(new WeakMap);function fe(te){return typeof WeakMap>"u"?!1:he.working?he(te):te instanceof WeakMap}e.isWeakMap=fe;function ge(te){return f(te)==="[object WeakSet]"}ge.working=typeof WeakSet<"u"&&ge(new WeakSet);function ce(te){return ge(te)}e.isWeakSet=ce;function Ee(te){return f(te)==="[object ArrayBuffer]"}Ee.working=typeof ArrayBuffer<"u"&&Ee(new ArrayBuffer);function be(te){return typeof ArrayBuffer>"u"?!1:Ee.working?Ee(te):te instanceof ArrayBuffer}e.isArrayBuffer=be;function K(te){return f(te)==="[object DataView]"}K.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&K(new DataView(new ArrayBuffer(1),0,1));function Q(te){return typeof DataView>"u"?!1:K.working?K(te):te instanceof DataView}e.isDataView=Q;var ee=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ue(te){return f(te)==="[object SharedArrayBuffer]"}function V(te){return typeof ee>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new ee)),ue.working?ue(te):te instanceof ee)}e.isSharedArrayBuffer=V;function R(te){return f(te)==="[object AsyncFunction]"}e.isAsyncFunction=R;function N(te){return f(te)==="[object Map Iterator]"}e.isMapIterator=N;function q(te){return f(te)==="[object Set Iterator]"}e.isSetIterator=q;function $(te){return f(te)==="[object Generator]"}e.isGeneratorObject=$;function B(te){return f(te)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=B;function U(te){return m(te,l)}e.isNumberObject=U;function Y(te){return m(te,s)}e.isStringObject=Y;function se(te){return m(te,c)}e.isBooleanObject=se;function pe(te){return a&&m(te,d)}e.isBigIntObject=pe;function le(te){return u&&m(te,T)}e.isSymbolObject=le;function de(te){return U(te)||Y(te)||se(te)||pe(te)||le(te)}e.isBoxedPrimitive=de;function Be(te){return typeof Uint8Array<"u"&&(be(te)||V(te))}e.isAnyArrayBuffer=Be,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(te){Object.defineProperty(e,te,{enumerable:!1,value:function(){throw new Error(te+" is not supported in userland")}})})}(Li)),Li}var jo,Wl;function vy(){return Wl||(Wl=1,jo=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),jo}var Gl;function Kl(){return Gl||(Gl=1,function(e){var t=Object.getOwnPropertyDescriptors||function(Q){for(var ee=Object.keys(Q),ue={},V=0;V<ee.length;V++)ue[ee[V]]=Object.getOwnPropertyDescriptor(Q,ee[V]);return ue},r=/%[sdj%]/g;e.format=function(K){if(!w(K)){for(var Q=[],ee=0;ee<arguments.length;ee++)Q.push(a(arguments[ee]));return Q.join(" ")}for(var ee=1,ue=arguments,V=ue.length,R=String(K).replace(r,function(q){if(q==="%%")return"%";if(ee>=V)return q;switch(q){case"%s":return String(ue[ee++]);case"%d":return Number(ue[ee++]);case"%j":try{return JSON.stringify(ue[ee++])}catch{return"[Circular]"}default:return q}}),N=ue[ee];ee<V;N=ue[++ee])h(N)||!O(N)?R+=" "+N:R+=" "+a(N);return R},e.deprecate=function(K,Q){if(typeof me<"u"&&me.noDeprecation===!0)return K;if(typeof me>"u")return function(){return e.deprecate(K,Q).apply(this,arguments)};var ee=!1;function ue(){if(!ee){if(me.throwDeprecation)throw new Error(Q);me.traceDeprecation?console.trace(Q):console.error(Q),ee=!0}return K.apply(this,arguments)}return ue};var n={},o=/^$/;if(me.env.NODE_DEBUG){var i=me.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(K){if(K=K.toUpperCase(),!n[K])if(o.test(K)){var Q=me.pid;n[K]=function(){var ee=e.format.apply(e,arguments);console.error("%s %d: %s",K,Q,ee)}}else n[K]=function(){};return n[K]};function a(K,Q){var ee={seen:[],stylize:f};return arguments.length>=3&&(ee.depth=arguments[2]),arguments.length>=4&&(ee.colors=arguments[3]),p(Q)?ee.showHidden=Q:Q&&e._extend(ee,Q),P(ee.showHidden)&&(ee.showHidden=!1),P(ee.depth)&&(ee.depth=2),P(ee.colors)&&(ee.colors=!1),P(ee.customInspect)&&(ee.customInspect=!0),ee.colors&&(ee.stylize=u),s(ee,K,ee.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(K,Q){var ee=a.styles[Q];return ee?"\x1B["+a.colors[ee][0]+"m"+K+"\x1B["+a.colors[ee][1]+"m":K}function f(K,Q){return K}function l(K){var Q={};return K.forEach(function(ee,ue){Q[ee]=!0}),Q}function s(K,Q,ee){if(K.customInspect&&Q&&L(Q.inspect)&&Q.inspect!==e.inspect&&!(Q.constructor&&Q.constructor.prototype===Q)){var ue=Q.inspect(ee,K);return w(ue)||(ue=s(K,ue,ee)),ue}var V=c(K,Q);if(V)return V;var R=Object.keys(Q),N=l(R);if(K.showHidden&&(R=Object.getOwnPropertyNames(Q)),G(Q)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return d(Q);if(R.length===0){if(L(Q)){var q=Q.name?": "+Q.name:"";return K.stylize("[Function"+q+"]","special")}if(I(Q))return K.stylize(RegExp.prototype.toString.call(Q),"regexp");if(j(Q))return K.stylize(Date.prototype.toString.call(Q),"date");if(G(Q))return d(Q)}var $="",B=!1,U=["{","}"];if(x(Q)&&(B=!0,U=["[","]"]),L(Q)){var Y=Q.name?": "+Q.name:"";$=" [Function"+Y+"]"}if(I(Q)&&($=" "+RegExp.prototype.toString.call(Q)),j(Q)&&($=" "+Date.prototype.toUTCString.call(Q)),G(Q)&&($=" "+d(Q)),R.length===0&&(!B||Q.length==0))return U[0]+$+U[1];if(ee<0)return I(Q)?K.stylize(RegExp.prototype.toString.call(Q),"regexp"):K.stylize("[Object]","special");K.seen.push(Q);var se;return B?se=T(K,Q,ee,N,R):se=R.map(function(pe){return m(K,Q,ee,N,pe,B)}),K.seen.pop(),E(se,$,U)}function c(K,Q){if(P(Q))return K.stylize("undefined","undefined");if(w(Q)){var ee="'"+JSON.stringify(Q).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return K.stylize(ee,"string")}if(y(Q))return K.stylize(""+Q,"number");if(p(Q))return K.stylize(""+Q,"boolean");if(h(Q))return K.stylize("null","null")}function d(K){return"["+Error.prototype.toString.call(K)+"]"}function T(K,Q,ee,ue,V){for(var R=[],N=0,q=Q.length;N<q;++N)ge(Q,String(N))?R.push(m(K,Q,ee,ue,String(N),!0)):R.push("");return V.forEach(function($){$.match(/^\d+$/)||R.push(m(K,Q,ee,ue,$,!0))}),R}function m(K,Q,ee,ue,V,R){var N,q,$;if($=Object.getOwnPropertyDescriptor(Q,V)||{value:Q[V]},$.get?$.set?q=K.stylize("[Getter/Setter]","special"):q=K.stylize("[Getter]","special"):$.set&&(q=K.stylize("[Setter]","special")),ge(ue,V)||(N="["+V+"]"),q||(K.seen.indexOf($.value)<0?(h(ee)?q=s(K,$.value,null):q=s(K,$.value,ee-1),q.indexOf(`
17
- `)>-1&&(R?q=q.split(`
18
- `).map(function(B){return" "+B}).join(`
19
- `).slice(2):q=`
20
- `+q.split(`
21
- `).map(function(B){return" "+B}).join(`
22
- `))):q=K.stylize("[Circular]","special")),P(N)){if(R&&V.match(/^\d+$/))return q;N=JSON.stringify(""+V),N.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.slice(1,-1),N=K.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=K.stylize(N,"string"))}return N+": "+q}function E(K,Q,ee){var ue=K.reduce(function(V,R){return R.indexOf(`
23
- `)>=0,V+R.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?ee[0]+(Q===""?"":Q+`
24
- `)+" "+K.join(`,
25
- `)+" "+ee[1]:ee[0]+Q+" "+K.join(", ")+" "+ee[1]}e.types=wy();function x(K){return Array.isArray(K)}e.isArray=x;function p(K){return typeof K=="boolean"}e.isBoolean=p;function h(K){return K===null}e.isNull=h;function g(K){return K==null}e.isNullOrUndefined=g;function y(K){return typeof K=="number"}e.isNumber=y;function w(K){return typeof K=="string"}e.isString=w;function A(K){return typeof K=="symbol"}e.isSymbol=A;function P(K){return K===void 0}e.isUndefined=P;function I(K){return O(K)&&oe(K)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function O(K){return typeof K=="object"&&K!==null}e.isObject=O;function j(K){return O(K)&&oe(K)==="[object Date]"}e.isDate=j,e.types.isDate=j;function G(K){return O(K)&&(oe(K)==="[object Error]"||K instanceof Error)}e.isError=G,e.types.isNativeError=G;function L(K){return typeof K=="function"}e.isFunction=L;function D(K){return K===null||typeof K=="boolean"||typeof K=="number"||typeof K=="string"||typeof K=="symbol"||typeof K>"u"}e.isPrimitive=D,e.isBuffer=vy();function oe(K){return Object.prototype.toString.call(K)}function re(K){return K<10?"0"+K.toString(10):K.toString(10)}var he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function fe(){var K=new Date,Q=[re(K.getHours()),re(K.getMinutes()),re(K.getSeconds())].join(":");return[K.getDate(),he[K.getMonth()],Q].join(" ")}e.log=function(){console.log("%s - %s",fe(),e.format.apply(e,arguments))},e.inherits=ur(),e._extend=function(K,Q){if(!Q||!O(Q))return K;for(var ee=Object.keys(Q),ue=ee.length;ue--;)K[ee[ue]]=Q[ee[ue]];return K};function ge(K,Q){return Object.prototype.hasOwnProperty.call(K,Q)}var ce=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Q){if(typeof Q!="function")throw new TypeError('The "original" argument must be of type Function');if(ce&&Q[ce]){var ee=Q[ce];if(typeof ee!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,ce,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var ue,V,R=new Promise(function($,B){ue=$,V=B}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function($,B){$?V($):ue(B)});try{Q.apply(this,N)}catch($){V($)}return R}return Object.setPrototypeOf(ee,Object.getPrototypeOf(Q)),ce&&Object.defineProperty(ee,ce,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,t(Q))},e.promisify.custom=ce;function Ee(K,Q){if(!K){var ee=new Error("Promise was rejected with a falsy value");ee.reason=K,K=ee}return Q(K)}function be(K){if(typeof K!="function")throw new TypeError('The "original" argument must be of type Function');function Q(){for(var ee=[],ue=0;ue<arguments.length;ue++)ee.push(arguments[ue]);var V=ee.pop();if(typeof V!="function")throw new TypeError("The last argument must be of type Function");var R=this,N=function(){return V.apply(R,arguments)};K.apply(this,ee).then(function(q){me.nextTick(N.bind(null,null,q))},function(q){me.nextTick(Ee.bind(null,q,N))})}return Object.setPrototypeOf(Q,Object.getPrototypeOf(K)),Object.defineProperties(Q,t(K)),Q}e.callbackify=be}(Bi)),Bi}var ko,zl;function Ey(){if(zl)return ko;zl=1;function e(m,E){var x=Object.keys(m);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(m);E&&(p=p.filter(function(h){return Object.getOwnPropertyDescriptor(m,h).enumerable})),x.push.apply(x,p)}return x}function t(m){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?e(Object(x),!0).forEach(function(p){r(m,p,x[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(x)):e(Object(x)).forEach(function(p){Object.defineProperty(m,p,Object.getOwnPropertyDescriptor(x,p))})}return m}function r(m,E,x){return E=a(E),E in m?Object.defineProperty(m,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):m[E]=x,m}function n(m,E){if(!(m instanceof E))throw new TypeError("Cannot call a class as a function")}function o(m,E){for(var x=0;x<E.length;x++){var p=E[x];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,a(p.key),p)}}function i(m,E,x){return E&&o(m.prototype,E),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var E=u(m,"string");return typeof E=="symbol"?E:String(E)}function u(m,E){if(typeof m!="object"||m===null)return m;var x=m[Symbol.toPrimitive];if(x!==void 0){var p=x.call(m,E);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var f=In(),l=f.Buffer,s=Kl(),c=s.inspect,d=c&&c.custom||"inspect";function T(m,E,x){l.prototype.copy.call(m,E,x)}return ko=function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(x){var p={data:x,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(x){var p={data:x,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var p=this.head,h=""+p.data;p=p.next;)h+=x+p.data;return h}},{key:"concat",value:function(x){if(this.length===0)return l.alloc(0);for(var p=l.allocUnsafe(x>>>0),h=this.head,g=0;h;)T(h.data,p,g),g+=h.data.length,h=h.next;return p}},{key:"consume",value:function(x,p){var h;return x<this.head.data.length?(h=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?h=this.shift():h=p?this._getString(x):this._getBuffer(x),h}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var p=this.head,h=1,g=p.data;for(x-=g.length;p=p.next;){var y=p.data,w=x>y.length?y.length:x;if(w===y.length?g+=y:g+=y.slice(0,x),x-=w,x===0){w===y.length?(++h,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=y.slice(w));break}++h}return this.length-=h,g}},{key:"_getBuffer",value:function(x){var p=l.allocUnsafe(x),h=this.head,g=1;for(h.data.copy(p),x-=h.data.length;h=h.next;){var y=h.data,w=x>y.length?y.length:x;if(y.copy(p,p.length-x,0,w),x-=w,x===0){w===y.length?(++g,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=y.slice(w));break}++g}return this.length-=g,p}},{key:d,value:function(x,p){return c(this,t(t({},p),{},{depth:0,customInspect:!1}))}}]),m}(),ko}var Mo,Xl;function Yl(){if(Xl)return Mo;Xl=1;function e(a,u){var f=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(u?u(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,me.nextTick(o,this,a)):me.nextTick(o,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(c){!u&&c?f._writableState?f._writableState.errorEmitted?me.nextTick(r,f):(f._writableState.errorEmitted=!0,me.nextTick(t,f,c)):me.nextTick(t,f,c):u?(me.nextTick(r,f),u(c)):me.nextTick(r,f)}),this)}function t(a,u){o(a,u),r(a)}function r(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(a,u){a.emit("error",u)}function i(a,u){var f=a._readableState,l=a._writableState;f&&f.autoDestroy||l&&l.autoDestroy?a.destroy(u):a.emit("error",u)}return Mo={destroy:e,undestroy:n,errorOrDestroy:i},Mo}var Do={},Jl;function Tr(){if(Jl)return Do;Jl=1;function e(u,f){u.prototype=Object.create(f.prototype),u.prototype.constructor=u,u.__proto__=f}var t={};function r(u,f,l){l||(l=Error);function s(d,T,m){return typeof f=="string"?f:f(d,T,m)}var c=function(d){e(T,d);function T(m,E,x){return d.call(this,s(m,E,x))||this}return T}(l);c.prototype.name=l.name,c.prototype.code=u,t[u]=c}function n(u,f){if(Array.isArray(u)){var l=u.length;return u=u.map(function(s){return String(s)}),l>2?"one of ".concat(f," ").concat(u.slice(0,l-1).join(", "),", or ")+u[l-1]:l===2?"one of ".concat(f," ").concat(u[0]," or ").concat(u[1]):"of ".concat(f," ").concat(u[0])}else return"of ".concat(f," ").concat(String(u))}function o(u,f,l){return u.substr(0,f.length)===f}function i(u,f,l){return(l===void 0||l>u.length)&&(l=u.length),u.substring(l-f.length,l)===f}function a(u,f,l){return typeof l!="number"&&(l=0),l+f.length>u.length?!1:u.indexOf(f,l)!==-1}return r("ERR_INVALID_OPT_VALUE",function(u,f){return'The value "'+f+'" is invalid for option "'+u+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(u,f,l){var s;typeof f=="string"&&o(f,"not ")?(s="must not be",f=f.replace(/^not /,"")):s="must be";var c;if(i(u," argument"))c="The ".concat(u," ").concat(s," ").concat(n(f,"type"));else{var d=a(u,".")?"property":"argument";c='The "'.concat(u,'" ').concat(d," ").concat(s," ").concat(n(f,"type"))}return c+=". Received type ".concat(typeof l),c},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Do.codes=t,Do}var $o,Zl;function Ql(){if(Zl)return $o;Zl=1;var e=Tr().codes.ERR_INVALID_OPT_VALUE;function t(n,o,i){return n.highWaterMark!=null?n.highWaterMark:o?n[i]:null}function r(n,o,i,a){var u=t(o,a,i);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var f=a?i:"highWaterMark";throw new e(f,u)}return Math.floor(u)}return n.objectMode?16:16*1024}return $o={getHighWaterMark:r},$o}var qo,ef;function xy(){if(ef)return qo;ef=1,qo=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function i(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return i}function t(r){try{if(!Te.localStorage)return!1}catch{return!1}var n=Te.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return qo}var Ho,tf;function rf(){if(tf)return Ho;tf=1,Ho=I;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ue(R,V)}}var t;I.WritableState=A;var r={deprecate:xy()},n=Lu(),o=In().Buffer,i=(typeof Te<"u"?Te:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(V){return o.from(V)}function u(V){return o.isBuffer(V)||V instanceof i}var f=Yl(),l=Ql(),s=l.getHighWaterMark,c=Tr().codes,d=c.ERR_INVALID_ARG_TYPE,T=c.ERR_METHOD_NOT_IMPLEMENTED,m=c.ERR_MULTIPLE_CALLBACK,E=c.ERR_STREAM_CANNOT_PIPE,x=c.ERR_STREAM_DESTROYED,p=c.ERR_STREAM_NULL_VALUES,h=c.ERR_STREAM_WRITE_AFTER_END,g=c.ERR_UNKNOWN_ENCODING,y=f.errorOrDestroy;ur()(I,n);function w(){}function A(V,R,N){t=t||Sr(),V=V||{},typeof N!="boolean"&&(N=R instanceof t),this.objectMode=!!V.objectMode,N&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",N),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var q=V.decodeStrings===!1;this.decodeStrings=!q,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function($){he(R,$)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}A.prototype.getBuffer=function(){for(var R=this.bufferedRequest,N=[];R;)N.push(R),R=R.next;return N},function(){try{Object.defineProperty(A.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(R){return P.call(this,R)?!0:this!==I?!1:R&&R._writableState instanceof A}})):P=function(R){return R instanceof this};function I(V){t=t||Sr();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(V);this._writableState=new A(V,this,R),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),n.call(this)}I.prototype.pipe=function(){y(this,new E)};function O(V,R){var N=new h;y(V,N),me.nextTick(R,N)}function j(V,R,N,q){var $;return N===null?$=new p:typeof N!="string"&&!R.objectMode&&($=new d("chunk",["string","Buffer"],N)),$?(y(V,$),me.nextTick(q,$),!1):!0}I.prototype.write=function(V,R,N){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(N=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof N!="function"&&(N=w),q.ending?O(this,N):(B||j(this,q,V,N))&&(q.pendingcb++,$=L(this,q,B,V,R,N)),$},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&ce(this,V))},I.prototype.setDefaultEncoding=function(R){if(typeof R=="string"&&(R=R.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((R+"").toLowerCase())>-1))throw new g(R);return this._writableState.defaultEncoding=R,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function G(V,R,N){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,N)),R}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,N,q,$,B){if(!N){var U=G(R,q,$);q!==U&&(N=!0,$="buffer",q=U)}var Y=R.objectMode?1:q.length;R.length+=Y;var se=R.length<R.highWaterMark;if(se||(R.needDrain=!0),R.writing||R.corked){var pe=R.lastBufferedRequest;R.lastBufferedRequest={chunk:q,encoding:$,isBuf:N,callback:B,next:null},pe?pe.next=R.lastBufferedRequest:R.bufferedRequest=R.lastBufferedRequest,R.bufferedRequestCount+=1}else D(V,R,!1,Y,q,$,B);return se}function D(V,R,N,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new x("write")):N?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function oe(V,R,N,q,$){--R.pendingcb,N?(me.nextTick($,q),me.nextTick(Q,V,R),V._writableState.errorEmitted=!0,y(V,q)):($(q),V._writableState.errorEmitted=!0,y(V,q),Q(V,R))}function re(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function he(V,R){var N=V._writableState,q=N.sync,$=N.writecb;if(typeof $!="function")throw new m;if(re(N),R)oe(V,N,q,R,$);else{var B=Ee(N)||V.destroyed;!B&&!N.corked&&!N.bufferProcessing&&N.bufferedRequest&&ce(V,N),q?me.nextTick(fe,V,N,B,$):fe(V,N,B,$)}}function fe(V,R,N,q){N||ge(V,R),R.pendingcb--,q(),Q(V,R)}function ge(V,R){R.length===0&&R.needDrain&&(R.needDrain=!1,V.emit("drain"))}function ce(V,R){R.bufferProcessing=!0;var N=R.bufferedRequest;if(V._writev&&N&&N.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=N;for(var U=0,Y=!0;N;)$[U]=N,N.isBuf||(Y=!1),N=N.next,U+=1;$.allBuffers=Y,D(V,R,!0,R.length,$,"",B.finish),R.pendingcb++,R.lastBufferedRequest=null,B.next?(R.corkedRequestsFree=B.next,B.next=null):R.corkedRequestsFree=new e(R),R.bufferedRequestCount=0}else{for(;N;){var se=N.chunk,pe=N.encoding,le=N.callback,de=R.objectMode?1:se.length;if(D(V,R,!1,de,se,pe,le),N=N.next,R.bufferedRequestCount--,R.writing)break}N===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=N,R.bufferProcessing=!1}I.prototype._write=function(V,R,N){N(new T("_write()"))},I.prototype._writev=null,I.prototype.end=function(V,R,N){var q=this._writableState;return typeof V=="function"?(N=V,V=null,R=null):typeof R=="function"&&(N=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||ee(this,q,N),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ee(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function be(V,R){V._final(function(N){R.pendingcb--,N&&y(V,N),R.prefinished=!0,V.emit("prefinish"),Q(V,R)})}function K(V,R){!R.prefinished&&!R.finalCalled&&(typeof V._final=="function"&&!R.destroyed?(R.pendingcb++,R.finalCalled=!0,me.nextTick(be,V,R)):(R.prefinished=!0,V.emit("prefinish")))}function Q(V,R){var N=Ee(R);if(N&&(K(V,R),R.pendingcb===0&&(R.finished=!0,V.emit("finish"),R.autoDestroy))){var q=V._readableState;(!q||q.autoDestroy&&q.endEmitted)&&V.destroy()}return N}function ee(V,R,N){R.ending=!0,Q(V,R),N&&(R.finished?me.nextTick(N):V.once("finish",N)),R.ended=!0,V.writable=!1}function ue(V,R,N){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(N),q=q.next}R.corkedRequestsFree.next=V}return Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(R){this._writableState&&(this._writableState.destroyed=R)}}),I.prototype.destroy=f.destroy,I.prototype._undestroy=f.undestroy,I.prototype._destroy=function(V,R){R(V)},Ho}var Vo,nf;function Sr(){if(nf)return Vo;nf=1;var e=Object.keys||function(l){var s=[];for(var c in l)s.push(c);return s};Vo=a;var t=cf(),r=rf();ur()(a,t);for(var n=e(r.prototype),o=0;o<n.length;o++){var i=n[o];a.prototype[i]||(a.prototype[i]=r.prototype[i])}function a(l){if(!(this instanceof a))return new a(l);t.call(this,l),r.call(this,l),this.allowHalfOpen=!0,l&&(l.readable===!1&&(this.readable=!1),l.writable===!1&&(this.writable=!1),l.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||me.nextTick(f,this)}function f(l){l.end()}return Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(s){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=s,this._writableState.destroyed=s)}}),Vo}var Wo={},Cn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var of;function Ay(){return of||(of=1,function(e,t){var r=In(),n=r.Buffer;function o(a,u){for(var f in a)u[f]=a[f]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i);function i(a,u,f){return n(a,u,f)}i.prototype=Object.create(n.prototype),o(n,i),i.from=function(a,u,f){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,u,f)},i.alloc=function(a,u,f){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return u!==void 0?typeof f=="string"?l.fill(u,f):l.fill(u):l.fill(0),l},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}(Cn,Cn.exports)),Cn.exports}var sf;function Go(){if(sf)return Wo;sf=1;var e=Ay().Buffer,t=e.isEncoding||function(p){switch(p=""+p,p&&p.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(p){if(!p)return"utf8";for(var h;;)switch(p){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return p;default:if(h)return;p=(""+p).toLowerCase(),h=!0}}function n(p){var h=r(p);if(typeof h!="string"&&(e.isEncoding===t||!t(p)))throw new Error("Unknown encoding: "+p);return h||p}Wo.StringDecoder=o;function o(p){this.encoding=n(p);var h;switch(this.encoding){case"utf16le":this.text=c,this.end=d,h=4;break;case"utf8":this.fillLast=f,h=4;break;case"base64":this.text=T,this.end=m,h=3;break;default:this.write=E,this.end=x;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(h)}o.prototype.write=function(p){if(p.length===0)return"";var h,g;if(this.lastNeed){if(h=this.fillLast(p),h===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g<p.length?h?h+this.text(p,g):this.text(p,g):h||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length};function i(p){return p<=127?0:p>>5===6?2:p>>4===14?3:p>>3===30?4:p>>6===2?-1:-2}function a(p,h,g){var y=h.length-1;if(y<g)return 0;var w=i(h[y]);return w>=0?(w>0&&(p.lastNeed=w-1),w):--y<g||w===-2?0:(w=i(h[y]),w>=0?(w>0&&(p.lastNeed=w-2),w):--y<g||w===-2?0:(w=i(h[y]),w>=0?(w>0&&(w===2?w=0:p.lastNeed=w-3),w):0))}function u(p,h,g){if((h[0]&192)!==128)return p.lastNeed=0,"�";if(p.lastNeed>1&&h.length>1){if((h[1]&192)!==128)return p.lastNeed=1,"�";if(p.lastNeed>2&&h.length>2&&(h[2]&192)!==128)return p.lastNeed=2,"�"}}function f(p){var h=this.lastTotal-this.lastNeed,g=u(this,p);if(g!==void 0)return g;if(this.lastNeed<=p.length)return p.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,h,0,p.length),this.lastNeed-=p.length}function l(p,h){var g=a(this,p,h);if(!this.lastNeed)return p.toString("utf8",h);this.lastTotal=g;var y=p.length-(g-this.lastNeed);return p.copy(this.lastChar,0,y),p.toString("utf8",h,y)}function s(p){var h=p&&p.length?this.write(p):"";return this.lastNeed?h+"�":h}function c(p,h){if((p.length-h)%2===0){var g=p.toString("utf16le",h);if(g){var y=g.charCodeAt(g.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",h,p.length-1)}function d(p){var h=p&&p.length?this.write(p):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,g)}return h}function T(p,h){var g=(p.length-h)%3;return g===0?p.toString("base64",h):(this.lastNeed=3-g,this.lastTotal=3,g===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",h,p.length-g))}function m(p){var h=p&&p.length?this.write(p):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function E(p){return p.toString(this.encoding)}function x(p){return p&&p.length?this.write(p):""}return Wo}var Ko,af;function zo(){if(af)return Ko;af=1;var e=Tr().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var a=!1;return function(){if(!a){a=!0;for(var u=arguments.length,f=new Array(u),l=0;l<u;l++)f[l]=arguments[l];i.apply(this,f)}}}function r(){}function n(i){return i.setHeader&&typeof i.abort=="function"}function o(i,a,u){if(typeof a=="function")return o(i,null,a);a||(a={}),u=t(u||r);var f=a.readable||a.readable!==!1&&i.readable,l=a.writable||a.writable!==!1&&i.writable,s=function(){i.writable||d()},c=i._writableState&&i._writableState.finished,d=function(){l=!1,c=!0,f||u.call(i)},T=i._readableState&&i._readableState.endEmitted,m=function(){f=!1,T=!0,l||u.call(i)},E=function(g){u.call(i,g)},x=function(){var g;if(f&&!T)return(!i._readableState||!i._readableState.ended)&&(g=new e),u.call(i,g);if(l&&!c)return(!i._writableState||!i._writableState.ended)&&(g=new e),u.call(i,g)},p=function(){i.req.on("finish",d)};return n(i)?(i.on("complete",d),i.on("abort",x),i.req?p():i.on("request",p)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",d),a.error!==!1&&i.on("error",E),i.on("close",x),function(){i.removeListener("complete",d),i.removeListener("abort",x),i.removeListener("request",p),i.req&&i.req.removeListener("finish",d),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",d),i.removeListener("end",m),i.removeListener("error",E),i.removeListener("close",x)}}return Ko=o,Ko}var Xo,uf;function Ty(){if(uf)return Xo;uf=1;var e;function t(g,y,w){return y=r(y),y in g?Object.defineProperty(g,y,{value:w,enumerable:!0,configurable:!0,writable:!0}):g[y]=w,g}function r(g){var y=n(g,"string");return typeof y=="symbol"?y:String(y)}function n(g,y){if(typeof g!="object"||g===null)return g;var w=g[Symbol.toPrimitive];if(w!==void 0){var A=w.call(g,y);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(g)}var o=zo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),c=Symbol("stream");function d(g,y){return{value:g,done:y}}function T(g){var y=g[i];if(y!==null){var w=g[c].read();w!==null&&(g[l]=null,g[i]=null,g[a]=null,y(d(w,!1)))}}function m(g){me.nextTick(T,g)}function E(g,y){return function(w,A){g.then(function(){if(y[f]){w(d(void 0,!0));return}y[s](w,A)},A)}}var x=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((e={get stream(){return this[c]},next:function(){var y=this,w=this[u];if(w!==null)return Promise.reject(w);if(this[f])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise(function(O,j){me.nextTick(function(){y[u]?j(y[u]):O(d(void 0,!0))})});var A=this[l],P;if(A)P=new Promise(E(A,this));else{var I=this[c].read();if(I!==null)return Promise.resolve(d(I,!1));P=new Promise(this[s])}return this[l]=P,P}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var y=this;return new Promise(function(w,A){y[c].destroy(null,function(P){if(P){A(P);return}w(d(void 0,!0))})})}),e),x),h=function(y){var w,A=Object.create(p,(w={},t(w,c,{value:y,writable:!0}),t(w,i,{value:null,writable:!0}),t(w,a,{value:null,writable:!0}),t(w,u,{value:null,writable:!0}),t(w,f,{value:y._readableState.endEmitted,writable:!0}),t(w,s,{value:function(I,O){var j=A[c].read();j?(A[l]=null,A[i]=null,A[a]=null,I(d(j,!1))):(A[i]=I,A[a]=O)},writable:!0}),w));return A[l]=null,o(y,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=A[a];I!==null&&(A[l]=null,A[i]=null,A[a]=null,I(P)),A[u]=P;return}var O=A[i];O!==null&&(A[l]=null,A[i]=null,A[a]=null,O(d(void 0,!0))),A[f]=!0}),y.on("readable",m.bind(null,A)),A};return Xo=h,Xo}var Yo,lf;function Sy(){return lf||(lf=1,Yo=function(){throw new Error("Readable.from is not available in the browser")}),Yo}var Jo,ff;function cf(){if(ff)return Jo;ff=1,Jo=O;var e;O.ReadableState=I,Pi().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Lu(),n=In().Buffer,o=(typeof Te<"u"?Te:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(B){return n.from(B)}function a(B){return n.isBuffer(B)||B instanceof o}var u=Kl(),f;u&&u.debuglog?f=u.debuglog("stream"):f=function(){};var l=Ey(),s=Yl(),c=Ql(),d=c.getHighWaterMark,T=Tr().codes,m=T.ERR_INVALID_ARG_TYPE,E=T.ERR_STREAM_PUSH_AFTER_EOF,x=T.ERR_METHOD_NOT_IMPLEMENTED,p=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,h,g,y;ur()(O,r);var w=s.errorOrDestroy,A=["error","close","destroy","pause","resume"];function P(B,U,Y){if(typeof B.prependListener=="function")return B.prependListener(U,Y);!B._events||!B._events[U]?B.on(U,Y):Array.isArray(B._events[U])?B._events[U].unshift(Y):B._events[U]=[Y,B._events[U]]}function I(B,U,Y){e=e||Sr(),B=B||{},typeof Y!="boolean"&&(Y=U instanceof e),this.objectMode=!!B.objectMode,Y&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=d(this,B,"readableHighWaterMark",Y),this.buffer=new l,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(h||(h=Go().StringDecoder),this.decoder=new h(B.encoding),this.encoding=B.encoding)}function O(B){if(e=e||Sr(),!(this instanceof O))return new O(B);var U=this instanceof e;this._readableState=new I(B,this,U),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),r.call(this)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),O.prototype.destroy=s.destroy,O.prototype._undestroy=s.undestroy,O.prototype._destroy=function(B,U){U(B)},O.prototype.push=function(B,U){var Y=this._readableState,se;return Y.objectMode?se=!0:typeof B=="string"&&(U=U||Y.defaultEncoding,U!==Y.encoding&&(B=n.from(B,U),U=""),se=!0),j(this,B,U,!1,se)},O.prototype.unshift=function(B){return j(this,B,null,!0,!1)};function j(B,U,Y,se,pe){f("readableAddChunk",U);var le=B._readableState;if(U===null)le.reading=!1,he(B,le);else{var de;if(pe||(de=L(le,U)),de)w(B,de);else if(le.objectMode||U&&U.length>0)if(typeof U!="string"&&!le.objectMode&&Object.getPrototypeOf(U)!==n.prototype&&(U=i(U)),se)le.endEmitted?w(B,new p):G(B,le,U,!0);else if(le.ended)w(B,new E);else{if(le.destroyed)return!1;le.reading=!1,le.decoder&&!Y?(U=le.decoder.write(U),le.objectMode||U.length!==0?G(B,le,U,!1):ce(B,le)):G(B,le,U,!1)}else se||(le.reading=!1,ce(B,le))}return!le.ended&&(le.length<le.highWaterMark||le.length===0)}function G(B,U,Y,se){U.flowing&&U.length===0&&!U.sync?(U.awaitDrain=0,B.emit("data",Y)):(U.length+=U.objectMode?1:Y.length,se?U.buffer.unshift(Y):U.buffer.push(Y),U.needReadable&&fe(B)),ce(B,U)}function L(B,U){var Y;return!a(U)&&typeof U!="string"&&U!==void 0&&!B.objectMode&&(Y=new m("chunk",["string","Buffer","Uint8Array"],U)),Y}O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(B){h||(h=Go().StringDecoder);var U=new h(B);this._readableState.decoder=U,this._readableState.encoding=this._readableState.decoder.encoding;for(var Y=this._readableState.buffer.head,se="";Y!==null;)se+=U.write(Y.data),Y=Y.next;return this._readableState.buffer.clear(),se!==""&&this._readableState.buffer.push(se),this._readableState.length=se.length,this};var D=1073741824;function oe(B){return B>=D?B=D:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function re(B,U){return B<=0||U.length===0&&U.ended?0:U.objectMode?1:B!==B?U.flowing&&U.length?U.buffer.head.data.length:U.length:(B>U.highWaterMark&&(U.highWaterMark=oe(B)),B<=U.length?B:U.ended?U.length:(U.needReadable=!0,0))}O.prototype.read=function(B){f("read",B),B=parseInt(B,10);var U=this._readableState,Y=B;if(B!==0&&(U.emittedReadable=!1),B===0&&U.needReadable&&((U.highWaterMark!==0?U.length>=U.highWaterMark:U.length>0)||U.ended))return f("read: emitReadable",U.length,U.ended),U.length===0&&U.ended?N(this):fe(this),null;if(B=re(B,U),B===0&&U.ended)return U.length===0&&N(this),null;var se=U.needReadable;f("need readable",se),(U.length===0||U.length-B<U.highWaterMark)&&(se=!0,f("length less than watermark",se)),U.ended||U.reading?(se=!1,f("reading or ended",se)):se&&(f("do read"),U.reading=!0,U.sync=!0,U.length===0&&(U.needReadable=!0),this._read(U.highWaterMark),U.sync=!1,U.reading||(B=re(Y,U)));var pe;return B>0?pe=R(B,U):pe=null,pe===null?(U.needReadable=U.length<=U.highWaterMark,B=0):(U.length-=B,U.awaitDrain=0),U.length===0&&(U.ended||(U.needReadable=!0),Y!==B&&U.ended&&N(this)),pe!==null&&this.emit("data",pe),pe};function he(B,U){if(f("onEofChunk"),!U.ended){if(U.decoder){var Y=U.decoder.end();Y&&Y.length&&(U.buffer.push(Y),U.length+=U.objectMode?1:Y.length)}U.ended=!0,U.sync?fe(B):(U.needReadable=!1,U.emittedReadable||(U.emittedReadable=!0,ge(B)))}}function fe(B){var U=B._readableState;f("emitReadable",U.needReadable,U.emittedReadable),U.needReadable=!1,U.emittedReadable||(f("emitReadable",U.flowing),U.emittedReadable=!0,me.nextTick(ge,B))}function ge(B){var U=B._readableState;f("emitReadable_",U.destroyed,U.length,U.ended),!U.destroyed&&(U.length||U.ended)&&(B.emit("readable"),U.emittedReadable=!1),U.needReadable=!U.flowing&&!U.ended&&U.length<=U.highWaterMark,V(B)}function ce(B,U){U.readingMore||(U.readingMore=!0,me.nextTick(Ee,B,U))}function Ee(B,U){for(;!U.reading&&!U.ended&&(U.length<U.highWaterMark||U.flowing&&U.length===0);){var Y=U.length;if(f("maybeReadMore read 0"),B.read(0),Y===U.length)break}U.readingMore=!1}O.prototype._read=function(B){w(this,new x("_read()"))},O.prototype.pipe=function(B,U){var Y=this,se=this._readableState;switch(se.pipesCount){case 0:se.pipes=B;break;case 1:se.pipes=[se.pipes,B];break;default:se.pipes.push(B);break}se.pipesCount+=1,f("pipe count=%d opts=%j",se.pipesCount,U);var pe=(!U||U.end!==!1)&&B!==me.stdout&&B!==me.stderr,le=pe?Be:Ot;se.endEmitted?me.nextTick(le):Y.once("end",le),B.on("unpipe",de);function de(Rt,it){f("onunpipe"),Rt===Y&&it&&it.hasUnpiped===!1&&(it.hasUnpiped=!0,Je())}function Be(){f("onend"),B.end()}var te=be(Y);B.on("drain",te);var rt=!1;function Je(){f("cleanup"),B.removeListener("close",ft),B.removeListener("finish",st),B.removeListener("drain",te),B.removeListener("error",Le),B.removeListener("unpipe",de),Y.removeListener("end",Be),Y.removeListener("end",Ot),Y.removeListener("data",Oe),rt=!0,se.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",Oe);function Oe(Rt){f("ondata");var it=B.write(Rt);f("dest.write",it),it===!1&&((se.pipesCount===1&&se.pipes===B||se.pipesCount>1&&$(se.pipes,B)!==-1)&&!rt&&(f("false write response, pause",se.awaitDrain),se.awaitDrain++),Y.pause())}function Le(Rt){f("onerror",Rt),Ot(),B.removeListener("error",Le),t(B,"error")===0&&w(B,Rt)}P(B,"error",Le);function ft(){B.removeListener("finish",st),Ot()}B.once("close",ft);function st(){f("onfinish"),B.removeListener("close",ft),Ot()}B.once("finish",st);function Ot(){f("unpipe"),Y.unpipe(B)}return B.emit("pipe",Y),se.flowing||(f("pipe resume"),Y.resume()),B};function be(B){return function(){var Y=B._readableState;f("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&t(B,"data")&&(Y.flowing=!0,V(B))}}O.prototype.unpipe=function(B){var U=this._readableState,Y={hasUnpiped:!1};if(U.pipesCount===0)return this;if(U.pipesCount===1)return B&&B!==U.pipes?this:(B||(B=U.pipes),U.pipes=null,U.pipesCount=0,U.flowing=!1,B&&B.emit("unpipe",this,Y),this);if(!B){var se=U.pipes,pe=U.pipesCount;U.pipes=null,U.pipesCount=0,U.flowing=!1;for(var le=0;le<pe;le++)se[le].emit("unpipe",this,{hasUnpiped:!1});return this}var de=$(U.pipes,B);return de===-1?this:(U.pipes.splice(de,1),U.pipesCount-=1,U.pipesCount===1&&(U.pipes=U.pipes[0]),B.emit("unpipe",this,Y),this)},O.prototype.on=function(B,U){var Y=r.prototype.on.call(this,B,U),se=this._readableState;return B==="data"?(se.readableListening=this.listenerCount("readable")>0,se.flowing!==!1&&this.resume()):B==="readable"&&!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.flowing=!1,se.emittedReadable=!1,f("on readable",se.length,se.reading),se.length?fe(this):se.reading||me.nextTick(Q,this)),Y},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(B,U){var Y=r.prototype.removeListener.call(this,B,U);return B==="readable"&&me.nextTick(K,this),Y},O.prototype.removeAllListeners=function(B){var U=r.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&me.nextTick(K,this),U};function K(B){var U=B._readableState;U.readableListening=B.listenerCount("readable")>0,U.resumeScheduled&&!U.paused?U.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Q(B){f("readable nexttick read 0"),B.read(0)}O.prototype.resume=function(){var B=this._readableState;return B.flowing||(f("resume"),B.flowing=!B.readableListening,ee(this,B)),B.paused=!1,this};function ee(B,U){U.resumeScheduled||(U.resumeScheduled=!0,me.nextTick(ue,B,U))}function ue(B,U){f("resume",U.reading),U.reading||B.read(0),U.resumeScheduled=!1,B.emit("resume"),V(B),U.flowing&&!U.reading&&B.read(0)}O.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(B){var U=B._readableState;for(f("flow",U.flowing);U.flowing&&B.read()!==null;);}O.prototype.wrap=function(B){var U=this,Y=this._readableState,se=!1;B.on("end",function(){if(f("wrapped end"),Y.decoder&&!Y.ended){var de=Y.decoder.end();de&&de.length&&U.push(de)}U.push(null)}),B.on("data",function(de){if(f("wrapped data"),Y.decoder&&(de=Y.decoder.write(de)),!(Y.objectMode&&de==null)&&!(!Y.objectMode&&(!de||!de.length))){var Be=U.push(de);Be||(se=!0,B.pause())}});for(var pe in B)this[pe]===void 0&&typeof B[pe]=="function"&&(this[pe]=function(Be){return function(){return B[Be].apply(B,arguments)}}(pe));for(var le=0;le<A.length;le++)B.on(A[le],this.emit.bind(this,A[le]));return this._read=function(de){f("wrapped _read",de),se&&(se=!1,B.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=Ty()),g(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),O._fromList=R,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function R(B,U){if(U.length===0)return null;var Y;return U.objectMode?Y=U.buffer.shift():!B||B>=U.length?(U.decoder?Y=U.buffer.join(""):U.buffer.length===1?Y=U.buffer.first():Y=U.buffer.concat(U.length),U.buffer.clear()):Y=U.buffer.consume(B,U.decoder),Y}function N(B){var U=B._readableState;f("endReadable",U.endEmitted),U.endEmitted||(U.ended=!0,me.nextTick(q,U,B))}function q(B,U){if(f("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,U.readable=!1,U.emit("end"),B.autoDestroy)){var Y=U._writableState;(!Y||Y.autoDestroy&&Y.finished)&&U.destroy()}}typeof Symbol=="function"&&(O.from=function(B,U){return y===void 0&&(y=Sy()),y(O,B,U)});function $(B,U){for(var Y=0,se=B.length;Y<se;Y++)if(B[Y]===U)return Y;return-1}return Jo}var Zo,hf;function df(){if(hf)return Zo;hf=1,Zo=u;var e=Tr().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Sr();ur()(u,i);function a(s,c){var d=this._transformState;d.transforming=!1;var T=d.writecb;if(T===null)return this.emit("error",new r);d.writechunk=null,d.writecb=null,c!=null&&this.push(c),T(s);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function u(s){if(!(this instanceof u))return new u(s);i.call(this,s),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,s&&(typeof s.transform=="function"&&(this._transform=s.transform),typeof s.flush=="function"&&(this._flush=s.flush)),this.on("prefinish",f)}function f(){var s=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(c,d){l(s,c,d)}):l(this,null,null)}u.prototype.push=function(s,c){return this._transformState.needTransform=!1,i.prototype.push.call(this,s,c)},u.prototype._transform=function(s,c,d){d(new t("_transform()"))},u.prototype._write=function(s,c,d){var T=this._transformState;if(T.writecb=d,T.writechunk=s,T.writeencoding=c,!T.transforming){var m=this._readableState;(T.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},u.prototype._read=function(s){var c=this._transformState;c.writechunk!==null&&!c.transforming?(c.transforming=!0,this._transform(c.writechunk,c.writeencoding,c.afterTransform)):c.needTransform=!0},u.prototype._destroy=function(s,c){i.prototype._destroy.call(this,s,function(d){c(d)})};function l(s,c,d){if(c)return s.emit("error",c);if(d!=null&&s.push(d),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return Zo}var Qo,pf;function _y(){if(pf)return Qo;pf=1,Qo=t;var e=df();ur()(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},Qo}var es,gf;function Oy(){if(gf)return es;gf=1;var e;function t(d){var T=!1;return function(){T||(T=!0,d.apply(void 0,arguments))}}var r=Tr().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(d){if(d)throw d}function a(d){return d.setHeader&&typeof d.abort=="function"}function u(d,T,m,E){E=t(E);var x=!1;d.on("close",function(){x=!0}),e===void 0&&(e=zo()),e(d,{readable:T,writable:m},function(h){if(h)return E(h);x=!0,E()});var p=!1;return function(h){if(!x&&!p){if(p=!0,a(d))return d.abort();if(typeof d.destroy=="function")return d.destroy();E(h||new o("pipe"))}}}function f(d){d()}function l(d,T){return d.pipe(T)}function s(d){return!d.length||typeof d[d.length-1]!="function"?i:d.pop()}function c(){for(var d=arguments.length,T=new Array(d),m=0;m<d;m++)T[m]=arguments[m];var E=s(T);if(Array.isArray(T[0])&&(T=T[0]),T.length<2)throw new n("streams");var x,p=T.map(function(h,g){var y=g<T.length-1,w=g>0;return u(h,y,w,function(A){x||(x=A),A&&p.forEach(f),!y&&(p.forEach(f),E(x))})});return T.reduce(l)}return es=c,es}var ts,yf;function Ny(){if(yf)return ts;yf=1,ts=r;var e=Pi().EventEmitter,t=ur();t(r,e),r.Readable=cf(),r.Writable=rf(),r.Duplex=Sr(),r.Transform=df(),r.PassThrough=_y(),r.finished=zo(),r.pipeline=Oy(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(T){n.writable&&n.write(T)===!1&&i.pause&&i.pause()}i.on("data",a);function u(){i.readable&&i.resume&&i.resume()}n.on("drain",u),!n._isStdio&&(!o||o.end!==!1)&&(i.on("end",l),i.on("close",s));var f=!1;function l(){f||(f=!0,n.end())}function s(){f||(f=!0,typeof n.destroy=="function"&&n.destroy())}function c(T){if(d(),e.listenerCount(this,"error")===0)throw T}i.on("error",c),n.on("error",c);function d(){i.removeListener("data",a),n.removeListener("drain",u),i.removeListener("end",l),i.removeListener("close",s),i.removeListener("error",c),n.removeListener("error",c),i.removeListener("end",d),i.removeListener("close",d),n.removeListener("close",d)}return i.on("end",d),i.on("close",d),n.on("close",d),n.emit("pipe",i),n},ts}var mf;function Ry(){return mf||(mf=1,function(e){(function(t){t.parser=function(R,N){return new n(R,N)},t.SAXParser=n,t.SAXStream=s,t.createStream=l,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,N){if(!(this instanceof n))return new n(R,N);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=N||{},q.opt.lowercase=q.opt.lowercase||q.opt.lowercasetags,q.looseCase=q.opt.lowercase?"toLowerCase":"toUpperCase",q.tags=[],q.closed=q.closedRoot=q.sawRoot=!1,q.tag=q.error=null,q.strict=!!R,q.noscript=!!(R||q.opt.noscript),q.state=O.BEGIN,q.strictEntities=q.opt.strictEntities,q.ENTITIES=q.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),q.attribList=[],q.opt.xmlns&&(q.ns=Object.create(E)),q.opt.unquotedAttributeValues===void 0&&(q.opt.unquotedAttributeValues=!R),q.trackPosition=q.opt.position!==!1,q.trackPosition&&(q.position=q.line=q.column=0),G(q,"onready")}Object.create||(Object.create=function(R){function N(){}N.prototype=R;var q=new N;return q}),Object.keys||(Object.keys=function(R){var N=[];for(var q in R)R.hasOwnProperty(q)&&N.push(q);return N});function o(R){for(var N=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>N)switch(r[$]){case"textNode":D(R);break;case"cdata":L(R,"oncdata",R.cdata),R.cdata="";break;case"script":L(R,"onscript",R.script),R.script="";break;default:re(R,"Max buffer length exceeded: "+r[$])}q=Math.max(q,U)}var Y=t.MAX_BUFFER_LENGTH-q;R.bufferCheckPosition=Y+R.position}function i(R){for(var N=0,q=r.length;N<q;N++)R[r[N]]=""}function a(R){D(R),R.cdata!==""&&(L(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(L(R,"onscript",R.script),R.script="")}n.prototype={end:function(){he(this)},write:V,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var u;try{u=Ny().Stream}catch{u=function(){}}u||(u=function(){});var f=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,N){return new s(R,N)}function s(R,N){if(!(this instanceof s))return new s(R,N);u.apply(this),this._parser=new n(R,N),this.writable=!0,this.readable=!0;var q=this;this._parser.onend=function(){q.emit("end")},this._parser.onerror=function($){q.emit("error",$),q._parser.error=null},this._decoder=null,f.forEach(function($){Object.defineProperty(q,"on"+$,{get:function(){return q._parser["on"+$]},set:function(B){if(!B)return q.removeAllListeners($),q._parser["on"+$]=B,B;q.on($,B)},enumerable:!0,configurable:!1})})}s.prototype=Object.create(u.prototype,{constructor:{value:s}}),s.prototype.write=function(R){if(typeof mr=="function"&&typeof mr.isBuffer=="function"&&mr.isBuffer(R)){if(!this._decoder){var N=Go().StringDecoder;this._decoder=new N("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},s.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},s.prototype.on=function(R,N){var q=this;return!q._parser["on"+R]&&f.indexOf(R)!==-1&&(q._parser["on"+R]=function(){var $=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);$.splice(0,0,R),q.emit.apply(q,$)}),u.prototype.on.call(q,R,N)};var c="[CDATA[",d="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",E={xml:T,xmlns:m},x=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,h=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(R){return R===" "||R===`
26
- `||R==="\r"||R===" "}function w(R){return R==='"'||R==="'"}function A(R){return R===">"||y(R)}function P(R,N){return R.test(N)}function I(R,N){return!P(R,N)}var O=0;t.STATE={BEGIN:O++,BEGIN_WHITESPACE:O++,TEXT:O++,TEXT_ENTITY:O++,OPEN_WAKA:O++,SGML_DECL:O++,SGML_DECL_QUOTED:O++,DOCTYPE:O++,DOCTYPE_QUOTED:O++,DOCTYPE_DTD:O++,DOCTYPE_DTD_QUOTED:O++,COMMENT_STARTING:O++,COMMENT:O++,COMMENT_ENDING:O++,COMMENT_ENDED:O++,CDATA:O++,CDATA_ENDING:O++,CDATA_ENDING_2:O++,PROC_INST:O++,PROC_INST_BODY:O++,PROC_INST_ENDING:O++,OPEN_TAG:O++,OPEN_TAG_SLASH:O++,ATTRIB:O++,ATTRIB_NAME:O++,ATTRIB_NAME_SAW_WHITE:O++,ATTRIB_VALUE:O++,ATTRIB_VALUE_QUOTED:O++,ATTRIB_VALUE_CLOSED:O++,ATTRIB_VALUE_UNQUOTED:O++,ATTRIB_VALUE_ENTITY_Q:O++,ATTRIB_VALUE_ENTITY_U:O++,CLOSE_TAG:O++,CLOSE_TAG_SAW_WHITE:O++,SCRIPT:O++,SCRIPT_ENDING:O++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var N=t.ENTITIES[R],q=typeof N=="number"?String.fromCharCode(N):N;t.ENTITIES[R]=q});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;O=t.STATE;function G(R,N,q){R[N]&&R[N](q)}function L(R,N,q){R.textNode&&D(R),G(R,N,q)}function D(R){R.textNode=oe(R.opt,R.textNode),R.textNode&&G(R,"ontext",R.textNode),R.textNode=""}function oe(R,N){return R.trim&&(N=N.trim()),R.normalize&&(N=N.replace(/\s+/g," ")),N}function re(R,N){return D(R),R.trackPosition&&(N+=`
27
- Line: `+R.line+`
28
- Column: `+R.column+`
29
- Char: `+R.c),N=new Error(N),R.error=N,G(R,"onerror",N),R}function he(R){return R.sawRoot&&!R.closedRoot&&fe(R,"Unclosed root tag"),R.state!==O.BEGIN&&R.state!==O.BEGIN_WHITESPACE&&R.state!==O.TEXT&&re(R,"Unexpected end"),D(R),R.c="",R.closed=!0,G(R,"onend"),n.call(R,R.strict,R.opt),R}function fe(R,N){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&re(R,N)}function ge(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var N=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=N.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function ce(R,N){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return N&&R==="xmlns"&&(B="xmlns",U=""),{prefix:B,local:U}}function Ee(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var N=ce(R.attribName,!0),q=N.prefix,$=N.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==T)fe(R,"xml: prefix must be bound to "+T+`
30
- Actual: `+R.attribValue);else if($==="xmlns"&&R.attribValue!==m)fe(R,"xmlns: prefix must be bound to "+m+`
31
- Actual: `+R.attribValue);else{var B=R.tag,U=R.tags[R.tags.length-1]||R;B.ns===U.ns&&(B.ns=Object.create(U.ns)),B.ns[$]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,L(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}function be(R,N){if(R.opt.xmlns){var q=R.tag,$=ce(R.tagName);q.prefix=$.prefix,q.local=$.local,q.uri=q.ns[$.prefix]||"",q.prefix&&!q.uri&&(fe(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),q.uri=$.prefix);var B=R.tags[R.tags.length-1]||R;q.ns&&B.ns!==q.ns&&Object.keys(q.ns).forEach(function(Oe){L(R,"onopennamespace",{prefix:Oe,uri:q.ns[Oe]})});for(var U=0,Y=R.attribList.length;U<Y;U++){var se=R.attribList[U],pe=se[0],le=se[1],de=ce(pe,!0),Be=de.prefix,te=de.local,rt=Be===""?"":q.ns[Be]||"",Je={name:pe,value:le,prefix:Be,local:te,uri:rt};Be&&Be!=="xmlns"&&!rt&&(fe(R,"Unbound namespace prefix: "+JSON.stringify(Be)),Je.uri=Be),R.tag.attributes[pe]=Je,L(R,"onattribute",Je)}R.attribList.length=0}R.tag.isSelfClosing=!!N,R.sawRoot=!0,R.tags.push(R.tag),L(R,"onopentag",R.tag),N||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=O.SCRIPT:R.state=O.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}function K(R){if(!R.tagName){fe(R,"Weird empty close tag."),R.textNode+="</>",R.state=O.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=O.SCRIPT;return}L(R,"onscript",R.script),R.script=""}var N=R.tags.length,q=R.tagName;R.strict||(q=q[R.looseCase]());for(var $=q;N--;){var B=R.tags[N];if(B.name!==$)fe(R,"Unexpected close tag");else break}if(N<0){fe(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=O.TEXT;return}R.tagName=q;for(var U=R.tags.length;U-- >N;){var Y=R.tag=R.tags.pop();R.tagName=R.tag.name,L(R,"onclosetag",R.tagName);var se={};for(var pe in Y.ns)se[pe]=Y.ns[pe];var le=R.tags[R.tags.length-1]||R;R.opt.xmlns&&Y.ns!==le.ns&&Object.keys(Y.ns).forEach(function(de){var Be=Y.ns[de];L(R,"onclosenamespace",{prefix:de,uri:Be})})}N===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=O.TEXT}function Q(R){var N=R.entity,q=N.toLowerCase(),$,B="";return R.ENTITIES[N]?R.ENTITIES[N]:R.ENTITIES[q]?R.ENTITIES[q]:(N=q,N.charAt(0)==="#"&&(N.charAt(1)==="x"?(N=N.slice(2),$=parseInt(N,16),B=$.toString(16)):(N=N.slice(1),$=parseInt(N,10),B=$.toString(10))),N=N.replace(/^0+/,""),isNaN($)||B.toLowerCase()!==N?(fe(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function ee(R,N){N==="<"?(R.state=O.OPEN_WAKA,R.startTagPosition=R.position):y(N)||(fe(R,"Non-whitespace before first tag."),R.textNode=N,R.state=O.TEXT)}function ue(R,N){var q="";return N<R.length&&(q=R.charAt(N)),q}function V(R){var N=this;if(this.error)throw this.error;if(N.closed)return re(N,"Cannot write after close. Assign an onready handler.");if(R===null)return he(N);typeof R=="object"&&(R=R.toString());for(var q=0,$="";$=ue(R,q++),N.c=$,!!$;)switch(N.trackPosition&&(N.position++,$===`
32
- `?(N.line++,N.column=0):N.column++),N.state){case O.BEGIN:if(N.state=O.BEGIN_WHITESPACE,$==="\uFEFF")continue;ee(N,$);continue;case O.BEGIN_WHITESPACE:ee(N,$);continue;case O.TEXT:if(N.sawRoot&&!N.closedRoot){for(var B=q-1;$&&$!=="<"&&$!=="&";)$=ue(R,q++),$&&N.trackPosition&&(N.position++,$===`
33
- `?(N.line++,N.column=0):N.column++);N.textNode+=R.substring(B,q-1)}$==="<"&&!(N.sawRoot&&N.closedRoot&&!N.strict)?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):(!y($)&&(!N.sawRoot||N.closedRoot)&&fe(N,"Text data outside of root node."),$==="&"?N.state=O.TEXT_ENTITY:N.textNode+=$);continue;case O.SCRIPT:$==="<"?N.state=O.SCRIPT_ENDING:N.script+=$;continue;case O.SCRIPT_ENDING:$==="/"?N.state=O.CLOSE_TAG:(N.script+="<"+$,N.state=O.SCRIPT);continue;case O.OPEN_WAKA:if($==="!")N.state=O.SGML_DECL,N.sgmlDecl="";else if(!y($))if(P(x,$))N.state=O.OPEN_TAG,N.tagName=$;else if($==="/")N.state=O.CLOSE_TAG,N.tagName="";else if($==="?")N.state=O.PROC_INST,N.procInstName=N.procInstBody="";else{if(fe(N,"Unencoded <"),N.startTagPosition+1<N.position){var U=N.position-N.startTagPosition;$=new Array(U).join(" ")+$}N.textNode+="<"+$,N.state=O.TEXT}continue;case O.SGML_DECL:if(N.sgmlDecl+$==="--"){N.state=O.COMMENT,N.comment="",N.sgmlDecl="";continue}N.doctype&&N.doctype!==!0&&N.sgmlDecl?(N.state=O.DOCTYPE_DTD,N.doctype+="<!"+N.sgmlDecl+$,N.sgmlDecl=""):(N.sgmlDecl+$).toUpperCase()===c?(L(N,"onopencdata"),N.state=O.CDATA,N.sgmlDecl="",N.cdata=""):(N.sgmlDecl+$).toUpperCase()===d?(N.state=O.DOCTYPE,(N.doctype||N.sawRoot)&&fe(N,"Inappropriately located doctype declaration"),N.doctype="",N.sgmlDecl=""):$===">"?(L(N,"onsgmldeclaration",N.sgmlDecl),N.sgmlDecl="",N.state=O.TEXT):(w($)&&(N.state=O.SGML_DECL_QUOTED),N.sgmlDecl+=$);continue;case O.SGML_DECL_QUOTED:$===N.q&&(N.state=O.SGML_DECL,N.q=""),N.sgmlDecl+=$;continue;case O.DOCTYPE:$===">"?(N.state=O.TEXT,L(N,"ondoctype",N.doctype),N.doctype=!0):(N.doctype+=$,$==="["?N.state=O.DOCTYPE_DTD:w($)&&(N.state=O.DOCTYPE_QUOTED,N.q=$));continue;case O.DOCTYPE_QUOTED:N.doctype+=$,$===N.q&&(N.q="",N.state=O.DOCTYPE);continue;case O.DOCTYPE_DTD:$==="]"?(N.doctype+=$,N.state=O.DOCTYPE):$==="<"?(N.state=O.OPEN_WAKA,N.startTagPosition=N.position):w($)?(N.doctype+=$,N.state=O.DOCTYPE_DTD_QUOTED,N.q=$):N.doctype+=$;continue;case O.DOCTYPE_DTD_QUOTED:N.doctype+=$,$===N.q&&(N.state=O.DOCTYPE_DTD,N.q="");continue;case O.COMMENT:$==="-"?N.state=O.COMMENT_ENDING:N.comment+=$;continue;case O.COMMENT_ENDING:$==="-"?(N.state=O.COMMENT_ENDED,N.comment=oe(N.opt,N.comment),N.comment&&L(N,"oncomment",N.comment),N.comment=""):(N.comment+="-"+$,N.state=O.COMMENT);continue;case O.COMMENT_ENDED:$!==">"?(fe(N,"Malformed comment"),N.comment+="--"+$,N.state=O.COMMENT):N.doctype&&N.doctype!==!0?N.state=O.DOCTYPE_DTD:N.state=O.TEXT;continue;case O.CDATA:$==="]"?N.state=O.CDATA_ENDING:N.cdata+=$;continue;case O.CDATA_ENDING:$==="]"?N.state=O.CDATA_ENDING_2:(N.cdata+="]"+$,N.state=O.CDATA);continue;case O.CDATA_ENDING_2:$===">"?(N.cdata&&L(N,"oncdata",N.cdata),L(N,"onclosecdata"),N.cdata="",N.state=O.TEXT):$==="]"?N.cdata+="]":(N.cdata+="]]"+$,N.state=O.CDATA);continue;case O.PROC_INST:$==="?"?N.state=O.PROC_INST_ENDING:y($)?N.state=O.PROC_INST_BODY:N.procInstName+=$;continue;case O.PROC_INST_BODY:if(!N.procInstBody&&y($))continue;$==="?"?N.state=O.PROC_INST_ENDING:N.procInstBody+=$;continue;case O.PROC_INST_ENDING:$===">"?(L(N,"onprocessinginstruction",{name:N.procInstName,body:N.procInstBody}),N.procInstName=N.procInstBody="",N.state=O.TEXT):(N.procInstBody+="?"+$,N.state=O.PROC_INST_BODY);continue;case O.OPEN_TAG:P(p,$)?N.tagName+=$:(ge(N),$===">"?be(N):$==="/"?N.state=O.OPEN_TAG_SLASH:(y($)||fe(N,"Invalid character in tag name"),N.state=O.ATTRIB));continue;case O.OPEN_TAG_SLASH:$===">"?(be(N,!0),K(N)):(fe(N,"Forward-slash in opening tag not followed by >"),N.state=O.ATTRIB);continue;case O.ATTRIB:if(y($))continue;$===">"?be(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(x,$)?(N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):fe(N,"Invalid attribute name");continue;case O.ATTRIB_NAME:$==="="?N.state=O.ATTRIB_VALUE:$===">"?(fe(N,"Attribute without value"),N.attribValue=N.attribName,Ee(N),be(N)):y($)?N.state=O.ATTRIB_NAME_SAW_WHITE:P(p,$)?N.attribName+=$:fe(N,"Invalid attribute name");continue;case O.ATTRIB_NAME_SAW_WHITE:if($==="=")N.state=O.ATTRIB_VALUE;else{if(y($))continue;fe(N,"Attribute without value"),N.tag.attributes[N.attribName]="",N.attribValue="",L(N,"onattribute",{name:N.attribName,value:""}),N.attribName="",$===">"?be(N):P(x,$)?(N.attribName=$,N.state=O.ATTRIB_NAME):(fe(N,"Invalid attribute name"),N.state=O.ATTRIB)}continue;case O.ATTRIB_VALUE:if(y($))continue;w($)?(N.q=$,N.state=O.ATTRIB_VALUE_QUOTED):(N.opt.unquotedAttributeValues||re(N,"Unquoted attribute value"),N.state=O.ATTRIB_VALUE_UNQUOTED,N.attribValue=$);continue;case O.ATTRIB_VALUE_QUOTED:if($!==N.q){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_Q:N.attribValue+=$;continue}Ee(N),N.q="",N.state=O.ATTRIB_VALUE_CLOSED;continue;case O.ATTRIB_VALUE_CLOSED:y($)?N.state=O.ATTRIB:$===">"?be(N):$==="/"?N.state=O.OPEN_TAG_SLASH:P(x,$)?(fe(N,"No whitespace between attributes"),N.attribName=$,N.attribValue="",N.state=O.ATTRIB_NAME):fe(N,"Invalid attribute name");continue;case O.ATTRIB_VALUE_UNQUOTED:if(!A($)){$==="&"?N.state=O.ATTRIB_VALUE_ENTITY_U:N.attribValue+=$;continue}Ee(N),$===">"?be(N):N.state=O.ATTRIB;continue;case O.CLOSE_TAG:if(N.tagName)$===">"?K(N):P(p,$)?N.tagName+=$:N.script?(N.script+="</"+N.tagName,N.tagName="",N.state=O.SCRIPT):(y($)||fe(N,"Invalid tagname in closing tag"),N.state=O.CLOSE_TAG_SAW_WHITE);else{if(y($))continue;I(x,$)?N.script?(N.script+="</"+$,N.state=O.SCRIPT):fe(N,"Invalid tagname in closing tag."):N.tagName=$}continue;case O.CLOSE_TAG_SAW_WHITE:if(y($))continue;$===">"?K(N):fe(N,"Invalid characters in closing tag");continue;case O.TEXT_ENTITY:case O.ATTRIB_VALUE_ENTITY_Q:case O.ATTRIB_VALUE_ENTITY_U:var Y,se;switch(N.state){case O.TEXT_ENTITY:Y=O.TEXT,se="textNode";break;case O.ATTRIB_VALUE_ENTITY_Q:Y=O.ATTRIB_VALUE_QUOTED,se="attribValue";break;case O.ATTRIB_VALUE_ENTITY_U:Y=O.ATTRIB_VALUE_UNQUOTED,se="attribValue";break}if($===";"){var pe=Q(N);N.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(pe)?(N.entity="",N.state=Y,N.write(pe)):(N[se]+=pe,N.entity="",N.state=Y)}else P(N.entity.length?g:h,$)?N.entity+=$:(fe(N,"Invalid character in entity name"),N[se]+="&"+N.entity+$,N.entity="",N.state=Y);continue;default:throw new Error(N,"Unknown state: "+N.state)}return N.position>=N.bufferCheckPosition&&o(N),N}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var R=String.fromCharCode,N=Math.floor,q=function(){var $=16384,B=[],U,Y,se=-1,pe=arguments.length;if(!pe)return"";for(var le="";++se<pe;){var de=Number(arguments[se]);if(!isFinite(de)||de<0||de>1114111||N(de)!==de)throw RangeError("Invalid code point: "+de);de<=65535?B.push(de):(de-=65536,U=(de>>10)+55296,Y=de%1024+56320,B.push(U,Y)),(se+1===pe||B.length>$)&&(le+=R.apply(null,B),B.length=0)}return le};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:q,configurable:!0,writable:!0}):String.fromCodePoint=q}()})(e)}(Ii)),Ii}var rs,bf;function ns(){return bf||(bf=1,rs={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),rs}var is,wf;function os(){if(wf)return is;wf=1;var e=ns().isArray;return is={copyOptions:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return n},ensureFlagExists:function(t,r){(!(t in r)||typeof r[t]!="boolean")&&(r[t]=!1)},ensureSpacesExists:function(t){(!("spaces"in t)||typeof t.spaces!="number"&&typeof t.spaces!="string")&&(t.spaces=0)},ensureAlwaysArrayExists:function(t){(!("alwaysArray"in t)||typeof t.alwaysArray!="boolean"&&!e(t.alwaysArray))&&(t.alwaysArray=!1)},ensureKeyExists:function(t,r){(!(t+"Key"in r)||typeof r[t+"Key"]!="string")&&(r[t+"Key"]=r.compact?"_"+t:t)},checkFnExists:function(t,r){return t+"Fn"in r}},is}var ss,vf;function Ef(){if(vf)return ss;vf=1;var e=Ry(),t=os(),r=ns().isArray,n,o;function i(p){return n=t.copyOptions(p),t.ensureFlagExists("ignoreDeclaration",n),t.ensureFlagExists("ignoreInstruction",n),t.ensureFlagExists("ignoreAttributes",n),t.ensureFlagExists("ignoreText",n),t.ensureFlagExists("ignoreComment",n),t.ensureFlagExists("ignoreCdata",n),t.ensureFlagExists("ignoreDoctype",n),t.ensureFlagExists("compact",n),t.ensureFlagExists("alwaysChildren",n),t.ensureFlagExists("addParent",n),t.ensureFlagExists("trim",n),t.ensureFlagExists("nativeType",n),t.ensureFlagExists("nativeTypeAttributes",n),t.ensureFlagExists("sanitize",n),t.ensureFlagExists("instructionHasAttributes",n),t.ensureFlagExists("captureSpacesBetweenElements",n),t.ensureAlwaysArrayExists(n),t.ensureKeyExists("declaration",n),t.ensureKeyExists("instruction",n),t.ensureKeyExists("attributes",n),t.ensureKeyExists("text",n),t.ensureKeyExists("comment",n),t.ensureKeyExists("cdata",n),t.ensureKeyExists("doctype",n),t.ensureKeyExists("type",n),t.ensureKeyExists("name",n),t.ensureKeyExists("elements",n),t.ensureKeyExists("parent",n),t.checkFnExists("doctype",n),t.checkFnExists("instruction",n),t.checkFnExists("cdata",n),t.checkFnExists("comment",n),t.checkFnExists("text",n),t.checkFnExists("instructionName",n),t.checkFnExists("elementName",n),t.checkFnExists("attributeName",n),t.checkFnExists("attributeValue",n),t.checkFnExists("attributes",n),n}function a(p){var h=Number(p);if(!isNaN(h))return h;var g=p.toLowerCase();return g==="true"?!0:g==="false"?!1:p}function u(p,h){var g;if(n.compact){if(!o[n[p+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[p+"Key"])!==-1:n.alwaysArray)&&(o[n[p+"Key"]]=[]),o[n[p+"Key"]]&&!r(o[n[p+"Key"]])&&(o[n[p+"Key"]]=[o[n[p+"Key"]]]),p+"Fn"in n&&typeof h=="string"&&(h=n[p+"Fn"](h,o)),p==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(g in h)if(h.hasOwnProperty(g))if("instructionFn"in n)h[g]=n.instructionFn(h[g],g,o);else{var y=h[g];delete h[g],h[n.instructionNameFn(g,y,o)]=y}}r(o[n[p+"Key"]])?o[n[p+"Key"]].push(h):o[n[p+"Key"]]=h}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var w={};if(w[n.typeKey]=p,p==="instruction"){for(g in h)if(h.hasOwnProperty(g))break;w[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(g,h,o):g,n.instructionHasAttributes?(w[n.attributesKey]=h[g][n.attributesKey],"instructionFn"in n&&(w[n.attributesKey]=n.instructionFn(w[n.attributesKey],g,o))):("instructionFn"in n&&(h[g]=n.instructionFn(h[g],g,o)),w[n.instructionKey]=h[g])}else p+"Fn"in n&&(h=n[p+"Fn"](h,o)),w[n[p+"Key"]]=h;n.addParent&&(w[n.parentKey]=o),o[n.elementsKey].push(w)}}function f(p){if("attributesFn"in n&&p&&(p=n.attributesFn(p,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&p){var h;for(h in p)if(p.hasOwnProperty(h)&&(n.trim&&(p[h]=p[h].trim()),n.nativeTypeAttributes&&(p[h]=a(p[h])),"attributeValueFn"in n&&(p[h]=n.attributeValueFn(p[h],h,o)),"attributeNameFn"in n)){var g=p[h];delete p[h],p[n.attributeNameFn(h,p[h],o)]=g}}return p}function l(p){var h={};if(p.body&&(p.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var g=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,y;(y=g.exec(p.body))!==null;)h[y[1]]=y[2]||y[3]||y[4];h=f(h)}if(p.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(h).length&&(o[n.declarationKey][n.attributesKey]=h),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(p.body=p.body.trim());var w={};n.instructionHasAttributes&&Object.keys(h).length?(w[p.name]={},w[p.name][n.attributesKey]=h):w[p.name]=p.body,u("instruction",w)}}function s(p,h){var g;if(typeof p=="object"&&(h=p.attributes,p=p.name),h=f(h),"elementNameFn"in n&&(p=n.elementNameFn(p,o)),n.compact){if(g={},!n.ignoreAttributes&&h&&Object.keys(h).length){g[n.attributesKey]={};var y;for(y in h)h.hasOwnProperty(y)&&(g[n.attributesKey][y]=h[y])}!(p in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(p)!==-1:n.alwaysArray)&&(o[p]=[]),o[p]&&!r(o[p])&&(o[p]=[o[p]]),r(o[p])?o[p].push(g):o[p]=g}else o[n.elementsKey]||(o[n.elementsKey]=[]),g={},g[n.typeKey]="element",g[n.nameKey]=p,!n.ignoreAttributes&&h&&Object.keys(h).length&&(g[n.attributesKey]=h),n.alwaysChildren&&(g[n.elementsKey]=[]),o[n.elementsKey].push(g);g[n.parentKey]=o,o=g}function c(p){n.ignoreText||!p.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(p=p.trim()),n.nativeType&&(p=a(p)),n.sanitize&&(p=p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",p))}function d(p){n.ignoreComment||(n.trim&&(p=p.trim()),u("comment",p))}function T(p){var h=o[n.parentKey];n.addParent||delete o[n.parentKey],o=h}function m(p){n.ignoreCdata||(n.trim&&(p=p.trim()),u("cdata",p))}function E(p){n.ignoreDoctype||(p=p.replace(/^ /,""),n.trim&&(p=p.trim()),u("doctype",p))}function x(p){p.note=p}return ss=function(p,h){var g=e.parser(!0,{}),y={};if(o=y,n=i(h),g.opt={strictEntities:!0},g.onopentag=s,g.ontext=c,g.oncomment=d,g.onclosetag=T,g.onerror=x,g.oncdata=m,g.ondoctype=E,g.onprocessinginstruction=l,g.write(p).close(),y[n.elementsKey]){var w=y[n.elementsKey];delete y[n.elementsKey],y[n.elementsKey]=w,delete y.text}return y},ss}var as,xf;function Iy(){if(xf)return as;xf=1;var e=os(),t=Ef();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return as=function(n,o){var i,a,u,f;return i=r(o),a=t(n,i),f="compact"in i&&i.compact?"_parent":"parent","addParent"in i&&i.addParent?u=JSON.stringify(a,function(l,s){return l===f?"_":s},i.spaces):u=JSON.stringify(a,null,i.spaces),u.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},as}var us,Af;function Tf(){if(Af)return us;Af=1;var e=os(),t=ns().isArray,r,n;function o(g){var y=e.copyOptions(g);return e.ensureFlagExists("ignoreDeclaration",y),e.ensureFlagExists("ignoreInstruction",y),e.ensureFlagExists("ignoreAttributes",y),e.ensureFlagExists("ignoreText",y),e.ensureFlagExists("ignoreComment",y),e.ensureFlagExists("ignoreCdata",y),e.ensureFlagExists("ignoreDoctype",y),e.ensureFlagExists("compact",y),e.ensureFlagExists("indentText",y),e.ensureFlagExists("indentCdata",y),e.ensureFlagExists("indentAttributes",y),e.ensureFlagExists("indentInstruction",y),e.ensureFlagExists("fullTagEmptyElement",y),e.ensureFlagExists("noQuotesForNativeAttributes",y),e.ensureSpacesExists(y),typeof y.spaces=="number"&&(y.spaces=Array(y.spaces+1).join(" ")),e.ensureKeyExists("declaration",y),e.ensureKeyExists("instruction",y),e.ensureKeyExists("attributes",y),e.ensureKeyExists("text",y),e.ensureKeyExists("comment",y),e.ensureKeyExists("cdata",y),e.ensureKeyExists("doctype",y),e.ensureKeyExists("type",y),e.ensureKeyExists("name",y),e.ensureKeyExists("elements",y),e.checkFnExists("doctype",y),e.checkFnExists("instruction",y),e.checkFnExists("cdata",y),e.checkFnExists("comment",y),e.checkFnExists("text",y),e.checkFnExists("instructionName",y),e.checkFnExists("elementName",y),e.checkFnExists("attributeName",y),e.checkFnExists("attributeValue",y),e.checkFnExists("attributes",y),e.checkFnExists("fullTagEmptyElement",y),y}function i(g,y,w){return(!w&&g.spaces?`
34
- `:"")+Array(y+1).join(g.spaces)}function a(g,y,w){if(y.ignoreAttributes)return"";"attributesFn"in y&&(g=y.attributesFn(g,n,r));var A,P,I,O,j=[];for(A in g)g.hasOwnProperty(A)&&g[A]!==null&&g[A]!==void 0&&(O=y.noQuotesForNativeAttributes&&typeof g[A]!="string"?"":'"',P=""+g[A],P=P.replace(/"/g,"&quot;"),I="attributeNameFn"in y?y.attributeNameFn(A,P,n,r):A,j.push(y.spaces&&y.indentAttributes?i(y,w+1,!1):" "),j.push(I+"="+O+("attributeValueFn"in y?y.attributeValueFn(P,A,n,r):P)+O));return g&&Object.keys(g).length&&y.spaces&&y.indentAttributes&&j.push(i(y,w,!1)),j.join("")}function u(g,y,w){return r=g,n="xml",y.ignoreDeclaration?"":"<?xml"+a(g[y.attributesKey],y,w)+"?>"}function f(g,y,w){if(y.ignoreInstruction)return"";var A;for(A in g)if(g.hasOwnProperty(A))break;var P="instructionNameFn"in y?y.instructionNameFn(A,g[A],n,r):A;if(typeof g[A]=="object")return r=g,n=P,"<?"+P+a(g[A][y.attributesKey],y,w)+"?>";var I=g[A]?g[A]:"";return"instructionFn"in y&&(I=y.instructionFn(I,A,n,r)),"<?"+P+(I?" "+I:"")+"?>"}function l(g,y){return y.ignoreComment?"":"<!--"+("commentFn"in y?y.commentFn(g,n,r):g)+"-->"}function s(g,y){return y.ignoreCdata?"":"<![CDATA["+("cdataFn"in y?y.cdataFn(g,n,r):g.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function c(g,y){return y.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in y?y.doctypeFn(g,n,r):g)+">"}function d(g,y){return y.ignoreText?"":(g=""+g,g=g.replace(/&amp;/g,"&"),g=g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in y?y.textFn(g,n,r):g)}function T(g,y){var w;if(g.elements&&g.elements.length)for(w=0;w<g.elements.length;++w)switch(g.elements[w][y.typeKey]){case"text":if(y.indentText)return!0;break;case"cdata":if(y.indentCdata)return!0;break;case"instruction":if(y.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function m(g,y,w){r=g,n=g.name;var A=[],P="elementNameFn"in y?y.elementNameFn(g.name,g):g.name;A.push("<"+P),g[y.attributesKey]&&A.push(a(g[y.attributesKey],y,w));var I=g[y.elementsKey]&&g[y.elementsKey].length||g[y.attributesKey]&&g[y.attributesKey]["xml:space"]==="preserve";return I||("fullTagEmptyElementFn"in y?I=y.fullTagEmptyElementFn(g.name,g):I=y.fullTagEmptyElement),I?(A.push(">"),g[y.elementsKey]&&g[y.elementsKey].length&&(A.push(E(g[y.elementsKey],y,w+1)),r=g,n=g.name),A.push(y.spaces&&T(g,y)?`
35
- `+Array(w+1).join(y.spaces):""),A.push("</"+P+">")):A.push("/>"),A.join("")}function E(g,y,w,A){return g.reduce(function(P,I){var O=i(y,w,A&&!P);switch(I.type){case"element":return P+O+m(I,y,w);case"comment":return P+O+l(I[y.commentKey],y);case"doctype":return P+O+c(I[y.doctypeKey],y);case"cdata":return P+(y.indentCdata?O:"")+s(I[y.cdataKey],y);case"text":return P+(y.indentText?O:"")+d(I[y.textKey],y);case"instruction":var j={};return j[I[y.nameKey]]=I[y.attributesKey]?I:I[y.instructionKey],P+(y.indentInstruction?O:"")+f(j,y,w)}},"")}function x(g,y,w){var A;for(A in g)if(g.hasOwnProperty(A))switch(A){case y.parentKey:case y.attributesKey:break;case y.textKey:if(y.indentText||w)return!0;break;case y.cdataKey:if(y.indentCdata||w)return!0;break;case y.instructionKey:if(y.indentInstruction||w)return!0;break;case y.doctypeKey:case y.commentKey:return!0;default:return!0}return!1}function p(g,y,w,A,P){r=g,n=y;var I="elementNameFn"in w?w.elementNameFn(y,g):y;if(typeof g>"u"||g===null||g==="")return"fullTagEmptyElementFn"in w&&w.fullTagEmptyElementFn(y,g)||w.fullTagEmptyElement?"<"+I+"></"+I+">":"<"+I+"/>";var O=[];if(y){if(O.push("<"+I),typeof g!="object")return O.push(">"+d(g,w)+"</"+I+">"),O.join("");g[w.attributesKey]&&O.push(a(g[w.attributesKey],w,A));var j=x(g,w,!0)||g[w.attributesKey]&&g[w.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in w?j=w.fullTagEmptyElementFn(y,g):j=w.fullTagEmptyElement),j)O.push(">");else return O.push("/>"),O.join("")}return O.push(h(g,w,A+1,!1)),r=g,n=y,y&&O.push((P?i(w,A,!1):"")+"</"+I+">"),O.join("")}function h(g,y,w,A){var P,I,O,j=[];for(I in g)if(g.hasOwnProperty(I))for(O=t(g[I])?g[I]:[g[I]],P=0;P<O.length;++P){switch(I){case y.declarationKey:j.push(u(O[P],y,w));break;case y.instructionKey:j.push((y.indentInstruction?i(y,w,A):"")+f(O[P],y,w));break;case y.attributesKey:case y.parentKey:break;case y.textKey:j.push((y.indentText?i(y,w,A):"")+d(O[P],y));break;case y.cdataKey:j.push((y.indentCdata?i(y,w,A):"")+s(O[P],y));break;case y.doctypeKey:j.push(i(y,w,A)+c(O[P],y));break;case y.commentKey:j.push(i(y,w,A)+l(O[P],y));break;default:j.push(i(y,w,A)+p(O[P],I,y,w,x(O[P],y)))}A=A&&!j.length}return j.join("")}return us=function(g,y){y=o(y);var w=[];return r=g,n="_root_",y.compact?w.push(h(g,y,0,!0)):(g[y.declarationKey]&&w.push(u(g[y.declarationKey],y,0)),g[y.elementsKey]&&g[y.elementsKey].length&&w.push(E(g[y.elementsKey],y,0,!w.length))),w.join("")},us}var ls,Sf;function Py(){if(Sf)return ls;Sf=1;var e=Tf();return ls=function(t,r){t instanceof mr&&(t=t.toString());var n=null;if(typeof t=="string")try{n=JSON.parse(t)}catch{throw new Error("The JSON structure is invalid")}else n=t;return e(n,r)},ls}var fs,_f;function Fy(){if(_f)return fs;_f=1;var e=Ef(),t=Iy(),r=Tf(),n=Py();return fs={xml2js:e,xml2json:t,js2xml:r,json2xml:n},fs}var Cy=Fy(),By=Ie(Cy);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Ly(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Wr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Gr(e,...t){if(!Ly(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Of(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Wr(e.outputLen),Wr(e.blockLen)}function Bn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Uy(e,t){Gr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Kr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ln(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Nf(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function cs(e){return typeof e=="string"&&(e=Nf(e)),Gr(e),e}function Rf(e){return typeof e=="string"&&(e=Nf(e)),Gr(e),e}function jy(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("options should be object or undefined");return Object.assign(e,t)}class If{}function ky(e){const t=n=>e().update(cs(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class Pf extends If{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,Of(t);const n=cs(r);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(n.length>o?t.create().update(n).digest():n);for(let a=0;a<i.length;a++)i[a]^=54;this.iHash.update(i),this.oHash=t.create();for(let a=0;a<i.length;a++)i[a]^=106;this.oHash.update(i),Kr(i)}update(t){return Bn(this),this.iHash.update(t),this}digestInto(t){Bn(this),Gr(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:r,iHash:n,finished:o,destroyed:i,blockLen:a,outputLen:u}=this;return t=t,t.finished=o,t.destroyed=i,t.blockLen=a,t.outputLen=u,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ff=(e,t,r)=>new Pf(e,t).update(r).digest();Ff.create=(e,t)=>new Pf(e,t);function My(e,t,r,n){Of(e);const o=jy({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(Wr(i),Wr(a),Wr(u),i<1)throw new Error("iterations (c) should be >= 1");const f=Rf(t),l=Rf(r),s=new Uint8Array(a),c=Ff.create(e,f),d=c._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:c,PRFSalt:d}}function Dy(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),Kr(o),r}function $y(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:f}=My(e,t,r,n);let l;const s=new Uint8Array(4),c=Ln(s),d=new Uint8Array(u.outputLen);for(let T=1,m=0;m<i;T++,m+=u.outputLen){const E=a.subarray(m,m+u.outputLen);c.setInt32(0,T,!1),(l=f._cloneInto(l)).update(s).digestInto(d),E.set(d.subarray(0,E.length));for(let x=1;x<o;x++){u._cloneInto(l).update(d).digestInto(d);for(let p=0;p<E.length;p++)E[p]^=d[p]}}return Dy(u,f,a,l,d)}function qy(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),a=Number(r>>o&i),u=Number(r&i),f=n?4:0,l=n?0:4;e.setUint32(t+f,a,n),e.setUint32(t+l,u,n)}class Hy extends If{constructor(t,r,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(t),this.view=Ln(this.buffer)}update(t){Bn(this),t=cs(t),Gr(t);const{view:r,buffer:n,blockLen:o}=this,i=t.length;for(let a=0;a<i;){const u=Math.min(o-this.pos,i-a);if(u===o){const f=Ln(t);for(;o<=i-a;a+=o)this.process(f,a);continue}n.set(t.subarray(a,a+u),this.pos),this.pos+=u,a+=u,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Bn(this),Uy(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,Kr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let c=a;c<o;c++)r[c]=0;qy(n,o-8,BigInt(this.length*8),i),this.process(n,0);const u=Ln(t),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=f/4,s=this.get();if(l>s.length)throw new Error("_sha2: outputLen bigger than state");for(let c=0;c<l;c++)u.setUint32(4*c,s[c],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:a,pos:u}=this;return t.destroyed=a,t.finished=i,t.length=o,t.pos=u,o%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const ut=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Un=BigInt(2**32-1),Cf=BigInt(32);function Vy(e,t=!1){return t?{h:Number(e&Un),l:Number(e>>Cf&Un)}:{h:Number(e>>Cf&Un)|0,l:Number(e&Un)|0}}function Wy(e,t=!1){const r=e.length;let n=new Uint32Array(r),o=new Uint32Array(r);for(let i=0;i<r;i++){const{h:a,l:u}=Vy(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Bf=(e,t,r)=>e>>>r,Lf=(e,t,r)=>e<<32-r|t>>>r,_r=(e,t,r)=>e>>>r|t<<32-r,Or=(e,t,r)=>e<<32-r|t>>>r,jn=(e,t,r)=>e<<64-r|t>>>r-32,kn=(e,t,r)=>e>>>r-32|t<<64-r;function Dt(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Gy=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Ky=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,zy=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Xy=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,Yy=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Jy=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Uf=Wy(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),Zy=Uf[0],Qy=Uf[1],Gt=new Uint32Array(80),Kt=new Uint32Array(80);class em extends Hy{constructor(t=64){super(128,t,16,!1),this.Ah=ut[0]|0,this.Al=ut[1]|0,this.Bh=ut[2]|0,this.Bl=ut[3]|0,this.Ch=ut[4]|0,this.Cl=ut[5]|0,this.Dh=ut[6]|0,this.Dl=ut[7]|0,this.Eh=ut[8]|0,this.El=ut[9]|0,this.Fh=ut[10]|0,this.Fl=ut[11]|0,this.Gh=ut[12]|0,this.Gl=ut[13]|0,this.Hh=ut[14]|0,this.Hl=ut[15]|0}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:a,Dh:u,Dl:f,Eh:l,El:s,Fh:c,Fl:d,Gh:T,Gl:m,Hh:E,Hl:x}=this;return[t,r,n,o,i,a,u,f,l,s,c,d,T,m,E,x]}set(t,r,n,o,i,a,u,f,l,s,c,d,T,m,E,x){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=a|0,this.Dh=u|0,this.Dl=f|0,this.Eh=l|0,this.El=s|0,this.Fh=c|0,this.Fl=d|0,this.Gh=T|0,this.Gl=m|0,this.Hh=E|0,this.Hl=x|0}process(t,r){for(let g=0;g<16;g++,r+=4)Gt[g]=t.getUint32(r),Kt[g]=t.getUint32(r+=4);for(let g=16;g<80;g++){const y=Gt[g-15]|0,w=Kt[g-15]|0,A=_r(y,w,1)^_r(y,w,8)^Bf(y,w,7),P=Or(y,w,1)^Or(y,w,8)^Lf(y,w,7),I=Gt[g-2]|0,O=Kt[g-2]|0,j=_r(I,O,19)^jn(I,O,61)^Bf(I,O,6),G=Or(I,O,19)^kn(I,O,61)^Lf(I,O,6),L=zy(P,G,Kt[g-7],Kt[g-16]),D=Xy(L,A,j,Gt[g-7],Gt[g-16]);Gt[g]=D|0,Kt[g]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:f,Dh:l,Dl:s,Eh:c,El:d,Fh:T,Fl:m,Gh:E,Gl:x,Hh:p,Hl:h}=this;for(let g=0;g<80;g++){const y=_r(c,d,14)^_r(c,d,18)^jn(c,d,41),w=Or(c,d,14)^Or(c,d,18)^kn(c,d,41),A=c&T^~c&E,P=d&m^~d&x,I=Yy(h,w,P,Qy[g],Kt[g]),O=Jy(I,p,y,A,Zy[g],Gt[g]),j=I|0,G=_r(n,o,28)^jn(n,o,34)^jn(n,o,39),L=Or(n,o,28)^kn(n,o,34)^kn(n,o,39),D=n&i^n&u^i&u,oe=o&a^o&f^a&f;p=E|0,h=x|0,E=T|0,x=m|0,T=c|0,m=d|0,{h:c,l:d}=Dt(l|0,s|0,O|0,j|0),l=u|0,s=f|0,u=i|0,f=a|0,i=n|0,a=o|0;const re=Gy(j,L,oe);n=Ky(re,O,G,D),o=re|0}({h:n,l:o}=Dt(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Dt(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:f}=Dt(this.Ch|0,this.Cl|0,u|0,f|0),{h:l,l:s}=Dt(this.Dh|0,this.Dl|0,l|0,s|0),{h:c,l:d}=Dt(this.Eh|0,this.El|0,c|0,d|0),{h:T,l:m}=Dt(this.Fh|0,this.Fl|0,T|0,m|0),{h:E,l:x}=Dt(this.Gh|0,this.Gl|0,E|0,x|0),{h:p,l:h}=Dt(this.Hh|0,this.Hl|0,p|0,h|0),this.set(n,o,i,a,u,f,l,s,c,d,T,m,E,x,p,h)}roundClean(){Kr(Gt,Kt)}destroy(){Kr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const tm=ky(()=>new em),rm=(e,t,r,n)=>mr.from($y(tm,e,t,{c:r,dkLen:n}));class nm{constructor({axiosClient:t,baseURI:r}){ye(this,"axiosClient");ye(this,"baseURI");ye(this,"signingKey");ye(this,"ALGORITHM","sha512");ye(this,"TTL",1200);ye(this,"HASH_LENGTH",32);ye(this,"ITERATION_COUNT",1e4);this.axiosClient=t,this.baseURI=r}async signUrl(t,r){const n=new URL(t);n.searchParams.set("OC-Credential",r),n.searchParams.set("OC-Date",new Date().toISOString()),n.searchParams.set("OC-Expires",this.TTL.toString()),n.searchParams.set("OC-Verb","GET");const o=await this.createHashedKey(n.toString());return n.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),n.searchParams.set("OC-Signature",o),n.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const t=await this.axiosClient.get(Se(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),r=By.xml2js(t.data,{compact:!0});return this.signingKey=r.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(t){const r=await this.getSignKey();return rm(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const im=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=D0(n,t),i=new nm({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},$t=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Se(e.webDavPath,r);if(t!==void 0){if(On(e))throw new Error("public spaces need a path provided");return Se("spaces",t,n||"")}return e.webDavPath},om=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:f},{overwrite:l,...s}={}){const c=$t(r,{fileId:o,path:n}),d=$t(i,{fileId:u,path:a,name:f});return e.copy(c,d,{overwrite:l||!1,...s})}}),sm=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...f}){const l=$t(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},f)}}),am=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...f}={}){try{const l=$t(r,{fileId:n,path:o}),s=await t.get(e.getFileUrl(l),{responseType:i,headers:{...a&&{"Cache-Control":"no-cache"},...u||{}},...f});return{response:s,body:s.data,headers:{ETag:s.headers.etag,"OC-ETag":s.headers["oc-etag"],"OC-FileId":s.headers["oc-fileid"]}}}catch(l){const{message:s,response:c}=l;throw new Wa(s,c,c.status)}}}),um=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),lm=(e,t,{axiosClient:r,baseUrl:n})=>({async getFileUrl(o,i,{disposition:a="attachment",isUrlSigningEnabled:u=!1,signUrlTimeout:f=86400,version:l=null,doHeadRequest:s=!1,username:c="",...d}){const T=a==="inline";let{downloadURL:m}=i,E=!0;if(!m&&!T&&(m=l?e.getFileUrl(Se("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),c&&s&&await r.head(m),u&&c?m=await im(n,r).signUrl(m,c):E=!1),!E||T){const x=await t.getFileContents(o,i,{responseType:"blob",...d});m=URL.createObjectURL(x.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),fm=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Se("public-files",n))}}),cm=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:f=!1,...l}={}){let s;if(On(n)){s=await e.propfind(Se(n.webDavPath,o),{depth:a,properties:u||or.PublicLink,...l}),s.forEach(m=>{m.filename=m.filename.split("/").slice(1).join("/")}),s.length===1&&(s[0].filename=Se(n.id,o,{leadingSlash:!0})),s.forEach(m=>{m.filename=m.filename.split("/").slice(2).join("/")});const d=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&d==="ocm"&&s[0].props[ae.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...E]=s;return{resource:j0({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:d}),children:E.map(x=>xr(x,e.extraProps))}}const T=s.map(m=>xr(m,e.extraProps));return{resource:T[0],children:T.slice(1)}}const c=async()=>{const d=await t.getPathForFileId(i);return this.listFiles(n,{path:d},{depth:a,davProperties:u})};try{let d="";if(f?d=Ri(n.id):d=$t(n,{fileId:i,path:o}),s=await e.propfind(d,{depth:a,properties:u||or.Default,...l}),f)return{resource:xr(s[0],e.extraProps),children:s.slice(1).map(L0)};const T=s.map(E=>xr(E,e.extraProps)),m=i===n.id;return i&&!m&&i!==T[0].fileId?c():{resource:T[0],children:T.slice(1)}}catch(d){if(d.statusCode===404&&i)return c();throw d}}}),hm=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:f},{overwrite:l,...s}={}){const c=$t(r,{fileId:o,path:n}),d=$t(i,{fileId:u,path:a,name:f});return e.move(c,d,{overwrite:l||!1,...s})}}),dm=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:f="",overwrite:l,onUploadProgress:s=null,...c}){const d=$t(n,{fileId:a,name:o,path:i}),{result:T}=await e.put(d,u,{previousEntityTag:f,overwrite:l,onUploadProgress:s,...c});return t.getFileInfo(n,{fileId:T.headers.get("Oc-Fileid"),path:i})}}),pm=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Se(r.webDavPath,n),o)}}),gm=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(On(r))return;const u=Se(r.webDavPath,o);return e.move(Se(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),ym=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const f=$t(r,{path:i,fileId:n,name:o}),l=Se("meta",n,"v",a,{leadingSlash:!0}),s=Se("files",f,{leadingSlash:!0});return e.copy(l,s,u)}}),mm=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Ri(r.id);return n&&(i=Se(i,n)),e.delete(i,o)}}),bm=(e,t)=>({async search(r,{davProperties:n=or.Default,searchLimit:o,...i}){const a="/spaces/",{range:u,results:f}=await e.report(a,{pattern:r,limit:o,properties:n,...i});return{resources:f.map(l=>({...xr(l,e.extraProps),highlights:l.props[ae.Highlights]||""})),totalResults:u?parseInt(u==null?void 0:u.split("/")[1]):null}}}),wm=(e,t)=>({async getPathForFileId(r,n={}){return(await e.propfind(Se("meta",r,{leadingSlash:!0}),{properties:[ae.MetaPathForUser],...n}))[0].props[ae.MetaPathForUser]}});/*! For license information please see index.js.LICENSE.txt */var vm={2:e=>{function t(o,i,a){o instanceof RegExp&&(o=r(o,a)),i instanceof RegExp&&(i=r(i,a));var u=n(o,i,a);return u&&{start:u[0],end:u[1],pre:a.slice(0,u[0]),body:a.slice(u[0]+o.length,u[1]),post:a.slice(u[1]+i.length)}}function r(o,i){var a=i.match(o);return a?a[0]:null}function n(o,i,a){var u,f,l,s,c,d=a.indexOf(o),T=a.indexOf(i,d+1),m=d;if(d>=0&&T>0){for(u=[],l=a.length;m>=0&&!c;)m==d?(u.push(m),d=a.indexOf(o,m+1)):u.length==1?c=[u.pop(),T]:((f=u.pop())<l&&(l=f,s=T),T=a.indexOf(i,m+1)),m=d<T&&d>=0?d:T;u.length&&(c=[l,s])}return c}e.exports=t,t.range=n},101:function(e,t,r){var n;e=r.nmd(e),function(o){var i=(e&&e.exports,typeof Ut=="object"&&Ut);i.global!==i&&i.window;var a=function(c){this.message=c};(a.prototype=new Error).name="InvalidCharacterError";var u=function(c){throw new a(c)},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=/[\t\n\f\r ]/g,s={encode:function(c){c=String(c),/[^\0-\xFF]/.test(c)&&u("The string to be encoded contains characters outside of the Latin1 range.");for(var d,T,m,E,x=c.length%3,p="",h=-1,g=c.length-x;++h<g;)d=c.charCodeAt(h)<<16,T=c.charCodeAt(++h)<<8,m=c.charCodeAt(++h),p+=f.charAt((E=d+T+m)>>18&63)+f.charAt(E>>12&63)+f.charAt(E>>6&63)+f.charAt(63&E);return x==2?(d=c.charCodeAt(h)<<8,T=c.charCodeAt(++h),p+=f.charAt((E=d+T)>>10)+f.charAt(E>>4&63)+f.charAt(E<<2&63)+"="):x==1&&(E=c.charCodeAt(h),p+=f.charAt(E>>2)+f.charAt(E<<4&63)+"=="),p},decode:function(c){var d=(c=String(c).replace(l,"")).length;d%4==0&&(d=(c=c.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(c))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var T,m,E=0,x="",p=-1;++p<d;)m=f.indexOf(c.charAt(p)),T=E%4?64*T+m:m,E++%4&&(x+=String.fromCharCode(255&T>>(-2*E&6)));return x},version:"1.0.0"};(n=(function(){return s}).call(t,r,t,e))===void 0||(e.exports=n)}()},172:(e,t)=>{t.d=function(r){if(!r)return 0;for(var n=(r=r.toString()).length,o=r.length;o--;){var i=r.charCodeAt(o);56320<=i&&i<=57343&&o--,127<i&&i<=2047?n++:2047<i&&i<=65535&&(n+=2)}return n}},526:e=>{var t={utf8:{stringToBytes:function(r){return t.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(t.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],o=0;o<r.length;o++)n.push(255&r.charCodeAt(o));return n},bytesToString:function(r){for(var n=[],o=0;o<r.length;o++)n.push(String.fromCharCode(r[o]));return n.join("")}}};e.exports=t},298:e=>{var t,r;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,o){return n<<o|n>>>32-o},rotr:function(n,o){return n<<32-o|n>>>o},endian:function(n){if(n.constructor==Number)return 16711935&r.rotl(n,8)|4278255360&r.rotl(n,24);for(var o=0;o<n.length;o++)n[o]=r.endian(n[o]);return n},randomBytes:function(n){for(var o=[];n>0;n--)o.push(Math.floor(256*Math.random()));return o},bytesToWords:function(n){for(var o=[],i=0,a=0;i<n.length;i++,a+=8)o[a>>>5]|=n[i]<<24-a%32;return o},wordsToBytes:function(n){for(var o=[],i=0;i<32*n.length;i+=8)o.push(n[i>>>5]>>>24-i%32&255);return o},bytesToHex:function(n){for(var o=[],i=0;i<n.length;i++)o.push((n[i]>>>4).toString(16)),o.push((15&n[i]).toString(16));return o.join("")},hexToBytes:function(n){for(var o=[],i=0;i<n.length;i+=2)o.push(parseInt(n.substr(i,2),16));return o},bytesToBase64:function(n){for(var o=[],i=0;i<n.length;i+=3)for(var a=n[i]<<16|n[i+1]<<8|n[i+2],u=0;u<4;u++)8*i+6*u<=8*n.length?o.push(t.charAt(a>>>6*(3-u)&63)):o.push("=");return o.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var o=[],i=0,a=0;i<n.length;a=++i%4)a!=0&&o.push((t.indexOf(n.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(n.charAt(i))>>>6-2*a);return o}},e.exports=r},635:(e,t,r)=>{const n=r(31),o=r(338),i=r(221);e.exports={XMLParser:o,XMLValidator:n,XMLBuilder:i}},118:e=>{e.exports=function(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}},705:(e,t)=>{const r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+n+"$");t.isExist=function(i){return i!==void 0},t.isEmptyObject=function(i){return Object.keys(i).length===0},t.merge=function(i,a,u){if(a){const f=Object.keys(a),l=f.length;for(let s=0;s<l;s++)i[f[s]]=u==="strict"?[a[f[s]]]:a[f[s]]}},t.getValue=function(i){return t.isExist(i)?i:""},t.isName=function(i){return o.exec(i)!=null},t.getAllMatches=function(i,a){const u=[];let f=a.exec(i);for(;f;){const l=[];l.startIndex=a.lastIndex-f[0].length;const s=f.length;for(let c=0;c<s;c++)l.push(f[c]);u.push(l),f=a.exec(i)}return u},t.nameRegexp=n},31:(e,t,r)=>{const n=r(705),o={allowBooleanAttributes:!1,unpairedTags:[]};function i(h){return h===" "||h===" "||h===`
36
- `||h==="\r"}function a(h,g){const y=g;for(;g<h.length;g++)if(!(h[g]!="?"&&h[g]!=" ")){const w=h.substr(y,g-y);if(g>5&&w==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",x(h,g));if(h[g]=="?"&&h[g+1]==">"){g++;break}}return g}function u(h,g){if(h.length>g+5&&h[g+1]==="-"&&h[g+2]==="-"){for(g+=3;g<h.length;g++)if(h[g]==="-"&&h[g+1]==="-"&&h[g+2]===">"){g+=2;break}}else if(h.length>g+8&&h[g+1]==="D"&&h[g+2]==="O"&&h[g+3]==="C"&&h[g+4]==="T"&&h[g+5]==="Y"&&h[g+6]==="P"&&h[g+7]==="E"){let y=1;for(g+=8;g<h.length;g++)if(h[g]==="<")y++;else if(h[g]===">"&&(y--,y===0))break}else if(h.length>g+9&&h[g+1]==="["&&h[g+2]==="C"&&h[g+3]==="D"&&h[g+4]==="A"&&h[g+5]==="T"&&h[g+6]==="A"&&h[g+7]==="["){for(g+=8;g<h.length;g++)if(h[g]==="]"&&h[g+1]==="]"&&h[g+2]===">"){g+=2;break}}return g}t.validate=function(h,g){g=Object.assign({},o,g);const y=[];let w=!1,A=!1;h[0]==="\uFEFF"&&(h=h.substr(1));for(let I=0;I<h.length;I++)if(h[I]==="<"&&h[I+1]==="?"){if(I+=2,I=a(h,I),I.err)return I}else{if(h[I]!=="<"){if(i(h[I]))continue;return m("InvalidChar","char '"+h[I]+"' is not expected.",x(h,I))}{let O=I;if(I++,h[I]==="!"){I=u(h,I);continue}{let j=!1;h[I]==="/"&&(j=!0,I++);let G="";for(;I<h.length&&h[I]!==">"&&h[I]!==" "&&h[I]!==" "&&h[I]!==`
37
- `&&h[I]!=="\r";I++)G+=h[I];if(G=G.trim(),G[G.length-1]==="/"&&(G=G.substring(0,G.length-1),I--),P=G,!n.isName(P)){let oe;return oe=G.trim().length===0?"Invalid space after '<'.":"Tag '"+G+"' is an invalid name.",m("InvalidTag",oe,x(h,I))}const L=s(h,I);if(L===!1)return m("InvalidAttr","Attributes for '"+G+"' have open quote.",x(h,I));let D=L.value;if(I=L.index,D[D.length-1]==="/"){const oe=I-D.length;D=D.substring(0,D.length-1);const re=d(D,g);if(re!==!0)return m(re.err.code,re.err.msg,x(h,oe+re.err.line));w=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+G+"' doesn't have proper closing.",x(h,I));if(D.trim().length>0)return m("InvalidTag","Closing tag '"+G+"' can't have attributes or invalid starting.",x(h,O));if(y.length===0)return m("InvalidTag","Closing tag '"+G+"' has not been opened.",x(h,O));{const oe=y.pop();if(G!==oe.tagName){let re=x(h,oe.tagStartPos);return m("InvalidTag","Expected closing tag '"+oe.tagName+"' (opened in line "+re.line+", col "+re.col+") instead of closing tag '"+G+"'.",x(h,O))}y.length==0&&(A=!0)}}else{const oe=d(D,g);if(oe!==!0)return m(oe.err.code,oe.err.msg,x(h,I-D.length+oe.err.line));if(A===!0)return m("InvalidXml","Multiple possible root nodes found.",x(h,I));g.unpairedTags.indexOf(G)!==-1||y.push({tagName:G,tagStartPos:O}),w=!0}for(I++;I<h.length;I++)if(h[I]==="<"){if(h[I+1]==="!"){I++,I=u(h,I);continue}if(h[I+1]!=="?")break;if(I=a(h,++I),I.err)return I}else if(h[I]==="&"){const oe=T(h,I);if(oe==-1)return m("InvalidChar","char '&' is not expected.",x(h,I));I=oe}else if(A===!0&&!i(h[I]))return m("InvalidXml","Extra text at the end",x(h,I));h[I]==="<"&&I--}}}var P;return w?y.length==1?m("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",x(h,y[0].tagStartPos)):!(y.length>0)||m("InvalidXml","Invalid '"+JSON.stringify(y.map(I=>I.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):m("InvalidXml","Start tag expected.",1)};const f='"',l="'";function s(h,g){let y="",w="",A=!1;for(;g<h.length;g++){if(h[g]===f||h[g]===l)w===""?w=h[g]:w!==h[g]||(w="");else if(h[g]===">"&&w===""){A=!0;break}y+=h[g]}return w===""&&{value:y,index:g,tagClosed:A}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function d(h,g){const y=n.getAllMatches(h,c),w={};for(let A=0;A<y.length;A++){if(y[A][1].length===0)return m("InvalidAttr","Attribute '"+y[A][2]+"' has no space in starting.",p(y[A]));if(y[A][3]!==void 0&&y[A][4]===void 0)return m("InvalidAttr","Attribute '"+y[A][2]+"' is without value.",p(y[A]));if(y[A][3]===void 0&&!g.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+y[A][2]+"' is not allowed.",p(y[A]));const P=y[A][2];if(!E(P))return m("InvalidAttr","Attribute '"+P+"' is an invalid name.",p(y[A]));if(w.hasOwnProperty(P))return m("InvalidAttr","Attribute '"+P+"' is repeated.",p(y[A]));w[P]=1}return!0}function T(h,g){if(h[++g]===";")return-1;if(h[g]==="#")return function(w,A){let P=/\d/;for(w[A]==="x"&&(A++,P=/[\da-fA-F]/);A<w.length;A++){if(w[A]===";")return A;if(!w[A].match(P))break}return-1}(h,++g);let y=0;for(;g<h.length;g++,y++)if(!(h[g].match(/\w/)&&y<20)){if(h[g]===";")break;return-1}return g}function m(h,g,y){return{err:{code:h,msg:g,line:y.line||y,col:y.col}}}function E(h){return n.isName(h)}function x(h,g){const y=h.substring(0,g).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function p(h){return h.startIndex+h[1].length}},221:(e,t,r)=>{const n=r(87),o=r(118),i={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,c){return c},attributeValueProcessor:function(s,c){return c},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function a(s){this.options=Object.assign({},i,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=o(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=l),this.processTextOrObjNode=u,this.options.format?(this.indentate=f,this.tagEndChar=`>
38
- `,this.newLine=`
39
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function u(s,c,d,T){const m=this.j2x(s,d+1,T.concat(c));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],c,m.attrStr,d):this.buildObjectNode(m.val,c,m.attrStr,d)}function f(s){return this.options.indentBy.repeat(s)}function l(s){return!(!s.startsWith(this.options.attributeNamePrefix)||s===this.options.textNodeName)&&s.substr(this.attrPrefixLen)}a.prototype.build=function(s){return this.options.preserveOrder?n(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)},a.prototype.j2x=function(s,c,d){let T="",m="";const E=d.join(".");for(let x in s)if(Object.prototype.hasOwnProperty.call(s,x))if(s[x]===void 0)this.isAttribute(x)&&(m+="");else if(s[x]===null)this.isAttribute(x)?m+="":x[0]==="?"?m+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:m+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(s[x]instanceof Date)m+=this.buildTextValNode(s[x],x,"",c);else if(typeof s[x]!="object"){const p=this.isAttribute(x);if(p&&!this.ignoreAttributesFn(p,E))T+=this.buildAttrPairStr(p,""+s[x]);else if(!p)if(x===this.options.textNodeName){let h=this.options.tagValueProcessor(x,""+s[x]);m+=this.replaceEntitiesValue(h)}else m+=this.buildTextValNode(s[x],x,"",c)}else if(Array.isArray(s[x])){const p=s[x].length;let h="",g="";for(let y=0;y<p;y++){const w=s[x][y];if(w!==void 0)if(w===null)x[0]==="?"?m+=this.indentate(c)+"<"+x+"?"+this.tagEndChar:m+=this.indentate(c)+"<"+x+"/"+this.tagEndChar;else if(typeof w=="object")if(this.options.oneListGroup){const A=this.j2x(w,c+1,d.concat(x));h+=A.val,this.options.attributesGroupName&&w.hasOwnProperty(this.options.attributesGroupName)&&(g+=A.attrStr)}else h+=this.processTextOrObjNode(w,x,c,d);else if(this.options.oneListGroup){let A=this.options.tagValueProcessor(x,w);A=this.replaceEntitiesValue(A),h+=A}else h+=this.buildTextValNode(w,x,"",c)}this.options.oneListGroup&&(h=this.buildObjectNode(h,x,g,c)),m+=h}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){const p=Object.keys(s[x]),h=p.length;for(let g=0;g<h;g++)T+=this.buildAttrPairStr(p[g],""+s[x][p[g]])}else m+=this.processTextOrObjNode(s[x],x,c,d);return{attrStr:T,val:m}},a.prototype.buildAttrPairStr=function(s,c){return c=this.options.attributeValueProcessor(s,""+c),c=this.replaceEntitiesValue(c),this.options.suppressBooleanAttributes&&c==="true"?" "+s:" "+s+'="'+c+'"'},a.prototype.buildObjectNode=function(s,c,d,T){if(s==="")return c[0]==="?"?this.indentate(T)+"<"+c+d+"?"+this.tagEndChar:this.indentate(T)+"<"+c+d+this.closeTag(c)+this.tagEndChar;{let m="</"+c+this.tagEndChar,E="";return c[0]==="?"&&(E="?",m=""),!d&&d!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&c===this.options.commentPropName&&E.length===0?this.indentate(T)+`<!--${s}-->`+this.newLine:this.indentate(T)+"<"+c+d+E+this.tagEndChar+s+this.indentate(T)+m:this.indentate(T)+"<"+c+d+E+">"+s+m}},a.prototype.closeTag=function(s){let c="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(c="/"):c=this.options.suppressEmptyNode?"/":`></${s}`,c},a.prototype.buildTextValNode=function(s,c,d,T){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(T)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(T)+`<!--${s}-->`+this.newLine;if(c[0]==="?")return this.indentate(T)+"<"+c+d+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(c,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(T)+"<"+c+d+this.closeTag(c)+this.tagEndChar:this.indentate(T)+"<"+c+d+">"+m+"</"+c+this.tagEndChar}},a.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let c=0;c<this.options.entities.length;c++){const d=this.options.entities[c];s=s.replace(d.regex,d.val)}return s},e.exports=a},87:e=>{function t(a,u,f,l){let s="",c=!1;for(let d=0;d<a.length;d++){const T=a[d],m=r(T);if(m===void 0)continue;let E="";if(E=f.length===0?m:`${f}.${m}`,m===u.textNodeName){let g=T[m];o(E,u)||(g=u.tagValueProcessor(m,g),g=i(g,u)),c&&(s+=l),s+=g,c=!1;continue}if(m===u.cdataPropName){c&&(s+=l),s+=`<![CDATA[${T[m][0][u.textNodeName]}]]>`,c=!1;continue}if(m===u.commentPropName){s+=l+`<!--${T[m][0][u.textNodeName]}-->`,c=!0;continue}if(m[0]==="?"){const g=n(T[":@"],u),y=m==="?xml"?"":l;let w=T[m][0][u.textNodeName];w=w.length!==0?" "+w:"",s+=y+`<${m}${w}${g}?>`,c=!0;continue}let x=l;x!==""&&(x+=u.indentBy);const p=l+`<${m}${n(T[":@"],u)}`,h=t(T[m],u,E,x);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=p+">":s+=p+"/>":h&&h.length!==0||!u.suppressEmptyNode?h&&h.endsWith(">")?s+=p+`>${h}${l}</${m}>`:(s+=p+">",h&&l!==""&&(h.includes("/>")||h.includes("</"))?s+=l+u.indentBy+h+l:s+=h,s+=`</${m}>`):s+=p+"/>",c=!0}return s}function r(a){const u=Object.keys(a);for(let f=0;f<u.length;f++){const l=u[f];if(a.hasOwnProperty(l)&&l!==":@")return l}}function n(a,u){let f="";if(a&&!u.ignoreAttributes)for(let l in a){if(!a.hasOwnProperty(l))continue;let s=u.attributeValueProcessor(l,a[l]);s=i(s,u),s===!0&&u.suppressBooleanAttributes?f+=` ${l.substr(u.attributeNamePrefix.length)}`:f+=` ${l.substr(u.attributeNamePrefix.length)}="${s}"`}return f}function o(a,u){let f=(a=a.substr(0,a.length-u.textNodeName.length-1)).substr(a.lastIndexOf(".")+1);for(let l in u.stopNodes)if(u.stopNodes[l]===a||u.stopNodes[l]==="*."+f)return!0;return!1}function i(a,u){if(a&&a.length>0&&u.processEntities)for(let f=0;f<u.entities.length;f++){const l=u.entities[f];a=a.replace(l.regex,l.val)}return a}e.exports=function(a,u){let f="";return u.format&&u.indentBy.length>0&&(f=`
40
- `),t(a,u,"",f)}},193:(e,t,r)=>{const n=r(705);function o(c,d){let T="";for(;d<c.length&&c[d]!=="'"&&c[d]!=='"';d++)T+=c[d];if(T=T.trim(),T.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=c[d++];let E="";for(;d<c.length&&c[d]!==m;d++)E+=c[d];return[T,E,d]}function i(c,d){return c[d+1]==="!"&&c[d+2]==="-"&&c[d+3]==="-"}function a(c,d){return c[d+1]==="!"&&c[d+2]==="E"&&c[d+3]==="N"&&c[d+4]==="T"&&c[d+5]==="I"&&c[d+6]==="T"&&c[d+7]==="Y"}function u(c,d){return c[d+1]==="!"&&c[d+2]==="E"&&c[d+3]==="L"&&c[d+4]==="E"&&c[d+5]==="M"&&c[d+6]==="E"&&c[d+7]==="N"&&c[d+8]==="T"}function f(c,d){return c[d+1]==="!"&&c[d+2]==="A"&&c[d+3]==="T"&&c[d+4]==="T"&&c[d+5]==="L"&&c[d+6]==="I"&&c[d+7]==="S"&&c[d+8]==="T"}function l(c,d){return c[d+1]==="!"&&c[d+2]==="N"&&c[d+3]==="O"&&c[d+4]==="T"&&c[d+5]==="A"&&c[d+6]==="T"&&c[d+7]==="I"&&c[d+8]==="O"&&c[d+9]==="N"}function s(c){if(n.isName(c))return c;throw new Error(`Invalid entity name ${c}`)}e.exports=function(c,d){const T={};if(c[d+3]!=="O"||c[d+4]!=="C"||c[d+5]!=="T"||c[d+6]!=="Y"||c[d+7]!=="P"||c[d+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{d+=9;let m=1,E=!1,x=!1,p="";for(;d<c.length;d++)if(c[d]!=="<"||x)if(c[d]===">"){if(x?c[d-1]==="-"&&c[d-2]==="-"&&(x=!1,m--):m--,m===0)break}else c[d]==="["?E=!0:p+=c[d];else{if(E&&a(c,d)){let h,g;d+=7,[h,g,d]=o(c,d+1),g.indexOf("&")===-1&&(T[s(h)]={regx:RegExp(`&${h};`,"g"),val:g})}else if(E&&u(c,d))d+=8;else if(E&&f(c,d))d+=8;else if(E&&l(c,d))d+=9;else{if(!i)throw new Error("Invalid DOCTYPE");x=!0}m++,p=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:T,i:d}}},63:(e,t)=>{const r={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(n,o){return o},attributeValueProcessor:function(n,o){return o},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(n,o,i){return n}};t.buildOptions=function(n){return Object.assign({},r,n)},t.defaultOptions=r},299:(e,t,r)=>{const n=r(705),o=r(365),i=r(193),a=r(494),u=r(118);function f(A){const P=Object.keys(A);for(let I=0;I<P.length;I++){const O=P[I];this.lastEntities[O]={regex:new RegExp("&"+O+";","g"),val:A[O]}}}function l(A,P,I,O,j,G,L){if(A!==void 0&&(this.options.trimValues&&!O&&(A=A.trim()),A.length>0)){L||(A=this.replaceEntitiesValue(A));const D=this.options.tagValueProcessor(P,A,I,j,G);return D==null?A:typeof D!=typeof A||D!==A?D:this.options.trimValues||A.trim()===A?w(A,this.options.parseTagValue,this.options.numberParseOptions):A}}function s(A){if(this.options.removeNSPrefix){const P=A.split(":"),I=A.charAt(0)==="/"?"/":"";if(P[0]==="xmlns")return"";P.length===2&&(A=I+P[1])}return A}const c=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function d(A,P,I){if(this.options.ignoreAttributes!==!0&&typeof A=="string"){const O=n.getAllMatches(A,c),j=O.length,G={};for(let L=0;L<j;L++){const D=this.resolveNameSpace(O[L][1]);if(this.ignoreAttributesFn(D,P))continue;let oe=O[L][4],re=this.options.attributeNamePrefix+D;if(D.length)if(this.options.transformAttributeName&&(re=this.options.transformAttributeName(re)),re==="__proto__"&&(re="#__proto__"),oe!==void 0){this.options.trimValues&&(oe=oe.trim()),oe=this.replaceEntitiesValue(oe);const he=this.options.attributeValueProcessor(D,oe,P);G[re]=he==null?oe:typeof he!=typeof oe||he!==oe?he:w(oe,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(G[re]=!0)}if(!Object.keys(G).length)return;if(this.options.attributesGroupName){const L={};return L[this.options.attributesGroupName]=G,L}return G}}const T=function(A){A=A.replace(/\r\n?/g,`
41
- `);const P=new o("!xml");let I=P,O="",j="";for(let G=0;G<A.length;G++)if(A[G]==="<")if(A[G+1]==="/"){const L=h(A,">",G,"Closing Tag is not closed.");let D=A.substring(G+2,L).trim();if(this.options.removeNSPrefix){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1))}this.options.transformTagName&&(D=this.options.transformTagName(D)),I&&(O=this.saveTextToParentTag(O,I,j));const oe=j.substring(j.lastIndexOf(".")+1);if(D&&this.options.unpairedTags.indexOf(D)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${D}>`);let re=0;oe&&this.options.unpairedTags.indexOf(oe)!==-1?(re=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=j.lastIndexOf("."),j=j.substring(0,re),I=this.tagsNodeStack.pop(),O="",G=L}else if(A[G+1]==="?"){let L=g(A,G,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(O=this.saveTextToParentTag(O,I,j),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const D=new o(L.tagName);D.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(D[":@"]=this.buildAttributesMap(L.tagExp,j,L.tagName)),this.addChild(I,D,j)}G=L.closeIndex+1}else if(A.substr(G+1,3)==="!--"){const L=h(A,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const D=A.substring(G+4,L-2);O=this.saveTextToParentTag(O,I,j),I.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}G=L}else if(A.substr(G+1,2)==="!D"){const L=i(A,G);this.docTypeEntities=L.entities,G=L.i}else if(A.substr(G+1,2)==="!["){const L=h(A,"]]>",G,"CDATA is not closed.")-2,D=A.substring(G+9,L);O=this.saveTextToParentTag(O,I,j);let oe=this.parseTextData(D,I.tagname,j,!0,!1,!0,!0);oe==null&&(oe=""),this.options.cdataPropName?I.add(this.options.cdataPropName,[{[this.options.textNodeName]:D}]):I.add(this.options.textNodeName,oe),G=L+2}else{let L=g(A,G,this.options.removeNSPrefix),D=L.tagName;const oe=L.rawTagName;let re=L.tagExp,he=L.attrExpPresent,fe=L.closeIndex;this.options.transformTagName&&(D=this.options.transformTagName(D)),I&&O&&I.tagname!=="!xml"&&(O=this.saveTextToParentTag(O,I,j,!1));const ge=I;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(I=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),D!==P.tagname&&(j+=j?"."+D:D),this.isItStopNode(this.options.stopNodes,j,D)){let ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),j=j.substr(0,j.length-1),re=D):re=re.substr(0,re.length-1),G=L.closeIndex;else if(this.options.unpairedTags.indexOf(D)!==-1)G=L.closeIndex;else{const be=this.readStopNodeData(A,oe,fe+1);if(!be)throw new Error(`Unexpected end of ${oe}`);G=be.i,ce=be.tagContent}const Ee=new o(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,j,D)),ce&&(ce=this.parseTextData(ce,D,j,!0,he,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),Ee.add(this.options.textNodeName,ce),this.addChild(I,Ee,j)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),j=j.substr(0,j.length-1),re=D):re=re.substr(0,re.length-1),this.options.transformTagName&&(D=this.options.transformTagName(D));const ce=new o(D);D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,ce,j),j=j.substr(0,j.lastIndexOf("."))}else{const ce=new o(D);this.tagsNodeStack.push(I),D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,j,D)),this.addChild(I,ce,j),I=ce}O="",G=fe}}else O+=A[G];return P.child};function m(A,P,I){const O=this.options.updateTag(P.tagname,I,P[":@"]);O===!1||(typeof O=="string"&&(P.tagname=O),A.addChild(P))}const E=function(A){if(this.options.processEntities){for(let P in this.docTypeEntities){const I=this.docTypeEntities[P];A=A.replace(I.regx,I.val)}for(let P in this.lastEntities){const I=this.lastEntities[P];A=A.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){const I=this.htmlEntities[P];A=A.replace(I.regex,I.val)}A=A.replace(this.ampEntity.regex,this.ampEntity.val)}return A};function x(A,P,I,O){return A&&(O===void 0&&(O=Object.keys(P.child).length===0),(A=this.parseTextData(A,P.tagname,I,!1,!!P[":@"]&&Object.keys(P[":@"]).length!==0,O))!==void 0&&A!==""&&P.add(this.options.textNodeName,A),A=""),A}function p(A,P,I){const O="*."+I;for(const j in A){const G=A[j];if(O===G||P===G)return!0}return!1}function h(A,P,I,O){const j=A.indexOf(P,I);if(j===-1)throw new Error(O);return j+P.length-1}function g(A,P,I){const O=function(he,fe){let ge,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",Ee="";for(let be=fe;be<he.length;be++){let K=he[be];if(ge)K===ge&&(ge="");else if(K==='"'||K==="'")ge=K;else if(K===ce[0]){if(!ce[1])return{data:Ee,index:be};if(he[be+1]===ce[1])return{data:Ee,index:be}}else K===" "&&(K=" ");Ee+=K}}(A,P+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!O)return;let j=O.data;const G=O.index,L=j.search(/\s/);let D=j,oe=!0;L!==-1&&(D=j.substring(0,L),j=j.substring(L+1).trimStart());const re=D;if(I){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1),oe=D!==O.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function y(A,P,I){const O=I;let j=1;for(;I<A.length;I++)if(A[I]==="<")if(A[I+1]==="/"){const G=h(A,">",I,`${P} is not closed`);if(A.substring(I+2,G).trim()===P&&(j--,j===0))return{tagContent:A.substring(O,I),i:G};I=G}else if(A[I+1]==="?")I=h(A,"?>",I+1,"StopNode is not closed.");else if(A.substr(I+1,3)==="!--")I=h(A,"-->",I+3,"StopNode is not closed.");else if(A.substr(I+1,2)==="![")I=h(A,"]]>",I,"StopNode is not closed.")-2;else{const G=g(A,I,">");G&&((G&&G.tagName)===P&&G.tagExp[G.tagExp.length-1]!=="/"&&j++,I=G.closeIndex)}}function w(A,P,I){if(P&&typeof A=="string"){const O=A.trim();return O==="true"||O!=="false"&&a(A,I)}return n.isExist(A)?A:""}e.exports=class{constructor(A){this.options=A,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=f,this.parseXml=T,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=d,this.isItStopNode=p,this.replaceEntitiesValue=E,this.readStopNodeData=y,this.saveTextToParentTag=x,this.addChild=m,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}},338:(e,t,r)=>{const{buildOptions:n}=r(63),o=r(299),{prettify:i}=r(728),a=r(31);e.exports=class{constructor(u){this.externalEntities={},this.options=n(u)}parse(u,f){if(typeof u!="string"){if(!u.toString)throw new Error("XML data is accepted in String or Bytes[] form.");u=u.toString()}if(f){f===!0&&(f={});const c=a.validate(u,f);if(c!==!0)throw Error(`${c.err.msg}:${c.err.line}:${c.err.col}`)}const l=new o(this.options);l.addExternalEntities(this.externalEntities);const s=l.parseXml(u);return this.options.preserveOrder||s===void 0?s:i(s,this.options)}addEntity(u,f){if(f.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(u.indexOf("&")!==-1||u.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(f==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[u]=f}}},728:(e,t)=>{function r(a,u,f){let l;const s={};for(let c=0;c<a.length;c++){const d=a[c],T=n(d);let m="";if(m=f===void 0?T:f+"."+T,T===u.textNodeName)l===void 0?l=d[T]:l+=""+d[T];else{if(T===void 0)continue;if(d[T]){let E=r(d[T],u,m);const x=i(E,u);d[":@"]?o(E,d[":@"],m,u):Object.keys(E).length!==1||E[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(E).length===0&&(u.alwaysCreateTextNode?E[u.textNodeName]="":E=""):E=E[u.textNodeName],s[T]!==void 0&&s.hasOwnProperty(T)?(Array.isArray(s[T])||(s[T]=[s[T]]),s[T].push(E)):u.isArray(T,m,x)?s[T]=[E]:s[T]=E}}}return typeof l=="string"?l.length>0&&(s[u.textNodeName]=l):l!==void 0&&(s[u.textNodeName]=l),s}function n(a){const u=Object.keys(a);for(let f=0;f<u.length;f++){const l=u[f];if(l!==":@")return l}}function o(a,u,f,l){if(u){const s=Object.keys(u),c=s.length;for(let d=0;d<c;d++){const T=s[d];l.isArray(T,f+"."+T,!0,!0)?a[T]=[u[T]]:a[T]=u[T]}}}function i(a,u){const{textNodeName:f}=u,l=Object.keys(a).length;return l===0||!(l!==1||!a[f]&&typeof a[f]!="boolean"&&a[f]!==0)}t.prettify=function(a,u){return r(a,u)}},365:e=>{e.exports=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,r){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:r})}addChild(t){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child})}}},135:e=>{function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}e.exports=function(r){return r!=null&&(t(r)||function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}(r)||!!r._isBuffer)}},542:(e,t,r)=>{(function(){var n=r(298),o=r(526).utf8,i=r(135),a=r(526).bin,u=function(f,l){f.constructor==String?f=l&&l.encoding==="binary"?a.stringToBytes(f):o.stringToBytes(f):i(f)?f=Array.prototype.slice.call(f,0):Array.isArray(f)||f.constructor===Uint8Array||(f=f.toString());for(var s=n.bytesToWords(f),c=8*f.length,d=1732584193,T=-271733879,m=-1732584194,E=271733878,x=0;x<s.length;x++)s[x]=16711935&(s[x]<<8|s[x]>>>24)|4278255360&(s[x]<<24|s[x]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var p=u._ff,h=u._gg,g=u._hh,y=u._ii;for(x=0;x<s.length;x+=16){var w=d,A=T,P=m,I=E;d=p(d,T,m,E,s[x+0],7,-680876936),E=p(E,d,T,m,s[x+1],12,-389564586),m=p(m,E,d,T,s[x+2],17,606105819),T=p(T,m,E,d,s[x+3],22,-1044525330),d=p(d,T,m,E,s[x+4],7,-176418897),E=p(E,d,T,m,s[x+5],12,1200080426),m=p(m,E,d,T,s[x+6],17,-1473231341),T=p(T,m,E,d,s[x+7],22,-45705983),d=p(d,T,m,E,s[x+8],7,1770035416),E=p(E,d,T,m,s[x+9],12,-1958414417),m=p(m,E,d,T,s[x+10],17,-42063),T=p(T,m,E,d,s[x+11],22,-1990404162),d=p(d,T,m,E,s[x+12],7,1804603682),E=p(E,d,T,m,s[x+13],12,-40341101),m=p(m,E,d,T,s[x+14],17,-1502002290),d=h(d,T=p(T,m,E,d,s[x+15],22,1236535329),m,E,s[x+1],5,-165796510),E=h(E,d,T,m,s[x+6],9,-1069501632),m=h(m,E,d,T,s[x+11],14,643717713),T=h(T,m,E,d,s[x+0],20,-373897302),d=h(d,T,m,E,s[x+5],5,-701558691),E=h(E,d,T,m,s[x+10],9,38016083),m=h(m,E,d,T,s[x+15],14,-660478335),T=h(T,m,E,d,s[x+4],20,-405537848),d=h(d,T,m,E,s[x+9],5,568446438),E=h(E,d,T,m,s[x+14],9,-1019803690),m=h(m,E,d,T,s[x+3],14,-187363961),T=h(T,m,E,d,s[x+8],20,1163531501),d=h(d,T,m,E,s[x+13],5,-1444681467),E=h(E,d,T,m,s[x+2],9,-51403784),m=h(m,E,d,T,s[x+7],14,1735328473),d=g(d,T=h(T,m,E,d,s[x+12],20,-1926607734),m,E,s[x+5],4,-378558),E=g(E,d,T,m,s[x+8],11,-2022574463),m=g(m,E,d,T,s[x+11],16,1839030562),T=g(T,m,E,d,s[x+14],23,-35309556),d=g(d,T,m,E,s[x+1],4,-1530992060),E=g(E,d,T,m,s[x+4],11,1272893353),m=g(m,E,d,T,s[x+7],16,-155497632),T=g(T,m,E,d,s[x+10],23,-1094730640),d=g(d,T,m,E,s[x+13],4,681279174),E=g(E,d,T,m,s[x+0],11,-358537222),m=g(m,E,d,T,s[x+3],16,-722521979),T=g(T,m,E,d,s[x+6],23,76029189),d=g(d,T,m,E,s[x+9],4,-640364487),E=g(E,d,T,m,s[x+12],11,-421815835),m=g(m,E,d,T,s[x+15],16,530742520),d=y(d,T=g(T,m,E,d,s[x+2],23,-995338651),m,E,s[x+0],6,-198630844),E=y(E,d,T,m,s[x+7],10,1126891415),m=y(m,E,d,T,s[x+14],15,-1416354905),T=y(T,m,E,d,s[x+5],21,-57434055),d=y(d,T,m,E,s[x+12],6,1700485571),E=y(E,d,T,m,s[x+3],10,-1894986606),m=y(m,E,d,T,s[x+10],15,-1051523),T=y(T,m,E,d,s[x+1],21,-2054922799),d=y(d,T,m,E,s[x+8],6,1873313359),E=y(E,d,T,m,s[x+15],10,-30611744),m=y(m,E,d,T,s[x+6],15,-1560198380),T=y(T,m,E,d,s[x+13],21,1309151649),d=y(d,T,m,E,s[x+4],6,-145523070),E=y(E,d,T,m,s[x+11],10,-1120210379),m=y(m,E,d,T,s[x+2],15,718787259),T=y(T,m,E,d,s[x+9],21,-343485551),d=d+w>>>0,T=T+A>>>0,m=m+P>>>0,E=E+I>>>0}return n.endian([d,T,m,E])};u._ff=function(f,l,s,c,d,T,m){var E=f+(l&s|~l&c)+(d>>>0)+m;return(E<<T|E>>>32-T)+l},u._gg=function(f,l,s,c,d,T,m){var E=f+(l&c|s&~c)+(d>>>0)+m;return(E<<T|E>>>32-T)+l},u._hh=function(f,l,s,c,d,T,m){var E=f+(l^s^c)+(d>>>0)+m;return(E<<T|E>>>32-T)+l},u._ii=function(f,l,s,c,d,T,m){var E=f+(s^(l|~c))+(d>>>0)+m;return(E<<T|E>>>32-T)+l},u._blocksize=16,u._digestsize=16,e.exports=function(f,l){if(f==null)throw new Error("Illegal argument "+f);var s=n.wordsToBytes(u(f,l));return l&&l.asBytes?s:l&&l.asString?a.bytesToString(s):n.bytesToHex(s)}})()},285:(e,t,r)=>{var n=r(2);e.exports=function(p){return p?(p.substr(0,2)==="{}"&&(p="\\{\\}"+p.substr(2)),x(function(h){return h.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(f)}(p),!0).map(s)):[]};var o="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",f="\0PERIOD"+Math.random()+"\0";function l(p){return parseInt(p,10)==p?parseInt(p,10):p.charCodeAt(0)}function s(p){return p.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(f).join(".")}function c(p){if(!p)return[""];var h=[],g=n("{","}",p);if(!g)return p.split(",");var y=g.pre,w=g.body,A=g.post,P=y.split(",");P[P.length-1]+="{"+w+"}";var I=c(A);return A.length&&(P[P.length-1]+=I.shift(),P.push.apply(P,I)),h.push.apply(h,P),h}function d(p){return"{"+p+"}"}function T(p){return/^-?0\d/.test(p)}function m(p,h){return p<=h}function E(p,h){return p>=h}function x(p,h){var g=[],y=n("{","}",p);if(!y)return[p];var w=y.pre,A=y.post.length?x(y.post,!1):[""];if(/\$$/.test(y.pre))for(var P=0;P<A.length;P++){var I=w+"{"+y.body+"}"+A[P];g.push(I)}else{var O,j,G=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(y.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(y.body),D=G||L,oe=y.body.indexOf(",")>=0;if(!D&&!oe)return y.post.match(/,.*\}/)?x(p=y.pre+"{"+y.body+a+y.post):[p];if(D)O=y.body.split(/\.\./);else if((O=c(y.body)).length===1&&(O=x(O[0],!1).map(d)).length===1)return A.map(function(V){return y.pre+O[0]+V});if(D){var re=l(O[0]),he=l(O[1]),fe=Math.max(O[0].length,O[1].length),ge=O.length==3?Math.abs(l(O[2])):1,ce=m;he<re&&(ge*=-1,ce=E);var Ee=O.some(T);j=[];for(var be=re;ce(be,he);be+=ge){var K;if(L)(K=String.fromCharCode(be))==="\\"&&(K="");else if(K=String(be),Ee){var Q=fe-K.length;if(Q>0){var ee=new Array(Q+1).join("0");K=be<0?"-"+ee+K.slice(1):ee+K}}j.push(K)}}else{j=[];for(var ue=0;ue<O.length;ue++)j.push.apply(j,x(O[ue],!1))}for(ue=0;ue<j.length;ue++)for(P=0;P<A.length;P++)I=w+j[ue]+A[P],(!h||D||I)&&g.push(I)}return g}},829:e=>{function t(l){return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(l)}function r(l){var s=typeof Map=="function"?new Map:void 0;return r=function(c){if(c===null||(d=c,Function.toString.call(d).indexOf("[native code]")===-1))return c;var d;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(c))return s.get(c);s.set(c,T)}function T(){return n(c,arguments,i(this).constructor)}return T.prototype=Object.create(c.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),o(T,c)},r(l)}function n(l,s,c){return n=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(d,T,m){var E=[null];E.push.apply(E,T);var x=new(Function.bind.apply(d,E));return m&&o(x,m.prototype),x},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(c,d){return c.__proto__=d,c},o(l,s)}function i(l){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(s){return s.__proto__||Object.getPrototypeOf(s)},i(l)}var a=function(l){function s(c){var d;return function(T,m){if(!(T instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),(d=function(T,m){return!m||t(m)!=="object"&&typeof m!="function"?function(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}(T):m}(this,i(s).call(this,c))).name="ObjectPrototypeMutationError",d}return function(c,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(d&&d.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),d&&o(c,d)}(s,l),s}(r(Error));function u(l,s){for(var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},d=s.split("."),T=d.length,m=function(p){var h=d[p];if(!l)return{v:void 0};if(h==="+"){if(Array.isArray(l))return{v:l.map(function(y,w){var A=d.slice(p+1);return A.length>0?u(y,A.join("."),c):c(l,w,d,p)})};var g=d.slice(0,p).join(".");throw new Error("Object at wildcard (".concat(g,") is not an array"))}l=c(l,h,d,p)},E=0;E<T;E++){var x=m(E);if(t(x)==="object")return x.v}return l}function f(l,s){return l.length===s+1}e.exports={set:function(l,s,c){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s]=c,l[s];try{return u(l,s,function(d,T,m,E){if(d===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!d[T]){var x=Number.isInteger(Number(m[E+1])),p=m[E+1]==="+";d[T]=x||p?[]:{}}return f(m,E)&&(d[T]=c),d[T]})}catch(d){if(d instanceof a)throw d;return l}},get:function(l,s){if(t(l)!="object"||l===null||s===void 0)return l;if(typeof s=="number")return l[s];try{return u(l,s,function(c,d){return c[d]})}catch{return l}},has:function(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t(l)!="object"||l===null||s===void 0)return!1;if(typeof s=="number")return s in l;try{var d=!1;return u(l,s,function(T,m,E,x){if(!f(E,x))return T&&T[m];d=c.own?T.hasOwnProperty(m):m in T}),d}catch{return!1}},hasOwn:function(l,s,c){return this.has(l,s,c||{own:!0})},isIn:function(l,s,c){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var T=!1,m=!1;return u(l,s,function(E,x,p,h){return T=T||E===c||!!E&&E[x]===c,m=f(p,h)&&t(E)==="object"&&x in E,E&&E[x]}),d.validPath?T&&m:T}catch{return!1}},ObjectPrototypeMutationError:a}},47:(e,t,r)=>{var n=r(410),o=function(l){return typeof l=="string"};function i(l,s){for(var c=[],d=0;d<l.length;d++){var T=l[d];T&&T!=="."&&(T===".."?c.length&&c[c.length-1]!==".."?c.pop():s&&c.push(".."):c.push(T))}return c}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u={};function f(l){return a.exec(l).slice(1)}u.resolve=function(){for(var l="",s=!1,c=arguments.length-1;c>=-1&&!s;c--){var d=c>=0?arguments[c]:me.cwd();if(!o(d))throw new TypeError("Arguments to path.resolve must be strings");d&&(l=d+"/"+l,s=d.charAt(0)==="/")}return(s?"/":"")+(l=i(l.split("/"),!s).join("/"))||"."},u.normalize=function(l){var s=u.isAbsolute(l),c=l.substr(-1)==="/";return(l=i(l.split("/"),!s).join("/"))||s||(l="."),l&&c&&(l+="/"),(s?"/":"")+l},u.isAbsolute=function(l){return l.charAt(0)==="/"},u.join=function(){for(var l="",s=0;s<arguments.length;s++){var c=arguments[s];if(!o(c))throw new TypeError("Arguments to path.join must be strings");c&&(l+=l?"/"+c:c)}return u.normalize(l)},u.relative=function(l,s){function c(h){for(var g=0;g<h.length&&h[g]==="";g++);for(var y=h.length-1;y>=0&&h[y]==="";y--);return g>y?[]:h.slice(g,y+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var d=c(l.split("/")),T=c(s.split("/")),m=Math.min(d.length,T.length),E=m,x=0;x<m;x++)if(d[x]!==T[x]){E=x;break}var p=[];for(x=E;x<d.length;x++)p.push("..");return(p=p.concat(T.slice(E))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=f(l),c=s[0],d=s[1];return c||d?(d&&(d=d.substr(0,d.length-1)),c+d):"."},u.basename=function(l,s){var c=f(l)[2];return s&&c.substr(-1*s.length)===s&&(c=c.substr(0,c.length-s.length)),c},u.extname=function(l){return f(l)[3]},u.format=function(l){if(!n.isObject(l))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof l);var s=l.root||"";if(!o(s))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof l.root);return(l.dir?l.dir+u.sep:"")+(l.base||"")},u.parse=function(l){if(!o(l))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof l);var s=f(l);if(!s||s.length!==4)throw new TypeError("Invalid path '"+l+"'");return s[1]=s[1]||"",s[2]=s[2]||"",s[3]=s[3]||"",{root:s[0],dir:s[0]+s[1].slice(0,s[1].length-1),base:s[2],ext:s[3],name:s[2].slice(0,s[2].length-s[3].length)}},u.sep="/",u.delimiter=":",e.exports=u},647:(e,t)=>{var r=Object.prototype.hasOwnProperty;function n(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function o(i){try{return encodeURIComponent(i)}catch{return null}}t.stringify=function(i,a){a=a||"";var u,f,l=[];for(f in typeof a!="string"&&(a="?"),i)if(r.call(i,f)){if((u=i[f])||u!=null&&!isNaN(u)||(u=""),f=o(f),u=o(u),f===null||u===null)continue;l.push(f+"="+u)}return l.length?a+l.join("&"):""},t.parse=function(i){for(var a,u=/([^=?#&]+)=?([^&]*)/g,f={};a=u.exec(i);){var l=n(a[1]),s=n(a[2]);l===null||s===null||l in f||(f[l]=s)}return f}},670:e=>{e.exports=function(t,r){if(r=r.split(":")[0],!(t=+t))return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}},494:e=>{const t=/^[-+]?0x[a-fA-F0-9]+$/,r=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};e.exports=function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(i=Object.assign({},n,i),!o||typeof o!="string")return o;let a=o.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return o;if(i.hex&&t.test(a))return Number.parseInt(a,16);{const f=r.exec(a);if(f){const l=f[1],s=f[2];let c=((u=f[3])&&u.indexOf(".")!==-1&&((u=u.replace(/0+$/,""))==="."?u="0":u[0]==="."?u="0"+u:u[u.length-1]==="."&&(u=u.substr(0,u.length-1))),u);const d=f[4]||f[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const T=Number(a),m=""+T;return m.search(/[eE]/)!==-1||d?i.eNotation?T:o:a.indexOf(".")!==-1?m==="0"&&c===""||m===c||l&&m==="-"+c?T:o:s?c===m||l+c===m?T:o:a===m||a===l+m?T:o}}return o}var u}},737:(e,t,r)=>{var n=r(670),o=r(647),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,u=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,f=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,s=/^[a-zA-Z]:/;function c(h){return(h||"").toString().replace(i,"")}var d=[["#","hash"],["?","query"],function(h,g){return E(g.protocol)?h.replace(/\\/g,"/"):h},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],T={hash:1,query:1};function m(h){var g,y=(typeof window<"u"?window:typeof Ut<"u"?Ut:typeof self<"u"?self:{}).location||{},w={},A=typeof(h=h||y);if(h.protocol==="blob:")w=new p(unescape(h.pathname),{});else if(A==="string")for(g in w=new p(h,{}),T)delete w[g];else if(A==="object"){for(g in h)g in T||(w[g]=h[g]);w.slashes===void 0&&(w.slashes=u.test(h.href))}return w}function E(h){return h==="file:"||h==="ftp:"||h==="http:"||h==="https:"||h==="ws:"||h==="wss:"}function x(h,g){h=(h=c(h)).replace(a,""),g=g||{};var y,w=l.exec(h),A=w[1]?w[1].toLowerCase():"",P=!!w[2],I=!!w[3],O=0;return P?I?(y=w[2]+w[3]+w[4],O=w[2].length+w[3].length):(y=w[2]+w[4],O=w[2].length):I?(y=w[3]+w[4],O=w[3].length):y=w[4],A==="file:"?O>=2&&(y=y.slice(2)):E(A)?y=w[4]:A?P&&(y=y.slice(2)):O>=2&&E(g.protocol)&&(y=w[4]),{protocol:A,slashes:P||E(A),slashesCount:O,rest:y}}function p(h,g,y){if(h=(h=c(h)).replace(a,""),!(this instanceof p))return new p(h,g,y);var w,A,P,I,O,j,G=d.slice(),L=typeof g,D=this,oe=0;for(L!=="object"&&L!=="string"&&(y=g,g=null),y&&typeof y!="function"&&(y=o.parse),w=!(A=x(h||"",g=m(g))).protocol&&!A.slashes,D.slashes=A.slashes||w&&g.slashes,D.protocol=A.protocol||g.protocol||"",h=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||s.test(h))||!A.slashes&&(A.protocol||A.slashesCount<2||!E(D.protocol)))&&(G[3]=[/(.*)/,"pathname"]);oe<G.length;oe++)typeof(I=G[oe])!="function"?(P=I[0],j=I[1],P!=P?D[j]=h:typeof P=="string"?~(O=P==="@"?h.lastIndexOf(P):h.indexOf(P))&&(typeof I[2]=="number"?(D[j]=h.slice(0,O),h=h.slice(O+I[2])):(D[j]=h.slice(O),h=h.slice(0,O))):(O=P.exec(h))&&(D[j]=O[1],h=h.slice(0,O.index)),D[j]=D[j]||w&&I[3]&&g[j]||"",I[4]&&(D[j]=D[j].toLowerCase())):h=I(h,D);y&&(D.query=y(D.query)),w&&g.slashes&&D.pathname.charAt(0)!=="/"&&(D.pathname!==""||g.pathname!=="")&&(D.pathname=function(re,he){if(re==="")return he;for(var fe=(he||"/").split("/").slice(0,-1).concat(re.split("/")),ge=fe.length,ce=fe[ge-1],Ee=!1,be=0;ge--;)fe[ge]==="."?fe.splice(ge,1):fe[ge]===".."?(fe.splice(ge,1),be++):be&&(ge===0&&(Ee=!0),fe.splice(ge,1),be--);return Ee&&fe.unshift(""),ce!=="."&&ce!==".."||fe.push(""),fe.join("/")}(D.pathname,g.pathname)),D.pathname.charAt(0)!=="/"&&E(D.protocol)&&(D.pathname="/"+D.pathname),n(D.port,D.protocol)||(D.host=D.hostname,D.port=""),D.username=D.password="",D.auth&&(~(O=D.auth.indexOf(":"))?(D.username=D.auth.slice(0,O),D.username=encodeURIComponent(decodeURIComponent(D.username)),D.password=D.auth.slice(O+1),D.password=encodeURIComponent(decodeURIComponent(D.password))):D.username=encodeURIComponent(decodeURIComponent(D.auth)),D.auth=D.password?D.username+":"+D.password:D.username),D.origin=D.protocol!=="file:"&&E(D.protocol)&&D.host?D.protocol+"//"+D.host:"null",D.href=D.toString()}p.prototype={set:function(h,g,y){var w=this;switch(h){case"query":typeof g=="string"&&g.length&&(g=(y||o.parse)(g)),w[h]=g;break;case"port":w[h]=g,n(g,w.protocol)?g&&(w.host=w.hostname+":"+g):(w.host=w.hostname,w[h]="");break;case"hostname":w[h]=g,w.port&&(g+=":"+w.port),w.host=g;break;case"host":w[h]=g,f.test(g)?(g=g.split(":"),w.port=g.pop(),w.hostname=g.join(":")):(w.hostname=g,w.port="");break;case"protocol":w.protocol=g.toLowerCase(),w.slashes=!y;break;case"pathname":case"hash":if(g){var A=h==="pathname"?"/":"#";w[h]=g.charAt(0)!==A?A+g:g}else w[h]=g;break;case"username":case"password":w[h]=encodeURIComponent(g);break;case"auth":var P=g.indexOf(":");~P?(w.username=g.slice(0,P),w.username=encodeURIComponent(decodeURIComponent(w.username)),w.password=g.slice(P+1),w.password=encodeURIComponent(decodeURIComponent(w.password))):w.username=encodeURIComponent(decodeURIComponent(g))}for(var I=0;I<d.length;I++){var O=d[I];O[4]&&(w[O[1]]=w[O[1]].toLowerCase())}return w.auth=w.password?w.username+":"+w.password:w.username,w.origin=w.protocol!=="file:"&&E(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString(),w},toString:function(h){h&&typeof h=="function"||(h=o.stringify);var g,y=this,w=y.host,A=y.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var P=A+(y.protocol&&y.slashes||E(y.protocol)?"//":"");return y.username?(P+=y.username,y.password&&(P+=":"+y.password),P+="@"):y.password?(P+=":"+y.password,P+="@"):y.protocol!=="file:"&&E(y.protocol)&&!w&&y.pathname!=="/"&&(P+="@"),(w[w.length-1]===":"||f.test(y.hostname)&&!y.port)&&(w+=":"),P+=w+y.pathname,(g=typeof y.query=="object"?h(y.query):y.query)&&(P+=g.charAt(0)!=="?"?"?"+g:g),y.hash&&(P+=y.hash),P}},p.extractProtocol=x,p.location=m,p.trimLeft=c,p.qs=o,e.exports=p},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},jf={};function Fe(e){var t=jf[e];if(t!==void 0)return t.exports;var r=jf[e]={id:e,loaded:!1,exports:{}};return vm[e].call(r.exports,r,r.exports,Fe),r.loaded=!0,r.exports}Fe.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return Fe.d(t,{a:t}),t},Fe.d=(e,t)=>{for(var r in t)Fe.o(t,r)&&!Fe.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Fe.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Fe.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var Et={};Fe.d(Et,{hT:()=>ht,O4:()=>qt,Kd:()=>Rm,YK:()=>Im,UU:()=>Ub,Gu:()=>zf,ky:()=>fc,h4:()=>Zr,ch:()=>Kn,hq:()=>lr,i5:()=>cc});var Em=Fe(737),xm=Fe.n(Em);function hs(e){if(!ds(e))throw new Error("Parameter was not an error")}function ds(e){return!!e&&typeof e=="object"&&(t=e,Object.prototype.toString.call(t)==="[object Error]")||e instanceof Error;var t}class ct extends Error{constructor(t,r){const n=[...arguments],{options:o,shortMessage:i}=function(u){let f,l="";if(u.length===0)f={};else if(ds(u[0]))f={cause:u[0]},l=u.slice(1).join(" ")||"";else if(u[0]&&typeof u[0]=="object")f=Object.assign({},u[0]),l=u.slice(1).join(" ")||"";else{if(typeof u[0]!="string")throw new Error("Invalid arguments passed to Layerr");f={},l=l=u.join(" ")||""}return{options:f,shortMessage:l}}(n);let a=i;if(o.cause&&(a=`${a}: ${o.cause.message}`),super(a),this.message=a,o.name&&typeof o.name=="string"?this.name=o.name:this.name="Layerr",o.cause&&Object.defineProperty(this,"_cause",{value:o.cause}),Object.defineProperty(this,"_info",{value:{}}),o.info&&typeof o.info=="object"&&Object.assign(this._info,o.info),Error.captureStackTrace){const u=o.constructorOpt||this.constructor;Error.captureStackTrace(this,u)}}static cause(t){return hs(t),t._cause&&ds(t._cause)?t._cause:null}static fullStack(t){hs(t);const r=ct.cause(t);return r?`${t.stack}
42
- caused by: ${ct.fullStack(r)}`:t.stack??""}static info(t){hs(t);const r={},n=ct.cause(t);return n&&Object.assign(r,ct.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var Am=Fe(47),Mn=Fe.n(Am);const kf="__PATH_SEPARATOR_POSIX__",Mf="__PATH_SEPARATOR_WINDOWS__";function He(e){try{const t=e.replace(/\//g,kf).replace(/\\\\/g,Mf);return encodeURIComponent(t).split(Mf).join("\\\\").split(kf).join("/")}catch(t){throw new ct(t,"Failed encoding path")}}function Df(e){return e.startsWith("/")?e:"/"+e}function zr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function Tm(e){let t=new(xm())(e).pathname;return t.length<=0&&(t="/"),zr(t)}function Ve(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){return function(n){var o=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a<n.length;a++){var u=n[a];if(typeof u!="string")throw new TypeError("Url must be a string. Received "+u);u!==""&&(a>0&&(u=u.replace(/^[\/]+/,"")),u=a<n.length-1?u.replace(/[\/]+$/,""):u.replace(/[\/]+$/,"/"),o.push(u))}var f=o.join("/"),l=(f=f.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return l.shift()+(l.length>0?"?":"")+l.join("&")}(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))}(t.reduce((n,o,i)=>((i===0||o!=="/"||o==="/"&&n[n.length-1]!=="/")&&n.push(o),n),[]))}var Sm=Fe(542),Xr=Fe.n(Sm);const _m="abcdef0123456789";function $f(e,t){const r=e.url.replace("//",""),n=r.indexOf("/")==-1?"/":r.slice(r.indexOf("/")),o=e.method?e.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),u=function(d,T,m,E,x,p,h){const g=h||Xr()(`${T}:${m}:${E}`);return d&&d.toLowerCase()==="md5-sess"?Xr()(`${g}:${x}:${p}`):g}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),f=Xr()(`${o}:${n}`),l=i?Xr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${f}`):Xr()(`${u}:${t.nonce}:${f}`),s={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:l,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},c=[];for(const d in s)s[d]&&(d==="qop"||d==="nc"||d==="algorithm"?c.push(`${d}=${s[d]}`):c.push(`${d}="${s[d]}"`));return`Digest ${c.join(", ")}`}function qf(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Om=Fe(101),Hf=Fe.n(Om);function Vf(e){return Hf().decode(e)}function Wf(e,t){var r;return`Basic ${r=`${e}:${t}`,Hf().encode(r)}`}const Dn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,Nm=Dn.fetch.bind(Dn),Rm=Dn.Request,Im=Dn.Response;let ht=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),qt=function(e){return e.DataTypeNoLength="data-type-no-length",e.InvalidAuthType="invalid-auth-type",e.InvalidOutputFormat="invalid-output-format",e.LinkUnsupportedAuthType="link-unsupported-auth",e.InvalidUpdateRange="invalid-update-range",e.NotSupported="not-supported",e}({});function Gf(e,t,r,n,o){switch(e.authType){case ht.Auto:t&&r&&(e.headers.Authorization=Wf(t,r));break;case ht.Digest:e.digest=function(a,u,f){return{username:a,password:u,ha1:f,nc:0,algorithm:"md5",hasDigestAuth:!1}}(t,r,o);break;case ht.None:break;case ht.Password:e.headers.Authorization=Wf(t,r);break;case ht.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new ct({info:{code:qt.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Fe(345),Fe(800);const Kf="@@HOTPATCHER",Pm=()=>{};function ps(e){return{original:e,methods:[e],final:!1}}class Fm{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Kf}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Kf)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach(n=>{this.configuration.registry.hasOwnProperty(n)?r&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])}),t._configuration=this.configuration,this}execute(t){const r=this.get(t)||Pm;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r(...o)}get(t){const r=this.configuration.registry[t];if(!r)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error(`Failed handling method request: No method provided for override: ${t}`);default:throw new Error(`Failed handling request which resulted in an empty method: Invalid empty-action specified: ${this.getEmptyAction}`)}return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if(o.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];let l=u;const s=this;for(;o.length>0;)l=[o.shift().apply(s,l)];return l[0]}}(...r.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:o=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof r!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(o)this.configuration.registry[t]?this.configuration.registry[t].methods.push(r):this.configuration.registry[t]=ps(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(ps(r),{original:i})}else this.configuration.registry[t]=ps(r);return this}patchInline(t,r){this.isPatched(t)||this.patch(t,r);for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return this.execute(t,...o)}plugin(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach(i=>{this.patch(t,i,{chain:!0})}),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let gs=null;function zf(){return gs||(gs=new Fm),gs}function $n(e){return function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(t)===r}(e)?Object.assign({},e):Object.setPrototypeOf(Object.assign({},e),Object.getPrototypeOf(e))}function Xf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let n=null,o=[...t];for(;o.length>0;){const i=o.shift();n=n?Yf(n,i):$n(i)}return n}function Yf(e,t){const r=$n(e);return Object.keys(t).forEach(n=>{r.hasOwnProperty(n)?Array.isArray(t[n])?r[n]=Array.isArray(r[n])?[...r[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?r[n]=typeof r[n]=="object"&&r[n]?Yf(r[n],t[n]):$n(t[n]):r[n]=t[n]:r[n]=t[n]}),r}function Cm(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function ys(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length===0)return{};const n={};return t.reduce((o,i)=>(Object.keys(i).forEach(a=>{const u=a.toLowerCase();n.hasOwnProperty(u)?o[n[u]]=i[a]:(n[u]=a,o[a]=i[a])}),o),{})}Fe(805);const Bm=typeof ArrayBuffer=="function",{toString:Lm}=Object.prototype;function Jf(e){return Bm&&(e instanceof ArrayBuffer||Lm.call(e)==="[object ArrayBuffer]")}function Zf(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ms(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function bs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Qf=ms(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=Xf(e,{headers:{Authorization:$f(e,t)}})),bs(qn(e),function(r){let n=!1;return o=function(a){return n?a:r},(i=function(){if(r.status==401)return t.hasDigestAuth=function(a,u){if(!qf(a))return!1;const f=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){const l=a.headers&&a.headers.get("www-authenticate")||"",s=f.exec(l);if(!s)break;u[s[1]]=s[2]||s[3]}return u.nc+=1,u.cnonce=function(){let l="";for(let s=0;s<32;++s)l=`${l}${_m[Math.floor(16*Math.random())]}`;return l}(),!0}(r,t),function(){if(t.hasDigestAuth)return bs(qn(e=Xf(e,{headers:{Authorization:$f(e,t)}})),function(a){return a.status==401?t.hasDigestAuth=!1:t.nc++,n=!0,a})}();t.nc++}())&&i.then?i.then(o):o(i);var o,i})}),Um=ms(function(e,t){return bs(qn(e),function(r){return r.ok?(t.authType=ht.Password,r):r.status==401&&qf(r)?(t.authType=ht.Digest,Gf(t,t.username,t.password,void 0,void 0),e._digest=t.digest,Qf(e)):r})}),Ze=ms(function(e,t){return t.authType===ht.Auto?Um(e,t):e._digest?Qf(e):qn(e)});function Qe(e,t,r){const n=$n(e);return n.headers=ys(t.headers,n.headers||{},r.headers||{}),r.data!==void 0&&(n.data=r.data),r.signal&&(n.signal=r.signal),t.httpAgent&&(n.httpAgent=t.httpAgent),t.httpsAgent&&(n.httpsAgent=t.httpsAgent),t.digest&&(n._digest=t.digest),typeof t.withCredentials=="boolean"&&(n.withCredentials=t.withCredentials),n}function qn(e){const t=zf();return t.patchInline("request",r=>t.patchInline("fetch",Nm,r.url,function(n){let o={};const i={method:n.method};if(n.headers&&(o=ys(o,n.headers)),n.data!==void 0){const[a,u]=function(f){if(typeof f=="string")return[f,{}];if(Zf(f))return[f,{}];if(Jf(f))return[f,{}];if(f&&typeof f=="object")return[JSON.stringify(f),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof f)}(n.data);i.body=a,o=ys(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i}(r)),e)}var jm=Fe(285);const Hn=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},km={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Yr=e=>e.replace(/[[\]\\-]/g,"\\$&"),ec=e=>e.join(""),Mm=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let i=r+1,a=!1,u=!1,f=!1,l=!1,s=r,c="";e:for(;i<e.length;){const E=e.charAt(i);if(E!=="!"&&E!=="^"||i!==r+1){if(E==="]"&&a&&!f){s=i+1;break}if(a=!0,E!=="\\"||f){if(E==="["&&!f){for(const[x,[p,h,g]]of Object.entries(km))if(e.startsWith(x,i)){if(c)return["$.",!1,e.length-r,!0];i+=x.length,g?o.push(p):n.push(p),u=u||h;continue e}}f=!1,c?(E>c?n.push(Yr(c)+"-"+Yr(E)):E===c&&n.push(Yr(E)),c="",i++):e.startsWith("-]",i+1)?(n.push(Yr(E+"-")),i+=2):e.startsWith("-",i+1)?(c=E,i+=2):(n.push(Yr(E)),i++)}else f=!0,i++}else l=!0,i++}if(s<i)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l)return[(d=n[0].length===2?n[0].slice(-1):n[0],d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var d;const T="["+(l?"^":"")+ec(n)+"]",m="["+(l?"":"^")+ec(o)+"]";return[n.length&&o.length?"("+T+"|"+m+")":n.length?T:m,u,s-r,!0]},Jr=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},Dm=new Set(["!","?","+","*","@"]),tc=e=>Dm.has(e),ws="(?!\\.)",$m=new Set(["[","."]),qm=new Set(["..","."]),Hm=new Set("().*{}+?[]^$\\!"),vs="[^/]",rc=vs+"*?",nc=vs+"+?",gt=class gt{constructor(t,r){Ne(this,dr);ye(this,"type");Ne(this,tt);Ne(this,nt);Ne(this,Wt,!1);Ne(this,ke,[]);Ne(this,Ye);Ne(this,Xt);Ne(this,cr);Ne(this,Yt,!1);Ne(this,Bt);Ne(this,hr);Ne(this,sn,!1);let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&ve(this,nt,!0),ve(this,Ye,r),ve(this,tt,J(this,Ye)?J(J(this,Ye),tt):this),ve(this,Bt,J(this,tt)===this?n:J(J(this,tt),Bt)),ve(this,cr,J(this,tt)===this?[]:J(J(this,tt),cr)),t!=="!"||J(J(this,tt),Yt)||J(this,cr).push(this),ve(this,Xt,J(this,Ye)?J(J(this,Ye),ke).length:0)}get hasMagic(){if(J(this,nt)!==void 0)return J(this,nt);for(const t of J(this,ke))if(typeof t!="string"&&(t.type||t.hasMagic))return ve(this,nt,!0);return J(this,nt)}toString(){return J(this,hr)!==void 0?J(this,hr):this.type?ve(this,hr,this.type+"("+J(this,ke).map(t=>String(t)).join("|")+")"):ve(this,hr,J(this,ke).map(t=>String(t)).join(""))}push(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const o of r)if(o!==""){if(typeof o!="string"&&!(o instanceof gt&&J(o,Ye)===this))throw new Error("invalid part: "+o);J(this,ke).push(o)}}toJSON(){var r;const t=this.type===null?J(this,ke).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...J(this,ke).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===J(this,tt)||J(J(this,tt),Yt)&&((r=J(this,Ye))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(J(this,tt)===this)return!0;if(!((r=J(this,Ye))!=null&&r.isStart()))return!1;if(J(this,Xt)===0)return!0;const t=J(this,Ye);for(let n=0;n<J(this,Xt);n++){const o=J(t,ke)[n];if(!(o instanceof gt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(J(this,tt)===this||((r=J(this,Ye))==null?void 0:r.type)==="!")return!0;if(!((n=J(this,Ye))!=null&&n.isEnd()))return!1;if(!this.type)return(o=J(this,Ye))==null?void 0:o.isEnd();const t=J(this,Ye)?J(J(this,Ye),ke).length:0;return J(this,Xt)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new gt(this.type,t);for(const n of J(this,ke))r.copyIn(n);return r}static fromGlob(t){var o;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=new gt(null,void 0,r);return $e(o=gt,Jt,ti).call(o,t,n,0,r),n}toMMPattern(){if(this!==J(this,tt))return J(this,tt).toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||J(this,nt)||J(this,Bt).nocase&&!J(this,Bt).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(J(this,Bt).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return J(this,Bt)}toRegExpSource(t){var f;const r=t??!!J(this,Bt).dot;if(J(this,tt)===this&&$e(this,dr,Kc).call(this),!this.type){const l=this.isStart()&&this.isEnd(),s=J(this,ke).map(T=>{var h;const[m,E,x,p]=typeof T=="string"?$e(h=gt,Jt,zc).call(h,T,J(this,nt),l):T.toRegExpSource(t);return ve(this,nt,J(this,nt)||x),ve(this,Wt,J(this,Wt)||p),m}).join("");let c="";if(this.isStart()&&typeof J(this,ke)[0]=="string"&&(J(this,ke).length!==1||!qm.has(J(this,ke)[0]))){const T=$m,m=r&&T.has(s.charAt(0))||s.startsWith("\\.")&&T.has(s.charAt(2))||s.startsWith("\\.\\.")&&T.has(s.charAt(4)),E=!r&&!t&&T.has(s.charAt(0));c=m?"(?!(?:^|/)\\.\\.?(?:$|/))":E?ws:""}let d="";return this.isEnd()&&J(J(this,tt),Yt)&&((f=J(this,Ye))==null?void 0:f.type)==="!"&&(d="(?:$|\\/)"),[c+s+d,Jr(s),ve(this,nt,!!J(this,nt)),J(this,Wt)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=$e(this,dr,Zs).call(this,r);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const l=this.toString();return ve(this,ke,[l]),this.type=null,ve(this,nt,void 0),[l,Jr(this.toString()),!1,!1]}let a=!n||t||r?"":$e(this,dr,Zs).call(this,!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&J(this,sn)?(this.isStart()&&!r?ws:"")+nc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":ws)+rc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,Jr(i),ve(this,nt,!!J(this,nt)),J(this,Wt)]}};tt=new WeakMap,nt=new WeakMap,Wt=new WeakMap,ke=new WeakMap,Ye=new WeakMap,Xt=new WeakMap,cr=new WeakMap,Yt=new WeakMap,Bt=new WeakMap,hr=new WeakMap,sn=new WeakMap,dr=new WeakSet,Kc=function(){if(this!==J(this,tt))throw new Error("should only call on root");if(J(this,Yt))return this;let t;for(this.toString(),ve(this,Yt,!0);t=J(this,cr).pop();){if(t.type!=="!")continue;let r=t,n=J(r,Ye);for(;n;){for(let o=J(r,Xt)+1;!n.type&&o<J(n,ke).length;o++)for(const i of J(t,ke)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(J(n,ke)[o])}r=n,n=J(r,Ye)}}return this},Jt=new WeakSet,ti=function(t,r,n,o){var T,m;let i=!1,a=!1,u=-1,f=!1;if(r.type===null){let E=n,x="";for(;E<t.length;){const p=t.charAt(E++);if(i||p==="\\")i=!i,x+=p;else if(a)E===u+1?p!=="^"&&p!=="!"||(f=!0):p!=="]"||E===u+2&&f||(a=!1),x+=p;else if(p!=="[")if(o.noext||!tc(p)||t.charAt(E)!=="(")x+=p;else{r.push(x),x="";const h=new gt(p,r);E=$e(T=gt,Jt,ti).call(T,t,h,E,o),r.push(h)}else a=!0,u=E,f=!1,x+=p}return r.push(x),E}let l=n+1,s=new gt(null,r);const c=[];let d="";for(;l<t.length;){const E=t.charAt(l++);if(i||E==="\\")i=!i,d+=E;else if(a)l===u+1?E!=="^"&&E!=="!"||(f=!0):E!=="]"||l===u+2&&f||(a=!1),d+=E;else if(E!=="[")if(tc(E)&&t.charAt(l)==="("){s.push(d),d="";const x=new gt(E,s);s.push(x),l=$e(m=gt,Jt,ti).call(m,t,x,l,o)}else if(E!=="|"){if(E===")")return d===""&&J(r,ke).length===0&&ve(r,sn,!0),s.push(d),d="",r.push(...c,s),l;d+=E}else s.push(d),d="",c.push(s),s=new gt(null,r);else a=!0,u=l,f=!1,d+=E}return r.type=null,ve(r,nt,void 0),ve(r,ke,[t.substring(n-1)]),l},Zs=function(t){return J(this,ke).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,i,a]=r.toRegExpSource(t);return ve(this,Wt,J(this,Wt)||a),n}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},zc=function(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=!1,i="",a=!1;for(let u=0;u<t.length;u++){const f=t.charAt(u);if(o)o=!1,i+=(Hm.has(f)?"\\":"")+f;else if(f!=="\\"){if(f==="["){const[l,s,c,d]=Mm(t,u);if(c){i+=l,a=a||s,u+=c-1,r=r||d;continue}}f!=="*"?f!=="?"?i+=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=vs,r=!0):(i+=n&&t==="*"?nc:rc,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,Jr(t),!!r,a]},Ne(gt,Jt);let Vn=gt;const lt=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Hn(t),!(!r.nocomment&&t.charAt(0)==="#")&&new Wn(t,r).match(e)},Vm=/^\*+([^+@!?\*\[\(]*)$/,Wm=e=>t=>!t.startsWith(".")&&t.endsWith(e),Gm=e=>t=>t.endsWith(e),Km=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),zm=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Xm=/^\*+\.\*+$/,Ym=e=>!e.startsWith(".")&&e.includes("."),Jm=e=>e!=="."&&e!==".."&&e.includes("."),Zm=/^\.\*+$/,Qm=e=>e!=="."&&e!==".."&&e.startsWith("."),eb=/^\*+$/,tb=e=>e.length!==0&&!e.startsWith("."),rb=e=>e.length!==0&&e!=="."&&e!=="..",nb=/^\?+([^+@!?\*\[\(]*)?$/,ib=e=>{let[t,r=""]=e;const n=ic([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},ob=e=>{let[t,r=""]=e;const n=oc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},sb=e=>{let[t,r=""]=e;const n=oc([t]);return r?o=>n(o)&&o.endsWith(r):n},ab=e=>{let[t,r=""]=e;const n=ic([t]);return r?o=>n(o)&&o.endsWith(r):n},ic=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},oc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},sc=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";lt.sep=sc==="win32"?"\\":"/";const xt=Symbol("globstar **");lt.GLOBSTAR=xt,lt.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>lt(r,e,t)};const At=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},e,t)};lt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return lt;const t=lt;return Object.assign(function(r,n){return t(r,n,At(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends t.Minimatch{constructor(r){super(r,At(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(At(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,At(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))}static fromGlob(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.AST.fromGlob(r,At(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,At(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,At(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,At(e,n))},defaults:r=>t.defaults(At(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,At(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,At(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,At(e,o))},sep:t.sep,GLOBSTAR:xt})};const ac=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Hn(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:jm(e)};lt.braceExpand=ac,lt.makeRe=function(e){return new Wn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},lt.match=function(e,t){const r=new Wn(t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return e=e.filter(n=>r.match(n)),r.options.nonull&&!e.length&&e.push(t),e};const uc=/[?*]|[+@!]\(.*?\)|\[|\]/;class Wn{constructor(t){ye(this,"options");ye(this,"set");ye(this,"pattern");ye(this,"windowsPathsNoEscape");ye(this,"nonegate");ye(this,"negate");ye(this,"comment");ye(this,"empty");ye(this,"preserveMultipleSlashes");ye(this,"partial");ye(this,"globSet");ye(this,"globParts");ye(this,"nocase");ye(this,"isWindows");ye(this,"platform");ye(this,"windowsNoMagicRoot");ye(this,"regexp");let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Hn(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||sc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#")return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=function(){return console.error(...arguments)}),this.debug(this.pattern,this.globSet);const n=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((i,a,u)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=!(i[0]!==""||i[1]!==""||i[2]!=="?"&&uc.test(i[2])||uc.test(i[3])),l=/^[a-z]:/i.test(i[0]);if(f)return[...i.slice(0,4),...i.slice(4).map(s=>this.parse(s))];if(l)return[i[0],...i.slice(1).map(s=>this.parse(s))]}return i.map(f=>this.parse(f))});if(this.debug(this.pattern,o),this.set=o.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){const a=this.set[i];a[0]===""&&a[1]===""&&this.globParts[i][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[n][o]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=r>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const i=n[n.length-1];return o==="**"&&i==="**"?n:o===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(n.pop(),n):(n.push(o),n)},[])).length===0?[""]:r)}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let o=1;o<t.length-1;o++){const i=t[o];o===1&&i===""&&t[0]===""||i!=="."&&i!==""||(r=!0,t.splice(o,1),o--)}t[0]!=="."||t.length!==2||t[1]!=="."&&t[1]!==""||(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let a=o;for(;n[a+1]==="**";)a++;a>o&&n.splice(o+1,a-o);let u=n[o+1];const f=n[o+2],l=n[o+3];if(u!==".."||!f||f==="."||f===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(o,1);const s=n.slice(0);s[o]="**",t.push(s),o--}if(!this.preserveMultipleSlashes){for(let a=1;a<n.length-1;a++){const u=n[a];a===1&&u===""&&n[0]===""||u!=="."&&u!==""||(r=!0,n.splice(a,1),a--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(r=!0,n.pop())}let i=0;for(;(i=n.indexOf("..",i+1))!==-1;){const a=n[i-1];if(a&&a!=="."&&a!==".."&&a!=="**"){r=!0;const u=i===1&&n[i+1]==="**"?["."]:[];n.splice(i-1,2,...u),n.length===0&&n.push(""),i-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],o=0,i=0,a=[],u="";for(;o<t.length&&i<r.length;)if(t[o]===r[i])a.push(u==="b"?r[i]:t[o]),o++,i++;else if(n&&t[o]==="**"&&r[i]===t[o+1])a.push(t[o]),o++;else if(n&&r[i]==="**"&&t[o]===r[i+1])a.push(r[i]),i++;else if(t[o]!=="*"||!r[i]||!this.options.dot&&r[i].startsWith(".")||r[i]==="**"){if(r[i]!=="*"||!t[o]||!this.options.dot&&t[o].startsWith(".")||t[o]==="**"||u==="a")return!1;u="b",a.push(r[i]),o++,i++}else{if(u==="b")return!1;u="a",a.push(t[o]),o++,i++}return t.length===r.length&&a}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const o=this.options;if(this.isWindows){const E=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=!E&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),p=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),h=x?3:E?0:void 0,g=!p&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:p?0:void 0;if(typeof h=="number"&&typeof g=="number"){const[y,w]=[t[h],r[g]];y.toLowerCase()===w.toLowerCase()&&(r[g]=y,g>h?r=r.slice(g):h>g&&(t=t.slice(h)))}}const{optimizationLevel:i=1}=this.options;i>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var a=0,u=0,f=t.length,l=r.length;a<f&&u<l;a++,u++){this.debug("matchOne loop");var s=r[u],c=t[a];if(this.debug(r,s,c),s===!1)return!1;if(s===xt){this.debug("GLOBSTAR",[r,s,c]);var d=a,T=u+1;if(T===l){for(this.debug("** at the end");a<f;a++)if(t[a]==="."||t[a]===".."||!o.dot&&t[a].charAt(0)===".")return!1;return!0}for(;d<f;){var m=t[d];if(this.debug(`
43
- globstar while`,t,d,r,T,m),this.matchOne(t.slice(d),r.slice(T),n))return this.debug("globstar found match!",d,f,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,d,r,T);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug(`
44
- >>> no match, partial?`,t,d,r,T),d!==f))}let E;if(typeof s=="string"?(E=c===s,this.debug("string match",s,c,E)):(E=s.test(c),this.debug("pattern match",s,c,E)),!E)return!1}if(a===f&&u===l)return!0;if(a===f)return n;if(u===l)return a===f-1&&t[a]==="";throw new Error("wtf?")}braceExpand(){return ac(this.pattern,this.options)}parse(t){Hn(t);const r=this.options;if(t==="**")return xt;if(t==="")return"";let n,o=null;(n=t.match(eb))?o=r.dot?rb:tb:(n=t.match(Vm))?o=(r.nocase?r.dot?zm:Km:r.dot?Gm:Wm)(n[1]):(n=t.match(nb))?o=(r.nocase?r.dot?ob:ib:r.dot?sb:ab)(n):(n=t.match(Xm))?o=r.dot?Jm:Ym:(n=t.match(Zm))&&(o=Qm);const i=Vn.fromGlob(t,this.options).toMMPattern();return o&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:o}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?"[^/]*?":r.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(r.nocase?["i"]:[]);let i=t.map(f=>{const l=f.map(s=>{if(s instanceof RegExp)for(const c of s.flags.split(""))o.add(c);return typeof s=="string"?s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):s===xt?xt:s._src});return l.forEach((s,c)=>{const d=l[c+1],T=l[c-1];s===xt&&T!==xt&&(T===void 0?d!==void 0&&d!==xt?l[c+1]="(?:\\/|"+n+"\\/)?"+d:l[c]=n:d===void 0?l[c-1]=T+"(?:\\/|"+n+")?":d!==xt&&(l[c-1]=T+"(?:\\/|\\/"+n+"\\/)"+d,l[c+1]=xt))}),l.filter(s=>s!==xt).join("/")}).join("|");const[a,u]=t.length>1?["(?:",")"]:["",""];i="^"+a+i+u+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...o].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const i=this.set;this.debug(this.pattern,"set",i);let a=o[o.length-1];if(!a)for(let u=o.length-2;!a&&u>=0;u--)a=o[u];for(let u=0;u<i.length;u++){const f=i[u];let l=o;if(n.matchBase&&f.length===1&&(l=[a]),this.matchOne(l,f,r))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return lt.defaults(t).Minimatch}}function Es(e){const t=new Error(`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:""}Invalid response: ${e.status} ${e.statusText}`);return t.status=e.status,t.response=e,t}function et(e,t){const{status:r}=t;if(r===401&&e.digest)return t;if(r>=400)throw Es(t);return t}function lr(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Cm(e.headers):{},status:e.status,statusText:e.statusText}:t}lt.AST=Vn,lt.Minimatch=Wn,lt.escape=function(e){let{windowsPathsNoEscape:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},lt.unescape=Jr;const ub=(lc=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:Ve(e.remoteURL,He(t)),method:"COPY",headers:{Destination:Ve(e.remoteURL,He(r)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},e,n);return a=function(u){et(e,u)},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(lc.apply(this,e))}catch(r){return Promise.reject(r)}});var lc,xs=Fe(635),lb=Fe(829),Ht=Fe.n(lb),Nr=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Nr||{});function Gn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nr.Original;const n=Ht().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function Zr(e){return new Promise(t=>{t(function(r){const{multistatus:n}=r;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");const o={multistatus:Array.isArray(n)?n[0]:n};return Ht().set(o,"multistatus.response",Gn(o,"multistatus.response",Nr.Array)),Ht().set(o,"multistatus.response",Ht().get(o,"multistatus.response").map(i=>function(a){const u=Object.assign({},a);return u.status?Ht().set(u,"status",Gn(u,"status",Nr.Object)):(Ht().set(u,"propstat",Gn(u,"propstat",Nr.Object)),Ht().set(u,"propstat.prop",Gn(u,"propstat.prop",Nr.Object))),u}(i))),o}(new xs.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:(r,n,o)=>n==="true"||n==="false"?n==="true":n,tagValueProcessor(r,n,o){if(!o.endsWith("propstat.prop.displayname"))return n}}).parse(e)))})}function Kn(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const{getlastmodified:n=null,getcontentlength:o="0",resourcetype:i=null,getcontenttype:a=null,getetag:u=null}=e,f=i&&typeof i=="object"&&i.collection!==void 0?"directory":"file",l={filename:t,basename:Mn().basename(t),lastmod:n,size:parseInt(o,10),type:f,etag:typeof u=="string"?u.replace(/"/g,""):null};return f==="file"&&(l.mime=a&&typeof a=="string"?a.split(";")[0]:""),r&&(e.displayname!==void 0&&(e.displayname=String(e.displayname)),l.props=e),l}function fc(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{e.multistatus.response[0].propstat&&(n=e.multistatus.response[0])}catch{}if(!n)throw new Error("Failed getting item stat: bad response");const{propstat:{prop:o,status:i}}=n,[a,u,f]=i.split(" ",3),l=parseInt(u,10);if(l>=400){const s=new Error(`Invalid response: ${l} ${f}`);throw s.status=l,s}return Kn(o,zr(t),r)}function cc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function As(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Ts=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=Qe({url:Ve(e.remoteURL,He(t)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,r);return As(Ze(o,e),function(i){return et(e,i),As(i.text(),function(a){return As(Zr(a),function(u){const f=fc(u,t,n);return lr(i,f,n)})})})});function hc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const fb=dc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=function(i){if(!i||i==="/")return[];let a=i;const u=[];do u.push(a),a=Mn().dirname(a);while(a&&a!=="/");return u}(zr(t));n.sort((i,a)=>i.length>a.length?1:a.length>i.length?-1:0);let o=!1;return function(i,a,u){if(typeof i[gc]=="function"){let E=function(x){try{for(;!(f=c.next()).done;)if((x=a(f.value))&&x.then){if(!yc(x))return void x.then(E,s||(s=dt.bind(null,l=new Rr,2)));x=x.v}l?dt(l,1,x):l=x}catch(p){dt(l||(l=new Rr),2,p)}};var f,l,s,c=i[gc]();if(E(),c.return){var d=function(x){try{f.done||c.return()}catch{}return x};if(l&&l.then)return l.then(d,function(x){throw d(x)});d()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var T=[],m=0;m<i.length;m++)T.push(i[m]);return function(E,x,p){var h,g,y=-1;return function w(A){try{for(;++y<E.length&&(!p||!p());)if((A=x(y))&&A.then){if(!yc(A))return void A.then(w,g||(g=dt.bind(null,h=new Rr,2)));A=A.v}h?dt(h,1,A):h=A}catch(P){dt(h||(h=new Rr),2,P)}}(),h}(T,function(E){return a(T[E])},u)}(n,function(i){return a=function(){return function(f,l){try{var s=hc(Ts(e,i),function(c){if(c.type!=="directory")throw new Error(`Path includes a file: ${t}`)})}catch(c){return l(c)}return s&&s.then?s.then(void 0,l):s}(0,function(f){const l=f;return function(){if(l.status===404)return o=!0,pc(Ss(e,i,{...r,recursive:!1}));throw f}()})},(u=function(){if(o)return pc(Ss(e,i,{...r,recursive:!1}))}())&&u.then?u.then(a):a();var a,u},function(){return!1})});function dc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}function cb(){}function pc(e,t){return e&&e.then?e.then(cb):Promise.resolve()}const gc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function dt(e,t,r){if(!e.s){if(r instanceof Rr){if(!r.s)return void(r.o=dt.bind(null,e,t));1&t&&(t=r.s),r=r.v}if(r&&r.then)return void r.then(dt.bind(null,e,t),dt.bind(null,e,2));e.s=t,e.v=r;const n=e.o;n&&n(e)}}const Rr=function(){function e(){}return e.prototype.then=function(t,r){const n=new e,o=this.s;if(o){const i=1&o?t:r;if(i){try{dt(n,1,i(this.v))}catch(a){dt(n,2,a)}return n}return this}return this.o=function(i){try{const a=i.v;1&i.s?dt(n,1,t?t(a):a):r?dt(n,1,r(a)):dt(n,2,a)}catch(a){dt(n,2,a)}},n},e}();function yc(e){return e instanceof Rr&&1&e.s}const Ss=dc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return fb(e,t,r);const n=Qe({url:Ve(e.remoteURL,(o=He(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return hc(Ze(n,e),function(i){et(e,i)})});var hb=Fe(388),mc=Fe.n(hb);const db=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n={};if(typeof r.range=="object"&&typeof r.range.start=="number"){let u=`bytes=${r.range.start}-`;typeof r.range.end=="number"&&(u=`${u}${r.range.end}`),n.Range=u}const o=Qe({url:Ve(e.remoteURL,He(t)),method:"GET",headers:n},e,r);return a=function(u){if(et(e,u),n.Range&&u.status!==206){const f=new Error(`Invalid response code for partial request: ${u.status}`);throw f.status=u.status,f}return r.callback&&setTimeout(()=>{r.callback(u)},0),u.body},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),pb=()=>{},gb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){r.url||(r.url=Ve(e.remoteURL,He(t)));const n=Qe(r,e,{});return i=function(a){return et(e,a),a},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),yb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"DELETE"},e,r);return i=function(a){et(e,a)},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i}),mb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(n,o){try{var i=(a=Ts(e,t,r),u=function(){return!0},f?u?u(a):a:(a&&a.then||(a=Promise.resolve(a)),u?a.then(u):a))}catch(l){return o(l)}var a,u,f;return i&&i.then?i.then(void 0,o):i}(0,function(n){if(n.status===404)return!1;throw n})});function _s(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const bb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return _s(Ze(n,e),function(o){return et(e,o),_s(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return _s(Zr(i),function(a){const u=Df(t);let f=function(l,s,c){let d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],T=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=Mn().join(s,"/"),{multistatus:{response:E}}=l,x=E.map(p=>{const h=function(y){try{return y.replace(/^https?:\/\/[^\/]+/,"")}catch(w){throw new ct(w,"Failed normalising HREF")}}(p.href),{propstat:{prop:g}}=p;return Kn(g,m==="/"?decodeURIComponent(zr(h)):zr(Mn().relative(decodeURIComponent(m),decodeURIComponent(h))),d)});return T?x:x.filter(p=>p.basename&&(p.type==="file"||p.filename!==c.replace(/\/$/,"")))}(a,Df(e.remoteBasePath||e.remotePath),u,r.details,r.includeSelf);return r.glob&&(f=function(l,s){return l.filter(c=>lt(c.filename,s,{matchBase:!0}))}(f,r.glob)),lr(o,f,r.details)})})})});function Os(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const wb=Os(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[xb]},e,r);return zn(Ze(n,e),function(o){return et(e,o),zn(o.text(),function(i){return lr(o,i,r.details)})})});function zn(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const vb=Os(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"GET"},e,r);return zn(Ze(n,e),function(o){let i;return et(e,o),function(a,u){var f=a();return f&&f.then?f.then(u):u()}(function(){return zn(o.arrayBuffer(),function(a){i=a})},function(){return lr(o,i,r.details)})})}),Eb=Os(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{format:n="binary"}=r;if(n!=="binary"&&n!=="text")throw new ct({info:{code:qt.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?wb(e,t,r):vb(e,t,r)}),xb=e=>e;function Ab(e){return new xs.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(bc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function bc(e,t){const r={...e};for(const n in r)r.hasOwnProperty(n)&&(r[n]&&typeof r[n]=="object"&&n.indexOf(":")===-1?(r[`${t}:${n}`]=bc(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function Ns(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function wc(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Tb=wc(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:Ve(e.remoteURL,He(t)),method:"UNLOCK",headers:{"Lock-Token":r}},e,n);return Ns(Ze(o,e),function(i){if(et(e,i),i.status!==204&&i.status!==200)throw Es(i)})}),Sb=wc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=_b}=r,i={Accept:"text/plain,application/xml",Timeout:o};n&&(i.If=n);const a=Qe({url:Ve(e.remoteURL,He(t)),method:"LOCK",headers:i,data:Ab(e.contactHref)},e,r);return Ns(Ze(a,e),function(u){return et(e,u),Ns(u.text(),function(f){const l=(d=f,new xs.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(d)),s=Ht().get(l,"prop.lockdiscovery.activelock.locktoken.href"),c=Ht().get(l,"prop.lockdiscovery.activelock.timeout");var d;if(!s)throw Es(u,"No lock token received: ");return{token:s,serverTimeout:c}})})}),_b="Infinite, Second-4100000000";function Rs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Ob=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=t.path||"/",n=Qe({url:Ve(e.remoteURL,r),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},e,t);return Rs(Ze(n,e),function(o){return et(e,o),Rs(o.text(),function(i){return Rs(Zr(i),function(a){const u=function(f){try{const[l]=f.multistatus.response,{propstat:{prop:{"quota-used-bytes":s,"quota-available-bytes":c}}}=l;return s!==void 0&&c!==void 0?{used:parseInt(String(s),10),available:cc(c)}:null}catch{}return null}(a);return lr(o,u,t.details)})})})});function Is(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Nb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{details:n=!1}=r,o=Qe({url:Ve(e.remoteURL,He(t)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":e.headers["Content-Type"]||"application/xml; charset=utf-8"}},e,r);return Is(Ze(o,e),function(i){return et(e,i),Is(i.text(),function(a){return Is(Zr(a),function(u){const f=function(l,s,c){const d={truncated:!1,results:[]};return d.truncated=l.multistatus.response.some(T=>{var m,E;return((E=(T.status||((m=T.propstat)==null?void 0:m.status)).split(" ",3))==null?void 0:E[1])==="507"&&T.href.replace(/\/$/,"").endsWith(He(s).replace(/\/$/,""))}),l.multistatus.response.forEach(T=>{if(T.propstat===void 0)return;const m=T.href.split("/").map(decodeURIComponent).join("/");d.results.push(Kn(T.propstat.prop,m,c))}),d}(u,t,n);return lr(i,f,n)})})})}),Rb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Qe({url:Ve(e.remoteURL,He(t)),method:"MOVE",headers:{Destination:Ve(e.remoteURL,He(r)),Overwrite:n.overwrite===!1?"F":"T"}},e,n);return a=function(u){et(e,u)},(i=Ze(o,e))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});var Ib=Fe(172);const Pb=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const{contentLength:o=!0,overwrite:i=!0}=n,a={"Content-Type":"application/octet-stream"};o===!1||(a["Content-Length"]=typeof o=="number"?`${o}`:`${function(s){if(Jf(s))return s.byteLength;if(Zf(s))return s.length;if(typeof s=="string")return(0,Ib.d)(s);throw new ct({info:{code:qt.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(r)}`),i||(a["If-None-Match"]="*");const u=Qe({url:Ve(e.remoteURL,He(t)),method:"PUT",headers:a,data:r},e,n);return l=function(s){try{et(e,s)}catch(c){const d=c;if(d.status!==412||i)throw d;return!1}return!0},(f=Ze(u,e))&&f.then||(f=Promise.resolve(f)),l?f.then(l):f;var f,l}),vc=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=Qe({url:Ve(e.remoteURL,He(t)),method:"OPTIONS"},e,r);return i=function(a){try{et(e,a)}catch(u){throw u}return{compliance:(a.headers.get("DAV")??"").split(",").map(u=>u.trim()),server:a.headers.get("Server")??""}},(o=Ze(n,e))&&o.then||(o=Promise.resolve(o)),i?o.then(i):o;var o,i});function Qr(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Fb=Ps(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ct({info:{code:qt.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/octet-stream","Content-Length":""+(n-r+1),"Content-Range":`bytes ${r}-${n}/*`},u=Qe({url:Ve(e.remoteURL,He(t)),method:"PUT",headers:a,data:o},e,i);return Qr(Ze(u,e),function(f){et(e,f)})});function Ec(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Cb=Ps(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(r>n||r<0)throw new ct({info:{code:qt.InvalidUpdateRange}},`Invalid update range ${r} for partial update`);const a={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-r+1),"X-Update-Range":`bytes=${r}-${n}`},u=Qe({url:Ve(e.remoteURL,He(t)),method:"PATCH",headers:a,data:o},e,i);return Qr(Ze(u,e),function(f){et(e,f)})});function Ps(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{return Promise.resolve(e.apply(this,t))}catch(n){return Promise.reject(n)}}}const Bb=Ps(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Qr(vc(e,t,i),function(a){let u=!1;return Ec(function(){if(a.compliance.includes("sabredav-partialupdate"))return Qr(Cb(e,t,r,n,o,i),function(f){return u=!0,f})},function(f){let l=!1;return u?f:Ec(function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Qr(Fb(e,t,r,n,o,i),function(s){return l=!0,s})},function(s){if(l)return s;throw new ct({info:{code:qt.NotSupported}},"Not supported")})})})}),Lb="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Ub(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Lb,ha1:i,headers:a={},httpAgent:u,httpsAgent:f,password:l,token:s,username:c,withCredentials:d}=t;let T=r;T||(T=c||l?ht.Password:ht.None);const m={authType:T,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:f,password:l,remotePath:Tm(e),remoteURL:e,token:s,username:c,withCredentials:d};return Gf(m,c,l,s,i),{copyFile:(E,x,p)=>ub(m,E,x,p),createDirectory:(E,x)=>Ss(m,E,x),createReadStream:(E,x)=>function(p,h){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const y=new(mc()).PassThrough;return db(p,h,g).then(w=>{w.pipe(y)}).catch(w=>{y.emit("error",w)}),y}(m,E,x),createWriteStream:(E,x,p)=>function(h,g){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:pb;const A=new(mc()).PassThrough,P={};y.overwrite===!1&&(P["If-None-Match"]="*");const I=Qe({url:Ve(h.remoteURL,He(g)),method:"PUT",headers:P,data:A,maxRedirects:0},h,y);return Ze(I,h).then(O=>et(h,O)).then(O=>{setTimeout(()=>{w(O)},0)}).catch(O=>{A.emit("error",O)}),A}(m,E,x,p),customRequest:(E,x)=>gb(m,E,x),deleteFile:(E,x)=>yb(m,E,x),exists:(E,x)=>mb(m,E,x),getDirectoryContents:(E,x)=>bb(m,E,x),getFileContents:(E,x)=>Eb(m,E,x),getFileDownloadLink:E=>function(x,p){let h=Ve(x.remoteURL,He(p));const g=/^https:/i.test(h)?"https":"http";switch(x.authType){case ht.None:break;case ht.Password:{const y=Vf(x.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ct({info:{code:qt.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${x.authType}`)}return h}(m,E),getFileUploadLink:E=>function(x,p){let h=`${Ve(x.remoteURL,He(p))}?Content-Type=application/octet-stream`;const g=/^https:/i.test(h)?"https":"http";switch(x.authType){case ht.None:break;case ht.Password:{const y=Vf(x.headers.Authorization.replace(/^Basic /i,"").trim());h=h.replace(/^https?:\/\//,`${g}://${y}@`);break}default:throw new ct({info:{code:qt.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${x.authType}`)}return h}(m,E),getHeaders:()=>Object.assign({},m.headers),getQuota:E=>Ob(m,E),lock:(E,x)=>Sb(m,E,x),moveFile:(E,x,p)=>Rb(m,E,x,p),putFileContents:(E,x,p)=>Pb(m,E,x,p),partialUpdateFileContents:(E,x,p,h,g)=>Bb(m,E,x,p,h,g),getDAVCompliance:E=>vc(m,E),search:(E,x)=>Nb(m,E,x),setHeaders:E=>{m.headers=Object.assign({},E)},stat:(E,x)=>Ts(m,E,x),unlock:(E,x,p)=>Tb(m,E,x,p)}}Et.hT,Et.O4,Et.Kd,Et.YK;var jb=Et.UU;Et.Gu,Et.ky;var kb=Et.h4,Mb=Et.ch;Et.hq,Et.i5;const ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).slice(1));function Db(e,t=0){return(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase()}let Fs;const $b=new Uint8Array(16);function qb(){if(!Fs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fs=crypto.getRandomValues.bind(crypto)}return Fs($b)}var xc={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Hb(e,t,r){var o;if(xc.randomUUID&&!e)return xc.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??qb();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Db(n)}var Cs={},Bs={},Ac;function Ls(){return Ac||(Ac=1,function(e){const t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",r=t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",n="["+t+"]["+r+"]*",o=new RegExp("^"+n+"$"),i=function(u,f){const l=[];let s=f.exec(u);for(;s;){const c=[];c.startIndex=f.lastIndex-s[0].length;const d=s.length;for(let T=0;T<d;T++)c.push(s[T]);l.push(c),s=f.exec(u)}return l},a=function(u){const f=o.exec(u);return!(f===null||typeof f>"u")};e.isExist=function(u){return typeof u<"u"},e.isEmptyObject=function(u){return Object.keys(u).length===0},e.merge=function(u,f,l){if(f){const s=Object.keys(f),c=s.length;for(let d=0;d<c;d++)l==="strict"?u[s[d]]=[f[s[d]]]:u[s[d]]=f[s[d]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n}(Bs)),Bs}var Tc;function Sc(){if(Tc)return Cs;Tc=1;const e=Ls(),t={allowBooleanAttributes:!1,unpairedTags:[]};Cs.validate=function(p,h){h=Object.assign({},t,h);const g=[];let y=!1,w=!1;p[0]==="\uFEFF"&&(p=p.substr(1));for(let A=0;A<p.length;A++)if(p[A]==="<"&&p[A+1]==="?"){if(A+=2,A=n(p,A),A.err)return A}else if(p[A]==="<"){let P=A;if(A++,p[A]==="!"){A=o(p,A);continue}else{let I=!1;p[A]==="/"&&(I=!0,A++);let O="";for(;A<p.length&&p[A]!==">"&&p[A]!==" "&&p[A]!==" "&&p[A]!==`
45
- `&&p[A]!=="\r";A++)O+=p[A];if(O=O.trim(),O[O.length-1]==="/"&&(O=O.substring(0,O.length-1),A--),!m(O)){let L;return O.trim().length===0?L="Invalid space after '<'.":L="Tag '"+O+"' is an invalid name.",d("InvalidTag",L,E(p,A))}const j=u(p,A);if(j===!1)return d("InvalidAttr","Attributes for '"+O+"' have open quote.",E(p,A));let G=j.value;if(A=j.index,G[G.length-1]==="/"){const L=A-G.length;G=G.substring(0,G.length-1);const D=l(G,h);if(D===!0)y=!0;else return d(D.err.code,D.err.msg,E(p,L+D.err.line))}else if(I)if(j.tagClosed){if(G.trim().length>0)return d("InvalidTag","Closing tag '"+O+"' can't have attributes or invalid starting.",E(p,P));if(g.length===0)return d("InvalidTag","Closing tag '"+O+"' has not been opened.",E(p,P));{const L=g.pop();if(O!==L.tagName){let D=E(p,L.tagStartPos);return d("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+D.line+", col "+D.col+") instead of closing tag '"+O+"'.",E(p,P))}g.length==0&&(w=!0)}}else return d("InvalidTag","Closing tag '"+O+"' doesn't have proper closing.",E(p,A));else{const L=l(G,h);if(L!==!0)return d(L.err.code,L.err.msg,E(p,A-G.length+L.err.line));if(w===!0)return d("InvalidXml","Multiple possible root nodes found.",E(p,A));h.unpairedTags.indexOf(O)!==-1||g.push({tagName:O,tagStartPos:P}),y=!0}for(A++;A<p.length;A++)if(p[A]==="<")if(p[A+1]==="!"){A++,A=o(p,A);continue}else if(p[A+1]==="?"){if(A=n(p,++A),A.err)return A}else break;else if(p[A]==="&"){const L=c(p,A);if(L==-1)return d("InvalidChar","char '&' is not expected.",E(p,A));A=L}else if(w===!0&&!r(p[A]))return d("InvalidXml","Extra text at the end",E(p,A));p[A]==="<"&&A--}}else{if(r(p[A]))continue;return d("InvalidChar","char '"+p[A]+"' is not expected.",E(p,A))}if(y){if(g.length==1)return d("InvalidTag","Unclosed tag '"+g[0].tagName+"'.",E(p,g[0].tagStartPos));if(g.length>0)return d("InvalidXml","Invalid '"+JSON.stringify(g.map(A=>A.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return d("InvalidXml","Start tag expected.",1);return!0};function r(p){return p===" "||p===" "||p===`
46
- `||p==="\r"}function n(p,h){const g=h;for(;h<p.length;h++)if(p[h]=="?"||p[h]==" "){const y=p.substr(g,h-g);if(h>5&&y==="xml")return d("InvalidXml","XML declaration allowed only at the start of the document.",E(p,h));if(p[h]=="?"&&p[h+1]==">"){h++;break}else continue}return h}function o(p,h){if(p.length>h+5&&p[h+1]==="-"&&p[h+2]==="-"){for(h+=3;h<p.length;h++)if(p[h]==="-"&&p[h+1]==="-"&&p[h+2]===">"){h+=2;break}}else if(p.length>h+8&&p[h+1]==="D"&&p[h+2]==="O"&&p[h+3]==="C"&&p[h+4]==="T"&&p[h+5]==="Y"&&p[h+6]==="P"&&p[h+7]==="E"){let g=1;for(h+=8;h<p.length;h++)if(p[h]==="<")g++;else if(p[h]===">"&&(g--,g===0))break}else if(p.length>h+9&&p[h+1]==="["&&p[h+2]==="C"&&p[h+3]==="D"&&p[h+4]==="A"&&p[h+5]==="T"&&p[h+6]==="A"&&p[h+7]==="["){for(h+=8;h<p.length;h++)if(p[h]==="]"&&p[h+1]==="]"&&p[h+2]===">"){h+=2;break}}return h}const i='"',a="'";function u(p,h){let g="",y="",w=!1;for(;h<p.length;h++){if(p[h]===i||p[h]===a)y===""?y=p[h]:y!==p[h]||(y="");else if(p[h]===">"&&y===""){w=!0;break}g+=p[h]}return y!==""?!1:{value:g,index:h,tagClosed:w}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(p,h){const g=e.getAllMatches(p,f),y={};for(let w=0;w<g.length;w++){if(g[w][1].length===0)return d("InvalidAttr","Attribute '"+g[w][2]+"' has no space in starting.",x(g[w]));if(g[w][3]!==void 0&&g[w][4]===void 0)return d("InvalidAttr","Attribute '"+g[w][2]+"' is without value.",x(g[w]));if(g[w][3]===void 0&&!h.allowBooleanAttributes)return d("InvalidAttr","boolean attribute '"+g[w][2]+"' is not allowed.",x(g[w]));const A=g[w][2];if(!T(A))return d("InvalidAttr","Attribute '"+A+"' is an invalid name.",x(g[w]));if(!y.hasOwnProperty(A))y[A]=1;else return d("InvalidAttr","Attribute '"+A+"' is repeated.",x(g[w]))}return!0}function s(p,h){let g=/\d/;for(p[h]==="x"&&(h++,g=/[\da-fA-F]/);h<p.length;h++){if(p[h]===";")return h;if(!p[h].match(g))break}return-1}function c(p,h){if(h++,p[h]===";")return-1;if(p[h]==="#")return h++,s(p,h);let g=0;for(;h<p.length;h++,g++)if(!(p[h].match(/\w/)&&g<20)){if(p[h]===";")break;return-1}return h}function d(p,h,g){return{err:{code:p,msg:h,line:g.line||g,col:g.col}}}function T(p){return e.isName(p)}function m(p){return e.isName(p)}function E(p,h){const g=p.substring(0,h).split(/\r?\n/);return{line:g.length,col:g[g.length-1].length+1}}function x(p){return p.startIndex+p[1].length}return Cs}var Xn={},_c;function Vb(){if(_c)return Xn;_c=1;const e={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(r,n,o){return r}},t=function(r){return Object.assign({},e,r)};return Xn.buildOptions=t,Xn.defaultOptions=e,Xn}var Us,Oc;function Wb(){if(Oc)return Us;Oc=1;class e{constructor(r){this.tagname=r,this.child=[],this[":@"]={}}add(r,n){r==="__proto__"&&(r="#__proto__"),this.child.push({[r]:n})}addChild(r){r.tagname==="__proto__"&&(r.tagname="#__proto__"),r[":@"]&&Object.keys(r[":@"]).length>0?this.child.push({[r.tagname]:r.child,":@":r[":@"]}):this.child.push({[r.tagname]:r.child})}}return Us=e,Us}var js,Nc;function Gb(){if(Nc)return js;Nc=1;const e=Ls();function t(l,s){const c={};if(l[s+3]==="O"&&l[s+4]==="C"&&l[s+5]==="T"&&l[s+6]==="Y"&&l[s+7]==="P"&&l[s+8]==="E"){s=s+9;let d=1,T=!1,m=!1,E="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(T&&o(l,s)){s+=7;let x,p;[x,p,s]=r(l,s+1),p.indexOf("&")===-1&&(c[f(x)]={regx:RegExp(`&${x};`,"g"),val:p})}else if(T&&i(l,s))s+=8;else if(T&&a(l,s))s+=8;else if(T&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");d++,E=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,d--):d--,d===0)break}else l[s]==="["?T=!0:E+=l[s];if(d!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:c,i:s}}function r(l,s){let c="";for(;s<l.length&&l[s]!=="'"&&l[s]!=='"';s++)c+=l[s];if(c=c.trim(),c.indexOf(" ")!==-1)throw new Error("External entites are not supported");const d=l[s++];let T="";for(;s<l.length&&l[s]!==d;s++)T+=l[s];return[c,T,s]}function n(l,s){return l[s+1]==="!"&&l[s+2]==="-"&&l[s+3]==="-"}function o(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="N"&&l[s+4]==="T"&&l[s+5]==="I"&&l[s+6]==="T"&&l[s+7]==="Y"}function i(l,s){return l[s+1]==="!"&&l[s+2]==="E"&&l[s+3]==="L"&&l[s+4]==="E"&&l[s+5]==="M"&&l[s+6]==="E"&&l[s+7]==="N"&&l[s+8]==="T"}function a(l,s){return l[s+1]==="!"&&l[s+2]==="A"&&l[s+3]==="T"&&l[s+4]==="T"&&l[s+5]==="L"&&l[s+6]==="I"&&l[s+7]==="S"&&l[s+8]==="T"}function u(l,s){return l[s+1]==="!"&&l[s+2]==="N"&&l[s+3]==="O"&&l[s+4]==="T"&&l[s+5]==="A"&&l[s+6]==="T"&&l[s+7]==="I"&&l[s+8]==="O"&&l[s+9]==="N"}function f(l){if(e.isName(l))return l;throw new Error(`Invalid entity name ${l}`)}return js=t,js}var ks,Rc;function Kb(){if(Rc)return ks;Rc=1;const e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,r={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function n(a,u={}){if(u=Object.assign({},r,u),!a||typeof a!="string")return a;if(a==="0")return 0;let f=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(f))return a;if(u.hex&&e.test(f))return i(f,16);if(f.search(/[eE]/)!==-1){const l=f.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(l){if(u.leadingZeros)f=(l[1]||"")+l[3];else if(!(l[2]==="0"&&l[3][0]==="."))return a;return u.eNotation?Number(f):a}else return a}else{const l=t.exec(f);if(l){const s=l[1],c=l[2];let d=o(l[3]);if(!u.leadingZeros&&c.length>0&&s&&f[2]!==".")return a;if(!u.leadingZeros&&c.length>0&&!s&&f[1]!==".")return a;if(u.leadingZeros&&c===a)return 0;{const T=Number(f),m=""+T;return m.search(/[eE]/)!==-1?u.eNotation?T:a:f.indexOf(".")!==-1?m==="0"&&d===""||m===d||s&&m==="-"+d?T:a:c?d===m||s+d===m?T:a:f===m||f===s+m?T:a}}else return a}}function o(a){return a&&a.indexOf(".")!==-1&&(a=a.replace(/0+$/,""),a==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a}function i(a,u){if(parseInt)return parseInt(a,u);if(Number.parseInt)return Number.parseInt(a,u);if(window&&window.parseInt)return window.parseInt(a,u);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}return ks=n,ks}var Ms,Ic;function Pc(){if(Ic)return Ms;Ic=1;function e(t){return typeof t=="function"?t:Array.isArray(t)?r=>{for(const n of t)if(typeof n=="string"&&r===n||n instanceof RegExp&&n.test(r))return!0}:()=>!1}return Ms=e,Ms}var Ds,Fc;function zb(){if(Fc)return Ds;Fc=1;const e=Ls(),t=Wb(),r=Gb(),n=Kb(),o=Pc();class i{constructor(A){this.options=A,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(P,I)=>String.fromCharCode(Number.parseInt(I,16))}},this.addExternalEntities=a,this.parseXml=c,this.parseTextData=u,this.resolveNameSpace=f,this.buildAttributesMap=s,this.isItStopNode=E,this.replaceEntitiesValue=T,this.readStopNodeData=g,this.saveTextToParentTag=m,this.addChild=d,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(w){const A=Object.keys(w);for(let P=0;P<A.length;P++){const I=A[P];this.lastEntities[I]={regex:new RegExp("&"+I+";","g"),val:w[I]}}}function u(w,A,P,I,O,j,G){if(w!==void 0&&(this.options.trimValues&&!I&&(w=w.trim()),w.length>0)){G||(w=this.replaceEntitiesValue(w));const L=this.options.tagValueProcessor(A,w,P,O,j);return L==null?w:typeof L!=typeof w||L!==w?L:this.options.trimValues?y(w,this.options.parseTagValue,this.options.numberParseOptions):w.trim()===w?y(w,this.options.parseTagValue,this.options.numberParseOptions):w}}function f(w){if(this.options.removeNSPrefix){const A=w.split(":"),P=w.charAt(0)==="/"?"/":"";if(A[0]==="xmlns")return"";A.length===2&&(w=P+A[1])}return w}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(w,A,P){if(this.options.ignoreAttributes!==!0&&typeof w=="string"){const I=e.getAllMatches(w,l),O=I.length,j={};for(let G=0;G<O;G++){const L=this.resolveNameSpace(I[G][1]);if(this.ignoreAttributesFn(L,A))continue;let D=I[G][4],oe=this.options.attributeNamePrefix+L;if(L.length)if(this.options.transformAttributeName&&(oe=this.options.transformAttributeName(oe)),oe==="__proto__"&&(oe="#__proto__"),D!==void 0){this.options.trimValues&&(D=D.trim()),D=this.replaceEntitiesValue(D);const re=this.options.attributeValueProcessor(L,D,A);re==null?j[oe]=D:typeof re!=typeof D||re!==D?j[oe]=re:j[oe]=y(D,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(j[oe]=!0)}if(!Object.keys(j).length)return;if(this.options.attributesGroupName){const G={};return G[this.options.attributesGroupName]=j,G}return j}}const c=function(w){w=w.replace(/\r\n?/g,`
47
- `);const A=new t("!xml");let P=A,I="",O="";for(let j=0;j<w.length;j++)if(w[j]==="<")if(w[j+1]==="/"){const L=p(w,">",j,"Closing Tag is not closed.");let D=w.substring(j+2,L).trim();if(this.options.removeNSPrefix){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1))}this.options.transformTagName&&(D=this.options.transformTagName(D)),P&&(I=this.saveTextToParentTag(I,P,O));const oe=O.substring(O.lastIndexOf(".")+1);if(D&&this.options.unpairedTags.indexOf(D)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${D}>`);let re=0;oe&&this.options.unpairedTags.indexOf(oe)!==-1?(re=O.lastIndexOf(".",O.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=O.lastIndexOf("."),O=O.substring(0,re),P=this.tagsNodeStack.pop(),I="",j=L}else if(w[j+1]==="?"){let L=h(w,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,P,O),!(this.options.ignoreDeclaration&&L.tagName==="?xml"||this.options.ignorePiTags)){const D=new t(L.tagName);D.add(this.options.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&(D[":@"]=this.buildAttributesMap(L.tagExp,O,L.tagName)),this.addChild(P,D,O)}j=L.closeIndex+1}else if(w.substr(j+1,3)==="!--"){const L=p(w,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const D=w.substring(j+4,L-2);I=this.saveTextToParentTag(I,P,O),P.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}j=L}else if(w.substr(j+1,2)==="!D"){const L=r(w,j);this.docTypeEntities=L.entities,j=L.i}else if(w.substr(j+1,2)==="!["){const L=p(w,"]]>",j,"CDATA is not closed.")-2,D=w.substring(j+9,L);I=this.saveTextToParentTag(I,P,O);let oe=this.parseTextData(D,P.tagname,O,!0,!1,!0,!0);oe==null&&(oe=""),this.options.cdataPropName?P.add(this.options.cdataPropName,[{[this.options.textNodeName]:D}]):P.add(this.options.textNodeName,oe),j=L+2}else{let L=h(w,j,this.options.removeNSPrefix),D=L.tagName;const oe=L.rawTagName;let re=L.tagExp,he=L.attrExpPresent,fe=L.closeIndex;this.options.transformTagName&&(D=this.options.transformTagName(D)),P&&I&&P.tagname!=="!xml"&&(I=this.saveTextToParentTag(I,P,O,!1));const ge=P;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(P=this.tagsNodeStack.pop(),O=O.substring(0,O.lastIndexOf("."))),D!==A.tagname&&(O+=O?"."+D:D),this.isItStopNode(this.options.stopNodes,O,D)){let ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),O=O.substr(0,O.length-1),re=D):re=re.substr(0,re.length-1),j=L.closeIndex;else if(this.options.unpairedTags.indexOf(D)!==-1)j=L.closeIndex;else{const be=this.readStopNodeData(w,oe,fe+1);if(!be)throw new Error(`Unexpected end of ${oe}`);j=be.i,ce=be.tagContent}const Ee=new t(D);D!==re&&he&&(Ee[":@"]=this.buildAttributesMap(re,O,D)),ce&&(ce=this.parseTextData(ce,D,O,!0,he,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),Ee.add(this.options.textNodeName,ce),this.addChild(P,Ee,O)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),O=O.substr(0,O.length-1),re=D):re=re.substr(0,re.length-1),this.options.transformTagName&&(D=this.options.transformTagName(D));const ce=new t(D);D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,ce,O),O=O.substr(0,O.lastIndexOf("."))}else{const ce=new t(D);this.tagsNodeStack.push(P),D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,O,D)),this.addChild(P,ce,O),P=ce}I="",j=fe}}else I+=w[j];return A.child};function d(w,A,P){const I=this.options.updateTag(A.tagname,P,A[":@"]);I===!1||(typeof I=="string"&&(A.tagname=I),w.addChild(A))}const T=function(w){if(this.options.processEntities){for(let A in this.docTypeEntities){const P=this.docTypeEntities[A];w=w.replace(P.regx,P.val)}for(let A in this.lastEntities){const P=this.lastEntities[A];w=w.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let A in this.htmlEntities){const P=this.htmlEntities[A];w=w.replace(P.regex,P.val)}w=w.replace(this.ampEntity.regex,this.ampEntity.val)}return w};function m(w,A,P,I){return w&&(I===void 0&&(I=A.child.length===0),w=this.parseTextData(w,A.tagname,P,!1,A[":@"]?Object.keys(A[":@"]).length!==0:!1,I),w!==void 0&&w!==""&&A.add(this.options.textNodeName,w),w=""),w}function E(w,A,P){const I="*."+P;for(const O in w){const j=w[O];if(I===j||A===j)return!0}return!1}function x(w,A,P=">"){let I,O="";for(let j=A;j<w.length;j++){let G=w[j];if(I)G===I&&(I="");else if(G==='"'||G==="'")I=G;else if(G===P[0])if(P[1]){if(w[j+1]===P[1])return{data:O,index:j}}else return{data:O,index:j};else G===" "&&(G=" ");O+=G}}function p(w,A,P,I){const O=w.indexOf(A,P);if(O===-1)throw new Error(I);return O+A.length-1}function h(w,A,P,I=">"){const O=x(w,A+1,I);if(!O)return;let j=O.data;const G=O.index,L=j.search(/\s/);let D=j,oe=!0;L!==-1&&(D=j.substring(0,L),j=j.substring(L+1).trimStart());const re=D;if(P){const he=D.indexOf(":");he!==-1&&(D=D.substr(he+1),oe=D!==O.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function g(w,A,P){const I=P;let O=1;for(;P<w.length;P++)if(w[P]==="<")if(w[P+1]==="/"){const j=p(w,">",P,`${A} is not closed`);if(w.substring(P+2,j).trim()===A&&(O--,O===0))return{tagContent:w.substring(I,P),i:j};P=j}else if(w[P+1]==="?")P=p(w,"?>",P+1,"StopNode is not closed.");else if(w.substr(P+1,3)==="!--")P=p(w,"-->",P+3,"StopNode is not closed.");else if(w.substr(P+1,2)==="![")P=p(w,"]]>",P,"StopNode is not closed.")-2;else{const j=h(w,P,">");j&&((j&&j.tagName)===A&&j.tagExp[j.tagExp.length-1]!=="/"&&O++,P=j.closeIndex)}}function y(w,A,P){if(A&&typeof w=="string"){const I=w.trim();return I==="true"?!0:I==="false"?!1:n(w,P)}else return e.isExist(w)?w:""}return Ds=i,Ds}var $s={},Cc;function Xb(){if(Cc)return $s;Cc=1;function e(i,a){return t(i,a)}function t(i,a,u){let f;const l={};for(let s=0;s<i.length;s++){const c=i[s],d=r(c);let T="";if(u===void 0?T=d:T=u+"."+d,d===a.textNodeName)f===void 0?f=c[d]:f+=""+c[d];else{if(d===void 0)continue;if(c[d]){let m=t(c[d],a,T);const E=o(m,a);c[":@"]?n(m,c[":@"],T,a):Object.keys(m).length===1&&m[a.textNodeName]!==void 0&&!a.alwaysCreateTextNode?m=m[a.textNodeName]:Object.keys(m).length===0&&(a.alwaysCreateTextNode?m[a.textNodeName]="":m=""),l[d]!==void 0&&l.hasOwnProperty(d)?(Array.isArray(l[d])||(l[d]=[l[d]]),l[d].push(m)):a.isArray(d,T,E)?l[d]=[m]:l[d]=m}}}return typeof f=="string"?f.length>0&&(l[a.textNodeName]=f):f!==void 0&&(l[a.textNodeName]=f),l}function r(i){const a=Object.keys(i);for(let u=0;u<a.length;u++){const f=a[u];if(f!==":@")return f}}function n(i,a,u,f){if(a){const l=Object.keys(a),s=l.length;for(let c=0;c<s;c++){const d=l[c];f.isArray(d,u+"."+d,!0,!0)?i[d]=[a[d]]:i[d]=a[d]}}}function o(i,a){const{textNodeName:u}=a,f=Object.keys(i).length;return!!(f===0||f===1&&(i[u]||typeof i[u]=="boolean"||i[u]===0))}return $s.prettify=e,$s}var qs,Bc;function Yb(){if(Bc)return qs;Bc=1;const{buildOptions:e}=Vb(),t=zb(),{prettify:r}=Xb(),n=Sc();class o{constructor(a){this.externalEntities={},this.options=e(a)}parse(a,u){if(typeof a!="string")if(a.toString)a=a.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(u){u===!0&&(u={});const s=n.validate(a,u);if(s!==!0)throw Error(`${s.err.msg}:${s.err.line}:${s.err.col}`)}const f=new t(this.options);f.addExternalEntities(this.externalEntities);const l=f.parseXml(a);return this.options.preserveOrder||l===void 0?l:r(l,this.options)}addEntity(a,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(a.indexOf("&")!==-1||a.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[a]=u}}return qs=o,qs}var Hs,Lc;function Jb(){if(Lc)return Hs;Lc=1;const e=`
48
- `;function t(u,f){let l="";return f.format&&f.indentBy.length>0&&(l=e),r(u,f,"",l)}function r(u,f,l,s){let c="",d=!1;for(let T=0;T<u.length;T++){const m=u[T],E=n(m);if(E===void 0)continue;let x="";if(l.length===0?x=E:x=`${l}.${E}`,E===f.textNodeName){let w=m[E];i(x,f)||(w=f.tagValueProcessor(E,w),w=a(w,f)),d&&(c+=s),c+=w,d=!1;continue}else if(E===f.cdataPropName){d&&(c+=s),c+=`<![CDATA[${m[E][0][f.textNodeName]}]]>`,d=!1;continue}else if(E===f.commentPropName){c+=s+`<!--${m[E][0][f.textNodeName]}-->`,d=!0;continue}else if(E[0]==="?"){const w=o(m[":@"],f),A=E==="?xml"?"":s;let P=m[E][0][f.textNodeName];P=P.length!==0?" "+P:"",c+=A+`<${E}${P}${w}?>`,d=!0;continue}let p=s;p!==""&&(p+=f.indentBy);const h=o(m[":@"],f),g=s+`<${E}${h}`,y=r(m[E],f,x,p);f.unpairedTags.indexOf(E)!==-1?f.suppressUnpairedNode?c+=g+">":c+=g+"/>":(!y||y.length===0)&&f.suppressEmptyNode?c+=g+"/>":y&&y.endsWith(">")?c+=g+`>${y}${s}</${E}>`:(c+=g+">",y&&s!==""&&(y.includes("/>")||y.includes("</"))?c+=s+f.indentBy+y+s:c+=y,c+=`</${E}>`),d=!0}return c}function n(u){const f=Object.keys(u);for(let l=0;l<f.length;l++){const s=f[l];if(u.hasOwnProperty(s)&&s!==":@")return s}}function o(u,f){let l="";if(u&&!f.ignoreAttributes)for(let s in u){if(!u.hasOwnProperty(s))continue;let c=f.attributeValueProcessor(s,u[s]);c=a(c,f),c===!0&&f.suppressBooleanAttributes?l+=` ${s.substr(f.attributeNamePrefix.length)}`:l+=` ${s.substr(f.attributeNamePrefix.length)}="${c}"`}return l}function i(u,f){u=u.substr(0,u.length-f.textNodeName.length-1);let l=u.substr(u.lastIndexOf(".")+1);for(let s in f.stopNodes)if(f.stopNodes[s]===u||f.stopNodes[s]==="*."+l)return!0;return!1}function a(u,f){if(u&&u.length>0&&f.processEntities)for(let l=0;l<f.entities.length;l++){const s=f.entities[l];u=u.replace(s.regex,s.val)}return u}return Hs=t,Hs}var Vs,Uc;function Zb(){if(Uc)return Vs;Uc=1;const e=Jb(),t=Pc(),r={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(u,f){return f},attributeValueProcessor:function(u,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function n(u){this.options=Object.assign({},r,u),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=t(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=a),this.processTextOrObjNode=o,this.options.format?(this.indentate=i,this.tagEndChar=`>
49
- `,this.newLine=`
50
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}n.prototype.build=function(u){return this.options.preserveOrder?e(u,this.options):(Array.isArray(u)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(u={[this.options.arrayNodeName]:u}),this.j2x(u,0,[]).val)},n.prototype.j2x=function(u,f,l){let s="",c="";const d=l.join(".");for(let T in u)if(Object.prototype.hasOwnProperty.call(u,T))if(typeof u[T]>"u")this.isAttribute(T)&&(c+="");else if(u[T]===null)this.isAttribute(T)||T===this.options.cdataPropName?c+="":T[0]==="?"?c+=this.indentate(f)+"<"+T+"?"+this.tagEndChar:c+=this.indentate(f)+"<"+T+"/"+this.tagEndChar;else if(u[T]instanceof Date)c+=this.buildTextValNode(u[T],T,"",f);else if(typeof u[T]!="object"){const m=this.isAttribute(T);if(m&&!this.ignoreAttributesFn(m,d))s+=this.buildAttrPairStr(m,""+u[T]);else if(!m)if(T===this.options.textNodeName){let E=this.options.tagValueProcessor(T,""+u[T]);c+=this.replaceEntitiesValue(E)}else c+=this.buildTextValNode(u[T],T,"",f)}else if(Array.isArray(u[T])){const m=u[T].length;let E="",x="";for(let p=0;p<m;p++){const h=u[T][p];if(!(typeof h>"u"))if(h===null)T[0]==="?"?c+=this.indentate(f)+"<"+T+"?"+this.tagEndChar:c+=this.indentate(f)+"<"+T+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){const g=this.j2x(h,f+1,l.concat(T));E+=g.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(x+=g.attrStr)}else E+=this.processTextOrObjNode(h,T,f,l);else if(this.options.oneListGroup){let g=this.options.tagValueProcessor(T,h);g=this.replaceEntitiesValue(g),E+=g}else E+=this.buildTextValNode(h,T,"",f)}this.options.oneListGroup&&(E=this.buildObjectNode(E,T,x,f)),c+=E}else if(this.options.attributesGroupName&&T===this.options.attributesGroupName){const m=Object.keys(u[T]),E=m.length;for(let x=0;x<E;x++)s+=this.buildAttrPairStr(m[x],""+u[T][m[x]])}else c+=this.processTextOrObjNode(u[T],T,f,l);return{attrStr:s,val:c}},n.prototype.buildAttrPairStr=function(u,f){return f=this.options.attributeValueProcessor(u,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+u:" "+u+'="'+f+'"'};function o(u,f,l,s){const c=this.j2x(u,l+1,s.concat(f));return u[this.options.textNodeName]!==void 0&&Object.keys(u).length===1?this.buildTextValNode(u[this.options.textNodeName],f,c.attrStr,l):this.buildObjectNode(c.val,f,c.attrStr,l)}n.prototype.buildObjectNode=function(u,f,l,s){if(u==="")return f[0]==="?"?this.indentate(s)+"<"+f+l+"?"+this.tagEndChar:this.indentate(s)+"<"+f+l+this.closeTag(f)+this.tagEndChar;{let c="</"+f+this.tagEndChar,d="";return f[0]==="?"&&(d="?",c=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+f+l+d+">"+u+c:this.options.commentPropName!==!1&&f===this.options.commentPropName&&d.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+f+l+d+this.tagEndChar+u+this.indentate(s)+c}},n.prototype.closeTag=function(u){let f="";return this.options.unpairedTags.indexOf(u)!==-1?this.options.suppressUnpairedNode||(f="/"):this.options.suppressEmptyNode?f="/":f=`></${u}`,f},n.prototype.buildTextValNode=function(u,f,l,s){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(s)+`<![CDATA[${u}]]>`+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(s)+`<!--${u}-->`+this.newLine;if(f[0]==="?")return this.indentate(s)+"<"+f+l+"?"+this.tagEndChar;{let c=this.options.tagValueProcessor(f,u);return c=this.replaceEntitiesValue(c),c===""?this.indentate(s)+"<"+f+l+this.closeTag(f)+this.tagEndChar:this.indentate(s)+"<"+f+l+">"+c+"</"+f+this.tagEndChar}},n.prototype.replaceEntitiesValue=function(u){if(u&&u.length>0&&this.options.processEntities)for(let f=0;f<this.options.entities.length;f++){const l=this.options.entities[f];u=u.replace(l.regex,l.val)}return u};function i(u){return this.options.indentBy.repeat(u)}function a(u){return u.startsWith(this.options.attributeNamePrefix)&&u!==this.options.textNodeName?u.substr(this.attrPrefixLen):!1}return Vs=n,Vs}var Ws,jc;function Qb(){if(jc)return Ws;jc=1;const e=Sc(),t=Yb(),r=Zb();return Ws={XMLParser:t,XMLValidator:e,XMLBuilder:r},Ws}var Gs=Qb();const Ks=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[or.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),kc=(e=[],{pattern:t,filterRules:r,limit:n=0,extraProps:o=[]})=>{let i="d:propfind";t&&(i="oc:search-files"),r&&(i="oc:filter-files");const a=e.reduce((s,c)=>Object.assign(s,{[c]:null}),{}),u=Ks(a,o),f={[i]:{"d:prop":u,"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns",...t&&{"oc:search":{"oc:pattern":t,"oc:limit":n}},...r&&{"oc:filter-rules":Ks(r,[])}}};return new Gs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(f)},e1=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":Ks(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new Gs.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},t1=e=>{const t={},r=e.get("tus-version");return r?(t.version=r.split(","),e.get("tus-extension")&&(t.extension=e.get("tus-extension").split(",")),e.get("tus-resumable")&&(t.resumable=e.get("tus-resumable")),e.get("tus-max-size")&&(t.maxSize=parseInt(e.get("tus-max-size"),10)),t):null},r1=async e=>{const t=n=>{const o=decodeURIComponent(n);return n!=null&&n.startsWith("/remote.php/dav/")?Se(o.replace("/remote.php/dav/",""),{leadingSlash:!0,trailingSlash:!1}):o};return(await kb(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...Mb(o.prop,t(n),!0),processing:o.status==="HTTP/1.1 425 TOO EARLY"};return i.props.name&&(i.props.name=i.props.name.toString()),i})},n1=e=>{const t=new Gs.XMLParser,r={message:"Unknown error",errorCode:void 0};try{const n=t.parse(e);if(!n["d:error"])return r;if(n["d:error"]["s:message"]){const o=n["d:error"]["s:message"];typeof o=="string"&&(r.message=o)}if(n["d:error"]["s:errorcode"]){const o=n["d:error"]["s:errorcode"];typeof o=="string"&&(r.errorCode=o)}}catch{return r}return r};class i1{constructor({baseUrl:t,headers:r}){ye(this,"client");ye(this,"davPath");ye(this,"headers");ye(this,"extraProps");this.davPath=Se(t,"remote.php/dav"),this.client=jb(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:Mt.mkcol,...r})}async propfind(t,{depth:r=1,properties:n=[],headers:o={},...i}={}){const a={...o,Depth:r.toString()},{body:u,result:f}=await this.request(t,{method:Mt.propfind,data:kc(n,{extraProps:this.extraProps}),headers:a,...i});return u!=null&&u.length&&(u[0].tusSupport=t1(f.headers)),u}async report(t,{pattern:r="",filterRules:n=null,limit:o=30,properties:i,...a}={}){const{body:u,result:f}=await this.request(t,{method:Mt.report,data:kc(i,{pattern:r,filterRules:n,limit:o,extraProps:this.extraProps}),...a});return{results:u,range:f.headers.get("content-range")}}copy(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,xn(r));return this.request(t,{method:Mt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,xn(r));return this.request(t,{method:Mt.move,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}put(t,r,{headers:n={},onUploadProgress:o,previousEntityTag:i,overwrite:a,...u}={}){const f={...n};return i?f["If-Match"]=i:a||(f["If-None-Match"]="*"),this.request(t,{method:Mt.put,data:r,headers:f,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:Mt.delete,...r})}propPatch(t,r,n={}){const o=e1(r);return this.request(t,{method:Mt.proppatch,data:o,...n})}getFileUrl(t){return Se(this.davPath,xn(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":Hb(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Se(this.davPath,xn(t),{leadingSlash:!0}),o={...r,url:n,headers:this.buildHeaders(r.headers||{})};try{const i=await this.client.customRequest("",o);let a;if(i.status===207){const u=await i.text();a=await r1(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),f=n1(u);throw new Gd(f.message,f.errorCode,a,a.status)}}}const o1=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Se("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>xr(a,e.extraProps))}}),s1=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[ae.IsFavorite]:o?"true":"false"};return e.propPatch(Se(r.webDavPath,n),a,i)}}),a1=(e,t)=>({listFavoriteFiles({davProperties:r=or.Default,username:n="",...o}={}){return e.report(Se("files",n),{properties:r,filterRules:{favorite:1},...o})}}),u1=(e,t)=>{const r=Xe.create();t&&r.interceptors.request.use(D=>(Object.assign(D.headers,t()),D));const n={axiosClient:r,baseUrl:e},o=new i1({baseUrl:e,headers:t}),i=D=>{o.extraProps.push(D)},a=wm(o),{getPathForFileId:u}=a,f=cm(o,a),{listFiles:l}=f,s=um(f),{getFileInfo:c}=s,{createFolder:d}=sm(o,s),T=am(o,n),{getFileContents:m}=T,{putFileContents:E}=dm(o,s),{getFileUrl:x,revokeUrl:p}=lm(o,T,n),{getPublicFileUrl:h}=fm(o),{copyFiles:g}=om(o),{moveFiles:y}=hm(o),{deleteFile:w}=pm(o),{restoreFile:A}=gm(o),{listFileVersions:P}=o1(o),{restoreFileVersion:I}=ym(o),{clearTrashBin:O}=mm(o),{search:j}=bm(o),{listFavoriteFiles:G}=a1(o),{setFavorite:L}=s1(o);return{copyFiles:g,createFolder:d,deleteFile:w,restoreFile:A,restoreFileVersion:I,getFileContents:m,getFileInfo:c,getFileUrl:x,getPublicFileUrl:h,getPathForFileId:u,listFiles:l,listFileVersions:P,moveFiles:y,putFileContents:E,revokeUrl:p,clearTrashBin:O,search:j,listFavoriteFiles:G,setFavorite:L,registerExtraProp:i}};let en;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&en){const m=en.Authorization;m!=null&&m.toString().startsWith("Bearer")&&(en.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,space:i,resources:a,concurrentRequests:u}=r;en=o;const f=u1(n,()=>en),l=[],s=[],c=new th({concurrency:u}),d=m=>t==="fileListDelete"?f.deleteFile(i,{path:m.path}):f.clearTrashBin(i,{id:m.id}),T=a.map(m=>c.add(async()=>{var E;try{const{status:x}=await d(m);if(x===204){l.push(m);return}if(x===423){const{status:p}=await d(m);if(p===204){l.push(m);return}}}catch(x){console.error(x),s.push({resource:m,message:x.message,statusCode:x.statusCode,xReqId:(E=x.response.headers)==null?void 0:E.get("x-request-id")})}}));await Promise.allSettled(T),postMessage(JSON.stringify({successful:l,failed:s}))}})();