rmapi-js 8.4.0 → 8.5.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/README.md +13 -4
- package/dist/index.d.ts +30 -6
- package/dist/index.js +43 -16
- package/dist/raw.d.ts +7 -9
- package/dist/raw.js +9 -9
- package/dist/rmapi-js.esm.min.js +13 -18
- package/package.json +9 -17
package/dist/rmapi-js.esm.min.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
var l9=Object.create;var{getPrototypeOf:o9,defineProperty:L1,getOwnPropertyNames:g$,getOwnPropertyDescriptor:i9}=Object,E$=Object.prototype.hasOwnProperty;var y$=($,V,Q)=>{Q=$!=null?l9(o9($)):{};let q=V||!$||!$.__esModule?L1(Q,"default",{value:$,enumerable:!0}):Q;for(let K of g$($))if(!E$.call(q,K))L1(q,K,{get:()=>$[K],enumerable:!0});return q},k$=new WeakMap,b$=($)=>{var V=k$.get($),Q;if(V)return V;if(V=L1({},"__esModule",{value:!0}),$&&typeof $==="object"||typeof $==="function")g$($).map((q)=>!E$.call(V,q)&&L1(V,q,{get:()=>$[q],enumerable:!(Q=i9($,q))||Q.enumerable}));return k$.set($,V),V},$0=($,V)=>()=>(V||$((V={exports:{}}).exports,V),V.exports);var n9=($,V)=>{for(var Q in V)L1($,Q,{get:V[Q],enumerable:!0,configurable:!0,set:(q)=>V[Q]=()=>q})};var a9=($,V)=>()=>($&&(V=$($=0)),V);var e2={};n9(e2,{default:()=>n$});var r9,r1,s9,t9,e9,$7,Q7=($,V)=>()=>($&&(V=$($=0)),V),P0=($,V)=>()=>(V||$((V={exports:{}}).exports,V),V.exports),h$=($,V)=>{for(var Q in V)r1($,Q,{get:V[Q],enumerable:!0})},n1=($,V,Q,q)=>{if(V&&typeof V=="object"||typeof V=="function")for(let K of t9(V))!$7.call($,K)&&K!==Q&&r1($,K,{get:()=>V[K],enumerable:!(q=s9(V,K))||q.enumerable});return $},_$=($,V,Q)=>(n1($,V,"default"),Q&&n1(Q,V,"default")),a1=($,V,Q)=>(Q=$!=null?r9(e9($)):{},n1(V||!$||!$.__esModule?r1(Q,"default",{value:$,enumerable:!0}):Q,$)),k6=($)=>n1(r1({},"__esModule",{value:!0}),$),V7,q7,L6,x0,W6,i2,f0,s1,f$,P6,m$,g6,E6,y6,X7,a6,n2,a2,r2,Y7,s2,K7,J7,p$,t1,c$,G7,U6,u$,d$,t2,W7,l$,U7,o$,i$,n$;var $8=a9(()=>{r9=Object.create,r1=Object.defineProperty,s9=Object.getOwnPropertyDescriptor,t9=Object.getOwnPropertyNames,e9=Object.getPrototypeOf,$7=Object.prototype.hasOwnProperty,V7=P0(($)=>{$.byteLength=j,$.toByteArray=z,$.fromByteArray=R;var V=[],Q=[],q=typeof Uint8Array<"u"?Uint8Array:Array,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(G=0,U=K.length;G<U;++G)V[G]=K[G],Q[K.charCodeAt(G)]=G;var G,U;Q[45]=62,Q[95]=63;function J(x){var S=x.length;if(S%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=x.indexOf("=");g===-1&&(g=S);var y=g===S?0:4-g%4;return[g,y]}function j(x){var S=J(x),g=S[0],y=S[1];return(g+y)*3/4-y}function P(x,S,g){return(S+g)*3/4-g}function z(x){var S,g=J(x),y=g[0],Z=g[1],O=new q(P(x,y,Z)),M=0,A=Z>0?y-4:y,C;for(C=0;C<A;C+=4)S=Q[x.charCodeAt(C)]<<18|Q[x.charCodeAt(C+1)]<<12|Q[x.charCodeAt(C+2)]<<6|Q[x.charCodeAt(C+3)],O[M++]=S>>16&255,O[M++]=S>>8&255,O[M++]=S&255;return Z===2&&(S=Q[x.charCodeAt(C)]<<2|Q[x.charCodeAt(C+1)]>>4,O[M++]=S&255),Z===1&&(S=Q[x.charCodeAt(C)]<<10|Q[x.charCodeAt(C+1)]<<4|Q[x.charCodeAt(C+2)]>>2,O[M++]=S>>8&255,O[M++]=S&255),O}function B(x){return V[x>>18&63]+V[x>>12&63]+V[x>>6&63]+V[x&63]}function I(x,S,g){for(var y,Z=[],O=S;O<g;O+=3)y=(x[O]<<16&16711680)+(x[O+1]<<8&65280)+(x[O+2]&255),Z.push(B(y));return Z.join("")}function R(x){for(var S,g=x.length,y=g%3,Z=[],O=16383,M=0,A=g-y;M<A;M+=O)Z.push(I(x,M,M+O>A?A:M+O));return y===1?(S=x[g-1],Z.push(V[S>>2]+V[S<<4&63]+"==")):y===2&&(S=(x[g-2]<<8)+x[g-1],Z.push(V[S>>10]+V[S>>4&63]+V[S<<2&63]+"=")),Z.join("")}}),q7=P0(($)=>{$.read=function(V,Q,q,K,G){var U,J,j=G*8-K-1,P=(1<<j)-1,z=P>>1,B=-7,I=q?G-1:0,R=q?-1:1,x=V[Q+I];for(I+=R,U=x&(1<<-B)-1,x>>=-B,B+=j;B>0;U=U*256+V[Q+I],I+=R,B-=8);for(J=U&(1<<-B)-1,U>>=-B,B+=K;B>0;J=J*256+V[Q+I],I+=R,B-=8);if(U===0)U=1-z;else{if(U===P)return J?NaN:(x?-1:1)*(1/0);J=J+Math.pow(2,K),U=U-z}return(x?-1:1)*J*Math.pow(2,U-K)},$.write=function(V,Q,q,K,G,U){var J,j,P,z=U*8-G-1,B=(1<<z)-1,I=B>>1,R=G===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=K?0:U-1,S=K?1:-1,g=Q<0||Q===0&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(j=isNaN(Q)?1:0,J=B):(J=Math.floor(Math.log(Q)/Math.LN2),Q*(P=Math.pow(2,-J))<1&&(J--,P*=2),J+I>=1?Q+=R/P:Q+=R*Math.pow(2,1-I),Q*P>=2&&(J++,P/=2),J+I>=B?(j=0,J=B):J+I>=1?(j=(Q*P-1)*Math.pow(2,G),J=J+I):(j=Q*Math.pow(2,I-1)*Math.pow(2,G),J=0));G>=8;V[q+x]=j&255,x+=S,j/=256,G-=8);for(J=J<<G|j,z+=G;z>0;V[q+x]=J&255,x+=S,J/=256,z-=8);V[q+x-S]|=g*128}}),L6=P0(($)=>{var V=V7(),Q=q7(),q=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=J,$.SlowBuffer=Z,$.INSPECT_MAX_BYTES=50;var K=2147483647;$.kMaxLength=K,J.TYPED_ARRAY_SUPPORT=G(),!J.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 G(){try{let X=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(X,Y),X.foo()===42}catch{return!1}}Object.defineProperty(J.prototype,"parent",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.buffer}}),Object.defineProperty(J.prototype,"offset",{enumerable:!0,get:function(){if(J.isBuffer(this))return this.byteOffset}});function U(X){if(X>K)throw new RangeError('The value "'+X+'" is invalid for option "size"');let Y=new Uint8Array(X);return Object.setPrototypeOf(Y,J.prototype),Y}function J(X,Y,W){if(typeof X=="number"){if(typeof Y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(X)}return j(X,Y,W)}J.poolSize=8192;function j(X,Y,W){if(typeof X=="string")return I(X,Y);if(ArrayBuffer.isView(X))return x(X);if(X==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);if(z0(X,ArrayBuffer)||X&&z0(X.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(z0(X,SharedArrayBuffer)||X&&z0(X.buffer,SharedArrayBuffer)))return S(X,Y,W);if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let H=X.valueOf&&X.valueOf();if(H!=null&&H!==X)return J.from(H,Y,W);let w=g(X);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof X[Symbol.toPrimitive]=="function")return J.from(X[Symbol.toPrimitive]("string"),Y,W);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X)}J.from=function(X,Y,W){return j(X,Y,W)},Object.setPrototypeOf(J.prototype,Uint8Array.prototype),Object.setPrototypeOf(J,Uint8Array);function P(X){if(typeof X!="number")throw new TypeError('"size" argument must be of type number');if(X<0)throw new RangeError('The value "'+X+'" is invalid for option "size"')}function z(X,Y,W){return P(X),X<=0?U(X):Y!==void 0?typeof W=="string"?U(X).fill(Y,W):U(X).fill(Y):U(X)}J.alloc=function(X,Y,W){return z(X,Y,W)};function B(X){return P(X),U(X<0?0:y(X)|0)}J.allocUnsafe=function(X){return B(X)},J.allocUnsafeSlow=function(X){return B(X)};function I(X,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!J.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);let W=O(X,Y)|0,H=U(W),w=H.write(X,Y);return w!==W&&(H=H.slice(0,w)),H}function R(X){let Y=X.length<0?0:y(X.length)|0,W=U(Y);for(let H=0;H<Y;H+=1)W[H]=X[H]&255;return W}function x(X){if(z0(X,Uint8Array)){let Y=new Uint8Array(X);return S(Y.buffer,Y.byteOffset,Y.byteLength)}return R(X)}function S(X,Y,W){if(Y<0||X.byteLength<Y)throw new RangeError('"offset" is outside of buffer bounds');if(X.byteLength<Y+(W||0))throw new RangeError('"length" is outside of buffer bounds');let H;return Y===void 0&&W===void 0?H=new Uint8Array(X):W===void 0?H=new Uint8Array(X,Y):H=new Uint8Array(X,Y,W),Object.setPrototypeOf(H,J.prototype),H}function g(X){if(J.isBuffer(X)){let Y=y(X.length)|0,W=U(Y);return W.length===0||X.copy(W,0,0,Y),W}if(X.length!==void 0)return typeof X.length!="number"||b0(X.length)?U(0):R(X);if(X.type==="Buffer"&&Array.isArray(X.data))return R(X.data)}function y(X){if(X>=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return X|0}function Z(X){return+X!=X&&(X=0),J.alloc(+X)}J.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==J.prototype},J.compare=function(X,Y){if(z0(X,Uint8Array)&&(X=J.from(X,X.offset,X.byteLength)),z0(Y,Uint8Array)&&(Y=J.from(Y,Y.offset,Y.byteLength)),!J.isBuffer(X)||!J.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===Y)return 0;let W=X.length,H=Y.length;for(let w=0,h=Math.min(W,H);w<h;++w)if(X[w]!==Y[w]){W=X[w],H=Y[w];break}return W<H?-1:H<W?1:0},J.isEncoding=function(X){switch(String(X).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}},J.concat=function(X,Y){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return J.alloc(0);let W;if(Y===void 0)for(Y=0,W=0;W<X.length;++W)Y+=X[W].length;let H=J.allocUnsafe(Y),w=0;for(W=0;W<X.length;++W){let h=X[W];if(z0(h,Uint8Array))w+h.length>H.length?(J.isBuffer(h)||(h=J.from(h)),h.copy(H,w)):Uint8Array.prototype.set.call(H,h,w);else if(J.isBuffer(h))h.copy(H,w);else throw new TypeError('"list" argument must be an Array of Buffers');w+=h.length}return H};function O(X,Y){if(J.isBuffer(X))return X.length;if(ArrayBuffer.isView(X)||z0(X,ArrayBuffer))return X.byteLength;if(typeof X!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof X);let W=X.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&W===0)return 0;let w=!1;for(;;)switch(Y){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":return _(X).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W*2;case"hex":return W>>>1;case"base64":return U0(X).length;default:if(w)return H?-1:_(X).length;Y=(""+Y).toLowerCase(),w=!0}}J.byteLength=O;function M(X,Y,W){let H=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((W===void 0||W>this.length)&&(W=this.length),W<=0)||(W>>>=0,Y>>>=0,W<=Y))return"";for(X||(X="utf8");;)switch(X){case"hex":return e(this,Y,W);case"utf8":case"utf-8":return n(this,Y,W);case"ascii":return u(this,Y,W);case"latin1":case"binary":return i(this,Y,W);case"base64":return m(this,Y,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,Y,W);default:if(H)throw new TypeError("Unknown encoding: "+X);X=(X+"").toLowerCase(),H=!0}}J.prototype._isBuffer=!0;function A(X,Y,W){let H=X[Y];X[Y]=X[W],X[W]=H}J.prototype.swap16=function(){let X=this.length;if(X%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<X;Y+=2)A(this,Y,Y+1);return this},J.prototype.swap32=function(){let X=this.length;if(X%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<X;Y+=4)A(this,Y,Y+3),A(this,Y+1,Y+2);return this},J.prototype.swap64=function(){let X=this.length;if(X%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<X;Y+=8)A(this,Y,Y+7),A(this,Y+1,Y+6),A(this,Y+2,Y+5),A(this,Y+3,Y+4);return this},J.prototype.toString=function(){let X=this.length;return X===0?"":arguments.length===0?n(this,0,X):M.apply(this,arguments)},J.prototype.toLocaleString=J.prototype.toString,J.prototype.equals=function(X){if(!J.isBuffer(X))throw new TypeError("Argument must be a Buffer");return this===X?!0:J.compare(this,X)===0},J.prototype.inspect=function(){let X="",Y=$.INSPECT_MAX_BYTES;return X=this.toString("hex",0,Y).replace(/(.{2})/g,"$1 ").trim(),this.length>Y&&(X+=" ... "),"<Buffer "+X+">"},q&&(J.prototype[q]=J.prototype.inspect),J.prototype.compare=function(X,Y,W,H,w){if(z0(X,Uint8Array)&&(X=J.from(X,X.offset,X.byteLength)),!J.isBuffer(X))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof X);if(Y===void 0&&(Y=0),W===void 0&&(W=X?X.length:0),H===void 0&&(H=0),w===void 0&&(w=this.length),Y<0||W>X.length||H<0||w>this.length)throw new RangeError("out of range index");if(H>=w&&Y>=W)return 0;if(H>=w)return-1;if(Y>=W)return 1;if(Y>>>=0,W>>>=0,H>>>=0,w>>>=0,this===X)return 0;let h=w-H,o=W-Y,W0=Math.min(h,o),R0=this.slice(H,w),L0=X.slice(Y,W);for(let Z0=0;Z0<W0;++Z0)if(R0[Z0]!==L0[Z0]){h=R0[Z0],o=L0[Z0];break}return h<o?-1:o<h?1:0};function C(X,Y,W,H,w){if(X.length===0)return-1;if(typeof W=="string"?(H=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,b0(W)&&(W=w?0:X.length-1),W<0&&(W=X.length+W),W>=X.length){if(w)return-1;W=X.length-1}else if(W<0)if(w)W=0;else return-1;if(typeof Y=="string"&&(Y=J.from(Y,H)),J.isBuffer(Y))return Y.length===0?-1:L(X,Y,W,H,w);if(typeof Y=="number")return Y=Y&255,typeof Uint8Array.prototype.indexOf=="function"?w?Uint8Array.prototype.indexOf.call(X,Y,W):Uint8Array.prototype.lastIndexOf.call(X,Y,W):L(X,[Y],W,H,w);throw new TypeError("val must be string, number or Buffer")}function L(X,Y,W,H,w){let h=1,o=X.length,W0=Y.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(X.length<2||Y.length<2)return-1;h=2,o/=2,W0/=2,W/=2}function R0(Z0,w0){return h===1?Z0[w0]:Z0.readUInt16BE(w0*h)}let L0;if(w){let Z0=-1;for(L0=W;L0<o;L0++)if(R0(X,L0)===R0(Y,Z0===-1?0:L0-Z0)){if(Z0===-1&&(Z0=L0),L0-Z0+1===W0)return Z0*h}else Z0!==-1&&(L0-=L0-Z0),Z0=-1}else for(W+W0>o&&(W=o-W0),L0=W;L0>=0;L0--){let Z0=!0;for(let w0=0;w0<W0;w0++)if(R0(X,L0+w0)!==R0(Y,w0)){Z0=!1;break}if(Z0)return L0}return-1}J.prototype.includes=function(X,Y,W){return this.indexOf(X,Y,W)!==-1},J.prototype.indexOf=function(X,Y,W){return C(this,X,Y,W,!0)},J.prototype.lastIndexOf=function(X,Y,W){return C(this,X,Y,W,!1)};function T(X,Y,W,H){W=Number(W)||0;let w=X.length-W;H?(H=Number(H),H>w&&(H=w)):H=w;let h=Y.length;H>h/2&&(H=h/2);let o;for(o=0;o<H;++o){let W0=parseInt(Y.substr(o*2,2),16);if(b0(W0))return o;X[W+o]=W0}return o}function E(X,Y,W,H){return X0(_(Y,X.length-W),X,W,H)}function f(X,Y,W,H){return X0(a(Y),X,W,H)}function b(X,Y,W,H){return X0(U0(Y),X,W,H)}function F(X,Y,W,H){return X0(s(Y,X.length-W),X,W,H)}J.prototype.write=function(X,Y,W,H){if(Y===void 0)H="utf8",W=this.length,Y=0;else if(W===void 0&&typeof Y=="string")H=Y,W=this.length,Y=0;else if(isFinite(Y))Y=Y>>>0,isFinite(W)?(W=W>>>0,H===void 0&&(H="utf8")):(H=W,W=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let w=this.length-Y;if((W===void 0||W>w)&&(W=w),X.length>0&&(W<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");H||(H="utf8");let h=!1;for(;;)switch(H){case"hex":return T(this,X,Y,W);case"utf8":case"utf-8":return E(this,X,Y,W);case"ascii":case"latin1":case"binary":return f(this,X,Y,W);case"base64":return b(this,X,Y,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,X,Y,W);default:if(h)throw new TypeError("Unknown encoding: "+H);H=(""+H).toLowerCase(),h=!0}},J.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function m(X,Y,W){return Y===0&&W===X.length?V.fromByteArray(X):V.fromByteArray(X.slice(Y,W))}function n(X,Y,W){W=Math.min(X.length,W);let H=[],w=Y;for(;w<W;){let h=X[w],o=null,W0=h>239?4:h>223?3:h>191?2:1;if(w+W0<=W){let R0,L0,Z0,w0;switch(W0){case 1:h<128&&(o=h);break;case 2:R0=X[w+1],(R0&192)===128&&(w0=(h&31)<<6|R0&63,w0>127&&(o=w0));break;case 3:R0=X[w+1],L0=X[w+2],(R0&192)===128&&(L0&192)===128&&(w0=(h&15)<<12|(R0&63)<<6|L0&63,w0>2047&&(w0<55296||w0>57343)&&(o=w0));break;case 4:R0=X[w+1],L0=X[w+2],Z0=X[w+3],(R0&192)===128&&(L0&192)===128&&(Z0&192)===128&&(w0=(h&15)<<18|(R0&63)<<12|(L0&63)<<6|Z0&63,w0>65535&&w0<1114112&&(o=w0))}}o===null?(o=65533,W0=1):o>65535&&(o-=65536,H.push(o>>>10&1023|55296),o=56320|o&1023),H.push(o),w+=W0}return c(H)}var v=4096;function c(X){let Y=X.length;if(Y<=v)return String.fromCharCode.apply(String,X);let W="",H=0;for(;H<Y;)W+=String.fromCharCode.apply(String,X.slice(H,H+=v));return W}function u(X,Y,W){let H="";W=Math.min(X.length,W);for(let w=Y;w<W;++w)H+=String.fromCharCode(X[w]&127);return H}function i(X,Y,W){let H="";W=Math.min(X.length,W);for(let w=Y;w<W;++w)H+=String.fromCharCode(X[w]);return H}function e(X,Y,W){let H=X.length;(!Y||Y<0)&&(Y=0),(!W||W<0||W>H)&&(W=H);let w="";for(let h=Y;h<W;++h)w+=J6[X[h]];return w}function d(X,Y,W){let H=X.slice(Y,W),w="";for(let h=0;h<H.length-1;h+=2)w+=String.fromCharCode(H[h]+H[h+1]*256);return w}J.prototype.slice=function(X,Y){let W=this.length;X=~~X,Y=Y===void 0?W:~~Y,X<0?(X+=W,X<0&&(X=0)):X>W&&(X=W),Y<0?(Y+=W,Y<0&&(Y=0)):Y>W&&(Y=W),Y<X&&(Y=X);let H=this.subarray(X,Y);return Object.setPrototypeOf(H,J.prototype),H};function l(X,Y,W){if(X%1!==0||X<0)throw new RangeError("offset is not uint");if(X+Y>W)throw new RangeError("Trying to access beyond buffer length")}J.prototype.readUintLE=J.prototype.readUIntLE=function(X,Y,W){X=X>>>0,Y=Y>>>0,W||l(X,Y,this.length);let H=this[X],w=1,h=0;for(;++h<Y&&(w*=256);)H+=this[X+h]*w;return H},J.prototype.readUintBE=J.prototype.readUIntBE=function(X,Y,W){X=X>>>0,Y=Y>>>0,W||l(X,Y,this.length);let H=this[X+--Y],w=1;for(;Y>0&&(w*=256);)H+=this[X+--Y]*w;return H},J.prototype.readUint8=J.prototype.readUInt8=function(X,Y){return X=X>>>0,Y||l(X,1,this.length),this[X]},J.prototype.readUint16LE=J.prototype.readUInt16LE=function(X,Y){return X=X>>>0,Y||l(X,2,this.length),this[X]|this[X+1]<<8},J.prototype.readUint16BE=J.prototype.readUInt16BE=function(X,Y){return X=X>>>0,Y||l(X,2,this.length),this[X]<<8|this[X+1]},J.prototype.readUint32LE=J.prototype.readUInt32LE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),(this[X]|this[X+1]<<8|this[X+2]<<16)+this[X+3]*16777216},J.prototype.readUint32BE=J.prototype.readUInt32BE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]*16777216+(this[X+1]<<16|this[X+2]<<8|this[X+3])},J.prototype.readBigUInt64LE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],W=this[X+7];(Y===void 0||W===void 0)&&p(X,this.length-8);let H=Y+this[++X]*256+this[++X]*65536+this[++X]*16777216,w=this[++X]+this[++X]*256+this[++X]*65536+W*16777216;return BigInt(H)+(BigInt(w)<<BigInt(32))}),J.prototype.readBigUInt64BE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],W=this[X+7];(Y===void 0||W===void 0)&&p(X,this.length-8);let H=Y*16777216+this[++X]*65536+this[++X]*256+this[++X],w=this[++X]*16777216+this[++X]*65536+this[++X]*256+W;return(BigInt(H)<<BigInt(32))+BigInt(w)}),J.prototype.readIntLE=function(X,Y,W){X=X>>>0,Y=Y>>>0,W||l(X,Y,this.length);let H=this[X],w=1,h=0;for(;++h<Y&&(w*=256);)H+=this[X+h]*w;return w*=128,H>=w&&(H-=Math.pow(2,8*Y)),H},J.prototype.readIntBE=function(X,Y,W){X=X>>>0,Y=Y>>>0,W||l(X,Y,this.length);let H=Y,w=1,h=this[X+--H];for(;H>0&&(w*=256);)h+=this[X+--H]*w;return w*=128,h>=w&&(h-=Math.pow(2,8*Y)),h},J.prototype.readInt8=function(X,Y){return X=X>>>0,Y||l(X,1,this.length),this[X]&128?(255-this[X]+1)*-1:this[X]},J.prototype.readInt16LE=function(X,Y){X=X>>>0,Y||l(X,2,this.length);let W=this[X]|this[X+1]<<8;return W&32768?W|4294901760:W},J.prototype.readInt16BE=function(X,Y){X=X>>>0,Y||l(X,2,this.length);let W=this[X+1]|this[X]<<8;return W&32768?W|4294901760:W},J.prototype.readInt32LE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]|this[X+1]<<8|this[X+2]<<16|this[X+3]<<24},J.prototype.readInt32BE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),this[X]<<24|this[X+1]<<16|this[X+2]<<8|this[X+3]},J.prototype.readBigInt64LE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],W=this[X+7];(Y===void 0||W===void 0)&&p(X,this.length-8);let H=this[X+4]+this[X+5]*256+this[X+6]*65536+(W<<24);return(BigInt(H)<<BigInt(32))+BigInt(Y+this[++X]*256+this[++X]*65536+this[++X]*16777216)}),J.prototype.readBigInt64BE=C0(function(X){X=X>>>0,B0(X,"offset");let Y=this[X],W=this[X+7];(Y===void 0||W===void 0)&&p(X,this.length-8);let H=(Y<<24)+this[++X]*65536+this[++X]*256+this[++X];return(BigInt(H)<<BigInt(32))+BigInt(this[++X]*16777216+this[++X]*65536+this[++X]*256+W)}),J.prototype.readFloatLE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),Q.read(this,X,!0,23,4)},J.prototype.readFloatBE=function(X,Y){return X=X>>>0,Y||l(X,4,this.length),Q.read(this,X,!1,23,4)},J.prototype.readDoubleLE=function(X,Y){return X=X>>>0,Y||l(X,8,this.length),Q.read(this,X,!0,52,8)},J.prototype.readDoubleBE=function(X,Y){return X=X>>>0,Y||l(X,8,this.length),Q.read(this,X,!1,52,8)};function k(X,Y,W,H,w,h){if(!J.isBuffer(X))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>w||Y<h)throw new RangeError('"value" argument is out of bounds');if(W+H>X.length)throw new RangeError("Index out of range")}J.prototype.writeUintLE=J.prototype.writeUIntLE=function(X,Y,W,H){if(X=+X,Y=Y>>>0,W=W>>>0,!H){let o=Math.pow(2,8*W)-1;k(this,X,Y,W,o,0)}let w=1,h=0;for(this[Y]=X&255;++h<W&&(w*=256);)this[Y+h]=X/w&255;return Y+W},J.prototype.writeUintBE=J.prototype.writeUIntBE=function(X,Y,W,H){if(X=+X,Y=Y>>>0,W=W>>>0,!H){let o=Math.pow(2,8*W)-1;k(this,X,Y,W,o,0)}let w=W-1,h=1;for(this[Y+w]=X&255;--w>=0&&(h*=256);)this[Y+w]=X/h&255;return Y+W},J.prototype.writeUint8=J.prototype.writeUInt8=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,1,255,0),this[Y]=X&255,Y+1},J.prototype.writeUint16LE=J.prototype.writeUInt16LE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,2,65535,0),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},J.prototype.writeUint16BE=J.prototype.writeUInt16BE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,2,65535,0),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},J.prototype.writeUint32LE=J.prototype.writeUInt32LE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,4,4294967295,0),this[Y+3]=X>>>24,this[Y+2]=X>>>16,this[Y+1]=X>>>8,this[Y]=X&255,Y+4},J.prototype.writeUint32BE=J.prototype.writeUInt32BE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,4,4294967295,0),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4};function r(X,Y,W,H,w){Q0(Y,H,w,X,W,7);let h=Number(Y&BigInt(4294967295));X[W++]=h,h=h>>8,X[W++]=h,h=h>>8,X[W++]=h,h=h>>8,X[W++]=h;let o=Number(Y>>BigInt(32)&BigInt(4294967295));return X[W++]=o,o=o>>8,X[W++]=o,o=o>>8,X[W++]=o,o=o>>8,X[W++]=o,W}function t(X,Y,W,H,w){Q0(Y,H,w,X,W,7);let h=Number(Y&BigInt(4294967295));X[W+7]=h,h=h>>8,X[W+6]=h,h=h>>8,X[W+5]=h,h=h>>8,X[W+4]=h;let o=Number(Y>>BigInt(32)&BigInt(4294967295));return X[W+3]=o,o=o>>8,X[W+2]=o,o=o>>8,X[W+1]=o,o=o>>8,X[W]=o,W+8}J.prototype.writeBigUInt64LE=C0(function(X,Y=0){return r(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),J.prototype.writeBigUInt64BE=C0(function(X,Y=0){return t(this,X,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),J.prototype.writeIntLE=function(X,Y,W,H){if(X=+X,Y=Y>>>0,!H){let W0=Math.pow(2,8*W-1);k(this,X,Y,W,W0-1,-W0)}let w=0,h=1,o=0;for(this[Y]=X&255;++w<W&&(h*=256);)X<0&&o===0&&this[Y+w-1]!==0&&(o=1),this[Y+w]=(X/h>>0)-o&255;return Y+W},J.prototype.writeIntBE=function(X,Y,W,H){if(X=+X,Y=Y>>>0,!H){let W0=Math.pow(2,8*W-1);k(this,X,Y,W,W0-1,-W0)}let w=W-1,h=1,o=0;for(this[Y+w]=X&255;--w>=0&&(h*=256);)X<0&&o===0&&this[Y+w+1]!==0&&(o=1),this[Y+w]=(X/h>>0)-o&255;return Y+W},J.prototype.writeInt8=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,1,127,-128),X<0&&(X=255+X+1),this[Y]=X&255,Y+1},J.prototype.writeInt16LE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,2,32767,-32768),this[Y]=X&255,this[Y+1]=X>>>8,Y+2},J.prototype.writeInt16BE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,2,32767,-32768),this[Y]=X>>>8,this[Y+1]=X&255,Y+2},J.prototype.writeInt32LE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,4,2147483647,-2147483648),this[Y]=X&255,this[Y+1]=X>>>8,this[Y+2]=X>>>16,this[Y+3]=X>>>24,Y+4},J.prototype.writeInt32BE=function(X,Y,W){return X=+X,Y=Y>>>0,W||k(this,X,Y,4,2147483647,-2147483648),X<0&&(X=4294967295+X+1),this[Y]=X>>>24,this[Y+1]=X>>>16,this[Y+2]=X>>>8,this[Y+3]=X&255,Y+4},J.prototype.writeBigInt64LE=C0(function(X,Y=0){return r(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),J.prototype.writeBigInt64BE=C0(function(X,Y=0){return t(this,X,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K0(X,Y,W,H,w,h){if(W+H>X.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function F0(X,Y,W,H,w){return Y=+Y,W=W>>>0,w||K0(X,Y,W,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000),Q.write(X,Y,W,H,23,4),W+4}J.prototype.writeFloatLE=function(X,Y,W){return F0(this,X,Y,!0,W)},J.prototype.writeFloatBE=function(X,Y,W){return F0(this,X,Y,!1,W)};function q0(X,Y,W,H,w){return Y=+Y,W=W>>>0,w||K0(X,Y,W,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000),Q.write(X,Y,W,H,52,8),W+8}J.prototype.writeDoubleLE=function(X,Y,W){return q0(this,X,Y,!0,W)},J.prototype.writeDoubleBE=function(X,Y,W){return q0(this,X,Y,!1,W)},J.prototype.copy=function(X,Y,W,H){if(!J.isBuffer(X))throw new TypeError("argument should be a Buffer");if(W||(W=0),!H&&H!==0&&(H=this.length),Y>=X.length&&(Y=X.length),Y||(Y=0),H>0&&H<W&&(H=W),H===W||X.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(H<0)throw new RangeError("sourceEnd out of bounds");H>this.length&&(H=this.length),X.length-Y<H-W&&(H=X.length-Y+W);let w=H-W;return this===X&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Y,W,H):Uint8Array.prototype.set.call(X,this.subarray(W,H),Y),w},J.prototype.fill=function(X,Y,W,H){if(typeof X=="string"){if(typeof Y=="string"?(H=Y,Y=0,W=this.length):typeof W=="string"&&(H=W,W=this.length),H!==void 0&&typeof H!="string")throw new TypeError("encoding must be a string");if(typeof H=="string"&&!J.isEncoding(H))throw new TypeError("Unknown encoding: "+H);if(X.length===1){let h=X.charCodeAt(0);(H==="utf8"&&h<128||H==="latin1")&&(X=h)}}else typeof X=="number"?X=X&255:typeof X=="boolean"&&(X=Number(X));if(Y<0||this.length<Y||this.length<W)throw new RangeError("Out of range index");if(W<=Y)return this;Y=Y>>>0,W=W===void 0?this.length:W>>>0,X||(X=0);let w;if(typeof X=="number")for(w=Y;w<W;++w)this[w]=X;else{let h=J.isBuffer(X)?X:J.from(X,H),o=h.length;if(o===0)throw new TypeError('The value "'+X+'" is invalid for argument "value"');for(w=0;w<W-Y;++w)this[w+Y]=h[w%o]}return this};var G0={};function Y0(X,Y,W){G0[X]=class extends W{constructor(){super(),Object.defineProperty(this,"message",{value:Y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${X}]`,this.stack,delete this.name}get code(){return X}set code(H){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:H,writable:!0})}toString(){return`${this.name} [${X}]: ${this.message}`}}}Y0("ERR_BUFFER_OUT_OF_BOUNDS",function(X){return X?`${X} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Y0("ERR_INVALID_ARG_TYPE",function(X,Y){return`The "${X}" argument must be of type number. Received type ${typeof Y}`},TypeError),Y0("ERR_OUT_OF_RANGE",function(X,Y,W){let H=`The value of "${X}" is out of range.`,w=W;return Number.isInteger(W)&&Math.abs(W)>4294967296?w=H0(String(W)):typeof W=="bigint"&&(w=String(W),(W>BigInt(2)**BigInt(32)||W<-(BigInt(2)**BigInt(32)))&&(w=H0(w)),w+="n"),H+=` It must be ${Y}. Received ${w}`,H},RangeError);function H0(X){let Y="",W=X.length,H=X[0]==="-"?1:0;for(;W>=H+4;W-=3)Y=`_${X.slice(W-3,W)}${Y}`;return`${X.slice(0,W)}${Y}`}function M0(X,Y,W){B0(Y,"offset"),(X[Y]===void 0||X[Y+W]===void 0)&&p(Y,X.length-(W+1))}function Q0(X,Y,W,H,w,h){if(X>W||X<Y){let o=typeof Y=="bigint"?"n":"",W0;throw h>3?Y===0||Y===BigInt(0)?W0=`>= 0${o} and < 2${o} ** ${(h+1)*8}${o}`:W0=`>= -(2${o} ** ${(h+1)*8-1}${o}) and < 2 ** ${(h+1)*8-1}${o}`:W0=`>= ${Y}${o} and <= ${W}${o}`,new G0.ERR_OUT_OF_RANGE("value",W0,X)}M0(H,w,h)}function B0(X,Y){if(typeof X!="number")throw new G0.ERR_INVALID_ARG_TYPE(Y,"number",X)}function p(X,Y,W){throw Math.floor(X)!==X?(B0(X,W),new G0.ERR_OUT_OF_RANGE(W||"offset","an integer",X)):Y<0?new G0.ERR_BUFFER_OUT_OF_BOUNDS:new G0.ERR_OUT_OF_RANGE(W||"offset",`>= ${W?1:0} and <= ${Y}`,X)}var D=/[^+/0-9A-Za-z-_]/g;function N(X){if(X=X.split("=")[0],X=X.trim().replace(D,""),X.length<2)return"";for(;X.length%4!==0;)X=X+"=";return X}function _(X,Y){Y=Y||1/0;let W,H=X.length,w=null,h=[];for(let o=0;o<H;++o){if(W=X.charCodeAt(o),W>55295&&W<57344){if(!w){if(W>56319){(Y-=3)>-1&&h.push(239,191,189);continue}else if(o+1===H){(Y-=3)>-1&&h.push(239,191,189);continue}w=W;continue}if(W<56320){(Y-=3)>-1&&h.push(239,191,189),w=W;continue}W=(w-55296<<10|W-56320)+65536}else w&&(Y-=3)>-1&&h.push(239,191,189);if(w=null,W<128){if((Y-=1)<0)break;h.push(W)}else if(W<2048){if((Y-=2)<0)break;h.push(W>>6|192,W&63|128)}else if(W<65536){if((Y-=3)<0)break;h.push(W>>12|224,W>>6&63|128,W&63|128)}else if(W<1114112){if((Y-=4)<0)break;h.push(W>>18|240,W>>12&63|128,W>>6&63|128,W&63|128)}else throw new Error("Invalid code point")}return h}function a(X){let Y=[];for(let W=0;W<X.length;++W)Y.push(X.charCodeAt(W)&255);return Y}function s(X,Y){let W,H,w,h=[];for(let o=0;o<X.length&&!((Y-=2)<0);++o)W=X.charCodeAt(o),H=W>>8,w=W%256,h.push(w),h.push(H);return h}function U0(X){return V.toByteArray(N(X))}function X0(X,Y,W,H){let w;for(w=0;w<H&&!(w+W>=Y.length||w>=X.length);++w)Y[w+W]=X[w];return w}function z0(X,Y){return X instanceof Y||X!=null&&X.constructor!=null&&X.constructor.name!=null&&X.constructor.name===Y.name}function b0(X){return X!==X}var J6=function(){let X="0123456789abcdef",Y=new Array(256);for(let W=0;W<16;++W){let H=W*16;for(let w=0;w<16;++w)Y[H+w]=X[W]+X[w]}return Y}();function C0(X){return typeof BigInt>"u"?i1:X}function i1(){throw new Error("BigInt not supported")}}),x0=P0(($,V)=>{V.exports={ArrayIsArray(Q){return Array.isArray(Q)},ArrayPrototypeIncludes(Q,q){return Q.includes(q)},ArrayPrototypeIndexOf(Q,q){return Q.indexOf(q)},ArrayPrototypeJoin(Q,q){return Q.join(q)},ArrayPrototypeMap(Q,q){return Q.map(q)},ArrayPrototypePop(Q,q){return Q.pop(q)},ArrayPrototypePush(Q,q){return Q.push(q)},ArrayPrototypeSlice(Q,q,K){return Q.slice(q,K)},Error,FunctionPrototypeCall(Q,q,...K){return Q.call(q,...K)},FunctionPrototypeSymbolHasInstance(Q,q){return Function.prototype[Symbol.hasInstance].call(Q,q)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(Q,q){return Object.defineProperties(Q,q)},ObjectDefineProperty(Q,q,K){return Object.defineProperty(Q,q,K)},ObjectGetOwnPropertyDescriptor(Q,q){return Object.getOwnPropertyDescriptor(Q,q)},ObjectKeys(Q){return Object.keys(Q)},ObjectSetPrototypeOf(Q,q){return Object.setPrototypeOf(Q,q)},Promise,PromisePrototypeCatch(Q,q){return Q.catch(q)},PromisePrototypeThen(Q,q,K){return Q.then(q,K)},PromiseReject(Q){return Promise.reject(Q)},ReflectApply:Reflect.apply,RegExpPrototypeTest(Q,q){return Q.test(q)},SafeSet:Set,String,StringPrototypeSlice(Q,q,K){return Q.slice(q,K)},StringPrototypeToLowerCase(Q){return Q.toLowerCase()},StringPrototypeToUpperCase(Q){return Q.toUpperCase()},StringPrototypeTrim(Q){return Q.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(Q,q,K){return Q.set(q,K)},Uint8Array}}),W6=P0(($,V)=>{var Q=L6(),q=Object.getPrototypeOf(async function(){}).constructor,K=globalThis.Blob||Q.Blob,G=typeof K<"u"?function(J){return J instanceof K}:function(J){return!1},U=class extends Error{constructor(J){if(!Array.isArray(J))throw new TypeError(`Expected input to be an Array, got ${typeof J}`);let j="";for(let P=0;P<J.length;P++)j+=` ${J[P].stack}
|
|
2
|
-
`;super(j),this.name="AggregateError",this.errors=J}};V.exports={AggregateError:U,kEmptyObject:Object.freeze({}),once(J){let j=!1;return function(...P){j||(j=!0,J.apply(this,P))}},createDeferredPromise:function(){let J,j;return{promise:new Promise((P,z)=>{J=P,j=z}),resolve:J,reject:j}},promisify(J){return new Promise((j,P)=>{J((z,...B)=>z?P(z):j(...B))})},debuglog(){return function(){}},format(J,...j){return J.replace(/%([sdifj])/g,function(...[P,z]){let B=j.shift();return z==="f"?B.toFixed(6):z==="j"?JSON.stringify(B):z==="s"&&typeof B=="object"?`${B.constructor!==Object?B.constructor.name:""} {}`.trim():B.toString()})},inspect(J){switch(typeof J){case"string":if(J.includes("'"))if(J.includes('"')){if(!J.includes("`")&&!J.includes("${"))return`\`${J}\``}else return`"${J}"`;return`'${J}'`;case"number":return isNaN(J)?"NaN":Object.is(J,-0)?String(J):J;case"bigint":return`${String(J)}n`;case"boolean":case"undefined":return String(J);case"object":return"{}"}},types:{isAsyncFunction(J){return J instanceof q},isArrayBufferView(J){return ArrayBuffer.isView(J)}},isBlob:G},V.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),i2=P0(($,V)=>{var{AbortController:Q,AbortSignal:q}=typeof self<"u"?self:typeof window<"u"?window:void 0;V.exports=Q,V.exports.AbortSignal=q,V.exports.default=Q}),f0=P0(($,V)=>{var{format:Q,inspect:q,AggregateError:K}=W6(),G=globalThis.AggregateError||K,U=Symbol("kIsNodeError"),J=["string","function","number","object","Function","Object","boolean","bigint","symbol"],j=/^([A-Z][a-z0-9]*)+$/,P="__node_internal_",z={};function B(Z,O){if(!Z)throw new z.ERR_INTERNAL_ASSERTION(O)}function I(Z){let O="",M=Z.length,A=Z[0]==="-"?1:0;for(;M>=A+4;M-=3)O=`_${Z.slice(M-3,M)}${O}`;return`${Z.slice(0,M)}${O}`}function R(Z,O,M){if(typeof O=="function")return B(O.length<=M.length,`Code: ${Z}; The provided arguments length (${M.length}) does not match the required ones (${O.length}).`),O(...M);let A=(O.match(/%[dfijoOs]/g)||[]).length;return B(A===M.length,`Code: ${Z}; The provided arguments length (${M.length}) does not match the required ones (${A}).`),M.length===0?O:Q(O,...M)}function x(Z,O,M){M||(M=Error);class A extends M{constructor(...C){super(R(Z,O,C))}toString(){return`${this.name} [${Z}]: ${this.message}`}}Object.defineProperties(A.prototype,{name:{value:M.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${Z}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),A.prototype.code=Z,A.prototype[U]=!0,z[Z]=A}function S(Z){let O=P+Z.name;return Object.defineProperty(Z,"name",{value:O}),Z}function g(Z,O){if(Z&&O&&Z!==O){if(Array.isArray(O.errors))return O.errors.push(Z),O;let M=new G([O,Z],O.message);return M.code=O.code,M}return Z||O}var y=class extends Error{constructor(Z="The operation was aborted",O=void 0){if(O!==void 0&&typeof O!="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",O);super(Z,O),this.code="ABORT_ERR",this.name="AbortError"}};x("ERR_ASSERTION","%s",Error),x("ERR_INVALID_ARG_TYPE",(Z,O,M)=>{B(typeof Z=="string","'name' must be a string"),Array.isArray(O)||(O=[O]);let A="The ";Z.endsWith(" argument")?A+=`${Z} `:A+=`"${Z}" ${Z.includes(".")?"property":"argument"} `,A+="must be ";let C=[],L=[],T=[];for(let f of O)B(typeof f=="string","All expected entries have to be of type string"),J.includes(f)?C.push(f.toLowerCase()):j.test(f)?L.push(f):(B(f!=="object",'The value "object" should be written as "Object"'),T.push(f));if(L.length>0){let f=C.indexOf("object");f!==-1&&(C.splice(C,f,1),L.push("Object"))}if(C.length>0){switch(C.length){case 1:A+=`of type ${C[0]}`;break;case 2:A+=`one of type ${C[0]} or ${C[1]}`;break;default:{let f=C.pop();A+=`one of type ${C.join(", ")}, or ${f}`}}(L.length>0||T.length>0)&&(A+=" or ")}if(L.length>0){switch(L.length){case 1:A+=`an instance of ${L[0]}`;break;case 2:A+=`an instance of ${L[0]} or ${L[1]}`;break;default:{let f=L.pop();A+=`an instance of ${L.join(", ")}, or ${f}`}}T.length>0&&(A+=" or ")}switch(T.length){case 0:break;case 1:T[0].toLowerCase()!==T[0]&&(A+="an "),A+=`${T[0]}`;break;case 2:A+=`one of ${T[0]} or ${T[1]}`;break;default:{let f=T.pop();A+=`one of ${T.join(", ")}, or ${f}`}}if(M==null)A+=`. Received ${M}`;else if(typeof M=="function"&&M.name)A+=`. Received function ${M.name}`;else if(typeof M=="object"){var E;(E=M.constructor)!==null&&E!==void 0&&E.name?A+=`. Received an instance of ${M.constructor.name}`:A+=`. Received ${q(M,{depth:-1})}`}else{let f=q(M,{colors:!1});f.length>25&&(f=`${f.slice(0,25)}...`),A+=`. Received type ${typeof M} (${f})`}return A},TypeError),x("ERR_INVALID_ARG_VALUE",(Z,O,M="is invalid")=>{let A=q(O);return A.length>128&&(A=A.slice(0,128)+"..."),`The ${Z.includes(".")?"property":"argument"} '${Z}' ${M}. Received ${A}`},TypeError),x("ERR_INVALID_RETURN_VALUE",(Z,O,M)=>{var A;let C=M!=null&&(A=M.constructor)!==null&&A!==void 0&&A.name?`instance of ${M.constructor.name}`:`type ${typeof M}`;return`Expected ${Z} to be returned from the "${O}" function but got ${C}.`},TypeError),x("ERR_MISSING_ARGS",(...Z)=>{B(Z.length>0,"At least one arg needs to be specified");let O,M=Z.length;switch(Z=(Array.isArray(Z)?Z:[Z]).map((A)=>`"${A}"`).join(" or "),M){case 1:O+=`The ${Z[0]} argument`;break;case 2:O+=`The ${Z[0]} and ${Z[1]} arguments`;break;default:{let A=Z.pop();O+=`The ${Z.join(", ")}, and ${A} arguments`}break}return`${O} must be specified`},TypeError),x("ERR_OUT_OF_RANGE",(Z,O,M)=>{B(O,'Missing "range" argument');let A;return Number.isInteger(M)&&Math.abs(M)>4294967296?A=I(String(M)):typeof M=="bigint"?(A=String(M),(M>2n**32n||M<-(2n**32n))&&(A=I(A)),A+="n"):A=q(M),`The value of "${Z}" is out of range. It must be ${O}. Received ${A}`},RangeError),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),x("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),x("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),x("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),x("ERR_STREAM_WRITE_AFTER_END","write after end",Error),x("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),V.exports={AbortError:y,aggregateTwoErrors:S(g),hideStackFrames:S,codes:z}}),s1=P0(($,V)=>{var{ArrayIsArray:Q,ArrayPrototypeIncludes:q,ArrayPrototypeJoin:K,ArrayPrototypeMap:G,NumberIsInteger:U,NumberIsNaN:J,NumberMAX_SAFE_INTEGER:j,NumberMIN_SAFE_INTEGER:P,NumberParseInt:z,ObjectPrototypeHasOwnProperty:B,RegExpPrototypeExec:I,String:R,StringPrototypeToUpperCase:x,StringPrototypeTrim:S}=x0(),{hideStackFrames:g,codes:{ERR_SOCKET_BAD_PORT:y,ERR_INVALID_ARG_TYPE:Z,ERR_INVALID_ARG_VALUE:O,ERR_OUT_OF_RANGE:M,ERR_UNKNOWN_SIGNAL:A}}=f0(),{normalizeEncoding:C}=W6(),{isAsyncFunction:L,isArrayBufferView:T}=W6().types,E={};function f(p){return p===(p|0)}function b(p){return p===p>>>0}var F=/^[0-7]+$/,m="must be a 32-bit unsigned integer or an octal string";function n(p,D,N){if(typeof p>"u"&&(p=N),typeof p=="string"){if(I(F,p)===null)throw new O(D,p,m);p=z(p,8)}return u(p,D),p}var v=g((p,D,N=P,_=j)=>{if(typeof p!="number")throw new Z(D,"number",p);if(!U(p))throw new M(D,"an integer",p);if(p<N||p>_)throw new M(D,`>= ${N} && <= ${_}`,p)}),c=g((p,D,N=-2147483648,_=2147483647)=>{if(typeof p!="number")throw new Z(D,"number",p);if(!U(p))throw new M(D,"an integer",p);if(p<N||p>_)throw new M(D,`>= ${N} && <= ${_}`,p)}),u=g((p,D,N=!1)=>{if(typeof p!="number")throw new Z(D,"number",p);if(!U(p))throw new M(D,"an integer",p);let _=N?1:0,a=4294967295;if(p<_||p>a)throw new M(D,`>= ${_} && <= ${a}`,p)});function i(p,D){if(typeof p!="string")throw new Z(D,"string",p)}function e(p,D,N=void 0,_){if(typeof p!="number")throw new Z(D,"number",p);if(N!=null&&p<N||_!=null&&p>_||(N!=null||_!=null)&&J(p))throw new M(D,`${N!=null?`>= ${N}`:""}${N!=null&&_!=null?" && ":""}${_!=null?`<= ${_}`:""}`,p)}var d=g((p,D,N)=>{if(!q(N,p)){let _=K(G(N,(s)=>typeof s=="string"?`'${s}'`:R(s)),", "),a="must be one of: "+_;throw new O(D,p,a)}});function l(p,D){if(typeof p!="boolean")throw new Z(D,"boolean",p)}function k(p,D,N){return p==null||!B(p,D)?N:p[D]}var r=g((p,D,N=null)=>{let _=k(N,"allowArray",!1),a=k(N,"allowFunction",!1);if(!k(N,"nullable",!1)&&p===null||!_&&Q(p)||typeof p!="object"&&(!a||typeof p!="function"))throw new Z(D,"Object",p)}),t=g((p,D,N=0)=>{if(!Q(p))throw new Z(D,"Array",p);if(p.length<N){let _=`must be longer than ${N}`;throw new O(D,p,_)}});function K0(p,D="signal"){if(i(p,D),E[p]===void 0)throw E[x(p)]!==void 0?new A(p+" (signals must use all capital letters)"):new A(p)}var F0=g((p,D="buffer")=>{if(!T(p))throw new Z(D,["Buffer","TypedArray","DataView"],p)});function q0(p,D){let N=C(D),_=p.length;if(N==="hex"&&_%2!==0)throw new O("encoding",D,`is invalid for data of length ${_}`)}function G0(p,D="Port",N=!0){if(typeof p!="number"&&typeof p!="string"||typeof p=="string"&&S(p).length===0||+p!==+p>>>0||p>65535||p===0&&!N)throw new y(D,p,N);return p|0}var Y0=g((p,D)=>{if(p!==void 0&&(p===null||typeof p!="object"||!("aborted"in p)))throw new Z(D,"AbortSignal",p)}),H0=g((p,D)=>{if(typeof p!="function")throw new Z(D,"Function",p)}),M0=g((p,D)=>{if(typeof p!="function"||L(p))throw new Z(D,"Function",p)}),Q0=g((p,D)=>{if(p!==void 0)throw new Z(D,"undefined",p)});function B0(p,D,N){if(!q(N,p))throw new Z(D,`('${K(N,"|")}')`,p)}V.exports={isInt32:f,isUint32:b,parseFileMode:n,validateArray:t,validateBoolean:l,validateBuffer:F0,validateEncoding:q0,validateFunction:H0,validateInt32:c,validateInteger:v,validateNumber:e,validateObject:r,validateOneOf:d,validatePlainFunction:M0,validatePort:G0,validateSignalName:K0,validateString:i,validateUint32:u,validateUndefined:Q0,validateUnion:B0,validateAbortSignal:Y0}}),f$=P0(($,V)=>{var Q=V.exports={},q,K;function G(){throw new Error("setTimeout has not been defined")}function U(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?q=setTimeout:q=G}catch{q=G}try{typeof clearTimeout=="function"?K=clearTimeout:K=U}catch{K=U}})();function J(y){if(q===setTimeout)return setTimeout(y,0);if((q===G||!q)&&setTimeout)return q=setTimeout,setTimeout(y,0);try{return q(y,0)}catch{try{return q.call(null,y,0)}catch{return q.call(this,y,0)}}}function j(y){if(K===clearTimeout)return clearTimeout(y);if((K===U||!K)&&clearTimeout)return K=clearTimeout,clearTimeout(y);try{return K(y)}catch{try{return K.call(null,y)}catch{return K.call(this,y)}}}var P=[],z=!1,B,I=-1;function R(){!z||!B||(z=!1,B.length?P=B.concat(P):I=-1,P.length&&x())}function x(){if(!z){var y=J(R);z=!0;for(var Z=P.length;Z;){for(B=P,P=[];++I<Z;)B&&B[I].run();I=-1,Z=P.length}B=null,z=!1,j(y)}}Q.nextTick=function(y){var Z=new Array(arguments.length-1);if(arguments.length>1)for(var O=1;O<arguments.length;O++)Z[O-1]=arguments[O];P.push(new S(y,Z)),P.length===1&&!z&&J(x)};function S(y,Z){this.fun=y,this.array=Z}S.prototype.run=function(){this.fun.apply(null,this.array)},Q.title="browser",Q.browser=!0,Q.env={},Q.argv=[],Q.version="",Q.versions={};function g(){}Q.on=g,Q.addListener=g,Q.once=g,Q.off=g,Q.removeListener=g,Q.removeAllListeners=g,Q.emit=g,Q.prependListener=g,Q.prependOnceListener=g,Q.listeners=function(y){return[]},Q.binding=function(y){throw new Error("process.binding is not supported")},Q.cwd=function(){return"/"},Q.chdir=function(y){throw new Error("process.chdir is not supported")},Q.umask=function(){return 0}}),P6={};h$(P6,{default:()=>m$});g6=Q7(()=>{_$(P6,a1(f$())),m$=a1(f$())}),E6=P0(($,V)=>{var{Symbol:Q,SymbolAsyncIterator:q,SymbolIterator:K}=x0(),G=Q("kDestroyed"),U=Q("kIsErrored"),J=Q("kIsReadable"),j=Q("kIsDisturbed");function P(v,c=!1){var u;return!!(v&&typeof v.pipe=="function"&&typeof v.on=="function"&&(!c||typeof v.pause=="function"&&typeof v.resume=="function")&&(!v._writableState||((u=v._readableState)===null||u===void 0?void 0:u.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var c;return!!(v&&typeof v.write=="function"&&typeof v.on=="function"&&(!v._readableState||((c=v._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function B(v){return!!(v&&typeof v.pipe=="function"&&v._readableState&&typeof v.on=="function"&&typeof v.write=="function")}function I(v){return v&&(v._readableState||v._writableState||typeof v.write=="function"&&typeof v.on=="function"||typeof v.pipe=="function"&&typeof v.on=="function")}function R(v,c){return v==null?!1:c===!0?typeof v[q]=="function":c===!1?typeof v[K]=="function":typeof v[q]=="function"||typeof v[K]=="function"}function x(v){if(!I(v))return null;let{_writableState:c,_readableState:u}=v,i=c||u;return!!(v.destroyed||v[G]||i!=null&&i.destroyed)}function S(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;let c=v._writableState;return c!=null&&c.errored?!1:typeof c?.ended!="boolean"?null:c.ended}function g(v,c){if(!z(v))return null;if(v.writableFinished===!0)return!0;let u=v._writableState;return u!=null&&u.errored?!1:typeof u?.finished!="boolean"?null:!!(u.finished||c===!1&&u.ended===!0&&u.length===0)}function y(v){if(!P(v))return null;if(v.readableEnded===!0)return!0;let c=v._readableState;return!c||c.errored?!1:typeof c?.ended!="boolean"?null:c.ended}function Z(v,c){if(!P(v))return null;let u=v._readableState;return u!=null&&u.errored?!1:typeof u?.endEmitted!="boolean"?null:!!(u.endEmitted||c===!1&&u.ended===!0&&u.length===0)}function O(v){return v&&v[J]!=null?v[J]:typeof v?.readable!="boolean"?null:x(v)?!1:P(v)&&v.readable&&!Z(v)}function M(v){return typeof v?.writable!="boolean"?null:x(v)?!1:z(v)&&v.writable&&!S(v)}function A(v,c){return I(v)?x(v)?!0:!(c?.readable!==!1&&O(v)||c?.writable!==!1&&M(v)):null}function C(v){var c,u;return I(v)?v.writableErrored?v.writableErrored:(c=(u=v._writableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:null:null}function L(v){var c,u;return I(v)?v.readableErrored?v.readableErrored:(c=(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:null:null}function T(v){if(!I(v))return null;if(typeof v.closed=="boolean")return v.closed;let{_writableState:c,_readableState:u}=v;return typeof c?.closed=="boolean"||typeof u?.closed=="boolean"?c?.closed||u?.closed:typeof v._closed=="boolean"&&E(v)?v._closed:null}function E(v){return typeof v._closed=="boolean"&&typeof v._defaultKeepAlive=="boolean"&&typeof v._removedConnection=="boolean"&&typeof v._removedContLen=="boolean"}function f(v){return typeof v._sent100=="boolean"&&E(v)}function b(v){var c;return typeof v._consuming=="boolean"&&typeof v._dumped=="boolean"&&((c=v.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function F(v){if(!I(v))return null;let{_writableState:c,_readableState:u}=v,i=c||u;return!i&&f(v)||!!(i&&i.autoDestroy&&i.emitClose&&i.closed===!1)}function m(v){var c;return!!(v&&((c=v[j])!==null&&c!==void 0?c:v.readableDidRead||v.readableAborted))}function n(v){var c,u,i,e,d,l,k,r,t,K0;return!!(v&&((c=(u=(i=(e=(d=(l=v[U])!==null&&l!==void 0?l:v.readableErrored)!==null&&d!==void 0?d:v.writableErrored)!==null&&e!==void 0?e:(k=v._readableState)===null||k===void 0?void 0:k.errorEmitted)!==null&&i!==void 0?i:(r=v._writableState)===null||r===void 0?void 0:r.errorEmitted)!==null&&u!==void 0?u:(t=v._readableState)===null||t===void 0?void 0:t.errored)!==null&&c!==void 0?c:(K0=v._writableState)===null||K0===void 0?void 0:K0.errored))}V.exports={kDestroyed:G,isDisturbed:m,kIsDisturbed:j,isErrored:n,kIsErrored:U,isReadable:O,kIsReadable:J,isClosed:T,isDestroyed:x,isDuplexNodeStream:B,isFinished:A,isIterable:R,isReadableNodeStream:P,isReadableEnded:y,isReadableFinished:Z,isReadableErrored:L,isNodeStream:I,isWritable:M,isWritableNodeStream:z,isWritableEnded:S,isWritableFinished:g,isWritableErrored:C,isServerRequest:b,isServerResponse:f,willEmitClose:F}}),y6=P0(($,V)=>{var Q=(g6(),k6(P6)),{AbortError:q,codes:K}=f0(),{ERR_INVALID_ARG_TYPE:G,ERR_STREAM_PREMATURE_CLOSE:U}=K,{kEmptyObject:J,once:j}=W6(),{validateAbortSignal:P,validateFunction:z,validateObject:B}=s1(),{Promise:I}=x0(),{isClosed:R,isReadable:x,isReadableNodeStream:S,isReadableFinished:g,isReadableErrored:y,isWritable:Z,isWritableNodeStream:O,isWritableFinished:M,isWritableErrored:A,isNodeStream:C,willEmitClose:L}=E6();function T(F){return F.setHeader&&typeof F.abort=="function"}var E=()=>{};function f(F,m,n){var v,c;arguments.length===2?(n=m,m=J):m==null?m=J:B(m,"options"),z(n,"callback"),P(m.signal,"options.signal"),n=j(n);let u=(v=m.readable)!==null&&v!==void 0?v:S(F),i=(c=m.writable)!==null&&c!==void 0?c:O(F);if(!C(F))throw new G("stream","Stream",F);let{_writableState:e,_readableState:d}=F,l=()=>{F.writable||t()},k=L(F)&&S(F)===u&&O(F)===i,r=M(F,!1),t=()=>{r=!0,F.destroyed&&(k=!1),!(k&&(!F.readable||u))&&(!u||K0)&&n.call(F)},K0=g(F,!1),F0=()=>{K0=!0,F.destroyed&&(k=!1),!(k&&(!F.writable||i))&&(!i||r)&&n.call(F)},q0=(Q0)=>{n.call(F,Q0)},G0=R(F),Y0=()=>{G0=!0;let Q0=A(F)||y(F);if(Q0&&typeof Q0!="boolean")return n.call(F,Q0);if(u&&!K0&&S(F,!0)&&!g(F,!1))return n.call(F,new U);if(i&&!r&&!M(F,!1))return n.call(F,new U);n.call(F)},H0=()=>{F.req.on("finish",t)};T(F)?(F.on("complete",t),k||F.on("abort",Y0),F.req?H0():F.on("request",H0)):i&&!e&&(F.on("end",l),F.on("close",l)),!k&&typeof F.aborted=="boolean"&&F.on("aborted",Y0),F.on("end",F0),F.on("finish",t),m.error!==!1&&F.on("error",q0),F.on("close",Y0),G0?Q.nextTick(Y0):e!=null&&e.errorEmitted||d!=null&&d.errorEmitted?k||Q.nextTick(Y0):(!u&&(!k||x(F))&&(r||Z(F)===!1)||!i&&(!k||Z(F))&&(K0||x(F)===!1)||d&&F.req&&F.aborted)&&Q.nextTick(Y0);let M0=()=>{n=E,F.removeListener("aborted",Y0),F.removeListener("complete",t),F.removeListener("abort",Y0),F.removeListener("request",H0),F.req&&F.req.removeListener("finish",t),F.removeListener("end",l),F.removeListener("close",l),F.removeListener("finish",t),F.removeListener("end",F0),F.removeListener("error",q0),F.removeListener("close",Y0)};if(m.signal&&!G0){let Q0=()=>{let B0=n;M0(),B0.call(F,new q(void 0,{cause:m.signal.reason}))};if(m.signal.aborted)Q.nextTick(Q0);else{let B0=n;n=j((...p)=>{m.signal.removeEventListener("abort",Q0),B0.apply(F,p)}),m.signal.addEventListener("abort",Q0)}}return M0}function b(F,m){return new I((n,v)=>{f(F,m,(c)=>{c?v(c):n()})})}V.exports=f,V.exports.finished=b}),X7=P0(($,V)=>{var Q=globalThis.AbortController||i2().AbortController,{codes:{ERR_INVALID_ARG_TYPE:q,ERR_MISSING_ARGS:K,ERR_OUT_OF_RANGE:G},AbortError:U}=f0(),{validateAbortSignal:J,validateInteger:j,validateObject:P}=s1(),z=x0().Symbol("kWeak"),{finished:B}=y6(),{ArrayPrototypePush:I,MathFloor:R,Number:x,NumberIsNaN:S,Promise:g,PromiseReject:y,PromisePrototypeThen:Z,Symbol:O}=x0(),M=O("kEmpty"),A=O("kEof");function C(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);l!=null&&P(l,"options"),l?.signal!=null&&J(l.signal,"options.signal");let k=1;return l?.concurrency!=null&&(k=R(l.concurrency)),j(k,"concurrency",1),async function*(){var r,t;let K0=new Q,F0=this,q0=[],G0=K0.signal,Y0={signal:G0},H0=()=>K0.abort();l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted&&H0(),l==null||(t=l.signal)===null||t===void 0||t.addEventListener("abort",H0);let M0,Q0,B0=!1;function p(){B0=!0}async function D(){try{for await(let a of F0){var N;if(B0)return;if(G0.aborted)throw new U;try{a=d(a,Y0)}catch(s){a=y(s)}a!==M&&(typeof((N=a)===null||N===void 0?void 0:N.catch)=="function"&&a.catch(p),q0.push(a),M0&&(M0(),M0=null),!B0&&q0.length&&q0.length>=k&&await new g((s)=>{Q0=s}))}q0.push(A)}catch(a){let s=y(a);Z(s,void 0,p),q0.push(s)}finally{var _;B0=!0,M0&&(M0(),M0=null),l==null||(_=l.signal)===null||_===void 0||_.removeEventListener("abort",H0)}}D();try{for(;;){for(;q0.length>0;){let N=await q0[0];if(N===A)return;if(G0.aborted)throw new U;N!==M&&(yield N),q0.shift(),Q0&&(Q0(),Q0=null)}await new g((N)=>{M0=N})}}finally{K0.abort(),B0=!0,Q0&&(Q0(),Q0=null)}}.call(this)}function L(d=void 0){return d!=null&&P(d,"options"),d?.signal!=null&&J(d.signal,"options.signal"),async function*(){let l=0;for await(let r of this){var k;if(d!=null&&(k=d.signal)!==null&&k!==void 0&&k.aborted)throw new U({cause:d.signal.reason});yield[l++,r]}}.call(this)}async function T(d,l=void 0){for await(let k of F.call(this,d,l))return!0;return!1}async function E(d,l=void 0){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);return!await T.call(this,async(...k)=>!await d(...k),l)}async function f(d,l){for await(let k of F.call(this,d,l))return k}async function b(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);async function k(r,t){return await d(r,t),M}for await(let r of C.call(this,k,l));}function F(d,l){if(typeof d!="function")throw new q("fn",["Function","AsyncFunction"],d);async function k(r,t){return await d(r,t)?r:M}return C.call(this,k,l)}var m=class extends K{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function n(d,l,k){var r;if(typeof d!="function")throw new q("reducer",["Function","AsyncFunction"],d);k!=null&&P(k,"options"),k?.signal!=null&&J(k.signal,"options.signal");let t=arguments.length>1;if(k!=null&&(r=k.signal)!==null&&r!==void 0&&r.aborted){let Y0=new U(void 0,{cause:k.signal.reason});throw this.once("error",()=>{}),await B(this.destroy(Y0)),Y0}let K0=new Q,F0=K0.signal;if(k!=null&&k.signal){let Y0={once:!0,[z]:this};k.signal.addEventListener("abort",()=>K0.abort(),Y0)}let q0=!1;try{for await(let Y0 of this){var G0;if(q0=!0,k!=null&&(G0=k.signal)!==null&&G0!==void 0&&G0.aborted)throw new U;t?l=await d(l,Y0,{signal:F0}):(l=Y0,t=!0)}if(!q0&&!t)throw new m}finally{K0.abort()}return l}async function v(d){d!=null&&P(d,"options"),d?.signal!=null&&J(d.signal,"options.signal");let l=[];for await(let r of this){var k;if(d!=null&&(k=d.signal)!==null&&k!==void 0&&k.aborted)throw new U(void 0,{cause:d.signal.reason});I(l,r)}return l}function c(d,l){let k=C.call(this,d,l);return async function*(){for await(let r of k)yield*r}.call(this)}function u(d){if(d=x(d),S(d))return 0;if(d<0)throw new G("number",">= 0",d);return d}function i(d,l=void 0){return l!=null&&P(l,"options"),l?.signal!=null&&J(l.signal,"options.signal"),d=u(d),async function*(){var k;if(l!=null&&(k=l.signal)!==null&&k!==void 0&&k.aborted)throw new U;for await(let t of this){var r;if(l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted)throw new U;d--<=0&&(yield t)}}.call(this)}function e(d,l=void 0){return l!=null&&P(l,"options"),l?.signal!=null&&J(l.signal,"options.signal"),d=u(d),async function*(){var k;if(l!=null&&(k=l.signal)!==null&&k!==void 0&&k.aborted)throw new U;for await(let t of this){var r;if(l!=null&&(r=l.signal)!==null&&r!==void 0&&r.aborted)throw new U;if(d-- >0)yield t;else return}}.call(this)}V.exports.streamReturningOperators={asIndexedPairs:L,drop:i,filter:F,flatMap:c,map:C,take:e},V.exports.promiseReturningOperators={every:E,forEach:b,reduce:n,toArray:v,some:T,find:f}}),a6=P0(($,V)=>{var Q=(g6(),k6(P6)),{aggregateTwoErrors:q,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:G}=f0(),{Symbol:U}=x0(),{kDestroyed:J,isDestroyed:j,isFinished:P,isServerRequest:z}=E6(),B=U("kDestroy"),I=U("kConstruct");function R(F,m,n){F&&(F.stack,m&&!m.errored&&(m.errored=F),n&&!n.errored&&(n.errored=F))}function x(F,m){let n=this._readableState,v=this._writableState,c=v||n;return v&&v.destroyed||n&&n.destroyed?(typeof m=="function"&&m(),this):(R(F,v,n),v&&(v.destroyed=!0),n&&(n.destroyed=!0),c.constructed?S(this,F,m):this.once(B,function(u){S(this,q(u,F),m)}),this)}function S(F,m,n){let v=!1;function c(u){if(v)return;v=!0;let{_readableState:i,_writableState:e}=F;R(u,e,i),e&&(e.closed=!0),i&&(i.closed=!0),typeof n=="function"&&n(u),u?Q.nextTick(g,F,u):Q.nextTick(y,F)}try{F._destroy(m||null,c)}catch(u){c(u)}}function g(F,m){Z(F,m),y(F)}function y(F){let{_readableState:m,_writableState:n}=F;n&&(n.closeEmitted=!0),m&&(m.closeEmitted=!0),(n&&n.emitClose||m&&m.emitClose)&&F.emit("close")}function Z(F,m){let{_readableState:n,_writableState:v}=F;v&&v.errorEmitted||n&&n.errorEmitted||(v&&(v.errorEmitted=!0),n&&(n.errorEmitted=!0),F.emit("error",m))}function O(){let F=this._readableState,m=this._writableState;F&&(F.constructed=!0,F.closed=!1,F.closeEmitted=!1,F.destroyed=!1,F.errored=null,F.errorEmitted=!1,F.reading=!1,F.ended=F.readable===!1,F.endEmitted=F.readable===!1),m&&(m.constructed=!0,m.destroyed=!1,m.closed=!1,m.closeEmitted=!1,m.errored=null,m.errorEmitted=!1,m.finalCalled=!1,m.prefinished=!1,m.ended=m.writable===!1,m.ending=m.writable===!1,m.finished=m.writable===!1)}function M(F,m,n){let{_readableState:v,_writableState:c}=F;if(c&&c.destroyed||v&&v.destroyed)return this;v&&v.autoDestroy||c&&c.autoDestroy?F.destroy(m):m&&(m.stack,c&&!c.errored&&(c.errored=m),v&&!v.errored&&(v.errored=m),n?Q.nextTick(Z,F,m):Z(F,m))}function A(F,m){if(typeof F._construct!="function")return;let{_readableState:n,_writableState:v}=F;n&&(n.constructed=!1),v&&(v.constructed=!1),F.once(I,m),!(F.listenerCount(I)>1)&&Q.nextTick(C,F)}function C(F){let m=!1;function n(v){if(m){M(F,v??new K);return}m=!0;let{_readableState:c,_writableState:u}=F,i=u||c;c&&(c.constructed=!0),u&&(u.constructed=!0),i.destroyed?F.emit(B,v):v?M(F,v,!0):Q.nextTick(L,F)}try{F._construct(n)}catch(v){n(v)}}function L(F){F.emit(I)}function T(F){return F&&F.setHeader&&typeof F.abort=="function"}function E(F){F.emit("close")}function f(F,m){F.emit("error",m),Q.nextTick(E,F)}function b(F,m){!F||j(F)||(!m&&!P(F)&&(m=new G),z(F)?(F.socket=null,F.destroy(m)):T(F)?F.abort():T(F.req)?F.req.abort():typeof F.destroy=="function"?F.destroy(m):typeof F.close=="function"?F.close():m?Q.nextTick(f,F,m):Q.nextTick(E,F),F.destroyed||(F[J]=!0))}V.exports={construct:A,destroyer:b,destroy:x,undestroy:O,errorOrDestroy:M}}),n2=P0(($,V)=>{var Q=typeof Reflect=="object"?Reflect:null,q=Q&&typeof Q.apply=="function"?Q.apply:function(C,L,T){return Function.prototype.apply.call(C,L,T)},K;Q&&typeof Q.ownKeys=="function"?K=Q.ownKeys:Object.getOwnPropertySymbols?K=function(C){return Object.getOwnPropertyNames(C).concat(Object.getOwnPropertySymbols(C))}:K=function(C){return Object.getOwnPropertyNames(C)};function G(C){console&&console.warn&&console.warn(C)}var U=Number.isNaN||function(C){return C!==C};function J(){J.init.call(this)}V.exports=J,V.exports.once=O,J.EventEmitter=J,J.prototype._events=void 0,J.prototype._eventsCount=0,J.prototype._maxListeners=void 0;var j=10;function P(C){if(typeof C!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof C)}Object.defineProperty(J,"defaultMaxListeners",{enumerable:!0,get:function(){return j},set:function(C){if(typeof C!="number"||C<0||U(C))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+C+".");j=C}}),J.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},J.prototype.setMaxListeners=function(C){if(typeof C!="number"||C<0||U(C))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+C+".");return this._maxListeners=C,this};function z(C){return C._maxListeners===void 0?J.defaultMaxListeners:C._maxListeners}J.prototype.getMaxListeners=function(){return z(this)},J.prototype.emit=function(C){for(var L=[],T=1;T<arguments.length;T++)L.push(arguments[T]);var E=C==="error",f=this._events;if(f!==void 0)E=E&&f.error===void 0;else if(!E)return!1;if(E){var b;if(L.length>0&&(b=L[0]),b instanceof Error)throw b;var F=new Error("Unhandled error."+(b?" ("+b.message+")":""));throw F.context=b,F}var m=f[C];if(m===void 0)return!1;if(typeof m=="function")q(m,this,L);else for(var n=m.length,v=g(m,n),T=0;T<n;++T)q(v[T],this,L);return!0};function B(C,L,T,E){var f,b,F;if(P(T),b=C._events,b===void 0?(b=C._events=Object.create(null),C._eventsCount=0):(b.newListener!==void 0&&(C.emit("newListener",L,T.listener?T.listener:T),b=C._events),F=b[L]),F===void 0)F=b[L]=T,++C._eventsCount;else if(typeof F=="function"?F=b[L]=E?[T,F]:[F,T]:E?F.unshift(T):F.push(T),f=z(C),f>0&&F.length>f&&!F.warned){F.warned=!0;var m=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=C,m.type=L,m.count=F.length,G(m)}return C}J.prototype.addListener=function(C,L){return B(this,C,L,!1)},J.prototype.on=J.prototype.addListener,J.prototype.prependListener=function(C,L){return B(this,C,L,!0)};function I(){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 R(C,L,T){var E={fired:!1,wrapFn:void 0,target:C,type:L,listener:T},f=I.bind(E);return f.listener=T,E.wrapFn=f,f}J.prototype.once=function(C,L){return P(L),this.on(C,R(this,C,L)),this},J.prototype.prependOnceListener=function(C,L){return P(L),this.prependListener(C,R(this,C,L)),this},J.prototype.removeListener=function(C,L){var T,E,f,b,F;if(P(L),E=this._events,E===void 0)return this;if(T=E[C],T===void 0)return this;if(T===L||T.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete E[C],E.removeListener&&this.emit("removeListener",C,T.listener||L));else if(typeof T!="function"){for(f=-1,b=T.length-1;b>=0;b--)if(T[b]===L||T[b].listener===L){F=T[b].listener,f=b;break}if(f<0)return this;f===0?T.shift():y(T,f),T.length===1&&(E[C]=T[0]),E.removeListener!==void 0&&this.emit("removeListener",C,F||L)}return this},J.prototype.off=J.prototype.removeListener,J.prototype.removeAllListeners=function(C){var L,T,E;if(T=this._events,T===void 0)return this;if(T.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):T[C]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete T[C]),this;if(arguments.length===0){var f=Object.keys(T),b;for(E=0;E<f.length;++E)b=f[E],b!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=T[C],typeof L=="function")this.removeListener(C,L);else if(L!==void 0)for(E=L.length-1;E>=0;E--)this.removeListener(C,L[E]);return this};function x(C,L,T){var E=C._events;if(E===void 0)return[];var f=E[L];return f===void 0?[]:typeof f=="function"?T?[f.listener||f]:[f]:T?Z(f):g(f,f.length)}J.prototype.listeners=function(C){return x(this,C,!0)},J.prototype.rawListeners=function(C){return x(this,C,!1)},J.listenerCount=function(C,L){return typeof C.listenerCount=="function"?C.listenerCount(L):S.call(C,L)},J.prototype.listenerCount=S;function S(C){var L=this._events;if(L!==void 0){var T=L[C];if(typeof T=="function")return 1;if(T!==void 0)return T.length}return 0}J.prototype.eventNames=function(){return this._eventsCount>0?K(this._events):[]};function g(C,L){for(var T=new Array(L),E=0;E<L;++E)T[E]=C[E];return T}function y(C,L){for(;L+1<C.length;L++)C[L]=C[L+1];C.pop()}function Z(C){for(var L=new Array(C.length),T=0;T<L.length;++T)L[T]=C[T].listener||C[T];return L}function O(C,L){return new Promise(function(T,E){function f(F){C.removeListener(L,b),E(F)}function b(){typeof C.removeListener=="function"&&C.removeListener("error",f),T([].slice.call(arguments))}A(C,L,b,{once:!0}),L!=="error"&&M(C,f,{once:!0})})}function M(C,L,T){typeof C.on=="function"&&A(C,"error",L,T)}function A(C,L,T,E){if(typeof C.on=="function")E.once?C.once(L,T):C.on(L,T);else if(typeof C.addEventListener=="function")C.addEventListener(L,function f(b){E.once&&C.removeEventListener(L,f),T(b)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof C)}}),a2=P0(($,V)=>{var{ArrayIsArray:Q,ObjectSetPrototypeOf:q}=x0(),{EventEmitter:K}=n2();function G(J){K.call(this,J)}q(G.prototype,K.prototype),q(G,K),G.prototype.pipe=function(J,j){let P=this;function z(y){J.writable&&J.write(y)===!1&&P.pause&&P.pause()}P.on("data",z);function B(){P.readable&&P.resume&&P.resume()}J.on("drain",B),!J._isStdio&&(!j||j.end!==!1)&&(P.on("end",R),P.on("close",x));let I=!1;function R(){I||(I=!0,J.end())}function x(){I||(I=!0,typeof J.destroy=="function"&&J.destroy())}function S(y){g(),K.listenerCount(this,"error")===0&&this.emit("error",y)}U(P,"error",S),U(J,"error",S);function g(){P.removeListener("data",z),J.removeListener("drain",B),P.removeListener("end",R),P.removeListener("close",x),P.removeListener("error",S),J.removeListener("error",S),P.removeListener("end",g),P.removeListener("close",g),J.removeListener("close",g)}return P.on("end",g),P.on("close",g),J.on("close",g),J.emit("pipe",P),J};function U(J,j,P){if(typeof J.prependListener=="function")return J.prependListener(j,P);!J._events||!J._events[j]?J.on(j,P):Q(J._events[j])?J._events[j].unshift(P):J._events[j]=[P,J._events[j]]}V.exports={Stream:G,prependListener:U}}),r2=P0(($,V)=>{var{AbortError:Q,codes:q}=f0(),K=y6(),{ERR_INVALID_ARG_TYPE:G}=q,U=(j,P)=>{if(typeof j!="object"||!("aborted"in j))throw new G(P,"AbortSignal",j)};function J(j){return!!(j&&typeof j.pipe=="function")}V.exports.addAbortSignal=function(j,P){if(U(j,"signal"),!J(P))throw new G("stream","stream.Stream",P);return V.exports.addAbortSignalNoValidate(j,P)},V.exports.addAbortSignalNoValidate=function(j,P){if(typeof j!="object"||!("aborted"in j))return P;let z=()=>{P.destroy(new Q(void 0,{cause:j.reason}))};return j.aborted?z():(j.addEventListener("abort",z),K(P,()=>j.removeEventListener("abort",z))),P}}),Y7=P0(($,V)=>{var{StringPrototypeSlice:Q,SymbolIterator:q,TypedArrayPrototypeSet:K,Uint8Array:G}=x0(),{Buffer:U}=L6(),{inspect:J}=W6();V.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(j){let P={data:j,next:null};this.length>0?this.tail.next=P:this.head=P,this.tail=P,++this.length}unshift(j){let P={data:j,next:this.head};this.length===0&&(this.tail=P),this.head=P,++this.length}shift(){if(this.length===0)return;let j=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,j}clear(){this.head=this.tail=null,this.length=0}join(j){if(this.length===0)return"";let P=this.head,z=""+P.data;for(;(P=P.next)!==null;)z+=j+P.data;return z}concat(j){if(this.length===0)return U.alloc(0);let P=U.allocUnsafe(j>>>0),z=this.head,B=0;for(;z;)K(P,z.data,B),B+=z.data.length,z=z.next;return P}consume(j,P){let z=this.head.data;if(j<z.length){let B=z.slice(0,j);return this.head.data=z.slice(j),B}return j===z.length?this.shift():P?this._getString(j):this._getBuffer(j)}first(){return this.head.data}*[q](){for(let j=this.head;j;j=j.next)yield j.data}_getString(j){let P="",z=this.head,B=0;do{let I=z.data;if(j>I.length)P+=I,j-=I.length;else{j===I.length?(P+=I,++B,z.next?this.head=z.next:this.head=this.tail=null):(P+=Q(I,0,j),this.head=z,z.data=Q(I,j));break}++B}while((z=z.next)!==null);return this.length-=B,P}_getBuffer(j){let P=U.allocUnsafe(j),z=j,B=this.head,I=0;do{let R=B.data;if(j>R.length)K(P,R,z-j),j-=R.length;else{j===R.length?(K(P,R,z-j),++I,B.next?this.head=B.next:this.head=this.tail=null):(K(P,new G(R.buffer,R.byteOffset,j),z-j),this.head=B,B.data=R.slice(j));break}++I}while((B=B.next)!==null);return this.length-=I,P}[Symbol.for("nodejs.util.inspect.custom")](j,P){return J(this,{...P,depth:0,customInspect:!1})}}}),s2=P0(($,V)=>{var{MathFloor:Q,NumberIsInteger:q}=x0(),{ERR_INVALID_ARG_VALUE:K}=f0().codes;function G(j,P,z){return j.highWaterMark!=null?j.highWaterMark:P?j[z]:null}function U(j){return j?16:16384}function J(j,P,z,B){let I=G(P,B,z);if(I!=null){if(!q(I)||I<0){let R=B?`options.${z}`:"options.highWaterMark";throw new K(R,I)}return Q(I)}return U(j.objectMode)}V.exports={getHighWaterMark:J,getDefaultHighWaterMark:U}}),K7=P0(($,V)=>{var Q=L6(),q=Q.Buffer;function K(U,J){for(var j in U)J[j]=U[j]}q.from&&q.alloc&&q.allocUnsafe&&q.allocUnsafeSlow?V.exports=Q:(K(Q,$),$.Buffer=G);function G(U,J,j){return q(U,J,j)}G.prototype=Object.create(q.prototype),K(q,G),G.from=function(U,J,j){if(typeof U=="number")throw new TypeError("Argument must not be a number");return q(U,J,j)},G.alloc=function(U,J,j){if(typeof U!="number")throw new TypeError("Argument must be a number");var P=q(U);return J!==void 0?typeof j=="string"?P.fill(J,j):P.fill(J):P.fill(0),P},G.allocUnsafe=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return q(U)},G.allocUnsafeSlow=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Q.SlowBuffer(U)}}),J7=P0(($)=>{var V=K7().Buffer,Q=V.isEncoding||function(Z){switch(Z=""+Z,Z&&Z.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 q(Z){if(!Z)return"utf8";for(var O;;)switch(Z){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 Z;default:if(O)return;Z=(""+Z).toLowerCase(),O=!0}}function K(Z){var O=q(Z);if(typeof O!="string"&&(V.isEncoding===Q||!Q(Z)))throw new Error("Unknown encoding: "+Z);return O||Z}$.StringDecoder=G;function G(Z){this.encoding=K(Z);var O;switch(this.encoding){case"utf16le":this.text=I,this.end=R,O=4;break;case"utf8":this.fillLast=P,O=4;break;case"base64":this.text=x,this.end=S,O=3;break;default:this.write=g,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=V.allocUnsafe(O)}G.prototype.write=function(Z){if(Z.length===0)return"";var O,M;if(this.lastNeed){if(O=this.fillLast(Z),O===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;return M<Z.length?O?O+this.text(Z,M):this.text(Z,M):O||""},G.prototype.end=B,G.prototype.text=z,G.prototype.fillLast=function(Z){if(this.lastNeed<=Z.length)return Z.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Z.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Z.length),this.lastNeed-=Z.length};function U(Z){return Z<=127?0:Z>>5===6?2:Z>>4===14?3:Z>>3===30?4:Z>>6===2?-1:-2}function J(Z,O,M){var A=O.length-1;if(A<M)return 0;var C=U(O[A]);return C>=0?(C>0&&(Z.lastNeed=C-1),C):--A<M||C===-2?0:(C=U(O[A]),C>=0?(C>0&&(Z.lastNeed=C-2),C):--A<M||C===-2?0:(C=U(O[A]),C>=0?(C>0&&(C===2?C=0:Z.lastNeed=C-3),C):0))}function j(Z,O,M){if((O[0]&192)!==128)return Z.lastNeed=0,"�";if(Z.lastNeed>1&&O.length>1){if((O[1]&192)!==128)return Z.lastNeed=1,"�";if(Z.lastNeed>2&&O.length>2&&(O[2]&192)!==128)return Z.lastNeed=2,"�"}}function P(Z){var O=this.lastTotal-this.lastNeed,M=j(this,Z,O);if(M!==void 0)return M;if(this.lastNeed<=Z.length)return Z.copy(this.lastChar,O,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Z.copy(this.lastChar,O,0,Z.length),this.lastNeed-=Z.length}function z(Z,O){var M=J(this,Z,O);if(!this.lastNeed)return Z.toString("utf8",O);this.lastTotal=M;var A=Z.length-(M-this.lastNeed);return Z.copy(this.lastChar,0,A),Z.toString("utf8",O,A)}function B(Z){var O=Z&&Z.length?this.write(Z):"";return this.lastNeed?O+"�":O}function I(Z,O){if((Z.length-O)%2===0){var M=Z.toString("utf16le",O);if(M){var A=M.charCodeAt(M.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Z[Z.length-2],this.lastChar[1]=Z[Z.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Z[Z.length-1],Z.toString("utf16le",O,Z.length-1)}function R(Z){var O=Z&&Z.length?this.write(Z):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return O+this.lastChar.toString("utf16le",0,M)}return O}function x(Z,O){var M=(Z.length-O)%3;return M===0?Z.toString("base64",O):(this.lastNeed=3-M,this.lastTotal=3,M===1?this.lastChar[0]=Z[Z.length-1]:(this.lastChar[0]=Z[Z.length-2],this.lastChar[1]=Z[Z.length-1]),Z.toString("base64",O,Z.length-M))}function S(Z){var O=Z&&Z.length?this.write(Z):"";return this.lastNeed?O+this.lastChar.toString("base64",0,3-this.lastNeed):O}function g(Z){return Z.toString(this.encoding)}function y(Z){return Z&&Z.length?this.write(Z):""}}),p$=P0(($,V)=>{var Q=(g6(),k6(P6)),{PromisePrototypeThen:q,SymbolAsyncIterator:K,SymbolIterator:G}=x0(),{Buffer:U}=L6(),{ERR_INVALID_ARG_TYPE:J,ERR_STREAM_NULL_VALUES:j}=f0().codes;function P(z,B,I){let R;if(typeof B=="string"||B instanceof U)return new z({objectMode:!0,...I,read(){this.push(B),this.push(null)}});let x;if(B&&B[K])x=!0,R=B[K]();else if(B&&B[G])x=!1,R=B[G]();else throw new J("iterable",["Iterable"],B);let S=new z({objectMode:!0,highWaterMark:1,...I}),g=!1;S._read=function(){g||(g=!0,Z())},S._destroy=function(O,M){q(y(O),()=>Q.nextTick(M,O),(A)=>Q.nextTick(M,A||O))};async function y(O){let M=O!=null,A=typeof R.throw=="function";if(M&&A){let{value:C,done:L}=await R.throw(O);if(await C,L)return}if(typeof R.return=="function"){let{value:C}=await R.return();await C}}async function Z(){for(;;){try{let{value:O,done:M}=x?await R.next():R.next();if(M)S.push(null);else{let A=O&&typeof O.then=="function"?await O:O;if(A===null)throw g=!1,new j;if(S.push(A))continue;g=!1}}catch(O){S.destroy(O)}break}}return S}V.exports=P}),t1=P0(($,V)=>{var Q=(g6(),k6(P6)),{ArrayPrototypeIndexOf:q,NumberIsInteger:K,NumberIsNaN:G,NumberParseInt:U,ObjectDefineProperties:J,ObjectKeys:j,ObjectSetPrototypeOf:P,Promise:z,SafeSet:B,SymbolAsyncIterator:I,Symbol:R}=x0();V.exports=k,k.ReadableState=l;var{EventEmitter:x}=n2(),{Stream:S,prependListener:g}=a2(),{Buffer:y}=L6(),{addAbortSignal:Z}=r2(),O=y6(),M=W6().debuglog("stream",(X)=>{M=X}),A=Y7(),C=a6(),{getHighWaterMark:L,getDefaultHighWaterMark:T}=s2(),{aggregateTwoErrors:E,codes:{ERR_INVALID_ARG_TYPE:f,ERR_METHOD_NOT_IMPLEMENTED:b,ERR_OUT_OF_RANGE:F,ERR_STREAM_PUSH_AFTER_EOF:m,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:n}}=f0(),{validateObject:v}=s1(),c=R("kPaused"),{StringDecoder:u}=J7(),i=p$();P(k.prototype,S.prototype),P(k,S);var e=()=>{},{errorOrDestroy:d}=C;function l(X,Y,W){typeof W!="boolean"&&(W=Y instanceof U6()),this.objectMode=!!(X&&X.objectMode),W&&(this.objectMode=this.objectMode||!!(X&&X.readableObjectMode)),this.highWaterMark=X?L(this,X,"readableHighWaterMark",W):T(!1),this.buffer=new A,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[c]=null,this.errorEmitted=!1,this.emitClose=!X||X.emitClose!==!1,this.autoDestroy=!X||X.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=X&&X.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,X&&X.encoding&&(this.decoder=new u(X.encoding),this.encoding=X.encoding)}function k(X){if(!(this instanceof k))return new k(X);let Y=this instanceof U6();this._readableState=new l(X,this,Y),X&&(typeof X.read=="function"&&(this._read=X.read),typeof X.destroy=="function"&&(this._destroy=X.destroy),typeof X.construct=="function"&&(this._construct=X.construct),X.signal&&!Y&&Z(X.signal,this)),S.call(this,X),C.construct(this,()=>{this._readableState.needReadable&&M0(this,this._readableState)})}k.prototype.destroy=C.destroy,k.prototype._undestroy=C.undestroy,k.prototype._destroy=function(X,Y){Y(X)},k.prototype[x.captureRejectionSymbol]=function(X){this.destroy(X)},k.prototype.push=function(X,Y){return r(this,X,Y,!1)},k.prototype.unshift=function(X,Y){return r(this,X,Y,!0)};function r(X,Y,W,H){M("readableAddChunk",Y);let w=X._readableState,h;if(w.objectMode||(typeof Y=="string"?(W=W||w.defaultEncoding,w.encoding!==W&&(H&&w.encoding?Y=y.from(Y,W).toString(w.encoding):(Y=y.from(Y,W),W=""))):Y instanceof y?W="":S._isUint8Array(Y)?(Y=S._uint8ArrayToBuffer(Y),W=""):Y!=null&&(h=new f("chunk",["string","Buffer","Uint8Array"],Y))),h)d(X,h);else if(Y===null)w.reading=!1,G0(X,w);else if(w.objectMode||Y&&Y.length>0)if(H)if(w.endEmitted)d(X,new n);else{if(w.destroyed||w.errored)return!1;t(X,w,Y,!0)}else if(w.ended)d(X,new m);else{if(w.destroyed||w.errored)return!1;w.reading=!1,w.decoder&&!W?(Y=w.decoder.write(Y),w.objectMode||Y.length!==0?t(X,w,Y,!1):M0(X,w)):t(X,w,Y,!1)}else H||(w.reading=!1,M0(X,w));return!w.ended&&(w.length<w.highWaterMark||w.length===0)}function t(X,Y,W,H){Y.flowing&&Y.length===0&&!Y.sync&&X.listenerCount("data")>0?(Y.multiAwaitDrain?Y.awaitDrainWriters.clear():Y.awaitDrainWriters=null,Y.dataEmitted=!0,X.emit("data",W)):(Y.length+=Y.objectMode?1:W.length,H?Y.buffer.unshift(W):Y.buffer.push(W),Y.needReadable&&Y0(X)),M0(X,Y)}k.prototype.isPaused=function(){let X=this._readableState;return X[c]===!0||X.flowing===!1},k.prototype.setEncoding=function(X){let Y=new u(X);this._readableState.decoder=Y,this._readableState.encoding=this._readableState.decoder.encoding;let W=this._readableState.buffer,H="";for(let w of W)H+=Y.write(w);return W.clear(),H!==""&&W.push(H),this._readableState.length=H.length,this};var K0=1073741824;function F0(X){if(X>K0)throw new F("size","<= 1GiB",X);return X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>16,X++,X}function q0(X,Y){return X<=0||Y.length===0&&Y.ended?0:Y.objectMode?1:G(X)?Y.flowing&&Y.length?Y.buffer.first().length:Y.length:X<=Y.length?X:Y.ended?Y.length:0}k.prototype.read=function(X){M("read",X),X===void 0?X=NaN:K(X)||(X=U(X,10));let Y=this._readableState,W=X;if(X>Y.highWaterMark&&(Y.highWaterMark=F0(X)),X!==0&&(Y.emittedReadable=!1),X===0&&Y.needReadable&&((Y.highWaterMark!==0?Y.length>=Y.highWaterMark:Y.length>0)||Y.ended))return M("read: emitReadable",Y.length,Y.ended),Y.length===0&&Y.ended?z0(this):Y0(this),null;if(X=q0(X,Y),X===0&&Y.ended)return Y.length===0&&z0(this),null;let H=Y.needReadable;if(M("need readable",H),(Y.length===0||Y.length-X<Y.highWaterMark)&&(H=!0,M("length less than watermark",H)),Y.ended||Y.reading||Y.destroyed||Y.errored||!Y.constructed)H=!1,M("reading, ended or constructing",H);else if(H){M("do read"),Y.reading=!0,Y.sync=!0,Y.length===0&&(Y.needReadable=!0);try{this._read(Y.highWaterMark)}catch(h){d(this,h)}Y.sync=!1,Y.reading||(X=q0(W,Y))}let w;return X>0?w=X0(X,Y):w=null,w===null?(Y.needReadable=Y.length<=Y.highWaterMark,X=0):(Y.length-=X,Y.multiAwaitDrain?Y.awaitDrainWriters.clear():Y.awaitDrainWriters=null),Y.length===0&&(Y.ended||(Y.needReadable=!0),W!==X&&Y.ended&&z0(this)),w!==null&&!Y.errorEmitted&&!Y.closeEmitted&&(Y.dataEmitted=!0,this.emit("data",w)),w};function G0(X,Y){if(M("onEofChunk"),!Y.ended){if(Y.decoder){let W=Y.decoder.end();W&&W.length&&(Y.buffer.push(W),Y.length+=Y.objectMode?1:W.length)}Y.ended=!0,Y.sync?Y0(X):(Y.needReadable=!1,Y.emittedReadable=!0,H0(X))}}function Y0(X){let Y=X._readableState;M("emitReadable",Y.needReadable,Y.emittedReadable),Y.needReadable=!1,Y.emittedReadable||(M("emitReadable",Y.flowing),Y.emittedReadable=!0,Q.nextTick(H0,X))}function H0(X){let Y=X._readableState;M("emitReadable_",Y.destroyed,Y.length,Y.ended),!Y.destroyed&&!Y.errored&&(Y.length||Y.ended)&&(X.emit("readable"),Y.emittedReadable=!1),Y.needReadable=!Y.flowing&&!Y.ended&&Y.length<=Y.highWaterMark,a(X)}function M0(X,Y){!Y.readingMore&&Y.constructed&&(Y.readingMore=!0,Q.nextTick(Q0,X,Y))}function Q0(X,Y){for(;!Y.reading&&!Y.ended&&(Y.length<Y.highWaterMark||Y.flowing&&Y.length===0);){let W=Y.length;if(M("maybeReadMore read 0"),X.read(0),W===Y.length)break}Y.readingMore=!1}k.prototype._read=function(X){throw new b("_read()")},k.prototype.pipe=function(X,Y){let W=this,H=this._readableState;H.pipes.length===1&&(H.multiAwaitDrain||(H.multiAwaitDrain=!0,H.awaitDrainWriters=new B(H.awaitDrainWriters?[H.awaitDrainWriters]:[]))),H.pipes.push(X),M("pipe count=%d opts=%j",H.pipes.length,Y);let w=(!Y||Y.end!==!1)&&X!==Q.stdout&&X!==Q.stderr?o:M1;H.endEmitted?Q.nextTick(w):W.once("end",w),X.on("unpipe",h);function h(S6,G6){M("onunpipe"),S6===W&&G6&&G6.hasUnpiped===!1&&(G6.hasUnpiped=!0,L0())}function o(){M("onend"),X.end()}let W0,R0=!1;function L0(){M("cleanup"),X.removeListener("close",l2),X.removeListener("finish",o2),W0&&X.removeListener("drain",W0),X.removeListener("error",d2),X.removeListener("unpipe",h),W.removeListener("end",o),W.removeListener("end",M1),W.removeListener("data",w0),R0=!0,W0&&H.awaitDrainWriters&&(!X._writableState||X._writableState.needDrain)&&W0()}function Z0(){R0||(H.pipes.length===1&&H.pipes[0]===X?(M("false write response, pause",0),H.awaitDrainWriters=X,H.multiAwaitDrain=!1):H.pipes.length>1&&H.pipes.includes(X)&&(M("false write response, pause",H.awaitDrainWriters.size),H.awaitDrainWriters.add(X)),W.pause()),W0||(W0=B0(W,X),X.on("drain",W0))}W.on("data",w0);function w0(S6){M("ondata");let G6=X.write(S6);M("dest.write",G6),G6===!1&&Z0()}function d2(S6){if(M("onerror",S6),M1(),X.removeListener("error",d2),X.listenerCount("error")===0){let G6=X._writableState||X._readableState;G6&&!G6.errorEmitted?d(X,S6):X.emit("error",S6)}}g(X,"error",d2);function l2(){X.removeListener("finish",o2),M1()}X.once("close",l2);function o2(){M("onfinish"),X.removeListener("close",l2),M1()}X.once("finish",o2);function M1(){M("unpipe"),W.unpipe(X)}return X.emit("pipe",W),X.writableNeedDrain===!0?H.flowing&&Z0():H.flowing||(M("pipe resume"),W.resume()),X};function B0(X,Y){return function(){let W=X._readableState;W.awaitDrainWriters===Y?(M("pipeOnDrain",1),W.awaitDrainWriters=null):W.multiAwaitDrain&&(M("pipeOnDrain",W.awaitDrainWriters.size),W.awaitDrainWriters.delete(Y)),(!W.awaitDrainWriters||W.awaitDrainWriters.size===0)&&X.listenerCount("data")&&X.resume()}}k.prototype.unpipe=function(X){let Y=this._readableState,W={hasUnpiped:!1};if(Y.pipes.length===0)return this;if(!X){let w=Y.pipes;Y.pipes=[],this.pause();for(let h=0;h<w.length;h++)w[h].emit("unpipe",this,{hasUnpiped:!1});return this}let H=q(Y.pipes,X);return H===-1?this:(Y.pipes.splice(H,1),Y.pipes.length===0&&this.pause(),X.emit("unpipe",this,W),this)},k.prototype.on=function(X,Y){let W=S.prototype.on.call(this,X,Y),H=this._readableState;return X==="data"?(H.readableListening=this.listenerCount("readable")>0,H.flowing!==!1&&this.resume()):X==="readable"&&!H.endEmitted&&!H.readableListening&&(H.readableListening=H.needReadable=!0,H.flowing=!1,H.emittedReadable=!1,M("on readable",H.length,H.reading),H.length?Y0(this):H.reading||Q.nextTick(D,this)),W},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(X,Y){let W=S.prototype.removeListener.call(this,X,Y);return X==="readable"&&Q.nextTick(p,this),W},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(X){let Y=S.prototype.removeAllListeners.apply(this,arguments);return(X==="readable"||X===void 0)&&Q.nextTick(p,this),Y};function p(X){let Y=X._readableState;Y.readableListening=X.listenerCount("readable")>0,Y.resumeScheduled&&Y[c]===!1?Y.flowing=!0:X.listenerCount("data")>0?X.resume():Y.readableListening||(Y.flowing=null)}function D(X){M("readable nexttick read 0"),X.read(0)}k.prototype.resume=function(){let X=this._readableState;return X.flowing||(M("resume"),X.flowing=!X.readableListening,N(this,X)),X[c]=!1,this};function N(X,Y){Y.resumeScheduled||(Y.resumeScheduled=!0,Q.nextTick(_,X,Y))}function _(X,Y){M("resume",Y.reading),Y.reading||X.read(0),Y.resumeScheduled=!1,X.emit("resume"),a(X),Y.flowing&&!Y.reading&&X.read(0)}k.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[c]=!0,this};function a(X){let Y=X._readableState;for(M("flow",Y.flowing);Y.flowing&&X.read()!==null;);}k.prototype.wrap=function(X){let Y=!1;X.on("data",(H)=>{!this.push(H)&&X.pause&&(Y=!0,X.pause())}),X.on("end",()=>{this.push(null)}),X.on("error",(H)=>{d(this,H)}),X.on("close",()=>{this.destroy()}),X.on("destroy",()=>{this.destroy()}),this._read=()=>{Y&&X.resume&&(Y=!1,X.resume())};let W=j(X);for(let H=1;H<W.length;H++){let w=W[H];this[w]===void 0&&typeof X[w]=="function"&&(this[w]=X[w].bind(X))}return this},k.prototype[I]=function(){return s(this)},k.prototype.iterator=function(X){return X!==void 0&&v(X,"options"),s(this,X)};function s(X,Y){typeof X.read!="function"&&(X=k.wrap(X,{objectMode:!0}));let W=U0(X,Y);return W.stream=X,W}async function*U0(X,Y){let W=e;function H(o){this===X?(W(),W=e):W=o}X.on("readable",H);let w,h=O(X,{writable:!1},(o)=>{w=o?E(w,o):null,W(),W=e});try{for(;;){let o=X.destroyed?null:X.read();if(o!==null)yield o;else{if(w)throw w;if(w===null)return;await new z(H)}}}catch(o){throw w=E(w,o),w}finally{(w||Y?.destroyOnReturn!==!1)&&(w===void 0||X._readableState.autoDestroy)?C.destroyer(X,null):(X.off("readable",H),h())}}J(k.prototype,{readable:{__proto__:null,get(){let X=this._readableState;return!!X&&X.readable!==!1&&!X.destroyed&&!X.errorEmitted&&!X.endEmitted},set(X){this._readableState&&(this._readableState.readable=!!X)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(X){this._readableState&&(this._readableState.flowing=X)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(X){!this._readableState||(this._readableState.destroyed=X)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),J(l.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[c]!==!1},set(X){this[c]=!!X}}}),k._fromList=X0;function X0(X,Y){if(Y.length===0)return null;let W;return Y.objectMode?W=Y.buffer.shift():!X||X>=Y.length?(Y.decoder?W=Y.buffer.join(""):Y.buffer.length===1?W=Y.buffer.first():W=Y.buffer.concat(Y.length),Y.buffer.clear()):W=Y.buffer.consume(X,Y.decoder),W}function z0(X){let Y=X._readableState;M("endReadable",Y.endEmitted),Y.endEmitted||(Y.ended=!0,Q.nextTick(b0,Y,X))}function b0(X,Y){if(M("endReadableNT",X.endEmitted,X.length),!X.errored&&!X.closeEmitted&&!X.endEmitted&&X.length===0){if(X.endEmitted=!0,Y.emit("end"),Y.writable&&Y.allowHalfOpen===!1)Q.nextTick(J6,Y);else if(X.autoDestroy){let W=Y._writableState;(!W||W.autoDestroy&&(W.finished||W.writable===!1))&&Y.destroy()}}}function J6(X){X.writable&&!X.writableEnded&&!X.destroyed&&X.end()}k.from=function(X,Y){return i(k,X,Y)};var C0;function i1(){return C0===void 0&&(C0={}),C0}k.fromWeb=function(X,Y){return i1().newStreamReadableFromReadableStream(X,Y)},k.toWeb=function(X,Y){return i1().newReadableStreamFromStreamReadable(X,Y)},k.wrap=function(X,Y){var W,H;return new k({objectMode:(W=(H=X.readableObjectMode)!==null&&H!==void 0?H:X.objectMode)!==null&&W!==void 0?W:!0,...Y,destroy(w,h){C.destroyer(X,w),h(w)}}).wrap(X)}}),c$=P0(($,V)=>{var Q=(g6(),k6(P6)),{ArrayPrototypeSlice:q,Error:K,FunctionPrototypeSymbolHasInstance:G,ObjectDefineProperty:U,ObjectDefineProperties:J,ObjectSetPrototypeOf:j,StringPrototypeToLowerCase:P,Symbol:z,SymbolHasInstance:B}=x0();V.exports=u,u.WritableState=v;var{EventEmitter:I}=n2(),R=a2().Stream,{Buffer:x}=L6(),S=a6(),{addAbortSignal:g}=r2(),{getHighWaterMark:y,getDefaultHighWaterMark:Z}=s2(),{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:M,ERR_MULTIPLE_CALLBACK:A,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:L,ERR_STREAM_ALREADY_FINISHED:T,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:f,ERR_UNKNOWN_ENCODING:b}=f0().codes,{errorOrDestroy:F}=S;j(u.prototype,R.prototype),j(u,R);function m(){}var n=z("kOnFinished");function v(D,N,_){typeof _!="boolean"&&(_=N instanceof U6()),this.objectMode=!!(D&&D.objectMode),_&&(this.objectMode=this.objectMode||!!(D&&D.writableObjectMode)),this.highWaterMark=D?y(this,D,"writableHighWaterMark",_):Z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let a=!!(D&&D.decodeStrings===!1);this.decodeStrings=!a,this.defaultEncoding=D&&D.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=k.bind(void 0,N),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,c(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!D||D.emitClose!==!1,this.autoDestroy=!D||D.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[n]=[]}function c(D){D.buffered=[],D.bufferedIndex=0,D.allBuffers=!0,D.allNoop=!0}v.prototype.getBuffer=function(){return q(this.buffered,this.bufferedIndex)},U(v.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function u(D){let N=this instanceof U6();if(!N&&!G(u,this))return new u(D);this._writableState=new v(D,this,N),D&&(typeof D.write=="function"&&(this._write=D.write),typeof D.writev=="function"&&(this._writev=D.writev),typeof D.destroy=="function"&&(this._destroy=D.destroy),typeof D.final=="function"&&(this._final=D.final),typeof D.construct=="function"&&(this._construct=D.construct),D.signal&&g(D.signal,this)),R.call(this,D),S.construct(this,()=>{let _=this._writableState;_.writing||F0(this,_),H0(this,_)})}U(u,B,{__proto__:null,value:function(D){return G(this,D)?!0:this!==u?!1:D&&D._writableState instanceof v}}),u.prototype.pipe=function(){F(this,new C)};function i(D,N,_,a){let s=D._writableState;if(typeof _=="function")a=_,_=s.defaultEncoding;else{if(!_)_=s.defaultEncoding;else if(_!=="buffer"&&!x.isEncoding(_))throw new b(_);typeof a!="function"&&(a=m)}if(N===null)throw new E;if(!s.objectMode)if(typeof N=="string")s.decodeStrings!==!1&&(N=x.from(N,_),_="buffer");else if(N instanceof x)_="buffer";else if(R._isUint8Array(N))N=R._uint8ArrayToBuffer(N),_="buffer";else throw new O("chunk",["string","Buffer","Uint8Array"],N);let U0;return s.ending?U0=new f:s.destroyed&&(U0=new L("write")),U0?(Q.nextTick(a,U0),F(D,U0,!0),U0):(s.pendingcb++,e(D,s,N,_,a))}u.prototype.write=function(D,N,_){return i(this,D,N,_)===!0},u.prototype.cork=function(){this._writableState.corked++},u.prototype.uncork=function(){let D=this._writableState;D.corked&&(D.corked--,D.writing||F0(this,D))},u.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=P(D)),!x.isEncoding(D))throw new b(D);return this._writableState.defaultEncoding=D,this};function e(D,N,_,a,s){let U0=N.objectMode?1:_.length;N.length+=U0;let X0=N.length<N.highWaterMark;return X0||(N.needDrain=!0),N.writing||N.corked||N.errored||!N.constructed?(N.buffered.push({chunk:_,encoding:a,callback:s}),N.allBuffers&&a!=="buffer"&&(N.allBuffers=!1),N.allNoop&&s!==m&&(N.allNoop=!1)):(N.writelen=U0,N.writecb=s,N.writing=!0,N.sync=!0,D._write(_,a,N.onwrite),N.sync=!1),X0&&!N.errored&&!N.destroyed}function d(D,N,_,a,s,U0,X0){N.writelen=a,N.writecb=X0,N.writing=!0,N.sync=!0,N.destroyed?N.onwrite(new L("write")):_?D._writev(s,N.onwrite):D._write(s,U0,N.onwrite),N.sync=!1}function l(D,N,_,a){--N.pendingcb,a(_),K0(N),F(D,_)}function k(D,N){let _=D._writableState,a=_.sync,s=_.writecb;if(typeof s!="function"){F(D,new A);return}_.writing=!1,_.writecb=null,_.length-=_.writelen,_.writelen=0,N?(N.stack,_.errored||(_.errored=N),D._readableState&&!D._readableState.errored&&(D._readableState.errored=N),a?Q.nextTick(l,D,_,N,s):l(D,_,N,s)):(_.buffered.length>_.bufferedIndex&&F0(D,_),a?_.afterWriteTickInfo!==null&&_.afterWriteTickInfo.cb===s?_.afterWriteTickInfo.count++:(_.afterWriteTickInfo={count:1,cb:s,stream:D,state:_},Q.nextTick(r,_.afterWriteTickInfo)):t(D,_,1,s))}function r({stream:D,state:N,count:_,cb:a}){return N.afterWriteTickInfo=null,t(D,N,_,a)}function t(D,N,_,a){for(!N.ending&&!D.destroyed&&N.length===0&&N.needDrain&&(N.needDrain=!1,D.emit("drain"));_-- >0;)N.pendingcb--,a();N.destroyed&&K0(N),H0(D,N)}function K0(D){if(D.writing)return;for(let s=D.bufferedIndex;s<D.buffered.length;++s){var N;let{chunk:U0,callback:X0}=D.buffered[s],z0=D.objectMode?1:U0.length;D.length-=z0,X0((N=D.errored)!==null&&N!==void 0?N:new L("write"))}let _=D[n].splice(0);for(let s=0;s<_.length;s++){var a;_[s]((a=D.errored)!==null&&a!==void 0?a:new L("end"))}c(D)}function F0(D,N){if(N.corked||N.bufferProcessing||N.destroyed||!N.constructed)return;let{buffered:_,bufferedIndex:a,objectMode:s}=N,U0=_.length-a;if(!U0)return;let X0=a;if(N.bufferProcessing=!0,U0>1&&D._writev){N.pendingcb-=U0-1;let z0=N.allNoop?m:(J6)=>{for(let C0=X0;C0<_.length;++C0)_[C0].callback(J6)},b0=N.allNoop&&X0===0?_:q(_,X0);b0.allBuffers=N.allBuffers,d(D,N,!0,N.length,b0,"",z0),c(N)}else{do{let{chunk:z0,encoding:b0,callback:J6}=_[X0];_[X0++]=null;let C0=s?1:z0.length;d(D,N,!1,C0,z0,b0,J6)}while(X0<_.length&&!N.writing);X0===_.length?c(N):X0>256?(_.splice(0,X0),N.bufferedIndex=0):N.bufferedIndex=X0}N.bufferProcessing=!1}u.prototype._write=function(D,N,_){if(this._writev)this._writev([{chunk:D,encoding:N}],_);else throw new M("_write()")},u.prototype._writev=null,u.prototype.end=function(D,N,_){let a=this._writableState;typeof D=="function"?(_=D,D=null,N=null):typeof N=="function"&&(_=N,N=null);let s;if(D!=null){let U0=i(this,D,N);U0 instanceof K&&(s=U0)}return a.corked&&(a.corked=1,this.uncork()),s||(!a.errored&&!a.ending?(a.ending=!0,H0(this,a,!0),a.ended=!0):a.finished?s=new T("end"):a.destroyed&&(s=new L("end"))),typeof _=="function"&&(s||a.finished?Q.nextTick(_,s):a[n].push(_)),this};function q0(D){return D.ending&&!D.destroyed&&D.constructed&&D.length===0&&!D.errored&&D.buffered.length===0&&!D.finished&&!D.writing&&!D.errorEmitted&&!D.closeEmitted}function G0(D,N){let _=!1;function a(s){if(_){F(D,s??A());return}if(_=!0,N.pendingcb--,s){let U0=N[n].splice(0);for(let X0=0;X0<U0.length;X0++)U0[X0](s);F(D,s,N.sync)}else q0(N)&&(N.prefinished=!0,D.emit("prefinish"),N.pendingcb++,Q.nextTick(M0,D,N))}N.sync=!0,N.pendingcb++;try{D._final(a)}catch(s){a(s)}N.sync=!1}function Y0(D,N){!N.prefinished&&!N.finalCalled&&(typeof D._final=="function"&&!N.destroyed?(N.finalCalled=!0,G0(D,N)):(N.prefinished=!0,D.emit("prefinish")))}function H0(D,N,_){q0(N)&&(Y0(D,N),N.pendingcb===0&&(_?(N.pendingcb++,Q.nextTick((a,s)=>{q0(s)?M0(a,s):s.pendingcb--},D,N)):q0(N)&&(N.pendingcb++,M0(D,N))))}function M0(D,N){N.pendingcb--,N.finished=!0;let _=N[n].splice(0);for(let a=0;a<_.length;a++)_[a]();if(D.emit("finish"),N.autoDestroy){let a=D._readableState;(!a||a.autoDestroy&&(a.endEmitted||a.readable===!1))&&D.destroy()}}J(u.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(D){this._writableState&&(this._writableState.destroyed=D)}},writable:{__proto__:null,get(){let D=this._writableState;return!!D&&D.writable!==!1&&!D.destroyed&&!D.errored&&!D.ending&&!D.ended},set(D){this._writableState&&(this._writableState.writable=!!D)}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let D=this._writableState;return D?!D.destroyed&&!D.ending&&D.needDrain:!1}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Q0=S.destroy;u.prototype.destroy=function(D,N){let _=this._writableState;return!_.destroyed&&(_.bufferedIndex<_.buffered.length||_[n].length)&&Q.nextTick(K0,_),Q0.call(this,D,N),this},u.prototype._undestroy=S.undestroy,u.prototype._destroy=function(D,N){N(D)},u.prototype[I.captureRejectionSymbol]=function(D){this.destroy(D)};var B0;function p(){return B0===void 0&&(B0={}),B0}u.fromWeb=function(D,N){return p().newStreamWritableFromWritableStream(D,N)},u.toWeb=function(D){return p().newWritableStreamFromStreamWritable(D)}}),G7=P0(($,V)=>{var Q=(g6(),k6(P6)),q=L6(),{isReadable:K,isWritable:G,isIterable:U,isNodeStream:J,isReadableNodeStream:j,isWritableNodeStream:P,isDuplexNodeStream:z}=E6(),B=y6(),{AbortError:I,codes:{ERR_INVALID_ARG_TYPE:R,ERR_INVALID_RETURN_VALUE:x}}=f0(),{destroyer:S}=a6(),g=U6(),y=t1(),{createDeferredPromise:Z}=W6(),O=p$(),M=globalThis.Blob||q.Blob,A=typeof M<"u"?function(b){return b instanceof M}:function(b){return!1},C=globalThis.AbortController||i2().AbortController,{FunctionPrototypeCall:L}=x0(),T=class extends g{constructor(b){super(b),b?.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),b?.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};V.exports=function b(F,m){if(z(F))return F;if(j(F))return f({readable:F});if(P(F))return f({writable:F});if(J(F))return f({writable:!1,readable:!1});if(typeof F=="function"){let{value:v,write:c,final:u,destroy:i}=E(F);if(U(v))return O(T,v,{objectMode:!0,write:c,final:u,destroy:i});let e=v?.then;if(typeof e=="function"){let d,l=L(e,v,(k)=>{if(k!=null)throw new x("nully","body",k)},(k)=>{S(d,k)});return d=new T({objectMode:!0,readable:!1,write:c,final(k){u(async()=>{try{await l,Q.nextTick(k,null)}catch(r){Q.nextTick(k,r)}})},destroy:i})}throw new x("Iterable, AsyncIterable or AsyncFunction",m,v)}if(A(F))return b(F.arrayBuffer());if(U(F))return O(T,F,{objectMode:!0,writable:!1});if(typeof F?.writable=="object"||typeof F?.readable=="object"){let v=F!=null&&F.readable?j(F?.readable)?F?.readable:b(F.readable):void 0,c=F!=null&&F.writable?P(F?.writable)?F?.writable:b(F.writable):void 0;return f({readable:v,writable:c})}let n=F?.then;if(typeof n=="function"){let v;return L(n,F,(c)=>{c!=null&&v.push(c),v.push(null)},(c)=>{S(v,c)}),v=new T({objectMode:!0,writable:!1,read(){}})}throw new R(m,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],F)};function E(b){let{promise:F,resolve:m}=Z(),n=new C,v=n.signal;return{value:b(async function*(){for(;;){let c=F;F=null;let{chunk:u,done:i,cb:e}=await c;if(Q.nextTick(e),i)return;if(v.aborted)throw new I(void 0,{cause:v.reason});({promise:F,resolve:m}=Z()),yield u}}(),{signal:v}),write(c,u,i){let e=m;m=null,e({chunk:c,done:!1,cb:i})},final(c){let u=m;m=null,u({done:!0,cb:c})},destroy(c,u){n.abort(),u(c)}}}function f(b){let F=b.readable&&typeof b.readable.read!="function"?y.wrap(b.readable):b.readable,m=b.writable,n=!!K(F),v=!!G(m),c,u,i,e,d;function l(k){let r=e;e=null,r?r(k):k?d.destroy(k):!n&&!v&&d.destroy()}return d=new T({readableObjectMode:!!(F!=null&&F.readableObjectMode),writableObjectMode:!!(m!=null&&m.writableObjectMode),readable:n,writable:v}),v&&(B(m,(k)=>{v=!1,k&&S(F,k),l(k)}),d._write=function(k,r,t){m.write(k,r)?t():c=t},d._final=function(k){m.end(),u=k},m.on("drain",function(){if(c){let k=c;c=null,k()}}),m.on("finish",function(){if(u){let k=u;u=null,k()}})),n&&(B(F,(k)=>{n=!1,k&&S(F,k),l(k)}),F.on("readable",function(){if(i){let k=i;i=null,k()}}),F.on("end",function(){d.push(null)}),d._read=function(){for(;;){let k=F.read();if(k===null){i=d._read;return}if(!d.push(k))return}}),d._destroy=function(k,r){!k&&e!==null&&(k=new I),i=null,c=null,u=null,e===null?r(k):(e=r,S(m,k),S(F,k))},d}}),U6=P0(($,V)=>{var{ObjectDefineProperties:Q,ObjectGetOwnPropertyDescriptor:q,ObjectKeys:K,ObjectSetPrototypeOf:G}=x0();V.exports=j;var U=t1(),J=c$();G(j.prototype,U.prototype),G(j,U);{let I=K(J.prototype);for(let R=0;R<I.length;R++){let x=I[R];j.prototype[x]||(j.prototype[x]=J.prototype[x])}}function j(I){if(!(this instanceof j))return new j(I);U.call(this,I),J.call(this,I),I?(this.allowHalfOpen=I.allowHalfOpen!==!1,I.readable===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),I.writable===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}Q(j.prototype,{writable:{__proto__:null,...q(J.prototype,"writable")},writableHighWaterMark:{__proto__:null,...q(J.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...q(J.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...q(J.prototype,"writableBuffer")},writableLength:{__proto__:null,...q(J.prototype,"writableLength")},writableFinished:{__proto__:null,...q(J.prototype,"writableFinished")},writableCorked:{__proto__:null,...q(J.prototype,"writableCorked")},writableEnded:{__proto__:null,...q(J.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...q(J.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set(I){this._readableState&&this._writableState&&(this._readableState.destroyed=I,this._writableState.destroyed=I)}}});var P;function z(){return P===void 0&&(P={}),P}j.fromWeb=function(I,R){return z().newStreamDuplexFromReadableWritablePair(I,R)},j.toWeb=function(I){return z().newReadableWritablePairFromDuplex(I)};var B;j.from=function(I){return B||(B=G7()),B(I,"body")}}),u$=P0(($,V)=>{var{ObjectSetPrototypeOf:Q,Symbol:q}=x0();V.exports=j;var{ERR_METHOD_NOT_IMPLEMENTED:K}=f0().codes,G=U6(),{getHighWaterMark:U}=s2();Q(j.prototype,G.prototype),Q(j,G);var J=q("kCallback");function j(B){if(!(this instanceof j))return new j(B);let I=B?U(this,B,"readableHighWaterMark",!0):null;I===0&&(B={...B,highWaterMark:null,readableHighWaterMark:I,writableHighWaterMark:B.writableHighWaterMark||0}),G.call(this,B),this._readableState.sync=!1,this[J]=null,B&&(typeof B.transform=="function"&&(this._transform=B.transform),typeof B.flush=="function"&&(this._flush=B.flush)),this.on("prefinish",z)}function P(B){typeof this._flush=="function"&&!this.destroyed?this._flush((I,R)=>{if(I){B?B(I):this.destroy(I);return}R!=null&&this.push(R),this.push(null),B&&B()}):(this.push(null),B&&B())}function z(){this._final!==P&&P.call(this)}j.prototype._final=P,j.prototype._transform=function(B,I,R){throw new K("_transform()")},j.prototype._write=function(B,I,R){let x=this._readableState,S=this._writableState,g=x.length;this._transform(B,I,(y,Z)=>{if(y){R(y);return}Z!=null&&this.push(Z),S.ended||g===x.length||x.length<x.highWaterMark?R():this[J]=R})},j.prototype._read=function(){if(this[J]){let B=this[J];this[J]=null,B()}}}),d$=P0(($,V)=>{var{ObjectSetPrototypeOf:Q}=x0();V.exports=K;var q=u$();Q(K.prototype,q.prototype),Q(K,q);function K(G){if(!(this instanceof K))return new K(G);q.call(this,G)}K.prototype._transform=function(G,U,J){J(null,G)}}),t2=P0(($,V)=>{var Q=(g6(),k6(P6)),{ArrayIsArray:q,Promise:K,SymbolAsyncIterator:G}=x0(),U=y6(),{once:J}=W6(),j=a6(),P=U6(),{aggregateTwoErrors:z,codes:{ERR_INVALID_ARG_TYPE:B,ERR_INVALID_RETURN_VALUE:I,ERR_MISSING_ARGS:R,ERR_STREAM_DESTROYED:x,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:g}=f0(),{validateFunction:y,validateAbortSignal:Z}=s1(),{isIterable:O,isReadable:M,isReadableNodeStream:A,isNodeStream:C}=E6(),L=globalThis.AbortController||i2().AbortController,T,E;function f(i,e,d){let l=!1;i.on("close",()=>{l=!0});let k=U(i,{readable:e,writable:d},(r)=>{l=!r});return{destroy:(r)=>{l||(l=!0,j.destroyer(i,r||new x("pipe")))},cleanup:k}}function b(i){return y(i[i.length-1],"streams[stream.length - 1]"),i.pop()}function F(i){if(O(i))return i;if(A(i))return m(i);throw new B("val",["Readable","Iterable","AsyncIterable"],i)}async function*m(i){E||(E=t1()),yield*E.prototype[G].call(i)}async function n(i,e,d,{end:l}){let k,r=null,t=(q0)=>{if(q0&&(k=q0),r){let G0=r;r=null,G0()}},K0=()=>new K((q0,G0)=>{k?G0(k):r=()=>{k?G0(k):q0()}});e.on("drain",t);let F0=U(e,{readable:!1},t);try{e.writableNeedDrain&&await K0();for await(let q0 of i)e.write(q0)||await K0();l&&e.end(),await K0(),d()}catch(q0){d(k!==q0?z(k,q0):q0)}finally{F0(),e.off("drain",t)}}function v(...i){return c(i,J(b(i)))}function c(i,e,d){if(i.length===1&&q(i[0])&&(i=i[0]),i.length<2)throw new R("streams");let l=new L,k=l.signal,r=d?.signal,t=[];Z(r,"options.signal");function K0(){M0(new g)}r?.addEventListener("abort",K0);let F0,q0,G0=[],Y0=0;function H0(D){M0(D,--Y0===0)}function M0(D,N){if(D&&(!F0||F0.code==="ERR_STREAM_PREMATURE_CLOSE")&&(F0=D),!(!F0&&!N)){for(;G0.length;)G0.shift()(F0);r?.removeEventListener("abort",K0),l.abort(),N&&(F0||t.forEach((_)=>_()),Q.nextTick(e,F0,q0))}}let Q0;for(let D=0;D<i.length;D++){let N=i[D],_=D<i.length-1,a=D>0,s=_||d?.end!==!1,U0=D===i.length-1;if(C(N)){let X0=function(z0){z0&&z0.name!=="AbortError"&&z0.code!=="ERR_STREAM_PREMATURE_CLOSE"&&H0(z0)};var B0=X0;if(s){let{destroy:z0,cleanup:b0}=f(N,_,a);G0.push(z0),M(N)&&U0&&t.push(b0)}N.on("error",X0),M(N)&&U0&&t.push(()=>{N.removeListener("error",X0)})}if(D===0)if(typeof N=="function"){if(Q0=N({signal:k}),!O(Q0))throw new I("Iterable, AsyncIterable or Stream","source",Q0)}else O(N)||A(N)?Q0=N:Q0=P.from(N);else if(typeof N=="function")if(Q0=F(Q0),Q0=N(Q0,{signal:k}),_){if(!O(Q0,!0))throw new I("AsyncIterable",`transform[${D-1}]`,Q0)}else{var p;T||(T=d$());let X0=new T({objectMode:!0}),z0=(p=Q0)===null||p===void 0?void 0:p.then;if(typeof z0=="function")Y0++,z0.call(Q0,(C0)=>{q0=C0,C0!=null&&X0.write(C0),s&&X0.end(),Q.nextTick(H0)},(C0)=>{X0.destroy(C0),Q.nextTick(H0,C0)});else if(O(Q0,!0))Y0++,n(Q0,X0,H0,{end:s});else throw new I("AsyncIterable or Promise","destination",Q0);Q0=X0;let{destroy:b0,cleanup:J6}=f(Q0,!1,!0);G0.push(b0),U0&&t.push(J6)}else if(C(N)){if(A(Q0)){Y0+=2;let X0=u(Q0,N,H0,{end:s});M(N)&&U0&&t.push(X0)}else if(O(Q0))Y0++,n(Q0,N,H0,{end:s});else throw new B("val",["Readable","Iterable","AsyncIterable"],Q0);Q0=N}else Q0=P.from(N)}return(k!=null&&k.aborted||r!=null&&r.aborted)&&Q.nextTick(K0),Q0}function u(i,e,d,{end:l}){let k=!1;return e.on("close",()=>{k||d(new S)}),i.pipe(e,{end:l}),l?i.once("end",()=>{k=!0,e.end()}):d(),U(i,{readable:!0,writable:!1},(r)=>{let t=i._readableState;r&&r.code==="ERR_STREAM_PREMATURE_CLOSE"&&t&&t.ended&&!t.errored&&!t.errorEmitted?i.once("end",d).once("error",d):d(r)}),U(e,{readable:!1,writable:!0},d)}V.exports={pipelineImpl:c,pipeline:v}}),W7=P0(($,V)=>{var{pipeline:Q}=t2(),q=U6(),{destroyer:K}=a6(),{isNodeStream:G,isReadable:U,isWritable:J}=E6(),{AbortError:j,codes:{ERR_INVALID_ARG_VALUE:P,ERR_MISSING_ARGS:z}}=f0();V.exports=function(...B){if(B.length===0)throw new z("streams");if(B.length===1)return q.from(B[0]);let I=[...B];if(typeof B[0]=="function"&&(B[0]=q.from(B[0])),typeof B[B.length-1]=="function"){let L=B.length-1;B[L]=q.from(B[L])}for(let L=0;L<B.length;++L)if(G(B[L])){if(L<B.length-1&&!U(B[L]))throw new P(`streams[${L}]`,I[L],"must be readable");if(L>0&&!J(B[L]))throw new P(`streams[${L}]`,I[L],"must be writable")}let R,x,S,g,y;function Z(L){let T=g;g=null,T?T(L):L?y.destroy(L):!C&&!A&&y.destroy()}let O=B[0],M=Q(B,Z),A=!!J(O),C=!!U(M);return y=new q({writableObjectMode:!!(O!=null&&O.writableObjectMode),readableObjectMode:!!(M!=null&&M.writableObjectMode),writable:A,readable:C}),A&&(y._write=function(L,T,E){O.write(L,T)?E():R=E},y._final=function(L){O.end(),x=L},O.on("drain",function(){if(R){let L=R;R=null,L()}}),M.on("finish",function(){if(x){let L=x;x=null,L()}})),C&&(M.on("readable",function(){if(S){let L=S;S=null,L()}}),M.on("end",function(){y.push(null)}),y._read=function(){for(;;){let L=M.read();if(L===null){S=y._read;return}if(!y.push(L))return}}),y._destroy=function(L,T){!L&&g!==null&&(L=new j),S=null,R=null,x=null,g===null?T(L):(g=T,K(M,L))},y}}),l$=P0(($,V)=>{var{ArrayPrototypePop:Q,Promise:q}=x0(),{isIterable:K,isNodeStream:G}=E6(),{pipelineImpl:U}=t2(),{finished:J}=y6();function j(...P){return new q((z,B)=>{let I,R,x=P[P.length-1];if(x&&typeof x=="object"&&!G(x)&&!K(x)){let S=Q(P);I=S.signal,R=S.end}U(P,(S,g)=>{S?B(S):z(g)},{signal:I,end:R})})}V.exports={finished:J,pipeline:j}}),U7=P0(($,V)=>{var{Buffer:Q}=L6(),{ObjectDefineProperty:q,ObjectKeys:K,ReflectApply:G}=x0(),{promisify:{custom:U}}=W6(),{streamReturningOperators:J,promiseReturningOperators:j}=X7(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:P}}=f0(),z=W7(),{pipeline:B}=t2(),{destroyer:I}=a6(),R=y6(),x=l$(),S=E6(),g=V.exports=a2().Stream;g.isDisturbed=S.isDisturbed,g.isErrored=S.isErrored,g.isReadable=S.isReadable,g.Readable=t1();for(let O of K(J)){let M=function(...C){if(new.target)throw P();return g.Readable.from(G(A,this,C))};y=M;let A=J[O];q(M,"name",{__proto__:null,value:A.name}),q(M,"length",{__proto__:null,value:A.length}),q(g.Readable.prototype,O,{__proto__:null,value:M,enumerable:!1,configurable:!0,writable:!0})}var y;for(let O of K(j)){let M=function(...C){if(new.target)throw P();return G(A,this,C)};y=M;let A=j[O];q(M,"name",{__proto__:null,value:A.name}),q(M,"length",{__proto__:null,value:A.length}),q(g.Readable.prototype,O,{__proto__:null,value:M,enumerable:!1,configurable:!0,writable:!0})}var y;g.Writable=c$(),g.Duplex=U6(),g.Transform=u$(),g.PassThrough=d$(),g.pipeline=B;var{addAbortSignal:Z}=r2();g.addAbortSignal=Z,g.finished=R,g.destroy=I,g.compose=z,q(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return x}}),q(B,U,{__proto__:null,enumerable:!0,get(){return x.pipeline}}),q(R,U,{__proto__:null,enumerable:!0,get(){return x.finished}}),g.Stream=g,g._isUint8Array=function(O){return O instanceof Uint8Array},g._uint8ArrayToBuffer=function(O){return Q.from(O.buffer,O.byteOffset,O.byteLength)}}),o$=P0(($,V)=>{var Q=U7(),q=l$(),K=Q.Readable.destroy;V.exports=Q.Readable,V.exports._uint8ArrayToBuffer=Q._uint8ArrayToBuffer,V.exports._isUint8Array=Q._isUint8Array,V.exports.isDisturbed=Q.isDisturbed,V.exports.isErrored=Q.isErrored,V.exports.isReadable=Q.isReadable,V.exports.Readable=Q.Readable,V.exports.Writable=Q.Writable,V.exports.Duplex=Q.Duplex,V.exports.Transform=Q.Transform,V.exports.PassThrough=Q.PassThrough,V.exports.addAbortSignal=Q.addAbortSignal,V.exports.finished=Q.finished,V.exports.destroy=Q.destroy,V.exports.destroy=K,V.exports.pipeline=Q.pipeline,V.exports.compose=Q.compose,Object.defineProperty(Q,"promises",{configurable:!0,enumerable:!0,get(){return q}}),V.exports.Stream=Q.Stream,V.exports.default=V.exports}),i$={};h$(i$,{default:()=>n$});_$(i$,a1(o$()));n$=a1(o$());/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
|
|
5
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *//*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */});var j6=$0((j7)=>{j7.base64=!0;j7.array=!0;j7.string=!0;j7.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";j7.nodebuffer=typeof Buffer!=="undefined";j7.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined")j7.blob=!1;else{e1=new ArrayBuffer(0);try{j7.blob=new Blob([e1],{type:"application/zip"}).size===0}catch($){try{V8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,$2=new V8,$2.append(e1),j7.blob=$2.getBlob("application/zip").size===0}catch(V){j7.blob=!1}}}var e1,V8,$2;try{j7.nodestream=!!($8(),b$(e2)).Readable}catch($){j7.nodestream=!1}});var q8=$0((C7)=>{var O7=N0(),B7=j6(),s0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";C7.encode=function($){var V=[],Q,q,K,G,U,J,j,P=0,z=$.length,B=z,I=O7.getTypeOf($)!=="string";while(P<$.length){if(B=z-P,!I)Q=$.charCodeAt(P++),q=P<z?$.charCodeAt(P++):0,K=P<z?$.charCodeAt(P++):0;else Q=$[P++],q=P<z?$[P++]:0,K=P<z?$[P++]:0;G=Q>>2,U=(Q&3)<<4|q>>4,J=B>1?(q&15)<<2|K>>6:64,j=B>2?K&63:64,V.push(s0.charAt(G)+s0.charAt(U)+s0.charAt(J)+s0.charAt(j))}return V.join("")};C7.decode=function($){var V,Q,q,K,G,U,J,j=0,P=0,z="data:";if($.substr(0,z.length)===z)throw new Error("Invalid base64 input, it looks like a data url.");$=$.replace(/[^A-Za-z0-9+/=]/g,"");var B=$.length*3/4;if($.charAt($.length-1)===s0.charAt(64))B--;if($.charAt($.length-2)===s0.charAt(64))B--;if(B%1!==0)throw new Error("Invalid base64 input, bad content length.");var I;if(B7.uint8array)I=new Uint8Array(B|0);else I=new Array(B|0);while(j<$.length){if(K=s0.indexOf($.charAt(j++)),G=s0.indexOf($.charAt(j++)),U=s0.indexOf($.charAt(j++)),J=s0.indexOf($.charAt(j++)),V=K<<2|G>>4,Q=(G&15)<<4|U>>2,q=(U&3)<<6|J,I[P++]=V,U!==64)I[P++]=Q;if(J!==64)I[P++]=q}return I}});var O1=$0((VK,a$)=>{a$.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function($,V){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from($,V);else{if(typeof $==="number")throw new Error('The "data" argument must not be a number');return new Buffer($,V)}},allocBuffer:function($){if(Buffer.alloc)return Buffer.alloc($);else{var V=new Buffer($);return V.fill(0),V}},isBuffer:function($){return Buffer.isBuffer($)},isStream:function($){return $&&typeof $.on==="function"&&typeof $.pause==="function"&&typeof $.resume==="function"}}});var t$=$0((qK,s$)=>{var r$=global.MutationObserver||global.WebKitMutationObserver,B1;if(r$)V2=0,X8=new r$(Q2),q2=global.document.createTextNode(""),X8.observe(q2,{characterData:!0}),B1=function(){q2.data=V2=++V2%2};else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined")X2=new global.MessageChannel,X2.port1.onmessage=Q2,B1=function(){X2.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))B1=function(){var $=global.document.createElement("script");$.onreadystatechange=function(){Q2(),$.onreadystatechange=null,$.parentNode.removeChild($),$=null},global.document.documentElement.appendChild($)};else B1=function(){setTimeout(Q2,0)};var V2,X8,q2,X2,Y8,C1=[];function Q2(){Y8=!0;var $,V,Q=C1.length;while(Q){V=C1,C1=[],$=-1;while(++$<Q)V[$]();Q=C1.length}Y8=!1}s$.exports=w7;function w7($){if(C1.push($)===1&&!Y8)B1()}});var XQ=$0((XK,qQ)=>{var N7=t$();function r6(){}var E0={},e$=["REJECTED"],K8=["FULFILLED"],$Q=["PENDING"];qQ.exports=O6;function O6($){if(typeof $!=="function")throw new TypeError("resolver must be a function");if(this.state=$Q,this.queue=[],this.outcome=void 0,$!==r6)QQ(this,$)}O6.prototype.finally=function($){if(typeof $!=="function")return this;var V=this.constructor;return this.then(Q,q);function Q(K){function G(){return K}return V.resolve($()).then(G)}function q(K){function G(){throw K}return V.resolve($()).then(G)}};O6.prototype.catch=function($){return this.then(null,$)};O6.prototype.then=function($,V){if(typeof $!=="function"&&this.state===K8||typeof V!=="function"&&this.state===e$)return this;var Q=new this.constructor(r6);if(this.state!==$Q){var q=this.state===K8?$:V;J8(Q,q,this.outcome)}else this.queue.push(new I1(Q,$,V));return Q};function I1($,V,Q){if(this.promise=$,typeof V==="function")this.onFulfilled=V,this.callFulfilled=this.otherCallFulfilled;if(typeof Q==="function")this.onRejected=Q,this.callRejected=this.otherCallRejected}I1.prototype.callFulfilled=function($){E0.resolve(this.promise,$)};I1.prototype.otherCallFulfilled=function($){J8(this.promise,this.onFulfilled,$)};I1.prototype.callRejected=function($){E0.reject(this.promise,$)};I1.prototype.otherCallRejected=function($){J8(this.promise,this.onRejected,$)};function J8($,V,Q){N7(function(){var q;try{q=V(Q)}catch(K){return E0.reject($,K)}if(q===$)E0.reject($,new TypeError("Cannot resolve promise with itself"));else E0.resolve($,q)})}E0.resolve=function($,V){var Q=VQ(v7,V);if(Q.status==="error")return E0.reject($,Q.value);var q=Q.value;if(q)QQ($,q);else{$.state=K8,$.outcome=V;var K=-1,G=$.queue.length;while(++K<G)$.queue[K].callFulfilled(V)}return $};E0.reject=function($,V){$.state=e$,$.outcome=V;var Q=-1,q=$.queue.length;while(++Q<q)$.queue[Q].callRejected(V);return $};function v7($){var V=$&&$.then;if($&&(typeof $==="object"||typeof $==="function")&&typeof V==="function")return function Q(){V.apply($,arguments)}}function QQ($,V){var Q=!1;function q(J){if(Q)return;Q=!0,E0.reject($,J)}function K(J){if(Q)return;Q=!0,E0.resolve($,J)}function G(){V(K,q)}var U=VQ(G);if(U.status==="error")q(U.value)}function VQ($,V){var Q={};try{Q.value=$(V),Q.status="success"}catch(q){Q.status="error",Q.value=q}return Q}O6.resolve=A7;function A7($){if($ instanceof this)return $;return E0.resolve(new this(r6),$)}O6.reject=R7;function R7($){var V=new this(r6);return E0.reject(V,$)}O6.all=x7;function x7($){var V=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Q=$.length,q=!1;if(!Q)return this.resolve([]);var K=new Array(Q),G=0,U=-1,J=new this(r6);while(++U<Q)j($[U],U);return J;function j(P,z){V.resolve(P).then(B,function(I){if(!q)q=!0,E0.reject(J,I)});function B(I){if(K[z]=I,++G===Q&&!q)q=!0,E0.resolve(J,K)}}}O6.race=T7;function T7($){var V=this;if(Object.prototype.toString.call($)!=="[object Array]")return this.reject(new TypeError("must be an array"));var Q=$.length,q=!1;if(!Q)return this.resolve([]);var K=-1,G=new this(r6);while(++K<Q)U($[K]);return G;function U(J){V.resolve(J).then(function(j){if(!q)q=!0,E0.resolve(G,j)},function(j){if(!q)q=!0,E0.reject(G,j)})}}});var s6=$0((YK,YQ)=>{var G8=null;if(typeof Promise!=="undefined")G8=Promise;else G8=XQ();YQ.exports={Promise:G8}});var JQ=$0((KQ)=>{(function($,V){if($.setImmediate)return;var Q=1,q={},K=!1,G=$.document,U;function J(Z){if(typeof Z!=="function")Z=new Function(""+Z);var O=new Array(arguments.length-1);for(var M=0;M<O.length;M++)O[M]=arguments[M+1];var A={callback:Z,args:O};return q[Q]=A,U(Q),Q++}function j(Z){delete q[Z]}function P(Z){var{callback:O,args:M}=Z;switch(M.length){case 0:O();break;case 1:O(M[0]);break;case 2:O(M[0],M[1]);break;case 3:O(M[0],M[1],M[2]);break;default:O.apply(V,M);break}}function z(Z){if(K)setTimeout(z,0,Z);else{var O=q[Z];if(O){K=!0;try{P(O)}finally{j(Z),K=!1}}}}function B(){U=function(Z){process.nextTick(function(){z(Z)})}}function I(){if($.postMessage&&!$.importScripts){var Z=!0,O=$.onmessage;return $.onmessage=function(){Z=!1},$.postMessage("","*"),$.onmessage=O,Z}}function R(){var Z="setImmediate$"+Math.random()+"$",O=function(M){if(M.source===$&&typeof M.data==="string"&&M.data.indexOf(Z)===0)z(+M.data.slice(Z.length))};if($.addEventListener)$.addEventListener("message",O,!1);else $.attachEvent("onmessage",O);U=function(M){$.postMessage(Z+M,"*")}}function x(){var Z=new MessageChannel;Z.port1.onmessage=function(O){var M=O.data;z(M)},U=function(O){Z.port2.postMessage(O)}}function S(){var Z=G.documentElement;U=function(O){var M=G.createElement("script");M.onreadystatechange=function(){z(O),M.onreadystatechange=null,Z.removeChild(M),M=null},Z.appendChild(M)}}function g(){U=function(Z){setTimeout(z,0,Z)}}var y=Object.getPrototypeOf&&Object.getPrototypeOf($);if(y=y&&y.setTimeout?y:$,{}.toString.call($.process)==="[object process]")B();else if(I())R();else if($.MessageChannel)x();else if(G&&"onreadystatechange"in G.createElement("script"))S();else g();y.setImmediate=J,y.clearImmediate=j})(typeof self==="undefined"?typeof global==="undefined"?KQ:global:self)});var N0=$0((g7)=>{var B6=j6(),S7=q8(),t6=O1(),W8=s6();JQ();function k7($){var V=null;if(B6.uint8array)V=new Uint8Array($.length);else V=new Array($.length);return K2($,V)}g7.newBlob=function($,V){g7.checkSupport("blob");try{return new Blob([$],{type:V})}catch(K){try{var Q=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,q=new Q;return q.append($),q.getBlob(V)}catch(G){throw new Error("Bug : can't construct the Blob.")}}};function D1($){return $}function K2($,V){for(var Q=0;Q<$.length;++Q)V[Q]=$.charCodeAt(Q)&255;return V}var Y2={stringifyByChunk:function($,V,Q){var q=[],K=0,G=$.length;if(G<=Q)return String.fromCharCode.apply(null,$);while(K<G){if(V==="array"||V==="nodebuffer")q.push(String.fromCharCode.apply(null,$.slice(K,Math.min(K+Q,G))));else q.push(String.fromCharCode.apply(null,$.subarray(K,Math.min(K+Q,G))));K+=Q}return q.join("")},stringifyByChar:function($){var V="";for(var Q=0;Q<$.length;Q++)V+=String.fromCharCode($[Q]);return V},applyCanBeUsed:{uint8array:function(){try{return B6.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch($){return!1}}(),nodebuffer:function(){try{return B6.nodebuffer&&String.fromCharCode.apply(null,t6.allocBuffer(1)).length===1}catch($){return!1}}()}};function w1($){var V=65536,Q=g7.getTypeOf($),q=!0;if(Q==="uint8array")q=Y2.applyCanBeUsed.uint8array;else if(Q==="nodebuffer")q=Y2.applyCanBeUsed.nodebuffer;if(q)while(V>1)try{return Y2.stringifyByChunk($,Q,V)}catch(K){V=Math.floor(V/2)}return Y2.stringifyByChar($)}g7.applyFromCharCode=w1;function J2($,V){for(var Q=0;Q<$.length;Q++)V[Q]=$[Q];return V}var C6={};C6.string={string:D1,array:function($){return K2($,new Array($.length))},arraybuffer:function($){return C6.string.uint8array($).buffer},uint8array:function($){return K2($,new Uint8Array($.length))},nodebuffer:function($){return K2($,t6.allocBuffer($.length))}};C6.array={string:w1,array:D1,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return t6.newBufferFrom($)}};C6.arraybuffer={string:function($){return w1(new Uint8Array($))},array:function($){return J2(new Uint8Array($),new Array($.byteLength))},arraybuffer:D1,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return t6.newBufferFrom(new Uint8Array($))}};C6.uint8array={string:w1,array:function($){return J2($,new Array($.length))},arraybuffer:function($){return $.buffer},uint8array:D1,nodebuffer:function($){return t6.newBufferFrom($)}};C6.nodebuffer={string:w1,array:function($){return J2($,new Array($.length))},arraybuffer:function($){return C6.nodebuffer.uint8array($).buffer},uint8array:function($){return J2($,new Uint8Array($.length))},nodebuffer:D1};g7.transformTo=function($,V){if(!V)V="";if(!$)return V;g7.checkSupport($);var Q=g7.getTypeOf(V),q=C6[Q][$](V);return q};g7.resolve=function($){var V=$.split("/"),Q=[];for(var q=0;q<V.length;q++){var K=V[q];if(K==="."||K===""&&q!==0&&q!==V.length-1)continue;else if(K==="..")Q.pop();else Q.push(K)}return Q.join("/")};g7.getTypeOf=function($){if(typeof $==="string")return"string";if(Object.prototype.toString.call($)==="[object Array]")return"array";if(B6.nodebuffer&&t6.isBuffer($))return"nodebuffer";if(B6.uint8array&&$ instanceof Uint8Array)return"uint8array";if(B6.arraybuffer&&$ instanceof ArrayBuffer)return"arraybuffer"};g7.checkSupport=function($){var V=B6[$.toLowerCase()];if(!V)throw new Error($+" is not supported by this platform")};g7.MAX_VALUE_16BITS=65535;g7.MAX_VALUE_32BITS=-1;g7.pretty=function($){var V="",Q,q;for(q=0;q<($||"").length;q++)Q=$.charCodeAt(q),V+="\\x"+(Q<16?"0":"")+Q.toString(16).toUpperCase();return V};g7.delay=function($,V,Q){setImmediate(function(){$.apply(Q||null,V||[])})};g7.inherits=function($,V){var Q=function(){};Q.prototype=V.prototype,$.prototype=new Q};g7.extend=function(){var $={},V,Q;for(V=0;V<arguments.length;V++)for(Q in arguments[V])if(Object.prototype.hasOwnProperty.call(arguments[V],Q)&&typeof $[Q]==="undefined")$[Q]=arguments[V][Q];return $};g7.prepareContent=function($,V,Q,q,K){var G=W8.Promise.resolve(V).then(function(U){var J=B6.blob&&(U instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(U))!==-1);if(J&&typeof FileReader!=="undefined")return new W8.Promise(function(j,P){var z=new FileReader;z.onload=function(B){j(B.target.result)},z.onerror=function(B){P(B.target.error)},z.readAsArrayBuffer(U)});else return U});return G.then(function(U){var J=g7.getTypeOf(U);if(!J)return W8.Promise.reject(new Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(J==="arraybuffer")U=g7.transformTo("uint8array",U);else if(J==="string"){if(K)U=S7.decode(U);else if(Q){if(q!==!0)U=k7(U)}}return U})}});var m0=$0((GK,PQ)=>{function UQ($){this.name=$||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}UQ.prototype={push:function($){this.emit("data",$)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch($){this.emit("error",$)}return!0},error:function($){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=$;else{if(this.isFinished=!0,this.emit("error",$),this.previous)this.previous.error($);this.cleanUp()}return!0},on:function($,V){return this._listeners[$].push(V),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function($,V){if(this._listeners[$])for(var Q=0;Q<this._listeners[$].length;Q++)this._listeners[$][Q].call(this,V)},pipe:function($){return $.registerPrevious(this)},registerPrevious:function($){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=$.streamInfo,this.mergeStreamInfo(),this.previous=$;var V=this;return $.on("data",function(Q){V.processChunk(Q)}),$.on("end",function(){V.end()}),$.on("error",function(Q){V.error(Q)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var $=!1;if(this.generatedError)this.error(this.generatedError),$=!0;if(this.previous)this.previous.resume();return!$},flush:function(){},processChunk:function($){this.push($)},withStreamInfo:function($,V){return this.extraStreamInfo[$]=V,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var $ in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,$))continue;this.streamInfo[$]=this.extraStreamInfo[$]}},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var $="Worker "+this.name;if(this.previous)return this.previous+" -> "+$;else return $}};PQ.exports=UQ});var $1=$0((n7)=>{var e6=N0(),b6=j6(),d7=O1(),G2=m0(),N1=new Array(256);for(t0=0;t0<256;t0++)N1[t0]=t0>=252?6:t0>=248?5:t0>=240?4:t0>=224?3:t0>=192?2:1;var t0;N1[254]=N1[254]=1;var l7=function($){var V,Q,q,K,G,U=$.length,J=0;for(K=0;K<U;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<U){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}J+=Q<128?1:Q<2048?2:Q<65536?3:4}if(b6.uint8array)V=new Uint8Array(J);else V=new Array(J);for(G=0,K=0;G<J;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<U){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}if(Q<128)V[G++]=Q;else if(Q<2048)V[G++]=192|Q>>>6,V[G++]=128|Q&63;else if(Q<65536)V[G++]=224|Q>>>12,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63;else V[G++]=240|Q>>>18,V[G++]=128|Q>>>12&63,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63}return V},o7=function($,V){var Q;if(V=V||$.length,V>$.length)V=$.length;Q=V-1;while(Q>=0&&($[Q]&192)===128)Q--;if(Q<0)return V;if(Q===0)return V;return Q+N1[$[Q]]>V?Q:V},i7=function($){var V,Q,q,K,G=$.length,U=new Array(G*2);for(Q=0,V=0;V<G;){if(q=$[V++],q<128){U[Q++]=q;continue}if(K=N1[q],K>4){U[Q++]=65533,V+=K-1;continue}q&=K===2?31:K===3?15:7;while(K>1&&V<G)q=q<<6|$[V++]&63,K--;if(K>1){U[Q++]=65533;continue}if(q<65536)U[Q++]=q;else q-=65536,U[Q++]=55296|q>>10&1023,U[Q++]=56320|q&1023}if(U.length!==Q)if(U.subarray)U=U.subarray(0,Q);else U.length=Q;return e6.applyFromCharCode(U)};n7.utf8encode=function $(V){if(b6.nodebuffer)return d7.newBufferFrom(V,"utf-8");return l7(V)};n7.utf8decode=function $(V){if(b6.nodebuffer)return e6.transformTo("nodebuffer",V).toString("utf-8");return V=e6.transformTo(b6.uint8array?"uint8array":"array",V),i7(V)};function W2(){G2.call(this,"utf-8 decode"),this.leftOver=null}e6.inherits(W2,G2);W2.prototype.processChunk=function($){var V=e6.transformTo(b6.uint8array?"uint8array":"array",$.data);if(this.leftOver&&this.leftOver.length){if(b6.uint8array){var Q=V;V=new Uint8Array(Q.length+this.leftOver.length),V.set(this.leftOver,0),V.set(Q,this.leftOver.length)}else V=this.leftOver.concat(V);this.leftOver=null}var q=o7(V),K=V;if(q!==V.length)if(b6.uint8array)K=V.subarray(0,q),this.leftOver=V.subarray(q,V.length);else K=V.slice(0,q),this.leftOver=V.slice(q,V.length);this.push({data:n7.utf8decode(K),meta:$.meta})};W2.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:n7.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};n7.Utf8DecodeWorker=W2;function P8(){G2.call(this,"utf-8 encode")}e6.inherits(P8,G2);P8.prototype.processChunk=function($){this.push({data:n7.utf8encode($.data),meta:$.meta})};n7.Utf8EncodeWorker=P8});var HQ=$0((UK,FQ)=>{var zQ=m0(),ZQ=N0();function z8($){zQ.call(this,"ConvertWorker to "+$),this.destType=$}ZQ.inherits(z8,zQ);z8.prototype.processChunk=function($){this.push({data:ZQ.transformTo(this.destType,$.data),meta:$.meta})};FQ.exports=z8});var OQ=$0((PK,LQ)=>{var MQ=($8(),b$(e2)).Readable,s7=N0();s7.inherits(Z8,MQ);function Z8($,V,Q){MQ.call(this,V),this._helper=$;var q=this;$.on("data",function(K,G){if(!q.push(K))q._helper.pause();if(Q)Q(G)}).on("error",function(K){q.emit("error",K)}).on("end",function(){q.push(null)})}Z8.prototype._read=function(){this._helper.resume()};LQ.exports=Z8});var F8=$0((jK,IQ)=>{var f6=N0(),t7=HQ(),e7=m0(),$q=q8(),Qq=j6(),Vq=s6(),BQ=null;if(Qq.nodestream)try{BQ=OQ()}catch($){}function qq($,V,Q){switch($){case"blob":return f6.newBlob(f6.transformTo("arraybuffer",V),Q);case"base64":return $q.encode(V);default:return f6.transformTo($,V)}}function Xq($,V){var Q,q=0,K=null,G=0;for(Q=0;Q<V.length;Q++)G+=V[Q].length;switch($){case"string":return V.join("");case"array":return Array.prototype.concat.apply([],V);case"uint8array":K=new Uint8Array(G);for(Q=0;Q<V.length;Q++)K.set(V[Q],q),q+=V[Q].length;return K;case"nodebuffer":return Buffer.concat(V);default:throw new Error("concat : unsupported type '"+$+"'")}}function Yq($,V){return new Vq.Promise(function(Q,q){var K=[],G=$._internalType,U=$._outputType,J=$._mimeType;$.on("data",function(j,P){if(K.push(j),V)V(P)}).on("error",function(j){K=[],q(j)}).on("end",function(){try{var j=qq(U,Xq(G,K),J);Q(j)}catch(P){q(P)}K=[]}).resume()})}function CQ($,V,Q){var q=V;switch(V){case"blob":case"arraybuffer":q="uint8array";break;case"base64":q="string";break}try{this._internalType=q,this._outputType=V,this._mimeType=Q,f6.checkSupport(q),this._worker=$.pipe(new t7(q)),$.lock()}catch(K){this._worker=new e7("error"),this._worker.error(K)}}CQ.prototype={accumulate:function($){return Yq(this,$)},on:function($,V){var Q=this;if($==="data")this._worker.on($,function(q){V.call(Q,q.data,q.meta)});else this._worker.on($,function(){f6.delay(V,arguments,Q)});return this},resume:function(){return f6.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function($){if(f6.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new BQ(this,{objectMode:this._outputType!=="nodebuffer"},$)}};IQ.exports=CQ});var H8=$0((Kq)=>{Kq.base64=!1;Kq.binary=!1;Kq.dir=!1;Kq.createFolders=!0;Kq.date=null;Kq.compression=null;Kq.compressionOptions=null;Kq.comment=null;Kq.unixPermissions=null;Kq.dosPermissions=null});var M8=$0((ZK,DQ)=>{var U2=N0(),P2=m0(),Mq=16384;function Q1($){P2.call(this,"DataWorker");var V=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,$.then(function(Q){if(V.dataIsReady=!0,V.data=Q,V.max=Q&&Q.length||0,V.type=U2.getTypeOf(Q),!V.isPaused)V._tickAndRepeat()},function(Q){V.error(Q)})}U2.inherits(Q1,P2);Q1.prototype.cleanUp=function(){P2.prototype.cleanUp.call(this),this.data=null};Q1.prototype.resume=function(){if(!P2.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,U2.delay(this._tickAndRepeat,[],this);return!0};Q1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)U2.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};Q1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var $=Mq,V=null,Q=Math.min(this.max,this.index+$);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":V=this.data.substring(this.index,Q);break;case"uint8array":V=this.data.subarray(this.index,Q);break;case"array":case"nodebuffer":V=this.data.slice(this.index,Q);break}return this.index=Q,this.push({data:V,meta:{percent:this.max?this.index/this.max*100:0}})}};DQ.exports=Q1});var j2=$0((FK,NQ)=>{var Lq=N0();function Oq(){var $,V=[];for(var Q=0;Q<256;Q++){$=Q;for(var q=0;q<8;q++)$=$&1?3988292384^$>>>1:$>>>1;V[Q]=$}return V}var wQ=Oq();function Bq($,V,Q,q){var K=wQ,G=q+Q;$=$^-1;for(var U=q;U<G;U++)$=$>>>8^K[($^V[U])&255];return $^-1}function Cq($,V,Q,q){var K=wQ,G=q+Q;$=$^-1;for(var U=q;U<G;U++)$=$>>>8^K[($^V.charCodeAt(U))&255];return $^-1}NQ.exports=function $(V,Q){if(typeof V==="undefined"||!V.length)return 0;var q=Lq.getTypeOf(V)!=="string";if(q)return Bq(Q|0,V,V.length,0);else return Cq(Q|0,V,V.length,0)}});var O8=$0((HK,AQ)=>{var vQ=m0(),Iq=j2(),Dq=N0();function L8(){vQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}Dq.inherits(L8,vQ);L8.prototype.processChunk=function($){this.streamInfo.crc32=Iq($.data,this.streamInfo.crc32||0),this.push($)};AQ.exports=L8});var xQ=$0((MK,RQ)=>{var wq=N0(),B8=m0();function C8($){B8.call(this,"DataLengthProbe for "+$),this.propName=$,this.withStreamInfo($,0)}wq.inherits(C8,B8);C8.prototype.processChunk=function($){if($){var V=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=V+$.data.length}B8.prototype.processChunk.call(this,$)};RQ.exports=C8});var z2=$0((LK,kQ)=>{var TQ=s6(),SQ=M8(),Nq=O8(),I8=xQ();function D8($,V,Q,q,K){this.compressedSize=$,this.uncompressedSize=V,this.crc32=Q,this.compression=q,this.compressedContent=K}D8.prototype={getContentWorker:function(){var $=new SQ(TQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new I8("data_length")),V=this;return $.on("end",function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},getCompressedWorker:function(){return new SQ(TQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};D8.createWorkerFrom=function($,V,Q){return $.pipe(new Nq).pipe(new I8("uncompressedSize")).pipe(V.compressWorker(Q)).pipe(new I8("compressedSize")).withStreamInfo("compression",V)};kQ.exports=D8});var bQ=$0((OK,yQ)=>{var vq=F8(),Aq=M8(),w8=$1(),N8=z2(),gQ=m0(),v8=function($,V,Q){this.name=$,this.dir=Q.dir,this.date=Q.date,this.comment=Q.comment,this.unixPermissions=Q.unixPermissions,this.dosPermissions=Q.dosPermissions,this._data=V,this._dataBinary=Q.binary,this.options={compression:Q.compression,compressionOptions:Q.compressionOptions}};v8.prototype={internalStream:function($){var V=null,Q="string";try{if(!$)throw new Error("No output type specified.");Q=$.toLowerCase();var q=Q==="string"||Q==="text";if(Q==="binarystring"||Q==="text")Q="string";V=this._decompressWorker();var K=!this._dataBinary;if(K&&!q)V=V.pipe(new w8.Utf8EncodeWorker);if(!K&&q)V=V.pipe(new w8.Utf8DecodeWorker)}catch(G){V=new gQ("error"),V.error(G)}return new vq(V,Q,"")},async:function($,V){return this.internalStream($).accumulate(V)},nodeStream:function($,V){return this.internalStream($||"nodebuffer").toNodejsStream(V)},_compressWorker:function($,V){if(this._data instanceof N8&&this._data.compression.magic===$.magic)return this._data.getCompressedWorker();else{var Q=this._decompressWorker();if(!this._dataBinary)Q=Q.pipe(new w8.Utf8EncodeWorker);return N8.createWorkerFrom(Q,$,V)}},_decompressWorker:function(){if(this._data instanceof N8)return this._data.getContentWorker();else if(this._data instanceof gQ)return this._data;else return new Aq(this._data)}};var EQ=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],Rq=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(v1=0;v1<EQ.length;v1++)v8.prototype[EQ[v1]]=Rq;var v1;yQ.exports=v8});var z6=$0((A8)=>{var kq=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function gq($,V){return Object.prototype.hasOwnProperty.call($,V)}A8.assign=function($){var V=Array.prototype.slice.call(arguments,1);while(V.length){var Q=V.shift();if(!Q)continue;if(typeof Q!=="object")throw new TypeError(Q+"must be non-object");for(var q in Q)if(gq(Q,q))$[q]=Q[q]}return $};A8.shrinkBuf=function($,V){if($.length===V)return $;if($.subarray)return $.subarray(0,V);return $.length=V,$};var Eq={arraySet:function($,V,Q,q,K){if(V.subarray&&$.subarray){$.set(V.subarray(Q,Q+q),K);return}for(var G=0;G<q;G++)$[K+G]=V[Q+G]},flattenChunks:function($){var V,Q,q,K,G,U;q=0;for(V=0,Q=$.length;V<Q;V++)q+=$[V].length;U=new Uint8Array(q),K=0;for(V=0,Q=$.length;V<Q;V++)G=$[V],U.set(G,K),K+=G.length;return U}},yq={arraySet:function($,V,Q,q,K){for(var G=0;G<q;G++)$[K+G]=V[Q+G]},flattenChunks:function($){return[].concat.apply([],$)}};A8.setTyped=function($){if($)A8.Buf8=Uint8Array,A8.Buf16=Uint16Array,A8.Buf32=Int32Array,A8.assign(A8,Eq);else A8.Buf8=Array,A8.Buf16=Array,A8.Buf32=Array,A8.assign(A8,yq)};A8.setTyped(kq)});var K5=$0((X3)=>{var fq=z6(),hq=4,hQ=0,_Q=1,_q=2;function q1($){var V=$.length;while(--V>=0)$[V]=0}var mq=0,lQ=1,pq=2,cq=3,uq=258,y8=29,k1=256,R1=k1+1+y8,V1=30,b8=19,oQ=2*R1+1,h6=15,x8=16,dq=7,f8=256,iQ=16,nQ=17,aQ=18,g8=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Z2=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],lq=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oq=512,Z6=new Array((R1+2)*2);q1(Z6);var A1=new Array(V1*2);q1(A1);var x1=new Array(oq);q1(x1);var T1=new Array(uq-cq+1);q1(T1);var h8=new Array(y8);q1(h8);var F2=new Array(V1);q1(F2);function T8($,V,Q,q,K){this.static_tree=$,this.extra_bits=V,this.extra_base=Q,this.elems=q,this.max_length=K,this.has_stree=$&&$.length}var sQ,tQ,eQ;function S8($,V){this.dyn_tree=$,this.max_code=0,this.stat_desc=V}function $5($){return $<256?x1[$]:x1[256+($>>>7)]}function S1($,V){$.pending_buf[$.pending++]=V&255,$.pending_buf[$.pending++]=V>>>8&255}function h0($,V,Q){if($.bi_valid>x8-Q)$.bi_buf|=V<<$.bi_valid&65535,S1($,$.bi_buf),$.bi_buf=V>>x8-$.bi_valid,$.bi_valid+=Q-x8;else $.bi_buf|=V<<$.bi_valid&65535,$.bi_valid+=Q}function e0($,V,Q){h0($,Q[V*2],Q[V*2+1])}function Q5($,V){var Q=0;do Q|=$&1,$>>>=1,Q<<=1;while(--V>0);return Q>>>1}function iq($){if($.bi_valid===16)S1($,$.bi_buf),$.bi_buf=0,$.bi_valid=0;else if($.bi_valid>=8)$.pending_buf[$.pending++]=$.bi_buf&255,$.bi_buf>>=8,$.bi_valid-=8}function nq($,V){var{dyn_tree:Q,max_code:q}=V,K=V.stat_desc.static_tree,G=V.stat_desc.has_stree,U=V.stat_desc.extra_bits,J=V.stat_desc.extra_base,j=V.stat_desc.max_length,P,z,B,I,R,x,S=0;for(I=0;I<=h6;I++)$.bl_count[I]=0;Q[$.heap[$.heap_max]*2+1]=0;for(P=$.heap_max+1;P<oQ;P++){if(z=$.heap[P],I=Q[Q[z*2+1]*2+1]+1,I>j)I=j,S++;if(Q[z*2+1]=I,z>q)continue;if($.bl_count[I]++,R=0,z>=J)R=U[z-J];if(x=Q[z*2],$.opt_len+=x*(I+R),G)$.static_len+=x*(K[z*2+1]+R)}if(S===0)return;do{I=j-1;while($.bl_count[I]===0)I--;$.bl_count[I]--,$.bl_count[I+1]+=2,$.bl_count[j]--,S-=2}while(S>0);for(I=j;I!==0;I--){z=$.bl_count[I];while(z!==0){if(B=$.heap[--P],B>q)continue;if(Q[B*2+1]!==I)$.opt_len+=(I-Q[B*2+1])*Q[B*2],Q[B*2+1]=I;z--}}}function V5($,V,Q){var q=new Array(h6+1),K=0,G,U;for(G=1;G<=h6;G++)q[G]=K=K+Q[G-1]<<1;for(U=0;U<=V;U++){var J=$[U*2+1];if(J===0)continue;$[U*2]=Q5(q[J]++,J)}}function aq(){var $,V,Q,q,K,G=new Array(h6+1);Q=0;for(q=0;q<y8-1;q++){h8[q]=Q;for($=0;$<1<<g8[q];$++)T1[Q++]=q}T1[Q-1]=q,K=0;for(q=0;q<16;q++){F2[q]=K;for($=0;$<1<<Z2[q];$++)x1[K++]=q}K>>=7;for(;q<V1;q++){F2[q]=K<<7;for($=0;$<1<<Z2[q]-7;$++)x1[256+K++]=q}for(V=0;V<=h6;V++)G[V]=0;$=0;while($<=143)Z6[$*2+1]=8,$++,G[8]++;while($<=255)Z6[$*2+1]=9,$++,G[9]++;while($<=279)Z6[$*2+1]=7,$++,G[7]++;while($<=287)Z6[$*2+1]=8,$++,G[8]++;V5(Z6,R1+1,G);for($=0;$<V1;$++)A1[$*2+1]=5,A1[$*2]=Q5($,5);sQ=new T8(Z6,g8,k1+1,R1,h6),tQ=new T8(A1,Z2,0,V1,h6),eQ=new T8(new Array(0),lq,0,b8,dq)}function q5($){var V;for(V=0;V<R1;V++)$.dyn_ltree[V*2]=0;for(V=0;V<V1;V++)$.dyn_dtree[V*2]=0;for(V=0;V<b8;V++)$.bl_tree[V*2]=0;$.dyn_ltree[f8*2]=1,$.opt_len=$.static_len=0,$.last_lit=$.matches=0}function X5($){if($.bi_valid>8)S1($,$.bi_buf);else if($.bi_valid>0)$.pending_buf[$.pending++]=$.bi_buf;$.bi_buf=0,$.bi_valid=0}function rq($,V,Q,q){if(X5($),q)S1($,Q),S1($,~Q);fq.arraySet($.pending_buf,$.window,V,Q,$.pending),$.pending+=Q}function mQ($,V,Q,q){var K=V*2,G=Q*2;return $[K]<$[G]||$[K]===$[G]&&q[V]<=q[Q]}function k8($,V,Q){var q=$.heap[Q],K=Q<<1;while(K<=$.heap_len){if(K<$.heap_len&&mQ(V,$.heap[K+1],$.heap[K],$.depth))K++;if(mQ(V,q,$.heap[K],$.depth))break;$.heap[Q]=$.heap[K],Q=K,K<<=1}$.heap[Q]=q}function pQ($,V,Q){var q,K,G=0,U,J;if($.last_lit!==0)do if(q=$.pending_buf[$.d_buf+G*2]<<8|$.pending_buf[$.d_buf+G*2+1],K=$.pending_buf[$.l_buf+G],G++,q===0)e0($,K,V);else{if(U=T1[K],e0($,U+k1+1,V),J=g8[U],J!==0)K-=h8[U],h0($,K,J);if(q--,U=$5(q),e0($,U,Q),J=Z2[U],J!==0)q-=F2[U],h0($,q,J)}while(G<$.last_lit);e0($,f8,V)}function E8($,V){var Q=V.dyn_tree,q=V.stat_desc.static_tree,K=V.stat_desc.has_stree,G=V.stat_desc.elems,U,J,j=-1,P;$.heap_len=0,$.heap_max=oQ;for(U=0;U<G;U++)if(Q[U*2]!==0)$.heap[++$.heap_len]=j=U,$.depth[U]=0;else Q[U*2+1]=0;while($.heap_len<2)if(P=$.heap[++$.heap_len]=j<2?++j:0,Q[P*2]=1,$.depth[P]=0,$.opt_len--,K)$.static_len-=q[P*2+1];V.max_code=j;for(U=$.heap_len>>1;U>=1;U--)k8($,Q,U);P=G;do U=$.heap[1],$.heap[1]=$.heap[$.heap_len--],k8($,Q,1),J=$.heap[1],$.heap[--$.heap_max]=U,$.heap[--$.heap_max]=J,Q[P*2]=Q[U*2]+Q[J*2],$.depth[P]=($.depth[U]>=$.depth[J]?$.depth[U]:$.depth[J])+1,Q[U*2+1]=Q[J*2+1]=P,$.heap[1]=P++,k8($,Q,1);while($.heap_len>=2);$.heap[--$.heap_max]=$.heap[1],nq($,V),V5(Q,j,$.bl_count)}function cQ($,V,Q){var q,K=-1,G,U=V[1],J=0,j=7,P=4;if(U===0)j=138,P=3;V[(Q+1)*2+1]=65535;for(q=0;q<=Q;q++){if(G=U,U=V[(q+1)*2+1],++J<j&&G===U)continue;else if(J<P)$.bl_tree[G*2]+=J;else if(G!==0){if(G!==K)$.bl_tree[G*2]++;$.bl_tree[iQ*2]++}else if(J<=10)$.bl_tree[nQ*2]++;else $.bl_tree[aQ*2]++;if(J=0,K=G,U===0)j=138,P=3;else if(G===U)j=6,P=3;else j=7,P=4}}function uQ($,V,Q){var q,K=-1,G,U=V[1],J=0,j=7,P=4;if(U===0)j=138,P=3;for(q=0;q<=Q;q++){if(G=U,U=V[(q+1)*2+1],++J<j&&G===U)continue;else if(J<P)do e0($,G,$.bl_tree);while(--J!==0);else if(G!==0){if(G!==K)e0($,G,$.bl_tree),J--;e0($,iQ,$.bl_tree),h0($,J-3,2)}else if(J<=10)e0($,nQ,$.bl_tree),h0($,J-3,3);else e0($,aQ,$.bl_tree),h0($,J-11,7);if(J=0,K=G,U===0)j=138,P=3;else if(G===U)j=6,P=3;else j=7,P=4}}function sq($){var V;cQ($,$.dyn_ltree,$.l_desc.max_code),cQ($,$.dyn_dtree,$.d_desc.max_code),E8($,$.bl_desc);for(V=b8-1;V>=3;V--)if($.bl_tree[rQ[V]*2+1]!==0)break;return $.opt_len+=3*(V+1)+5+5+4,V}function tq($,V,Q,q){var K;h0($,V-257,5),h0($,Q-1,5),h0($,q-4,4);for(K=0;K<q;K++)h0($,$.bl_tree[rQ[K]*2+1],3);uQ($,$.dyn_ltree,V-1),uQ($,$.dyn_dtree,Q-1)}function eq($){var V=4093624447,Q;for(Q=0;Q<=31;Q++,V>>>=1)if(V&1&&$.dyn_ltree[Q*2]!==0)return hQ;if($.dyn_ltree[18]!==0||$.dyn_ltree[20]!==0||$.dyn_ltree[26]!==0)return _Q;for(Q=32;Q<k1;Q++)if($.dyn_ltree[Q*2]!==0)return _Q;return hQ}var dQ=!1;function $3($){if(!dQ)aq(),dQ=!0;$.l_desc=new S8($.dyn_ltree,sQ),$.d_desc=new S8($.dyn_dtree,tQ),$.bl_desc=new S8($.bl_tree,eQ),$.bi_buf=0,$.bi_valid=0,q5($)}function Y5($,V,Q,q){h0($,(mq<<1)+(q?1:0),3),rq($,V,Q,!0)}function Q3($){h0($,lQ<<1,3),e0($,f8,Z6),iq($)}function V3($,V,Q,q){var K,G,U=0;if($.level>0){if($.strm.data_type===_q)$.strm.data_type=eq($);if(E8($,$.l_desc),E8($,$.d_desc),U=sq($),K=$.opt_len+3+7>>>3,G=$.static_len+3+7>>>3,G<=K)K=G}else K=G=Q+5;if(Q+4<=K&&V!==-1)Y5($,V,Q,q);else if($.strategy===hq||G===K)h0($,(lQ<<1)+(q?1:0),3),pQ($,Z6,A1);else h0($,(pq<<1)+(q?1:0),3),tq($,$.l_desc.max_code+1,$.d_desc.max_code+1,U+1),pQ($,$.dyn_ltree,$.dyn_dtree);if(q5($),q)X5($)}function q3($,V,Q){if($.pending_buf[$.d_buf+$.last_lit*2]=V>>>8&255,$.pending_buf[$.d_buf+$.last_lit*2+1]=V&255,$.pending_buf[$.l_buf+$.last_lit]=Q&255,$.last_lit++,V===0)$.dyn_ltree[Q*2]++;else $.matches++,V--,$.dyn_ltree[(T1[Q]+k1+1)*2]++,$.dyn_dtree[$5(V)*2]++;return $.last_lit===$.lit_bufsize-1}X3._tr_init=$3;X3._tr_stored_block=Y5;X3._tr_flush_block=V3;X3._tr_tally=q3;X3._tr_align=Q3});var _8=$0((IK,J5)=>{function U3($,V,Q,q){var K=$&65535|0,G=$>>>16&65535|0,U=0;while(Q!==0){U=Q>2000?2000:Q,Q-=U;do K=K+V[q++]|0,G=G+K|0;while(--U);K%=65521,G%=65521}return K|G<<16|0}J5.exports=U3});var m8=$0((DK,G5)=>{function P3(){var $,V=[];for(var Q=0;Q<256;Q++){$=Q;for(var q=0;q<8;q++)$=$&1?3988292384^$>>>1:$>>>1;V[Q]=$}return V}var j3=P3();function z3($,V,Q,q){var K=j3,G=q+Q;$^=-1;for(var U=q;U<G;U++)$=$>>>8^K[($^V[U])&255];return $^-1}G5.exports=z3});var H2=$0((wK,W5)=>{W5.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var L5=$0((o3)=>{var y0=z6(),c0=K5(),z5=_8(),I6=m8(),Z3=H2(),c6=0,F3=1,H3=3,A6=4,U5=5,Q6=0,P5=1,u0=-2,M3=-3,p8=-5,L3=-1,O3=1,M2=2,B3=3,C3=4,I3=0,D3=2,C2=8,w3=9,N3=15,v3=8,A3=29,R3=256,u8=R3+1+A3,x3=30,T3=19,S3=2*u8+1,k3=15,J0=3,N6=258,i0=N6+J0+1,g3=32,I2=42,d8=69,L2=73,O2=91,B2=103,_6=113,E1=666,T0=1,y1=2,m6=3,K1=4,E3=3;function v6($,V){return $.msg=Z3[V],V}function j5($){return($<<1)-($>4?9:0)}function w6($){var V=$.length;while(--V>=0)$[V]=0}function D6($){var V=$.state,Q=V.pending;if(Q>$.avail_out)Q=$.avail_out;if(Q===0)return;if(y0.arraySet($.output,V.pending_buf,V.pending_out,Q,$.next_out),$.next_out+=Q,V.pending_out+=Q,$.total_out+=Q,$.avail_out-=Q,V.pending-=Q,V.pending===0)V.pending_out=0}function S0($,V){c0._tr_flush_block($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,V),$.block_start=$.strstart,D6($.strm)}function j0($,V){$.pending_buf[$.pending++]=V}function g1($,V){$.pending_buf[$.pending++]=V>>>8&255,$.pending_buf[$.pending++]=V&255}function y3($,V,Q,q){var K=$.avail_in;if(K>q)K=q;if(K===0)return 0;if($.avail_in-=K,y0.arraySet(V,$.input,$.next_in,K,Q),$.state.wrap===1)$.adler=z5($.adler,V,K,Q);else if($.state.wrap===2)$.adler=I6($.adler,V,K,Q);return $.next_in+=K,$.total_in+=K,K}function Z5($,V){var{max_chain_length:Q,strstart:q}=$,K,G,U=$.prev_length,J=$.nice_match,j=$.strstart>$.w_size-i0?$.strstart-($.w_size-i0):0,P=$.window,z=$.w_mask,B=$.prev,I=$.strstart+N6,R=P[q+U-1],x=P[q+U];if($.prev_length>=$.good_match)Q>>=2;if(J>$.lookahead)J=$.lookahead;do{if(K=V,P[K+U]!==x||P[K+U-1]!==R||P[K]!==P[q]||P[++K]!==P[q+1])continue;q+=2,K++;do;while(P[++q]===P[++K]&&P[++q]===P[++K]&&P[++q]===P[++K]&&P[++q]===P[++K]&&P[++q]===P[++K]&&P[++q]===P[++K]&&P[++q]===P[++K]&&P[++q]===P[++K]&&q<I);if(G=N6-(I-q),q=I-N6,G>U){if($.match_start=V,U=G,G>=J)break;R=P[q+U-1],x=P[q+U]}}while((V=B[V&z])>j&&--Q!==0);if(U<=$.lookahead)return U;return $.lookahead}function p6($){var V=$.w_size,Q,q,K,G,U;do{if(G=$.window_size-$.lookahead-$.strstart,$.strstart>=V+(V-i0)){y0.arraySet($.window,$.window,V,V,0),$.match_start-=V,$.strstart-=V,$.block_start-=V,q=$.hash_size,Q=q;do K=$.head[--Q],$.head[Q]=K>=V?K-V:0;while(--q);q=V,Q=q;do K=$.prev[--Q],$.prev[Q]=K>=V?K-V:0;while(--q);G+=V}if($.strm.avail_in===0)break;if(q=y3($.strm,$.window,$.strstart+$.lookahead,G),$.lookahead+=q,$.lookahead+$.insert>=J0){U=$.strstart-$.insert,$.ins_h=$.window[U],$.ins_h=($.ins_h<<$.hash_shift^$.window[U+1])&$.hash_mask;while($.insert)if($.ins_h=($.ins_h<<$.hash_shift^$.window[U+J0-1])&$.hash_mask,$.prev[U&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=U,U++,$.insert--,$.lookahead+$.insert<J0)break}}while($.lookahead<i0&&$.strm.avail_in!==0)}function b3($,V){var Q=65535;if(Q>$.pending_buf_size-5)Q=$.pending_buf_size-5;for(;;){if($.lookahead<=1){if(p6($),$.lookahead===0&&V===c6)return T0;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var q=$.block_start+Q;if($.strstart===0||$.strstart>=q){if($.lookahead=$.strstart-q,$.strstart=q,S0($,!1),$.strm.avail_out===0)return T0}if($.strstart-$.block_start>=$.w_size-i0){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===A6){if(S0($,!0),$.strm.avail_out===0)return m6;return K1}if($.strstart>$.block_start){if(S0($,!1),$.strm.avail_out===0)return T0}return T0}function c8($,V){var Q,q;for(;;){if($.lookahead<i0){if(p6($),$.lookahead<i0&&V===c6)return T0;if($.lookahead===0)break}if(Q=0,$.lookahead>=J0)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if(Q!==0&&$.strstart-Q<=$.w_size-i0)$.match_length=Z5($,Q);if($.match_length>=J0)if(q=c0._tr_tally($,$.strstart-$.match_start,$.match_length-J0),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=J0){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else q=c0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=$.strstart<J0-1?$.strstart:J0-1,V===A6){if(S0($,!0),$.strm.avail_out===0)return m6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return y1}function X1($,V){var Q,q,K;for(;;){if($.lookahead<i0){if(p6($),$.lookahead<i0&&V===c6)return T0;if($.lookahead===0)break}if(Q=0,$.lookahead>=J0)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;if($.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=J0-1,Q!==0&&$.prev_length<$.max_lazy_match&&$.strstart-Q<=$.w_size-i0){if($.match_length=Z5($,Q),$.match_length<=5&&($.strategy===O3||$.match_length===J0&&$.strstart-$.match_start>4096))$.match_length=J0-1}if($.prev_length>=J0&&$.match_length<=$.prev_length){K=$.strstart+$.lookahead-J0,q=c0._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-J0),$.lookahead-=$.prev_length-1,$.prev_length-=2;do if(++$.strstart<=K)$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+J0-1])&$.hash_mask,Q=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.prev_length!==0);if($.match_available=0,$.match_length=J0-1,$.strstart++,q){if(S0($,!1),$.strm.avail_out===0)return T0}}else if($.match_available){if(q=c0._tr_tally($,0,$.window[$.strstart-1]),q)S0($,!1);if($.strstart++,$.lookahead--,$.strm.avail_out===0)return T0}else $.match_available=1,$.strstart++,$.lookahead--}if($.match_available)q=c0._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0;if($.insert=$.strstart<J0-1?$.strstart:J0-1,V===A6){if(S0($,!0),$.strm.avail_out===0)return m6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return y1}function f3($,V){var Q,q,K,G,U=$.window;for(;;){if($.lookahead<=N6){if(p6($),$.lookahead<=N6&&V===c6)return T0;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=J0&&$.strstart>0){if(K=$.strstart-1,q=U[K],q===U[++K]&&q===U[++K]&&q===U[++K]){G=$.strstart+N6;do;while(q===U[++K]&&q===U[++K]&&q===U[++K]&&q===U[++K]&&q===U[++K]&&q===U[++K]&&q===U[++K]&&q===U[++K]&&K<G);if($.match_length=N6-(G-K),$.match_length>$.lookahead)$.match_length=$.lookahead}}if($.match_length>=J0)Q=c0._tr_tally($,1,$.match_length-J0),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0;else Q=c0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(Q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===A6){if(S0($,!0),$.strm.avail_out===0)return m6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return y1}function h3($,V){var Q;for(;;){if($.lookahead===0){if(p6($),$.lookahead===0){if(V===c6)return T0;break}}if($.match_length=0,Q=c0._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,Q){if(S0($,!1),$.strm.avail_out===0)return T0}}if($.insert=0,V===A6){if(S0($,!0),$.strm.avail_out===0)return m6;return K1}if($.last_lit){if(S0($,!1),$.strm.avail_out===0)return T0}return y1}function $6($,V,Q,q,K){this.good_length=$,this.max_lazy=V,this.nice_length=Q,this.max_chain=q,this.func=K}var Y1;Y1=[new $6(0,0,0,0,b3),new $6(4,4,8,4,c8),new $6(4,5,16,8,c8),new $6(4,6,32,32,c8),new $6(4,4,16,16,X1),new $6(8,16,32,32,X1),new $6(8,16,128,128,X1),new $6(8,32,128,256,X1),new $6(32,128,258,1024,X1),new $6(32,258,258,4096,X1)];function _3($){$.window_size=2*$.w_size,w6($.head),$.max_lazy_match=Y1[$.level].max_lazy,$.good_match=Y1[$.level].good_length,$.nice_match=Y1[$.level].nice_length,$.max_chain_length=Y1[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=J0-1,$.match_available=0,$.ins_h=0}function m3(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C2,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y0.Buf16(S3*2),this.dyn_dtree=new y0.Buf16((2*x3+1)*2),this.bl_tree=new y0.Buf16((2*T3+1)*2),w6(this.dyn_ltree),w6(this.dyn_dtree),w6(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y0.Buf16(k3+1),this.heap=new y0.Buf16(2*u8+1),w6(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y0.Buf16(2*u8+1),w6(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function F5($){var V;if(!$||!$.state)return v6($,u0);if($.total_in=$.total_out=0,$.data_type=D3,V=$.state,V.pending=0,V.pending_out=0,V.wrap<0)V.wrap=-V.wrap;return V.status=V.wrap?I2:_6,$.adler=V.wrap===2?0:1,V.last_flush=c6,c0._tr_init(V),Q6}function H5($){var V=F5($);if(V===Q6)_3($.state);return V}function p3($,V){if(!$||!$.state)return u0;if($.state.wrap!==2)return u0;return $.state.gzhead=V,Q6}function M5($,V,Q,q,K,G){if(!$)return u0;var U=1;if(V===L3)V=6;if(q<0)U=0,q=-q;else if(q>15)U=2,q-=16;if(K<1||K>w3||Q!==C2||q<8||q>15||V<0||V>9||G<0||G>C3)return v6($,u0);if(q===8)q=9;var J=new m3;return $.state=J,J.strm=$,J.wrap=U,J.gzhead=null,J.w_bits=q,J.w_size=1<<J.w_bits,J.w_mask=J.w_size-1,J.hash_bits=K+7,J.hash_size=1<<J.hash_bits,J.hash_mask=J.hash_size-1,J.hash_shift=~~((J.hash_bits+J0-1)/J0),J.window=new y0.Buf8(J.w_size*2),J.head=new y0.Buf16(J.hash_size),J.prev=new y0.Buf16(J.w_size),J.lit_bufsize=1<<K+6,J.pending_buf_size=J.lit_bufsize*4,J.pending_buf=new y0.Buf8(J.pending_buf_size),J.d_buf=1*J.lit_bufsize,J.l_buf=3*J.lit_bufsize,J.level=V,J.strategy=G,J.method=Q,H5($)}function c3($,V){return M5($,V,C2,N3,v3,I3)}function u3($,V){var Q,q,K,G;if(!$||!$.state||V>U5||V<0)return $?v6($,u0):u0;if(q=$.state,!$.output||!$.input&&$.avail_in!==0||q.status===E1&&V!==A6)return v6($,$.avail_out===0?p8:u0);if(q.strm=$,Q=q.last_flush,q.last_flush=V,q.status===I2)if(q.wrap===2)if($.adler=0,j0(q,31),j0(q,139),j0(q,8),!q.gzhead)j0(q,0),j0(q,0),j0(q,0),j0(q,0),j0(q,0),j0(q,q.level===9?2:q.strategy>=M2||q.level<2?4:0),j0(q,E3),q.status=_6;else{if(j0(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(!q.gzhead.extra?0:4)+(!q.gzhead.name?0:8)+(!q.gzhead.comment?0:16)),j0(q,q.gzhead.time&255),j0(q,q.gzhead.time>>8&255),j0(q,q.gzhead.time>>16&255),j0(q,q.gzhead.time>>24&255),j0(q,q.level===9?2:q.strategy>=M2||q.level<2?4:0),j0(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length)j0(q,q.gzhead.extra.length&255),j0(q,q.gzhead.extra.length>>8&255);if(q.gzhead.hcrc)$.adler=I6($.adler,q.pending_buf,q.pending,0);q.gzindex=0,q.status=d8}else{var U=C2+(q.w_bits-8<<4)<<8,J=-1;if(q.strategy>=M2||q.level<2)J=0;else if(q.level<6)J=1;else if(q.level===6)J=2;else J=3;if(U|=J<<6,q.strstart!==0)U|=g3;if(U+=31-U%31,q.status=_6,g1(q,U),q.strstart!==0)g1(q,$.adler>>>16),g1(q,$.adler&65535);$.adler=1}if(q.status===d8)if(q.gzhead.extra){K=q.pending;while(q.gzindex<(q.gzhead.extra.length&65535)){if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=I6($.adler,q.pending_buf,q.pending-K,K);if(D6($),K=q.pending,q.pending===q.pending_buf_size)break}j0(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++}if(q.gzhead.hcrc&&q.pending>K)$.adler=I6($.adler,q.pending_buf,q.pending-K,K);if(q.gzindex===q.gzhead.extra.length)q.gzindex=0,q.status=L2}else q.status=L2;if(q.status===L2)if(q.gzhead.name){K=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=I6($.adler,q.pending_buf,q.pending-K,K);if(D6($),K=q.pending,q.pending===q.pending_buf_size){G=1;break}}if(q.gzindex<q.gzhead.name.length)G=q.gzhead.name.charCodeAt(q.gzindex++)&255;else G=0;j0(q,G)}while(G!==0);if(q.gzhead.hcrc&&q.pending>K)$.adler=I6($.adler,q.pending_buf,q.pending-K,K);if(G===0)q.gzindex=0,q.status=O2}else q.status=O2;if(q.status===O2)if(q.gzhead.comment){K=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>K)$.adler=I6($.adler,q.pending_buf,q.pending-K,K);if(D6($),K=q.pending,q.pending===q.pending_buf_size){G=1;break}}if(q.gzindex<q.gzhead.comment.length)G=q.gzhead.comment.charCodeAt(q.gzindex++)&255;else G=0;j0(q,G)}while(G!==0);if(q.gzhead.hcrc&&q.pending>K)$.adler=I6($.adler,q.pending_buf,q.pending-K,K);if(G===0)q.status=B2}else q.status=B2;if(q.status===B2)if(q.gzhead.hcrc){if(q.pending+2>q.pending_buf_size)D6($);if(q.pending+2<=q.pending_buf_size)j0(q,$.adler&255),j0(q,$.adler>>8&255),$.adler=0,q.status=_6}else q.status=_6;if(q.pending!==0){if(D6($),$.avail_out===0)return q.last_flush=-1,Q6}else if($.avail_in===0&&j5(V)<=j5(Q)&&V!==A6)return v6($,p8);if(q.status===E1&&$.avail_in!==0)return v6($,p8);if($.avail_in!==0||q.lookahead!==0||V!==c6&&q.status!==E1){var j=q.strategy===M2?h3(q,V):q.strategy===B3?f3(q,V):Y1[q.level].func(q,V);if(j===m6||j===K1)q.status=E1;if(j===T0||j===m6){if($.avail_out===0)q.last_flush=-1;return Q6}if(j===y1){if(V===F3)c0._tr_align(q);else if(V!==U5){if(c0._tr_stored_block(q,0,0,!1),V===H3){if(w6(q.head),q.lookahead===0)q.strstart=0,q.block_start=0,q.insert=0}}if(D6($),$.avail_out===0)return q.last_flush=-1,Q6}}if(V!==A6)return Q6;if(q.wrap<=0)return P5;if(q.wrap===2)j0(q,$.adler&255),j0(q,$.adler>>8&255),j0(q,$.adler>>16&255),j0(q,$.adler>>24&255),j0(q,$.total_in&255),j0(q,$.total_in>>8&255),j0(q,$.total_in>>16&255),j0(q,$.total_in>>24&255);else g1(q,$.adler>>>16),g1(q,$.adler&65535);if(D6($),q.wrap>0)q.wrap=-q.wrap;return q.pending!==0?Q6:P5}function d3($){var V;if(!$||!$.state)return u0;if(V=$.state.status,V!==I2&&V!==d8&&V!==L2&&V!==O2&&V!==B2&&V!==_6&&V!==E1)return v6($,u0);return $.state=null,V===_6?v6($,M3):Q6}function l3($,V){var Q=V.length,q,K,G,U,J,j,P,z;if(!$||!$.state)return u0;if(q=$.state,U=q.wrap,U===2||U===1&&q.status!==I2||q.lookahead)return u0;if(U===1)$.adler=z5($.adler,V,Q,0);if(q.wrap=0,Q>=q.w_size){if(U===0)w6(q.head),q.strstart=0,q.block_start=0,q.insert=0;z=new y0.Buf8(q.w_size),y0.arraySet(z,V,Q-q.w_size,q.w_size,0),V=z,Q=q.w_size}J=$.avail_in,j=$.next_in,P=$.input,$.avail_in=Q,$.next_in=0,$.input=V,p6(q);while(q.lookahead>=J0){K=q.strstart,G=q.lookahead-(J0-1);do q.ins_h=(q.ins_h<<q.hash_shift^q.window[K+J0-1])&q.hash_mask,q.prev[K&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=K,K++;while(--G);q.strstart=K,q.lookahead=J0-1,p6(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=J0-1,q.match_available=0,$.next_in=j,$.input=P,$.avail_in=J,q.wrap=U,Q6}o3.deflateInit=c3;o3.deflateInit2=M5;o3.deflateReset=H5;o3.deflateResetKeep=F5;o3.deflateSetHeader=p3;o3.deflate=u3;o3.deflateEnd=d3;o3.deflateSetDictionary=l3;o3.deflateInfo="pako deflate (from Nodeca project)"});var l8=$0((VX)=>{var D2=z6(),O5=!0,B5=!0;try{String.fromCharCode.apply(null,[0])}catch($){O5=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch($){B5=!1}var b1=new D2.Buf8(256);for(V6=0;V6<256;V6++)b1[V6]=V6>=252?6:V6>=248?5:V6>=240?4:V6>=224?3:V6>=192?2:1;var V6;b1[254]=b1[254]=1;VX.string2buf=function($){var V,Q,q,K,G,U=$.length,J=0;for(K=0;K<U;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<U){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}J+=Q<128?1:Q<2048?2:Q<65536?3:4}V=new D2.Buf8(J);for(G=0,K=0;G<J;K++){if(Q=$.charCodeAt(K),(Q&64512)===55296&&K+1<U){if(q=$.charCodeAt(K+1),(q&64512)===56320)Q=65536+(Q-55296<<10)+(q-56320),K++}if(Q<128)V[G++]=Q;else if(Q<2048)V[G++]=192|Q>>>6,V[G++]=128|Q&63;else if(Q<65536)V[G++]=224|Q>>>12,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63;else V[G++]=240|Q>>>18,V[G++]=128|Q>>>12&63,V[G++]=128|Q>>>6&63,V[G++]=128|Q&63}return V};function C5($,V){if(V<65534){if($.subarray&&B5||!$.subarray&&O5)return String.fromCharCode.apply(null,D2.shrinkBuf($,V))}var Q="";for(var q=0;q<V;q++)Q+=String.fromCharCode($[q]);return Q}VX.buf2binstring=function($){return C5($,$.length)};VX.binstring2buf=function($){var V=new D2.Buf8($.length);for(var Q=0,q=V.length;Q<q;Q++)V[Q]=$.charCodeAt(Q);return V};VX.buf2string=function($,V){var Q,q,K,G,U=V||$.length,J=new Array(U*2);for(q=0,Q=0;Q<U;){if(K=$[Q++],K<128){J[q++]=K;continue}if(G=b1[K],G>4){J[q++]=65533,Q+=G-1;continue}K&=G===2?31:G===3?15:7;while(G>1&&Q<U)K=K<<6|$[Q++]&63,G--;if(G>1){J[q++]=65533;continue}if(K<65536)J[q++]=K;else K-=65536,J[q++]=55296|K>>10&1023,J[q++]=56320|K&1023}return C5(J,q)};VX.utf8border=function($,V){var Q;if(V=V||$.length,V>$.length)V=$.length;Q=V-1;while(Q>=0&&($[Q]&192)===128)Q--;if(Q<0)return V;if(Q===0)return V;return Q+b1[$[Q]]>V?Q:V}});var o8=$0((AK,I5)=>{function GX(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}I5.exports=GX});var v5=$0((HX)=>{var f1=L5(),h1=z6(),n8=l8(),a8=H2(),WX=o8(),N5=Object.prototype.toString,UX=0,i8=4,J1=0,D5=1,w5=2,PX=-1,jX=0,zX=8;function u6($){if(!(this instanceof u6))return new u6($);this.options=h1.assign({level:PX,method:zX,chunkSize:16384,windowBits:15,memLevel:8,strategy:jX,to:""},$||{});var V=this.options;if(V.raw&&V.windowBits>0)V.windowBits=-V.windowBits;else if(V.gzip&&V.windowBits>0&&V.windowBits<16)V.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new WX,this.strm.avail_out=0;var Q=f1.deflateInit2(this.strm,V.level,V.method,V.windowBits,V.memLevel,V.strategy);if(Q!==J1)throw new Error(a8[Q]);if(V.header)f1.deflateSetHeader(this.strm,V.header);if(V.dictionary){var q;if(typeof V.dictionary==="string")q=n8.string2buf(V.dictionary);else if(N5.call(V.dictionary)==="[object ArrayBuffer]")q=new Uint8Array(V.dictionary);else q=V.dictionary;if(Q=f1.deflateSetDictionary(this.strm,q),Q!==J1)throw new Error(a8[Q]);this._dict_set=!0}}u6.prototype.push=function($,V){var Q=this.strm,q=this.options.chunkSize,K,G;if(this.ended)return!1;if(G=V===~~V?V:V===!0?i8:UX,typeof $==="string")Q.input=n8.string2buf($);else if(N5.call($)==="[object ArrayBuffer]")Q.input=new Uint8Array($);else Q.input=$;Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0)Q.output=new h1.Buf8(q),Q.next_out=0,Q.avail_out=q;if(K=f1.deflate(Q,G),K!==D5&&K!==J1)return this.onEnd(K),this.ended=!0,!1;if(Q.avail_out===0||Q.avail_in===0&&(G===i8||G===w5))if(this.options.to==="string")this.onData(n8.buf2binstring(h1.shrinkBuf(Q.output,Q.next_out)));else this.onData(h1.shrinkBuf(Q.output,Q.next_out))}while((Q.avail_in>0||Q.avail_out===0)&&K!==D5);if(G===i8)return K=f1.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===J1;if(G===w5)return this.onEnd(J1),Q.avail_out=0,!0;return!0};u6.prototype.onData=function($){this.chunks.push($)};u6.prototype.onEnd=function($){if($===J1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=h1.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function r8($,V){var Q=new u6(V);if(Q.push($,!0),Q.err)throw Q.msg||a8[Q.err];return Q.result}function ZX($,V){return V=V||{},V.raw=!0,r8($,V)}function FX($,V){return V=V||{},V.gzip=!0,r8($,V)}HX.Deflate=u6;HX.deflate=r8;HX.deflateRaw=ZX;HX.gzip=FX});var R5=$0((xK,A5)=>{var w2=30,CX=12;A5.exports=function $(V,Q){var q,K,G,U,J,j,P,z,B,I,R,x,S,g,y,Z,O,M,A,C,L,T,E,f,b;q=V.state,K=V.next_in,f=V.input,G=K+(V.avail_in-5),U=V.next_out,b=V.output,J=U-(Q-V.avail_out),j=U+(V.avail_out-257),P=q.dmax,z=q.wsize,B=q.whave,I=q.wnext,R=q.window,x=q.hold,S=q.bits,g=q.lencode,y=q.distcode,Z=(1<<q.lenbits)-1,O=(1<<q.distbits)-1;$:do{if(S<15)x+=f[K++]<<S,S+=8,x+=f[K++]<<S,S+=8;M=g[x&Z];Q:for(;;){if(A=M>>>24,x>>>=A,S-=A,A=M>>>16&255,A===0)b[U++]=M&65535;else if(A&16){if(C=M&65535,A&=15,A){if(S<A)x+=f[K++]<<S,S+=8;C+=x&(1<<A)-1,x>>>=A,S-=A}if(S<15)x+=f[K++]<<S,S+=8,x+=f[K++]<<S,S+=8;M=y[x&O];V:for(;;){if(A=M>>>24,x>>>=A,S-=A,A=M>>>16&255,A&16){if(L=M&65535,A&=15,S<A){if(x+=f[K++]<<S,S+=8,S<A)x+=f[K++]<<S,S+=8}if(L+=x&(1<<A)-1,L>P){V.msg="invalid distance too far back",q.mode=w2;break $}if(x>>>=A,S-=A,A=U-J,L>A){if(A=L-A,A>B){if(q.sane){V.msg="invalid distance too far back",q.mode=w2;break $}}if(T=0,E=R,I===0){if(T+=z-A,A<C){C-=A;do b[U++]=R[T++];while(--A);T=U-L,E=b}}else if(I<A){if(T+=z+I-A,A-=I,A<C){C-=A;do b[U++]=R[T++];while(--A);if(T=0,I<C){A=I,C-=A;do b[U++]=R[T++];while(--A);T=U-L,E=b}}}else if(T+=I-A,A<C){C-=A;do b[U++]=R[T++];while(--A);T=U-L,E=b}while(C>2)b[U++]=E[T++],b[U++]=E[T++],b[U++]=E[T++],C-=3;if(C){if(b[U++]=E[T++],C>1)b[U++]=E[T++]}}else{T=U-L;do b[U++]=b[T++],b[U++]=b[T++],b[U++]=b[T++],C-=3;while(C>2);if(C){if(b[U++]=b[T++],C>1)b[U++]=b[T++]}}}else if((A&64)===0){M=y[(M&65535)+(x&(1<<A)-1)];continue V}else{V.msg="invalid distance code",q.mode=w2;break $}break}}else if((A&64)===0){M=g[(M&65535)+(x&(1<<A)-1)];continue Q}else if(A&32){q.mode=CX;break $}else{V.msg="invalid literal/length code",q.mode=w2;break $}break}}while(K<G&&U<j);C=S>>3,K-=C,S-=C<<3,x&=(1<<S)-1,V.next_in=K,V.next_out=U,V.avail_in=K<G?5+(G-K):5-(K-G),V.avail_out=U<j?257+(j-U):257-(U-j),q.hold=x,q.bits=S;return}});var y5=$0((TK,E5)=>{var x5=z6(),G1=15,T5=852,S5=592,k5=0,s8=1,g5=2,IX=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],DX=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],wX=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],NX=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];E5.exports=function $(V,Q,q,K,G,U,J,j){var P=j.bits,z=0,B=0,I=0,R=0,x=0,S=0,g=0,y=0,Z=0,O=0,M,A,C,L,T,E=null,f=0,b,F=new x5.Buf16(G1+1),m=new x5.Buf16(G1+1),n=null,v=0,c,u,i;for(z=0;z<=G1;z++)F[z]=0;for(B=0;B<K;B++)F[Q[q+B]]++;x=P;for(R=G1;R>=1;R--)if(F[R]!==0)break;if(x>R)x=R;if(R===0)return G[U++]=20971520,G[U++]=20971520,j.bits=1,0;for(I=1;I<R;I++)if(F[I]!==0)break;if(x<I)x=I;y=1;for(z=1;z<=G1;z++)if(y<<=1,y-=F[z],y<0)return-1;if(y>0&&(V===k5||R!==1))return-1;m[1]=0;for(z=1;z<G1;z++)m[z+1]=m[z]+F[z];for(B=0;B<K;B++)if(Q[q+B]!==0)J[m[Q[q+B]]++]=B;if(V===k5)E=n=J,b=19;else if(V===s8)E=IX,f-=257,n=DX,v-=257,b=256;else E=wX,n=NX,b=-1;if(O=0,B=0,z=I,T=U,S=x,g=0,C=-1,Z=1<<x,L=Z-1,V===s8&&Z>T5||V===g5&&Z>S5)return 1;for(;;){if(c=z-g,J[B]<b)u=0,i=J[B];else if(J[B]>b)u=n[v+J[B]],i=E[f+J[B]];else u=96,i=0;M=1<<z-g,A=1<<S,I=A;do A-=M,G[T+(O>>g)+A]=c<<24|u<<16|i|0;while(A!==0);M=1<<z-1;while(O&M)M>>=1;if(M!==0)O&=M-1,O+=M;else O=0;if(B++,--F[z]===0){if(z===R)break;z=Q[q+J[B]]}if(z>x&&(O&L)!==C){if(g===0)g=x;T+=I,S=z-g,y=1<<S;while(S+g<R){if(y-=F[S+g],y<=0)break;S++,y<<=1}if(Z+=1<<S,V===s8&&Z>T5||V===g5&&Z>S5)return 1;C=O&L,G[C]=x<<24|S<<16|T-U|0}}if(O!==0)G[T+O]=z-g<<24|4194304|0;return j.bits=x,0}});var HV=$0((dX)=>{var p0=z6(),q$=_8(),q6=m8(),vX=R5(),_1=y5(),AX=0,JV=1,GV=2,b5=4,RX=5,N2=6,d6=0,xX=1,TX=2,d0=-2,WV=-3,X$=-4,SX=-5,f5=8,UV=1,h5=2,_5=3,m5=4,p5=5,c5=6,u5=7,d5=8,l5=9,o5=10,R2=11,F6=12,t8=13,i5=14,e8=15,n5=16,a5=17,r5=18,s5=19,v2=20,A2=21,t5=22,e5=23,$V=24,QV=25,VV=26,$$=27,qV=28,XV=29,I0=30,Y$=31,kX=32,gX=852,EX=592,yX=15,bX=yX;function YV($){return($>>>24&255)+($>>>8&65280)+(($&65280)<<8)+(($&255)<<24)}function fX(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p0.Buf16(320),this.work=new p0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function PV($){var V;if(!$||!$.state)return d0;if(V=$.state,$.total_in=$.total_out=V.total=0,$.msg="",V.wrap)$.adler=V.wrap&1;return V.mode=UV,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new p0.Buf32(gX),V.distcode=V.distdyn=new p0.Buf32(EX),V.sane=1,V.back=-1,d6}function jV($){var V;if(!$||!$.state)return d0;return V=$.state,V.wsize=0,V.whave=0,V.wnext=0,PV($)}function zV($,V){var Q,q;if(!$||!$.state)return d0;if(q=$.state,V<0)Q=0,V=-V;else if(Q=(V>>4)+1,V<48)V&=15;if(V&&(V<8||V>15))return d0;if(q.window!==null&&q.wbits!==V)q.window=null;return q.wrap=Q,q.wbits=V,jV($)}function ZV($,V){var Q,q;if(!$)return d0;if(q=new fX,$.state=q,q.window=null,Q=zV($,V),Q!==d6)$.state=null;return Q}function hX($){return ZV($,bX)}var KV=!0,Q$,V$;function _X($){if(KV){var V;Q$=new p0.Buf32(512),V$=new p0.Buf32(32),V=0;while(V<144)$.lens[V++]=8;while(V<256)$.lens[V++]=9;while(V<280)$.lens[V++]=7;while(V<288)$.lens[V++]=8;_1(JV,$.lens,0,288,Q$,0,$.work,{bits:9}),V=0;while(V<32)$.lens[V++]=5;_1(GV,$.lens,0,32,V$,0,$.work,{bits:5}),KV=!1}$.lencode=Q$,$.lenbits=9,$.distcode=V$,$.distbits=5}function FV($,V,Q,q){var K,G=$.state;if(G.window===null)G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new p0.Buf8(G.wsize);if(q>=G.wsize)p0.arraySet(G.window,V,Q-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize;else{if(K=G.wsize-G.wnext,K>q)K=q;if(p0.arraySet(G.window,V,Q-q,K,G.wnext),q-=K,q)p0.arraySet(G.window,V,Q-q,q,0),G.wnext=q,G.whave=G.wsize;else{if(G.wnext+=K,G.wnext===G.wsize)G.wnext=0;if(G.whave<G.wsize)G.whave+=K}}return 0}function mX($,V){var Q,q,K,G,U,J,j,P,z,B,I,R,x,S,g=0,y,Z,O,M,A,C,L,T,E=new p0.Buf8(4),f,b,F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return d0;if(Q=$.state,Q.mode===F6)Q.mode=t8;U=$.next_out,K=$.output,j=$.avail_out,G=$.next_in,q=$.input,J=$.avail_in,P=Q.hold,z=Q.bits,B=J,I=j,T=d6;$:for(;;)switch(Q.mode){case UV:if(Q.wrap===0){Q.mode=t8;break}while(z<16){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Q.wrap&2&&P===35615){Q.check=0,E[0]=P&255,E[1]=P>>>8&255,Q.check=q6(Q.check,E,2,0),P=0,z=0,Q.mode=h5;break}if(Q.flags=0,Q.head)Q.head.done=!1;if(!(Q.wrap&1)||(((P&255)<<8)+(P>>8))%31){$.msg="incorrect header check",Q.mode=I0;break}if((P&15)!==f5){$.msg="unknown compression method",Q.mode=I0;break}if(P>>>=4,z-=4,L=(P&15)+8,Q.wbits===0)Q.wbits=L;else if(L>Q.wbits){$.msg="invalid window size",Q.mode=I0;break}Q.dmax=1<<L,$.adler=Q.check=1,Q.mode=P&512?o5:F6,P=0,z=0;break;case h5:while(z<16){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Q.flags=P,(Q.flags&255)!==f5){$.msg="unknown compression method",Q.mode=I0;break}if(Q.flags&57344){$.msg="unknown header flags set",Q.mode=I0;break}if(Q.head)Q.head.text=P>>8&1;if(Q.flags&512)E[0]=P&255,E[1]=P>>>8&255,Q.check=q6(Q.check,E,2,0);P=0,z=0,Q.mode=_5;case _5:while(z<32){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Q.head)Q.head.time=P;if(Q.flags&512)E[0]=P&255,E[1]=P>>>8&255,E[2]=P>>>16&255,E[3]=P>>>24&255,Q.check=q6(Q.check,E,4,0);P=0,z=0,Q.mode=m5;case m5:while(z<16){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Q.head)Q.head.xflags=P&255,Q.head.os=P>>8;if(Q.flags&512)E[0]=P&255,E[1]=P>>>8&255,Q.check=q6(Q.check,E,2,0);P=0,z=0,Q.mode=p5;case p5:if(Q.flags&1024){while(z<16){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Q.length=P,Q.head)Q.head.extra_len=P;if(Q.flags&512)E[0]=P&255,E[1]=P>>>8&255,Q.check=q6(Q.check,E,2,0);P=0,z=0}else if(Q.head)Q.head.extra=null;Q.mode=c5;case c5:if(Q.flags&1024){if(R=Q.length,R>J)R=J;if(R){if(Q.head){if(L=Q.head.extra_len-Q.length,!Q.head.extra)Q.head.extra=new Array(Q.head.extra_len);p0.arraySet(Q.head.extra,q,G,R,L)}if(Q.flags&512)Q.check=q6(Q.check,q,R,G);J-=R,G+=R,Q.length-=R}if(Q.length)break $}Q.length=0,Q.mode=u5;case u5:if(Q.flags&2048){if(J===0)break $;R=0;do if(L=q[G+R++],Q.head&&L&&Q.length<65536)Q.head.name+=String.fromCharCode(L);while(L&&R<J);if(Q.flags&512)Q.check=q6(Q.check,q,R,G);if(J-=R,G+=R,L)break $}else if(Q.head)Q.head.name=null;Q.length=0,Q.mode=d5;case d5:if(Q.flags&4096){if(J===0)break $;R=0;do if(L=q[G+R++],Q.head&&L&&Q.length<65536)Q.head.comment+=String.fromCharCode(L);while(L&&R<J);if(Q.flags&512)Q.check=q6(Q.check,q,R,G);if(J-=R,G+=R,L)break $}else if(Q.head)Q.head.comment=null;Q.mode=l5;case l5:if(Q.flags&512){while(z<16){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(P!==(Q.check&65535)){$.msg="header crc mismatch",Q.mode=I0;break}P=0,z=0}if(Q.head)Q.head.hcrc=Q.flags>>9&1,Q.head.done=!0;$.adler=Q.check=0,Q.mode=F6;break;case o5:while(z<32){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}$.adler=Q.check=YV(P),P=0,z=0,Q.mode=R2;case R2:if(Q.havedict===0)return $.next_out=U,$.avail_out=j,$.next_in=G,$.avail_in=J,Q.hold=P,Q.bits=z,TX;$.adler=Q.check=1,Q.mode=F6;case F6:if(V===RX||V===N2)break $;case t8:if(Q.last){P>>>=z&7,z-=z&7,Q.mode=$$;break}while(z<3){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}switch(Q.last=P&1,P>>>=1,z-=1,P&3){case 0:Q.mode=i5;break;case 1:if(_X(Q),Q.mode=v2,V===N2){P>>>=2,z-=2;break $}break;case 2:Q.mode=a5;break;case 3:$.msg="invalid block type",Q.mode=I0}P>>>=2,z-=2;break;case i5:P>>>=z&7,z-=z&7;while(z<32){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if((P&65535)!==(P>>>16^65535)){$.msg="invalid stored block lengths",Q.mode=I0;break}if(Q.length=P&65535,P=0,z=0,Q.mode=e8,V===N2)break $;case e8:Q.mode=n5;case n5:if(R=Q.length,R){if(R>J)R=J;if(R>j)R=j;if(R===0)break $;p0.arraySet(K,q,G,R,U),J-=R,G+=R,j-=R,U+=R,Q.length-=R;break}Q.mode=F6;break;case a5:while(z<14){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Q.nlen=(P&31)+257,P>>>=5,z-=5,Q.ndist=(P&31)+1,P>>>=5,z-=5,Q.ncode=(P&15)+4,P>>>=4,z-=4,Q.nlen>286||Q.ndist>30){$.msg="too many length or distance symbols",Q.mode=I0;break}Q.have=0,Q.mode=r5;case r5:while(Q.have<Q.ncode){while(z<3){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}Q.lens[F[Q.have++]]=P&7,P>>>=3,z-=3}while(Q.have<19)Q.lens[F[Q.have++]]=0;if(Q.lencode=Q.lendyn,Q.lenbits=7,f={bits:Q.lenbits},T=_1(AX,Q.lens,0,19,Q.lencode,0,Q.work,f),Q.lenbits=f.bits,T){$.msg="invalid code lengths set",Q.mode=I0;break}Q.have=0,Q.mode=s5;case s5:while(Q.have<Q.nlen+Q.ndist){for(;;){if(g=Q.lencode[P&(1<<Q.lenbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(O<16)P>>>=y,z-=y,Q.lens[Q.have++]=O;else{if(O===16){b=y+2;while(z<b){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(P>>>=y,z-=y,Q.have===0){$.msg="invalid bit length repeat",Q.mode=I0;break}L=Q.lens[Q.have-1],R=3+(P&3),P>>>=2,z-=2}else if(O===17){b=y+3;while(z<b){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}P>>>=y,z-=y,L=0,R=3+(P&7),P>>>=3,z-=3}else{b=y+7;while(z<b){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}P>>>=y,z-=y,L=0,R=11+(P&127),P>>>=7,z-=7}if(Q.have+R>Q.nlen+Q.ndist){$.msg="invalid bit length repeat",Q.mode=I0;break}while(R--)Q.lens[Q.have++]=L}}if(Q.mode===I0)break;if(Q.lens[256]===0){$.msg="invalid code -- missing end-of-block",Q.mode=I0;break}if(Q.lenbits=9,f={bits:Q.lenbits},T=_1(JV,Q.lens,0,Q.nlen,Q.lencode,0,Q.work,f),Q.lenbits=f.bits,T){$.msg="invalid literal/lengths set",Q.mode=I0;break}if(Q.distbits=6,Q.distcode=Q.distdyn,f={bits:Q.distbits},T=_1(GV,Q.lens,Q.nlen,Q.ndist,Q.distcode,0,Q.work,f),Q.distbits=f.bits,T){$.msg="invalid distances set",Q.mode=I0;break}if(Q.mode=v2,V===N2)break $;case v2:Q.mode=A2;case A2:if(J>=6&&j>=258){if($.next_out=U,$.avail_out=j,$.next_in=G,$.avail_in=J,Q.hold=P,Q.bits=z,vX($,I),U=$.next_out,K=$.output,j=$.avail_out,G=$.next_in,q=$.input,J=$.avail_in,P=Q.hold,z=Q.bits,Q.mode===F6)Q.back=-1;break}Q.back=0;for(;;){if(g=Q.lencode[P&(1<<Q.lenbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(Z&&(Z&240)===0){M=y,A=Z,C=O;for(;;){if(g=Q.lencode[C+((P&(1<<M+A)-1)>>M)],y=g>>>24,Z=g>>>16&255,O=g&65535,M+y<=z)break;if(J===0)break $;J--,P+=q[G++]<<z,z+=8}P>>>=M,z-=M,Q.back+=M}if(P>>>=y,z-=y,Q.back+=y,Q.length=O,Z===0){Q.mode=VV;break}if(Z&32){Q.back=-1,Q.mode=F6;break}if(Z&64){$.msg="invalid literal/length code",Q.mode=I0;break}Q.extra=Z&15,Q.mode=t5;case t5:if(Q.extra){b=Q.extra;while(z<b){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}Q.length+=P&(1<<Q.extra)-1,P>>>=Q.extra,z-=Q.extra,Q.back+=Q.extra}Q.was=Q.length,Q.mode=e5;case e5:for(;;){if(g=Q.distcode[P&(1<<Q.distbits)-1],y=g>>>24,Z=g>>>16&255,O=g&65535,y<=z)break;if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if((Z&240)===0){M=y,A=Z,C=O;for(;;){if(g=Q.distcode[C+((P&(1<<M+A)-1)>>M)],y=g>>>24,Z=g>>>16&255,O=g&65535,M+y<=z)break;if(J===0)break $;J--,P+=q[G++]<<z,z+=8}P>>>=M,z-=M,Q.back+=M}if(P>>>=y,z-=y,Q.back+=y,Z&64){$.msg="invalid distance code",Q.mode=I0;break}Q.offset=O,Q.extra=Z&15,Q.mode=$V;case $V:if(Q.extra){b=Q.extra;while(z<b){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}Q.offset+=P&(1<<Q.extra)-1,P>>>=Q.extra,z-=Q.extra,Q.back+=Q.extra}if(Q.offset>Q.dmax){$.msg="invalid distance too far back",Q.mode=I0;break}Q.mode=QV;case QV:if(j===0)break $;if(R=I-j,Q.offset>R){if(R=Q.offset-R,R>Q.whave){if(Q.sane){$.msg="invalid distance too far back",Q.mode=I0;break}}if(R>Q.wnext)R-=Q.wnext,x=Q.wsize-R;else x=Q.wnext-R;if(R>Q.length)R=Q.length;S=Q.window}else S=K,x=U-Q.offset,R=Q.length;if(R>j)R=j;j-=R,Q.length-=R;do K[U++]=S[x++];while(--R);if(Q.length===0)Q.mode=A2;break;case VV:if(j===0)break $;K[U++]=Q.length,j--,Q.mode=A2;break;case $$:if(Q.wrap){while(z<32){if(J===0)break $;J--,P|=q[G++]<<z,z+=8}if(I-=j,$.total_out+=I,Q.total+=I,I)$.adler=Q.check=Q.flags?q6(Q.check,K,I,U-I):q$(Q.check,K,I,U-I);if(I=j,(Q.flags?P:YV(P))!==Q.check){$.msg="incorrect data check",Q.mode=I0;break}P=0,z=0}Q.mode=qV;case qV:if(Q.wrap&&Q.flags){while(z<32){if(J===0)break $;J--,P+=q[G++]<<z,z+=8}if(P!==(Q.total&4294967295)){$.msg="incorrect length check",Q.mode=I0;break}P=0,z=0}Q.mode=XV;case XV:T=xX;break $;case I0:T=WV;break $;case Y$:return X$;case kX:default:return d0}if($.next_out=U,$.avail_out=j,$.next_in=G,$.avail_in=J,Q.hold=P,Q.bits=z,Q.wsize||I!==$.avail_out&&Q.mode<I0&&(Q.mode<$$||V!==b5)){if(FV($,$.output,$.next_out,I-$.avail_out))return Q.mode=Y$,X$}if(B-=$.avail_in,I-=$.avail_out,$.total_in+=B,$.total_out+=I,Q.total+=I,Q.wrap&&I)$.adler=Q.check=Q.flags?q6(Q.check,K,I,$.next_out-I):q$(Q.check,K,I,$.next_out-I);if($.data_type=Q.bits+(Q.last?64:0)+(Q.mode===F6?128:0)+(Q.mode===v2||Q.mode===e8?256:0),(B===0&&I===0||V===b5)&&T===d6)T=SX;return T}function pX($){if(!$||!$.state)return d0;var V=$.state;if(V.window)V.window=null;return $.state=null,d6}function cX($,V){var Q;if(!$||!$.state)return d0;if(Q=$.state,(Q.wrap&2)===0)return d0;return Q.head=V,V.done=!1,d6}function uX($,V){var Q=V.length,q,K,G;if(!$||!$.state)return d0;if(q=$.state,q.wrap!==0&&q.mode!==R2)return d0;if(q.mode===R2){if(K=1,K=q$(K,V,Q,0),K!==q.check)return WV}if(G=FV($,V,Q,Q),G)return q.mode=Y$,X$;return q.havedict=1,d6}dX.inflateReset=jV;dX.inflateReset2=zV;dX.inflateResetKeep=PV;dX.inflateInit=hX;dX.inflateInit2=ZV;dX.inflate=mX;dX.inflateEnd=pX;dX.inflateGetHeader=cX;dX.inflateSetDictionary=uX;dX.inflateInfo="pako inflate (from Nodeca project)"});var K$=$0((kK,MV)=>{MV.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var OV=$0((gK,LV)=>{function Q4(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}LV.exports=Q4});var CV=$0((Y4)=>{var W1=HV(),m1=z6(),x2=l8(),A0=K$(),J$=H2(),V4=o8(),q4=OV(),BV=Object.prototype.toString;function l6($){if(!(this instanceof l6))return new l6($);this.options=m1.assign({chunkSize:16384,windowBits:0,to:""},$||{});var V=this.options;if(V.raw&&V.windowBits>=0&&V.windowBits<16){if(V.windowBits=-V.windowBits,V.windowBits===0)V.windowBits=-15}if(V.windowBits>=0&&V.windowBits<16&&!($&&$.windowBits))V.windowBits+=32;if(V.windowBits>15&&V.windowBits<48){if((V.windowBits&15)===0)V.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new V4,this.strm.avail_out=0;var Q=W1.inflateInit2(this.strm,V.windowBits);if(Q!==A0.Z_OK)throw new Error(J$[Q]);if(this.header=new q4,W1.inflateGetHeader(this.strm,this.header),V.dictionary){if(typeof V.dictionary==="string")V.dictionary=x2.string2buf(V.dictionary);else if(BV.call(V.dictionary)==="[object ArrayBuffer]")V.dictionary=new Uint8Array(V.dictionary);if(V.raw){if(Q=W1.inflateSetDictionary(this.strm,V.dictionary),Q!==A0.Z_OK)throw new Error(J$[Q])}}}l6.prototype.push=function($,V){var Q=this.strm,q=this.options.chunkSize,K=this.options.dictionary,G,U,J,j,P,z=!1;if(this.ended)return!1;if(U=V===~~V?V:V===!0?A0.Z_FINISH:A0.Z_NO_FLUSH,typeof $==="string")Q.input=x2.binstring2buf($);else if(BV.call($)==="[object ArrayBuffer]")Q.input=new Uint8Array($);else Q.input=$;Q.next_in=0,Q.avail_in=Q.input.length;do{if(Q.avail_out===0)Q.output=new m1.Buf8(q),Q.next_out=0,Q.avail_out=q;if(G=W1.inflate(Q,A0.Z_NO_FLUSH),G===A0.Z_NEED_DICT&&K)G=W1.inflateSetDictionary(this.strm,K);if(G===A0.Z_BUF_ERROR&&z===!0)G=A0.Z_OK,z=!1;if(G!==A0.Z_STREAM_END&&G!==A0.Z_OK)return this.onEnd(G),this.ended=!0,!1;if(Q.next_out){if(Q.avail_out===0||G===A0.Z_STREAM_END||Q.avail_in===0&&(U===A0.Z_FINISH||U===A0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(J=x2.utf8border(Q.output,Q.next_out),j=Q.next_out-J,P=x2.buf2string(Q.output,J),Q.next_out=j,Q.avail_out=q-j,j)m1.arraySet(Q.output,Q.output,J,j,0);this.onData(P)}else this.onData(m1.shrinkBuf(Q.output,Q.next_out))}if(Q.avail_in===0&&Q.avail_out===0)z=!0}while((Q.avail_in>0||Q.avail_out===0)&&G!==A0.Z_STREAM_END);if(G===A0.Z_STREAM_END)U=A0.Z_FINISH;if(U===A0.Z_FINISH)return G=W1.inflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===A0.Z_OK;if(U===A0.Z_SYNC_FLUSH)return this.onEnd(A0.Z_OK),Q.avail_out=0,!0;return!0};l6.prototype.onData=function($){this.chunks.push($)};l6.prototype.onEnd=function($){if($===A0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=m1.flattenChunks(this.chunks);this.chunks=[],this.err=$,this.msg=this.strm.msg};function G$($,V){var Q=new l6(V);if(Q.push($,!0),Q.err)throw Q.msg||J$[Q.err];return Q.result}function X4($,V){return V=V||{},V.raw=!0,G$($,V)}Y4.Inflate=l6;Y4.inflate=G$;Y4.inflateRaw=X4;Y4.ungzip=G$});var wV=$0((yK,DV)=>{var U4=z6().assign,P4=v5(),j4=CV(),z4=K$(),IV={};U4(IV,P4,j4,z4);DV.exports=IV});var vV=$0((M4)=>{var Z4=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined",F4=wV(),NV=N0(),T2=m0(),H4=Z4?"uint8array":"array";M4.magic="\b\x00";function o6($,V){T2.call(this,"FlateWorker/"+$),this._pako=null,this._pakoAction=$,this._pakoOptions=V,this.meta={}}NV.inherits(o6,T2);o6.prototype.processChunk=function($){if(this.meta=$.meta,this._pako===null)this._createPako();this._pako.push(NV.transformTo(H4,$.data),!1)};o6.prototype.flush=function(){if(T2.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};o6.prototype.cleanUp=function(){T2.prototype.cleanUp.call(this),this._pako=null};o6.prototype._createPako=function(){this._pako=new F4[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var $=this;this._pako.onData=function(V){$.push({data:V,meta:$.meta})}};M4.compressWorker=function($){return new o6("Deflate",$)};M4.uncompressWorker=function(){return new o6("Inflate",{})}});var W$=$0((C4)=>{var AV=m0();C4.STORE={magic:"\x00\x00",compressWorker:function(){return new AV("STORE compression")},uncompressWorker:function(){return new AV("STORE decompression")}};C4.DEFLATE=vV()});var U$=$0((w4)=>{w4.LOCAL_FILE_HEADER="PK\x03\x04";w4.CENTRAL_FILE_HEADER="PK\x01\x02";w4.CENTRAL_DIRECTORY_END="PK\x05\x06";w4.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";w4.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";w4.DATA_DESCRIPTOR="PK\x07\b"});var SV=$0((_K,TV)=>{var U1=N0(),P1=m0(),P$=$1(),RV=j2(),S2=U$(),O0=function($,V){var Q="",q;for(q=0;q<V;q++)Q+=String.fromCharCode($&255),$=$>>>8;return Q},S4=function($,V){var Q=$;if(!$)Q=V?16893:33204;return(Q&65535)<<16},k4=function($){return($||0)&63},xV=function($,V,Q,q,K,G){var{file:U,compression:J}=$,j=G!==P$.utf8encode,P=U1.transformTo("string",G(U.name)),z=U1.transformTo("string",P$.utf8encode(U.name)),B=U.comment,I=U1.transformTo("string",G(B)),R=U1.transformTo("string",P$.utf8encode(B)),x=z.length!==U.name.length,S=R.length!==B.length,g,y,Z="",O="",M="",A=U.dir,C=U.date,L={crc32:0,compressedSize:0,uncompressedSize:0};if(!V||Q)L.crc32=$.crc32,L.compressedSize=$.compressedSize,L.uncompressedSize=$.uncompressedSize;var T=0;if(V)T|=8;if(!j&&(x||S))T|=2048;var E=0,f=0;if(A)E|=16;if(K==="UNIX")f=798,E|=S4(U.unixPermissions,A);else f=20,E|=k4(U.dosPermissions,A);if(g=C.getUTCHours(),g=g<<6,g=g|C.getUTCMinutes(),g=g<<5,g=g|C.getUTCSeconds()/2,y=C.getUTCFullYear()-1980,y=y<<4,y=y|C.getUTCMonth()+1,y=y<<5,y=y|C.getUTCDate(),x)O=O0(1,1)+O0(RV(P),4)+z,Z+="up"+O0(O.length,2)+O;if(S)M=O0(1,1)+O0(RV(I),4)+R,Z+="uc"+O0(M.length,2)+M;var b="";b+=`
|
|
8
|
-
\x00`,b+=O0(T,2),b+=J.magic,b+=O0(g,2),b+=O0(y,2),b+=O0(L.crc32,4),b+=O0(L.compressedSize,4),b+=O0(L.uncompressedSize,4),b+=O0(P.length,2),b+=O0(Z.length,2);var F=S2.LOCAL_FILE_HEADER+b+P+Z,m=S2.CENTRAL_FILE_HEADER+O0(f,2)+b+O0(I.length,2)+"\x00\x00\x00\x00"+O0(E,4)+O0(q,4)+P+Z+I;return{fileRecord:F,dirRecord:m}},g4=function($,V,Q,q,K){var G="",U=U1.transformTo("string",K(q));return G=S2.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+O0($,2)+O0($,2)+O0(V,4)+O0(Q,4)+O0(U.length,2)+U,G},E4=function($){var V="";return V=S2.DATA_DESCRIPTOR+O0($.crc32,4)+O0($.compressedSize,4)+O0($.uncompressedSize,4),V};function n0($,V,Q,q){P1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=V,this.zipPlatform=Q,this.encodeFileName=q,this.streamFiles=$,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}U1.inherits(n0,P1);n0.prototype.push=function($){var V=$.meta.percent||0,Q=this.entriesCount,q=this._sources.length;if(this.accumulate)this.contentBuffer.push($);else this.bytesWritten+=$.data.length,P1.prototype.push.call(this,{data:$.data,meta:{currentFile:this.currentFile,percent:Q?(V+100*(Q-q-1))/Q:100}})};n0.prototype.openedSource=function($){this.currentSourceOffset=this.bytesWritten,this.currentFile=$.file.name;var V=this.streamFiles&&!$.file.dir;if(V){var Q=xV($,V,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:Q.fileRecord,meta:{percent:0}})}else this.accumulate=!0};n0.prototype.closedSource=function($){this.accumulate=!1;var V=this.streamFiles&&!$.file.dir,Q=xV($,V,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(Q.dirRecord),V)this.push({data:E4($),meta:{percent:100}});else{this.push({data:Q.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};n0.prototype.flush=function(){var $=this.bytesWritten;for(var V=0;V<this.dirRecords.length;V++)this.push({data:this.dirRecords[V],meta:{percent:100}});var Q=this.bytesWritten-$,q=g4(this.dirRecords.length,Q,$,this.zipComment,this.encodeFileName);this.push({data:q,meta:{percent:100}})};n0.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};n0.prototype.registerPrevious=function($){this._sources.push($);var V=this;return $.on("data",function(Q){V.processChunk(Q)}),$.on("end",function(){if(V.closedSource(V.previous.streamInfo),V._sources.length)V.prepareNextSource();else V.end()}),$.on("error",function(Q){V.error(Q)}),this};n0.prototype.resume=function(){if(!P1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};n0.prototype.error=function($){var V=this._sources;if(!P1.prototype.error.call(this,$))return!1;for(var Q=0;Q<V.length;Q++)try{V[Q].error($)}catch(q){}return!0};n0.prototype.lock=function(){P1.prototype.lock.call(this);var $=this._sources;for(var V=0;V<$.length;V++)$[V].lock()};TV.exports=n0});var kV=$0((h4)=>{var y4=W$(),b4=SV(),f4=function($,V){var Q=$||V,q=y4[Q];if(!q)throw new Error(Q+" is not a valid compression method !");return q};h4.generateWorker=function($,V,Q){var q=new b4(V.streamFiles,Q,V.platform,V.encodeFileName),K=0;try{$.forEach(function(G,U){K++;var J=f4(U.options.compression,V.compression),j=U.options.compressionOptions||V.compressionOptions||{},P=U.dir,z=U.date;U._compressWorker(J,j).withStreamInfo("file",{name:G,dir:P,date:z,comment:U.comment||"",unixPermissions:U.unixPermissions,dosPermissions:U.dosPermissions}).pipe(q)}),q.entriesCount=K}catch(G){q.error(G)}return q}});var EV=$0((pK,gV)=>{var m4=N0(),k2=m0();function p1($,V){k2.call(this,"Nodejs stream input adapter for "+$),this._upstreamEnded=!1,this._bindStream(V)}m4.inherits(p1,k2);p1.prototype._bindStream=function($){var V=this;this._stream=$,$.pause(),$.on("data",function(Q){V.push({data:Q,meta:{percent:0}})}).on("error",function(Q){if(V.isPaused)this.generatedError=Q;else V.error(Q)}).on("end",function(){if(V.isPaused)V._upstreamEnded=!0;else V.end()})};p1.prototype.pause=function(){if(!k2.prototype.pause.call(this))return!1;return this._stream.pause(),!0};p1.prototype.resume=function(){if(!k2.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};gV.exports=p1});var dV=$0((cK,uV)=>{var p4=$1(),c1=N0(),hV=m0(),c4=F8(),_V=H8(),yV=z2(),u4=bQ(),d4=kV(),bV=O1(),l4=EV(),mV=function($,V,Q){var q=c1.getTypeOf(V),K,G=c1.extend(Q||{},_V);if(G.date=G.date||new Date,G.compression!==null)G.compression=G.compression.toUpperCase();if(typeof G.unixPermissions==="string")G.unixPermissions=parseInt(G.unixPermissions,8);if(G.unixPermissions&&G.unixPermissions&16384)G.dir=!0;if(G.dosPermissions&&G.dosPermissions&16)G.dir=!0;if(G.dir)$=pV($);if(G.createFolders&&(K=o4($)))cV.call(this,K,!0);var U=q==="string"&&G.binary===!1&&G.base64===!1;if(!Q||typeof Q.binary==="undefined")G.binary=!U;var J=V instanceof yV&&V.uncompressedSize===0;if(J||G.dir||!V||V.length===0)G.base64=!1,G.binary=!0,V="",G.compression="STORE",q="string";var j=null;if(V instanceof yV||V instanceof hV)j=V;else if(bV.isNode&&bV.isStream(V))j=new l4($,V);else j=c1.prepareContent($,V,G.binary,G.optimizedBinaryString,G.base64);var P=new u4($,j,G);this.files[$]=P},o4=function($){if($.slice(-1)==="/")$=$.substring(0,$.length-1);var V=$.lastIndexOf("/");return V>0?$.substring(0,V):""},pV=function($){if($.slice(-1)!=="/")$+="/";return $},cV=function($,V){if(V=typeof V!=="undefined"?V:_V.createFolders,$=pV($),!this.files[$])mV.call(this,$,null,{dir:!0,createFolders:V});return this.files[$]};function fV($){return Object.prototype.toString.call($)==="[object RegExp]"}var i4={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function($){var V,Q,q;for(V in this.files)if(q=this.files[V],Q=V.slice(this.root.length,V.length),Q&&V.slice(0,this.root.length)===this.root)$(Q,q)},filter:function($){var V=[];return this.forEach(function(Q,q){if($(Q,q))V.push(q)}),V},file:function($,V,Q){if(arguments.length===1)if(fV($)){var q=$;return this.filter(function(G,U){return!U.dir&&q.test(G)})}else{var K=this.files[this.root+$];if(K&&!K.dir)return K;else return null}else $=this.root+$,mV.call(this,$,V,Q);return this},folder:function($){if(!$)return this;if(fV($))return this.filter(function(K,G){return G.dir&&$.test(K)});var V=this.root+$,Q=cV.call(this,V),q=this.clone();return q.root=Q.name,q},remove:function($){$=this.root+$;var V=this.files[$];if(!V){if($.slice(-1)!=="/")$+="/";V=this.files[$]}if(V&&!V.dir)delete this.files[$];else{var Q=this.filter(function(K,G){return G.name.slice(0,$.length)===$});for(var q=0;q<Q.length;q++)delete this.files[Q[q].name]}return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function($){var V,Q={};try{if(Q=c1.extend($||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:p4.utf8encode}),Q.type=Q.type.toLowerCase(),Q.compression=Q.compression.toUpperCase(),Q.type==="binarystring")Q.type="string";if(!Q.type)throw new Error("No output type specified.");if(c1.checkSupport(Q.type),Q.platform==="darwin"||Q.platform==="freebsd"||Q.platform==="linux"||Q.platform==="sunos")Q.platform="UNIX";if(Q.platform==="win32")Q.platform="DOS";var q=Q.comment||this.comment||"";V=d4.generateWorker(this,Q,q)}catch(K){V=new hV("error"),V.error(K)}return new c4(V,Q.type||"string",Q.mimeType)},generateAsync:function($,V){return this.generateInternalStream($).accumulate(V)},generateNodeStream:function($,V){if($=$||{},!$.type)$.type="nodebuffer";return this.generateInternalStream($).toNodejsStream(V)}};uV.exports=i4});var j$=$0((uK,oV)=>{var n4=N0();function lV($){this.data=$,this.length=$.length,this.index=0,this.zero=0}lV.prototype={checkOffset:function($){this.checkIndex(this.index+$)},checkIndex:function($){if(this.length<this.zero+$||$<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+$+"). Corrupted zip ?")},setIndex:function($){this.checkIndex($),this.index=$},skip:function($){this.setIndex(this.index+$)},byteAt:function(){},readInt:function($){var V=0,Q;this.checkOffset($);for(Q=this.index+$-1;Q>=this.index;Q--)V=(V<<8)+this.byteAt(Q);return this.index+=$,V},readString:function($){return n4.transformTo("string",this.readData($))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var $=this.readInt(4);return new Date(Date.UTC(($>>25&127)+1980,($>>21&15)-1,$>>16&31,$>>11&31,$>>5&63,($&31)<<1))}};oV.exports=lV});var z$=$0((dK,nV)=>{var iV=j$(),a4=N0();function j1($){iV.call(this,$);for(var V=0;V<this.data.length;V++)$[V]=$[V]&255}a4.inherits(j1,iV);j1.prototype.byteAt=function($){return this.data[this.zero+$]};j1.prototype.lastIndexOfSignature=function($){var V=$.charCodeAt(0),Q=$.charCodeAt(1),q=$.charCodeAt(2),K=$.charCodeAt(3);for(var G=this.length-4;G>=0;--G)if(this.data[G]===V&&this.data[G+1]===Q&&this.data[G+2]===q&&this.data[G+3]===K)return G-this.zero;return-1};j1.prototype.readAndCheckSignature=function($){var V=$.charCodeAt(0),Q=$.charCodeAt(1),q=$.charCodeAt(2),K=$.charCodeAt(3),G=this.readData(4);return V===G[0]&&Q===G[1]&&q===G[2]&&K===G[3]};j1.prototype.readData=function($){if(this.checkOffset($),$===0)return[];var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};nV.exports=j1});var sV=$0((lK,rV)=>{var aV=j$(),r4=N0();function z1($){aV.call(this,$)}r4.inherits(z1,aV);z1.prototype.byteAt=function($){return this.data.charCodeAt(this.zero+$)};z1.prototype.lastIndexOfSignature=function($){return this.data.lastIndexOf($)-this.zero};z1.prototype.readAndCheckSignature=function($){var V=this.readData(4);return $===V};z1.prototype.readData=function($){this.checkOffset($);var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};rV.exports=z1});var F$=$0((oK,eV)=>{var tV=z$(),s4=N0();function Z$($){tV.call(this,$)}s4.inherits(Z$,tV);Z$.prototype.readData=function($){if(this.checkOffset($),$===0)return new Uint8Array(0);var V=this.data.subarray(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};eV.exports=Z$});var V9=$0((iK,Q9)=>{var $9=F$(),t4=N0();function H$($){$9.call(this,$)}t4.inherits(H$,$9);H$.prototype.readData=function($){this.checkOffset($);var V=this.data.slice(this.zero+this.index,this.zero+this.index+$);return this.index+=$,V};Q9.exports=H$});var M$=$0((nK,X9)=>{var g2=N0(),q9=j6(),e4=z$(),$Y=sV(),QY=V9(),VY=F$();X9.exports=function($){var V=g2.getTypeOf($);if(g2.checkSupport(V),V==="string"&&!q9.uint8array)return new $Y($);if(V==="nodebuffer")return new QY($);if(q9.uint8array)return new VY(g2.transformTo("uint8array",$));return new e4(g2.transformTo("array",$))}});var G9=$0((aK,J9)=>{var L$=M$(),R6=N0(),qY=z2(),Y9=j2(),E2=$1(),y2=W$(),XY=j6(),YY=0,KY=3,JY=function($){for(var V in y2){if(!Object.prototype.hasOwnProperty.call(y2,V))continue;if(y2[V].magic===$)return y2[V]}return null};function K9($,V){this.options=$,this.loadOptions=V}K9.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function($){var V,Q;if($.skip(22),this.fileNameLength=$.readInt(2),Q=$.readInt(2),this.fileName=$.readData(this.fileNameLength),$.skip(Q),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(V=JY(this.compressionMethod),V===null)throw new Error("Corrupted zip : compression "+R6.pretty(this.compressionMethod)+" unknown (inner file : "+R6.transformTo("string",this.fileName)+")");this.decompressed=new qY(this.compressedSize,this.uncompressedSize,this.crc32,V,$.readData(this.compressedSize))},readCentralPart:function($){this.versionMadeBy=$.readInt(2),$.skip(2),this.bitFlag=$.readInt(2),this.compressionMethod=$.readString(2),this.date=$.readDate(),this.crc32=$.readInt(4),this.compressedSize=$.readInt(4),this.uncompressedSize=$.readInt(4);var V=$.readInt(2);if(this.extraFieldsLength=$.readInt(2),this.fileCommentLength=$.readInt(2),this.diskNumberStart=$.readInt(2),this.internalFileAttributes=$.readInt(2),this.externalFileAttributes=$.readInt(4),this.localHeaderOffset=$.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");$.skip(V),this.readExtraFields($),this.parseZIP64ExtraField($),this.fileComment=$.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var $=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,$===YY)this.dosPermissions=this.externalFileAttributes&63;if($===KY)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var $=L$(this.extraFields[1].value);if(this.uncompressedSize===R6.MAX_VALUE_32BITS)this.uncompressedSize=$.readInt(8);if(this.compressedSize===R6.MAX_VALUE_32BITS)this.compressedSize=$.readInt(8);if(this.localHeaderOffset===R6.MAX_VALUE_32BITS)this.localHeaderOffset=$.readInt(8);if(this.diskNumberStart===R6.MAX_VALUE_32BITS)this.diskNumberStart=$.readInt(4)},readExtraFields:function($){var V=$.index+this.extraFieldsLength,Q,q,K;if(!this.extraFields)this.extraFields={};while($.index+4<V)Q=$.readInt(2),q=$.readInt(2),K=$.readData(q),this.extraFields[Q]={id:Q,length:q,value:K};$.setIndex(V)},handleUTF8:function(){var $=XY.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=E2.utf8decode(this.fileName),this.fileCommentStr=E2.utf8decode(this.fileComment);else{var V=this.findExtraFieldUnicodePath();if(V!==null)this.fileNameStr=V;else{var Q=R6.transformTo($,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(Q)}var q=this.findExtraFieldUnicodeComment();if(q!==null)this.fileCommentStr=q;else{var K=R6.transformTo($,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var $=this.extraFields[28789];if($){var V=L$($.value);if(V.readInt(1)!==1)return null;if(Y9(this.fileName)!==V.readInt(4))return null;return E2.utf8decode(V.readData($.length-5))}return null},findExtraFieldUnicodeComment:function(){var $=this.extraFields[25461];if($){var V=L$($.value);if(V.readInt(1)!==1)return null;if(Y9(this.fileComment)!==V.readInt(4))return null;return E2.utf8decode(V.readData($.length-5))}return null}};J9.exports=K9});var P9=$0((rK,U9)=>{var GY=M$(),H6=N0(),a0=U$(),WY=G9(),UY=j6();function W9($){this.files=[],this.loadOptions=$}W9.prototype={checkSignature:function($){if(!this.reader.readAndCheckSignature($)){this.reader.index-=4;var V=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+H6.pretty(V)+", expected "+H6.pretty($)+")")}},isSignature:function($,V){var Q=this.reader.index;this.reader.setIndex($);var q=this.reader.readString(4),K=q===V;return this.reader.setIndex(Q),K},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var $=this.reader.readData(this.zipCommentLength),V=UY.uint8array?"uint8array":"array",Q=H6.transformTo(V,$);this.zipComment=this.loadOptions.decodeFileName(Q)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var $=this.zip64EndOfCentralSize-44,V=0,Q,q,K;while(V<$)Q=this.reader.readInt(2),q=this.reader.readInt(4),K=this.reader.readData(q),this.zip64ExtensibleData[Q]={id:Q,length:q,value:K}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var $,V;for($=0;$<this.files.length;$++)V=this.files[$],this.reader.setIndex(V.localHeaderOffset),this.checkSignature(a0.LOCAL_FILE_HEADER),V.readLocalPart(this.reader),V.handleUTF8(),V.processAttributes()},readCentralDir:function(){var $;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(a0.CENTRAL_FILE_HEADER))$=new WY({zip64:this.zip64},this.loadOptions),$.readCentralPart(this.reader),this.files.push($);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var $=this.reader.lastIndexOfSignature(a0.CENTRAL_DIRECTORY_END);if($<0){var V=!this.isSignature(0,a0.LOCAL_FILE_HEADER);if(V)throw new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex($);var Q=$;if(this.checkSignature(a0.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===H6.MAX_VALUE_16BITS||this.diskWithCentralDirStart===H6.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===H6.MAX_VALUE_16BITS||this.centralDirRecords===H6.MAX_VALUE_16BITS||this.centralDirSize===H6.MAX_VALUE_32BITS||this.centralDirOffset===H6.MAX_VALUE_32BITS){if(this.zip64=!0,$=this.reader.lastIndexOfSignature(a0.ZIP64_CENTRAL_DIRECTORY_LOCATOR),$<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex($),this.checkSignature(a0.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a0.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a0.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a0.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var q=this.centralDirOffset+this.centralDirSize;if(this.zip64)q+=20,q+=12+this.zip64EndOfCentralSize;var K=Q-q;if(K>0)if(this.isSignature(Q,a0.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw new Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function($){this.reader=GY($)},load:function($){this.prepareReader($),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};U9.exports=W9});var Z9=$0((sK,z9)=>{var O$=N0(),b2=s6(),PY=$1(),jY=P9(),zY=O8(),j9=O1();function ZY($){return new b2.Promise(function(V,Q){var q=$.decompressed.getContentWorker().pipe(new zY);q.on("error",function(K){Q(K)}).on("end",function(){if(q.streamInfo.crc32!==$.decompressed.crc32)Q(new Error("Corrupted zip : CRC32 mismatch"));else V()}).resume()})}z9.exports=function($,V){var Q=this;if(V=O$.extend(V||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:PY.utf8decode}),j9.isNode&&j9.isStream($))return b2.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."));return O$.prepareContent("the loaded zip file",$,!0,V.optimizedBinaryString,V.base64).then(function(q){var K=new jY(V);return K.load(q),K}).then(function q(K){var G=[b2.Promise.resolve(K)],U=K.files;if(V.checkCRC32)for(var J=0;J<U.length;J++)G.push(ZY(U[J]));return b2.Promise.all(G)}).then(function q(K){var G=K.shift(),U=G.files;for(var J=0;J<U.length;J++){var j=U[J],P=j.fileNameStr,z=O$.resolve(j.fileNameStr);if(Q.file(z,j.decompressed,{binary:!0,optimizedBinaryString:!0,date:j.date,dir:j.dir,comment:j.fileCommentStr.length?j.fileCommentStr:null,unixPermissions:j.unixPermissions,dosPermissions:j.dosPermissions,createFolders:V.createFolders}),!j.dir)Q.file(z).unsafeOriginalName=P}if(G.zipComment.length)Q.comment=G.zipComment;return Q})}});var H9=$0((tK,F9)=>{function l0(){if(!(this instanceof l0))return new l0;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var $=new l0;for(var V in this)if(typeof this[V]!=="function")$[V]=this[V];return $}}l0.prototype=dV();l0.prototype.loadAsync=Z9();l0.support=j6();l0.defaults=H8();l0.version="3.10.1";l0.loadAsync=function($,V){return new l0().loadAsync($,V)};l0.external=s6();F9.exports=l0});var h9=$0((R$)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var f9;(function($){if(typeof DO_NOT_EXPORT_CRC==="undefined")if(typeof R$==="object")$(R$);else if(typeof define==="function"&&define.amd)define(function(){var V={};return $(V),V});else $(f9={});else $(f9={})})(function($){$.version="1.2.2";function V(){var L=0,T=new Array(256);for(var E=0;E!=256;++E)L=E,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,L=L&1?-2097792136^L>>>1:L>>>1,T[E]=L;return typeof Int32Array!=="undefined"?new Int32Array(T):T}var Q=V();function q(L){var T=0,E=0,f=0,b=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(f=0;f!=256;++f)b[f]=L[f];for(f=0;f!=256;++f){E=L[f];for(T=256+f;T<4096;T+=256)E=b[T]=E>>>8^L[E&255]}var F=[];for(f=1;f!=16;++f)F[f-1]=typeof Int32Array!=="undefined"?b.subarray(f*256,f*256+256):b.slice(f*256,f*256+256);return F}var K=q(Q),G=K[0],U=K[1],J=K[2],j=K[3],P=K[4],z=K[5],B=K[6],I=K[7],R=K[8],x=K[9],S=K[10],g=K[11],y=K[12],Z=K[13],O=K[14];function M(L,T){var E=T^-1;for(var f=0,b=L.length;f<b;)E=E>>>8^Q[(E^L.charCodeAt(f++))&255];return~E}function A(L,T){var E=T^-1,f=L.length-15,b=0;for(;b<f;)E=O[L[b++]^E&255]^Z[L[b++]^E>>8&255]^y[L[b++]^E>>16&255]^g[L[b++]^E>>>24]^S[L[b++]]^x[L[b++]]^R[L[b++]]^I[L[b++]]^B[L[b++]]^z[L[b++]]^P[L[b++]]^j[L[b++]]^J[L[b++]]^U[L[b++]]^G[L[b++]]^Q[L[b++]];f+=15;while(b<f)E=E>>>8^Q[(E^L[b++])&255];return~E}function C(L,T){var E=T^-1;for(var f=0,b=L.length,F=0,m=0;f<b;)if(F=L.charCodeAt(f++),F<128)E=E>>>8^Q[(E^F)&255];else if(F<2048)E=E>>>8^Q[(E^(192|F>>6&31))&255],E=E>>>8^Q[(E^(128|F&63))&255];else if(F>=55296&&F<57344)F=(F&1023)+64,m=L.charCodeAt(f++)&1023,E=E>>>8^Q[(E^(240|F>>8&7))&255],E=E>>>8^Q[(E^(128|F>>2&63))&255],E=E>>>8^Q[(E^(128|m>>6&15|(F&3)<<4))&255],E=E>>>8^Q[(E^(128|m&63))&255];else E=E>>>8^Q[(E^(224|F>>12&15))&255],E=E>>>8^Q[(E^(128|F>>6&63))&255],E=E>>>8^Q[(E^(128|F&63))&255];return~E}$.table=Q,$.bstr=M,$.buf=A,$.str=C})});var c9=y$(H9(),1);var FY=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function HY($){let V=FY.exec($);if(!V)return!1;let[,Q,q,K,G,U,J]=V.map((j)=>parseInt(j));return Q!==void 0&&q!==void 0&&K!==void 0&&G!==void 0&&U!==void 0&&J!==void 0&&0<q&&q<=12&&K<=MY(Q,q)&&G<24&&U<60&&J<=60}function MY($,V){if(V===2)return LY($)?29:28;return OY[V-1]??0}function LY($){return $%4===0&&($%100!==0||$%400===0)}var OY=[31,0,31,30,31,30,31,31,30,31,30,31];function _2($){return typeof $==="object"&&$!==null&&!Array.isArray($)}var BY={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function u1($=0.5){return Math.random()<$}function L9($,V){return $+Math.floor(Math.random()*(V-$))}function m2($){let V=$[L9(0,$.length)];if(V===void 0)throw new Error("choices was empty in random choice");else return V}var f2;function B$(){if(f2===void 0){let $=Math.sqrt(-2*Math.log(Math.random())),V=2*Math.PI*Math.random();return f2=$*Math.sin(V),$*Math.cos(V)}else{let $=f2;return f2=void 0,$}}function r0($=1){let V=Math.exp(-$),Q=0,q=Math.random();while(q>V)Q++,q*=Math.random();return Q}var M9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function F1($){return Array($).fill(null).map(()=>M9.charAt(Math.floor(Math.random()*M9.length))).join("")}function*O9(...$){for(let V of $)yield*V}function*h2($,V){let Q=0;for(let q of $)yield V(q,Q++)}function*CY($,V){let Q=0;for(let q of $)if(V(q,Q++))yield q}function*IY($){for(let V=0;V<$;++V)yield V}function Z1($){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test($)?`.${$}`:`["${$}"]`}function o0($){return $===null?"null":Array.isArray($)?"array":typeof $}class k0{guard($){for(let V of this.pathErrors($))return!1;return!0}guardAssert($){let V=[];for(let[Q,q]of this.pathErrors($)){let K=Q.reverse().join("")||".";V.push(`${K}: ${q}`)}if(V.length){let Q=JSON.stringify($,null,2),q=JSON.stringify(this.schema(),null,2);throw new Error(`Validation errors:
|
|
9
|
-
${V.join(`
|
|
1
|
+
var NU=Object.create;var{getPrototypeOf:DU,defineProperty:_1,getOwnPropertyNames:A4,getOwnPropertyDescriptor:AU}=Object,x4=Object.prototype.hasOwnProperty;var R4=(Q,$,U)=>{U=Q!=null?NU(DU(Q)):{};let X=$||!Q||!Q.__esModule?_1(U,"default",{value:Q,enumerable:!0}):U;for(let q of A4(Q))if(!x4.call(X,q))_1(X,q,{get:()=>Q[q],enumerable:!0});return X},D4=new WeakMap,o0=(Q)=>{var $=D4.get(Q),U;if($)return $;if($=_1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")A4(Q).map((X)=>!x4.call($,X)&&_1($,X,{get:()=>Q[X],enumerable:!(U=AU(Q,X))||U.enumerable}));return D4.set(Q,$),$},J0=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports);var T4=(Q,$)=>{for(var U in $)_1(Q,U,{get:$[U],enumerable:!0,configurable:!0,set:(X)=>$[U]=()=>X})};var E4=(Q,$)=>()=>(Q&&($=Q(Q=0)),$);var L2={};T4(L2,{transcode:()=>wX,resolveObjectURL:()=>JX,kStringMaxLength:()=>b4,kMaxLength:()=>b1,isUtf8:()=>BX,isAscii:()=>GX,default:()=>WX,constants:()=>fU,btoa:()=>kU,atob:()=>gU,INSPECT_MAX_BYTES:()=>_4,File:()=>vU,Buffer:()=>h,Blob:()=>yU});function xU(Q){var $=Q.length;if($%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=Q.indexOf("=");if(U===-1)U=$;var X=U===$?0:4-U%4;return[U,X]}function RU(Q,$){return(Q+$)*3/4-$}function TU(Q){var $,U=xU(Q),X=U[0],q=U[1],V=new Uint8Array(RU(X,q)),Y=0,K=q>0?X-4:X,G;for(G=0;G<K;G+=4)$=r0[Q.charCodeAt(G)]<<18|r0[Q.charCodeAt(G+1)]<<12|r0[Q.charCodeAt(G+2)]<<6|r0[Q.charCodeAt(G+3)],V[Y++]=$>>16&255,V[Y++]=$>>8&255,V[Y++]=$&255;if(q===2)$=r0[Q.charCodeAt(G)]<<2|r0[Q.charCodeAt(G+1)]>>4,V[Y++]=$&255;if(q===1)$=r0[Q.charCodeAt(G)]<<10|r0[Q.charCodeAt(G+1)]<<4|r0[Q.charCodeAt(G+2)]>>2,V[Y++]=$>>8&255,V[Y++]=$&255;return V}function EU(Q){return K2[Q>>18&63]+K2[Q>>12&63]+K2[Q>>6&63]+K2[Q&63]}function SU(Q,$,U){var X,q=[];for(var V=$;V<U;V+=3)X=(Q[V]<<16&16711680)+(Q[V+1]<<8&65280)+(Q[V+2]&255),q.push(EU(X));return q.join("")}function k4(Q){var $,U=Q.length,X=U%3,q=[],V=16383;for(var Y=0,K=U-X;Y<K;Y+=V)q.push(SU(Q,Y,Y+V>K?K:Y+V));if(X===1)$=Q[U-1],q.push(K2[$>>2]+K2[$<<4&63]+"==");else if(X===2)$=(Q[U-2]<<8)+Q[U-1],q.push(K2[$>>10]+K2[$>>4&63]+K2[$<<2&63]+"=");return q.join("")}function L6(Q,$,U,X,q){var V,Y,K=q*8-X-1,G=(1<<K)-1,J=G>>1,B=-7,Z=U?q-1:0,j=U?-1:1,P=Q[$+Z];Z+=j,V=P&(1<<-B)-1,P>>=-B,B+=K;for(;B>0;V=V*256+Q[$+Z],Z+=j,B-=8);Y=V&(1<<-B)-1,V>>=-B,B+=X;for(;B>0;Y=Y*256+Q[$+Z],Z+=j,B-=8);if(V===0)V=1-J;else if(V===G)return Y?NaN:(P?-1:1)*(1/0);else Y=Y+Math.pow(2,X),V=V-J;return(P?-1:1)*Y*Math.pow(2,V-X)}function h4(Q,$,U,X,q,V){var Y,K,G,J=V*8-q-1,B=(1<<J)-1,Z=B>>1,j=q===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=X?0:V-1,g=X?1:-1,y=$<0||$===0&&1/$<0?1:0;if($=Math.abs($),isNaN($)||$===1/0)K=isNaN($)?1:0,Y=B;else{if(Y=Math.floor(Math.log($)/Math.LN2),$*(G=Math.pow(2,-Y))<1)Y--,G*=2;if(Y+Z>=1)$+=j/G;else $+=j*Math.pow(2,1-Z);if($*G>=2)Y++,G/=2;if(Y+Z>=B)K=0,Y=B;else if(Y+Z>=1)K=($*G-1)*Math.pow(2,q),Y=Y+Z;else K=$*Math.pow(2,Z-1)*Math.pow(2,q),Y=0}for(;q>=8;Q[U+P]=K&255,P+=g,K/=256,q-=8);Y=Y<<q|K,J+=q;for(;J>0;Q[U+P]=Y&255,P+=g,Y/=256,J-=8);Q[U+P-g]|=y*128}function H2(Q){if(Q>b1)throw new RangeError('The value "'+Q+'" is invalid for option "size"');let $=new Uint8Array(Q);return Object.setPrototypeOf($,h.prototype),$}function E8(Q,$,U){return class X extends U{constructor(){super();Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function h(Q,$,U){if(typeof Q==="number"){if(typeof $==="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S8(Q)}return u4(Q,$,U)}function u4(Q,$,U){if(typeof Q==="string")return uU(Q,$);if(ArrayBuffer.isView(Q))return cU(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(J2(Q,ArrayBuffer)||Q&&J2(Q.buffer,ArrayBuffer))return R8(Q,$,U);if(typeof SharedArrayBuffer!=="undefined"&&(J2(Q,SharedArrayBuffer)||Q&&J2(Q.buffer,SharedArrayBuffer)))return R8(Q,$,U);if(typeof Q==="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let X=Q.valueOf&&Q.valueOf();if(X!=null&&X!==Q)return h.from(X,$,U);let q=pU(Q);if(q)return q;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return h.from(Q[Symbol.toPrimitive]("string"),$,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function c4(Q){if(typeof Q!=="number")throw new TypeError('"size" argument must be of type number');else if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function bU(Q,$,U){if(c4(Q),Q<=0)return H2(Q);if($!==void 0)return typeof U==="string"?H2(Q).fill($,U):H2(Q).fill($);return H2(Q)}function S8(Q){return c4(Q),H2(Q<0?0:k8(Q)|0)}function uU(Q,$){if(typeof $!=="string"||$==="")$="utf8";if(!h.isEncoding($))throw new TypeError("Unknown encoding: "+$);let U=p4(Q,$)|0,X=H2(U),q=X.write(Q,$);if(q!==U)X=X.slice(0,q);return X}function x8(Q){let $=Q.length<0?0:k8(Q.length)|0,U=H2($);for(let X=0;X<$;X+=1)U[X]=Q[X]&255;return U}function cU(Q){if(J2(Q,Uint8Array)){let $=new Uint8Array(Q);return R8($.buffer,$.byteOffset,$.byteLength)}return x8(Q)}function R8(Q,$,U){if($<0||Q.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<$+(U||0))throw new RangeError('"length" is outside of buffer bounds');let X;if($===void 0&&U===void 0)X=new Uint8Array(Q);else if(U===void 0)X=new Uint8Array(Q,$);else X=new Uint8Array(Q,$,U);return Object.setPrototypeOf(X,h.prototype),X}function pU(Q){if(h.isBuffer(Q)){let $=k8(Q.length)|0,U=H2($);if(U.length===0)return U;return Q.copy(U,0,0,$),U}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return H2(0);return x8(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return x8(Q.data)}function k8(Q){if(Q>=b1)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b1.toString(16)+" bytes");return Q|0}function p4(Q,$){if(h.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||J2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let U=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&U===0)return 0;let q=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return T8(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return s4(Q).length;default:if(q)return X?-1:T8(Q).length;$=(""+$).toLowerCase(),q=!0}}function mU(Q,$,U){let X=!1;if($===void 0||$<0)$=0;if($>this.length)return"";if(U===void 0||U>this.length)U=this.length;if(U<=0)return"";if(U>>>=0,$>>>=0,U<=$)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return eU(this,$,U);case"utf8":case"utf-8":return d4(this,$,U);case"ascii":return sU(this,$,U);case"latin1":case"binary":return tU(this,$,U);case"base64":return rU(this,$,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return QX(this,$,U);default:if(X)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function r2(Q,$,U){let X=Q[$];Q[$]=Q[U],Q[U]=X}function m4(Q,$,U,X,q){if(Q.length===0)return-1;if(typeof U==="string")X=U,U=0;else if(U>2147483647)U=2147483647;else if(U<-2147483648)U=-2147483648;if(U=+U,Number.isNaN(U))U=q?0:Q.length-1;if(U<0)U=Q.length+U;if(U>=Q.length)if(q)return-1;else U=Q.length-1;else if(U<0)if(q)U=0;else return-1;if(typeof $==="string")$=h.from($,X);if(h.isBuffer($)){if($.length===0)return-1;return v4(Q,$,U,X,q)}else if(typeof $==="number"){if($=$&255,typeof Uint8Array.prototype.indexOf==="function")if(q)return Uint8Array.prototype.indexOf.call(Q,$,U);else return Uint8Array.prototype.lastIndexOf.call(Q,$,U);return v4(Q,[$],U,X,q)}throw new TypeError("val must be string, number or Buffer")}function v4(Q,$,U,X,q){let V=1,Y=Q.length,K=$.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||$.length<2)return-1;V=2,Y/=2,K/=2,U/=2}}function G(B,Z){if(V===1)return B[Z];else return B.readUInt16BE(Z*V)}let J;if(q){let B=-1;for(J=U;J<Y;J++)if(G(Q,J)===G($,B===-1?0:J-B)){if(B===-1)B=J;if(J-B+1===K)return B*V}else{if(B!==-1)J-=J-B;B=-1}}else{if(U+K>Y)U=Y-K;for(J=U;J>=0;J--){let B=!0;for(let Z=0;Z<K;Z++)if(G(Q,J+Z)!==G($,Z)){B=!1;break}if(B)return J}}return-1}function dU(Q,$,U,X){U=Number(U)||0;let q=Q.length-U;if(!X)X=q;else if(X=Number(X),X>q)X=q;let V=$.length;if(X>V/2)X=V/2;let Y;for(Y=0;Y<X;++Y){let K=parseInt($.substr(Y*2,2),16);if(Number.isNaN(K))return Y;Q[U+Y]=K}return Y}function lU(Q,$,U,X){return C6(T8($,Q.length-U),Q,U,X)}function iU(Q,$,U,X){return C6(qX($),Q,U,X)}function nU(Q,$,U,X){return C6(s4($),Q,U,X)}function oU(Q,$,U,X){return C6(VX($,Q.length-U),Q,U,X)}function rU(Q,$,U){if($===0&&U===Q.length)return k4(Q);else return k4(Q.slice($,U))}function d4(Q,$,U){U=Math.min(Q.length,U);let X=[],q=$;while(q<U){let V=Q[q],Y=null,K=V>239?4:V>223?3:V>191?2:1;if(q+K<=U){let G,J,B,Z;switch(K){case 1:if(V<128)Y=V;break;case 2:if(G=Q[q+1],(G&192)===128){if(Z=(V&31)<<6|G&63,Z>127)Y=Z}break;case 3:if(G=Q[q+1],J=Q[q+2],(G&192)===128&&(J&192)===128){if(Z=(V&15)<<12|(G&63)<<6|J&63,Z>2047&&(Z<55296||Z>57343))Y=Z}break;case 4:if(G=Q[q+1],J=Q[q+2],B=Q[q+3],(G&192)===128&&(J&192)===128&&(B&192)===128){if(Z=(V&15)<<18|(G&63)<<12|(J&63)<<6|B&63,Z>65535&&Z<1114112)Y=Z}}}if(Y===null)Y=65533,K=1;else if(Y>65535)Y-=65536,X.push(Y>>>10&1023|55296),Y=56320|Y&1023;X.push(Y),q+=K}return aU(X)}function aU(Q){let $=Q.length;if($<=y4)return String.fromCharCode.apply(String,Q);let U="",X=0;while(X<$)U+=String.fromCharCode.apply(String,Q.slice(X,X+=y4));return U}function sU(Q,$,U){let X="";U=Math.min(Q.length,U);for(let q=$;q<U;++q)X+=String.fromCharCode(Q[q]&127);return X}function tU(Q,$,U){let X="";U=Math.min(Q.length,U);for(let q=$;q<U;++q)X+=String.fromCharCode(Q[q]);return X}function eU(Q,$,U){let X=Q.length;if(!$||$<0)$=0;if(!U||U<0||U>X)U=X;let q="";for(let V=$;V<U;++V)q+=YX[Q[V]];return q}function QX(Q,$,U){let X=Q.slice($,U),q="";for(let V=0;V<X.length-1;V+=2)q+=String.fromCharCode(X[V]+X[V+1]*256);return q}function E0(Q,$,U){if(Q%1!==0||Q<0)throw new RangeError("offset is not uint");if(Q+$>U)throw new RangeError("Trying to access beyond buffer length")}function u0(Q,$,U,X,q,V){if(!h.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if($>q||$<V)throw new RangeError('"value" argument is out of bounds');if(U+X>Q.length)throw new RangeError("Index out of range")}function l4(Q,$,U,X,q){a4($,X,q,Q,U,7);let V=Number($&BigInt(4294967295));Q[U++]=V,V=V>>8,Q[U++]=V,V=V>>8,Q[U++]=V,V=V>>8,Q[U++]=V;let Y=Number($>>BigInt(32)&BigInt(4294967295));return Q[U++]=Y,Y=Y>>8,Q[U++]=Y,Y=Y>>8,Q[U++]=Y,Y=Y>>8,Q[U++]=Y,U}function i4(Q,$,U,X,q){a4($,X,q,Q,U,7);let V=Number($&BigInt(4294967295));Q[U+7]=V,V=V>>8,Q[U+6]=V,V=V>>8,Q[U+5]=V,V=V>>8,Q[U+4]=V;let Y=Number($>>BigInt(32)&BigInt(4294967295));return Q[U+3]=Y,Y=Y>>8,Q[U+2]=Y,Y=Y>>8,Q[U+1]=Y,Y=Y>>8,Q[U]=Y,U+8}function n4(Q,$,U,X,q,V){if(U+X>Q.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function o4(Q,$,U,X,q){if($=+$,U=U>>>0,!q)n4(Q,$,U,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return h4(Q,$,U,X,23,4),U+4}function r4(Q,$,U,X,q){if($=+$,U=U>>>0,!q)n4(Q,$,U,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return h4(Q,$,U,X,52,8),U+8}function f4(Q){let $="",U=Q.length,X=Q[0]==="-"?1:0;for(;U>=X+4;U-=3)$=`_${Q.slice(U-3,U)}${$}`;return`${Q.slice(0,U)}${$}`}function $X(Q,$,U){if(z1($,"offset"),Q[$]===void 0||Q[$+U]===void 0)u1($,Q.length-(U+1))}function a4(Q,$,U,X,q,V){if(Q>U||Q<$){let Y=typeof $==="bigint"?"n":"",K;if(V>3)if($===0||$===BigInt(0))K=`>= 0${Y} and < 2${Y} ** ${(V+1)*8}${Y}`;else K=`>= -(2${Y} ** ${(V+1)*8-1}${Y}) and < 2 ** ${(V+1)*8-1}${Y}`;else K=`>= ${$}${Y} and <= ${U}${Y}`;throw new A8("value",K,Q)}$X(X,q,V)}function z1(Q,$){if(typeof Q!=="number")throw new _U($,"number",Q)}function u1(Q,$,U){if(Math.floor(Q)!==Q)throw z1(Q,U),new A8(U||"offset","an integer",Q);if($<0)throw new hU;throw new A8(U||"offset",`>= ${U?1:0} and <= ${$}`,Q)}function XX(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(UX,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function T8(Q,$){$=$||1/0;let U,X=Q.length,q=null,V=[];for(let Y=0;Y<X;++Y){if(U=Q.charCodeAt(Y),U>55295&&U<57344){if(!q){if(U>56319){if(($-=3)>-1)V.push(239,191,189);continue}else if(Y+1===X){if(($-=3)>-1)V.push(239,191,189);continue}q=U;continue}if(U<56320){if(($-=3)>-1)V.push(239,191,189);q=U;continue}U=(q-55296<<10|U-56320)+65536}else if(q){if(($-=3)>-1)V.push(239,191,189)}if(q=null,U<128){if(($-=1)<0)break;V.push(U)}else if(U<2048){if(($-=2)<0)break;V.push(U>>6|192,U&63|128)}else if(U<65536){if(($-=3)<0)break;V.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if(($-=4)<0)break;V.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return V}function qX(Q){let $=[];for(let U=0;U<Q.length;++U)$.push(Q.charCodeAt(U)&255);return $}function VX(Q,$){let U,X,q,V=[];for(let Y=0;Y<Q.length;++Y){if(($-=2)<0)break;U=Q.charCodeAt(Y),X=U>>8,q=U%256,V.push(q),V.push(X)}return V}function s4(Q){return TU(XX(Q))}function C6(Q,$,U,X){let q;for(q=0;q<X;++q){if(q+U>=$.length||q>=Q.length)break;$[q+U]=Q[q]}return q}function J2(Q,$){return Q instanceof $||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===$.name}function E2(Q){return typeof BigInt==="undefined"?KX:Q}function KX(){throw new Error("BigInt not supported")}function g8(Q){return()=>{throw new Error(Q+" is not implemented for node:buffer browser polyfill")}}var K2,r0,D8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o2,S4,g4,_4=50,b1=2147483647,b4=536870888,kU,gU,vU,yU,fU,hU,_U,A8,y4=4096,UX,YX,JX,BX,GX=(Q)=>{for(let $ of Q)if($.charCodeAt(0)>127)return!1;return!0},wX,WX;var C2=E4(()=>{K2=[],r0=[];for(o2=0,S4=D8.length;o2<S4;++o2)K2[o2]=D8[o2],r0[D8.charCodeAt(o2)]=o2;r0[45]=62;r0[95]=63;g4=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,kU=globalThis.btoa,gU=globalThis.atob,vU=globalThis.File,yU=globalThis.Blob,fU={MAX_LENGTH:b1,MAX_STRING_LENGTH:b4};hU=E8("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),_U=E8("ERR_INVALID_ARG_TYPE",function(Q,$){return`The "${Q}" argument must be of type number. Received type ${typeof $}`},TypeError),A8=E8("ERR_OUT_OF_RANGE",function(Q,$,U){let X=`The value of "${Q}" is out of range.`,q=U;if(Number.isInteger(U)&&Math.abs(U)>4294967296)q=f4(String(U));else if(typeof U==="bigint"){if(q=String(U),U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))q=f4(q);q+="n"}return X+=` It must be ${$}. Received ${q}`,X},RangeError);Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(!h.isBuffer(this))return;return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(!h.isBuffer(this))return;return this.byteOffset}});h.poolSize=8192;h.from=function(Q,$,U){return u4(Q,$,U)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);h.alloc=function(Q,$,U){return bU(Q,$,U)};h.allocUnsafe=function(Q){return S8(Q)};h.allocUnsafeSlow=function(Q){return S8(Q)};h.isBuffer=function Q($){return $!=null&&$._isBuffer===!0&&$!==h.prototype};h.compare=function Q($,U){if(J2($,Uint8Array))$=h.from($,$.offset,$.byteLength);if(J2(U,Uint8Array))U=h.from(U,U.offset,U.byteLength);if(!h.isBuffer($)||!h.isBuffer(U))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if($===U)return 0;let X=$.length,q=U.length;for(let V=0,Y=Math.min(X,q);V<Y;++V)if($[V]!==U[V]){X=$[V],q=U[V];break}if(X<q)return-1;if(q<X)return 1;return 0};h.isEncoding=function Q($){switch(String($).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}};h.concat=function Q($,U){if(!Array.isArray($))throw new TypeError('"list" argument must be an Array of Buffers');if($.length===0)return h.alloc(0);let X;if(U===void 0){U=0;for(X=0;X<$.length;++X)U+=$[X].length}let q=h.allocUnsafe(U),V=0;for(X=0;X<$.length;++X){let Y=$[X];if(J2(Y,Uint8Array))if(V+Y.length>q.length){if(!h.isBuffer(Y))Y=h.from(Y);Y.copy(q,V)}else Uint8Array.prototype.set.call(q,Y,V);else if(!h.isBuffer(Y))throw new TypeError('"list" argument must be an Array of Buffers');else Y.copy(q,V);V+=Y.length}return q};h.byteLength=p4;h.prototype._isBuffer=!0;h.prototype.swap16=function Q(){let $=this.length;if($%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let U=0;U<$;U+=2)r2(this,U,U+1);return this};h.prototype.swap32=function Q(){let $=this.length;if($%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let U=0;U<$;U+=4)r2(this,U,U+3),r2(this,U+1,U+2);return this};h.prototype.swap64=function Q(){let $=this.length;if($%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let U=0;U<$;U+=8)r2(this,U,U+7),r2(this,U+1,U+6),r2(this,U+2,U+5),r2(this,U+3,U+4);return this};h.prototype.toString=function Q(){let $=this.length;if($===0)return"";if(arguments.length===0)return d4(this,0,$);return mU.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function Q($){if(!h.isBuffer($))throw new TypeError("Argument must be a Buffer");if(this===$)return!0;return h.compare(this,$)===0};h.prototype.inspect=function Q(){let $="",U=_4;if($=this.toString("hex",0,U).replace(/(.{2})/g,"$1 ").trim(),this.length>U)$+=" ... ";return"<Buffer "+$+">"};if(g4)h.prototype[g4]=h.prototype.inspect;h.prototype.compare=function Q($,U,X,q,V){if(J2($,Uint8Array))$=h.from($,$.offset,$.byteLength);if(!h.isBuffer($))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof $);if(U===void 0)U=0;if(X===void 0)X=$?$.length:0;if(q===void 0)q=0;if(V===void 0)V=this.length;if(U<0||X>$.length||q<0||V>this.length)throw new RangeError("out of range index");if(q>=V&&U>=X)return 0;if(q>=V)return-1;if(U>=X)return 1;if(U>>>=0,X>>>=0,q>>>=0,V>>>=0,this===$)return 0;let Y=V-q,K=X-U,G=Math.min(Y,K),J=this.slice(q,V),B=$.slice(U,X);for(let Z=0;Z<G;++Z)if(J[Z]!==B[Z]){Y=J[Z],K=B[Z];break}if(Y<K)return-1;if(K<Y)return 1;return 0};h.prototype.includes=function Q($,U,X){return this.indexOf($,U,X)!==-1};h.prototype.indexOf=function Q($,U,X){return m4(this,$,U,X,!0)};h.prototype.lastIndexOf=function Q($,U,X){return m4(this,$,U,X,!1)};h.prototype.write=function Q($,U,X,q){if(U===void 0)q="utf8",X=this.length,U=0;else if(X===void 0&&typeof U==="string")q=U,X=this.length,U=0;else if(isFinite(U))if(U=U>>>0,isFinite(X)){if(X=X>>>0,q===void 0)q="utf8"}else q=X,X=void 0;else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let V=this.length-U;if(X===void 0||X>V)X=V;if($.length>0&&(X<0||U<0)||U>this.length)throw new RangeError("Attempt to write outside buffer bounds");if(!q)q="utf8";let Y=!1;for(;;)switch(q){case"hex":return dU(this,$,U,X);case"utf8":case"utf-8":return lU(this,$,U,X);case"ascii":case"latin1":case"binary":return iU(this,$,U,X);case"base64":return nU(this,$,U,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oU(this,$,U,X);default:if(Y)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),Y=!0}};h.prototype.toJSON=function Q(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};h.prototype.slice=function Q($,U){let X=this.length;if($=~~$,U=U===void 0?X:~~U,$<0){if($+=X,$<0)$=0}else if($>X)$=X;if(U<0){if(U+=X,U<0)U=0}else if(U>X)U=X;if(U<$)U=$;let q=this.subarray($,U);return Object.setPrototypeOf(q,h.prototype),q};h.prototype.readUintLE=h.prototype.readUIntLE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=this[$],V=1,Y=0;while(++Y<U&&(V*=256))q+=this[$+Y]*V;return q};h.prototype.readUintBE=h.prototype.readUIntBE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=this[$+--U],V=1;while(U>0&&(V*=256))q+=this[$+--U]*V;return q};h.prototype.readUint8=h.prototype.readUInt8=function Q($,U){if($=$>>>0,!U)E0($,1,this.length);return this[$]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);return this[$]|this[$+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);return this[$]<<8|this[$+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return(this[$]|this[$+1]<<8|this[$+2]<<16)+this[$+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return this[$]*16777216+(this[$+1]<<16|this[$+2]<<8|this[$+3])};h.prototype.readBigUInt64LE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=U+this[++$]*256+this[++$]*65536+this[++$]*16777216,V=this[++$]+this[++$]*256+this[++$]*65536+X*16777216;return BigInt(q)+(BigInt(V)<<BigInt(32))});h.prototype.readBigUInt64BE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=U*16777216+this[++$]*65536+this[++$]*256+this[++$],V=this[++$]*16777216+this[++$]*65536+this[++$]*256+X;return(BigInt(q)<<BigInt(32))+BigInt(V)});h.prototype.readIntLE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=this[$],V=1,Y=0;while(++Y<U&&(V*=256))q+=this[$+Y]*V;if(V*=128,q>=V)q-=Math.pow(2,8*U);return q};h.prototype.readIntBE=function Q($,U,X){if($=$>>>0,U=U>>>0,!X)E0($,U,this.length);let q=U,V=1,Y=this[$+--q];while(q>0&&(V*=256))Y+=this[$+--q]*V;if(V*=128,Y>=V)Y-=Math.pow(2,8*U);return Y};h.prototype.readInt8=function Q($,U){if($=$>>>0,!U)E0($,1,this.length);if(!(this[$]&128))return this[$];return(255-this[$]+1)*-1};h.prototype.readInt16LE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);let X=this[$]|this[$+1]<<8;return X&32768?X|4294901760:X};h.prototype.readInt16BE=function Q($,U){if($=$>>>0,!U)E0($,2,this.length);let X=this[$+1]|this[$]<<8;return X&32768?X|4294901760:X};h.prototype.readInt32LE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return this[$]|this[$+1]<<8|this[$+2]<<16|this[$+3]<<24};h.prototype.readInt32BE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return this[$]<<24|this[$+1]<<16|this[$+2]<<8|this[$+3]};h.prototype.readBigInt64LE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=this[$+4]+this[$+5]*256+this[$+6]*65536+(X<<24);return(BigInt(q)<<BigInt(32))+BigInt(U+this[++$]*256+this[++$]*65536+this[++$]*16777216)});h.prototype.readBigInt64BE=E2(function Q($){$=$>>>0,z1($,"offset");let U=this[$],X=this[$+7];if(U===void 0||X===void 0)u1($,this.length-8);let q=(U<<24)+this[++$]*65536+this[++$]*256+this[++$];return(BigInt(q)<<BigInt(32))+BigInt(this[++$]*16777216+this[++$]*65536+this[++$]*256+X)});h.prototype.readFloatLE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return L6(this,$,!0,23,4)};h.prototype.readFloatBE=function Q($,U){if($=$>>>0,!U)E0($,4,this.length);return L6(this,$,!1,23,4)};h.prototype.readDoubleLE=function Q($,U){if($=$>>>0,!U)E0($,8,this.length);return L6(this,$,!0,52,8)};h.prototype.readDoubleBE=function Q($,U){if($=$>>>0,!U)E0($,8,this.length);return L6(this,$,!1,52,8)};h.prototype.writeUintLE=h.prototype.writeUIntLE=function Q($,U,X,q){if($=+$,U=U>>>0,X=X>>>0,!q){let K=Math.pow(2,8*X)-1;u0(this,$,U,X,K,0)}let V=1,Y=0;this[U]=$&255;while(++Y<X&&(V*=256))this[U+Y]=$/V&255;return U+X};h.prototype.writeUintBE=h.prototype.writeUIntBE=function Q($,U,X,q){if($=+$,U=U>>>0,X=X>>>0,!q){let K=Math.pow(2,8*X)-1;u0(this,$,U,X,K,0)}let V=X-1,Y=1;this[U+V]=$&255;while(--V>=0&&(Y*=256))this[U+V]=$/Y&255;return U+X};h.prototype.writeUint8=h.prototype.writeUInt8=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,1,255,0);return this[U]=$&255,U+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,65535,0);return this[U]=$&255,this[U+1]=$>>>8,U+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,65535,0);return this[U]=$>>>8,this[U+1]=$&255,U+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,4294967295,0);return this[U+3]=$>>>24,this[U+2]=$>>>16,this[U+1]=$>>>8,this[U]=$&255,U+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,4294967295,0);return this[U]=$>>>24,this[U+1]=$>>>16,this[U+2]=$>>>8,this[U+3]=$&255,U+4};h.prototype.writeBigUInt64LE=E2(function Q($,U=0){return l4(this,$,U,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=E2(function Q($,U=0){return i4(this,$,U,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function Q($,U,X,q){if($=+$,U=U>>>0,!q){let G=Math.pow(2,8*X-1);u0(this,$,U,X,G-1,-G)}let V=0,Y=1,K=0;this[U]=$&255;while(++V<X&&(Y*=256)){if($<0&&K===0&&this[U+V-1]!==0)K=1;this[U+V]=($/Y>>0)-K&255}return U+X};h.prototype.writeIntBE=function Q($,U,X,q){if($=+$,U=U>>>0,!q){let G=Math.pow(2,8*X-1);u0(this,$,U,X,G-1,-G)}let V=X-1,Y=1,K=0;this[U+V]=$&255;while(--V>=0&&(Y*=256)){if($<0&&K===0&&this[U+V+1]!==0)K=1;this[U+V]=($/Y>>0)-K&255}return U+X};h.prototype.writeInt8=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,1,127,-128);if($<0)$=255+$+1;return this[U]=$&255,U+1};h.prototype.writeInt16LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,32767,-32768);return this[U]=$&255,this[U+1]=$>>>8,U+2};h.prototype.writeInt16BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,2,32767,-32768);return this[U]=$>>>8,this[U+1]=$&255,U+2};h.prototype.writeInt32LE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,2147483647,-2147483648);return this[U]=$&255,this[U+1]=$>>>8,this[U+2]=$>>>16,this[U+3]=$>>>24,U+4};h.prototype.writeInt32BE=function Q($,U,X){if($=+$,U=U>>>0,!X)u0(this,$,U,4,2147483647,-2147483648);if($<0)$=4294967295+$+1;return this[U]=$>>>24,this[U+1]=$>>>16,this[U+2]=$>>>8,this[U+3]=$&255,U+4};h.prototype.writeBigInt64LE=E2(function Q($,U=0){return l4(this,$,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=E2(function Q($,U=0){return i4(this,$,U,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeFloatLE=function Q($,U,X){return o4(this,$,U,!0,X)};h.prototype.writeFloatBE=function Q($,U,X){return o4(this,$,U,!1,X)};h.prototype.writeDoubleLE=function Q($,U,X){return r4(this,$,U,!0,X)};h.prototype.writeDoubleBE=function Q($,U,X){return r4(this,$,U,!1,X)};h.prototype.copy=function Q($,U,X,q){if(!h.isBuffer($))throw new TypeError("argument should be a Buffer");if(!X)X=0;if(!q&&q!==0)q=this.length;if(U>=$.length)U=$.length;if(!U)U=0;if(q>0&&q<X)q=X;if(q===X)return 0;if($.length===0||this.length===0)return 0;if(U<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");if(q>this.length)q=this.length;if($.length-U<q-X)q=$.length-U+X;let V=q-X;if(this===$&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(U,X,q);else Uint8Array.prototype.set.call($,this.subarray(X,q),U);return V};h.prototype.fill=function Q($,U,X,q){if(typeof $==="string"){if(typeof U==="string")q=U,U=0,X=this.length;else if(typeof X==="string")q=X,X=this.length;if(q!==void 0&&typeof q!=="string")throw new TypeError("encoding must be a string");if(typeof q==="string"&&!h.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if($.length===1){let Y=$.charCodeAt(0);if(q==="utf8"&&Y<128||q==="latin1")$=Y}}else if(typeof $==="number")$=$&255;else if(typeof $==="boolean")$=Number($);if(U<0||this.length<U||this.length<X)throw new RangeError("Out of range index");if(X<=U)return this;if(U=U>>>0,X=X===void 0?this.length:X>>>0,!$)$=0;let V;if(typeof $==="number")for(V=U;V<X;++V)this[V]=$;else{let Y=h.isBuffer($)?$:h.from($,q),K=Y.length;if(K===0)throw new TypeError('The value "'+$+'" is invalid for argument "value"');for(V=0;V<X-U;++V)this[V+U]=Y[V%K]}return this};UX=/[^+/0-9A-Za-z-_]/g;YX=function(){let Q=new Array(256);for(let $=0;$<16;++$){let U=$*16;for(let X=0;X<16;++X)Q[U+X]="0123456789abcdef"[$]+"0123456789abcdef"[X]}return Q}();JX=g8("resolveObjectURL"),BX=g8("isUtf8"),wX=g8("transcode"),WX=h});var p1={};T4(p1,{setMaxListeners:()=>JQ,once:()=>YQ,listenerCount:()=>BQ,init:()=>S2,getMaxListeners:()=>wQ,getEventListeners:()=>KQ,default:()=>LX,captureRejectionSymbol:()=>UQ,addAbortListener:()=>WQ,EventEmitter:()=>S2});function XQ(Q,$){var{_events:U}=Q;if($[0]??=new Error("Unhandled error."),!U)throw $[0];var X=U[$Q];if(X)for(var q of e4.call(X))q.apply(Q,$);var V=U.error;if(!V)throw $[0];for(var q of e4.call(V))q.apply(Q,$);return!0}function ZX(Q,$,U,X){$.then(void 0,function(q){queueMicrotask(()=>PX(Q,q,U,X))})}function PX(Q,$,U,X){if(typeof Q[t4]==="function")Q[t4]($,U,...X);else try{Q[a2]=!1,Q.emit("error",$)}finally{Q[a2]=!0}}function qQ(Q,$,U){U.warned=!0;let X=new Error(`Possible EventEmitter memory leak detected. ${U.length} ${String($)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=$,X.count=U.length,console.warn(X)}function VQ(Q,$,...U){this.removeListener(Q,$),$.apply(this,U)}function YQ(Q,$,U){var X=U?.signal;if(GQ(X,"options.signal"),X?.aborted)throw new v8(void 0,{cause:X?.reason});let{resolve:q,reject:V,promise:Y}=$newPromiseCapability(Promise),K=(B)=>{if(Q.removeListener($,G),X!=null)O6(X,"abort",J);V(B)},G=(...B)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",K);if(X!=null)O6(X,"abort",J);q(B)};if(QQ(Q,$,G,{once:!0}),$!=="error"&&typeof Q.once==="function")Q.once("error",K);function J(){O6(Q,$,G),O6(Q,"error",K),V(new v8(void 0,{cause:X?.reason}))}if(X!=null)QQ(X,"abort",J,{once:!0});return Y}function KQ(Q,$){return Q.listeners($)}function JQ(Q,...$){f8(Q,"setMaxListeners",0);var U;if($&&(U=$.length))for(let X=0;X<U;X++)$[X].setMaxListeners(Q);else s2=Q}function BQ(Q,$){return Q.listenerCount($)}function O6(Q,$,U,X){if(typeof Q.removeListener==="function")Q.removeListener($,U);else Q.removeEventListener($,U,X)}function QQ(Q,$,U,X){if(typeof Q.on==="function")if(X.once)Q.once($,U);else Q.on($,U);else Q.addEventListener($,U,X)}function j1(Q,$,U){let X=new TypeError(`The "${Q}" argument must be of type ${$}. Received ${U}`);return X.code="ERR_INVALID_ARG_TYPE",X}function MX(Q,$,U){let X=new RangeError(`The "${Q}" argument is out of range. It must be ${$}. Received ${U}`);return X.code="ERR_OUT_OF_RANGE",X}function GQ(Q,$){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw j1($,"AbortSignal",Q)}function f8(Q,$,U,X){if(typeof Q!=="number")throw j1($,"number",Q);if(U!=null&&Q<U||X!=null&&Q>X||(U!=null||X!=null)&&Number.isNaN(Q))throw MX($,`${U!=null?`>= ${U}`:""}${U!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function c1(Q){if(typeof Q!=="function")throw new TypeError("The listener must be a function")}function HX(Q,$){if(typeof Q!=="boolean")throw j1($,"boolean",Q)}function wQ(Q){return Q?._maxListeners??s2}function WQ(Q,$){if(Q===void 0)throw j1("signal","AbortSignal",Q);if(GQ(Q,"signal"),typeof $!=="function")throw j1("listener","function",$);let U;if(Q.aborted)queueMicrotask(()=>$());else Q.addEventListener("abort",$,{__proto__:null,once:!0}),U=()=>{Q.removeEventListener("abort",$)};return{__proto__:null,[Symbol.dispose](){U?.()}}}var y8,a2,$Q,zX,jX,t4,UQ,e4,s2=10,S2=function Q($){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[a2]=$?.captureRejections?Boolean($?.captureRejections):H0[a2])this.emit=IX},H0,FX=function Q($,...U){if($==="error")return XQ(this,U);var{_events:X}=this;if(X===void 0)return!1;var q=X[$];if(q===void 0)return!1;let V=q.length>1?q.slice():q;for(let Y=0,{length:K}=V;Y<K;Y++){let G=V[Y];switch(U.length){case 0:G.call(this);break;case 1:G.call(this,U[0]);break;case 2:G.call(this,U[0],U[1]);break;case 3:G.call(this,U[0],U[1],U[2]);break;default:G.apply(this,U);break}}return!0},IX=function Q($,...U){if($==="error")return XQ(this,U);var{_events:X}=this;if(X===void 0)return!1;var q=X[$];if(q===void 0)return!1;let V=q.length>1?q.slice():q;for(let Y=0,{length:K}=V;Y<K;Y++){let G=V[Y],J;switch(U.length){case 0:J=G.call(this);break;case 1:J=G.call(this,U[0]);break;case 2:J=G.call(this,U[0],U[1]);break;case 3:J=G.call(this,U[0],U[1],U[2]);break;default:J=G.apply(this,U);break}if(J!==void 0&&typeof J?.then==="function"&&J.then===Promise.prototype.then)ZX(this,J,$,U)}return!0},v8,LX;var m1=E4(()=>{y8=Symbol.for,a2=Symbol("kCapture"),$Q=y8("events.errorMonitor"),zX=Symbol("events.maxEventTargetListeners"),jX=Symbol("events.maxEventTargetListenersWarned"),t4=y8("nodejs.rejection"),UQ=y8("nodejs.rejection"),e4=Array.prototype.slice,H0=S2.prototype={};H0._events=void 0;H0._eventsCount=0;H0._maxListeners=void 0;H0.setMaxListeners=function Q($){return f8($,"setMaxListeners",0),this._maxListeners=$,this};H0.constructor=S2;H0.getMaxListeners=function Q(){return this?._maxListeners??s2};H0.emit=FX;H0.addListener=function Q($,U){c1(U);var X=this._events;if(!X)X=this._events={__proto__:null},this._eventsCount=0;else if(X.newListener)this.emit("newListener",$,U.listener??U);var q=X[$];if(!q)X[$]=[U],this._eventsCount++;else{q.push(U);var V=this._maxListeners??s2;if(V>0&&q.length>V&&!q.warned)qQ(this,$,q)}return this};H0.on=H0.addListener;H0.prependListener=function Q($,U){c1(U);var X=this._events;if(!X)X=this._events={__proto__:null},this._eventsCount=0;else if(X.newListener)this.emit("newListener",$,U.listener??U);var q=X[$];if(!q)X[$]=[U],this._eventsCount++;else{q.unshift(U);var V=this._maxListeners??s2;if(V>0&&q.length>V&&!q.warned)qQ(this,$,q)}return this};H0.once=function Q($,U){c1(U);let X=VQ.bind(this,$,U);return X.listener=U,this.addListener($,X),this};H0.prependOnceListener=function Q($,U){c1(U);let X=VQ.bind(this,$,U);return X.listener=U,this.prependListener($,X),this};H0.removeListener=function Q($,U){c1(U);var{_events:X}=this;if(!X)return this;var q=X[$];if(!q)return this;var V=q.length;let Y=-1;for(let K=V-1;K>=0;K--)if(q[K]===U||q[K].listener===U){Y=K;break}if(Y<0)return this;if(Y===0)q.shift();else q.splice(Y,1);if(q.length===0)delete X[$],this._eventsCount--;return this};H0.off=H0.removeListener;H0.removeAllListeners=function Q($){var{_events:U}=this;if($&&U){if(U[$])delete U[$],this._eventsCount--}else this._events={__proto__:null};return this};H0.listeners=function Q($){var{_events:U}=this;if(!U)return[];var X=U[$];if(!X)return[];return X.map((q)=>q.listener??q)};H0.rawListeners=function Q($){var{_events:U}=this;if(!U)return[];var X=U[$];if(!X)return[];return X.slice()};H0.listenerCount=function Q($){var{_events:U}=this;if(!U)return 0;return U[$]?.length??0};H0.eventNames=function Q(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};H0[a2]=!1;v8=class v8 extends Error{constructor(Q="The operation was aborted",$=void 0){if($!==void 0&&typeof $!=="object")throw j1("options","Object",$);super(Q,$);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(S2,{captureRejections:{get(){return H0[a2]},set(Q){HX(Q,"EventEmitter.captureRejections"),H0[a2]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return s2},set:(Q)=>{f8(Q,"defaultMaxListeners",0),s2=Q}},kMaxEventTargetListeners:{value:zX,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:jX,enumerable:!1,configurable:!1,writable:!1}});Object.assign(S2,{once:YQ,getEventListeners:KQ,getMaxListeners:wQ,setMaxListeners:JQ,EventEmitter:S2,usingDomains:!1,captureRejectionSymbol:UQ,errorMonitor:$Q,addAbortListener:WQ,init:S2,listenerCount:BQ});LX=S2});var x6=J0((ZB,HQ)=>{var I0=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports),O0=I0((Q,$)=>{class U extends Error{constructor(X){if(!Array.isArray(X))throw new TypeError(`Expected input to be an Array, got ${typeof X}`);let q="";for(let V=0;V<X.length;V++)q+=` ${X[V].stack}
|
|
2
|
+
`;super(q);this.name="AggregateError",this.errors=X}}$.exports={AggregateError:U,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,q){return X.includes(q)},ArrayPrototypeIndexOf(X,q){return X.indexOf(q)},ArrayPrototypeJoin(X,q){return X.join(q)},ArrayPrototypeMap(X,q){return X.map(q)},ArrayPrototypePop(X,q){return X.pop(q)},ArrayPrototypePush(X,q){return X.push(q)},ArrayPrototypeSlice(X,q,V){return X.slice(q,V)},Error,FunctionPrototypeCall(X,q,...V){return X.call(q,...V)},FunctionPrototypeSymbolHasInstance(X,q){return Function.prototype[Symbol.hasInstance].call(X,q)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,q){return Object.defineProperties(X,q)},ObjectDefineProperty(X,q,V){return Object.defineProperty(X,q,V)},ObjectGetOwnPropertyDescriptor(X,q){return Object.getOwnPropertyDescriptor(X,q)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,q){return Object.setPrototypeOf(X,q)},Promise,PromisePrototypeCatch(X,q){return X.catch(q)},PromisePrototypeThen(X,q,V){return X.then(q,V)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,q){return X.test(q)},SafeSet:Set,String,StringPrototypeSlice(X,q,V){return X.slice(q,V)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(X,q,V){return X.set(q,V)},Boolean,Uint8Array}}),zQ=I0((Q,$)=>{$.exports={format(U,...X){return U.replace(/%([sdifj])/g,function(...[q,V]){let Y=X.shift();if(V==="f")return Y.toFixed(6);else if(V==="j")return JSON.stringify(Y);else if(V==="s"&&typeof Y==="object")return`${Y.constructor!==Object?Y.constructor.name:""} {}`.trim();else return Y.toString()})},inspect(U){switch(typeof U){case"string":if(U.includes("'")){if(!U.includes('"'))return`"${U}"`;else if(!U.includes("`")&&!U.includes("${"))return`\`${U}\``}return`'${U}'`;case"number":if(isNaN(U))return"NaN";else if(Object.is(U,-0))return String(U);return U;case"bigint":return`${String(U)}n`;case"boolean":case"undefined":return String(U);case"object":return"{}"}}}}),h0=I0((Q,$)=>{var{format:U,inspect:X}=zQ(),{AggregateError:q}=O0(),V=globalThis.AggregateError||q,Y=Symbol("kIsNodeError"),K=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G=/^([A-Z][a-z0-9]*)+$/,J={};function B(M,w){if(!M)throw new J.ERR_INTERNAL_ASSERTION(w)}function Z(M){let w="",I=M.length,F=M[0]==="-"?1:0;for(;I>=F+4;I-=3)w=`_${M.slice(I-3,I)}${w}`;return`${M.slice(0,I)}${w}`}function j(M,w,I){if(typeof w==="function")return B(w.length<=I.length,`Code: ${M}; The provided arguments length (${I.length}) does not match the required ones (${w.length}).`),w(...I);let F=(w.match(/%[dfijoOs]/g)||[]).length;if(B(F===I.length,`Code: ${M}; The provided arguments length (${I.length}) does not match the required ones (${F}).`),I.length===0)return w;return U(w,...I)}function P(M,w,I){if(!I)I=Error;class F extends I{constructor(...L){super(j(M,w,L))}toString(){return`${this.name} [${M}]: ${this.message}`}}Object.defineProperties(F.prototype,{name:{value:I.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${M}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),F.prototype.code=M,F.prototype[Y]=!0,J[M]=F}function g(M){let w="__node_internal_"+M.name;return Object.defineProperty(M,"name",{value:w}),M}function y(M,w){if(M&&w&&M!==w){if(Array.isArray(w.errors))return w.errors.push(M),w;let I=new V([w,M],w.message);return I.code=w.code,I}return M||w}class k extends Error{constructor(M="The operation was aborted",w=void 0){if(w!==void 0&&typeof w!=="object")throw new J.ERR_INVALID_ARG_TYPE("options","Object",w);super(M,w);this.code="ABORT_ERR",this.name="AbortError"}}P("ERR_ASSERTION","%s",Error),P("ERR_INVALID_ARG_TYPE",(M,w,I)=>{if(B(typeof M==="string","'name' must be a string"),!Array.isArray(w))w=[w];let F="The ";if(M.endsWith(" argument"))F+=`${M} `;else F+=`"${M}" ${M.includes(".")?"property":"argument"} `;F+="must be ";let L=[],_=[],A=[];for(let E of w)if(B(typeof E==="string","All expected entries have to be of type string"),K.includes(E))L.push(E.toLowerCase());else if(G.test(E))_.push(E);else B(E!=="object",'The value "object" should be written as "Object"'),A.push(E);if(_.length>0){let E=L.indexOf("object");if(E!==-1)L.splice(L,E,1),_.push("Object")}if(L.length>0){switch(L.length){case 1:F+=`of type ${L[0]}`;break;case 2:F+=`one of type ${L[0]} or ${L[1]}`;break;default:{let E=L.pop();F+=`one of type ${L.join(", ")}, or ${E}`}}if(_.length>0||A.length>0)F+=" or "}if(_.length>0){switch(_.length){case 1:F+=`an instance of ${_[0]}`;break;case 2:F+=`an instance of ${_[0]} or ${_[1]}`;break;default:{let E=_.pop();F+=`an instance of ${_.join(", ")}, or ${E}`}}if(A.length>0)F+=" or "}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0])F+="an ";F+=`${A[0]}`;break;case 2:F+=`one of ${A[0]} or ${A[1]}`;break;default:{let E=A.pop();F+=`one of ${A.join(", ")}, or ${E}`}}if(I==null)F+=`. Received ${I}`;else if(typeof I==="function"&&I.name)F+=`. Received function ${I.name}`;else if(typeof I==="object"){var i;if((i=I.constructor)!==null&&i!==void 0&&i.name)F+=`. Received an instance of ${I.constructor.name}`;else{let E=X(I,{depth:-1});F+=`. Received ${E}`}}else{let E=X(I,{colors:!1});if(E.length>25)E=`${E.slice(0,25)}...`;F+=`. Received type ${typeof I} (${E})`}return F},TypeError),P("ERR_INVALID_ARG_VALUE",(M,w,I="is invalid")=>{let F=X(w);if(F.length>128)F=F.slice(0,128)+"...";return`The ${M.includes(".")?"property":"argument"} '${M}' ${I}. Received ${F}`},TypeError),P("ERR_INVALID_RETURN_VALUE",(M,w,I)=>{var F;let L=I!==null&&I!==void 0&&(F=I.constructor)!==null&&F!==void 0&&F.name?`instance of ${I.constructor.name}`:`type ${typeof I}`;return`Expected ${M} to be returned from the "${w}" function but got ${L}.`},TypeError),P("ERR_MISSING_ARGS",(...M)=>{B(M.length>0,"At least one arg needs to be specified");let w,I=M.length;switch(M=(Array.isArray(M)?M:[M]).map((F)=>`"${F}"`).join(" or "),I){case 1:w+=`The ${M[0]} argument`;break;case 2:w+=`The ${M[0]} and ${M[1]} arguments`;break;default:{let F=M.pop();w+=`The ${M.join(", ")}, and ${F} arguments`}break}return`${w} must be specified`},TypeError),P("ERR_OUT_OF_RANGE",(M,w,I)=>{B(w,'Missing "range" argument');let F;if(Number.isInteger(I)&&Math.abs(I)>4294967296)F=Z(String(I));else if(typeof I==="bigint"){F=String(I);let L=BigInt(2)**BigInt(32);if(I>L||I<-L)F=Z(F);F+="n"}else F=X(I);return`The value of "${M}" is out of range. It must be ${w}. Received ${F}`},RangeError),P("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),P("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),P("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),P("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),P("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),P("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),P("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),P("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),P("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),P("ERR_STREAM_WRITE_AFTER_END","write after end",Error),P("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),$.exports={AbortError:k,aggregateTwoErrors:g(y),hideStackFrames:g,codes:J}}),CX=I0((Q,$)=>{Object.defineProperty(Q,"__esModule",{value:!0});var U=new WeakMap,X=new WeakMap;function q(O){let C=U.get(O);return console.assert(C!=null,"'this' is expected an Event object, but got",O),C}function V(O){if(O.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",O.passiveListener);return}if(!O.event.cancelable)return;if(O.canceled=!0,typeof O.event.preventDefault==="function")O.event.preventDefault()}function Y(O,C){U.set(this,{eventTarget:O,event:C,eventPhase:2,currentTarget:O,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:C.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let x=Object.keys(C);for(let R=0;R<x.length;++R){let v=x[R];if(!(v in this))Object.defineProperty(this,v,K(v))}}if(Y.prototype={get type(){return q(this).event.type},get target(){return q(this).eventTarget},get currentTarget(){return q(this).currentTarget},composedPath(){let O=q(this).currentTarget;if(O==null)return[];return[O]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return q(this).eventPhase},stopPropagation(){let O=q(this);if(O.stopped=!0,typeof O.event.stopPropagation==="function")O.event.stopPropagation()},stopImmediatePropagation(){let O=q(this);if(O.stopped=!0,O.immediateStopped=!0,typeof O.event.stopImmediatePropagation==="function")O.event.stopImmediatePropagation()},get bubbles(){return Boolean(q(this).event.bubbles)},get cancelable(){return Boolean(q(this).event.cancelable)},preventDefault(){V(q(this))},get defaultPrevented(){return q(this).canceled},get composed(){return Boolean(q(this).event.composed)},get timeStamp(){return q(this).timeStamp},get srcElement(){return q(this).eventTarget},get cancelBubble(){return q(this).stopped},set cancelBubble(O){if(!O)return;let C=q(this);if(C.stopped=!0,typeof C.event.cancelBubble==="boolean")C.event.cancelBubble=!0},get returnValue(){return!q(this).canceled},set returnValue(O){if(!O)V(q(this))},initEvent(){}},Object.defineProperty(Y.prototype,"constructor",{value:Y,configurable:!0,writable:!0}),typeof window!=="undefined"&&typeof window.Event!=="undefined")Object.setPrototypeOf(Y.prototype,window.Event.prototype),X.set(window.Event.prototype,Y);function K(O){return{get(){return q(this).event[O]},set(C){q(this).event[O]=C},configurable:!0,enumerable:!0}}function G(O){return{value(){let C=q(this).event;return C[O].apply(C,arguments)},configurable:!0,enumerable:!0}}function J(O,C){let x=Object.keys(C);if(x.length===0)return O;function R(v,T){O.call(this,v,T)}R.prototype=Object.create(O.prototype,{constructor:{value:R,configurable:!0,writable:!0}});for(let v=0;v<x.length;++v){let T=x[v];if(!(T in O.prototype)){let n=typeof Object.getOwnPropertyDescriptor(C,T).value==="function";Object.defineProperty(R.prototype,T,n?G(T):K(T))}}return R}function B(O){if(O==null||O===Object.prototype)return Y;let C=X.get(O);if(C==null)C=J(B(Object.getPrototypeOf(O)),O),X.set(O,C);return C}function Z(O,C){return new(B(Object.getPrototypeOf(C)))(O,C)}function j(O){return q(O).immediateStopped}function P(O,C){q(O).eventPhase=C}function g(O,C){q(O).currentTarget=C}function y(O,C){q(O).passiveListener=C}var k=new WeakMap,M=1,w=2,I=3;function F(O){return O!==null&&typeof O==="object"}function L(O){let C=k.get(O);if(C==null)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return C}function _(O){return{get(){let C=L(this).get(O);while(C!=null){if(C.listenerType===I)return C.listener;C=C.next}return null},set(C){if(typeof C!=="function"&&!F(C))C=null;let x=L(this),R=null,v=x.get(O);while(v!=null){if(v.listenerType===I)if(R!==null)R.next=v.next;else if(v.next!==null)x.set(O,v.next);else x.delete(O);else R=v;v=v.next}if(C!==null){let T={listener:C,listenerType:I,passive:!1,once:!1,next:null};if(R===null)x.set(O,T);else R.next=T}},configurable:!0,enumerable:!0}}function A(O,C){Object.defineProperty(O,`on${C}`,_(C))}function i(O){function C(){E.call(this)}C.prototype=Object.create(E.prototype,{constructor:{value:C,configurable:!0,writable:!0}});for(let x=0;x<O.length;++x)A(C.prototype,O[x]);return C}function E(){if(this instanceof E){k.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i(arguments[0]);if(arguments.length>0){let O=new Array(arguments.length);for(let C=0;C<arguments.length;++C)O[C]=arguments[C];return i(O)}throw new TypeError("Cannot call a class as a function")}if(E.prototype={addEventListener(O,C,x){if(C==null)return;if(typeof C!=="function"&&!F(C))throw new TypeError("'listener' should be a function or an object.");let R=L(this),v=F(x),T=(v?Boolean(x.capture):Boolean(x))?M:w,n={listener:C,listenerType:T,passive:v&&Boolean(x.passive),once:v&&Boolean(x.once),next:null},e=R.get(O);if(e===void 0){R.set(O,n);return}let X0=null;while(e!=null){if(e.listener===C&&e.listenerType===T)return;X0=e,e=e.next}X0.next=n},removeEventListener(O,C,x){if(C==null)return;let R=L(this),v=(F(x)?Boolean(x.capture):Boolean(x))?M:w,T=null,n=R.get(O);while(n!=null){if(n.listener===C&&n.listenerType===v){if(T!==null)T.next=n.next;else if(n.next!==null)R.set(O,n.next);else R.delete(O);return}T=n,n=n.next}},dispatchEvent(O){if(O==null||typeof O.type!=="string")throw new TypeError('"event.type" should be a string.');let C=L(this),x=O.type,R=C.get(x);if(R==null)return!0;let v=Z(this,O),T=null;while(R!=null){if(R.once)if(T!==null)T.next=R.next;else if(R.next!==null)C.set(x,R.next);else C.delete(x);else T=R;if(y(v,R.passive?R.listener:null),typeof R.listener==="function")try{R.listener.call(this,v)}catch(n){if(typeof console!=="undefined"&&typeof console.error==="function")console.error(n)}else if(R.listenerType!==I&&typeof R.listener.handleEvent==="function")R.listener.handleEvent(v);if(j(v))break;R=R.next}return y(v,null),P(v,0),g(v,null),!v.defaultPrevented}},Object.defineProperty(E.prototype,"constructor",{value:E,configurable:!0,writable:!0}),typeof window!=="undefined"&&typeof window.EventTarget!=="undefined")Object.setPrototypeOf(E.prototype,window.EventTarget.prototype);Q.defineEventAttribute=A,Q.EventTarget=E,Q.default=E,$.exports=E,$.exports.EventTarget=$.exports.default=E,$.exports.defineEventAttribute=A}),d1=I0((Q,$)=>{Object.defineProperty(Q,"__esModule",{value:!0});var U=CX();class X extends U.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){let B=Y.get(this);if(typeof B!=="boolean")throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return B}}U.defineEventAttribute(X.prototype,"abort");function q(){let B=Object.create(X.prototype);return U.EventTarget.call(B),Y.set(B,!1),B}function V(B){if(Y.get(B)!==!1)return;Y.set(B,!0),B.dispatchEvent({type:"abort"})}var Y=new WeakMap;if(Object.defineProperties(X.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(X.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class K{constructor(){G.set(this,q())}get signal(){return J(this)}abort(){V(J(this))}}var G=new WeakMap;function J(B){let Z=G.get(B);if(Z==null)throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${B===null?"null":typeof B}`);return Z}if(Object.defineProperties(K.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(K.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=K,Q.AbortSignal=X,Q.default=K,$.exports=K,$.exports.AbortController=$.exports.default=K,$.exports.AbortSignal=X}),c0=I0((Q,$)=>{var U=(C2(),o0(L2)),{format:X,inspect:q}=zQ(),{codes:{ERR_INVALID_ARG_TYPE:V}}=h0(),{kResistStopPropagation:Y,AggregateError:K,SymbolDispose:G}=O0(),J=globalThis.AbortSignal||d1().AbortSignal,B=globalThis.AbortController||d1().AbortController,Z=Object.getPrototypeOf(async function(){}).constructor,j=globalThis.Blob||U.Blob,P=typeof j!=="undefined"?function k(M){return M instanceof j}:function k(M){return!1},g=(k,M)=>{if(k!==void 0&&(k===null||typeof k!=="object"||!("aborted"in k)))throw new V(M,"AbortSignal",k)},y=(k,M)=>{if(typeof k!=="function")throw new V(M,"Function",k)};$.exports={AggregateError:K,kEmptyObject:Object.freeze({}),once(k){let M=!1;return function(...w){if(M)return;M=!0,k.apply(this,w)}},createDeferredPromise:function(){let k,M;return{promise:new Promise((w,I)=>{k=w,M=I}),resolve:k,reject:M}},promisify(k){return new Promise((M,w)=>{k((I,...F)=>{if(I)return w(I);return M(...F)})})},debuglog(){return function(){}},format:X,inspect:q,types:{isAsyncFunction(k){return k instanceof Z},isArrayBufferView(k){return ArrayBuffer.isView(k)}},isBlob:P,deprecate(k,M){return k},addAbortListener:(m1(),o0(p1)).addAbortListener||function k(M,w){if(M===void 0)throw new V("signal","AbortSignal",M);g(M,"signal"),y(w,"listener");let I;if(M.aborted)queueMicrotask(()=>w());else M.addEventListener("abort",w,{__proto__:null,once:!0,[Y]:!0}),I=()=>{M.removeEventListener("abort",w)};return{__proto__:null,[G](){var F;(F=I)===null||F===void 0||F()}}},AbortSignalAny:J.any||function k(M){if(M.length===1)return M[0];let w=new B,I=()=>w.abort();return M.forEach((F)=>{g(F,"signals"),F.addEventListener("abort",I,{once:!0})}),w.signal.addEventListener("abort",()=>{M.forEach((F)=>F.removeEventListener("abort",I))},{once:!0}),w.signal}},$.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),l1=I0((Q,$)=>{var{ArrayIsArray:U,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:q,ArrayPrototypeMap:V,NumberIsInteger:Y,NumberIsNaN:K,NumberMAX_SAFE_INTEGER:G,NumberMIN_SAFE_INTEGER:J,NumberParseInt:B,ObjectPrototypeHasOwnProperty:Z,RegExpPrototypeExec:j,String:P,StringPrototypeToUpperCase:g,StringPrototypeTrim:y}=O0(),{hideStackFrames:k,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:w,ERR_INVALID_ARG_VALUE:I,ERR_OUT_OF_RANGE:F,ERR_UNKNOWN_SIGNAL:L}}=h0(),{normalizeEncoding:_}=c0(),{isAsyncFunction:A,isArrayBufferView:i}=c0().types,E={};function O(D){return D===(D|0)}function C(D){return D===D>>>0}var x=/^[0-7]+$/,R="must be a 32-bit unsigned integer or an octal string";function v(D,d,$0){if(typeof D==="undefined")D=$0;if(typeof D==="string"){if(j(x,D)===null)throw new I(d,D,R);D=B(D,8)}return e(D,d),D}var T=k((D,d,$0=J,l=G)=>{if(typeof D!=="number")throw new w(d,"number",D);if(!Y(D))throw new F(d,"an integer",D);if(D<$0||D>l)throw new F(d,`>= ${$0} && <= ${l}`,D)}),n=k((D,d,$0=-2147483648,l=2147483647)=>{if(typeof D!=="number")throw new w(d,"number",D);if(!Y(D))throw new F(d,"an integer",D);if(D<$0||D>l)throw new F(d,`>= ${$0} && <= ${l}`,D)}),e=k((D,d,$0=!1)=>{if(typeof D!=="number")throw new w(d,"number",D);if(!Y(D))throw new F(d,"an integer",D);let l=$0?1:0,K0=4294967295;if(D<l||D>K0)throw new F(d,`>= ${l} && <= ${K0}`,D)});function X0(D,d){if(typeof D!=="string")throw new w(d,"string",D)}function W0(D,d,$0=void 0,l){if(typeof D!=="number")throw new w(d,"number",D);if($0!=null&&D<$0||l!=null&&D>l||($0!=null||l!=null)&&K(D))throw new F(d,`${$0!=null?`>= ${$0}`:""}${$0!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,D)}var u=k((D,d,$0)=>{if(!X($0,D)){let l="must be one of: "+q(V($0,(K0)=>typeof K0==="string"?`'${K0}'`:P(K0)),", ");throw new I(d,D,l)}});function Y0(D,d){if(typeof D!=="boolean")throw new w(d,"boolean",D)}function H(D,d,$0){return D==null||!Z(D,d)?$0:D[d]}var m=k((D,d,$0=null)=>{let l=H($0,"allowArray",!1),K0=H($0,"allowFunction",!1);if(!H($0,"nullable",!1)&&D===null||!l&&U(D)||typeof D!=="object"&&(!K0||typeof D!=="function"))throw new w(d,"Object",D)}),U0=k((D,d)=>{if(D!=null&&typeof D!=="object"&&typeof D!=="function")throw new w(d,"a dictionary",D)}),b=k((D,d,$0=0)=>{if(!U(D))throw new w(d,"Array",D);if(D.length<$0){let l=`must be longer than ${$0}`;throw new I(d,D,l)}});function V0(D,d){b(D,d);for(let $0=0;$0<D.length;$0++)X0(D[$0],`${d}[${$0}]`)}function B0(D,d){b(D,d);for(let $0=0;$0<D.length;$0++)Y0(D[$0],`${d}[${$0}]`)}function Z0(D,d){b(D,d);for(let $0=0;$0<D.length;$0++){let l=D[$0],K0=`${d}[${$0}]`;if(l==null)throw new w(K0,"AbortSignal",l);w0(l,K0)}}function z0(D,d="signal"){if(X0(D,d),E[D]===void 0){if(E[g(D)]!==void 0)throw new L(D+" (signals must use all capital letters)");throw new L(D)}}var c=k((D,d="buffer")=>{if(!i(D))throw new w(d,["Buffer","TypedArray","DataView"],D)});function p(D,d){let $0=_(d),l=D.length;if($0==="hex"&&l%2!==0)throw new I("encoding",d,`is invalid for data of length ${l}`)}function Q0(D,d="Port",$0=!0){if(typeof D!=="number"&&typeof D!=="string"||typeof D==="string"&&y(D).length===0||+D!==+D>>>0||D>65535||D===0&&!$0)throw new M(d,D,$0);return D|0}var w0=k((D,d)=>{if(D!==void 0&&(D===null||typeof D!=="object"||!("aborted"in D)))throw new w(d,"AbortSignal",D)}),G0=k((D,d)=>{if(typeof D!=="function")throw new w(d,"Function",D)}),N=k((D,d)=>{if(typeof D!=="function"||A(D))throw new w(d,"Function",D)}),S=k((D,d)=>{if(D!==void 0)throw new w(d,"undefined",D)});function f(D,d,$0){if(!X($0,D))throw new w(d,`('${q($0,"|")}')`,D)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function s(D,d){if(typeof D==="undefined"||!j(r,D))throw new I(d,D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function o(D){if(typeof D==="string")return s(D,"hints"),D;else if(U(D)){let d=D.length,$0="";if(d===0)return $0;for(let l=0;l<d;l++){let K0=D[l];if(s(K0,"hints"),$0+=K0,l!==d-1)$0+=", "}return $0}throw new I("hints",D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}$.exports={isInt32:O,isUint32:C,parseFileMode:v,validateArray:b,validateStringArray:V0,validateBooleanArray:B0,validateAbortSignalArray:Z0,validateBoolean:Y0,validateBuffer:c,validateDictionary:U0,validateEncoding:p,validateFunction:G0,validateInt32:n,validateInteger:T,validateNumber:W0,validateObject:m,validateOneOf:u,validatePlainFunction:N,validatePort:Q0,validateSignalName:z0,validateString:X0,validateUint32:e,validateUndefined:S,validateUnion:f,validateAbortSignal:w0,validateLinkHeaderValue:o}}),t2=I0((Q,$)=>{$.exports=globalThis.process}),N2=I0((Q,$)=>{var{SymbolAsyncIterator:U,SymbolIterator:X,SymbolFor:q}=O0(),V=q("nodejs.stream.destroyed"),Y=q("nodejs.stream.errored"),K=q("nodejs.stream.readable"),G=q("nodejs.stream.writable"),J=q("nodejs.stream.disturbed"),B=q("nodejs.webstream.isClosedPromise"),Z=q("nodejs.webstream.controllerErrorFunction");function j(H,m=!1){var U0;return!!(H&&typeof H.pipe==="function"&&typeof H.on==="function"&&(!m||typeof H.pause==="function"&&typeof H.resume==="function")&&(!H._writableState||((U0=H._readableState)===null||U0===void 0?void 0:U0.readable)!==!1)&&(!H._writableState||H._readableState))}function P(H){var m;return!!(H&&typeof H.write==="function"&&typeof H.on==="function"&&(!H._readableState||((m=H._writableState)===null||m===void 0?void 0:m.writable)!==!1))}function g(H){return!!(H&&typeof H.pipe==="function"&&H._readableState&&typeof H.on==="function"&&typeof H.write==="function")}function y(H){return H&&(H._readableState||H._writableState||typeof H.write==="function"&&typeof H.on==="function"||typeof H.pipe==="function"&&typeof H.on==="function")}function k(H){return!!(H&&!y(H)&&typeof H.pipeThrough==="function"&&typeof H.getReader==="function"&&typeof H.cancel==="function")}function M(H){return!!(H&&!y(H)&&typeof H.getWriter==="function"&&typeof H.abort==="function")}function w(H){return!!(H&&!y(H)&&typeof H.readable==="object"&&typeof H.writable==="object")}function I(H){return k(H)||M(H)||w(H)}function F(H,m){if(H==null)return!1;if(m===!0)return typeof H[U]==="function";if(m===!1)return typeof H[X]==="function";return typeof H[U]==="function"||typeof H[X]==="function"}function L(H){if(!y(H))return null;let{_writableState:m,_readableState:U0}=H,b=m||U0;return!!(H.destroyed||H[V]||b!==null&&b!==void 0&&b.destroyed)}function _(H){if(!P(H))return null;if(H.writableEnded===!0)return!0;let m=H._writableState;if(m!==null&&m!==void 0&&m.errored)return!1;if(typeof(m===null||m===void 0?void 0:m.ended)!=="boolean")return null;return m.ended}function A(H,m){if(!P(H))return null;if(H.writableFinished===!0)return!0;let U0=H._writableState;if(U0!==null&&U0!==void 0&&U0.errored)return!1;if(typeof(U0===null||U0===void 0?void 0:U0.finished)!=="boolean")return null;return!!(U0.finished||m===!1&&U0.ended===!0&&U0.length===0)}function i(H){if(!j(H))return null;if(H.readableEnded===!0)return!0;let m=H._readableState;if(!m||m.errored)return!1;if(typeof(m===null||m===void 0?void 0:m.ended)!=="boolean")return null;return m.ended}function E(H,m){if(!j(H))return null;let U0=H._readableState;if(U0!==null&&U0!==void 0&&U0.errored)return!1;if(typeof(U0===null||U0===void 0?void 0:U0.endEmitted)!=="boolean")return null;return!!(U0.endEmitted||m===!1&&U0.ended===!0&&U0.length===0)}function O(H){if(H&&H[K]!=null)return H[K];if(typeof(H===null||H===void 0?void 0:H.readable)!=="boolean")return null;if(L(H))return!1;return j(H)&&H.readable&&!E(H)}function C(H){if(H&&H[G]!=null)return H[G];if(typeof(H===null||H===void 0?void 0:H.writable)!=="boolean")return null;if(L(H))return!1;return P(H)&&H.writable&&!_(H)}function x(H,m){if(!y(H))return null;if(L(H))return!0;if((m===null||m===void 0?void 0:m.readable)!==!1&&O(H))return!1;if((m===null||m===void 0?void 0:m.writable)!==!1&&C(H))return!1;return!0}function R(H){var m,U0;if(!y(H))return null;if(H.writableErrored)return H.writableErrored;return(m=(U0=H._writableState)===null||U0===void 0?void 0:U0.errored)!==null&&m!==void 0?m:null}function v(H){var m,U0;if(!y(H))return null;if(H.readableErrored)return H.readableErrored;return(m=(U0=H._readableState)===null||U0===void 0?void 0:U0.errored)!==null&&m!==void 0?m:null}function T(H){if(!y(H))return null;if(typeof H.closed==="boolean")return H.closed;let{_writableState:m,_readableState:U0}=H;if(typeof(m===null||m===void 0?void 0:m.closed)==="boolean"||typeof(U0===null||U0===void 0?void 0:U0.closed)==="boolean")return(m===null||m===void 0?void 0:m.closed)||(U0===null||U0===void 0?void 0:U0.closed);if(typeof H._closed==="boolean"&&n(H))return H._closed;return null}function n(H){return typeof H._closed==="boolean"&&typeof H._defaultKeepAlive==="boolean"&&typeof H._removedConnection==="boolean"&&typeof H._removedContLen==="boolean"}function e(H){return typeof H._sent100==="boolean"&&n(H)}function X0(H){var m;return typeof H._consuming==="boolean"&&typeof H._dumped==="boolean"&&((m=H.req)===null||m===void 0?void 0:m.upgradeOrConnect)===void 0}function W0(H){if(!y(H))return null;let{_writableState:m,_readableState:U0}=H,b=m||U0;return!b&&e(H)||!!(b&&b.autoDestroy&&b.emitClose&&b.closed===!1)}function u(H){var m;return!!(H&&((m=H[J])!==null&&m!==void 0?m:H.readableDidRead||H.readableAborted))}function Y0(H){var m,U0,b,V0,B0,Z0,z0,c,p,Q0;return!!(H&&((m=(U0=(b=(V0=(B0=(Z0=H[Y])!==null&&Z0!==void 0?Z0:H.readableErrored)!==null&&B0!==void 0?B0:H.writableErrored)!==null&&V0!==void 0?V0:(z0=H._readableState)===null||z0===void 0?void 0:z0.errorEmitted)!==null&&b!==void 0?b:(c=H._writableState)===null||c===void 0?void 0:c.errorEmitted)!==null&&U0!==void 0?U0:(p=H._readableState)===null||p===void 0?void 0:p.errored)!==null&&m!==void 0?m:(Q0=H._writableState)===null||Q0===void 0?void 0:Q0.errored))}$.exports={isDestroyed:L,kIsDestroyed:V,isDisturbed:u,kIsDisturbed:J,isErrored:Y0,kIsErrored:Y,isReadable:O,kIsReadable:K,kIsClosedPromise:B,kControllerErrorFunction:Z,kIsWritable:G,isClosed:T,isDuplexNodeStream:g,isFinished:x,isIterable:F,isReadableNodeStream:j,isReadableStream:k,isReadableEnded:i,isReadableFinished:E,isReadableErrored:v,isNodeStream:y,isWebStream:I,isWritable:C,isWritableNodeStream:P,isWritableStream:M,isWritableEnded:_,isWritableFinished:A,isWritableErrored:R,isServerRequest:X0,isServerResponse:e,willEmitClose:W0,isTransformStream:w}}),k2=I0((Q,$)=>{var U=t2(),{AbortError:X,codes:q}=h0(),{ERR_INVALID_ARG_TYPE:V,ERR_STREAM_PREMATURE_CLOSE:Y}=q,{kEmptyObject:K,once:G}=c0(),{validateAbortSignal:J,validateFunction:B,validateObject:Z,validateBoolean:j}=l1(),{Promise:P,PromisePrototypeThen:g,SymbolDispose:y}=O0(),{isClosed:k,isReadable:M,isReadableNodeStream:w,isReadableStream:I,isReadableFinished:F,isReadableErrored:L,isWritable:_,isWritableNodeStream:A,isWritableStream:i,isWritableFinished:E,isWritableErrored:O,isNodeStream:C,willEmitClose:x,kIsClosedPromise:R}=N2(),v;function T(u){return u.setHeader&&typeof u.abort==="function"}var n=()=>{};function e(u,Y0,H){var m,U0;if(arguments.length===2)H=Y0,Y0=K;else if(Y0==null)Y0=K;else Z(Y0,"options");if(B(H,"callback"),J(Y0.signal,"options.signal"),H=G(H),I(u)||i(u))return X0(u,Y0,H);if(!C(u))throw new V("stream",["ReadableStream","WritableStream","Stream"],u);let b=(m=Y0.readable)!==null&&m!==void 0?m:w(u),V0=(U0=Y0.writable)!==null&&U0!==void 0?U0:A(u),B0=u._writableState,Z0=u._readableState,z0=()=>{if(!u.writable)Q0()},c=x(u)&&w(u)===b&&A(u)===V0,p=E(u,!1),Q0=()=>{if(p=!0,u.destroyed)c=!1;if(c&&(!u.readable||b))return;if(!b||w0)H.call(u)},w0=F(u,!1),G0=()=>{if(w0=!0,u.destroyed)c=!1;if(c&&(!u.writable||V0))return;if(!V0||p)H.call(u)},N=(D)=>{H.call(u,D)},S=k(u),f=()=>{S=!0;let D=O(u)||L(u);if(D&&typeof D!=="boolean")return H.call(u,D);if(b&&!w0&&w(u,!0)){if(!F(u,!1))return H.call(u,new Y)}if(V0&&!p){if(!E(u,!1))return H.call(u,new Y)}H.call(u)},r=()=>{S=!0;let D=O(u)||L(u);if(D&&typeof D!=="boolean")return H.call(u,D);H.call(u)},s=()=>{u.req.on("finish",Q0)};if(T(u)){if(u.on("complete",Q0),!c)u.on("abort",f);if(u.req)s();else u.on("request",s)}else if(V0&&!B0)u.on("end",z0),u.on("close",z0);if(!c&&typeof u.aborted==="boolean")u.on("aborted",f);if(u.on("end",G0),u.on("finish",Q0),Y0.error!==!1)u.on("error",N);if(u.on("close",f),S)U.nextTick(f);else if(B0!==null&&B0!==void 0&&B0.errorEmitted||Z0!==null&&Z0!==void 0&&Z0.errorEmitted){if(!c)U.nextTick(r)}else if(!b&&(!c||M(u))&&(p||_(u)===!1))U.nextTick(r);else if(!V0&&(!c||_(u))&&(w0||M(u)===!1))U.nextTick(r);else if(Z0&&u.req&&u.aborted)U.nextTick(r);let o=()=>{if(H=n,u.removeListener("aborted",f),u.removeListener("complete",Q0),u.removeListener("abort",f),u.removeListener("request",s),u.req)u.req.removeListener("finish",Q0);u.removeListener("end",z0),u.removeListener("close",z0),u.removeListener("finish",Q0),u.removeListener("end",G0),u.removeListener("error",N),u.removeListener("close",f)};if(Y0.signal&&!S){let D=()=>{let d=H;o(),d.call(u,new X(void 0,{cause:Y0.signal.reason}))};if(Y0.signal.aborted)U.nextTick(D);else{v=v||c0().addAbortListener;let d=v(Y0.signal,D),$0=H;H=G((...l)=>{d[y](),$0.apply(u,l)})}}return o}function X0(u,Y0,H){let m=!1,U0=n;if(Y0.signal)if(U0=()=>{m=!0,H.call(u,new X(void 0,{cause:Y0.signal.reason}))},Y0.signal.aborted)U.nextTick(U0);else{v=v||c0().addAbortListener;let V0=v(Y0.signal,U0),B0=H;H=G((...Z0)=>{V0[y](),B0.apply(u,Z0)})}let b=(...V0)=>{if(!m)U.nextTick(()=>H.apply(u,V0))};return g(u[R].promise,b,b),n}function W0(u,Y0){var H;let m=!1;if(Y0===null)Y0=K;if((H=Y0)!==null&&H!==void 0&&H.cleanup)j(Y0.cleanup,"cleanup"),m=Y0.cleanup;return new P((U0,b)=>{let V0=e(u,Y0,(B0)=>{if(m)V0();if(B0)b(B0);else U0()})})}$.exports=e,$.exports.finished=W0}),Z1=I0((Q,$)=>{var U=t2(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:q},AbortError:V}=h0(),{Symbol:Y}=O0(),{kIsDestroyed:K,isDestroyed:G,isFinished:J,isServerRequest:B}=N2(),Z=Y("kDestroy"),j=Y("kConstruct");function P(x,R,v){if(x){if(x.stack,R&&!R.errored)R.errored=x;if(v&&!v.errored)v.errored=x}}function g(x,R){let v=this._readableState,T=this._writableState,n=T||v;if(T!==null&&T!==void 0&&T.destroyed||v!==null&&v!==void 0&&v.destroyed){if(typeof R==="function")R();return this}if(P(x,T,v),T)T.destroyed=!0;if(v)v.destroyed=!0;if(!n.constructed)this.once(Z,function(e){y(this,X(e,x),R)});else y(this,x,R);return this}function y(x,R,v){let T=!1;function n(e){if(T)return;T=!0;let{_readableState:X0,_writableState:W0}=x;if(P(e,W0,X0),W0)W0.closed=!0;if(X0)X0.closed=!0;if(typeof v==="function")v(e);if(e)U.nextTick(k,x,e);else U.nextTick(M,x)}try{x._destroy(R||null,n)}catch(e){n(e)}}function k(x,R){w(x,R),M(x)}function M(x){let{_readableState:R,_writableState:v}=x;if(v)v.closeEmitted=!0;if(R)R.closeEmitted=!0;if(v!==null&&v!==void 0&&v.emitClose||R!==null&&R!==void 0&&R.emitClose)x.emit("close")}function w(x,R){let{_readableState:v,_writableState:T}=x;if(T!==null&&T!==void 0&&T.errorEmitted||v!==null&&v!==void 0&&v.errorEmitted)return;if(T)T.errorEmitted=!0;if(v)v.errorEmitted=!0;x.emit("error",R)}function I(){let x=this._readableState,R=this._writableState;if(x)x.constructed=!0,x.closed=!1,x.closeEmitted=!1,x.destroyed=!1,x.errored=null,x.errorEmitted=!1,x.reading=!1,x.ended=x.readable===!1,x.endEmitted=x.readable===!1;if(R)R.constructed=!0,R.destroyed=!1,R.closed=!1,R.closeEmitted=!1,R.errored=null,R.errorEmitted=!1,R.finalCalled=!1,R.prefinished=!1,R.ended=R.writable===!1,R.ending=R.writable===!1,R.finished=R.writable===!1}function F(x,R,v){let{_readableState:T,_writableState:n}=x;if(n!==null&&n!==void 0&&n.destroyed||T!==null&&T!==void 0&&T.destroyed)return this;if(T!==null&&T!==void 0&&T.autoDestroy||n!==null&&n!==void 0&&n.autoDestroy)x.destroy(R);else if(R){if(R.stack,n&&!n.errored)n.errored=R;if(T&&!T.errored)T.errored=R;if(v)U.nextTick(w,x,R);else w(x,R)}}function L(x,R){if(typeof x._construct!=="function")return;let{_readableState:v,_writableState:T}=x;if(v)v.constructed=!1;if(T)T.constructed=!1;if(x.once(j,R),x.listenerCount(j)>1)return;U.nextTick(_,x)}function _(x){let R=!1;function v(T){if(R){F(x,T!==null&&T!==void 0?T:new q);return}R=!0;let{_readableState:n,_writableState:e}=x,X0=e||n;if(n)n.constructed=!0;if(e)e.constructed=!0;if(X0.destroyed)x.emit(Z,T);else if(T)F(x,T,!0);else U.nextTick(A,x)}try{x._construct((T)=>{U.nextTick(v,T)})}catch(T){U.nextTick(v,T)}}function A(x){x.emit(j)}function i(x){return(x===null||x===void 0?void 0:x.setHeader)&&typeof x.abort==="function"}function E(x){x.emit("close")}function O(x,R){x.emit("error",R),U.nextTick(E,x)}function C(x,R){if(!x||G(x))return;if(!R&&!J(x))R=new V;if(B(x))x.socket=null,x.destroy(R);else if(i(x))x.abort();else if(i(x.req))x.req.abort();else if(typeof x.destroy==="function")x.destroy(R);else if(typeof x.close==="function")x.close();else if(R)U.nextTick(O,x,R);else U.nextTick(E,x);if(!x.destroyed)x[K]=!0}$.exports={construct:L,destroyer:C,destroy:g,undestroy:I,errorOrDestroy:F}}),h8=I0((Q,$)=>{var{ArrayIsArray:U,ObjectSetPrototypeOf:X}=O0(),{EventEmitter:q}=(m1(),o0(p1));function V(K){q.call(this,K)}X(V.prototype,q.prototype),X(V,q),V.prototype.pipe=function(K,G){let J=this;function B(M){if(K.writable&&K.write(M)===!1&&J.pause)J.pause()}J.on("data",B);function Z(){if(J.readable&&J.resume)J.resume()}if(K.on("drain",Z),!K._isStdio&&(!G||G.end!==!1))J.on("end",P),J.on("close",g);let j=!1;function P(){if(j)return;j=!0,K.end()}function g(){if(j)return;if(j=!0,typeof K.destroy==="function")K.destroy()}function y(M){if(k(),q.listenerCount(this,"error")===0)this.emit("error",M)}Y(J,"error",y),Y(K,"error",y);function k(){J.removeListener("data",B),K.removeListener("drain",Z),J.removeListener("end",P),J.removeListener("close",g),J.removeListener("error",y),K.removeListener("error",y),J.removeListener("end",k),J.removeListener("close",k),K.removeListener("close",k)}return J.on("end",k),J.on("close",k),K.on("close",k),K.emit("pipe",J),K};function Y(K,G,J){if(typeof K.prependListener==="function")return K.prependListener(G,J);if(!K._events||!K._events[G])K.on(G,J);else if(U(K._events[G]))K._events[G].unshift(J);else K._events[G]=[J,K._events[G]]}$.exports={Stream:V,prependListener:Y}}),N6=I0((Q,$)=>{var{SymbolDispose:U}=O0(),{AbortError:X,codes:q}=h0(),{isNodeStream:V,isWebStream:Y,kControllerErrorFunction:K}=N2(),G=k2(),{ERR_INVALID_ARG_TYPE:J}=q,B,Z=(j,P)=>{if(typeof j!=="object"||!("aborted"in j))throw new J(P,"AbortSignal",j)};$.exports.addAbortSignal=function j(P,g){if(Z(P,"signal"),!V(g)&&!Y(g))throw new J("stream",["ReadableStream","WritableStream","Stream"],g);return $.exports.addAbortSignalNoValidate(P,g)},$.exports.addAbortSignalNoValidate=function(j,P){if(typeof j!=="object"||!("aborted"in j))return P;let g=V(P)?()=>{P.destroy(new X(void 0,{cause:j.reason}))}:()=>{P[K](new X(void 0,{cause:j.reason}))};if(j.aborted)g();else{B=B||c0().addAbortListener;let y=B(j,g);G(P,y[U])}return P}}),OX=I0((Q,$)=>{var{StringPrototypeSlice:U,SymbolIterator:X,TypedArrayPrototypeSet:q,Uint8Array:V}=O0(),{Buffer:Y}=(C2(),o0(L2)),{inspect:K}=c0();$.exports=class G{constructor(){this.head=null,this.tail=null,this.length=0}push(J){let B={data:J,next:null};if(this.length>0)this.tail.next=B;else this.head=B;this.tail=B,++this.length}unshift(J){let B={data:J,next:this.head};if(this.length===0)this.tail=B;this.head=B,++this.length}shift(){if(this.length===0)return;let J=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,J}clear(){this.head=this.tail=null,this.length=0}join(J){if(this.length===0)return"";let B=this.head,Z=""+B.data;while((B=B.next)!==null)Z+=J+B.data;return Z}concat(J){if(this.length===0)return Y.alloc(0);let B=Y.allocUnsafe(J>>>0),Z=this.head,j=0;while(Z)q(B,Z.data,j),j+=Z.data.length,Z=Z.next;return B}consume(J,B){let Z=this.head.data;if(J<Z.length){let j=Z.slice(0,J);return this.head.data=Z.slice(J),j}if(J===Z.length)return this.shift();return B?this._getString(J):this._getBuffer(J)}first(){return this.head.data}*[X](){for(let J=this.head;J;J=J.next)yield J.data}_getString(J){let B="",Z=this.head,j=0;do{let P=Z.data;if(J>P.length)B+=P,J-=P.length;else{if(J===P.length)if(B+=P,++j,Z.next)this.head=Z.next;else this.head=this.tail=null;else B+=U(P,0,J),this.head=Z,Z.data=U(P,J);break}++j}while((Z=Z.next)!==null);return this.length-=j,B}_getBuffer(J){let B=Y.allocUnsafe(J),Z=J,j=this.head,P=0;do{let g=j.data;if(J>g.length)q(B,g,Z-J),J-=g.length;else{if(J===g.length)if(q(B,g,Z-J),++P,j.next)this.head=j.next;else this.head=this.tail=null;else q(B,new V(g.buffer,g.byteOffset,J),Z-J),this.head=j,j.data=g.slice(J);break}++P}while((j=j.next)!==null);return this.length-=P,B}[Symbol.for("nodejs.util.inspect.custom")](J,B){return K(this,{...B,depth:0,customInspect:!1})}}}),D6=I0((Q,$)=>{var{MathFloor:U,NumberIsInteger:X}=O0(),{validateInteger:q}=l1(),{ERR_INVALID_ARG_VALUE:V}=h0().codes,Y=16384,K=16;function G(j,P,g){return j.highWaterMark!=null?j.highWaterMark:P?j[g]:null}function J(j){return j?K:Y}function B(j,P){if(q(P,"value",0),j)K=P;else Y=P}function Z(j,P,g,y){let k=G(P,y,g);if(k!=null){if(!X(k)||k<0){let M=y?`options.${g}`:"options.highWaterMark";throw new V(M,k)}return U(k)}return J(j.objectMode)}$.exports={getHighWaterMark:Z,getDefaultHighWaterMark:J,setDefaultHighWaterMark:B}}),NX=I0((Q,$)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var U=(C2(),o0(L2)),X=U.Buffer;function q(Y,K){for(var G in Y)K[G]=Y[G]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)$.exports=U;else q(U,Q),Q.Buffer=V;function V(Y,K,G){return X(Y,K,G)}V.prototype=Object.create(X.prototype),q(X,V),V.from=function(Y,K,G){if(typeof Y==="number")throw new TypeError("Argument must not be a number");return X(Y,K,G)},V.alloc=function(Y,K,G){if(typeof Y!=="number")throw new TypeError("Argument must be a number");var J=X(Y);if(K!==void 0)if(typeof G==="string")J.fill(K,G);else J.fill(K);else J.fill(0);return J},V.allocUnsafe=function(Y){if(typeof Y!=="number")throw new TypeError("Argument must be a number");return X(Y)},V.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw new TypeError("Argument must be a number");return U.SlowBuffer(Y)}}),DX=I0((Q)=>{var $=NX().Buffer,U=$.isEncoding||function(w){switch(w=""+w,w&&w.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 X(w){if(!w)return"utf8";var I;while(!0)switch(w){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 w;default:if(I)return;w=(""+w).toLowerCase(),I=!0}}function q(w){var I=X(w);if(typeof I!=="string"&&($.isEncoding===U||!U(w)))throw new Error("Unknown encoding: "+w);return I||w}Q.StringDecoder=V;function V(w){this.encoding=q(w);var I;switch(this.encoding){case"utf16le":this.text=j,this.end=P,I=4;break;case"utf8":this.fillLast=J,I=4;break;case"base64":this.text=g,this.end=y,I=3;break;default:this.write=k,this.end=M;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$.allocUnsafe(I)}V.prototype.write=function(w){if(w.length===0)return"";var I,F;if(this.lastNeed){if(I=this.fillLast(w),I===void 0)return"";F=this.lastNeed,this.lastNeed=0}else F=0;if(F<w.length)return I?I+this.text(w,F):this.text(w,F);return I||""},V.prototype.end=Z,V.prototype.text=B,V.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length};function Y(w){if(w<=127)return 0;else if(w>>5===6)return 2;else if(w>>4===14)return 3;else if(w>>3===30)return 4;return w>>6===2?-1:-2}function K(w,I,F){var L=I.length-1;if(L<F)return 0;var _=Y(I[L]);if(_>=0){if(_>0)w.lastNeed=_-1;return _}if(--L<F||_===-2)return 0;if(_=Y(I[L]),_>=0){if(_>0)w.lastNeed=_-2;return _}if(--L<F||_===-2)return 0;if(_=Y(I[L]),_>=0){if(_>0)if(_===2)_=0;else w.lastNeed=_-3;return _}return 0}function G(w,I,F){if((I[0]&192)!==128)return w.lastNeed=0,"�";if(w.lastNeed>1&&I.length>1){if((I[1]&192)!==128)return w.lastNeed=1,"�";if(w.lastNeed>2&&I.length>2){if((I[2]&192)!==128)return w.lastNeed=2,"�"}}}function J(w){var I=this.lastTotal-this.lastNeed,F=G(this,w,I);if(F!==void 0)return F;if(this.lastNeed<=w.length)return w.copy(this.lastChar,I,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,I,0,w.length),this.lastNeed-=w.length}function B(w,I){var F=K(this,w,I);if(!this.lastNeed)return w.toString("utf8",I);this.lastTotal=F;var L=w.length-(F-this.lastNeed);return w.copy(this.lastChar,0,L),w.toString("utf8",I,L)}function Z(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed)return I+"�";return I}function j(w,I){if((w.length-I)%2===0){var F=w.toString("utf16le",I);if(F){var L=F.charCodeAt(F.length-1);if(L>=55296&&L<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],F.slice(0,-1)}return F}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",I,w.length-1)}function P(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed){var F=this.lastTotal-this.lastNeed;return I+this.lastChar.toString("utf16le",0,F)}return I}function g(w,I){var F=(w.length-I)%3;if(F===0)return w.toString("base64",I);if(this.lastNeed=3-F,this.lastTotal=3,F===1)this.lastChar[0]=w[w.length-1];else this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1];return w.toString("base64",I,w.length-F)}function y(w){var I=w&&w.length?this.write(w):"";if(this.lastNeed)return I+this.lastChar.toString("base64",0,3-this.lastNeed);return I}function k(w){return w.toString(this.encoding)}function M(w){return w&&w.length?this.write(w):""}}),jQ=I0((Q,$)=>{var U=t2(),{PromisePrototypeThen:X,SymbolAsyncIterator:q,SymbolIterator:V}=O0(),{Buffer:Y}=(C2(),o0(L2)),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_NULL_VALUES:G}=h0().codes;function J(B,Z,j){let P;if(typeof Z==="string"||Z instanceof Y)return new B({objectMode:!0,...j,read(){this.push(Z),this.push(null)}});let g;if(Z&&Z[q])g=!0,P=Z[q]();else if(Z&&Z[V])g=!1,P=Z[V]();else throw new K("iterable",["Iterable"],Z);let y=new B({objectMode:!0,highWaterMark:1,...j}),k=!1;y._read=function(){if(!k)k=!0,w()},y._destroy=function(I,F){X(M(I),()=>U.nextTick(F,I),(L)=>U.nextTick(F,L||I))};async function M(I){let F=I!==void 0&&I!==null,L=typeof P.throw==="function";if(F&&L){let{value:_,done:A}=await P.throw(I);if(await _,A)return}if(typeof P.return==="function"){let{value:_}=await P.return();await _}}async function w(){for(;;){try{let{value:I,done:F}=g?await P.next():P.next();if(F)y.push(null);else{let L=I&&typeof I.then==="function"?await I:I;if(L===null)throw k=!1,new G;else if(y.push(L))continue;else k=!1}}catch(I){y.destroy(I)}break}}return y}$.exports=J}),A6=I0((Q,$)=>{var U=t2(),{ArrayPrototypeIndexOf:X,NumberIsInteger:q,NumberIsNaN:V,NumberParseInt:Y,ObjectDefineProperties:K,ObjectKeys:G,ObjectSetPrototypeOf:J,Promise:B,SafeSet:Z,SymbolAsyncDispose:j,SymbolAsyncIterator:P,Symbol:g}=O0();$.exports=l,l.ReadableState=$0;var{EventEmitter:y}=(m1(),o0(p1)),{Stream:k,prependListener:M}=h8(),{Buffer:w}=(C2(),o0(L2)),{addAbortSignal:I}=N6(),F=k2(),L=c0().debuglog("stream",(W)=>{L=W}),_=OX(),A=Z1(),{getHighWaterMark:i,getDefaultHighWaterMark:E}=D6(),{aggregateTwoErrors:O,codes:{ERR_INVALID_ARG_TYPE:C,ERR_METHOD_NOT_IMPLEMENTED:x,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:v,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:T},AbortError:n}=h0(),{validateObject:e}=l1(),X0=g("kPaused"),{StringDecoder:W0}=DX(),u=jQ();J(l.prototype,k.prototype),J(l,k);var Y0=()=>{},{errorOrDestroy:H}=A,m=1,U0=2,b=4,V0=8,B0=16,Z0=32,z0=64,c=128,p=256,Q0=512,w0=1024,G0=2048,N=4096,S=8192,f=16384,r=32768,s=65536,o=131072,D=262144;function d(W){return{enumerable:!1,get(){return(this.state&W)!==0},set(z){if(z)this.state|=W;else this.state&=~W}}}K($0.prototype,{objectMode:d(m),ended:d(U0),endEmitted:d(b),reading:d(V0),constructed:d(B0),sync:d(Z0),needReadable:d(z0),emittedReadable:d(c),readableListening:d(p),resumeScheduled:d(Q0),errorEmitted:d(w0),emitClose:d(G0),autoDestroy:d(N),destroyed:d(S),closed:d(f),closeEmitted:d(r),multiAwaitDrain:d(s),readingMore:d(o),dataEmitted:d(D)});function $0(W,z,a){if(typeof a!=="boolean")a=z instanceof O2();if(this.state=G0|N|B0|Z0,W&&W.objectMode)this.state|=m;if(a&&W&&W.readableObjectMode)this.state|=m;if(this.highWaterMark=W?i(this,W,"readableHighWaterMark",a):E(!1),this.buffer=new _,this.length=0,this.pipes=[],this.flowing=null,this[X0]=null,W&&W.emitClose===!1)this.state&=~G0;if(W&&W.autoDestroy===!1)this.state&=~N;if(this.errored=null,this.defaultEncoding=W&&W.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,W&&W.encoding)this.decoder=new W0(W.encoding),this.encoding=W.encoding}function l(W){if(!(this instanceof l))return new l(W);let z=this instanceof O2();if(this._readableState=new $0(W,this,z),W){if(typeof W.read==="function")this._read=W.read;if(typeof W.destroy==="function")this._destroy=W.destroy;if(typeof W.construct==="function")this._construct=W.construct;if(W.signal&&!z)I(W.signal,this)}k.call(this,W),A.construct(this,()=>{if(this._readableState.needReadable)W1(this,this._readableState)})}l.prototype.destroy=A.destroy,l.prototype._undestroy=A.undestroy,l.prototype._destroy=function(W,z){z(W)},l.prototype[y.captureRejectionSymbol]=function(W){this.destroy(W)},l.prototype[j]=function(){let W;if(!this.destroyed)W=this.readableEnded?null:new n,this.destroy(W);return new B((z,a)=>F(this,(t)=>t&&t!==W?a(t):z(null)))},l.prototype.push=function(W,z){return K0(this,W,z,!1)},l.prototype.unshift=function(W,z){return K0(this,W,z,!0)};function K0(W,z,a,t){L("readableAddChunk",z);let q0=W._readableState,y0;if((q0.state&m)===0){if(typeof z==="string"){if(a=a||q0.defaultEncoding,q0.encoding!==a)if(t&&q0.encoding)z=w.from(z,a).toString(q0.encoding);else z=w.from(z,a),a=""}else if(z instanceof w)a="";else if(k._isUint8Array(z))z=k._uint8ArrayToBuffer(z),a="";else if(z!=null)y0=new C("chunk",["string","Buffer","Uint8Array"],z)}if(y0)H(W,y0);else if(z===null)q0.state&=~V0,v0(W,q0);else if((q0.state&m)!==0||z&&z.length>0)if(t)if((q0.state&b)!==0)H(W,new T);else if(q0.destroyed||q0.errored)return!1;else d0(W,q0,z,!0);else if(q0.ended)H(W,new v);else if(q0.destroyed||q0.errored)return!1;else if(q0.state&=~V0,q0.decoder&&!a)if(z=q0.decoder.write(z),q0.objectMode||z.length!==0)d0(W,q0,z,!1);else W1(W,q0);else d0(W,q0,z,!1);else if(!t)q0.state&=~V0,W1(W,q0);return!q0.ended&&(q0.length<q0.highWaterMark||q0.length===0)}function d0(W,z,a,t){if(z.flowing&&z.length===0&&!z.sync&&W.listenerCount("data")>0){if((z.state&s)!==0)z.awaitDrainWriters.clear();else z.awaitDrainWriters=null;z.dataEmitted=!0,W.emit("data",a)}else{if(z.length+=z.objectMode?1:a.length,t)z.buffer.unshift(a);else z.buffer.push(a);if((z.state&z0)!==0)b0(W)}W1(W,z)}l.prototype.isPaused=function(){let W=this._readableState;return W[X0]===!0||W.flowing===!1},l.prototype.setEncoding=function(W){let z=new W0(W);this._readableState.decoder=z,this._readableState.encoding=this._readableState.decoder.encoding;let a=this._readableState.buffer,t="";for(let q0 of a)t+=z.write(q0);if(a.clear(),t!=="")a.push(t);return this._readableState.length=t.length,this};var D0=1073741824;function R0(W){if(W>D0)throw new R("size","<= 1GiB",W);else W--,W|=W>>>1,W|=W>>>2,W|=W>>>4,W|=W>>>8,W|=W>>>16,W++;return W}function l2(W,z){if(W<=0||z.length===0&&z.ended)return 0;if((z.state&m)!==0)return 1;if(V(W)){if(z.flowing&&z.length)return z.buffer.first().length;return z.length}if(W<=z.length)return W;return z.ended?z.length:0}l.prototype.read=function(W){if(L("read",W),W===void 0)W=NaN;else if(!q(W))W=Y(W,10);let z=this._readableState,a=W;if(W>z.highWaterMark)z.highWaterMark=R0(W);if(W!==0)z.state&=~c;if(W===0&&z.needReadable&&((z.highWaterMark!==0?z.length>=z.highWaterMark:z.length>0)||z.ended)){if(L("read: emitReadable",z.length,z.ended),z.length===0&&z.ended)H8(this);else b0(this);return null}if(W=l2(W,z),W===0&&z.ended){if(z.length===0)H8(this);return null}let t=(z.state&z0)!==0;if(L("need readable",t),z.length===0||z.length-W<z.highWaterMark)t=!0,L("length less than watermark",t);if(z.ended||z.reading||z.destroyed||z.errored||!z.constructed)t=!1,L("reading, ended or constructing",t);else if(t){if(L("do read"),z.state|=V0|Z0,z.length===0)z.state|=z0;try{this._read(z.highWaterMark)}catch(y0){H(this,y0)}if(z.state&=~Z0,!z.reading)W=l2(a,z)}let q0;if(W>0)q0=H4(W,z);else q0=null;if(q0===null)z.needReadable=z.length<=z.highWaterMark,W=0;else if(z.length-=W,z.multiAwaitDrain)z.awaitDrainWriters.clear();else z.awaitDrainWriters=null;if(z.length===0){if(!z.ended)z.needReadable=!0;if(a!==W&&z.ended)H8(this)}if(q0!==null&&!z.errorEmitted&&!z.closeEmitted)z.dataEmitted=!0,this.emit("data",q0);return q0};function v0(W,z){if(L("onEofChunk"),z.ended)return;if(z.decoder){let a=z.decoder.end();if(a&&a.length)z.buffer.push(a),z.length+=z.objectMode?1:a.length}if(z.ended=!0,z.sync)b0(W);else z.needReadable=!1,z.emittedReadable=!0,w1(W)}function b0(W){let z=W._readableState;if(L("emitReadable",z.needReadable,z.emittedReadable),z.needReadable=!1,!z.emittedReadable)L("emitReadable",z.flowing),z.emittedReadable=!0,U.nextTick(w1,W)}function w1(W){let z=W._readableState;if(L("emitReadable_",z.destroyed,z.length,z.ended),!z.destroyed&&!z.errored&&(z.length||z.ended))W.emit("readable"),z.emittedReadable=!1;z.needReadable=!z.flowing&&!z.ended&&z.length<=z.highWaterMark,I4(W)}function W1(W,z){if(!z.readingMore&&z.constructed)z.readingMore=!0,U.nextTick(Y2,W,z)}function Y2(W,z){while(!z.reading&&!z.ended&&(z.length<z.highWaterMark||z.flowing&&z.length===0)){let a=z.length;if(L("maybeReadMore read 0"),W.read(0),a===z.length)break}z.readingMore=!1}l.prototype._read=function(W){throw new x("_read()")},l.prototype.pipe=function(W,z){let a=this,t=this._readableState;if(t.pipes.length===1){if(!t.multiAwaitDrain)t.multiAwaitDrain=!0,t.awaitDrainWriters=new Z(t.awaitDrainWriters?[t.awaitDrainWriters]:[])}t.pipes.push(W),L("pipe count=%d opts=%j",t.pipes.length,z);let q0=(!z||z.end!==!1)&&W!==U.stdout&&W!==U.stderr?n0:h1;if(t.endEmitted)U.nextTick(q0);else a.once("end",q0);W.on("unpipe",y0);function y0(n2,M2){if(L("onunpipe"),n2===a){if(M2&&M2.hasUnpiped===!1)M2.hasUnpiped=!0,OU()}}function n0(){L("onend"),W.end()}let i2,C4=!1;function OU(){if(L("cleanup"),W.removeListener("close",O8),W.removeListener("finish",N8),i2)W.removeListener("drain",i2);if(W.removeListener("error",C8),W.removeListener("unpipe",y0),a.removeListener("end",n0),a.removeListener("end",h1),a.removeListener("data",N4),C4=!0,i2&&t.awaitDrainWriters&&(!W._writableState||W._writableState.needDrain))i2()}function O4(){if(!C4){if(t.pipes.length===1&&t.pipes[0]===W)L("false write response, pause",0),t.awaitDrainWriters=W,t.multiAwaitDrain=!1;else if(t.pipes.length>1&&t.pipes.includes(W))L("false write response, pause",t.awaitDrainWriters.size),t.awaitDrainWriters.add(W);a.pause()}if(!i2)i2=PU(a,W),W.on("drain",i2)}a.on("data",N4);function N4(n2){L("ondata");let M2=W.write(n2);if(L("dest.write",M2),M2===!1)O4()}function C8(n2){if(L("onerror",n2),h1(),W.removeListener("error",C8),W.listenerCount("error")===0){let M2=W._writableState||W._readableState;if(M2&&!M2.errorEmitted)H(W,n2);else W.emit("error",n2)}}M(W,"error",C8);function O8(){W.removeListener("finish",N8),h1()}W.once("close",O8);function N8(){L("onfinish"),W.removeListener("close",O8),h1()}W.once("finish",N8);function h1(){L("unpipe"),a.unpipe(W)}if(W.emit("pipe",a),W.writableNeedDrain===!0)O4();else if(!t.flowing)L("pipe resume"),a.resume();return W};function PU(W,z){return function a(){let t=W._readableState;if(t.awaitDrainWriters===z)L("pipeOnDrain",1),t.awaitDrainWriters=null;else if(t.multiAwaitDrain)L("pipeOnDrain",t.awaitDrainWriters.size),t.awaitDrainWriters.delete(z);if((!t.awaitDrainWriters||t.awaitDrainWriters.size===0)&&W.listenerCount("data"))W.resume()}}l.prototype.unpipe=function(W){let z=this._readableState,a={hasUnpiped:!1};if(z.pipes.length===0)return this;if(!W){let q0=z.pipes;z.pipes=[],this.pause();for(let y0=0;y0<q0.length;y0++)q0[y0].emit("unpipe",this,{hasUnpiped:!1});return this}let t=X(z.pipes,W);if(t===-1)return this;if(z.pipes.splice(t,1),z.pipes.length===0)this.pause();return W.emit("unpipe",this,a),this},l.prototype.on=function(W,z){let a=k.prototype.on.call(this,W,z),t=this._readableState;if(W==="data"){if(t.readableListening=this.listenerCount("readable")>0,t.flowing!==!1)this.resume()}else if(W==="readable"){if(!t.endEmitted&&!t.readableListening){if(t.readableListening=t.needReadable=!0,t.flowing=!1,t.emittedReadable=!1,L("on readable",t.length,t.reading),t.length)b0(this);else if(!t.reading)U.nextTick(FU,this)}}return a},l.prototype.addListener=l.prototype.on,l.prototype.removeListener=function(W,z){let a=k.prototype.removeListener.call(this,W,z);if(W==="readable")U.nextTick(F4,this);return a},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(W){let z=k.prototype.removeAllListeners.apply(this,arguments);if(W==="readable"||W===void 0)U.nextTick(F4,this);return z};function F4(W){let z=W._readableState;if(z.readableListening=W.listenerCount("readable")>0,z.resumeScheduled&&z[X0]===!1)z.flowing=!0;else if(W.listenerCount("data")>0)W.resume();else if(!z.readableListening)z.flowing=null}function FU(W){L("readable nexttick read 0"),W.read(0)}l.prototype.resume=function(){let W=this._readableState;if(!W.flowing)L("resume"),W.flowing=!W.readableListening,IU(this,W);return W[X0]=!1,this};function IU(W,z){if(!z.resumeScheduled)z.resumeScheduled=!0,U.nextTick(MU,W,z)}function MU(W,z){if(L("resume",z.reading),!z.reading)W.read(0);if(z.resumeScheduled=!1,W.emit("resume"),I4(W),z.flowing&&!z.reading)W.read(0)}l.prototype.pause=function(){if(L("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)L("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[X0]=!0,this};function I4(W){let z=W._readableState;L("flow",z.flowing);while(z.flowing&&W.read()!==null);}l.prototype.wrap=function(W){let z=!1;W.on("data",(t)=>{if(!this.push(t)&&W.pause)z=!0,W.pause()}),W.on("end",()=>{this.push(null)}),W.on("error",(t)=>{H(this,t)}),W.on("close",()=>{this.destroy()}),W.on("destroy",()=>{this.destroy()}),this._read=()=>{if(z&&W.resume)z=!1,W.resume()};let a=G(W);for(let t=1;t<a.length;t++){let q0=a[t];if(this[q0]===void 0&&typeof W[q0]==="function")this[q0]=W[q0].bind(W)}return this},l.prototype[P]=function(){return M4(this)},l.prototype.iterator=function(W){if(W!==void 0)e(W,"options");return M4(this,W)};function M4(W,z){if(typeof W.read!=="function")W=l.wrap(W,{objectMode:!0});let a=HU(W,z);return a.stream=W,a}async function*HU(W,z){let a=Y0;function t(n0){if(this===W)a(),a=Y0;else a=n0}W.on("readable",t);let q0,y0=F(W,{writable:!1},(n0)=>{q0=n0?O(q0,n0):null,a(),a=Y0});try{while(!0){let n0=W.destroyed?null:W.read();if(n0!==null)yield n0;else if(q0)throw q0;else if(q0===null)return;else await new B(t)}}catch(n0){throw q0=O(q0,n0),q0}finally{if((q0||(z===null||z===void 0?void 0:z.destroyOnReturn)!==!1)&&(q0===void 0||W._readableState.autoDestroy))A.destroyer(W,null);else W.off("readable",t),y0()}}K(l.prototype,{readable:{__proto__:null,get(){let W=this._readableState;return!!W&&W.readable!==!1&&!W.destroyed&&!W.errorEmitted&&!W.endEmitted},set(W){if(this._readableState)this._readableState.readable=!!W}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(W){if(this._readableState)this._readableState.flowing=W}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(W){if(!this._readableState)return;this._readableState.destroyed=W}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),K($0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[X0]!==!1},set(W){this[X0]=!!W}}}),l._fromList=H4;function H4(W,z){if(z.length===0)return null;let a;if(z.objectMode)a=z.buffer.shift();else if(!W||W>=z.length){if(z.decoder)a=z.buffer.join("");else if(z.buffer.length===1)a=z.buffer.first();else a=z.buffer.concat(z.length);z.buffer.clear()}else a=z.buffer.consume(W,z.decoder);return a}function H8(W){let z=W._readableState;if(L("endReadable",z.endEmitted),!z.endEmitted)z.ended=!0,U.nextTick(LU,z,W)}function LU(W,z){if(L("endReadableNT",W.endEmitted,W.length),!W.errored&&!W.closeEmitted&&!W.endEmitted&&W.length===0){if(W.endEmitted=!0,z.emit("end"),z.writable&&z.allowHalfOpen===!1)U.nextTick(CU,z);else if(W.autoDestroy){let a=z._writableState;if(!a||a.autoDestroy&&(a.finished||a.writable===!1))z.destroy()}}}function CU(W){if(W.writable&&!W.writableEnded&&!W.destroyed)W.end()}l.from=function(W,z){return u(l,W,z)};var L8;function L4(){if(L8===void 0)L8={};return L8}l.fromWeb=function(W,z){return L4().newStreamReadableFromReadableStream(W,z)},l.toWeb=function(W,z){return L4().newReadableStreamFromStreamReadable(W,z)},l.wrap=function(W,z){var a,t;return new l({objectMode:(a=(t=W.readableObjectMode)!==null&&t!==void 0?t:W.objectMode)!==null&&a!==void 0?a:!0,...z,destroy(q0,y0){A.destroyer(W,q0),y0(q0)}}).wrap(W)}}),_8=I0((Q,$)=>{var U=t2(),{ArrayPrototypeSlice:X,Error:q,FunctionPrototypeSymbolHasInstance:V,ObjectDefineProperty:Y,ObjectDefineProperties:K,ObjectSetPrototypeOf:G,StringPrototypeToLowerCase:J,Symbol:B,SymbolHasInstance:Z}=O0();$.exports=e,e.WritableState=T;var{EventEmitter:j}=(m1(),o0(p1)),P=h8().Stream,{Buffer:g}=(C2(),o0(L2)),y=Z1(),{addAbortSignal:k}=N6(),{getHighWaterMark:M,getDefaultHighWaterMark:w}=D6(),{ERR_INVALID_ARG_TYPE:I,ERR_METHOD_NOT_IMPLEMENTED:F,ERR_MULTIPLE_CALLBACK:L,ERR_STREAM_CANNOT_PIPE:_,ERR_STREAM_DESTROYED:A,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:E,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:C}=h0().codes,{errorOrDestroy:x}=y;G(e.prototype,P.prototype),G(e,P);function R(){}var v=B("kOnFinished");function T(N,S,f){if(typeof f!=="boolean")f=S instanceof O2();if(this.objectMode=!!(N&&N.objectMode),f)this.objectMode=this.objectMode||!!(N&&N.writableObjectMode);this.highWaterMark=N?M(this,N,"writableHighWaterMark",f):w(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(N&&N.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=N&&N.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=H.bind(void 0,S),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,n(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!N||N.emitClose!==!1,this.autoDestroy=!N||N.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[v]=[]}function n(N){N.buffered=[],N.bufferedIndex=0,N.allBuffers=!0,N.allNoop=!0}T.prototype.getBuffer=function N(){return X(this.buffered,this.bufferedIndex)},Y(T.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(N){let S=this instanceof O2();if(!S&&!V(e,this))return new e(N);if(this._writableState=new T(N,this,S),N){if(typeof N.write==="function")this._write=N.write;if(typeof N.writev==="function")this._writev=N.writev;if(typeof N.destroy==="function")this._destroy=N.destroy;if(typeof N.final==="function")this._final=N.final;if(typeof N.construct==="function")this._construct=N.construct;if(N.signal)k(N.signal,this)}P.call(this,N),y.construct(this,()=>{let f=this._writableState;if(!f.writing)V0(this,f);c(this,f)})}Y(e,Z,{__proto__:null,value:function(N){if(V(this,N))return!0;if(this!==e)return!1;return N&&N._writableState instanceof T}}),e.prototype.pipe=function(){x(this,new _)};function X0(N,S,f,r){let s=N._writableState;if(typeof f==="function")r=f,f=s.defaultEncoding;else{if(!f)f=s.defaultEncoding;else if(f!=="buffer"&&!g.isEncoding(f))throw new C(f);if(typeof r!=="function")r=R}if(S===null)throw new E;else if(!s.objectMode)if(typeof S==="string"){if(s.decodeStrings!==!1)S=g.from(S,f),f="buffer"}else if(S instanceof g)f="buffer";else if(P._isUint8Array(S))S=P._uint8ArrayToBuffer(S),f="buffer";else throw new I("chunk",["string","Buffer","Uint8Array"],S);let o;if(s.ending)o=new O;else if(s.destroyed)o=new A("write");if(o)return U.nextTick(r,o),x(N,o,!0),o;return s.pendingcb++,W0(N,s,S,f,r)}e.prototype.write=function(N,S,f){return X0(this,N,S,f)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let N=this._writableState;if(N.corked){if(N.corked--,!N.writing)V0(this,N)}},e.prototype.setDefaultEncoding=function N(S){if(typeof S==="string")S=J(S);if(!g.isEncoding(S))throw new C(S);return this._writableState.defaultEncoding=S,this};function W0(N,S,f,r,s){let o=S.objectMode?1:f.length;S.length+=o;let D=S.length<S.highWaterMark;if(!D)S.needDrain=!0;if(S.writing||S.corked||S.errored||!S.constructed){if(S.buffered.push({chunk:f,encoding:r,callback:s}),S.allBuffers&&r!=="buffer")S.allBuffers=!1;if(S.allNoop&&s!==R)S.allNoop=!1}else S.writelen=o,S.writecb=s,S.writing=!0,S.sync=!0,N._write(f,r,S.onwrite),S.sync=!1;return D&&!S.errored&&!S.destroyed}function u(N,S,f,r,s,o,D){if(S.writelen=r,S.writecb=D,S.writing=!0,S.sync=!0,S.destroyed)S.onwrite(new A("write"));else if(f)N._writev(s,S.onwrite);else N._write(s,o,S.onwrite);S.sync=!1}function Y0(N,S,f,r){--S.pendingcb,r(f),b(S),x(N,f)}function H(N,S){let f=N._writableState,r=f.sync,s=f.writecb;if(typeof s!=="function"){x(N,new L);return}if(f.writing=!1,f.writecb=null,f.length-=f.writelen,f.writelen=0,S){if(S.stack,!f.errored)f.errored=S;if(N._readableState&&!N._readableState.errored)N._readableState.errored=S;if(r)U.nextTick(Y0,N,f,S,s);else Y0(N,f,S,s)}else{if(f.buffered.length>f.bufferedIndex)V0(N,f);if(r)if(f.afterWriteTickInfo!==null&&f.afterWriteTickInfo.cb===s)f.afterWriteTickInfo.count++;else f.afterWriteTickInfo={count:1,cb:s,stream:N,state:f},U.nextTick(m,f.afterWriteTickInfo);else U0(N,f,1,s)}}function m({stream:N,state:S,count:f,cb:r}){return S.afterWriteTickInfo=null,U0(N,S,f,r)}function U0(N,S,f,r){if(!S.ending&&!N.destroyed&&S.length===0&&S.needDrain)S.needDrain=!1,N.emit("drain");while(f-- >0)S.pendingcb--,r();if(S.destroyed)b(S);c(N,S)}function b(N){if(N.writing)return;for(let s=N.bufferedIndex;s<N.buffered.length;++s){var S;let{chunk:o,callback:D}=N.buffered[s],d=N.objectMode?1:o.length;N.length-=d,D((S=N.errored)!==null&&S!==void 0?S:new A("write"))}let f=N[v].splice(0);for(let s=0;s<f.length;s++){var r;f[s]((r=N.errored)!==null&&r!==void 0?r:new A("end"))}n(N)}function V0(N,S){if(S.corked||S.bufferProcessing||S.destroyed||!S.constructed)return;let{buffered:f,bufferedIndex:r,objectMode:s}=S,o=f.length-r;if(!o)return;let D=r;if(S.bufferProcessing=!0,o>1&&N._writev){S.pendingcb-=o-1;let d=S.allNoop?R:(l)=>{for(let K0=D;K0<f.length;++K0)f[K0].callback(l)},$0=S.allNoop&&D===0?f:X(f,D);$0.allBuffers=S.allBuffers,u(N,S,!0,S.length,$0,"",d),n(S)}else{do{let{chunk:d,encoding:$0,callback:l}=f[D];f[D++]=null;let K0=s?1:d.length;u(N,S,!1,K0,d,$0,l)}while(D<f.length&&!S.writing);if(D===f.length)n(S);else if(D>256)f.splice(0,D),S.bufferedIndex=0;else S.bufferedIndex=D}S.bufferProcessing=!1}e.prototype._write=function(N,S,f){if(this._writev)this._writev([{chunk:N,encoding:S}],f);else throw new F("_write()")},e.prototype._writev=null,e.prototype.end=function(N,S,f){let r=this._writableState;if(typeof N==="function")f=N,N=null,S=null;else if(typeof S==="function")f=S,S=null;let s;if(N!==null&&N!==void 0){let o=X0(this,N,S);if(o instanceof q)s=o}if(r.corked)r.corked=1,this.uncork();if(s);else if(!r.errored&&!r.ending)r.ending=!0,c(this,r,!0),r.ended=!0;else if(r.finished)s=new i("end");else if(r.destroyed)s=new A("end");if(typeof f==="function")if(s||r.finished)U.nextTick(f,s);else r[v].push(f);return this};function B0(N){return N.ending&&!N.destroyed&&N.constructed&&N.length===0&&!N.errored&&N.buffered.length===0&&!N.finished&&!N.writing&&!N.errorEmitted&&!N.closeEmitted}function Z0(N,S){let f=!1;function r(s){if(f){x(N,s!==null&&s!==void 0?s:L());return}if(f=!0,S.pendingcb--,s){let o=S[v].splice(0);for(let D=0;D<o.length;D++)o[D](s);x(N,s,S.sync)}else if(B0(S))S.prefinished=!0,N.emit("prefinish"),S.pendingcb++,U.nextTick(p,N,S)}S.sync=!0,S.pendingcb++;try{N._final(r)}catch(s){r(s)}S.sync=!1}function z0(N,S){if(!S.prefinished&&!S.finalCalled)if(typeof N._final==="function"&&!S.destroyed)S.finalCalled=!0,Z0(N,S);else S.prefinished=!0,N.emit("prefinish")}function c(N,S,f){if(B0(S)){if(z0(N,S),S.pendingcb===0){if(f)S.pendingcb++,U.nextTick((r,s)=>{if(B0(s))p(r,s);else s.pendingcb--},N,S);else if(B0(S))S.pendingcb++,p(N,S)}}}function p(N,S){S.pendingcb--,S.finished=!0;let f=S[v].splice(0);for(let r=0;r<f.length;r++)f[r]();if(N.emit("finish"),S.autoDestroy){let r=N._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))N.destroy()}}K(e.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(N){if(this._writableState)this._writableState.destroyed=N}},writable:{__proto__:null,get(){let N=this._writableState;return!!N&&N.writable!==!1&&!N.destroyed&&!N.errored&&!N.ending&&!N.ended},set(N){if(this._writableState)this._writableState.writable=!!N}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let N=this._writableState;if(!N)return!1;return!N.destroyed&&!N.ending&&N.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var Q0=y.destroy;e.prototype.destroy=function(N,S){let f=this._writableState;if(!f.destroyed&&(f.bufferedIndex<f.buffered.length||f[v].length))U.nextTick(b,f);return Q0.call(this,N,S),this},e.prototype._undestroy=y.undestroy,e.prototype._destroy=function(N,S){S(N)},e.prototype[j.captureRejectionSymbol]=function(N){this.destroy(N)};var w0;function G0(){if(w0===void 0)w0={};return w0}e.fromWeb=function(N,S){return G0().newStreamWritableFromWritableStream(N,S)},e.toWeb=function(N){return G0().newWritableStreamFromStreamWritable(N)}}),AX=I0((Q,$)=>{var U=t2(),X=(C2(),o0(L2)),{isReadable:q,isWritable:V,isIterable:Y,isNodeStream:K,isReadableNodeStream:G,isWritableNodeStream:J,isDuplexNodeStream:B,isReadableStream:Z,isWritableStream:j}=N2(),P=k2(),{AbortError:g,codes:{ERR_INVALID_ARG_TYPE:y,ERR_INVALID_RETURN_VALUE:k}}=h0(),{destroyer:M}=Z1(),w=O2(),I=A6(),F=_8(),{createDeferredPromise:L}=c0(),_=jQ(),A=globalThis.Blob||X.Blob,i=typeof A!=="undefined"?function v(T){return T instanceof A}:function v(T){return!1},E=globalThis.AbortController||d1().AbortController,{FunctionPrototypeCall:O}=O0();class C extends w{constructor(v){super(v);if((v===null||v===void 0?void 0:v.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((v===null||v===void 0?void 0:v.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}$.exports=function v(T,n){if(B(T))return T;if(G(T))return R({readable:T});if(J(T))return R({writable:T});if(K(T))return R({writable:!1,readable:!1});if(Z(T))return R({readable:I.fromWeb(T)});if(j(T))return R({writable:F.fromWeb(T)});if(typeof T==="function"){let{value:X0,write:W0,final:u,destroy:Y0}=x(T);if(Y(X0))return _(C,X0,{objectMode:!0,write:W0,final:u,destroy:Y0});let H=X0===null||X0===void 0?void 0:X0.then;if(typeof H==="function"){let m,U0=O(H,X0,(b)=>{if(b!=null)throw new k("nully","body",b)},(b)=>{M(m,b)});return m=new C({objectMode:!0,readable:!1,write:W0,final(b){u(async()=>{try{await U0,U.nextTick(b,null)}catch(V0){U.nextTick(b,V0)}})},destroy:Y0})}throw new k("Iterable, AsyncIterable or AsyncFunction",n,X0)}if(i(T))return v(T.arrayBuffer());if(Y(T))return _(C,T,{objectMode:!0,writable:!1});if(Z(T===null||T===void 0?void 0:T.readable)&&j(T===null||T===void 0?void 0:T.writable))return C.fromWeb(T);if(typeof(T===null||T===void 0?void 0:T.writable)==="object"||typeof(T===null||T===void 0?void 0:T.readable)==="object"){let X0=T!==null&&T!==void 0&&T.readable?G(T===null||T===void 0?void 0:T.readable)?T===null||T===void 0?void 0:T.readable:v(T.readable):void 0,W0=T!==null&&T!==void 0&&T.writable?J(T===null||T===void 0?void 0:T.writable)?T===null||T===void 0?void 0:T.writable:v(T.writable):void 0;return R({readable:X0,writable:W0})}let e=T===null||T===void 0?void 0:T.then;if(typeof e==="function"){let X0;return O(e,T,(W0)=>{if(W0!=null)X0.push(W0);X0.push(null)},(W0)=>{M(X0,W0)}),X0=new C({objectMode:!0,writable:!1,read(){}})}throw new y(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],T)};function x(v){let{promise:T,resolve:n}=L(),e=new E,X0=e.signal;return{value:v(async function*(){while(!0){let W0=T;T=null;let{chunk:u,done:Y0,cb:H}=await W0;if(U.nextTick(H),Y0)return;if(X0.aborted)throw new g(void 0,{cause:X0.reason});({promise:T,resolve:n}=L()),yield u}}(),{signal:X0}),write(W0,u,Y0){let H=n;n=null,H({chunk:W0,done:!1,cb:Y0})},final(W0){let u=n;n=null,u({done:!0,cb:W0})},destroy(W0,u){e.abort(),u(W0)}}}function R(v){let T=v.readable&&typeof v.readable.read!=="function"?I.wrap(v.readable):v.readable,n=v.writable,e=!!q(T),X0=!!V(n),W0,u,Y0,H,m;function U0(b){let V0=H;if(H=null,V0)V0(b);else if(b)m.destroy(b)}if(m=new C({readableObjectMode:!!(T!==null&&T!==void 0&&T.readableObjectMode),writableObjectMode:!!(n!==null&&n!==void 0&&n.writableObjectMode),readable:e,writable:X0}),X0)P(n,(b)=>{if(X0=!1,b)M(T,b);U0(b)}),m._write=function(b,V0,B0){if(n.write(b,V0))B0();else W0=B0},m._final=function(b){n.end(),u=b},n.on("drain",function(){if(W0){let b=W0;W0=null,b()}}),n.on("finish",function(){if(u){let b=u;u=null,b()}});if(e)P(T,(b)=>{if(e=!1,b)M(T,b);U0(b)}),T.on("readable",function(){if(Y0){let b=Y0;Y0=null,b()}}),T.on("end",function(){m.push(null)}),m._read=function(){while(!0){let b=T.read();if(b===null){Y0=m._read;return}if(!m.push(b))return}};return m._destroy=function(b,V0){if(!b&&H!==null)b=new g;if(Y0=null,W0=null,u=null,H===null)V0(b);else H=V0,M(n,b),M(T,b)},m}}),O2=I0((Q,$)=>{var{ObjectDefineProperties:U,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:q,ObjectSetPrototypeOf:V}=O0();$.exports=G;var Y=A6(),K=_8();V(G.prototype,Y.prototype),V(G,Y);{let j=q(K.prototype);for(let P=0;P<j.length;P++){let g=j[P];if(!G.prototype[g])G.prototype[g]=K.prototype[g]}}function G(j){if(!(this instanceof G))return new G(j);if(Y.call(this,j),K.call(this,j),j){if(this.allowHalfOpen=j.allowHalfOpen!==!1,j.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(j.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}U(G.prototype,{writable:{__proto__:null,...X(K.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(K.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(K.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(K.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(K.prototype,"writableLength")},writableFinished:{__proto__:null,...X(K.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(K.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(K.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(K.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(j){if(this._readableState&&this._writableState)this._readableState.destroyed=j,this._writableState.destroyed=j}}});var J;function B(){if(J===void 0)J={};return J}G.fromWeb=function(j,P){return B().newStreamDuplexFromReadableWritablePair(j,P)},G.toWeb=function(j){return B().newReadableWritablePairFromDuplex(j)};var Z;G.from=function(j){if(!Z)Z=AX();return Z(j,"body")}}),ZQ=I0((Q,$)=>{var{ObjectSetPrototypeOf:U,Symbol:X}=O0();$.exports=G;var{ERR_METHOD_NOT_IMPLEMENTED:q}=h0().codes,V=O2(),{getHighWaterMark:Y}=D6();U(G.prototype,V.prototype),U(G,V);var K=X("kCallback");function G(Z){if(!(this instanceof G))return new G(Z);let j=Z?Y(this,Z,"readableHighWaterMark",!0):null;if(j===0)Z={...Z,highWaterMark:null,readableHighWaterMark:j,writableHighWaterMark:Z.writableHighWaterMark||0};if(V.call(this,Z),this._readableState.sync=!1,this[K]=null,Z){if(typeof Z.transform==="function")this._transform=Z.transform;if(typeof Z.flush==="function")this._flush=Z.flush}this.on("prefinish",B)}function J(Z){if(typeof this._flush==="function"&&!this.destroyed)this._flush((j,P)=>{if(j){if(Z)Z(j);else this.destroy(j);return}if(P!=null)this.push(P);if(this.push(null),Z)Z()});else if(this.push(null),Z)Z()}function B(){if(this._final!==J)J.call(this)}G.prototype._final=J,G.prototype._transform=function(Z,j,P){throw new q("_transform()")},G.prototype._write=function(Z,j,P){let g=this._readableState,y=this._writableState,k=g.length;this._transform(Z,j,(M,w)=>{if(M){P(M);return}if(w!=null)this.push(w);if(y.ended||k===g.length||g.length<g.highWaterMark)P();else this[K]=P})},G.prototype._read=function(){if(this[K]){let Z=this[K];this[K]=null,Z()}}}),PQ=I0((Q,$)=>{var{ObjectSetPrototypeOf:U}=O0();$.exports=q;var X=ZQ();U(q.prototype,X.prototype),U(q,X);function q(V){if(!(this instanceof q))return new q(V);X.call(this,V)}q.prototype._transform=function(V,Y,K){K(null,V)}}),b8=I0((Q,$)=>{var U=t2(),{ArrayIsArray:X,Promise:q,SymbolAsyncIterator:V,SymbolDispose:Y}=O0(),K=k2(),{once:G}=c0(),J=Z1(),B=O2(),{aggregateTwoErrors:Z,codes:{ERR_INVALID_ARG_TYPE:j,ERR_INVALID_RETURN_VALUE:P,ERR_MISSING_ARGS:g,ERR_STREAM_DESTROYED:y,ERR_STREAM_PREMATURE_CLOSE:k},AbortError:M}=h0(),{validateFunction:w,validateAbortSignal:I}=l1(),{isIterable:F,isReadable:L,isReadableNodeStream:_,isNodeStream:A,isTransformStream:i,isWebStream:E,isReadableStream:O,isReadableFinished:C}=N2(),x=globalThis.AbortController||d1().AbortController,R,v,T;function n(b,V0,B0){let Z0=!1;b.on("close",()=>{Z0=!0});let z0=K(b,{readable:V0,writable:B0},(c)=>{Z0=!c});return{destroy:(c)=>{if(Z0)return;Z0=!0,J.destroyer(b,c||new y("pipe"))},cleanup:z0}}function e(b){return w(b[b.length-1],"streams[stream.length - 1]"),b.pop()}function X0(b){if(F(b))return b;else if(_(b))return W0(b);throw new j("val",["Readable","Iterable","AsyncIterable"],b)}async function*W0(b){if(!v)v=A6();yield*v.prototype[V].call(b)}async function u(b,V0,B0,{end:Z0}){let z0,c=null,p=(G0)=>{if(G0)z0=G0;if(c){let N=c;c=null,N()}},Q0=()=>new q((G0,N)=>{if(z0)N(z0);else c=()=>{if(z0)N(z0);else G0()}});V0.on("drain",p);let w0=K(V0,{readable:!1},p);try{if(V0.writableNeedDrain)await Q0();for await(let G0 of b)if(!V0.write(G0))await Q0();if(Z0)V0.end(),await Q0();B0()}catch(G0){B0(z0!==G0?Z(z0,G0):G0)}finally{w0(),V0.off("drain",p)}}async function Y0(b,V0,B0,{end:Z0}){if(i(V0))V0=V0.writable;let z0=V0.getWriter();try{for await(let c of b)await z0.ready,z0.write(c).catch(()=>{});if(await z0.ready,Z0)await z0.close();B0()}catch(c){try{await z0.abort(c),B0(c)}catch(p){B0(p)}}}function H(...b){return m(b,G(e(b)))}function m(b,V0,B0){if(b.length===1&&X(b[0]))b=b[0];if(b.length<2)throw new g("streams");let Z0=new x,z0=Z0.signal,c=B0===null||B0===void 0?void 0:B0.signal,p=[];I(c,"options.signal");function Q0(){s(new M)}T=T||c0().addAbortListener;let w0;if(c)w0=T(c,Q0);let G0,N,S=[],f=0;function r(l){s(l,--f===0)}function s(l,K0){var d0;if(l&&(!G0||G0.code==="ERR_STREAM_PREMATURE_CLOSE"))G0=l;if(!G0&&!K0)return;while(S.length)S.shift()(G0);if((d0=w0)===null||d0===void 0||d0[Y](),Z0.abort(),K0){if(!G0)p.forEach((D0)=>D0());U.nextTick(V0,G0,N)}}let o;for(let l=0;l<b.length;l++){let K0=b[l],d0=l<b.length-1,D0=l>0,R0=d0||(B0===null||B0===void 0?void 0:B0.end)!==!1,l2=l===b.length-1;if(A(K0)){let v0=function(b0){if(b0&&b0.name!=="AbortError"&&b0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(b0)};var D=v0;if(R0){let{destroy:b0,cleanup:w1}=n(K0,d0,D0);if(S.push(b0),L(K0)&&l2)p.push(w1)}if(K0.on("error",v0),L(K0)&&l2)p.push(()=>{K0.removeListener("error",v0)})}if(l===0)if(typeof K0==="function"){if(o=K0({signal:z0}),!F(o))throw new P("Iterable, AsyncIterable or Stream","source",o)}else if(F(K0)||_(K0)||i(K0))o=K0;else o=B.from(K0);else if(typeof K0==="function"){if(i(o)){var d;o=X0((d=o)===null||d===void 0?void 0:d.readable)}else o=X0(o);if(o=K0(o,{signal:z0}),d0){if(!F(o,!0))throw new P("AsyncIterable",`transform[${l-1}]`,o)}else{var $0;if(!R)R=PQ();let v0=new R({objectMode:!0}),b0=($0=o)===null||$0===void 0?void 0:$0.then;if(typeof b0==="function")f++,b0.call(o,(Y2)=>{if(N=Y2,Y2!=null)v0.write(Y2);if(R0)v0.end();U.nextTick(r)},(Y2)=>{v0.destroy(Y2),U.nextTick(r,Y2)});else if(F(o,!0))f++,u(o,v0,r,{end:R0});else if(O(o)||i(o)){let Y2=o.readable||o;f++,u(Y2,v0,r,{end:R0})}else throw new P("AsyncIterable or Promise","destination",o);o=v0;let{destroy:w1,cleanup:W1}=n(o,!1,!0);if(S.push(w1),l2)p.push(W1)}}else if(A(K0)){if(_(o)){f+=2;let v0=U0(o,K0,r,{end:R0});if(L(K0)&&l2)p.push(v0)}else if(i(o)||O(o)){let v0=o.readable||o;f++,u(v0,K0,r,{end:R0})}else if(F(o))f++,u(o,K0,r,{end:R0});else throw new j("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],o);o=K0}else if(E(K0)){if(_(o))f++,Y0(X0(o),K0,r,{end:R0});else if(O(o)||F(o))f++,Y0(o,K0,r,{end:R0});else if(i(o))f++,Y0(o.readable,K0,r,{end:R0});else throw new j("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],o);o=K0}else o=B.from(K0)}if(z0!==null&&z0!==void 0&&z0.aborted||c!==null&&c!==void 0&&c.aborted)U.nextTick(Q0);return o}function U0(b,V0,B0,{end:Z0}){let z0=!1;if(V0.on("close",()=>{if(!z0)B0(new k)}),b.pipe(V0,{end:!1}),Z0){let p=function(){z0=!0,V0.end()};var c=p;if(C(b))U.nextTick(p);else b.once("end",p)}else B0();return K(b,{readable:!0,writable:!1},(p)=>{let Q0=b._readableState;if(p&&p.code==="ERR_STREAM_PREMATURE_CLOSE"&&Q0&&Q0.ended&&!Q0.errored&&!Q0.errorEmitted)b.once("end",B0).once("error",B0);else B0(p)}),K(V0,{readable:!1,writable:!0},B0)}$.exports={pipelineImpl:m,pipeline:H}}),FQ=I0((Q,$)=>{var{pipeline:U}=b8(),X=O2(),{destroyer:q}=Z1(),{isNodeStream:V,isReadable:Y,isWritable:K,isWebStream:G,isTransformStream:J,isWritableStream:B,isReadableStream:Z}=N2(),{AbortError:j,codes:{ERR_INVALID_ARG_VALUE:P,ERR_MISSING_ARGS:g}}=h0(),y=k2();$.exports=function k(...M){if(M.length===0)throw new g("streams");if(M.length===1)return X.from(M[0]);let w=[...M];if(typeof M[0]==="function")M[0]=X.from(M[0]);if(typeof M[M.length-1]==="function"){let R=M.length-1;M[R]=X.from(M[R])}for(let R=0;R<M.length;++R){if(!V(M[R])&&!G(M[R]))continue;if(R<M.length-1&&!(Y(M[R])||Z(M[R])||J(M[R])))throw new P(`streams[${R}]`,w[R],"must be readable");if(R>0&&!(K(M[R])||B(M[R])||J(M[R])))throw new P(`streams[${R}]`,w[R],"must be writable")}let I,F,L,_,A;function i(R){let v=_;if(_=null,v)v(R);else if(R)A.destroy(R);else if(!x&&!C)A.destroy()}let E=M[0],O=U(M,i),C=!!(K(E)||B(E)||J(E)),x=!!(Y(O)||Z(O)||J(O));if(A=new X({writableObjectMode:!!(E!==null&&E!==void 0&&E.writableObjectMode),readableObjectMode:!!(O!==null&&O!==void 0&&O.readableObjectMode),writable:C,readable:x}),C){if(V(E))A._write=function(v,T,n){if(E.write(v,T))n();else I=n},A._final=function(v){E.end(),F=v},E.on("drain",function(){if(I){let v=I;I=null,v()}});else if(G(E)){let v=(J(E)?E.writable:E).getWriter();A._write=async function(T,n,e){try{await v.ready,v.write(T).catch(()=>{}),e()}catch(X0){e(X0)}},A._final=async function(T){try{await v.ready,v.close().catch(()=>{}),F=T}catch(n){T(n)}}}let R=J(O)?O.readable:O;y(R,()=>{if(F){let v=F;F=null,v()}})}if(x){if(V(O))O.on("readable",function(){if(L){let R=L;L=null,R()}}),O.on("end",function(){A.push(null)}),A._read=function(){while(!0){let R=O.read();if(R===null){L=A._read;return}if(!A.push(R))return}};else if(G(O)){let R=(J(O)?O.readable:O).getReader();A._read=async function(){while(!0)try{let{value:v,done:T}=await R.read();if(!A.push(v))return;if(T){A.push(null);return}}catch{return}}}}return A._destroy=function(R,v){if(!R&&_!==null)R=new j;if(L=null,I=null,F=null,_===null)v(R);else if(_=v,V(O))q(O,R)},A}}),xX=I0((Q,$)=>{var U=globalThis.AbortController||d1().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:q,ERR_MISSING_ARGS:V,ERR_OUT_OF_RANGE:Y},AbortError:K}=h0(),{validateAbortSignal:G,validateInteger:J,validateObject:B}=l1(),Z=O0().Symbol("kWeak"),j=O0().Symbol("kResistStopPropagation"),{finished:P}=k2(),g=FQ(),{addAbortSignalNoValidate:y}=N6(),{isWritable:k,isNodeStream:M}=N2(),{deprecate:w}=c0(),{ArrayPrototypePush:I,Boolean:F,MathFloor:L,Number:_,NumberIsNaN:A,Promise:i,PromiseReject:E,PromiseResolve:O,PromisePrototypeThen:C,Symbol:x}=O0(),R=x("kEmpty"),v=x("kEof");function T(c,p){if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");if(M(c)&&!k(c))throw new X("stream",c,"must be writable");let Q0=g(this,c);if(p!==null&&p!==void 0&&p.signal)y(p.signal,Q0);return Q0}function n(c,p){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");let Q0=1;if((p===null||p===void 0?void 0:p.concurrency)!=null)Q0=L(p.concurrency);let w0=Q0-1;if((p===null||p===void 0?void 0:p.highWaterMark)!=null)w0=L(p.highWaterMark);return J(Q0,"options.concurrency",1),J(w0,"options.highWaterMark",0),w0+=Q0,async function*G0(){let N=c0().AbortSignalAny([p===null||p===void 0?void 0:p.signal].filter(F)),S=this,f=[],r={signal:N},s,o,D=!1,d=0;function $0(){D=!0,l()}function l(){d-=1,K0()}function K0(){if(o&&!D&&d<Q0&&f.length<w0)o(),o=null}async function d0(){try{for await(let D0 of S){if(D)return;if(N.aborted)throw new K;try{if(D0=c(D0,r),D0===R)continue;D0=O(D0)}catch(R0){D0=E(R0)}if(d+=1,C(D0,l,$0),f.push(D0),s)s(),s=null;if(!D&&(f.length>=w0||d>=Q0))await new i((R0)=>{o=R0})}f.push(v)}catch(D0){let R0=E(D0);C(R0,l,$0),f.push(R0)}finally{if(D=!0,s)s(),s=null}}d0();try{while(!0){while(f.length>0){let D0=await f[0];if(D0===v)return;if(N.aborted)throw new K;if(D0!==R)yield D0;f.shift(),K0()}await new i((D0)=>{s=D0})}}finally{if(D=!0,o)o(),o=null}}.call(this)}function e(c=void 0){if(c!=null)B(c,"options");if((c===null||c===void 0?void 0:c.signal)!=null)G(c.signal,"options.signal");return async function*p(){let Q0=0;for await(let G0 of this){var w0;if(c!==null&&c!==void 0&&(w0=c.signal)!==null&&w0!==void 0&&w0.aborted)throw new K({cause:c.signal.reason});yield[Q0++,G0]}}.call(this)}async function X0(c,p=void 0){for await(let Q0 of H.call(this,c,p))return!0;return!1}async function W0(c,p=void 0){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);return!await X0.call(this,async(...Q0)=>{return!await c(...Q0)},p)}async function u(c,p){for await(let Q0 of H.call(this,c,p))return Q0;return}async function Y0(c,p){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);async function Q0(w0,G0){return await c(w0,G0),R}for await(let w0 of n.call(this,Q0,p));}function H(c,p){if(typeof c!=="function")throw new q("fn",["Function","AsyncFunction"],c);async function Q0(w0,G0){if(await c(w0,G0))return w0;return R}return n.call(this,Q0,p)}class m extends V{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function U0(c,p,Q0){var w0;if(typeof c!=="function")throw new q("reducer",["Function","AsyncFunction"],c);if(Q0!=null)B(Q0,"options");if((Q0===null||Q0===void 0?void 0:Q0.signal)!=null)G(Q0.signal,"options.signal");let G0=arguments.length>1;if(Q0!==null&&Q0!==void 0&&(w0=Q0.signal)!==null&&w0!==void 0&&w0.aborted){let s=new K(void 0,{cause:Q0.signal.reason});throw this.once("error",()=>{}),await P(this.destroy(s)),s}let N=new U,S=N.signal;if(Q0!==null&&Q0!==void 0&&Q0.signal){let s={once:!0,[Z]:this,[j]:!0};Q0.signal.addEventListener("abort",()=>N.abort(),s)}let f=!1;try{for await(let s of this){var r;if(f=!0,Q0!==null&&Q0!==void 0&&(r=Q0.signal)!==null&&r!==void 0&&r.aborted)throw new K;if(!G0)p=s,G0=!0;else p=await c(p,s,{signal:S})}if(!f&&!G0)throw new m}finally{N.abort()}return p}async function b(c){if(c!=null)B(c,"options");if((c===null||c===void 0?void 0:c.signal)!=null)G(c.signal,"options.signal");let p=[];for await(let w0 of this){var Q0;if(c!==null&&c!==void 0&&(Q0=c.signal)!==null&&Q0!==void 0&&Q0.aborted)throw new K(void 0,{cause:c.signal.reason});I(p,w0)}return p}function V0(c,p){let Q0=n.call(this,c,p);return async function*w0(){for await(let G0 of Q0)yield*G0}.call(this)}function B0(c){if(c=_(c),A(c))return 0;if(c<0)throw new Y("number",">= 0",c);return c}function Z0(c,p=void 0){if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return c=B0(c),async function*Q0(){var w0;if(p!==null&&p!==void 0&&(w0=p.signal)!==null&&w0!==void 0&&w0.aborted)throw new K;for await(let N of this){var G0;if(p!==null&&p!==void 0&&(G0=p.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(c--<=0)yield N}}.call(this)}function z0(c,p=void 0){if(p!=null)B(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return c=B0(c),async function*Q0(){var w0;if(p!==null&&p!==void 0&&(w0=p.signal)!==null&&w0!==void 0&&w0.aborted)throw new K;for await(let N of this){var G0;if(p!==null&&p!==void 0&&(G0=p.signal)!==null&&G0!==void 0&&G0.aborted)throw new K;if(c-- >0)yield N;if(c<=0)return}}.call(this)}$.exports.streamReturningOperators={asIndexedPairs:w(e,"readable.asIndexedPairs will be removed in a future version."),drop:Z0,filter:H,flatMap:V0,map:n,take:z0,compose:T},$.exports.promiseReturningOperators={every:W0,forEach:Y0,reduce:U0,toArray:b,some:X0,find:u}}),IQ=I0((Q,$)=>{var{ArrayPrototypePop:U,Promise:X}=O0(),{isIterable:q,isNodeStream:V,isWebStream:Y}=N2(),{pipelineImpl:K}=b8(),{finished:G}=k2();MQ();function J(...B){return new X((Z,j)=>{let P,g,y=B[B.length-1];if(y&&typeof y==="object"&&!V(y)&&!q(y)&&!Y(y)){let k=U(B);P=k.signal,g=k.end}K(B,(k,M)=>{if(k)j(k);else Z(M)},{signal:P,end:g})})}$.exports={finished:G,pipeline:J}}),MQ=I0((Q,$)=>{var{Buffer:U}=(C2(),o0(L2)),{ObjectDefineProperty:X,ObjectKeys:q,ReflectApply:V}=O0(),{promisify:{custom:Y}}=c0(),{streamReturningOperators:K,promiseReturningOperators:G}=xX(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:J}}=h0(),B=FQ(),{setDefaultHighWaterMark:Z,getDefaultHighWaterMark:j}=D6(),{pipeline:P}=b8(),{destroyer:g}=Z1(),y=k2(),k=IQ(),M=N2(),w=$.exports=h8().Stream;w.isDestroyed=M.isDestroyed,w.isDisturbed=M.isDisturbed,w.isErrored=M.isErrored,w.isReadable=M.isReadable,w.isWritable=M.isWritable,w.Readable=A6();for(let F of q(K)){let L=function(...A){if(new.target)throw J();return w.Readable.from(V(_,this,A))},_=K[F];X(L,"name",{__proto__:null,value:_.name}),X(L,"length",{__proto__:null,value:_.length}),X(w.Readable.prototype,F,{__proto__:null,value:L,enumerable:!1,configurable:!0,writable:!0})}for(let F of q(G)){let L=function(...A){if(new.target)throw J();return V(_,this,A)},_=G[F];X(L,"name",{__proto__:null,value:_.name}),X(L,"length",{__proto__:null,value:_.length}),X(w.Readable.prototype,F,{__proto__:null,value:L,enumerable:!1,configurable:!0,writable:!0})}w.Writable=_8(),w.Duplex=O2(),w.Transform=ZQ(),w.PassThrough=PQ(),w.pipeline=P;var{addAbortSignal:I}=N6();w.addAbortSignal=I,w.finished=y,w.destroy=g,w.compose=B,w.setDefaultHighWaterMark=Z,w.getDefaultHighWaterMark=j,X(w,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return k}}),X(P,Y,{__proto__:null,enumerable:!0,get(){return k.pipeline}}),X(y,Y,{__proto__:null,enumerable:!0,get(){return k.finished}}),w.Stream=w,w._isUint8Array=function F(L){return L instanceof Uint8Array},w._uint8ArrayToBuffer=function F(L){return U.from(L.buffer,L.byteOffset,L.byteLength)}}),RX=I0((Q,$)=>{var U=x6();{let X=MQ(),q=IQ(),V=X.Readable.destroy;$.exports=X.Readable,$.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,$.exports._isUint8Array=X._isUint8Array,$.exports.isDisturbed=X.isDisturbed,$.exports.isErrored=X.isErrored,$.exports.isReadable=X.isReadable,$.exports.Readable=X.Readable,$.exports.Writable=X.Writable,$.exports.Duplex=X.Duplex,$.exports.Transform=X.Transform,$.exports.PassThrough=X.PassThrough,$.exports.addAbortSignal=X.addAbortSignal,$.exports.finished=X.finished,$.exports.destroy=X.destroy,$.exports.destroy=V,$.exports.pipeline=X.pipeline,$.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return q}}),$.exports.Stream=X.Stream}$.exports.default=$.exports});HQ.exports=RX()});var D2=J0((EX)=>{EX.base64=!0;EX.array=!0;EX.string=!0;EX.arraybuffer=typeof ArrayBuffer!=="undefined"&&typeof Uint8Array!=="undefined";EX.nodebuffer=typeof Buffer!=="undefined";EX.uint8array=typeof Uint8Array!=="undefined";if(typeof ArrayBuffer==="undefined")EX.blob=!1;else{R6=new ArrayBuffer(0);try{EX.blob=new Blob([R6],{type:"application/zip"}).size===0}catch(Q){try{c8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,T6=new c8,T6.append(R6),EX.blob=T6.getBlob("application/zip").size===0}catch($){EX.blob=!1}}}var R6,c8,T6;try{EX.nodestream=!!x6().Readable}catch(Q){EX.nodestream=!1}});var p8=J0((bX)=>{var hX=N0(),_X=D2(),B2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";bX.encode=function(Q){var $=[],U,X,q,V,Y,K,G,J=0,B=Q.length,Z=B,j=hX.getTypeOf(Q)!=="string";while(J<Q.length){if(Z=B-J,!j)U=Q.charCodeAt(J++),X=J<B?Q.charCodeAt(J++):0,q=J<B?Q.charCodeAt(J++):0;else U=Q[J++],X=J<B?Q[J++]:0,q=J<B?Q[J++]:0;V=U>>2,Y=(U&3)<<4|X>>4,K=Z>1?(X&15)<<2|q>>6:64,G=Z>2?q&63:64,$.push(B2.charAt(V)+B2.charAt(Y)+B2.charAt(K)+B2.charAt(G))}return $.join("")};bX.decode=function(Q){var $,U,X,q,V,Y,K,G=0,J=0,B="data:";if(Q.substr(0,B.length)===B)throw new Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var Z=Q.length*3/4;if(Q.charAt(Q.length-1)===B2.charAt(64))Z--;if(Q.charAt(Q.length-2)===B2.charAt(64))Z--;if(Z%1!==0)throw new Error("Invalid base64 input, bad content length.");var j;if(_X.uint8array)j=new Uint8Array(Z|0);else j=new Array(Z|0);while(G<Q.length){if(q=B2.indexOf(Q.charAt(G++)),V=B2.indexOf(Q.charAt(G++)),Y=B2.indexOf(Q.charAt(G++)),K=B2.indexOf(Q.charAt(G++)),$=q<<2|V>>4,U=(V&15)<<4|Y>>2,X=(Y&3)<<6|K,j[J++]=$,Y!==64)j[J++]=U;if(K!==64)j[J++]=X}return j}});var i1=J0((IB,LQ)=>{LQ.exports={isNode:typeof Buffer!=="undefined",newBufferFrom:function(Q,$){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,$);else{if(typeof Q==="number")throw new Error('The "data" argument must not be a number');return new Buffer(Q,$)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var $=new Buffer(Q);return $.fill(0),$}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var NQ=J0((MB,OQ)=>{var CQ=global.MutationObserver||global.WebKitMutationObserver,n1;if(CQ)S6=0,m8=new CQ(E6),k6=global.document.createTextNode(""),m8.observe(k6,{characterData:!0}),n1=function(){k6.data=S6=++S6%2};else if(!global.setImmediate&&typeof global.MessageChannel!=="undefined")g6=new global.MessageChannel,g6.port1.onmessage=E6,n1=function(){g6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))n1=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){E6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else n1=function(){setTimeout(E6,0)};var S6,m8,k6,g6,d8,o1=[];function E6(){d8=!0;var Q,$,U=o1.length;while(U){$=o1,o1=[],Q=-1;while(++Q<U)$[Q]();U=o1.length}d8=!1}OQ.exports=pX;function pX(Q){if(o1.push(Q)===1&&!d8)n1()}});var EQ=J0((HB,TQ)=>{var mX=NQ();function P1(){}var f0={},DQ=["REJECTED"],l8=["FULFILLED"],AQ=["PENDING"];TQ.exports=g2;function g2(Q){if(typeof Q!=="function")throw new TypeError("resolver must be a function");if(this.state=AQ,this.queue=[],this.outcome=void 0,Q!==P1)xQ(this,Q)}g2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var $=this.constructor;return this.then(U,X);function U(q){function V(){return q}return $.resolve(Q()).then(V)}function X(q){function V(){throw q}return $.resolve(Q()).then(V)}};g2.prototype.catch=function(Q){return this.then(null,Q)};g2.prototype.then=function(Q,$){if(typeof Q!=="function"&&this.state===l8||typeof $!=="function"&&this.state===DQ)return this;var U=new this.constructor(P1);if(this.state!==AQ){var X=this.state===l8?Q:$;i8(U,X,this.outcome)}else this.queue.push(new r1(U,Q,$));return U};function r1(Q,$,U){if(this.promise=Q,typeof $==="function")this.onFulfilled=$,this.callFulfilled=this.otherCallFulfilled;if(typeof U==="function")this.onRejected=U,this.callRejected=this.otherCallRejected}r1.prototype.callFulfilled=function(Q){f0.resolve(this.promise,Q)};r1.prototype.otherCallFulfilled=function(Q){i8(this.promise,this.onFulfilled,Q)};r1.prototype.callRejected=function(Q){f0.reject(this.promise,Q)};r1.prototype.otherCallRejected=function(Q){i8(this.promise,this.onRejected,Q)};function i8(Q,$,U){mX(function(){var X;try{X=$(U)}catch(q){return f0.reject(Q,q)}if(X===Q)f0.reject(Q,new TypeError("Cannot resolve promise with itself"));else f0.resolve(Q,X)})}f0.resolve=function(Q,$){var U=RQ(dX,$);if(U.status==="error")return f0.reject(Q,U.value);var X=U.value;if(X)xQ(Q,X);else{Q.state=l8,Q.outcome=$;var q=-1,V=Q.queue.length;while(++q<V)Q.queue[q].callFulfilled($)}return Q};f0.reject=function(Q,$){Q.state=DQ,Q.outcome=$;var U=-1,X=Q.queue.length;while(++U<X)Q.queue[U].callRejected($);return Q};function dX(Q){var $=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof $==="function")return function U(){$.apply(Q,arguments)}}function xQ(Q,$){var U=!1;function X(K){if(U)return;U=!0,f0.reject(Q,K)}function q(K){if(U)return;U=!0,f0.resolve(Q,K)}function V(){$(q,X)}var Y=RQ(V);if(Y.status==="error")X(Y.value)}function RQ(Q,$){var U={};try{U.value=Q($),U.status="success"}catch(X){U.status="error",U.value=X}return U}g2.resolve=lX;function lX(Q){if(Q instanceof this)return Q;return f0.resolve(new this(P1),Q)}g2.reject=iX;function iX(Q){var $=new this(P1);return f0.reject($,Q)}g2.all=nX;function nX(Q){var $=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var U=Q.length,X=!1;if(!U)return this.resolve([]);var q=new Array(U),V=0,Y=-1,K=new this(P1);while(++Y<U)G(Q[Y],Y);return K;function G(J,B){$.resolve(J).then(Z,function(j){if(!X)X=!0,f0.reject(K,j)});function Z(j){if(q[B]=j,++V===U&&!X)X=!0,f0.resolve(K,q)}}}g2.race=oX;function oX(Q){var $=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var U=Q.length,X=!1;if(!U)return this.resolve([]);var q=-1,V=new this(P1);while(++q<U)Y(Q[q]);return V;function Y(K){$.resolve(K).then(function(G){if(!X)X=!0,f0.resolve(V,G)},function(G){if(!X)X=!0,f0.reject(V,G)})}}});var F1=J0((LB,SQ)=>{var n8=null;if(typeof Promise!=="undefined")n8=Promise;else n8=EQ();SQ.exports={Promise:n8}});var gQ=J0((kQ)=>{(function(Q,$){if(Q.setImmediate)return;var U=1,X={},q=!1,V=Q.document,Y;function K(w){if(typeof w!=="function")w=new Function(""+w);var I=new Array(arguments.length-1);for(var F=0;F<I.length;F++)I[F]=arguments[F+1];var L={callback:w,args:I};return X[U]=L,Y(U),U++}function G(w){delete X[w]}function J(w){var{callback:I,args:F}=w;switch(F.length){case 0:I();break;case 1:I(F[0]);break;case 2:I(F[0],F[1]);break;case 3:I(F[0],F[1],F[2]);break;default:I.apply($,F);break}}function B(w){if(q)setTimeout(B,0,w);else{var I=X[w];if(I){q=!0;try{J(I)}finally{G(w),q=!1}}}}function Z(){Y=function(w){process.nextTick(function(){B(w)})}}function j(){if(Q.postMessage&&!Q.importScripts){var w=!0,I=Q.onmessage;return Q.onmessage=function(){w=!1},Q.postMessage("","*"),Q.onmessage=I,w}}function P(){var w="setImmediate$"+Math.random()+"$",I=function(F){if(F.source===Q&&typeof F.data==="string"&&F.data.indexOf(w)===0)B(+F.data.slice(w.length))};if(Q.addEventListener)Q.addEventListener("message",I,!1);else Q.attachEvent("onmessage",I);Y=function(F){Q.postMessage(w+F,"*")}}function g(){var w=new MessageChannel;w.port1.onmessage=function(I){var F=I.data;B(F)},Y=function(I){w.port2.postMessage(I)}}function y(){var w=V.documentElement;Y=function(I){var F=V.createElement("script");F.onreadystatechange=function(){B(I),F.onreadystatechange=null,w.removeChild(F),F=null},w.appendChild(F)}}function k(){Y=function(w){setTimeout(B,0,w)}}var M=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(M=M&&M.setTimeout?M:Q,{}.toString.call(Q.process)==="[object process]")Z();else if(j())P();else if(Q.MessageChannel)g();else if(V&&"onreadystatechange"in V.createElement("script"))y();else k();M.setImmediate=K,M.clearImmediate=G})(typeof self==="undefined"?typeof global==="undefined"?kQ:global:self)});var N0=J0((sX)=>{var v2=D2(),rX=p8(),I1=i1(),o8=F1();gQ();function aX(Q){var $=null;if(v2.uint8array)$=new Uint8Array(Q.length);else $=new Array(Q.length);return y6(Q,$)}sX.newBlob=function(Q,$){sX.checkSupport("blob");try{return new Blob([Q],{type:$})}catch(q){try{var U=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new U;return X.append(Q),X.getBlob($)}catch(V){throw new Error("Bug : can't construct the Blob.")}}};function a1(Q){return Q}function y6(Q,$){for(var U=0;U<Q.length;++U)$[U]=Q.charCodeAt(U)&255;return $}var v6={stringifyByChunk:function(Q,$,U){var X=[],q=0,V=Q.length;if(V<=U)return String.fromCharCode.apply(null,Q);while(q<V){if($==="array"||$==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(q,Math.min(q+U,V))));else X.push(String.fromCharCode.apply(null,Q.subarray(q,Math.min(q+U,V))));q+=U}return X.join("")},stringifyByChar:function(Q){var $="";for(var U=0;U<Q.length;U++)$+=String.fromCharCode(Q[U]);return $},applyCanBeUsed:{uint8array:function(){try{return v2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return v2.nodebuffer&&String.fromCharCode.apply(null,I1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function s1(Q){var $=65536,U=sX.getTypeOf(Q),X=!0;if(U==="uint8array")X=v6.applyCanBeUsed.uint8array;else if(U==="nodebuffer")X=v6.applyCanBeUsed.nodebuffer;if(X)while($>1)try{return v6.stringifyByChunk(Q,U,$)}catch(q){$=Math.floor($/2)}return v6.stringifyByChar(Q)}sX.applyFromCharCode=s1;function f6(Q,$){for(var U=0;U<Q.length;U++)$[U]=Q[U];return $}var y2={};y2.string={string:a1,array:function(Q){return y6(Q,new Array(Q.length))},arraybuffer:function(Q){return y2.string.uint8array(Q).buffer},uint8array:function(Q){return y6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return y6(Q,I1.allocBuffer(Q.length))}};y2.array={string:s1,array:a1,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return I1.newBufferFrom(Q)}};y2.arraybuffer={string:function(Q){return s1(new Uint8Array(Q))},array:function(Q){return f6(new Uint8Array(Q),new Array(Q.byteLength))},arraybuffer:a1,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return I1.newBufferFrom(new Uint8Array(Q))}};y2.uint8array={string:s1,array:function(Q){return f6(Q,new Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:a1,nodebuffer:function(Q){return I1.newBufferFrom(Q)}};y2.nodebuffer={string:s1,array:function(Q){return f6(Q,new Array(Q.length))},arraybuffer:function(Q){return y2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return f6(Q,new Uint8Array(Q.length))},nodebuffer:a1};sX.transformTo=function(Q,$){if(!$)$="";if(!Q)return $;sX.checkSupport(Q);var U=sX.getTypeOf($),X=y2[U][Q]($);return X};sX.resolve=function(Q){var $=Q.split("/"),U=[];for(var X=0;X<$.length;X++){var q=$[X];if(q==="."||q===""&&X!==0&&X!==$.length-1)continue;else if(q==="..")U.pop();else U.push(q)}return U.join("/")};sX.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(v2.nodebuffer&&I1.isBuffer(Q))return"nodebuffer";if(v2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(v2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};sX.checkSupport=function(Q){var $=v2[Q.toLowerCase()];if(!$)throw new Error(Q+" is not supported by this platform")};sX.MAX_VALUE_16BITS=65535;sX.MAX_VALUE_32BITS=-1;sX.pretty=function(Q){var $="",U,X;for(X=0;X<(Q||"").length;X++)U=Q.charCodeAt(X),$+="\\x"+(U<16?"0":"")+U.toString(16).toUpperCase();return $};sX.delay=function(Q,$,U){setImmediate(function(){Q.apply(U||null,$||[])})};sX.inherits=function(Q,$){var U=function(){};U.prototype=$.prototype,Q.prototype=new U};sX.extend=function(){var Q={},$,U;for($=0;$<arguments.length;$++)for(U in arguments[$])if(Object.prototype.hasOwnProperty.call(arguments[$],U)&&typeof Q[U]==="undefined")Q[U]=arguments[$][U];return Q};sX.prepareContent=function(Q,$,U,X,q){var V=o8.Promise.resolve($).then(function(Y){var K=v2.blob&&(Y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Y))!==-1);if(K&&typeof FileReader!=="undefined")return new o8.Promise(function(G,J){var B=new FileReader;B.onload=function(Z){G(Z.target.result)},B.onerror=function(Z){J(Z.target.error)},B.readAsArrayBuffer(Y)});else return Y});return V.then(function(Y){var K=sX.getTypeOf(Y);if(!K)return o8.Promise.reject(new Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(K==="arraybuffer")Y=sX.transformTo("uint8array",Y);else if(K==="string"){if(q)Y=rX.decode(Y);else if(U){if(X!==!0)Y=aX(Y)}}return Y})}});var l0=J0((NB,hQ)=>{function fQ(Q){this.name=Q||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}fQ.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,$){return this._listeners[Q].push($),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,$){if(this._listeners[Q])for(var U=0;U<this._listeners[Q].length;U++)this._listeners[Q][U].call(this,$)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var $=this;return Q.on("data",function(U){$.processChunk(U)}),Q.on("end",function(){$.end()}),Q.on("error",function(U){$.error(U)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,$){return this.extraStreamInfo[Q]=$,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};hQ.exports=fQ});var H1=J0((Wq)=>{var M1=N0(),e2=D2(),Jq=i1(),h6=l0(),t1=new Array(256);for(G2=0;G2<256;G2++)t1[G2]=G2>=252?6:G2>=248?5:G2>=240?4:G2>=224?3:G2>=192?2:1;var G2;t1[254]=t1[254]=1;var Bq=function(Q){var $,U,X,q,V,Y=Q.length,K=0;for(q=0;q<Y;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}K+=U<128?1:U<2048?2:U<65536?3:4}if(e2.uint8array)$=new Uint8Array(K);else $=new Array(K);for(V=0,q=0;V<K;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}if(U<128)$[V++]=U;else if(U<2048)$[V++]=192|U>>>6,$[V++]=128|U&63;else if(U<65536)$[V++]=224|U>>>12,$[V++]=128|U>>>6&63,$[V++]=128|U&63;else $[V++]=240|U>>>18,$[V++]=128|U>>>12&63,$[V++]=128|U>>>6&63,$[V++]=128|U&63}return $},Gq=function(Q,$){var U;if($=$||Q.length,$>Q.length)$=Q.length;U=$-1;while(U>=0&&(Q[U]&192)===128)U--;if(U<0)return $;if(U===0)return $;return U+t1[Q[U]]>$?U:$},wq=function(Q){var $,U,X,q,V=Q.length,Y=new Array(V*2);for(U=0,$=0;$<V;){if(X=Q[$++],X<128){Y[U++]=X;continue}if(q=t1[X],q>4){Y[U++]=65533,$+=q-1;continue}X&=q===2?31:q===3?15:7;while(q>1&&$<V)X=X<<6|Q[$++]&63,q--;if(q>1){Y[U++]=65533;continue}if(X<65536)Y[U++]=X;else X-=65536,Y[U++]=55296|X>>10&1023,Y[U++]=56320|X&1023}if(Y.length!==U)if(Y.subarray)Y=Y.subarray(0,U);else Y.length=U;return M1.applyFromCharCode(Y)};Wq.utf8encode=function Q($){if(e2.nodebuffer)return Jq.newBufferFrom($,"utf-8");return Bq($)};Wq.utf8decode=function Q($){if(e2.nodebuffer)return M1.transformTo("nodebuffer",$).toString("utf-8");return $=M1.transformTo(e2.uint8array?"uint8array":"array",$),wq($)};function _6(){h6.call(this,"utf-8 decode"),this.leftOver=null}M1.inherits(_6,h6);_6.prototype.processChunk=function(Q){var $=M1.transformTo(e2.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(e2.uint8array){var U=$;$=new Uint8Array(U.length+this.leftOver.length),$.set(this.leftOver,0),$.set(U,this.leftOver.length)}else $=this.leftOver.concat($);this.leftOver=null}var X=Gq($),q=$;if(X!==$.length)if(e2.uint8array)q=$.subarray(0,X),this.leftOver=$.subarray(X,$.length);else q=$.slice(0,X),this.leftOver=$.slice(X,$.length);this.push({data:Wq.utf8decode(q),meta:Q.meta})};_6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Wq.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Wq.Utf8DecodeWorker=_6;function a8(){h6.call(this,"utf-8 encode")}M1.inherits(a8,h6);a8.prototype.processChunk=function(Q){this.push({data:Wq.utf8encode(Q.data),meta:Q.meta})};Wq.Utf8EncodeWorker=a8});var pQ=J0((AB,cQ)=>{var bQ=l0(),uQ=N0();function t8(Q){bQ.call(this,"ConvertWorker to "+Q),this.destType=Q}uQ.inherits(t8,bQ);t8.prototype.processChunk=function(Q){this.push({data:uQ.transformTo(this.destType,Q.data),meta:Q.meta})};cQ.exports=t8});var lQ=J0((xB,dQ)=>{var mQ=x6().Readable,Zq=N0();Zq.inherits(e8,mQ);function e8(Q,$,U){mQ.call(this,$),this._helper=Q;var X=this;Q.on("data",function(q,V){if(!X.push(q))X._helper.pause();if(U)U(V)}).on("error",function(q){X.emit("error",q)}).on("end",function(){X.push(null)})}e8.prototype._read=function(){this._helper.resume()};dQ.exports=e8});var Q5=J0((RB,oQ)=>{var Q1=N0(),Pq=pQ(),Fq=l0(),Iq=p8(),Mq=D2(),Hq=F1(),iQ=null;if(Mq.nodestream)try{iQ=lQ()}catch(Q){}function Lq(Q,$,U){switch(Q){case"blob":return Q1.newBlob(Q1.transformTo("arraybuffer",$),U);case"base64":return Iq.encode($);default:return Q1.transformTo(Q,$)}}function Cq(Q,$){var U,X=0,q=null,V=0;for(U=0;U<$.length;U++)V+=$[U].length;switch(Q){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);case"uint8array":q=new Uint8Array(V);for(U=0;U<$.length;U++)q.set($[U],X),X+=$[U].length;return q;case"nodebuffer":return Buffer.concat($);default:throw new Error("concat : unsupported type '"+Q+"'")}}function Oq(Q,$){return new Hq.Promise(function(U,X){var q=[],V=Q._internalType,Y=Q._outputType,K=Q._mimeType;Q.on("data",function(G,J){if(q.push(G),$)$(J)}).on("error",function(G){q=[],X(G)}).on("end",function(){try{var G=Lq(Y,Cq(V,q),K);U(G)}catch(J){X(J)}q=[]}).resume()})}function nQ(Q,$,U){var X=$;switch($){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=$,this._mimeType=U,Q1.checkSupport(X),this._worker=Q.pipe(new Pq(X)),Q.lock()}catch(q){this._worker=new Fq("error"),this._worker.error(q)}}nQ.prototype={accumulate:function(Q){return Oq(this,Q)},on:function(Q,$){var U=this;if(Q==="data")this._worker.on(Q,function(X){$.call(U,X.data,X.meta)});else this._worker.on(Q,function(){Q1.delay($,arguments,U)});return this},resume:function(){return Q1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(Q1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new iQ(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};oQ.exports=nQ});var $5=J0((Nq)=>{Nq.base64=!1;Nq.binary=!1;Nq.dir=!1;Nq.createFolders=!0;Nq.date=null;Nq.compression=null;Nq.compressionOptions=null;Nq.comment=null;Nq.unixPermissions=null;Nq.dosPermissions=null});var U5=J0((EB,rQ)=>{var b6=N0(),u6=l0(),yq=16384;function L1(Q){u6.call(this,"DataWorker");var $=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function(U){if($.dataIsReady=!0,$.data=U,$.max=U&&U.length||0,$.type=b6.getTypeOf(U),!$.isPaused)$._tickAndRepeat()},function(U){$.error(U)})}b6.inherits(L1,u6);L1.prototype.cleanUp=function(){u6.prototype.cleanUp.call(this),this.data=null};L1.prototype.resume=function(){if(!u6.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,b6.delay(this._tickAndRepeat,[],this);return!0};L1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)b6.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};L1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=yq,$=null,U=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":$=this.data.substring(this.index,U);break;case"uint8array":$=this.data.subarray(this.index,U);break;case"array":case"nodebuffer":$=this.data.slice(this.index,U);break}return this.index=U,this.push({data:$,meta:{percent:this.max?this.index/this.max*100:0}})}};rQ.exports=L1});var c6=J0((SB,sQ)=>{var fq=N0();function hq(){var Q,$=[];for(var U=0;U<256;U++){Q=U;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;$[U]=Q}return $}var aQ=hq();function _q(Q,$,U,X){var q=aQ,V=X+U;Q=Q^-1;for(var Y=X;Y<V;Y++)Q=Q>>>8^q[(Q^$[Y])&255];return Q^-1}function bq(Q,$,U,X){var q=aQ,V=X+U;Q=Q^-1;for(var Y=X;Y<V;Y++)Q=Q>>>8^q[(Q^$.charCodeAt(Y))&255];return Q^-1}sQ.exports=function Q($,U){if(typeof $==="undefined"||!$.length)return 0;var X=fq.getTypeOf($)!=="string";if(X)return _q(U|0,$,$.length,0);else return bq(U|0,$,$.length,0)}});var q5=J0((kB,eQ)=>{var tQ=l0(),uq=c6(),cq=N0();function X5(){tQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}cq.inherits(X5,tQ);X5.prototype.processChunk=function(Q){this.streamInfo.crc32=uq(Q.data,this.streamInfo.crc32||0),this.push(Q)};eQ.exports=X5});var $$=J0((gB,Q$)=>{var pq=N0(),V5=l0();function Y5(Q){V5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}pq.inherits(Y5,V5);Y5.prototype.processChunk=function(Q){if(Q){var $=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=$+Q.data.length}V5.prototype.processChunk.call(this,Q)};Q$.exports=Y5});var p6=J0((vB,q$)=>{var U$=F1(),X$=U5(),mq=q5(),K5=$$();function J5(Q,$,U,X,q){this.compressedSize=Q,this.uncompressedSize=$,this.crc32=U,this.compression=X,this.compressedContent=q}J5.prototype={getContentWorker:function(){var Q=new X$(U$.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new K5("data_length")),$=this;return Q.on("end",function(){if(this.streamInfo.data_length!==$.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new X$(U$.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};J5.createWorkerFrom=function(Q,$,U){return Q.pipe(new mq).pipe(new K5("uncompressedSize")).pipe($.compressWorker(U)).pipe(new K5("compressedSize")).withStreamInfo("compression",$)};q$.exports=J5});var J$=J0((yB,K$)=>{var dq=Q5(),lq=U5(),B5=H1(),G5=p6(),V$=l0(),w5=function(Q,$,U){this.name=Q,this.dir=U.dir,this.date=U.date,this.comment=U.comment,this.unixPermissions=U.unixPermissions,this.dosPermissions=U.dosPermissions,this._data=$,this._dataBinary=U.binary,this.options={compression:U.compression,compressionOptions:U.compressionOptions}};w5.prototype={internalStream:function(Q){var $=null,U="string";try{if(!Q)throw new Error("No output type specified.");U=Q.toLowerCase();var X=U==="string"||U==="text";if(U==="binarystring"||U==="text")U="string";$=this._decompressWorker();var q=!this._dataBinary;if(q&&!X)$=$.pipe(new B5.Utf8EncodeWorker);if(!q&&X)$=$.pipe(new B5.Utf8DecodeWorker)}catch(V){$=new V$("error"),$.error(V)}return new dq($,U,"")},async:function(Q,$){return this.internalStream(Q).accumulate($)},nodeStream:function(Q,$){return this.internalStream(Q||"nodebuffer").toNodejsStream($)},_compressWorker:function(Q,$){if(this._data instanceof G5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var U=this._decompressWorker();if(!this._dataBinary)U=U.pipe(new B5.Utf8EncodeWorker);return G5.createWorkerFrom(U,Q,$)}},_decompressWorker:function(){if(this._data instanceof G5)return this._data.getContentWorker();else if(this._data instanceof V$)return this._data;else return new lq(this._data)}};var Y$=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],iq=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(e1=0;e1<Y$.length;e1++)w5.prototype[Y$[e1]]=iq;var e1;K$.exports=w5});var A2=J0((W5)=>{var aq=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";function sq(Q,$){return Object.prototype.hasOwnProperty.call(Q,$)}W5.assign=function(Q){var $=Array.prototype.slice.call(arguments,1);while($.length){var U=$.shift();if(!U)continue;if(typeof U!=="object")throw new TypeError(U+"must be non-object");for(var X in U)if(sq(U,X))Q[X]=U[X]}return Q};W5.shrinkBuf=function(Q,$){if(Q.length===$)return Q;if(Q.subarray)return Q.subarray(0,$);return Q.length=$,Q};var tq={arraySet:function(Q,$,U,X,q){if($.subarray&&Q.subarray){Q.set($.subarray(U,U+X),q);return}for(var V=0;V<X;V++)Q[q+V]=$[U+V]},flattenChunks:function(Q){var $,U,X,q,V,Y;X=0;for($=0,U=Q.length;$<U;$++)X+=Q[$].length;Y=new Uint8Array(X),q=0;for($=0,U=Q.length;$<U;$++)V=Q[$],Y.set(V,q),q+=V.length;return Y}},eq={arraySet:function(Q,$,U,X,q){for(var V=0;V<X;V++)Q[q+V]=$[U+V]},flattenChunks:function(Q){return[].concat.apply([],Q)}};W5.setTyped=function(Q){if(Q)W5.Buf8=Uint8Array,W5.Buf16=Uint16Array,W5.Buf32=Int32Array,W5.assign(W5,tq);else W5.Buf8=Array,W5.Buf16=Array,W5.Buf32=Array,W5.assign(W5,eq)};W5.setTyped(aq)});var k$=J0((CV)=>{var $V=A2(),UV=4,G$=0,w$=1,XV=2;function O1(Q){var $=Q.length;while(--$>=0)Q[$]=0}var qV=0,F$=1,VV=2,YV=3,KV=258,H5=29,V6=256,$6=V6+1+H5,C1=30,L5=19,I$=2*$6+1,$1=15,j5=16,JV=7,C5=256,M$=16,H$=17,L$=18,I5=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],m6=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],BV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],GV=512,x2=new Array(($6+2)*2);O1(x2);var Q6=new Array(C1*2);O1(Q6);var U6=new Array(GV);O1(U6);var X6=new Array(KV-YV+1);O1(X6);var O5=new Array(H5);O1(O5);var d6=new Array(C1);O1(d6);function Z5(Q,$,U,X,q){this.static_tree=Q,this.extra_bits=$,this.extra_base=U,this.elems=X,this.max_length=q,this.has_stree=Q&&Q.length}var O$,N$,D$;function P5(Q,$){this.dyn_tree=Q,this.max_code=0,this.stat_desc=$}function A$(Q){return Q<256?U6[Q]:U6[256+(Q>>>7)]}function q6(Q,$){Q.pending_buf[Q.pending++]=$&255,Q.pending_buf[Q.pending++]=$>>>8&255}function p0(Q,$,U){if(Q.bi_valid>j5-U)Q.bi_buf|=$<<Q.bi_valid&65535,q6(Q,Q.bi_buf),Q.bi_buf=$>>j5-Q.bi_valid,Q.bi_valid+=U-j5;else Q.bi_buf|=$<<Q.bi_valid&65535,Q.bi_valid+=U}function w2(Q,$,U){p0(Q,U[$*2],U[$*2+1])}function x$(Q,$){var U=0;do U|=Q&1,Q>>>=1,U<<=1;while(--$>0);return U>>>1}function wV(Q){if(Q.bi_valid===16)q6(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0;else if(Q.bi_valid>=8)Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8}function WV(Q,$){var{dyn_tree:U,max_code:X}=$,q=$.stat_desc.static_tree,V=$.stat_desc.has_stree,Y=$.stat_desc.extra_bits,K=$.stat_desc.extra_base,G=$.stat_desc.max_length,J,B,Z,j,P,g,y=0;for(j=0;j<=$1;j++)Q.bl_count[j]=0;U[Q.heap[Q.heap_max]*2+1]=0;for(J=Q.heap_max+1;J<I$;J++){if(B=Q.heap[J],j=U[U[B*2+1]*2+1]+1,j>G)j=G,y++;if(U[B*2+1]=j,B>X)continue;if(Q.bl_count[j]++,P=0,B>=K)P=Y[B-K];if(g=U[B*2],Q.opt_len+=g*(j+P),V)Q.static_len+=g*(q[B*2+1]+P)}if(y===0)return;do{j=G-1;while(Q.bl_count[j]===0)j--;Q.bl_count[j]--,Q.bl_count[j+1]+=2,Q.bl_count[G]--,y-=2}while(y>0);for(j=G;j!==0;j--){B=Q.bl_count[j];while(B!==0){if(Z=Q.heap[--J],Z>X)continue;if(U[Z*2+1]!==j)Q.opt_len+=(j-U[Z*2+1])*U[Z*2],U[Z*2+1]=j;B--}}}function R$(Q,$,U){var X=new Array($1+1),q=0,V,Y;for(V=1;V<=$1;V++)X[V]=q=q+U[V-1]<<1;for(Y=0;Y<=$;Y++){var K=Q[Y*2+1];if(K===0)continue;Q[Y*2]=x$(X[K]++,K)}}function zV(){var Q,$,U,X,q,V=new Array($1+1);U=0;for(X=0;X<H5-1;X++){O5[X]=U;for(Q=0;Q<1<<I5[X];Q++)X6[U++]=X}X6[U-1]=X,q=0;for(X=0;X<16;X++){d6[X]=q;for(Q=0;Q<1<<m6[X];Q++)U6[q++]=X}q>>=7;for(;X<C1;X++){d6[X]=q<<7;for(Q=0;Q<1<<m6[X]-7;Q++)U6[256+q++]=X}for($=0;$<=$1;$++)V[$]=0;Q=0;while(Q<=143)x2[Q*2+1]=8,Q++,V[8]++;while(Q<=255)x2[Q*2+1]=9,Q++,V[9]++;while(Q<=279)x2[Q*2+1]=7,Q++,V[7]++;while(Q<=287)x2[Q*2+1]=8,Q++,V[8]++;R$(x2,$6+1,V);for(Q=0;Q<C1;Q++)Q6[Q*2+1]=5,Q6[Q*2]=x$(Q,5);O$=new Z5(x2,I5,V6+1,$6,$1),N$=new Z5(Q6,m6,0,C1,$1),D$=new Z5(new Array(0),BV,0,L5,JV)}function T$(Q){var $;for($=0;$<$6;$++)Q.dyn_ltree[$*2]=0;for($=0;$<C1;$++)Q.dyn_dtree[$*2]=0;for($=0;$<L5;$++)Q.bl_tree[$*2]=0;Q.dyn_ltree[C5*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function E$(Q){if(Q.bi_valid>8)q6(Q,Q.bi_buf);else if(Q.bi_valid>0)Q.pending_buf[Q.pending++]=Q.bi_buf;Q.bi_buf=0,Q.bi_valid=0}function jV(Q,$,U,X){if(E$(Q),X)q6(Q,U),q6(Q,~U);$V.arraySet(Q.pending_buf,Q.window,$,U,Q.pending),Q.pending+=U}function W$(Q,$,U,X){var q=$*2,V=U*2;return Q[q]<Q[V]||Q[q]===Q[V]&&X[$]<=X[U]}function F5(Q,$,U){var X=Q.heap[U],q=U<<1;while(q<=Q.heap_len){if(q<Q.heap_len&&W$($,Q.heap[q+1],Q.heap[q],Q.depth))q++;if(W$($,X,Q.heap[q],Q.depth))break;Q.heap[U]=Q.heap[q],U=q,q<<=1}Q.heap[U]=X}function z$(Q,$,U){var X,q,V=0,Y,K;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+V*2]<<8|Q.pending_buf[Q.d_buf+V*2+1],q=Q.pending_buf[Q.l_buf+V],V++,X===0)w2(Q,q,$);else{if(Y=X6[q],w2(Q,Y+V6+1,$),K=I5[Y],K!==0)q-=O5[Y],p0(Q,q,K);if(X--,Y=A$(X),w2(Q,Y,U),K=m6[Y],K!==0)X-=d6[Y],p0(Q,X,K)}while(V<Q.last_lit);w2(Q,C5,$)}function M5(Q,$){var U=$.dyn_tree,X=$.stat_desc.static_tree,q=$.stat_desc.has_stree,V=$.stat_desc.elems,Y,K,G=-1,J;Q.heap_len=0,Q.heap_max=I$;for(Y=0;Y<V;Y++)if(U[Y*2]!==0)Q.heap[++Q.heap_len]=G=Y,Q.depth[Y]=0;else U[Y*2+1]=0;while(Q.heap_len<2)if(J=Q.heap[++Q.heap_len]=G<2?++G:0,U[J*2]=1,Q.depth[J]=0,Q.opt_len--,q)Q.static_len-=X[J*2+1];$.max_code=G;for(Y=Q.heap_len>>1;Y>=1;Y--)F5(Q,U,Y);J=V;do Y=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],F5(Q,U,1),K=Q.heap[1],Q.heap[--Q.heap_max]=Y,Q.heap[--Q.heap_max]=K,U[J*2]=U[Y*2]+U[K*2],Q.depth[J]=(Q.depth[Y]>=Q.depth[K]?Q.depth[Y]:Q.depth[K])+1,U[Y*2+1]=U[K*2+1]=J,Q.heap[1]=J++,F5(Q,U,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],WV(Q,$),R$(U,G,Q.bl_count)}function j$(Q,$,U){var X,q=-1,V,Y=$[1],K=0,G=7,J=4;if(Y===0)G=138,J=3;$[(U+1)*2+1]=65535;for(X=0;X<=U;X++){if(V=Y,Y=$[(X+1)*2+1],++K<G&&V===Y)continue;else if(K<J)Q.bl_tree[V*2]+=K;else if(V!==0){if(V!==q)Q.bl_tree[V*2]++;Q.bl_tree[M$*2]++}else if(K<=10)Q.bl_tree[H$*2]++;else Q.bl_tree[L$*2]++;if(K=0,q=V,Y===0)G=138,J=3;else if(V===Y)G=6,J=3;else G=7,J=4}}function Z$(Q,$,U){var X,q=-1,V,Y=$[1],K=0,G=7,J=4;if(Y===0)G=138,J=3;for(X=0;X<=U;X++){if(V=Y,Y=$[(X+1)*2+1],++K<G&&V===Y)continue;else if(K<J)do w2(Q,V,Q.bl_tree);while(--K!==0);else if(V!==0){if(V!==q)w2(Q,V,Q.bl_tree),K--;w2(Q,M$,Q.bl_tree),p0(Q,K-3,2)}else if(K<=10)w2(Q,H$,Q.bl_tree),p0(Q,K-3,3);else w2(Q,L$,Q.bl_tree),p0(Q,K-11,7);if(K=0,q=V,Y===0)G=138,J=3;else if(V===Y)G=6,J=3;else G=7,J=4}}function ZV(Q){var $;j$(Q,Q.dyn_ltree,Q.l_desc.max_code),j$(Q,Q.dyn_dtree,Q.d_desc.max_code),M5(Q,Q.bl_desc);for($=L5-1;$>=3;$--)if(Q.bl_tree[C$[$]*2+1]!==0)break;return Q.opt_len+=3*($+1)+5+5+4,$}function PV(Q,$,U,X){var q;p0(Q,$-257,5),p0(Q,U-1,5),p0(Q,X-4,4);for(q=0;q<X;q++)p0(Q,Q.bl_tree[C$[q]*2+1],3);Z$(Q,Q.dyn_ltree,$-1),Z$(Q,Q.dyn_dtree,U-1)}function FV(Q){var $=4093624447,U;for(U=0;U<=31;U++,$>>>=1)if($&1&&Q.dyn_ltree[U*2]!==0)return G$;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return w$;for(U=32;U<V6;U++)if(Q.dyn_ltree[U*2]!==0)return w$;return G$}var P$=!1;function IV(Q){if(!P$)zV(),P$=!0;Q.l_desc=new P5(Q.dyn_ltree,O$),Q.d_desc=new P5(Q.dyn_dtree,N$),Q.bl_desc=new P5(Q.bl_tree,D$),Q.bi_buf=0,Q.bi_valid=0,T$(Q)}function S$(Q,$,U,X){p0(Q,(qV<<1)+(X?1:0),3),jV(Q,$,U,!0)}function MV(Q){p0(Q,F$<<1,3),w2(Q,C5,x2),wV(Q)}function HV(Q,$,U,X){var q,V,Y=0;if(Q.level>0){if(Q.strm.data_type===XV)Q.strm.data_type=FV(Q);if(M5(Q,Q.l_desc),M5(Q,Q.d_desc),Y=ZV(Q),q=Q.opt_len+3+7>>>3,V=Q.static_len+3+7>>>3,V<=q)q=V}else q=V=U+5;if(U+4<=q&&$!==-1)S$(Q,$,U,X);else if(Q.strategy===UV||V===q)p0(Q,(F$<<1)+(X?1:0),3),z$(Q,x2,Q6);else p0(Q,(VV<<1)+(X?1:0),3),PV(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,Y+1),z$(Q,Q.dyn_ltree,Q.dyn_dtree);if(T$(Q),X)E$(Q)}function LV(Q,$,U){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=$>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=$&255,Q.pending_buf[Q.l_buf+Q.last_lit]=U&255,Q.last_lit++,$===0)Q.dyn_ltree[U*2]++;else Q.matches++,$--,Q.dyn_ltree[(X6[U]+V6+1)*2]++,Q.dyn_dtree[A$($)*2]++;return Q.last_lit===Q.lit_bufsize-1}CV._tr_init=IV;CV._tr_stored_block=S$;CV._tr_flush_block=HV;CV._tr_tally=LV;CV._tr_align=MV});var N5=J0((_B,g$)=>{function RV(Q,$,U,X){var q=Q&65535|0,V=Q>>>16&65535|0,Y=0;while(U!==0){Y=U>2000?2000:U,U-=Y;do q=q+$[X++]|0,V=V+q|0;while(--Y);q%=65521,V%=65521}return q|V<<16|0}g$.exports=RV});var D5=J0((bB,v$)=>{function TV(){var Q,$=[];for(var U=0;U<256;U++){Q=U;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;$[U]=Q}return $}var EV=TV();function SV(Q,$,U,X){var q=EV,V=X+U;Q^=-1;for(var Y=X;Y<V;Y++)Q=Q>>>8^q[(Q^$[Y])&255];return Q^-1}v$.exports=SV});var l6=J0((uB,y$)=>{y$.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}});var d$=J0((GY)=>{var _0=A2(),a0=k$(),b$=N5(),f2=D5(),kV=l6(),V1=0,gV=1,vV=3,c2=4,f$=5,z2=0,h$=1,s0=-2,yV=-3,A5=-5,fV=-1,hV=1,i6=2,_V=3,bV=4,uV=0,cV=2,a6=8,pV=9,mV=15,dV=8,lV=29,iV=256,R5=iV+1+lV,nV=30,oV=19,rV=2*R5+1,aV=15,P0=3,b2=258,$2=b2+P0+1,sV=32,s6=42,T5=69,n6=73,o6=91,r6=103,U1=113,K6=666,T0=1,J6=2,X1=3,A1=4,tV=3;function u2(Q,$){return Q.msg=kV[$],$}function _$(Q){return(Q<<1)-(Q>4?9:0)}function _2(Q){var $=Q.length;while(--$>=0)Q[$]=0}function h2(Q){var $=Q.state,U=$.pending;if(U>Q.avail_out)U=Q.avail_out;if(U===0)return;if(_0.arraySet(Q.output,$.pending_buf,$.pending_out,U,Q.next_out),Q.next_out+=U,$.pending_out+=U,Q.total_out+=U,Q.avail_out-=U,$.pending-=U,$.pending===0)$.pending_out=0}function S0(Q,$){a0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,$),Q.block_start=Q.strstart,h2(Q.strm)}function F0(Q,$){Q.pending_buf[Q.pending++]=$}function Y6(Q,$){Q.pending_buf[Q.pending++]=$>>>8&255,Q.pending_buf[Q.pending++]=$&255}function eV(Q,$,U,X){var q=Q.avail_in;if(q>X)q=X;if(q===0)return 0;if(Q.avail_in-=q,_0.arraySet($,Q.input,Q.next_in,q,U),Q.state.wrap===1)Q.adler=b$(Q.adler,$,q,U);else if(Q.state.wrap===2)Q.adler=f2(Q.adler,$,q,U);return Q.next_in+=q,Q.total_in+=q,q}function u$(Q,$){var{max_chain_length:U,strstart:X}=Q,q,V,Y=Q.prev_length,K=Q.nice_match,G=Q.strstart>Q.w_size-$2?Q.strstart-(Q.w_size-$2):0,J=Q.window,B=Q.w_mask,Z=Q.prev,j=Q.strstart+b2,P=J[X+Y-1],g=J[X+Y];if(Q.prev_length>=Q.good_match)U>>=2;if(K>Q.lookahead)K=Q.lookahead;do{if(q=$,J[q+Y]!==g||J[q+Y-1]!==P||J[q]!==J[X]||J[++q]!==J[X+1])continue;X+=2,q++;do;while(J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&J[++X]===J[++q]&&X<j);if(V=b2-(j-X),X=j-b2,V>Y){if(Q.match_start=$,Y=V,V>=K)break;P=J[X+Y-1],g=J[X+Y]}}while(($=Z[$&B])>G&&--U!==0);if(Y<=Q.lookahead)return Y;return Q.lookahead}function q1(Q){var $=Q.w_size,U,X,q,V,Y;do{if(V=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=$+($-$2)){_0.arraySet(Q.window,Q.window,$,$,0),Q.match_start-=$,Q.strstart-=$,Q.block_start-=$,X=Q.hash_size,U=X;do q=Q.head[--U],Q.head[U]=q>=$?q-$:0;while(--X);X=$,U=X;do q=Q.prev[--U],Q.prev[U]=q>=$?q-$:0;while(--X);V+=$}if(Q.strm.avail_in===0)break;if(X=eV(Q.strm,Q.window,Q.strstart+Q.lookahead,V),Q.lookahead+=X,Q.lookahead+Q.insert>=P0){Y=Q.strstart-Q.insert,Q.ins_h=Q.window[Y],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Y+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Y+P0-1])&Q.hash_mask,Q.prev[Y&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Y,Y++,Q.insert--,Q.lookahead+Q.insert<P0)break}}while(Q.lookahead<$2&&Q.strm.avail_in!==0)}function QY(Q,$){var U=65535;if(U>Q.pending_buf_size-5)U=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(q1(Q),Q.lookahead===0&&$===V1)return T0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+U;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,S0(Q,!1),Q.strm.avail_out===0)return T0}if(Q.strstart-Q.block_start>=Q.w_size-$2){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.strstart>Q.block_start){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return T0}function x5(Q,$){var U,X;for(;;){if(Q.lookahead<$2){if(q1(Q),Q.lookahead<$2&&$===V1)return T0;if(Q.lookahead===0)break}if(U=0,Q.lookahead>=P0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(U!==0&&Q.strstart-U<=Q.w_size-$2)Q.match_length=u$(Q,U);if(Q.match_length>=P0)if(X=a0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-P0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=P0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else X=a0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=Q.strstart<P0-1?Q.strstart:P0-1,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function N1(Q,$){var U,X,q;for(;;){if(Q.lookahead<$2){if(q1(Q),Q.lookahead<$2&&$===V1)return T0;if(Q.lookahead===0)break}if(U=0,Q.lookahead>=P0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=P0-1,U!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-U<=Q.w_size-$2){if(Q.match_length=u$(Q,U),Q.match_length<=5&&(Q.strategy===hV||Q.match_length===P0&&Q.strstart-Q.match_start>4096))Q.match_length=P0-1}if(Q.prev_length>=P0&&Q.match_length<=Q.prev_length){q=Q.strstart+Q.lookahead-P0,X=a0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-P0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=q)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+P0-1])&Q.hash_mask,U=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=P0-1,Q.strstart++,X){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}else if(Q.match_available){if(X=a0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)S0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return T0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=a0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<P0-1?Q.strstart:P0-1,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function $Y(Q,$){var U,X,q,V,Y=Q.window;for(;;){if(Q.lookahead<=b2){if(q1(Q),Q.lookahead<=b2&&$===V1)return T0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=P0&&Q.strstart>0){if(q=Q.strstart-1,X=Y[q],X===Y[++q]&&X===Y[++q]&&X===Y[++q]){V=Q.strstart+b2;do;while(X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&X===Y[++q]&&q<V);if(Q.match_length=b2-(V-q),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=P0)U=a0._tr_tally(Q,1,Q.match_length-P0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else U=a0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(U){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function UY(Q,$){var U;for(;;){if(Q.lookahead===0){if(q1(Q),Q.lookahead===0){if($===V1)return T0;break}}if(Q.match_length=0,U=a0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,U){if(S0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,$===c2){if(S0(Q,!0),Q.strm.avail_out===0)return X1;return A1}if(Q.last_lit){if(S0(Q,!1),Q.strm.avail_out===0)return T0}return J6}function W2(Q,$,U,X,q){this.good_length=Q,this.max_lazy=$,this.nice_length=U,this.max_chain=X,this.func=q}var D1;D1=[new W2(0,0,0,0,QY),new W2(4,4,8,4,x5),new W2(4,5,16,8,x5),new W2(4,6,32,32,x5),new W2(4,4,16,16,N1),new W2(8,16,32,32,N1),new W2(8,16,128,128,N1),new W2(8,32,128,256,N1),new W2(32,128,258,1024,N1),new W2(32,258,258,4096,N1)];function XY(Q){Q.window_size=2*Q.w_size,_2(Q.head),Q.max_lazy_match=D1[Q.level].max_lazy,Q.good_match=D1[Q.level].good_length,Q.nice_match=D1[Q.level].nice_length,Q.max_chain_length=D1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=P0-1,Q.match_available=0,Q.ins_h=0}function qY(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=a6,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new _0.Buf16(rV*2),this.dyn_dtree=new _0.Buf16((2*nV+1)*2),this.bl_tree=new _0.Buf16((2*oV+1)*2),_2(this.dyn_ltree),_2(this.dyn_dtree),_2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new _0.Buf16(aV+1),this.heap=new _0.Buf16(2*R5+1),_2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new _0.Buf16(2*R5+1),_2(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function c$(Q){var $;if(!Q||!Q.state)return u2(Q,s0);if(Q.total_in=Q.total_out=0,Q.data_type=cV,$=Q.state,$.pending=0,$.pending_out=0,$.wrap<0)$.wrap=-$.wrap;return $.status=$.wrap?s6:U1,Q.adler=$.wrap===2?0:1,$.last_flush=V1,a0._tr_init($),z2}function p$(Q){var $=c$(Q);if($===z2)XY(Q.state);return $}function VY(Q,$){if(!Q||!Q.state)return s0;if(Q.state.wrap!==2)return s0;return Q.state.gzhead=$,z2}function m$(Q,$,U,X,q,V){if(!Q)return s0;var Y=1;if($===fV)$=6;if(X<0)Y=0,X=-X;else if(X>15)Y=2,X-=16;if(q<1||q>pV||U!==a6||X<8||X>15||$<0||$>9||V<0||V>bV)return u2(Q,s0);if(X===8)X=9;var K=new qY;return Q.state=K,K.strm=Q,K.wrap=Y,K.gzhead=null,K.w_bits=X,K.w_size=1<<K.w_bits,K.w_mask=K.w_size-1,K.hash_bits=q+7,K.hash_size=1<<K.hash_bits,K.hash_mask=K.hash_size-1,K.hash_shift=~~((K.hash_bits+P0-1)/P0),K.window=new _0.Buf8(K.w_size*2),K.head=new _0.Buf16(K.hash_size),K.prev=new _0.Buf16(K.w_size),K.lit_bufsize=1<<q+6,K.pending_buf_size=K.lit_bufsize*4,K.pending_buf=new _0.Buf8(K.pending_buf_size),K.d_buf=1*K.lit_bufsize,K.l_buf=3*K.lit_bufsize,K.level=$,K.strategy=V,K.method=U,p$(Q)}function YY(Q,$){return m$(Q,$,a6,mV,dV,uV)}function KY(Q,$){var U,X,q,V;if(!Q||!Q.state||$>f$||$<0)return Q?u2(Q,s0):s0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===K6&&$!==c2)return u2(Q,Q.avail_out===0?A5:s0);if(X.strm=Q,U=X.last_flush,X.last_flush=$,X.status===s6)if(X.wrap===2)if(Q.adler=0,F0(X,31),F0(X,139),F0(X,8),!X.gzhead)F0(X,0),F0(X,0),F0(X,0),F0(X,0),F0(X,0),F0(X,X.level===9?2:X.strategy>=i6||X.level<2?4:0),F0(X,tV),X.status=U1;else{if(F0(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(!X.gzhead.extra?0:4)+(!X.gzhead.name?0:8)+(!X.gzhead.comment?0:16)),F0(X,X.gzhead.time&255),F0(X,X.gzhead.time>>8&255),F0(X,X.gzhead.time>>16&255),F0(X,X.gzhead.time>>24&255),F0(X,X.level===9?2:X.strategy>=i6||X.level<2?4:0),F0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)F0(X,X.gzhead.extra.length&255),F0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=f2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=T5}else{var Y=a6+(X.w_bits-8<<4)<<8,K=-1;if(X.strategy>=i6||X.level<2)K=0;else if(X.level<6)K=1;else if(X.level===6)K=2;else K=3;if(Y|=K<<6,X.strstart!==0)Y|=sV;if(Y+=31-Y%31,X.status=U1,Y6(X,Y),X.strstart!==0)Y6(X,Q.adler>>>16),Y6(X,Q.adler&65535);Q.adler=1}if(X.status===T5)if(X.gzhead.extra){q=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(h2(Q),q=X.pending,X.pending===X.pending_buf_size)break}F0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=n6}else X.status=n6;if(X.status===n6)if(X.gzhead.name){q=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(h2(Q),q=X.pending,X.pending===X.pending_buf_size){V=1;break}}if(X.gzindex<X.gzhead.name.length)V=X.gzhead.name.charCodeAt(X.gzindex++)&255;else V=0;F0(X,V)}while(V!==0);if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(V===0)X.gzindex=0,X.status=o6}else X.status=o6;if(X.status===o6)if(X.gzhead.comment){q=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(h2(Q),q=X.pending,X.pending===X.pending_buf_size){V=1;break}}if(X.gzindex<X.gzhead.comment.length)V=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else V=0;F0(X,V)}while(V!==0);if(X.gzhead.hcrc&&X.pending>q)Q.adler=f2(Q.adler,X.pending_buf,X.pending-q,q);if(V===0)X.status=r6}else X.status=r6;if(X.status===r6)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)h2(Q);if(X.pending+2<=X.pending_buf_size)F0(X,Q.adler&255),F0(X,Q.adler>>8&255),Q.adler=0,X.status=U1}else X.status=U1;if(X.pending!==0){if(h2(Q),Q.avail_out===0)return X.last_flush=-1,z2}else if(Q.avail_in===0&&_$($)<=_$(U)&&$!==c2)return u2(Q,A5);if(X.status===K6&&Q.avail_in!==0)return u2(Q,A5);if(Q.avail_in!==0||X.lookahead!==0||$!==V1&&X.status!==K6){var G=X.strategy===i6?UY(X,$):X.strategy===_V?$Y(X,$):D1[X.level].func(X,$);if(G===X1||G===A1)X.status=K6;if(G===T0||G===X1){if(Q.avail_out===0)X.last_flush=-1;return z2}if(G===J6){if($===gV)a0._tr_align(X);else if($!==f$){if(a0._tr_stored_block(X,0,0,!1),$===vV){if(_2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(h2(Q),Q.avail_out===0)return X.last_flush=-1,z2}}if($!==c2)return z2;if(X.wrap<=0)return h$;if(X.wrap===2)F0(X,Q.adler&255),F0(X,Q.adler>>8&255),F0(X,Q.adler>>16&255),F0(X,Q.adler>>24&255),F0(X,Q.total_in&255),F0(X,Q.total_in>>8&255),F0(X,Q.total_in>>16&255),F0(X,Q.total_in>>24&255);else Y6(X,Q.adler>>>16),Y6(X,Q.adler&65535);if(h2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?z2:h$}function JY(Q){var $;if(!Q||!Q.state)return s0;if($=Q.state.status,$!==s6&&$!==T5&&$!==n6&&$!==o6&&$!==r6&&$!==U1&&$!==K6)return u2(Q,s0);return Q.state=null,$===U1?u2(Q,yV):z2}function BY(Q,$){var U=$.length,X,q,V,Y,K,G,J,B;if(!Q||!Q.state)return s0;if(X=Q.state,Y=X.wrap,Y===2||Y===1&&X.status!==s6||X.lookahead)return s0;if(Y===1)Q.adler=b$(Q.adler,$,U,0);if(X.wrap=0,U>=X.w_size){if(Y===0)_2(X.head),X.strstart=0,X.block_start=0,X.insert=0;B=new _0.Buf8(X.w_size),_0.arraySet(B,$,U-X.w_size,X.w_size,0),$=B,U=X.w_size}K=Q.avail_in,G=Q.next_in,J=Q.input,Q.avail_in=U,Q.next_in=0,Q.input=$,q1(X);while(X.lookahead>=P0){q=X.strstart,V=X.lookahead-(P0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[q+P0-1])&X.hash_mask,X.prev[q&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=q,q++;while(--V);X.strstart=q,X.lookahead=P0-1,q1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=P0-1,X.match_available=0,Q.next_in=G,Q.input=J,Q.avail_in=K,X.wrap=Y,z2}GY.deflateInit=YY;GY.deflateInit2=m$;GY.deflateReset=p$;GY.deflateResetKeep=c$;GY.deflateSetHeader=VY;GY.deflate=KY;GY.deflateEnd=JY;GY.deflateSetDictionary=BY;GY.deflateInfo="pako deflate (from Nodeca project)"});var E5=J0((HY)=>{var t6=A2(),l$=!0,i$=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){l$=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){i$=!1}var B6=new t6.Buf8(256);for(j2=0;j2<256;j2++)B6[j2]=j2>=252?6:j2>=248?5:j2>=240?4:j2>=224?3:j2>=192?2:1;var j2;B6[254]=B6[254]=1;HY.string2buf=function(Q){var $,U,X,q,V,Y=Q.length,K=0;for(q=0;q<Y;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}K+=U<128?1:U<2048?2:U<65536?3:4}$=new t6.Buf8(K);for(V=0,q=0;V<K;q++){if(U=Q.charCodeAt(q),(U&64512)===55296&&q+1<Y){if(X=Q.charCodeAt(q+1),(X&64512)===56320)U=65536+(U-55296<<10)+(X-56320),q++}if(U<128)$[V++]=U;else if(U<2048)$[V++]=192|U>>>6,$[V++]=128|U&63;else if(U<65536)$[V++]=224|U>>>12,$[V++]=128|U>>>6&63,$[V++]=128|U&63;else $[V++]=240|U>>>18,$[V++]=128|U>>>12&63,$[V++]=128|U>>>6&63,$[V++]=128|U&63}return $};function n$(Q,$){if($<65534){if(Q.subarray&&i$||!Q.subarray&&l$)return String.fromCharCode.apply(null,t6.shrinkBuf(Q,$))}var U="";for(var X=0;X<$;X++)U+=String.fromCharCode(Q[X]);return U}HY.buf2binstring=function(Q){return n$(Q,Q.length)};HY.binstring2buf=function(Q){var $=new t6.Buf8(Q.length);for(var U=0,X=$.length;U<X;U++)$[U]=Q.charCodeAt(U);return $};HY.buf2string=function(Q,$){var U,X,q,V,Y=$||Q.length,K=new Array(Y*2);for(X=0,U=0;U<Y;){if(q=Q[U++],q<128){K[X++]=q;continue}if(V=B6[q],V>4){K[X++]=65533,U+=V-1;continue}q&=V===2?31:V===3?15:7;while(V>1&&U<Y)q=q<<6|Q[U++]&63,V--;if(V>1){K[X++]=65533;continue}if(q<65536)K[X++]=q;else q-=65536,K[X++]=55296|q>>10&1023,K[X++]=56320|q&1023}return n$(K,X)};HY.utf8border=function(Q,$){var U;if($=$||Q.length,$>Q.length)$=Q.length;U=$-1;while(U>=0&&(Q[U]&192)===128)U--;if(U<0)return $;if(U===0)return $;return U+B6[Q[U]]>$?U:$}});var S5=J0((mB,o$)=>{function AY(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}o$.exports=AY});var t$=J0((vY)=>{var G6=d$(),w6=A2(),g5=E5(),v5=l6(),xY=S5(),s$=Object.prototype.toString,RY=0,k5=4,x1=0,r$=1,a$=2,TY=-1,EY=0,SY=8;function Y1(Q){if(!(this instanceof Y1))return new Y1(Q);this.options=w6.assign({level:TY,method:SY,chunkSize:16384,windowBits:15,memLevel:8,strategy:EY,to:""},Q||{});var $=this.options;if($.raw&&$.windowBits>0)$.windowBits=-$.windowBits;else if($.gzip&&$.windowBits>0&&$.windowBits<16)$.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xY,this.strm.avail_out=0;var U=G6.deflateInit2(this.strm,$.level,$.method,$.windowBits,$.memLevel,$.strategy);if(U!==x1)throw new Error(v5[U]);if($.header)G6.deflateSetHeader(this.strm,$.header);if($.dictionary){var X;if(typeof $.dictionary==="string")X=g5.string2buf($.dictionary);else if(s$.call($.dictionary)==="[object ArrayBuffer]")X=new Uint8Array($.dictionary);else X=$.dictionary;if(U=G6.deflateSetDictionary(this.strm,X),U!==x1)throw new Error(v5[U]);this._dict_set=!0}}Y1.prototype.push=function(Q,$){var U=this.strm,X=this.options.chunkSize,q,V;if(this.ended)return!1;if(V=$===~~$?$:$===!0?k5:RY,typeof Q==="string")U.input=g5.string2buf(Q);else if(s$.call(Q)==="[object ArrayBuffer]")U.input=new Uint8Array(Q);else U.input=Q;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new w6.Buf8(X),U.next_out=0,U.avail_out=X;if(q=G6.deflate(U,V),q!==r$&&q!==x1)return this.onEnd(q),this.ended=!0,!1;if(U.avail_out===0||U.avail_in===0&&(V===k5||V===a$))if(this.options.to==="string")this.onData(g5.buf2binstring(w6.shrinkBuf(U.output,U.next_out)));else this.onData(w6.shrinkBuf(U.output,U.next_out))}while((U.avail_in>0||U.avail_out===0)&&q!==r$);if(V===k5)return q=G6.deflateEnd(this.strm),this.onEnd(q),this.ended=!0,q===x1;if(V===a$)return this.onEnd(x1),U.avail_out=0,!0;return!0};Y1.prototype.onData=function(Q){this.chunks.push(Q)};Y1.prototype.onEnd=function(Q){if(Q===x1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=w6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function y5(Q,$){var U=new Y1($);if(U.push(Q,!0),U.err)throw U.msg||v5[U.err];return U.result}function kY(Q,$){return $=$||{},$.raw=!0,y5(Q,$)}function gY(Q,$){return $=$||{},$.gzip=!0,y5(Q,$)}vY.Deflate=Y1;vY.deflate=y5;vY.deflateRaw=kY;vY.gzip=gY});var Q7=J0((lB,e$)=>{var e6=30,bY=12;e$.exports=function Q($,U){var X,q,V,Y,K,G,J,B,Z,j,P,g,y,k,M,w,I,F,L,_,A,i,E,O,C;X=$.state,q=$.next_in,O=$.input,V=q+($.avail_in-5),Y=$.next_out,C=$.output,K=Y-(U-$.avail_out),G=Y+($.avail_out-257),J=X.dmax,B=X.wsize,Z=X.whave,j=X.wnext,P=X.window,g=X.hold,y=X.bits,k=X.lencode,M=X.distcode,w=(1<<X.lenbits)-1,I=(1<<X.distbits)-1;Q:do{if(y<15)g+=O[q++]<<y,y+=8,g+=O[q++]<<y,y+=8;F=k[g&w];$:for(;;){if(L=F>>>24,g>>>=L,y-=L,L=F>>>16&255,L===0)C[Y++]=F&65535;else if(L&16){if(_=F&65535,L&=15,L){if(y<L)g+=O[q++]<<y,y+=8;_+=g&(1<<L)-1,g>>>=L,y-=L}if(y<15)g+=O[q++]<<y,y+=8,g+=O[q++]<<y,y+=8;F=M[g&I];U:for(;;){if(L=F>>>24,g>>>=L,y-=L,L=F>>>16&255,L&16){if(A=F&65535,L&=15,y<L){if(g+=O[q++]<<y,y+=8,y<L)g+=O[q++]<<y,y+=8}if(A+=g&(1<<L)-1,A>J){$.msg="invalid distance too far back",X.mode=e6;break Q}if(g>>>=L,y-=L,L=Y-K,A>L){if(L=A-L,L>Z){if(X.sane){$.msg="invalid distance too far back",X.mode=e6;break Q}}if(i=0,E=P,j===0){if(i+=B-L,L<_){_-=L;do C[Y++]=P[i++];while(--L);i=Y-A,E=C}}else if(j<L){if(i+=B+j-L,L-=j,L<_){_-=L;do C[Y++]=P[i++];while(--L);if(i=0,j<_){L=j,_-=L;do C[Y++]=P[i++];while(--L);i=Y-A,E=C}}}else if(i+=j-L,L<_){_-=L;do C[Y++]=P[i++];while(--L);i=Y-A,E=C}while(_>2)C[Y++]=E[i++],C[Y++]=E[i++],C[Y++]=E[i++],_-=3;if(_){if(C[Y++]=E[i++],_>1)C[Y++]=E[i++]}}else{i=Y-A;do C[Y++]=C[i++],C[Y++]=C[i++],C[Y++]=C[i++],_-=3;while(_>2);if(_){if(C[Y++]=C[i++],_>1)C[Y++]=C[i++]}}}else if((L&64)===0){F=M[(F&65535)+(g&(1<<L)-1)];continue U}else{$.msg="invalid distance code",X.mode=e6;break Q}break}}else if((L&64)===0){F=k[(F&65535)+(g&(1<<L)-1)];continue $}else if(L&32){X.mode=bY;break Q}else{$.msg="invalid literal/length code",X.mode=e6;break Q}break}}while(q<V&&Y<G);_=y>>3,q-=_,y-=_<<3,g&=(1<<y)-1,$.next_in=q,$.next_out=Y,$.avail_in=q<V?5+(V-q):5-(q-V),$.avail_out=Y<G?257+(G-Y):257-(Y-G),X.hold=g,X.bits=y;return}});var K7=J0((iB,Y7)=>{var $7=A2(),R1=15,U7=852,X7=592,q7=0,f5=1,V7=2,uY=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],cY=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],pY=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],mY=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];Y7.exports=function Q($,U,X,q,V,Y,K,G){var J=G.bits,B=0,Z=0,j=0,P=0,g=0,y=0,k=0,M=0,w=0,I=0,F,L,_,A,i,E=null,O=0,C,x=new $7.Buf16(R1+1),R=new $7.Buf16(R1+1),v=null,T=0,n,e,X0;for(B=0;B<=R1;B++)x[B]=0;for(Z=0;Z<q;Z++)x[U[X+Z]]++;g=J;for(P=R1;P>=1;P--)if(x[P]!==0)break;if(g>P)g=P;if(P===0)return V[Y++]=20971520,V[Y++]=20971520,G.bits=1,0;for(j=1;j<P;j++)if(x[j]!==0)break;if(g<j)g=j;M=1;for(B=1;B<=R1;B++)if(M<<=1,M-=x[B],M<0)return-1;if(M>0&&($===q7||P!==1))return-1;R[1]=0;for(B=1;B<R1;B++)R[B+1]=R[B]+x[B];for(Z=0;Z<q;Z++)if(U[X+Z]!==0)K[R[U[X+Z]]++]=Z;if($===q7)E=v=K,C=19;else if($===f5)E=uY,O-=257,v=cY,T-=257,C=256;else E=pY,v=mY,C=-1;if(I=0,Z=0,B=j,i=Y,y=g,k=0,_=-1,w=1<<g,A=w-1,$===f5&&w>U7||$===V7&&w>X7)return 1;for(;;){if(n=B-k,K[Z]<C)e=0,X0=K[Z];else if(K[Z]>C)e=v[T+K[Z]],X0=E[O+K[Z]];else e=96,X0=0;F=1<<B-k,L=1<<y,j=L;do L-=F,V[i+(I>>k)+L]=n<<24|e<<16|X0|0;while(L!==0);F=1<<B-1;while(I&F)F>>=1;if(F!==0)I&=F-1,I+=F;else I=0;if(Z++,--x[B]===0){if(B===P)break;B=U[X+K[Z]]}if(B>g&&(I&A)!==_){if(k===0)k=g;i+=j,y=B-k,M=1<<y;while(y+k<P){if(M-=x[y+k],M<=0)break;y++,M<<=1}if(w+=1<<y,$===f5&&w>U7||$===V7&&w>X7)return 1;_=I&A,V[_]=g<<24|y<<16|i-Y|0}}if(I!==0)V[i+I]=B-k<<24|4194304|0;return G.bits=g,0}});var p7=J0((JK)=>{var i0=A2(),p5=N5(),Z2=D5(),dY=Q7(),W6=K7(),lY=0,g7=1,v7=2,J7=4,iY=5,Q8=6,K1=0,nY=1,oY=2,t0=-2,y7=-3,m5=-4,rY=-5,B7=8,f7=1,G7=2,w7=3,W7=4,z7=5,j7=6,Z7=7,P7=8,F7=9,I7=10,X8=11,R2=12,h5=13,M7=14,_5=15,H7=16,L7=17,C7=18,O7=19,$8=20,U8=21,N7=22,D7=23,A7=24,x7=25,R7=26,b5=27,T7=28,E7=29,L0=30,d5=31,aY=32,sY=852,tY=592,eY=15,QK=eY;function S7(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function $K(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i0.Buf16(320),this.work=new i0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function h7(Q){var $;if(!Q||!Q.state)return t0;if($=Q.state,Q.total_in=Q.total_out=$.total=0,Q.msg="",$.wrap)Q.adler=$.wrap&1;return $.mode=f7,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new i0.Buf32(sY),$.distcode=$.distdyn=new i0.Buf32(tY),$.sane=1,$.back=-1,K1}function _7(Q){var $;if(!Q||!Q.state)return t0;return $=Q.state,$.wsize=0,$.whave=0,$.wnext=0,h7(Q)}function b7(Q,$){var U,X;if(!Q||!Q.state)return t0;if(X=Q.state,$<0)U=0,$=-$;else if(U=($>>4)+1,$<48)$&=15;if($&&($<8||$>15))return t0;if(X.window!==null&&X.wbits!==$)X.window=null;return X.wrap=U,X.wbits=$,_7(Q)}function u7(Q,$){var U,X;if(!Q)return t0;if(X=new $K,Q.state=X,X.window=null,U=b7(Q,$),U!==K1)Q.state=null;return U}function UK(Q){return u7(Q,QK)}var k7=!0,u5,c5;function XK(Q){if(k7){var $;u5=new i0.Buf32(512),c5=new i0.Buf32(32),$=0;while($<144)Q.lens[$++]=8;while($<256)Q.lens[$++]=9;while($<280)Q.lens[$++]=7;while($<288)Q.lens[$++]=8;W6(g7,Q.lens,0,288,u5,0,Q.work,{bits:9}),$=0;while($<32)Q.lens[$++]=5;W6(v7,Q.lens,0,32,c5,0,Q.work,{bits:5}),k7=!1}Q.lencode=u5,Q.lenbits=9,Q.distcode=c5,Q.distbits=5}function c7(Q,$,U,X){var q,V=Q.state;if(V.window===null)V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new i0.Buf8(V.wsize);if(X>=V.wsize)i0.arraySet(V.window,$,U-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize;else{if(q=V.wsize-V.wnext,q>X)q=X;if(i0.arraySet(V.window,$,U-X,q,V.wnext),X-=q,X)i0.arraySet(V.window,$,U-X,X,0),V.wnext=X,V.whave=V.wsize;else{if(V.wnext+=q,V.wnext===V.wsize)V.wnext=0;if(V.whave<V.wsize)V.whave+=q}}return 0}function qK(Q,$){var U,X,q,V,Y,K,G,J,B,Z,j,P,g,y,k=0,M,w,I,F,L,_,A,i,E=new i0.Buf8(4),O,C,x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return t0;if(U=Q.state,U.mode===R2)U.mode=h5;Y=Q.next_out,q=Q.output,G=Q.avail_out,V=Q.next_in,X=Q.input,K=Q.avail_in,J=U.hold,B=U.bits,Z=K,j=G,i=K1;Q:for(;;)switch(U.mode){case f7:if(U.wrap===0){U.mode=h5;break}while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.wrap&2&&J===35615){U.check=0,E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0),J=0,B=0,U.mode=G7;break}if(U.flags=0,U.head)U.head.done=!1;if(!(U.wrap&1)||(((J&255)<<8)+(J>>8))%31){Q.msg="incorrect header check",U.mode=L0;break}if((J&15)!==B7){Q.msg="unknown compression method",U.mode=L0;break}if(J>>>=4,B-=4,A=(J&15)+8,U.wbits===0)U.wbits=A;else if(A>U.wbits){Q.msg="invalid window size",U.mode=L0;break}U.dmax=1<<A,Q.adler=U.check=1,U.mode=J&512?I7:R2,J=0,B=0;break;case G7:while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.flags=J,(U.flags&255)!==B7){Q.msg="unknown compression method",U.mode=L0;break}if(U.flags&57344){Q.msg="unknown header flags set",U.mode=L0;break}if(U.head)U.head.text=J>>8&1;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0);J=0,B=0,U.mode=w7;case w7:while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.head)U.head.time=J;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,E[2]=J>>>16&255,E[3]=J>>>24&255,U.check=Z2(U.check,E,4,0);J=0,B=0,U.mode=W7;case W7:while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.head)U.head.xflags=J&255,U.head.os=J>>8;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0);J=0,B=0,U.mode=z7;case z7:if(U.flags&1024){while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.length=J,U.head)U.head.extra_len=J;if(U.flags&512)E[0]=J&255,E[1]=J>>>8&255,U.check=Z2(U.check,E,2,0);J=0,B=0}else if(U.head)U.head.extra=null;U.mode=j7;case j7:if(U.flags&1024){if(P=U.length,P>K)P=K;if(P){if(U.head){if(A=U.head.extra_len-U.length,!U.head.extra)U.head.extra=new Array(U.head.extra_len);i0.arraySet(U.head.extra,X,V,P,A)}if(U.flags&512)U.check=Z2(U.check,X,P,V);K-=P,V+=P,U.length-=P}if(U.length)break Q}U.length=0,U.mode=Z7;case Z7:if(U.flags&2048){if(K===0)break Q;P=0;do if(A=X[V+P++],U.head&&A&&U.length<65536)U.head.name+=String.fromCharCode(A);while(A&&P<K);if(U.flags&512)U.check=Z2(U.check,X,P,V);if(K-=P,V+=P,A)break Q}else if(U.head)U.head.name=null;U.length=0,U.mode=P7;case P7:if(U.flags&4096){if(K===0)break Q;P=0;do if(A=X[V+P++],U.head&&A&&U.length<65536)U.head.comment+=String.fromCharCode(A);while(A&&P<K);if(U.flags&512)U.check=Z2(U.check,X,P,V);if(K-=P,V+=P,A)break Q}else if(U.head)U.head.comment=null;U.mode=F7;case F7:if(U.flags&512){while(B<16){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(J!==(U.check&65535)){Q.msg="header crc mismatch",U.mode=L0;break}J=0,B=0}if(U.head)U.head.hcrc=U.flags>>9&1,U.head.done=!0;Q.adler=U.check=0,U.mode=R2;break;case I7:while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}Q.adler=U.check=S7(J),J=0,B=0,U.mode=X8;case X8:if(U.havedict===0)return Q.next_out=Y,Q.avail_out=G,Q.next_in=V,Q.avail_in=K,U.hold=J,U.bits=B,oY;Q.adler=U.check=1,U.mode=R2;case R2:if($===iY||$===Q8)break Q;case h5:if(U.last){J>>>=B&7,B-=B&7,U.mode=b5;break}while(B<3){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}switch(U.last=J&1,J>>>=1,B-=1,J&3){case 0:U.mode=M7;break;case 1:if(XK(U),U.mode=$8,$===Q8){J>>>=2,B-=2;break Q}break;case 2:U.mode=L7;break;case 3:Q.msg="invalid block type",U.mode=L0}J>>>=2,B-=2;break;case M7:J>>>=B&7,B-=B&7;while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if((J&65535)!==(J>>>16^65535)){Q.msg="invalid stored block lengths",U.mode=L0;break}if(U.length=J&65535,J=0,B=0,U.mode=_5,$===Q8)break Q;case _5:U.mode=H7;case H7:if(P=U.length,P){if(P>K)P=K;if(P>G)P=G;if(P===0)break Q;i0.arraySet(q,X,V,P,Y),K-=P,V+=P,G-=P,Y+=P,U.length-=P;break}U.mode=R2;break;case L7:while(B<14){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(U.nlen=(J&31)+257,J>>>=5,B-=5,U.ndist=(J&31)+1,J>>>=5,B-=5,U.ncode=(J&15)+4,J>>>=4,B-=4,U.nlen>286||U.ndist>30){Q.msg="too many length or distance symbols",U.mode=L0;break}U.have=0,U.mode=C7;case C7:while(U.have<U.ncode){while(B<3){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}U.lens[x[U.have++]]=J&7,J>>>=3,B-=3}while(U.have<19)U.lens[x[U.have++]]=0;if(U.lencode=U.lendyn,U.lenbits=7,O={bits:U.lenbits},i=W6(lY,U.lens,0,19,U.lencode,0,U.work,O),U.lenbits=O.bits,i){Q.msg="invalid code lengths set",U.mode=L0;break}U.have=0,U.mode=O7;case O7:while(U.have<U.nlen+U.ndist){for(;;){if(k=U.lencode[J&(1<<U.lenbits)-1],M=k>>>24,w=k>>>16&255,I=k&65535,M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(I<16)J>>>=M,B-=M,U.lens[U.have++]=I;else{if(I===16){C=M+2;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(J>>>=M,B-=M,U.have===0){Q.msg="invalid bit length repeat",U.mode=L0;break}A=U.lens[U.have-1],P=3+(J&3),J>>>=2,B-=2}else if(I===17){C=M+3;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=M,B-=M,A=0,P=3+(J&7),J>>>=3,B-=3}else{C=M+7;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=M,B-=M,A=0,P=11+(J&127),J>>>=7,B-=7}if(U.have+P>U.nlen+U.ndist){Q.msg="invalid bit length repeat",U.mode=L0;break}while(P--)U.lens[U.have++]=A}}if(U.mode===L0)break;if(U.lens[256]===0){Q.msg="invalid code -- missing end-of-block",U.mode=L0;break}if(U.lenbits=9,O={bits:U.lenbits},i=W6(g7,U.lens,0,U.nlen,U.lencode,0,U.work,O),U.lenbits=O.bits,i){Q.msg="invalid literal/lengths set",U.mode=L0;break}if(U.distbits=6,U.distcode=U.distdyn,O={bits:U.distbits},i=W6(v7,U.lens,U.nlen,U.ndist,U.distcode,0,U.work,O),U.distbits=O.bits,i){Q.msg="invalid distances set",U.mode=L0;break}if(U.mode=$8,$===Q8)break Q;case $8:U.mode=U8;case U8:if(K>=6&&G>=258){if(Q.next_out=Y,Q.avail_out=G,Q.next_in=V,Q.avail_in=K,U.hold=J,U.bits=B,dY(Q,j),Y=Q.next_out,q=Q.output,G=Q.avail_out,V=Q.next_in,X=Q.input,K=Q.avail_in,J=U.hold,B=U.bits,U.mode===R2)U.back=-1;break}U.back=0;for(;;){if(k=U.lencode[J&(1<<U.lenbits)-1],M=k>>>24,w=k>>>16&255,I=k&65535,M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(w&&(w&240)===0){F=M,L=w,_=I;for(;;){if(k=U.lencode[_+((J&(1<<F+L)-1)>>F)],M=k>>>24,w=k>>>16&255,I=k&65535,F+M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=F,B-=F,U.back+=F}if(J>>>=M,B-=M,U.back+=M,U.length=I,w===0){U.mode=R7;break}if(w&32){U.back=-1,U.mode=R2;break}if(w&64){Q.msg="invalid literal/length code",U.mode=L0;break}U.extra=w&15,U.mode=N7;case N7:if(U.extra){C=U.extra;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}U.length+=J&(1<<U.extra)-1,J>>>=U.extra,B-=U.extra,U.back+=U.extra}U.was=U.length,U.mode=D7;case D7:for(;;){if(k=U.distcode[J&(1<<U.distbits)-1],M=k>>>24,w=k>>>16&255,I=k&65535,M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if((w&240)===0){F=M,L=w,_=I;for(;;){if(k=U.distcode[_+((J&(1<<F+L)-1)>>F)],M=k>>>24,w=k>>>16&255,I=k&65535,F+M<=B)break;if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}J>>>=F,B-=F,U.back+=F}if(J>>>=M,B-=M,U.back+=M,w&64){Q.msg="invalid distance code",U.mode=L0;break}U.offset=I,U.extra=w&15,U.mode=A7;case A7:if(U.extra){C=U.extra;while(B<C){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}U.offset+=J&(1<<U.extra)-1,J>>>=U.extra,B-=U.extra,U.back+=U.extra}if(U.offset>U.dmax){Q.msg="invalid distance too far back",U.mode=L0;break}U.mode=x7;case x7:if(G===0)break Q;if(P=j-G,U.offset>P){if(P=U.offset-P,P>U.whave){if(U.sane){Q.msg="invalid distance too far back",U.mode=L0;break}}if(P>U.wnext)P-=U.wnext,g=U.wsize-P;else g=U.wnext-P;if(P>U.length)P=U.length;y=U.window}else y=q,g=Y-U.offset,P=U.length;if(P>G)P=G;G-=P,U.length-=P;do q[Y++]=y[g++];while(--P);if(U.length===0)U.mode=U8;break;case R7:if(G===0)break Q;q[Y++]=U.length,G--,U.mode=U8;break;case b5:if(U.wrap){while(B<32){if(K===0)break Q;K--,J|=X[V++]<<B,B+=8}if(j-=G,Q.total_out+=j,U.total+=j,j)Q.adler=U.check=U.flags?Z2(U.check,q,j,Y-j):p5(U.check,q,j,Y-j);if(j=G,(U.flags?J:S7(J))!==U.check){Q.msg="incorrect data check",U.mode=L0;break}J=0,B=0}U.mode=T7;case T7:if(U.wrap&&U.flags){while(B<32){if(K===0)break Q;K--,J+=X[V++]<<B,B+=8}if(J!==(U.total&4294967295)){Q.msg="incorrect length check",U.mode=L0;break}J=0,B=0}U.mode=E7;case E7:i=nY;break Q;case L0:i=y7;break Q;case d5:return m5;case aY:default:return t0}if(Q.next_out=Y,Q.avail_out=G,Q.next_in=V,Q.avail_in=K,U.hold=J,U.bits=B,U.wsize||j!==Q.avail_out&&U.mode<L0&&(U.mode<b5||$!==J7)){if(c7(Q,Q.output,Q.next_out,j-Q.avail_out))return U.mode=d5,m5}if(Z-=Q.avail_in,j-=Q.avail_out,Q.total_in+=Z,Q.total_out+=j,U.total+=j,U.wrap&&j)Q.adler=U.check=U.flags?Z2(U.check,q,j,Q.next_out-j):p5(U.check,q,j,Q.next_out-j);if(Q.data_type=U.bits+(U.last?64:0)+(U.mode===R2?128:0)+(U.mode===$8||U.mode===_5?256:0),(Z===0&&j===0||$===J7)&&i===K1)i=rY;return i}function VK(Q){if(!Q||!Q.state)return t0;var $=Q.state;if($.window)$.window=null;return Q.state=null,K1}function YK(Q,$){var U;if(!Q||!Q.state)return t0;if(U=Q.state,(U.wrap&2)===0)return t0;return U.head=$,$.done=!1,K1}function KK(Q,$){var U=$.length,X,q,V;if(!Q||!Q.state)return t0;if(X=Q.state,X.wrap!==0&&X.mode!==X8)return t0;if(X.mode===X8){if(q=1,q=p5(q,$,U,0),q!==X.check)return y7}if(V=c7(Q,$,U,U),V)return X.mode=d5,m5;return X.havedict=1,K1}JK.inflateReset=_7;JK.inflateReset2=b7;JK.inflateResetKeep=h7;JK.inflateInit=UK;JK.inflateInit2=u7;JK.inflate=qK;JK.inflateEnd=VK;JK.inflateGetHeader=YK;JK.inflateSetDictionary=KK;JK.inflateInfo="pako inflate (from Nodeca project)"});var l5=J0((oB,m7)=>{m7.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}});var l7=J0((rB,d7)=>{function MK(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}d7.exports=MK});var n7=J0((OK)=>{var T1=p7(),z6=A2(),q8=E5(),x0=l5(),i5=l6(),HK=S5(),LK=l7(),i7=Object.prototype.toString;function J1(Q){if(!(this instanceof J1))return new J1(Q);this.options=z6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var $=this.options;if($.raw&&$.windowBits>=0&&$.windowBits<16){if($.windowBits=-$.windowBits,$.windowBits===0)$.windowBits=-15}if($.windowBits>=0&&$.windowBits<16&&!(Q&&Q.windowBits))$.windowBits+=32;if($.windowBits>15&&$.windowBits<48){if(($.windowBits&15)===0)$.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new HK,this.strm.avail_out=0;var U=T1.inflateInit2(this.strm,$.windowBits);if(U!==x0.Z_OK)throw new Error(i5[U]);if(this.header=new LK,T1.inflateGetHeader(this.strm,this.header),$.dictionary){if(typeof $.dictionary==="string")$.dictionary=q8.string2buf($.dictionary);else if(i7.call($.dictionary)==="[object ArrayBuffer]")$.dictionary=new Uint8Array($.dictionary);if($.raw){if(U=T1.inflateSetDictionary(this.strm,$.dictionary),U!==x0.Z_OK)throw new Error(i5[U])}}}J1.prototype.push=function(Q,$){var U=this.strm,X=this.options.chunkSize,q=this.options.dictionary,V,Y,K,G,J,B=!1;if(this.ended)return!1;if(Y=$===~~$?$:$===!0?x0.Z_FINISH:x0.Z_NO_FLUSH,typeof Q==="string")U.input=q8.binstring2buf(Q);else if(i7.call(Q)==="[object ArrayBuffer]")U.input=new Uint8Array(Q);else U.input=Q;U.next_in=0,U.avail_in=U.input.length;do{if(U.avail_out===0)U.output=new z6.Buf8(X),U.next_out=0,U.avail_out=X;if(V=T1.inflate(U,x0.Z_NO_FLUSH),V===x0.Z_NEED_DICT&&q)V=T1.inflateSetDictionary(this.strm,q);if(V===x0.Z_BUF_ERROR&&B===!0)V=x0.Z_OK,B=!1;if(V!==x0.Z_STREAM_END&&V!==x0.Z_OK)return this.onEnd(V),this.ended=!0,!1;if(U.next_out){if(U.avail_out===0||V===x0.Z_STREAM_END||U.avail_in===0&&(Y===x0.Z_FINISH||Y===x0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(K=q8.utf8border(U.output,U.next_out),G=U.next_out-K,J=q8.buf2string(U.output,K),U.next_out=G,U.avail_out=X-G,G)z6.arraySet(U.output,U.output,K,G,0);this.onData(J)}else this.onData(z6.shrinkBuf(U.output,U.next_out))}if(U.avail_in===0&&U.avail_out===0)B=!0}while((U.avail_in>0||U.avail_out===0)&&V!==x0.Z_STREAM_END);if(V===x0.Z_STREAM_END)Y=x0.Z_FINISH;if(Y===x0.Z_FINISH)return V=T1.inflateEnd(this.strm),this.onEnd(V),this.ended=!0,V===x0.Z_OK;if(Y===x0.Z_SYNC_FLUSH)return this.onEnd(x0.Z_OK),U.avail_out=0,!0;return!0};J1.prototype.onData=function(Q){this.chunks.push(Q)};J1.prototype.onEnd=function(Q){if(Q===x0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=z6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function n5(Q,$){var U=new J1($);if(U.push(Q,!0),U.err)throw U.msg||i5[U.err];return U.result}function CK(Q,$){return $=$||{},$.raw=!0,n5(Q,$)}OK.Inflate=J1;OK.inflate=n5;OK.inflateRaw=CK;OK.ungzip=n5});var a7=J0((sB,r7)=>{var RK=A2().assign,TK=t$(),EK=n7(),SK=l5(),o7={};RK(o7,TK,EK,SK);r7.exports=o7});var t7=J0((yK)=>{var kK=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Uint32Array!=="undefined",gK=a7(),s7=N0(),V8=l0(),vK=kK?"uint8array":"array";yK.magic="\b\x00";function B1(Q,$){V8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=$,this.meta={}}s7.inherits(B1,V8);B1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(s7.transformTo(vK,Q.data),!1)};B1.prototype.flush=function(){if(V8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};B1.prototype.cleanUp=function(){V8.prototype.cleanUp.call(this),this._pako=null};B1.prototype._createPako=function(){this._pako=new gK[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function($){Q.push({data:$,meta:Q.meta})}};yK.compressWorker=function(Q){return new B1("Deflate",Q)};yK.uncompressWorker=function(){return new B1("Inflate",{})}});var o5=J0((bK)=>{var e7=l0();bK.STORE={magic:"\x00\x00",compressWorker:function(){return new e7("STORE compression")},uncompressWorker:function(){return new e7("STORE decompression")}};bK.DEFLATE=t7()});var r5=J0((pK)=>{pK.LOCAL_FILE_HEADER="PK\x03\x04";pK.CENTRAL_FILE_HEADER="PK\x01\x02";pK.CENTRAL_DIRECTORY_END="PK\x05\x06";pK.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";pK.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";pK.DATA_DESCRIPTOR="PK\x07\b"});var X9=J0(($G,U9)=>{var E1=N0(),S1=l0(),a5=H1(),Q9=c6(),Y8=r5(),M0=function(Q,$){var U="",X;for(X=0;X<$;X++)U+=String.fromCharCode(Q&255),Q=Q>>>8;return U},rK=function(Q,$){var U=Q;if(!Q)U=$?16893:33204;return(U&65535)<<16},aK=function(Q){return(Q||0)&63},$9=function(Q,$,U,X,q,V){var{file:Y,compression:K}=Q,G=V!==a5.utf8encode,J=E1.transformTo("string",V(Y.name)),B=E1.transformTo("string",a5.utf8encode(Y.name)),Z=Y.comment,j=E1.transformTo("string",V(Z)),P=E1.transformTo("string",a5.utf8encode(Z)),g=B.length!==Y.name.length,y=P.length!==Z.length,k,M,w="",I="",F="",L=Y.dir,_=Y.date,A={crc32:0,compressedSize:0,uncompressedSize:0};if(!$||U)A.crc32=Q.crc32,A.compressedSize=Q.compressedSize,A.uncompressedSize=Q.uncompressedSize;var i=0;if($)i|=8;if(!G&&(g||y))i|=2048;var E=0,O=0;if(L)E|=16;if(q==="UNIX")O=798,E|=rK(Y.unixPermissions,L);else O=20,E|=aK(Y.dosPermissions,L);if(k=_.getUTCHours(),k=k<<6,k=k|_.getUTCMinutes(),k=k<<5,k=k|_.getUTCSeconds()/2,M=_.getUTCFullYear()-1980,M=M<<4,M=M|_.getUTCMonth()+1,M=M<<5,M=M|_.getUTCDate(),g)I=M0(1,1)+M0(Q9(J),4)+B,w+="up"+M0(I.length,2)+I;if(y)F=M0(1,1)+M0(Q9(j),4)+P,w+="uc"+M0(F.length,2)+F;var C="";C+=`
|
|
3
|
+
\x00`,C+=M0(i,2),C+=K.magic,C+=M0(k,2),C+=M0(M,2),C+=M0(A.crc32,4),C+=M0(A.compressedSize,4),C+=M0(A.uncompressedSize,4),C+=M0(J.length,2),C+=M0(w.length,2);var x=Y8.LOCAL_FILE_HEADER+C+J+w,R=Y8.CENTRAL_FILE_HEADER+M0(O,2)+C+M0(j.length,2)+"\x00\x00\x00\x00"+M0(E,4)+M0(X,4)+J+w+j;return{fileRecord:x,dirRecord:R}},sK=function(Q,$,U,X,q){var V="",Y=E1.transformTo("string",q(X));return V=Y8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+M0(Q,2)+M0(Q,2)+M0($,4)+M0(U,4)+M0(Y.length,2)+Y,V},tK=function(Q){var $="";return $=Y8.DATA_DESCRIPTOR+M0(Q.crc32,4)+M0(Q.compressedSize,4)+M0(Q.uncompressedSize,4),$};function U2(Q,$,U,X){S1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=$,this.zipPlatform=U,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}E1.inherits(U2,S1);U2.prototype.push=function(Q){var $=Q.meta.percent||0,U=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,S1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:U?($+100*(U-X-1))/U:100}})};U2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var $=this.streamFiles&&!Q.file.dir;if($){var U=$9(Q,$,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0};U2.prototype.closedSource=function(Q){this.accumulate=!1;var $=this.streamFiles&&!Q.file.dir,U=$9(Q,$,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),$)this.push({data:tK(Q),meta:{percent:100}});else{this.push({data:U.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};U2.prototype.flush=function(){var Q=this.bytesWritten;for(var $=0;$<this.dirRecords.length;$++)this.push({data:this.dirRecords[$],meta:{percent:100}});var U=this.bytesWritten-Q,X=sK(this.dirRecords.length,U,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};U2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};U2.prototype.registerPrevious=function(Q){this._sources.push(Q);var $=this;return Q.on("data",function(U){$.processChunk(U)}),Q.on("end",function(){if($.closedSource($.previous.streamInfo),$._sources.length)$.prepareNextSource();else $.end()}),Q.on("error",function(U){$.error(U)}),this};U2.prototype.resume=function(){if(!S1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};U2.prototype.error=function(Q){var $=this._sources;if(!S1.prototype.error.call(this,Q))return!1;for(var U=0;U<$.length;U++)try{$[U].error(Q)}catch(X){}return!0};U2.prototype.lock=function(){S1.prototype.lock.call(this);var Q=this._sources;for(var $=0;$<Q.length;$++)Q[$].lock()};U9.exports=U2});var q9=J0((UJ)=>{var eK=o5(),QJ=X9(),$J=function(Q,$){var U=Q||$,X=eK[U];if(!X)throw new Error(U+" is not a valid compression method !");return X};UJ.generateWorker=function(Q,$,U){var X=new QJ($.streamFiles,U,$.platform,$.encodeFileName),q=0;try{Q.forEach(function(V,Y){q++;var K=$J(Y.options.compression,$.compression),G=Y.options.compressionOptions||$.compressionOptions||{},J=Y.dir,B=Y.date;Y._compressWorker(K,G).withStreamInfo("file",{name:V,dir:J,date:B,comment:Y.comment||"",unixPermissions:Y.unixPermissions,dosPermissions:Y.dosPermissions}).pipe(X)}),X.entriesCount=q}catch(V){X.error(V)}return X}});var Y9=J0((XG,V9)=>{var qJ=N0(),K8=l0();function j6(Q,$){K8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream($)}qJ.inherits(j6,K8);j6.prototype._bindStream=function(Q){var $=this;this._stream=Q,Q.pause(),Q.on("data",function(U){$.push({data:U,meta:{percent:0}})}).on("error",function(U){if($.isPaused)this.generatedError=U;else $.error(U)}).on("end",function(){if($.isPaused)$._upstreamEnded=!0;else $.end()})};j6.prototype.pause=function(){if(!K8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};j6.prototype.resume=function(){if(!K8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};V9.exports=j6});var P9=J0((qG,Z9)=>{var VJ=H1(),Z6=N0(),G9=l0(),YJ=Q5(),w9=$5(),K9=p6(),KJ=J$(),JJ=q9(),J9=i1(),BJ=Y9(),W9=function(Q,$,U){var X=Z6.getTypeOf($),q,V=Z6.extend(U||{},w9);if(V.date=V.date||new Date,V.compression!==null)V.compression=V.compression.toUpperCase();if(typeof V.unixPermissions==="string")V.unixPermissions=parseInt(V.unixPermissions,8);if(V.unixPermissions&&V.unixPermissions&16384)V.dir=!0;if(V.dosPermissions&&V.dosPermissions&16)V.dir=!0;if(V.dir)Q=z9(Q);if(V.createFolders&&(q=GJ(Q)))j9.call(this,q,!0);var Y=X==="string"&&V.binary===!1&&V.base64===!1;if(!U||typeof U.binary==="undefined")V.binary=!Y;var K=$ instanceof K9&&$.uncompressedSize===0;if(K||V.dir||!$||$.length===0)V.base64=!1,V.binary=!0,$="",V.compression="STORE",X="string";var G=null;if($ instanceof K9||$ instanceof G9)G=$;else if(J9.isNode&&J9.isStream($))G=new BJ(Q,$);else G=Z6.prepareContent(Q,$,V.binary,V.optimizedBinaryString,V.base64);var J=new KJ(Q,G,V);this.files[Q]=J},GJ=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var $=Q.lastIndexOf("/");return $>0?Q.substring(0,$):""},z9=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},j9=function(Q,$){if($=typeof $!=="undefined"?$:w9.createFolders,Q=z9(Q),!this.files[Q])W9.call(this,Q,null,{dir:!0,createFolders:$});return this.files[Q]};function B9(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var wJ={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var $,U,X;for($ in this.files)if(X=this.files[$],U=$.slice(this.root.length,$.length),U&&$.slice(0,this.root.length)===this.root)Q(U,X)},filter:function(Q){var $=[];return this.forEach(function(U,X){if(Q(U,X))$.push(X)}),$},file:function(Q,$,U){if(arguments.length===1)if(B9(Q)){var X=Q;return this.filter(function(V,Y){return!Y.dir&&X.test(V)})}else{var q=this.files[this.root+Q];if(q&&!q.dir)return q;else return null}else Q=this.root+Q,W9.call(this,Q,$,U);return this},folder:function(Q){if(!Q)return this;if(B9(Q))return this.filter(function(q,V){return V.dir&&Q.test(q)});var $=this.root+Q,U=j9.call(this,$),X=this.clone();return X.root=U.name,X},remove:function(Q){Q=this.root+Q;var $=this.files[Q];if(!$){if(Q.slice(-1)!=="/")Q+="/";$=this.files[Q]}if($&&!$.dir)delete this.files[Q];else{var U=this.filter(function(q,V){return V.name.slice(0,Q.length)===Q});for(var X=0;X<U.length;X++)delete this.files[U[X].name]}return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var $,U={};try{if(U=Z6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:VJ.utf8encode}),U.type=U.type.toLowerCase(),U.compression=U.compression.toUpperCase(),U.type==="binarystring")U.type="string";if(!U.type)throw new Error("No output type specified.");if(Z6.checkSupport(U.type),U.platform==="darwin"||U.platform==="freebsd"||U.platform==="linux"||U.platform==="sunos")U.platform="UNIX";if(U.platform==="win32")U.platform="DOS";var X=U.comment||this.comment||"";$=JJ.generateWorker(this,U,X)}catch(q){$=new G9("error"),$.error(q)}return new YJ($,U.type||"string",U.mimeType)},generateAsync:function(Q,$){return this.generateInternalStream(Q).accumulate($)},generateNodeStream:function(Q,$){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream($)}};Z9.exports=wJ});var s5=J0((VG,I9)=>{var WJ=N0();function F9(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}F9.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var $=0,U;this.checkOffset(Q);for(U=this.index+Q-1;U>=this.index;U--)$=($<<8)+this.byteAt(U);return this.index+=Q,$},readString:function(Q){return WJ.transformTo("string",this.readData(Q))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var Q=this.readInt(4);return new Date(Date.UTC((Q>>25&127)+1980,(Q>>21&15)-1,Q>>16&31,Q>>11&31,Q>>5&63,(Q&31)<<1))}};I9.exports=F9});var t5=J0((YG,H9)=>{var M9=s5(),zJ=N0();function k1(Q){M9.call(this,Q);for(var $=0;$<this.data.length;$++)Q[$]=Q[$]&255}zJ.inherits(k1,M9);k1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};k1.prototype.lastIndexOfSignature=function(Q){var $=Q.charCodeAt(0),U=Q.charCodeAt(1),X=Q.charCodeAt(2),q=Q.charCodeAt(3);for(var V=this.length-4;V>=0;--V)if(this.data[V]===$&&this.data[V+1]===U&&this.data[V+2]===X&&this.data[V+3]===q)return V-this.zero;return-1};k1.prototype.readAndCheckSignature=function(Q){var $=Q.charCodeAt(0),U=Q.charCodeAt(1),X=Q.charCodeAt(2),q=Q.charCodeAt(3),V=this.readData(4);return $===V[0]&&U===V[1]&&X===V[2]&&q===V[3]};k1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};H9.exports=k1});var O9=J0((KG,C9)=>{var L9=s5(),jJ=N0();function g1(Q){L9.call(this,Q)}jJ.inherits(g1,L9);g1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};g1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};g1.prototype.readAndCheckSignature=function(Q){var $=this.readData(4);return Q===$};g1.prototype.readData=function(Q){this.checkOffset(Q);var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};C9.exports=g1});var Q4=J0((JG,D9)=>{var N9=t5(),ZJ=N0();function e5(Q){N9.call(this,Q)}ZJ.inherits(e5,N9);e5.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var $=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};D9.exports=e5});var R9=J0((BG,x9)=>{var A9=Q4(),PJ=N0();function $4(Q){A9.call(this,Q)}PJ.inherits($4,A9);$4.prototype.readData=function(Q){this.checkOffset(Q);var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};x9.exports=$4});var U4=J0((GG,E9)=>{var J8=N0(),T9=D2(),FJ=t5(),IJ=O9(),MJ=R9(),HJ=Q4();E9.exports=function(Q){var $=J8.getTypeOf(Q);if(J8.checkSupport($),$==="string"&&!T9.uint8array)return new IJ(Q);if($==="nodebuffer")return new MJ(Q);if(T9.uint8array)return new HJ(J8.transformTo("uint8array",Q));return new FJ(J8.transformTo("array",Q))}});var v9=J0((wG,g9)=>{var X4=U4(),p2=N0(),LJ=p6(),S9=c6(),B8=H1(),G8=o5(),CJ=D2(),OJ=0,NJ=3,DJ=function(Q){for(var $ in G8){if(!Object.prototype.hasOwnProperty.call(G8,$))continue;if(G8[$].magic===Q)return G8[$]}return null};function k9(Q,$){this.options=Q,this.loadOptions=$}k9.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var $,U;if(Q.skip(22),this.fileNameLength=Q.readInt(2),U=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip(U),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if($=DJ(this.compressionMethod),$===null)throw new Error("Corrupted zip : compression "+p2.pretty(this.compressionMethod)+" unknown (inner file : "+p2.transformTo("string",this.fileName)+")");this.decompressed=new LJ(this.compressedSize,this.uncompressedSize,this.crc32,$,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var $=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");Q.skip($),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===OJ)this.dosPermissions=this.externalFileAttributes&63;if(Q===NJ)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=X4(this.extraFields[1].value);if(this.uncompressedSize===p2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===p2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===p2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===p2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var $=Q.index+this.extraFieldsLength,U,X,q;if(!this.extraFields)this.extraFields={};while(Q.index+4<$)U=Q.readInt(2),X=Q.readInt(2),q=Q.readData(X),this.extraFields[U]={id:U,length:X,value:q};Q.setIndex($)},handleUTF8:function(){var Q=CJ.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=B8.utf8decode(this.fileName),this.fileCommentStr=B8.utf8decode(this.fileComment);else{var $=this.findExtraFieldUnicodePath();if($!==null)this.fileNameStr=$;else{var U=p2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(U)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var q=p2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(q)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var $=X4(Q.value);if($.readInt(1)!==1)return null;if(S9(this.fileName)!==$.readInt(4))return null;return B8.utf8decode($.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var $=X4(Q.value);if($.readInt(1)!==1)return null;if(S9(this.fileComment)!==$.readInt(4))return null;return B8.utf8decode($.readData(Q.length-5))}return null}};g9.exports=k9});var h9=J0((WG,f9)=>{var AJ=U4(),T2=N0(),X2=r5(),xJ=v9(),RJ=D2();function y9(Q){this.files=[],this.loadOptions=Q}y9.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var $=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+T2.pretty($)+", expected "+T2.pretty(Q)+")")}},isSignature:function(Q,$){var U=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),q=X===$;return this.reader.setIndex(U),q},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Q=this.reader.readData(this.zipCommentLength),$=RJ.uint8array?"uint8array":"array",U=T2.transformTo($,Q);this.zipComment=this.loadOptions.decodeFileName(U)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var Q=this.zip64EndOfCentralSize-44,$=0,U,X,q;while($<Q)U=this.reader.readInt(2),X=this.reader.readInt(4),q=this.reader.readData(X),this.zip64ExtensibleData[U]={id:U,length:X,value:q}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,$;for(Q=0;Q<this.files.length;Q++)$=this.files[Q],this.reader.setIndex($.localHeaderOffset),this.checkSignature(X2.LOCAL_FILE_HEADER),$.readLocalPart(this.reader),$.handleUTF8(),$.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(X2.CENTRAL_FILE_HEADER))Q=new xJ({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(X2.CENTRAL_DIRECTORY_END);if(Q<0){var $=!this.isSignature(0,X2.LOCAL_FILE_HEADER);if($)throw new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw new Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var U=Q;if(this.checkSignature(X2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===T2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===T2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===T2.MAX_VALUE_16BITS||this.centralDirRecords===T2.MAX_VALUE_16BITS||this.centralDirSize===T2.MAX_VALUE_32BITS||this.centralDirOffset===T2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(X2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(X2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,X2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(X2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(X2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var q=U-X;if(q>0)if(this.isSignature(U,X2.CENTRAL_FILE_HEADER));else this.reader.zero=q;else if(q<0)throw new Error("Corrupted zip: missing "+Math.abs(q)+" bytes.")},prepareReader:function(Q){this.reader=AJ(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};f9.exports=y9});var u9=J0((zG,b9)=>{var q4=N0(),w8=F1(),TJ=H1(),EJ=h9(),SJ=q5(),_9=i1();function kJ(Q){return new w8.Promise(function($,U){var X=Q.decompressed.getContentWorker().pipe(new SJ);X.on("error",function(q){U(q)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)U(new Error("Corrupted zip : CRC32 mismatch"));else $()}).resume()})}b9.exports=function(Q,$){var U=this;if($=q4.extend($||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:TJ.utf8decode}),_9.isNode&&_9.isStream(Q))return w8.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file."));return q4.prepareContent("the loaded zip file",Q,!0,$.optimizedBinaryString,$.base64).then(function(X){var q=new EJ($);return q.load(X),q}).then(function X(q){var V=[w8.Promise.resolve(q)],Y=q.files;if($.checkCRC32)for(var K=0;K<Y.length;K++)V.push(kJ(Y[K]));return w8.Promise.all(V)}).then(function X(q){var V=q.shift(),Y=V.files;for(var K=0;K<Y.length;K++){var G=Y[K],J=G.fileNameStr,B=q4.resolve(G.fileNameStr);if(U.file(B,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:$.createFolders}),!G.dir)U.file(B).unsafeOriginalName=J}if(V.zipComment.length)U.comment=V.zipComment;return U})}});var p9=J0((jG,c9)=>{function e0(){if(!(this instanceof e0))return new e0;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Q=new e0;for(var $ in this)if(typeof this[$]!=="function")Q[$]=this[$];return Q}}e0.prototype=P9();e0.prototype.loadAsync=u9();e0.support=D2();e0.defaults=$5();e0.version="3.10.1";e0.loadAsync=function(Q,$){return new e0().loadAsync(Q,$)};e0.external=F1();c9.exports=e0});var BU=J0((z4)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var JU;(function(Q){if(typeof DO_NOT_EXPORT_CRC==="undefined")if(typeof z4==="object")Q(z4);else if(typeof define==="function"&&define.amd)define(function(){var $={};return Q($),$});else Q(JU={});else Q(JU={})})(function(Q){Q.version="1.2.2";function $(){var A=0,i=new Array(256);for(var E=0;E!=256;++E)A=E,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,A=A&1?-2097792136^A>>>1:A>>>1,i[E]=A;return typeof Int32Array!=="undefined"?new Int32Array(i):i}var U=$();function X(A){var i=0,E=0,O=0,C=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(O=0;O!=256;++O)C[O]=A[O];for(O=0;O!=256;++O){E=A[O];for(i=256+O;i<4096;i+=256)E=C[i]=E>>>8^A[E&255]}var x=[];for(O=1;O!=16;++O)x[O-1]=typeof Int32Array!=="undefined"?C.subarray(O*256,O*256+256):C.slice(O*256,O*256+256);return x}var q=X(U),V=q[0],Y=q[1],K=q[2],G=q[3],J=q[4],B=q[5],Z=q[6],j=q[7],P=q[8],g=q[9],y=q[10],k=q[11],M=q[12],w=q[13],I=q[14];function F(A,i){var E=i^-1;for(var O=0,C=A.length;O<C;)E=E>>>8^U[(E^A.charCodeAt(O++))&255];return~E}function L(A,i){var E=i^-1,O=A.length-15,C=0;for(;C<O;)E=I[A[C++]^E&255]^w[A[C++]^E>>8&255]^M[A[C++]^E>>16&255]^k[A[C++]^E>>>24]^y[A[C++]]^g[A[C++]]^P[A[C++]]^j[A[C++]]^Z[A[C++]]^B[A[C++]]^J[A[C++]]^G[A[C++]]^K[A[C++]]^Y[A[C++]]^V[A[C++]]^U[A[C++]];O+=15;while(C<O)E=E>>>8^U[(E^A[C++])&255];return~E}function _(A,i){var E=i^-1;for(var O=0,C=A.length,x=0,R=0;O<C;)if(x=A.charCodeAt(O++),x<128)E=E>>>8^U[(E^x)&255];else if(x<2048)E=E>>>8^U[(E^(192|x>>6&31))&255],E=E>>>8^U[(E^(128|x&63))&255];else if(x>=55296&&x<57344)x=(x&1023)+64,R=A.charCodeAt(O++)&1023,E=E>>>8^U[(E^(240|x>>8&7))&255],E=E>>>8^U[(E^(128|x>>2&63))&255],E=E>>>8^U[(E^(128|R>>6&15|(x&3)<<4))&255],E=E>>>8^U[(E^(128|R&63))&255];else E=E>>>8^U[(E^(224|x>>12&15))&255],E=E>>>8^U[(E^(128|x>>6&63))&255],E=E>>>8^U[(E^(128|x&63))&255];return~E}Q.table=U,Q.bstr=F,Q.buf=L,Q.str=_})});var zU=R4(p9(),1);function*d9(...Q){for(let $ of Q)yield*$}function*z8(Q,$){let U=0;for(let X of Q)yield $(X,U++)}function*gJ(Q,$){let U=0;for(let X of Q)if($(X,U++))yield X}function*vJ(Q){for(let $=0;$<Q;++$)yield $}function P6(Q=0.5){return Math.random()<Q}function l9(Q,$){return Q+Math.floor(Math.random()*($-Q))}function Z8(Q){let $=Q[l9(0,Q.length)];if($===void 0)throw new Error("choices was empty in random choice");else return $}var W8;function V4(){if(W8===void 0){let Q=Math.sqrt(-2*Math.log(Math.random())),$=2*Math.PI*Math.random();return W8=Q*Math.sin($),Q*Math.cos($)}else{let Q=W8;return W8=void 0,Q}}function q2(Q=1){let $=Math.exp(-Q),U=0,X=Math.random();while(X>$)U++,X*=Math.random();return U}var m9=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function y1(Q){return Array(Q).fill(null).map(()=>m9.charAt(Math.floor(Math.random()*m9.length))).join("")}var yJ=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function fJ(Q){let $=yJ.exec(Q);if(!$)return!1;let[,U,X,q,V,Y,K]=$.map((G)=>parseInt(G,10));return U!==void 0&&X!==void 0&&q!==void 0&&V!==void 0&&Y!==void 0&&K!==void 0&&0<X&&X<=12&&q<=hJ(U,X)&&V<24&&Y<60&&K<=60}function hJ(Q,$){if($===2)return _J(Q)?29:28;return bJ[$-1]??0}function _J(Q){return Q%4===0&&(Q%100!==0||Q%400===0)}var bJ=[31,0,31,30,31,30,31,31,30,31,30,31];function j8(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var uJ={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function v1(Q){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(Q)?`.${Q}`:`["${Q}"]`}function Q2(Q){return Q===null?"null":Array.isArray(Q)?"array":typeof Q}class k0{guard(Q){for(let $ of this.pathErrors(Q))return!1;return!0}guardAssert(Q){let $=[];for(let[U,X]of this.pathErrors(Q)){let q=U.reverse().join("")||".";$.push(`${q}: ${X}`)}if($.length){let U=JSON.stringify(Q,null,2),X=JSON.stringify(this.schema(),null,2);throw new Error(`Validation errors:
|
|
4
|
+
${$.join(`
|
|
10
5
|
`)}
|
|
11
6
|
|
|
12
7
|
While trying to validate:
|
|
13
|
-
${
|
|
8
|
+
${U}
|
|
14
9
|
|
|
15
10
|
Against schema:
|
|
16
|
-
${q}`)}else return!0}}class B9 extends k0{#$;definitions;nullable=!0;constructor($){super();this.#$=$,this.definitions=$.definitions}*pathErrors($){if($!==null)for(let[V,Q]of this.#$.pathErrors($))yield[V,`${Q} or ${o0($)} is not null`]}fuzz(){return u1(0.1)?null:this.#$.fuzz()}schema(){return{...this.#$.schema(),nullable:!0}}}function C9($){return new B9($)}class DY extends k0{#$;#Q;definitions;nullable;constructor($,V){super();this.#$=$,this.#Q=V,this.definitions=$.definitions,this.nullable=$.nullable}*pathErrors($){yield*this.#$.pathErrors($)}fuzz(){return this.#$.fuzz()}schema(){return{...this.#$.schema(),metadata:this.#Q}}}class I9 extends k0{*pathErrors($){if($===void 0)yield[[],"value is undefined"]}fuzz(){return m2([()=>null,u1,B$,()=>F1(r0()),()=>Array(r0()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(r0()).fill(null).map(()=>[F1(r0(3)),this.fuzz()]))])()}schema(){return{}}}function D9(){return new I9}class w9 extends k0{*pathErrors($){if(typeof $!=="boolean")yield[[],`${o0($)} is not a boolean`]}fuzz(){return u1()}schema(){return{type:"boolean"}}}function i6(){return new w9}class p2 extends k0{#$;#Q;#V;constructor($){super();this.#$=$,[this.#Q,this.#V]=BY[$]}*pathErrors($){if(typeof $!=="number")yield[[],`${o0($)} is not a number`];else if($%1!==0)yield[[],`${$.toPrecision()} is not an integer`];else if($<this.#Q)yield[[],`${$.toFixed()} is less than ${this.#Q.toFixed()}`];else if($>=this.#V)yield[[],`${$.toFixed()} is greater than ${(this.#V-1).toFixed()}`]}fuzz(){return L9(this.#Q,this.#V)}schema(){return{type:this.#$}}}function d1(){return new p2("uint8")}function M6(){return new p2("int32")}function n6(){return new p2("uint32")}class N9 extends k0{#$;constructor($){super();this.#$=$}*pathErrors($){if(typeof $!=="number")yield[[],`${o0($)} is not number, expected a float`]}fuzz(){return B$()}schema(){return{type:this.#$}}}function v0(){return new N9("float64")}class v9 extends k0{*pathErrors($){if(typeof $!=="string")yield[[],`${o0($)} is not a string`]}fuzz(){return F1(r0(3))}schema(){return{type:"string"}}}function V0(){return new v9}class A9 extends k0{*pathErrors($){if(typeof $!=="string")yield[[],`${o0($)} is not a string`];else if(!HY($))yield[[],`${$} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function R9(){return new A9}class x9 extends k0{#$;#Q;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){if(typeof $!=="string")yield[[],`${o0($)} is not a string`];else if(!this.#Q.has($))yield[[],`${$} is not one of ${this.#$.join(", ")}`]}fuzz(){return m2(this.#$)}schema(){return{enum:[...this.#$]}}}function X6(...$){let V=new Set($);if(V.size!==$.length)throw new Error("enum can't contain duplicates");else return new x9($,V)}class T9 extends k0{#$;constructor($){super();this.#$=$}*pathErrors($){if(!Array.isArray($))yield[[],`${o0($)} is not an array`];else for(let[V,Q]of $.entries())for(let[q,K]of this.#$.pathErrors(Q))q.push(`[${V.toFixed()}]`),yield[q,K]}fuzz(){return Array(r0()).fill(null).map(()=>this.#$.fuzz())}schema(){return{elements:this.#$.schema()}}}function _0($){if($.definitions)throw new Error("definitions can only exist on a root schema");else return new T9($)}class S9 extends k0{#$;constructor($){super();this.#$=$}*pathErrors($){if(!_2($))yield[[],`${o0($)} is not a record`];else for(let[V,Q]of Object.entries($))for(let[q,K]of this.#$.pathErrors(Q))q.push(Z1(V)),yield[q,K]}fuzz(){return Object.fromEntries(Array(r0()).fill(null).map(()=>[F1(r0(3)),this.#$.fuzz()]))}schema(){return{values:this.#$.schema()}}}function l1($){if($.definitions)throw new Error("definitions can only exist on a root schema");else return new S9($)}class k9 extends k0{#$;#Q;#V;keys;constructor($,V,Q,q){super();this.#$=$,this.#Q=V,this.#V=Q,this.keys=q}*pathErrors($){if(!_2($))yield[[],`${o0($)} is not a record`];else{if(this.#$)for(let[V,Q]of this.#$){let q=$[V];if(q===void 0)yield[[],`required key '${V}' is missing`];else for(let[K,G]of Q.pathErrors(q))K.push(Z1(V)),yield[K,G]}if(this.#Q){for(let[V,Q]of this.#Q)if($[V]!==void 0)for(let[q,K]of Q.pathErrors($[V]))q.push(Z1(V)),yield[q,K]}if(!this.#V){for(let V of Object.keys($))if(!this.keys.has(V))yield[[Z1(V)],`'${V}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let $=h2(this.#$??[],([q,K])=>[q,K.fuzz()]),V=h2(CY(this.#Q??[],()=>u1()),([q,K])=>[q,K.fuzz()]),Q=this.#V?h2(IY(r0()),()=>[F1(r0(3)),m2([()=>null,u1,B$,()=>F1(r0()),()=>[],()=>({})])()]):[];return Object.fromEntries(O9($,V,Q))}schema(){let $={};if(this.#$)$.properties=Object.fromEntries(this.#$.map(([V,Q])=>[V,Q.schema()]));if(this.#Q)$.optionalProperties=Object.fromEntries(this.#Q.map(([V,Q])=>[V,Q.schema()]));if(this.#V)$.additionalProperties=!0;return $}}function wY($,V,Q){let q=new Set(h2(O9($??[],V??[]),([K])=>K));if($?.some(([,K])=>K.definitions))throw new Error("definitions can only exist on a root schema");else if(V?.some(([,K])=>K.definitions))throw new Error("definitions can only exist on a root schema");else if(q.size!==($?.length??0)+(V?.length??0))throw new Error("properties and optionalProperties keys must be unique");else return new k9($,V,Q??!1,q)}function D0($,V,Q){return wY($?Object.entries($):void 0,V?Object.entries(V):void 0,Q)}class NY extends k0{#$;#Q;#V;constructor($,V,Q){super();this.#$=$,this.#Q=V,this.#V=Q}guard($){if(!_2($))return!1;let{[this.#$]:V,...Q}=$;if(typeof V!=="string")return!1;return this.#Q[V]?.guard(Q)??!1}*pathErrors($){if(!_2($))yield[[],`${o0($)} is not an object`];else{let{[this.#$]:V,...Q}=$;if(V===void 0)yield[[],`discriminator key '${this.#$}' is missing`];else if(typeof V!=="string")yield[[Z1(this.#$)],`${o0(V)} is not a string`];else{let q=this.#Q[V];if(q===void 0)yield[[Z1(this.#$)],`'${V}' is not a valid discriminator value (${Object.keys(this.#Q).join(", ")})`];else yield*q.pathErrors(Q)}}}fuzz(){let[$,V]=m2(this.#V);return{...V.fuzz(),[this.#$]:$}}schema(){let $=Object.fromEntries(this.#V.map(([V,Q])=>[V,Q.schema()]));return{discriminator:this.#$,mapping:$}}}class g9 extends k0{#$;#Q;definitions=!0;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){yield*this.#Q.pathErrors($)}fuzz(){return this.#Q.fuzz()}schema(){let $=Object.fromEntries(Object.entries(this.#$).map(([V,Q])=>[V,Q.schema()]));return{...this.#Q.schema(),definitions:$}}}class E9 extends k0{#$;#Q;constructor($,V){super();this.#$=$,this.#Q=V}*pathErrors($){yield*this.#Q.pathErrors($)}fuzz(){return this.#Q.fuzz()}schema(){return{ref:this.#$}}}class y9{#$;#Q;constructor($,V){this.#$=$,this.#Q=V}def($,V){let Q=V(this.#Q);return new y9({...this.#$,[$]:Q},{...this.#Q,[$]:new E9($,Q)})}build($){return new g9(this.#$,$(this.#Q))}}class vY extends k0{#$;#Q;constructor($,V){super();this.#Q=$,this.#$=V}#V(){let $=this.#Q[this.#$];if($===void 0)throw new Error(`ref ${this.#$} was not in definitions after ref builder was finished`);else return $}*pathErrors($){yield*this.#V().pathErrors($)}fuzz(){return this.#V().fuzz()}schema(){return{ref:this.#$}}}var g0=[];for(let $=0;$<256;++$)g0.push(($+256).toString(16).slice(1));function b9($,V=0){return(g0[$[V+0]]+g0[$[V+1]]+g0[$[V+2]]+g0[$[V+3]]+"-"+g0[$[V+4]]+g0[$[V+5]]+"-"+g0[$[V+6]]+g0[$[V+7]]+"-"+g0[$[V+8]]+g0[$[V+9]]+"-"+g0[$[V+10]]+g0[$[V+11]]+g0[$[V+12]]+g0[$[V+13]]+g0[$[V+14]]+g0[$[V+15]]).toLowerCase()}var C$,AY=new Uint8Array(16);function I$(){if(!C$){if(typeof crypto==="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");C$=crypto.getRandomValues.bind(crypto)}return C$(AY)}var RY=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),D$={randomUUID:RY};function xY($,V,Q){if(D$.randomUUID&&!V&&!$)return D$.randomUUID();$=$||{};let q=$.random??$.rng?.()??I$();if(q.length<16)throw new Error("Random bytes length must be >= 16");if(q[6]=q[6]&15|64,q[8]=q[8]&63|128,V){if(Q=Q||0,Q<0||Q+16>V.length)throw new RangeError(`UUID byte range ${Q}:${Q+15} is out of buffer bounds`);for(let K=0;K<16;++K)V[Q+K]=q[K];return V}return b9(q)}var H1=xY;class Y6 extends Error{field;regex;constructor($,V,Q){super(Q);this.field=$,this.regex=V}}class o1 extends Error{hash;constructor($){super(`'${$}' not found in the root hash`);this.hash=$}}class w$ extends Map{#$;#Q=0;constructor($,V=[]){super();this.#$=$;for(let[Q,q]of V)this.set(Q,q)}get($){let V=super.get($);if(V!==void 0)super.delete($),super.set($,V);return V}set($,V){let Q=super.get($);if(Q===void 0)this.#Q+=$.length;else if(Q!==null)this.#Q-=Q.length;if(V!==null)this.#Q+=V.length;super.delete($);let q;while(this.#Q>this.#$&&(q=this.entries().next().value)){let[K,G]=q;if(super.delete(K),this.#Q-=K.length,G!==null)this.#Q-=G.length}return super.set($,V),this}delete($){let V=super.get($);if(V===void 0)return!1;if(super.delete($),V!==null)this.#Q-=V.length;return this.#Q-=$.length,!0}clear(){super.clear(),this.#Q=0}}var c2=kY;var K6=[],A$=[];var N$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(x6=0,v$=N$.length;x6<v$;++x6)K6[x6]=N$[x6],A$[N$.charCodeAt(x6)]=x6;var x6,v$;A$[45]=62;A$[95]=63;function TY($){return K6[$>>18&63]+K6[$>>12&63]+K6[$>>6&63]+K6[$&63]}function SY($,V,Q){var q,K=[];for(var G=V;G<Q;G+=3)q=($[G]<<16&16711680)+($[G+1]<<8&65280)+($[G+2]&255),K.push(TY(q));return K.join("")}function kY($){var V,Q=$.length,q=Q%3,K=[],G=16383;for(var U=0,J=Q-q;U<J;U+=G)K.push(SY($,U,U+G>J?J:U+G));if(q===1)V=$[Q-1],K.push(K6[V>>2]+K6[V<<4&63]+"==");else if(q===2)V=($[Q-2]<<8)+$[Q-1],K.push(K6[V>>10]+K6[V>>4&63]+K6[V<<2&63]+"=");return K.join("")}var m9=y$(h9(),1);var u2=/^[0-9a-f]{64}$/,p9=D0({name:V0(),timestamp:v0()},void 0,!0),gY=D0({name:V0(),pageId:V0(),timestamp:v0()},void 0,!0),EY=D0(void 0,{authors:_0(V0()),title:V0(),publicationDate:V0(),publisher:V0()},!0),yY=D0({id:V0(),idx:D0({timestamp:V0(),value:V0()},void 0,!0)},{template:D0({timestamp:V0(),value:V0()},void 0,!0),redir:D0({timestamp:V0(),value:M6()},void 0,!0),scrollTime:D0({timestamp:V0(),value:R9()},void 0,!0),verticalScroll:D0({timestamp:V0(),value:v0()},void 0,!0),deleted:D0({timestamp:V0(),value:M6()},void 0,!0)},!0),bY=D0({lastOpened:D0({timestamp:V0(),value:V0()},void 0,!0),original:D0({timestamp:V0(),value:M6()},void 0,!0),pages:_0(yY),uuids:_0(D0({first:V0(),second:n6()},void 0,!0))},void 0,!0),fY=D0(void 0,{tags:_0(p9)}),hY=D0({coverPageNumber:M6(),documentMetadata:EY,extraMetadata:l1(V0()),fileType:X6("epub","notebook","pdf"),fontName:V0(),lineHeight:M6(),orientation:X6("portrait","landscape"),pageCount:n6(),sizeInBytes:V0(),textAlignment:X6("justify","left"),textScale:v0()},{cPages:bY,customZoomCenterX:v0(),customZoomCenterY:v0(),customZoomOrientation:X6("portrait","landscape"),customZoomPageHeight:v0(),customZoomPageWidth:v0(),customZoomScale:v0(),dummyDocument:i6(),formatVersion:d1(),keyboardMetadata:D0({count:n6(),timestamp:v0()},void 0,!0),lastOpenedPage:n6(),margins:n6(),originalPageCount:M6(),pages:_0(V0()),pageTags:_0(gY),redirectionPageMap:_0(M6()),tags:_0(p9),transform:D0({m11:v0(),m12:v0(),m13:v0(),m21:v0(),m22:v0(),m23:v0(),m31:v0(),m32:v0(),m33:v0()},void 0,!0),viewBackgroundFilter:X6("off","fullpage"),zoomMode:X6("bestFit","customFit","fitToHeight","fitToWidth")},!0),_Y=D0({name:V0(),author:V0(),iconData:V0(),categories:_0(V0()),labels:_0(V0()),orientation:X6("portrait","landscape"),templateVersion:V0(),supportedScreens:_0(X6("rm2","rmPP")),constants:_0(l1(M6())),items:_0(D9())},{formatVersion:d1()}),mY=D0({lastModified:V0(),parent:V0(),pinned:i6(),type:X6("DocumentType","CollectionType","TemplateType"),visibleName:V0()},{lastOpened:V0(),lastOpenedPage:n6(),createdTime:V0(),deleted:i6(),metadatamodified:i6(),modified:i6(),synced:i6(),version:d1()},!0),pY=D0({hash:V0(),generation:v0()},void 0,!0),cY=D0({hash:V0(),generation:v0(),schemaVersion:d1()},void 0,!0),uY=D0({docID:V0(),hash:V0()},void 0,!0);async function _9($){let V=await crypto.subtle.digest("SHA-256",$);return[...new Uint8Array(V)].map((Q)=>Q.toString(16).padStart(2,"0")).join("")}class x${#$;#Q;#V;#q;constructor($,V,Q,q){this.#$=$,this.#q=V,this.#Q=Q,this.#V=q}async getRootHash(){let V=await(await this.#$("GET",`${this.#Q}/sync/v4/root`)).text(),Q=JSON.parse(V);if(!cY.guardAssert(Q))throw Error("invalid root hash");let{hash:q,generation:K,schemaVersion:G}=Q;if(G!==3)throw new Error(`schema version ${G} not supported`);else if(!Number.isSafeInteger(K))throw new Error(`generation ${K} was not a safe integer; please file a bug report`);else return[q,K]}async#X($){if(!u2.test($))throw new Y6($,u2,"hash was not a valid hash");let Q=await(await this.#$("GET",`${this.#Q}/sync/v3/files/${$}`)).arrayBuffer();return new Uint8Array(Q)}async getHash($){let V=this.#q.get($);if(V!=null)return new TextEncoder().encode(V);else{let Q=await this.#X($);if(this.#q.get($)===void 0)this.#q.set($,null);return Q}}async getText($){let V=this.#q.get($);if(V!=null)return V;else{let Q=await this.#X($),K=new TextDecoder().decode(Q);return this.#q.set($,K),K}}async getEntries($){let V=await this.getText($),[Q,...q]=V.slice(0,-1).split(`
|
|
17
|
-
`);if(
|
|
18
|
-
${
|
|
11
|
+
${X}`)}else return!0}}class i9 extends k0{#Q;definitions;nullable=!0;constructor(Q){super();this.#Q=Q,this.definitions=Q.definitions}*pathErrors(Q){if(Q!==null)for(let[$,U]of this.#Q.pathErrors(Q))yield[$,`${U} or ${Q2(Q)} is not null`]}fuzz(){return P6(0.1)?null:this.#Q.fuzz()}schema(){return{...this.#Q.schema(),nullable:!0}}}function P8(Q){return new i9(Q)}class cJ extends k0{#Q;#$;definitions;nullable;constructor(Q,$){super();this.#Q=Q,this.#$=$,this.definitions=Q.definitions,this.nullable=Q.nullable}*pathErrors(Q){yield*this.#Q.pathErrors(Q)}fuzz(){return this.#Q.fuzz()}schema(){return{...this.#Q.schema(),metadata:this.#$}}}class n9 extends k0{*pathErrors(Q){if(Q===void 0)yield[[],"value is undefined"]}fuzz(){return Z8([()=>null,P6,V4,()=>y1(q2()),()=>Array(q2()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(q2()).fill(null).map(()=>[y1(q2(3)),this.fuzz()]))])()}schema(){return{}}}function o9(){return new n9}class r9 extends k0{*pathErrors(Q){if(typeof Q!=="boolean")yield[[],`${Q2(Q)} is not a boolean`]}fuzz(){return P6()}schema(){return{type:"boolean"}}}function G1(){return new r9}class F8 extends k0{#Q;#$;#U;constructor(Q){super();this.#Q=Q,[this.#$,this.#U]=uJ[Q]}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${Q2(Q)} is not a number`];else if(Q%1!==0)yield[[],`${Q.toPrecision()} is not an integer`];else if(Q<this.#$)yield[[],`${Q.toFixed()} is less than ${this.#$.toFixed()}`];else if(Q>=this.#U)yield[[],`${Q.toFixed()} is greater than ${(this.#U-1).toFixed()}`]}fuzz(){return l9(this.#$,this.#U)}schema(){return{type:this.#Q}}}function F6(){return new F8("uint8")}function V2(){return new F8("int32")}function I6(){return new F8("uint32")}class a9 extends k0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${Q2(Q)} is not number, expected a float`]}fuzz(){return V4()}schema(){return{type:this.#Q}}}function A0(){return new a9("float64")}class s9 extends k0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${Q2(Q)} is not a string`]}fuzz(){return y1(q2(3))}schema(){return{type:"string"}}}function j0(){return new s9}class t9 extends k0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${Q2(Q)} is not a string`];else if(!fJ(Q))yield[[],`${Q} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function e9(){return new t9}class QU extends k0{#Q;#$;constructor(Q,$){super();this.#Q=Q,this.#$=$}*pathErrors(Q){if(typeof Q!=="string")yield[[],`${Q2(Q)} is not a string`];else if(!this.#$.has(Q))yield[[],`${Q} is not one of ${this.#Q.join(", ")}`]}fuzz(){return Z8(this.#Q)}schema(){return{enum:[...this.#Q]}}}function P2(...Q){let $=new Set(Q);if($.size!==Q.length)throw new Error("enum can't contain duplicates");else return new QU(Q,$)}class $U extends k0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!Array.isArray(Q))yield[[],`${Q2(Q)} is not an array`];else for(let[$,U]of Q.entries())for(let[X,q]of this.#Q.pathErrors(U))X.push(`[${$.toFixed()}]`),yield[X,q]}fuzz(){return Array(q2()).fill(null).map(()=>this.#Q.fuzz())}schema(){return{elements:this.#Q.schema()}}}function m0(Q){if(Q.definitions)throw new Error("definitions can only exist on a root schema");else return new $U(Q)}class UU extends k0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!j8(Q))yield[[],`${Q2(Q)} is not a record`];else for(let[$,U]of Object.entries(Q))for(let[X,q]of this.#Q.pathErrors(U))X.push(v1($)),yield[X,q]}fuzz(){return Object.fromEntries(Array(q2()).fill(null).map(()=>[y1(q2(3)),this.#Q.fuzz()]))}schema(){return{values:this.#Q.schema()}}}function M6(Q){if(Q.definitions)throw new Error("definitions can only exist on a root schema");else return new UU(Q)}class XU extends k0{#Q;#$;#U;keys;constructor(Q,$,U,X){super();this.#Q=Q,this.#$=$,this.#U=U,this.keys=X}*pathErrors(Q){if(!j8(Q))yield[[],`${Q2(Q)} is not a record`];else{if(this.#Q)for(let[$,U]of this.#Q){let X=Q[$];if(X===void 0)yield[[],`required key '${$}' is missing`];else for(let[q,V]of U.pathErrors(X))q.push(v1($)),yield[q,V]}if(this.#$){for(let[$,U]of this.#$)if(Q[$]!==void 0)for(let[X,q]of U.pathErrors(Q[$]))X.push(v1($)),yield[X,q]}if(!this.#U){for(let $ of Object.keys(Q))if(!this.keys.has($))yield[[v1($)],`'${$}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let Q=z8(this.#Q??[],([X,q])=>[X,q.fuzz()]),$=z8(gJ(this.#$??[],()=>P6()),([X,q])=>[X,q.fuzz()]),U=this.#U?z8(vJ(q2()),()=>[y1(q2(3)),Z8([()=>null,P6,V4,()=>y1(q2()),()=>[],()=>({})])()]):[];return Object.fromEntries(d9(Q,$,U))}schema(){let Q={};if(this.#Q)Q.properties=Object.fromEntries(this.#Q.map(([$,U])=>[$,U.schema()]));if(this.#$)Q.optionalProperties=Object.fromEntries(this.#$.map(([$,U])=>[$,U.schema()]));if(this.#U)Q.additionalProperties=!0;return Q}}function pJ(Q,$,U){let X=new Set(z8(d9(Q??[],$??[]),([q])=>q));if(Q?.some(([,q])=>q.definitions))throw new Error("definitions can only exist on a root schema");else if($?.some(([,q])=>q.definitions))throw new Error("definitions can only exist on a root schema");else if(X.size!==(Q?.length??0)+($?.length??0))throw new Error("properties and optionalProperties keys must be unique");else return new XU(Q,$,U??!1,X)}function C0(Q,$,U){return pJ(Q?Object.entries(Q):void 0,$?Object.entries($):void 0,U)}class mJ extends k0{#Q;#$;#U;constructor(Q,$,U){super();this.#Q=Q,this.#$=$,this.#U=U}guard(Q){if(!j8(Q))return!1;let{[this.#Q]:$,...U}=Q;if(typeof $!=="string")return!1;return this.#$[$]?.guard(U)??!1}*pathErrors(Q){if(!j8(Q))yield[[],`${Q2(Q)} is not an object`];else{let{[this.#Q]:$,...U}=Q;if($===void 0)yield[[],`discriminator key '${this.#Q}' is missing`];else if(typeof $!=="string")yield[[v1(this.#Q)],`${Q2($)} is not a string`];else{let X=this.#$[$];if(X===void 0)yield[[v1(this.#Q)],`'${$}' is not a valid discriminator value (${Object.keys(this.#$).join(", ")})`];else yield*X.pathErrors(U)}}}fuzz(){let[Q,$]=Z8(this.#U);return{...$.fuzz(),[this.#Q]:Q}}schema(){let Q=Object.fromEntries(this.#U.map(([$,U])=>[$,U.schema()]));return{discriminator:this.#Q,mapping:Q}}}class qU extends k0{#Q;#$;definitions=!0;constructor(Q,$){super();this.#Q=Q,this.#$=$}*pathErrors(Q){yield*this.#$.pathErrors(Q)}fuzz(){return this.#$.fuzz()}schema(){let Q=Object.fromEntries(Object.entries(this.#Q).map(([$,U])=>[$,U.schema()]));return{...this.#$.schema(),definitions:Q}}}class VU extends k0{#Q;#$;constructor(Q,$){super();this.#Q=Q,this.#$=$}*pathErrors(Q){yield*this.#$.pathErrors(Q)}fuzz(){return this.#$.fuzz()}schema(){return{ref:this.#Q}}}class YU{#Q;#$;constructor(Q,$){this.#Q=Q,this.#$=$}def(Q,$){let U=$(this.#$);return new YU({...this.#Q,[Q]:U},{...this.#$,[Q]:new VU(Q,U)})}build(Q){return new qU(this.#Q,Q(this.#$))}}class dJ extends k0{#Q;#$;constructor(Q,$){super();this.#$=Q,this.#Q=$}#U(){let Q=this.#$[this.#Q];if(Q===void 0)throw new Error(`ref ${this.#Q} was not in definitions after ref builder was finished`);else return Q}*pathErrors(Q){yield*this.#U().pathErrors(Q)}fuzz(){return this.#U().fuzz()}schema(){return{ref:this.#Q}}}var g0=[];for(let Q=0;Q<256;++Q)g0.push((Q+256).toString(16).slice(1));function KU(Q,$=0){return(g0[Q[$+0]]+g0[Q[$+1]]+g0[Q[$+2]]+g0[Q[$+3]]+"-"+g0[Q[$+4]]+g0[Q[$+5]]+"-"+g0[Q[$+6]]+g0[Q[$+7]]+"-"+g0[Q[$+8]]+g0[Q[$+9]]+"-"+g0[Q[$+10]]+g0[Q[$+11]]+g0[Q[$+12]]+g0[Q[$+13]]+g0[Q[$+14]]+g0[Q[$+15]]).toLowerCase()}var Y4,lJ=new Uint8Array(16);function K4(){if(!Y4){if(typeof crypto==="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Y4=crypto.getRandomValues.bind(crypto)}return Y4(lJ)}var iJ=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),J4={randomUUID:iJ};function nJ(Q,$,U){Q=Q||{};let X=Q.random??Q.rng?.()??K4();if(X.length<16)throw new Error("Random bytes length must be >= 16");if(X[6]=X[6]&15|64,X[8]=X[8]&63|128,$){if(U=U||0,U<0||U+16>$.length)throw new RangeError(`UUID byte range ${U}:${U+15} is out of buffer bounds`);for(let q=0;q<16;++q)$[U+q]=X[q];return $}return KU(X)}function oJ(Q,$,U){if(J4.randomUUID&&!$&&!Q)return J4.randomUUID();return nJ(Q,$,U)}var f1=oJ;class F2 extends Error{field;regex;constructor(Q,$,U){super(U);this.field=Q,this.regex=$}}class H6 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class B4 extends Map{#Q;#$=0;constructor(Q,$=[]){super();this.#Q=Q;for(let[U,X]of $)this.set(U,X)}get(Q){let $=super.get(Q);if($!==void 0)super.delete(Q),super.set(Q,$);return $}set(Q,$){let U=super.get(Q);if(U===void 0)this.#$+=Q.length;else if(U!==null)this.#$-=U.length;if($!==null)this.#$+=$.length;super.delete(Q);let X;while(this.#$>this.#Q&&(X=this.entries().next().value)){let[q,V]=X;if(super.delete(q),this.#$-=q.length,V!==null)this.#$-=V.length}return super.set(Q,$),this}delete(Q){let $=super.get(Q);if($===void 0)return!1;if(super.delete(Q),$!==null)this.#$-=$.length;return this.#$-=Q.length,!0}clear(){super.clear(),this.#$=0}}var I8=sJ;var I2=[],W4=[];var G4="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(m2=0,w4=G4.length;m2<w4;++m2)I2[m2]=G4[m2],W4[G4.charCodeAt(m2)]=m2;var m2,w4;W4[45]=62;W4[95]=63;function rJ(Q){return I2[Q>>18&63]+I2[Q>>12&63]+I2[Q>>6&63]+I2[Q&63]}function aJ(Q,$,U){var X,q=[];for(var V=$;V<U;V+=3)X=(Q[V]<<16&16711680)+(Q[V+1]<<8&65280)+(Q[V+2]&255),q.push(rJ(X));return q.join("")}function sJ(Q){var $,U=Q.length,X=U%3,q=[],V=16383;for(var Y=0,K=U-X;Y<K;Y+=V)q.push(aJ(Q,Y,Y+V>K?K:Y+V));if(X===1)$=Q[U-1],q.push(I2[$>>2]+I2[$<<4&63]+"==");else if(X===2)$=(Q[U-2]<<8)+Q[U-1],q.push(I2[$>>10]+I2[$>>4&63]+I2[$<<2&63]+"=");return q.join("")}var wU=R4(BU(),1);var M8=/^[0-9a-f]{64}$/,WU=C0({name:j0(),timestamp:A0()},void 0,!0),tJ=C0({name:j0(),pageId:j0(),timestamp:A0()},void 0,!0),eJ=C0(void 0,{authors:m0(j0()),title:j0(),publicationDate:j0(),publisher:j0()},!0),QB=C0({id:j0(),idx:C0({timestamp:j0(),value:j0()},void 0,!0)},{template:C0({timestamp:j0(),value:j0()},void 0,!0),redir:C0({timestamp:j0(),value:V2()},void 0,!0),scrollTime:C0({timestamp:j0(),value:e9()},void 0,!0),verticalScroll:C0({timestamp:j0(),value:A0()},void 0,!0),deleted:C0({timestamp:j0(),value:V2()},void 0,!0)},!0),$B=C0({lastOpened:C0({timestamp:j0(),value:j0()},void 0,!0),original:C0({timestamp:j0(),value:V2()},void 0,!0),pages:m0(QB),uuids:m0(C0({first:j0(),second:I6()},void 0,!0))},void 0,!0),UB=C0(void 0,{tags:m0(WU)}),XB=C0({coverPageNumber:V2(),documentMetadata:eJ,extraMetadata:M6(j0()),fileType:P2("epub","notebook","pdf"),fontName:j0(),lineHeight:V2(),orientation:P2("portrait","landscape"),pageCount:I6(),sizeInBytes:j0(),textAlignment:P2("","justify","left"),textScale:A0()},{cPages:$B,customZoomCenterX:A0(),customZoomCenterY:A0(),customZoomOrientation:P2("portrait","landscape"),customZoomPageHeight:A0(),customZoomPageWidth:A0(),customZoomScale:A0(),dummyDocument:G1(),formatVersion:F6(),keyboardMetadata:C0({count:I6(),timestamp:A0()},void 0,!0),lastOpenedPage:V2(),margins:I6(),originalPageCount:V2(),pages:P8(m0(j0())),pageTags:m0(tJ),redirectionPageMap:m0(V2()),tags:m0(WU),transform:C0({m11:A0(),m12:A0(),m13:A0(),m21:A0(),m22:A0(),m23:A0(),m31:A0(),m32:A0(),m33:A0()},void 0,!0),viewBackgroundFilter:P2("off","fullpage"),zoomMode:P2("bestFit","customFit","fitToHeight","fitToWidth")},!0),qB=C0({name:j0(),author:j0(),iconData:j0(),categories:m0(j0()),labels:m0(j0()),orientation:P2("portrait","landscape"),templateVersion:j0(),supportedScreens:m0(P2("rm2","rmPP")),constants:m0(M6(V2())),items:m0(o9())},{formatVersion:F6()}),VB=C0({lastModified:j0(),parent:j0(),pinned:G1(),type:P2("DocumentType","CollectionType","TemplateType"),visibleName:j0()},{lastOpened:j0(),lastOpenedPage:V2(),createdTime:j0(),deleted:G1(),metadatamodified:G1(),modified:G1(),synced:G1(),version:F6()},!0),YB=C0({hash:j0(),generation:A0()},void 0,!0),KB=C0({hash:j0(),generation:A0(),schemaVersion:F6()},void 0,!0),JB=C0({docID:j0(),hash:j0()},void 0,!0);async function GU(Q){let $=await crypto.subtle.digest("SHA-256",Q);return[...new Uint8Array($)].map((U)=>U.toString(16).padStart(2,"0")).join("")}class j4{#Q;#$;#U;#X;constructor(Q,$,U,X){this.#Q=Q,this.#X=$,this.#$=U,this.#U=X}async getRootHash(){let $=await(await this.#Q("GET",`${this.#$}/sync/v4/root`)).text(),U=JSON.parse($);if(!KB.guardAssert(U))throw Error("invalid root hash");let{hash:X,generation:q,schemaVersion:V}=U;if(V!==3)throw new Error(`schema version ${V} not supported`);else if(!Number.isSafeInteger(q))throw new Error(`generation ${q} was not a safe integer; please file a bug report`);else return[X,q]}async#q(Q){if(!M8.test(Q))throw new F2(Q,M8,"hash was not a valid hash");let U=await(await this.#Q("GET",`${this.#$}/sync/v3/files/${Q}`)).arrayBuffer();return new Uint8Array(U)}async getHash(Q){let $=this.#X.get(Q);if($!=null)return new TextEncoder().encode($);else{let U=await this.#q(Q);if(this.#X.get(Q)===void 0)this.#X.set(Q,null);return U}}async getText(Q){let $=this.#X.get(Q);if($!=null)return $;else{let U=await this.#q(Q),q=new TextDecoder().decode(U);return this.#X.set(Q,q),q}}async getEntries(Q){let $=await this.getText(Q),[U,...X]=$.slice(0,-1).split(`
|
|
12
|
+
`);if(U!=="3")throw new Error(`schema version ${U} not supported`);else return X.map((q)=>{let[V,Y,K,G,J]=q.split(":");if(V===void 0||Y===void 0||K===void 0||G===void 0||J===void 0)throw new Error(`line '${q}' was not formatted correctly`);else if(Y==="80000000")return{hash:V,type:80000000,id:K,subfiles:parseInt(G,10),size:parseInt(J,10)};else if(Y==="0"&&G==="0")return{hash:V,type:0,id:K,subfiles:0,size:parseInt(J,10)};else throw new Error(`line '${q}' was not formatted correctly`)})}async getContent(Q){let $=await this.getText(Q),U=JSON.parse($),X=[];for(let[V,Y]of[["collection",UB],["template",qB],["document",XB]])try{if(Y.guardAssert(U))return U}catch(K){let G=K instanceof Error?K.message:"unknown error type";X.push(`Couldn't validate as ${V} because:
|
|
13
|
+
${G}`)}let q=X.join(`
|
|
19
14
|
|
|
20
15
|
or
|
|
21
16
|
|
|
22
|
-
`);throw new Error(`invalid content: ${
|
|
23
|
-
`];for(let{hash:
|
|
24
|
-
`);let
|
|
25
|
-
`)throw new
|
|
26
|
-
`),this.raw.putFile(`${
|
|
17
|
+
`);throw new Error(`invalid content: ${q}`)}async getMetadata(Q){let $=await this.getText(Q),U=JSON.parse($);if(!VB.guardAssert(U))throw Error("invalid metadata");return U}async putRootHash(Q,$,U=!0){if(!Number.isSafeInteger($))throw new Error(`generation ${$} was not a safe integer`);else if(!M8.test(Q))throw new F2(Q,M8,"rootHash was not a valid hash");let X=JSON.stringify({hash:Q,generation:$,broadcast:U}),V=await(await this.#Q("PUT",`${this.#$}/sync/v3/root`,{body:X})).text(),Y=JSON.parse(V);if(!YB.guardAssert(Y))throw Error("invalid root hash");let{hash:K,generation:G}=Y;if(Number.isSafeInteger(G))return[K,G];else throw new Error(`new generation ${G} was not a safe integer; please file a bug report`)}async#V(Q,$,U){if(!this.#X.has(Q)){let X=wU.default.buf(U,0),q=new ArrayBuffer(4);new DataView(q).setInt32(0,X,!1);let V=I8(new Uint8Array(q));if(await this.#Q("PUT",`${this.#$}/sync/v3/files/${Q}`,{body:U,headers:{"rm-filename":$,"x-goog-hash":`crc32c=${V}`}}),this.#X.get(Q)===void 0)this.#X.set(Q,null)}}async putFile(Q,$){let U=await GU($);return[{id:Q,hash:U,type:0,subfiles:0,size:$.length},this.#V(U,Q,$)]}async putText(Q,$){let X=new TextEncoder().encode($),[q,V]=await this.putFile(Q,X);return[q,V.then(()=>{this.#X.set(q.hash,$)})]}async putContent(Q,$){if(!Q.endsWith(".content"))throw new Error(`id ${Q} did not end with '.content'`);else return await this.putText(Q,JSON.stringify($))}async putMetadata(Q,$){if(!Q.endsWith(".metadata"))throw new Error(`id ${Q} did not end with '.metadata'`);else return await this.putText(Q,JSON.stringify($))}async putEntries(Q,$){$.sort((G,J)=>G.id.localeCompare(J.id));let U=new Uint8Array($.length*32);for(let[G,{hash:J}]of $.entries())for(let[B,Z]of(J.match(/../g)??[]).entries())U[G*32+B]=parseInt(Z,16);let X=await GU(U),q=$.reduce((G,J)=>G+J.size,0),V=[`3
|
|
18
|
+
`];for(let{hash:G,type:J,id:B,subfiles:Z,size:j}of $)V.push(`${G}:${J}:${B}:${Z}:${j}
|
|
19
|
+
`);let Y={id:Q,hash:X,type:80000000,subfiles:$.length,size:q},K=new TextEncoder;return[Y,this.#V(X,`${Q}.docSchema`,K.encode(V.join("")))]}async uploadFile(Q,$,U){let q=I8(new TextEncoder().encode(JSON.stringify({file_name:Q}))),Y=await(await this.#Q("POST",`${this.#U}/doc/v2/files`,{body:$,headers:{"Content-Type":U,"rm-meta":q,"rm-source":"RoR-Browser"}})).json();if(!JB.guardAssert(Y))throw Error("invalid upload response");let{docID:K,hash:G}=Y;return{id:K,hash:G}}dumpCache(){return JSON.stringify(Object.fromEntries(this.#X))}clearCache(){this.#X.clear()}}var jU="https://webapp-prod.cloud.remarkable.engineering",BB="https://eu.tectonic.remarkable.com",GB="https://internal.cloud.remarkable.com",d2=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class Z4 extends Error{constructor(){super("root generation was stale; try put again")}}class P4 extends Error{status;statusText;constructor(Q,$,U){super(U);this.status=Q,this.statusText=$}}async function _G(Q,{deviceDesc:$="browser-chrome",uuid:U=f1(),authHost:X=jU}={}){if(Q.length!==8)throw new Error(`code should be length 8, but was ${Q.length}`);let q=await fetch(`${X}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:Q,deviceDesc:$,deviceID:U})});if(!q.ok)throw new P4(q.status,q.statusText,"couldn't register api");else return await q.text()}class ZU{#Q;#$;raw;#U;constructor(Q,$,U,X){this.#Q=Q,this.#$=X,this.raw=new j4((q,V,{body:Y,headers:K}={})=>this.#V(V,{method:q,body:Y,headers:K}),X,$,U)}async#X(Q=!1){if(Q||this.#U===void 0)this.#U=await this.raw.getRootHash();return this.#U}async#q(Q,$){try{this.#U=await this.raw.putRootHash(Q,$)}catch(U){if(U instanceof Z4)this.#U=void 0;throw U}}async#V(Q,{body:$,method:U="POST",headers:X={}}){let q=await fetch(Q,{method:U,headers:{Authorization:`Bearer ${this.#Q}`,...X},body:$});if(!q.ok){let V=await q.text();if(V===`{"message":"precondition failed"}
|
|
20
|
+
`)throw new Z4;else throw new P4(q.status,q.statusText,`failed reMarkable request: ${V}`)}else return q}async#G({hash:Q,id:$}){let U=await this.raw.getEntries(Q),X=U.find((P)=>P.id.endsWith(".metadata")),q=U.find((P)=>P.id.endsWith(".content"));if(X===void 0)throw new Error(`couldn't find metadata for hash ${Q}`);let[{visibleName:V,lastModified:Y,pinned:K,parent:G,lastOpened:J,new:B,source:Z},j]=await Promise.all([this.raw.getMetadata(X.hash),q===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(q.hash)]);if("templateVersion"in j)return{id:$,hash:Q,visibleName:V,lastModified:Y,new:B,pinned:K,source:Z,parent:G,type:"TemplateType"};else if(j.fileType===void 0)return{id:$,hash:Q,visibleName:V,lastModified:Y,pinned:K,parent:G,tags:j.tags,type:"CollectionType"};else return{id:$,hash:Q,visibleName:V,lastModified:Y,pinned:K,parent:G,tags:j.tags,lastOpened:J??"",fileType:j.fileType,type:"DocumentType"}}async listItems(Q=!1){let $=await this.listIds(Q);return await Promise.all($.map((U)=>this.#G(U)))}async listIds(Q=!1){let[$]=await this.#X(Q);return(await this.raw.getEntries($)).map(({id:X,hash:q})=>({id:X,hash:q}))}async getContent(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".content"));if(U===void 0)throw new Error(`couldn't find contents for hash ${Q}`);else return await this.raw.getContent(U.hash)}async getMetadata(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".metadata"));if(U===void 0)throw new Error(`couldn't find metadata for hash ${Q}`);else return await this.raw.getMetadata(U.hash)}async getPdf(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".pdf"));if(U===void 0)throw new Error(`couldn't find pdf for hash ${Q}`);else return await this.raw.getHash(U.hash)}async getEpub(Q){let $=await this.raw.getEntries(Q),[U]=$.filter((X)=>X.id.endsWith(".epub"));if(U===void 0)throw new Error(`couldn't find epub for hash ${Q}`);else return await this.raw.getHash(U.hash)}async getDocument(Q){let $=await this.raw.getEntries(Q),U=new zU.default;for(let X of $)U.file(X.id,this.raw.getHash(X.hash));return U.generateAsync({type:"uint8array"})}async#J(Q,$,U,{refresh:X,parent:q="",pinned:V=!1,zoomMode:Y="bestFit",viewBackgroundFilter:K,textScale:G=1,textAlignment:J="justify",fontName:B="",coverPageNumber:Z=-1,authors:j,title:P,publicationDate:g,publisher:y,extraMetadata:k={},lineHeight:M=-1,margins:w=125,orientation:I="portrait",tags:F}){if(q&&!d2.test(q))throw new F2(q,d2,"parent must be a valid document id");let L=f1(),_=new Date,A={parent:q,pinned:V,lastModified:(+_).toFixed(),createdTime:(+_).toFixed(),type:"DocumentType",visibleName:Q,lastOpened:"0",lastOpenedPage:0},i={coverPageNumber:Z,documentMetadata:{authors:j,title:P,publicationDate:g,publisher:y},extraMetadata:k,lineHeight:M,margins:w,orientation:I,fileType:$,formatVersion:1,tags:F?.map((U0)=>({name:U0,timestamp:+_}))??[],fontName:B,textAlignment:J,textScale:G,zoomMode:Y,viewBackgroundFilter:K,originalPageCount:1,pageCount:1,pageTags:[],pages:[f1()],redirectionPageMap:[0],sizeInBytes:U.length.toFixed()},[[E,O],[C,x],[R,v],[T,n],[e,X0]]=await Promise.all([this.raw.putContent(`${L}.content`,i),this.raw.putMetadata(`${L}.metadata`,A),this.raw.putText(`${L}.pagedata`,`
|
|
21
|
+
`),this.raw.putFile(`${L}.${$}`,U),this.#X(X)]),[[W0,u],Y0]=await Promise.all([this.raw.putEntries(L,[E,C,R,T]),this.raw.getEntries(e)]);Y0.push(W0);let[H,m]=await this.raw.putEntries("root",Y0);return await Promise.all([O,x,v,n,u,m]),await this.#q(H.hash,X0),{id:L,hash:W0.hash}}async putPdf(Q,$,U={}){return await this.#J(Q,"pdf",$,U)}async putEpub(Q,$,U={}){return await this.#J(Q,"epub",$,U)}async putFolder(Q,{parent:$=""}={},U=!1){if($&&!d2.test($))throw new F2($,d2,"parent must be a valid document id");let X=f1(),q=new Date,V={tags:[]},Y={lastModified:(+q).toFixed(),createdTime:(+q).toFixed(),parent:$,pinned:!1,type:"CollectionType",visibleName:Q},[[K,G],[J,B],[Z,j]]=await Promise.all([this.raw.putContent(`${X}.content`,V),this.raw.putMetadata(`${X}.metadata`,Y),this.#X(U)]),[[P,g],y]=await Promise.all([this.raw.putEntries(X,[K,J]),this.raw.getEntries(Z)]);y.push(P);let[k,M]=await this.raw.putEntries("root",y);return await Promise.all([G,B,g,M]),await this.#q(k.hash,j),{id:X,hash:P.hash}}async uploadEpub(Q,$){return await this.raw.uploadFile(Q,$,"application/epub+zip")}async uploadPdf(Q,$){return await this.raw.uploadFile(Q,$,"application/pdf")}async uploadFolder(Q){return await this.raw.uploadFile(Q,new Uint8Array(0),"folder")}async#w(Q,$,U){let X=await this.raw.getEntries($),q=X.findIndex((j)=>j.id.endsWith(".content")),V=X[q];if(V===void 0)throw new Error("internal error: couldn't find content in entry hash");let Y=await this.raw.getContent(V.hash);Object.assign(Y,U);let[K,G]=await this.raw.putContent(V.id,Y);X[q]=K;let[J,B]=await this.raw.putEntries(Q,X),Z=Promise.all([G,B]);return[J,Z]}async#Y(Q,$,U,X){let[q,V]=await this.#X(X),Y=await this.raw.getEntries(q),K=Y.findIndex((g)=>g.hash===Q),G=Y[K];if(G===void 0)throw new H6(Q);let[[J,B],Z]=await Promise.all([this.#w(G.id,Q,$),this.getMetadata(Q)]);if(Z.type!==U)throw new Error(`expected type ${U} but got ${Z.type} for hash ${Q}`);Y[K]=J;let[j,P]=await this.raw.putEntries("root",Y);return await Promise.all([B,P]),await this.#q(j.hash,V),{hash:J.hash}}async updateDocument(Q,$,U=!1){return await this.#Y(Q,$,"DocumentType",U)}async updateCollection(Q,$,U=!1){return await this.#Y(Q,$,"CollectionType",U)}async updateTemplate(Q,$,U=!1){return await this.#Y(Q,$,"TemplateType",U)}async#B(Q,$,U){let X=await this.raw.getEntries($),q=X.findIndex((j)=>j.id.endsWith(".metadata")),V=X[q];if(V===void 0)throw new Error("internal error: couldn't find metadata in entry hash");let Y=await this.raw.getMetadata(V.hash);Object.assign(Y,U);let[K,G]=await this.raw.putMetadata(V.id,Y);X[q]=K;let[J,B]=await this.raw.putEntries(Q,X),Z=Promise.all([G,B]);return[J,Z]}async#K(Q,$,U=!1){let[X,q]=await this.#X(U),V=await this.raw.getEntries(X),Y=V.findIndex((j)=>j.hash===Q),K=V[Y];if(K===void 0)throw new H6(Q);let[G,J]=await this.#B(K.id,Q,$);V[Y]=G;let[B,Z]=await this.raw.putEntries("root",V);return await Promise.all([J,Z]),await this.#q(B.hash,q),{hash:G.hash}}async move(Q,$,U=!1){if(!d2.test($))throw new F2($,d2,"parent must be a valid document id");return await this.#K(Q,{parent:$},U)}async delete(Q,$=!1){return await this.move(Q,"trash",$)}async rename(Q,$,U=!1){return await this.#K(Q,{visibleName:$},U)}async stared(Q,$,U=!1){return await this.#K(Q,{pinned:$},U)}async bulkMove(Q,$,U=!1){if(!d2.test($))throw new F2($,d2,"parent must be a valid document id");let[X,q]=await this.#X(U),V=await this.raw.getEntries(X),Y=new Set(Q),K=[],G=[];for(let g of V)(Y.has(g.hash)?K:G).push(g);let J=await Promise.all(K.map(({id:g,hash:y})=>this.#B(g,y,{parent:$}))),B=[],Z={};for(let[g,[y,k]]of J.entries())G.push(y),B.push(k),Z[K[g].hash]=y.hash;let[j,P]=await this.raw.putEntries("root",G);return await Promise.all([Promise.all(B),P]),await this.#q(j.hash,q),{hashes:Z}}async bulkDelete(Q,$=!1){return await this.bulkMove(Q,"trash",$)}dumpCache(){return this.raw.dumpCache()}async pruneCache(Q){let[$]=await this.#X(Q),U=new Set(this.#$.keys()),X=[await this.raw.getEntries($)],q=[];while(X.length){for(let V of X)for(let{hash:Y,type:K}of V)if(U.add(Y),K===80000000)q.push(this.raw.getEntries(Y));X=await Promise.all(q),q=[]}for(let V of U)this.#$.delete(V)}clearCache(){this.raw.clearCache()}}var wB=M6(P8(j0()));async function WB(Q,{authHost:$=jU}={}){let U=await fetch(`${$}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${Q}`}});if(!U.ok)throw new Error(`couldn't fetch auth token: ${U.statusText}`);return await U.text()}function zB(Q,{rawHost:$=BB,uploadHost:U=GB,cache:X,maxCacheSize:q=1/0}={}){let V=JSON.parse(X??"{}");if(wB.guard(V)){let Y=Object.entries(V),K=q===1/0?new Map(Y):new B4(q,Y);return new ZU(Q,$,U,K)}throw new Error("cache was not a valid cache (json string mapping); your cache must be corrupted somehow. Either initialize remarkable without a cache, or fix its format.")}async function bG(Q,$={}){let{authHost:U,rawHost:X,uploadHost:q,cache:V,maxCacheSize:Y,syncHost:K}=$??{},G=await WB(Q,{authHost:U});return zB(G,{rawHost:X,uploadHost:q,cache:V,maxCacheSize:Y,syncHost:K})}export{zB as session,bG as remarkable,_G as register,WB as auth,F2 as ValidationError,P4 as ResponseError,H6 as HashNotFoundError,Z4 as GenerationError};
|