@opencloud-eu/web-pkg 3.2.0 → 4.0.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 l1=Object.defineProperty;var kc=Te=>{throw TypeError(Te)};var f1=(Te,Ie,qe)=>Ie in Te?l1(Te,Ie,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Te[Ie]=qe;var ye=(Te,Ie,qe)=>f1(Te,typeof Ie!="symbol"?Ie+"":Ie,qe),Ys=(Te,Ie,qe)=>Ie.has(Te)||kc("Cannot "+qe);var Z=(Te,Ie,qe)=>(Ys(Te,Ie,"read from private field"),qe?qe.call(Te):Ie.get(Te)),Oe=(Te,Ie,qe)=>Ie.has(Te)?kc("Cannot add the same private member more than once"):Ie instanceof WeakSet?Ie.add(Te):Ie.set(Te,qe),ve=(Te,Ie,qe,Qt)=>(Ys(Te,Ie,"write to private field"),Qt?Qt.call(Te,qe):Ie.set(Te,qe),qe),$e=(Te,Ie,qe)=>(Ys(Te,Ie,"access private method"),qe);var sn=(Te,Ie,qe,Qt)=>({set _(ei){ve(Te,Ie,ei,qe)},get _(){return Z(Te,Ie,Qt)}});(function(){"use strict";var At,Rr,Ir,Kt,en,Pr,tn,Tt,Fr,pt,rn,St,Cr,Ht,nn,zn,_e,Mc,Dc,$c,qc,Hc,Yn,Js,Zs,Jn,Vc,Zn,tt,nt,Vt,ke,Ye,zt,fr,Xt,Ct,cr,on,hr,Gc,Yt,Qn,Qs,Kc;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:{}},Qt;function ei(){return Qt||(Qt=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,h){if(typeof s!="function")throw new TypeError("The listener must be a function");var b=new o(s,c||f,h),m=r?r+l:l;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],b]:f._events[m].push(b):(f._events[m]=b,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 h=0,b=c.length,m=new Array(b);h<b;h++)m[h]=c[h].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,h,b,m){var x=r?r+l:l;if(!this._events[x])return!1;var A=this._events[x],g=arguments.length,d,p;if(A.fn){switch(A.once&&this.removeListener(l,A.fn,void 0,!0),g){case 1:return A.fn.call(A.context),!0;case 2:return A.fn.call(A.context,s),!0;case 3:return A.fn.call(A.context,s,c),!0;case 4:return A.fn.call(A.context,s,c,h),!0;case 5:return A.fn.call(A.context,s,c,h,b),!0;case 6:return A.fn.call(A.context,s,c,h,b,m),!0}for(p=1,d=new Array(g-1);p<g;p++)d[p-1]=arguments[p];A.fn.apply(A.context,d)}else{var y=A.length,v;for(p=0;p<y;p++)switch(A[p].once&&this.removeListener(l,A[p].fn,void 0,!0),g){case 1:A[p].fn.call(A[p].context);break;case 2:A[p].fn.call(A[p].context,s);break;case 3:A[p].fn.call(A[p].context,s,c);break;case 4:A[p].fn.call(A[p].context,s,c,h);break;default:if(!d)for(v=1,d=new Array(g-1);v<g;v++)d[v-1]=arguments[v];A[p].fn.apply(A[p].context,d)}}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,h){var b=r?r+l:l;if(!this._events[b])return this;if(!s)return a(this,b),this;var m=this._events[b];if(m.fn)m.fn===s&&(!h||m.once)&&(!c||m.context===c)&&a(this,b);else{for(var x=0,A=[],g=m.length;x<g;x++)(m[x].fn!==s||h&&!m[x].once||c&&m[x].context!==c)&&A.push(m[x]);A.length?this._events[b]=A.length===1?A[0]:A:a(this,b)}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 zc=ei(),Xc=Ie(zc);class ea extends Error{constructor(t){super(t),this.name="TimeoutError"}}class Yc extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const ta=e=>globalThis.DOMException===void 0?new Yc(e):new DOMException(e),ra=e=>{const t=e.reason===void 0?ta("This operation was aborted."):e.reason;return t instanceof Error?t:ta(t)};function Jc(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:b}=t;b.aborted&&c(ra(b)),u=()=>{c(ra(b))},b.addEventListener("abort",u,{once:!0})}if(r===Number.POSITIVE_INFINITY){e.then(s,c);return}const h=new ea;a=i.setTimeout.call(void 0,()=>{if(n){try{s(n())}catch(b){c(b)}return}typeof e.cancel=="function"&&e.cancel(),o===!1?s():o instanceof Error?c(o):(h.message=o??`Promise timed out after ${r} milliseconds`,c(h))},r),(async()=>{try{s(await e)}catch(b){c(b)}})()}).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 Zc(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 Qc{constructor(){Oe(this,At,[])}enqueue(t,r){r={priority:0,...r};const n={priority:r.priority,id:r.id,run:t};if(this.size===0||Z(this,At)[this.size-1].priority>=r.priority){Z(this,At).push(n);return}const o=Zc(Z(this,At),n,(i,a)=>a.priority-i.priority);Z(this,At).splice(o,0,n)}setPriority(t,r){const n=Z(this,At).findIndex(i=>i.id===t);if(n===-1)throw new ReferenceError(`No promise function with the id "${t}" exists in the queue.`);const[o]=Z(this,At).splice(n,1);this.enqueue(o.run,{priority:r,id:t})}dequeue(){const t=Z(this,At).shift();return t==null?void 0:t.run}filter(t){return Z(this,At).filter(r=>r.priority===t.priority).map(r=>r.run)}get size(){return Z(this,At).length}}At=new WeakMap;class eh extends Xc{constructor(r){var n,o;super();Oe(this,_e);Oe(this,Rr);Oe(this,Ir);Oe(this,Kt,0);Oe(this,en);Oe(this,Pr);Oe(this,tn,0);Oe(this,Tt);Oe(this,Fr);Oe(this,pt);Oe(this,rn);Oe(this,St,0);Oe(this,Cr);Oe(this,Ht);Oe(this,nn);Oe(this,zn,1n);ye(this,"timeout");if(r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Qc,...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,Rr,r.carryoverConcurrencyCount),ve(this,Ir,r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0),ve(this,en,r.intervalCap),ve(this,Pr,r.interval),ve(this,pt,new r.queueClass),ve(this,rn,r.queueClass),this.concurrency=r.concurrency,this.timeout=r.timeout,ve(this,nn,r.throwOnTimeout===!0),ve(this,Ht,r.autoStart===!1)}get concurrency(){return Z(this,Cr)}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,Cr,r),$e(this,_e,Jn).call(this)}setPriority(r,n){Z(this,pt).setPriority(r,n)}async add(r,n={}){return n.id??(n.id=(sn(this,zn)._++).toString()),n={timeout:this.timeout,throwOnTimeout:Z(this,nn),...n},new Promise((o,i)=>{Z(this,pt).enqueue(async()=>{var a;sn(this,St)._++,sn(this,Kt)._++;try{(a=n.signal)==null||a.throwIfAborted();let u=r({signal:n.signal});n.timeout&&(u=Jc(Promise.resolve(u),{milliseconds:n.timeout})),n.signal&&(u=Promise.race([u,$e(this,_e,Vc).call(this,n.signal)]));const f=await u;o(f),this.emit("completed",f)}catch(u){if(u instanceof ea&&!n.throwOnTimeout){o();return}i(u),this.emit("error",u)}finally{$e(this,_e,$c).call(this)}},n),this.emit("add"),$e(this,_e,Yn).call(this)})}async addAll(r,n){return Promise.all(r.map(async o=>this.add(o,n)))}start(){return Z(this,Ht)?(ve(this,Ht,!1),$e(this,_e,Jn).call(this),this):this}pause(){ve(this,Ht,!0)}clear(){ve(this,pt,new(Z(this,rn)))}async onEmpty(){Z(this,pt).size!==0&&await $e(this,_e,Zn).call(this,"empty")}async onSizeLessThan(r){Z(this,pt).size<r||await $e(this,_e,Zn).call(this,"next",()=>Z(this,pt).size<r)}async onIdle(){Z(this,St)===0&&Z(this,pt).size===0||await $e(this,_e,Zn).call(this,"idle")}get size(){return Z(this,pt).size}sizeBy(r){return Z(this,pt).filter(r).length}get pending(){return Z(this,St)}get isPaused(){return Z(this,Ht)}}Rr=new WeakMap,Ir=new WeakMap,Kt=new WeakMap,en=new WeakMap,Pr=new WeakMap,tn=new WeakMap,Tt=new WeakMap,Fr=new WeakMap,pt=new WeakMap,rn=new WeakMap,St=new WeakMap,Cr=new WeakMap,Ht=new WeakMap,nn=new WeakMap,zn=new WeakMap,_e=new WeakSet,Mc=function(){return Z(this,Ir)||Z(this,Kt)<Z(this,en)},Dc=function(){return Z(this,St)<Z(this,Cr)},$c=function(){sn(this,St)._--,$e(this,_e,Yn).call(this),this.emit("next")},qc=function(){$e(this,_e,Zs).call(this),$e(this,_e,Js).call(this),ve(this,Fr,void 0)},Hc=function(){const r=Date.now();if(Z(this,Tt)===void 0){const n=Z(this,tn)-r;if(n<0)ve(this,Kt,Z(this,Rr)?Z(this,St):0);else return Z(this,Fr)===void 0&&ve(this,Fr,setTimeout(()=>{$e(this,_e,qc).call(this)},n)),!0}return!1},Yn=function(){if(Z(this,pt).size===0)return Z(this,Tt)&&clearInterval(Z(this,Tt)),ve(this,Tt,void 0),this.emit("empty"),Z(this,St)===0&&this.emit("idle"),!1;if(!Z(this,Ht)){const r=!Z(this,_e,Hc);if(Z(this,_e,Mc)&&Z(this,_e,Dc)){const n=Z(this,pt).dequeue();return n?(this.emit("active"),n(),r&&$e(this,_e,Js).call(this),!0):!1}}return!1},Js=function(){Z(this,Ir)||Z(this,Tt)!==void 0||(ve(this,Tt,setInterval(()=>{$e(this,_e,Zs).call(this)},Z(this,Pr))),ve(this,tn,Date.now()+Z(this,Pr)))},Zs=function(){Z(this,Kt)===0&&Z(this,St)===0&&Z(this,Tt)&&(clearInterval(Z(this,Tt)),ve(this,Tt,void 0)),ve(this,Kt,Z(this,Rr)?Z(this,St):0),$e(this,_e,Jn).call(this)},Jn=function(){for(;$e(this,_e,Yn).call(this););},Vc=async function(r){return new Promise((n,o)=>{r.addEventListener("abort",()=>{o(r.reason)},{once:!0})})},Zn=async function(r,n){return new Promise(o=>{const i=()=>{n&&!n()||(this.off(r,i),o())};this.on(r,i)})};const Lt=globalThis||void 0||self;function th(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var na={exports:{}},ze=na.exports={},Rt,It;function ti(){throw new Error("setTimeout has not been defined")}function ri(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Rt=setTimeout:Rt=ti}catch{Rt=ti}try{typeof clearTimeout=="function"?It=clearTimeout:It=ri}catch{It=ri}})();function ia(e){if(Rt===setTimeout)return setTimeout(e,0);if((Rt===ti||!Rt)&&setTimeout)return Rt=setTimeout,setTimeout(e,0);try{return Rt(e,0)}catch{try{return Rt.call(null,e,0)}catch{return Rt.call(this,e,0)}}}function rh(e){if(It===clearTimeout)return clearTimeout(e);if((It===ri||!It)&&clearTimeout)return It=clearTimeout,clearTimeout(e);try{return It(e)}catch{try{return It.call(null,e)}catch{return It.call(this,e)}}}var Ut=[],dr=!1,er,an=-1;function nh(){!dr||!er||(dr=!1,er.length?Ut=er.concat(Ut):an=-1,Ut.length&&oa())}function oa(){if(!dr){var e=ia(nh);dr=!0;for(var t=Ut.length;t;){for(er=Ut,Ut=[];++an<t;)er&&er[an].run();an=-1,t=Ut.length}er=null,dr=!1,rh(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];Ut.push(new sa(e,t)),Ut.length===1&&!dr&&ia(oa)};function sa(e,t){this.fun=e,this.array=t}sa.prototype.run=function(){this.fun.apply(null,this.array)},ze.title="browser",ze.browser=!0,ze.env={},ze.argv=[],ze.version="",ze.versions={};function jt(){}ze.on=jt,ze.addListener=jt,ze.once=jt,ze.off=jt,ze.removeListener=jt,ze.removeAllListeners=jt,ze.emit=jt,ze.prependListener=jt,ze.prependOnceListener=jt,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 ih=na.exports;const me=th(ih);function aa(e,t){return function(){return e.apply(t,arguments)}}const{toString:oh}=Object.prototype,{getPrototypeOf:ni}=Object,{iterator:un,toStringTag:ua}=Symbol,ln=(e=>t=>{const r=oh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Nt=e=>(e=e.toLowerCase(),t=>ln(t)===e),fn=e=>t=>typeof t===e,{isArray:pr}=Array,Br=fn("undefined");function sh(e){return e!==null&&!Br(e)&&e.constructor!==null&&!Br(e.constructor)&&yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const la=Nt("ArrayBuffer");function ah(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&la(e.buffer),t}const uh=fn("string"),yt=fn("function"),fa=fn("number"),cn=e=>e!==null&&typeof e=="object",lh=e=>e===!0||e===!1,hn=e=>{if(ln(e)!=="object")return!1;const t=ni(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ua in e)&&!(un in e)},fh=Nt("Date"),ch=Nt("File"),hh=Nt("Blob"),dh=Nt("FileList"),ph=e=>cn(e)&&yt(e.pipe),gh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yt(e.append)&&((t=ln(e))==="formdata"||t==="object"&&yt(e.toString)&&e.toString()==="[object FormData]"))},yh=Nt("URLSearchParams"),[mh,bh,wh,vh]=["ReadableStream","Request","Response","Headers"].map(Nt),Eh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),pr(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 ca(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 tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:Lt,ha=e=>!Br(e)&&e!==tr;function ii(){const{caseless:e}=ha(this)&&this||{},t={},r=(n,o)=>{const i=e&&ca(t,o)||o;hn(t[i])&&hn(n)?t[i]=ii(t[i],n):hn(n)?t[i]=ii({},n):pr(n)?t[i]=n.slice():t[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Lr(arguments[n],r);return t}const xh=(e,t,r,{allOwnKeys:n}={})=>(Lr(t,(o,i)=>{r&&yt(o)?e[i]=aa(o,r):e[i]=o},{allOwnKeys:n}),e),Ah=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Th=(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)},Sh=(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&&ni(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},_h=(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(pr(e))return e;let t=e.length;if(!fa(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Oh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ni(Uint8Array)),Rh=(e,t)=>{const n=(e&&e[un]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Ih=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Ph=Nt("HTMLFormElement"),Fh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),da=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ch=Nt("RegExp"),pa=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Lr(r,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(n[i]=a||o)}),Object.defineProperties(e,n)},Bh=e=>{pa(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+"'")})}})},Lh=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return pr(e)?n(e):n(String(e).split(t)),r},Uh=()=>{},jh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kh(e){return!!(e&&yt(e.append)&&e[ua]==="FormData"&&e[un])}const Mh=e=>{const t=new Array(10),r=(n,o)=>{if(cn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[o]=n;const i=pr(n)?[]:{};return Lr(n,(a,u)=>{const f=r(a,o+1);!Br(f)&&(i[u]=f)}),t[o]=void 0,i}}return n};return r(e,0)},Dh=Nt("AsyncFunction"),$h=e=>e&&(cn(e)||yt(e))&&yt(e.then)&&yt(e.catch),ga=((e,t)=>e?setImmediate:t?((r,n)=>(tr.addEventListener("message",({source:o,data:i})=>{o===tr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),tr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yt(tr.postMessage)),qh=typeof queueMicrotask<"u"?queueMicrotask.bind(tr):typeof me<"u"&&me.nextTick||ga;var J={isArray:pr,isArrayBuffer:la,isBuffer:sh,isFormData:gh,isArrayBufferView:ah,isString:uh,isNumber:fa,isBoolean:lh,isObject:cn,isPlainObject:hn,isReadableStream:mh,isRequest:bh,isResponse:wh,isHeaders:vh,isUndefined:Br,isDate:fh,isFile:ch,isBlob:hh,isRegExp:Ch,isFunction:yt,isStream:ph,isURLSearchParams:yh,isTypedArray:Oh,isFileList:dh,forEach:Lr,merge:ii,extend:xh,trim:Eh,stripBOM:Ah,inherits:Th,toFlatObject:Sh,kindOf:ln,kindOfTest:Nt,endsWith:_h,toArray:Nh,forEachEntry:Rh,matchAll:Ih,isHTMLForm:Ph,hasOwnProperty:da,hasOwnProp:da,reduceDescriptors:pa,freezeMethods:Bh,toObjectSet:Lh,toCamelCase:Fh,noop:Uh,toFiniteNumber:jh,findKey:ca,global:tr,isContextDefined:ha,isSpecCompliantForm:kh,toJSONObject:Mh,isAsyncFn:Dh,isThenable:$h,setImmediate:ga,asap:qh,isIterable:e=>e!=null&&yt(e[un])},ya={},dn={};dn.byteLength=Wh,dn.toByteArray=Kh,dn.fromByteArray=Yh;for(var Pt=[],wt=[],Hh=typeof Uint8Array<"u"?Uint8Array:Array,oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gr=0,Vh=oi.length;gr<Vh;++gr)Pt[gr]=oi[gr],wt[oi.charCodeAt(gr)]=gr;wt[45]=62,wt[95]=63;function ma(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 Wh(e){var t=ma(e),r=t[0],n=t[1];return(r+n)*3/4-n}function Gh(e,t,r){return(t+r)*3/4-r}function Kh(e){var t,r=ma(e),n=r[0],o=r[1],i=new Hh(Gh(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 zh(e){return Pt[e>>18&63]+Pt[e>>12&63]+Pt[e>>6&63]+Pt[e&63]}function Xh(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(zh(n));return o.join("")}function Yh(e){for(var t,r=e.length,n=r%3,o=[],i=16383,a=0,u=r-n;a<u;a+=i)o.push(Xh(e,a,a+i>u?u:a+i));return n===1?(t=e[r-1],o.push(Pt[t>>2]+Pt[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],o.push(Pt[t>>10]+Pt[t>>4&63]+Pt[t<<2&63]+"=")),o.join("")}var si={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */si.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,h=r?-1:1,b=e[t+c];for(c+=h,i=b&(1<<-s)-1,b>>=-s,s+=u;s>0;i=i*256+e[t+c],c+=h,s-=8);for(a=i&(1<<-s)-1,i>>=-s,s+=n;s>0;a=a*256+e[t+c],c+=h,s-=8);if(i===0)i=1-l;else{if(i===f)return a?NaN:(b?-1:1)*(1/0);a=a+Math.pow(2,n),i=i-l}return(b?-1:1)*a*Math.pow(2,i-n)},si.write=function(e,t,r,n,o,i){var a,u,f,l=i*8-o-1,s=(1<<l)-1,c=s>>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=n?0:i-1,m=n?1:-1,x=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+=h/f:t+=h*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+b]=u&255,b+=m,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[r+b]=a&255,b+=m,a/=256,l-=8);e[r+b-m]|=x*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=dn,r=si,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=v,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),w={foo:function(){return 42}};return Object.setPrototypeOf(w,i.prototype),Object.setPrototypeOf(F,w),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 w=new i(F);return Object.setPrototypeOf(w,s.prototype),w}function s(F,w,S){if(typeof F=="number"){if(typeof w=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(F)}return c(F,w,S)}s.poolSize=8192;function c(F,w,S){if(typeof F=="string")return x(F,w);if(a.isView(F))return g(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 d(F,w,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,w,S);const H=p(F);if(H)return H;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return s.from(F[Symbol.toPrimitive]("string"),w,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,w,S){return c(F,w,S)},Object.setPrototypeOf(s.prototype,i.prototype),Object.setPrototypeOf(s,i);function h(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 b(F,w,S){return h(F),F<=0?l(F):w!==void 0?typeof S=="string"?l(F).fill(w,S):l(F).fill(w):l(F)}s.alloc=function(F,w,S){return b(F,w,S)};function m(F){return h(F),l(F<0?0:y(F)|0)}s.allocUnsafe=function(F){return m(F)},s.allocUnsafeSlow=function(F){return m(F)};function x(F,w){if((typeof w!="string"||w==="")&&(w="utf8"),!s.isEncoding(w))throw new TypeError("Unknown encoding: "+w);const S=T(F,w)|0;let k=l(S);const H=k.write(F,w);return H!==S&&(k=k.slice(0,H)),k}function A(F){const w=F.length<0?0:y(F.length)|0,S=l(w);for(let k=0;k<w;k+=1)S[k]=F[k]&255;return S}function g(F){if(st(F,i)){const w=new i(F);return d(w.buffer,w.byteOffset,w.byteLength)}return A(F)}function d(F,w,S){if(w<0||F.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<w+(S||0))throw new RangeError('"length" is outside of buffer bounds');let k;return w===void 0&&S===void 0?k=new i(F):S===void 0?k=new i(F,w):k=new i(F,w,S),Object.setPrototypeOf(k,s.prototype),k}function p(F){if(s.isBuffer(F)){const w=y(F.length)|0,S=l(w);return S.length===0||F.copy(S,0,0,w),S}if(F.length!==void 0)return typeof F.length!="number"||_t(F.length)?l(0):A(F);if(F.type==="Buffer"&&Array.isArray(F.data))return A(F.data)}function y(F){if(F>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return F|0}function v(F){return+F!=F&&(F=0),s.alloc(+F)}s.isBuffer=function(w){return w!=null&&w._isBuffer===!0&&w!==s.prototype},s.compare=function(w,S){if(st(w,i)&&(w=s.from(w,w.offset,w.byteLength)),st(S,i)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(w)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===S)return 0;let k=w.length,H=S.length;for(let z=0,ne=Math.min(k,H);z<ne;++z)if(w[z]!==S[z]){k=w[z],H=S[z];break}return k<H?-1:H<k?1:0},s.isEncoding=function(w){switch(String(w).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(w,S){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(w.length===0)return s.alloc(0);let k;if(S===void 0)for(S=0,k=0;k<w.length;++k)S+=w[k].length;const H=s.allocUnsafe(S);let z=0;for(k=0;k<w.length;++k){let ne=w[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 T(F,w){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(w){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;w=(""+w).toLowerCase(),H=!0}}s.byteLength=T;function P(F,w,S){let k=!1;if((w===void 0||w<0)&&(w=0),w>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,w>>>=0,S<=w))return"";for(F||(F="utf8");;)switch(F){case"hex":return K(this,w,S);case"utf8":case"utf-8":return fe(this,w,S);case"ascii":return Ee(this,w,S);case"latin1":case"binary":return be(this,w,S);case"base64":return he(this,w,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,w,S);default:if(k)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),k=!0}}s.prototype._isBuffer=!0;function I(F,w,S){const k=F[w];F[w]=F[S],F[S]=k}s.prototype.swap16=function(){const w=this.length;if(w%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;S<w;S+=2)I(this,S,S+1);return this},s.prototype.swap32=function(){const w=this.length;if(w%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let S=0;S<w;S+=4)I(this,S,S+3),I(this,S+1,S+2);return this},s.prototype.swap64=function(){const w=this.length;if(w%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let S=0;S<w;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 w=this.length;return w===0?"":arguments.length===0?fe(this,0,w):P.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(w){if(!s.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w?!0:s.compare(this,w)===0},s.prototype.inspect=function(){let w="";const S=e.INSPECT_MAX_BYTES;return w=this.toString("hex",0,S).replace(/(.{2})/g,"$1 ").trim(),this.length>S&&(w+=" ... "),"<Buffer "+w+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(w,S,k,H,z){if(st(w,i)&&(w=s.from(w,w.offset,w.byteLength)),!s.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(S===void 0&&(S=0),k===void 0&&(k=w?w.length:0),H===void 0&&(H=0),z===void 0&&(z=this.length),S<0||k>w.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===w)return 0;let ne=z-H,xe=k-S;const Ue=Math.min(ne,xe),je=this.slice(H,z),Me=w.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 N(F,w,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,_t(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 w=="string"&&(w=s.from(w,k)),s.isBuffer(w))return w.length===0?-1:j(F,w,S,k,H);if(typeof w=="number")return w=w&255,typeof i.prototype.indexOf=="function"?H?i.prototype.indexOf.call(F,w,S):i.prototype.lastIndexOf.call(F,w,S):j(F,[w],S,k,H);throw new TypeError("val must be string, number or Buffer")}function j(F,w,S,k,H){let z=1,ne=F.length,xe=w.length;if(k!==void 0&&(k=String(k).toLowerCase(),k==="ucs2"||k==="ucs-2"||k==="utf16le"||k==="utf-16le")){if(F.length<2||w.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(w,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(w,Re)){Me=!1;break}if(Me)return je}return-1}s.prototype.includes=function(w,S,k){return this.indexOf(w,S,k)!==-1},s.prototype.indexOf=function(w,S,k){return N(this,w,S,k,!0)},s.prototype.lastIndexOf=function(w,S,k){return N(this,w,S,k,!1)};function G(F,w,S,k){S=Number(S)||0;const H=F.length-S;k?(k=Number(k),k>H&&(k=H)):k=H;const z=w.length;k>z/2&&(k=z/2);let ne;for(ne=0;ne<k;++ne){const xe=parseInt(w.substr(ne*2,2),16);if(_t(xe))return ne;F[S+ne]=xe}return ne}function L(F,w,S,k){return ft(rt(w,F.length-S),F,S,k)}function D(F,w,S,k){return ft(Je(w),F,S,k)}function oe(F,w,S,k){return ft(Le(w),F,S,k)}function re(F,w,S,k){return ft(Ne(w,F.length-S),F,S,k)}s.prototype.write=function(w,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),w.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,w,S,k);case"utf8":case"utf-8":return L(this,w,S,k);case"ascii":case"latin1":case"binary":return D(this,w,S,k);case"base64":return oe(this,w,S,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,w,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,w,S){return w===0&&S===F.length?t.fromByteArray(F):t.fromByteArray(F.slice(w,S))}function fe(F,w,S){S=Math.min(F.length,S);const k=[];let H=w;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 w=F.length;if(w<=ge)return String.fromCharCode.apply(String,F);let S="",k=0;for(;k<w;)S+=String.fromCharCode.apply(String,F.slice(k,k+=ge));return S}function Ee(F,w,S){let k="";S=Math.min(F.length,S);for(let H=w;H<S;++H)k+=String.fromCharCode(F[H]&127);return k}function be(F,w,S){let k="";S=Math.min(F.length,S);for(let H=w;H<S;++H)k+=String.fromCharCode(F[H]);return k}function K(F,w,S){const k=F.length;(!w||w<0)&&(w=0),(!S||S<0||S>k)&&(S=k);let H="";for(let z=w;z<S;++z)H+=Ot[F[z]];return H}function Q(F,w,S){const k=F.slice(w,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(w,S){const k=this.length;w=~~w,S=S===void 0?k:~~S,w<0?(w+=k,w<0&&(w=0)):w>k&&(w=k),S<0?(S+=k,S<0&&(S=0)):S>k&&(S=k),S<w&&(S=w);const H=this.subarray(w,S);return Object.setPrototypeOf(H,s.prototype),H};function ee(F,w,S){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+w>S)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=this[w],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[w+ne]*z;return H},s.prototype.readUintBE=s.prototype.readUIntBE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=this[w+--S],z=1;for(;S>0&&(z*=256);)H+=this[w+--S]*z;return H},s.prototype.readUint8=s.prototype.readUInt8=function(w,S){return w=w>>>0,S||ee(w,1,this.length),this[w]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(w,S){return w=w>>>0,S||ee(w,2,this.length),this[w]|this[w+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(w,S){return w=w>>>0,S||ee(w,2,this.length),this[w]<<8|this[w+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+this[w+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),this[w]*16777216+(this[w+1]<<16|this[w+2]<<8|this[w+3])},s.prototype.readBigUInt64LE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=S+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24,z=this[++w]+this[++w]*2**8+this[++w]*2**16+k*2**24;return BigInt(H)+(BigInt(z)<<BigInt(32))}),s.prototype.readBigUInt64BE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=S*2**24+this[++w]*2**16+this[++w]*2**8+this[++w],z=this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+k;return(BigInt(H)<<BigInt(32))+BigInt(z)}),s.prototype.readIntLE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=this[w],z=1,ne=0;for(;++ne<S&&(z*=256);)H+=this[w+ne]*z;return z*=128,H>=z&&(H-=Math.pow(2,8*S)),H},s.prototype.readIntBE=function(w,S,k){w=w>>>0,S=S>>>0,k||ee(w,S,this.length);let H=S,z=1,ne=this[w+--H];for(;H>0&&(z*=256);)ne+=this[w+--H]*z;return z*=128,ne>=z&&(ne-=Math.pow(2,8*S)),ne},s.prototype.readInt8=function(w,S){return w=w>>>0,S||ee(w,1,this.length),this[w]&128?(255-this[w]+1)*-1:this[w]},s.prototype.readInt16LE=function(w,S){w=w>>>0,S||ee(w,2,this.length);const k=this[w]|this[w+1]<<8;return k&32768?k|4294901760:k},s.prototype.readInt16BE=function(w,S){w=w>>>0,S||ee(w,2,this.length);const k=this[w+1]|this[w]<<8;return k&32768?k|4294901760:k},s.prototype.readInt32LE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},s.prototype.readInt32BE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},s.prototype.readBigInt64LE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=this[w+4]+this[w+5]*2**8+this[w+6]*2**16+(k<<24);return(BigInt(H)<<BigInt(32))+BigInt(S+this[++w]*2**8+this[++w]*2**16+this[++w]*2**24)}),s.prototype.readBigInt64BE=it(function(w){w=w>>>0,le(w,"offset");const S=this[w],k=this[w+7];(S===void 0||k===void 0)&&de(w,this.length-8);const H=(S<<24)+this[++w]*2**16+this[++w]*2**8+this[++w];return(BigInt(H)<<BigInt(32))+BigInt(this[++w]*2**24+this[++w]*2**16+this[++w]*2**8+k)}),s.prototype.readFloatLE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),r.read(this,w,!0,23,4)},s.prototype.readFloatBE=function(w,S){return w=w>>>0,S||ee(w,4,this.length),r.read(this,w,!1,23,4)},s.prototype.readDoubleLE=function(w,S){return w=w>>>0,S||ee(w,8,this.length),r.read(this,w,!0,52,8)},s.prototype.readDoubleBE=function(w,S){return w=w>>>0,S||ee(w,8,this.length),r.read(this,w,!1,52,8)};function ue(F,w,S,k,H,z){if(!s.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>H||w<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(w,S,k,H){if(w=+w,S=S>>>0,k=k>>>0,!H){const xe=Math.pow(2,8*k)-1;ue(this,w,S,k,xe,0)}let z=1,ne=0;for(this[S]=w&255;++ne<k&&(z*=256);)this[S+ne]=w/z&255;return S+k},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(w,S,k,H){if(w=+w,S=S>>>0,k=k>>>0,!H){const xe=Math.pow(2,8*k)-1;ue(this,w,S,k,xe,0)}let z=k-1,ne=1;for(this[S+z]=w&255;--z>=0&&(ne*=256);)this[S+z]=w/ne&255;return S+k},s.prototype.writeUint8=s.prototype.writeUInt8=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,1,255,0),this[S]=w&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,65535,0),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,65535,0),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,4294967295,0),this[S+3]=w>>>24,this[S+2]=w>>>16,this[S+1]=w>>>8,this[S]=w&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,4294967295,0),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4};function V(F,w,S,k,H){pe(w,k,H,F,S,7);let z=Number(w&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(w>>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,w,S,k,H){pe(w,k,H,F,S,7);let z=Number(w&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(w>>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(w,S=0){return V(this,w,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=it(function(w,S=0){return R(this,w,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(w,S,k,H){if(w=+w,S=S>>>0,!H){const Ue=Math.pow(2,8*k-1);ue(this,w,S,k,Ue-1,-Ue)}let z=0,ne=1,xe=0;for(this[S]=w&255;++z<k&&(ne*=256);)w<0&&xe===0&&this[S+z-1]!==0&&(xe=1),this[S+z]=(w/ne>>0)-xe&255;return S+k},s.prototype.writeIntBE=function(w,S,k,H){if(w=+w,S=S>>>0,!H){const Ue=Math.pow(2,8*k-1);ue(this,w,S,k,Ue-1,-Ue)}let z=k-1,ne=1,xe=0;for(this[S+z]=w&255;--z>=0&&(ne*=256);)w<0&&xe===0&&this[S+z+1]!==0&&(xe=1),this[S+z]=(w/ne>>0)-xe&255;return S+k},s.prototype.writeInt8=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,1,127,-128),w<0&&(w=255+w+1),this[S]=w&255,S+1},s.prototype.writeInt16LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,32767,-32768),this[S]=w&255,this[S+1]=w>>>8,S+2},s.prototype.writeInt16BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,2,32767,-32768),this[S]=w>>>8,this[S+1]=w&255,S+2},s.prototype.writeInt32LE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,2147483647,-2147483648),this[S]=w&255,this[S+1]=w>>>8,this[S+2]=w>>>16,this[S+3]=w>>>24,S+4},s.prototype.writeInt32BE=function(w,S,k){return w=+w,S=S>>>0,k||ue(this,w,S,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[S]=w>>>24,this[S+1]=w>>>16,this[S+2]=w>>>8,this[S+3]=w&255,S+4},s.prototype.writeBigInt64LE=it(function(w,S=0){return V(this,w,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=it(function(w,S=0){return R(this,w,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function O(F,w,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,w,S,k,H){return w=+w,S=S>>>0,H||O(F,w,S,4),r.write(F,w,S,k,23,4),S+4}s.prototype.writeFloatLE=function(w,S,k){return q(this,w,S,!0,k)},s.prototype.writeFloatBE=function(w,S,k){return q(this,w,S,!1,k)};function $(F,w,S,k,H){return w=+w,S=S>>>0,H||O(F,w,S,8),r.write(F,w,S,k,52,8),S+8}s.prototype.writeDoubleLE=function(w,S,k){return $(this,w,S,!0,k)},s.prototype.writeDoubleBE=function(w,S,k){return $(this,w,S,!1,k)},s.prototype.copy=function(w,S,k,H){if(!s.isBuffer(w))throw new TypeError("argument should be a Buffer");if(k||(k=0),!H&&H!==0&&(H=this.length),S>=w.length&&(S=w.length),S||(S=0),H>0&&H<k&&(H=k),H===k||w.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),w.length-S<H-k&&(H=w.length-S+k);const z=H-k;return this===w&&typeof i.prototype.copyWithin=="function"?this.copyWithin(S,k,H):i.prototype.set.call(w,this.subarray(k,H),S),z},s.prototype.fill=function(w,S,k,H){if(typeof w=="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(w.length===1){const ne=w.charCodeAt(0);(H==="utf8"&&ne<128||H==="latin1")&&(w=ne)}}else typeof w=="number"?w=w&255:typeof w=="boolean"&&(w=Number(w));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,w||(w=0);let z;if(typeof w=="number")for(z=S;z<k;++z)this[z]=w;else{const ne=s.isBuffer(w)?w:s.from(w,H),xe=ne.length;if(xe===0)throw new TypeError('The value "'+w+'" 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,w,S){B[F]=class extends S{constructor(){super(),Object.defineProperty(this,"message",{value:w.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,w){return`The "${F}" argument must be of type number. Received type ${typeof w}`},TypeError),U("ERR_OUT_OF_RANGE",function(F,w,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 ${w}. Received ${H}`,k},RangeError);function Y(F){let w="",S=F.length;const k=F[0]==="-"?1:0;for(;S>=k+4;S-=3)w=`_${F.slice(S-3,S)}${w}`;return`${F.slice(0,S)}${w}`}function se(F,w,S){le(w,"offset"),(F[w]===void 0||F[w+S]===void 0)&&de(w,F.length-(S+1))}function pe(F,w,S,k,H,z){if(F>S||F<w){const ne=typeof w=="bigint"?"n":"";let xe;throw w===0||w===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,w){if(typeof F!="number")throw new B.ERR_INVALID_ARG_TYPE(w,"number",F)}function de(F,w,S){throw Math.floor(F)!==F?(le(F,S),new B.ERR_OUT_OF_RANGE("offset","an integer",F)):w<0?new B.ERR_BUFFER_OUT_OF_BOUNDS:new B.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${w}`,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,w){w=w||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){(w-=3)>-1&&z.push(239,191,189);continue}else if(ne+1===k){(w-=3)>-1&&z.push(239,191,189);continue}H=S;continue}if(S<56320){(w-=3)>-1&&z.push(239,191,189),H=S;continue}S=(H-55296<<10|S-56320)+65536}else H&&(w-=3)>-1&&z.push(239,191,189);if(H=null,S<128){if((w-=1)<0)break;z.push(S)}else if(S<2048){if((w-=2)<0)break;z.push(S>>6|192,S&63|128)}else if(S<65536){if((w-=3)<0)break;z.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((w-=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 w=[];for(let S=0;S<F.length;++S)w.push(F.charCodeAt(S)&255);return w}function Ne(F,w){let S,k,H;const z=[];for(let ne=0;ne<F.length&&!((w-=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,w,S,k){let H;for(H=0;H<k&&!(H+S>=w.length||H>=F.length);++H)w[H+S]=F[H];return H}function st(F,w){return F instanceof w||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===w.name}function _t(F){return F!==F}const Ot=function(){const F="0123456789abcdef",w=new Array(256);for(let S=0;S<16;++S){const k=S*16;for(let H=0;H<16;++H)w[k+H]=F[S]+F[H]}return w}();function it(F){return typeof BigInt>"u"?Jt:F}function Jt(){throw new Error("BigInt not supported")}})(ya);const yr=ya.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)}J.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:J.toJSONObject(this.config),code:this.code,status:this.status}}});const ba=we.prototype,wa={};["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=>{wa[e]={value:e}}),Object.defineProperties(we,wa),Object.defineProperty(ba,"isAxiosError",{value:!0}),we.from=(e,t,r,n,o,i)=>{const a=Object.create(ba);return J.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 Jh=null;function ai(e){return J.isPlainObject(e)||J.isArray(e)}function va(e){return J.endsWith(e,"[]")?e.slice(0,-2):e}function Ea(e,t,r){return e?e.concat(t).map(function(o,i){return o=va(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Zh(e){return J.isArray(e)&&!e.some(ai)}const Qh=J.toFlatObject(J,{},null,function(t){return/^is[A-Z]/.test(t)});function pn(e,t,r){if(!J.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=J.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,A){return!J.isUndefined(A[x])});const n=r.metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&J.isSpecCompliantForm(t);if(!J.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(J.isDate(m))return m.toISOString();if(J.isBoolean(m))return m.toString();if(!f&&J.isBlob(m))throw new we("Blob is not supported. Use a Buffer instead.");return J.isArrayBuffer(m)||J.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):yr.from(m):m}function s(m,x,A){let g=m;if(m&&!A&&typeof m=="object"){if(J.endsWith(x,"{}"))x=n?x:x.slice(0,-2),m=JSON.stringify(m);else if(J.isArray(m)&&Zh(m)||(J.isFileList(m)||J.endsWith(x,"[]"))&&(g=J.toArray(m)))return x=va(x),g.forEach(function(p,y){!(J.isUndefined(p)||p===null)&&t.append(a===!0?Ea([x],y,i):a===null?x:x+"[]",l(p))}),!1}return ai(m)?!0:(t.append(Ea(A,x,i),l(m)),!1)}const c=[],h=Object.assign(Qh,{defaultVisitor:s,convertValue:l,isVisitable:ai});function b(m,x){if(!J.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+x.join("."));c.push(m),J.forEach(m,function(g,d){(!(J.isUndefined(g)||g===null)&&o.call(t,g,J.isString(d)?d.trim():d,x,h))===!0&&b(g,x?x.concat(d):[d])}),c.pop()}}if(!J.isObject(e))throw new TypeError("data must be an object");return b(e),t}function xa(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ui(e,t){this._pairs=[],e&&pn(e,this,t)}const Aa=ui.prototype;Aa.append=function(t,r){this._pairs.push([t,r])},Aa.toString=function(t){const r=t?function(n){return t.call(this,n,xa)}:xa;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function ed(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ta(e,t,r){if(!t)return e;const n=r&&r.encode||ed;J.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=J.isURLSearchParams(t)?t.toString():new ui(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Sa{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){J.forEach(this.handlers,function(n){n!==null&&t(n)})}}var _a={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},td=typeof URLSearchParams<"u"?URLSearchParams:ui,rd=typeof FormData<"u"?FormData:null,nd=typeof Blob<"u"?Blob:null,id={isBrowser:!0,classes:{URLSearchParams:td,FormData:rd,Blob:nd},protocols:["http","https","file","blob","url","data"]};const li=typeof window<"u"&&typeof document<"u",fi=typeof navigator=="object"&&navigator||void 0,od=li&&(!fi||["ReactNative","NativeScript","NS"].indexOf(fi.product)<0),sd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ad=li&&window.location.href||"http://localhost";var ud=Object.freeze({__proto__:null,hasBrowserEnv:li,hasStandardBrowserEnv:od,hasStandardBrowserWebWorkerEnv:sd,navigator:fi,origin:ad}),at={...ud,...id};function ld(e,t){return pn(e,new at.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return at.isNode&&J.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function fd(e){return J.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function cd(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 Na(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&&J.isArray(o)?o.length:a,f?(J.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!u):((!o[a]||!J.isObject(o[a]))&&(o[a]=[]),t(r,n,o[a],i)&&J.isArray(o[a])&&(o[a]=cd(o[a])),!u)}if(J.isFormData(e)&&J.isFunction(e.entries)){const r={};return J.forEachEntry(e,(n,o)=>{t(fd(n),o,r,0)}),r}return null}function hd(e,t,r){if(J.isString(e))try{return(t||JSON.parse)(e),J.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Ur={transitional:_a,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=J.isObject(t);if(i&&J.isHTMLForm(t)&&(t=new FormData(t)),J.isFormData(t))return o?JSON.stringify(Na(t)):t;if(J.isArrayBuffer(t)||J.isBuffer(t)||J.isStream(t)||J.isFile(t)||J.isBlob(t)||J.isReadableStream(t))return t;if(J.isArrayBufferView(t))return t.buffer;if(J.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 ld(t,this.formSerializer).toString();if((u=J.isFileList(t))||n.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return pn(u?{"files[]":t}:t,f&&new f,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),hd(t)):t}],transformResponse:[function(t){const r=this.transitional||Ur.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(J.isResponse(t)||J.isReadableStream(t))return t;if(t&&J.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}}};J.forEach(["delete","get","head","post","put","patch"],e=>{Ur.headers[e]={}});const dd=J.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 pd=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]&&dd[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 jr(e){return e&&String(e).trim().toLowerCase()}function gn(e){return e===!1||e==null?e:J.isArray(e)?e.map(gn):String(e)}function gd(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 yd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ci(e,t,r,n,o){if(J.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!J.isString(t)){if(J.isString(n))return t.indexOf(n)!==-1;if(J.isRegExp(n))return n.test(t)}}function md(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function bd(e,t){const r=J.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=jr(f);if(!s)throw new Error("header name must be a non-empty string");const c=J.findKey(o,s);(!c||o[c]===void 0||l===!0||l===void 0&&o[c]!==!1)&&(o[c||f]=gn(u))}const a=(u,f)=>J.forEach(u,(l,s)=>i(l,s,f));if(J.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(J.isString(t)&&(t=t.trim())&&!yd(t))a(pd(t),r);else if(J.isObject(t)&&J.isIterable(t)){let u={},f,l;for(const s of t){if(!J.isArray(s))throw TypeError("Object iterator must return a key-value pair");u[l=s[0]]=(f=u[l])?J.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=jr(t),t){const n=J.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return gd(o);if(J.isFunction(r))return r.call(this,o,n);if(J.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=jr(t),t){const n=J.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ci(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(a){if(a=jr(a),a){const u=J.findKey(n,a);u&&(!r||ci(n,n[u],u,r))&&(delete n[u],o=!0)}}return J.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||ci(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return J.forEach(this,(o,i)=>{const a=J.findKey(n,i);if(a){r[a]=gn(o),delete r[i];return}const u=t?md(i):String(i).trim();u!==i&&delete r[i],r[u]=gn(o),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return J.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&J.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=jr(a);n[u]||(bd(o,a),n[u]=!0)}return J.isArray(t)?t.forEach(i):i(t),this}};mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),J.reduceDescriptors(mt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),J.freezeMethods(mt);function hi(e,t){const r=this||Ur,n=t||r,o=mt.from(n.headers);let i=n.data;return J.forEach(e,function(u){i=u.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ra(e){return!!(e&&e.__CANCEL__)}function mr(e,t,r){we.call(this,e??"canceled",we.ERR_CANCELED,t,r),this.name="CanceledError"}J.inherits(mr,we,{__CANCEL__:!0});function Ia(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 wd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function vd(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,h=0;for(;c!==o;)h+=r[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),l-a<t)return;const b=s&&l-s;return b?Math.round(h*1e3/b):void 0}}function Ed(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 yn=(e,t,r=3)=>{let n=0;const o=vd(50,250);return Ed(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)},Pa=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Fa=e=>(...t)=>J.asap(()=>e(...t));var xd=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,Ad=at.hasStandardBrowserEnv?{write(e,t,r,n,o,i){const a=[e+"="+encodeURIComponent(t)];J.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),J.isString(n)&&a.push("path="+n),J.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 Td(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Sd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ca(e,t,r){let n=!Td(t);return e&&(n||r==!1)?Sd(e,t):t}const Ba=e=>e instanceof mt?{...e}:e;function rr(e,t){t=t||{};const r={};function n(l,s,c,h){return J.isPlainObject(l)&&J.isPlainObject(s)?J.merge.call({caseless:h},l,s):J.isPlainObject(s)?J.merge({},s):J.isArray(s)?s.slice():s}function o(l,s,c,h){if(J.isUndefined(s)){if(!J.isUndefined(l))return n(void 0,l,c,h)}else return n(l,s,c,h)}function i(l,s){if(!J.isUndefined(s))return n(void 0,s)}function a(l,s){if(J.isUndefined(s)){if(!J.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(Ba(l),Ba(s),c,!0)};return J.forEach(Object.keys(Object.assign({},e,t)),function(s){const c=f[s]||o,h=c(e[s],t[s],s);J.isUndefined(h)&&c!==u||(r[s]=h)}),r}var La=e=>{const t=rr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:u}=t;t.headers=a=mt.from(a),t.url=Ta(Ca(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(J.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&&J.isFunction(n)&&(n=n(t)),n||n!==!1&&xd(t.url))){const l=o&&i&&Ad.read(i);l&&a.set(o,l)}return t},_d=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=La(e);let i=o.data;const a=mt.from(o.headers).normalize();let{responseType:u,onUploadProgress:f,onDownloadProgress:l}=o,s,c,h,b,m;function x(){b&&b(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function g(){if(!A)return;const p=mt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),v={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:p,config:e,request:A};Ia(function(P){r(P),x()},function(P){n(P),x()},v),A=null}"onloadend"in A?A.onloadend=g:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(g)},A.onabort=function(){A&&(n(new we("Request aborted",we.ECONNABORTED,e,A)),A=null)},A.onerror=function(){n(new we("Network Error",we.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||_a;o.timeoutErrorMessage&&(y=o.timeoutErrorMessage),n(new we(y,v.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,e,A)),A=null},i===void 0&&a.setContentType(null),"setRequestHeader"in A&&J.forEach(a.toJSON(),function(y,v){A.setRequestHeader(v,y)}),J.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),l&&([h,m]=yn(l,!0),A.addEventListener("progress",h)),f&&A.upload&&([c,b]=yn(f),A.upload.addEventListener("progress",c),A.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(s=p=>{A&&(n(!p||p.type?new mr(null,e,A):p),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const d=wd(o.url);if(d&&at.protocols.indexOf(d)===-1){n(new we("Unsupported protocol "+d+":",we.ERR_BAD_REQUEST,e));return}A.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 mr(s instanceof Error?s.message:s))}};let a=t&&setTimeout(()=>{a=null,i(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const u=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),e=null)};e.forEach(l=>l.addEventListener("abort",i));const{signal:f}=n;return f.unsubscribe=()=>J.asap(u),f}},Od=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},Rd=async function*(e,t){for await(const r of Id(e))yield*Od(r,t)},Id=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()}},Ua=(e,t,r,n)=>{const o=Rd(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 h=i+=c;r(h)}f.enqueue(new Uint8Array(s))}catch(l){throw u(l),l}},cancel(f){return u(f),o.return()}},{highWaterMark:2})},mn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ja=mn&&typeof ReadableStream=="function",Pd=mn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ka=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Fd=ja&&ka(()=>{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}),Ma=64*1024,di=ja&&ka(()=>J.isReadableStream(new Response("").body)),bn={stream:di&&(e=>e.body)};mn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bn[t]&&(bn[t]=J.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 Cd=async e=>{if(e==null)return 0;if(J.isBlob(e))return e.size;if(J.isSpecCompliantForm(e))return(await new Request(at.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(J.isArrayBufferView(e)||J.isArrayBuffer(e))return e.byteLength;if(J.isURLSearchParams(e)&&(e=e+""),J.isString(e))return(await Pd(e)).byteLength},Bd=async(e,t)=>{const r=J.toFiniteNumber(e.getContentLength());return r??Cd(t)};var Ld=mn&&(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:h}=La(e);l=l?(l+"").toLowerCase():"text";let b=Nd([o,i&&i.toAbortSignal()],a),m;const x=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let A;try{if(f&&Fd&&r!=="get"&&r!=="head"&&(A=await Bd(s,n))!==0){let v=new Request(t,{method:"POST",body:n,duplex:"half"}),T;if(J.isFormData(n)&&(T=v.headers.get("content-type"))&&s.setContentType(T),v.body){const[P,I]=Pa(A,yn(Fa(f)));n=Ua(v.body,Ma,P,I)}}J.isString(c)||(c=c?"include":"omit");const g="credentials"in Request.prototype;m=new Request(t,{...h,signal:b,method:r.toUpperCase(),headers:s.normalize().toJSON(),body:n,duplex:"half",credentials:g?c:void 0});let d=await fetch(m,h);const p=di&&(l==="stream"||l==="response");if(di&&(u||p&&x)){const v={};["status","statusText","headers"].forEach(N=>{v[N]=d[N]});const T=J.toFiniteNumber(d.headers.get("content-length")),[P,I]=u&&Pa(T,yn(Fa(u),!0))||[];d=new Response(Ua(d.body,Ma,P,()=>{I&&I(),x&&x()}),v)}l=l||"text";let y=await bn[J.findKey(bn,l)||"text"](d,e);return!p&&x&&x(),await new Promise((v,T)=>{Ia(v,T,{data:y,headers:mt.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:m})})}catch(g){throw x&&x(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,e,m),{cause:g.cause||g}):we.from(g,g&&g.code,e,m)}});const pi={http:Jh,xhr:_d,fetch:Ld};J.forEach(pi,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Da=e=>`- ${e}`,Ud=e=>J.isFunction(e)||e===null||e===!1;var $a={getAdapter:e=>{e=J.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,!Ud(r)&&(n=pi[(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(Da).join(`
10
- `):" "+Da(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:pi};function gi(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function qa(e){return gi(e),e.headers=mt.from(e.headers),e.data=hi.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$a.getAdapter(e.adapter||Ur.adapter)(e).then(function(n){return gi(e),n.data=hi.call(e,e.transformResponse,n),n.headers=mt.from(n.headers),n},function(n){return Ra(n)||(gi(e),n&&n.response&&(n.response.data=hi.call(e,e.transformResponse,n.response),n.response.headers=mt.from(n.response.headers))),Promise.reject(n)})}const Ha="1.10.0",wn={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Va={};wn.transitional=function(t,r,n){function o(i,a){return"[Axios v"+Ha+"] 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&&!Va[a]&&(Va[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}},wn.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function jd(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 vn={assertOptions:jd,validators:wn};const Ft=vn.validators;let nr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Sa,response:new Sa}}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=rr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&vn.assertOptions(n,{silentJSONParsing:Ft.transitional(Ft.boolean),forcedJSONParsing:Ft.transitional(Ft.boolean),clarifyTimeoutError:Ft.transitional(Ft.boolean)},!1),o!=null&&(J.isFunction(o)?r.paramsSerializer={serialize:o}:vn.assertOptions(o,{encode:Ft.function,serialize:Ft.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vn.assertOptions(r,{baseUrl:Ft.spelling("baseURL"),withXsrfToken:Ft.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&J.merge(i.common,i[r.method]);i&&J.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(x){typeof x.runWhen=="function"&&x.runWhen(r)===!1||(f=f&&x.synchronous,u.unshift(x.fulfilled,x.rejected))});const l=[];this.interceptors.response.forEach(function(x){l.push(x.fulfilled,x.rejected)});let s,c=0,h;if(!f){const m=[qa.bind(this),void 0];for(m.unshift.apply(m,u),m.push.apply(m,l),h=m.length,s=Promise.resolve(r);c<h;)s=s.then(m[c++],m[c++]);return s}h=u.length;let b=r;for(c=0;c<h;){const m=u[c++],x=u[c++];try{b=m(b)}catch(A){x.call(this,A);break}}try{s=qa.call(this,b)}catch(m){return Promise.reject(m)}for(c=0,h=l.length;c<h;)s=s.then(l[c++],l[c++]);return s}getUri(t){t=rr(this.defaults,t);const r=Ca(t.baseURL,t.url,t.allowAbsoluteUrls);return Ta(r,t.params,t.paramsSerializer)}};J.forEach(["delete","get","head","options"],function(t){nr.prototype[t]=function(r,n){return this.request(rr(n||{},{method:t,url:r,data:(n||{}).data}))}}),J.forEach(["post","put","patch"],function(t){function r(n){return function(i,a,u){return this.request(rr(u||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[t]=r(),nr.prototype[t+"Form"]=r(!0)});let kd=class Wc{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(u=>{n.subscribe(u),i=u}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,u){n.reason||(n.reason=new mr(i,a,u),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Wc(function(o){t=o}),cancel:t}}};function Md(e){return function(r){return e.apply(null,r)}}function Dd(e){return J.isObject(e)&&e.isAxiosError===!0}const yi={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(yi).forEach(([e,t])=>{yi[t]=e});function Wa(e){const t=new nr(e),r=aa(nr.prototype.request,t);return J.extend(r,nr.prototype,t,{allOwnKeys:!0}),J.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Wa(rr(e,o))},r}const Xe=Wa(Ur);Xe.Axios=nr,Xe.CanceledError=mr,Xe.CancelToken=kd,Xe.isCancel=Ra,Xe.VERSION=Ha,Xe.toFormData=pn,Xe.AxiosError=we,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=Md,Xe.isAxiosError=Dd,Xe.mergeConfig=rr,Xe.AxiosHeaders=mt,Xe.formToJSON=e=>Na(J.isHTMLForm(e)?new FormData(e):e),Xe.getAdapter=$a.getAdapter,Xe.HttpStatusCode=yi,Xe.default=Xe;const{Axios:d1,AxiosError:p1,CanceledError:g1,isCancel:y1,CancelToken:m1,VERSION:b1,all:w1,Cancel:v1,isAxiosError:E1,spread:x1,toFormData:A1,AxiosHeaders:T1,HttpStatusCode:S1,formToJSON:_1,getAdapter:N1,mergeConfig:O1}=Xe,En=e=>encodeURIComponent(e).split("%2F").join("/"),$d=/^(\w+:\/\/[^/?]+)?(.*?)$/,qd=e=>e.filter(t=>typeof t=="string"||typeof t=="number").map(t=>`${t}`).filter(t=>t),Hd=e=>{const t=e.join("/"),[,r="",n=""]=t.match($d)||[];return{prefix:r,pathname:{parts:n.split("/").filter(o=>o!==""),hasLeading:/^\/+/.test(n),hasTrailing:/\/+$/.test(n)}}},Vd=(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=qd(e);const n=Hd(e);return Vd(n,r)};class Ga extends Error{constructor(r,n,o=null){super(r);ye(this,"response");ye(this,"statusCode");this.response=n,this.statusCode=o}}class Wd extends Ga{constructor(r,n,o,i=null){super(r,o,i);ye(this,"errorCode");this.errorCode=n}}function Gd(e,t=""){return`/public-files/${e}/${t}`.split("/").filter(Boolean).join("/")}function Kd(e,t=""){return`/ocm/${e}/${t}`.split("/").filter(Boolean).join("/")}var mi,Ka;function zd(){if(Ka)return mi;Ka=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 h=a.lastIndexOf("/");if(h!==a.length-1){h===-1?(a="",u=0):(a=a.slice(0,h),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,h=c-s,b=l<h?l:h,m=-1,x=0;x<=b;++x){if(x===b){if(h>b){if(a.charCodeAt(s+x)===47)return a.slice(s+x+1);if(x===0)return a.slice(s+x)}else l>b&&(i.charCodeAt(u+x)===47?m=x:x===0&&(m=0));break}var A=i.charCodeAt(u+x),g=a.charCodeAt(s+x);if(A!==g)break;A===47&&(m=x)}var d="";for(x=u+m+1;x<=f;++x)(x===f||i.charCodeAt(x)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+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,h=-1;for(s=i.length-1;s>=0;--s){var b=i.charCodeAt(s);if(b===47){if(!l){u=s+1;break}}else h===-1&&(l=!1,h=s+1),c>=0&&(b===a.charCodeAt(c)?--c===-1&&(f=s):(c=-1,f=h))}return u===f?f=h: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 h=i.charCodeAt(c);if(h===47){if(!l){u=c+1;break}continue}f===-1&&(l=!1,f=c+1),h===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,h=-1,b=!0,m=i.length-1,x=0;m>=l;--m){if(u=i.charCodeAt(m),u===47){if(!b){c=m+1;break}continue}h===-1&&(b=!1,h=m+1),u===46?s===-1?s=m:x!==1&&(x=1):s!==-1&&(x=-1)}return s===-1||h===-1||x===0||x===1&&s===h-1&&s===c+1?h!==-1&&(c===0&&f?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(c,h)):(c===0&&f?(a.name=i.slice(1,s),a.base=i.slice(1,h)):(a.name=i.slice(c,s),a.base=i.slice(c,h)),a.ext=i.slice(s,h)),c>0?a.dir=i.slice(0,c-1):f&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,mi=n,mi}var za=zd(),Xa=Ie(za);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 kt=(e=>(e.copy="COPY",e.delete="DELETE",e.lock="LOCK",e.mkcol="MKCOL",e.move="MOVE",e.propfind="PROPFIND",e.proppatch="PROPPATCH",e.put="PUT",e.report="REPORT",e.unlock="UNLOCK",e))(kt||{});const xn=e=>({value:e,type:null}),Xd=e=>xn(e),Pe=e=>xn(e),bi=e=>xn(e),Yd=e=>xn(e),Jd={Permissions:Pe("permissions"),IsFavorite:bi("favorite"),FileId:Pe("fileid"),FileParent:Pe("file-parent"),Name:Pe("name"),OwnerId:Pe("owner-id"),OwnerDisplayName:Pe("owner-display-name"),PrivateLink:Pe("privatelink"),ContentLength:bi("getcontentlength"),ContentSize:bi("size"),LastModifiedDate:Pe("getlastmodified"),Tags:Xd("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:Yd("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(Jd).map(([e,t])=>[e,t.value])),lr=class lr{};ye(lr,"Default",[ae.Permissions,ae.IsFavorite,ae.FileId,ae.FileParent,ae.Name,ae.LockDiscovery,ae.ActiveLock,ae.OwnerId,ae.OwnerDisplayName,ae.RemoteItemId,ae.ShareRoot,ae.ShareTypes,ae.PrivateLink,ae.ContentLength,ae.ContentSize,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.DownloadURL,ae.Tags,ae.Audio,ae.Location,ae.Image,ae.Photo]),ye(lr,"PublicLink",lr.Default.concat([ae.PublicLinkItemType,ae.PublicLinkPermission,ae.PublicLinkExpiration,ae.PublicLinkShareDate,ae.PublicLinkShareOwner])),ye(lr,"Trashbin",[ae.ContentLength,ae.ResourceType,ae.TrashbinOriginalLocation,ae.TrashbinOriginalFilename,ae.TrashbinDeletedDate,ae.Permissions,ae.FileParent]),ye(lr,"DavNamespace",[ae.ContentLength,ae.LastModifiedDate,ae.ETag,ae.MimeType,ae.ResourceType,ae.LockDiscovery,ae.ActiveLock]);let ir=lr;var Zd=typeof Lt=="object"&&Lt&&Lt.Object===Object&&Lt,Qd=typeof self=="object"&&self&&self.Object===Object&&self,wi=Zd||Qd||Function("return this")(),br=wi.Symbol,Ya=Object.prototype,ep=Ya.hasOwnProperty,tp=Ya.toString,kr=br?br.toStringTag:void 0;function rp(e){var t=ep.call(e,kr),r=e[kr];try{e[kr]=void 0;var n=!0}catch{}var o=tp.call(e);return n&&(t?e[kr]=r:delete e[kr]),o}var np=Object.prototype,ip=np.toString;function op(e){return ip.call(e)}var sp="[object Null]",ap="[object Undefined]",Ja=br?br.toStringTag:void 0;function Za(e){return e==null?e===void 0?ap:sp:Ja&&Ja in Object(e)?rp(e):op(e)}function up(e){return e!=null&&typeof e=="object"}var lp="[object Symbol]";function vi(e){return typeof e=="symbol"||up(e)&&Za(e)==lp}function fp(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 Ei=Array.isArray,Qa=br?br.prototype:void 0,eu=Qa?Qa.toString:void 0;function tu(e){if(typeof e=="string")return e;if(Ei(e))return fp(e,tu)+"";if(vi(e))return eu?eu.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ru(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cp="[object AsyncFunction]",hp="[object Function]",dp="[object GeneratorFunction]",pp="[object Proxy]";function gp(e){if(!ru(e))return!1;var t=Za(e);return t==hp||t==dp||t==cp||t==pp}var xi=wi["__core-js_shared__"],nu=function(){var e=/[^.]+$/.exec(xi&&xi.keys&&xi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yp(e){return!!nu&&nu in e}var mp=Function.prototype,bp=mp.toString;function wp(e){if(e!=null){try{return bp.call(e)}catch{}try{return e+""}catch{}}return""}var vp=/[\\^$.*+?()[\]{}|]/g,Ep=/^\[object .+?Constructor\]$/,xp=Function.prototype,Ap=Object.prototype,Tp=xp.toString,Sp=Ap.hasOwnProperty,_p=RegExp("^"+Tp.call(Sp).replace(vp,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Np(e){if(!ru(e)||yp(e))return!1;var t=gp(e)?_p:Ep;return t.test(wp(e))}function Op(e,t){return e==null?void 0:e[t]}function iu(e,t){var r=Op(e,t);return Np(r)?r:void 0}function Rp(e,t){return e===t||e!==e&&t!==t}var Ip=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pp=/^\w*$/;function Fp(e,t){if(Ei(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vi(e)?!0:Pp.test(e)||!Ip.test(e)||t!=null&&e in Object(t)}var Mr=iu(Object,"create");function Cp(){this.__data__=Mr?Mr(null):{},this.size=0}function Bp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Lp="__lodash_hash_undefined__",Up=Object.prototype,jp=Up.hasOwnProperty;function kp(e){var t=this.__data__;if(Mr){var r=t[e];return r===Lp?void 0:r}return jp.call(t,e)?t[e]:void 0}var Mp=Object.prototype,Dp=Mp.hasOwnProperty;function $p(e){var t=this.__data__;return Mr?t[e]!==void 0:Dp.call(t,e)}var qp="__lodash_hash_undefined__";function Hp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Mr&&t===void 0?qp:t,this}function or(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}or.prototype.clear=Cp,or.prototype.delete=Bp,or.prototype.get=kp,or.prototype.has=$p,or.prototype.set=Hp;function Vp(){this.__data__=[],this.size=0}function An(e,t){for(var r=e.length;r--;)if(Rp(e[r][0],t))return r;return-1}var Wp=Array.prototype,Gp=Wp.splice;function Kp(e){var t=this.__data__,r=An(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Gp.call(t,r,1),--this.size,!0}function zp(e){var t=this.__data__,r=An(t,e);return r<0?void 0:t[r][1]}function Xp(e){return An(this.__data__,e)>-1}function Yp(e,t){var r=this.__data__,n=An(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function wr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}wr.prototype.clear=Vp,wr.prototype.delete=Kp,wr.prototype.get=zp,wr.prototype.has=Xp,wr.prototype.set=Yp;var Jp=iu(wi,"Map");function Zp(){this.size=0,this.__data__={hash:new or,map:new(Jp||wr),string:new or}}function Qp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Tn(e,t){var r=e.__data__;return Qp(t)?r[typeof t=="string"?"string":"hash"]:r.map}function eg(e){var t=Tn(this,e).delete(e);return this.size-=t?1:0,t}function tg(e){return Tn(this,e).get(e)}function rg(e){return Tn(this,e).has(e)}function ng(e,t){var r=Tn(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function sr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}sr.prototype.clear=Zp,sr.prototype.delete=eg,sr.prototype.get=tg,sr.prototype.has=rg,sr.prototype.set=ng;var ig="Expected a function";function Ai(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ig);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(Ai.Cache||sr),r}Ai.Cache=sr;var og=500;function sg(e){var t=Ai(e,function(n){return r.size===og&&r.clear(),n}),r=t.cache;return t}var ag=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ug=/\\(\\)?/g,lg=sg(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(ag,function(r,n,o,i){t.push(o?i.replace(ug,"$1"):n||r)}),t});function Dr(e){return e==null?"":tu(e)}function fg(e,t){return Ei(e)?e:Fp(e,t)?[e]:lg(Dr(e))}function cg(e){if(typeof e=="string"||vi(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function hg(e,t){t=fg(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[cg(t[r++])];return r&&r==n?e:void 0}function dg(e,t,r){var n=e==null?void 0:hg(e,t);return n===void 0?r:n}function pg(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 gg(e,t,r){var n=e.length;return r=r===void 0?n:r,pg(e,t,r)}var yg="\\ud800-\\udfff",mg="\\u0300-\\u036f",bg="\\ufe20-\\ufe2f",wg="\\u20d0-\\u20ff",vg=mg+bg+wg,Eg="\\ufe0e\\ufe0f",xg="\\u200d",Ag=RegExp("["+xg+yg+vg+Eg+"]");function ou(e){return Ag.test(e)}function Tg(e){return e.split("")}var su="\\ud800-\\udfff",Sg="\\u0300-\\u036f",_g="\\ufe20-\\ufe2f",Ng="\\u20d0-\\u20ff",Og=Sg+_g+Ng,Rg="\\ufe0e\\ufe0f",Ig="["+su+"]",Ti="["+Og+"]",Si="\\ud83c[\\udffb-\\udfff]",Pg="(?:"+Ti+"|"+Si+")",au="[^"+su+"]",uu="(?:\\ud83c[\\udde6-\\uddff]){2}",lu="[\\ud800-\\udbff][\\udc00-\\udfff]",Fg="\\u200d",fu=Pg+"?",cu="["+Rg+"]?",Cg="(?:"+Fg+"(?:"+[au,uu,lu].join("|")+")"+cu+fu+")*",Bg=cu+fu+Cg,Lg="(?:"+[au+Ti+"?",Ti,uu,lu,Ig].join("|")+")",Ug=RegExp(Si+"(?="+Si+")|"+Lg+Bg,"g");function jg(e){return e.match(Ug)||[]}function kg(e){return ou(e)?jg(e):Tg(e)}function Mg(e){return function(t){t=Dr(t);var r=ou(t)?kg(t):void 0,n=r?r[0]:t.charAt(0),o=r?gg(r,1).join(""):t.slice(1);return n[e]()+o}}var Dg=Mg("toUpperCase");function $g(e){return Dg(Dr(e).toLowerCase())}function qg(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 Hg(e){return function(t){return e==null?void 0:e[t]}}var Vg={À:"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"},Wg=Hg(Vg),Gg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kg="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",Xg="\\u20d0-\\u20ff",Yg=Kg+zg+Xg,Jg="["+Yg+"]",Zg=RegExp(Jg,"g");function Qg(e){return e=Dr(e),e&&e.replace(Gg,Wg).replace(Zg,"")}var e0=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t0(e){return e.match(e0)||[]}var r0=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n0(e){return r0.test(e)}var hu="\\ud800-\\udfff",i0="\\u0300-\\u036f",o0="\\ufe20-\\ufe2f",s0="\\u20d0-\\u20ff",a0=i0+o0+s0,du="\\u2700-\\u27bf",pu="a-z\\xdf-\\xf6\\xf8-\\xff",u0="\\xac\\xb1\\xd7\\xf7",l0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",f0="\\u2000-\\u206f",c0=" \\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",gu="A-Z\\xc0-\\xd6\\xd8-\\xde",h0="\\ufe0e\\ufe0f",yu=u0+l0+f0+c0,mu="['’]",bu="["+yu+"]",d0="["+a0+"]",wu="\\d+",p0="["+du+"]",vu="["+pu+"]",Eu="[^"+hu+yu+wu+du+pu+gu+"]",g0="\\ud83c[\\udffb-\\udfff]",y0="(?:"+d0+"|"+g0+")",m0="[^"+hu+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",Au="[\\ud800-\\udbff][\\udc00-\\udfff]",vr="["+gu+"]",b0="\\u200d",Tu="(?:"+vu+"|"+Eu+")",w0="(?:"+vr+"|"+Eu+")",Su="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",_u="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",Nu=y0+"?",Ou="["+h0+"]?",v0="(?:"+b0+"(?:"+[m0,xu,Au].join("|")+")"+Ou+Nu+")*",E0="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x0="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",A0=Ou+Nu+v0,T0="(?:"+[p0,xu,Au].join("|")+")"+A0,S0=RegExp([vr+"?"+vu+"+"+Su+"(?="+[bu,vr,"$"].join("|")+")",w0+"+"+_u+"(?="+[bu,vr+Tu,"$"].join("|")+")",vr+"?"+Tu+"+"+Su,vr+"+"+_u,x0,E0,wu,T0].join("|"),"g");function _0(e){return e.match(S0)||[]}function N0(e,t,r){return e=Dr(e),t=t,t===void 0?n0(e)?_0(e):t0(e):e.match(t)||[]}var O0="['’]",R0=RegExp(O0,"g");function I0(e){return function(t){return qg(N0(Qg(t).replace(R0,"")),e,"")}}var P0=I0(function(e,t,r){return t=t.toLowerCase(),e+(r?$g(t):t)});const F0={complex:["tar.bz2","tar.gz","tar.xz"]},_i=e=>e.replace(/[^A-Za-z0-9\-_]/g,""),Ru=(e,t)=>!e||typeof e!="string"?"":e.indexOf("!")>=0?e.split("!")[t]:"",C0=e=>Ru(e,0),Iu=e=>Ru(e,1),Pu=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(F0.complex.includes(o))return o}return r.length<2?"":r[r.length-1]},Sn=e=>{if(!e)return e;const t={};return Object.keys(e).forEach(r=>{t[P0(r)]=e[r]}),t};function Er(e,t=[]){var m,x,A;const r=((m=e.props[ae.Name])==null?void 0:m.toString())||za.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=Pu({...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 h={};for(const g of t||[]){const d=g.split(":").pop();e.props[d]&&(h[g]=e.props[d])}const b={id:n,fileId:n,storageId:C0(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?((x=e.props[ae.ContentSize])==null?void 0:x.toString())||"0":((A=e.props[ae.ContentLength])==null?void 0:A.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:Sn(e.props[ae.Audio]),location:Sn(e.props[ae.Location]),image:Sn(e.props[ae.Image]),photo:Sn(e.props[ae.Photo]),extraProps:h,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:g}){return g.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:()=>_i(n)};return Object.defineProperty(b,"nodeId",{get(){return Iu(this.id)}}),b}function B0(e){var i;const t=e.type==="directory",r=(i=e.props[ae.TrashbinOriginalFilename])==null?void 0:i.toString(),n=Pu({name:r,type:e.type}),o=Xa.basename(e.filename);return{type:t?"folder":e.type,isFolder:t,ddate:e.props[ae.TrashbinDeletedDate],name:Xa.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:()=>_i(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 Ni=e=>(e==null?void 0:e.driveType)==="personal",Oi=e=>(e==null?void 0:e.driveType)==="public";function L0(e,t){return Se("spaces",e,t,{leadingSlash:!0})}function Ri(e,t=""){return Se("spaces","trash-bin",e,t,{leadingSlash:!0})}function U0(e){var c,h,b,m,x,A;const t=e.publicLinkPassword,r=(c=e.props)==null?void 0:c[ae.FileId],n=(h=e.props)==null?void 0:h[ae.PublicLinkItemType],o=(b=e.props)==null?void 0:b[ae.PublicLinkPermission],i=(m=e.props)==null?void 0:m[ae.PublicLinkExpiration],a=(x=e.props)==null?void 0:x[ae.PublicLinkShareDate],u=(A=e.props)==null?void 0:A[ae.PublicLinkShareOwner],f=e.publicLinkType;let l,s;return f==="ocm"?(l=`ocm/${e.id}`,s=Kd(e.id)):(l=`public/${e.id}`,s=Gd(e.id)),Object.assign(j0({...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 j0(e){var l,s,c,h;let t,r;e.special&&(t=e.special.find(b=>b.specialFolder.name==="image"),r=e.special.find(b=>b.specialFolder.name==="readme"),t&&(t.webDavUrl=decodeURI(t.webDavUrl)),r&&(r.webDavUrl=decodeURI(r.webDavUrl)));const n=((s=(l=e.root)==null?void 0:l.deleted)==null?void 0:s.state)==="trashed",o=Se(e.webDavPath||L0(e.id),{leadingSlash:!0}),i=Se(e.serverUrl,"remote.php/dav",o),a=Se(e.webDavTrashPath||Ri(e.id),{leadingSlash:!0}),u=Se(e.serverUrl,"remote.php/dav",a),f={id:e.id,fileId:e.id,storageId:e.id,mimeType:"",name:e.name,description:e.description,extension:"",path:"/",webDavPath:o,webDavTrashPath:a,driveAlias:e.driveAlias,driveType:e.driveType,type:"space",isFolder:!0,mdate:e.lastModifiedDateTime,size:((c=e.quota)==null?void 0:c.used)||0,tags:[],permissions:"",starred:!1,etag:"",shareTypes:[],privateLink:e.webUrl,downloadURL:"",owner:(h=e.owner)==null?void 0:h.user,disabled:n,root:e.root,spaceQuota:e.quota,spaceImageData:t,spaceReadmeData:r,hasTrashedItems:e["@libre.graph.hasTrashedItems"]||!1,graphPermissions:void 0,canUpload:function({user:b}={}){var m;return Ni(this)&&this.isOwner(b)?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.createUpload)},canDownload:function(){return!0},canBeDeleted:function({ability:b}={}){var m;return this.disabled?b!=null&&b.can("delete-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions):!1},canRename:function({ability:b}={}){var m;return b!=null&&b.can("update-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canEditDescription:function({ability:b}={}){var m;return b!=null&&b.can("update-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canRestore:function({ability:b}={}){var m;return this.disabled?b!=null&&b.can("update-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions):!1},canDisable:function({ability:b}={}){var m;return this.disabled?!1:b!=null&&b.can("delete-all","Drive")?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canShare:function(){var b;return(b=this.graphPermissions)==null?void 0:b.includes(bt.createPermissions)},canEditImage:function(){var b;return this.disabled?!1:(b=this.graphPermissions)==null?void 0:b.includes(bt.deletePermissions)},canEditReadme:function(){var b;return this.disabled?!1:(b=this.graphPermissions)==null?void 0:b.includes(bt.deletePermissions)},canRestoreFromTrashbin:function(){var b;return(b=this.graphPermissions)==null?void 0:b.includes(bt.updateDeleted)},canDeleteFromTrashBin:function({user:b}={}){var m;return Ni(this)&&this.isOwner(b)?!0:(m=this.graphPermissions)==null?void 0:m.includes(bt.deletePermissions)},canListVersions:function({user:b}={}){var m;return Ni(this)&&this.isOwner(b)?!0:(m=this.graphPermissions)==null?void 0:m.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:()=>_i(e.id),getDriveAliasAndItem({path:b}){return Se(this.driveAlias,b,{leadingSlash:!1})},getWebDavUrl({path:b}){return Se(i,b)},getWebDavTrashUrl({path:b}){return Se(u,b)},isOwner(b){var m;return(b==null?void 0:b.id)===((m=this.owner)==null?void 0:m.id)}};return Object.defineProperty(f,"nodeId",{get(){return Iu(this.id)}}),f}const k0=(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 dg(o,"data.ocs.data",{capabilities:null,version:null})}}};var Ii={},_n={exports:{}},Fu;function Pi(){if(Fu)return _n.exports;Fu=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(v,T,P){return Function.prototype.apply.call(v,T,P)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:r=function(v){return Object.getOwnPropertyNames(v)};function n(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(v){return v!==v};function i(){i.init.call(this)}_n.exports=i,_n.exports.once=g,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(v){if(typeof v!="number"||v<0||o(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function f(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return f(this)},i.prototype.emit=function(v){for(var T=[],P=1;P<arguments.length;P++)T.push(arguments[P]);var I=v==="error",N=this._events;if(N!==void 0)I=I&&N.error===void 0;else if(!I)return!1;if(I){var j;if(T.length>0&&(j=T[0]),j instanceof Error)throw j;var G=new Error("Unhandled error."+(j?" ("+j.message+")":""));throw G.context=j,G}var L=N[v];if(L===void 0)return!1;if(typeof L=="function")t(L,this,T);else for(var D=L.length,oe=m(L,D),P=0;P<D;++P)t(oe[P],this,T);return!0};function l(y,v,T,P){var I,N,j;if(u(T),N=y._events,N===void 0?(N=y._events=Object.create(null),y._eventsCount=0):(N.newListener!==void 0&&(y.emit("newListener",v,T.listener?T.listener:T),N=y._events),j=N[v]),j===void 0)j=N[v]=T,++y._eventsCount;else if(typeof j=="function"?j=N[v]=P?[T,j]:[j,T]:P?j.unshift(T):j.push(T),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(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");G.name="MaxListenersExceededWarning",G.emitter=y,G.type=v,G.count=j.length,n(G)}return y}i.prototype.addListener=function(v,T){return l(this,v,T,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(v,T){return l(this,v,T,!0)};function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(y,v,T){var P={fired:!1,wrapFn:void 0,target:y,type:v,listener:T},I=s.bind(P);return I.listener=T,P.wrapFn=I,I}i.prototype.once=function(v,T){return u(T),this.on(v,c(this,v,T)),this},i.prototype.prependOnceListener=function(v,T){return u(T),this.prependListener(v,c(this,v,T)),this},i.prototype.removeListener=function(v,T){var P,I,N,j,G;if(u(T),I=this._events,I===void 0)return this;if(P=I[v],P===void 0)return this;if(P===T||P.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete I[v],I.removeListener&&this.emit("removeListener",v,P.listener||T));else if(typeof P!="function"){for(N=-1,j=P.length-1;j>=0;j--)if(P[j]===T||P[j].listener===T){G=P[j].listener,N=j;break}if(N<0)return this;N===0?P.shift():x(P,N),P.length===1&&(I[v]=P[0]),I.removeListener!==void 0&&this.emit("removeListener",v,G||T)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(v){var T,P,I;if(P=this._events,P===void 0)return this;if(P.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):P[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete P[v]),this;if(arguments.length===0){var N=Object.keys(P),j;for(I=0;I<N.length;++I)j=N[I],j!=="removeListener"&&this.removeAllListeners(j);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=P[v],typeof T=="function")this.removeListener(v,T);else if(T!==void 0)for(I=T.length-1;I>=0;I--)this.removeListener(v,T[I]);return this};function h(y,v,T){var P=y._events;if(P===void 0)return[];var I=P[v];return I===void 0?[]:typeof I=="function"?T?[I.listener||I]:[I]:T?A(I):m(I,I.length)}i.prototype.listeners=function(v){return h(this,v,!0)},i.prototype.rawListeners=function(v){return h(this,v,!1)},i.listenerCount=function(y,v){return typeof y.listenerCount=="function"?y.listenerCount(v):b.call(y,v)},i.prototype.listenerCount=b;function b(y){var v=this._events;if(v!==void 0){var T=v[y];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function m(y,v){for(var T=new Array(v),P=0;P<v;++P)T[P]=y[P];return T}function x(y,v){for(;v+1<y.length;v++)y[v]=y[v+1];y.pop()}function A(y){for(var v=new Array(y.length),T=0;T<v.length;++T)v[T]=y[T].listener||y[T];return v}function g(y,v){return new Promise(function(T,P){function I(j){y.removeListener(v,N),P(j)}function N(){typeof y.removeListener=="function"&&y.removeListener("error",I),T([].slice.call(arguments))}p(y,v,N,{once:!0}),v!=="error"&&d(y,I,{once:!0})})}function d(y,v,T){typeof y.on=="function"&&p(y,"error",v,T)}function p(y,v,T,P){if(typeof y.on=="function")P.once?y.once(v,T):y.on(v,T);else if(typeof y.addEventListener=="function")y.addEventListener(v,function I(N){P.once&&y.removeEventListener(v,I),T(N)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return _n.exports}var Nn={exports:{}},Cu;function ar(){return Cu||(Cu=1,typeof Object.create=="function"?Nn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Nn.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}),Nn.exports}var Fi,Bu;function Lu(){return Bu||(Bu=1,Fi=Pi().EventEmitter),Fi}var Ci={},Uu;function On(){return Uu||(Uu=1,function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var t={},r={};r.byteLength=s,r.toByteArray=h,r.fromByteArray=x;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(d){var p=d.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=p);var v=y===p?0:4-y%4;return[y,v]}function s(d){var p=l(d),y=p[0],v=p[1];return(y+v)*3/4-v}function c(d,p,y){return(p+y)*3/4-y}function h(d){var p,y=l(d),v=y[0],T=y[1],P=new i(c(d,v,T)),I=0,N=T>0?v-4:v,j;for(j=0;j<N;j+=4)p=o[d.charCodeAt(j)]<<18|o[d.charCodeAt(j+1)]<<12|o[d.charCodeAt(j+2)]<<6|o[d.charCodeAt(j+3)],P[I++]=p>>16&255,P[I++]=p>>8&255,P[I++]=p&255;return T===2&&(p=o[d.charCodeAt(j)]<<2|o[d.charCodeAt(j+1)]>>4,P[I++]=p&255),T===1&&(p=o[d.charCodeAt(j)]<<10|o[d.charCodeAt(j+1)]<<4|o[d.charCodeAt(j+2)]>>2,P[I++]=p>>8&255,P[I++]=p&255),P}function b(d){return n[d>>18&63]+n[d>>12&63]+n[d>>6&63]+n[d&63]}function m(d,p,y){for(var v,T=[],P=p;P<y;P+=3)v=(d[P]<<16&16711680)+(d[P+1]<<8&65280)+(d[P+2]&255),T.push(b(v));return T.join("")}function x(d){for(var p,y=d.length,v=y%3,T=[],P=16383,I=0,N=y-v;I<N;I+=P)T.push(m(d,I,I+P>N?N:I+P));return v===1?(p=d[y-1],T.push(n[p>>2]+n[p<<4&63]+"==")):v===2&&(p=(d[y-2]<<8)+d[y-1],T.push(n[p>>10]+n[p>>4&63]+n[p<<2&63]+"=")),T.join("")}var A={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */A.read=function(d,p,y,v,T){var P,I,N=T*8-v-1,j=(1<<N)-1,G=j>>1,L=-7,D=y?T-1:0,oe=y?-1:1,re=d[p+D];for(D+=oe,P=re&(1<<-L)-1,re>>=-L,L+=N;L>0;P=P*256+d[p+D],D+=oe,L-=8);for(I=P&(1<<-L)-1,P>>=-L,L+=v;L>0;I=I*256+d[p+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,v),P=P-G}return(re?-1:1)*I*Math.pow(2,P-v)},A.write=function(d,p,y,v,T,P){var I,N,j,G=P*8-T-1,L=(1<<G)-1,D=L>>1,oe=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,re=v?0:P-1,he=v?1:-1,fe=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(N=isNaN(p)?1:0,I=L):(I=Math.floor(Math.log(p)/Math.LN2),p*(j=Math.pow(2,-I))<1&&(I--,j*=2),I+D>=1?p+=oe/j:p+=oe*Math.pow(2,1-D),p*j>=2&&(I++,j/=2),I+D>=L?(N=0,I=L):I+D>=1?(N=(p*j-1)*Math.pow(2,T),I=I+D):(N=p*Math.pow(2,D-1)*Math.pow(2,T),I=0));T>=8;d[y+re]=N&255,re+=he,N/=256,T-=8);for(I=I<<T|N,G+=T;G>0;d[y+re]=I&255,re+=he,I/=256,G-=8);d[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(d){const p=r,y=A,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;d.Buffer=L,d.SlowBuffer=Q,d.INSPECT_MAX_BYTES=50;const T=2147483647;d.kMaxLength=T;const{Uint8Array:P,ArrayBuffer:I,SharedArrayBuffer:N}=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),E={foo:function(){return 42}};return Object.setPrototypeOf(E,P.prototype),Object.setPrototypeOf(C,E),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>T)throw new RangeError('The value "'+C+'" is invalid for option "size"');const E=new P(C);return Object.setPrototypeOf(E,L.prototype),E}function L(C,E,_){if(typeof C=="number"){if(typeof E=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return he(C)}return D(C,E,_)}L.poolSize=8192;function D(C,E,_){if(typeof C=="string")return fe(C,E);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(Bt(C,I)||C&&Bt(C.buffer,I)||typeof N<"u"&&(Bt(C,N)||C&&Bt(C.buffer,N)))return Ee(C,E,_);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,E,_);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"),E,_);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,E,_){return D(C,E,_)},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,E,_){return oe(C),C<=0?G(C):E!==void 0?typeof _=="string"?G(C).fill(E,_):G(C).fill(E):G(C)}L.alloc=function(C,E,_){return re(C,E,_)};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,E){if((typeof E!="string"||E==="")&&(E="utf8"),!L.isEncoding(E))throw new TypeError("Unknown encoding: "+E);const _=ee(C,E)|0;let M=G(_);const W=M.write(C,E);return W!==_&&(M=M.slice(0,W)),M}function ge(C){const E=C.length<0?0:K(C.length)|0,_=G(E);for(let M=0;M<E;M+=1)_[M]=C[M]&255;return _}function ce(C){if(Bt(C,P)){const E=new P(C);return Ee(E.buffer,E.byteOffset,E.byteLength)}return ge(C)}function Ee(C,E,_){if(E<0||C.byteLength<E)throw new RangeError('"offset" is outside of buffer bounds');if(C.byteLength<E+(_||0))throw new RangeError('"length" is outside of buffer bounds');let M;return E===void 0&&_===void 0?M=new P(C):_===void 0?M=new P(C,E):M=new P(C,E,_),Object.setPrototypeOf(M,L.prototype),M}function be(C){if(L.isBuffer(C)){const E=K(C.length)|0,_=G(E);return _.length===0||C.copy(_,0,0,E),_}if(C.length!==void 0)return typeof C.length!="number"||Xs(C.length)?G(0):ge(C);if(C.type==="Buffer"&&Array.isArray(C.data))return ge(C.data)}function K(C){if(C>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return C|0}function Q(C){return+C!=C&&(C=0),L.alloc(+C)}L.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==L.prototype},L.compare=function(E,_){if(Bt(E,P)&&(E=L.from(E,E.offset,E.byteLength)),Bt(_,P)&&(_=L.from(_,_.offset,_.byteLength)),!L.isBuffer(E)||!L.isBuffer(_))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===_)return 0;let M=E.length,W=_.length;for(let X=0,ie=Math.min(M,W);X<ie;++X)if(E[X]!==_[X]){M=E[X],W=_[X];break}return M<W?-1:W<M?1:0},L.isEncoding=function(E){switch(String(E).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(E,_){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return L.alloc(0);let M;if(_===void 0)for(_=0,M=0;M<E.length;++M)_+=E[M].length;const W=L.allocUnsafe(_);let X=0;for(M=0;M<E.length;++M){let ie=E[M];if(Bt(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,E){if(L.isBuffer(C))return C.length;if(I.isView(C)||Bt(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(E){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;E=(""+E).toLowerCase(),W=!0}}L.byteLength=ee;function ue(C,E,_){let M=!1;if((E===void 0||E<0)&&(E=0),E>this.length||((_===void 0||_>this.length)&&(_=this.length),_<=0)||(_>>>=0,E>>>=0,_<=E))return"";for(C||(C="utf8");;)switch(C){case"hex":return rt(this,E,_);case"utf8":case"utf-8":return pe(this,E,_);case"ascii":return Be(this,E,_);case"latin1":case"binary":return te(this,E,_);case"base64":return se(this,E,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Je(this,E,_);default:if(M)throw new TypeError("Unknown encoding: "+C);C=(C+"").toLowerCase(),M=!0}}L.prototype._isBuffer=!0;function V(C,E,_){const M=C[E];C[E]=C[_],C[_]=M}L.prototype.swap16=function(){const E=this.length;if(E%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let _=0;_<E;_+=2)V(this,_,_+1);return this},L.prototype.swap32=function(){const E=this.length;if(E%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let _=0;_<E;_+=4)V(this,_,_+3),V(this,_+1,_+2);return this},L.prototype.swap64=function(){const E=this.length;if(E%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let _=0;_<E;_+=8)V(this,_,_+7),V(this,_+1,_+6),V(this,_+2,_+5),V(this,_+3,_+4);return this},L.prototype.toString=function(){const E=this.length;return E===0?"":arguments.length===0?pe(this,0,E):ue.apply(this,arguments)},L.prototype.toLocaleString=L.prototype.toString,L.prototype.equals=function(E){if(!L.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E?!0:L.compare(this,E)===0},L.prototype.inspect=function(){let E="";const _=d.INSPECT_MAX_BYTES;return E=this.toString("hex",0,_).replace(/(.{2})/g,"$1 ").trim(),this.length>_&&(E+=" ... "),"<Buffer "+E+">"},v&&(L.prototype[v]=L.prototype.inspect),L.prototype.compare=function(E,_,M,W,X){if(Bt(E,P)&&(E=L.from(E,E.offset,E.byteLength)),!L.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(_===void 0&&(_=0),M===void 0&&(M=E?E.length:0),W===void 0&&(W=0),X===void 0&&(X=this.length),_<0||M>E.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===E)return 0;let ie=X-W,Ae=M-_;const Ge=Math.min(ie,Ae),De=this.slice(W,X),Ke=E.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,E,_,M,W){if(C.length===0)return-1;if(typeof _=="string"?(M=_,_=0):_>2147483647?_=2147483647:_<-2147483648&&(_=-2147483648),_=+_,Xs(_)&&(_=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 E=="string"&&(E=L.from(E,M)),L.isBuffer(E))return E.length===0?-1:O(C,E,_,M,W);if(typeof E=="number")return E=E&255,typeof P.prototype.indexOf=="function"?W?P.prototype.indexOf.call(C,E,_):P.prototype.lastIndexOf.call(C,E,_):O(C,[E],_,M,W);throw new TypeError("val must be string, number or Buffer")}function O(C,E,_,M,W){let X=1,ie=C.length,Ae=E.length;if(M!==void 0&&(M=String(M).toLowerCase(),M==="ucs2"||M==="ucs-2"||M==="utf16le"||M==="utf-16le")){if(C.length<2||E.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(E,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(E,Ce)){Ke=!1;break}if(Ke)return De}return-1}L.prototype.includes=function(E,_,M){return this.indexOf(E,_,M)!==-1},L.prototype.indexOf=function(E,_,M){return R(this,E,_,M,!0)},L.prototype.lastIndexOf=function(E,_,M){return R(this,E,_,M,!1)};function q(C,E,_,M){_=Number(_)||0;const W=C.length-_;M?(M=Number(M),M>W&&(M=W)):M=W;const X=E.length;M>X/2&&(M=X/2);let ie;for(ie=0;ie<M;++ie){const Ae=parseInt(E.substr(ie*2,2),16);if(Xs(Ae))return ie;C[_+ie]=Ae}return ie}function $(C,E,_,M){return Xn(Ue(E,C.length-_),C,_,M)}function B(C,E,_,M){return Xn(je(E),C,_,M)}function U(C,E,_,M){return Xn(Re(E),C,_,M)}function Y(C,E,_,M){return Xn(Me(E,C.length-_),C,_,M)}L.prototype.write=function(E,_,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),E.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,E,_,M);case"utf8":case"utf-8":return $(this,E,_,M);case"ascii":case"latin1":case"binary":return B(this,E,_,M);case"base64":return U(this,E,_,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,E,_,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,E,_){return E===0&&_===C.length?p.fromByteArray(C):p.fromByteArray(C.slice(E,_))}function pe(C,E,_){_=Math.min(C.length,_);const M=[];let W=E;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 E=C.length;if(E<=le)return String.fromCharCode.apply(String,C);let _="",M=0;for(;M<E;)_+=String.fromCharCode.apply(String,C.slice(M,M+=le));return _}function Be(C,E,_){let M="";_=Math.min(C.length,_);for(let W=E;W<_;++W)M+=String.fromCharCode(C[W]&127);return M}function te(C,E,_){let M="";_=Math.min(C.length,_);for(let W=E;W<_;++W)M+=String.fromCharCode(C[W]);return M}function rt(C,E,_){const M=C.length;(!E||E<0)&&(E=0),(!_||_<0||_>M)&&(_=M);let W="";for(let X=E;X<_;++X)W+=a1[C[X]];return W}function Je(C,E,_){const M=C.slice(E,_);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(E,_){const M=this.length;E=~~E,_=_===void 0?M:~~_,E<0?(E+=M,E<0&&(E=0)):E>M&&(E=M),_<0?(_+=M,_<0&&(_=0)):_>M&&(_=M),_<E&&(_=E);const W=this.subarray(E,_);return Object.setPrototypeOf(W,L.prototype),W};function Ne(C,E,_){if(C%1!==0||C<0)throw new RangeError("offset is not uint");if(C+E>_)throw new RangeError("Trying to access beyond buffer length")}L.prototype.readUintLE=L.prototype.readUIntLE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=this[E],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[E+ie]*X;return W},L.prototype.readUintBE=L.prototype.readUIntBE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=this[E+--_],X=1;for(;_>0&&(X*=256);)W+=this[E+--_]*X;return W},L.prototype.readUint8=L.prototype.readUInt8=function(E,_){return E=E>>>0,_||Ne(E,1,this.length),this[E]},L.prototype.readUint16LE=L.prototype.readUInt16LE=function(E,_){return E=E>>>0,_||Ne(E,2,this.length),this[E]|this[E+1]<<8},L.prototype.readUint16BE=L.prototype.readUInt16BE=function(E,_){return E=E>>>0,_||Ne(E,2,this.length),this[E]<<8|this[E+1]},L.prototype.readUint32LE=L.prototype.readUInt32LE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+this[E+3]*16777216},L.prototype.readUint32BE=L.prototype.readUInt32BE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),this[E]*16777216+(this[E+1]<<16|this[E+2]<<8|this[E+3])},L.prototype.readBigUInt64LE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=_+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24,X=this[++E]+this[++E]*2**8+this[++E]*2**16+M*2**24;return BigInt(W)+(BigInt(X)<<BigInt(32))}),L.prototype.readBigUInt64BE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=_*2**24+this[++E]*2**16+this[++E]*2**8+this[++E],X=this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+M;return(BigInt(W)<<BigInt(32))+BigInt(X)}),L.prototype.readIntLE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=this[E],X=1,ie=0;for(;++ie<_&&(X*=256);)W+=this[E+ie]*X;return X*=128,W>=X&&(W-=Math.pow(2,8*_)),W},L.prototype.readIntBE=function(E,_,M){E=E>>>0,_=_>>>0,M||Ne(E,_,this.length);let W=_,X=1,ie=this[E+--W];for(;W>0&&(X*=256);)ie+=this[E+--W]*X;return X*=128,ie>=X&&(ie-=Math.pow(2,8*_)),ie},L.prototype.readInt8=function(E,_){return E=E>>>0,_||Ne(E,1,this.length),this[E]&128?(255-this[E]+1)*-1:this[E]},L.prototype.readInt16LE=function(E,_){E=E>>>0,_||Ne(E,2,this.length);const M=this[E]|this[E+1]<<8;return M&32768?M|4294901760:M},L.prototype.readInt16BE=function(E,_){E=E>>>0,_||Ne(E,2,this.length);const M=this[E+1]|this[E]<<8;return M&32768?M|4294901760:M},L.prototype.readInt32LE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},L.prototype.readInt32BE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},L.prototype.readBigInt64LE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=this[E+4]+this[E+5]*2**8+this[E+6]*2**16+(M<<24);return(BigInt(W)<<BigInt(32))+BigInt(_+this[++E]*2**8+this[++E]*2**16+this[++E]*2**24)}),L.prototype.readBigInt64BE=Zt(function(E){E=E>>>0,H(E,"offset");const _=this[E],M=this[E+7];(_===void 0||M===void 0)&&z(E,this.length-8);const W=(_<<24)+this[++E]*2**16+this[++E]*2**8+this[++E];return(BigInt(W)<<BigInt(32))+BigInt(this[++E]*2**24+this[++E]*2**16+this[++E]*2**8+M)}),L.prototype.readFloatLE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),y.read(this,E,!0,23,4)},L.prototype.readFloatBE=function(E,_){return E=E>>>0,_||Ne(E,4,this.length),y.read(this,E,!1,23,4)},L.prototype.readDoubleLE=function(E,_){return E=E>>>0,_||Ne(E,8,this.length),y.read(this,E,!0,52,8)},L.prototype.readDoubleBE=function(E,_){return E=E>>>0,_||Ne(E,8,this.length),y.read(this,E,!1,52,8)};function Le(C,E,_,M,W,X){if(!L.isBuffer(C))throw new TypeError('"buffer" argument must be a Buffer instance');if(E>W||E<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(E,_,M,W){if(E=+E,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,E,_,M,Ae,0)}let X=1,ie=0;for(this[_]=E&255;++ie<M&&(X*=256);)this[_+ie]=E/X&255;return _+M},L.prototype.writeUintBE=L.prototype.writeUIntBE=function(E,_,M,W){if(E=+E,_=_>>>0,M=M>>>0,!W){const Ae=Math.pow(2,8*M)-1;Le(this,E,_,M,Ae,0)}let X=M-1,ie=1;for(this[_+X]=E&255;--X>=0&&(ie*=256);)this[_+X]=E/ie&255;return _+M},L.prototype.writeUint8=L.prototype.writeUInt8=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,1,255,0),this[_]=E&255,_+1},L.prototype.writeUint16LE=L.prototype.writeUInt16LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,65535,0),this[_]=E&255,this[_+1]=E>>>8,_+2},L.prototype.writeUint16BE=L.prototype.writeUInt16BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,65535,0),this[_]=E>>>8,this[_+1]=E&255,_+2},L.prototype.writeUint32LE=L.prototype.writeUInt32LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,4294967295,0),this[_+3]=E>>>24,this[_+2]=E>>>16,this[_+1]=E>>>8,this[_]=E&255,_+4},L.prototype.writeUint32BE=L.prototype.writeUInt32BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,4294967295,0),this[_]=E>>>24,this[_+1]=E>>>16,this[_+2]=E>>>8,this[_+3]=E&255,_+4};function ft(C,E,_,M,W){k(E,M,W,C,_,7);let X=Number(E&BigInt(4294967295));C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X,X=X>>8,C[_++]=X;let ie=Number(E>>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,E,_,M,W){k(E,M,W,C,_,7);let X=Number(E&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(E>>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=Zt(function(E,_=0){return ft(this,E,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeBigUInt64BE=Zt(function(E,_=0){return st(this,E,_,BigInt(0),BigInt("0xffffffffffffffff"))}),L.prototype.writeIntLE=function(E,_,M,W){if(E=+E,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,E,_,M,Ge-1,-Ge)}let X=0,ie=1,Ae=0;for(this[_]=E&255;++X<M&&(ie*=256);)E<0&&Ae===0&&this[_+X-1]!==0&&(Ae=1),this[_+X]=(E/ie>>0)-Ae&255;return _+M},L.prototype.writeIntBE=function(E,_,M,W){if(E=+E,_=_>>>0,!W){const Ge=Math.pow(2,8*M-1);Le(this,E,_,M,Ge-1,-Ge)}let X=M-1,ie=1,Ae=0;for(this[_+X]=E&255;--X>=0&&(ie*=256);)E<0&&Ae===0&&this[_+X+1]!==0&&(Ae=1),this[_+X]=(E/ie>>0)-Ae&255;return _+M},L.prototype.writeInt8=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,1,127,-128),E<0&&(E=255+E+1),this[_]=E&255,_+1},L.prototype.writeInt16LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,32767,-32768),this[_]=E&255,this[_+1]=E>>>8,_+2},L.prototype.writeInt16BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,2,32767,-32768),this[_]=E>>>8,this[_+1]=E&255,_+2},L.prototype.writeInt32LE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,2147483647,-2147483648),this[_]=E&255,this[_+1]=E>>>8,this[_+2]=E>>>16,this[_+3]=E>>>24,_+4},L.prototype.writeInt32BE=function(E,_,M){return E=+E,_=_>>>0,M||Le(this,E,_,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[_]=E>>>24,this[_+1]=E>>>16,this[_+2]=E>>>8,this[_+3]=E&255,_+4},L.prototype.writeBigInt64LE=Zt(function(E,_=0){return ft(this,E,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),L.prototype.writeBigInt64BE=Zt(function(E,_=0){return st(this,E,_,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _t(C,E,_,M,W,X){if(_+M>C.length)throw new RangeError("Index out of range");if(_<0)throw new RangeError("Index out of range")}function Ot(C,E,_,M,W){return E=+E,_=_>>>0,W||_t(C,E,_,4),y.write(C,E,_,M,23,4),_+4}L.prototype.writeFloatLE=function(E,_,M){return Ot(this,E,_,!0,M)},L.prototype.writeFloatBE=function(E,_,M){return Ot(this,E,_,!1,M)};function it(C,E,_,M,W){return E=+E,_=_>>>0,W||_t(C,E,_,8),y.write(C,E,_,M,52,8),_+8}L.prototype.writeDoubleLE=function(E,_,M){return it(this,E,_,!0,M)},L.prototype.writeDoubleBE=function(E,_,M){return it(this,E,_,!1,M)},L.prototype.copy=function(E,_,M,W){if(!L.isBuffer(E))throw new TypeError("argument should be a Buffer");if(M||(M=0),!W&&W!==0&&(W=this.length),_>=E.length&&(_=E.length),_||(_=0),W>0&&W<M&&(W=M),W===M||E.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),E.length-_<W-M&&(W=E.length-_+M);const X=W-M;return this===E&&typeof P.prototype.copyWithin=="function"?this.copyWithin(_,M,W):P.prototype.set.call(E,this.subarray(M,W),_),X},L.prototype.fill=function(E,_,M,W){if(typeof E=="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(E.length===1){const ie=E.charCodeAt(0);(W==="utf8"&&ie<128||W==="latin1")&&(E=ie)}}else typeof E=="number"?E=E&255:typeof E=="boolean"&&(E=Number(E));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,E||(E=0);let X;if(typeof E=="number")for(X=_;X<M;++X)this[X]=E;else{const ie=L.isBuffer(E)?E:L.from(E,W),Ae=ie.length;if(Ae===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(X=0;X<M-_;++X)this[X+_]=ie[X%Ae]}return this};const Jt={};function F(C,E,_){Jt[C]=class extends _{constructor(){super(),Object.defineProperty(this,"message",{value:E.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,E){return`The "${C}" argument must be of type number. Received type ${typeof E}`},TypeError),F("ERR_OUT_OF_RANGE",function(C,E,_){let M=`The value of "${C}" is out of range.`,W=_;return Number.isInteger(_)&&Math.abs(_)>2**32?W=w(String(_)):typeof _=="bigint"&&(W=String(_),(_>BigInt(2)**BigInt(32)||_<-(BigInt(2)**BigInt(32)))&&(W=w(W)),W+="n"),M+=` It must be ${E}. Received ${W}`,M},RangeError);function w(C){let E="",_=C.length;const M=C[0]==="-"?1:0;for(;_>=M+4;_-=3)E=`_${C.slice(_-3,_)}${E}`;return`${C.slice(0,_)}${E}`}function S(C,E,_){H(E,"offset"),(C[E]===void 0||C[E+_]===void 0)&&z(E,C.length-(_+1))}function k(C,E,_,M,W,X){if(C>_||C<E){const ie=typeof E=="bigint"?"n":"";let Ae;throw E===0||E===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 Jt.ERR_OUT_OF_RANGE("value",Ae,C)}S(M,W,X)}function H(C,E){if(typeof C!="number")throw new Jt.ERR_INVALID_ARG_TYPE(E,"number",C)}function z(C,E,_){throw Math.floor(C)!==C?(H(C,_),new Jt.ERR_OUT_OF_RANGE("offset","an integer",C)):E<0?new Jt.ERR_BUFFER_OUT_OF_BOUNDS:new Jt.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${E}`,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,E){E=E||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){(E-=3)>-1&&X.push(239,191,189);continue}else if(ie+1===M){(E-=3)>-1&&X.push(239,191,189);continue}W=_;continue}if(_<56320){(E-=3)>-1&&X.push(239,191,189),W=_;continue}_=(W-55296<<10|_-56320)+65536}else W&&(E-=3)>-1&&X.push(239,191,189);if(W=null,_<128){if((E-=1)<0)break;X.push(_)}else if(_<2048){if((E-=2)<0)break;X.push(_>>6|192,_&63|128)}else if(_<65536){if((E-=3)<0)break;X.push(_>>12|224,_>>6&63|128,_&63|128)}else if(_<1114112){if((E-=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 E=[];for(let _=0;_<C.length;++_)E.push(C.charCodeAt(_)&255);return E}function Me(C,E){let _,M,W;const X=[];for(let ie=0;ie<C.length&&!((E-=2)<0);++ie)_=C.charCodeAt(ie),M=_>>8,W=_%256,X.push(W),X.push(M);return X}function Re(C){return p.toByteArray(xe(C))}function Xn(C,E,_,M){let W;for(W=0;W<M&&!(W+_>=E.length||W>=C.length);++W)E[W+_]=C[W];return W}function Bt(C,E){return C instanceof E||C!=null&&C.constructor!=null&&C.constructor.name!=null&&C.constructor.name===E.name}function Xs(C){return C!==C}const a1=function(){const C="0123456789abcdef",E=new Array(256);for(let _=0;_<16;++_){const M=_*16;for(let W=0;W<16;++W)E[M+W]=C[_]+C[W]}return E}();function Zt(C){return typeof BigInt>"u"?u1:C}function u1(){throw new Error("BigInt not supported")}})(t);const g=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=g,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 Rn(){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 M0(){return qu||(qu=1,Mi=Error),Mi}var Di,Hu;function D0(){return Hu||(Hu=1,Di=EvalError),Di}var $i,Vu;function $0(){return Vu||(Vu=1,$i=RangeError),$i}var qi,Wu;function q0(){return Wu||(Wu=1,qi=ReferenceError),qi}var Hi,Gu;function Ku(){return Gu||(Gu=1,Hi=SyntaxError),Hi}var Vi,zu;function $r(){return zu||(zu=1,Vi=TypeError),Vi}var Wi,Xu;function H0(){return Xu||(Xu=1,Wi=URIError),Wi}var Gi,Yu;function V0(){return Yu||(Yu=1,Gi=Math.abs),Gi}var Ki,Ju;function W0(){return Ju||(Ju=1,Ki=Math.floor),Ki}var zi,Zu;function G0(){return Zu||(Zu=1,zi=Math.max),zi}var Xi,Qu;function K0(){return Qu||(Qu=1,Xi=Math.min),Xi}var Yi,el;function z0(){return el||(el=1,Yi=Math.pow),Yi}var Ji,tl;function X0(){return tl||(tl=1,Ji=Math.round),Ji}var Zi,rl;function Y0(){return rl||(rl=1,Zi=Number.isNaN||function(t){return t!==t}),Zi}var Qi,nl;function J0(){if(nl)return Qi;nl=1;var e=Y0();return Qi=function(r){return e(r)||r===0?r:r<0?-1:1},Qi}var eo,il;function Z0(){return il||(il=1,eo=Object.getOwnPropertyDescriptor),eo}var to,ol;function xr(){if(ol)return to;ol=1;var e=Z0();if(e)try{e([],"length")}catch{e=null}return to=e,to}var ro,sl;function In(){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 Q0(){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 ey(){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 h=0;h<l.length;h+=1)s[h+f.length]=l[h];return s},i=function(f,l){for(var s=[],c=l,h=0;c<f.length;c+=1,h+=1)s[h]=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,h=function(){if(this instanceof c){var g=l.apply(this,o(s,arguments));return Object(g)===g?g:this}return l.apply(f,o(s,arguments))},b=r(0,l.length-s.length),m=[],x=0;x<b;x++)m[x]="$"+x;if(c=Function("binder","return function ("+a(m,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var A=function(){};A.prototype=l.prototype,c.prototype=new A,A.prototype=null}return c},so}var ao,dl;function qr(){if(dl)return ao;dl=1;var e=ey();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 ty(){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=qr(),t=co(),r=lo(),n=ty();return po=n||e.call(r,t),po}var go,wl;function yo(){if(wl)return go;wl=1;var e=qr(),t=$r(),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 ry(){if(vl)return mo;vl=1;var e=yo(),t=xr(),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 wo(){if(El)return bo;El=1;var e=ll(),t=cl(),r=ry();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 vo,xl;function Al(){if(xl)return vo;xl=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=qr();return vo=r.call(e,t),vo}var Eo,Tl;function Sl(){if(Tl)return Eo;Tl=1;var e,t=$u(),r=M0(),n=D0(),o=$0(),i=q0(),a=Ku(),u=$r(),f=H0(),l=V0(),s=W0(),c=G0(),h=K0(),b=z0(),m=X0(),x=J0(),A=Function,g=function(q){try{return A('"use strict"; return ('+q+").constructor;")()}catch{}},d=xr(),p=In(),y=function(){throw new u},v=d?function(){try{return arguments.callee,y}catch{try{return d(arguments,"callee").get}catch{return y}}}():y,T=Q0()(),P=wo(),I=cl(),N=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%":T&&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%":A,"%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%":T&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":d,"%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"||!T||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&P?P(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":v,"%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%":p,"%Object.getPrototypeOf%":I,"%Math.abs%":l,"%Math.floor%":s,"%Math.max%":c,"%Math.min%":h,"%Math.pow%":b,"%Math.round%":m,"%Math.sign%":x,"%Reflect.getPrototypeOf%":N};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=g("async function () {}");else if($==="%GeneratorFunction%")B=g("function* () {}");else if($==="%AsyncGeneratorFunction%")B=g("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=qr(),ce=Al(),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},O=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 Eo=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=O("%"+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],Ne=Q(Je,0,1),Le=Q(Je,-1);if((Ne==='"'||Ne==="'"||Ne==="`"||Le==='"'||Le==="'"||Le==="`")&&Ne!==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(d&&te+1>=U.length){var ft=d(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},Eo}var xo,_l;function Hr(){if(_l)return xo;_l=1;var e=Sl(),t=yo(),r=t([e("%String.prototype.indexOf%")]);return xo=function(o,i){var a=e(o,!!i);return typeof a=="function"&&r(o,".prototype.")>-1?t([a]):a},xo}var Ao,Nl;function ny(){if(Nl)return Ao;Nl=1;var e=Rn()(),t=Hr(),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,Ao=i?n:o,Ao}var To,Ol;function iy(){if(Ol)return To;Ol=1;var e=Hr(),t=Rn()(),r=Al(),n=xr(),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(h){if(!h||typeof h!="object")return!1;var b=n(h,"lastIndex"),m=b&&r(b,"value");if(!m)return!1;try{i(h,f)}catch(x){return x===a}}}else{var l=e("Object.prototype.toString"),s="[object RegExp]";o=function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:l(h)===s}}return To=o,To}var So,Rl;function oy(){if(Rl)return So;Rl=1;var e=Hr(),t=iy(),r=e("RegExp.prototype.exec"),n=$r();return So=function(i){if(!t(i))throw new n("`regex` must be a RegExp");return function(u){return r(i,u)!==null}},So}var _o,Il;function sy(){if(Il)return _o;Il=1;var e=Hr(),t=oy(),r=t(/^\s*(?:function)?\*/),n=Rn()(),o=wo(),i=e("Object.prototype.toString"),a=e("Function.prototype.toString"),u=function(){if(!n)return!1;try{return Function("return function*() {}")()}catch{}},f;return _o=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 h=u();f=h?o(h):!1}return o(s)===f},_o}var No,Pl;function ay(){if(Pl)return No;Pl=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(d){d!==n&&(t=null)}else t=null;var o=/^\s*class\b/,i=function(p){try{var y=e.call(p);return o.test(y)}catch{return!1}},a=function(p){try{return i(p)?!1:(e.call(p),!0)}catch{return!1}},u=Object.prototype.toString,f="[object Object]",l="[object Function]",s="[object GeneratorFunction]",c="[object HTMLAllCollection]",h="[object HTML document.all class]",b="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,x=!(0 in[,]),A=function(){return!1};if(typeof document=="object"){var g=document.all;u.call(g)===u.call(document.all)&&(A=function(p){if((x||!p)&&(typeof p>"u"||typeof p=="object"))try{var y=u.call(p);return(y===c||y===h||y===b||y===f)&&p("")==null}catch{}return!1})}return No=t?function(p){if(A(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;try{t(p,null,r)}catch(y){if(y!==n)return!1}return!i(p)&&a(p)}:function(p){if(A(p))return!0;if(!p||typeof p!="function"&&typeof p!="object")return!1;if(m)return a(p);if(i(p))return!1;var y=u.call(p);return y!==l&&y!==s&&!/^\[object HTML/.test(y)?!1:a(p)},No}var Oo,Fl;function uy(){if(Fl)return Oo;Fl=1;var e=ay(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(f,l,s){for(var c=0,h=f.length;c<h;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,h=f.length;c<h;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 Ro,Cl;function ly(){return Cl||(Cl=1,Ro=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ro}var Io,Bl;function fy(){if(Bl)return Io;Bl=1;var e=ly(),t=typeof globalThis>"u"?Te:globalThis;return Io=function(){for(var n=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(n[n.length]=e[o]);return n},Io}var Po={exports:{}},Fo,Ll;function cy(){if(Ll)return Fo;Ll=1;var e=In(),t=Ku(),r=$r(),n=xr();return Fo=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,h=!!n&&n(i,a);if(e)e(i,a,{configurable:s===null&&h?h.configurable:!s,enumerable:f===null&&h?h.enumerable:!f,value:u,writable:l===null&&h?h.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.")},Fo}var Co,Ul;function hy(){if(Ul)return Co;Ul=1;var e=In(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Co=t,Co}var Bo,jl;function dy(){if(jl)return Bo;jl=1;var e=Sl(),t=cy(),r=hy()(),n=xr(),o=$r(),i=e("%Math.floor%");return Bo=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 h=n(u,"length");h&&!h.configurable&&(s=!1),h&&!h.writable&&(c=!1)}return(s||c||!l)&&(r?t(u,"length",f,!0,!0):t(u,"length",f)),u},Bo}var Lo,kl;function py(){if(kl)return Lo;kl=1;var e=qr(),t=co(),r=bl();return Lo=function(){return r(e,t,arguments)},Lo}var Ml;function gy(){return Ml||(Ml=1,function(e){var t=dy(),r=In(),n=yo(),o=py();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}(Po)),Po.exports}var Uo,Dl;function $l(){if(Dl)return Uo;Dl=1;var e=uy(),t=fy(),r=gy(),n=Hr(),o=xr(),i=wo(),a=n("Object.prototype.toString"),u=Rn()(),f=typeof globalThis>"u"?Te:globalThis,l=t(),s=n("String.prototype.slice"),c=n("Array.prototype.indexOf",!0)||function(A,g){for(var d=0;d<A.length;d+=1)if(A[d]===g)return d;return-1},h={__proto__:null};u&&o&&i?e(l,function(x){var A=new f[x];if(Symbol.toStringTag in A&&i){var g=i(A),d=o(g,Symbol.toStringTag);if(!d&&g){var p=i(g);d=o(p,Symbol.toStringTag)}h["$"+x]=r(d.get)}}):e(l,function(x){var A=new f[x],g=A.slice||A.set;g&&(h["$"+x]=r(g))});var b=function(A){var g=!1;return e(h,function(d,p){if(!g)try{"$"+d(A)===p&&(g=s(p,1))}catch{}}),g},m=function(A){var g=!1;return e(h,function(d,p){if(!g)try{d(A),g=s(p,1)}catch{}}),g};return Uo=function(A){if(!A||typeof A!="object")return!1;if(!u){var g=s(a(A),8,-1);return c(l,g)>-1?g:g!=="Object"?!1:m(A)}return o?b(A):null},Uo}var jo,ql;function yy(){if(ql)return jo;ql=1;var e=$l();return jo=function(r){return!!e(r)},jo}var Hl;function my(){return Hl||(Hl=1,function(e){var t=ny(),r=sy(),n=$l(),o=yy();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 h=i(BigInt.prototype.valueOf);if(u)var b=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 x(te){return typeof Promise<"u"&&te instanceof Promise||te!==null&&typeof te=="object"&&typeof te.then=="function"&&typeof te.catch=="function"}e.isPromise=x;function A(te){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(te):o(te)||Q(te)}e.isArrayBufferView=A;function g(te){return n(te)==="Uint8Array"}e.isUint8Array=g;function d(te){return n(te)==="Uint8ClampedArray"}e.isUint8ClampedArray=d;function p(te){return n(te)==="Uint16Array"}e.isUint16Array=p;function y(te){return n(te)==="Uint32Array"}e.isUint32Array=y;function v(te){return n(te)==="Int8Array"}e.isInt8Array=v;function T(te){return n(te)==="Int16Array"}e.isInt16Array=T;function P(te){return n(te)==="Int32Array"}e.isInt32Array=P;function I(te){return n(te)==="Float32Array"}e.isFloat32Array=I;function N(te){return n(te)==="Float64Array"}e.isFloat64Array=N;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 O(te){return f(te)==="[object Map Iterator]"}e.isMapIterator=O;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,h)}e.isBigIntObject=pe;function le(te){return u&&m(te,b)}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 ko,Vl;function by(){return Vl||(Vl=1,ko=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}),ko}var Wl;function Gl(){return Wl||(Wl=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(!v(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}}),O=ue[ee];ee<V;O=ue[++ee])d(O)||!N(O)?R+=" "+O:R+=" "+a(O);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]),g(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 v(ue)||(ue=s(K,ue,ee)),ue}var V=c(K,Q);if(V)return V;var R=Object.keys(Q),O=l(R);if(K.showHidden&&(R=Object.getOwnPropertyNames(Q)),G(Q)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return h(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 h(Q)}var $="",B=!1,U=["{","}"];if(A(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)&&($=" "+h(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=b(K,Q,ee,O,R):se=R.map(function(pe){return m(K,Q,ee,O,pe,B)}),K.seen.pop(),x(se,$,U)}function c(K,Q){if(P(Q))return K.stylize("undefined","undefined");if(v(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(g(Q))return K.stylize(""+Q,"boolean");if(d(Q))return K.stylize("null","null")}function h(K){return"["+Error.prototype.toString.call(K)+"]"}function b(K,Q,ee,ue,V){for(var R=[],O=0,q=Q.length;O<q;++O)ge(Q,String(O))?R.push(m(K,Q,ee,ue,String(O),!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 O,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)||(O="["+V+"]"),q||(K.seen.indexOf($.value)<0?(d(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(O)){if(R&&V.match(/^\d+$/))return q;O=JSON.stringify(""+V),O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(O=O.slice(1,-1),O=K.stylize(O,"name")):(O=O.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),O=K.stylize(O,"string"))}return O+": "+q}function x(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=my();function A(K){return Array.isArray(K)}e.isArray=A;function g(K){return typeof K=="boolean"}e.isBoolean=g;function d(K){return K===null}e.isNull=d;function p(K){return K==null}e.isNullOrUndefined=p;function y(K){return typeof K=="number"}e.isNumber=y;function v(K){return typeof K=="string"}e.isString=v;function T(K){return typeof K=="symbol"}e.isSymbol=T;function P(K){return K===void 0}e.isUndefined=P;function I(K){return N(K)&&oe(K)==="[object RegExp]"}e.isRegExp=I,e.types.isRegExp=I;function N(K){return typeof K=="object"&&K!==null}e.isObject=N;function j(K){return N(K)&&oe(K)==="[object Date]"}e.isDate=j,e.types.isDate=j;function G(K){return N(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=by();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=ar(),e._extend=function(K,Q){if(!Q||!N(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}),O=[],q=0;q<arguments.length;q++)O.push(arguments[q]);O.push(function($,B){$?V($):ue(B)});try{Q.apply(this,O)}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,O=function(){return V.apply(R,arguments)};K.apply(this,ee).then(function(q){me.nextTick(O.bind(null,null,q))},function(q){me.nextTick(Ee.bind(null,q,O))})}return Object.setPrototypeOf(Q,Object.getPrototypeOf(K)),Object.defineProperties(Q,t(K)),Q}e.callbackify=be}(Bi)),Bi}var Mo,Kl;function wy(){if(Kl)return Mo;Kl=1;function e(m,x){var A=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);x&&(g=g.filter(function(d){return Object.getOwnPropertyDescriptor(m,d).enumerable})),A.push.apply(A,g)}return A}function t(m){for(var x=1;x<arguments.length;x++){var A=arguments[x]!=null?arguments[x]:{};x%2?e(Object(A),!0).forEach(function(g){r(m,g,A[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(A)):e(Object(A)).forEach(function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(A,g))})}return m}function r(m,x,A){return x=a(x),x in m?Object.defineProperty(m,x,{value:A,enumerable:!0,configurable:!0,writable:!0}):m[x]=A,m}function n(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")}function o(m,x){for(var A=0;A<x.length;A++){var g=x[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,a(g.key),g)}}function i(m,x,A){return x&&o(m.prototype,x),Object.defineProperty(m,"prototype",{writable:!1}),m}function a(m){var x=u(m,"string");return typeof x=="symbol"?x:String(x)}function u(m,x){if(typeof m!="object"||m===null)return m;var A=m[Symbol.toPrimitive];if(A!==void 0){var g=A.call(m,x);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var f=On(),l=f.Buffer,s=Gl(),c=s.inspect,h=c&&c.custom||"inspect";function b(m,x,A){l.prototype.copy.call(m,x,A)}return Mo=function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(A){var g={data:A,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(A){var g={data:A,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var A=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,A}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(A){if(this.length===0)return"";for(var g=this.head,d=""+g.data;g=g.next;)d+=A+g.data;return d}},{key:"concat",value:function(A){if(this.length===0)return l.alloc(0);for(var g=l.allocUnsafe(A>>>0),d=this.head,p=0;d;)b(d.data,g,p),p+=d.data.length,d=d.next;return g}},{key:"consume",value:function(A,g){var d;return A<this.head.data.length?(d=this.head.data.slice(0,A),this.head.data=this.head.data.slice(A)):A===this.head.data.length?d=this.shift():d=g?this._getString(A):this._getBuffer(A),d}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(A){var g=this.head,d=1,p=g.data;for(A-=p.length;g=g.next;){var y=g.data,v=A>y.length?y.length:A;if(v===y.length?p+=y:p+=y.slice(0,A),A-=v,A===0){v===y.length?(++d,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=y.slice(v));break}++d}return this.length-=d,p}},{key:"_getBuffer",value:function(A){var g=l.allocUnsafe(A),d=this.head,p=1;for(d.data.copy(g),A-=d.data.length;d=d.next;){var y=d.data,v=A>y.length?y.length:A;if(y.copy(g,g.length-A,0,v),A-=v,A===0){v===y.length?(++p,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=y.slice(v));break}++p}return this.length-=p,g}},{key:h,value:function(A,g){return c(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),m}(),Mo}var Do,zl;function Xl(){if(zl)return Do;zl=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 Do={destroy:e,undestroy:n,errorOrDestroy:i},Do}var $o={},Yl;function Ar(){if(Yl)return $o;Yl=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(h,b,m){return typeof f=="string"?f:f(h,b,m)}var c=function(h){e(b,h);function b(m,x,A){return h.call(this,s(m,x,A))||this}return b}(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 h=a(u,".")?"property":"argument";c='The "'.concat(u,'" ').concat(h," ").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"),$o.codes=t,$o}var qo,Jl;function Zl(){if(Jl)return qo;Jl=1;var e=Ar().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 qo={getHighWaterMark:r},qo}var Ho,Ql;function vy(){if(Ql)return Ho;Ql=1,Ho=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 Ho}var Vo,ef;function tf(){if(ef)return Vo;ef=1,Vo=I;function e(V){var R=this;this.next=null,this.entry=null,this.finish=function(){ue(R,V)}}var t;I.WritableState=T;var r={deprecate:vy()},n=Lu(),o=On().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=Xl(),l=Zl(),s=l.getHighWaterMark,c=Ar().codes,h=c.ERR_INVALID_ARG_TYPE,b=c.ERR_METHOD_NOT_IMPLEMENTED,m=c.ERR_MULTIPLE_CALLBACK,x=c.ERR_STREAM_CANNOT_PIPE,A=c.ERR_STREAM_DESTROYED,g=c.ERR_STREAM_NULL_VALUES,d=c.ERR_STREAM_WRITE_AFTER_END,p=c.ERR_UNKNOWN_ENCODING,y=f.errorOrDestroy;ar()(I,n);function v(){}function T(V,R,O){t=t||Tr(),V=V||{},typeof O!="boolean"&&(O=R instanceof t),this.objectMode=!!V.objectMode,O&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=s(this,V,"writableHighWaterMark",O),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)}T.prototype.getBuffer=function(){for(var R=this.bufferedRequest,O=[];R;)O.push(R),R=R.next;return O},function(){try{Object.defineProperty(T.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 T}})):P=function(R){return R instanceof this};function I(V){t=t||Tr();var R=this instanceof t;if(!R&&!P.call(I,this))return new I(V);this._writableState=new T(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 x)};function N(V,R){var O=new d;y(V,O),me.nextTick(R,O)}function j(V,R,O,q){var $;return O===null?$=new g:typeof O!="string"&&!R.objectMode&&($=new h("chunk",["string","Buffer"],O)),$?(y(V,$),me.nextTick(q,$),!1):!0}I.prototype.write=function(V,R,O){var q=this._writableState,$=!1,B=!q.objectMode&&u(V);return B&&!o.isBuffer(V)&&(V=a(V)),typeof R=="function"&&(O=R,R=null),B?R="buffer":R||(R=q.defaultEncoding),typeof O!="function"&&(O=v),q.ending?N(this,O):(B||j(this,q,V,O))&&(q.pendingcb++,$=L(this,q,B,V,R,O)),$},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 p(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,O){return!V.objectMode&&V.decodeStrings!==!1&&typeof R=="string"&&(R=o.from(R,O)),R}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function L(V,R,O,q,$,B){if(!O){var U=G(R,q,$);q!==U&&(O=!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:O,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,O,q,$,B,U){R.writelen=q,R.writecb=U,R.writing=!0,R.sync=!0,R.destroyed?R.onwrite(new A("write")):O?V._writev($,R.onwrite):V._write($,B,R.onwrite),R.sync=!1}function oe(V,R,O,q,$){--R.pendingcb,O?(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 O=V._writableState,q=O.sync,$=O.writecb;if(typeof $!="function")throw new m;if(re(O),R)oe(V,O,q,R,$);else{var B=Ee(O)||V.destroyed;!B&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&ce(V,O),q?me.nextTick(fe,V,O,B,$):fe(V,O,B,$)}}function fe(V,R,O,q){O||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 O=R.bufferedRequest;if(V._writev&&O&&O.next){var q=R.bufferedRequestCount,$=new Array(q),B=R.corkedRequestsFree;B.entry=O;for(var U=0,Y=!0;O;)$[U]=O,O.isBuf||(Y=!1),O=O.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(;O;){var se=O.chunk,pe=O.encoding,le=O.callback,de=R.objectMode?1:se.length;if(D(V,R,!1,de,se,pe,le),O=O.next,R.bufferedRequestCount--,R.writing)break}O===null&&(R.lastBufferedRequest=null)}R.bufferedRequest=O,R.bufferProcessing=!1}I.prototype._write=function(V,R,O){O(new b("_write()"))},I.prototype._writev=null,I.prototype.end=function(V,R,O){var q=this._writableState;return typeof V=="function"?(O=V,V=null,R=null):typeof R=="function"&&(O=R,R=null),V!=null&&this.write(V,R),q.corked&&(q.corked=1,this.uncork()),q.ending||ee(this,q,O),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(O){R.pendingcb--,O&&y(V,O),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 O=Ee(R);if(O&&(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 O}function ee(V,R,O){R.ending=!0,Q(V,R),O&&(R.finished?me.nextTick(O):V.once("finish",O)),R.ended=!0,V.writable=!1}function ue(V,R,O){var q=V.entry;for(V.entry=null;q;){var $=q.callback;R.pendingcb--,$(O),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)},Vo}var Wo,rf;function Tr(){if(rf)return Wo;rf=1;var e=Object.keys||function(l){var s=[];for(var c in l)s.push(c);return s};Wo=a;var t=ff(),r=tf();ar()(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)}}),Wo}var Go={},Pn={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var nf;function Ey(){return nf||(nf=1,function(e,t){var r=On(),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)}}(Pn,Pn.exports)),Pn.exports}var of;function Ko(){if(of)return Go;of=1;var e=Ey().Buffer,t=e.isEncoding||function(g){switch(g=""+g,g&&g.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(g){if(!g)return"utf8";for(var d;;)switch(g){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 g;default:if(d)return;g=(""+g).toLowerCase(),d=!0}}function n(g){var d=r(g);if(typeof d!="string"&&(e.isEncoding===t||!t(g)))throw new Error("Unknown encoding: "+g);return d||g}Go.StringDecoder=o;function o(g){this.encoding=n(g);var d;switch(this.encoding){case"utf16le":this.text=c,this.end=h,d=4;break;case"utf8":this.fillLast=f,d=4;break;case"base64":this.text=b,this.end=m,d=3;break;default:this.write=x,this.end=A;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(d)}o.prototype.write=function(g){if(g.length===0)return"";var d,p;if(this.lastNeed){if(d=this.fillLast(g),d===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<g.length?d?d+this.text(g,p):this.text(g,p):d||""},o.prototype.end=s,o.prototype.text=l,o.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function i(g){return g<=127?0:g>>5===6?2:g>>4===14?3:g>>3===30?4:g>>6===2?-1:-2}function a(g,d,p){var y=d.length-1;if(y<p)return 0;var v=i(d[y]);return v>=0?(v>0&&(g.lastNeed=v-1),v):--y<p||v===-2?0:(v=i(d[y]),v>=0?(v>0&&(g.lastNeed=v-2),v):--y<p||v===-2?0:(v=i(d[y]),v>=0?(v>0&&(v===2?v=0:g.lastNeed=v-3),v):0))}function u(g,d,p){if((d[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&d.length>1){if((d[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&d.length>2&&(d[2]&192)!==128)return g.lastNeed=2,"�"}}function f(g){var d=this.lastTotal-this.lastNeed,p=u(this,g);if(p!==void 0)return p;if(this.lastNeed<=g.length)return g.copy(this.lastChar,d,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,d,0,g.length),this.lastNeed-=g.length}function l(g,d){var p=a(this,g,d);if(!this.lastNeed)return g.toString("utf8",d);this.lastTotal=p;var y=g.length-(p-this.lastNeed);return g.copy(this.lastChar,0,y),g.toString("utf8",d,y)}function s(g){var d=g&&g.length?this.write(g):"";return this.lastNeed?d+"�":d}function c(g,d){if((g.length-d)%2===0){var p=g.toString("utf16le",d);if(p){var y=p.charCodeAt(p.length-1);if(y>=55296&&y<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],p.slice(0,-1)}return p}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",d,g.length-1)}function h(g){var d=g&&g.length?this.write(g):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return d+this.lastChar.toString("utf16le",0,p)}return d}function b(g,d){var p=(g.length-d)%3;return p===0?g.toString("base64",d):(this.lastNeed=3-p,this.lastTotal=3,p===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",d,g.length-p))}function m(g){var d=g&&g.length?this.write(g):"";return this.lastNeed?d+this.lastChar.toString("base64",0,3-this.lastNeed):d}function x(g){return g.toString(this.encoding)}function A(g){return g&&g.length?this.write(g):""}return Go}var zo,sf;function Xo(){if(sf)return zo;sf=1;var e=Ar().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||h()},c=i._writableState&&i._writableState.finished,h=function(){l=!1,c=!0,f||u.call(i)},b=i._readableState&&i._readableState.endEmitted,m=function(){f=!1,b=!0,l||u.call(i)},x=function(p){u.call(i,p)},A=function(){var p;if(f&&!b)return(!i._readableState||!i._readableState.ended)&&(p=new e),u.call(i,p);if(l&&!c)return(!i._writableState||!i._writableState.ended)&&(p=new e),u.call(i,p)},g=function(){i.req.on("finish",h)};return n(i)?(i.on("complete",h),i.on("abort",A),i.req?g():i.on("request",g)):l&&!i._writableState&&(i.on("end",s),i.on("close",s)),i.on("end",m),i.on("finish",h),a.error!==!1&&i.on("error",x),i.on("close",A),function(){i.removeListener("complete",h),i.removeListener("abort",A),i.removeListener("request",g),i.req&&i.req.removeListener("finish",h),i.removeListener("end",s),i.removeListener("close",s),i.removeListener("finish",h),i.removeListener("end",m),i.removeListener("error",x),i.removeListener("close",A)}}return zo=o,zo}var Yo,af;function xy(){if(af)return Yo;af=1;var e;function t(p,y,v){return y=r(y),y in p?Object.defineProperty(p,y,{value:v,enumerable:!0,configurable:!0,writable:!0}):p[y]=v,p}function r(p){var y=n(p,"string");return typeof y=="symbol"?y:String(y)}function n(p,y){if(typeof p!="object"||p===null)return p;var v=p[Symbol.toPrimitive];if(v!==void 0){var T=v.call(p,y);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(p)}var o=Xo(),i=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),s=Symbol("handlePromise"),c=Symbol("stream");function h(p,y){return{value:p,done:y}}function b(p){var y=p[i];if(y!==null){var v=p[c].read();v!==null&&(p[l]=null,p[i]=null,p[a]=null,y(h(v,!1)))}}function m(p){me.nextTick(b,p)}function x(p,y){return function(v,T){p.then(function(){if(y[f]){v(h(void 0,!0));return}y[s](v,T)},T)}}var A=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((e={get stream(){return this[c]},next:function(){var y=this,v=this[u];if(v!==null)return Promise.reject(v);if(this[f])return Promise.resolve(h(void 0,!0));if(this[c].destroyed)return new Promise(function(N,j){me.nextTick(function(){y[u]?j(y[u]):N(h(void 0,!0))})});var T=this[l],P;if(T)P=new Promise(x(T,this));else{var I=this[c].read();if(I!==null)return Promise.resolve(h(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(v,T){y[c].destroy(null,function(P){if(P){T(P);return}v(h(void 0,!0))})})}),e),A),d=function(y){var v,T=Object.create(g,(v={},t(v,c,{value:y,writable:!0}),t(v,i,{value:null,writable:!0}),t(v,a,{value:null,writable:!0}),t(v,u,{value:null,writable:!0}),t(v,f,{value:y._readableState.endEmitted,writable:!0}),t(v,s,{value:function(I,N){var j=T[c].read();j?(T[l]=null,T[i]=null,T[a]=null,I(h(j,!1))):(T[i]=I,T[a]=N)},writable:!0}),v));return T[l]=null,o(y,function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=T[a];I!==null&&(T[l]=null,T[i]=null,T[a]=null,I(P)),T[u]=P;return}var N=T[i];N!==null&&(T[l]=null,T[i]=null,T[a]=null,N(h(void 0,!0))),T[f]=!0}),y.on("readable",m.bind(null,T)),T};return Yo=d,Yo}var Jo,uf;function Ay(){return uf||(uf=1,Jo=function(){throw new Error("Readable.from is not available in the browser")}),Jo}var Zo,lf;function ff(){if(lf)return Zo;lf=1,Zo=N;var e;N.ReadableState=I,Pi().EventEmitter;var t=function(U,Y){return U.listeners(Y).length},r=Lu(),n=On().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=Gl(),f;u&&u.debuglog?f=u.debuglog("stream"):f=function(){};var l=wy(),s=Xl(),c=Zl(),h=c.getHighWaterMark,b=Ar().codes,m=b.ERR_INVALID_ARG_TYPE,x=b.ERR_STREAM_PUSH_AFTER_EOF,A=b.ERR_METHOD_NOT_IMPLEMENTED,g=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,d,p,y;ar()(N,r);var v=s.errorOrDestroy,T=["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||Tr(),B=B||{},typeof Y!="boolean"&&(Y=U instanceof e),this.objectMode=!!B.objectMode,Y&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=h(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&&(d||(d=Ko().StringDecoder),this.decoder=new d(B.encoding),this.encoding=B.encoding)}function N(B){if(e=e||Tr(),!(this instanceof N))return new N(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(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(U){this._readableState&&(this._readableState.destroyed=U)}}),N.prototype.destroy=s.destroy,N.prototype._undestroy=s.undestroy,N.prototype._destroy=function(B,U){U(B)},N.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)},N.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)v(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?v(B,new g):G(B,le,U,!0);else if(le.ended)v(B,new x);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}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(B){d||(d=Ko().StringDecoder);var U=new d(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))}N.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?O(this):fe(this),null;if(B=re(B,U),B===0&&U.ended)return U.length===0&&O(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&&O(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}N.prototype._read=function(B){v(this,new A("_read()"))},N.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:_t;se.endEmitted?me.nextTick(le):Y.once("end",le),B.on("unpipe",de);function de(Ot,it){f("onunpipe"),Ot===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",_t),Y.removeListener("data",Ne),rt=!0,se.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&te()}Y.on("data",Ne);function Ne(Ot){f("ondata");var it=B.write(Ot);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(Ot){f("onerror",Ot),_t(),B.removeListener("error",Le),t(B,"error")===0&&v(B,Ot)}P(B,"error",Le);function ft(){B.removeListener("finish",st),_t()}B.once("close",ft);function st(){f("onfinish"),B.removeListener("close",ft),_t()}B.once("finish",st);function _t(){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))}}N.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)},N.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},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(B,U){var Y=r.prototype.removeListener.call(this,B,U);return B==="readable"&&me.nextTick(K,this),Y},N.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)}N.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)}N.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;);}N.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<T.length;le++)B.on(T[le],this.emit.bind(this,T[le]));return this._read=function(de){f("wrapped _read",de),se&&(se=!1,B.resume())},this},typeof Symbol=="function"&&(N.prototype[Symbol.asyncIterator]=function(){return p===void 0&&(p=xy()),p(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(U){this._readableState&&(this._readableState.flowing=U)}}),N._fromList=R,Object.defineProperty(N.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 O(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"&&(N.from=function(B,U){return y===void 0&&(y=Ay()),y(N,B,U)});function $(B,U){for(var Y=0,se=B.length;Y<se;Y++)if(B[Y]===U)return Y;return-1}return Zo}var Qo,cf;function hf(){if(cf)return Qo;cf=1,Qo=u;var e=Ar().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=Tr();ar()(u,i);function a(s,c){var h=this._transformState;h.transforming=!1;var b=h.writecb;if(b===null)return this.emit("error",new r);h.writechunk=null,h.writecb=null,c!=null&&this.push(c),b(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,h){l(s,c,h)}):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,h){h(new t("_transform()"))},u.prototype._write=function(s,c,h){var b=this._transformState;if(b.writecb=h,b.writechunk=s,b.writeencoding=c,!b.transforming){var m=this._readableState;(b.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(h){c(h)})};function l(s,c,h){if(c)return s.emit("error",c);if(h!=null&&s.push(h),s._writableState.length)throw new o;if(s._transformState.transforming)throw new n;return s.push(null)}return Qo}var es,df;function Ty(){if(df)return es;df=1,es=t;var e=hf();ar()(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)},es}var ts,pf;function Sy(){if(pf)return ts;pf=1;var e;function t(h){var b=!1;return function(){b||(b=!0,h.apply(void 0,arguments))}}var r=Ar().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function a(h){return h.setHeader&&typeof h.abort=="function"}function u(h,b,m,x){x=t(x);var A=!1;h.on("close",function(){A=!0}),e===void 0&&(e=Xo()),e(h,{readable:b,writable:m},function(d){if(d)return x(d);A=!0,x()});var g=!1;return function(d){if(!A&&!g){if(g=!0,a(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();x(d||new o("pipe"))}}}function f(h){h()}function l(h,b){return h.pipe(b)}function s(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function c(){for(var h=arguments.length,b=new Array(h),m=0;m<h;m++)b[m]=arguments[m];var x=s(b);if(Array.isArray(b[0])&&(b=b[0]),b.length<2)throw new n("streams");var A,g=b.map(function(d,p){var y=p<b.length-1,v=p>0;return u(d,y,v,function(T){A||(A=T),T&&g.forEach(f),!y&&(g.forEach(f),x(A))})});return b.reduce(l)}return ts=c,ts}var rs,gf;function _y(){if(gf)return rs;gf=1,rs=r;var e=Pi().EventEmitter,t=ar();t(r,e),r.Readable=ff(),r.Writable=tf(),r.Duplex=Tr(),r.Transform=hf(),r.PassThrough=Ty(),r.finished=Xo(),r.pipeline=Sy(),r.Stream=r;function r(){e.call(this)}return r.prototype.pipe=function(n,o){var i=this;function a(b){n.writable&&n.write(b)===!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(b){if(h(),e.listenerCount(this,"error")===0)throw b}i.on("error",c),n.on("error",c);function h(){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",h),i.removeListener("close",h),n.removeListener("close",h)}return i.on("end",h),i.on("close",h),n.on("close",h),n.emit("pipe",i),n},rs}var yf;function Ny(){return yf||(yf=1,function(e){(function(t){t.parser=function(R,O){return new n(R,O)},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,O){if(!(this instanceof n))return new n(R,O);var q=this;i(q),q.q=q.c="",q.bufferCheckPosition=t.MAX_BUFFER_LENGTH,q.opt=O||{},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=N.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(x)),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 O(){}O.prototype=R;var q=new O;return q}),Object.keys||(Object.keys=function(R){var O=[];for(var q in R)R.hasOwnProperty(q)&&O.push(q);return O});function o(R){for(var O=Math.max(t.MAX_BUFFER_LENGTH,10),q=0,$=0,B=r.length;$<B;$++){var U=R[r[$]].length;if(U>O)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 O=0,q=r.length;O<q;O++)R[r[O]]=""}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=_y().Stream}catch{u=function(){}}u||(u=function(){});var f=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function l(R,O){return new s(R,O)}function s(R,O){if(!(this instanceof s))return new s(R,O);u.apply(this),this._parser=new n(R,O),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 yr=="function"&&typeof yr.isBuffer=="function"&&yr.isBuffer(R)){if(!this._decoder){var O=Ko().StringDecoder;this._decoder=new O("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,O){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,O)};var c="[CDATA[",h="DOCTYPE",b="http://www.w3.org/XML/1998/namespace",m="http://www.w3.org/2000/xmlns/",x={xml:b,xmlns:m},A=/[:_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-]/,d=/[#:_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-]/;function y(R){return R===" "||R===`
26
- `||R==="\r"||R===" "}function v(R){return R==='"'||R==="'"}function T(R){return R===">"||y(R)}function P(R,O){return R.test(O)}function I(R,O){return!P(R,O)}var N=0;t.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},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 O=t.ENTITIES[R],q=typeof O=="number"?String.fromCharCode(O):O;t.ENTITIES[R]=q});for(var j in t.STATE)t.STATE[t.STATE[j]]=j;N=t.STATE;function G(R,O,q){R[O]&&R[O](q)}function L(R,O,q){R.textNode&&D(R),G(R,O,q)}function D(R){R.textNode=oe(R.opt,R.textNode),R.textNode&&G(R,"ontext",R.textNode),R.textNode=""}function oe(R,O){return R.trim&&(O=O.trim()),R.normalize&&(O=O.replace(/\s+/g," ")),O}function re(R,O){return D(R),R.trackPosition&&(O+=`
27
- Line: `+R.line+`
28
- Column: `+R.column+`
29
- Char: `+R.c),O=new Error(O),R.error=O,G(R,"onerror",O),R}function he(R){return R.sawRoot&&!R.closedRoot&&fe(R,"Unclosed root tag"),R.state!==N.BEGIN&&R.state!==N.BEGIN_WHITESPACE&&R.state!==N.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,O){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&re(R,O)}function ge(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var O=R.tags[R.tags.length-1]||R,q=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(q.ns=O.ns),R.attribList.length=0,L(R,"onopentagstart",q)}function ce(R,O){var q=R.indexOf(":"),$=q<0?["",R]:R.split(":"),B=$[0],U=$[1];return O&&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 O=ce(R.attribName,!0),q=O.prefix,$=O.local;if(q==="xmlns")if($==="xml"&&R.attribValue!==b)fe(R,"xml: prefix must be bound to "+b+`
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,O){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(Ne){L(R,"onopennamespace",{prefix:Ne,uri:q.ns[Ne]})});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=!!O,R.sawRoot=!0,R.tags.push(R.tag),L(R,"onopentag",R.tag),O||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=N.SCRIPT:R.state=N.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=N.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=N.SCRIPT;return}L(R,"onscript",R.script),R.script=""}var O=R.tags.length,q=R.tagName;R.strict||(q=q[R.looseCase]());for(var $=q;O--;){var B=R.tags[O];if(B.name!==$)fe(R,"Unexpected close tag");else break}if(O<0){fe(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=N.TEXT;return}R.tagName=q;for(var U=R.tags.length;U-- >O;){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})})}O===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=N.TEXT}function Q(R){var O=R.entity,q=O.toLowerCase(),$,B="";return R.ENTITIES[O]?R.ENTITIES[O]:R.ENTITIES[q]?R.ENTITIES[q]:(O=q,O.charAt(0)==="#"&&(O.charAt(1)==="x"?(O=O.slice(2),$=parseInt(O,16),B=$.toString(16)):(O=O.slice(1),$=parseInt(O,10),B=$.toString(10))),O=O.replace(/^0+/,""),isNaN($)||B.toLowerCase()!==O?(fe(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint($))}function ee(R,O){O==="<"?(R.state=N.OPEN_WAKA,R.startTagPosition=R.position):y(O)||(fe(R,"Non-whitespace before first tag."),R.textNode=O,R.state=N.TEXT)}function ue(R,O){var q="";return O<R.length&&(q=R.charAt(O)),q}function V(R){var O=this;if(this.error)throw this.error;if(O.closed)return re(O,"Cannot write after close. Assign an onready handler.");if(R===null)return he(O);typeof R=="object"&&(R=R.toString());for(var q=0,$="";$=ue(R,q++),O.c=$,!!$;)switch(O.trackPosition&&(O.position++,$===`
32
- `?(O.line++,O.column=0):O.column++),O.state){case N.BEGIN:if(O.state=N.BEGIN_WHITESPACE,$==="\uFEFF")continue;ee(O,$);continue;case N.BEGIN_WHITESPACE:ee(O,$);continue;case N.TEXT:if(O.sawRoot&&!O.closedRoot){for(var B=q-1;$&&$!=="<"&&$!=="&";)$=ue(R,q++),$&&O.trackPosition&&(O.position++,$===`
33
- `?(O.line++,O.column=0):O.column++);O.textNode+=R.substring(B,q-1)}$==="<"&&!(O.sawRoot&&O.closedRoot&&!O.strict)?(O.state=N.OPEN_WAKA,O.startTagPosition=O.position):(!y($)&&(!O.sawRoot||O.closedRoot)&&fe(O,"Text data outside of root node."),$==="&"?O.state=N.TEXT_ENTITY:O.textNode+=$);continue;case N.SCRIPT:$==="<"?O.state=N.SCRIPT_ENDING:O.script+=$;continue;case N.SCRIPT_ENDING:$==="/"?O.state=N.CLOSE_TAG:(O.script+="<"+$,O.state=N.SCRIPT);continue;case N.OPEN_WAKA:if($==="!")O.state=N.SGML_DECL,O.sgmlDecl="";else if(!y($))if(P(A,$))O.state=N.OPEN_TAG,O.tagName=$;else if($==="/")O.state=N.CLOSE_TAG,O.tagName="";else if($==="?")O.state=N.PROC_INST,O.procInstName=O.procInstBody="";else{if(fe(O,"Unencoded <"),O.startTagPosition+1<O.position){var U=O.position-O.startTagPosition;$=new Array(U).join(" ")+$}O.textNode+="<"+$,O.state=N.TEXT}continue;case N.SGML_DECL:if(O.sgmlDecl+$==="--"){O.state=N.COMMENT,O.comment="",O.sgmlDecl="";continue}O.doctype&&O.doctype!==!0&&O.sgmlDecl?(O.state=N.DOCTYPE_DTD,O.doctype+="<!"+O.sgmlDecl+$,O.sgmlDecl=""):(O.sgmlDecl+$).toUpperCase()===c?(L(O,"onopencdata"),O.state=N.CDATA,O.sgmlDecl="",O.cdata=""):(O.sgmlDecl+$).toUpperCase()===h?(O.state=N.DOCTYPE,(O.doctype||O.sawRoot)&&fe(O,"Inappropriately located doctype declaration"),O.doctype="",O.sgmlDecl=""):$===">"?(L(O,"onsgmldeclaration",O.sgmlDecl),O.sgmlDecl="",O.state=N.TEXT):(v($)&&(O.state=N.SGML_DECL_QUOTED),O.sgmlDecl+=$);continue;case N.SGML_DECL_QUOTED:$===O.q&&(O.state=N.SGML_DECL,O.q=""),O.sgmlDecl+=$;continue;case N.DOCTYPE:$===">"?(O.state=N.TEXT,L(O,"ondoctype",O.doctype),O.doctype=!0):(O.doctype+=$,$==="["?O.state=N.DOCTYPE_DTD:v($)&&(O.state=N.DOCTYPE_QUOTED,O.q=$));continue;case N.DOCTYPE_QUOTED:O.doctype+=$,$===O.q&&(O.q="",O.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:$==="]"?(O.doctype+=$,O.state=N.DOCTYPE):$==="<"?(O.state=N.OPEN_WAKA,O.startTagPosition=O.position):v($)?(O.doctype+=$,O.state=N.DOCTYPE_DTD_QUOTED,O.q=$):O.doctype+=$;continue;case N.DOCTYPE_DTD_QUOTED:O.doctype+=$,$===O.q&&(O.state=N.DOCTYPE_DTD,O.q="");continue;case N.COMMENT:$==="-"?O.state=N.COMMENT_ENDING:O.comment+=$;continue;case N.COMMENT_ENDING:$==="-"?(O.state=N.COMMENT_ENDED,O.comment=oe(O.opt,O.comment),O.comment&&L(O,"oncomment",O.comment),O.comment=""):(O.comment+="-"+$,O.state=N.COMMENT);continue;case N.COMMENT_ENDED:$!==">"?(fe(O,"Malformed comment"),O.comment+="--"+$,O.state=N.COMMENT):O.doctype&&O.doctype!==!0?O.state=N.DOCTYPE_DTD:O.state=N.TEXT;continue;case N.CDATA:$==="]"?O.state=N.CDATA_ENDING:O.cdata+=$;continue;case N.CDATA_ENDING:$==="]"?O.state=N.CDATA_ENDING_2:(O.cdata+="]"+$,O.state=N.CDATA);continue;case N.CDATA_ENDING_2:$===">"?(O.cdata&&L(O,"oncdata",O.cdata),L(O,"onclosecdata"),O.cdata="",O.state=N.TEXT):$==="]"?O.cdata+="]":(O.cdata+="]]"+$,O.state=N.CDATA);continue;case N.PROC_INST:$==="?"?O.state=N.PROC_INST_ENDING:y($)?O.state=N.PROC_INST_BODY:O.procInstName+=$;continue;case N.PROC_INST_BODY:if(!O.procInstBody&&y($))continue;$==="?"?O.state=N.PROC_INST_ENDING:O.procInstBody+=$;continue;case N.PROC_INST_ENDING:$===">"?(L(O,"onprocessinginstruction",{name:O.procInstName,body:O.procInstBody}),O.procInstName=O.procInstBody="",O.state=N.TEXT):(O.procInstBody+="?"+$,O.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:P(g,$)?O.tagName+=$:(ge(O),$===">"?be(O):$==="/"?O.state=N.OPEN_TAG_SLASH:(y($)||fe(O,"Invalid character in tag name"),O.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:$===">"?(be(O,!0),K(O)):(fe(O,"Forward-slash in opening tag not followed by >"),O.state=N.ATTRIB);continue;case N.ATTRIB:if(y($))continue;$===">"?be(O):$==="/"?O.state=N.OPEN_TAG_SLASH:P(A,$)?(O.attribName=$,O.attribValue="",O.state=N.ATTRIB_NAME):fe(O,"Invalid attribute name");continue;case N.ATTRIB_NAME:$==="="?O.state=N.ATTRIB_VALUE:$===">"?(fe(O,"Attribute without value"),O.attribValue=O.attribName,Ee(O),be(O)):y($)?O.state=N.ATTRIB_NAME_SAW_WHITE:P(g,$)?O.attribName+=$:fe(O,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if($==="=")O.state=N.ATTRIB_VALUE;else{if(y($))continue;fe(O,"Attribute without value"),O.tag.attributes[O.attribName]="",O.attribValue="",L(O,"onattribute",{name:O.attribName,value:""}),O.attribName="",$===">"?be(O):P(A,$)?(O.attribName=$,O.state=N.ATTRIB_NAME):(fe(O,"Invalid attribute name"),O.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(y($))continue;v($)?(O.q=$,O.state=N.ATTRIB_VALUE_QUOTED):(O.opt.unquotedAttributeValues||re(O,"Unquoted attribute value"),O.state=N.ATTRIB_VALUE_UNQUOTED,O.attribValue=$);continue;case N.ATTRIB_VALUE_QUOTED:if($!==O.q){$==="&"?O.state=N.ATTRIB_VALUE_ENTITY_Q:O.attribValue+=$;continue}Ee(O),O.q="",O.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:y($)?O.state=N.ATTRIB:$===">"?be(O):$==="/"?O.state=N.OPEN_TAG_SLASH:P(A,$)?(fe(O,"No whitespace between attributes"),O.attribName=$,O.attribValue="",O.state=N.ATTRIB_NAME):fe(O,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!T($)){$==="&"?O.state=N.ATTRIB_VALUE_ENTITY_U:O.attribValue+=$;continue}Ee(O),$===">"?be(O):O.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(O.tagName)$===">"?K(O):P(g,$)?O.tagName+=$:O.script?(O.script+="</"+O.tagName,O.tagName="",O.state=N.SCRIPT):(y($)||fe(O,"Invalid tagname in closing tag"),O.state=N.CLOSE_TAG_SAW_WHITE);else{if(y($))continue;I(A,$)?O.script?(O.script+="</"+$,O.state=N.SCRIPT):fe(O,"Invalid tagname in closing tag."):O.tagName=$}continue;case N.CLOSE_TAG_SAW_WHITE:if(y($))continue;$===">"?K(O):fe(O,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var Y,se;switch(O.state){case N.TEXT_ENTITY:Y=N.TEXT,se="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:Y=N.ATTRIB_VALUE_QUOTED,se="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:Y=N.ATTRIB_VALUE_UNQUOTED,se="attribValue";break}if($===";"){var pe=Q(O);O.opt.unparsedEntities&&!Object.values(t.XML_ENTITIES).includes(pe)?(O.entity="",O.state=Y,O.write(pe)):(O[se]+=pe,O.entity="",O.state=Y)}else P(O.entity.length?p:d,$)?O.entity+=$:(fe(O,"Invalid character in entity name"),O[se]+="&"+O.entity+$,O.entity="",O.state=Y);continue;default:throw new Error(O,"Unknown state: "+O.state)}return O.position>=O.bufferCheckPosition&&o(O),O}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var R=String.fromCharCode,O=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||O(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 ns,mf;function is(){return mf||(mf=1,ns={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}),ns}var os,bf;function ss(){if(bf)return os;bf=1;var e=is().isArray;return os={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}},os}var as,wf;function vf(){if(wf)return as;wf=1;var e=Ny(),t=ss(),r=is().isArray,n,o;function i(g){return n=t.copyOptions(g),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(g){var d=Number(g);if(!isNaN(d))return d;var p=g.toLowerCase();return p==="true"?!0:p==="false"?!1:g}function u(g,d){var p;if(n.compact){if(!o[n[g+"Key"]]&&(r(n.alwaysArray)?n.alwaysArray.indexOf(n[g+"Key"])!==-1:n.alwaysArray)&&(o[n[g+"Key"]]=[]),o[n[g+"Key"]]&&!r(o[n[g+"Key"]])&&(o[n[g+"Key"]]=[o[n[g+"Key"]]]),g+"Fn"in n&&typeof d=="string"&&(d=n[g+"Fn"](d,o)),g==="instruction"&&("instructionFn"in n||"instructionNameFn"in n)){for(p in d)if(d.hasOwnProperty(p))if("instructionFn"in n)d[p]=n.instructionFn(d[p],p,o);else{var y=d[p];delete d[p],d[n.instructionNameFn(p,y,o)]=y}}r(o[n[g+"Key"]])?o[n[g+"Key"]].push(d):o[n[g+"Key"]]=d}else{o[n.elementsKey]||(o[n.elementsKey]=[]);var v={};if(v[n.typeKey]=g,g==="instruction"){for(p in d)if(d.hasOwnProperty(p))break;v[n.nameKey]="instructionNameFn"in n?n.instructionNameFn(p,d,o):p,n.instructionHasAttributes?(v[n.attributesKey]=d[p][n.attributesKey],"instructionFn"in n&&(v[n.attributesKey]=n.instructionFn(v[n.attributesKey],p,o))):("instructionFn"in n&&(d[p]=n.instructionFn(d[p],p,o)),v[n.instructionKey]=d[p])}else g+"Fn"in n&&(d=n[g+"Fn"](d,o)),v[n[g+"Key"]]=d;n.addParent&&(v[n.parentKey]=o),o[n.elementsKey].push(v)}}function f(g){if("attributesFn"in n&&g&&(g=n.attributesFn(g,o)),(n.trim||"attributeValueFn"in n||"attributeNameFn"in n||n.nativeTypeAttributes)&&g){var d;for(d in g)if(g.hasOwnProperty(d)&&(n.trim&&(g[d]=g[d].trim()),n.nativeTypeAttributes&&(g[d]=a(g[d])),"attributeValueFn"in n&&(g[d]=n.attributeValueFn(g[d],d,o)),"attributeNameFn"in n)){var p=g[d];delete g[d],g[n.attributeNameFn(d,g[d],o)]=p}}return g}function l(g){var d={};if(g.body&&(g.name.toLowerCase()==="xml"||n.instructionHasAttributes)){for(var p=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,y;(y=p.exec(g.body))!==null;)d[y[1]]=y[2]||y[3]||y[4];d=f(d)}if(g.name.toLowerCase()==="xml"){if(n.ignoreDeclaration)return;o[n.declarationKey]={},Object.keys(d).length&&(o[n.declarationKey][n.attributesKey]=d),n.addParent&&(o[n.declarationKey][n.parentKey]=o)}else{if(n.ignoreInstruction)return;n.trim&&(g.body=g.body.trim());var v={};n.instructionHasAttributes&&Object.keys(d).length?(v[g.name]={},v[g.name][n.attributesKey]=d):v[g.name]=g.body,u("instruction",v)}}function s(g,d){var p;if(typeof g=="object"&&(d=g.attributes,g=g.name),d=f(d),"elementNameFn"in n&&(g=n.elementNameFn(g,o)),n.compact){if(p={},!n.ignoreAttributes&&d&&Object.keys(d).length){p[n.attributesKey]={};var y;for(y in d)d.hasOwnProperty(y)&&(p[n.attributesKey][y]=d[y])}!(g in o)&&(r(n.alwaysArray)?n.alwaysArray.indexOf(g)!==-1:n.alwaysArray)&&(o[g]=[]),o[g]&&!r(o[g])&&(o[g]=[o[g]]),r(o[g])?o[g].push(p):o[g]=p}else o[n.elementsKey]||(o[n.elementsKey]=[]),p={},p[n.typeKey]="element",p[n.nameKey]=g,!n.ignoreAttributes&&d&&Object.keys(d).length&&(p[n.attributesKey]=d),n.alwaysChildren&&(p[n.elementsKey]=[]),o[n.elementsKey].push(p);p[n.parentKey]=o,o=p}function c(g){n.ignoreText||!g.trim()&&!n.captureSpacesBetweenElements||(n.trim&&(g=g.trim()),n.nativeType&&(g=a(g)),n.sanitize&&(g=g.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u("text",g))}function h(g){n.ignoreComment||(n.trim&&(g=g.trim()),u("comment",g))}function b(g){var d=o[n.parentKey];n.addParent||delete o[n.parentKey],o=d}function m(g){n.ignoreCdata||(n.trim&&(g=g.trim()),u("cdata",g))}function x(g){n.ignoreDoctype||(g=g.replace(/^ /,""),n.trim&&(g=g.trim()),u("doctype",g))}function A(g){g.note=g}return as=function(g,d){var p=e.parser(!0,{}),y={};if(o=y,n=i(d),p.opt={strictEntities:!0},p.onopentag=s,p.ontext=c,p.oncomment=h,p.onclosetag=b,p.onerror=A,p.oncdata=m,p.ondoctype=x,p.onprocessinginstruction=l,p.write(g).close(),y[n.elementsKey]){var v=y[n.elementsKey];delete y[n.elementsKey],y[n.elementsKey]=v,delete y.text}return y},as}var us,Ef;function Oy(){if(Ef)return us;Ef=1;var e=ss(),t=vf();function r(n){var o=e.copyOptions(n);return e.ensureSpacesExists(o),o}return us=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")},us}var ls,xf;function Af(){if(xf)return ls;xf=1;var e=ss(),t=is().isArray,r,n;function o(p){var y=e.copyOptions(p);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(p,y,v){return(!v&&p.spaces?`
34
- `:"")+Array(y+1).join(p.spaces)}function a(p,y,v){if(y.ignoreAttributes)return"";"attributesFn"in y&&(p=y.attributesFn(p,n,r));var T,P,I,N,j=[];for(T in p)p.hasOwnProperty(T)&&p[T]!==null&&p[T]!==void 0&&(N=y.noQuotesForNativeAttributes&&typeof p[T]!="string"?"":'"',P=""+p[T],P=P.replace(/"/g,"&quot;"),I="attributeNameFn"in y?y.attributeNameFn(T,P,n,r):T,j.push(y.spaces&&y.indentAttributes?i(y,v+1,!1):" "),j.push(I+"="+N+("attributeValueFn"in y?y.attributeValueFn(P,T,n,r):P)+N));return p&&Object.keys(p).length&&y.spaces&&y.indentAttributes&&j.push(i(y,v,!1)),j.join("")}function u(p,y,v){return r=p,n="xml",y.ignoreDeclaration?"":"<?xml"+a(p[y.attributesKey],y,v)+"?>"}function f(p,y,v){if(y.ignoreInstruction)return"";var T;for(T in p)if(p.hasOwnProperty(T))break;var P="instructionNameFn"in y?y.instructionNameFn(T,p[T],n,r):T;if(typeof p[T]=="object")return r=p,n=P,"<?"+P+a(p[T][y.attributesKey],y,v)+"?>";var I=p[T]?p[T]:"";return"instructionFn"in y&&(I=y.instructionFn(I,T,n,r)),"<?"+P+(I?" "+I:"")+"?>"}function l(p,y){return y.ignoreComment?"":"<!--"+("commentFn"in y?y.commentFn(p,n,r):p)+"-->"}function s(p,y){return y.ignoreCdata?"":"<![CDATA["+("cdataFn"in y?y.cdataFn(p,n,r):p.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function c(p,y){return y.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in y?y.doctypeFn(p,n,r):p)+">"}function h(p,y){return y.ignoreText?"":(p=""+p,p=p.replace(/&amp;/g,"&"),p=p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in y?y.textFn(p,n,r):p)}function b(p,y){var v;if(p.elements&&p.elements.length)for(v=0;v<p.elements.length;++v)switch(p.elements[v][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(p,y,v){r=p,n=p.name;var T=[],P="elementNameFn"in y?y.elementNameFn(p.name,p):p.name;T.push("<"+P),p[y.attributesKey]&&T.push(a(p[y.attributesKey],y,v));var I=p[y.elementsKey]&&p[y.elementsKey].length||p[y.attributesKey]&&p[y.attributesKey]["xml:space"]==="preserve";return I||("fullTagEmptyElementFn"in y?I=y.fullTagEmptyElementFn(p.name,p):I=y.fullTagEmptyElement),I?(T.push(">"),p[y.elementsKey]&&p[y.elementsKey].length&&(T.push(x(p[y.elementsKey],y,v+1)),r=p,n=p.name),T.push(y.spaces&&b(p,y)?`
35
- `+Array(v+1).join(y.spaces):""),T.push("</"+P+">")):T.push("/>"),T.join("")}function x(p,y,v,T){return p.reduce(function(P,I){var N=i(y,v,T&&!P);switch(I.type){case"element":return P+N+m(I,y,v);case"comment":return P+N+l(I[y.commentKey],y);case"doctype":return P+N+c(I[y.doctypeKey],y);case"cdata":return P+(y.indentCdata?N:"")+s(I[y.cdataKey],y);case"text":return P+(y.indentText?N:"")+h(I[y.textKey],y);case"instruction":var j={};return j[I[y.nameKey]]=I[y.attributesKey]?I:I[y.instructionKey],P+(y.indentInstruction?N:"")+f(j,y,v)}},"")}function A(p,y,v){var T;for(T in p)if(p.hasOwnProperty(T))switch(T){case y.parentKey:case y.attributesKey:break;case y.textKey:if(y.indentText||v)return!0;break;case y.cdataKey:if(y.indentCdata||v)return!0;break;case y.instructionKey:if(y.indentInstruction||v)return!0;break;case y.doctypeKey:case y.commentKey:return!0;default:return!0}return!1}function g(p,y,v,T,P){r=p,n=y;var I="elementNameFn"in v?v.elementNameFn(y,p):y;if(typeof p>"u"||p===null||p==="")return"fullTagEmptyElementFn"in v&&v.fullTagEmptyElementFn(y,p)||v.fullTagEmptyElement?"<"+I+"></"+I+">":"<"+I+"/>";var N=[];if(y){if(N.push("<"+I),typeof p!="object")return N.push(">"+h(p,v)+"</"+I+">"),N.join("");p[v.attributesKey]&&N.push(a(p[v.attributesKey],v,T));var j=A(p,v,!0)||p[v.attributesKey]&&p[v.attributesKey]["xml:space"]==="preserve";if(j||("fullTagEmptyElementFn"in v?j=v.fullTagEmptyElementFn(y,p):j=v.fullTagEmptyElement),j)N.push(">");else return N.push("/>"),N.join("")}return N.push(d(p,v,T+1,!1)),r=p,n=y,y&&N.push((P?i(v,T,!1):"")+"</"+I+">"),N.join("")}function d(p,y,v,T){var P,I,N,j=[];for(I in p)if(p.hasOwnProperty(I))for(N=t(p[I])?p[I]:[p[I]],P=0;P<N.length;++P){switch(I){case y.declarationKey:j.push(u(N[P],y,v));break;case y.instructionKey:j.push((y.indentInstruction?i(y,v,T):"")+f(N[P],y,v));break;case y.attributesKey:case y.parentKey:break;case y.textKey:j.push((y.indentText?i(y,v,T):"")+h(N[P],y));break;case y.cdataKey:j.push((y.indentCdata?i(y,v,T):"")+s(N[P],y));break;case y.doctypeKey:j.push(i(y,v,T)+c(N[P],y));break;case y.commentKey:j.push(i(y,v,T)+l(N[P],y));break;default:j.push(i(y,v,T)+g(N[P],I,y,v,A(N[P],y)))}T=T&&!j.length}return j.join("")}return ls=function(p,y){y=o(y);var v=[];return r=p,n="_root_",y.compact?v.push(d(p,y,0,!0)):(p[y.declarationKey]&&v.push(u(p[y.declarationKey],y,0)),p[y.elementsKey]&&p[y.elementsKey].length&&v.push(x(p[y.elementsKey],y,0,!v.length))),v.join("")},ls}var fs,Tf;function Ry(){if(Tf)return fs;Tf=1;var e=Af();return fs=function(t,r){t instanceof yr&&(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)},fs}var cs,Sf;function Iy(){if(Sf)return cs;Sf=1;var e=vf(),t=Oy(),r=Af(),n=Ry();return cs={xml2js:e,xml2json:t,js2xml:r,json2xml:n},cs}var Py=Iy(),Fy=Ie(Py);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Cy(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Vr(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Wr(e,...t){if(!Cy(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 _f(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Vr(e.outputLen),Vr(e.blockLen)}function Fn(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 By(e,t){Wr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function Gr(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Cn(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 hs(e){return typeof e=="string"&&(e=Nf(e)),Wr(e),e}function Of(e){return typeof e=="string"&&(e=Nf(e)),Wr(e),e}function Ly(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 Rf{}function Uy(e){const t=n=>e().update(hs(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}class If extends Rf{constructor(t,r){super(),this.finished=!1,this.destroyed=!1,_f(t);const n=hs(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),Gr(i)}update(t){return Fn(this),this.iHash.update(t),this}digestInto(t){Fn(this),Wr(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 Pf=(e,t,r)=>new If(e,t).update(r).digest();Pf.create=(e,t)=>new If(e,t);function jy(e,t,r,n){_f(e);const o=Ly({dkLen:32,asyncTick:10},n),{c:i,dkLen:a,asyncTick:u}=o;if(Vr(i),Vr(a),Vr(u),i<1)throw new Error("iterations (c) should be >= 1");const f=Of(t),l=Of(r),s=new Uint8Array(a),c=Pf.create(e,f),h=c._cloneInto().update(l);return{c:i,dkLen:a,asyncTick:u,DK:s,PRF:c,PRFSalt:h}}function ky(e,t,r,n,o){return e.destroy(),t.destroy(),n&&n.destroy(),Gr(o),r}function My(e,t,r,n){const{c:o,dkLen:i,DK:a,PRF:u,PRFSalt:f}=jy(e,t,r,n);let l;const s=new Uint8Array(4),c=Cn(s),h=new Uint8Array(u.outputLen);for(let b=1,m=0;m<i;b++,m+=u.outputLen){const x=a.subarray(m,m+u.outputLen);c.setInt32(0,b,!1),(l=f._cloneInto(l)).update(s).digestInto(h),x.set(h.subarray(0,x.length));for(let A=1;A<o;A++){u._cloneInto(l).update(h).digestInto(h);for(let g=0;g<x.length;g++)x[g]^=h[g]}}return ky(u,f,a,l,h)}function Dy(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 $y extends Rf{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=Cn(this.buffer)}update(t){Fn(this),t=hs(t),Wr(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=Cn(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){Fn(this),By(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:a}=this;r[a++]=128,Gr(this.buffer.subarray(a)),this.padOffset>o-a&&(this.process(n,0),a=0);for(let c=a;c<o;c++)r[c]=0;Dy(n,o-8,BigInt(this.length*8),i),this.process(n,0);const u=Cn(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]),Bn=BigInt(2**32-1),Ff=BigInt(32);function qy(e,t=!1){return t?{h:Number(e&Bn),l:Number(e>>Ff&Bn)}:{h:Number(e>>Ff&Bn)|0,l:Number(e&Bn)|0}}function Hy(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}=qy(e[i],t);[n[i],o[i]]=[a,u]}return[n,o]}const Cf=(e,t,r)=>e>>>r,Bf=(e,t,r)=>e<<32-r|t>>>r,Sr=(e,t,r)=>e>>>r|t<<32-r,_r=(e,t,r)=>e<<32-r|t>>>r,Ln=(e,t,r)=>e<<64-r|t>>>r-32,Un=(e,t,r)=>e>>>r-32|t<<64-r;function Mt(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Vy=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Wy=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Gy=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Ky=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,zy=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Xy=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,Lf=Hy(["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))),Yy=Lf[0],Jy=Lf[1],Wt=new Uint32Array(80),Gt=new Uint32Array(80);class Zy extends $y{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:h,Gh:b,Gl:m,Hh:x,Hl:A}=this;return[t,r,n,o,i,a,u,f,l,s,c,h,b,m,x,A]}set(t,r,n,o,i,a,u,f,l,s,c,h,b,m,x,A){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=h|0,this.Gh=b|0,this.Gl=m|0,this.Hh=x|0,this.Hl=A|0}process(t,r){for(let p=0;p<16;p++,r+=4)Wt[p]=t.getUint32(r),Gt[p]=t.getUint32(r+=4);for(let p=16;p<80;p++){const y=Wt[p-15]|0,v=Gt[p-15]|0,T=Sr(y,v,1)^Sr(y,v,8)^Cf(y,v,7),P=_r(y,v,1)^_r(y,v,8)^Bf(y,v,7),I=Wt[p-2]|0,N=Gt[p-2]|0,j=Sr(I,N,19)^Ln(I,N,61)^Cf(I,N,6),G=_r(I,N,19)^Un(I,N,61)^Bf(I,N,6),L=Gy(P,G,Gt[p-7],Gt[p-16]),D=Ky(L,T,j,Wt[p-7],Wt[p-16]);Wt[p]=D|0,Gt[p]=L|0}let{Ah:n,Al:o,Bh:i,Bl:a,Ch:u,Cl:f,Dh:l,Dl:s,Eh:c,El:h,Fh:b,Fl:m,Gh:x,Gl:A,Hh:g,Hl:d}=this;for(let p=0;p<80;p++){const y=Sr(c,h,14)^Sr(c,h,18)^Ln(c,h,41),v=_r(c,h,14)^_r(c,h,18)^Un(c,h,41),T=c&b^~c&x,P=h&m^~h&A,I=zy(d,v,P,Jy[p],Gt[p]),N=Xy(I,g,y,T,Yy[p],Wt[p]),j=I|0,G=Sr(n,o,28)^Ln(n,o,34)^Ln(n,o,39),L=_r(n,o,28)^Un(n,o,34)^Un(n,o,39),D=n&i^n&u^i&u,oe=o&a^o&f^a&f;g=x|0,d=A|0,x=b|0,A=m|0,b=c|0,m=h|0,{h:c,l:h}=Mt(l|0,s|0,N|0,j|0),l=u|0,s=f|0,u=i|0,f=a|0,i=n|0,a=o|0;const re=Vy(j,L,oe);n=Wy(re,N,G,D),o=re|0}({h:n,l:o}=Mt(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:a}=Mt(this.Bh|0,this.Bl|0,i|0,a|0),{h:u,l:f}=Mt(this.Ch|0,this.Cl|0,u|0,f|0),{h:l,l:s}=Mt(this.Dh|0,this.Dl|0,l|0,s|0),{h:c,l:h}=Mt(this.Eh|0,this.El|0,c|0,h|0),{h:b,l:m}=Mt(this.Fh|0,this.Fl|0,b|0,m|0),{h:x,l:A}=Mt(this.Gh|0,this.Gl|0,x|0,A|0),{h:g,l:d}=Mt(this.Hh|0,this.Hl|0,g|0,d|0),this.set(n,o,i,a,u,f,l,s,c,h,b,m,x,A,g,d)}roundClean(){Gr(Wt,Gt)}destroy(){Gr(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Qy=Uy(()=>new Zy),em=(e,t,r,n)=>yr.from(My(Qy,e,t,{c:r,dkLen:n}));class tm{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=Fy.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 em(t,r,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const rm=(e,t)=>{const r=new URL(e);r.pathname=[...r.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const n=r.href,o=k0(n,t),i=new tm({baseURI:e,axiosClient:t});return{getCapabilities:()=>o.getCapabilities(),signUrl:(a,u)=>i.signUrl(a,u)}},Dt=(e,{fileId:t,path:r,name:n})=>{if(r!==void 0)return Se(e.webDavPath,r);if(t!==void 0){if(Oi(e))throw new Error("public spaces need a path provided");return Se("spaces",t,n||"")}return e.webDavPath},nm=(e,t)=>({copyFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:f},{overwrite:l,...s}={}){const c=Dt(r,{fileId:o,path:n}),h=Dt(i,{fileId:u,path:a,name:f});return e.copy(c,h,{overwrite:l||!1,...s})}}),im=(e,t,r)=>({async createFolder(n,{path:o,parentFolderId:i,folderName:a,fetchFolder:u=!0,...f}){const l=Dt(n,{fileId:i,path:o,name:a});if(await e.mkcol(l),u)return t.getFileInfo(n,{path:o},f)}}),om=(e,{axiosClient:t})=>({async getFileContents(r,{fileId:n,path:o},{responseType:i="text",noCache:a=!0,headers:u,...f}={}){try{const l=Dt(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 Ga(s,c,c.status)}}}),sm=(e,t)=>({async getFileInfo(r,n,o){return(await e.listFiles(r,n,{depth:0,...o})).resource}}),am=(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="",...h}){const b=a==="inline";let{downloadURL:m}=i,x=!0;if(!m&&!b&&(m=l?e.getFileUrl(Se("meta",i.fileId,"v",l)):e.getFileUrl(i.webDavPath),c&&s&&await r.head(m),u&&c?m=await rm(n,r).signUrl(m,c):x=!1),!x||b){const A=await t.getFileContents(o,i,{responseType:"blob",...h});m=URL.createObjectURL(A.body)}return m},revokeUrl:o=>{o&&o.startsWith("blob:")&&URL.revokeObjectURL(o)}}),um=(e,t)=>({getPublicFileUrl(r,n){return e.getFileUrl(Se("public-files",n))}}),lm=(e,t,r)=>({async listFiles(n,{path:o,fileId:i}={},{depth:a=1,davProperties:u,isTrash:f=!1,...l}={}){let s;if(Oi(n)){s=await e.propfind(Se(n.webDavPath,o),{depth:a,properties:u||ir.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 h=n.driveAlias.startsWith("ocm/")?"ocm":"public-link";if((!o||o==="/")&&a>0&&h==="ocm"&&s[0].props[ae.PublicLinkItemType]==="file"&&(s=[{basename:n.fileId,type:"directory",filename:"",props:{}},...s]),!o){const[m,...x]=s;return{resource:U0({...m,id:n.id,driveAlias:n.driveAlias,webDavPath:n.webDavPath,publicLinkType:h}),children:x.map(A=>Er(A,e.extraProps))}}const b=s.map(m=>Er(m,e.extraProps));return{resource:b[0],children:b.slice(1)}}const c=async()=>{const h=await t.getPathForFileId(i);return this.listFiles(n,{path:h},{depth:a,davProperties:u})};try{let h="";if(f?h=Ri(n.id):h=Dt(n,{fileId:i,path:o}),s=await e.propfind(h,{depth:a,properties:u||ir.Default,...l}),f)return{resource:Er(s[0],e.extraProps),children:s.slice(1).map(B0)};const b=s.map(x=>Er(x,e.extraProps)),m=i===n.id;return i&&!m&&i!==b[0].fileId?c():{resource:b[0],children:b.slice(1)}}catch(h){if(h.statusCode===404&&i)return c();throw h}}}),fm=(e,t)=>({moveFiles(r,{path:n,fileId:o},i,{path:a,parentFolderId:u,name:f},{overwrite:l,...s}={}){const c=Dt(r,{fileId:o,path:n}),h=Dt(i,{fileId:u,path:a,name:f});return e.move(c,h,{overwrite:l||!1,...s})}}),cm=(e,t,r)=>({async putFileContents(n,{fileName:o,path:i,parentFolderId:a,content:u="",previousEntityTag:f="",overwrite:l,onUploadProgress:s=null,...c}){const h=Dt(n,{fileId:a,name:o,path:i}),{result:b}=await e.put(h,u,{previousEntityTag:f,overwrite:l,onUploadProgress:s,...c});return t.getFileInfo(n,{fileId:b.headers.get("Oc-Fileid"),path:i})}}),hm=(e,t)=>({deleteFile(r,{path:n,...o}){return e.delete(Se(r.webDavPath,n),o)}}),dm=(e,t)=>({restoreFile(r,{id:n},{path:o},{overwrite:i,...a}={}){if(Oi(r))return;const u=Se(r.webDavPath,o);return e.move(Se(r.webDavTrashPath,n),u,{overwrite:i,...a})}}),pm=(e,t)=>({restoreFileVersion(r,{parentFolderId:n,name:o,path:i},a,u={}){const f=Dt(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)}}),gm=(e,t)=>({clearTrashBin(r,{id:n,...o}={}){let i=Ri(r.id);return n&&(i=Se(i,n)),e.delete(i,o)}}),ym=(e,t)=>({async search(r,{davProperties:n=ir.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=>({...Er(l,e.extraProps),highlights:l.props[ae.Highlights]||""})),totalResults:u?parseInt(u==null?void 0:u.split("/")[1]):null}}}),mm=(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 bm={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,h=a.indexOf(o),b=a.indexOf(i,h+1),m=h;if(h>=0&&b>0){for(u=[],l=a.length;m>=0&&!c;)m==h?(u.push(m),h=a.indexOf(o,m+1)):u.length==1?c=[u.pop(),b]:((f=u.pop())<l&&(l=f,s=b),b=a.indexOf(i,m+1)),m=h<b&&h>=0?h:b;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 Lt=="object"&&Lt);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 h,b,m,x,A=c.length%3,g="",d=-1,p=c.length-A;++d<p;)h=c.charCodeAt(d)<<16,b=c.charCodeAt(++d)<<8,m=c.charCodeAt(++d),g+=f.charAt((x=h+b+m)>>18&63)+f.charAt(x>>12&63)+f.charAt(x>>6&63)+f.charAt(63&x);return A==2?(h=c.charCodeAt(d)<<8,b=c.charCodeAt(++d),g+=f.charAt((x=h+b)>>10)+f.charAt(x>>4&63)+f.charAt(x<<2&63)+"="):A==1&&(x=c.charCodeAt(d),g+=f.charAt(x>>2)+f.charAt(x<<4&63)+"=="),g},decode:function(c){var h=(c=String(c).replace(l,"")).length;h%4==0&&(h=(c=c.replace(/==?$/,"")).length),(h%4==1||/[^+a-zA-Z0-9/]/.test(c))&&u("Invalid character: the string to be decoded is not correctly encoded.");for(var b,m,x=0,A="",g=-1;++g<h;)m=f.indexOf(c.charAt(g)),b=x%4?64*b+m:m,x++%4&&(A+=String.fromCharCode(255&b>>(-2*x&6)));return A},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(d){return d===" "||d===" "||d===`
36
- `||d==="\r"}function a(d,p){const y=p;for(;p<d.length;p++)if(!(d[p]!="?"&&d[p]!=" ")){const v=d.substr(y,p-y);if(p>5&&v==="xml")return m("InvalidXml","XML declaration allowed only at the start of the document.",A(d,p));if(d[p]=="?"&&d[p+1]==">"){p++;break}}return p}function u(d,p){if(d.length>p+5&&d[p+1]==="-"&&d[p+2]==="-"){for(p+=3;p<d.length;p++)if(d[p]==="-"&&d[p+1]==="-"&&d[p+2]===">"){p+=2;break}}else if(d.length>p+8&&d[p+1]==="D"&&d[p+2]==="O"&&d[p+3]==="C"&&d[p+4]==="T"&&d[p+5]==="Y"&&d[p+6]==="P"&&d[p+7]==="E"){let y=1;for(p+=8;p<d.length;p++)if(d[p]==="<")y++;else if(d[p]===">"&&(y--,y===0))break}else if(d.length>p+9&&d[p+1]==="["&&d[p+2]==="C"&&d[p+3]==="D"&&d[p+4]==="A"&&d[p+5]==="T"&&d[p+6]==="A"&&d[p+7]==="["){for(p+=8;p<d.length;p++)if(d[p]==="]"&&d[p+1]==="]"&&d[p+2]===">"){p+=2;break}}return p}t.validate=function(d,p){p=Object.assign({},o,p);const y=[];let v=!1,T=!1;d[0]==="\uFEFF"&&(d=d.substr(1));for(let I=0;I<d.length;I++)if(d[I]==="<"&&d[I+1]==="?"){if(I+=2,I=a(d,I),I.err)return I}else{if(d[I]!=="<"){if(i(d[I]))continue;return m("InvalidChar","char '"+d[I]+"' is not expected.",A(d,I))}{let N=I;if(I++,d[I]==="!"){I=u(d,I);continue}{let j=!1;d[I]==="/"&&(j=!0,I++);let G="";for(;I<d.length&&d[I]!==">"&&d[I]!==" "&&d[I]!==" "&&d[I]!==`
37
- `&&d[I]!=="\r";I++)G+=d[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,A(d,I))}const L=s(d,I);if(L===!1)return m("InvalidAttr","Attributes for '"+G+"' have open quote.",A(d,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=h(D,p);if(re!==!0)return m(re.err.code,re.err.msg,A(d,oe+re.err.line));v=!0}else if(j){if(!L.tagClosed)return m("InvalidTag","Closing tag '"+G+"' doesn't have proper closing.",A(d,I));if(D.trim().length>0)return m("InvalidTag","Closing tag '"+G+"' can't have attributes or invalid starting.",A(d,N));if(y.length===0)return m("InvalidTag","Closing tag '"+G+"' has not been opened.",A(d,N));{const oe=y.pop();if(G!==oe.tagName){let re=A(d,oe.tagStartPos);return m("InvalidTag","Expected closing tag '"+oe.tagName+"' (opened in line "+re.line+", col "+re.col+") instead of closing tag '"+G+"'.",A(d,N))}y.length==0&&(T=!0)}}else{const oe=h(D,p);if(oe!==!0)return m(oe.err.code,oe.err.msg,A(d,I-D.length+oe.err.line));if(T===!0)return m("InvalidXml","Multiple possible root nodes found.",A(d,I));p.unpairedTags.indexOf(G)!==-1||y.push({tagName:G,tagStartPos:N}),v=!0}for(I++;I<d.length;I++)if(d[I]==="<"){if(d[I+1]==="!"){I++,I=u(d,I);continue}if(d[I+1]!=="?")break;if(I=a(d,++I),I.err)return I}else if(d[I]==="&"){const oe=b(d,I);if(oe==-1)return m("InvalidChar","char '&' is not expected.",A(d,I));I=oe}else if(T===!0&&!i(d[I]))return m("InvalidXml","Extra text at the end",A(d,I));d[I]==="<"&&I--}}}var P;return v?y.length==1?m("InvalidTag","Unclosed tag '"+y[0].tagName+"'.",A(d,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(d,p){let y="",v="",T=!1;for(;p<d.length;p++){if(d[p]===f||d[p]===l)v===""?v=d[p]:v!==d[p]||(v="");else if(d[p]===">"&&v===""){T=!0;break}y+=d[p]}return v===""&&{value:y,index:p,tagClosed:T}}const c=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(d,p){const y=n.getAllMatches(d,c),v={};for(let T=0;T<y.length;T++){if(y[T][1].length===0)return m("InvalidAttr","Attribute '"+y[T][2]+"' has no space in starting.",g(y[T]));if(y[T][3]!==void 0&&y[T][4]===void 0)return m("InvalidAttr","Attribute '"+y[T][2]+"' is without value.",g(y[T]));if(y[T][3]===void 0&&!p.allowBooleanAttributes)return m("InvalidAttr","boolean attribute '"+y[T][2]+"' is not allowed.",g(y[T]));const P=y[T][2];if(!x(P))return m("InvalidAttr","Attribute '"+P+"' is an invalid name.",g(y[T]));if(v.hasOwnProperty(P))return m("InvalidAttr","Attribute '"+P+"' is repeated.",g(y[T]));v[P]=1}return!0}function b(d,p){if(d[++p]===";")return-1;if(d[p]==="#")return function(v,T){let P=/\d/;for(v[T]==="x"&&(T++,P=/[\da-fA-F]/);T<v.length;T++){if(v[T]===";")return T;if(!v[T].match(P))break}return-1}(d,++p);let y=0;for(;p<d.length;p++,y++)if(!(d[p].match(/\w/)&&y<20)){if(d[p]===";")break;return-1}return p}function m(d,p,y){return{err:{code:d,msg:p,line:y.line||y,col:y.col}}}function x(d){return n.isName(d)}function A(d,p){const y=d.substring(0,p).split(/\r?\n/);return{line:y.length,col:y[y.length-1].length+1}}function g(d){return d.startIndex+d[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,h,b){const m=this.j2x(s,h+1,b.concat(c));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],c,m.attrStr,h):this.buildObjectNode(m.val,c,m.attrStr,h)}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,h){let b="",m="";const x=h.join(".");for(let A in s)if(Object.prototype.hasOwnProperty.call(s,A))if(s[A]===void 0)this.isAttribute(A)&&(m+="");else if(s[A]===null)this.isAttribute(A)?m+="":A[0]==="?"?m+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(s[A]instanceof Date)m+=this.buildTextValNode(s[A],A,"",c);else if(typeof s[A]!="object"){const g=this.isAttribute(A);if(g&&!this.ignoreAttributesFn(g,x))b+=this.buildAttrPairStr(g,""+s[A]);else if(!g)if(A===this.options.textNodeName){let d=this.options.tagValueProcessor(A,""+s[A]);m+=this.replaceEntitiesValue(d)}else m+=this.buildTextValNode(s[A],A,"",c)}else if(Array.isArray(s[A])){const g=s[A].length;let d="",p="";for(let y=0;y<g;y++){const v=s[A][y];if(v!==void 0)if(v===null)A[0]==="?"?m+=this.indentate(c)+"<"+A+"?"+this.tagEndChar:m+=this.indentate(c)+"<"+A+"/"+this.tagEndChar;else if(typeof v=="object")if(this.options.oneListGroup){const T=this.j2x(v,c+1,h.concat(A));d+=T.val,this.options.attributesGroupName&&v.hasOwnProperty(this.options.attributesGroupName)&&(p+=T.attrStr)}else d+=this.processTextOrObjNode(v,A,c,h);else if(this.options.oneListGroup){let T=this.options.tagValueProcessor(A,v);T=this.replaceEntitiesValue(T),d+=T}else d+=this.buildTextValNode(v,A,"",c)}this.options.oneListGroup&&(d=this.buildObjectNode(d,A,p,c)),m+=d}else if(this.options.attributesGroupName&&A===this.options.attributesGroupName){const g=Object.keys(s[A]),d=g.length;for(let p=0;p<d;p++)b+=this.buildAttrPairStr(g[p],""+s[A][g[p]])}else m+=this.processTextOrObjNode(s[A],A,c,h);return{attrStr:b,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,h,b){if(s==="")return c[0]==="?"?this.indentate(b)+"<"+c+h+"?"+this.tagEndChar:this.indentate(b)+"<"+c+h+this.closeTag(c)+this.tagEndChar;{let m="</"+c+this.tagEndChar,x="";return c[0]==="?"&&(x="?",m=""),!h&&h!==""||s.indexOf("<")!==-1?this.options.commentPropName!==!1&&c===this.options.commentPropName&&x.length===0?this.indentate(b)+`<!--${s}-->`+this.newLine:this.indentate(b)+"<"+c+h+x+this.tagEndChar+s+this.indentate(b)+m:this.indentate(b)+"<"+c+h+x+">"+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,h,b){if(this.options.cdataPropName!==!1&&c===this.options.cdataPropName)return this.indentate(b)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&c===this.options.commentPropName)return this.indentate(b)+`<!--${s}-->`+this.newLine;if(c[0]==="?")return this.indentate(b)+"<"+c+h+"?"+this.tagEndChar;{let m=this.options.tagValueProcessor(c,s);return m=this.replaceEntitiesValue(m),m===""?this.indentate(b)+"<"+c+h+this.closeTag(c)+this.tagEndChar:this.indentate(b)+"<"+c+h+">"+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 h=this.options.entities[c];s=s.replace(h.regex,h.val)}return s},e.exports=a},87:e=>{function t(a,u,f,l){let s="",c=!1;for(let h=0;h<a.length;h++){const b=a[h],m=r(b);if(m===void 0)continue;let x="";if(x=f.length===0?m:`${f}.${m}`,m===u.textNodeName){let p=b[m];o(x,u)||(p=u.tagValueProcessor(m,p),p=i(p,u)),c&&(s+=l),s+=p,c=!1;continue}if(m===u.cdataPropName){c&&(s+=l),s+=`<![CDATA[${b[m][0][u.textNodeName]}]]>`,c=!1;continue}if(m===u.commentPropName){s+=l+`<!--${b[m][0][u.textNodeName]}-->`,c=!0;continue}if(m[0]==="?"){const p=n(b[":@"],u),y=m==="?xml"?"":l;let v=b[m][0][u.textNodeName];v=v.length!==0?" "+v:"",s+=y+`<${m}${v}${p}?>`,c=!0;continue}let A=l;A!==""&&(A+=u.indentBy);const g=l+`<${m}${n(b[":@"],u)}`,d=t(b[m],u,x,A);u.unpairedTags.indexOf(m)!==-1?u.suppressUnpairedNode?s+=g+">":s+=g+"/>":d&&d.length!==0||!u.suppressEmptyNode?d&&d.endsWith(">")?s+=g+`>${d}${l}</${m}>`:(s+=g+">",d&&l!==""&&(d.includes("/>")||d.includes("</"))?s+=l+u.indentBy+d+l:s+=d,s+=`</${m}>`):s+=g+"/>",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,h){let b="";for(;h<c.length&&c[h]!=="'"&&c[h]!=='"';h++)b+=c[h];if(b=b.trim(),b.indexOf(" ")!==-1)throw new Error("External entites are not supported");const m=c[h++];let x="";for(;h<c.length&&c[h]!==m;h++)x+=c[h];return[b,x,h]}function i(c,h){return c[h+1]==="!"&&c[h+2]==="-"&&c[h+3]==="-"}function a(c,h){return c[h+1]==="!"&&c[h+2]==="E"&&c[h+3]==="N"&&c[h+4]==="T"&&c[h+5]==="I"&&c[h+6]==="T"&&c[h+7]==="Y"}function u(c,h){return c[h+1]==="!"&&c[h+2]==="E"&&c[h+3]==="L"&&c[h+4]==="E"&&c[h+5]==="M"&&c[h+6]==="E"&&c[h+7]==="N"&&c[h+8]==="T"}function f(c,h){return c[h+1]==="!"&&c[h+2]==="A"&&c[h+3]==="T"&&c[h+4]==="T"&&c[h+5]==="L"&&c[h+6]==="I"&&c[h+7]==="S"&&c[h+8]==="T"}function l(c,h){return c[h+1]==="!"&&c[h+2]==="N"&&c[h+3]==="O"&&c[h+4]==="T"&&c[h+5]==="A"&&c[h+6]==="T"&&c[h+7]==="I"&&c[h+8]==="O"&&c[h+9]==="N"}function s(c){if(n.isName(c))return c;throw new Error(`Invalid entity name ${c}`)}e.exports=function(c,h){const b={};if(c[h+3]!=="O"||c[h+4]!=="C"||c[h+5]!=="T"||c[h+6]!=="Y"||c[h+7]!=="P"||c[h+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{h+=9;let m=1,x=!1,A=!1,g="";for(;h<c.length;h++)if(c[h]!=="<"||A)if(c[h]===">"){if(A?c[h-1]==="-"&&c[h-2]==="-"&&(A=!1,m--):m--,m===0)break}else c[h]==="["?x=!0:g+=c[h];else{if(x&&a(c,h)){let d,p;h+=7,[d,p,h]=o(c,h+1),p.indexOf("&")===-1&&(b[s(d)]={regx:RegExp(`&${d};`,"g"),val:p})}else if(x&&u(c,h))h+=8;else if(x&&f(c,h))h+=8;else if(x&&l(c,h))h+=9;else{if(!i)throw new Error("Invalid DOCTYPE");A=!0}m++,g=""}if(m!==0)throw new Error("Unclosed DOCTYPE")}return{entities:b,i:h}}},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(T){const P=Object.keys(T);for(let I=0;I<P.length;I++){const N=P[I];this.lastEntities[N]={regex:new RegExp("&"+N+";","g"),val:T[N]}}}function l(T,P,I,N,j,G,L){if(T!==void 0&&(this.options.trimValues&&!N&&(T=T.trim()),T.length>0)){L||(T=this.replaceEntitiesValue(T));const D=this.options.tagValueProcessor(P,T,I,j,G);return D==null?T:typeof D!=typeof T||D!==T?D:this.options.trimValues||T.trim()===T?v(T,this.options.parseTagValue,this.options.numberParseOptions):T}}function s(T){if(this.options.removeNSPrefix){const P=T.split(":"),I=T.charAt(0)==="/"?"/":"";if(P[0]==="xmlns")return"";P.length===2&&(T=I+P[1])}return T}const c=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function h(T,P,I){if(this.options.ignoreAttributes!==!0&&typeof T=="string"){const N=n.getAllMatches(T,c),j=N.length,G={};for(let L=0;L<j;L++){const D=this.resolveNameSpace(N[L][1]);if(this.ignoreAttributesFn(D,P))continue;let oe=N[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:v(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 b=function(T){T=T.replace(/\r\n?/g,`
41
- `);const P=new o("!xml");let I=P,N="",j="";for(let G=0;G<T.length;G++)if(T[G]==="<")if(T[G+1]==="/"){const L=d(T,">",G,"Closing Tag is not closed.");let D=T.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&&(N=this.saveTextToParentTag(N,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(),N="",G=L}else if(T[G+1]==="?"){let L=p(T,G,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(N=this.saveTextToParentTag(N,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(T.substr(G+1,3)==="!--"){const L=d(T,"-->",G+4,"Comment is not closed.");if(this.options.commentPropName){const D=T.substring(G+4,L-2);N=this.saveTextToParentTag(N,I,j),I.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}G=L}else if(T.substr(G+1,2)==="!D"){const L=i(T,G);this.docTypeEntities=L.entities,G=L.i}else if(T.substr(G+1,2)==="!["){const L=d(T,"]]>",G,"CDATA is not closed.")-2,D=T.substring(G+9,L);N=this.saveTextToParentTag(N,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=p(T,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&&N&&I.tagname!=="!xml"&&(N=this.saveTextToParentTag(N,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(T,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}N="",G=fe}}else N+=T[G];return P.child};function m(T,P,I){const N=this.options.updateTag(P.tagname,I,P[":@"]);N===!1||(typeof N=="string"&&(P.tagname=N),T.addChild(P))}const x=function(T){if(this.options.processEntities){for(let P in this.docTypeEntities){const I=this.docTypeEntities[P];T=T.replace(I.regx,I.val)}for(let P in this.lastEntities){const I=this.lastEntities[P];T=T.replace(I.regex,I.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){const I=this.htmlEntities[P];T=T.replace(I.regex,I.val)}T=T.replace(this.ampEntity.regex,this.ampEntity.val)}return T};function A(T,P,I,N){return T&&(N===void 0&&(N=Object.keys(P.child).length===0),(T=this.parseTextData(T,P.tagname,I,!1,!!P[":@"]&&Object.keys(P[":@"]).length!==0,N))!==void 0&&T!==""&&P.add(this.options.textNodeName,T),T=""),T}function g(T,P,I){const N="*."+I;for(const j in T){const G=T[j];if(N===G||P===G)return!0}return!1}function d(T,P,I,N){const j=T.indexOf(P,I);if(j===-1)throw new Error(N);return j+P.length-1}function p(T,P,I){const N=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}}(T,P+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!N)return;let j=N.data;const G=N.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!==N.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function y(T,P,I){const N=I;let j=1;for(;I<T.length;I++)if(T[I]==="<")if(T[I+1]==="/"){const G=d(T,">",I,`${P} is not closed`);if(T.substring(I+2,G).trim()===P&&(j--,j===0))return{tagContent:T.substring(N,I),i:G};I=G}else if(T[I+1]==="?")I=d(T,"?>",I+1,"StopNode is not closed.");else if(T.substr(I+1,3)==="!--")I=d(T,"-->",I+3,"StopNode is not closed.");else if(T.substr(I+1,2)==="![")I=d(T,"]]>",I,"StopNode is not closed.")-2;else{const G=p(T,I,">");G&&((G&&G.tagName)===P&&G.tagExp[G.tagExp.length-1]!=="/"&&j++,I=G.closeIndex)}}function v(T,P,I){if(P&&typeof T=="string"){const N=T.trim();return N==="true"||N!=="false"&&a(T,I)}return n.isExist(T)?T:""}e.exports=class{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},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=b,this.parseTextData=l,this.resolveNameSpace=s,this.buildAttributesMap=h,this.isItStopNode=g,this.replaceEntitiesValue=x,this.readStopNodeData=y,this.saveTextToParentTag=A,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 h=a[c],b=n(h);let m="";if(m=f===void 0?b:f+"."+b,b===u.textNodeName)l===void 0?l=h[b]:l+=""+h[b];else{if(b===void 0)continue;if(h[b]){let x=r(h[b],u,m);const A=i(x,u);h[":@"]?o(x,h[":@"],m,u):Object.keys(x).length!==1||x[u.textNodeName]===void 0||u.alwaysCreateTextNode?Object.keys(x).length===0&&(u.alwaysCreateTextNode?x[u.textNodeName]="":x=""):x=x[u.textNodeName],s[b]!==void 0&&s.hasOwnProperty(b)?(Array.isArray(s[b])||(s[b]=[s[b]]),s[b].push(x)):u.isArray(b,m,A)?s[b]=[x]:s[b]=x}}}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 h=0;h<c;h++){const b=s[h];l.isArray(b,f+"."+b,!0,!0)?a[b]=[u[b]]:a[b]=u[b]}}}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,h=1732584193,b=-271733879,m=-1732584194,x=271733878,A=0;A<s.length;A++)s[A]=16711935&(s[A]<<8|s[A]>>>24)|4278255360&(s[A]<<24|s[A]>>>8);s[c>>>5]|=128<<c%32,s[14+(c+64>>>9<<4)]=c;var g=u._ff,d=u._gg,p=u._hh,y=u._ii;for(A=0;A<s.length;A+=16){var v=h,T=b,P=m,I=x;h=g(h,b,m,x,s[A+0],7,-680876936),x=g(x,h,b,m,s[A+1],12,-389564586),m=g(m,x,h,b,s[A+2],17,606105819),b=g(b,m,x,h,s[A+3],22,-1044525330),h=g(h,b,m,x,s[A+4],7,-176418897),x=g(x,h,b,m,s[A+5],12,1200080426),m=g(m,x,h,b,s[A+6],17,-1473231341),b=g(b,m,x,h,s[A+7],22,-45705983),h=g(h,b,m,x,s[A+8],7,1770035416),x=g(x,h,b,m,s[A+9],12,-1958414417),m=g(m,x,h,b,s[A+10],17,-42063),b=g(b,m,x,h,s[A+11],22,-1990404162),h=g(h,b,m,x,s[A+12],7,1804603682),x=g(x,h,b,m,s[A+13],12,-40341101),m=g(m,x,h,b,s[A+14],17,-1502002290),h=d(h,b=g(b,m,x,h,s[A+15],22,1236535329),m,x,s[A+1],5,-165796510),x=d(x,h,b,m,s[A+6],9,-1069501632),m=d(m,x,h,b,s[A+11],14,643717713),b=d(b,m,x,h,s[A+0],20,-373897302),h=d(h,b,m,x,s[A+5],5,-701558691),x=d(x,h,b,m,s[A+10],9,38016083),m=d(m,x,h,b,s[A+15],14,-660478335),b=d(b,m,x,h,s[A+4],20,-405537848),h=d(h,b,m,x,s[A+9],5,568446438),x=d(x,h,b,m,s[A+14],9,-1019803690),m=d(m,x,h,b,s[A+3],14,-187363961),b=d(b,m,x,h,s[A+8],20,1163531501),h=d(h,b,m,x,s[A+13],5,-1444681467),x=d(x,h,b,m,s[A+2],9,-51403784),m=d(m,x,h,b,s[A+7],14,1735328473),h=p(h,b=d(b,m,x,h,s[A+12],20,-1926607734),m,x,s[A+5],4,-378558),x=p(x,h,b,m,s[A+8],11,-2022574463),m=p(m,x,h,b,s[A+11],16,1839030562),b=p(b,m,x,h,s[A+14],23,-35309556),h=p(h,b,m,x,s[A+1],4,-1530992060),x=p(x,h,b,m,s[A+4],11,1272893353),m=p(m,x,h,b,s[A+7],16,-155497632),b=p(b,m,x,h,s[A+10],23,-1094730640),h=p(h,b,m,x,s[A+13],4,681279174),x=p(x,h,b,m,s[A+0],11,-358537222),m=p(m,x,h,b,s[A+3],16,-722521979),b=p(b,m,x,h,s[A+6],23,76029189),h=p(h,b,m,x,s[A+9],4,-640364487),x=p(x,h,b,m,s[A+12],11,-421815835),m=p(m,x,h,b,s[A+15],16,530742520),h=y(h,b=p(b,m,x,h,s[A+2],23,-995338651),m,x,s[A+0],6,-198630844),x=y(x,h,b,m,s[A+7],10,1126891415),m=y(m,x,h,b,s[A+14],15,-1416354905),b=y(b,m,x,h,s[A+5],21,-57434055),h=y(h,b,m,x,s[A+12],6,1700485571),x=y(x,h,b,m,s[A+3],10,-1894986606),m=y(m,x,h,b,s[A+10],15,-1051523),b=y(b,m,x,h,s[A+1],21,-2054922799),h=y(h,b,m,x,s[A+8],6,1873313359),x=y(x,h,b,m,s[A+15],10,-30611744),m=y(m,x,h,b,s[A+6],15,-1560198380),b=y(b,m,x,h,s[A+13],21,1309151649),h=y(h,b,m,x,s[A+4],6,-145523070),x=y(x,h,b,m,s[A+11],10,-1120210379),m=y(m,x,h,b,s[A+2],15,718787259),b=y(b,m,x,h,s[A+9],21,-343485551),h=h+v>>>0,b=b+T>>>0,m=m+P>>>0,x=x+I>>>0}return n.endian([h,b,m,x])};u._ff=function(f,l,s,c,h,b,m){var x=f+(l&s|~l&c)+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._gg=function(f,l,s,c,h,b,m){var x=f+(l&c|s&~c)+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._hh=function(f,l,s,c,h,b,m){var x=f+(l^s^c)+(h>>>0)+m;return(x<<b|x>>>32-b)+l},u._ii=function(f,l,s,c,h,b,m){var x=f+(s^(l|~c))+(h>>>0)+m;return(x<<b|x>>>32-b)+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(g){return g?(g.substr(0,2)==="{}"&&(g="\\{\\}"+g.substr(2)),A(function(d){return d.split("\\\\").join(o).split("\\{").join(i).split("\\}").join(a).split("\\,").join(u).split("\\.").join(f)}(g),!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(g){return parseInt(g,10)==g?parseInt(g,10):g.charCodeAt(0)}function s(g){return g.split(o).join("\\").split(i).join("{").split(a).join("}").split(u).join(",").split(f).join(".")}function c(g){if(!g)return[""];var d=[],p=n("{","}",g);if(!p)return g.split(",");var y=p.pre,v=p.body,T=p.post,P=y.split(",");P[P.length-1]+="{"+v+"}";var I=c(T);return T.length&&(P[P.length-1]+=I.shift(),P.push.apply(P,I)),d.push.apply(d,P),d}function h(g){return"{"+g+"}"}function b(g){return/^-?0\d/.test(g)}function m(g,d){return g<=d}function x(g,d){return g>=d}function A(g,d){var p=[],y=n("{","}",g);if(!y)return[g];var v=y.pre,T=y.post.length?A(y.post,!1):[""];if(/\$$/.test(y.pre))for(var P=0;P<T.length;P++){var I=v+"{"+y.body+"}"+T[P];p.push(I)}else{var N,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(/,.*\}/)?A(g=y.pre+"{"+y.body+a+y.post):[g];if(D)N=y.body.split(/\.\./);else if((N=c(y.body)).length===1&&(N=A(N[0],!1).map(h)).length===1)return T.map(function(V){return y.pre+N[0]+V});if(D){var re=l(N[0]),he=l(N[1]),fe=Math.max(N[0].length,N[1].length),ge=N.length==3?Math.abs(l(N[2])):1,ce=m;he<re&&(ge*=-1,ce=x);var Ee=N.some(b);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<N.length;ue++)j.push.apply(j,A(N[ue],!1))}for(ue=0;ue<j.length;ue++)for(P=0;P<T.length;P++)I=v+j[ue]+T[P],(!d||D||I)&&p.push(I)}return p}},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||(h=c,Function.toString.call(h).indexOf("[native code]")===-1))return c;var h;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,b)}function b(){return n(c,arguments,i(this).constructor)}return b.prototype=Object.create(c.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),o(b,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(h,b,m){var x=[null];x.push.apply(x,b);var A=new(Function.bind.apply(h,x));return m&&o(A,m.prototype),A},n.apply(null,arguments)}function o(l,s){return o=Object.setPrototypeOf||function(c,h){return c.__proto__=h,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 h;return function(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),(h=function(b,m){return!m||t(m)!=="object"&&typeof m!="function"?function(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(b):m}(this,i(s).call(this,c))).name="ObjectPrototypeMutationError",h}return function(c,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(h&&h.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),h&&o(c,h)}(s,l),s}(r(Error));function u(l,s){for(var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},h=s.split("."),b=h.length,m=function(g){var d=h[g];if(!l)return{v:void 0};if(d==="+"){if(Array.isArray(l))return{v:l.map(function(y,v){var T=h.slice(g+1);return T.length>0?u(y,T.join("."),c):c(l,v,h,g)})};var p=h.slice(0,g).join(".");throw new Error("Object at wildcard (".concat(p,") is not an array"))}l=c(l,d,h,g)},x=0;x<b;x++){var A=m(x);if(t(A)==="object")return A.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(h,b,m,x){if(h===Reflect.getPrototypeOf({}))throw new a("Attempting to mutate Object.prototype");if(!h[b]){var A=Number.isInteger(Number(m[x+1])),g=m[x+1]==="+";h[b]=A||g?[]:{}}return f(m,x)&&(h[b]=c),h[b]})}catch(h){if(h instanceof a)throw h;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,h){return c[h]})}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 h=!1;return u(l,s,function(b,m,x,A){if(!f(x,A))return b&&b[m];h=c.own?b.hasOwnProperty(m):m in b}),h}catch{return!1}},hasOwn:function(l,s,c){return this.has(l,s,c||{own:!0})},isIn:function(l,s,c){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(l)!="object"||l===null||s===void 0)return!1;try{var b=!1,m=!1;return u(l,s,function(x,A,g,d){return b=b||x===c||!!x&&x[A]===c,m=f(g,d)&&t(x)==="object"&&A in x,x&&x[A]}),h.validPath?b&&m:b}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=[],h=0;h<l.length;h++){var b=l[h];b&&b!=="."&&(b===".."?c.length&&c[c.length-1]!==".."?c.pop():s&&c.push(".."):c.push(b))}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 h=c>=0?arguments[c]:me.cwd();if(!o(h))throw new TypeError("Arguments to path.resolve must be strings");h&&(l=h+"/"+l,s=h.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(d){for(var p=0;p<d.length&&d[p]==="";p++);for(var y=d.length-1;y>=0&&d[y]==="";y--);return p>y?[]:d.slice(p,y+1)}l=u.resolve(l).substr(1),s=u.resolve(s).substr(1);for(var h=c(l.split("/")),b=c(s.split("/")),m=Math.min(h.length,b.length),x=m,A=0;A<m;A++)if(h[A]!==b[A]){x=A;break}var g=[];for(A=x;A<h.length;A++)g.push("..");return(g=g.concat(b.slice(x))).join("/")},u._makeLong=function(l){return l},u.dirname=function(l){var s=f(l),c=s[0],h=s[1];return c||h?(h&&(h=h.substr(0,h.length-1)),c+h):"."},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 h=f[4]||f[6];if(!i.leadingZeros&&s.length>0&&l&&a[2]!=="."||!i.leadingZeros&&s.length>0&&!l&&a[1]!==".")return o;{const b=Number(a),m=""+b;return m.search(/[eE]/)!==-1||h?i.eNotation?b:o:a.indexOf(".")!==-1?m==="0"&&c===""||m===c||l&&m==="-"+c?b:o:s?c===m||l+c===m?b:o:a===m||a===l+m?b: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(d){return(d||"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function(d,p){return x(p.protocol)?d.replace(/\\/g,"/"):d},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],b={hash:1,query:1};function m(d){var p,y=(typeof window<"u"?window:typeof Lt<"u"?Lt:typeof self<"u"?self:{}).location||{},v={},T=typeof(d=d||y);if(d.protocol==="blob:")v=new g(unescape(d.pathname),{});else if(T==="string")for(p in v=new g(d,{}),b)delete v[p];else if(T==="object"){for(p in d)p in b||(v[p]=d[p]);v.slashes===void 0&&(v.slashes=u.test(d.href))}return v}function x(d){return d==="file:"||d==="ftp:"||d==="http:"||d==="https:"||d==="ws:"||d==="wss:"}function A(d,p){d=(d=c(d)).replace(a,""),p=p||{};var y,v=l.exec(d),T=v[1]?v[1].toLowerCase():"",P=!!v[2],I=!!v[3],N=0;return P?I?(y=v[2]+v[3]+v[4],N=v[2].length+v[3].length):(y=v[2]+v[4],N=v[2].length):I?(y=v[3]+v[4],N=v[3].length):y=v[4],T==="file:"?N>=2&&(y=y.slice(2)):x(T)?y=v[4]:T?P&&(y=y.slice(2)):N>=2&&x(p.protocol)&&(y=v[4]),{protocol:T,slashes:P||x(T),slashesCount:N,rest:y}}function g(d,p,y){if(d=(d=c(d)).replace(a,""),!(this instanceof g))return new g(d,p,y);var v,T,P,I,N,j,G=h.slice(),L=typeof p,D=this,oe=0;for(L!=="object"&&L!=="string"&&(y=p,p=null),y&&typeof y!="function"&&(y=o.parse),v=!(T=A(d||"",p=m(p))).protocol&&!T.slashes,D.slashes=T.slashes||v&&p.slashes,D.protocol=T.protocol||p.protocol||"",d=T.rest,(T.protocol==="file:"&&(T.slashesCount!==2||s.test(d))||!T.slashes&&(T.protocol||T.slashesCount<2||!x(D.protocol)))&&(G[3]=[/(.*)/,"pathname"]);oe<G.length;oe++)typeof(I=G[oe])!="function"?(P=I[0],j=I[1],P!=P?D[j]=d:typeof P=="string"?~(N=P==="@"?d.lastIndexOf(P):d.indexOf(P))&&(typeof I[2]=="number"?(D[j]=d.slice(0,N),d=d.slice(N+I[2])):(D[j]=d.slice(N),d=d.slice(0,N))):(N=P.exec(d))&&(D[j]=N[1],d=d.slice(0,N.index)),D[j]=D[j]||v&&I[3]&&p[j]||"",I[4]&&(D[j]=D[j].toLowerCase())):d=I(d,D);y&&(D.query=y(D.query)),v&&p.slashes&&D.pathname.charAt(0)!=="/"&&(D.pathname!==""||p.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,p.pathname)),D.pathname.charAt(0)!=="/"&&x(D.protocol)&&(D.pathname="/"+D.pathname),n(D.port,D.protocol)||(D.host=D.hostname,D.port=""),D.username=D.password="",D.auth&&(~(N=D.auth.indexOf(":"))?(D.username=D.auth.slice(0,N),D.username=encodeURIComponent(decodeURIComponent(D.username)),D.password=D.auth.slice(N+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:"&&x(D.protocol)&&D.host?D.protocol+"//"+D.host:"null",D.href=D.toString()}g.prototype={set:function(d,p,y){var v=this;switch(d){case"query":typeof p=="string"&&p.length&&(p=(y||o.parse)(p)),v[d]=p;break;case"port":v[d]=p,n(p,v.protocol)?p&&(v.host=v.hostname+":"+p):(v.host=v.hostname,v[d]="");break;case"hostname":v[d]=p,v.port&&(p+=":"+v.port),v.host=p;break;case"host":v[d]=p,f.test(p)?(p=p.split(":"),v.port=p.pop(),v.hostname=p.join(":")):(v.hostname=p,v.port="");break;case"protocol":v.protocol=p.toLowerCase(),v.slashes=!y;break;case"pathname":case"hash":if(p){var T=d==="pathname"?"/":"#";v[d]=p.charAt(0)!==T?T+p:p}else v[d]=p;break;case"username":case"password":v[d]=encodeURIComponent(p);break;case"auth":var P=p.indexOf(":");~P?(v.username=p.slice(0,P),v.username=encodeURIComponent(decodeURIComponent(v.username)),v.password=p.slice(P+1),v.password=encodeURIComponent(decodeURIComponent(v.password))):v.username=encodeURIComponent(decodeURIComponent(p))}for(var I=0;I<h.length;I++){var N=h[I];N[4]&&(v[N[1]]=v[N[1]].toLowerCase())}return v.auth=v.password?v.username+":"+v.password:v.username,v.origin=v.protocol!=="file:"&&x(v.protocol)&&v.host?v.protocol+"//"+v.host:"null",v.href=v.toString(),v},toString:function(d){d&&typeof d=="function"||(d=o.stringify);var p,y=this,v=y.host,T=y.protocol;T&&T.charAt(T.length-1)!==":"&&(T+=":");var P=T+(y.protocol&&y.slashes||x(y.protocol)?"//":"");return y.username?(P+=y.username,y.password&&(P+=":"+y.password),P+="@"):y.password?(P+=":"+y.password,P+="@"):y.protocol!=="file:"&&x(y.protocol)&&!v&&y.pathname!=="/"&&(P+="@"),(v[v.length-1]===":"||f.test(y.hostname)&&!y.port)&&(v+=":"),P+=v+y.pathname,(p=typeof y.query=="object"?d(y.query):y.query)&&(P+=p.charAt(0)!=="?"?"?"+p:p),y.hash&&(P+=y.hash),P}},g.extractProtocol=A,g.location=m,g.trimLeft=c,g.qs=o,e.exports=g},410:()=>{},388:()=>{},805:()=>{},345:()=>{},800:()=>{}},Uf={};function Fe(e){var t=Uf[e];if(t!==void 0)return t.exports;var r=Uf[e]={id:e,loaded:!1,exports:{}};return bm[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 vt={};Fe.d(vt,{hT:()=>ht,O4:()=>$t,Kd:()=>Nm,YK:()=>Om,UU:()=>Bb,Gu:()=>Kf,ky:()=>lc,h4:()=>Jr,ch:()=>Wn,hq:()=>ur,i5:()=>fc});var wm=Fe(737),vm=Fe.n(wm);function ds(e){if(!ps(e))throw new Error("Parameter was not an error")}function ps(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(ps(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 ds(t),t._cause&&ps(t._cause)?t._cause:null}static fullStack(t){ds(t);const r=ct.cause(t);return r?`${t.stack}
42
- caused by: ${ct.fullStack(r)}`:t.stack??""}static info(t){ds(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 Em=Fe(47),jn=Fe.n(Em);const jf="__PATH_SEPARATOR_POSIX__",kf="__PATH_SEPARATOR_WINDOWS__";function He(e){try{const t=e.replace(/\//g,jf).replace(/\\\\/g,kf);return encodeURIComponent(t).split(kf).join("\\\\").split(jf).join("/")}catch(t){throw new ct(t,"Failed encoding path")}}function Mf(e){return e.startsWith("/")?e:"/"+e}function Kr(e){let t=e;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function xm(e){let t=new(vm())(e).pathname;return t.length<=0&&(t="/"),Kr(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 Am=Fe(542),zr=Fe.n(Am);const Tm="abcdef0123456789";function Df(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(h,b,m,x,A,g,d){const p=d||zr()(`${b}:${m}:${x}`);return h&&h.toLowerCase()==="md5-sess"?zr()(`${p}:${A}:${g}`):p}(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),f=zr()(`${o}:${n}`),l=i?zr()(`${u}:${t.nonce}:${a}:${t.cnonce}:${i}:${f}`):zr()(`${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 h in s)s[h]&&(h==="qop"||h==="nc"||h==="algorithm"?c.push(`${h}=${s[h]}`):c.push(`${h}="${s[h]}"`));return`Digest ${c.join(", ")}`}function $f(e){return(e.headers&&e.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var Sm=Fe(101),qf=Fe.n(Sm);function Hf(e){return qf().decode(e)}function Vf(e,t){var r;return`Basic ${r=`${e}:${t}`,qf().encode(r)}`}const kn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,_m=kn.fetch.bind(kn),Nm=kn.Request,Om=kn.Response;let ht=function(e){return e.Auto="auto",e.Digest="digest",e.None="none",e.Password="password",e.Token="token",e}({}),$t=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 Wf(e,t,r,n,o){switch(e.authType){case ht.Auto:t&&r&&(e.headers.Authorization=Vf(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=Vf(t,r);break;case ht.Token:e.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new ct({info:{code:$t.InvalidAuthType}},`Invalid auth type: ${e.authType}`)}var i}Fe(345),Fe(800);const Gf="@@HOTPATCHER",Rm=()=>{};function gs(e){return{original:e,methods:[e],final:!1}}class Im{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Gf}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__!==Gf)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)||Rm;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]=gs(r);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(gs(r),{original:i})}else this.configuration.registry[t]=gs(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 ys=null;function Kf(){return ys||(ys=new Im),ys}function Mn(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 zf(){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?Xf(n,i):Mn(i)}return n}function Xf(e,t){const r=Mn(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]?Xf(r[n],t[n]):Mn(t[n]):r[n]=t[n]:r[n]=t[n]}),r}function Pm(e){const t={};for(const r of e.keys())t[r]=e.get(r);return t}function ms(){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 Fm=typeof ArrayBuffer=="function",{toString:Cm}=Object.prototype;function Yf(e){return Fm&&(e instanceof ArrayBuffer||Cm.call(e)==="[object ArrayBuffer]")}function Jf(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function bs(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 ws(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Zf=bs(function(e){const t=e._digest;return delete e._digest,t.hasDigestAuth&&(e=zf(e,{headers:{Authorization:Df(e,t)}})),ws(Dn(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(!$f(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}${Tm[Math.floor(16*Math.random())]}`;return l}(),!0}(r,t),function(){if(t.hasDigestAuth)return ws(Dn(e=zf(e,{headers:{Authorization:Df(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})}),Bm=bs(function(e,t){return ws(Dn(e),function(r){return r.ok?(t.authType=ht.Password,r):r.status==401&&$f(r)?(t.authType=ht.Digest,Wf(t,t.username,t.password,void 0,void 0),e._digest=t.digest,Zf(e)):r})}),Ze=bs(function(e,t){return t.authType===ht.Auto?Bm(e,t):e._digest?Zf(e):Dn(e)});function Qe(e,t,r){const n=Mn(e);return n.headers=ms(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 Dn(e){const t=Kf();return t.patchInline("request",r=>t.patchInline("fetch",_m,r.url,function(n){let o={};const i={method:n.method};if(n.headers&&(o=ms(o,n.headers)),n.data!==void 0){const[a,u]=function(f){if(typeof f=="string")return[f,{}];if(Jf(f))return[f,{}];if(Yf(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=ms(o,u)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=o,i}(r)),e)}var Lm=Fe(285);const $n=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},Um={"[: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]},Xr=e=>e.replace(/[[\]\\-]/g,"\\$&"),Qf=e=>e.join(""),jm=(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 x=e.charAt(i);if(x!=="!"&&x!=="^"||i!==r+1){if(x==="]"&&a&&!f){s=i+1;break}if(a=!0,x!=="\\"||f){if(x==="["&&!f){for(const[A,[g,d,p]]of Object.entries(Um))if(e.startsWith(A,i)){if(c)return["$.",!1,e.length-r,!0];i+=A.length,p?o.push(g):n.push(g),u=u||d;continue e}}f=!1,c?(x>c?n.push(Xr(c)+"-"+Xr(x)):x===c&&n.push(Xr(x)),c="",i++):e.startsWith("-]",i+1)?(n.push(Xr(x+"-")),i+=2):e.startsWith("-",i+1)?(c=x,i+=2):(n.push(Xr(x)),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[(h=n[0].length===2?n[0].slice(-1):n[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,s-r,!1];var h;const b="["+(l?"^":"")+Qf(n)+"]",m="["+(l?"":"^")+Qf(o)+"]";return[n.length&&o.length?"("+b+"|"+m+")":n.length?b:m,u,s-r,!0]},Yr=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")},km=new Set(["!","?","+","*","@"]),ec=e=>km.has(e),vs="(?!\\.)",Mm=new Set(["[","."]),Dm=new Set(["..","."]),$m=new Set("().*{}+?[]^$\\!"),Es="[^/]",tc=Es+"*?",rc=Es+"+?",gt=class gt{constructor(t,r){Oe(this,hr);ye(this,"type");Oe(this,tt);Oe(this,nt);Oe(this,Vt,!1);Oe(this,ke,[]);Oe(this,Ye);Oe(this,zt);Oe(this,fr);Oe(this,Xt,!1);Oe(this,Ct);Oe(this,cr);Oe(this,on,!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,Z(this,Ye)?Z(Z(this,Ye),tt):this),ve(this,Ct,Z(this,tt)===this?n:Z(Z(this,tt),Ct)),ve(this,fr,Z(this,tt)===this?[]:Z(Z(this,tt),fr)),t!=="!"||Z(Z(this,tt),Xt)||Z(this,fr).push(this),ve(this,zt,Z(this,Ye)?Z(Z(this,Ye),ke).length:0)}get hasMagic(){if(Z(this,nt)!==void 0)return Z(this,nt);for(const t of Z(this,ke))if(typeof t!="string"&&(t.type||t.hasMagic))return ve(this,nt,!0);return Z(this,nt)}toString(){return Z(this,cr)!==void 0?Z(this,cr):this.type?ve(this,cr,this.type+"("+Z(this,ke).map(t=>String(t)).join("|")+")"):ve(this,cr,Z(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&&Z(o,Ye)===this))throw new Error("invalid part: "+o);Z(this,ke).push(o)}}toJSON(){var r;const t=this.type===null?Z(this,ke).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...Z(this,ke).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===Z(this,tt)||Z(Z(this,tt),Xt)&&((r=Z(this,Ye))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(Z(this,tt)===this)return!0;if(!((r=Z(this,Ye))!=null&&r.isStart()))return!1;if(Z(this,zt)===0)return!0;const t=Z(this,Ye);for(let n=0;n<Z(this,zt);n++){const o=Z(t,ke)[n];if(!(o instanceof gt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(Z(this,tt)===this||((r=Z(this,Ye))==null?void 0:r.type)==="!")return!0;if(!((n=Z(this,Ye))!=null&&n.isEnd()))return!1;if(!this.type)return(o=Z(this,Ye))==null?void 0:o.isEnd();const t=Z(this,Ye)?Z(Z(this,Ye),ke).length:0;return Z(this,zt)===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 Z(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,Yt,Qn).call(o,t,n,0,r),n}toMMPattern(){if(this!==Z(this,tt))return Z(this,tt).toMMPattern();const t=this.toString(),[r,n,o,i]=this.toRegExpSource();if(!(o||Z(this,nt)||Z(this,Ct).nocase&&!Z(this,Ct).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(Z(this,Ct).nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return Z(this,Ct)}toRegExpSource(t){var f;const r=t??!!Z(this,Ct).dot;if(Z(this,tt)===this&&$e(this,hr,Gc).call(this),!this.type){const l=this.isStart()&&this.isEnd(),s=Z(this,ke).map(b=>{var d;const[m,x,A,g]=typeof b=="string"?$e(d=gt,Yt,Kc).call(d,b,Z(this,nt),l):b.toRegExpSource(t);return ve(this,nt,Z(this,nt)||A),ve(this,Vt,Z(this,Vt)||g),m}).join("");let c="";if(this.isStart()&&typeof Z(this,ke)[0]=="string"&&(Z(this,ke).length!==1||!Dm.has(Z(this,ke)[0]))){const b=Mm,m=r&&b.has(s.charAt(0))||s.startsWith("\\.")&&b.has(s.charAt(2))||s.startsWith("\\.\\.")&&b.has(s.charAt(4)),x=!r&&!t&&b.has(s.charAt(0));c=m?"(?!(?:^|/)\\.\\.?(?:$|/))":x?vs:""}let h="";return this.isEnd()&&Z(Z(this,tt),Xt)&&((f=Z(this,Ye))==null?void 0:f.type)==="!"&&(h="(?:$|\\/)"),[c+s+h,Yr(s),ve(this,nt,!!Z(this,nt)),Z(this,Vt)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let i=$e(this,hr,Qs).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,Yr(this.toString()),!1,!1]}let a=!n||t||r?"":$e(this,hr,Qs).call(this,!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let u="";return u=this.type==="!"&&Z(this,on)?(this.isStart()&&!r?vs:"")+rc:o+i+(this.type==="!"?"))"+(!this.isStart()||r||t?"":vs)+tc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[u,Yr(i),ve(this,nt,!!Z(this,nt)),Z(this,Vt)]}};tt=new WeakMap,nt=new WeakMap,Vt=new WeakMap,ke=new WeakMap,Ye=new WeakMap,zt=new WeakMap,fr=new WeakMap,Xt=new WeakMap,Ct=new WeakMap,cr=new WeakMap,on=new WeakMap,hr=new WeakSet,Gc=function(){if(this!==Z(this,tt))throw new Error("should only call on root");if(Z(this,Xt))return this;let t;for(this.toString(),ve(this,Xt,!0);t=Z(this,fr).pop();){if(t.type!=="!")continue;let r=t,n=Z(r,Ye);for(;n;){for(let o=Z(r,zt)+1;!n.type&&o<Z(n,ke).length;o++)for(const i of Z(t,ke)){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(Z(n,ke)[o])}r=n,n=Z(r,Ye)}}return this},Yt=new WeakSet,Qn=function(t,r,n,o){var b,m;let i=!1,a=!1,u=-1,f=!1;if(r.type===null){let x=n,A="";for(;x<t.length;){const g=t.charAt(x++);if(i||g==="\\")i=!i,A+=g;else if(a)x===u+1?g!=="^"&&g!=="!"||(f=!0):g!=="]"||x===u+2&&f||(a=!1),A+=g;else if(g!=="[")if(o.noext||!ec(g)||t.charAt(x)!=="(")A+=g;else{r.push(A),A="";const d=new gt(g,r);x=$e(b=gt,Yt,Qn).call(b,t,d,x,o),r.push(d)}else a=!0,u=x,f=!1,A+=g}return r.push(A),x}let l=n+1,s=new gt(null,r);const c=[];let h="";for(;l<t.length;){const x=t.charAt(l++);if(i||x==="\\")i=!i,h+=x;else if(a)l===u+1?x!=="^"&&x!=="!"||(f=!0):x!=="]"||l===u+2&&f||(a=!1),h+=x;else if(x!=="[")if(ec(x)&&t.charAt(l)==="("){s.push(h),h="";const A=new gt(x,s);s.push(A),l=$e(m=gt,Yt,Qn).call(m,t,A,l,o)}else if(x!=="|"){if(x===")")return h===""&&Z(r,ke).length===0&&ve(r,on,!0),s.push(h),h="",r.push(...c,s),l;h+=x}else s.push(h),h="",c.push(s),s=new gt(null,r);else a=!0,u=l,f=!1,h+=x}return r.type=null,ve(r,nt,void 0),ve(r,ke,[t.substring(n-1)]),l},Qs=function(t){return Z(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,Vt,Z(this,Vt)||a),n}).filter(r=>!(this.isStart()&&this.isEnd()&&!r)).join("|")},Kc=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+=($m.has(f)?"\\":"")+f;else if(f!=="\\"){if(f==="["){const[l,s,c,h]=jm(t,u);if(c){i+=l,a=a||s,u+=c-1,r=r||h;continue}}f!=="*"?f!=="?"?i+=f.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(i+=Es,r=!0):(i+=n&&t==="*"?rc:tc,r=!0)}else u===t.length-1?i+="\\\\":o=!0}return[i,Yr(t),!!r,a]},Oe(gt,Yt);let qn=gt;const lt=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $n(t),!(!r.nocomment&&t.charAt(0)==="#")&&new Hn(t,r).match(e)},qm=/^\*+([^+@!?\*\[\(]*)$/,Hm=e=>t=>!t.startsWith(".")&&t.endsWith(e),Vm=e=>t=>t.endsWith(e),Wm=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Gm=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Km=/^\*+\.\*+$/,zm=e=>!e.startsWith(".")&&e.includes("."),Xm=e=>e!=="."&&e!==".."&&e.includes("."),Ym=/^\.\*+$/,Jm=e=>e!=="."&&e!==".."&&e.startsWith("."),Zm=/^\*+$/,Qm=e=>e.length!==0&&!e.startsWith("."),eb=e=>e.length!==0&&e!=="."&&e!=="..",tb=/^\?+([^+@!?\*\[\(]*)?$/,rb=e=>{let[t,r=""]=e;const n=nc([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},nb=e=>{let[t,r=""]=e;const n=ic([t]);return r?(r=r.toLowerCase(),o=>n(o)&&o.toLowerCase().endsWith(r)):n},ib=e=>{let[t,r=""]=e;const n=ic([t]);return r?o=>n(o)&&o.endsWith(r):n},ob=e=>{let[t,r=""]=e;const n=nc([t]);return r?o=>n(o)&&o.endsWith(r):n},nc=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&!n.startsWith(".")},ic=e=>{let[t]=e;const r=t.length;return n=>n.length===r&&n!=="."&&n!==".."},oc=typeof me=="object"&&me?typeof me.env=="object"&&me.env&&me.env.__MINIMATCH_TESTING_PLATFORM__||me.platform:"posix";lt.sep=oc==="win32"?"\\":"/";const Et=Symbol("globstar **");lt.GLOBSTAR=Et,lt.filter=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r=>lt(r,e,t)};const xt=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,xt(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:class extends t.Minimatch{constructor(r){super(r,xt(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}))}static defaults(r){return t.defaults(xt(e,r)).Minimatch}},AST:class extends t.AST{constructor(r,n){super(r,n,xt(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,xt(e,n))}},unescape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.unescape(r,xt(e,n))},escape:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.escape(r,xt(e,n))},filter:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.filter(r,xt(e,n))},defaults:r=>t.defaults(xt(e,r)),makeRe:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.makeRe(r,xt(e,n))},braceExpand:function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.braceExpand(r,xt(e,n))},match:function(r,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.match(r,n,xt(e,o))},sep:t.sep,GLOBSTAR:Et})};const sc=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $n(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Lm(e)};lt.braceExpand=sc,lt.makeRe=function(e){return new Hn(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},lt.match=function(e,t){const r=new Hn(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 ac=/[?*]|[+@!]\(.*?\)|\[|\]/;class Hn{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]:{};$n(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||oc,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]!=="?"&&ac.test(i[2])||ac.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 x=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),A=!x&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),g=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),d=A?3:x?0:void 0,p=!g&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3])?3:g?0:void 0;if(typeof d=="number"&&typeof p=="number"){const[y,v]=[t[d],r[p]];y.toLowerCase()===v.toLowerCase()&&(r[p]=y,p>d?r=r.slice(p):d>p&&(t=t.slice(d)))}}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===Et){this.debug("GLOBSTAR",[r,s,c]);var h=a,b=u+1;if(b===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(;h<f;){var m=t[h];if(this.debug(`
43
- globstar while`,t,h,r,b,m),this.matchOne(t.slice(h),r.slice(b),n))return this.debug("globstar found match!",h,f,m),!0;if(m==="."||m===".."||!o.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,h,r,b);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug(`
44
- >>> no match, partial?`,t,h,r,b),h!==f))}let x;if(typeof s=="string"?(x=c===s,this.debug("string match",s,c,x)):(x=s.test(c),this.debug("pattern match",s,c,x)),!x)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 sc(this.pattern,this.options)}parse(t){$n(t);const r=this.options;if(t==="**")return Et;if(t==="")return"";let n,o=null;(n=t.match(Zm))?o=r.dot?eb:Qm:(n=t.match(qm))?o=(r.nocase?r.dot?Gm:Wm:r.dot?Vm:Hm)(n[1]):(n=t.match(tb))?o=(r.nocase?r.dot?nb:rb:r.dot?ib:ob)(n):(n=t.match(Km))?o=r.dot?Xm:zm:(n=t.match(Ym))&&(o=Jm);const i=qn.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===Et?Et:s._src});return l.forEach((s,c)=>{const h=l[c+1],b=l[c-1];s===Et&&b!==Et&&(b===void 0?h!==void 0&&h!==Et?l[c+1]="(?:\\/|"+n+"\\/)?"+h:l[c]=n:h===void 0?l[c-1]=b+"(?:\\/|"+n+")?":h!==Et&&(l[c-1]=b+"(?:\\/|\\/"+n+"\\/)"+h,l[c+1]=Et))}),l.filter(s=>s!==Et).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 xs(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 xs(t);return t}function ur(e,t){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:t,headers:e.headers?Pm(e.headers):{},status:e.status,statusText:e.statusText}:t}lt.AST=qn,lt.Minimatch=Hn,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=Yr;const sb=(uc=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(uc.apply(this,e))}catch(r){return Promise.reject(r)}});var uc,As=Fe(635),ab=Fe(829),qt=Fe.n(ab),Nr=function(e){return e.Array="array",e.Object="object",e.Original="original",e}(Nr||{});function Vn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Nr.Original;const n=qt().get(e,t);return r==="array"&&Array.isArray(n)===!1?[n]:r==="object"&&Array.isArray(n)?n[0]:n}function Jr(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 qt().set(o,"multistatus.response",Vn(o,"multistatus.response",Nr.Array)),qt().set(o,"multistatus.response",qt().get(o,"multistatus.response").map(i=>function(a){const u=Object.assign({},a);return u.status?qt().set(u,"status",Vn(u,"status",Nr.Object)):(qt().set(u,"propstat",Vn(u,"propstat",Nr.Object)),qt().set(u,"propstat.prop",Vn(u,"propstat.prop",Nr.Object))),u}(i))),o}(new As.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 Wn(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:jn().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 lc(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 Wn(o,Kr(t),r)}function fc(e){switch(String(e)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(e),10)}}function Ts(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Ss=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 Ts(Ze(o,e),function(i){return et(e,i),Ts(i.text(),function(a){return Ts(Jr(a),function(u){const f=lc(u,t,n);return ur(i,f,n)})})})});function cc(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const ub=hc(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=jn().dirname(a);while(a&&a!=="/");return u}(Kr(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[pc]=="function"){let x=function(A){try{for(;!(f=c.next()).done;)if((A=a(f.value))&&A.then){if(!gc(A))return void A.then(x,s||(s=dt.bind(null,l=new Or,2)));A=A.v}l?dt(l,1,A):l=A}catch(g){dt(l||(l=new Or),2,g)}};var f,l,s,c=i[pc]();if(x(),c.return){var h=function(A){try{f.done||c.return()}catch{}return A};if(l&&l.then)return l.then(h,function(A){throw h(A)});h()}return l}if(!("length"in i))throw new TypeError("Object is not iterable");for(var b=[],m=0;m<i.length;m++)b.push(i[m]);return function(x,A,g){var d,p,y=-1;return function v(T){try{for(;++y<x.length&&(!g||!g());)if((T=A(y))&&T.then){if(!gc(T))return void T.then(v,p||(p=dt.bind(null,d=new Or,2)));T=T.v}d?dt(d,1,T):d=T}catch(P){dt(d||(d=new Or),2,P)}}(),d}(b,function(x){return a(b[x])},u)}(n,function(i){return a=function(){return function(f,l){try{var s=cc(Ss(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,dc(_s(e,i,{...r,recursive:!1}));throw f}()})},(u=function(){if(o)return dc(_s(e,i,{...r,recursive:!1}))}())&&u.then?u.then(a):a();var a,u},function(){return!1})});function hc(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 lb(){}function dc(e,t){return e&&e.then?e.then(lb):Promise.resolve()}const pc=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function dt(e,t,r){if(!e.s){if(r instanceof Or){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 Or=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 gc(e){return e instanceof Or&&1&e.s}const _s=hc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(r.recursive===!0)return ub(e,t,r);const n=Qe({url:Ve(e.remoteURL,(o=He(t),o.endsWith("/")?o:o+"/")),method:"MKCOL"},e,r);var o;return cc(Ze(n,e),function(i){et(e,i)})});var fb=Fe(388),yc=Fe.n(fb);const cb=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}),hb=()=>{},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,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}),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){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}),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){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(n,o){try{var i=(a=Ss(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 Ns(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const 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:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:r.deep?"infinity":"1"}},e,r);return Ns(Ze(n,e),function(o){return et(e,o),Ns(o.text(),function(i){if(!i)throw new Error("Failed parsing directory contents: Empty response");return Ns(Jr(i),function(a){const u=Mf(t);let f=function(l,s,c){let h=arguments.length>3&&arguments[3]!==void 0&&arguments[3],b=arguments.length>4&&arguments[4]!==void 0&&arguments[4];const m=jn().join(s,"/"),{multistatus:{response:x}}=l,A=x.map(g=>{const d=function(y){try{return y.replace(/^https?:\/\/[^\/]+/,"")}catch(v){throw new ct(v,"Failed normalising HREF")}}(g.href),{propstat:{prop:p}}=g;return Wn(p,m==="/"?decodeURIComponent(Kr(d)):Kr(jn().relative(decodeURIComponent(m),decodeURIComponent(d))),h)});return b?A:A.filter(g=>g.basename&&(g.type==="file"||g.filename!==c.replace(/\/$/,"")))}(a,Mf(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)),ur(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 mb=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:[vb]},e,r);return Gn(Ze(n,e),function(o){return et(e,o),Gn(o.text(),function(i){return ur(o,i,r.details)})})});function Gn(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const bb=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 Gn(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 Gn(o.arrayBuffer(),function(a){i=a})},function(){return ur(o,i,r.details)})})}),wb=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:$t.InvalidOutputFormat}},`Invalid output format: ${n}`);return n==="text"?mb(e,t,r):bb(e,t,r)}),vb=e=>e;function Eb(e){return new As.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(mc({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:e}}},"d"))}function mc(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}`]=mc(r[n],t),delete r[n]):/^@_/.test(n)===!1&&(r[`${t}:${n}`]=r[n],delete r[n]));return r}function Rs(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}function bc(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 xb=bc(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 Rs(Ze(o,e),function(i){if(et(e,i),i.status!==204&&i.status!==200)throw xs(i)})}),Ab=bc(function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{refreshToken:n,timeout:o=Tb}=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:Eb(e.contactHref)},e,r);return Rs(Ze(a,e),function(u){return et(e,u),Rs(u.text(),function(f){const l=(h=f,new As.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(h)),s=qt().get(l,"prop.lockdiscovery.activelock.locktoken.href"),c=qt().get(l,"prop.lockdiscovery.activelock.timeout");var h;if(!s)throw xs(u,"No lock token received: ");return{token:s,serverTimeout:c}})})}),Tb="Infinite, Second-4100000000";function Is(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Sb=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 Is(Ze(n,e),function(o){return et(e,o),Is(o.text(),function(i){return Is(Jr(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:fc(c)}:null}catch{}return null}(a);return ur(o,u,t.details)})})})});function Ps(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const _b=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 Ps(Ze(o,e),function(i){return et(e,i),Ps(i.text(),function(a){return Ps(Jr(a),function(u){const f=function(l,s,c){const h={truncated:!1,results:[]};return h.truncated=l.multistatus.response.some(b=>{var m,x;return((x=(b.status||((m=b.propstat)==null?void 0:m.status)).split(" ",3))==null?void 0:x[1])==="507"&&b.href.replace(/\/$/,"").endsWith(He(s).replace(/\/$/,""))}),l.multistatus.response.forEach(b=>{if(b.propstat===void 0)return;const m=b.href.split("/").map(decodeURIComponent).join("/");h.results.push(Wn(b.propstat.prop,m,c))}),h}(u,t,n);return ur(i,f,n)})})})}),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,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 Ob=Fe(172);const 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{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(Yf(s))return s.byteLength;if(Jf(s))return s.length;if(typeof s=="string")return(0,Ob.d)(s);throw new ct({info:{code:$t.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 h=c;if(h.status!==412||i)throw h;return!1}return!0},(f=Ze(u,e))&&f.then||(f=Promise.resolve(f)),l?f.then(l):f;var f,l}),wc=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 Zr(e,t,r){return r?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}const Ib=Fs(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:$t.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 Zr(Ze(u,e),function(f){et(e,f)})});function vc(e,t){var r=e();return r&&r.then?r.then(t):t(r)}const Pb=Fs(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:$t.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 Zr(Ze(u,e),function(f){et(e,f)})});function Fs(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 Fb=Fs(function(e,t,r,n,o){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return Zr(wc(e,t,i),function(a){let u=!1;return vc(function(){if(a.compliance.includes("sabredav-partialupdate"))return Zr(Pb(e,t,r,n,o,i),function(f){return u=!0,f})},function(f){let l=!1;return u?f:vc(function(){if(a.server.includes("Apache")&&a.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return Zr(Ib(e,t,r,n,o,i),function(s){return l=!0,s})},function(s){if(l)return s;throw new ct({info:{code:$t.NotSupported}},"Not supported")})})})}),Cb="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function Bb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{authType:r=null,remoteBasePath:n,contactHref:o=Cb,ha1:i,headers:a={},httpAgent:u,httpsAgent:f,password:l,token:s,username:c,withCredentials:h}=t;let b=r;b||(b=c||l?ht.Password:ht.None);const m={authType:b,remoteBasePath:n,contactHref:o,ha1:i,headers:Object.assign({},a),httpAgent:u,httpsAgent:f,password:l,remotePath:xm(e),remoteURL:e,token:s,username:c,withCredentials:h};return Wf(m,c,l,s,i),{copyFile:(x,A,g)=>sb(m,x,A,g),createDirectory:(x,A)=>_s(m,x,A),createReadStream:(x,A)=>function(g,d){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const y=new(yc()).PassThrough;return cb(g,d,p).then(v=>{v.pipe(y)}).catch(v=>{y.emit("error",v)}),y}(m,x,A),createWriteStream:(x,A,g)=>function(d,p){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:hb;const T=new(yc()).PassThrough,P={};y.overwrite===!1&&(P["If-None-Match"]="*");const I=Qe({url:Ve(d.remoteURL,He(p)),method:"PUT",headers:P,data:T,maxRedirects:0},d,y);return Ze(I,d).then(N=>et(d,N)).then(N=>{setTimeout(()=>{v(N)},0)}).catch(N=>{T.emit("error",N)}),T}(m,x,A,g),customRequest:(x,A)=>db(m,x,A),deleteFile:(x,A)=>pb(m,x,A),exists:(x,A)=>gb(m,x,A),getDirectoryContents:(x,A)=>yb(m,x,A),getFileContents:(x,A)=>wb(m,x,A),getFileDownloadLink:x=>function(A,g){let d=Ve(A.remoteURL,He(g));const p=/^https:/i.test(d)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=Hf(A.headers.Authorization.replace(/^Basic /i,"").trim());d=d.replace(/^https?:\/\//,`${p}://${y}@`);break}default:throw new ct({info:{code:$t.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return d}(m,x),getFileUploadLink:x=>function(A,g){let d=`${Ve(A.remoteURL,He(g))}?Content-Type=application/octet-stream`;const p=/^https:/i.test(d)?"https":"http";switch(A.authType){case ht.None:break;case ht.Password:{const y=Hf(A.headers.Authorization.replace(/^Basic /i,"").trim());d=d.replace(/^https?:\/\//,`${p}://${y}@`);break}default:throw new ct({info:{code:$t.LinkUnsupportedAuthType}},`Unsupported auth type for file link: ${A.authType}`)}return d}(m,x),getHeaders:()=>Object.assign({},m.headers),getQuota:x=>Sb(m,x),lock:(x,A)=>Ab(m,x,A),moveFile:(x,A,g)=>Nb(m,x,A,g),putFileContents:(x,A,g)=>Rb(m,x,A,g),partialUpdateFileContents:(x,A,g,d,p)=>Fb(m,x,A,g,d,p),getDAVCompliance:x=>wc(m,x),search:(x,A)=>_b(m,x,A),setHeaders:x=>{m.headers=Object.assign({},x)},stat:(x,A)=>Ss(m,x,A),unlock:(x,A,g)=>xb(m,x,A,g)}}vt.hT,vt.O4,vt.Kd,vt.YK;var Lb=vt.UU;vt.Gu,vt.ky;var Ub=vt.h4,jb=vt.ch;vt.hq,vt.i5;const ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).slice(1));function kb(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 Cs;const Mb=new Uint8Array(16);function Db(){if(!Cs){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Cs=crypto.getRandomValues.bind(crypto)}return Cs(Mb)}var Ec={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function $b(e,t,r){var o;if(Ec.randomUUID&&!e)return Ec.randomUUID();e=e||{};const n=e.random??((o=e.rng)==null?void 0:o.call(e))??Db();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,kb(n)}var Bs={},Ls={},xc;function Us(){return xc||(xc=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 h=s.length;for(let b=0;b<h;b++)c.push(s[b]);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 h=0;h<c;h++)l==="strict"?u[s[h]]=[f[s[h]]]:u[s[h]]=f[s[h]]}},e.getValue=function(u){return e.isExist(u)?u:""},e.isName=a,e.getAllMatches=i,e.nameRegexp=n}(Ls)),Ls}var Ac;function Tc(){if(Ac)return Bs;Ac=1;const e=Us(),t={allowBooleanAttributes:!1,unpairedTags:[]};Bs.validate=function(g,d){d=Object.assign({},t,d);const p=[];let y=!1,v=!1;g[0]==="\uFEFF"&&(g=g.substr(1));for(let T=0;T<g.length;T++)if(g[T]==="<"&&g[T+1]==="?"){if(T+=2,T=n(g,T),T.err)return T}else if(g[T]==="<"){let P=T;if(T++,g[T]==="!"){T=o(g,T);continue}else{let I=!1;g[T]==="/"&&(I=!0,T++);let N="";for(;T<g.length&&g[T]!==">"&&g[T]!==" "&&g[T]!==" "&&g[T]!==`
45
- `&&g[T]!=="\r";T++)N+=g[T];if(N=N.trim(),N[N.length-1]==="/"&&(N=N.substring(0,N.length-1),T--),!m(N)){let L;return N.trim().length===0?L="Invalid space after '<'.":L="Tag '"+N+"' is an invalid name.",h("InvalidTag",L,x(g,T))}const j=u(g,T);if(j===!1)return h("InvalidAttr","Attributes for '"+N+"' have open quote.",x(g,T));let G=j.value;if(T=j.index,G[G.length-1]==="/"){const L=T-G.length;G=G.substring(0,G.length-1);const D=l(G,d);if(D===!0)y=!0;else return h(D.err.code,D.err.msg,x(g,L+D.err.line))}else if(I)if(j.tagClosed){if(G.trim().length>0)return h("InvalidTag","Closing tag '"+N+"' can't have attributes or invalid starting.",x(g,P));if(p.length===0)return h("InvalidTag","Closing tag '"+N+"' has not been opened.",x(g,P));{const L=p.pop();if(N!==L.tagName){let D=x(g,L.tagStartPos);return h("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+D.line+", col "+D.col+") instead of closing tag '"+N+"'.",x(g,P))}p.length==0&&(v=!0)}}else return h("InvalidTag","Closing tag '"+N+"' doesn't have proper closing.",x(g,T));else{const L=l(G,d);if(L!==!0)return h(L.err.code,L.err.msg,x(g,T-G.length+L.err.line));if(v===!0)return h("InvalidXml","Multiple possible root nodes found.",x(g,T));d.unpairedTags.indexOf(N)!==-1||p.push({tagName:N,tagStartPos:P}),y=!0}for(T++;T<g.length;T++)if(g[T]==="<")if(g[T+1]==="!"){T++,T=o(g,T);continue}else if(g[T+1]==="?"){if(T=n(g,++T),T.err)return T}else break;else if(g[T]==="&"){const L=c(g,T);if(L==-1)return h("InvalidChar","char '&' is not expected.",x(g,T));T=L}else if(v===!0&&!r(g[T]))return h("InvalidXml","Extra text at the end",x(g,T));g[T]==="<"&&T--}}else{if(r(g[T]))continue;return h("InvalidChar","char '"+g[T]+"' is not expected.",x(g,T))}if(y){if(p.length==1)return h("InvalidTag","Unclosed tag '"+p[0].tagName+"'.",x(g,p[0].tagStartPos));if(p.length>0)return h("InvalidXml","Invalid '"+JSON.stringify(p.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return h("InvalidXml","Start tag expected.",1);return!0};function r(g){return g===" "||g===" "||g===`
46
- `||g==="\r"}function n(g,d){const p=d;for(;d<g.length;d++)if(g[d]=="?"||g[d]==" "){const y=g.substr(p,d-p);if(d>5&&y==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",x(g,d));if(g[d]=="?"&&g[d+1]==">"){d++;break}else continue}return d}function o(g,d){if(g.length>d+5&&g[d+1]==="-"&&g[d+2]==="-"){for(d+=3;d<g.length;d++)if(g[d]==="-"&&g[d+1]==="-"&&g[d+2]===">"){d+=2;break}}else if(g.length>d+8&&g[d+1]==="D"&&g[d+2]==="O"&&g[d+3]==="C"&&g[d+4]==="T"&&g[d+5]==="Y"&&g[d+6]==="P"&&g[d+7]==="E"){let p=1;for(d+=8;d<g.length;d++)if(g[d]==="<")p++;else if(g[d]===">"&&(p--,p===0))break}else if(g.length>d+9&&g[d+1]==="["&&g[d+2]==="C"&&g[d+3]==="D"&&g[d+4]==="A"&&g[d+5]==="T"&&g[d+6]==="A"&&g[d+7]==="["){for(d+=8;d<g.length;d++)if(g[d]==="]"&&g[d+1]==="]"&&g[d+2]===">"){d+=2;break}}return d}const i='"',a="'";function u(g,d){let p="",y="",v=!1;for(;d<g.length;d++){if(g[d]===i||g[d]===a)y===""?y=g[d]:y!==g[d]||(y="");else if(g[d]===">"&&y===""){v=!0;break}p+=g[d]}return y!==""?!1:{value:p,index:d,tagClosed:v}}const f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function l(g,d){const p=e.getAllMatches(g,f),y={};for(let v=0;v<p.length;v++){if(p[v][1].length===0)return h("InvalidAttr","Attribute '"+p[v][2]+"' has no space in starting.",A(p[v]));if(p[v][3]!==void 0&&p[v][4]===void 0)return h("InvalidAttr","Attribute '"+p[v][2]+"' is without value.",A(p[v]));if(p[v][3]===void 0&&!d.allowBooleanAttributes)return h("InvalidAttr","boolean attribute '"+p[v][2]+"' is not allowed.",A(p[v]));const T=p[v][2];if(!b(T))return h("InvalidAttr","Attribute '"+T+"' is an invalid name.",A(p[v]));if(!y.hasOwnProperty(T))y[T]=1;else return h("InvalidAttr","Attribute '"+T+"' is repeated.",A(p[v]))}return!0}function s(g,d){let p=/\d/;for(g[d]==="x"&&(d++,p=/[\da-fA-F]/);d<g.length;d++){if(g[d]===";")return d;if(!g[d].match(p))break}return-1}function c(g,d){if(d++,g[d]===";")return-1;if(g[d]==="#")return d++,s(g,d);let p=0;for(;d<g.length;d++,p++)if(!(g[d].match(/\w/)&&p<20)){if(g[d]===";")break;return-1}return d}function h(g,d,p){return{err:{code:g,msg:d,line:p.line||p,col:p.col}}}function b(g){return e.isName(g)}function m(g){return e.isName(g)}function x(g,d){const p=g.substring(0,d).split(/\r?\n/);return{line:p.length,col:p[p.length-1].length+1}}function A(g){return g.startIndex+g[1].length}return Bs}var Kn={},Sc;function qb(){if(Sc)return Kn;Sc=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 Kn.buildOptions=t,Kn.defaultOptions=e,Kn}var js,_c;function Hb(){if(_c)return js;_c=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 js=e,js}var ks,Nc;function Vb(){if(Nc)return ks;Nc=1;const e=Us();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 h=1,b=!1,m=!1,x="";for(;s<l.length;s++)if(l[s]==="<"&&!m){if(b&&o(l,s)){s+=7;let A,g;[A,g,s]=r(l,s+1),g.indexOf("&")===-1&&(c[f(A)]={regx:RegExp(`&${A};`,"g"),val:g})}else if(b&&i(l,s))s+=8;else if(b&&a(l,s))s+=8;else if(b&&u(l,s))s+=9;else if(n)m=!0;else throw new Error("Invalid DOCTYPE");h++,x=""}else if(l[s]===">"){if(m?l[s-1]==="-"&&l[s-2]==="-"&&(m=!1,h--):h--,h===0)break}else l[s]==="["?b=!0:x+=l[s];if(h!==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 h=l[s++];let b="";for(;s<l.length&&l[s]!==h;s++)b+=l[s];return[c,b,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 ks=t,ks}var Ms,Oc;function Wb(){if(Oc)return Ms;Oc=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;let f=a.trim();if(u.skipLike!==void 0&&u.skipLike.test(f))return a;if(a==="0")return 0;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 h=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 b=Number(f),m=""+b;return m.search(/[eE]/)!==-1?u.eNotation?b:a:f.indexOf(".")!==-1?m==="0"&&h===""||m===h||s&&m==="-"+h?b:a:c?h===m||s+h===m?b:a:f===m||f===s+m?b: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 Ms=n,Ms}var Ds,Rc;function Ic(){if(Rc)return Ds;Rc=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 Ds=e,Ds}var $s,Pc;function Gb(){if(Pc)return $s;Pc=1;const e=Us(),t=Hb(),r=Vb(),n=Wb(),o=Ic();class i{constructor(T){this.options=T,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},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=x,this.replaceEntitiesValue=b,this.readStopNodeData=p,this.saveTextToParentTag=m,this.addChild=h,this.ignoreAttributesFn=o(this.options.ignoreAttributes)}}function a(v){const T=Object.keys(v);for(let P=0;P<T.length;P++){const I=T[P];this.lastEntities[I]={regex:new RegExp("&"+I+";","g"),val:v[I]}}}function u(v,T,P,I,N,j,G){if(v!==void 0&&(this.options.trimValues&&!I&&(v=v.trim()),v.length>0)){G||(v=this.replaceEntitiesValue(v));const L=this.options.tagValueProcessor(T,v,P,N,j);return L==null?v:typeof L!=typeof v||L!==v?L:this.options.trimValues?y(v,this.options.parseTagValue,this.options.numberParseOptions):v.trim()===v?y(v,this.options.parseTagValue,this.options.numberParseOptions):v}}function f(v){if(this.options.removeNSPrefix){const T=v.split(":"),P=v.charAt(0)==="/"?"/":"";if(T[0]==="xmlns")return"";T.length===2&&(v=P+T[1])}return v}const l=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function s(v,T,P){if(this.options.ignoreAttributes!==!0&&typeof v=="string"){const I=e.getAllMatches(v,l),N=I.length,j={};for(let G=0;G<N;G++){const L=this.resolveNameSpace(I[G][1]);if(this.ignoreAttributesFn(L,T))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,T);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(v){v=v.replace(/\r\n?/g,`
47
- `);const T=new t("!xml");let P=T,I="",N="";for(let j=0;j<v.length;j++)if(v[j]==="<")if(v[j+1]==="/"){const L=g(v,">",j,"Closing Tag is not closed.");let D=v.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,N));const oe=N.substring(N.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=N.lastIndexOf(".",N.lastIndexOf(".")-1),this.tagsNodeStack.pop()):re=N.lastIndexOf("."),N=N.substring(0,re),P=this.tagsNodeStack.pop(),I="",j=L}else if(v[j+1]==="?"){let L=d(v,j,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");if(I=this.saveTextToParentTag(I,P,N),!(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,N,L.tagName)),this.addChild(P,D,N)}j=L.closeIndex+1}else if(v.substr(j+1,3)==="!--"){const L=g(v,"-->",j+4,"Comment is not closed.");if(this.options.commentPropName){const D=v.substring(j+4,L-2);I=this.saveTextToParentTag(I,P,N),P.add(this.options.commentPropName,[{[this.options.textNodeName]:D}])}j=L}else if(v.substr(j+1,2)==="!D"){const L=r(v,j);this.docTypeEntities=L.entities,j=L.i}else if(v.substr(j+1,2)==="!["){const L=g(v,"]]>",j,"CDATA is not closed.")-2,D=v.substring(j+9,L);I=this.saveTextToParentTag(I,P,N);let oe=this.parseTextData(D,P.tagname,N,!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=d(v,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,N,!1));const ge=P;if(ge&&this.options.unpairedTags.indexOf(ge.tagname)!==-1&&(P=this.tagsNodeStack.pop(),N=N.substring(0,N.lastIndexOf("."))),D!==T.tagname&&(N+=N?"."+D:D),this.isItStopNode(this.options.stopNodes,N,D)){let ce="";if(re.length>0&&re.lastIndexOf("/")===re.length-1)D[D.length-1]==="/"?(D=D.substr(0,D.length-1),N=N.substr(0,N.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(v,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,N,D)),ce&&(ce=this.parseTextData(ce,D,N,!0,he,!0,!0)),N=N.substr(0,N.lastIndexOf(".")),Ee.add(this.options.textNodeName,ce),this.addChild(P,Ee,N)}else{if(re.length>0&&re.lastIndexOf("/")===re.length-1){D[D.length-1]==="/"?(D=D.substr(0,D.length-1),N=N.substr(0,N.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,N,D)),this.addChild(P,ce,N),N=N.substr(0,N.lastIndexOf("."))}else{const ce=new t(D);this.tagsNodeStack.push(P),D!==re&&he&&(ce[":@"]=this.buildAttributesMap(re,N,D)),this.addChild(P,ce,N),P=ce}I="",j=fe}}else I+=v[j];return T.child};function h(v,T,P){const I=this.options.updateTag(T.tagname,P,T[":@"]);I===!1||(typeof I=="string"&&(T.tagname=I),v.addChild(T))}const b=function(v){if(this.options.processEntities){for(let T in this.docTypeEntities){const P=this.docTypeEntities[T];v=v.replace(P.regx,P.val)}for(let T in this.lastEntities){const P=this.lastEntities[T];v=v.replace(P.regex,P.val)}if(this.options.htmlEntities)for(let T in this.htmlEntities){const P=this.htmlEntities[T];v=v.replace(P.regex,P.val)}v=v.replace(this.ampEntity.regex,this.ampEntity.val)}return v};function m(v,T,P,I){return v&&(I===void 0&&(I=T.child.length===0),v=this.parseTextData(v,T.tagname,P,!1,T[":@"]?Object.keys(T[":@"]).length!==0:!1,I),v!==void 0&&v!==""&&T.add(this.options.textNodeName,v),v=""),v}function x(v,T,P){const I="*."+P;for(const N in v){const j=v[N];if(I===j||T===j)return!0}return!1}function A(v,T,P=">"){let I,N="";for(let j=T;j<v.length;j++){let G=v[j];if(I)G===I&&(I="");else if(G==='"'||G==="'")I=G;else if(G===P[0])if(P[1]){if(v[j+1]===P[1])return{data:N,index:j}}else return{data:N,index:j};else G===" "&&(G=" ");N+=G}}function g(v,T,P,I){const N=v.indexOf(T,P);if(N===-1)throw new Error(I);return N+T.length-1}function d(v,T,P,I=">"){const N=A(v,T+1,I);if(!N)return;let j=N.data;const G=N.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!==N.data.substr(he+1))}return{tagName:D,tagExp:j,closeIndex:G,attrExpPresent:oe,rawTagName:re}}function p(v,T,P){const I=P;let N=1;for(;P<v.length;P++)if(v[P]==="<")if(v[P+1]==="/"){const j=g(v,">",P,`${T} is not closed`);if(v.substring(P+2,j).trim()===T&&(N--,N===0))return{tagContent:v.substring(I,P),i:j};P=j}else if(v[P+1]==="?")P=g(v,"?>",P+1,"StopNode is not closed.");else if(v.substr(P+1,3)==="!--")P=g(v,"-->",P+3,"StopNode is not closed.");else if(v.substr(P+1,2)==="![")P=g(v,"]]>",P,"StopNode is not closed.")-2;else{const j=d(v,P,">");j&&((j&&j.tagName)===T&&j.tagExp[j.tagExp.length-1]!=="/"&&N++,P=j.closeIndex)}}function y(v,T,P){if(T&&typeof v=="string"){const I=v.trim();return I==="true"?!0:I==="false"?!1:n(v,P)}else return e.isExist(v)?v:""}return $s=i,$s}var qs={},Fc;function Kb(){if(Fc)return qs;Fc=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],h=r(c);let b="";if(u===void 0?b=h:b=u+"."+h,h===a.textNodeName)f===void 0?f=c[h]:f+=""+c[h];else{if(h===void 0)continue;if(c[h]){let m=t(c[h],a,b);const x=o(m,a);c[":@"]?n(m,c[":@"],b,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[h]!==void 0&&l.hasOwnProperty(h)?(Array.isArray(l[h])||(l[h]=[l[h]]),l[h].push(m)):a.isArray(h,b,x)?l[h]=[m]:l[h]=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 h=l[c];f.isArray(h,u+"."+h,!0,!0)?i[h]=[a[h]]:i[h]=a[h]}}}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 qs.prettify=e,qs}var Hs,Cc;function zb(){if(Cc)return Hs;Cc=1;const{buildOptions:e}=qb(),t=Gb(),{prettify:r}=Kb(),n=Tc();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 Hs=o,Hs}var Vs,Bc;function Xb(){if(Bc)return Vs;Bc=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="",h=!1;for(let b=0;b<u.length;b++){const m=u[b],x=n(m);if(x===void 0)continue;let A="";if(l.length===0?A=x:A=`${l}.${x}`,x===f.textNodeName){let v=m[x];i(A,f)||(v=f.tagValueProcessor(x,v),v=a(v,f)),h&&(c+=s),c+=v,h=!1;continue}else if(x===f.cdataPropName){h&&(c+=s),c+=`<![CDATA[${m[x][0][f.textNodeName]}]]>`,h=!1;continue}else if(x===f.commentPropName){c+=s+`<!--${m[x][0][f.textNodeName]}-->`,h=!0;continue}else if(x[0]==="?"){const v=o(m[":@"],f),T=x==="?xml"?"":s;let P=m[x][0][f.textNodeName];P=P.length!==0?" "+P:"",c+=T+`<${x}${P}${v}?>`,h=!0;continue}let g=s;g!==""&&(g+=f.indentBy);const d=o(m[":@"],f),p=s+`<${x}${d}`,y=r(m[x],f,A,g);f.unpairedTags.indexOf(x)!==-1?f.suppressUnpairedNode?c+=p+">":c+=p+"/>":(!y||y.length===0)&&f.suppressEmptyNode?c+=p+"/>":y&&y.endsWith(">")?c+=p+`>${y}${s}</${x}>`:(c+=p+">",y&&s!==""&&(y.includes("/>")||y.includes("</"))?c+=s+f.indentBy+y+s:c+=y,c+=`</${x}>`),h=!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 Vs=t,Vs}var Ws,Lc;function Yb(){if(Lc)return Ws;Lc=1;const e=Xb(),t=Ic(),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 h=l.join(".");for(let b in u)if(Object.prototype.hasOwnProperty.call(u,b))if(typeof u[b]>"u")this.isAttribute(b)&&(c+="");else if(u[b]===null)this.isAttribute(b)||b===this.options.cdataPropName?c+="":b[0]==="?"?c+=this.indentate(f)+"<"+b+"?"+this.tagEndChar:c+=this.indentate(f)+"<"+b+"/"+this.tagEndChar;else if(u[b]instanceof Date)c+=this.buildTextValNode(u[b],b,"",f);else if(typeof u[b]!="object"){const m=this.isAttribute(b);if(m&&!this.ignoreAttributesFn(m,h))s+=this.buildAttrPairStr(m,""+u[b]);else if(!m)if(b===this.options.textNodeName){let x=this.options.tagValueProcessor(b,""+u[b]);c+=this.replaceEntitiesValue(x)}else c+=this.buildTextValNode(u[b],b,"",f)}else if(Array.isArray(u[b])){const m=u[b].length;let x="",A="";for(let g=0;g<m;g++){const d=u[b][g];if(!(typeof d>"u"))if(d===null)b[0]==="?"?c+=this.indentate(f)+"<"+b+"?"+this.tagEndChar:c+=this.indentate(f)+"<"+b+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){const p=this.j2x(d,f+1,l.concat(b));x+=p.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(A+=p.attrStr)}else x+=this.processTextOrObjNode(d,b,f,l);else if(this.options.oneListGroup){let p=this.options.tagValueProcessor(b,d);p=this.replaceEntitiesValue(p),x+=p}else x+=this.buildTextValNode(d,b,"",f)}this.options.oneListGroup&&(x=this.buildObjectNode(x,b,A,f)),c+=x}else if(this.options.attributesGroupName&&b===this.options.attributesGroupName){const m=Object.keys(u[b]),x=m.length;for(let A=0;A<x;A++)s+=this.buildAttrPairStr(m[A],""+u[b][m[A]])}else c+=this.processTextOrObjNode(u[b],b,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,h="";return f[0]==="?"&&(h="?",c=""),(l||l==="")&&u.indexOf("<")===-1?this.indentate(s)+"<"+f+l+h+">"+u+c:this.options.commentPropName!==!1&&f===this.options.commentPropName&&h.length===0?this.indentate(s)+`<!--${u}-->`+this.newLine:this.indentate(s)+"<"+f+l+h+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 Ws=n,Ws}var Gs,Uc;function Jb(){if(Uc)return Gs;Uc=1;const e=Tc(),t=zb(),r=Yb();return Gs={XMLParser:t,XMLValidator:e,XMLBuilder:r},Gs}var Ks=Jb();const zs=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t.includes(r)?[r,n||""]:[ir.DavNamespace.includes(r)?`d:${r}`:`oc:${r}`,n||""])),jc=(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=zs(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":zs(r,[])}}};return new Ks.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(f)},Zb=e=>{const t={"d:propertyupdate":{"d:set":{"d:prop":zs(e,[])},"@@xmlns:d":"DAV:","@@xmlns:oc":"http://owncloud.org/ns"}};return new Ks.XMLBuilder({format:!0,ignoreAttributes:!1,attributeNamePrefix:"@@",suppressEmptyNode:!0}).build(t)},Qb=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},e1=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 Ub(e)).multistatus.response.map(({href:n,propstat:o})=>{const i={...jb(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})},t1=e=>{const t=new Ks.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 r1{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=Lb(this.davPath,{}),this.headers=r,this.extraProps=[]}mkcol(t,r={}){return this.request(t,{method:kt.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:kt.propfind,data:jc(n,{extraProps:this.extraProps}),headers:a,...i});return u!=null&&u.length&&(u[0].tusSupport=Qb(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:kt.report,data:jc(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,En(r));return this.request(t,{method:kt.copy,headers:{...o,Destination:a,overwrite:n?"T":"F"},...i})}move(t,r,{overwrite:n=!1,headers:o={},...i}={}){const a=Se(this.davPath,En(r));return this.request(t,{method:kt.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:kt.put,data:r,headers:f,onUploadProgress:o,...u})}delete(t,r={}){return this.request(t,{method:kt.delete,...r})}propPatch(t,r,n={}){const o=Zb(r);return this.request(t,{method:kt.proppatch,data:o,...n})}getFileUrl(t){return Se(this.davPath,En(t))}buildHeaders(t={}){return{"Content-Type":"application/xml; charset=utf-8","X-Requested-With":"XMLHttpRequest","X-Request-ID":$b(),...this.headers&&{...this.headers()},...t}}async request(t,r){const n=Se(this.davPath,En(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 e1(u)}return{body:a,status:i.status,result:i}}catch(i){const{response:a}=i,u=await a.text(),f=t1(u);throw new Wd(f.message,f.errorCode,a,a.status)}}}const n1=(e,t)=>({async listFileVersions(r,n={}){const[o,...i]=await e.propfind(Se("meta",r,"v",{leadingSlash:!0}),n);return i.map(a=>Er(a,e.extraProps))}}),i1=(e,t)=>({setFavorite(r,{path:n},o,i={}){const a={[ae.IsFavorite]:o?"true":"false"};return e.propPatch(Se(r.webDavPath,n),a,i)}}),o1=(e,t)=>({listFavoriteFiles({davProperties:r=ir.Default,username:n="",...o}={}){return e.report(Se("files",n),{properties:r,filterRules:{favorite:1},...o})}}),s1=(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 r1({baseUrl:e,headers:t}),i=D=>{o.extraProps.push(D)},a=mm(o),{getPathForFileId:u}=a,f=lm(o,a),{listFiles:l}=f,s=sm(f),{getFileInfo:c}=s,{createFolder:h}=im(o,s),b=om(o,n),{getFileContents:m}=b,{putFileContents:x}=cm(o,s),{getFileUrl:A,revokeUrl:g}=am(o,b,n),{getPublicFileUrl:d}=um(o),{copyFiles:p}=nm(o),{moveFiles:y}=fm(o),{deleteFile:v}=hm(o),{restoreFile:T}=dm(o),{listFileVersions:P}=n1(o),{restoreFileVersion:I}=pm(o),{clearTrashBin:N}=gm(o),{search:j}=ym(o),{listFavoriteFiles:G}=o1(o),{setFavorite:L}=i1(o);return{copyFiles:p,createFolder:h,deleteFile:v,restoreFile:T,restoreFileVersion:I,getFileContents:m,getFileInfo:c,getFileUrl:A,getPublicFileUrl:d,getPathForFileId:u,listFiles:l,listFileVersions:P,moveFiles:y,putFileContents:x,revokeUrl:g,clearTrashBin:N,search:j,listFavoriteFiles:G,setFavorite:L,registerExtraProp:i}};let Qr;self.onmessage=async e=>{const{topic:t,data:r}=JSON.parse(e.data);if(t==="tokenUpdate"&&Qr){const m=Qr.Authorization;m!=null&&m.toString().startsWith("Bearer")&&(Qr.Authorization=r.accessToken);return}const{baseUrl:n,headers:o,space:i,resources:a,concurrentRequests:u}=r;Qr=o;const f=s1(n,()=>Qr),l=[],s=[],c=new eh({concurrency:u}),h=m=>t==="fileListDelete"?f.deleteFile(i,{path:m.path}):f.clearTrashBin(i,{id:m.id}),b=a.map(m=>c.add(async()=>{var x;try{const{status:A}=await h(m);if(A===204){l.push(m);return}if(A===423){const{status:g}=await h(m);if(g===204){l.push(m);return}}}catch(A){console.error(A),s.push({resource:m,message:A.message,statusCode:A.statusCode,xReqId:(x=A.response.headers)==null?void 0:x.get("x-request-id")})}}));await Promise.allSettled(b),postMessage(JSON.stringify({successful:l,failed:s}))}})();