@opencloud-eu/web-client 4.2.1 → 4.3.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.
- package/dist/{functions-DSF_kNxK.js → functions-BBrAOhdi.js} +2 -2
- package/dist/{functions-Ff26PgXQ.cjs → functions-C2T1nL62.cjs} +1 -1
- package/dist/{index-JHVTaNRI.js → index-8RyXehLU.js} +1 -8
- package/dist/{index-w54SVXTg.cjs → index-BG-qXJDl.cjs} +2 -2
- package/dist/{index-2zDycGQj.js → index-BfIzVKrn.js} +3 -3
- package/dist/{index-BYVVa_6N.cjs → index-D_FAmyNm.cjs} +6 -6
- package/dist/{index-BnUvwDzR.js → index-Di9dm5GN.js} +2 -2
- package/dist/{index-DgKiY_JM.js → index-GwKxs7Aj.js} +6 -7
- package/dist/{index-Bxm5RQq5.cjs → index-o5kQnO1p.cjs} +1 -1
- package/dist/index-sTep8AuK.cjs +1 -0
- package/dist/src/ocs/capabilities.d.ts +3 -0
- package/dist/{toString-XlfBosfh.js → toString-BMC5nz5v.js} +1 -1
- package/dist/{toString-CgHWCW2N.cjs → toString-CEqk2kJI.cjs} +1 -1
- package/dist/web-client/graph/generated.cjs +1 -1
- package/dist/web-client/graph/generated.js +1 -1
- package/dist/web-client/graph.cjs +1 -1
- package/dist/web-client/graph.js +1 -1
- package/dist/web-client/ocs.cjs +10 -15
- package/dist/web-client/ocs.js +392 -402
- package/dist/web-client/webdav.cjs +1 -1
- package/dist/web-client/webdav.js +3 -3
- package/dist/web-client.cjs +1 -1
- package/dist/web-client.js +6 -6
- package/package.json +1 -1
- package/dist/index-D_NPkUGY.cjs +0 -6
package/dist/web-client/ocs.cjs
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("../toString-CgHWCW2N.cjs"),te=require("../index-D_NPkUGY.cjs");var ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,na=/^\w*$/;function ia(n,o){if(me.isArray(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||me.isSymbol(n)?!0:na.test(n)||!ra.test(n)||o!=null&&n in Object(o)}var aa="Expected a function";function Cr(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(aa);var l=function(){var u=arguments,m=o?o.apply(this,u):u[0],y=l.cache;if(y.has(m))return y.get(m);var A=n.apply(this,u);return l.cache=y.set(m,A)||y,A};return l.cache=new(Cr.Cache||me.MapCache),l}Cr.Cache=me.MapCache;var oa=500;function ua(n){var o=Cr(n,function(u){return l.size===oa&&l.clear(),u}),l=o.cache;return o}var sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fa=/\\(\\)?/g,la=ua(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(sa,function(l,u,m,y){o.push(m?y.replace(fa,"$1"):u||l)}),o});function ca(n,o){return me.isArray(n)?n:ia(n,o)?[n]:la(me.toString(n))}function ha(n){if(typeof n=="string"||me.isSymbol(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function da(n,o){o=ca(o,n);for(var l=0,u=o.length;n!=null&&l<u;)n=n[ha(o[l++])];return l&&l==u?n:void 0}function pa(n,o,l){var u=n==null?void 0:da(n,o);return u===void 0?l:u}const Ri=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),l.searchParams.append("format","json");const u=l.href;return{async getCapabilities(){const m=await o.get(u);return pa(m,"data.ocs.data",{capabilities:null,version:null})}}};var ut={},Ve={exports:{}},Wr;function Dr(){if(Wr)return Ve.exports;Wr=1;var n=typeof Reflect=="object"?Reflect:null,o=n&&typeof n.apply=="function"?n.apply:function(g,T,S){return Function.prototype.apply.call(g,T,S)},l;n&&typeof n.ownKeys=="function"?l=n.ownKeys:Object.getOwnPropertySymbols?l=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:l=function(g){return Object.getOwnPropertyNames(g)};function u(a){console&&console.warn&&console.warn(a)}var m=Number.isNaN||function(g){return g!==g};function y(){y.init.call(this)}Ve.exports=y,Ve.exports.once=c,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var A=10;function v(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(a){if(typeof a!="number"||a<0||m(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");A=a}}),y.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},y.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||m(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function _(a){return a._maxListeners===void 0?y.defaultMaxListeners:a._maxListeners}y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(g){for(var T=[],S=1;S<arguments.length;S++)T.push(arguments[S]);var F=g==="error",d=this._events;if(d!==void 0)F=F&&d.error===void 0;else if(!F)return!1;if(F){var K;if(T.length>0&&(K=T[0]),K instanceof Error)throw K;var X=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw X.context=K,X}var x=d[g];if(x===void 0)return!1;if(typeof x=="function")o(x,this,T);else for(var ee=x.length,re=q(x,ee),S=0;S<ee;++S)o(re[S],this,T);return!0};function B(a,g,T,S){var F,d,K;if(v(T),d=a._events,d===void 0?(d=a._events=Object.create(null),a._eventsCount=0):(d.newListener!==void 0&&(a.emit("newListener",g,T.listener?T.listener:T),d=a._events),K=d[g]),K===void 0)K=d[g]=T,++a._eventsCount;else if(typeof K=="function"?K=d[g]=S?[T,K]:[K,T]:S?K.unshift(T):K.push(T),F=_(a),F>0&&K.length>F&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=a,X.type=g,X.count=K.length,u(X)}return a}y.prototype.addListener=function(g,T){return B(this,g,T,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(g,T){return B(this,g,T,!0)};function C(){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 N(a,g,T){var S={fired:!1,wrapFn:void 0,target:a,type:g,listener:T},F=C.bind(S);return F.listener=T,S.wrapFn=F,F}y.prototype.once=function(g,T){return v(T),this.on(g,N(this,g,T)),this},y.prototype.prependOnceListener=function(g,T){return v(T),this.prependListener(g,N(this,g,T)),this},y.prototype.removeListener=function(g,T){var S,F,d,K,X;if(v(T),F=this._events,F===void 0)return this;if(S=F[g],S===void 0)return this;if(S===T||S.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete F[g],F.removeListener&&this.emit("removeListener",g,S.listener||T));else if(typeof S!="function"){for(d=-1,K=S.length-1;K>=0;K--)if(S[K]===T||S[K].listener===T){X=S[K].listener,d=K;break}if(d<0)return this;d===0?S.shift():H(S,d),S.length===1&&(F[g]=S[0]),F.removeListener!==void 0&&this.emit("removeListener",g,X||T)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(g){var T,S,F;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[g]),this;if(arguments.length===0){var d=Object.keys(S),K;for(F=0;F<d.length;++F)K=d[F],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=S[g],typeof T=="function")this.removeListener(g,T);else if(T!==void 0)for(F=T.length-1;F>=0;F--)this.removeListener(g,T[F]);return this};function P(a,g,T){var S=a._events;if(S===void 0)return[];var F=S[g];return F===void 0?[]:typeof F=="function"?T?[F.listener||F]:[F]:T?L(F):q(F,F.length)}y.prototype.listeners=function(g){return P(this,g,!0)},y.prototype.rawListeners=function(g){return P(this,g,!1)},y.listenerCount=function(a,g){return typeof a.listenerCount=="function"?a.listenerCount(g):V.call(a,g)},y.prototype.listenerCount=V;function V(a){var g=this._events;if(g!==void 0){var T=g[a];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}y.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function q(a,g){for(var T=new Array(g),S=0;S<g;++S)T[S]=a[S];return T}function H(a,g){for(;g+1<a.length;g++)a[g]=a[g+1];a.pop()}function L(a){for(var g=new Array(a.length),T=0;T<g.length;++T)g[T]=a[T].listener||a[T];return g}function c(a,g){return new Promise(function(T,S){function F(K){a.removeListener(g,d),S(K)}function d(){typeof a.removeListener=="function"&&a.removeListener("error",F),T([].slice.call(arguments))}s(a,g,d,{once:!0}),g!=="error"&&E(a,F,{once:!0})})}function E(a,g,T){typeof a.on=="function"&&s(a,"error",g,T)}function s(a,g,T,S){if(typeof a.on=="function")S.once?a.once(g,T):a.on(g,T);else if(typeof a.addEventListener=="function")a.addEventListener(g,function F(d){S.once&&a.removeEventListener(g,F),T(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}return Ve.exports}var Ye={exports:{}},Vr;function Oe(){return Vr||(Vr=1,typeof Object.create=="function"?Ye.exports=function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:Ye.exports=function(o,l){if(l){o.super_=l;var u=function(){};u.prototype=l.prototype,o.prototype=new u,o.prototype.constructor=o}}),Ye.exports}var st,Yr;function xi(){return Yr||(Yr=1,st=Dr().EventEmitter),st}var ft={},Xr;function tt(){return Xr||(Xr=1,(function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o={},l={};l.byteLength=C,l.toByteArray=P,l.fromByteArray=H;for(var u=[],m=[],y=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,_=A.length;v<_;++v)u[v]=A[v],m[A.charCodeAt(v)]=v;m[45]=62,m[95]=63;function B(E){var s=E.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=E.indexOf("=");a===-1&&(a=s);var g=a===s?0:4-a%4;return[a,g]}function C(E){var s=B(E),a=s[0],g=s[1];return(a+g)*3/4-g}function N(E,s,a){return(s+a)*3/4-a}function P(E){var s,a=B(E),g=a[0],T=a[1],S=new y(N(E,g,T)),F=0,d=T>0?g-4:g,K;for(K=0;K<d;K+=4)s=m[E.charCodeAt(K)]<<18|m[E.charCodeAt(K+1)]<<12|m[E.charCodeAt(K+2)]<<6|m[E.charCodeAt(K+3)],S[F++]=s>>16&255,S[F++]=s>>8&255,S[F++]=s&255;return T===2&&(s=m[E.charCodeAt(K)]<<2|m[E.charCodeAt(K+1)]>>4,S[F++]=s&255),T===1&&(s=m[E.charCodeAt(K)]<<10|m[E.charCodeAt(K+1)]<<4|m[E.charCodeAt(K+2)]>>2,S[F++]=s>>8&255,S[F++]=s&255),S}function V(E){return u[E>>18&63]+u[E>>12&63]+u[E>>6&63]+u[E&63]}function q(E,s,a){for(var g,T=[],S=s;S<a;S+=3)g=(E[S]<<16&16711680)+(E[S+1]<<8&65280)+(E[S+2]&255),T.push(V(g));return T.join("")}function H(E){for(var s,a=E.length,g=a%3,T=[],S=16383,F=0,d=a-g;F<d;F+=S)T.push(q(E,F,F+S>d?d:F+S));return g===1?(s=E[a-1],T.push(u[s>>2]+u[s<<4&63]+"==")):g===2&&(s=(E[a-2]<<8)+E[a-1],T.push(u[s>>10]+u[s>>4&63]+u[s<<2&63]+"=")),T.join("")}var L={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */L.read=function(E,s,a,g,T){var S,F,d=T*8-g-1,K=(1<<d)-1,X=K>>1,x=-7,ee=a?T-1:0,re=a?-1:1,ie=E[s+ee];for(ee+=re,S=ie&(1<<-x)-1,ie>>=-x,x+=d;x>0;S=S*256+E[s+ee],ee+=re,x-=8);for(F=S&(1<<-x)-1,S>>=-x,x+=g;x>0;F=F*256+E[s+ee],ee+=re,x-=8);if(S===0)S=1-X;else{if(S===K)return F?NaN:(ie?-1:1)*(1/0);F=F+Math.pow(2,g),S=S-X}return(ie?-1:1)*F*Math.pow(2,S-g)},L.write=function(E,s,a,g,T,S){var F,d,K,X=S*8-T-1,x=(1<<X)-1,ee=x>>1,re=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=g?0:S-1,le=g?1:-1,Z=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,F=x):(F=Math.floor(Math.log(s)/Math.LN2),s*(K=Math.pow(2,-F))<1&&(F--,K*=2),F+ee>=1?s+=re/K:s+=re*Math.pow(2,1-ee),s*K>=2&&(F++,K/=2),F+ee>=x?(d=0,F=x):F+ee>=1?(d=(s*K-1)*Math.pow(2,T),F=F+ee):(d=s*Math.pow(2,ee-1)*Math.pow(2,T),F=0));T>=8;E[a+ie]=d&255,ie+=le,d/=256,T-=8);for(F=F<<T|d,X+=T;X>0;E[a+ie]=F&255,ie+=le,F/=256,X-=8);E[a+ie-le]|=Z*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 s=l,a=L,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;E.Buffer=x,E.SlowBuffer=j,E.INSPECT_MAX_BYTES=50;const T=2147483647;E.kMaxLength=T;const{Uint8Array:S,ArrayBuffer:F,SharedArrayBuffer:d}=globalThis;x.TYPED_ARRAY_SUPPORT=K(),!x.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 K(){try{const f=new S(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,S.prototype),Object.setPrototypeOf(f,e),f.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function X(f){if(f>T)throw new RangeError('The value "'+f+'" is invalid for option "size"');const e=new S(f);return Object.setPrototypeOf(e,x.prototype),e}function x(f,e,t){if(typeof f=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return le(f)}return ee(f,e,t)}x.poolSize=8192;function ee(f,e,t){if(typeof f=="string")return Z(f,e);if(F.isView(f))return oe(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(_e(f,F)||f&&_e(f.buffer,F)||typeof d<"u"&&(_e(f,d)||f&&_e(f.buffer,d)))return ye(f,e,t);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const b=f.valueOf&&f.valueOf();if(b!=null&&b!==f)return x.from(b,e,t);const I=ge(f);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return x.from(f[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}x.from=function(f,e,t){return ee(f,e,t)},Object.setPrototypeOf(x.prototype,S.prototype),Object.setPrototypeOf(x,S);function re(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 ie(f,e,t){return re(f),f<=0?X(f):e!==void 0?typeof t=="string"?X(f).fill(e,t):X(f).fill(e):X(f)}x.alloc=function(f,e,t){return ie(f,e,t)};function le(f){return re(f),X(f<0?0:D(f)|0)}x.allocUnsafe=function(f){return le(f)},x.allocUnsafeSlow=function(f){return le(f)};function Z(f,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=$(f,e)|0;let b=X(t);const I=b.write(f,e);return I!==t&&(b=b.slice(0,I)),b}function ce(f){const e=f.length<0?0:D(f.length)|0,t=X(e);for(let b=0;b<e;b+=1)t[b]=f[b]&255;return t}function oe(f){if(_e(f,S)){const e=new S(f);return ye(e.buffer,e.byteOffset,e.byteLength)}return ce(f)}function ye(f,e,t){if(e<0||f.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let b;return e===void 0&&t===void 0?b=new S(f):t===void 0?b=new S(f,e):b=new S(f,e,t),Object.setPrototypeOf(b,x.prototype),b}function ge(f){if(x.isBuffer(f)){const e=D(f.length)|0,t=X(e);return t.length===0||f.copy(t,0,0,e),t}if(f.length!==void 0)return typeof f.length!="number"||ot(f.length)?X(0):ce(f);if(f.type==="Buffer"&&Array.isArray(f.data))return ce(f.data)}function D(f){if(f>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return f|0}function j(f){return+f!=f&&(f=0),x.alloc(+f)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},x.compare=function(e,t){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),_e(t,S)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let b=e.length,I=t.length;for(let M=0,G=Math.min(b,I);M<G;++M)if(e[M]!==t[M]){b=e[M],I=t[M];break}return b<I?-1:I<b?1:0},x.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}},x.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let b;if(t===void 0)for(t=0,b=0;b<e.length;++b)t+=e[b].length;const I=x.allocUnsafe(t);let M=0;for(b=0;b<e.length;++b){let G=e[b];if(_e(G,S))M+G.length>I.length?(x.isBuffer(G)||(G=x.from(G)),G.copy(I,M)):S.prototype.set.call(I,G,M);else if(x.isBuffer(G))G.copy(I,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=G.length}return I};function $(f,e){if(x.isBuffer(f))return f.length;if(F.isView(f)||_e(f,F))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 t=f.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&t===0)return 0;let I=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return at(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return $r(f).length;default:if(I)return b?-1:at(f).length;e=(""+e).toLowerCase(),I=!0}}x.byteLength=$;function J(f,e,t){let b=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(f||(f="utf8");;)switch(f){case"hex":return ve(this,e,t);case"utf8":case"utf-8":return Q(this,e,t);case"ascii":return se(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return W(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,e,t);default:if(b)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),b=!0}}x.prototype._isBuffer=!0;function O(f,e,t){const b=f[e];f[e]=f[t],f[t]=b}x.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 t=0;t<e;t+=2)O(this,t,t+1);return this},x.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 t=0;t<e;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this},x.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 t=0;t<e;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this},x.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Q(this,0,e):J.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},x.prototype.inspect=function(){let e="";const t=E.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},g&&(x.prototype[g]=x.prototype.inspect),x.prototype.compare=function(e,t,b,I,M){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),b===void 0&&(b=e?e.length:0),I===void 0&&(I=0),M===void 0&&(M=this.length),t<0||b>e.length||I<0||M>this.length)throw new RangeError("out of range index");if(I>=M&&t>=b)return 0;if(I>=M)return-1;if(t>=b)return 1;if(t>>>=0,b>>>=0,I>>>=0,M>>>=0,this===e)return 0;let G=M-I,ne=b-t;const de=Math.min(G,ne),fe=this.slice(I,M),pe=e.slice(t,b);for(let ue=0;ue<de;++ue)if(fe[ue]!==pe[ue]){G=fe[ue],ne=pe[ue];break}return G<ne?-1:ne<G?1:0};function i(f,e,t,b,I){if(f.length===0)return-1;if(typeof t=="string"?(b=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ot(t)&&(t=I?0:f.length-1),t<0&&(t=f.length+t),t>=f.length){if(I)return-1;t=f.length-1}else if(t<0)if(I)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,b)),x.isBuffer(e))return e.length===0?-1:r(f,e,t,b,I);if(typeof e=="number")return e=e&255,typeof S.prototype.indexOf=="function"?I?S.prototype.indexOf.call(f,e,t):S.prototype.lastIndexOf.call(f,e,t):r(f,[e],t,b,I);throw new TypeError("val must be string, number or Buffer")}function r(f,e,t,b,I){let M=1,G=f.length,ne=e.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(f.length<2||e.length<2)return-1;M=2,G/=2,ne/=2,t/=2}function de(pe,ue){return M===1?pe[ue]:pe.readUInt16BE(ue*M)}let fe;if(I){let pe=-1;for(fe=t;fe<G;fe++)if(de(f,fe)===de(e,pe===-1?0:fe-pe)){if(pe===-1&&(pe=fe),fe-pe+1===ne)return pe*M}else pe!==-1&&(fe-=fe-pe),pe=-1}else for(t+ne>G&&(t=G-ne),fe=t;fe>=0;fe--){let pe=!0;for(let ue=0;ue<ne;ue++)if(de(f,fe+ue)!==de(e,ue)){pe=!1;break}if(pe)return fe}return-1}x.prototype.includes=function(e,t,b){return this.indexOf(e,t,b)!==-1},x.prototype.indexOf=function(e,t,b){return i(this,e,t,b,!0)},x.prototype.lastIndexOf=function(e,t,b){return i(this,e,t,b,!1)};function R(f,e,t,b){t=Number(t)||0;const I=f.length-t;b?(b=Number(b),b>I&&(b=I)):b=I;const M=e.length;b>M/2&&(b=M/2);let G;for(G=0;G<b;++G){const ne=parseInt(e.substr(G*2,2),16);if(ot(ne))return G;f[t+G]=ne}return G}function w(f,e,t,b){return We(at(e,f.length-t),f,t,b)}function h(f,e,t,b){return We(Qi(e),f,t,b)}function p(f,e,t,b){return We($r(e),f,t,b)}function U(f,e,t,b){return We(Zi(e,f.length-t),f,t,b)}x.prototype.write=function(e,t,b,I){if(t===void 0)I="utf8",b=this.length,t=0;else if(b===void 0&&typeof t=="string")I=t,b=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(b)?(b=b>>>0,I===void 0&&(I="utf8")):(I=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-t;if((b===void 0||b>M)&&(b=M),e.length>0&&(b<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let G=!1;for(;;)switch(I){case"hex":return R(this,e,t,b);case"utf8":case"utf-8":return w(this,e,t,b);case"ascii":case"latin1":case"binary":return h(this,e,t,b);case"base64":return p(this,e,t,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,b);default:if(G)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),G=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(f,e,t){return e===0&&t===f.length?s.fromByteArray(f):s.fromByteArray(f.slice(e,t))}function Q(f,e,t){t=Math.min(f.length,t);const b=[];let I=e;for(;I<t;){const M=f[I];let G=null,ne=M>239?4:M>223?3:M>191?2:1;if(I+ne<=t){let de,fe,pe,ue;switch(ne){case 1:M<128&&(G=M);break;case 2:de=f[I+1],(de&192)===128&&(ue=(M&31)<<6|de&63,ue>127&&(G=ue));break;case 3:de=f[I+1],fe=f[I+2],(de&192)===128&&(fe&192)===128&&(ue=(M&15)<<12|(de&63)<<6|fe&63,ue>2047&&(ue<55296||ue>57343)&&(G=ue));break;case 4:de=f[I+1],fe=f[I+2],pe=f[I+3],(de&192)===128&&(fe&192)===128&&(pe&192)===128&&(ue=(M&15)<<18|(de&63)<<12|(fe&63)<<6|pe&63,ue>65535&&ue<1114112&&(G=ue))}}G===null?(G=65533,ne=1):G>65535&&(G-=65536,b.push(G>>>10&1023|55296),G=56320|G&1023),b.push(G),I+=ne}return z(b)}const Y=4096;function z(f){const e=f.length;if(e<=Y)return String.fromCharCode.apply(String,f);let t="",b=0;for(;b<e;)t+=String.fromCharCode.apply(String,f.slice(b,b+=Y));return t}function se(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]&127);return b}function k(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]);return b}function ve(f,e,t){const b=f.length;(!e||e<0)&&(e=0),(!t||t<0||t>b)&&(t=b);let I="";for(let M=e;M<t;++M)I+=ea[f[M]];return I}function be(f,e,t){const b=f.slice(e,t);let I="";for(let M=0;M<b.length-1;M+=2)I+=String.fromCharCode(b[M]+b[M+1]*256);return I}x.prototype.slice=function(e,t){const b=this.length;e=~~e,t=t===void 0?b:~~t,e<0?(e+=b,e<0&&(e=0)):e>b&&(e=b),t<0?(t+=b,t<0&&(t=0)):t>b&&(t=b),t<e&&(t=e);const I=this.subarray(e,t);return Object.setPrototypeOf(I,x.prototype),I};function ae(f,e,t){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+e>t)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return I},x.prototype.readUintBE=x.prototype.readUIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e+--t],M=1;for(;t>0&&(M*=256);)I+=this[e+--t]*M;return I},x.prototype.readUint8=x.prototype.readUInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]|this[e+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]<<8|this[e+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},x.prototype.readBigUInt64LE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,M=this[++e]+this[++e]*2**8+this[++e]*2**16+b*2**24;return BigInt(I)+(BigInt(M)<<BigInt(32))}),x.prototype.readBigUInt64BE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],M=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b;return(BigInt(I)<<BigInt(32))+BigInt(M)}),x.prototype.readIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return M*=128,I>=M&&(I-=Math.pow(2,8*t)),I},x.prototype.readIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=t,M=1,G=this[e+--I];for(;I>0&&(M*=256);)G+=this[e+--I]*M;return M*=128,G>=M&&(G-=Math.pow(2,8*t)),G},x.prototype.readInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},x.prototype.readInt16LE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e]|this[e+1]<<8;return b&32768?b|4294901760:b},x.prototype.readInt16BE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e+1]|this[e]<<8;return b&32768?b|4294901760:b},x.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},x.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},x.prototype.readBigInt64LE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(b<<24);return(BigInt(I)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),x.prototype.readBigInt64BE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(I)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b)}),x.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),a.read(this,e,!0,23,4)},x.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),a.read(this,e,!1,23,4)},x.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),a.read(this,e,!0,52,8)},x.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),a.read(this,e,!1,52,8)};function he(f,e,t,b,I,M){if(!x.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>I||e<M)throw new RangeError('"value" argument is out of bounds');if(t+b>f.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=1,G=0;for(this[t]=e&255;++G<b&&(M*=256);)this[t+G]=e/M&255;return t+b},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=b-1,G=1;for(this[t+M]=e&255;--M>=0&&(G*=256);)this[t+M]=e/G&255;return t+b},x.prototype.writeUint8=x.prototype.writeUInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,255,0),this[t]=e&255,t+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function we(f,e,t,b,I){Kr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return f[t++]=G,G=G>>8,f[t++]=G,G=G>>8,f[t++]=G,G=G>>8,f[t++]=G,t}function Be(f,e,t,b,I){Kr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t+7]=M,M=M>>8,f[t+6]=M,M=M>>8,f[t+5]=M,M=M>>8,f[t+4]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return f[t+3]=G,G=G>>8,f[t+2]=G,G=G>>8,f[t+1]=G,G=G>>8,f[t]=G,t+8}x.prototype.writeBigUInt64LE=xe(function(e,t=0){return we(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=xe(function(e,t=0){return Be(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=0,G=1,ne=0;for(this[t]=e&255;++M<b&&(G*=256);)e<0&&ne===0&&this[t+M-1]!==0&&(ne=1),this[t+M]=(e/G>>0)-ne&255;return t+b},x.prototype.writeIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=b-1,G=1,ne=0;for(this[t+M]=e&255;--M>=0&&(G*=256);)e<0&&ne===0&&this[t+M+1]!==0&&(ne=1),this[t+M]=(e/G>>0)-ne&255;return t+b},x.prototype.writeInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},x.prototype.writeInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},x.prototype.writeInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},x.prototype.writeBigInt64LE=xe(function(e,t=0){return we(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=xe(function(e,t=0){return Be(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(f,e,t,b,I,M){if(t+b>f.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ae(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,4),a.write(f,e,t,b,23,4),t+4}x.prototype.writeFloatLE=function(e,t,b){return Ae(this,e,t,!0,b)},x.prototype.writeFloatBE=function(e,t,b){return Ae(this,e,t,!1,b)};function Te(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,8),a.write(f,e,t,b,52,8),t+8}x.prototype.writeDoubleLE=function(e,t,b){return Te(this,e,t,!0,b)},x.prototype.writeDoubleBE=function(e,t,b){return Te(this,e,t,!1,b)},x.prototype.copy=function(e,t,b,I){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(b||(b=0),!I&&I!==0&&(I=this.length),t>=e.length&&(t=e.length),t||(t=0),I>0&&I<b&&(I=b),I===b||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),e.length-t<I-b&&(I=e.length-t+b);const M=I-b;return this===e&&typeof S.prototype.copyWithin=="function"?this.copyWithin(t,b,I):S.prototype.set.call(e,this.subarray(b,I),t),M},x.prototype.fill=function(e,t,b,I){if(typeof e=="string"){if(typeof t=="string"?(I=t,t=0,b=this.length):typeof b=="string"&&(I=b,b=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!x.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(e.length===1){const G=e.charCodeAt(0);(I==="utf8"&&G<128||I==="latin1")&&(e=G)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<b)throw new RangeError("Out of range index");if(b<=t)return this;t=t>>>0,b=b===void 0?this.length:b>>>0,e||(e=0);let M;if(typeof e=="number")for(M=t;M<b;++M)this[M]=e;else{const G=x.isBuffer(e)?e:x.from(e,I),ne=G.length;if(ne===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(M=0;M<b-t;++M)this[M+t]=G[M%ne]}return this};const Ne={};function it(f,e,t){Ne[f]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}it("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),it("ERR_INVALID_ARG_TYPE",function(f,e){return`The "${f}" argument must be of type number. Received type ${typeof e}`},TypeError),it("ERR_OUT_OF_RANGE",function(f,e,t){let b=`The value of "${f}" is out of range.`,I=t;return Number.isInteger(t)&&Math.abs(t)>2**32?I=Gr(String(t)):typeof t=="bigint"&&(I=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(I=Gr(I)),I+="n"),b+=` It must be ${e}. Received ${I}`,b},RangeError);function Gr(f){let e="",t=f.length;const b=f[0]==="-"?1:0;for(;t>=b+4;t-=3)e=`_${f.slice(t-3,t)}${e}`;return`${f.slice(0,t)}${e}`}function Xi(f,e,t){Pe(e,"offset"),(f[e]===void 0||f[e+t]===void 0)&&je(e,f.length-(t+1))}function Kr(f,e,t,b,I,M){if(f>t||f<e){const G=typeof e=="bigint"?"n":"";let ne;throw e===0||e===BigInt(0)?ne=`>= 0${G} and < 2${G} ** ${(M+1)*8}${G}`:ne=`>= -(2${G} ** ${(M+1)*8-1}${G}) and < 2 ** ${(M+1)*8-1}${G}`,new Ne.ERR_OUT_OF_RANGE("value",ne,f)}Xi(b,I,M)}function Pe(f,e){if(typeof f!="number")throw new Ne.ERR_INVALID_ARG_TYPE(e,"number",f)}function je(f,e,t){throw Math.floor(f)!==f?(Pe(f,t),new Ne.ERR_OUT_OF_RANGE("offset","an integer",f)):e<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,f)}const zi=/[^+/0-9A-Za-z-_]/g;function Ji(f){if(f=f.split("=")[0],f=f.trim().replace(zi,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function at(f,e){e=e||1/0;let t;const b=f.length;let I=null;const M=[];for(let G=0;G<b;++G){if(t=f.charCodeAt(G),t>55295&&t<57344){if(!I){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(G+1===b){(e-=3)>-1&&M.push(239,191,189);continue}I=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),I=t;continue}t=(I-55296<<10|t-56320)+65536}else I&&(e-=3)>-1&&M.push(239,191,189);if(I=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function Qi(f){const e=[];for(let t=0;t<f.length;++t)e.push(f.charCodeAt(t)&255);return e}function Zi(f,e){let t,b,I;const M=[];for(let G=0;G<f.length&&!((e-=2)<0);++G)t=f.charCodeAt(G),b=t>>8,I=t%256,M.push(I),M.push(b);return M}function $r(f){return s.toByteArray(Ji(f))}function We(f,e,t,b){let I;for(I=0;I<b&&!(I+t>=e.length||I>=f.length);++I)e[I+t]=f[I];return I}function _e(f,e){return f instanceof e||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===e.name}function ot(f){return f!==f}const ea=(function(){const f="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const b=t*16;for(let I=0;I<16;++I)e[b+I]=f[t]+f[I]}return e})();function xe(f){return typeof BigInt>"u"?ta:f}function ta(){throw new Error("BigInt not supported")}})(o);const c=o.Buffer;n.Blob=o.Blob,n.BlobOptions=o.BlobOptions,n.Buffer=o.Buffer,n.File=o.File,n.FileOptions=o.FileOptions,n.INSPECT_MAX_BYTES=o.INSPECT_MAX_BYTES,n.SlowBuffer=o.SlowBuffer,n.TranscodeEncoding=o.TranscodeEncoding,n.atob=o.atob,n.btoa=o.btoa,n.constants=o.constants,n.default=c,n.isAscii=o.isAscii,n.isUtf8=o.isUtf8,n.kMaxLength=o.kMaxLength,n.kStringMaxLength=o.kStringMaxLength,n.resolveObjectURL=o.resolveObjectURL,n.transcode=o.transcode})(ft)),ft}var lt={},ct={},ht,zr;function Ii(){return zr||(zr=1,ht=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},l=Symbol("test"),u=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var m=42;o[l]=m;for(var y in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var A=Object.getOwnPropertySymbols(o);if(A.length!==1||A[0]!==l||!Object.prototype.propertyIsEnumerable.call(o,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(o,l);if(v.value!==m||v.enumerable!==!0)return!1}return!0}),ht}var dt,Jr;function rt(){if(Jr)return dt;Jr=1;var n=Ii();return dt=function(){return n()&&!!Symbol.toStringTag},dt}var pt,Qr;function Fi(){return Qr||(Qr=1,pt=Object),pt}var yt,Zr;function ya(){return Zr||(Zr=1,yt=Error),yt}var gt,en;function ga(){return en||(en=1,gt=EvalError),gt}var bt,tn;function ba(){return tn||(tn=1,bt=RangeError),bt}var mt,rn;function ma(){return rn||(rn=1,mt=ReferenceError),mt}var Et,nn;function Oi(){return nn||(nn=1,Et=SyntaxError),Et}var vt,an;function Ge(){return an||(an=1,vt=TypeError),vt}var wt,on;function Ea(){return on||(on=1,wt=URIError),wt}var _t,un;function va(){return un||(un=1,_t=Math.abs),_t}var At,sn;function wa(){return sn||(sn=1,At=Math.floor),At}var Tt,fn;function _a(){return fn||(fn=1,Tt=Math.max),Tt}var St,ln;function Aa(){return ln||(ln=1,St=Math.min),St}var Rt,cn;function Ta(){return cn||(cn=1,Rt=Math.pow),Rt}var xt,hn;function Sa(){return hn||(hn=1,xt=Math.round),xt}var It,dn;function Ra(){return dn||(dn=1,It=Number.isNaN||function(o){return o!==o}),It}var Ft,pn;function xa(){if(pn)return Ft;pn=1;var n=Ra();return Ft=function(l){return n(l)||l===0?l:l<0?-1:1},Ft}var Ot,yn;function Ia(){return yn||(yn=1,Ot=Object.getOwnPropertyDescriptor),Ot}var Bt,gn;function Me(){if(gn)return Bt;gn=1;var n=Ia();if(n)try{n([],"length")}catch{n=null}return Bt=n,Bt}var Nt,bn;function nt(){if(bn)return Nt;bn=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Nt=n,Nt}var Pt,mn;function Fa(){if(mn)return Pt;mn=1;var n=typeof Symbol<"u"&&Symbol,o=Ii();return Pt=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o()},Pt}var Ct,En;function Bi(){return En||(En=1,Ct=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ct}var Dt,vn;function Ni(){if(vn)return Dt;vn=1;var n=Fi();return Dt=n.getPrototypeOf||null,Dt}var Lt,wn;function Oa(){if(wn)return Lt;wn=1;var n="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,l=Math.max,u="[object Function]",m=function(_,B){for(var C=[],N=0;N<_.length;N+=1)C[N]=_[N];for(var P=0;P<B.length;P+=1)C[P+_.length]=B[P];return C},y=function(_,B){for(var C=[],N=B,P=0;N<_.length;N+=1,P+=1)C[P]=_[N];return C},A=function(v,_){for(var B="",C=0;C<v.length;C+=1)B+=v[C],C+1<v.length&&(B+=_);return B};return Lt=function(_){var B=this;if(typeof B!="function"||o.apply(B)!==u)throw new TypeError(n+B);for(var C=y(arguments,1),N,P=function(){if(this instanceof N){var c=B.apply(this,m(C,arguments));return Object(c)===c?c:this}return B.apply(_,m(C,arguments))},V=l(0,B.length-C.length),q=[],H=0;H<V;H++)q[H]="$"+H;if(N=Function("binder","return function ("+A(q,",")+"){ return binder.apply(this,arguments); }")(P),B.prototype){var L=function(){};L.prototype=B.prototype,N.prototype=new L,L.prototype=null}return N},Lt}var Mt,_n;function Ke(){if(_n)return Mt;_n=1;var n=Oa();return Mt=Function.prototype.bind||n,Mt}var Ut,An;function Lr(){return An||(An=1,Ut=Function.prototype.call),Ut}var jt,Tn;function Mr(){return Tn||(Tn=1,jt=Function.prototype.apply),jt}var qt,Sn;function Ba(){return Sn||(Sn=1,qt=typeof Reflect<"u"&&Reflect&&Reflect.apply),qt}var kt,Rn;function Pi(){if(Rn)return kt;Rn=1;var n=Ke(),o=Mr(),l=Lr(),u=Ba();return kt=u||n.call(l,o),kt}var Ht,xn;function Ur(){if(xn)return Ht;xn=1;var n=Ke(),o=Ge(),l=Lr(),u=Pi();return Ht=function(y){if(y.length<1||typeof y[0]!="function")throw new o("a function is required");return u(n,l,y)},Ht}var Gt,In;function Na(){if(In)return Gt;In=1;var n=Ur(),o=Me(),l;try{l=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var u=!!l&&o&&o(Object.prototype,"__proto__"),m=Object,y=m.getPrototypeOf;return Gt=u&&typeof u.get=="function"?n([u.get]):typeof y=="function"?function(v){return y(v==null?v:m(v))}:!1,Gt}var Kt,Fn;function jr(){if(Fn)return Kt;Fn=1;var n=Bi(),o=Ni(),l=Na();return Kt=n?function(m){return n(m)}:o?function(m){if(!m||typeof m!="object"&&typeof m!="function")throw new TypeError("getProto: not an object");return o(m)}:l?function(m){return l(m)}:null,Kt}var $t,On;function Ci(){if(On)return $t;On=1;var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,l=Ke();return $t=l.call(n,o),$t}var Wt,Bn;function Di(){if(Bn)return Wt;Bn=1;var n,o=Fi(),l=ya(),u=ga(),m=ba(),y=ma(),A=Oi(),v=Ge(),_=Ea(),B=va(),C=wa(),N=_a(),P=Aa(),V=Ta(),q=Sa(),H=xa(),L=Function,c=function(R){try{return L('"use strict"; return ('+R+").constructor;")()}catch{}},E=Me(),s=nt(),a=function(){throw new v},g=E?(function(){try{return arguments.callee,a}catch{try{return E(arguments,"callee").get}catch{return a}}})():a,T=Fa()(),S=jr(),F=Ni(),d=Bi(),K=Mr(),X=Lr(),x={},ee=typeof Uint8Array>"u"||!S?n:S(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":u,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?n:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":m,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?n:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):n,"%Symbol%":T?Symbol:n,"%SyntaxError%":A,"%ThrowTypeError%":g,"%TypedArray%":ee,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":K,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":F,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":N,"%Math.min%":P,"%Math.pow%":V,"%Math.round%":q,"%Math.sign%":H,"%Reflect.getPrototypeOf%":d};if(S)try{null.error}catch(R){var ie=S(S(R));re["%Error.prototype%"]=ie}var le=function R(w){var h;if(w==="%AsyncFunction%")h=c("async function () {}");else if(w==="%GeneratorFunction%")h=c("function* () {}");else if(w==="%AsyncGeneratorFunction%")h=c("async function* () {}");else if(w==="%AsyncGenerator%"){var p=R("%AsyncGeneratorFunction%");p&&(h=p.prototype)}else if(w==="%AsyncIteratorPrototype%"){var U=R("%AsyncGenerator%");U&&S&&(h=S(U.prototype))}return re[w]=h,h},Z={__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"]},ce=Ke(),oe=Ci(),ye=ce.call(X,Array.prototype.concat),ge=ce.call(K,Array.prototype.splice),D=ce.call(X,String.prototype.replace),j=ce.call(X,String.prototype.slice),$=ce.call(X,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,i=function(w){var h=j(w,0,1),p=j(w,-1);if(h==="%"&&p!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(p==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var U=[];return D(w,J,function(W,Q,Y,z){U[U.length]=Y?D(z,O,"$1"):Q||W}),U},r=function(w,h){var p=w,U;if(oe(Z,p)&&(U=Z[p],p="%"+U[0]+"%"),oe(re,p)){var W=re[p];if(W===x&&(W=le(p)),typeof W>"u"&&!h)throw new v("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:U,name:p,value:W}}throw new A("intrinsic "+w+" does not exist!")};return Wt=function(w,h){if(typeof w!="string"||w.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!="boolean")throw new v('"allowMissing" argument must be a boolean');if($(/^%?[^%]*%?$/,w)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var p=i(w),U=p.length>0?p[0]:"",W=r("%"+U+"%",h),Q=W.name,Y=W.value,z=!1,se=W.alias;se&&(U=se[0],ge(p,ye([0,1],se)));for(var k=1,ve=!0;k<p.length;k+=1){var be=p[k],ae=j(be,0,1),he=j(be,-1);if((ae==='"'||ae==="'"||ae==="`"||he==='"'||he==="'"||he==="`")&&ae!==he)throw new A("property names with quotes must have matching quotes");if((be==="constructor"||!ve)&&(z=!0),U+="."+be,Q="%"+U+"%",oe(re,Q))Y=re[Q];else if(Y!=null){if(!(be in Y)){if(!h)throw new v("base intrinsic for "+w+" exists, but the property is not available.");return}if(E&&k+1>=p.length){var we=E(Y,be);ve=!!we,ve&&"get"in we&&!("originalValue"in we.get)?Y=we.get:Y=Y[be]}else ve=oe(Y,be),Y=Y[be];ve&&!z&&(re[Q]=Y)}}return Y},Wt}var Vt,Nn;function $e(){if(Nn)return Vt;Nn=1;var n=Di(),o=Ur(),l=o([n("%String.prototype.indexOf%")]);return Vt=function(m,y){var A=n(m,!!y);return typeof A=="function"&&l(m,".prototype.")>-1?o([A]):A},Vt}var Yt,Pn;function Pa(){if(Pn)return Yt;Pn=1;var n=rt()(),o=$e(),l=o("Object.prototype.toString"),u=function(v){return n&&v&&typeof v=="object"&&Symbol.toStringTag in v?!1:l(v)==="[object Arguments]"},m=function(v){return u(v)?!0:v!==null&&typeof v=="object"&&"length"in v&&typeof v.length=="number"&&v.length>=0&&l(v)!=="[object Array]"&&"callee"in v&&l(v.callee)==="[object Function]"},y=(function(){return u(arguments)})();return u.isLegacyArguments=m,Yt=y?u:m,Yt}var Xt,Cn;function Ca(){if(Cn)return Xt;Cn=1;var n=$e(),o=rt()(),l=Ci(),u=Me(),m;if(o){var y=n("RegExp.prototype.exec"),A={},v=function(){throw A},_={toString:v,valueOf:v};typeof Symbol.toPrimitive=="symbol"&&(_[Symbol.toPrimitive]=v),m=function(P){if(!P||typeof P!="object")return!1;var V=u(P,"lastIndex"),q=V&&l(V,"value");if(!q)return!1;try{y(P,_)}catch(H){return H===A}}}else{var B=n("Object.prototype.toString"),C="[object RegExp]";m=function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:B(P)===C}}return Xt=m,Xt}var zt,Dn;function Da(){if(Dn)return zt;Dn=1;var n=$e(),o=Ca(),l=n("RegExp.prototype.exec"),u=Ge();return zt=function(y){if(!o(y))throw new u("`regex` must be a RegExp");return function(v){return l(y,v)!==null}},zt}var Jt,Ln;function La(){if(Ln)return Jt;Ln=1;var n=$e(),o=Da(),l=o(/^\s*(?:function)?\*/),u=rt()(),m=jr(),y=n("Object.prototype.toString"),A=n("Function.prototype.toString"),v=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch{}},_;return Jt=function(C){if(typeof C!="function")return!1;if(l(A(C)))return!0;if(!u){var N=y(C);return N==="[object GeneratorFunction]"}if(!m)return!1;if(typeof _>"u"){var P=v();_=P?m(P):!1}return m(C)===_},Jt}var Qt,Mn;function Ma(){if(Mn)return Qt;Mn=1;var n=Function.prototype.toString,o=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,u;if(typeof o=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw u}}),u={},o(function(){throw 42},null,l)}catch(E){E!==u&&(o=null)}else o=null;var m=/^\s*class\b/,y=function(s){try{var a=n.call(s);return m.test(a)}catch{return!1}},A=function(s){try{return y(s)?!1:(n.call(s),!0)}catch{return!1}},v=Object.prototype.toString,_="[object Object]",B="[object Function]",C="[object GeneratorFunction]",N="[object HTMLAllCollection]",P="[object HTML document.all class]",V="[object HTMLCollection]",q=typeof Symbol=="function"&&!!Symbol.toStringTag,H=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var c=document.all;v.call(c)===v.call(document.all)&&(L=function(s){if((H||!s)&&(typeof s>"u"||typeof s=="object"))try{var a=v.call(s);return(a===N||a===P||a===V||a===_)&&s("")==null}catch{}return!1})}return Qt=o?function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{o(s,null,l)}catch(a){if(a!==u)return!1}return!y(s)&&A(s)}:function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(q)return A(s);if(y(s))return!1;var a=v.call(s);return a!==B&&a!==C&&!/^\[object HTML/.test(a)?!1:A(s)},Qt}var Zt,Un;function Ua(){if(Un)return Zt;Un=1;var n=Ma(),o=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u=function(_,B,C){for(var N=0,P=_.length;N<P;N++)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))},m=function(_,B,C){for(var N=0,P=_.length;N<P;N++)C==null?B(_.charAt(N),N,_):B.call(C,_.charAt(N),N,_)},y=function(_,B,C){for(var N in _)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))};function A(v){return o.call(v)==="[object Array]"}return Zt=function(_,B,C){if(!n(B))throw new TypeError("iterator must be a function");var N;arguments.length>=3&&(N=C),A(_)?u(_,B,N):typeof _=="string"?m(_,B,N):y(_,B,N)},Zt}var er,jn;function ja(){return jn||(jn=1,er=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),er}var tr,qn;function qa(){if(qn)return tr;qn=1;var n=ja(),o=typeof globalThis>"u"?me.commonjsGlobal:globalThis;return tr=function(){for(var u=[],m=0;m<n.length;m++)typeof o[n[m]]=="function"&&(u[u.length]=n[m]);return u},tr}var rr={exports:{}},nr,kn;function ka(){if(kn)return nr;kn=1;var n=nt(),o=Oi(),l=Ge(),u=Me();return nr=function(y,A,v){if(!y||typeof y!="object"&&typeof y!="function")throw new l("`obj` must be an object or a function`");if(typeof A!="string"&&typeof A!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,B=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,N=arguments.length>6?arguments[6]:!1,P=!!u&&u(y,A);if(n)n(y,A,{configurable:C===null&&P?P.configurable:!C,enumerable:_===null&&P?P.enumerable:!_,value:v,writable:B===null&&P?P.writable:!B});else if(N||!_&&!B&&!C)y[A]=v;else throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nr}var ir,Hn;function Ha(){if(Hn)return ir;Hn=1;var n=nt(),o=function(){return!!n};return o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},ir=o,ir}var ar,Gn;function Ga(){if(Gn)return ar;Gn=1;var n=Di(),o=ka(),l=Ha()(),u=Me(),m=Ge(),y=n("%Math.floor%");return ar=function(v,_){if(typeof v!="function")throw new m("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||y(_)!==_)throw new m("`length` must be a positive 32-bit integer");var B=arguments.length>2&&!!arguments[2],C=!0,N=!0;if("length"in v&&u){var P=u(v,"length");P&&!P.configurable&&(C=!1),P&&!P.writable&&(N=!1)}return(C||N||!B)&&(l?o(v,"length",_,!0,!0):o(v,"length",_)),v},ar}var or,Kn;function Ka(){if(Kn)return or;Kn=1;var n=Ke(),o=Mr(),l=Pi();return or=function(){return l(n,o,arguments)},or}var $n;function $a(){return $n||($n=1,(function(n){var o=Ga(),l=nt(),u=Ur(),m=Ka();n.exports=function(A){var v=u(arguments),_=A.length-(arguments.length-1);return o(v,1+(_>0?_:0),!0)},l?l(n.exports,"apply",{value:m}):n.exports.apply=m})(rr)),rr.exports}var ur,Wn;function Li(){if(Wn)return ur;Wn=1;var n=Ua(),o=qa(),l=$a(),u=$e(),m=Me(),y=jr(),A=u("Object.prototype.toString"),v=rt()(),_=typeof globalThis>"u"?me.commonjsGlobal:globalThis,B=o(),C=u("String.prototype.slice"),N=u("Array.prototype.indexOf",!0)||function(L,c){for(var E=0;E<L.length;E+=1)if(L[E]===c)return E;return-1},P={__proto__:null};v&&m&&y?n(B,function(H){var L=new _[H];if(Symbol.toStringTag in L&&y){var c=y(L),E=m(c,Symbol.toStringTag);if(!E&&c){var s=y(c);E=m(s,Symbol.toStringTag)}P["$"+H]=l(E.get)}}):n(B,function(H){var L=new _[H],c=L.slice||L.set;c&&(P["$"+H]=l(c))});var V=function(L){var c=!1;return n(P,function(E,s){if(!c)try{"$"+E(L)===s&&(c=C(s,1))}catch{}}),c},q=function(L){var c=!1;return n(P,function(E,s){if(!c)try{E(L),c=C(s,1)}catch{}}),c};return ur=function(L){if(!L||typeof L!="object")return!1;if(!v){var c=C(A(L),8,-1);return N(B,c)>-1?c:c!=="Object"?!1:q(L)}return m?V(L):null},ur}var sr,Vn;function Wa(){if(Vn)return sr;Vn=1;var n=Li();return sr=function(l){return!!n(l)},sr}var Yn;function Va(){return Yn||(Yn=1,(function(n){var o=Pa(),l=La(),u=Li(),m=Wa();function y(k){return k.call.bind(k)}var A=typeof BigInt<"u",v=typeof Symbol<"u",_=y(Object.prototype.toString),B=y(Number.prototype.valueOf),C=y(String.prototype.valueOf),N=y(Boolean.prototype.valueOf);if(A)var P=y(BigInt.prototype.valueOf);if(v)var V=y(Symbol.prototype.valueOf);function q(k,ve){if(typeof k!="object")return!1;try{return ve(k),!0}catch{return!1}}n.isArgumentsObject=o,n.isGeneratorFunction=l,n.isTypedArray=m;function H(k){return typeof Promise<"u"&&k instanceof Promise||k!==null&&typeof k=="object"&&typeof k.then=="function"&&typeof k.catch=="function"}n.isPromise=H;function L(k){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(k):m(k)||j(k)}n.isArrayBufferView=L;function c(k){return u(k)==="Uint8Array"}n.isUint8Array=c;function E(k){return u(k)==="Uint8ClampedArray"}n.isUint8ClampedArray=E;function s(k){return u(k)==="Uint16Array"}n.isUint16Array=s;function a(k){return u(k)==="Uint32Array"}n.isUint32Array=a;function g(k){return u(k)==="Int8Array"}n.isInt8Array=g;function T(k){return u(k)==="Int16Array"}n.isInt16Array=T;function S(k){return u(k)==="Int32Array"}n.isInt32Array=S;function F(k){return u(k)==="Float32Array"}n.isFloat32Array=F;function d(k){return u(k)==="Float64Array"}n.isFloat64Array=d;function K(k){return u(k)==="BigInt64Array"}n.isBigInt64Array=K;function X(k){return u(k)==="BigUint64Array"}n.isBigUint64Array=X;function x(k){return _(k)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function ee(k){return typeof Map>"u"?!1:x.working?x(k):k instanceof Map}n.isMap=ee;function re(k){return _(k)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ie(k){return typeof Set>"u"?!1:re.working?re(k):k instanceof Set}n.isSet=ie;function le(k){return _(k)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Z(k){return typeof WeakMap>"u"?!1:le.working?le(k):k instanceof WeakMap}n.isWeakMap=Z;function ce(k){return _(k)==="[object WeakSet]"}ce.working=typeof WeakSet<"u"&&ce(new WeakSet);function oe(k){return ce(k)}n.isWeakSet=oe;function ye(k){return _(k)==="[object ArrayBuffer]"}ye.working=typeof ArrayBuffer<"u"&&ye(new ArrayBuffer);function ge(k){return typeof ArrayBuffer>"u"?!1:ye.working?ye(k):k instanceof ArrayBuffer}n.isArrayBuffer=ge;function D(k){return _(k)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function j(k){return typeof DataView>"u"?!1:D.working?D(k):k instanceof DataView}n.isDataView=j;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(k){return _(k)==="[object SharedArrayBuffer]"}function O(k){return typeof $>"u"?!1:(typeof J.working>"u"&&(J.working=J(new $)),J.working?J(k):k instanceof $)}n.isSharedArrayBuffer=O;function i(k){return _(k)==="[object AsyncFunction]"}n.isAsyncFunction=i;function r(k){return _(k)==="[object Map Iterator]"}n.isMapIterator=r;function R(k){return _(k)==="[object Set Iterator]"}n.isSetIterator=R;function w(k){return _(k)==="[object Generator]"}n.isGeneratorObject=w;function h(k){return _(k)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=h;function p(k){return q(k,B)}n.isNumberObject=p;function U(k){return q(k,C)}n.isStringObject=U;function W(k){return q(k,N)}n.isBooleanObject=W;function Q(k){return A&&q(k,P)}n.isBigIntObject=Q;function Y(k){return v&&q(k,V)}n.isSymbolObject=Y;function z(k){return p(k)||U(k)||W(k)||Q(k)||Y(k)}n.isBoxedPrimitive=z;function se(k){return typeof Uint8Array<"u"&&(ge(k)||O(k))}n.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(k){Object.defineProperty(n,k,{enumerable:!1,value:function(){throw new Error(k+" is not supported in userland")}})})})(ct)),ct}var fr,Xn;function Ya(){return Xn||(Xn=1,fr=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}),fr}var zn;function Mi(){return zn||(zn=1,(function(n){var o=Object.getOwnPropertyDescriptors||function(j){for(var $=Object.keys(j),J={},O=0;O<$.length;O++)J[$[O]]=Object.getOwnPropertyDescriptor(j,$[O]);return J},l=/%[sdj%]/g;n.format=function(D){if(!g(D)){for(var j=[],$=0;$<arguments.length;$++)j.push(A(arguments[$]));return j.join(" ")}for(var $=1,J=arguments,O=J.length,i=String(D).replace(l,function(R){if(R==="%%")return"%";if($>=O)return R;switch(R){case"%s":return String(J[$++]);case"%d":return Number(J[$++]);case"%j":try{return JSON.stringify(J[$++])}catch{return"[Circular]"}default:return R}}),r=J[$];$<O;r=J[++$])E(r)||!d(r)?i+=" "+r:i+=" "+A(r);return i},n.deprecate=function(D,j){if(typeof te.process$1<"u"&&te.process$1.noDeprecation===!0)return D;if(typeof te.process$1>"u")return function(){return n.deprecate(D,j).apply(this,arguments)};var $=!1;function J(){if(!$){if(te.process$1.throwDeprecation)throw new Error(j);te.process$1.traceDeprecation?console.trace(j):console.error(j),$=!0}return D.apply(this,arguments)}return J};var u={},m=/^$/;if(te.process$1.env.NODE_DEBUG){var y=te.process$1.env.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),m=new RegExp("^"+y+"$","i")}n.debuglog=function(D){if(D=D.toUpperCase(),!u[D])if(m.test(D)){var j=te.process$1.pid;u[D]=function(){var $=n.format.apply(n,arguments);console.error("%s %d: %s",D,j,$)}}else u[D]=function(){};return u[D]};function A(D,j){var $={seen:[],stylize:_};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),c(j)?$.showHidden=j:j&&n._extend($,j),S($.showHidden)&&($.showHidden=!1),S($.depth)&&($.depth=2),S($.colors)&&($.colors=!1),S($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=v),C($,D,$.depth)}n.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 v(D,j){var $=A.styles[j];return $?"\x1B["+A.colors[$][0]+"m"+D+"\x1B["+A.colors[$][1]+"m":D}function _(D,j){return D}function B(D){var j={};return D.forEach(function($,J){j[$]=!0}),j}function C(D,j,$){if(D.customInspect&&j&&x(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var J=j.inspect($,D);return g(J)||(J=C(D,J,$)),J}var O=N(D,j);if(O)return O;var i=Object.keys(j),r=B(i);if(D.showHidden&&(i=Object.getOwnPropertyNames(j)),X(j)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P(j);if(i.length===0){if(x(j)){var R=j.name?": "+j.name:"";return D.stylize("[Function"+R+"]","special")}if(F(j))return D.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return D.stylize(Date.prototype.toString.call(j),"date");if(X(j))return P(j)}var w="",h=!1,p=["{","}"];if(L(j)&&(h=!0,p=["[","]"]),x(j)){var U=j.name?": "+j.name:"";w=" [Function"+U+"]"}if(F(j)&&(w=" "+RegExp.prototype.toString.call(j)),K(j)&&(w=" "+Date.prototype.toUTCString.call(j)),X(j)&&(w=" "+P(j)),i.length===0&&(!h||j.length==0))return p[0]+w+p[1];if($<0)return F(j)?D.stylize(RegExp.prototype.toString.call(j),"regexp"):D.stylize("[Object]","special");D.seen.push(j);var W;return h?W=V(D,j,$,r,i):W=i.map(function(Q){return q(D,j,$,r,Q,h)}),D.seen.pop(),H(W,w,p)}function N(D,j){if(S(j))return D.stylize("undefined","undefined");if(g(j)){var $="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize($,"string")}if(a(j))return D.stylize(""+j,"number");if(c(j))return D.stylize(""+j,"boolean");if(E(j))return D.stylize("null","null")}function P(D){return"["+Error.prototype.toString.call(D)+"]"}function V(D,j,$,J,O){for(var i=[],r=0,R=j.length;r<R;++r)ce(j,String(r))?i.push(q(D,j,$,J,String(r),!0)):i.push("");return O.forEach(function(w){w.match(/^\d+$/)||i.push(q(D,j,$,J,w,!0))}),i}function q(D,j,$,J,O,i){var r,R,w;if(w=Object.getOwnPropertyDescriptor(j,O)||{value:j[O]},w.get?w.set?R=D.stylize("[Getter/Setter]","special"):R=D.stylize("[Getter]","special"):w.set&&(R=D.stylize("[Setter]","special")),ce(J,O)||(r="["+O+"]"),R||(D.seen.indexOf(w.value)<0?(E($)?R=C(D,w.value,null):R=C(D,w.value,$-1),R.indexOf(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const me=require("../toString-CEqk2kJI.cjs"),te=require("../index-sTep8AuK.cjs");var ra=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,na=/^\w*$/;function ia(n,o){if(me.isArray(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||me.isSymbol(n)?!0:na.test(n)||!ra.test(n)||o!=null&&n in Object(o)}var aa="Expected a function";function Cr(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new TypeError(aa);var l=function(){var u=arguments,m=o?o.apply(this,u):u[0],y=l.cache;if(y.has(m))return y.get(m);var A=n.apply(this,u);return l.cache=y.set(m,A)||y,A};return l.cache=new(Cr.Cache||me.MapCache),l}Cr.Cache=me.MapCache;var oa=500;function ua(n){var o=Cr(n,function(u){return l.size===oa&&l.clear(),u}),l=o.cache;return o}var sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fa=/\\(\\)?/g,la=ua(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(sa,function(l,u,m,y){o.push(m?y.replace(fa,"$1"):u||l)}),o});function ca(n,o){return me.isArray(n)?n:ia(n,o)?[n]:la(me.toString(n))}function ha(n){if(typeof n=="string"||me.isSymbol(n))return n;var o=n+"";return o=="0"&&1/n==-1/0?"-0":o}function da(n,o){o=ca(o,n);for(var l=0,u=o.length;n!=null&&l<u;)n=n[ha(o[l++])];return l&&l==u?n:void 0}function pa(n,o,l){var u=n==null?void 0:da(n,o);return u===void 0?l:u}const Ri=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"cloud","capabilities"].filter(Boolean).join("/"),l.searchParams.append("format","json");const u=l.href;return{async getCapabilities(){const m=await o.get(u);return pa(m,"data.ocs.data",{capabilities:null,version:null})}}};var ut={},Ye={exports:{}},Vr;function Dr(){if(Vr)return Ye.exports;Vr=1;var n=typeof Reflect=="object"?Reflect:null,o=n&&typeof n.apply=="function"?n.apply:function(g,T,S){return Function.prototype.apply.call(g,T,S)},l;n&&typeof n.ownKeys=="function"?l=n.ownKeys:Object.getOwnPropertySymbols?l=function(g){return Object.getOwnPropertyNames(g).concat(Object.getOwnPropertySymbols(g))}:l=function(g){return Object.getOwnPropertyNames(g)};function u(a){console&&console.warn&&console.warn(a)}var m=Number.isNaN||function(g){return g!==g};function y(){y.init.call(this)}Ye.exports=y,Ye.exports.once=c,y.EventEmitter=y,y.prototype._events=void 0,y.prototype._eventsCount=0,y.prototype._maxListeners=void 0;var A=10;function v(a){if(typeof a!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof a)}Object.defineProperty(y,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(a){if(typeof a!="number"||a<0||m(a))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+a+".");A=a}}),y.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},y.prototype.setMaxListeners=function(g){if(typeof g!="number"||g<0||m(g))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+g+".");return this._maxListeners=g,this};function _(a){return a._maxListeners===void 0?y.defaultMaxListeners:a._maxListeners}y.prototype.getMaxListeners=function(){return _(this)},y.prototype.emit=function(g){for(var T=[],S=1;S<arguments.length;S++)T.push(arguments[S]);var F=g==="error",d=this._events;if(d!==void 0)F=F&&d.error===void 0;else if(!F)return!1;if(F){var K;if(T.length>0&&(K=T[0]),K instanceof Error)throw K;var X=new Error("Unhandled error."+(K?" ("+K.message+")":""));throw X.context=K,X}var x=d[g];if(x===void 0)return!1;if(typeof x=="function")o(x,this,T);else for(var ee=x.length,re=q(x,ee),S=0;S<ee;++S)o(re[S],this,T);return!0};function B(a,g,T,S){var F,d,K;if(v(T),d=a._events,d===void 0?(d=a._events=Object.create(null),a._eventsCount=0):(d.newListener!==void 0&&(a.emit("newListener",g,T.listener?T.listener:T),d=a._events),K=d[g]),K===void 0)K=d[g]=T,++a._eventsCount;else if(typeof K=="function"?K=d[g]=S?[T,K]:[K,T]:S?K.unshift(T):K.push(T),F=_(a),F>0&&K.length>F&&!K.warned){K.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+K.length+" "+String(g)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=a,X.type=g,X.count=K.length,u(X)}return a}y.prototype.addListener=function(g,T){return B(this,g,T,!1)},y.prototype.on=y.prototype.addListener,y.prototype.prependListener=function(g,T){return B(this,g,T,!0)};function C(){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 N(a,g,T){var S={fired:!1,wrapFn:void 0,target:a,type:g,listener:T},F=C.bind(S);return F.listener=T,S.wrapFn=F,F}y.prototype.once=function(g,T){return v(T),this.on(g,N(this,g,T)),this},y.prototype.prependOnceListener=function(g,T){return v(T),this.prependListener(g,N(this,g,T)),this},y.prototype.removeListener=function(g,T){var S,F,d,K,X;if(v(T),F=this._events,F===void 0)return this;if(S=F[g],S===void 0)return this;if(S===T||S.listener===T)--this._eventsCount===0?this._events=Object.create(null):(delete F[g],F.removeListener&&this.emit("removeListener",g,S.listener||T));else if(typeof S!="function"){for(d=-1,K=S.length-1;K>=0;K--)if(S[K]===T||S[K].listener===T){X=S[K].listener,d=K;break}if(d<0)return this;d===0?S.shift():H(S,d),S.length===1&&(F[g]=S[0]),F.removeListener!==void 0&&this.emit("removeListener",g,X||T)}return this},y.prototype.off=y.prototype.removeListener,y.prototype.removeAllListeners=function(g){var T,S,F;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[g]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[g]),this;if(arguments.length===0){var d=Object.keys(S),K;for(F=0;F<d.length;++F)K=d[F],K!=="removeListener"&&this.removeAllListeners(K);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(T=S[g],typeof T=="function")this.removeListener(g,T);else if(T!==void 0)for(F=T.length-1;F>=0;F--)this.removeListener(g,T[F]);return this};function P(a,g,T){var S=a._events;if(S===void 0)return[];var F=S[g];return F===void 0?[]:typeof F=="function"?T?[F.listener||F]:[F]:T?L(F):q(F,F.length)}y.prototype.listeners=function(g){return P(this,g,!0)},y.prototype.rawListeners=function(g){return P(this,g,!1)},y.listenerCount=function(a,g){return typeof a.listenerCount=="function"?a.listenerCount(g):Y.call(a,g)},y.prototype.listenerCount=Y;function Y(a){var g=this._events;if(g!==void 0){var T=g[a];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}y.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function q(a,g){for(var T=new Array(g),S=0;S<g;++S)T[S]=a[S];return T}function H(a,g){for(;g+1<a.length;g++)a[g]=a[g+1];a.pop()}function L(a){for(var g=new Array(a.length),T=0;T<g.length;++T)g[T]=a[T].listener||a[T];return g}function c(a,g){return new Promise(function(T,S){function F(K){a.removeListener(g,d),S(K)}function d(){typeof a.removeListener=="function"&&a.removeListener("error",F),T([].slice.call(arguments))}s(a,g,d,{once:!0}),g!=="error"&&E(a,F,{once:!0})})}function E(a,g,T){typeof a.on=="function"&&s(a,"error",g,T)}function s(a,g,T,S){if(typeof a.on=="function")S.once?a.once(g,T):a.on(g,T);else if(typeof a.addEventListener=="function")a.addEventListener(g,function F(d){S.once&&a.removeEventListener(g,F),T(d)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof a)}return Ye.exports}var $e={exports:{}},Yr;function Oe(){return Yr||(Yr=1,typeof Object.create=="function"?$e.exports=function(o,l){l&&(o.super_=l,o.prototype=Object.create(l.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:$e.exports=function(o,l){if(l){o.super_=l;var u=function(){};u.prototype=l.prototype,o.prototype=new u,o.prototype.constructor=o}}),$e.exports}var st,$r;function xi(){return $r||($r=1,st=Dr().EventEmitter),st}var ft={},Xr;function tt(){return Xr||(Xr=1,(function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var o={},l={};l.byteLength=C,l.toByteArray=P,l.fromByteArray=H;for(var u=[],m=[],y=typeof Uint8Array<"u"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=0,_=A.length;v<_;++v)u[v]=A[v],m[A.charCodeAt(v)]=v;m[45]=62,m[95]=63;function B(E){var s=E.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=E.indexOf("=");a===-1&&(a=s);var g=a===s?0:4-a%4;return[a,g]}function C(E){var s=B(E),a=s[0],g=s[1];return(a+g)*3/4-g}function N(E,s,a){return(s+a)*3/4-a}function P(E){var s,a=B(E),g=a[0],T=a[1],S=new y(N(E,g,T)),F=0,d=T>0?g-4:g,K;for(K=0;K<d;K+=4)s=m[E.charCodeAt(K)]<<18|m[E.charCodeAt(K+1)]<<12|m[E.charCodeAt(K+2)]<<6|m[E.charCodeAt(K+3)],S[F++]=s>>16&255,S[F++]=s>>8&255,S[F++]=s&255;return T===2&&(s=m[E.charCodeAt(K)]<<2|m[E.charCodeAt(K+1)]>>4,S[F++]=s&255),T===1&&(s=m[E.charCodeAt(K)]<<10|m[E.charCodeAt(K+1)]<<4|m[E.charCodeAt(K+2)]>>2,S[F++]=s>>8&255,S[F++]=s&255),S}function Y(E){return u[E>>18&63]+u[E>>12&63]+u[E>>6&63]+u[E&63]}function q(E,s,a){for(var g,T=[],S=s;S<a;S+=3)g=(E[S]<<16&16711680)+(E[S+1]<<8&65280)+(E[S+2]&255),T.push(Y(g));return T.join("")}function H(E){for(var s,a=E.length,g=a%3,T=[],S=16383,F=0,d=a-g;F<d;F+=S)T.push(q(E,F,F+S>d?d:F+S));return g===1?(s=E[a-1],T.push(u[s>>2]+u[s<<4&63]+"==")):g===2&&(s=(E[a-2]<<8)+E[a-1],T.push(u[s>>10]+u[s>>4&63]+u[s<<2&63]+"=")),T.join("")}var L={};L.read=function(E,s,a,g,T){var S,F,d=T*8-g-1,K=(1<<d)-1,X=K>>1,x=-7,ee=a?T-1:0,re=a?-1:1,ie=E[s+ee];for(ee+=re,S=ie&(1<<-x)-1,ie>>=-x,x+=d;x>0;S=S*256+E[s+ee],ee+=re,x-=8);for(F=S&(1<<-x)-1,S>>=-x,x+=g;x>0;F=F*256+E[s+ee],ee+=re,x-=8);if(S===0)S=1-X;else{if(S===K)return F?NaN:(ie?-1:1)*(1/0);F=F+Math.pow(2,g),S=S-X}return(ie?-1:1)*F*Math.pow(2,S-g)},L.write=function(E,s,a,g,T,S){var F,d,K,X=S*8-T-1,x=(1<<X)-1,ee=x>>1,re=T===23?Math.pow(2,-24)-Math.pow(2,-77):0,ie=g?0:S-1,le=g?1:-1,Z=s<0||s===0&&1/s<0?1:0;for(s=Math.abs(s),isNaN(s)||s===1/0?(d=isNaN(s)?1:0,F=x):(F=Math.floor(Math.log(s)/Math.LN2),s*(K=Math.pow(2,-F))<1&&(F--,K*=2),F+ee>=1?s+=re/K:s+=re*Math.pow(2,1-ee),s*K>=2&&(F++,K/=2),F+ee>=x?(d=0,F=x):F+ee>=1?(d=(s*K-1)*Math.pow(2,T),F=F+ee):(d=s*Math.pow(2,ee-1)*Math.pow(2,T),F=0));T>=8;E[a+ie]=d&255,ie+=le,d/=256,T-=8);for(F=F<<T|d,X+=T;X>0;E[a+ie]=F&255,ie+=le,F/=256,X-=8);E[a+ie-le]|=Z*128};(function(E){const s=l,a=L,g=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;E.Buffer=x,E.SlowBuffer=j,E.INSPECT_MAX_BYTES=50;const T=2147483647;E.kMaxLength=T;const{Uint8Array:S,ArrayBuffer:F,SharedArrayBuffer:d}=globalThis;x.TYPED_ARRAY_SUPPORT=K(),!x.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 K(){try{const f=new S(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,S.prototype),Object.setPrototypeOf(f,e),f.foo()===42}catch{return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function X(f){if(f>T)throw new RangeError('The value "'+f+'" is invalid for option "size"');const e=new S(f);return Object.setPrototypeOf(e,x.prototype),e}function x(f,e,t){if(typeof f=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return le(f)}return ee(f,e,t)}x.poolSize=8192;function ee(f,e,t){if(typeof f=="string")return Z(f,e);if(F.isView(f))return oe(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(_e(f,F)||f&&_e(f.buffer,F)||typeof d<"u"&&(_e(f,d)||f&&_e(f.buffer,d)))return ye(f,e,t);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const b=f.valueOf&&f.valueOf();if(b!=null&&b!==f)return x.from(b,e,t);const I=ge(f);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return x.from(f[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}x.from=function(f,e,t){return ee(f,e,t)},Object.setPrototypeOf(x.prototype,S.prototype),Object.setPrototypeOf(x,S);function re(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 ie(f,e,t){return re(f),f<=0?X(f):e!==void 0?typeof t=="string"?X(f).fill(e,t):X(f).fill(e):X(f)}x.alloc=function(f,e,t){return ie(f,e,t)};function le(f){return re(f),X(f<0?0:D(f)|0)}x.allocUnsafe=function(f){return le(f)},x.allocUnsafeSlow=function(f){return le(f)};function Z(f,e){if((typeof e!="string"||e==="")&&(e="utf8"),!x.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const t=W(f,e)|0;let b=X(t);const I=b.write(f,e);return I!==t&&(b=b.slice(0,I)),b}function ce(f){const e=f.length<0?0:D(f.length)|0,t=X(e);for(let b=0;b<e;b+=1)t[b]=f[b]&255;return t}function oe(f){if(_e(f,S)){const e=new S(f);return ye(e.buffer,e.byteOffset,e.byteLength)}return ce(f)}function ye(f,e,t){if(e<0||f.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let b;return e===void 0&&t===void 0?b=new S(f):t===void 0?b=new S(f,e):b=new S(f,e,t),Object.setPrototypeOf(b,x.prototype),b}function ge(f){if(x.isBuffer(f)){const e=D(f.length)|0,t=X(e);return t.length===0||f.copy(t,0,0,e),t}if(f.length!==void 0)return typeof f.length!="number"||ot(f.length)?X(0):ce(f);if(f.type==="Buffer"&&Array.isArray(f.data))return ce(f.data)}function D(f){if(f>=T)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+T.toString(16)+" bytes");return f|0}function j(f){return+f!=f&&(f=0),x.alloc(+f)}x.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==x.prototype},x.compare=function(e,t){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),_e(t,S)&&(t=x.from(t,t.offset,t.byteLength)),!x.isBuffer(e)||!x.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let b=e.length,I=t.length;for(let M=0,G=Math.min(b,I);M<G;++M)if(e[M]!==t[M]){b=e[M],I=t[M];break}return b<I?-1:I<b?1:0},x.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}},x.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return x.alloc(0);let b;if(t===void 0)for(t=0,b=0;b<e.length;++b)t+=e[b].length;const I=x.allocUnsafe(t);let M=0;for(b=0;b<e.length;++b){let G=e[b];if(_e(G,S))M+G.length>I.length?(x.isBuffer(G)||(G=x.from(G)),G.copy(I,M)):S.prototype.set.call(I,G,M);else if(x.isBuffer(G))G.copy(I,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=G.length}return I};function W(f,e){if(x.isBuffer(f))return f.length;if(F.isView(f)||_e(f,F))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 t=f.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&t===0)return 0;let I=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return at(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Wr(f).length;default:if(I)return b?-1:at(f).length;e=(""+e).toLowerCase(),I=!0}}x.byteLength=W;function J(f,e,t){let b=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(f||(f="utf8");;)switch(f){case"hex":return ve(this,e,t);case"utf8":case"utf-8":return Q(this,e,t);case"ascii":return se(this,e,t);case"latin1":case"binary":return k(this,e,t);case"base64":return V(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,e,t);default:if(b)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),b=!0}}x.prototype._isBuffer=!0;function O(f,e,t){const b=f[e];f[e]=f[t],f[t]=b}x.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 t=0;t<e;t+=2)O(this,t,t+1);return this},x.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 t=0;t<e;t+=4)O(this,t,t+3),O(this,t+1,t+2);return this},x.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 t=0;t<e;t+=8)O(this,t,t+7),O(this,t+1,t+6),O(this,t+2,t+5),O(this,t+3,t+4);return this},x.prototype.toString=function(){const e=this.length;return e===0?"":arguments.length===0?Q(this,0,e):J.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(e){if(!x.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:x.compare(this,e)===0},x.prototype.inspect=function(){let e="";const t=E.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},g&&(x.prototype[g]=x.prototype.inspect),x.prototype.compare=function(e,t,b,I,M){if(_e(e,S)&&(e=x.from(e,e.offset,e.byteLength)),!x.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),b===void 0&&(b=e?e.length:0),I===void 0&&(I=0),M===void 0&&(M=this.length),t<0||b>e.length||I<0||M>this.length)throw new RangeError("out of range index");if(I>=M&&t>=b)return 0;if(I>=M)return-1;if(t>=b)return 1;if(t>>>=0,b>>>=0,I>>>=0,M>>>=0,this===e)return 0;let G=M-I,ne=b-t;const de=Math.min(G,ne),fe=this.slice(I,M),pe=e.slice(t,b);for(let ue=0;ue<de;++ue)if(fe[ue]!==pe[ue]){G=fe[ue],ne=pe[ue];break}return G<ne?-1:ne<G?1:0};function i(f,e,t,b,I){if(f.length===0)return-1;if(typeof t=="string"?(b=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ot(t)&&(t=I?0:f.length-1),t<0&&(t=f.length+t),t>=f.length){if(I)return-1;t=f.length-1}else if(t<0)if(I)t=0;else return-1;if(typeof e=="string"&&(e=x.from(e,b)),x.isBuffer(e))return e.length===0?-1:r(f,e,t,b,I);if(typeof e=="number")return e=e&255,typeof S.prototype.indexOf=="function"?I?S.prototype.indexOf.call(f,e,t):S.prototype.lastIndexOf.call(f,e,t):r(f,[e],t,b,I);throw new TypeError("val must be string, number or Buffer")}function r(f,e,t,b,I){let M=1,G=f.length,ne=e.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(f.length<2||e.length<2)return-1;M=2,G/=2,ne/=2,t/=2}function de(pe,ue){return M===1?pe[ue]:pe.readUInt16BE(ue*M)}let fe;if(I){let pe=-1;for(fe=t;fe<G;fe++)if(de(f,fe)===de(e,pe===-1?0:fe-pe)){if(pe===-1&&(pe=fe),fe-pe+1===ne)return pe*M}else pe!==-1&&(fe-=fe-pe),pe=-1}else for(t+ne>G&&(t=G-ne),fe=t;fe>=0;fe--){let pe=!0;for(let ue=0;ue<ne;ue++)if(de(f,fe+ue)!==de(e,ue)){pe=!1;break}if(pe)return fe}return-1}x.prototype.includes=function(e,t,b){return this.indexOf(e,t,b)!==-1},x.prototype.indexOf=function(e,t,b){return i(this,e,t,b,!0)},x.prototype.lastIndexOf=function(e,t,b){return i(this,e,t,b,!1)};function R(f,e,t,b){t=Number(t)||0;const I=f.length-t;b?(b=Number(b),b>I&&(b=I)):b=I;const M=e.length;b>M/2&&(b=M/2);let G;for(G=0;G<b;++G){const ne=parseInt(e.substr(G*2,2),16);if(ot(ne))return G;f[t+G]=ne}return G}function w(f,e,t,b){return Ve(at(e,f.length-t),f,t,b)}function h(f,e,t,b){return Ve(Qi(e),f,t,b)}function p(f,e,t,b){return Ve(Wr(e),f,t,b)}function U(f,e,t,b){return Ve(Zi(e,f.length-t),f,t,b)}x.prototype.write=function(e,t,b,I){if(t===void 0)I="utf8",b=this.length,t=0;else if(b===void 0&&typeof t=="string")I=t,b=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(b)?(b=b>>>0,I===void 0&&(I="utf8")):(I=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-t;if((b===void 0||b>M)&&(b=M),e.length>0&&(b<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let G=!1;for(;;)switch(I){case"hex":return R(this,e,t,b);case"utf8":case"utf-8":return w(this,e,t,b);case"ascii":case"latin1":case"binary":return h(this,e,t,b);case"base64":return p(this,e,t,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,t,b);default:if(G)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),G=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function V(f,e,t){return e===0&&t===f.length?s.fromByteArray(f):s.fromByteArray(f.slice(e,t))}function Q(f,e,t){t=Math.min(f.length,t);const b=[];let I=e;for(;I<t;){const M=f[I];let G=null,ne=M>239?4:M>223?3:M>191?2:1;if(I+ne<=t){let de,fe,pe,ue;switch(ne){case 1:M<128&&(G=M);break;case 2:de=f[I+1],(de&192)===128&&(ue=(M&31)<<6|de&63,ue>127&&(G=ue));break;case 3:de=f[I+1],fe=f[I+2],(de&192)===128&&(fe&192)===128&&(ue=(M&15)<<12|(de&63)<<6|fe&63,ue>2047&&(ue<55296||ue>57343)&&(G=ue));break;case 4:de=f[I+1],fe=f[I+2],pe=f[I+3],(de&192)===128&&(fe&192)===128&&(pe&192)===128&&(ue=(M&15)<<18|(de&63)<<12|(fe&63)<<6|pe&63,ue>65535&&ue<1114112&&(G=ue))}}G===null?(G=65533,ne=1):G>65535&&(G-=65536,b.push(G>>>10&1023|55296),G=56320|G&1023),b.push(G),I+=ne}return z(b)}const $=4096;function z(f){const e=f.length;if(e<=$)return String.fromCharCode.apply(String,f);let t="",b=0;for(;b<e;)t+=String.fromCharCode.apply(String,f.slice(b,b+=$));return t}function se(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]&127);return b}function k(f,e,t){let b="";t=Math.min(f.length,t);for(let I=e;I<t;++I)b+=String.fromCharCode(f[I]);return b}function ve(f,e,t){const b=f.length;(!e||e<0)&&(e=0),(!t||t<0||t>b)&&(t=b);let I="";for(let M=e;M<t;++M)I+=ea[f[M]];return I}function be(f,e,t){const b=f.slice(e,t);let I="";for(let M=0;M<b.length-1;M+=2)I+=String.fromCharCode(b[M]+b[M+1]*256);return I}x.prototype.slice=function(e,t){const b=this.length;e=~~e,t=t===void 0?b:~~t,e<0?(e+=b,e<0&&(e=0)):e>b&&(e=b),t<0?(t+=b,t<0&&(t=0)):t>b&&(t=b),t<e&&(t=e);const I=this.subarray(e,t);return Object.setPrototypeOf(I,x.prototype),I};function ae(f,e,t){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+e>t)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUintLE=x.prototype.readUIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return I},x.prototype.readUintBE=x.prototype.readUIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e+--t],M=1;for(;t>0&&(M*=256);)I+=this[e+--t]*M;return I},x.prototype.readUint8=x.prototype.readUInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]},x.prototype.readUint16LE=x.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]|this[e+1]<<8},x.prototype.readUint16BE=x.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||ae(e,2,this.length),this[e]<<8|this[e+1]},x.prototype.readUint32LE=x.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},x.prototype.readUint32BE=x.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},x.prototype.readBigUInt64LE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,M=this[++e]+this[++e]*2**8+this[++e]*2**16+b*2**24;return BigInt(I)+(BigInt(M)<<BigInt(32))}),x.prototype.readBigUInt64BE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],M=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b;return(BigInt(I)<<BigInt(32))+BigInt(M)}),x.prototype.readIntLE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=this[e],M=1,G=0;for(;++G<t&&(M*=256);)I+=this[e+G]*M;return M*=128,I>=M&&(I-=Math.pow(2,8*t)),I},x.prototype.readIntBE=function(e,t,b){e=e>>>0,t=t>>>0,b||ae(e,t,this.length);let I=t,M=1,G=this[e+--I];for(;I>0&&(M*=256);)G+=this[e+--I]*M;return M*=128,G>=M&&(G-=Math.pow(2,8*t)),G},x.prototype.readInt8=function(e,t){return e=e>>>0,t||ae(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},x.prototype.readInt16LE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e]|this[e+1]<<8;return b&32768?b|4294901760:b},x.prototype.readInt16BE=function(e,t){e=e>>>0,t||ae(e,2,this.length);const b=this[e+1]|this[e]<<8;return b&32768?b|4294901760:b},x.prototype.readInt32LE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},x.prototype.readInt32BE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},x.prototype.readBigInt64LE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(b<<24);return(BigInt(I)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),x.prototype.readBigInt64BE=xe(function(e){e=e>>>0,Pe(e,"offset");const t=this[e],b=this[e+7];(t===void 0||b===void 0)&&je(e,this.length-8);const I=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(I)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+b)}),x.prototype.readFloatLE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),a.read(this,e,!0,23,4)},x.prototype.readFloatBE=function(e,t){return e=e>>>0,t||ae(e,4,this.length),a.read(this,e,!1,23,4)},x.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),a.read(this,e,!0,52,8)},x.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||ae(e,8,this.length),a.read(this,e,!1,52,8)};function he(f,e,t,b,I,M){if(!x.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>I||e<M)throw new RangeError('"value" argument is out of bounds');if(t+b>f.length)throw new RangeError("Index out of range")}x.prototype.writeUintLE=x.prototype.writeUIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=1,G=0;for(this[t]=e&255;++G<b&&(M*=256);)this[t+G]=e/M&255;return t+b},x.prototype.writeUintBE=x.prototype.writeUIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,b=b>>>0,!I){const ne=Math.pow(2,8*b)-1;he(this,e,t,b,ne,0)}let M=b-1,G=1;for(this[t+M]=e&255;--M>=0&&(G*=256);)this[t+M]=e/G&255;return t+b},x.prototype.writeUint8=x.prototype.writeUInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,255,0),this[t]=e&255,t+1},x.prototype.writeUint16LE=x.prototype.writeUInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeUint16BE=x.prototype.writeUInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeUint32LE=x.prototype.writeUInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},x.prototype.writeUint32BE=x.prototype.writeUInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function we(f,e,t,b,I){Kr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M,M=M>>8,f[t++]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return f[t++]=G,G=G>>8,f[t++]=G,G=G>>8,f[t++]=G,G=G>>8,f[t++]=G,t}function Be(f,e,t,b,I){Kr(e,b,I,f,t,7);let M=Number(e&BigInt(4294967295));f[t+7]=M,M=M>>8,f[t+6]=M,M=M>>8,f[t+5]=M,M=M>>8,f[t+4]=M;let G=Number(e>>BigInt(32)&BigInt(4294967295));return f[t+3]=G,G=G>>8,f[t+2]=G,G=G>>8,f[t+1]=G,G=G>>8,f[t]=G,t+8}x.prototype.writeBigUInt64LE=xe(function(e,t=0){return we(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeBigUInt64BE=xe(function(e,t=0){return Be(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),x.prototype.writeIntLE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=0,G=1,ne=0;for(this[t]=e&255;++M<b&&(G*=256);)e<0&&ne===0&&this[t+M-1]!==0&&(ne=1),this[t+M]=(e/G>>0)-ne&255;return t+b},x.prototype.writeIntBE=function(e,t,b,I){if(e=+e,t=t>>>0,!I){const de=Math.pow(2,8*b-1);he(this,e,t,b,de-1,-de)}let M=b-1,G=1,ne=0;for(this[t+M]=e&255;--M>=0&&(G*=256);)e<0&&ne===0&&this[t+M+1]!==0&&(ne=1),this[t+M]=(e/G>>0)-ne&255;return t+b},x.prototype.writeInt8=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},x.prototype.writeInt16LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},x.prototype.writeInt16BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},x.prototype.writeInt32LE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},x.prototype.writeInt32BE=function(e,t,b){return e=+e,t=t>>>0,b||he(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},x.prototype.writeBigInt64LE=xe(function(e,t=0){return we(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),x.prototype.writeBigInt64BE=xe(function(e,t=0){return Be(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Re(f,e,t,b,I,M){if(t+b>f.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ae(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,4),a.write(f,e,t,b,23,4),t+4}x.prototype.writeFloatLE=function(e,t,b){return Ae(this,e,t,!0,b)},x.prototype.writeFloatBE=function(e,t,b){return Ae(this,e,t,!1,b)};function Te(f,e,t,b,I){return e=+e,t=t>>>0,I||Re(f,e,t,8),a.write(f,e,t,b,52,8),t+8}x.prototype.writeDoubleLE=function(e,t,b){return Te(this,e,t,!0,b)},x.prototype.writeDoubleBE=function(e,t,b){return Te(this,e,t,!1,b)},x.prototype.copy=function(e,t,b,I){if(!x.isBuffer(e))throw new TypeError("argument should be a Buffer");if(b||(b=0),!I&&I!==0&&(I=this.length),t>=e.length&&(t=e.length),t||(t=0),I>0&&I<b&&(I=b),I===b||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),e.length-t<I-b&&(I=e.length-t+b);const M=I-b;return this===e&&typeof S.prototype.copyWithin=="function"?this.copyWithin(t,b,I):S.prototype.set.call(e,this.subarray(b,I),t),M},x.prototype.fill=function(e,t,b,I){if(typeof e=="string"){if(typeof t=="string"?(I=t,t=0,b=this.length):typeof b=="string"&&(I=b,b=this.length),I!==void 0&&typeof I!="string")throw new TypeError("encoding must be a string");if(typeof I=="string"&&!x.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(e.length===1){const G=e.charCodeAt(0);(I==="utf8"&&G<128||I==="latin1")&&(e=G)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<b)throw new RangeError("Out of range index");if(b<=t)return this;t=t>>>0,b=b===void 0?this.length:b>>>0,e||(e=0);let M;if(typeof e=="number")for(M=t;M<b;++M)this[M]=e;else{const G=x.isBuffer(e)?e:x.from(e,I),ne=G.length;if(ne===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(M=0;M<b-t;++M)this[M+t]=G[M%ne]}return this};const Ne={};function it(f,e,t){Ne[f]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(I){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:I,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}it("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),it("ERR_INVALID_ARG_TYPE",function(f,e){return`The "${f}" argument must be of type number. Received type ${typeof e}`},TypeError),it("ERR_OUT_OF_RANGE",function(f,e,t){let b=`The value of "${f}" is out of range.`,I=t;return Number.isInteger(t)&&Math.abs(t)>2**32?I=Gr(String(t)):typeof t=="bigint"&&(I=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(I=Gr(I)),I+="n"),b+=` It must be ${e}. Received ${I}`,b},RangeError);function Gr(f){let e="",t=f.length;const b=f[0]==="-"?1:0;for(;t>=b+4;t-=3)e=`_${f.slice(t-3,t)}${e}`;return`${f.slice(0,t)}${e}`}function Xi(f,e,t){Pe(e,"offset"),(f[e]===void 0||f[e+t]===void 0)&&je(e,f.length-(t+1))}function Kr(f,e,t,b,I,M){if(f>t||f<e){const G=typeof e=="bigint"?"n":"";let ne;throw e===0||e===BigInt(0)?ne=`>= 0${G} and < 2${G} ** ${(M+1)*8}${G}`:ne=`>= -(2${G} ** ${(M+1)*8-1}${G}) and < 2 ** ${(M+1)*8-1}${G}`,new Ne.ERR_OUT_OF_RANGE("value",ne,f)}Xi(b,I,M)}function Pe(f,e){if(typeof f!="number")throw new Ne.ERR_INVALID_ARG_TYPE(e,"number",f)}function je(f,e,t){throw Math.floor(f)!==f?(Pe(f,t),new Ne.ERR_OUT_OF_RANGE("offset","an integer",f)):e<0?new Ne.ERR_BUFFER_OUT_OF_BOUNDS:new Ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,f)}const zi=/[^+/0-9A-Za-z-_]/g;function Ji(f){if(f=f.split("=")[0],f=f.trim().replace(zi,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function at(f,e){e=e||1/0;let t;const b=f.length;let I=null;const M=[];for(let G=0;G<b;++G){if(t=f.charCodeAt(G),t>55295&&t<57344){if(!I){if(t>56319){(e-=3)>-1&&M.push(239,191,189);continue}else if(G+1===b){(e-=3)>-1&&M.push(239,191,189);continue}I=t;continue}if(t<56320){(e-=3)>-1&&M.push(239,191,189),I=t;continue}t=(I-55296<<10|t-56320)+65536}else I&&(e-=3)>-1&&M.push(239,191,189);if(I=null,t<128){if((e-=1)<0)break;M.push(t)}else if(t<2048){if((e-=2)<0)break;M.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;M.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;M.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return M}function Qi(f){const e=[];for(let t=0;t<f.length;++t)e.push(f.charCodeAt(t)&255);return e}function Zi(f,e){let t,b,I;const M=[];for(let G=0;G<f.length&&!((e-=2)<0);++G)t=f.charCodeAt(G),b=t>>8,I=t%256,M.push(I),M.push(b);return M}function Wr(f){return s.toByteArray(Ji(f))}function Ve(f,e,t,b){let I;for(I=0;I<b&&!(I+t>=e.length||I>=f.length);++I)e[I+t]=f[I];return I}function _e(f,e){return f instanceof e||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===e.name}function ot(f){return f!==f}const ea=(function(){const f="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){const b=t*16;for(let I=0;I<16;++I)e[b+I]=f[t]+f[I]}return e})();function xe(f){return typeof BigInt>"u"?ta:f}function ta(){throw new Error("BigInt not supported")}})(o);const c=o.Buffer;n.Blob=o.Blob,n.BlobOptions=o.BlobOptions,n.Buffer=o.Buffer,n.File=o.File,n.FileOptions=o.FileOptions,n.INSPECT_MAX_BYTES=o.INSPECT_MAX_BYTES,n.SlowBuffer=o.SlowBuffer,n.TranscodeEncoding=o.TranscodeEncoding,n.atob=o.atob,n.btoa=o.btoa,n.constants=o.constants,n.default=c,n.isAscii=o.isAscii,n.isUtf8=o.isUtf8,n.kMaxLength=o.kMaxLength,n.kStringMaxLength=o.kStringMaxLength,n.resolveObjectURL=o.resolveObjectURL,n.transcode=o.transcode})(ft)),ft}var lt={},ct={},ht,zr;function Ii(){return zr||(zr=1,ht=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},l=Symbol("test"),u=Object(l);if(typeof l=="string"||Object.prototype.toString.call(l)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var m=42;o[l]=m;for(var y in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var A=Object.getOwnPropertySymbols(o);if(A.length!==1||A[0]!==l||!Object.prototype.propertyIsEnumerable.call(o,l))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(o,l);if(v.value!==m||v.enumerable!==!0)return!1}return!0}),ht}var dt,Jr;function rt(){if(Jr)return dt;Jr=1;var n=Ii();return dt=function(){return n()&&!!Symbol.toStringTag},dt}var pt,Qr;function Fi(){return Qr||(Qr=1,pt=Object),pt}var yt,Zr;function ya(){return Zr||(Zr=1,yt=Error),yt}var gt,en;function ga(){return en||(en=1,gt=EvalError),gt}var bt,tn;function ba(){return tn||(tn=1,bt=RangeError),bt}var mt,rn;function ma(){return rn||(rn=1,mt=ReferenceError),mt}var Et,nn;function Oi(){return nn||(nn=1,Et=SyntaxError),Et}var vt,an;function Ge(){return an||(an=1,vt=TypeError),vt}var wt,on;function Ea(){return on||(on=1,wt=URIError),wt}var _t,un;function va(){return un||(un=1,_t=Math.abs),_t}var At,sn;function wa(){return sn||(sn=1,At=Math.floor),At}var Tt,fn;function _a(){return fn||(fn=1,Tt=Math.max),Tt}var St,ln;function Aa(){return ln||(ln=1,St=Math.min),St}var Rt,cn;function Ta(){return cn||(cn=1,Rt=Math.pow),Rt}var xt,hn;function Sa(){return hn||(hn=1,xt=Math.round),xt}var It,dn;function Ra(){return dn||(dn=1,It=Number.isNaN||function(o){return o!==o}),It}var Ft,pn;function xa(){if(pn)return Ft;pn=1;var n=Ra();return Ft=function(l){return n(l)||l===0?l:l<0?-1:1},Ft}var Ot,yn;function Ia(){return yn||(yn=1,Ot=Object.getOwnPropertyDescriptor),Ot}var Bt,gn;function Me(){if(gn)return Bt;gn=1;var n=Ia();if(n)try{n([],"length")}catch{n=null}return Bt=n,Bt}var Nt,bn;function nt(){if(bn)return Nt;bn=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Nt=n,Nt}var Pt,mn;function Fa(){if(mn)return Pt;mn=1;var n=typeof Symbol<"u"&&Symbol,o=Ii();return Pt=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o()},Pt}var Ct,En;function Bi(){return En||(En=1,Ct=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Ct}var Dt,vn;function Ni(){if(vn)return Dt;vn=1;var n=Fi();return Dt=n.getPrototypeOf||null,Dt}var Lt,wn;function Oa(){if(wn)return Lt;wn=1;var n="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,l=Math.max,u="[object Function]",m=function(_,B){for(var C=[],N=0;N<_.length;N+=1)C[N]=_[N];for(var P=0;P<B.length;P+=1)C[P+_.length]=B[P];return C},y=function(_,B){for(var C=[],N=B,P=0;N<_.length;N+=1,P+=1)C[P]=_[N];return C},A=function(v,_){for(var B="",C=0;C<v.length;C+=1)B+=v[C],C+1<v.length&&(B+=_);return B};return Lt=function(_){var B=this;if(typeof B!="function"||o.apply(B)!==u)throw new TypeError(n+B);for(var C=y(arguments,1),N,P=function(){if(this instanceof N){var c=B.apply(this,m(C,arguments));return Object(c)===c?c:this}return B.apply(_,m(C,arguments))},Y=l(0,B.length-C.length),q=[],H=0;H<Y;H++)q[H]="$"+H;if(N=Function("binder","return function ("+A(q,",")+"){ return binder.apply(this,arguments); }")(P),B.prototype){var L=function(){};L.prototype=B.prototype,N.prototype=new L,L.prototype=null}return N},Lt}var Mt,_n;function Ke(){if(_n)return Mt;_n=1;var n=Oa();return Mt=Function.prototype.bind||n,Mt}var Ut,An;function Lr(){return An||(An=1,Ut=Function.prototype.call),Ut}var jt,Tn;function Mr(){return Tn||(Tn=1,jt=Function.prototype.apply),jt}var qt,Sn;function Ba(){return Sn||(Sn=1,qt=typeof Reflect<"u"&&Reflect&&Reflect.apply),qt}var kt,Rn;function Pi(){if(Rn)return kt;Rn=1;var n=Ke(),o=Mr(),l=Lr(),u=Ba();return kt=u||n.call(l,o),kt}var Ht,xn;function Ur(){if(xn)return Ht;xn=1;var n=Ke(),o=Ge(),l=Lr(),u=Pi();return Ht=function(y){if(y.length<1||typeof y[0]!="function")throw new o("a function is required");return u(n,l,y)},Ht}var Gt,In;function Na(){if(In)return Gt;In=1;var n=Ur(),o=Me(),l;try{l=[].__proto__===Array.prototype}catch(A){if(!A||typeof A!="object"||!("code"in A)||A.code!=="ERR_PROTO_ACCESS")throw A}var u=!!l&&o&&o(Object.prototype,"__proto__"),m=Object,y=m.getPrototypeOf;return Gt=u&&typeof u.get=="function"?n([u.get]):typeof y=="function"?function(v){return y(v==null?v:m(v))}:!1,Gt}var Kt,Fn;function jr(){if(Fn)return Kt;Fn=1;var n=Bi(),o=Ni(),l=Na();return Kt=n?function(m){return n(m)}:o?function(m){if(!m||typeof m!="object"&&typeof m!="function")throw new TypeError("getProto: not an object");return o(m)}:l?function(m){return l(m)}:null,Kt}var Wt,On;function Ci(){if(On)return Wt;On=1;var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,l=Ke();return Wt=l.call(n,o),Wt}var Vt,Bn;function Di(){if(Bn)return Vt;Bn=1;var n,o=Fi(),l=ya(),u=ga(),m=ba(),y=ma(),A=Oi(),v=Ge(),_=Ea(),B=va(),C=wa(),N=_a(),P=Aa(),Y=Ta(),q=Sa(),H=xa(),L=Function,c=function(R){try{return L('"use strict"; return ('+R+").constructor;")()}catch{}},E=Me(),s=nt(),a=function(){throw new v},g=E?(function(){try{return arguments.callee,a}catch{try{return E(arguments,"callee").get}catch{return a}}})():a,T=Fa()(),S=jr(),F=Ni(),d=Bi(),K=Mr(),X=Lr(),x={},ee=typeof Uint8Array>"u"||!S?n:S(Uint8Array),re={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":T&&S?S([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l,"%eval%":eval,"%EvalError%":u,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":L,"%GeneratorFunction%":x,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&S?S(S([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!T||!S?n:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":m,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!T||!S?n:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&S?S(""[Symbol.iterator]()):n,"%Symbol%":T?Symbol:n,"%SyntaxError%":A,"%ThrowTypeError%":g,"%TypedArray%":ee,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":K,"%Object.defineProperty%":s,"%Object.getPrototypeOf%":F,"%Math.abs%":B,"%Math.floor%":C,"%Math.max%":N,"%Math.min%":P,"%Math.pow%":Y,"%Math.round%":q,"%Math.sign%":H,"%Reflect.getPrototypeOf%":d};if(S)try{null.error}catch(R){var ie=S(S(R));re["%Error.prototype%"]=ie}var le=function R(w){var h;if(w==="%AsyncFunction%")h=c("async function () {}");else if(w==="%GeneratorFunction%")h=c("function* () {}");else if(w==="%AsyncGeneratorFunction%")h=c("async function* () {}");else if(w==="%AsyncGenerator%"){var p=R("%AsyncGeneratorFunction%");p&&(h=p.prototype)}else if(w==="%AsyncIteratorPrototype%"){var U=R("%AsyncGenerator%");U&&S&&(h=S(U.prototype))}return re[w]=h,h},Z={__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"]},ce=Ke(),oe=Ci(),ye=ce.call(X,Array.prototype.concat),ge=ce.call(K,Array.prototype.splice),D=ce.call(X,String.prototype.replace),j=ce.call(X,String.prototype.slice),W=ce.call(X,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,i=function(w){var h=j(w,0,1),p=j(w,-1);if(h==="%"&&p!=="%")throw new A("invalid intrinsic syntax, expected closing `%`");if(p==="%"&&h!=="%")throw new A("invalid intrinsic syntax, expected opening `%`");var U=[];return D(w,J,function(V,Q,$,z){U[U.length]=$?D(z,O,"$1"):Q||V}),U},r=function(w,h){var p=w,U;if(oe(Z,p)&&(U=Z[p],p="%"+U[0]+"%"),oe(re,p)){var V=re[p];if(V===x&&(V=le(p)),typeof V>"u"&&!h)throw new v("intrinsic "+w+" exists, but is not available. Please file an issue!");return{alias:U,name:p,value:V}}throw new A("intrinsic "+w+" does not exist!")};return Vt=function(w,h){if(typeof w!="string"||w.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof h!="boolean")throw new v('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,w)===null)throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var p=i(w),U=p.length>0?p[0]:"",V=r("%"+U+"%",h),Q=V.name,$=V.value,z=!1,se=V.alias;se&&(U=se[0],ge(p,ye([0,1],se)));for(var k=1,ve=!0;k<p.length;k+=1){var be=p[k],ae=j(be,0,1),he=j(be,-1);if((ae==='"'||ae==="'"||ae==="`"||he==='"'||he==="'"||he==="`")&&ae!==he)throw new A("property names with quotes must have matching quotes");if((be==="constructor"||!ve)&&(z=!0),U+="."+be,Q="%"+U+"%",oe(re,Q))$=re[Q];else if($!=null){if(!(be in $)){if(!h)throw new v("base intrinsic for "+w+" exists, but the property is not available.");return}if(E&&k+1>=p.length){var we=E($,be);ve=!!we,ve&&"get"in we&&!("originalValue"in we.get)?$=we.get:$=$[be]}else ve=oe($,be),$=$[be];ve&&!z&&(re[Q]=$)}}return $},Vt}var Yt,Nn;function We(){if(Nn)return Yt;Nn=1;var n=Di(),o=Ur(),l=o([n("%String.prototype.indexOf%")]);return Yt=function(m,y){var A=n(m,!!y);return typeof A=="function"&&l(m,".prototype.")>-1?o([A]):A},Yt}var $t,Pn;function Pa(){if(Pn)return $t;Pn=1;var n=rt()(),o=We(),l=o("Object.prototype.toString"),u=function(v){return n&&v&&typeof v=="object"&&Symbol.toStringTag in v?!1:l(v)==="[object Arguments]"},m=function(v){return u(v)?!0:v!==null&&typeof v=="object"&&"length"in v&&typeof v.length=="number"&&v.length>=0&&l(v)!=="[object Array]"&&"callee"in v&&l(v.callee)==="[object Function]"},y=(function(){return u(arguments)})();return u.isLegacyArguments=m,$t=y?u:m,$t}var Xt,Cn;function Ca(){if(Cn)return Xt;Cn=1;var n=We(),o=rt()(),l=Ci(),u=Me(),m;if(o){var y=n("RegExp.prototype.exec"),A={},v=function(){throw A},_={toString:v,valueOf:v};typeof Symbol.toPrimitive=="symbol"&&(_[Symbol.toPrimitive]=v),m=function(P){if(!P||typeof P!="object")return!1;var Y=u(P,"lastIndex"),q=Y&&l(Y,"value");if(!q)return!1;try{y(P,_)}catch(H){return H===A}}}else{var B=n("Object.prototype.toString"),C="[object RegExp]";m=function(P){return!P||typeof P!="object"&&typeof P!="function"?!1:B(P)===C}}return Xt=m,Xt}var zt,Dn;function Da(){if(Dn)return zt;Dn=1;var n=We(),o=Ca(),l=n("RegExp.prototype.exec"),u=Ge();return zt=function(y){if(!o(y))throw new u("`regex` must be a RegExp");return function(v){return l(y,v)!==null}},zt}var Jt,Ln;function La(){if(Ln)return Jt;Ln=1;var n=We(),o=Da(),l=o(/^\s*(?:function)?\*/),u=rt()(),m=jr(),y=n("Object.prototype.toString"),A=n("Function.prototype.toString"),v=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch{}},_;return Jt=function(C){if(typeof C!="function")return!1;if(l(A(C)))return!0;if(!u){var N=y(C);return N==="[object GeneratorFunction]"}if(!m)return!1;if(typeof _>"u"){var P=v();_=P?m(P):!1}return m(C)===_},Jt}var Qt,Mn;function Ma(){if(Mn)return Qt;Mn=1;var n=Function.prototype.toString,o=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,l,u;if(typeof o=="function"&&typeof Object.defineProperty=="function")try{l=Object.defineProperty({},"length",{get:function(){throw u}}),u={},o(function(){throw 42},null,l)}catch(E){E!==u&&(o=null)}else o=null;var m=/^\s*class\b/,y=function(s){try{var a=n.call(s);return m.test(a)}catch{return!1}},A=function(s){try{return y(s)?!1:(n.call(s),!0)}catch{return!1}},v=Object.prototype.toString,_="[object Object]",B="[object Function]",C="[object GeneratorFunction]",N="[object HTMLAllCollection]",P="[object HTML document.all class]",Y="[object HTMLCollection]",q=typeof Symbol=="function"&&!!Symbol.toStringTag,H=!(0 in[,]),L=function(){return!1};if(typeof document=="object"){var c=document.all;v.call(c)===v.call(document.all)&&(L=function(s){if((H||!s)&&(typeof s>"u"||typeof s=="object"))try{var a=v.call(s);return(a===N||a===P||a===Y||a===_)&&s("")==null}catch{}return!1})}return Qt=o?function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;try{o(s,null,l)}catch(a){if(a!==u)return!1}return!y(s)&&A(s)}:function(s){if(L(s))return!0;if(!s||typeof s!="function"&&typeof s!="object")return!1;if(q)return A(s);if(y(s))return!1;var a=v.call(s);return a!==B&&a!==C&&!/^\[object HTML/.test(a)?!1:A(s)},Qt}var Zt,Un;function Ua(){if(Un)return Zt;Un=1;var n=Ma(),o=Object.prototype.toString,l=Object.prototype.hasOwnProperty,u=function(_,B,C){for(var N=0,P=_.length;N<P;N++)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))},m=function(_,B,C){for(var N=0,P=_.length;N<P;N++)C==null?B(_.charAt(N),N,_):B.call(C,_.charAt(N),N,_)},y=function(_,B,C){for(var N in _)l.call(_,N)&&(C==null?B(_[N],N,_):B.call(C,_[N],N,_))};function A(v){return o.call(v)==="[object Array]"}return Zt=function(_,B,C){if(!n(B))throw new TypeError("iterator must be a function");var N;arguments.length>=3&&(N=C),A(_)?u(_,B,N):typeof _=="string"?m(_,B,N):y(_,B,N)},Zt}var er,jn;function ja(){return jn||(jn=1,er=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),er}var tr,qn;function qa(){if(qn)return tr;qn=1;var n=ja(),o=typeof globalThis>"u"?me.commonjsGlobal:globalThis;return tr=function(){for(var u=[],m=0;m<n.length;m++)typeof o[n[m]]=="function"&&(u[u.length]=n[m]);return u},tr}var rr={exports:{}},nr,kn;function ka(){if(kn)return nr;kn=1;var n=nt(),o=Oi(),l=Ge(),u=Me();return nr=function(y,A,v){if(!y||typeof y!="object"&&typeof y!="function")throw new l("`obj` must be an object or a function`");if(typeof A!="string"&&typeof A!="symbol")throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new l("`loose`, if provided, must be a boolean");var _=arguments.length>3?arguments[3]:null,B=arguments.length>4?arguments[4]:null,C=arguments.length>5?arguments[5]:null,N=arguments.length>6?arguments[6]:!1,P=!!u&&u(y,A);if(n)n(y,A,{configurable:C===null&&P?P.configurable:!C,enumerable:_===null&&P?P.enumerable:!_,value:v,writable:B===null&&P?P.writable:!B});else if(N||!_&&!B&&!C)y[A]=v;else throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},nr}var ir,Hn;function Ha(){if(Hn)return ir;Hn=1;var n=nt(),o=function(){return!!n};return o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],"length",{value:1}).length!==1}catch{return!0}},ir=o,ir}var ar,Gn;function Ga(){if(Gn)return ar;Gn=1;var n=Di(),o=ka(),l=Ha()(),u=Me(),m=Ge(),y=n("%Math.floor%");return ar=function(v,_){if(typeof v!="function")throw new m("`fn` is not a function");if(typeof _!="number"||_<0||_>4294967295||y(_)!==_)throw new m("`length` must be a positive 32-bit integer");var B=arguments.length>2&&!!arguments[2],C=!0,N=!0;if("length"in v&&u){var P=u(v,"length");P&&!P.configurable&&(C=!1),P&&!P.writable&&(N=!1)}return(C||N||!B)&&(l?o(v,"length",_,!0,!0):o(v,"length",_)),v},ar}var or,Kn;function Ka(){if(Kn)return or;Kn=1;var n=Ke(),o=Mr(),l=Pi();return or=function(){return l(n,o,arguments)},or}var Wn;function Wa(){return Wn||(Wn=1,(function(n){var o=Ga(),l=nt(),u=Ur(),m=Ka();n.exports=function(A){var v=u(arguments),_=A.length-(arguments.length-1);return o(v,1+(_>0?_:0),!0)},l?l(n.exports,"apply",{value:m}):n.exports.apply=m})(rr)),rr.exports}var ur,Vn;function Li(){if(Vn)return ur;Vn=1;var n=Ua(),o=qa(),l=Wa(),u=We(),m=Me(),y=jr(),A=u("Object.prototype.toString"),v=rt()(),_=typeof globalThis>"u"?me.commonjsGlobal:globalThis,B=o(),C=u("String.prototype.slice"),N=u("Array.prototype.indexOf",!0)||function(L,c){for(var E=0;E<L.length;E+=1)if(L[E]===c)return E;return-1},P={__proto__:null};v&&m&&y?n(B,function(H){var L=new _[H];if(Symbol.toStringTag in L&&y){var c=y(L),E=m(c,Symbol.toStringTag);if(!E&&c){var s=y(c);E=m(s,Symbol.toStringTag)}P["$"+H]=l(E.get)}}):n(B,function(H){var L=new _[H],c=L.slice||L.set;c&&(P["$"+H]=l(c))});var Y=function(L){var c=!1;return n(P,function(E,s){if(!c)try{"$"+E(L)===s&&(c=C(s,1))}catch{}}),c},q=function(L){var c=!1;return n(P,function(E,s){if(!c)try{E(L),c=C(s,1)}catch{}}),c};return ur=function(L){if(!L||typeof L!="object")return!1;if(!v){var c=C(A(L),8,-1);return N(B,c)>-1?c:c!=="Object"?!1:q(L)}return m?Y(L):null},ur}var sr,Yn;function Va(){if(Yn)return sr;Yn=1;var n=Li();return sr=function(l){return!!n(l)},sr}var $n;function Ya(){return $n||($n=1,(function(n){var o=Pa(),l=La(),u=Li(),m=Va();function y(k){return k.call.bind(k)}var A=typeof BigInt<"u",v=typeof Symbol<"u",_=y(Object.prototype.toString),B=y(Number.prototype.valueOf),C=y(String.prototype.valueOf),N=y(Boolean.prototype.valueOf);if(A)var P=y(BigInt.prototype.valueOf);if(v)var Y=y(Symbol.prototype.valueOf);function q(k,ve){if(typeof k!="object")return!1;try{return ve(k),!0}catch{return!1}}n.isArgumentsObject=o,n.isGeneratorFunction=l,n.isTypedArray=m;function H(k){return typeof Promise<"u"&&k instanceof Promise||k!==null&&typeof k=="object"&&typeof k.then=="function"&&typeof k.catch=="function"}n.isPromise=H;function L(k){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(k):m(k)||j(k)}n.isArrayBufferView=L;function c(k){return u(k)==="Uint8Array"}n.isUint8Array=c;function E(k){return u(k)==="Uint8ClampedArray"}n.isUint8ClampedArray=E;function s(k){return u(k)==="Uint16Array"}n.isUint16Array=s;function a(k){return u(k)==="Uint32Array"}n.isUint32Array=a;function g(k){return u(k)==="Int8Array"}n.isInt8Array=g;function T(k){return u(k)==="Int16Array"}n.isInt16Array=T;function S(k){return u(k)==="Int32Array"}n.isInt32Array=S;function F(k){return u(k)==="Float32Array"}n.isFloat32Array=F;function d(k){return u(k)==="Float64Array"}n.isFloat64Array=d;function K(k){return u(k)==="BigInt64Array"}n.isBigInt64Array=K;function X(k){return u(k)==="BigUint64Array"}n.isBigUint64Array=X;function x(k){return _(k)==="[object Map]"}x.working=typeof Map<"u"&&x(new Map);function ee(k){return typeof Map>"u"?!1:x.working?x(k):k instanceof Map}n.isMap=ee;function re(k){return _(k)==="[object Set]"}re.working=typeof Set<"u"&&re(new Set);function ie(k){return typeof Set>"u"?!1:re.working?re(k):k instanceof Set}n.isSet=ie;function le(k){return _(k)==="[object WeakMap]"}le.working=typeof WeakMap<"u"&&le(new WeakMap);function Z(k){return typeof WeakMap>"u"?!1:le.working?le(k):k instanceof WeakMap}n.isWeakMap=Z;function ce(k){return _(k)==="[object WeakSet]"}ce.working=typeof WeakSet<"u"&&ce(new WeakSet);function oe(k){return ce(k)}n.isWeakSet=oe;function ye(k){return _(k)==="[object ArrayBuffer]"}ye.working=typeof ArrayBuffer<"u"&&ye(new ArrayBuffer);function ge(k){return typeof ArrayBuffer>"u"?!1:ye.working?ye(k):k instanceof ArrayBuffer}n.isArrayBuffer=ge;function D(k){return _(k)==="[object DataView]"}D.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&D(new DataView(new ArrayBuffer(1),0,1));function j(k){return typeof DataView>"u"?!1:D.working?D(k):k instanceof DataView}n.isDataView=j;var W=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function J(k){return _(k)==="[object SharedArrayBuffer]"}function O(k){return typeof W>"u"?!1:(typeof J.working>"u"&&(J.working=J(new W)),J.working?J(k):k instanceof W)}n.isSharedArrayBuffer=O;function i(k){return _(k)==="[object AsyncFunction]"}n.isAsyncFunction=i;function r(k){return _(k)==="[object Map Iterator]"}n.isMapIterator=r;function R(k){return _(k)==="[object Set Iterator]"}n.isSetIterator=R;function w(k){return _(k)==="[object Generator]"}n.isGeneratorObject=w;function h(k){return _(k)==="[object WebAssembly.Module]"}n.isWebAssemblyCompiledModule=h;function p(k){return q(k,B)}n.isNumberObject=p;function U(k){return q(k,C)}n.isStringObject=U;function V(k){return q(k,N)}n.isBooleanObject=V;function Q(k){return A&&q(k,P)}n.isBigIntObject=Q;function $(k){return v&&q(k,Y)}n.isSymbolObject=$;function z(k){return p(k)||U(k)||V(k)||Q(k)||$(k)}n.isBoxedPrimitive=z;function se(k){return typeof Uint8Array<"u"&&(ge(k)||O(k))}n.isAnyArrayBuffer=se,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(k){Object.defineProperty(n,k,{enumerable:!1,value:function(){throw new Error(k+" is not supported in userland")}})})})(ct)),ct}var fr,Xn;function $a(){return Xn||(Xn=1,fr=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}),fr}var zn;function Mi(){return zn||(zn=1,(function(n){var o=Object.getOwnPropertyDescriptors||function(j){for(var W=Object.keys(j),J={},O=0;O<W.length;O++)J[W[O]]=Object.getOwnPropertyDescriptor(j,W[O]);return J},l=/%[sdj%]/g;n.format=function(D){if(!g(D)){for(var j=[],W=0;W<arguments.length;W++)j.push(A(arguments[W]));return j.join(" ")}for(var W=1,J=arguments,O=J.length,i=String(D).replace(l,function(R){if(R==="%%")return"%";if(W>=O)return R;switch(R){case"%s":return String(J[W++]);case"%d":return Number(J[W++]);case"%j":try{return JSON.stringify(J[W++])}catch{return"[Circular]"}default:return R}}),r=J[W];W<O;r=J[++W])E(r)||!d(r)?i+=" "+r:i+=" "+A(r);return i},n.deprecate=function(D,j){if(typeof te.process$1<"u"&&te.process$1.noDeprecation===!0)return D;if(typeof te.process$1>"u")return function(){return n.deprecate(D,j).apply(this,arguments)};var W=!1;function J(){if(!W){if(te.process$1.throwDeprecation)throw new Error(j);te.process$1.traceDeprecation?console.trace(j):console.error(j),W=!0}return D.apply(this,arguments)}return J};var u={},m=/^$/;if(te.process$1.env.NODE_DEBUG){var y=te.process$1.env.NODE_DEBUG;y=y.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),m=new RegExp("^"+y+"$","i")}n.debuglog=function(D){if(D=D.toUpperCase(),!u[D])if(m.test(D)){var j=te.process$1.pid;u[D]=function(){var W=n.format.apply(n,arguments);console.error("%s %d: %s",D,j,W)}}else u[D]=function(){};return u[D]};function A(D,j){var W={seen:[],stylize:_};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),c(j)?W.showHidden=j:j&&n._extend(W,j),S(W.showHidden)&&(W.showHidden=!1),S(W.depth)&&(W.depth=2),S(W.colors)&&(W.colors=!1),S(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=v),C(W,D,W.depth)}n.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 v(D,j){var W=A.styles[j];return W?"\x1B["+A.colors[W][0]+"m"+D+"\x1B["+A.colors[W][1]+"m":D}function _(D,j){return D}function B(D){var j={};return D.forEach(function(W,J){j[W]=!0}),j}function C(D,j,W){if(D.customInspect&&j&&x(j.inspect)&&j.inspect!==n.inspect&&!(j.constructor&&j.constructor.prototype===j)){var J=j.inspect(W,D);return g(J)||(J=C(D,J,W)),J}var O=N(D,j);if(O)return O;var i=Object.keys(j),r=B(i);if(D.showHidden&&(i=Object.getOwnPropertyNames(j)),X(j)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return P(j);if(i.length===0){if(x(j)){var R=j.name?": "+j.name:"";return D.stylize("[Function"+R+"]","special")}if(F(j))return D.stylize(RegExp.prototype.toString.call(j),"regexp");if(K(j))return D.stylize(Date.prototype.toString.call(j),"date");if(X(j))return P(j)}var w="",h=!1,p=["{","}"];if(L(j)&&(h=!0,p=["[","]"]),x(j)){var U=j.name?": "+j.name:"";w=" [Function"+U+"]"}if(F(j)&&(w=" "+RegExp.prototype.toString.call(j)),K(j)&&(w=" "+Date.prototype.toUTCString.call(j)),X(j)&&(w=" "+P(j)),i.length===0&&(!h||j.length==0))return p[0]+w+p[1];if(W<0)return F(j)?D.stylize(RegExp.prototype.toString.call(j),"regexp"):D.stylize("[Object]","special");D.seen.push(j);var V;return h?V=Y(D,j,W,r,i):V=i.map(function(Q){return q(D,j,W,r,Q,h)}),D.seen.pop(),H(V,w,p)}function N(D,j){if(S(j))return D.stylize("undefined","undefined");if(g(j)){var W="'"+JSON.stringify(j).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return D.stylize(W,"string")}if(a(j))return D.stylize(""+j,"number");if(c(j))return D.stylize(""+j,"boolean");if(E(j))return D.stylize("null","null")}function P(D){return"["+Error.prototype.toString.call(D)+"]"}function Y(D,j,W,J,O){for(var i=[],r=0,R=j.length;r<R;++r)ce(j,String(r))?i.push(q(D,j,W,J,String(r),!0)):i.push("");return O.forEach(function(w){w.match(/^\d+$/)||i.push(q(D,j,W,J,w,!0))}),i}function q(D,j,W,J,O,i){var r,R,w;if(w=Object.getOwnPropertyDescriptor(j,O)||{value:j[O]},w.get?w.set?R=D.stylize("[Getter/Setter]","special"):R=D.stylize("[Getter]","special"):w.set&&(R=D.stylize("[Setter]","special")),ce(J,O)||(r="["+O+"]"),R||(D.seen.indexOf(w.value)<0?(E(W)?R=C(D,w.value,null):R=C(D,w.value,W-1),R.indexOf(`
|
|
7
2
|
`)>-1&&(i?R=R.split(`
|
|
8
3
|
`).map(function(h){return" "+h}).join(`
|
|
9
4
|
`).slice(2):R=`
|
|
10
5
|
`+R.split(`
|
|
11
6
|
`).map(function(h){return" "+h}).join(`
|
|
12
|
-
`))):R=D.stylize("[Circular]","special")),S(r)){if(i&&O.match(/^\d+$/))return R;r=JSON.stringify(""+O),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.slice(1,-1),r=D.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=D.stylize(r,"string"))}return r+": "+R}function H(D,j
|
|
13
|
-
`)>=0,O+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60
|
|
7
|
+
`))):R=D.stylize("[Circular]","special")),S(r)){if(i&&O.match(/^\d+$/))return R;r=JSON.stringify(""+O),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.slice(1,-1),r=D.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=D.stylize(r,"string"))}return r+": "+R}function H(D,j,W){var J=D.reduce(function(O,i){return i.indexOf(`
|
|
8
|
+
`)>=0,O+i.replace(/\u001b\[\d\d?m/g,"").length+1},0);return J>60?W[0]+(j===""?"":j+`
|
|
14
9
|
`)+" "+D.join(`,
|
|
15
|
-
`)+" "+$[1]:$[0]+j+" "+D.join(", ")+" "+$[1]}n.types=Va();function L(D){return Array.isArray(D)}n.isArray=L;function c(D){return typeof D=="boolean"}n.isBoolean=c;function E(D){return D===null}n.isNull=E;function s(D){return D==null}n.isNullOrUndefined=s;function a(D){return typeof D=="number"}n.isNumber=a;function g(D){return typeof D=="string"}n.isString=g;function T(D){return typeof D=="symbol"}n.isSymbol=T;function S(D){return D===void 0}n.isUndefined=S;function F(D){return d(D)&&re(D)==="[object RegExp]"}n.isRegExp=F,n.types.isRegExp=F;function d(D){return typeof D=="object"&&D!==null}n.isObject=d;function K(D){return d(D)&&re(D)==="[object Date]"}n.isDate=K,n.types.isDate=K;function X(D){return d(D)&&(re(D)==="[object Error]"||D instanceof Error)}n.isError=X,n.types.isNativeError=X;function x(D){return typeof D=="function"}n.isFunction=x;function ee(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}n.isPrimitive=ee,n.isBuffer=Ya();function re(D){return Object.prototype.toString.call(D)}function ie(D){return D<10?"0"+D.toString(10):D.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z(){var D=new Date,j=[ie(D.getHours()),ie(D.getMinutes()),ie(D.getSeconds())].join(":");return[D.getDate(),le[D.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",Z(),n.format.apply(n,arguments))},n.inherits=Oe(),n._extend=function(D,j){if(!j||!d(j))return D;for(var $=Object.keys(j),J=$.length;J--;)D[$[J]]=j[$[J]];return D};function ce(D,j){return Object.prototype.hasOwnProperty.call(D,j)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&j[oe]){var $=j[oe];if(typeof $!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var J,O,i=new Promise(function(w,h){J=w,O=h}),r=[],R=0;R<arguments.length;R++)r.push(arguments[R]);r.push(function(w,h){w?O(w):J(h)});try{j.apply(this,r)}catch(w){O(w)}return i}return Object.setPrototypeOf($,Object.getPrototypeOf(j)),oe&&Object.defineProperty($,oe,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,o(j))},n.promisify.custom=oe;function ye(D,j){if(!D){var $=new Error("Promise was rejected with a falsy value");$.reason=D,D=$}return j(D)}function ge(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var $=[],J=0;J<arguments.length;J++)$.push(arguments[J]);var O=$.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var i=this,r=function(){return O.apply(i,arguments)};D.apply(this,$).then(function(R){te.process$1.nextTick(r.bind(null,null,R))},function(R){te.process$1.nextTick(ye.bind(null,R,r))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Object.defineProperties(j,o(D)),j}n.callbackify=ge})(lt)),lt}var lr,Jn;function Xa(){if(Jn)return lr;Jn=1;function n(q,H){var L=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);H&&(c=c.filter(function(E){return Object.getOwnPropertyDescriptor(q,E).enumerable})),L.push.apply(L,c)}return L}function o(q){for(var H=1;H<arguments.length;H++){var L=arguments[H]!=null?arguments[H]:{};H%2?n(Object(L),!0).forEach(function(c){l(q,c,L[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(L)):n(Object(L)).forEach(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(L,c))})}return q}function l(q,H,L){return H=A(H),H in q?Object.defineProperty(q,H,{value:L,enumerable:!0,configurable:!0,writable:!0}):q[H]=L,q}function u(q,H){if(!(q instanceof H))throw new TypeError("Cannot call a class as a function")}function m(q,H){for(var L=0;L<H.length;L++){var c=H[L];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(q,A(c.key),c)}}function y(q,H,L){return H&&m(q.prototype,H),Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var H=v(q,"string");return typeof H=="symbol"?H:String(H)}function v(q,H){if(typeof q!="object"||q===null)return q;var L=q[Symbol.toPrimitive];if(L!==void 0){var c=L.call(q,H);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var _=tt(),B=_.Buffer,C=Mi(),N=C.inspect,P=N&&N.custom||"inspect";function V(q,H,L){B.prototype.copy.call(q,H,L)}return lr=(function(){function q(){u(this,q),this.head=null,this.tail=null,this.length=0}return y(q,[{key:"push",value:function(L){var c={data:L,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(L){var c={data:L,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var c=this.head,E=""+c.data;c=c.next;)E+=L+c.data;return E}},{key:"concat",value:function(L){if(this.length===0)return B.alloc(0);for(var c=B.allocUnsafe(L>>>0),E=this.head,s=0;E;)V(E.data,c,s),s+=E.data.length,E=E.next;return c}},{key:"consume",value:function(L,c){var E;return L<this.head.data.length?(E=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?E=this.shift():E=c?this._getString(L):this._getBuffer(L),E}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var c=this.head,E=1,s=c.data;for(L-=s.length;c=c.next;){var a=c.data,g=L>a.length?a.length:L;if(g===a.length?s+=a:s+=a.slice(0,L),L-=g,L===0){g===a.length?(++E,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=a.slice(g));break}++E}return this.length-=E,s}},{key:"_getBuffer",value:function(L){var c=B.allocUnsafe(L),E=this.head,s=1;for(E.data.copy(c),L-=E.data.length;E=E.next;){var a=E.data,g=L>a.length?a.length:L;if(a.copy(c,c.length-L,0,g),L-=g,L===0){g===a.length?(++s,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=a.slice(g));break}++s}return this.length-=s,c}},{key:P,value:function(L,c){return N(this,o(o({},c),{},{depth:0,customInspect:!1}))}}]),q})(),lr}var cr,Qn;function Ui(){if(Qn)return cr;Qn=1;function n(A,v){var _=this,B=this._readableState&&this._readableState.destroyed,C=this._writableState&&this._writableState.destroyed;return B||C?(v?v(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.process$1.nextTick(m,this,A)):te.process$1.nextTick(m,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(N){!v&&N?_._writableState?_._writableState.errorEmitted?te.process$1.nextTick(l,_):(_._writableState.errorEmitted=!0,te.process$1.nextTick(o,_,N)):te.process$1.nextTick(o,_,N):v?(te.process$1.nextTick(l,_),v(N)):te.process$1.nextTick(l,_)}),this)}function o(A,v){m(A,v),l(A)}function l(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function u(){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 m(A,v){A.emit("error",v)}function y(A,v){var _=A._readableState,B=A._writableState;_&&_.autoDestroy||B&&B.autoDestroy?A.destroy(v):A.emit("error",v)}return cr={destroy:n,undestroy:u,errorOrDestroy:y},cr}var hr={},Zn;function Ue(){if(Zn)return hr;Zn=1;function n(v,_){v.prototype=Object.create(_.prototype),v.prototype.constructor=v,v.__proto__=_}var o={};function l(v,_,B){B||(B=Error);function C(P,V,q){return typeof _=="string"?_:_(P,V,q)}var N=(function(P){n(V,P);function V(q,H,L){return P.call(this,C(q,H,L))||this}return V})(B);N.prototype.name=B.name,N.prototype.code=v,o[v]=N}function u(v,_){if(Array.isArray(v)){var B=v.length;return v=v.map(function(C){return String(C)}),B>2?"one of ".concat(_," ").concat(v.slice(0,B-1).join(", "),", or ")+v[B-1]:B===2?"one of ".concat(_," ").concat(v[0]," or ").concat(v[1]):"of ".concat(_," ").concat(v[0])}else return"of ".concat(_," ").concat(String(v))}function m(v,_,B){return v.substr(0,_.length)===_}function y(v,_,B){return(B===void 0||B>v.length)&&(B=v.length),v.substring(B-_.length,B)===_}function A(v,_,B){return typeof B!="number"&&(B=0),B+_.length>v.length?!1:v.indexOf(_,B)!==-1}return l("ERR_INVALID_OPT_VALUE",function(v,_){return'The value "'+_+'" is invalid for option "'+v+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(v,_,B){var C;typeof _=="string"&&m(_,"not ")?(C="must not be",_=_.replace(/^not /,"")):C="must be";var N;if(y(v," argument"))N="The ".concat(v," ").concat(C," ").concat(u(_,"type"));else{var P=A(v,".")?"property":"argument";N='The "'.concat(v,'" ').concat(P," ").concat(C," ").concat(u(_,"type"))}return N+=". Received type ".concat(typeof B),N},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),hr.codes=o,hr}var dr,ei;function ji(){if(ei)return dr;ei=1;var n=Ue().codes.ERR_INVALID_OPT_VALUE;function o(u,m,y){return u.highWaterMark!=null?u.highWaterMark:m?u[y]:null}function l(u,m,y,A){var v=o(m,A,y);if(v!=null){if(!(isFinite(v)&&Math.floor(v)===v)||v<0){var _=A?y:"highWaterMark";throw new n(_,v)}return Math.floor(v)}return u.objectMode?16:16*1024}return dr={getHighWaterMark:l},dr}var pr,ti;function za(){if(ti)return pr;ti=1,pr=n;function n(l,u){if(o("noDeprecation"))return l;var m=!1;function y(){if(!m){if(o("throwDeprecation"))throw new Error(u);o("traceDeprecation")?console.trace(u):console.warn(u),m=!0}return l.apply(this,arguments)}return y}function o(l){try{if(!me.commonjsGlobal.localStorage)return!1}catch{return!1}var u=me.commonjsGlobal.localStorage[l];return u==null?!1:String(u).toLowerCase()==="true"}return pr}var yr,ri;function qi(){if(ri)return yr;ri=1,yr=F;function n(O){var i=this;this.next=null,this.entry=null,this.finish=function(){J(i,O)}}var o;F.WritableState=T;var l={deprecate:za()},u=xi(),m=tt().Buffer,y=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(O){return m.from(O)}function v(O){return m.isBuffer(O)||O instanceof y}var _=Ui(),B=ji(),C=B.getHighWaterMark,N=Ue().codes,P=N.ERR_INVALID_ARG_TYPE,V=N.ERR_METHOD_NOT_IMPLEMENTED,q=N.ERR_MULTIPLE_CALLBACK,H=N.ERR_STREAM_CANNOT_PIPE,L=N.ERR_STREAM_DESTROYED,c=N.ERR_STREAM_NULL_VALUES,E=N.ERR_STREAM_WRITE_AFTER_END,s=N.ERR_UNKNOWN_ENCODING,a=_.errorOrDestroy;Oe()(F,u);function g(){}function T(O,i,r){o=o||Le(),O=O||{},typeof r!="boolean"&&(r=i instanceof o),this.objectMode=!!O.objectMode,r&&(this.objectMode=this.objectMode||!!O.writableObjectMode),this.highWaterMark=C(this,O,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=O.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){le(i,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}T.prototype.getBuffer=function(){for(var i=this.bufferedRequest,r=[];i;)r.push(i),i=i.next;return r},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(i){return S.call(this,i)?!0:this!==F?!1:i&&i._writableState instanceof T}})):S=function(i){return i instanceof this};function F(O){o=o||Le();var i=this instanceof o;if(!i&&!S.call(F,this))return new F(O);this._writableState=new T(O,this,i),this.writable=!0,O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final)),u.call(this)}F.prototype.pipe=function(){a(this,new H)};function d(O,i){var r=new E;a(O,r),te.process$1.nextTick(i,r)}function K(O,i,r,R){var w;return r===null?w=new c:typeof r!="string"&&!i.objectMode&&(w=new P("chunk",["string","Buffer"],r)),w?(a(O,w),te.process$1.nextTick(R,w),!1):!0}F.prototype.write=function(O,i,r){var R=this._writableState,w=!1,h=!R.objectMode&&v(O);return h&&!m.isBuffer(O)&&(O=A(O)),typeof i=="function"&&(r=i,i=null),h?i="buffer":i||(i=R.defaultEncoding),typeof r!="function"&&(r=g),R.ending?d(this,r):(h||K(this,R,O,r))&&(R.pendingcb++,w=x(this,R,h,O,i,r)),w},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var O=this._writableState;O.corked&&(O.corked--,!O.writing&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&oe(this,O))},F.prototype.setDefaultEncoding=function(i){if(typeof i=="string"&&(i=i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((i+"").toLowerCase())>-1))throw new s(i);return this._writableState.defaultEncoding=i,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(O,i,r){return!O.objectMode&&O.decodeStrings!==!1&&typeof i=="string"&&(i=m.from(i,r)),i}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(O,i,r,R,w,h){if(!r){var p=X(i,R,w);R!==p&&(r=!0,w="buffer",R=p)}var U=i.objectMode?1:R.length;i.length+=U;var W=i.length<i.highWaterMark;if(W||(i.needDrain=!0),i.writing||i.corked){var Q=i.lastBufferedRequest;i.lastBufferedRequest={chunk:R,encoding:w,isBuf:r,callback:h,next:null},Q?Q.next=i.lastBufferedRequest:i.bufferedRequest=i.lastBufferedRequest,i.bufferedRequestCount+=1}else ee(O,i,!1,U,R,w,h);return W}function ee(O,i,r,R,w,h,p){i.writelen=R,i.writecb=p,i.writing=!0,i.sync=!0,i.destroyed?i.onwrite(new L("write")):r?O._writev(w,i.onwrite):O._write(w,h,i.onwrite),i.sync=!1}function re(O,i,r,R,w){--i.pendingcb,r?(te.process$1.nextTick(w,R),te.process$1.nextTick(j,O,i),O._writableState.errorEmitted=!0,a(O,R)):(w(R),O._writableState.errorEmitted=!0,a(O,R),j(O,i))}function ie(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}function le(O,i){var r=O._writableState,R=r.sync,w=r.writecb;if(typeof w!="function")throw new q;if(ie(r),i)re(O,r,R,i,w);else{var h=ye(r)||O.destroyed;!h&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&oe(O,r),R?te.process$1.nextTick(Z,O,r,h,w):Z(O,r,h,w)}}function Z(O,i,r,R){r||ce(O,i),i.pendingcb--,R(),j(O,i)}function ce(O,i){i.length===0&&i.needDrain&&(i.needDrain=!1,O.emit("drain"))}function oe(O,i){i.bufferProcessing=!0;var r=i.bufferedRequest;if(O._writev&&r&&r.next){var R=i.bufferedRequestCount,w=new Array(R),h=i.corkedRequestsFree;h.entry=r;for(var p=0,U=!0;r;)w[p]=r,r.isBuf||(U=!1),r=r.next,p+=1;w.allBuffers=U,ee(O,i,!0,i.length,w,"",h.finish),i.pendingcb++,i.lastBufferedRequest=null,h.next?(i.corkedRequestsFree=h.next,h.next=null):i.corkedRequestsFree=new n(i),i.bufferedRequestCount=0}else{for(;r;){var W=r.chunk,Q=r.encoding,Y=r.callback,z=i.objectMode?1:W.length;if(ee(O,i,!1,z,W,Q,Y),r=r.next,i.bufferedRequestCount--,i.writing)break}r===null&&(i.lastBufferedRequest=null)}i.bufferedRequest=r,i.bufferProcessing=!1}F.prototype._write=function(O,i,r){r(new V("_write()"))},F.prototype._writev=null,F.prototype.end=function(O,i,r){var R=this._writableState;return typeof O=="function"?(r=O,O=null,i=null):typeof i=="function"&&(r=i,i=null),O!=null&&this.write(O,i),R.corked&&(R.corked=1,this.uncork()),R.ending||$(this,R,r),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ye(O){return O.ending&&O.length===0&&O.bufferedRequest===null&&!O.finished&&!O.writing}function ge(O,i){O._final(function(r){i.pendingcb--,r&&a(O,r),i.prefinished=!0,O.emit("prefinish"),j(O,i)})}function D(O,i){!i.prefinished&&!i.finalCalled&&(typeof O._final=="function"&&!i.destroyed?(i.pendingcb++,i.finalCalled=!0,te.process$1.nextTick(ge,O,i)):(i.prefinished=!0,O.emit("prefinish")))}function j(O,i){var r=ye(i);if(r&&(D(O,i),i.pendingcb===0&&(i.finished=!0,O.emit("finish"),i.autoDestroy))){var R=O._readableState;(!R||R.autoDestroy&&R.endEmitted)&&O.destroy()}return r}function $(O,i,r){i.ending=!0,j(O,i),r&&(i.finished?te.process$1.nextTick(r):O.once("finish",r)),i.ended=!0,O.writable=!1}function J(O,i,r){var R=O.entry;for(O.entry=null;R;){var w=R.callback;i.pendingcb--,w(r),R=R.next}i.corkedRequestsFree.next=O}return Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(i){this._writableState&&(this._writableState.destroyed=i)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(O,i){i(O)},yr}var gr,ni;function Le(){if(ni)return gr;ni=1;var n=Object.keys||function(B){var C=[];for(var N in B)C.push(N);return C};gr=A;var o=ki(),l=qi();Oe()(A,o);for(var u=n(l.prototype),m=0;m<u.length;m++){var y=u[m];A.prototype[y]||(A.prototype[y]=l.prototype[y])}function A(B){if(!(this instanceof A))return new A(B);o.call(this,B),l.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",v)))}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 v(){this._writableState.ended||te.process$1.nextTick(_,this)}function _(B){B.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(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),gr}var br={},Xe={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var ii;function Ja(){return ii||(ii=1,(function(n,o){var l=tt(),u=l.Buffer;function m(A,v){for(var _ in A)v[_]=A[_]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?n.exports=l:(m(l,o),o.Buffer=y);function y(A,v,_){return u(A,v,_)}y.prototype=Object.create(u.prototype),m(u,y),y.from=function(A,v,_){if(typeof A=="number")throw new TypeError("Argument must not be a number");return u(A,v,_)},y.alloc=function(A,v,_){if(typeof A!="number")throw new TypeError("Argument must be a number");var B=u(A);return v!==void 0?typeof _=="string"?B.fill(v,_):B.fill(v):B.fill(0),B},y.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return u(A)},y.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(A)}})(Xe,Xe.exports)),Xe.exports}var ai;function Pr(){if(ai)return br;ai=1;var n=Ja().Buffer,o=n.isEncoding||function(c){switch(c=""+c,c&&c.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 l(c){if(!c)return"utf8";for(var E;;)switch(c){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 c;default:if(E)return;c=(""+c).toLowerCase(),E=!0}}function u(c){var E=l(c);if(typeof E!="string"&&(n.isEncoding===o||!o(c)))throw new Error("Unknown encoding: "+c);return E||c}br.StringDecoder=m;function m(c){this.encoding=u(c);var E;switch(this.encoding){case"utf16le":this.text=N,this.end=P,E=4;break;case"utf8":this.fillLast=_,E=4;break;case"base64":this.text=V,this.end=q,E=3;break;default:this.write=H,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(E)}m.prototype.write=function(c){if(c.length===0)return"";var E,s;if(this.lastNeed){if(E=this.fillLast(c),E===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<c.length?E?E+this.text(c,s):this.text(c,s):E||""},m.prototype.end=C,m.prototype.text=B,m.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length};function y(c){return c<=127?0:c>>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function A(c,E,s){var a=E.length-1;if(a<s)return 0;var g=y(E[a]);return g>=0?(g>0&&(c.lastNeed=g-1),g):--a<s||g===-2?0:(g=y(E[a]),g>=0?(g>0&&(c.lastNeed=g-2),g):--a<s||g===-2?0:(g=y(E[a]),g>=0?(g>0&&(g===2?g=0:c.lastNeed=g-3),g):0))}function v(c,E,s){if((E[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return c.lastNeed=2,"�"}}function _(c){var E=this.lastTotal-this.lastNeed,s=v(this,c);if(s!==void 0)return s;if(this.lastNeed<=c.length)return c.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,E,0,c.length),this.lastNeed-=c.length}function B(c,E){var s=A(this,c,E);if(!this.lastNeed)return c.toString("utf8",E);this.lastTotal=s;var a=c.length-(s-this.lastNeed);return c.copy(this.lastChar,0,a),c.toString("utf8",E,a)}function C(c){var E=c&&c.length?this.write(c):"";return this.lastNeed?E+"�":E}function N(c,E){if((c.length-E)%2===0){var s=c.toString("utf16le",E);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",E,c.length-1)}function P(c){var E=c&&c.length?this.write(c):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,s)}return E}function V(c,E){var s=(c.length-E)%3;return s===0?c.toString("base64",E):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",E,c.length-s))}function q(c){var E=c&&c.length?this.write(c):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function H(c){return c.toString(this.encoding)}function L(c){return c&&c.length?this.write(c):""}return br}var mr,oi;function qr(){if(oi)return mr;oi=1;var n=Ue().codes.ERR_STREAM_PREMATURE_CLOSE;function o(y){var A=!1;return function(){if(!A){A=!0;for(var v=arguments.length,_=new Array(v),B=0;B<v;B++)_[B]=arguments[B];y.apply(this,_)}}}function l(){}function u(y){return y.setHeader&&typeof y.abort=="function"}function m(y,A,v){if(typeof A=="function")return m(y,null,A);A||(A={}),v=o(v||l);var _=A.readable||A.readable!==!1&&y.readable,B=A.writable||A.writable!==!1&&y.writable,C=function(){y.writable||P()},N=y._writableState&&y._writableState.finished,P=function(){B=!1,N=!0,_||v.call(y)},V=y._readableState&&y._readableState.endEmitted,q=function(){_=!1,V=!0,B||v.call(y)},H=function(s){v.call(y,s)},L=function(){var s;if(_&&!V)return(!y._readableState||!y._readableState.ended)&&(s=new n),v.call(y,s);if(B&&!N)return(!y._writableState||!y._writableState.ended)&&(s=new n),v.call(y,s)},c=function(){y.req.on("finish",P)};return u(y)?(y.on("complete",P),y.on("abort",L),y.req?c():y.on("request",c)):B&&!y._writableState&&(y.on("end",C),y.on("close",C)),y.on("end",q),y.on("finish",P),A.error!==!1&&y.on("error",H),y.on("close",L),function(){y.removeListener("complete",P),y.removeListener("abort",L),y.removeListener("request",c),y.req&&y.req.removeListener("finish",P),y.removeListener("end",C),y.removeListener("close",C),y.removeListener("finish",P),y.removeListener("end",q),y.removeListener("error",H),y.removeListener("close",L)}}return mr=m,mr}var Er,ui;function Qa(){if(ui)return Er;ui=1;var n;function o(s,a,g){return a=l(a),a in s?Object.defineProperty(s,a,{value:g,enumerable:!0,configurable:!0,writable:!0}):s[a]=g,s}function l(s){var a=u(s,"string");return typeof a=="symbol"?a:String(a)}function u(s,a){if(typeof s!="object"||s===null)return s;var g=s[Symbol.toPrimitive];if(g!==void 0){var T=g.call(s,a);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)}var m=qr(),y=Symbol("lastResolve"),A=Symbol("lastReject"),v=Symbol("error"),_=Symbol("ended"),B=Symbol("lastPromise"),C=Symbol("handlePromise"),N=Symbol("stream");function P(s,a){return{value:s,done:a}}function V(s){var a=s[y];if(a!==null){var g=s[N].read();g!==null&&(s[B]=null,s[y]=null,s[A]=null,a(P(g,!1)))}}function q(s){te.process$1.nextTick(V,s)}function H(s,a){return function(g,T){s.then(function(){if(a[_]){g(P(void 0,!0));return}a[C](g,T)},T)}}var L=Object.getPrototypeOf(function(){}),c=Object.setPrototypeOf((n={get stream(){return this[N]},next:function(){var a=this,g=this[v];if(g!==null)return Promise.reject(g);if(this[_])return Promise.resolve(P(void 0,!0));if(this[N].destroyed)return new Promise(function(d,K){te.process$1.nextTick(function(){a[v]?K(a[v]):d(P(void 0,!0))})});var T=this[B],S;if(T)S=new Promise(H(T,this));else{var F=this[N].read();if(F!==null)return Promise.resolve(P(F,!1));S=new Promise(this[C])}return this[B]=S,S}},o(n,Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var a=this;return new Promise(function(g,T){a[N].destroy(null,function(S){if(S){T(S);return}g(P(void 0,!0))})})}),n),L),E=function(a){var g,T=Object.create(c,(g={},o(g,N,{value:a,writable:!0}),o(g,y,{value:null,writable:!0}),o(g,A,{value:null,writable:!0}),o(g,v,{value:null,writable:!0}),o(g,_,{value:a._readableState.endEmitted,writable:!0}),o(g,C,{value:function(F,d){var K=T[N].read();K?(T[B]=null,T[y]=null,T[A]=null,F(P(K,!1))):(T[y]=F,T[A]=d)},writable:!0}),g));return T[B]=null,m(a,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=T[A];F!==null&&(T[B]=null,T[y]=null,T[A]=null,F(S)),T[v]=S;return}var d=T[y];d!==null&&(T[B]=null,T[y]=null,T[A]=null,d(P(void 0,!0))),T[_]=!0}),a.on("readable",q.bind(null,T)),T};return Er=E,Er}var vr,si;function Za(){return si||(si=1,vr=function(){throw new Error("Readable.from is not available in the browser")}),vr}var wr,fi;function ki(){if(fi)return wr;fi=1,wr=d;var n;d.ReadableState=F,Dr().EventEmitter;var o=function(p,U){return p.listeners(U).length},l=xi(),u=tt().Buffer,m=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(h){return u.from(h)}function A(h){return u.isBuffer(h)||h instanceof m}var v=Mi(),_;v&&v.debuglog?_=v.debuglog("stream"):_=function(){};var B=Xa(),C=Ui(),N=ji(),P=N.getHighWaterMark,V=Ue().codes,q=V.ERR_INVALID_ARG_TYPE,H=V.ERR_STREAM_PUSH_AFTER_EOF,L=V.ERR_METHOD_NOT_IMPLEMENTED,c=V.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,s,a;Oe()(d,l);var g=C.errorOrDestroy,T=["error","close","destroy","pause","resume"];function S(h,p,U){if(typeof h.prependListener=="function")return h.prependListener(p,U);!h._events||!h._events[p]?h.on(p,U):Array.isArray(h._events[p])?h._events[p].unshift(U):h._events[p]=[U,h._events[p]]}function F(h,p,U){n=n||Le(),h=h||{},typeof U!="boolean"&&(U=p instanceof n),this.objectMode=!!h.objectMode,U&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=P(this,h,"readableHighWaterMark",U),this.buffer=new B,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(E||(E=Pr().StringDecoder),this.decoder=new E(h.encoding),this.encoding=h.encoding)}function d(h){if(n=n||Le(),!(this instanceof d))return new d(h);var p=this instanceof n;this._readableState=new F(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),l.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),d.prototype.destroy=C.destroy,d.prototype._undestroy=C.undestroy,d.prototype._destroy=function(h,p){p(h)},d.prototype.push=function(h,p){var U=this._readableState,W;return U.objectMode?W=!0:typeof h=="string"&&(p=p||U.defaultEncoding,p!==U.encoding&&(h=u.from(h,p),p=""),W=!0),K(this,h,p,!1,W)},d.prototype.unshift=function(h){return K(this,h,null,!0,!1)};function K(h,p,U,W,Q){_("readableAddChunk",p);var Y=h._readableState;if(p===null)Y.reading=!1,le(h,Y);else{var z;if(Q||(z=x(Y,p)),z)g(h,z);else if(Y.objectMode||p&&p.length>0)if(typeof p!="string"&&!Y.objectMode&&Object.getPrototypeOf(p)!==u.prototype&&(p=y(p)),W)Y.endEmitted?g(h,new c):X(h,Y,p,!0);else if(Y.ended)g(h,new H);else{if(Y.destroyed)return!1;Y.reading=!1,Y.decoder&&!U?(p=Y.decoder.write(p),Y.objectMode||p.length!==0?X(h,Y,p,!1):oe(h,Y)):X(h,Y,p,!1)}else W||(Y.reading=!1,oe(h,Y))}return!Y.ended&&(Y.length<Y.highWaterMark||Y.length===0)}function X(h,p,U,W){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",U)):(p.length+=p.objectMode?1:U.length,W?p.buffer.unshift(U):p.buffer.push(U),p.needReadable&&Z(h)),oe(h,p)}function x(h,p){var U;return!A(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&(U=new q("chunk",["string","Buffer","Uint8Array"],p)),U}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(h){E||(E=Pr().StringDecoder);var p=new E(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,W="";U!==null;)W+=p.write(U.data),U=U.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var ee=1073741824;function re(h){return h>=ee?h=ee:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ie(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=re(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}d.prototype.read=function(h){_("read",h),h=parseInt(h,10);var p=this._readableState,U=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return _("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?r(this):Z(this),null;if(h=ie(h,p),h===0&&p.ended)return p.length===0&&r(this),null;var W=p.needReadable;_("need readable",W),(p.length===0||p.length-h<p.highWaterMark)&&(W=!0,_("length less than watermark",W)),p.ended||p.reading?(W=!1,_("reading or ended",W)):W&&(_("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ie(U,p)));var Q;return h>0?Q=i(h,p):Q=null,Q===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),U!==h&&p.ended&&r(this)),Q!==null&&this.emit("data",Q),Q};function le(h,p){if(_("onEofChunk"),!p.ended){if(p.decoder){var U=p.decoder.end();U&&U.length&&(p.buffer.push(U),p.length+=p.objectMode?1:U.length)}p.ended=!0,p.sync?Z(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ce(h)))}}function Z(h){var p=h._readableState;_("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(_("emitReadable",p.flowing),p.emittedReadable=!0,te.process$1.nextTick(ce,h))}function ce(h){var p=h._readableState;_("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,O(h)}function oe(h,p){p.readingMore||(p.readingMore=!0,te.process$1.nextTick(ye,h,p))}function ye(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var U=p.length;if(_("maybeReadMore read 0"),h.read(0),U===p.length)break}p.readingMore=!1}d.prototype._read=function(h){g(this,new L("_read()"))},d.prototype.pipe=function(h,p){var U=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=h;break;case 1:W.pipes=[W.pipes,h];break;default:W.pipes.push(h);break}W.pipesCount+=1,_("pipe count=%d opts=%j",W.pipesCount,p);var Q=(!p||p.end!==!1)&&h!==te.process$1.stdout&&h!==te.process$1.stderr,Y=Q?se:Re;W.endEmitted?te.process$1.nextTick(Y):U.once("end",Y),h.on("unpipe",z);function z(Ae,Te){_("onunpipe"),Ae===U&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,be())}function se(){_("onend"),h.end()}var k=ge(U);h.on("drain",k);var ve=!1;function be(){_("cleanup"),h.removeListener("close",we),h.removeListener("finish",Be),h.removeListener("drain",k),h.removeListener("error",he),h.removeListener("unpipe",z),U.removeListener("end",se),U.removeListener("end",Re),U.removeListener("data",ae),ve=!0,W.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&k()}U.on("data",ae);function ae(Ae){_("ondata");var Te=h.write(Ae);_("dest.write",Te),Te===!1&&((W.pipesCount===1&&W.pipes===h||W.pipesCount>1&&w(W.pipes,h)!==-1)&&!ve&&(_("false write response, pause",W.awaitDrain),W.awaitDrain++),U.pause())}function he(Ae){_("onerror",Ae),Re(),h.removeListener("error",he),o(h,"error")===0&&g(h,Ae)}S(h,"error",he);function we(){h.removeListener("finish",Be),Re()}h.once("close",we);function Be(){_("onfinish"),h.removeListener("close",we),Re()}h.once("finish",Be);function Re(){_("unpipe"),U.unpipe(h)}return h.emit("pipe",U),W.flowing||(_("pipe resume"),U.resume()),h};function ge(h){return function(){var U=h._readableState;_("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&o(h,"data")&&(U.flowing=!0,O(h))}}d.prototype.unpipe=function(h){var p=this._readableState,U={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,U),this);if(!h){var W=p.pipes,Q=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var Y=0;Y<Q;Y++)W[Y].emit("unpipe",this,{hasUnpiped:!1});return this}var z=w(p.pipes,h);return z===-1?this:(p.pipes.splice(z,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,U),this)},d.prototype.on=function(h,p){var U=l.prototype.on.call(this,h,p),W=this._readableState;return h==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):h==="readable"&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,_("on readable",W.length,W.reading),W.length?Z(this):W.reading||te.process$1.nextTick(j,this)),U},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(h,p){var U=l.prototype.removeListener.call(this,h,p);return h==="readable"&&te.process$1.nextTick(D,this),U},d.prototype.removeAllListeners=function(h){var p=l.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&te.process$1.nextTick(D,this),p};function D(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function j(h){_("readable nexttick read 0"),h.read(0)}d.prototype.resume=function(){var h=this._readableState;return h.flowing||(_("resume"),h.flowing=!h.readableListening,$(this,h)),h.paused=!1,this};function $(h,p){p.resumeScheduled||(p.resumeScheduled=!0,te.process$1.nextTick(J,h,p))}function J(h,p){_("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),O(h),p.flowing&&!p.reading&&h.read(0)}d.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function O(h){var p=h._readableState;for(_("flow",p.flowing);p.flowing&&h.read()!==null;);}d.prototype.wrap=function(h){var p=this,U=this._readableState,W=!1;h.on("end",function(){if(_("wrapped end"),U.decoder&&!U.ended){var z=U.decoder.end();z&&z.length&&p.push(z)}p.push(null)}),h.on("data",function(z){if(_("wrapped data"),U.decoder&&(z=U.decoder.write(z)),!(U.objectMode&&z==null)&&!(!U.objectMode&&(!z||!z.length))){var se=p.push(z);se||(W=!0,h.pause())}});for(var Q in h)this[Q]===void 0&&typeof h[Q]=="function"&&(this[Q]=(function(se){return function(){return h[se].apply(h,arguments)}})(Q));for(var Y=0;Y<T.length;Y++)h.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(z){_("wrapped _read",z),W&&(W=!1,h.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=Qa()),s(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),d._fromList=i,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function i(h,p){if(p.length===0)return null;var U;return p.objectMode?U=p.buffer.shift():!h||h>=p.length?(p.decoder?U=p.buffer.join(""):p.buffer.length===1?U=p.buffer.first():U=p.buffer.concat(p.length),p.buffer.clear()):U=p.buffer.consume(h,p.decoder),U}function r(h){var p=h._readableState;_("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,te.process$1.nextTick(R,p,h))}function R(h,p){if(_("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var U=p._writableState;(!U||U.autoDestroy&&U.finished)&&p.destroy()}}typeof Symbol=="function"&&(d.from=function(h,p){return a===void 0&&(a=Za()),a(d,h,p)});function w(h,p){for(var U=0,W=h.length;U<W;U++)if(h[U]===p)return U;return-1}return wr}var _r,li;function Hi(){if(li)return _r;li=1,_r=v;var n=Ue().codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,l=n.ERR_MULTIPLE_CALLBACK,u=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,m=n.ERR_TRANSFORM_WITH_LENGTH_0,y=Le();Oe()(v,y);function A(C,N){var P=this._transformState;P.transforming=!1;var V=P.writecb;if(V===null)return this.emit("error",new l);P.writechunk=null,P.writecb=null,N!=null&&this.push(N),V(C);var q=this._readableState;q.reading=!1,(q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}function v(C){if(!(this instanceof v))return new v(C);y.call(this,C),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",_)}function _(){var C=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,P){B(C,N,P)}):B(this,null,null)}v.prototype.push=function(C,N){return this._transformState.needTransform=!1,y.prototype.push.call(this,C,N)},v.prototype._transform=function(C,N,P){P(new o("_transform()"))},v.prototype._write=function(C,N,P){var V=this._transformState;if(V.writecb=P,V.writechunk=C,V.writeencoding=N,!V.transforming){var q=this._readableState;(V.needTransform||q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}},v.prototype._read=function(C){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},v.prototype._destroy=function(C,N){y.prototype._destroy.call(this,C,function(P){N(P)})};function B(C,N,P){if(N)return C.emit("error",N);if(P!=null&&C.push(P),C._writableState.length)throw new m;if(C._transformState.transforming)throw new u;return C.push(null)}return _r}var Ar,ci;function eo(){if(ci)return Ar;ci=1,Ar=o;var n=Hi();Oe()(o,n);function o(l){if(!(this instanceof o))return new o(l);n.call(this,l)}return o.prototype._transform=function(l,u,m){m(null,l)},Ar}var Tr,hi;function to(){if(hi)return Tr;hi=1;var n;function o(P){var V=!1;return function(){V||(V=!0,P.apply(void 0,arguments))}}var l=Ue().codes,u=l.ERR_MISSING_ARGS,m=l.ERR_STREAM_DESTROYED;function y(P){if(P)throw P}function A(P){return P.setHeader&&typeof P.abort=="function"}function v(P,V,q,H){H=o(H);var L=!1;P.on("close",function(){L=!0}),n===void 0&&(n=qr()),n(P,{readable:V,writable:q},function(E){if(E)return H(E);L=!0,H()});var c=!1;return function(E){if(!L&&!c){if(c=!0,A(P))return P.abort();if(typeof P.destroy=="function")return P.destroy();H(E||new m("pipe"))}}}function _(P){P()}function B(P,V){return P.pipe(V)}function C(P){return!P.length||typeof P[P.length-1]!="function"?y:P.pop()}function N(){for(var P=arguments.length,V=new Array(P),q=0;q<P;q++)V[q]=arguments[q];var H=C(V);if(Array.isArray(V[0])&&(V=V[0]),V.length<2)throw new u("streams");var L,c=V.map(function(E,s){var a=s<V.length-1,g=s>0;return v(E,a,g,function(T){L||(L=T),T&&c.forEach(_),!a&&(c.forEach(_),H(L))})});return V.reduce(B)}return Tr=N,Tr}var Sr,di;function ro(){if(di)return Sr;di=1,Sr=l;var n=Dr().EventEmitter,o=Oe();o(l,n),l.Readable=ki(),l.Writable=qi(),l.Duplex=Le(),l.Transform=Hi(),l.PassThrough=eo(),l.finished=qr(),l.pipeline=to(),l.Stream=l;function l(){n.call(this)}return l.prototype.pipe=function(u,m){var y=this;function A(V){u.writable&&u.write(V)===!1&&y.pause&&y.pause()}y.on("data",A);function v(){y.readable&&y.resume&&y.resume()}u.on("drain",v),!u._isStdio&&(!m||m.end!==!1)&&(y.on("end",B),y.on("close",C));var _=!1;function B(){_||(_=!0,u.end())}function C(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function N(V){if(P(),n.listenerCount(this,"error")===0)throw V}y.on("error",N),u.on("error",N);function P(){y.removeListener("data",A),u.removeListener("drain",v),y.removeListener("end",B),y.removeListener("close",C),y.removeListener("error",N),u.removeListener("error",N),y.removeListener("end",P),y.removeListener("close",P),u.removeListener("close",P)}return y.on("end",P),y.on("close",P),u.on("close",P),u.emit("pipe",y),u},Sr}var pi;function no(){return pi||(pi=1,(function(n){(function(o){o.parser=function(i,r){return new u(i,r)},o.SAXParser=u,o.SAXStream=C,o.createStream=B,o.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];o.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(i,r){if(!(this instanceof u))return new u(i,r);var R=this;y(R),R.q=R.c="",R.bufferCheckPosition=o.MAX_BUFFER_LENGTH,R.opt=r||{},R.opt.lowercase=R.opt.lowercase||R.opt.lowercasetags,R.looseCase=R.opt.lowercase?"toLowerCase":"toUpperCase",R.tags=[],R.closed=R.closedRoot=R.sawRoot=!1,R.tag=R.error=null,R.strict=!!i,R.noscript=!!(i||R.opt.noscript),R.state=d.BEGIN,R.strictEntities=R.opt.strictEntities,R.ENTITIES=R.strictEntities?Object.create(o.XML_ENTITIES):Object.create(o.ENTITIES),R.attribList=[],R.opt.xmlns&&(R.ns=Object.create(H)),R.opt.unquotedAttributeValues===void 0&&(R.opt.unquotedAttributeValues=!i),R.trackPosition=R.opt.position!==!1,R.trackPosition&&(R.position=R.line=R.column=0),X(R,"onready")}Object.create||(Object.create=function(i){function r(){}r.prototype=i;var R=new r;return R}),Object.keys||(Object.keys=function(i){var r=[];for(var R in i)i.hasOwnProperty(R)&&r.push(R);return r});function m(i){for(var r=Math.max(o.MAX_BUFFER_LENGTH,10),R=0,w=0,h=l.length;w<h;w++){var p=i[l[w]].length;if(p>r)switch(l[w]){case"textNode":ee(i);break;case"cdata":x(i,"oncdata",i.cdata),i.cdata="";break;case"script":x(i,"onscript",i.script),i.script="";break;default:ie(i,"Max buffer length exceeded: "+l[w])}R=Math.max(R,p)}var U=o.MAX_BUFFER_LENGTH-R;i.bufferCheckPosition=U+i.position}function y(i){for(var r=0,R=l.length;r<R;r++)i[l[r]]=""}function A(i){ee(i),i.cdata!==""&&(x(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(x(i,"onscript",i.script),i.script="")}u.prototype={end:function(){le(this)},write:O,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var v;try{v=ro().Stream}catch{v=function(){}}v||(v=function(){});var _=o.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function B(i,r){return new C(i,r)}function C(i,r){if(!(this instanceof C))return new C(i,r);v.apply(this),this._parser=new u(i,r),this.writable=!0,this.readable=!0;var R=this;this._parser.onend=function(){R.emit("end")},this._parser.onerror=function(w){R.emit("error",w),R._parser.error=null},this._decoder=null,_.forEach(function(w){Object.defineProperty(R,"on"+w,{get:function(){return R._parser["on"+w]},set:function(h){if(!h)return R.removeAllListeners(w),R._parser["on"+w]=h,h;R.on(w,h)},enumerable:!0,configurable:!1})})}C.prototype=Object.create(v.prototype,{constructor:{value:C}}),C.prototype.write=function(i){if(typeof te.Buffer=="function"&&typeof te.Buffer.isBuffer=="function"&&te.Buffer.isBuffer(i)){if(!this._decoder){var r=Pr().StringDecoder;this._decoder=new r("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},C.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},C.prototype.on=function(i,r){var R=this;return!R._parser["on"+i]&&_.indexOf(i)!==-1&&(R._parser["on"+i]=function(){var w=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);w.splice(0,0,i),R.emit.apply(R,w)}),v.prototype.on.call(R,i,r)};var N="[CDATA[",P="DOCTYPE",V="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",H={xml:V,xmlns:q},L=/[:_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]/,c=/[:_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-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_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 a(i){return i===" "||i===`
|
|
10
|
+
`)+" "+W[1]:W[0]+j+" "+D.join(", ")+" "+W[1]}n.types=Ya();function L(D){return Array.isArray(D)}n.isArray=L;function c(D){return typeof D=="boolean"}n.isBoolean=c;function E(D){return D===null}n.isNull=E;function s(D){return D==null}n.isNullOrUndefined=s;function a(D){return typeof D=="number"}n.isNumber=a;function g(D){return typeof D=="string"}n.isString=g;function T(D){return typeof D=="symbol"}n.isSymbol=T;function S(D){return D===void 0}n.isUndefined=S;function F(D){return d(D)&&re(D)==="[object RegExp]"}n.isRegExp=F,n.types.isRegExp=F;function d(D){return typeof D=="object"&&D!==null}n.isObject=d;function K(D){return d(D)&&re(D)==="[object Date]"}n.isDate=K,n.types.isDate=K;function X(D){return d(D)&&(re(D)==="[object Error]"||D instanceof Error)}n.isError=X,n.types.isNativeError=X;function x(D){return typeof D=="function"}n.isFunction=x;function ee(D){return D===null||typeof D=="boolean"||typeof D=="number"||typeof D=="string"||typeof D=="symbol"||typeof D>"u"}n.isPrimitive=ee,n.isBuffer=$a();function re(D){return Object.prototype.toString.call(D)}function ie(D){return D<10?"0"+D.toString(10):D.toString(10)}var le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Z(){var D=new Date,j=[ie(D.getHours()),ie(D.getMinutes()),ie(D.getSeconds())].join(":");return[D.getDate(),le[D.getMonth()],j].join(" ")}n.log=function(){console.log("%s - %s",Z(),n.format.apply(n,arguments))},n.inherits=Oe(),n._extend=function(D,j){if(!j||!d(j))return D;for(var W=Object.keys(j),J=W.length;J--;)D[W[J]]=j[W[J]];return D};function ce(D,j){return Object.prototype.hasOwnProperty.call(D,j)}var oe=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;n.promisify=function(j){if(typeof j!="function")throw new TypeError('The "original" argument must be of type Function');if(oe&&j[oe]){var W=j[oe];if(typeof W!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(W,oe,{value:W,enumerable:!1,writable:!1,configurable:!0}),W}function W(){for(var J,O,i=new Promise(function(w,h){J=w,O=h}),r=[],R=0;R<arguments.length;R++)r.push(arguments[R]);r.push(function(w,h){w?O(w):J(h)});try{j.apply(this,r)}catch(w){O(w)}return i}return Object.setPrototypeOf(W,Object.getPrototypeOf(j)),oe&&Object.defineProperty(W,oe,{value:W,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(W,o(j))},n.promisify.custom=oe;function ye(D,j){if(!D){var W=new Error("Promise was rejected with a falsy value");W.reason=D,D=W}return j(D)}function ge(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var W=[],J=0;J<arguments.length;J++)W.push(arguments[J]);var O=W.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var i=this,r=function(){return O.apply(i,arguments)};D.apply(this,W).then(function(R){te.process$1.nextTick(r.bind(null,null,R))},function(R){te.process$1.nextTick(ye.bind(null,R,r))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Object.defineProperties(j,o(D)),j}n.callbackify=ge})(lt)),lt}var lr,Jn;function Xa(){if(Jn)return lr;Jn=1;function n(q,H){var L=Object.keys(q);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(q);H&&(c=c.filter(function(E){return Object.getOwnPropertyDescriptor(q,E).enumerable})),L.push.apply(L,c)}return L}function o(q){for(var H=1;H<arguments.length;H++){var L=arguments[H]!=null?arguments[H]:{};H%2?n(Object(L),!0).forEach(function(c){l(q,c,L[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(L)):n(Object(L)).forEach(function(c){Object.defineProperty(q,c,Object.getOwnPropertyDescriptor(L,c))})}return q}function l(q,H,L){return H=A(H),H in q?Object.defineProperty(q,H,{value:L,enumerable:!0,configurable:!0,writable:!0}):q[H]=L,q}function u(q,H){if(!(q instanceof H))throw new TypeError("Cannot call a class as a function")}function m(q,H){for(var L=0;L<H.length;L++){var c=H[L];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(q,A(c.key),c)}}function y(q,H,L){return H&&m(q.prototype,H),Object.defineProperty(q,"prototype",{writable:!1}),q}function A(q){var H=v(q,"string");return typeof H=="symbol"?H:String(H)}function v(q,H){if(typeof q!="object"||q===null)return q;var L=q[Symbol.toPrimitive];if(L!==void 0){var c=L.call(q,H);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(q)}var _=tt(),B=_.Buffer,C=Mi(),N=C.inspect,P=N&&N.custom||"inspect";function Y(q,H,L){B.prototype.copy.call(q,H,L)}return lr=(function(){function q(){u(this,q),this.head=null,this.tail=null,this.length=0}return y(q,[{key:"push",value:function(L){var c={data:L,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}},{key:"unshift",value:function(L){var c={data:L,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var c=this.head,E=""+c.data;c=c.next;)E+=L+c.data;return E}},{key:"concat",value:function(L){if(this.length===0)return B.alloc(0);for(var c=B.allocUnsafe(L>>>0),E=this.head,s=0;E;)Y(E.data,c,s),s+=E.data.length,E=E.next;return c}},{key:"consume",value:function(L,c){var E;return L<this.head.data.length?(E=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?E=this.shift():E=c?this._getString(L):this._getBuffer(L),E}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var c=this.head,E=1,s=c.data;for(L-=s.length;c=c.next;){var a=c.data,g=L>a.length?a.length:L;if(g===a.length?s+=a:s+=a.slice(0,L),L-=g,L===0){g===a.length?(++E,c.next?this.head=c.next:this.head=this.tail=null):(this.head=c,c.data=a.slice(g));break}++E}return this.length-=E,s}},{key:"_getBuffer",value:function(L){var c=B.allocUnsafe(L),E=this.head,s=1;for(E.data.copy(c),L-=E.data.length;E=E.next;){var a=E.data,g=L>a.length?a.length:L;if(a.copy(c,c.length-L,0,g),L-=g,L===0){g===a.length?(++s,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=a.slice(g));break}++s}return this.length-=s,c}},{key:P,value:function(L,c){return N(this,o(o({},c),{},{depth:0,customInspect:!1}))}}]),q})(),lr}var cr,Qn;function Ui(){if(Qn)return cr;Qn=1;function n(A,v){var _=this,B=this._readableState&&this._readableState.destroyed,C=this._writableState&&this._writableState.destroyed;return B||C?(v?v(A):A&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,te.process$1.nextTick(m,this,A)):te.process$1.nextTick(m,this,A)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(A||null,function(N){!v&&N?_._writableState?_._writableState.errorEmitted?te.process$1.nextTick(l,_):(_._writableState.errorEmitted=!0,te.process$1.nextTick(o,_,N)):te.process$1.nextTick(o,_,N):v?(te.process$1.nextTick(l,_),v(N)):te.process$1.nextTick(l,_)}),this)}function o(A,v){m(A,v),l(A)}function l(A){A._writableState&&!A._writableState.emitClose||A._readableState&&!A._readableState.emitClose||A.emit("close")}function u(){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 m(A,v){A.emit("error",v)}function y(A,v){var _=A._readableState,B=A._writableState;_&&_.autoDestroy||B&&B.autoDestroy?A.destroy(v):A.emit("error",v)}return cr={destroy:n,undestroy:u,errorOrDestroy:y},cr}var hr={},Zn;function Ue(){if(Zn)return hr;Zn=1;function n(v,_){v.prototype=Object.create(_.prototype),v.prototype.constructor=v,v.__proto__=_}var o={};function l(v,_,B){B||(B=Error);function C(P,Y,q){return typeof _=="string"?_:_(P,Y,q)}var N=(function(P){n(Y,P);function Y(q,H,L){return P.call(this,C(q,H,L))||this}return Y})(B);N.prototype.name=B.name,N.prototype.code=v,o[v]=N}function u(v,_){if(Array.isArray(v)){var B=v.length;return v=v.map(function(C){return String(C)}),B>2?"one of ".concat(_," ").concat(v.slice(0,B-1).join(", "),", or ")+v[B-1]:B===2?"one of ".concat(_," ").concat(v[0]," or ").concat(v[1]):"of ".concat(_," ").concat(v[0])}else return"of ".concat(_," ").concat(String(v))}function m(v,_,B){return v.substr(0,_.length)===_}function y(v,_,B){return(B===void 0||B>v.length)&&(B=v.length),v.substring(B-_.length,B)===_}function A(v,_,B){return typeof B!="number"&&(B=0),B+_.length>v.length?!1:v.indexOf(_,B)!==-1}return l("ERR_INVALID_OPT_VALUE",function(v,_){return'The value "'+_+'" is invalid for option "'+v+'"'},TypeError),l("ERR_INVALID_ARG_TYPE",function(v,_,B){var C;typeof _=="string"&&m(_,"not ")?(C="must not be",_=_.replace(/^not /,"")):C="must be";var N;if(y(v," argument"))N="The ".concat(v," ").concat(C," ").concat(u(_,"type"));else{var P=A(v,".")?"property":"argument";N='The "'.concat(v,'" ').concat(P," ").concat(C," ").concat(u(_,"type"))}return N+=". Received type ".concat(typeof B),N},TypeError),l("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),l("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),l("ERR_STREAM_PREMATURE_CLOSE","Premature close"),l("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),l("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),l("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),l("ERR_STREAM_WRITE_AFTER_END","write after end"),l("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),l("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),l("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),hr.codes=o,hr}var dr,ei;function ji(){if(ei)return dr;ei=1;var n=Ue().codes.ERR_INVALID_OPT_VALUE;function o(u,m,y){return u.highWaterMark!=null?u.highWaterMark:m?u[y]:null}function l(u,m,y,A){var v=o(m,A,y);if(v!=null){if(!(isFinite(v)&&Math.floor(v)===v)||v<0){var _=A?y:"highWaterMark";throw new n(_,v)}return Math.floor(v)}return u.objectMode?16:16*1024}return dr={getHighWaterMark:l},dr}var pr,ti;function za(){if(ti)return pr;ti=1,pr=n;function n(l,u){if(o("noDeprecation"))return l;var m=!1;function y(){if(!m){if(o("throwDeprecation"))throw new Error(u);o("traceDeprecation")?console.trace(u):console.warn(u),m=!0}return l.apply(this,arguments)}return y}function o(l){try{if(!me.commonjsGlobal.localStorage)return!1}catch{return!1}var u=me.commonjsGlobal.localStorage[l];return u==null?!1:String(u).toLowerCase()==="true"}return pr}var yr,ri;function qi(){if(ri)return yr;ri=1,yr=F;function n(O){var i=this;this.next=null,this.entry=null,this.finish=function(){J(i,O)}}var o;F.WritableState=T;var l={deprecate:za()},u=xi(),m=tt().Buffer,y=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function A(O){return m.from(O)}function v(O){return m.isBuffer(O)||O instanceof y}var _=Ui(),B=ji(),C=B.getHighWaterMark,N=Ue().codes,P=N.ERR_INVALID_ARG_TYPE,Y=N.ERR_METHOD_NOT_IMPLEMENTED,q=N.ERR_MULTIPLE_CALLBACK,H=N.ERR_STREAM_CANNOT_PIPE,L=N.ERR_STREAM_DESTROYED,c=N.ERR_STREAM_NULL_VALUES,E=N.ERR_STREAM_WRITE_AFTER_END,s=N.ERR_UNKNOWN_ENCODING,a=_.errorOrDestroy;Oe()(F,u);function g(){}function T(O,i,r){o=o||Le(),O=O||{},typeof r!="boolean"&&(r=i instanceof o),this.objectMode=!!O.objectMode,r&&(this.objectMode=this.objectMode||!!O.writableObjectMode),this.highWaterMark=C(this,O,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var R=O.decodeStrings===!1;this.decodeStrings=!R,this.defaultEncoding=O.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(w){le(i,w)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O.emitClose!==!1,this.autoDestroy=!!O.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}T.prototype.getBuffer=function(){for(var i=this.bufferedRequest,r=[];i;)r.push(i),i=i.next;return r},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var S;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(S=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(i){return S.call(this,i)?!0:this!==F?!1:i&&i._writableState instanceof T}})):S=function(i){return i instanceof this};function F(O){o=o||Le();var i=this instanceof o;if(!i&&!S.call(F,this))return new F(O);this._writableState=new T(O,this,i),this.writable=!0,O&&(typeof O.write=="function"&&(this._write=O.write),typeof O.writev=="function"&&(this._writev=O.writev),typeof O.destroy=="function"&&(this._destroy=O.destroy),typeof O.final=="function"&&(this._final=O.final)),u.call(this)}F.prototype.pipe=function(){a(this,new H)};function d(O,i){var r=new E;a(O,r),te.process$1.nextTick(i,r)}function K(O,i,r,R){var w;return r===null?w=new c:typeof r!="string"&&!i.objectMode&&(w=new P("chunk",["string","Buffer"],r)),w?(a(O,w),te.process$1.nextTick(R,w),!1):!0}F.prototype.write=function(O,i,r){var R=this._writableState,w=!1,h=!R.objectMode&&v(O);return h&&!m.isBuffer(O)&&(O=A(O)),typeof i=="function"&&(r=i,i=null),h?i="buffer":i||(i=R.defaultEncoding),typeof r!="function"&&(r=g),R.ending?d(this,r):(h||K(this,R,O,r))&&(R.pendingcb++,w=x(this,R,h,O,i,r)),w},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var O=this._writableState;O.corked&&(O.corked--,!O.writing&&!O.corked&&!O.bufferProcessing&&O.bufferedRequest&&oe(this,O))},F.prototype.setDefaultEncoding=function(i){if(typeof i=="string"&&(i=i.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((i+"").toLowerCase())>-1))throw new s(i);return this._writableState.defaultEncoding=i,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function X(O,i,r){return!O.objectMode&&O.decodeStrings!==!1&&typeof i=="string"&&(i=m.from(i,r)),i}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function x(O,i,r,R,w,h){if(!r){var p=X(i,R,w);R!==p&&(r=!0,w="buffer",R=p)}var U=i.objectMode?1:R.length;i.length+=U;var V=i.length<i.highWaterMark;if(V||(i.needDrain=!0),i.writing||i.corked){var Q=i.lastBufferedRequest;i.lastBufferedRequest={chunk:R,encoding:w,isBuf:r,callback:h,next:null},Q?Q.next=i.lastBufferedRequest:i.bufferedRequest=i.lastBufferedRequest,i.bufferedRequestCount+=1}else ee(O,i,!1,U,R,w,h);return V}function ee(O,i,r,R,w,h,p){i.writelen=R,i.writecb=p,i.writing=!0,i.sync=!0,i.destroyed?i.onwrite(new L("write")):r?O._writev(w,i.onwrite):O._write(w,h,i.onwrite),i.sync=!1}function re(O,i,r,R,w){--i.pendingcb,r?(te.process$1.nextTick(w,R),te.process$1.nextTick(j,O,i),O._writableState.errorEmitted=!0,a(O,R)):(w(R),O._writableState.errorEmitted=!0,a(O,R),j(O,i))}function ie(O){O.writing=!1,O.writecb=null,O.length-=O.writelen,O.writelen=0}function le(O,i){var r=O._writableState,R=r.sync,w=r.writecb;if(typeof w!="function")throw new q;if(ie(r),i)re(O,r,R,i,w);else{var h=ye(r)||O.destroyed;!h&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&oe(O,r),R?te.process$1.nextTick(Z,O,r,h,w):Z(O,r,h,w)}}function Z(O,i,r,R){r||ce(O,i),i.pendingcb--,R(),j(O,i)}function ce(O,i){i.length===0&&i.needDrain&&(i.needDrain=!1,O.emit("drain"))}function oe(O,i){i.bufferProcessing=!0;var r=i.bufferedRequest;if(O._writev&&r&&r.next){var R=i.bufferedRequestCount,w=new Array(R),h=i.corkedRequestsFree;h.entry=r;for(var p=0,U=!0;r;)w[p]=r,r.isBuf||(U=!1),r=r.next,p+=1;w.allBuffers=U,ee(O,i,!0,i.length,w,"",h.finish),i.pendingcb++,i.lastBufferedRequest=null,h.next?(i.corkedRequestsFree=h.next,h.next=null):i.corkedRequestsFree=new n(i),i.bufferedRequestCount=0}else{for(;r;){var V=r.chunk,Q=r.encoding,$=r.callback,z=i.objectMode?1:V.length;if(ee(O,i,!1,z,V,Q,$),r=r.next,i.bufferedRequestCount--,i.writing)break}r===null&&(i.lastBufferedRequest=null)}i.bufferedRequest=r,i.bufferProcessing=!1}F.prototype._write=function(O,i,r){r(new Y("_write()"))},F.prototype._writev=null,F.prototype.end=function(O,i,r){var R=this._writableState;return typeof O=="function"?(r=O,O=null,i=null):typeof i=="function"&&(r=i,i=null),O!=null&&this.write(O,i),R.corked&&(R.corked=1,this.uncork()),R.ending||W(this,R,r),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ye(O){return O.ending&&O.length===0&&O.bufferedRequest===null&&!O.finished&&!O.writing}function ge(O,i){O._final(function(r){i.pendingcb--,r&&a(O,r),i.prefinished=!0,O.emit("prefinish"),j(O,i)})}function D(O,i){!i.prefinished&&!i.finalCalled&&(typeof O._final=="function"&&!i.destroyed?(i.pendingcb++,i.finalCalled=!0,te.process$1.nextTick(ge,O,i)):(i.prefinished=!0,O.emit("prefinish")))}function j(O,i){var r=ye(i);if(r&&(D(O,i),i.pendingcb===0&&(i.finished=!0,O.emit("finish"),i.autoDestroy))){var R=O._readableState;(!R||R.autoDestroy&&R.endEmitted)&&O.destroy()}return r}function W(O,i,r){i.ending=!0,j(O,i),r&&(i.finished?te.process$1.nextTick(r):O.once("finish",r)),i.ended=!0,O.writable=!1}function J(O,i,r){var R=O.entry;for(O.entry=null;R;){var w=R.callback;i.pendingcb--,w(r),R=R.next}i.corkedRequestsFree.next=O}return Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(i){this._writableState&&(this._writableState.destroyed=i)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(O,i){i(O)},yr}var gr,ni;function Le(){if(ni)return gr;ni=1;var n=Object.keys||function(B){var C=[];for(var N in B)C.push(N);return C};gr=A;var o=ki(),l=qi();Oe()(A,o);for(var u=n(l.prototype),m=0;m<u.length;m++){var y=u[m];A.prototype[y]||(A.prototype[y]=l.prototype[y])}function A(B){if(!(this instanceof A))return new A(B);o.call(this,B),l.call(this,B),this.allowHalfOpen=!0,B&&(B.readable===!1&&(this.readable=!1),B.writable===!1&&(this.writable=!1),B.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",v)))}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 v(){this._writableState.ended||te.process$1.nextTick(_,this)}function _(B){B.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(C){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=C,this._writableState.destroyed=C)}}),gr}var br={},Xe={exports:{}};var ii;function Ja(){return ii||(ii=1,(function(n,o){var l=tt(),u=l.Buffer;function m(A,v){for(var _ in A)v[_]=A[_]}u.from&&u.alloc&&u.allocUnsafe&&u.allocUnsafeSlow?n.exports=l:(m(l,o),o.Buffer=y);function y(A,v,_){return u(A,v,_)}y.prototype=Object.create(u.prototype),m(u,y),y.from=function(A,v,_){if(typeof A=="number")throw new TypeError("Argument must not be a number");return u(A,v,_)},y.alloc=function(A,v,_){if(typeof A!="number")throw new TypeError("Argument must be a number");var B=u(A);return v!==void 0?typeof _=="string"?B.fill(v,_):B.fill(v):B.fill(0),B},y.allocUnsafe=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return u(A)},y.allocUnsafeSlow=function(A){if(typeof A!="number")throw new TypeError("Argument must be a number");return l.SlowBuffer(A)}})(Xe,Xe.exports)),Xe.exports}var ai;function Pr(){if(ai)return br;ai=1;var n=Ja().Buffer,o=n.isEncoding||function(c){switch(c=""+c,c&&c.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 l(c){if(!c)return"utf8";for(var E;;)switch(c){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 c;default:if(E)return;c=(""+c).toLowerCase(),E=!0}}function u(c){var E=l(c);if(typeof E!="string"&&(n.isEncoding===o||!o(c)))throw new Error("Unknown encoding: "+c);return E||c}br.StringDecoder=m;function m(c){this.encoding=u(c);var E;switch(this.encoding){case"utf16le":this.text=N,this.end=P,E=4;break;case"utf8":this.fillLast=_,E=4;break;case"base64":this.text=Y,this.end=q,E=3;break;default:this.write=H,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(E)}m.prototype.write=function(c){if(c.length===0)return"";var E,s;if(this.lastNeed){if(E=this.fillLast(c),E===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;return s<c.length?E?E+this.text(c,s):this.text(c,s):E||""},m.prototype.end=C,m.prototype.text=B,m.prototype.fillLast=function(c){if(this.lastNeed<=c.length)return c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,this.lastTotal-this.lastNeed,0,c.length),this.lastNeed-=c.length};function y(c){return c<=127?0:c>>5===6?2:c>>4===14?3:c>>3===30?4:c>>6===2?-1:-2}function A(c,E,s){var a=E.length-1;if(a<s)return 0;var g=y(E[a]);return g>=0?(g>0&&(c.lastNeed=g-1),g):--a<s||g===-2?0:(g=y(E[a]),g>=0?(g>0&&(c.lastNeed=g-2),g):--a<s||g===-2?0:(g=y(E[a]),g>=0?(g>0&&(g===2?g=0:c.lastNeed=g-3),g):0))}function v(c,E,s){if((E[0]&192)!==128)return c.lastNeed=0,"�";if(c.lastNeed>1&&E.length>1){if((E[1]&192)!==128)return c.lastNeed=1,"�";if(c.lastNeed>2&&E.length>2&&(E[2]&192)!==128)return c.lastNeed=2,"�"}}function _(c){var E=this.lastTotal-this.lastNeed,s=v(this,c);if(s!==void 0)return s;if(this.lastNeed<=c.length)return c.copy(this.lastChar,E,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);c.copy(this.lastChar,E,0,c.length),this.lastNeed-=c.length}function B(c,E){var s=A(this,c,E);if(!this.lastNeed)return c.toString("utf8",E);this.lastTotal=s;var a=c.length-(s-this.lastNeed);return c.copy(this.lastChar,0,a),c.toString("utf8",E,a)}function C(c){var E=c&&c.length?this.write(c):"";return this.lastNeed?E+"�":E}function N(c,E){if((c.length-E)%2===0){var s=c.toString("utf16le",E);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=c[c.length-1],c.toString("utf16le",E,c.length-1)}function P(c){var E=c&&c.length?this.write(c):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return E+this.lastChar.toString("utf16le",0,s)}return E}function Y(c,E){var s=(c.length-E)%3;return s===0?c.toString("base64",E):(this.lastNeed=3-s,this.lastTotal=3,s===1?this.lastChar[0]=c[c.length-1]:(this.lastChar[0]=c[c.length-2],this.lastChar[1]=c[c.length-1]),c.toString("base64",E,c.length-s))}function q(c){var E=c&&c.length?this.write(c):"";return this.lastNeed?E+this.lastChar.toString("base64",0,3-this.lastNeed):E}function H(c){return c.toString(this.encoding)}function L(c){return c&&c.length?this.write(c):""}return br}var mr,oi;function qr(){if(oi)return mr;oi=1;var n=Ue().codes.ERR_STREAM_PREMATURE_CLOSE;function o(y){var A=!1;return function(){if(!A){A=!0;for(var v=arguments.length,_=new Array(v),B=0;B<v;B++)_[B]=arguments[B];y.apply(this,_)}}}function l(){}function u(y){return y.setHeader&&typeof y.abort=="function"}function m(y,A,v){if(typeof A=="function")return m(y,null,A);A||(A={}),v=o(v||l);var _=A.readable||A.readable!==!1&&y.readable,B=A.writable||A.writable!==!1&&y.writable,C=function(){y.writable||P()},N=y._writableState&&y._writableState.finished,P=function(){B=!1,N=!0,_||v.call(y)},Y=y._readableState&&y._readableState.endEmitted,q=function(){_=!1,Y=!0,B||v.call(y)},H=function(s){v.call(y,s)},L=function(){var s;if(_&&!Y)return(!y._readableState||!y._readableState.ended)&&(s=new n),v.call(y,s);if(B&&!N)return(!y._writableState||!y._writableState.ended)&&(s=new n),v.call(y,s)},c=function(){y.req.on("finish",P)};return u(y)?(y.on("complete",P),y.on("abort",L),y.req?c():y.on("request",c)):B&&!y._writableState&&(y.on("end",C),y.on("close",C)),y.on("end",q),y.on("finish",P),A.error!==!1&&y.on("error",H),y.on("close",L),function(){y.removeListener("complete",P),y.removeListener("abort",L),y.removeListener("request",c),y.req&&y.req.removeListener("finish",P),y.removeListener("end",C),y.removeListener("close",C),y.removeListener("finish",P),y.removeListener("end",q),y.removeListener("error",H),y.removeListener("close",L)}}return mr=m,mr}var Er,ui;function Qa(){if(ui)return Er;ui=1;var n;function o(s,a,g){return a=l(a),a in s?Object.defineProperty(s,a,{value:g,enumerable:!0,configurable:!0,writable:!0}):s[a]=g,s}function l(s){var a=u(s,"string");return typeof a=="symbol"?a:String(a)}function u(s,a){if(typeof s!="object"||s===null)return s;var g=s[Symbol.toPrimitive];if(g!==void 0){var T=g.call(s,a);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(s)}var m=qr(),y=Symbol("lastResolve"),A=Symbol("lastReject"),v=Symbol("error"),_=Symbol("ended"),B=Symbol("lastPromise"),C=Symbol("handlePromise"),N=Symbol("stream");function P(s,a){return{value:s,done:a}}function Y(s){var a=s[y];if(a!==null){var g=s[N].read();g!==null&&(s[B]=null,s[y]=null,s[A]=null,a(P(g,!1)))}}function q(s){te.process$1.nextTick(Y,s)}function H(s,a){return function(g,T){s.then(function(){if(a[_]){g(P(void 0,!0));return}a[C](g,T)},T)}}var L=Object.getPrototypeOf(function(){}),c=Object.setPrototypeOf((n={get stream(){return this[N]},next:function(){var a=this,g=this[v];if(g!==null)return Promise.reject(g);if(this[_])return Promise.resolve(P(void 0,!0));if(this[N].destroyed)return new Promise(function(d,K){te.process$1.nextTick(function(){a[v]?K(a[v]):d(P(void 0,!0))})});var T=this[B],S;if(T)S=new Promise(H(T,this));else{var F=this[N].read();if(F!==null)return Promise.resolve(P(F,!1));S=new Promise(this[C])}return this[B]=S,S}},o(n,Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var a=this;return new Promise(function(g,T){a[N].destroy(null,function(S){if(S){T(S);return}g(P(void 0,!0))})})}),n),L),E=function(a){var g,T=Object.create(c,(g={},o(g,N,{value:a,writable:!0}),o(g,y,{value:null,writable:!0}),o(g,A,{value:null,writable:!0}),o(g,v,{value:null,writable:!0}),o(g,_,{value:a._readableState.endEmitted,writable:!0}),o(g,C,{value:function(F,d){var K=T[N].read();K?(T[B]=null,T[y]=null,T[A]=null,F(P(K,!1))):(T[y]=F,T[A]=d)},writable:!0}),g));return T[B]=null,m(a,function(S){if(S&&S.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=T[A];F!==null&&(T[B]=null,T[y]=null,T[A]=null,F(S)),T[v]=S;return}var d=T[y];d!==null&&(T[B]=null,T[y]=null,T[A]=null,d(P(void 0,!0))),T[_]=!0}),a.on("readable",q.bind(null,T)),T};return Er=E,Er}var vr,si;function Za(){return si||(si=1,vr=function(){throw new Error("Readable.from is not available in the browser")}),vr}var wr,fi;function ki(){if(fi)return wr;fi=1,wr=d;var n;d.ReadableState=F,Dr().EventEmitter;var o=function(p,U){return p.listeners(U).length},l=xi(),u=tt().Buffer,m=(typeof me.commonjsGlobal<"u"?me.commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function y(h){return u.from(h)}function A(h){return u.isBuffer(h)||h instanceof m}var v=Mi(),_;v&&v.debuglog?_=v.debuglog("stream"):_=function(){};var B=Xa(),C=Ui(),N=ji(),P=N.getHighWaterMark,Y=Ue().codes,q=Y.ERR_INVALID_ARG_TYPE,H=Y.ERR_STREAM_PUSH_AFTER_EOF,L=Y.ERR_METHOD_NOT_IMPLEMENTED,c=Y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,s,a;Oe()(d,l);var g=C.errorOrDestroy,T=["error","close","destroy","pause","resume"];function S(h,p,U){if(typeof h.prependListener=="function")return h.prependListener(p,U);!h._events||!h._events[p]?h.on(p,U):Array.isArray(h._events[p])?h._events[p].unshift(U):h._events[p]=[U,h._events[p]]}function F(h,p,U){n=n||Le(),h=h||{},typeof U!="boolean"&&(U=p instanceof n),this.objectMode=!!h.objectMode,U&&(this.objectMode=this.objectMode||!!h.readableObjectMode),this.highWaterMark=P(this,h,"readableHighWaterMark",U),this.buffer=new B,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=h.emitClose!==!1,this.autoDestroy=!!h.autoDestroy,this.destroyed=!1,this.defaultEncoding=h.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,h.encoding&&(E||(E=Pr().StringDecoder),this.decoder=new E(h.encoding),this.encoding=h.encoding)}function d(h){if(n=n||Le(),!(this instanceof d))return new d(h);var p=this instanceof n;this._readableState=new F(h,this,p),this.readable=!0,h&&(typeof h.read=="function"&&(this._read=h.read),typeof h.destroy=="function"&&(this._destroy=h.destroy)),l.call(this)}Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(p){this._readableState&&(this._readableState.destroyed=p)}}),d.prototype.destroy=C.destroy,d.prototype._undestroy=C.undestroy,d.prototype._destroy=function(h,p){p(h)},d.prototype.push=function(h,p){var U=this._readableState,V;return U.objectMode?V=!0:typeof h=="string"&&(p=p||U.defaultEncoding,p!==U.encoding&&(h=u.from(h,p),p=""),V=!0),K(this,h,p,!1,V)},d.prototype.unshift=function(h){return K(this,h,null,!0,!1)};function K(h,p,U,V,Q){_("readableAddChunk",p);var $=h._readableState;if(p===null)$.reading=!1,le(h,$);else{var z;if(Q||(z=x($,p)),z)g(h,z);else if($.objectMode||p&&p.length>0)if(typeof p!="string"&&!$.objectMode&&Object.getPrototypeOf(p)!==u.prototype&&(p=y(p)),V)$.endEmitted?g(h,new c):X(h,$,p,!0);else if($.ended)g(h,new H);else{if($.destroyed)return!1;$.reading=!1,$.decoder&&!U?(p=$.decoder.write(p),$.objectMode||p.length!==0?X(h,$,p,!1):oe(h,$)):X(h,$,p,!1)}else V||($.reading=!1,oe(h,$))}return!$.ended&&($.length<$.highWaterMark||$.length===0)}function X(h,p,U,V){p.flowing&&p.length===0&&!p.sync?(p.awaitDrain=0,h.emit("data",U)):(p.length+=p.objectMode?1:U.length,V?p.buffer.unshift(U):p.buffer.push(U),p.needReadable&&Z(h)),oe(h,p)}function x(h,p){var U;return!A(p)&&typeof p!="string"&&p!==void 0&&!h.objectMode&&(U=new q("chunk",["string","Buffer","Uint8Array"],p)),U}d.prototype.isPaused=function(){return this._readableState.flowing===!1},d.prototype.setEncoding=function(h){E||(E=Pr().StringDecoder);var p=new E(h);this._readableState.decoder=p,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,V="";U!==null;)V+=p.write(U.data),U=U.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var ee=1073741824;function re(h){return h>=ee?h=ee:(h--,h|=h>>>1,h|=h>>>2,h|=h>>>4,h|=h>>>8,h|=h>>>16,h++),h}function ie(h,p){return h<=0||p.length===0&&p.ended?0:p.objectMode?1:h!==h?p.flowing&&p.length?p.buffer.head.data.length:p.length:(h>p.highWaterMark&&(p.highWaterMark=re(h)),h<=p.length?h:p.ended?p.length:(p.needReadable=!0,0))}d.prototype.read=function(h){_("read",h),h=parseInt(h,10);var p=this._readableState,U=h;if(h!==0&&(p.emittedReadable=!1),h===0&&p.needReadable&&((p.highWaterMark!==0?p.length>=p.highWaterMark:p.length>0)||p.ended))return _("read: emitReadable",p.length,p.ended),p.length===0&&p.ended?r(this):Z(this),null;if(h=ie(h,p),h===0&&p.ended)return p.length===0&&r(this),null;var V=p.needReadable;_("need readable",V),(p.length===0||p.length-h<p.highWaterMark)&&(V=!0,_("length less than watermark",V)),p.ended||p.reading?(V=!1,_("reading or ended",V)):V&&(_("do read"),p.reading=!0,p.sync=!0,p.length===0&&(p.needReadable=!0),this._read(p.highWaterMark),p.sync=!1,p.reading||(h=ie(U,p)));var Q;return h>0?Q=i(h,p):Q=null,Q===null?(p.needReadable=p.length<=p.highWaterMark,h=0):(p.length-=h,p.awaitDrain=0),p.length===0&&(p.ended||(p.needReadable=!0),U!==h&&p.ended&&r(this)),Q!==null&&this.emit("data",Q),Q};function le(h,p){if(_("onEofChunk"),!p.ended){if(p.decoder){var U=p.decoder.end();U&&U.length&&(p.buffer.push(U),p.length+=p.objectMode?1:U.length)}p.ended=!0,p.sync?Z(h):(p.needReadable=!1,p.emittedReadable||(p.emittedReadable=!0,ce(h)))}}function Z(h){var p=h._readableState;_("emitReadable",p.needReadable,p.emittedReadable),p.needReadable=!1,p.emittedReadable||(_("emitReadable",p.flowing),p.emittedReadable=!0,te.process$1.nextTick(ce,h))}function ce(h){var p=h._readableState;_("emitReadable_",p.destroyed,p.length,p.ended),!p.destroyed&&(p.length||p.ended)&&(h.emit("readable"),p.emittedReadable=!1),p.needReadable=!p.flowing&&!p.ended&&p.length<=p.highWaterMark,O(h)}function oe(h,p){p.readingMore||(p.readingMore=!0,te.process$1.nextTick(ye,h,p))}function ye(h,p){for(;!p.reading&&!p.ended&&(p.length<p.highWaterMark||p.flowing&&p.length===0);){var U=p.length;if(_("maybeReadMore read 0"),h.read(0),U===p.length)break}p.readingMore=!1}d.prototype._read=function(h){g(this,new L("_read()"))},d.prototype.pipe=function(h,p){var U=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=h;break;case 1:V.pipes=[V.pipes,h];break;default:V.pipes.push(h);break}V.pipesCount+=1,_("pipe count=%d opts=%j",V.pipesCount,p);var Q=(!p||p.end!==!1)&&h!==te.process$1.stdout&&h!==te.process$1.stderr,$=Q?se:Re;V.endEmitted?te.process$1.nextTick($):U.once("end",$),h.on("unpipe",z);function z(Ae,Te){_("onunpipe"),Ae===U&&Te&&Te.hasUnpiped===!1&&(Te.hasUnpiped=!0,be())}function se(){_("onend"),h.end()}var k=ge(U);h.on("drain",k);var ve=!1;function be(){_("cleanup"),h.removeListener("close",we),h.removeListener("finish",Be),h.removeListener("drain",k),h.removeListener("error",he),h.removeListener("unpipe",z),U.removeListener("end",se),U.removeListener("end",Re),U.removeListener("data",ae),ve=!0,V.awaitDrain&&(!h._writableState||h._writableState.needDrain)&&k()}U.on("data",ae);function ae(Ae){_("ondata");var Te=h.write(Ae);_("dest.write",Te),Te===!1&&((V.pipesCount===1&&V.pipes===h||V.pipesCount>1&&w(V.pipes,h)!==-1)&&!ve&&(_("false write response, pause",V.awaitDrain),V.awaitDrain++),U.pause())}function he(Ae){_("onerror",Ae),Re(),h.removeListener("error",he),o(h,"error")===0&&g(h,Ae)}S(h,"error",he);function we(){h.removeListener("finish",Be),Re()}h.once("close",we);function Be(){_("onfinish"),h.removeListener("close",we),Re()}h.once("finish",Be);function Re(){_("unpipe"),U.unpipe(h)}return h.emit("pipe",U),V.flowing||(_("pipe resume"),U.resume()),h};function ge(h){return function(){var U=h._readableState;_("pipeOnDrain",U.awaitDrain),U.awaitDrain&&U.awaitDrain--,U.awaitDrain===0&&o(h,"data")&&(U.flowing=!0,O(h))}}d.prototype.unpipe=function(h){var p=this._readableState,U={hasUnpiped:!1};if(p.pipesCount===0)return this;if(p.pipesCount===1)return h&&h!==p.pipes?this:(h||(h=p.pipes),p.pipes=null,p.pipesCount=0,p.flowing=!1,h&&h.emit("unpipe",this,U),this);if(!h){var V=p.pipes,Q=p.pipesCount;p.pipes=null,p.pipesCount=0,p.flowing=!1;for(var $=0;$<Q;$++)V[$].emit("unpipe",this,{hasUnpiped:!1});return this}var z=w(p.pipes,h);return z===-1?this:(p.pipes.splice(z,1),p.pipesCount-=1,p.pipesCount===1&&(p.pipes=p.pipes[0]),h.emit("unpipe",this,U),this)},d.prototype.on=function(h,p){var U=l.prototype.on.call(this,h,p),V=this._readableState;return h==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):h==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,_("on readable",V.length,V.reading),V.length?Z(this):V.reading||te.process$1.nextTick(j,this)),U},d.prototype.addListener=d.prototype.on,d.prototype.removeListener=function(h,p){var U=l.prototype.removeListener.call(this,h,p);return h==="readable"&&te.process$1.nextTick(D,this),U},d.prototype.removeAllListeners=function(h){var p=l.prototype.removeAllListeners.apply(this,arguments);return(h==="readable"||h===void 0)&&te.process$1.nextTick(D,this),p};function D(h){var p=h._readableState;p.readableListening=h.listenerCount("readable")>0,p.resumeScheduled&&!p.paused?p.flowing=!0:h.listenerCount("data")>0&&h.resume()}function j(h){_("readable nexttick read 0"),h.read(0)}d.prototype.resume=function(){var h=this._readableState;return h.flowing||(_("resume"),h.flowing=!h.readableListening,W(this,h)),h.paused=!1,this};function W(h,p){p.resumeScheduled||(p.resumeScheduled=!0,te.process$1.nextTick(J,h,p))}function J(h,p){_("resume",p.reading),p.reading||h.read(0),p.resumeScheduled=!1,h.emit("resume"),O(h),p.flowing&&!p.reading&&h.read(0)}d.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function O(h){var p=h._readableState;for(_("flow",p.flowing);p.flowing&&h.read()!==null;);}d.prototype.wrap=function(h){var p=this,U=this._readableState,V=!1;h.on("end",function(){if(_("wrapped end"),U.decoder&&!U.ended){var z=U.decoder.end();z&&z.length&&p.push(z)}p.push(null)}),h.on("data",function(z){if(_("wrapped data"),U.decoder&&(z=U.decoder.write(z)),!(U.objectMode&&z==null)&&!(!U.objectMode&&(!z||!z.length))){var se=p.push(z);se||(V=!0,h.pause())}});for(var Q in h)this[Q]===void 0&&typeof h[Q]=="function"&&(this[Q]=(function(se){return function(){return h[se].apply(h,arguments)}})(Q));for(var $=0;$<T.length;$++)h.on(T[$],this.emit.bind(this,T[$]));return this._read=function(z){_("wrapped _read",z),V&&(V=!1,h.resume())},this},typeof Symbol=="function"&&(d.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=Qa()),s(this)}),Object.defineProperty(d.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(d.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(d.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(p){this._readableState&&(this._readableState.flowing=p)}}),d._fromList=i,Object.defineProperty(d.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function i(h,p){if(p.length===0)return null;var U;return p.objectMode?U=p.buffer.shift():!h||h>=p.length?(p.decoder?U=p.buffer.join(""):p.buffer.length===1?U=p.buffer.first():U=p.buffer.concat(p.length),p.buffer.clear()):U=p.buffer.consume(h,p.decoder),U}function r(h){var p=h._readableState;_("endReadable",p.endEmitted),p.endEmitted||(p.ended=!0,te.process$1.nextTick(R,p,h))}function R(h,p){if(_("endReadableNT",h.endEmitted,h.length),!h.endEmitted&&h.length===0&&(h.endEmitted=!0,p.readable=!1,p.emit("end"),h.autoDestroy)){var U=p._writableState;(!U||U.autoDestroy&&U.finished)&&p.destroy()}}typeof Symbol=="function"&&(d.from=function(h,p){return a===void 0&&(a=Za()),a(d,h,p)});function w(h,p){for(var U=0,V=h.length;U<V;U++)if(h[U]===p)return U;return-1}return wr}var _r,li;function Hi(){if(li)return _r;li=1,_r=v;var n=Ue().codes,o=n.ERR_METHOD_NOT_IMPLEMENTED,l=n.ERR_MULTIPLE_CALLBACK,u=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,m=n.ERR_TRANSFORM_WITH_LENGTH_0,y=Le();Oe()(v,y);function A(C,N){var P=this._transformState;P.transforming=!1;var Y=P.writecb;if(Y===null)return this.emit("error",new l);P.writechunk=null,P.writecb=null,N!=null&&this.push(N),Y(C);var q=this._readableState;q.reading=!1,(q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}function v(C){if(!(this instanceof v))return new v(C);y.call(this,C),this._transformState={afterTransform:A.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,C&&(typeof C.transform=="function"&&(this._transform=C.transform),typeof C.flush=="function"&&(this._flush=C.flush)),this.on("prefinish",_)}function _(){var C=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(N,P){B(C,N,P)}):B(this,null,null)}v.prototype.push=function(C,N){return this._transformState.needTransform=!1,y.prototype.push.call(this,C,N)},v.prototype._transform=function(C,N,P){P(new o("_transform()"))},v.prototype._write=function(C,N,P){var Y=this._transformState;if(Y.writecb=P,Y.writechunk=C,Y.writeencoding=N,!Y.transforming){var q=this._readableState;(Y.needTransform||q.needReadable||q.length<q.highWaterMark)&&this._read(q.highWaterMark)}},v.prototype._read=function(C){var N=this._transformState;N.writechunk!==null&&!N.transforming?(N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform)):N.needTransform=!0},v.prototype._destroy=function(C,N){y.prototype._destroy.call(this,C,function(P){N(P)})};function B(C,N,P){if(N)return C.emit("error",N);if(P!=null&&C.push(P),C._writableState.length)throw new m;if(C._transformState.transforming)throw new u;return C.push(null)}return _r}var Ar,ci;function eo(){if(ci)return Ar;ci=1,Ar=o;var n=Hi();Oe()(o,n);function o(l){if(!(this instanceof o))return new o(l);n.call(this,l)}return o.prototype._transform=function(l,u,m){m(null,l)},Ar}var Tr,hi;function to(){if(hi)return Tr;hi=1;var n;function o(P){var Y=!1;return function(){Y||(Y=!0,P.apply(void 0,arguments))}}var l=Ue().codes,u=l.ERR_MISSING_ARGS,m=l.ERR_STREAM_DESTROYED;function y(P){if(P)throw P}function A(P){return P.setHeader&&typeof P.abort=="function"}function v(P,Y,q,H){H=o(H);var L=!1;P.on("close",function(){L=!0}),n===void 0&&(n=qr()),n(P,{readable:Y,writable:q},function(E){if(E)return H(E);L=!0,H()});var c=!1;return function(E){if(!L&&!c){if(c=!0,A(P))return P.abort();if(typeof P.destroy=="function")return P.destroy();H(E||new m("pipe"))}}}function _(P){P()}function B(P,Y){return P.pipe(Y)}function C(P){return!P.length||typeof P[P.length-1]!="function"?y:P.pop()}function N(){for(var P=arguments.length,Y=new Array(P),q=0;q<P;q++)Y[q]=arguments[q];var H=C(Y);if(Array.isArray(Y[0])&&(Y=Y[0]),Y.length<2)throw new u("streams");var L,c=Y.map(function(E,s){var a=s<Y.length-1,g=s>0;return v(E,a,g,function(T){L||(L=T),T&&c.forEach(_),!a&&(c.forEach(_),H(L))})});return Y.reduce(B)}return Tr=N,Tr}var Sr,di;function ro(){if(di)return Sr;di=1,Sr=l;var n=Dr().EventEmitter,o=Oe();o(l,n),l.Readable=ki(),l.Writable=qi(),l.Duplex=Le(),l.Transform=Hi(),l.PassThrough=eo(),l.finished=qr(),l.pipeline=to(),l.Stream=l;function l(){n.call(this)}return l.prototype.pipe=function(u,m){var y=this;function A(Y){u.writable&&u.write(Y)===!1&&y.pause&&y.pause()}y.on("data",A);function v(){y.readable&&y.resume&&y.resume()}u.on("drain",v),!u._isStdio&&(!m||m.end!==!1)&&(y.on("end",B),y.on("close",C));var _=!1;function B(){_||(_=!0,u.end())}function C(){_||(_=!0,typeof u.destroy=="function"&&u.destroy())}function N(Y){if(P(),n.listenerCount(this,"error")===0)throw Y}y.on("error",N),u.on("error",N);function P(){y.removeListener("data",A),u.removeListener("drain",v),y.removeListener("end",B),y.removeListener("close",C),y.removeListener("error",N),u.removeListener("error",N),y.removeListener("end",P),y.removeListener("close",P),u.removeListener("close",P)}return y.on("end",P),y.on("close",P),u.on("close",P),u.emit("pipe",y),u},Sr}var pi;function no(){return pi||(pi=1,(function(n){(function(o){o.parser=function(i,r){return new u(i,r)},o.SAXParser=u,o.SAXStream=C,o.createStream=B,o.MAX_BUFFER_LENGTH=64*1024;var l=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];o.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function u(i,r){if(!(this instanceof u))return new u(i,r);var R=this;y(R),R.q=R.c="",R.bufferCheckPosition=o.MAX_BUFFER_LENGTH,R.opt=r||{},R.opt.lowercase=R.opt.lowercase||R.opt.lowercasetags,R.looseCase=R.opt.lowercase?"toLowerCase":"toUpperCase",R.tags=[],R.closed=R.closedRoot=R.sawRoot=!1,R.tag=R.error=null,R.strict=!!i,R.noscript=!!(i||R.opt.noscript),R.state=d.BEGIN,R.strictEntities=R.opt.strictEntities,R.ENTITIES=R.strictEntities?Object.create(o.XML_ENTITIES):Object.create(o.ENTITIES),R.attribList=[],R.opt.xmlns&&(R.ns=Object.create(H)),R.opt.unquotedAttributeValues===void 0&&(R.opt.unquotedAttributeValues=!i),R.trackPosition=R.opt.position!==!1,R.trackPosition&&(R.position=R.line=R.column=0),X(R,"onready")}Object.create||(Object.create=function(i){function r(){}r.prototype=i;var R=new r;return R}),Object.keys||(Object.keys=function(i){var r=[];for(var R in i)i.hasOwnProperty(R)&&r.push(R);return r});function m(i){for(var r=Math.max(o.MAX_BUFFER_LENGTH,10),R=0,w=0,h=l.length;w<h;w++){var p=i[l[w]].length;if(p>r)switch(l[w]){case"textNode":ee(i);break;case"cdata":x(i,"oncdata",i.cdata),i.cdata="";break;case"script":x(i,"onscript",i.script),i.script="";break;default:ie(i,"Max buffer length exceeded: "+l[w])}R=Math.max(R,p)}var U=o.MAX_BUFFER_LENGTH-R;i.bufferCheckPosition=U+i.position}function y(i){for(var r=0,R=l.length;r<R;r++)i[l[r]]=""}function A(i){ee(i),i.cdata!==""&&(x(i,"oncdata",i.cdata),i.cdata=""),i.script!==""&&(x(i,"onscript",i.script),i.script="")}u.prototype={end:function(){le(this)},write:O,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){A(this)}};var v;try{v=ro().Stream}catch{v=function(){}}v||(v=function(){});var _=o.EVENTS.filter(function(i){return i!=="error"&&i!=="end"});function B(i,r){return new C(i,r)}function C(i,r){if(!(this instanceof C))return new C(i,r);v.apply(this),this._parser=new u(i,r),this.writable=!0,this.readable=!0;var R=this;this._parser.onend=function(){R.emit("end")},this._parser.onerror=function(w){R.emit("error",w),R._parser.error=null},this._decoder=null,_.forEach(function(w){Object.defineProperty(R,"on"+w,{get:function(){return R._parser["on"+w]},set:function(h){if(!h)return R.removeAllListeners(w),R._parser["on"+w]=h,h;R.on(w,h)},enumerable:!0,configurable:!1})})}C.prototype=Object.create(v.prototype,{constructor:{value:C}}),C.prototype.write=function(i){if(typeof te.Buffer=="function"&&typeof te.Buffer.isBuffer=="function"&&te.Buffer.isBuffer(i)){if(!this._decoder){var r=Pr().StringDecoder;this._decoder=new r("utf8")}i=this._decoder.write(i)}return this._parser.write(i.toString()),this.emit("data",i),!0},C.prototype.end=function(i){return i&&i.length&&this.write(i),this._parser.end(),!0},C.prototype.on=function(i,r){var R=this;return!R._parser["on"+i]&&_.indexOf(i)!==-1&&(R._parser["on"+i]=function(){var w=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);w.splice(0,0,i),R.emit.apply(R,w)}),v.prototype.on.call(R,i,r)};var N="[CDATA[",P="DOCTYPE",Y="http://www.w3.org/XML/1998/namespace",q="http://www.w3.org/2000/xmlns/",H={xml:Y,xmlns:q},L=/[:_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]/,c=/[:_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-]/,E=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=/[#:_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 a(i){return i===" "||i===`
|
|
16
11
|
`||i==="\r"||i===" "}function g(i){return i==='"'||i==="'"}function T(i){return i===">"||a(i)}function S(i,r){return i.test(r)}function F(i,r){return!S(i,r)}var d=0;o.STATE={BEGIN:d++,BEGIN_WHITESPACE:d++,TEXT:d++,TEXT_ENTITY:d++,OPEN_WAKA:d++,SGML_DECL:d++,SGML_DECL_QUOTED:d++,DOCTYPE:d++,DOCTYPE_QUOTED:d++,DOCTYPE_DTD:d++,DOCTYPE_DTD_QUOTED:d++,COMMENT_STARTING:d++,COMMENT:d++,COMMENT_ENDING:d++,COMMENT_ENDED:d++,CDATA:d++,CDATA_ENDING:d++,CDATA_ENDING_2:d++,PROC_INST:d++,PROC_INST_BODY:d++,PROC_INST_ENDING:d++,OPEN_TAG:d++,OPEN_TAG_SLASH:d++,ATTRIB:d++,ATTRIB_NAME:d++,ATTRIB_NAME_SAW_WHITE:d++,ATTRIB_VALUE:d++,ATTRIB_VALUE_QUOTED:d++,ATTRIB_VALUE_CLOSED:d++,ATTRIB_VALUE_UNQUOTED:d++,ATTRIB_VALUE_ENTITY_Q:d++,ATTRIB_VALUE_ENTITY_U:d++,CLOSE_TAG:d++,CLOSE_TAG_SAW_WHITE:d++,SCRIPT:d++,SCRIPT_ENDING:d++},o.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},o.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(o.ENTITIES).forEach(function(i){var r=o.ENTITIES[i],R=typeof r=="number"?String.fromCharCode(r):r;o.ENTITIES[i]=R});for(var K in o.STATE)o.STATE[o.STATE[K]]=K;d=o.STATE;function X(i,r,R){i[r]&&i[r](R)}function x(i,r,R){i.textNode&&ee(i),X(i,r,R)}function ee(i){i.textNode=re(i.opt,i.textNode),i.textNode&&X(i,"ontext",i.textNode),i.textNode=""}function re(i,r){return i.trim&&(r=r.trim()),i.normalize&&(r=r.replace(/\s+/g," ")),r}function ie(i,r){return ee(i),i.trackPosition&&(r+=`
|
|
17
12
|
Line: `+i.line+`
|
|
18
13
|
Column: `+i.column+`
|
|
19
|
-
Char: `+i.c),r=new Error(r),i.error=r,X(i,"onerror",r),i}function le(i){return i.sawRoot&&!i.closedRoot&&Z(i,"Unclosed root tag"),i.state!==d.BEGIN&&i.state!==d.BEGIN_WHITESPACE&&i.state!==d.TEXT&&ie(i,"Unexpected end"),ee(i),i.c="",i.closed=!0,X(i,"onend"),u.call(i,i.strict,i.opt),i}function Z(i,r){if(typeof i!="object"||!(i instanceof u))throw new Error("bad call to strictFail");i.strict&&ie(i,r)}function ce(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var r=i.tags[i.tags.length-1]||i,R=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(R.ns=r.ns),i.attribList.length=0,x(i,"onopentagstart",R)}function oe(i,r){var R=i.indexOf(":"),w=R<0?["",i]:i.split(":"),h=w[0],p=w[1];return r&&i==="xmlns"&&(h="xmlns",p=""),{prefix:h,local:p}}function ye(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var r=oe(i.attribName,!0),R=r.prefix,w=r.local;if(R==="xmlns")if(w==="xml"&&i.attribValue!==
|
|
14
|
+
Char: `+i.c),r=new Error(r),i.error=r,X(i,"onerror",r),i}function le(i){return i.sawRoot&&!i.closedRoot&&Z(i,"Unclosed root tag"),i.state!==d.BEGIN&&i.state!==d.BEGIN_WHITESPACE&&i.state!==d.TEXT&&ie(i,"Unexpected end"),ee(i),i.c="",i.closed=!0,X(i,"onend"),u.call(i,i.strict,i.opt),i}function Z(i,r){if(typeof i!="object"||!(i instanceof u))throw new Error("bad call to strictFail");i.strict&&ie(i,r)}function ce(i){i.strict||(i.tagName=i.tagName[i.looseCase]());var r=i.tags[i.tags.length-1]||i,R=i.tag={name:i.tagName,attributes:{}};i.opt.xmlns&&(R.ns=r.ns),i.attribList.length=0,x(i,"onopentagstart",R)}function oe(i,r){var R=i.indexOf(":"),w=R<0?["",i]:i.split(":"),h=w[0],p=w[1];return r&&i==="xmlns"&&(h="xmlns",p=""),{prefix:h,local:p}}function ye(i){if(i.strict||(i.attribName=i.attribName[i.looseCase]()),i.attribList.indexOf(i.attribName)!==-1||i.tag.attributes.hasOwnProperty(i.attribName)){i.attribName=i.attribValue="";return}if(i.opt.xmlns){var r=oe(i.attribName,!0),R=r.prefix,w=r.local;if(R==="xmlns")if(w==="xml"&&i.attribValue!==Y)Z(i,"xml: prefix must be bound to "+Y+`
|
|
20
15
|
Actual: `+i.attribValue);else if(w==="xmlns"&&i.attribValue!==q)Z(i,"xmlns: prefix must be bound to "+q+`
|
|
21
|
-
Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.ns&&(h.ns=Object.create(p.ns)),h.ns[w]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,x(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function ge(i,r){if(i.opt.xmlns){var R=i.tag,w=oe(i.tagName);R.prefix=w.prefix,R.local=w.local,R.uri=R.ns[w.prefix]||"",R.prefix&&!R.uri&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),R.uri=w.prefix);var h=i.tags[i.tags.length-1]||i;R.ns&&h.ns!==R.ns&&Object.keys(R.ns).forEach(function(ae){x(i,"onopennamespace",{prefix:ae,uri:R.ns[ae]})});for(var p=0,U=i.attribList.length;p<U;p++){var
|
|
22
|
-
`?(r.line++,r.column=0):r.column++),r.state){case d.BEGIN:if(r.state=d.BEGIN_WHITESPACE,w==="\uFEFF")continue
|
|
23
|
-
`?(r.line++,r.column=0):r.column++);r.textNode+=i.substring(h,R-1)}w==="<"&&!(r.sawRoot&&r.closedRoot&&!r.strict)?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):(!a(w)&&(!r.sawRoot||r.closedRoot)&&Z(r,"Text data outside of root node."),w==="&"?r.state=d.TEXT_ENTITY:r.textNode+=w);continue;case d.SCRIPT:w==="<"?r.state=d.SCRIPT_ENDING:r.script+=w;continue;case d.SCRIPT_ENDING:w==="/"?r.state=d.CLOSE_TAG:(r.script+="<"+w,r.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(w==="!")r.state=d.SGML_DECL,r.sgmlDecl="";else if(!a(w))if(S(L,w))r.state=d.OPEN_TAG,r.tagName=w;else if(w==="/")r.state=d.CLOSE_TAG,r.tagName="";else if(w==="?")r.state=d.PROC_INST,r.procInstName=r.procInstBody="";else{if(Z(r,"Unencoded <"),r.startTagPosition+1<r.position){var p=r.position-r.startTagPosition;w=new Array(p).join(" ")+w}r.textNode+="<"+w,r.state=d.TEXT}continue;case d.SGML_DECL:if(r.sgmlDecl+w==="--"){r.state=d.COMMENT,r.comment="",r.sgmlDecl="";continue}r.doctype&&r.doctype!==!0&&r.sgmlDecl?(r.state=d.DOCTYPE_DTD,r.doctype+="<!"+r.sgmlDecl+w,r.sgmlDecl=""):(r.sgmlDecl+w).toUpperCase()===N?(x(r,"onopencdata"),r.state=d.CDATA,r.sgmlDecl="",r.cdata=""):(r.sgmlDecl+w).toUpperCase()===P?(r.state=d.DOCTYPE,(r.doctype||r.sawRoot)&&Z(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):w===">"?(x(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=d.TEXT):(g(w)&&(r.state=d.SGML_DECL_QUOTED),r.sgmlDecl+=w);continue;case d.SGML_DECL_QUOTED:w===r.q&&(r.state=d.SGML_DECL,r.q=""),r.sgmlDecl+=w;continue;case d.DOCTYPE:w===">"?(r.state=d.TEXT,x(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=w,w==="["?r.state=d.DOCTYPE_DTD:g(w)&&(r.state=d.DOCTYPE_QUOTED,r.q=w));continue;case d.DOCTYPE_QUOTED:r.doctype+=w,w===r.q&&(r.q="",r.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:w==="]"?(r.doctype+=w,r.state=d.DOCTYPE):w==="<"?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):g(w)?(r.doctype+=w,r.state=d.DOCTYPE_DTD_QUOTED,r.q=w):r.doctype+=w;continue;case d.DOCTYPE_DTD_QUOTED:r.doctype+=w,w===r.q&&(r.state=d.DOCTYPE_DTD,r.q="");continue;case d.COMMENT:w==="-"?r.state=d.COMMENT_ENDING:r.comment+=w;continue;case d.COMMENT_ENDING:w==="-"?(r.state=d.COMMENT_ENDED,r.comment=re(r.opt,r.comment),r.comment&&x(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+w,r.state=d.COMMENT);continue;case d.COMMENT_ENDED:w!==">"?(Z(r,"Malformed comment"),r.comment+="--"+w,r.state=d.COMMENT):r.doctype&&r.doctype!==!0?r.state=d.DOCTYPE_DTD:r.state=d.TEXT;continue;case d.CDATA:w==="]"?r.state=d.CDATA_ENDING:r.cdata+=w;continue;case d.CDATA_ENDING:w==="]"?r.state=d.CDATA_ENDING_2:(r.cdata+="]"+w,r.state=d.CDATA);continue;case d.CDATA_ENDING_2:w===">"?(r.cdata&&x(r,"oncdata",r.cdata),x(r,"onclosecdata"),r.cdata="",r.state=d.TEXT):w==="]"?r.cdata+="]":(r.cdata+="]]"+w,r.state=d.CDATA);continue;case d.PROC_INST:w==="?"?r.state=d.PROC_INST_ENDING:a(w)?r.state=d.PROC_INST_BODY:r.procInstName+=w;continue;case d.PROC_INST_BODY:if(!r.procInstBody&&a(w))continue;w==="?"?r.state=d.PROC_INST_ENDING:r.procInstBody+=w;continue;case d.PROC_INST_ENDING:w===">"?(x(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=d.TEXT):(r.procInstBody+="?"+w,r.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,w)?r.tagName+=w:(ce(r),w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:(a(w)||Z(r,"Invalid character in tag name"),r.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:w===">"?(ge(r,!0),D(r)):(Z(r,"Forward-slash in opening tag not followed by >"),r.state=d.ATTRIB);continue;case d.ATTRIB:if(a(w))continue;w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME:w==="="?r.state=d.ATTRIB_VALUE:w===">"?(Z(r,"Attribute without value"),r.attribValue=r.attribName,ye(r),ge(r)):a(w)?r.state=d.ATTRIB_NAME_SAW_WHITE:S(c,w)?r.attribName+=w:Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(w==="=")r.state=d.ATTRIB_VALUE;else{if(a(w))continue;Z(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",x(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",w===">"?ge(r):S(L,w)?(r.attribName=w,r.state=d.ATTRIB_NAME):(Z(r,"Invalid attribute name"),r.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(a(w))continue;g(w)?(r.q=w,r.state=d.ATTRIB_VALUE_QUOTED):(r.opt.unquotedAttributeValues||ie(r,"Unquoted attribute value"),r.state=d.ATTRIB_VALUE_UNQUOTED,r.attribValue=w);continue;case d.ATTRIB_VALUE_QUOTED:if(w!==r.q){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=w;continue}ye(r),r.q="",r.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:a(w)?r.state=d.ATTRIB:w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(Z(r,"No whitespace between attributes"),r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(w)){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_U:r.attribValue+=w;continue}ye(r),w===">"?ge(r):r.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(r.tagName)w===">"?D(r):S(c,w)?r.tagName+=w:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=d.SCRIPT):(a(w)||Z(r,"Invalid tagname in closing tag"),r.state=d.CLOSE_TAG_SAW_WHITE);else{if(a(w))continue;F(L,w)?r.script?(r.script+="</"+w,r.state=d.SCRIPT):Z(r,"Invalid tagname in closing tag."):r.tagName=w}continue;case d.CLOSE_TAG_SAW_WHITE:if(a(w))continue;w===">"?D(r):Z(r,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,W;switch(r.state){case d.TEXT_ENTITY:U=d.TEXT,W="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,W="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,W="attribValue";break}if(w===";"){var Q=j(r);r.opt.unparsedEntities&&!Object.values(o.XML_ENTITIES).includes(Q)?(r.entity="",r.state=U,r.write(Q)):(r[W]+=Q,r.entity="",r.state=U)}else S(r.entity.length?s:E,w)?r.entity+=w:(Z(r,"Invalid character in entity name"),r[W]+="&"+r.entity+w,r.entity="",r.state=U);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&m(r),r}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||(function(){var i=String.fromCharCode,r=Math.floor,R=function(){var w=16384,h=[],p,U,W=-1,Q=arguments.length;if(!Q)return"";for(var Y="";++W<Q;){var z=Number(arguments[W]);if(!isFinite(z)||z<0||z>1114111||r(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(W+1===Q||h.length>w)&&(Y+=i.apply(null,h),h.length=0)}return Y};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R})()})(n)})(ut)),ut}var Rr,yi;function kr(){return yi||(yi=1,Rr={isArray:function(n){return Array.isArray?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"}}),Rr}var xr,gi;function Hr(){if(gi)return xr;gi=1;var n=kr().isArray;return xr={copyOptions:function(o){var l,u={};for(l in o)o.hasOwnProperty(l)&&(u[l]=o[l]);return u},ensureFlagExists:function(o,l){(!(o in l)||typeof l[o]!="boolean")&&(l[o]=!1)},ensureSpacesExists:function(o){(!("spaces"in o)||typeof o.spaces!="number"&&typeof o.spaces!="string")&&(o.spaces=0)},ensureAlwaysArrayExists:function(o){(!("alwaysArray"in o)||typeof o.alwaysArray!="boolean"&&!n(o.alwaysArray))&&(o.alwaysArray=!1)},ensureKeyExists:function(o,l){(!(o+"Key"in l)||typeof l[o+"Key"]!="string")&&(l[o+"Key"]=l.compact?"_"+o:o)},checkFnExists:function(o,l){return o+"Fn"in l}},xr}var Ir,bi;function Gi(){if(bi)return Ir;bi=1;var n=no(),o=Hr(),l=kr().isArray,u,m;function y(c){return u=o.copyOptions(c),o.ensureFlagExists("ignoreDeclaration",u),o.ensureFlagExists("ignoreInstruction",u),o.ensureFlagExists("ignoreAttributes",u),o.ensureFlagExists("ignoreText",u),o.ensureFlagExists("ignoreComment",u),o.ensureFlagExists("ignoreCdata",u),o.ensureFlagExists("ignoreDoctype",u),o.ensureFlagExists("compact",u),o.ensureFlagExists("alwaysChildren",u),o.ensureFlagExists("addParent",u),o.ensureFlagExists("trim",u),o.ensureFlagExists("nativeType",u),o.ensureFlagExists("nativeTypeAttributes",u),o.ensureFlagExists("sanitize",u),o.ensureFlagExists("instructionHasAttributes",u),o.ensureFlagExists("captureSpacesBetweenElements",u),o.ensureAlwaysArrayExists(u),o.ensureKeyExists("declaration",u),o.ensureKeyExists("instruction",u),o.ensureKeyExists("attributes",u),o.ensureKeyExists("text",u),o.ensureKeyExists("comment",u),o.ensureKeyExists("cdata",u),o.ensureKeyExists("doctype",u),o.ensureKeyExists("type",u),o.ensureKeyExists("name",u),o.ensureKeyExists("elements",u),o.ensureKeyExists("parent",u),o.checkFnExists("doctype",u),o.checkFnExists("instruction",u),o.checkFnExists("cdata",u),o.checkFnExists("comment",u),o.checkFnExists("text",u),o.checkFnExists("instructionName",u),o.checkFnExists("elementName",u),o.checkFnExists("attributeName",u),o.checkFnExists("attributeValue",u),o.checkFnExists("attributes",u),u}function A(c){var E=Number(c);if(!isNaN(E))return E;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function v(c,E){var s;if(u.compact){if(!m[u[c+"Key"]]&&(l(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(m[u[c+"Key"]]=[]),m[u[c+"Key"]]&&!l(m[u[c+"Key"]])&&(m[u[c+"Key"]]=[m[u[c+"Key"]]]),c+"Fn"in u&&typeof E=="string"&&(E=u[c+"Fn"](E,m)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in E)if(E.hasOwnProperty(s))if("instructionFn"in u)E[s]=u.instructionFn(E[s],s,m);else{var a=E[s];delete E[s],E[u.instructionNameFn(s,a,m)]=a}}l(m[u[c+"Key"]])?m[u[c+"Key"]].push(E):m[u[c+"Key"]]=E}else{m[u.elementsKey]||(m[u.elementsKey]=[]);var g={};if(g[u.typeKey]=c,c==="instruction"){for(s in E)if(E.hasOwnProperty(s))break;g[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,E,m):s,u.instructionHasAttributes?(g[u.attributesKey]=E[s][u.attributesKey],"instructionFn"in u&&(g[u.attributesKey]=u.instructionFn(g[u.attributesKey],s,m))):("instructionFn"in u&&(E[s]=u.instructionFn(E[s],s,m)),g[u.instructionKey]=E[s])}else c+"Fn"in u&&(E=u[c+"Fn"](E,m)),g[u[c+"Key"]]=E;u.addParent&&(g[u.parentKey]=m),m[u.elementsKey].push(g)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,m)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var E;for(E in c)if(c.hasOwnProperty(E)&&(u.trim&&(c[E]=c[E].trim()),u.nativeTypeAttributes&&(c[E]=A(c[E])),"attributeValueFn"in u&&(c[E]=u.attributeValueFn(c[E],E,m)),"attributeNameFn"in u)){var s=c[E];delete c[E],c[u.attributeNameFn(E,c[E],m)]=s}}return c}function B(c){var E={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=s.exec(c.body))!==null;)E[a[1]]=a[2]||a[3]||a[4];E=_(E)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;m[u.declarationKey]={},Object.keys(E).length&&(m[u.declarationKey][u.attributesKey]=E),u.addParent&&(m[u.declarationKey][u.parentKey]=m)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var g={};u.instructionHasAttributes&&Object.keys(E).length?(g[c.name]={},g[c.name][u.attributesKey]=E):g[c.name]=c.body,v("instruction",g)}}function C(c,E){var s;if(typeof c=="object"&&(E=c.attributes,c=c.name),E=_(E),"elementNameFn"in u&&(c=u.elementNameFn(c,m)),u.compact){if(s={},!u.ignoreAttributes&&E&&Object.keys(E).length){s[u.attributesKey]={};var a;for(a in E)E.hasOwnProperty(a)&&(s[u.attributesKey][a]=E[a])}!(c in m)&&(l(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(m[c]=[]),m[c]&&!l(m[c])&&(m[c]=[m[c]]),l(m[c])?m[c].push(s):m[c]=s}else m[u.elementsKey]||(m[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&E&&Object.keys(E).length&&(s[u.attributesKey]=E),u.alwaysChildren&&(s[u.elementsKey]=[]),m[u.elementsKey].push(s);s[u.parentKey]=m,m=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),v("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),v("comment",c))}function V(c){var E=m[u.parentKey];u.addParent||delete m[u.parentKey],m=E}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),v("cdata",c))}function H(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),v("doctype",c))}function L(c){c.note=c}return Ir=function(c,E){var s=n.parser(!0,{}),a={};if(m=a,u=y(E),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=V,s.onerror=L,s.oncdata=q,s.ondoctype=H,s.onprocessinginstruction=B,s.write(c).close(),a[u.elementsKey]){var g=a[u.elementsKey];delete a[u.elementsKey],a[u.elementsKey]=g,delete a.text}return a},Ir}var Fr,mi;function io(){if(mi)return Fr;mi=1;var n=Hr(),o=Gi();function l(u){var m=n.copyOptions(u);return n.ensureSpacesExists(m),m}return Fr=function(u,m){var y,A,v,_;return y=l(m),A=o(u,y),_="compact"in y&&y.compact?"_parent":"parent","addParent"in y&&y.addParent?v=JSON.stringify(A,function(B,C){return B===_?"_":C},y.spaces):v=JSON.stringify(A,null,y.spaces),v.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Fr}var Or,Ei;function Ki(){if(Ei)return Or;Ei=1;var n=Hr(),o=kr().isArray,l,u;function m(s){var a=n.copyOptions(s);return n.ensureFlagExists("ignoreDeclaration",a),n.ensureFlagExists("ignoreInstruction",a),n.ensureFlagExists("ignoreAttributes",a),n.ensureFlagExists("ignoreText",a),n.ensureFlagExists("ignoreComment",a),n.ensureFlagExists("ignoreCdata",a),n.ensureFlagExists("ignoreDoctype",a),n.ensureFlagExists("compact",a),n.ensureFlagExists("indentText",a),n.ensureFlagExists("indentCdata",a),n.ensureFlagExists("indentAttributes",a),n.ensureFlagExists("indentInstruction",a),n.ensureFlagExists("fullTagEmptyElement",a),n.ensureFlagExists("noQuotesForNativeAttributes",a),n.ensureSpacesExists(a),typeof a.spaces=="number"&&(a.spaces=Array(a.spaces+1).join(" ")),n.ensureKeyExists("declaration",a),n.ensureKeyExists("instruction",a),n.ensureKeyExists("attributes",a),n.ensureKeyExists("text",a),n.ensureKeyExists("comment",a),n.ensureKeyExists("cdata",a),n.ensureKeyExists("doctype",a),n.ensureKeyExists("type",a),n.ensureKeyExists("name",a),n.ensureKeyExists("elements",a),n.checkFnExists("doctype",a),n.checkFnExists("instruction",a),n.checkFnExists("cdata",a),n.checkFnExists("comment",a),n.checkFnExists("text",a),n.checkFnExists("instructionName",a),n.checkFnExists("elementName",a),n.checkFnExists("attributeName",a),n.checkFnExists("attributeValue",a),n.checkFnExists("attributes",a),n.checkFnExists("fullTagEmptyElement",a),a}function y(s,a,g){return(!g&&s.spaces?`
|
|
24
|
-
`:"")+Array(a+1).join(s.spaces)}function A(s,a,g){if(a.ignoreAttributes)return"";"attributesFn"in a&&(s=a.attributesFn(s,u,l));var T,S,F,d,K=[];for(T in s)s.hasOwnProperty(T)&&s[T]!==null&&s[T]!==void 0&&(d=a.noQuotesForNativeAttributes&&typeof s[T]!="string"?"":'"',S=""+s[T],S=S.replace(/"/g,"""),F="attributeNameFn"in a?a.attributeNameFn(T,S,u,l):T,K.push(a.spaces&&a.indentAttributes?y(a,g+1,!1):" "),K.push(F+"="+d+("attributeValueFn"in a?a.attributeValueFn(S,T,u,l):S)+d));return s&&Object.keys(s).length&&a.spaces&&a.indentAttributes&&K.push(y(a,g,!1)),K.join("")}function v(s,a,g){return l=s,u="xml",a.ignoreDeclaration?"":"<?xml"+A(s[a.attributesKey],a,g)+"?>"}function _(s,a,g){if(a.ignoreInstruction)return"";var T;for(T in s)if(s.hasOwnProperty(T))break;var S="instructionNameFn"in a?a.instructionNameFn(T,s[T],u,l):T;if(typeof s[T]=="object")return l=s,u=S,"<?"+S+A(s[T][a.attributesKey],a,g)+"?>";var F=s[T]?s[T]:"";return"instructionFn"in a&&(F=a.instructionFn(F,T,u,l)),"<?"+S+(F?" "+F:"")+"?>"}function B(s,a){return a.ignoreComment?"":"<!--"+("commentFn"in a?a.commentFn(s,u,l):s)+"-->"}function C(s,a){return a.ignoreCdata?"":"<![CDATA["+("cdataFn"in a?a.cdataFn(s,u,l):s.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function N(s,a){return a.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in a?a.doctypeFn(s,u,l):s)+">"}function P(s,a){return a.ignoreText?"":(s=""+s,s=s.replace(/&/g,"&"),s=s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in a?a.textFn(s,u,l):s)}function
|
|
25
|
-
`+Array(g+1).join(a.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function H(s,a,g,T){return s.reduce(function(S,F){var d=y(a,g,T&&!S);switch(F.type){case"element":return S+d+q(F,a,g);case"comment":return S+d+B(F[a.commentKey],a);case"doctype":return S+d+N(F[a.doctypeKey],a);case"cdata":return S+(a.indentCdata?d:"")+C(F[a.cdataKey],a);case"text":return S+(a.indentText?d:"")+P(F[a.textKey],a);case"instruction":var K={};return K[F[a.nameKey]]=F[a.attributesKey]?F:F[a.instructionKey],S+(a.indentInstruction?d:"")+_(K,a,g)}},"")}function L(s,a,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case a.parentKey:case a.attributesKey:break;case a.textKey:if(a.indentText||g)return!0;break;case a.cdataKey:if(a.indentCdata||g)return!0;break;case a.instructionKey:if(a.indentInstruction||g)return!0;break;case a.doctypeKey:case a.commentKey:return!0;default:return!0}return!1}function c(s,a,g,T,S){l=s,u=a;var F="elementNameFn"in g?g.elementNameFn(a,s):a;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(a,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(a){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(a,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(E(s,g,T+1,!1)),l=s,u=a,a&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function E(s,a,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=o(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case a.declarationKey:K.push(v(d[S],a,g));break;case a.instructionKey:K.push((a.indentInstruction?y(a,g,T):"")+_(d[S],a,g));break;case a.attributesKey:case a.parentKey:break;case a.textKey:K.push((a.indentText?y(a,g,T):"")+P(d[S],a));break;case a.cdataKey:K.push((a.indentCdata?y(a,g,T):"")+C(d[S],a));break;case a.doctypeKey:K.push(y(a,g,T)+N(d[S],a));break;case a.commentKey:K.push(y(a,g,T)+B(d[S],a));break;default:K.push(y(a,g,T)+c(d[S],F,a,g,L(d[S],a)))}T=T&&!K.length}return K.join("")}return Or=function(s,a){a=m(a);var g=[];return l=s,u="_root_",a.compact?g.push(E(s,a,0,!0)):(s[a.declarationKey]&&g.push(v(s[a.declarationKey],a,0)),s[a.elementsKey]&&s[a.elementsKey].length&&g.push(H(s[a.elementsKey],a,0,!g.length))),g.join("")},Or}var Br,vi;function ao(){if(vi)return Br;vi=1;var n=Ki();return Br=function(o,l){o instanceof te.Buffer&&(o=o.toString());var u=null;if(typeof o=="string")try{u=JSON.parse(o)}catch{throw new Error("The JSON structure is invalid")}else u=o;return n(u,l)},Br}var Nr,wi;function oo(){if(wi)return Nr;wi=1;var n=Gi(),o=io(),l=Ki(),u=ao();return Nr={xml2js:n,xml2json:o,js2xml:l,json2xml:u},Nr}var uo=oo();const so=me.getDefaultExportFromCjs(uo);/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function fo(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function qe(n,o=""){if(!Number.isSafeInteger(n)||n<0){const l=o&&`"${o}" `;throw new Error(`${l}expected integer >= 0, got ${n}`)}}function ke(n,o,l=""){const u=fo(n),m=n?.length,y=o!==void 0;if(!u||y&&m!==o){const A=l&&`"${l}" `,v=y?` of length ${o}`:"",_=u?`length=${m}`:`type=${typeof n}`;throw new Error(A+"expected Uint8Array"+v+", got "+_)}return n}function $i(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash must wrapped by utils.createHasher");qe(n.outputLen),qe(n.blockLen)}function et(n,o=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(o&&n.finished)throw new Error("Hash#digest() has already been called")}function lo(n,o){ke(n,void 0,"digestInto() output");const l=o.outputLen;if(n.length<l)throw new Error('"digestInto() output" expected to be of length >='+l)}function He(...n){for(let o=0;o<n.length;o++)n[o].fill(0)}function Ze(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function co(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function _i(n,o=""){return typeof n=="string"?co(n):ke(n,void 0,o)}function ho(n,o){if(o!==void 0&&{}.toString.call(o)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(n,o)}function po(n,o={}){const l=(m,y)=>n(y).update(m).digest(),u=n(void 0);return l.outputLen=u.outputLen,l.blockLen=u.blockLen,l.create=m=>n(m),Object.assign(l,o),Object.freeze(l)}const yo=n=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,n])});class Wi{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(o,l){if($i(o),ke(l,void 0,"key"),this.iHash=o.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 u=this.blockLen,m=new Uint8Array(u);m.set(l.length>u?o.create().update(l).digest():l);for(let y=0;y<m.length;y++)m[y]^=54;this.iHash.update(m),this.oHash=o.create();for(let y=0;y<m.length;y++)m[y]^=106;this.oHash.update(m),He(m)}update(o){return et(this),this.iHash.update(o),this}digestInto(o){et(this),ke(o,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||=Object.create(Object.getPrototypeOf(this),{});const{oHash:l,iHash:u,finished:m,destroyed:y,blockLen:A,outputLen:v}=this;return o=o,o.finished=m,o.destroyed=y,o.blockLen=A,o.outputLen=v,o.oHash=l._cloneInto(o.oHash),o.iHash=u._cloneInto(o.iHash),o}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Vi=(n,o,l)=>new Wi(n,o).update(l).digest();Vi.create=(n,o)=>new Wi(n,o);function go(n,o,l,u){$i(n);const m=ho({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:v}=m;if(qe(y,"c"),qe(A,"dkLen"),qe(v,"asyncTick"),y<1)throw new Error("iterations (c) must be >= 1");const _=_i(o,"password"),B=_i(l,"salt"),C=new Uint8Array(A),N=Vi.create(n,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:v,DK:C,PRF:N,PRFSalt:P}}function bo(n,o,l,u,m){return n.destroy(),o.destroy(),u&&u.destroy(),He(m),l}function mo(n,o,l,u){const{c:m,dkLen:y,DK:A,PRF:v,PRFSalt:_}=go(n,o,l,u);let B;const C=new Uint8Array(4),N=Ze(C),P=new Uint8Array(v.outputLen);for(let V=1,q=0;q<y;V++,q+=v.outputLen){const H=A.subarray(q,q+v.outputLen);N.setInt32(0,V,!1),(B=_._cloneInto(B)).update(C).digestInto(P),H.set(P.subarray(0,H.length));for(let L=1;L<m;L++){v._cloneInto(B).update(P).digestInto(P);for(let c=0;c<H.length;c++)H[c]^=P[c]}}return bo(v,_,A,B,P)}class Eo{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(o,l,u,m){this.blockLen=o,this.outputLen=l,this.padOffset=u,this.isLE=m,this.buffer=new Uint8Array(o),this.view=Ze(this.buffer)}update(o){et(this),ke(o);const{view:l,buffer:u,blockLen:m}=this,y=o.length;for(let A=0;A<y;){const v=Math.min(m-this.pos,y-A);if(v===m){const _=Ze(o);for(;m<=y-A;A+=m)this.process(_,A);continue}u.set(o.subarray(A,A+v),this.pos),this.pos+=v,A+=v,this.pos===m&&(this.process(l,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){et(this),lo(o,this),this.finished=!0;const{buffer:l,view:u,blockLen:m,isLE:y}=this;let{pos:A}=this;l[A++]=128,He(this.buffer.subarray(A)),this.padOffset>m-A&&(this.process(u,0),A=0);for(let N=A;N<m;N++)l[N]=0;u.setBigUint64(m-8,BigInt(this.length*8),y),this.process(u,0);const v=Ze(o),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)v.setUint32(4*N,C[N],y)}digest(){const{buffer:o,outputLen:l}=this;this.digestInto(o);const u=o.slice(0,l);return this.destroy(),u}_cloneInto(o){o||=new this.constructor,o.set(...this.get());const{blockLen:l,buffer:u,length:m,finished:y,destroyed:A,pos:v}=this;return o.destroyed=A,o.finished=y,o.length=m,o.pos=v,m%l&&o.buffer.set(u),o}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ze=BigInt(2**32-1),Ai=BigInt(32);function vo(n,o=!1){return o?{h:Number(n&ze),l:Number(n>>Ai&ze)}:{h:Number(n>>Ai&ze)|0,l:Number(n&ze)|0}}function wo(n,o=!1){const l=n.length;let u=new Uint32Array(l),m=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:v}=vo(n[y],o);[u[y],m[y]]=[A,v]}return[u,m]}const Ti=(n,o,l)=>n>>>l,Si=(n,o,l)=>n<<32-l|o>>>l,Ce=(n,o,l)=>n>>>l|o<<32-l,De=(n,o,l)=>n<<32-l|o>>>l,Je=(n,o,l)=>n<<64-l|o>>>l-32,Qe=(n,o,l)=>n>>>l-32|o<<64-l;function Se(n,o,l,u){const m=(o>>>0)+(u>>>0);return{h:n+l+(m/2**32|0)|0,l:m|0}}const _o=(n,o,l)=>(n>>>0)+(o>>>0)+(l>>>0),Ao=(n,o,l,u)=>o+l+u+(n/2**32|0)|0,To=(n,o,l,u)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0),So=(n,o,l,u,m)=>o+l+u+m+(n/2**32|0)|0,Ro=(n,o,l,u,m)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0)+(m>>>0),xo=(n,o,l,u,m,y)=>o+l+u+m+y+(n/2**32|0)|0,Yi=wo(["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(n=>BigInt(n))),Io=Yi[0],Fo=Yi[1],Ie=new Uint32Array(80),Fe=new Uint32Array(80);class Oo extends Eo{constructor(o){super(128,o,16,!1)}get(){const{Ah:o,Al:l,Bh:u,Bl:m,Ch:y,Cl:A,Dh:v,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:V,Gl:q,Hh:H,Hl:L}=this;return[o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L]}set(o,l,u,m,y,A,v,_,B,C,N,P,V,q,H,L){this.Ah=o|0,this.Al=l|0,this.Bh=u|0,this.Bl=m|0,this.Ch=y|0,this.Cl=A|0,this.Dh=v|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=V|0,this.Gl=q|0,this.Hh=H|0,this.Hl=L|0}process(o,l){for(let s=0;s<16;s++,l+=4)Ie[s]=o.getUint32(l),Fe[s]=o.getUint32(l+=4);for(let s=16;s<80;s++){const a=Ie[s-15]|0,g=Fe[s-15]|0,T=Ce(a,g,1)^Ce(a,g,8)^Ti(a,g,7),S=De(a,g,1)^De(a,g,8)^Si(a,g,7),F=Ie[s-2]|0,d=Fe[s-2]|0,K=Ce(F,d,19)^Je(F,d,61)^Ti(F,d,6),X=De(F,d,19)^Qe(F,d,61)^Si(F,d,6),x=To(S,X,Fe[s-7],Fe[s-16]),ee=So(x,T,K,Ie[s-7],Ie[s-16]);Ie[s]=ee|0,Fe[s]=x|0}let{Ah:u,Al:m,Bh:y,Bl:A,Ch:v,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:V,Fl:q,Gh:H,Gl:L,Hh:c,Hl:E}=this;for(let s=0;s<80;s++){const a=Ce(N,P,14)^Ce(N,P,18)^Je(N,P,41),g=De(N,P,14)^De(N,P,18)^Qe(N,P,41),T=N&V^~N&H,S=P&q^~P&L,F=Ro(E,g,S,Fo[s],Fe[s]),d=xo(F,c,a,T,Io[s],Ie[s]),K=F|0,X=Ce(u,m,28)^Je(u,m,34)^Je(u,m,39),x=De(u,m,28)^Qe(u,m,34)^Qe(u,m,39),ee=u&y^u&v^y&v,re=m&A^m&_^A&_;c=H|0,E=L|0,H=V|0,L=q|0,V=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=v|0,C=_|0,v=y|0,_=A|0,y=u|0,A=m|0;const ie=_o(K,x,re);u=Ao(ie,d,X,ee),m=ie|0}({h:u,l:m}=Se(this.Ah|0,this.Al|0,u|0,m|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:v,l:_}=Se(this.Ch|0,this.Cl|0,v|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:V,l:q}=Se(this.Fh|0,this.Fl|0,V|0,q|0),{h:H,l:L}=Se(this.Gh|0,this.Gl|0,H|0,L|0),{h:c,l:E}=Se(this.Hh|0,this.Hl|0,c|0,E|0),this.set(u,m,y,A,v,_,B,C,N,P,V,q,H,L,c,E)}roundClean(){He(Ie,Fe)}destroy(){He(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Bo extends Oo{Ah=Ee[0]|0;Al=Ee[1]|0;Bh=Ee[2]|0;Bl=Ee[3]|0;Ch=Ee[4]|0;Cl=Ee[5]|0;Dh=Ee[6]|0;Dl=Ee[7]|0;Eh=Ee[8]|0;El=Ee[9]|0;Fh=Ee[10]|0;Fl=Ee[11]|0;Gh=Ee[12]|0;Gl=Ee[13]|0;Hh=Ee[14]|0;Hl=Ee[15]|0;constructor(){super(64)}}const No=po(()=>new Bo,yo(3)),Po=(n,o,l,u)=>te.Buffer.from(mo(No,n,o,{c:l,dkLen:u}));class Co{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:o,baseURI:l}){this.axiosClient=o,this.baseURI=l}async signUrl(o,l){const u=new URL(o);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const m=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",m),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const o=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=so.xml2js(o.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(o){const l=await this.getSignKey();return Po(o,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Do=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,m=Ri(u,o),y=new Co({baseURI:n,axiosClient:o});return{getCapabilities:()=>m.getCapabilities(),signUrl:(A,v)=>y.signUrl(A,v)}};exports.GetCapabilitiesFactory=Ri;exports.ocs=Do;
|
|
16
|
+
Actual: `+i.attribValue);else{var h=i.tag,p=i.tags[i.tags.length-1]||i;h.ns===p.ns&&(h.ns=Object.create(p.ns)),h.ns[w]=i.attribValue}i.attribList.push([i.attribName,i.attribValue])}else i.tag.attributes[i.attribName]=i.attribValue,x(i,"onattribute",{name:i.attribName,value:i.attribValue});i.attribName=i.attribValue=""}function ge(i,r){if(i.opt.xmlns){var R=i.tag,w=oe(i.tagName);R.prefix=w.prefix,R.local=w.local,R.uri=R.ns[w.prefix]||"",R.prefix&&!R.uri&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(i.tagName)),R.uri=w.prefix);var h=i.tags[i.tags.length-1]||i;R.ns&&h.ns!==R.ns&&Object.keys(R.ns).forEach(function(ae){x(i,"onopennamespace",{prefix:ae,uri:R.ns[ae]})});for(var p=0,U=i.attribList.length;p<U;p++){var V=i.attribList[p],Q=V[0],$=V[1],z=oe(Q,!0),se=z.prefix,k=z.local,ve=se===""?"":R.ns[se]||"",be={name:Q,value:$,prefix:se,local:k,uri:ve};se&&se!=="xmlns"&&!ve&&(Z(i,"Unbound namespace prefix: "+JSON.stringify(se)),be.uri=se),i.tag.attributes[Q]=be,x(i,"onattribute",be)}i.attribList.length=0}i.tag.isSelfClosing=!!r,i.sawRoot=!0,i.tags.push(i.tag),x(i,"onopentag",i.tag),r||(!i.noscript&&i.tagName.toLowerCase()==="script"?i.state=d.SCRIPT:i.state=d.TEXT,i.tag=null,i.tagName=""),i.attribName=i.attribValue="",i.attribList.length=0}function D(i){if(!i.tagName){Z(i,"Weird empty close tag."),i.textNode+="</>",i.state=d.TEXT;return}if(i.script){if(i.tagName!=="script"){i.script+="</"+i.tagName+">",i.tagName="",i.state=d.SCRIPT;return}x(i,"onscript",i.script),i.script=""}var r=i.tags.length,R=i.tagName;i.strict||(R=R[i.looseCase]());for(var w=R;r--;){var h=i.tags[r];if(h.name!==w)Z(i,"Unexpected close tag");else break}if(r<0){Z(i,"Unmatched closing tag: "+i.tagName),i.textNode+="</"+i.tagName+">",i.state=d.TEXT;return}i.tagName=R;for(var p=i.tags.length;p-- >r;){var U=i.tag=i.tags.pop();i.tagName=i.tag.name,x(i,"onclosetag",i.tagName);var V={};for(var Q in U.ns)V[Q]=U.ns[Q];var $=i.tags[i.tags.length-1]||i;i.opt.xmlns&&U.ns!==$.ns&&Object.keys(U.ns).forEach(function(z){var se=U.ns[z];x(i,"onclosenamespace",{prefix:z,uri:se})})}r===0&&(i.closedRoot=!0),i.tagName=i.attribValue=i.attribName="",i.attribList.length=0,i.state=d.TEXT}function j(i){var r=i.entity,R=r.toLowerCase(),w,h="";return i.ENTITIES[r]?i.ENTITIES[r]:i.ENTITIES[R]?i.ENTITIES[R]:(r=R,r.charAt(0)==="#"&&(r.charAt(1)==="x"?(r=r.slice(2),w=parseInt(r,16),h=w.toString(16)):(r=r.slice(1),w=parseInt(r,10),h=w.toString(10))),r=r.replace(/^0+/,""),isNaN(w)||h.toLowerCase()!==r?(Z(i,"Invalid character entity"),"&"+i.entity+";"):String.fromCodePoint(w))}function W(i,r){r==="<"?(i.state=d.OPEN_WAKA,i.startTagPosition=i.position):a(r)||(Z(i,"Non-whitespace before first tag."),i.textNode=r,i.state=d.TEXT)}function J(i,r){var R="";return r<i.length&&(R=i.charAt(r)),R}function O(i){var r=this;if(this.error)throw this.error;if(r.closed)return ie(r,"Cannot write after close. Assign an onready handler.");if(i===null)return le(r);typeof i=="object"&&(i=i.toString());for(var R=0,w="";w=J(i,R++),r.c=w,!!w;)switch(r.trackPosition&&(r.position++,w===`
|
|
17
|
+
`?(r.line++,r.column=0):r.column++),r.state){case d.BEGIN:if(r.state=d.BEGIN_WHITESPACE,w==="\uFEFF")continue;W(r,w);continue;case d.BEGIN_WHITESPACE:W(r,w);continue;case d.TEXT:if(r.sawRoot&&!r.closedRoot){for(var h=R-1;w&&w!=="<"&&w!=="&";)w=J(i,R++),w&&r.trackPosition&&(r.position++,w===`
|
|
18
|
+
`?(r.line++,r.column=0):r.column++);r.textNode+=i.substring(h,R-1)}w==="<"&&!(r.sawRoot&&r.closedRoot&&!r.strict)?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):(!a(w)&&(!r.sawRoot||r.closedRoot)&&Z(r,"Text data outside of root node."),w==="&"?r.state=d.TEXT_ENTITY:r.textNode+=w);continue;case d.SCRIPT:w==="<"?r.state=d.SCRIPT_ENDING:r.script+=w;continue;case d.SCRIPT_ENDING:w==="/"?r.state=d.CLOSE_TAG:(r.script+="<"+w,r.state=d.SCRIPT);continue;case d.OPEN_WAKA:if(w==="!")r.state=d.SGML_DECL,r.sgmlDecl="";else if(!a(w))if(S(L,w))r.state=d.OPEN_TAG,r.tagName=w;else if(w==="/")r.state=d.CLOSE_TAG,r.tagName="";else if(w==="?")r.state=d.PROC_INST,r.procInstName=r.procInstBody="";else{if(Z(r,"Unencoded <"),r.startTagPosition+1<r.position){var p=r.position-r.startTagPosition;w=new Array(p).join(" ")+w}r.textNode+="<"+w,r.state=d.TEXT}continue;case d.SGML_DECL:if(r.sgmlDecl+w==="--"){r.state=d.COMMENT,r.comment="",r.sgmlDecl="";continue}r.doctype&&r.doctype!==!0&&r.sgmlDecl?(r.state=d.DOCTYPE_DTD,r.doctype+="<!"+r.sgmlDecl+w,r.sgmlDecl=""):(r.sgmlDecl+w).toUpperCase()===N?(x(r,"onopencdata"),r.state=d.CDATA,r.sgmlDecl="",r.cdata=""):(r.sgmlDecl+w).toUpperCase()===P?(r.state=d.DOCTYPE,(r.doctype||r.sawRoot)&&Z(r,"Inappropriately located doctype declaration"),r.doctype="",r.sgmlDecl=""):w===">"?(x(r,"onsgmldeclaration",r.sgmlDecl),r.sgmlDecl="",r.state=d.TEXT):(g(w)&&(r.state=d.SGML_DECL_QUOTED),r.sgmlDecl+=w);continue;case d.SGML_DECL_QUOTED:w===r.q&&(r.state=d.SGML_DECL,r.q=""),r.sgmlDecl+=w;continue;case d.DOCTYPE:w===">"?(r.state=d.TEXT,x(r,"ondoctype",r.doctype),r.doctype=!0):(r.doctype+=w,w==="["?r.state=d.DOCTYPE_DTD:g(w)&&(r.state=d.DOCTYPE_QUOTED,r.q=w));continue;case d.DOCTYPE_QUOTED:r.doctype+=w,w===r.q&&(r.q="",r.state=d.DOCTYPE);continue;case d.DOCTYPE_DTD:w==="]"?(r.doctype+=w,r.state=d.DOCTYPE):w==="<"?(r.state=d.OPEN_WAKA,r.startTagPosition=r.position):g(w)?(r.doctype+=w,r.state=d.DOCTYPE_DTD_QUOTED,r.q=w):r.doctype+=w;continue;case d.DOCTYPE_DTD_QUOTED:r.doctype+=w,w===r.q&&(r.state=d.DOCTYPE_DTD,r.q="");continue;case d.COMMENT:w==="-"?r.state=d.COMMENT_ENDING:r.comment+=w;continue;case d.COMMENT_ENDING:w==="-"?(r.state=d.COMMENT_ENDED,r.comment=re(r.opt,r.comment),r.comment&&x(r,"oncomment",r.comment),r.comment=""):(r.comment+="-"+w,r.state=d.COMMENT);continue;case d.COMMENT_ENDED:w!==">"?(Z(r,"Malformed comment"),r.comment+="--"+w,r.state=d.COMMENT):r.doctype&&r.doctype!==!0?r.state=d.DOCTYPE_DTD:r.state=d.TEXT;continue;case d.CDATA:w==="]"?r.state=d.CDATA_ENDING:r.cdata+=w;continue;case d.CDATA_ENDING:w==="]"?r.state=d.CDATA_ENDING_2:(r.cdata+="]"+w,r.state=d.CDATA);continue;case d.CDATA_ENDING_2:w===">"?(r.cdata&&x(r,"oncdata",r.cdata),x(r,"onclosecdata"),r.cdata="",r.state=d.TEXT):w==="]"?r.cdata+="]":(r.cdata+="]]"+w,r.state=d.CDATA);continue;case d.PROC_INST:w==="?"?r.state=d.PROC_INST_ENDING:a(w)?r.state=d.PROC_INST_BODY:r.procInstName+=w;continue;case d.PROC_INST_BODY:if(!r.procInstBody&&a(w))continue;w==="?"?r.state=d.PROC_INST_ENDING:r.procInstBody+=w;continue;case d.PROC_INST_ENDING:w===">"?(x(r,"onprocessinginstruction",{name:r.procInstName,body:r.procInstBody}),r.procInstName=r.procInstBody="",r.state=d.TEXT):(r.procInstBody+="?"+w,r.state=d.PROC_INST_BODY);continue;case d.OPEN_TAG:S(c,w)?r.tagName+=w:(ce(r),w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:(a(w)||Z(r,"Invalid character in tag name"),r.state=d.ATTRIB));continue;case d.OPEN_TAG_SLASH:w===">"?(ge(r,!0),D(r)):(Z(r,"Forward-slash in opening tag not followed by >"),r.state=d.ATTRIB);continue;case d.ATTRIB:if(a(w))continue;w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME:w==="="?r.state=d.ATTRIB_VALUE:w===">"?(Z(r,"Attribute without value"),r.attribValue=r.attribName,ye(r),ge(r)):a(w)?r.state=d.ATTRIB_NAME_SAW_WHITE:S(c,w)?r.attribName+=w:Z(r,"Invalid attribute name");continue;case d.ATTRIB_NAME_SAW_WHITE:if(w==="=")r.state=d.ATTRIB_VALUE;else{if(a(w))continue;Z(r,"Attribute without value"),r.tag.attributes[r.attribName]="",r.attribValue="",x(r,"onattribute",{name:r.attribName,value:""}),r.attribName="",w===">"?ge(r):S(L,w)?(r.attribName=w,r.state=d.ATTRIB_NAME):(Z(r,"Invalid attribute name"),r.state=d.ATTRIB)}continue;case d.ATTRIB_VALUE:if(a(w))continue;g(w)?(r.q=w,r.state=d.ATTRIB_VALUE_QUOTED):(r.opt.unquotedAttributeValues||ie(r,"Unquoted attribute value"),r.state=d.ATTRIB_VALUE_UNQUOTED,r.attribValue=w);continue;case d.ATTRIB_VALUE_QUOTED:if(w!==r.q){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_Q:r.attribValue+=w;continue}ye(r),r.q="",r.state=d.ATTRIB_VALUE_CLOSED;continue;case d.ATTRIB_VALUE_CLOSED:a(w)?r.state=d.ATTRIB:w===">"?ge(r):w==="/"?r.state=d.OPEN_TAG_SLASH:S(L,w)?(Z(r,"No whitespace between attributes"),r.attribName=w,r.attribValue="",r.state=d.ATTRIB_NAME):Z(r,"Invalid attribute name");continue;case d.ATTRIB_VALUE_UNQUOTED:if(!T(w)){w==="&"?r.state=d.ATTRIB_VALUE_ENTITY_U:r.attribValue+=w;continue}ye(r),w===">"?ge(r):r.state=d.ATTRIB;continue;case d.CLOSE_TAG:if(r.tagName)w===">"?D(r):S(c,w)?r.tagName+=w:r.script?(r.script+="</"+r.tagName,r.tagName="",r.state=d.SCRIPT):(a(w)||Z(r,"Invalid tagname in closing tag"),r.state=d.CLOSE_TAG_SAW_WHITE);else{if(a(w))continue;F(L,w)?r.script?(r.script+="</"+w,r.state=d.SCRIPT):Z(r,"Invalid tagname in closing tag."):r.tagName=w}continue;case d.CLOSE_TAG_SAW_WHITE:if(a(w))continue;w===">"?D(r):Z(r,"Invalid characters in closing tag");continue;case d.TEXT_ENTITY:case d.ATTRIB_VALUE_ENTITY_Q:case d.ATTRIB_VALUE_ENTITY_U:var U,V;switch(r.state){case d.TEXT_ENTITY:U=d.TEXT,V="textNode";break;case d.ATTRIB_VALUE_ENTITY_Q:U=d.ATTRIB_VALUE_QUOTED,V="attribValue";break;case d.ATTRIB_VALUE_ENTITY_U:U=d.ATTRIB_VALUE_UNQUOTED,V="attribValue";break}if(w===";"){var Q=j(r);r.opt.unparsedEntities&&!Object.values(o.XML_ENTITIES).includes(Q)?(r.entity="",r.state=U,r.write(Q)):(r[V]+=Q,r.entity="",r.state=U)}else S(r.entity.length?s:E,w)?r.entity+=w:(Z(r,"Invalid character in entity name"),r[V]+="&"+r.entity+w,r.entity="",r.state=U);continue;default:throw new Error(r,"Unknown state: "+r.state)}return r.position>=r.bufferCheckPosition&&m(r),r}String.fromCodePoint||(function(){var i=String.fromCharCode,r=Math.floor,R=function(){var w=16384,h=[],p,U,V=-1,Q=arguments.length;if(!Q)return"";for(var $="";++V<Q;){var z=Number(arguments[V]);if(!isFinite(z)||z<0||z>1114111||r(z)!==z)throw RangeError("Invalid code point: "+z);z<=65535?h.push(z):(z-=65536,p=(z>>10)+55296,U=z%1024+56320,h.push(p,U)),(V+1===Q||h.length>w)&&($+=i.apply(null,h),h.length=0)}return $};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:R,configurable:!0,writable:!0}):String.fromCodePoint=R})()})(n)})(ut)),ut}var Rr,yi;function kr(){return yi||(yi=1,Rr={isArray:function(n){return Array.isArray?Array.isArray(n):Object.prototype.toString.call(n)==="[object Array]"}}),Rr}var xr,gi;function Hr(){if(gi)return xr;gi=1;var n=kr().isArray;return xr={copyOptions:function(o){var l,u={};for(l in o)o.hasOwnProperty(l)&&(u[l]=o[l]);return u},ensureFlagExists:function(o,l){(!(o in l)||typeof l[o]!="boolean")&&(l[o]=!1)},ensureSpacesExists:function(o){(!("spaces"in o)||typeof o.spaces!="number"&&typeof o.spaces!="string")&&(o.spaces=0)},ensureAlwaysArrayExists:function(o){(!("alwaysArray"in o)||typeof o.alwaysArray!="boolean"&&!n(o.alwaysArray))&&(o.alwaysArray=!1)},ensureKeyExists:function(o,l){(!(o+"Key"in l)||typeof l[o+"Key"]!="string")&&(l[o+"Key"]=l.compact?"_"+o:o)},checkFnExists:function(o,l){return o+"Fn"in l}},xr}var Ir,bi;function Gi(){if(bi)return Ir;bi=1;var n=no(),o=Hr(),l=kr().isArray,u,m;function y(c){return u=o.copyOptions(c),o.ensureFlagExists("ignoreDeclaration",u),o.ensureFlagExists("ignoreInstruction",u),o.ensureFlagExists("ignoreAttributes",u),o.ensureFlagExists("ignoreText",u),o.ensureFlagExists("ignoreComment",u),o.ensureFlagExists("ignoreCdata",u),o.ensureFlagExists("ignoreDoctype",u),o.ensureFlagExists("compact",u),o.ensureFlagExists("alwaysChildren",u),o.ensureFlagExists("addParent",u),o.ensureFlagExists("trim",u),o.ensureFlagExists("nativeType",u),o.ensureFlagExists("nativeTypeAttributes",u),o.ensureFlagExists("sanitize",u),o.ensureFlagExists("instructionHasAttributes",u),o.ensureFlagExists("captureSpacesBetweenElements",u),o.ensureAlwaysArrayExists(u),o.ensureKeyExists("declaration",u),o.ensureKeyExists("instruction",u),o.ensureKeyExists("attributes",u),o.ensureKeyExists("text",u),o.ensureKeyExists("comment",u),o.ensureKeyExists("cdata",u),o.ensureKeyExists("doctype",u),o.ensureKeyExists("type",u),o.ensureKeyExists("name",u),o.ensureKeyExists("elements",u),o.ensureKeyExists("parent",u),o.checkFnExists("doctype",u),o.checkFnExists("instruction",u),o.checkFnExists("cdata",u),o.checkFnExists("comment",u),o.checkFnExists("text",u),o.checkFnExists("instructionName",u),o.checkFnExists("elementName",u),o.checkFnExists("attributeName",u),o.checkFnExists("attributeValue",u),o.checkFnExists("attributes",u),u}function A(c){var E=Number(c);if(!isNaN(E))return E;var s=c.toLowerCase();return s==="true"?!0:s==="false"?!1:c}function v(c,E){var s;if(u.compact){if(!m[u[c+"Key"]]&&(l(u.alwaysArray)?u.alwaysArray.indexOf(u[c+"Key"])!==-1:u.alwaysArray)&&(m[u[c+"Key"]]=[]),m[u[c+"Key"]]&&!l(m[u[c+"Key"]])&&(m[u[c+"Key"]]=[m[u[c+"Key"]]]),c+"Fn"in u&&typeof E=="string"&&(E=u[c+"Fn"](E,m)),c==="instruction"&&("instructionFn"in u||"instructionNameFn"in u)){for(s in E)if(E.hasOwnProperty(s))if("instructionFn"in u)E[s]=u.instructionFn(E[s],s,m);else{var a=E[s];delete E[s],E[u.instructionNameFn(s,a,m)]=a}}l(m[u[c+"Key"]])?m[u[c+"Key"]].push(E):m[u[c+"Key"]]=E}else{m[u.elementsKey]||(m[u.elementsKey]=[]);var g={};if(g[u.typeKey]=c,c==="instruction"){for(s in E)if(E.hasOwnProperty(s))break;g[u.nameKey]="instructionNameFn"in u?u.instructionNameFn(s,E,m):s,u.instructionHasAttributes?(g[u.attributesKey]=E[s][u.attributesKey],"instructionFn"in u&&(g[u.attributesKey]=u.instructionFn(g[u.attributesKey],s,m))):("instructionFn"in u&&(E[s]=u.instructionFn(E[s],s,m)),g[u.instructionKey]=E[s])}else c+"Fn"in u&&(E=u[c+"Fn"](E,m)),g[u[c+"Key"]]=E;u.addParent&&(g[u.parentKey]=m),m[u.elementsKey].push(g)}}function _(c){if("attributesFn"in u&&c&&(c=u.attributesFn(c,m)),(u.trim||"attributeValueFn"in u||"attributeNameFn"in u||u.nativeTypeAttributes)&&c){var E;for(E in c)if(c.hasOwnProperty(E)&&(u.trim&&(c[E]=c[E].trim()),u.nativeTypeAttributes&&(c[E]=A(c[E])),"attributeValueFn"in u&&(c[E]=u.attributeValueFn(c[E],E,m)),"attributeNameFn"in u)){var s=c[E];delete c[E],c[u.attributeNameFn(E,c[E],m)]=s}}return c}function B(c){var E={};if(c.body&&(c.name.toLowerCase()==="xml"||u.instructionHasAttributes)){for(var s=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,a;(a=s.exec(c.body))!==null;)E[a[1]]=a[2]||a[3]||a[4];E=_(E)}if(c.name.toLowerCase()==="xml"){if(u.ignoreDeclaration)return;m[u.declarationKey]={},Object.keys(E).length&&(m[u.declarationKey][u.attributesKey]=E),u.addParent&&(m[u.declarationKey][u.parentKey]=m)}else{if(u.ignoreInstruction)return;u.trim&&(c.body=c.body.trim());var g={};u.instructionHasAttributes&&Object.keys(E).length?(g[c.name]={},g[c.name][u.attributesKey]=E):g[c.name]=c.body,v("instruction",g)}}function C(c,E){var s;if(typeof c=="object"&&(E=c.attributes,c=c.name),E=_(E),"elementNameFn"in u&&(c=u.elementNameFn(c,m)),u.compact){if(s={},!u.ignoreAttributes&&E&&Object.keys(E).length){s[u.attributesKey]={};var a;for(a in E)E.hasOwnProperty(a)&&(s[u.attributesKey][a]=E[a])}!(c in m)&&(l(u.alwaysArray)?u.alwaysArray.indexOf(c)!==-1:u.alwaysArray)&&(m[c]=[]),m[c]&&!l(m[c])&&(m[c]=[m[c]]),l(m[c])?m[c].push(s):m[c]=s}else m[u.elementsKey]||(m[u.elementsKey]=[]),s={},s[u.typeKey]="element",s[u.nameKey]=c,!u.ignoreAttributes&&E&&Object.keys(E).length&&(s[u.attributesKey]=E),u.alwaysChildren&&(s[u.elementsKey]=[]),m[u.elementsKey].push(s);s[u.parentKey]=m,m=s}function N(c){u.ignoreText||!c.trim()&&!u.captureSpacesBetweenElements||(u.trim&&(c=c.trim()),u.nativeType&&(c=A(c)),u.sanitize&&(c=c.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),v("text",c))}function P(c){u.ignoreComment||(u.trim&&(c=c.trim()),v("comment",c))}function Y(c){var E=m[u.parentKey];u.addParent||delete m[u.parentKey],m=E}function q(c){u.ignoreCdata||(u.trim&&(c=c.trim()),v("cdata",c))}function H(c){u.ignoreDoctype||(c=c.replace(/^ /,""),u.trim&&(c=c.trim()),v("doctype",c))}function L(c){c.note=c}return Ir=function(c,E){var s=n.parser(!0,{}),a={};if(m=a,u=y(E),s.opt={strictEntities:!0},s.onopentag=C,s.ontext=N,s.oncomment=P,s.onclosetag=Y,s.onerror=L,s.oncdata=q,s.ondoctype=H,s.onprocessinginstruction=B,s.write(c).close(),a[u.elementsKey]){var g=a[u.elementsKey];delete a[u.elementsKey],a[u.elementsKey]=g,delete a.text}return a},Ir}var Fr,mi;function io(){if(mi)return Fr;mi=1;var n=Hr(),o=Gi();function l(u){var m=n.copyOptions(u);return n.ensureSpacesExists(m),m}return Fr=function(u,m){var y,A,v,_;return y=l(m),A=o(u,y),_="compact"in y&&y.compact?"_parent":"parent","addParent"in y&&y.addParent?v=JSON.stringify(A,function(B,C){return B===_?"_":C},y.spaces):v=JSON.stringify(A,null,y.spaces),v.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")},Fr}var Or,Ei;function Ki(){if(Ei)return Or;Ei=1;var n=Hr(),o=kr().isArray,l,u;function m(s){var a=n.copyOptions(s);return n.ensureFlagExists("ignoreDeclaration",a),n.ensureFlagExists("ignoreInstruction",a),n.ensureFlagExists("ignoreAttributes",a),n.ensureFlagExists("ignoreText",a),n.ensureFlagExists("ignoreComment",a),n.ensureFlagExists("ignoreCdata",a),n.ensureFlagExists("ignoreDoctype",a),n.ensureFlagExists("compact",a),n.ensureFlagExists("indentText",a),n.ensureFlagExists("indentCdata",a),n.ensureFlagExists("indentAttributes",a),n.ensureFlagExists("indentInstruction",a),n.ensureFlagExists("fullTagEmptyElement",a),n.ensureFlagExists("noQuotesForNativeAttributes",a),n.ensureSpacesExists(a),typeof a.spaces=="number"&&(a.spaces=Array(a.spaces+1).join(" ")),n.ensureKeyExists("declaration",a),n.ensureKeyExists("instruction",a),n.ensureKeyExists("attributes",a),n.ensureKeyExists("text",a),n.ensureKeyExists("comment",a),n.ensureKeyExists("cdata",a),n.ensureKeyExists("doctype",a),n.ensureKeyExists("type",a),n.ensureKeyExists("name",a),n.ensureKeyExists("elements",a),n.checkFnExists("doctype",a),n.checkFnExists("instruction",a),n.checkFnExists("cdata",a),n.checkFnExists("comment",a),n.checkFnExists("text",a),n.checkFnExists("instructionName",a),n.checkFnExists("elementName",a),n.checkFnExists("attributeName",a),n.checkFnExists("attributeValue",a),n.checkFnExists("attributes",a),n.checkFnExists("fullTagEmptyElement",a),a}function y(s,a,g){return(!g&&s.spaces?`
|
|
19
|
+
`:"")+Array(a+1).join(s.spaces)}function A(s,a,g){if(a.ignoreAttributes)return"";"attributesFn"in a&&(s=a.attributesFn(s,u,l));var T,S,F,d,K=[];for(T in s)s.hasOwnProperty(T)&&s[T]!==null&&s[T]!==void 0&&(d=a.noQuotesForNativeAttributes&&typeof s[T]!="string"?"":'"',S=""+s[T],S=S.replace(/"/g,"""),F="attributeNameFn"in a?a.attributeNameFn(T,S,u,l):T,K.push(a.spaces&&a.indentAttributes?y(a,g+1,!1):" "),K.push(F+"="+d+("attributeValueFn"in a?a.attributeValueFn(S,T,u,l):S)+d));return s&&Object.keys(s).length&&a.spaces&&a.indentAttributes&&K.push(y(a,g,!1)),K.join("")}function v(s,a,g){return l=s,u="xml",a.ignoreDeclaration?"":"<?xml"+A(s[a.attributesKey],a,g)+"?>"}function _(s,a,g){if(a.ignoreInstruction)return"";var T;for(T in s)if(s.hasOwnProperty(T))break;var S="instructionNameFn"in a?a.instructionNameFn(T,s[T],u,l):T;if(typeof s[T]=="object")return l=s,u=S,"<?"+S+A(s[T][a.attributesKey],a,g)+"?>";var F=s[T]?s[T]:"";return"instructionFn"in a&&(F=a.instructionFn(F,T,u,l)),"<?"+S+(F?" "+F:"")+"?>"}function B(s,a){return a.ignoreComment?"":"<!--"+("commentFn"in a?a.commentFn(s,u,l):s)+"-->"}function C(s,a){return a.ignoreCdata?"":"<![CDATA["+("cdataFn"in a?a.cdataFn(s,u,l):s.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function N(s,a){return a.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in a?a.doctypeFn(s,u,l):s)+">"}function P(s,a){return a.ignoreText?"":(s=""+s,s=s.replace(/&/g,"&"),s=s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in a?a.textFn(s,u,l):s)}function Y(s,a){var g;if(s.elements&&s.elements.length)for(g=0;g<s.elements.length;++g)switch(s.elements[g][a.typeKey]){case"text":if(a.indentText)return!0;break;case"cdata":if(a.indentCdata)return!0;break;case"instruction":if(a.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function q(s,a,g){l=s,u=s.name;var T=[],S="elementNameFn"in a?a.elementNameFn(s.name,s):s.name;T.push("<"+S),s[a.attributesKey]&&T.push(A(s[a.attributesKey],a,g));var F=s[a.elementsKey]&&s[a.elementsKey].length||s[a.attributesKey]&&s[a.attributesKey]["xml:space"]==="preserve";return F||("fullTagEmptyElementFn"in a?F=a.fullTagEmptyElementFn(s.name,s):F=a.fullTagEmptyElement),F?(T.push(">"),s[a.elementsKey]&&s[a.elementsKey].length&&(T.push(H(s[a.elementsKey],a,g+1)),l=s,u=s.name),T.push(a.spaces&&Y(s,a)?`
|
|
20
|
+
`+Array(g+1).join(a.spaces):""),T.push("</"+S+">")):T.push("/>"),T.join("")}function H(s,a,g,T){return s.reduce(function(S,F){var d=y(a,g,T&&!S);switch(F.type){case"element":return S+d+q(F,a,g);case"comment":return S+d+B(F[a.commentKey],a);case"doctype":return S+d+N(F[a.doctypeKey],a);case"cdata":return S+(a.indentCdata?d:"")+C(F[a.cdataKey],a);case"text":return S+(a.indentText?d:"")+P(F[a.textKey],a);case"instruction":var K={};return K[F[a.nameKey]]=F[a.attributesKey]?F:F[a.instructionKey],S+(a.indentInstruction?d:"")+_(K,a,g)}},"")}function L(s,a,g){var T;for(T in s)if(s.hasOwnProperty(T))switch(T){case a.parentKey:case a.attributesKey:break;case a.textKey:if(a.indentText||g)return!0;break;case a.cdataKey:if(a.indentCdata||g)return!0;break;case a.instructionKey:if(a.indentInstruction||g)return!0;break;case a.doctypeKey:case a.commentKey:return!0;default:return!0}return!1}function c(s,a,g,T,S){l=s,u=a;var F="elementNameFn"in g?g.elementNameFn(a,s):a;if(typeof s>"u"||s===null||s==="")return"fullTagEmptyElementFn"in g&&g.fullTagEmptyElementFn(a,s)||g.fullTagEmptyElement?"<"+F+"></"+F+">":"<"+F+"/>";var d=[];if(a){if(d.push("<"+F),typeof s!="object")return d.push(">"+P(s,g)+"</"+F+">"),d.join("");s[g.attributesKey]&&d.push(A(s[g.attributesKey],g,T));var K=L(s,g,!0)||s[g.attributesKey]&&s[g.attributesKey]["xml:space"]==="preserve";if(K||("fullTagEmptyElementFn"in g?K=g.fullTagEmptyElementFn(a,s):K=g.fullTagEmptyElement),K)d.push(">");else return d.push("/>"),d.join("")}return d.push(E(s,g,T+1,!1)),l=s,u=a,a&&d.push((S?y(g,T,!1):"")+"</"+F+">"),d.join("")}function E(s,a,g,T){var S,F,d,K=[];for(F in s)if(s.hasOwnProperty(F))for(d=o(s[F])?s[F]:[s[F]],S=0;S<d.length;++S){switch(F){case a.declarationKey:K.push(v(d[S],a,g));break;case a.instructionKey:K.push((a.indentInstruction?y(a,g,T):"")+_(d[S],a,g));break;case a.attributesKey:case a.parentKey:break;case a.textKey:K.push((a.indentText?y(a,g,T):"")+P(d[S],a));break;case a.cdataKey:K.push((a.indentCdata?y(a,g,T):"")+C(d[S],a));break;case a.doctypeKey:K.push(y(a,g,T)+N(d[S],a));break;case a.commentKey:K.push(y(a,g,T)+B(d[S],a));break;default:K.push(y(a,g,T)+c(d[S],F,a,g,L(d[S],a)))}T=T&&!K.length}return K.join("")}return Or=function(s,a){a=m(a);var g=[];return l=s,u="_root_",a.compact?g.push(E(s,a,0,!0)):(s[a.declarationKey]&&g.push(v(s[a.declarationKey],a,0)),s[a.elementsKey]&&s[a.elementsKey].length&&g.push(H(s[a.elementsKey],a,0,!g.length))),g.join("")},Or}var Br,vi;function ao(){if(vi)return Br;vi=1;var n=Ki();return Br=function(o,l){o instanceof te.Buffer&&(o=o.toString());var u=null;if(typeof o=="string")try{u=JSON.parse(o)}catch{throw new Error("The JSON structure is invalid")}else u=o;return n(u,l)},Br}var Nr,wi;function oo(){if(wi)return Nr;wi=1;var n=Gi(),o=io(),l=Ki(),u=ao();return Nr={xml2js:n,xml2json:o,js2xml:l,json2xml:u},Nr}var uo=oo();const so=me.getDefaultExportFromCjs(uo);function fo(n){return n instanceof Uint8Array||ArrayBuffer.isView(n)&&n.constructor.name==="Uint8Array"}function qe(n,o=""){if(!Number.isSafeInteger(n)||n<0){const l=o&&`"${o}" `;throw new Error(`${l}expected integer >= 0, got ${n}`)}}function ke(n,o,l=""){const u=fo(n),m=n?.length,y=o!==void 0;if(!u||y&&m!==o){const A=l&&`"${l}" `,v=y?` of length ${o}`:"",_=u?`length=${m}`:`type=${typeof n}`;throw new Error(A+"expected Uint8Array"+v+", got "+_)}return n}function Wi(n){if(typeof n!="function"||typeof n.create!="function")throw new Error("Hash must wrapped by utils.createHasher");qe(n.outputLen),qe(n.blockLen)}function et(n,o=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(o&&n.finished)throw new Error("Hash#digest() has already been called")}function lo(n,o){ke(n,void 0,"digestInto() output");const l=o.outputLen;if(n.length<l)throw new Error('"digestInto() output" expected to be of length >='+l)}function He(...n){for(let o=0;o<n.length;o++)n[o].fill(0)}function Ze(n){return new DataView(n.buffer,n.byteOffset,n.byteLength)}function co(n){if(typeof n!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(n))}function _i(n,o=""){return typeof n=="string"?co(n):ke(n,void 0,o)}function ho(n,o){if(o!==void 0&&{}.toString.call(o)!=="[object Object]")throw new Error("options must be object or undefined");return Object.assign(n,o)}function po(n,o={}){const l=(m,y)=>n(y).update(m).digest(),u=n(void 0);return l.outputLen=u.outputLen,l.blockLen=u.blockLen,l.create=m=>n(m),Object.assign(l,o),Object.freeze(l)}const yo=n=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,n])});class Vi{oHash;iHash;blockLen;outputLen;finished=!1;destroyed=!1;constructor(o,l){if(Wi(o),ke(l,void 0,"key"),this.iHash=o.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 u=this.blockLen,m=new Uint8Array(u);m.set(l.length>u?o.create().update(l).digest():l);for(let y=0;y<m.length;y++)m[y]^=54;this.iHash.update(m),this.oHash=o.create();for(let y=0;y<m.length;y++)m[y]^=106;this.oHash.update(m),He(m)}update(o){return et(this),this.iHash.update(o),this}digestInto(o){et(this),ke(o,this.outputLen,"output"),this.finished=!0,this.iHash.digestInto(o),this.oHash.update(o),this.oHash.digestInto(o),this.destroy()}digest(){const o=new Uint8Array(this.oHash.outputLen);return this.digestInto(o),o}_cloneInto(o){o||=Object.create(Object.getPrototypeOf(this),{});const{oHash:l,iHash:u,finished:m,destroyed:y,blockLen:A,outputLen:v}=this;return o=o,o.finished=m,o.destroyed=y,o.blockLen=A,o.outputLen=v,o.oHash=l._cloneInto(o.oHash),o.iHash=u._cloneInto(o.iHash),o}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Yi=(n,o,l)=>new Vi(n,o).update(l).digest();Yi.create=(n,o)=>new Vi(n,o);function go(n,o,l,u){Wi(n);const m=ho({dkLen:32,asyncTick:10},u),{c:y,dkLen:A,asyncTick:v}=m;if(qe(y,"c"),qe(A,"dkLen"),qe(v,"asyncTick"),y<1)throw new Error("iterations (c) must be >= 1");const _=_i(o,"password"),B=_i(l,"salt"),C=new Uint8Array(A),N=Yi.create(n,_),P=N._cloneInto().update(B);return{c:y,dkLen:A,asyncTick:v,DK:C,PRF:N,PRFSalt:P}}function bo(n,o,l,u,m){return n.destroy(),o.destroy(),u&&u.destroy(),He(m),l}function mo(n,o,l,u){const{c:m,dkLen:y,DK:A,PRF:v,PRFSalt:_}=go(n,o,l,u);let B;const C=new Uint8Array(4),N=Ze(C),P=new Uint8Array(v.outputLen);for(let Y=1,q=0;q<y;Y++,q+=v.outputLen){const H=A.subarray(q,q+v.outputLen);N.setInt32(0,Y,!1),(B=_._cloneInto(B)).update(C).digestInto(P),H.set(P.subarray(0,H.length));for(let L=1;L<m;L++){v._cloneInto(B).update(P).digestInto(P);for(let c=0;c<H.length;c++)H[c]^=P[c]}}return bo(v,_,A,B,P)}class Eo{blockLen;outputLen;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(o,l,u,m){this.blockLen=o,this.outputLen=l,this.padOffset=u,this.isLE=m,this.buffer=new Uint8Array(o),this.view=Ze(this.buffer)}update(o){et(this),ke(o);const{view:l,buffer:u,blockLen:m}=this,y=o.length;for(let A=0;A<y;){const v=Math.min(m-this.pos,y-A);if(v===m){const _=Ze(o);for(;m<=y-A;A+=m)this.process(_,A);continue}u.set(o.subarray(A,A+v),this.pos),this.pos+=v,A+=v,this.pos===m&&(this.process(l,0),this.pos=0)}return this.length+=o.length,this.roundClean(),this}digestInto(o){et(this),lo(o,this),this.finished=!0;const{buffer:l,view:u,blockLen:m,isLE:y}=this;let{pos:A}=this;l[A++]=128,He(this.buffer.subarray(A)),this.padOffset>m-A&&(this.process(u,0),A=0);for(let N=A;N<m;N++)l[N]=0;u.setBigUint64(m-8,BigInt(this.length*8),y),this.process(u,0);const v=Ze(o),_=this.outputLen;if(_%4)throw new Error("_sha2: outputLen must be aligned to 32bit");const B=_/4,C=this.get();if(B>C.length)throw new Error("_sha2: outputLen bigger than state");for(let N=0;N<B;N++)v.setUint32(4*N,C[N],y)}digest(){const{buffer:o,outputLen:l}=this;this.digestInto(o);const u=o.slice(0,l);return this.destroy(),u}_cloneInto(o){o||=new this.constructor,o.set(...this.get());const{blockLen:l,buffer:u,length:m,finished:y,destroyed:A,pos:v}=this;return o.destroyed=A,o.finished=y,o.length=m,o.pos=v,m%l&&o.buffer.set(u),o}clone(){return this._cloneInto()}}const Ee=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),ze=BigInt(2**32-1),Ai=BigInt(32);function vo(n,o=!1){return o?{h:Number(n&ze),l:Number(n>>Ai&ze)}:{h:Number(n>>Ai&ze)|0,l:Number(n&ze)|0}}function wo(n,o=!1){const l=n.length;let u=new Uint32Array(l),m=new Uint32Array(l);for(let y=0;y<l;y++){const{h:A,l:v}=vo(n[y],o);[u[y],m[y]]=[A,v]}return[u,m]}const Ti=(n,o,l)=>n>>>l,Si=(n,o,l)=>n<<32-l|o>>>l,Ce=(n,o,l)=>n>>>l|o<<32-l,De=(n,o,l)=>n<<32-l|o>>>l,Je=(n,o,l)=>n<<64-l|o>>>l-32,Qe=(n,o,l)=>n>>>l-32|o<<64-l;function Se(n,o,l,u){const m=(o>>>0)+(u>>>0);return{h:n+l+(m/2**32|0)|0,l:m|0}}const _o=(n,o,l)=>(n>>>0)+(o>>>0)+(l>>>0),Ao=(n,o,l,u)=>o+l+u+(n/2**32|0)|0,To=(n,o,l,u)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0),So=(n,o,l,u,m)=>o+l+u+m+(n/2**32|0)|0,Ro=(n,o,l,u,m)=>(n>>>0)+(o>>>0)+(l>>>0)+(u>>>0)+(m>>>0),xo=(n,o,l,u,m,y)=>o+l+u+m+y+(n/2**32|0)|0,$i=wo(["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(n=>BigInt(n))),Io=$i[0],Fo=$i[1],Ie=new Uint32Array(80),Fe=new Uint32Array(80);class Oo extends Eo{constructor(o){super(128,o,16,!1)}get(){const{Ah:o,Al:l,Bh:u,Bl:m,Ch:y,Cl:A,Dh:v,Dl:_,Eh:B,El:C,Fh:N,Fl:P,Gh:Y,Gl:q,Hh:H,Hl:L}=this;return[o,l,u,m,y,A,v,_,B,C,N,P,Y,q,H,L]}set(o,l,u,m,y,A,v,_,B,C,N,P,Y,q,H,L){this.Ah=o|0,this.Al=l|0,this.Bh=u|0,this.Bl=m|0,this.Ch=y|0,this.Cl=A|0,this.Dh=v|0,this.Dl=_|0,this.Eh=B|0,this.El=C|0,this.Fh=N|0,this.Fl=P|0,this.Gh=Y|0,this.Gl=q|0,this.Hh=H|0,this.Hl=L|0}process(o,l){for(let s=0;s<16;s++,l+=4)Ie[s]=o.getUint32(l),Fe[s]=o.getUint32(l+=4);for(let s=16;s<80;s++){const a=Ie[s-15]|0,g=Fe[s-15]|0,T=Ce(a,g,1)^Ce(a,g,8)^Ti(a,g,7),S=De(a,g,1)^De(a,g,8)^Si(a,g,7),F=Ie[s-2]|0,d=Fe[s-2]|0,K=Ce(F,d,19)^Je(F,d,61)^Ti(F,d,6),X=De(F,d,19)^Qe(F,d,61)^Si(F,d,6),x=To(S,X,Fe[s-7],Fe[s-16]),ee=So(x,T,K,Ie[s-7],Ie[s-16]);Ie[s]=ee|0,Fe[s]=x|0}let{Ah:u,Al:m,Bh:y,Bl:A,Ch:v,Cl:_,Dh:B,Dl:C,Eh:N,El:P,Fh:Y,Fl:q,Gh:H,Gl:L,Hh:c,Hl:E}=this;for(let s=0;s<80;s++){const a=Ce(N,P,14)^Ce(N,P,18)^Je(N,P,41),g=De(N,P,14)^De(N,P,18)^Qe(N,P,41),T=N&Y^~N&H,S=P&q^~P&L,F=Ro(E,g,S,Fo[s],Fe[s]),d=xo(F,c,a,T,Io[s],Ie[s]),K=F|0,X=Ce(u,m,28)^Je(u,m,34)^Je(u,m,39),x=De(u,m,28)^Qe(u,m,34)^Qe(u,m,39),ee=u&y^u&v^y&v,re=m&A^m&_^A&_;c=H|0,E=L|0,H=Y|0,L=q|0,Y=N|0,q=P|0,{h:N,l:P}=Se(B|0,C|0,d|0,K|0),B=v|0,C=_|0,v=y|0,_=A|0,y=u|0,A=m|0;const ie=_o(K,x,re);u=Ao(ie,d,X,ee),m=ie|0}({h:u,l:m}=Se(this.Ah|0,this.Al|0,u|0,m|0)),{h:y,l:A}=Se(this.Bh|0,this.Bl|0,y|0,A|0),{h:v,l:_}=Se(this.Ch|0,this.Cl|0,v|0,_|0),{h:B,l:C}=Se(this.Dh|0,this.Dl|0,B|0,C|0),{h:N,l:P}=Se(this.Eh|0,this.El|0,N|0,P|0),{h:Y,l:q}=Se(this.Fh|0,this.Fl|0,Y|0,q|0),{h:H,l:L}=Se(this.Gh|0,this.Gl|0,H|0,L|0),{h:c,l:E}=Se(this.Hh|0,this.Hl|0,c|0,E|0),this.set(u,m,y,A,v,_,B,C,N,P,Y,q,H,L,c,E)}roundClean(){He(Ie,Fe)}destroy(){He(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Bo extends Oo{Ah=Ee[0]|0;Al=Ee[1]|0;Bh=Ee[2]|0;Bl=Ee[3]|0;Ch=Ee[4]|0;Cl=Ee[5]|0;Dh=Ee[6]|0;Dl=Ee[7]|0;Eh=Ee[8]|0;El=Ee[9]|0;Fh=Ee[10]|0;Fl=Ee[11]|0;Gh=Ee[12]|0;Gl=Ee[13]|0;Hh=Ee[14]|0;Hl=Ee[15]|0;constructor(){super(64)}}const No=po(()=>new Bo,yo(3)),Po=(n,o,l,u)=>te.Buffer.from(mo(No,n,o,{c:l,dkLen:u}));class Co{axiosClient;baseURI;signingKey;ALGORITHM="sha512";TTL=1200;HASH_LENGTH=32;ITERATION_COUNT=1e4;constructor({axiosClient:o,baseURI:l}){this.axiosClient=o,this.baseURI=l}async signUrl(o,l){const u=new URL(o);u.searchParams.set("OC-Credential",l),u.searchParams.set("OC-Date",new Date().toISOString()),u.searchParams.set("OC-Expires",this.TTL.toString()),u.searchParams.set("OC-Verb","GET");const m=await this.createHashedKey(u.toString());return u.searchParams.set("OC-Algo",`PBKDF2/${this.ITERATION_COUNT}-SHA512`),u.searchParams.set("OC-Signature",m),u.toString()}async getSignKey(){if(this.signingKey)return this.signingKey;const o=await this.axiosClient.get(me.urlJoin(this.baseURI,"ocs/v1.php/cloud/user/signing-key"),{headers:{"Content-Type":"application/x-www-form-urlencoded"}}),l=so.xml2js(o.data,{compact:!0});return this.signingKey=l.ocs.data["signing-key"]._text,this.signingKey}async createHashedKey(o){const l=await this.getSignKey();return Po(o,l,this.ITERATION_COUNT,this.HASH_LENGTH,this.ALGORITHM).toString("hex")}}const Do=(n,o)=>{const l=new URL(n);l.pathname=[...l.pathname.split("/"),"ocs","v1.php"].filter(Boolean).join("/");const u=l.href,m=Ri(u,o),y=new Co({baseURI:n,axiosClient:o});return{getCapabilities:()=>m.getCapabilities(),signUrl:(A,v)=>y.signUrl(A,v)}};exports.GetCapabilitiesFactory=Ri;exports.ocs=Do;
|