image-exporter 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -3
- package/dist/capture/capture-element.d.ts +2 -1
- package/dist/capture/capture-element.d.ts.map +1 -1
- package/dist/capture/capture.dom.test.d.ts +2 -0
- package/dist/capture/capture.dom.test.d.ts.map +1 -0
- package/dist/capture/copy-to-clipboard.d.ts +13 -0
- package/dist/capture/copy-to-clipboard.d.ts.map +1 -0
- package/dist/capture/copy-to-clipboard.dom.test.d.ts +2 -0
- package/dist/capture/copy-to-clipboard.dom.test.d.ts.map +1 -0
- package/dist/capture/cors-cleanup.dom.test.d.ts +2 -0
- package/dist/capture/cors-cleanup.dom.test.d.ts.map +1 -0
- package/dist/capture/data-url-to-blob.d.ts +9 -0
- package/dist/capture/data-url-to-blob.d.ts.map +1 -0
- package/dist/capture/data-url-to-blob.node.test.d.ts +2 -0
- package/dist/capture/data-url-to-blob.node.test.d.ts.map +1 -0
- package/dist/capture/dedup-consistency.node.test.d.ts +2 -0
- package/dist/capture/dedup-consistency.node.test.d.ts.map +1 -0
- package/dist/capture/determine-total-elements.d.ts +7 -3
- package/dist/capture/determine-total-elements.d.ts.map +1 -1
- package/dist/capture/determine-total-elements.dom.test.d.ts +2 -0
- package/dist/capture/determine-total-elements.dom.test.d.ts.map +1 -0
- package/dist/capture/download-images.d.ts +8 -0
- package/dist/capture/download-images.d.ts.map +1 -1
- package/dist/capture/get-image-options.dom.test.d.ts +2 -0
- package/dist/capture/get-image-options.dom.test.d.ts.map +1 -0
- package/dist/capture/handle-filenames.d.ts +5 -6
- package/dist/capture/handle-filenames.d.ts.map +1 -1
- package/dist/capture/index.d.ts.map +1 -1
- package/dist/capture/make-unique.d.ts +14 -0
- package/dist/capture/make-unique.d.ts.map +1 -0
- package/dist/capture/make-unique.node.test.d.ts +2 -0
- package/dist/capture/make-unique.node.test.d.ts.map +1 -0
- package/dist/index.browser.js +16 -16
- package/dist/index.browser.js.map +20 -17
- package/dist/index.cjs +198 -125
- package/dist/index.cjs.map +20 -17
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +198 -125
- package/dist/index.js.map +20 -17
- package/dist/logger.d.ts +5 -5
- package/dist/logger.d.ts.map +1 -1
- package/dist/types.d.ts +81 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +27 -3
package/dist/index.browser.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
(()=>{var vX=Object.create;var{getPrototypeOf:xX,defineProperty:b1,getOwnPropertyNames:D4,getOwnPropertyDescriptor:gX}=Object,A4=Object.prototype.hasOwnProperty;var yX=(Q,J,$)=>{$=Q!=null?vX(xX(Q)):{};let X=J||!Q||!Q.__esModule?b1($,"default",{value:Q,enumerable:!0}):$;for(let K of D4(Q))if(!A4.call(X,K))b1(X,K,{get:()=>Q[K],enumerable:!0});return X},C4=new WeakMap,u0=(Q)=>{var J=C4.get(Q),$;if(J)return J;if(J=b1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")D4(Q).map((X)=>!A4.call(J,X)&&b1(J,X,{get:()=>Q[X],enumerable:!($=gX(Q,X))||$.enumerable}));return C4.set(Q,J),J},B0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var R8=(Q,J)=>{for(var $ in J)b1(Q,$,{get:J[$],enumerable:!0,configurable:!0,set:(X)=>J[$]=()=>X})};var R4=(Q,J)=>()=>(Q&&(J=Q(Q=0)),J);var M2={};R8(M2,{transcode:()=>fY,resolveObjectURL:()=>gY,kStringMaxLength:()=>W7,kMaxLength:()=>d1,isUtf8:()=>yY,isAscii:()=>hY,default:()=>_Y,constants:()=>BY,btoa:()=>KY,atob:()=>YY,INSPECT_MAX_BYTES:()=>Z7,File:()=>VY,Buffer:()=>y,Blob:()=>qY});function eK(Q){var J=Q.length;if(J%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=J;var X=$===J?0:4-$%4;return[$,X]}function QY(Q,J){return(Q+J)*3/4-J}function JY(Q){var J,$=eK(Q),X=$[0],K=$[1],Y=new Uint8Array(QY(X,K)),V=0,q=K>0?X-4:X,U;for(U=0;U<q;U+=4)J=n0[Q.charCodeAt(U)]<<18|n0[Q.charCodeAt(U+1)]<<12|n0[Q.charCodeAt(U+2)]<<6|n0[Q.charCodeAt(U+3)],Y[V++]=J>>16&255,Y[V++]=J>>8&255,Y[V++]=J&255;if(K===2)J=n0[Q.charCodeAt(U)]<<2|n0[Q.charCodeAt(U+1)]>>4,Y[V++]=J&255;if(K===1)J=n0[Q.charCodeAt(U)]<<10|n0[Q.charCodeAt(U+1)]<<4|n0[Q.charCodeAt(U+2)]>>2,Y[V++]=J>>8&255,Y[V++]=J&255;return Y}function $Y(Q){return Y2[Q>>18&63]+Y2[Q>>12&63]+Y2[Q>>6&63]+Y2[Q&63]}function XY(Q,J,$){var X,K=[];for(var Y=J;Y<$;Y+=3)X=(Q[Y]<<16&16711680)+(Q[Y+1]<<8&65280)+(Q[Y+2]&255),K.push($Y(X));return K.join("")}function V7(Q){var J,$=Q.length,X=$%3,K=[],Y=16383;for(var V=0,q=$-X;V<q;V+=Y)K.push(XY(Q,V,V+Y>q?q:V+Y));if(X===1)J=Q[$-1],K.push(Y2[J>>2]+Y2[J<<4&63]+"==");else if(X===2)J=(Q[$-2]<<8)+Q[$-1],K.push(Y2[J>>10]+Y2[J>>4&63]+Y2[J<<2&63]+"=");return K.join("")}function E6(Q,J,$,X,K){var Y,V,q=K*8-X-1,U=(1<<q)-1,G=U>>1,B=-7,j=$?K-1:0,W=$?-1:1,H=Q[J+j];j+=W,Y=H&(1<<-B)-1,H>>=-B,B+=q;for(;B>0;Y=Y*256+Q[J+j],j+=W,B-=8);V=Y&(1<<-B)-1,Y>>=-B,B+=X;for(;B>0;V=V*256+Q[J+j],j+=W,B-=8);if(Y===0)Y=1-G;else if(Y===U)return V?NaN:(H?-1:1)*(1/0);else V=V+Math.pow(2,X),Y=Y-G;return(H?-1:1)*V*Math.pow(2,Y-X)}function z7(Q,J,$,X,K,Y){var V,q,U,G=Y*8-K-1,B=(1<<G)-1,j=B>>1,W=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=X?0:Y-1,S=X?1:-1,A=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)q=isNaN(J)?1:0,V=B;else{if(V=Math.floor(Math.log(J)/Math.LN2),J*(U=Math.pow(2,-V))<1)V--,U*=2;if(V+j>=1)J+=W/U;else J+=W*Math.pow(2,1-j);if(J*U>=2)V++,U/=2;if(V+j>=B)q=0,V=B;else if(V+j>=1)q=(J*U-1)*Math.pow(2,K),V=V+j;else q=J*Math.pow(2,j-1)*Math.pow(2,K),V=0}for(;K>=8;Q[$+H]=q&255,H+=S,q/=256,K-=8);V=V<<K|q,G+=K;for(;G>0;Q[$+H]=V&255,H+=S,V/=256,G-=8);Q[$+H-S]|=A*128}function P2(Q){if(Q>d1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let J=new Uint8Array(Q);return Object.setPrototypeOf(J,y.prototype),J}function u8(Q,J,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(X){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:X,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function y(Q,J,$){if(typeof Q==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return p8(Q)}return H7(Q,J,$)}function H7(Q,J,$){if(typeof Q==="string")return ZY(Q,J);if(ArrayBuffer.isView(Q))return WY(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(V2(Q,ArrayBuffer)||Q&&V2(Q.buffer,ArrayBuffer))return _8(Q,J,$);if(typeof SharedArrayBuffer<"u"&&(V2(Q,SharedArrayBuffer)||Q&&V2(Q.buffer,SharedArrayBuffer)))return _8(Q,J,$);if(typeof Q==="number")throw 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 y.from(X,J,$);let K=HY(Q);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return y.from(Q[Symbol.toPrimitive]("string"),J,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function j7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function zY(Q,J,$){if(j7(Q),Q<=0)return P2(Q);if(J!==void 0)return typeof $==="string"?P2(Q).fill(J,$):P2(Q).fill(J);return P2(Q)}function p8(Q){return j7(Q),P2(Q<0?0:c8(Q)|0)}function ZY(Q,J){if(typeof J!=="string"||J==="")J="utf8";if(!y.isEncoding(J))throw TypeError("Unknown encoding: "+J);let $=P7(Q,J)|0,X=P2($),K=X.write(Q,J);if(K!==$)X=X.slice(0,K);return X}function f8(Q){let J=Q.length<0?0:c8(Q.length)|0,$=P2(J);for(let X=0;X<J;X+=1)$[X]=Q[X]&255;return $}function WY(Q){if(V2(Q,Uint8Array)){let J=new Uint8Array(Q);return _8(J.buffer,J.byteOffset,J.byteLength)}return f8(Q)}function _8(Q,J,$){if(J<0||Q.byteLength<J)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<J+($||0))throw RangeError('"length" is outside of buffer bounds');let X;if(J===void 0&&$===void 0)X=new Uint8Array(Q);else if($===void 0)X=new Uint8Array(Q,J);else X=new Uint8Array(Q,J,$);return Object.setPrototypeOf(X,y.prototype),X}function HY(Q){if(y.isBuffer(Q)){let J=c8(Q.length)|0,$=P2(J);if($.length===0)return $;return Q.copy($,0,0,J),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return P2(0);return f8(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return f8(Q.data)}function c8(Q){if(Q>=d1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d1.toString(16)+" bytes");return Q|0}function P7(Q,J){if(y.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||V2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let $=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&$===0)return 0;let K=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return b8(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return D7(Q).length;default:if(K)return X?-1:b8(Q).length;J=(""+J).toLowerCase(),K=!0}}function jY(Q,J,$){let X=!1;if(J===void 0||J<0)J=0;if(J>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,J>>>=0,$<=J)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return DY(this,J,$);case"utf8":case"utf-8":return L7(this,J,$);case"ascii":return OY(this,J,$);case"latin1":case"binary":return CY(this,J,$);case"base64":return IY(this,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return AY(this,J,$);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function i2(Q,J,$){let X=Q[J];Q[J]=Q[$],Q[$]=X}function M7(Q,J,$,X,K){if(Q.length===0)return-1;if(typeof $==="string")X=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=K?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(K)return-1;else $=Q.length-1;else if($<0)if(K)$=0;else return-1;if(typeof J==="string")J=y.from(J,X);if(y.isBuffer(J)){if(J.length===0)return-1;return B7(Q,J,$,X,K)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(K)return Uint8Array.prototype.indexOf.call(Q,J,$);else return Uint8Array.prototype.lastIndexOf.call(Q,J,$);return B7(Q,[J],$,X,K)}throw TypeError("val must be string, number or Buffer")}function B7(Q,J,$,X,K){let Y=1,V=Q.length,q=J.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||J.length<2)return-1;Y=2,V/=2,q/=2,$/=2}}function U(B,j){if(Y===1)return B[j];else return B.readUInt16BE(j*Y)}let G;if(K){let B=-1;for(G=$;G<V;G++)if(U(Q,G)===U(J,B===-1?0:G-B)){if(B===-1)B=G;if(G-B+1===q)return B*Y}else{if(B!==-1)G-=G-B;B=-1}}else{if($+q>V)$=V-q;for(G=$;G>=0;G--){let B=!0;for(let j=0;j<q;j++)if(U(Q,G+j)!==U(J,j)){B=!1;break}if(B)return G}}return-1}function PY(Q,J,$,X){$=Number($)||0;let K=Q.length-$;if(!X)X=K;else if(X=Number(X),X>K)X=K;let Y=J.length;if(X>Y/2)X=Y/2;let V;for(V=0;V<X;++V){let q=parseInt(J.substr(V*2,2),16);if(Number.isNaN(q))return V;Q[$+V]=q}return V}function MY(Q,J,$,X){return S6(b8(J,Q.length-$),Q,$,X)}function LY(Q,J,$,X){return S6(EY(J),Q,$,X)}function FY(Q,J,$,X){return S6(D7(J),Q,$,X)}function wY(Q,J,$,X){return S6(SY(J,Q.length-$),Q,$,X)}function IY(Q,J,$){if(J===0&&$===Q.length)return V7(Q);else return V7(Q.slice(J,$))}function L7(Q,J,$){$=Math.min(Q.length,$);let X=[],K=J;while(K<$){let Y=Q[K],V=null,q=Y>239?4:Y>223?3:Y>191?2:1;if(K+q<=$){let U,G,B,j;switch(q){case 1:if(Y<128)V=Y;break;case 2:if(U=Q[K+1],(U&192)===128){if(j=(Y&31)<<6|U&63,j>127)V=j}break;case 3:if(U=Q[K+1],G=Q[K+2],(U&192)===128&&(G&192)===128){if(j=(Y&15)<<12|(U&63)<<6|G&63,j>2047&&(j<55296||j>57343))V=j}break;case 4:if(U=Q[K+1],G=Q[K+2],B=Q[K+3],(U&192)===128&&(G&192)===128&&(B&192)===128){if(j=(Y&15)<<18|(U&63)<<12|(G&63)<<6|B&63,j>65535&&j<1114112)V=j}}}if(V===null)V=65533,q=1;else if(V>65535)V-=65536,X.push(V>>>10&1023|55296),V=56320|V&1023;X.push(V),K+=q}return NY(X)}function NY(Q){let J=Q.length;if(J<=G7)return String.fromCharCode.apply(String,Q);let $="",X=0;while(X<J)$+=String.fromCharCode.apply(String,Q.slice(X,X+=G7));return $}function OY(Q,J,$){let X="";$=Math.min(Q.length,$);for(let K=J;K<$;++K)X+=String.fromCharCode(Q[K]&127);return X}function CY(Q,J,$){let X="";$=Math.min(Q.length,$);for(let K=J;K<$;++K)X+=String.fromCharCode(Q[K]);return X}function DY(Q,J,$){let X=Q.length;if(!J||J<0)J=0;if(!$||$<0||$>X)$=X;let K="";for(let Y=J;Y<$;++Y)K+=vY[Q[Y]];return K}function AY(Q,J,$){let X=Q.slice(J,$),K="";for(let Y=0;Y<X.length-1;Y+=2)K+=String.fromCharCode(X[Y]+X[Y+1]*256);return K}function T0(Q,J,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+J>$)throw RangeError("Trying to access beyond buffer length")}function f0(Q,J,$,X,K,Y){if(!y.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(J>K||J<Y)throw RangeError('"value" argument is out of bounds');if($+X>Q.length)throw RangeError("Index out of range")}function F7(Q,J,$,X,K){C7(J,X,K,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y;let V=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$++]=V,V=V>>8,Q[$++]=V,V=V>>8,Q[$++]=V,V=V>>8,Q[$++]=V,$}function w7(Q,J,$,X,K){C7(J,X,K,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$+7]=Y,Y=Y>>8,Q[$+6]=Y,Y=Y>>8,Q[$+5]=Y,Y=Y>>8,Q[$+4]=Y;let V=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$+3]=V,V=V>>8,Q[$+2]=V,V=V>>8,Q[$+1]=V,V=V>>8,Q[$]=V,$+8}function I7(Q,J,$,X,K,Y){if($+X>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function N7(Q,J,$,X,K){if(J=+J,$=$>>>0,!K)I7(Q,J,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return z7(Q,J,$,X,23,4),$+4}function O7(Q,J,$,X,K){if(J=+J,$=$>>>0,!K)I7(Q,J,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return z7(Q,J,$,X,52,8),$+8}function U7(Q){let J="",$=Q.length,X=Q[0]==="-"?1:0;for(;$>=X+4;$-=3)J=`_${Q.slice($-3,$)}${J}`;return`${Q.slice(0,$)}${J}`}function RY(Q,J,$){if(H1(J,"offset"),Q[J]===void 0||Q[J+$]===void 0)l1(J,Q.length-($+1))}function C7(Q,J,$,X,K,Y){if(Q>$||Q<J){let V=typeof J==="bigint"?"n":"",q;if(Y>3)if(J===0||J===BigInt(0))q=`>= 0${V} and < 2${V} ** ${(Y+1)*8}${V}`;else q=`>= -(2${V} ** ${(Y+1)*8-1}${V}) and < 2 ** ${(Y+1)*8-1}${V}`;else q=`>= ${J}${V} and <= ${$}${V}`;throw new h8("value",q,Q)}RY(X,K,Y)}function H1(Q,J){if(typeof Q!=="number")throw new UY(J,"number",Q)}function l1(Q,J,$){if(Math.floor(Q)!==Q)throw H1(Q,$),new h8($||"offset","an integer",Q);if(J<0)throw new GY;throw new h8($||"offset",`>= ${$?1:0} and <= ${J}`,Q)}function kY(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(TY,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function b8(Q,J){J=J||1/0;let $,X=Q.length,K=null,Y=[];for(let V=0;V<X;++V){if($=Q.charCodeAt(V),$>55295&&$<57344){if(!K){if($>56319){if((J-=3)>-1)Y.push(239,191,189);continue}else if(V+1===X){if((J-=3)>-1)Y.push(239,191,189);continue}K=$;continue}if($<56320){if((J-=3)>-1)Y.push(239,191,189);K=$;continue}$=(K-55296<<10|$-56320)+65536}else if(K){if((J-=3)>-1)Y.push(239,191,189)}if(K=null,$<128){if((J-=1)<0)break;Y.push($)}else if($<2048){if((J-=2)<0)break;Y.push($>>6|192,$&63|128)}else if($<65536){if((J-=3)<0)break;Y.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((J-=4)<0)break;Y.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return Y}function EY(Q){let J=[];for(let $=0;$<Q.length;++$)J.push(Q.charCodeAt($)&255);return J}function SY(Q,J){let $,X,K,Y=[];for(let V=0;V<Q.length;++V){if((J-=2)<0)break;$=Q.charCodeAt(V),X=$>>8,K=$%256,Y.push(K),Y.push(X)}return Y}function D7(Q){return JY(kY(Q))}function S6(Q,J,$,X){let K;for(K=0;K<X;++K){if(K+$>=J.length||K>=Q.length)break;J[K+$]=Q[K]}return K}function V2(Q,J){return Q instanceof J||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===J.name}function R2(Q){return typeof BigInt>"u"?xY:Q}function xY(){throw Error("BigInt not supported")}function m8(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var Y2,n0,y8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l2,Y7,q7,Z7=50,d1=2147483647,W7=536870888,KY,YY,VY,qY,BY,GY,UY,h8,G7=4096,TY,vY,gY,yY,hY=(Q)=>{for(let J of Q)if(J.charCodeAt(0)>127)return!1;return!0},fY,_Y;var L2=R4(()=>{Y2=[],n0=[];for(l2=0,Y7=y8.length;l2<Y7;++l2)Y2[l2]=y8[l2],n0[y8.charCodeAt(l2)]=l2;n0[45]=62;n0[95]=63;q7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,KY=globalThis.btoa,YY=globalThis.atob,VY=globalThis.File,qY=globalThis.Blob,BY={MAX_LENGTH:d1,MAX_STRING_LENGTH:W7};GY=u8("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),UY=u8("ERR_INVALID_ARG_TYPE",function(Q,J){return`The "${Q}" argument must be of type number. Received type ${typeof J}`},TypeError),h8=u8("ERR_OUT_OF_RANGE",function(Q,J,$){let X=`The value of "${Q}" is out of range.`,K=$;if(Number.isInteger($)&&Math.abs($)>4294967296)K=U7(String($));else if(typeof $==="bigint"){if(K=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))K=U7(K);K+="n"}return X+=` It must be ${J}. Received ${K}`,X},RangeError);Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(!y.isBuffer(this))return;return this.buffer}});Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(!y.isBuffer(this))return;return this.byteOffset}});y.poolSize=8192;y.from=function(Q,J,$){return H7(Q,J,$)};Object.setPrototypeOf(y.prototype,Uint8Array.prototype);Object.setPrototypeOf(y,Uint8Array);y.alloc=function(Q,J,$){return zY(Q,J,$)};y.allocUnsafe=function(Q){return p8(Q)};y.allocUnsafeSlow=function(Q){return p8(Q)};y.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==y.prototype};y.compare=function(Q,J){if(V2(Q,Uint8Array))Q=y.from(Q,Q.offset,Q.byteLength);if(V2(J,Uint8Array))J=y.from(J,J.offset,J.byteLength);if(!y.isBuffer(Q)||!y.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===J)return 0;let $=Q.length,X=J.length;for(let K=0,Y=Math.min($,X);K<Y;++K)if(Q[K]!==J[K]){$=Q[K],X=J[K];break}if($<X)return-1;if(X<$)return 1;return 0};y.isEncoding=function(Q){switch(String(Q).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}};y.concat=function(Q,J){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return y.alloc(0);let $;if(J===void 0){J=0;for($=0;$<Q.length;++$)J+=Q[$].length}let X=y.allocUnsafe(J),K=0;for($=0;$<Q.length;++$){let Y=Q[$];if(V2(Y,Uint8Array))if(K+Y.length>X.length){if(!y.isBuffer(Y))Y=y.from(Y);Y.copy(X,K)}else Uint8Array.prototype.set.call(X,Y,K);else if(!y.isBuffer(Y))throw TypeError('"list" argument must be an Array of Buffers');else Y.copy(X,K);K+=Y.length}return X};y.byteLength=P7;y.prototype._isBuffer=!0;y.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<Q;J+=2)i2(this,J,J+1);return this};y.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<Q;J+=4)i2(this,J,J+3),i2(this,J+1,J+2);return this};y.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<Q;J+=8)i2(this,J,J+7),i2(this,J+1,J+6),i2(this,J+2,J+5),i2(this,J+3,J+4);return this};y.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return L7(this,0,Q);return jY.apply(this,arguments)};y.prototype.toLocaleString=y.prototype.toString;y.prototype.equals=function(Q){if(!y.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return y.compare(this,Q)===0};y.prototype.inspect=function(){let Q="",J=Z7;if(Q=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)Q+=" ... ";return"<Buffer "+Q+">"};if(q7)y.prototype[q7]=y.prototype.inspect;y.prototype.compare=function(Q,J,$,X,K){if(V2(Q,Uint8Array))Q=y.from(Q,Q.offset,Q.byteLength);if(!y.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(J===void 0)J=0;if($===void 0)$=Q?Q.length:0;if(X===void 0)X=0;if(K===void 0)K=this.length;if(J<0||$>Q.length||X<0||K>this.length)throw RangeError("out of range index");if(X>=K&&J>=$)return 0;if(X>=K)return-1;if(J>=$)return 1;if(J>>>=0,$>>>=0,X>>>=0,K>>>=0,this===Q)return 0;let Y=K-X,V=$-J,q=Math.min(Y,V),U=this.slice(X,K),G=Q.slice(J,$);for(let B=0;B<q;++B)if(U[B]!==G[B]){Y=U[B],V=G[B];break}if(Y<V)return-1;if(V<Y)return 1;return 0};y.prototype.includes=function(Q,J,$){return this.indexOf(Q,J,$)!==-1};y.prototype.indexOf=function(Q,J,$){return M7(this,Q,J,$,!0)};y.prototype.lastIndexOf=function(Q,J,$){return M7(this,Q,J,$,!1)};y.prototype.write=function(Q,J,$,X){if(J===void 0)X="utf8",$=this.length,J=0;else if($===void 0&&typeof J==="string")X=J,$=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite($)){if($=$>>>0,X===void 0)X="utf8"}else X=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let K=this.length-J;if($===void 0||$>K)$=K;if(Q.length>0&&($<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let Y=!1;for(;;)switch(X){case"hex":return PY(this,Q,J,$);case"utf8":case"utf-8":return MY(this,Q,J,$);case"ascii":case"latin1":case"binary":return LY(this,Q,J,$);case"base64":return FY(this,Q,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wY(this,Q,J,$);default:if(Y)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),Y=!0}};y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};y.prototype.slice=function(Q,J){let $=this.length;if(Q=~~Q,J=J===void 0?$:~~J,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(J<0){if(J+=$,J<0)J=0}else if(J>$)J=$;if(J<Q)J=Q;let X=this.subarray(Q,J);return Object.setPrototypeOf(X,y.prototype),X};y.prototype.readUintLE=y.prototype.readUIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q],K=1,Y=0;while(++Y<J&&(K*=256))X+=this[Q+Y]*K;return X};y.prototype.readUintBE=y.prototype.readUIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q+--J],K=1;while(J>0&&(K*=256))X+=this[Q+--J]*K;return X};y.prototype.readUint8=y.prototype.readUInt8=function(Q,J){if(Q=Q>>>0,!J)T0(Q,1,this.length);return this[Q]};y.prototype.readUint16LE=y.prototype.readUInt16LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);return this[Q]|this[Q+1]<<8};y.prototype.readUint16BE=y.prototype.readUInt16BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);return this[Q]<<8|this[Q+1]};y.prototype.readUint32LE=y.prototype.readUInt32LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};y.prototype.readUint32BE=y.prototype.readUInt32BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};y.prototype.readBigUInt64LE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,K=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(X)+(BigInt(K)<<BigInt(32))});y.prototype.readBigUInt64BE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=J*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],K=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(X)<<BigInt(32))+BigInt(K)});y.prototype.readIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q],K=1,Y=0;while(++Y<J&&(K*=256))X+=this[Q+Y]*K;if(K*=128,X>=K)X-=Math.pow(2,8*J);return X};y.prototype.readIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=J,K=1,Y=this[Q+--X];while(X>0&&(K*=256))Y+=this[Q+--X]*K;if(K*=128,Y>=K)Y-=Math.pow(2,8*J);return Y};y.prototype.readInt8=function(Q,J){if(Q=Q>>>0,!J)T0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};y.prototype.readInt16LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};y.prototype.readInt16BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};y.prototype.readInt32LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};y.prototype.readInt32BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};y.prototype.readBigInt64LE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(X)<<BigInt(32))+BigInt(J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});y.prototype.readBigInt64BE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=(J<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});y.prototype.readFloatLE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return E6(this,Q,!0,23,4)};y.prototype.readFloatBE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return E6(this,Q,!1,23,4)};y.prototype.readDoubleLE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,8,this.length);return E6(this,Q,!0,52,8)};y.prototype.readDoubleBE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,8,this.length);return E6(this,Q,!1,52,8)};y.prototype.writeUintLE=y.prototype.writeUIntLE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,$=$>>>0,!X){let V=Math.pow(2,8*$)-1;f0(this,Q,J,$,V,0)}let K=1,Y=0;this[J]=Q&255;while(++Y<$&&(K*=256))this[J+Y]=Q/K&255;return J+$};y.prototype.writeUintBE=y.prototype.writeUIntBE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,$=$>>>0,!X){let V=Math.pow(2,8*$)-1;f0(this,Q,J,$,V,0)}let K=$-1,Y=1;this[J+K]=Q&255;while(--K>=0&&(Y*=256))this[J+K]=Q/Y&255;return J+$};y.prototype.writeUint8=y.prototype.writeUInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,1,255,0);return this[J]=Q&255,J+1};y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,65535,0);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,65535,0);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,4294967295,0);return this[J+3]=Q>>>24,this[J+2]=Q>>>16,this[J+1]=Q>>>8,this[J]=Q&255,J+4};y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,4294967295,0);return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};y.prototype.writeBigUInt64LE=R2(function(Q,J=0){return F7(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeBigUInt64BE=R2(function(Q,J=0){return w7(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeIntLE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,!X){let q=Math.pow(2,8*$-1);f0(this,Q,J,$,q-1,-q)}let K=0,Y=1,V=0;this[J]=Q&255;while(++K<$&&(Y*=256)){if(Q<0&&V===0&&this[J+K-1]!==0)V=1;this[J+K]=(Q/Y>>0)-V&255}return J+$};y.prototype.writeIntBE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,!X){let q=Math.pow(2,8*$-1);f0(this,Q,J,$,q-1,-q)}let K=$-1,Y=1,V=0;this[J+K]=Q&255;while(--K>=0&&(Y*=256)){if(Q<0&&V===0&&this[J+K+1]!==0)V=1;this[J+K]=(Q/Y>>0)-V&255}return J+$};y.prototype.writeInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,1,127,-128);if(Q<0)Q=255+Q+1;return this[J]=Q&255,J+1};y.prototype.writeInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,32767,-32768);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};y.prototype.writeInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,32767,-32768);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};y.prototype.writeInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,2147483647,-2147483648);return this[J]=Q&255,this[J+1]=Q>>>8,this[J+2]=Q>>>16,this[J+3]=Q>>>24,J+4};y.prototype.writeInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};y.prototype.writeBigInt64LE=R2(function(Q,J=0){return F7(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeBigInt64BE=R2(function(Q,J=0){return w7(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeFloatLE=function(Q,J,$){return N7(this,Q,J,!0,$)};y.prototype.writeFloatBE=function(Q,J,$){return N7(this,Q,J,!1,$)};y.prototype.writeDoubleLE=function(Q,J,$){return O7(this,Q,J,!0,$)};y.prototype.writeDoubleBE=function(Q,J,$){return O7(this,Q,J,!1,$)};y.prototype.copy=function(Q,J,$,X){if(!y.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!X&&X!==0)X=this.length;if(J>=Q.length)J=Q.length;if(!J)J=0;if(X>0&&X<$)X=$;if(X===$)return 0;if(Q.length===0||this.length===0)return 0;if(J<0)throw RangeError("targetStart out of bounds");if($<0||$>=this.length)throw RangeError("Index out of range");if(X<0)throw RangeError("sourceEnd out of bounds");if(X>this.length)X=this.length;if(Q.length-J<X-$)X=Q.length-J+$;let K=X-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,$,X);else Uint8Array.prototype.set.call(Q,this.subarray($,X),J);return K};y.prototype.fill=function(Q,J,$,X){if(typeof Q==="string"){if(typeof J==="string")X=J,J=0,$=this.length;else if(typeof $==="string")X=$,$=this.length;if(X!==void 0&&typeof X!=="string")throw TypeError("encoding must be a string");if(typeof X==="string"&&!y.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let Y=Q.charCodeAt(0);if(X==="utf8"&&Y<128||X==="latin1")Q=Y}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(J<0||this.length<J||this.length<$)throw RangeError("Out of range index");if($<=J)return this;if(J=J>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let K;if(typeof Q==="number")for(K=J;K<$;++K)this[K]=Q;else{let Y=y.isBuffer(Q)?Q:y.from(Q,X),V=Y.length;if(V===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(K=0;K<$-J;++K)this[K+J]=Y[K%V]}return this};TY=/[^+/0-9A-Za-z-_]/g;vY=function(){let Q=Array(256);for(let J=0;J<16;++J){let $=J*16;for(let X=0;X<16;++X)Q[$+X]="0123456789abcdef"[J]+"0123456789abcdef"[X]}return Q}();gY=m8("resolveObjectURL"),yY=m8("isUtf8"),fY=m8("transcode"),_Y=y});var n1={};R8(n1,{setMaxListeners:()=>h7,once:()=>g7,listenerCount:()=>f7,init:()=>T2,getMaxListeners:()=>b7,getEventListeners:()=>y7,default:()=>nY,captureRejectionSymbol:()=>E7,addAbortListener:()=>u7,EventEmitter:()=>T2});function S7(Q,J){var{_events:$}=Q;if(J[0]??=Error("Unhandled error."),!$)throw J[0];var X=$[k7];if(X)for(var K of R7.call(X))K.apply(Q,J);var Y=$.error;if(!Y)throw J[0];for(var K of R7.call(Y))K.apply(Q,J);return!0}function pY(Q,J,$,X){J.then(void 0,function(K){queueMicrotask(()=>cY(Q,K,$,X))})}function cY(Q,J,$,X){if(typeof Q[A7]==="function")Q[A7](J,$,...X);else try{Q[n2]=!1,Q.emit("error",J)}finally{Q[n2]=!0}}function v7(Q,J,$){$.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(J)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=J,X.count=$.length,console.warn(X)}function x7(Q,J,...$){this.removeListener(Q,J),J.apply(this,$)}function g7(Q,J,$){var X=$?.signal;if(_7(X,"options.signal"),X?.aborted)throw new d8(void 0,{cause:X?.reason});let{resolve:K,reject:Y,promise:V}=$newPromiseCapability(Promise),q=(B)=>{if(Q.removeListener(J,U),X!=null)v6(X,"abort",G);Y(B)},U=(...B)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",q);if(X!=null)v6(X,"abort",G);K(B)};if(T7(Q,J,U,{once:!0}),J!=="error"&&typeof Q.once==="function")Q.once("error",q);function G(){v6(Q,J,U),v6(Q,"error",q),Y(new d8(void 0,{cause:X?.reason}))}if(X!=null)T7(X,"abort",G,{once:!0});return V}function y7(Q,J){return Q.listeners(J)}function h7(Q,...J){i8(Q,"setMaxListeners",0);var $;if(J&&($=J.length))for(let X=0;X<$;X++)J[X].setMaxListeners(Q);else r2=Q}function f7(Q,J){return Q.listenerCount(J)}function v6(Q,J,$,X){if(typeof Q.removeListener==="function")Q.removeListener(J,$);else Q.removeEventListener(J,$,X)}function T7(Q,J,$,X){if(typeof Q.on==="function")if(X.once)Q.once(J,$);else Q.on(J,$);else Q.addEventListener(J,$,X)}function j1(Q,J,$){let X=TypeError(`The "${Q}" argument must be of type ${J}. Received ${$}`);return X.code="ERR_INVALID_ARG_TYPE",X}function lY(Q,J,$){let X=RangeError(`The "${Q}" argument is out of range. It must be ${J}. Received ${$}`);return X.code="ERR_OUT_OF_RANGE",X}function _7(Q,J){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw j1(J,"AbortSignal",Q)}function i8(Q,J,$,X){if(typeof Q!=="number")throw j1(J,"number",Q);if($!=null&&Q<$||X!=null&&Q>X||($!=null||X!=null)&&Number.isNaN(Q))throw lY(J,`${$!=null?`>= ${$}`:""}${$!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function i1(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function iY(Q,J){if(typeof Q!=="boolean")throw j1(J,"boolean",Q)}function b7(Q){return Q?._maxListeners??r2}function u7(Q,J){if(Q===void 0)throw j1("signal","AbortSignal",Q);if(_7(Q,"signal"),typeof J!=="function")throw j1("listener","function",J);let $;if(Q.aborted)queueMicrotask(()=>J());else Q.addEventListener("abort",J,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",J)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var l8,n2,k7,bY,uY,A7,E7,R7,r2=10,T2=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[n2]=Q?.captureRejections?Boolean(Q?.captureRejections):w0[n2])this.emit=dY},w0,mY=function(Q,...J){if(Q==="error")return S7(this,J);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:V}=K;Y<V;Y++){let q=K[Y];switch(J.length){case 0:q.call(this);break;case 1:q.call(this,J[0]);break;case 2:q.call(this,J[0],J[1]);break;case 3:q.call(this,J[0],J[1],J[2]);break;default:q.apply(this,J);break}}return!0},dY=function(Q,...J){if(Q==="error")return S7(this,J);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:V}=K;Y<V;Y++){let q=K[Y],U;switch(J.length){case 0:U=q.call(this);break;case 1:U=q.call(this,J[0]);break;case 2:U=q.call(this,J[0],J[1]);break;case 3:U=q.call(this,J[0],J[1],J[2]);break;default:U=q.apply(this,J);break}if(U!==void 0&&typeof U?.then==="function"&&U.then===Promise.prototype.then)pY(this,U,Q,J)}return!0},d8,nY;var r1=R4(()=>{l8=Symbol.for,n2=Symbol("kCapture"),k7=l8("events.errorMonitor"),bY=Symbol("events.maxEventTargetListeners"),uY=Symbol("events.maxEventTargetListenersWarned"),A7=l8("nodejs.rejection"),E7=l8("nodejs.rejection"),R7=Array.prototype.slice,w0=T2.prototype={};w0._events=void 0;w0._eventsCount=0;w0._maxListeners=void 0;w0.setMaxListeners=function(Q){return i8(Q,"setMaxListeners",0),this._maxListeners=Q,this};w0.constructor=T2;w0.getMaxListeners=function(){return this?._maxListeners??r2};w0.emit=mY;w0.addListener=function(Q,J){i1(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var X=$[Q];if(!X)$[Q]=[J],this._eventsCount++;else{X.push(J);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)v7(this,Q,X)}return this};w0.on=w0.addListener;w0.prependListener=function(Q,J){i1(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var X=$[Q];if(!X)$[Q]=[J],this._eventsCount++;else{X.unshift(J);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)v7(this,Q,X)}return this};w0.once=function(Q,J){i1(J);let $=x7.bind(this,Q,J);return $.listener=J,this.addListener(Q,$),this};w0.prependOnceListener=function(Q,J){i1(J);let $=x7.bind(this,Q,J);return $.listener=J,this.prependListener(Q,$),this};w0.removeListener=function(Q,J){i1(J);var{_events:$}=this;if(!$)return this;var X=$[Q];if(!X)return this;var K=X.length;let Y=-1;for(let V=K-1;V>=0;V--)if(X[V]===J||X[V].listener===J){Y=V;break}if(Y<0)return this;if(Y===0)X.shift();else X.splice(Y,1);if(X.length===0)delete $[Q],this._eventsCount--;return this};w0.off=w0.removeListener;w0.removeAllListeners=function(Q){var{_events:J}=this;if(Q&&J){if(J[Q])delete J[Q],this._eventsCount--}else this._events={__proto__:null};return this};w0.listeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.map((X)=>X.listener??X)};w0.rawListeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.slice()};w0.listenerCount=function(Q){var{_events:J}=this;if(!J)return 0;return J[Q]?.length??0};w0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};w0[n2]=!1;d8=class d8 extends Error{constructor(Q="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw j1("options","Object",J);super(Q,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(T2,{captureRejections:{get(){return w0[n2]},set(Q){iY(Q,"EventEmitter.captureRejections"),w0[n2]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return r2},set:(Q)=>{i8(Q,"defaultMaxListeners",0),r2=Q}},kMaxEventTargetListeners:{value:bY,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:uY,enumerable:!1,configurable:!1,writable:!1}});Object.assign(T2,{once:g7,getEventListeners:y7,getMaxListeners:b7,setMaxListeners:h7,EventEmitter:T2,usingDomains:!1,captureRejectionSymbol:E7,errorMonitor:k7,addAbortListener:u7,init:T2,listenerCount:f7});nY=T2});var a8=B0((TB,r7)=>{var M0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),N0=M0((Q,J)=>{class $ extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let K="";for(let Y=0;Y<X.length;Y++)K+=` ${X[Y].stack}
|
|
2
|
-
`;super(K);this.name="AggregateError",this.errors=X}}J.exports={AggregateError:$,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,K){return X.includes(K)},ArrayPrototypeIndexOf(X,K){return X.indexOf(K)},ArrayPrototypeJoin(X,K){return X.join(K)},ArrayPrototypeMap(X,K){return X.map(K)},ArrayPrototypePop(X,K){return X.pop(K)},ArrayPrototypePush(X,K){return X.push(K)},ArrayPrototypeSlice(X,K,Y){return X.slice(K,Y)},Error,FunctionPrototypeCall(X,K,...Y){return X.call(K,...Y)},FunctionPrototypeSymbolHasInstance(X,K){return Function.prototype[Symbol.hasInstance].call(X,K)},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,K){return Object.defineProperties(X,K)},ObjectDefineProperty(X,K,Y){return Object.defineProperty(X,K,Y)},ObjectGetOwnPropertyDescriptor(X,K){return Object.getOwnPropertyDescriptor(X,K)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,K){return Object.setPrototypeOf(X,K)},Promise,PromisePrototypeCatch(X,K){return X.catch(K)},PromisePrototypeThen(X,K,Y){return X.then(K,Y)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,K){return X.test(K)},SafeSet:Set,String,StringPrototypeSlice(X,K,Y){return X.slice(K,Y)},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,K,Y){return X.set(K,Y)},Boolean,Uint8Array}}),p7=M0((Q,J)=>{J.exports={format($,...X){return $.replace(/%([sdifj])/g,function(...[K,Y]){let V=X.shift();if(Y==="f")return V.toFixed(6);else if(Y==="j")return JSON.stringify(V);else if(Y==="s"&&typeof V==="object")return`${V.constructor!==Object?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Object.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}}}}),x0=M0((Q,J)=>{var{format:$,inspect:X}=p7(),{AggregateError:K}=N0(),Y=globalThis.AggregateError||K,V=Symbol("kIsNodeError"),q=["string","function","number","object","Function","Object","boolean","bigint","symbol"],U=/^([A-Z][a-z0-9]*)+$/,G={};function B(F,z){if(!F)throw new G.ERR_INTERNAL_ASSERTION(z)}function j(F){let z="",P=F.length,L=F[0]==="-"?1:0;for(;P>=L+4;P-=3)z=`_${F.slice(P-3,P)}${z}`;return`${F.slice(0,P)}${z}`}function W(F,z,P){if(typeof z==="function")return B(z.length<=P.length,`Code: ${F}; The provided arguments length (${P.length}) does not match the required ones (${z.length}).`),z(...P);let L=(z.match(/%[dfijoOs]/g)||[]).length;if(B(L===P.length,`Code: ${F}; The provided arguments length (${P.length}) does not match the required ones (${L}).`),P.length===0)return z;return $(z,...P)}function H(F,z,P){if(!P)P=Error;class L extends P{constructor(...N){super(W(F,z,N))}toString(){return`${this.name} [${F}]: ${this.message}`}}Object.defineProperties(L.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${F}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),L.prototype.code=F,L.prototype[V]=!0,G[F]=L}function S(F){let z="__node_internal_"+F.name;return Object.defineProperty(F,"name",{value:z}),F}function A(F,z){if(F&&z&&F!==z){if(Array.isArray(z.errors))return z.errors.push(F),z;let P=new Y([z,F],z.message);return P.code=z.code,P}return F||z}class w extends Error{constructor(F="The operation was aborted",z=void 0){if(z!==void 0&&typeof z!=="object")throw new G.ERR_INVALID_ARG_TYPE("options","Object",z);super(F,z);this.code="ABORT_ERR",this.name="AbortError"}}H("ERR_ASSERTION","%s",Error),H("ERR_INVALID_ARG_TYPE",(F,z,P)=>{if(B(typeof F==="string","'name' must be a string"),!Array.isArray(z))z=[z];let L="The ";if(F.endsWith(" argument"))L+=`${F} `;else L+=`"${F}" ${F.includes(".")?"property":"argument"} `;L+="must be ";let N=[],x=[],d=[];for(let _ of z)if(B(typeof _==="string","All expected entries have to be of type string"),q.includes(_))N.push(_.toLowerCase());else if(U.test(_))x.push(_);else B(_!=="object",'The value "object" should be written as "Object"'),d.push(_);if(x.length>0){let _=N.indexOf("object");if(_!==-1)N.splice(N,_,1),x.push("Object")}if(N.length>0){switch(N.length){case 1:L+=`of type ${N[0]}`;break;case 2:L+=`one of type ${N[0]} or ${N[1]}`;break;default:{let _=N.pop();L+=`one of type ${N.join(", ")}, or ${_}`}}if(x.length>0||d.length>0)L+=" or "}if(x.length>0){switch(x.length){case 1:L+=`an instance of ${x[0]}`;break;case 2:L+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let _=x.pop();L+=`an instance of ${x.join(", ")}, or ${_}`}}if(d.length>0)L+=" or "}switch(d.length){case 0:break;case 1:if(d[0].toLowerCase()!==d[0])L+="an ";L+=`${d[0]}`;break;case 2:L+=`one of ${d[0]} or ${d[1]}`;break;default:{let _=d.pop();L+=`one of ${d.join(", ")}, or ${_}`}}if(P==null)L+=`. Received ${P}`;else if(typeof P==="function"&&P.name)L+=`. Received function ${P.name}`;else if(typeof P==="object"){var i;if((i=P.constructor)!==null&&i!==void 0&&i.name)L+=`. Received an instance of ${P.constructor.name}`;else{let _=X(P,{depth:-1});L+=`. Received ${_}`}}else{let _=X(P,{colors:!1});if(_.length>25)_=`${_.slice(0,25)}...`;L+=`. Received type ${typeof P} (${_})`}return L},TypeError),H("ERR_INVALID_ARG_VALUE",(F,z,P="is invalid")=>{let L=X(z);if(L.length>128)L=L.slice(0,128)+"...";return`The ${F.includes(".")?"property":"argument"} '${F}' ${P}. Received ${L}`},TypeError),H("ERR_INVALID_RETURN_VALUE",(F,z,P)=>{var L;let N=P!==null&&P!==void 0&&(L=P.constructor)!==null&&L!==void 0&&L.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${F} to be returned from the "${z}" function but got ${N}.`},TypeError),H("ERR_MISSING_ARGS",(...F)=>{B(F.length>0,"At least one arg needs to be specified");let z,P=F.length;switch(F=(Array.isArray(F)?F:[F]).map((L)=>`"${L}"`).join(" or "),P){case 1:z+=`The ${F[0]} argument`;break;case 2:z+=`The ${F[0]} and ${F[1]} arguments`;break;default:{let L=F.pop();z+=`The ${F.join(", ")}, and ${L} arguments`}break}return`${z} must be specified`},TypeError),H("ERR_OUT_OF_RANGE",(F,z,P)=>{B(z,'Missing "range" argument');let L;if(Number.isInteger(P)&&Math.abs(P)>4294967296)L=j(String(P));else if(typeof P==="bigint"){L=String(P);let N=BigInt(2)**BigInt(32);if(P>N||P<-N)L=j(L);L+="n"}else L=X(P);return`The value of "${F}" is out of range. It must be ${z}. Received ${L}`},RangeError),H("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),H("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),H("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),H("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),H("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),H("ERR_STREAM_WRITE_AFTER_END","write after end",Error),H("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:w,aggregateTwoErrors:S(A),hideStackFrames:S,codes:G}}),rY=M0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,X=new WeakMap;function K(v){let k=$.get(v);return console.assert(k!=null,"'this' is expected an Event object, but got",v),k}function Y(v){if(v.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",v.passiveListener);return}if(!v.event.cancelable)return;if(v.canceled=!0,typeof v.event.preventDefault==="function")v.event.preventDefault()}function V(v,k){$.set(this,{eventTarget:v,event:k,eventPhase:2,currentTarget:v,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:k.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let O=Object.keys(k);for(let E=0;E<O.length;++E){let g=O[E];if(!(g in this))Object.defineProperty(this,g,q(g))}}if(V.prototype={get type(){return K(this).event.type},get target(){return K(this).eventTarget},get currentTarget(){return K(this).currentTarget},composedPath(){let v=K(this).currentTarget;if(v==null)return[];return[v]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return K(this).eventPhase},stopPropagation(){let v=K(this);if(v.stopped=!0,typeof v.event.stopPropagation==="function")v.event.stopPropagation()},stopImmediatePropagation(){let v=K(this);if(v.stopped=!0,v.immediateStopped=!0,typeof v.event.stopImmediatePropagation==="function")v.event.stopImmediatePropagation()},get bubbles(){return Boolean(K(this).event.bubbles)},get cancelable(){return Boolean(K(this).event.cancelable)},preventDefault(){Y(K(this))},get defaultPrevented(){return K(this).canceled},get composed(){return Boolean(K(this).event.composed)},get timeStamp(){return K(this).timeStamp},get srcElement(){return K(this).eventTarget},get cancelBubble(){return K(this).stopped},set cancelBubble(v){if(!v)return;let k=K(this);if(k.stopped=!0,typeof k.event.cancelBubble==="boolean")k.event.cancelBubble=!0},get returnValue(){return!K(this).canceled},set returnValue(v){if(!v)Y(K(this))},initEvent(){}},Object.defineProperty(V.prototype,"constructor",{value:V,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(V.prototype,window.Event.prototype),X.set(window.Event.prototype,V);function q(v){return{get(){return K(this).event[v]},set(k){K(this).event[v]=k},configurable:!0,enumerable:!0}}function U(v){return{value(){let k=K(this).event;return k[v].apply(k,arguments)},configurable:!0,enumerable:!0}}function G(v,k){let O=Object.keys(k);if(O.length===0)return v;function E(g,T){v.call(this,g,T)}E.prototype=Object.create(v.prototype,{constructor:{value:E,configurable:!0,writable:!0}});for(let g=0;g<O.length;++g){let T=O[g];if(!(T in v.prototype)){let o=typeof Object.getOwnPropertyDescriptor(k,T).value==="function";Object.defineProperty(E.prototype,T,o?U(T):q(T))}}return E}function B(v){if(v==null||v===Object.prototype)return V;let k=X.get(v);if(k==null)k=G(B(Object.getPrototypeOf(v)),v),X.set(v,k);return k}function j(v,k){return new(B(Object.getPrototypeOf(k)))(v,k)}function W(v){return K(v).immediateStopped}function H(v,k){K(v).eventPhase=k}function S(v,k){K(v).currentTarget=k}function A(v,k){K(v).passiveListener=k}var w=new WeakMap,F=1,z=2,P=3;function L(v){return v!==null&&typeof v==="object"}function N(v){let k=w.get(v);if(k==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return k}function x(v){return{get(){let k=N(this).get(v);while(k!=null){if(k.listenerType===P)return k.listener;k=k.next}return null},set(k){if(typeof k!=="function"&&!L(k))k=null;let O=N(this),E=null,g=O.get(v);while(g!=null){if(g.listenerType===P)if(E!==null)E.next=g.next;else if(g.next!==null)O.set(v,g.next);else O.delete(v);else E=g;g=g.next}if(k!==null){let T={listener:k,listenerType:P,passive:!1,once:!1,next:null};if(E===null)O.set(v,T);else E.next=T}},configurable:!0,enumerable:!0}}function d(v,k){Object.defineProperty(v,`on${k}`,x(k))}function i(v){function k(){_.call(this)}k.prototype=Object.create(_.prototype,{constructor:{value:k,configurable:!0,writable:!0}});for(let O=0;O<v.length;++O)d(k.prototype,v[O]);return k}function _(){if(this instanceof _){w.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i(arguments[0]);if(arguments.length>0){let v=Array(arguments.length);for(let k=0;k<arguments.length;++k)v[k]=arguments[k];return i(v)}throw TypeError("Cannot call a class as a function")}if(_.prototype={addEventListener(v,k,O){if(k==null)return;if(typeof k!=="function"&&!L(k))throw TypeError("'listener' should be a function or an object.");let E=N(this),g=L(O),T=(g?Boolean(O.capture):Boolean(O))?F:z,o={listener:k,listenerType:T,passive:g&&Boolean(O.passive),once:g&&Boolean(O.once),next:null},e=E.get(v);if(e===void 0){E.set(v,o);return}let X0=null;while(e!=null){if(e.listener===k&&e.listenerType===T)return;X0=e,e=e.next}X0.next=o},removeEventListener(v,k,O){if(k==null)return;let E=N(this),g=(L(O)?Boolean(O.capture):Boolean(O))?F:z,T=null,o=E.get(v);while(o!=null){if(o.listener===k&&o.listenerType===g){if(T!==null)T.next=o.next;else if(o.next!==null)E.set(v,o.next);else E.delete(v);return}T=o,o=o.next}},dispatchEvent(v){if(v==null||typeof v.type!=="string")throw TypeError('"event.type" should be a string.');let k=N(this),O=v.type,E=k.get(O);if(E==null)return!0;let g=j(this,v),T=null;while(E!=null){if(E.once)if(T!==null)T.next=E.next;else if(E.next!==null)k.set(O,E.next);else k.delete(O);else T=E;if(A(g,E.passive?E.listener:null),typeof E.listener==="function")try{E.listener.call(this,g)}catch(o){if(typeof console<"u"&&typeof console.error==="function")console.error(o)}else if(E.listenerType!==P&&typeof E.listener.handleEvent==="function")E.listener.handleEvent(g);if(W(g))break;E=E.next}return A(g,null),H(g,0),S(g,null),!g.defaultPrevented}},Object.defineProperty(_.prototype,"constructor",{value:_,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(_.prototype,window.EventTarget.prototype);Q.defineEventAttribute=d,Q.EventTarget=_,Q.default=_,J.exports=_,J.exports.EventTarget=J.exports.default=_,J.exports.defineEventAttribute=d}),o1=M0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=rY();class X extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let B=V.get(this);if(typeof B!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return B}}$.defineEventAttribute(X.prototype,"abort");function K(){let B=Object.create(X.prototype);return $.EventTarget.call(B),V.set(B,!1),B}function Y(B){if(V.get(B)!==!1)return;V.set(B,!0),B.dispatchEvent({type:"abort"})}var V=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 q{constructor(){U.set(this,K())}get signal(){return G(this)}abort(){Y(G(this))}}var U=new WeakMap;function G(B){let j=U.get(B);if(j==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${B===null?"null":typeof B}`);return j}if(Object.defineProperties(q.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(q.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=q,Q.AbortSignal=X,Q.default=q,J.exports=q,J.exports.AbortController=J.exports.default=q,J.exports.AbortSignal=X}),_0=M0((Q,J)=>{var $=(L2(),u0(M2)),{format:X,inspect:K}=p7(),{codes:{ERR_INVALID_ARG_TYPE:Y}}=x0(),{kResistStopPropagation:V,AggregateError:q,SymbolDispose:U}=N0(),G=globalThis.AbortSignal||o1().AbortSignal,B=globalThis.AbortController||o1().AbortController,j=Object.getPrototypeOf(async function(){}).constructor,W=globalThis.Blob||$.Blob,H=typeof W<"u"?function(w){return w instanceof W}:function(w){return!1},S=(w,F)=>{if(w!==void 0&&(w===null||typeof w!=="object"||!("aborted"in w)))throw new Y(F,"AbortSignal",w)},A=(w,F)=>{if(typeof w!=="function")throw new Y(F,"Function",w)};J.exports={AggregateError:q,kEmptyObject:Object.freeze({}),once(w){let F=!1;return function(...z){if(F)return;F=!0,w.apply(this,z)}},createDeferredPromise:function(){let w,F;return{promise:new Promise((z,P)=>{w=z,F=P}),resolve:w,reject:F}},promisify(w){return new Promise((F,z)=>{w((P,...L)=>{if(P)return z(P);return F(...L)})})},debuglog(){return function(){}},format:X,inspect:K,types:{isAsyncFunction(w){return w instanceof j},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:H,deprecate(w,F){return w},addAbortListener:(r1(),u0(n1)).addAbortListener||function(w,F){if(w===void 0)throw new Y("signal","AbortSignal",w);S(w,"signal"),A(F,"listener");let z;if(w.aborted)queueMicrotask(()=>F());else w.addEventListener("abort",F,{__proto__:null,once:!0,[V]:!0}),z=()=>{w.removeEventListener("abort",F)};return{__proto__:null,[U](){var P;(P=z)===null||P===void 0||P()}}},AbortSignalAny:G.any||function(w){if(w.length===1)return w[0];let F=new B,z=()=>F.abort();return w.forEach((P)=>{S(P,"signals"),P.addEventListener("abort",z,{once:!0})}),F.signal.addEventListener("abort",()=>{w.forEach((P)=>P.removeEventListener("abort",z))},{once:!0}),F.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),a1=M0((Q,J)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:K,ArrayPrototypeMap:Y,NumberIsInteger:V,NumberIsNaN:q,NumberMAX_SAFE_INTEGER:U,NumberMIN_SAFE_INTEGER:G,NumberParseInt:B,ObjectPrototypeHasOwnProperty:j,RegExpPrototypeExec:W,String:H,StringPrototypeToUpperCase:S,StringPrototypeTrim:A}=N0(),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:F,ERR_INVALID_ARG_TYPE:z,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:N}}=x0(),{normalizeEncoding:x}=_0(),{isAsyncFunction:d,isArrayBufferView:i}=_0().types,_={};function v(D){return D===(D|0)}function k(D){return D===D>>>0}var O=/^[0-7]+$/,E="must be a 32-bit unsigned integer or an octal string";function g(D,m,Q0){if(typeof D>"u")D=Q0;if(typeof D==="string"){if(W(O,D)===null)throw new P(m,D,E);D=B(D,8)}return e(D,m),D}var T=w((D,m,Q0=G,l=U)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new L(m,"an integer",D);if(D<Q0||D>l)throw new L(m,`>= ${Q0} && <= ${l}`,D)}),o=w((D,m,Q0=-2147483648,l=2147483647)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new L(m,"an integer",D);if(D<Q0||D>l)throw new L(m,`>= ${Q0} && <= ${l}`,D)}),e=w((D,m,Q0=!1)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new L(m,"an integer",D);let l=Q0?1:0,q0=4294967295;if(D<l||D>q0)throw new L(m,`>= ${l} && <= ${q0}`,D)});function X0(D,m){if(typeof D!=="string")throw new z(m,"string",D)}function W0(D,m,Q0=void 0,l){if(typeof D!=="number")throw new z(m,"number",D);if(Q0!=null&&D<Q0||l!=null&&D>l||(Q0!=null||l!=null)&&q(D))throw new L(m,`${Q0!=null?`>= ${Q0}`:""}${Q0!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,D)}var p=w((D,m,Q0)=>{if(!X(Q0,D)){let l="must be one of: "+K(Y(Q0,(q0)=>typeof q0==="string"?`'${q0}'`:H(q0)),", ");throw new P(m,D,l)}});function V0(D,m){if(typeof D!=="boolean")throw new z(m,"boolean",D)}function I(D,m,Q0){return D==null||!j(D,m)?Q0:D[m]}var c=w((D,m,Q0=null)=>{let l=I(Q0,"allowArray",!1),q0=I(Q0,"allowFunction",!1);if(!I(Q0,"nullable",!1)&&D===null||!l&&$(D)||typeof D!=="object"&&(!q0||typeof D!=="function"))throw new z(m,"Object",D)}),$0=w((D,m)=>{if(D!=null&&typeof D!=="object"&&typeof D!=="function")throw new z(m,"a dictionary",D)}),f=w((D,m,Q0=0)=>{if(!$(D))throw new z(m,"Array",D);if(D.length<Q0){let l=`must be longer than ${Q0}`;throw new P(m,D,l)}});function Y0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++)X0(D[Q0],`${m}[${Q0}]`)}function G0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++)V0(D[Q0],`${m}[${Q0}]`)}function H0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++){let l=D[Q0],q0=`${m}[${Q0}]`;if(l==null)throw new z(q0,"AbortSignal",l);U0(l,q0)}}function Z0(D,m="signal"){if(X0(D,m),_[D]===void 0){if(_[S(D)]!==void 0)throw new N(D+" (signals must use all capital letters)");throw new N(D)}}var b=w((D,m="buffer")=>{if(!i(D))throw new z(m,["Buffer","TypedArray","DataView"],D)});function u(D,m){let Q0=x(m),l=D.length;if(Q0==="hex"&&l%2!==0)throw new P("encoding",m,`is invalid for data of length ${l}`)}function a(D,m="Port",Q0=!0){if(typeof D!=="number"&&typeof D!=="string"||typeof D==="string"&&A(D).length===0||+D!==+D>>>0||D>65535||D===0&&!Q0)throw new F(m,D,Q0);return D|0}var U0=w((D,m)=>{if(D!==void 0&&(D===null||typeof D!=="object"||!("aborted"in D)))throw new z(m,"AbortSignal",D)}),z0=w((D,m)=>{if(typeof D!=="function")throw new z(m,"Function",D)}),C=w((D,m)=>{if(typeof D!=="function"||d(D))throw new z(m,"Function",D)}),R=w((D,m)=>{if(D!==void 0)throw new z(m,"undefined",D)});function h(D,m,Q0){if(!X(Q0,D))throw new z(m,`('${K(Q0,"|")}')`,D)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function t(D,m){if(typeof D>"u"||!W(r,D))throw new P(m,D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function s(D){if(typeof D==="string")return t(D,"hints"),D;else if($(D)){let m=D.length,Q0="";if(m===0)return Q0;for(let l=0;l<m;l++){let q0=D[l];if(t(q0,"hints"),Q0+=q0,l!==m-1)Q0+=", "}return Q0}throw new P("hints",D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:v,isUint32:k,parseFileMode:g,validateArray:f,validateStringArray:Y0,validateBooleanArray:G0,validateAbortSignalArray:H0,validateBoolean:V0,validateBuffer:b,validateDictionary:$0,validateEncoding:u,validateFunction:z0,validateInt32:o,validateInteger:T,validateNumber:W0,validateObject:c,validateOneOf:p,validatePlainFunction:C,validatePort:a,validateSignalName:Z0,validateString:X0,validateUint32:e,validateUndefined:R,validateUnion:h,validateAbortSignal:U0,validateLinkHeaderValue:s}}),o2=M0((Q,J)=>{J.exports=globalThis.process}),w2=M0((Q,J)=>{var{SymbolAsyncIterator:$,SymbolIterator:X,SymbolFor:K}=N0(),Y=K("nodejs.stream.destroyed"),V=K("nodejs.stream.errored"),q=K("nodejs.stream.readable"),U=K("nodejs.stream.writable"),G=K("nodejs.stream.disturbed"),B=K("nodejs.webstream.isClosedPromise"),j=K("nodejs.webstream.controllerErrorFunction");function W(I,c=!1){var $0;return!!(I&&typeof I.pipe==="function"&&typeof I.on==="function"&&(!c||typeof I.pause==="function"&&typeof I.resume==="function")&&(!I._writableState||(($0=I._readableState)===null||$0===void 0?void 0:$0.readable)!==!1)&&(!I._writableState||I._readableState))}function H(I){var c;return!!(I&&typeof I.write==="function"&&typeof I.on==="function"&&(!I._readableState||((c=I._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function S(I){return!!(I&&typeof I.pipe==="function"&&I._readableState&&typeof I.on==="function"&&typeof I.write==="function")}function A(I){return I&&(I._readableState||I._writableState||typeof I.write==="function"&&typeof I.on==="function"||typeof I.pipe==="function"&&typeof I.on==="function")}function w(I){return!!(I&&!A(I)&&typeof I.pipeThrough==="function"&&typeof I.getReader==="function"&&typeof I.cancel==="function")}function F(I){return!!(I&&!A(I)&&typeof I.getWriter==="function"&&typeof I.abort==="function")}function z(I){return!!(I&&!A(I)&&typeof I.readable==="object"&&typeof I.writable==="object")}function P(I){return w(I)||F(I)||z(I)}function L(I,c){if(I==null)return!1;if(c===!0)return typeof I[$]==="function";if(c===!1)return typeof I[X]==="function";return typeof I[$]==="function"||typeof I[X]==="function"}function N(I){if(!A(I))return null;let{_writableState:c,_readableState:$0}=I,f=c||$0;return!!(I.destroyed||I[Y]||f!==null&&f!==void 0&&f.destroyed)}function x(I){if(!H(I))return null;if(I.writableEnded===!0)return!0;let c=I._writableState;if(c!==null&&c!==void 0&&c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function d(I,c){if(!H(I))return null;if(I.writableFinished===!0)return!0;let $0=I._writableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.finished)!=="boolean")return null;return!!($0.finished||c===!1&&$0.ended===!0&&$0.length===0)}function i(I){if(!W(I))return null;if(I.readableEnded===!0)return!0;let c=I._readableState;if(!c||c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function _(I,c){if(!W(I))return null;let $0=I._readableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.endEmitted)!=="boolean")return null;return!!($0.endEmitted||c===!1&&$0.ended===!0&&$0.length===0)}function v(I){if(I&&I[q]!=null)return I[q];if(typeof(I===null||I===void 0?void 0:I.readable)!=="boolean")return null;if(N(I))return!1;return W(I)&&I.readable&&!_(I)}function k(I){if(I&&I[U]!=null)return I[U];if(typeof(I===null||I===void 0?void 0:I.writable)!=="boolean")return null;if(N(I))return!1;return H(I)&&I.writable&&!x(I)}function O(I,c){if(!A(I))return null;if(N(I))return!0;if((c===null||c===void 0?void 0:c.readable)!==!1&&v(I))return!1;if((c===null||c===void 0?void 0:c.writable)!==!1&&k(I))return!1;return!0}function E(I){var c,$0;if(!A(I))return null;if(I.writableErrored)return I.writableErrored;return(c=($0=I._writableState)===null||$0===void 0?void 0:$0.errored)!==null&&c!==void 0?c:null}function g(I){var c,$0;if(!A(I))return null;if(I.readableErrored)return I.readableErrored;return(c=($0=I._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&c!==void 0?c:null}function T(I){if(!A(I))return null;if(typeof I.closed==="boolean")return I.closed;let{_writableState:c,_readableState:$0}=I;if(typeof(c===null||c===void 0?void 0:c.closed)==="boolean"||typeof($0===null||$0===void 0?void 0:$0.closed)==="boolean")return(c===null||c===void 0?void 0:c.closed)||($0===null||$0===void 0?void 0:$0.closed);if(typeof I._closed==="boolean"&&o(I))return I._closed;return null}function o(I){return typeof I._closed==="boolean"&&typeof I._defaultKeepAlive==="boolean"&&typeof I._removedConnection==="boolean"&&typeof I._removedContLen==="boolean"}function e(I){return typeof I._sent100==="boolean"&&o(I)}function X0(I){var c;return typeof I._consuming==="boolean"&&typeof I._dumped==="boolean"&&((c=I.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function W0(I){if(!A(I))return null;let{_writableState:c,_readableState:$0}=I,f=c||$0;return!f&&e(I)||!!(f&&f.autoDestroy&&f.emitClose&&f.closed===!1)}function p(I){var c;return!!(I&&((c=I[G])!==null&&c!==void 0?c:I.readableDidRead||I.readableAborted))}function V0(I){var c,$0,f,Y0,G0,H0,Z0,b,u,a;return!!(I&&((c=($0=(f=(Y0=(G0=(H0=I[V])!==null&&H0!==void 0?H0:I.readableErrored)!==null&&G0!==void 0?G0:I.writableErrored)!==null&&Y0!==void 0?Y0:(Z0=I._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&f!==void 0?f:(b=I._writableState)===null||b===void 0?void 0:b.errorEmitted)!==null&&$0!==void 0?$0:(u=I._readableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:(a=I._writableState)===null||a===void 0?void 0:a.errored))}J.exports={isDestroyed:N,kIsDestroyed:Y,isDisturbed:p,kIsDisturbed:G,isErrored:V0,kIsErrored:V,isReadable:v,kIsReadable:q,kIsClosedPromise:B,kControllerErrorFunction:j,kIsWritable:U,isClosed:T,isDuplexNodeStream:S,isFinished:O,isIterable:L,isReadableNodeStream:W,isReadableStream:w,isReadableEnded:i,isReadableFinished:_,isReadableErrored:g,isNodeStream:A,isWebStream:P,isWritable:k,isWritableNodeStream:H,isWritableStream:F,isWritableEnded:x,isWritableFinished:d,isWritableErrored:E,isServerRequest:X0,isServerResponse:e,willEmitClose:W0,isTransformStream:z}}),k2=M0((Q,J)=>{var $=o2(),{AbortError:X,codes:K}=x0(),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_PREMATURE_CLOSE:V}=K,{kEmptyObject:q,once:U}=_0(),{validateAbortSignal:G,validateFunction:B,validateObject:j,validateBoolean:W}=a1(),{Promise:H,PromisePrototypeThen:S,SymbolDispose:A}=N0(),{isClosed:w,isReadable:F,isReadableNodeStream:z,isReadableStream:P,isReadableFinished:L,isReadableErrored:N,isWritable:x,isWritableNodeStream:d,isWritableStream:i,isWritableFinished:_,isWritableErrored:v,isNodeStream:k,willEmitClose:O,kIsClosedPromise:E}=w2(),g;function T(p){return p.setHeader&&typeof p.abort==="function"}var o=()=>{};function e(p,V0,I){var c,$0;if(arguments.length===2)I=V0,V0=q;else if(V0==null)V0=q;else j(V0,"options");if(B(I,"callback"),G(V0.signal,"options.signal"),I=U(I),P(p)||i(p))return X0(p,V0,I);if(!k(p))throw new Y("stream",["ReadableStream","WritableStream","Stream"],p);let f=(c=V0.readable)!==null&&c!==void 0?c:z(p),Y0=($0=V0.writable)!==null&&$0!==void 0?$0:d(p),G0=p._writableState,H0=p._readableState,Z0=()=>{if(!p.writable)a()},b=O(p)&&z(p)===f&&d(p)===Y0,u=_(p,!1),a=()=>{if(u=!0,p.destroyed)b=!1;if(b&&(!p.readable||f))return;if(!f||U0)I.call(p)},U0=L(p,!1),z0=()=>{if(U0=!0,p.destroyed)b=!1;if(b&&(!p.writable||Y0))return;if(!Y0||u)I.call(p)},C=(D)=>{I.call(p,D)},R=w(p),h=()=>{R=!0;let D=v(p)||N(p);if(D&&typeof D!=="boolean")return I.call(p,D);if(f&&!U0&&z(p,!0)){if(!L(p,!1))return I.call(p,new V)}if(Y0&&!u){if(!_(p,!1))return I.call(p,new V)}I.call(p)},r=()=>{R=!0;let D=v(p)||N(p);if(D&&typeof D!=="boolean")return I.call(p,D);I.call(p)},t=()=>{p.req.on("finish",a)};if(T(p)){if(p.on("complete",a),!b)p.on("abort",h);if(p.req)t();else p.on("request",t)}else if(Y0&&!G0)p.on("end",Z0),p.on("close",Z0);if(!b&&typeof p.aborted==="boolean")p.on("aborted",h);if(p.on("end",z0),p.on("finish",a),V0.error!==!1)p.on("error",C);if(p.on("close",h),R)$.nextTick(h);else if(G0!==null&&G0!==void 0&&G0.errorEmitted||H0!==null&&H0!==void 0&&H0.errorEmitted){if(!b)$.nextTick(r)}else if(!f&&(!b||F(p))&&(u||x(p)===!1))$.nextTick(r);else if(!Y0&&(!b||x(p))&&(U0||F(p)===!1))$.nextTick(r);else if(H0&&p.req&&p.aborted)$.nextTick(r);let s=()=>{if(I=o,p.removeListener("aborted",h),p.removeListener("complete",a),p.removeListener("abort",h),p.removeListener("request",t),p.req)p.req.removeListener("finish",a);p.removeListener("end",Z0),p.removeListener("close",Z0),p.removeListener("finish",a),p.removeListener("end",z0),p.removeListener("error",C),p.removeListener("close",h)};if(V0.signal&&!R){let D=()=>{let m=I;s(),m.call(p,new X(void 0,{cause:V0.signal.reason}))};if(V0.signal.aborted)$.nextTick(D);else{g=g||_0().addAbortListener;let m=g(V0.signal,D),Q0=I;I=U((...l)=>{m[A](),Q0.apply(p,l)})}}return s}function X0(p,V0,I){let c=!1,$0=o;if(V0.signal)if($0=()=>{c=!0,I.call(p,new X(void 0,{cause:V0.signal.reason}))},V0.signal.aborted)$.nextTick($0);else{g=g||_0().addAbortListener;let Y0=g(V0.signal,$0),G0=I;I=U((...H0)=>{Y0[A](),G0.apply(p,H0)})}let f=(...Y0)=>{if(!c)$.nextTick(()=>I.apply(p,Y0))};return S(p[E].promise,f,f),o}function W0(p,V0){var I;let c=!1;if(V0===null)V0=q;if((I=V0)!==null&&I!==void 0&&I.cleanup)W(V0.cleanup,"cleanup"),c=V0.cleanup;return new H(($0,f)=>{let Y0=e(p,V0,(G0)=>{if(c)Y0();if(G0)f(G0);else $0()})})}J.exports=e,J.exports.finished=W0}),P1=M0((Q,J)=>{var $=o2(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:Y}=x0(),{Symbol:V}=N0(),{kIsDestroyed:q,isDestroyed:U,isFinished:G,isServerRequest:B}=w2(),j=V("kDestroy"),W=V("kConstruct");function H(O,E,g){if(O){if(O.stack,E&&!E.errored)E.errored=O;if(g&&!g.errored)g.errored=O}}function S(O,E){let g=this._readableState,T=this._writableState,o=T||g;if(T!==null&&T!==void 0&&T.destroyed||g!==null&&g!==void 0&&g.destroyed){if(typeof E==="function")E();return this}if(H(O,T,g),T)T.destroyed=!0;if(g)g.destroyed=!0;if(!o.constructed)this.once(j,function(e){A(this,X(e,O),E)});else A(this,O,E);return this}function A(O,E,g){let T=!1;function o(e){if(T)return;T=!0;let{_readableState:X0,_writableState:W0}=O;if(H(e,W0,X0),W0)W0.closed=!0;if(X0)X0.closed=!0;if(typeof g==="function")g(e);if(e)$.nextTick(w,O,e);else $.nextTick(F,O)}try{O._destroy(E||null,o)}catch(e){o(e)}}function w(O,E){z(O,E),F(O)}function F(O){let{_readableState:E,_writableState:g}=O;if(g)g.closeEmitted=!0;if(E)E.closeEmitted=!0;if(g!==null&&g!==void 0&&g.emitClose||E!==null&&E!==void 0&&E.emitClose)O.emit("close")}function z(O,E){let{_readableState:g,_writableState:T}=O;if(T!==null&&T!==void 0&&T.errorEmitted||g!==null&&g!==void 0&&g.errorEmitted)return;if(T)T.errorEmitted=!0;if(g)g.errorEmitted=!0;O.emit("error",E)}function P(){let O=this._readableState,E=this._writableState;if(O)O.constructed=!0,O.closed=!1,O.closeEmitted=!1,O.destroyed=!1,O.errored=null,O.errorEmitted=!1,O.reading=!1,O.ended=O.readable===!1,O.endEmitted=O.readable===!1;if(E)E.constructed=!0,E.destroyed=!1,E.closed=!1,E.closeEmitted=!1,E.errored=null,E.errorEmitted=!1,E.finalCalled=!1,E.prefinished=!1,E.ended=E.writable===!1,E.ending=E.writable===!1,E.finished=E.writable===!1}function L(O,E,g){let{_readableState:T,_writableState:o}=O;if(o!==null&&o!==void 0&&o.destroyed||T!==null&&T!==void 0&&T.destroyed)return this;if(T!==null&&T!==void 0&&T.autoDestroy||o!==null&&o!==void 0&&o.autoDestroy)O.destroy(E);else if(E){if(E.stack,o&&!o.errored)o.errored=E;if(T&&!T.errored)T.errored=E;if(g)$.nextTick(z,O,E);else z(O,E)}}function N(O,E){if(typeof O._construct!=="function")return;let{_readableState:g,_writableState:T}=O;if(g)g.constructed=!1;if(T)T.constructed=!1;if(O.once(W,E),O.listenerCount(W)>1)return;$.nextTick(x,O)}function x(O){let E=!1;function g(T){if(E){L(O,T!==null&&T!==void 0?T:new K);return}E=!0;let{_readableState:o,_writableState:e}=O,X0=e||o;if(o)o.constructed=!0;if(e)e.constructed=!0;if(X0.destroyed)O.emit(j,T);else if(T)L(O,T,!0);else $.nextTick(d,O)}try{O._construct((T)=>{$.nextTick(g,T)})}catch(T){$.nextTick(g,T)}}function d(O){O.emit(W)}function i(O){return(O===null||O===void 0?void 0:O.setHeader)&&typeof O.abort==="function"}function _(O){O.emit("close")}function v(O,E){O.emit("error",E),$.nextTick(_,O)}function k(O,E){if(!O||U(O))return;if(!E&&!G(O))E=new Y;if(B(O))O.socket=null,O.destroy(E);else if(i(O))O.abort();else if(i(O.req))O.req.abort();else if(typeof O.destroy==="function")O.destroy(E);else if(typeof O.close==="function")O.close();else if(E)$.nextTick(v,O,E);else $.nextTick(_,O);if(!O.destroyed)O[q]=!0}J.exports={construct:N,destroyer:k,destroy:S,undestroy:P,errorOrDestroy:L}}),n8=M0((Q,J)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:X}=N0(),{EventEmitter:K}=(r1(),u0(n1));function Y(q){K.call(this,q)}X(Y.prototype,K.prototype),X(Y,K),Y.prototype.pipe=function(q,U){let G=this;function B(F){if(q.writable&&q.write(F)===!1&&G.pause)G.pause()}G.on("data",B);function j(){if(G.readable&&G.resume)G.resume()}if(q.on("drain",j),!q._isStdio&&(!U||U.end!==!1))G.on("end",H),G.on("close",S);let W=!1;function H(){if(W)return;W=!0,q.end()}function S(){if(W)return;if(W=!0,typeof q.destroy==="function")q.destroy()}function A(F){if(w(),K.listenerCount(this,"error")===0)this.emit("error",F)}V(G,"error",A),V(q,"error",A);function w(){G.removeListener("data",B),q.removeListener("drain",j),G.removeListener("end",H),G.removeListener("close",S),G.removeListener("error",A),q.removeListener("error",A),G.removeListener("end",w),G.removeListener("close",w),q.removeListener("close",w)}return G.on("end",w),G.on("close",w),q.on("close",w),q.emit("pipe",G),q};function V(q,U,G){if(typeof q.prependListener==="function")return q.prependListener(U,G);if(!q._events||!q._events[U])q.on(U,G);else if($(q._events[U]))q._events[U].unshift(G);else q._events[U]=[G,q._events[U]]}J.exports={Stream:Y,prependListener:V}}),x6=M0((Q,J)=>{var{SymbolDispose:$}=N0(),{AbortError:X,codes:K}=x0(),{isNodeStream:Y,isWebStream:V,kControllerErrorFunction:q}=w2(),U=k2(),{ERR_INVALID_ARG_TYPE:G}=K,B,j=(W,H)=>{if(typeof W!=="object"||!("aborted"in W))throw new G(H,"AbortSignal",W)};J.exports.addAbortSignal=function(W,H){if(j(W,"signal"),!Y(H)&&!V(H))throw new G("stream",["ReadableStream","WritableStream","Stream"],H);return J.exports.addAbortSignalNoValidate(W,H)},J.exports.addAbortSignalNoValidate=function(W,H){if(typeof W!=="object"||!("aborted"in W))return H;let S=Y(H)?()=>{H.destroy(new X(void 0,{cause:W.reason}))}:()=>{H[q](new X(void 0,{cause:W.reason}))};if(W.aborted)S();else{B=B||_0().addAbortListener;let A=B(W,S);U(H,A[$])}return H}}),oY=M0((Q,J)=>{var{StringPrototypeSlice:$,SymbolIterator:X,TypedArrayPrototypeSet:K,Uint8Array:Y}=N0(),{Buffer:V}=(L2(),u0(M2)),{inspect:q}=_0();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(U){let G={data:U,next:null};if(this.length>0)this.tail.next=G;else this.head=G;this.tail=G,++this.length}unshift(U){let G={data:U,next:this.head};if(this.length===0)this.tail=G;this.head=G,++this.length}shift(){if(this.length===0)return;let U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U}clear(){this.head=this.tail=null,this.length=0}join(U){if(this.length===0)return"";let G=this.head,B=""+G.data;while((G=G.next)!==null)B+=U+G.data;return B}concat(U){if(this.length===0)return V.alloc(0);let G=V.allocUnsafe(U>>>0),B=this.head,j=0;while(B)K(G,B.data,j),j+=B.data.length,B=B.next;return G}consume(U,G){let B=this.head.data;if(U<B.length){let j=B.slice(0,U);return this.head.data=B.slice(U),j}if(U===B.length)return this.shift();return G?this._getString(U):this._getBuffer(U)}first(){return this.head.data}*[X](){for(let U=this.head;U;U=U.next)yield U.data}_getString(U){let G="",B=this.head,j=0;do{let W=B.data;if(U>W.length)G+=W,U-=W.length;else{if(U===W.length)if(G+=W,++j,B.next)this.head=B.next;else this.head=this.tail=null;else G+=$(W,0,U),this.head=B,B.data=$(W,U);break}++j}while((B=B.next)!==null);return this.length-=j,G}_getBuffer(U){let G=V.allocUnsafe(U),B=U,j=this.head,W=0;do{let H=j.data;if(U>H.length)K(G,H,B-U),U-=H.length;else{if(U===H.length)if(K(G,H,B-U),++W,j.next)this.head=j.next;else this.head=this.tail=null;else K(G,new Y(H.buffer,H.byteOffset,U),B-U),this.head=j,j.data=H.slice(U);break}++W}while((j=j.next)!==null);return this.length-=W,G}[Symbol.for("nodejs.util.inspect.custom")](U,G){return q(this,{...G,depth:0,customInspect:!1})}}}),g6=M0((Q,J)=>{var{MathFloor:$,NumberIsInteger:X}=N0(),{validateInteger:K}=a1(),{ERR_INVALID_ARG_VALUE:Y}=x0().codes,V=16384,q=16;function U(W,H,S){return W.highWaterMark!=null?W.highWaterMark:H?W[S]:null}function G(W){return W?q:V}function B(W,H){if(K(H,"value",0),W)q=H;else V=H}function j(W,H,S,A){let w=U(H,A,S);if(w!=null){if(!X(w)||w<0){let F=A?`options.${S}`:"options.highWaterMark";throw new Y(F,w)}return $(w)}return G(W.objectMode)}J.exports={getHighWaterMark:j,getDefaultHighWaterMark:G,setDefaultHighWaterMark:B}}),aY=M0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(L2(),u0(M2)),X=$.Buffer;function K(V,q){for(var U in V)q[U]=V[U]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)J.exports=$;else K($,Q),Q.Buffer=Y;function Y(V,q,U){return X(V,q,U)}Y.prototype=Object.create(X.prototype),K(X,Y),Y.from=function(V,q,U){if(typeof V==="number")throw TypeError("Argument must not be a number");return X(V,q,U)},Y.alloc=function(V,q,U){if(typeof V!=="number")throw TypeError("Argument must be a number");var G=X(V);if(q!==void 0)if(typeof U==="string")G.fill(q,U);else G.fill(q);else G.fill(0);return G},Y.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return X(V)},Y.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(V)}}),sY=M0((Q)=>{var J=aY().Buffer,$=J.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 X(z){if(!z)return"utf8";var P;while(!0)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(P)return;z=(""+z).toLowerCase(),P=!0}}function K(z){var P=X(z);if(typeof P!=="string"&&(J.isEncoding===$||!$(z)))throw Error("Unknown encoding: "+z);return P||z}Q.StringDecoder=Y;function Y(z){this.encoding=K(z);var P;switch(this.encoding){case"utf16le":this.text=W,this.end=H,P=4;break;case"utf8":this.fillLast=G,P=4;break;case"base64":this.text=S,this.end=A,P=3;break;default:this.write=w,this.end=F;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(P)}Y.prototype.write=function(z){if(z.length===0)return"";var P,L;if(this.lastNeed){if(P=this.fillLast(z),P===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;if(L<z.length)return P?P+this.text(z,L):this.text(z,L);return P||""},Y.prototype.end=j,Y.prototype.text=B,Y.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 V(z){if(z<=127)return 0;else if(z>>5===6)return 2;else if(z>>4===14)return 3;else if(z>>3===30)return 4;return z>>6===2?-1:-2}function q(z,P,L){var N=P.length-1;if(N<L)return 0;var x=V(P[N]);if(x>=0){if(x>0)z.lastNeed=x-1;return x}if(--N<L||x===-2)return 0;if(x=V(P[N]),x>=0){if(x>0)z.lastNeed=x-2;return x}if(--N<L||x===-2)return 0;if(x=V(P[N]),x>=0){if(x>0)if(x===2)x=0;else z.lastNeed=x-3;return x}return 0}function U(z,P,L){if((P[0]&192)!==128)return z.lastNeed=0,"�";if(z.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return z.lastNeed=1,"�";if(z.lastNeed>2&&P.length>2){if((P[2]&192)!==128)return z.lastNeed=2,"�"}}}function G(z){var P=this.lastTotal-this.lastNeed,L=U(this,z,P);if(L!==void 0)return L;if(this.lastNeed<=z.length)return z.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);z.copy(this.lastChar,P,0,z.length),this.lastNeed-=z.length}function B(z,P){var L=q(this,z,P);if(!this.lastNeed)return z.toString("utf8",P);this.lastTotal=L;var N=z.length-(L-this.lastNeed);return z.copy(this.lastChar,0,N),z.toString("utf8",P,N)}function j(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+"�";return P}function W(z,P){if((z.length-P)%2===0){var L=z.toString("utf16le",P);if(L){var N=L.charCodeAt(L.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=z[z.length-1],z.toString("utf16le",P,z.length-1)}function H(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return P+this.lastChar.toString("utf16le",0,L)}return P}function S(z,P){var L=(z.length-P)%3;if(L===0)return z.toString("base64",P);if(this.lastNeed=3-L,this.lastTotal=3,L===1)this.lastChar[0]=z[z.length-1];else this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1];return z.toString("base64",P,z.length-L)}function A(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+this.lastChar.toString("base64",0,3-this.lastNeed);return P}function w(z){return z.toString(this.encoding)}function F(z){return z&&z.length?this.write(z):""}}),c7=M0((Q,J)=>{var $=o2(),{PromisePrototypeThen:X,SymbolAsyncIterator:K,SymbolIterator:Y}=N0(),{Buffer:V}=(L2(),u0(M2)),{ERR_INVALID_ARG_TYPE:q,ERR_STREAM_NULL_VALUES:U}=x0().codes;function G(B,j,W){let H;if(typeof j==="string"||j instanceof V)return new B({objectMode:!0,...W,read(){this.push(j),this.push(null)}});let S;if(j&&j[K])S=!0,H=j[K]();else if(j&&j[Y])S=!1,H=j[Y]();else throw new q("iterable",["Iterable"],j);let A=new B({objectMode:!0,highWaterMark:1,...W}),w=!1;A._read=function(){if(!w)w=!0,z()},A._destroy=function(P,L){X(F(P),()=>$.nextTick(L,P),(N)=>$.nextTick(L,N||P))};async function F(P){let L=P!==void 0&&P!==null,N=typeof H.throw==="function";if(L&&N){let{value:x,done:d}=await H.throw(P);if(await x,d)return}if(typeof H.return==="function"){let{value:x}=await H.return();await x}}async function z(){for(;;){try{let{value:P,done:L}=S?await H.next():H.next();if(L)A.push(null);else{let N=P&&typeof P.then==="function"?await P:P;if(N===null)throw w=!1,new U;else if(A.push(N))continue;else w=!1}}catch(P){A.destroy(P)}break}}return A}J.exports=G}),y6=M0((Q,J)=>{var $=o2(),{ArrayPrototypeIndexOf:X,NumberIsInteger:K,NumberIsNaN:Y,NumberParseInt:V,ObjectDefineProperties:q,ObjectKeys:U,ObjectSetPrototypeOf:G,Promise:B,SafeSet:j,SymbolAsyncDispose:W,SymbolAsyncIterator:H,Symbol:S}=N0();J.exports=l,l.ReadableState=Q0;var{EventEmitter:A}=(r1(),u0(n1)),{Stream:w,prependListener:F}=n8(),{Buffer:z}=(L2(),u0(M2)),{addAbortSignal:P}=x6(),L=k2(),N=_0().debuglog("stream",(Z)=>{N=Z}),x=oY(),d=P1(),{getHighWaterMark:i,getDefaultHighWaterMark:_}=g6(),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:E,ERR_STREAM_PUSH_AFTER_EOF:g,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:T},AbortError:o}=x0(),{validateObject:e}=a1(),X0=S("kPaused"),{StringDecoder:W0}=sY(),p=c7();G(l.prototype,w.prototype),G(l,w);var V0=()=>{},{errorOrDestroy:I}=d,c=1,$0=2,f=4,Y0=8,G0=16,H0=32,Z0=64,b=128,u=256,a=512,U0=1024,z0=2048,C=4096,R=8192,h=16384,r=32768,t=65536,s=131072,D=262144;function m(Z){return{enumerable:!1,get(){return(this.state&Z)!==0},set(M){if(M)this.state|=Z;else this.state&=~Z}}}q(Q0.prototype,{objectMode:m(c),ended:m($0),endEmitted:m(f),reading:m(Y0),constructed:m(G0),sync:m(H0),needReadable:m(Z0),emittedReadable:m(b),readableListening:m(u),resumeScheduled:m(a),errorEmitted:m(U0),emitClose:m(z0),autoDestroy:m(C),destroyed:m(R),closed:m(h),closeEmitted:m(r),multiAwaitDrain:m(t),readingMore:m(s),dataEmitted:m(D)});function Q0(Z,M,n){if(typeof n!=="boolean")n=M instanceof F2();if(this.state=z0|C|G0|H0,Z&&Z.objectMode)this.state|=c;if(n&&Z&&Z.readableObjectMode)this.state|=c;if(this.highWaterMark=Z?i(this,Z,"readableHighWaterMark",n):_(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this[X0]=null,Z&&Z.emitClose===!1)this.state&=~z0;if(Z&&Z.autoDestroy===!1)this.state&=~C;if(this.errored=null,this.defaultEncoding=Z&&Z.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Z&&Z.encoding)this.decoder=new W0(Z.encoding),this.encoding=Z.encoding}function l(Z){if(!(this instanceof l))return new l(Z);let M=this instanceof F2();if(this._readableState=new Q0(Z,this,M),Z){if(typeof Z.read==="function")this._read=Z.read;if(typeof Z.destroy==="function")this._destroy=Z.destroy;if(typeof Z.construct==="function")this._construct=Z.construct;if(Z.signal&&!M)P(Z.signal,this)}w.call(this,Z),d.construct(this,()=>{if(this._readableState.needReadable)z1(this,this._readableState)})}l.prototype.destroy=d.destroy,l.prototype._undestroy=d.undestroy,l.prototype._destroy=function(Z,M){M(Z)},l.prototype[A.captureRejectionSymbol]=function(Z){this.destroy(Z)},l.prototype[W]=function(){let Z;if(!this.destroyed)Z=this.readableEnded?null:new o,this.destroy(Z);return new B((M,n)=>L(this,(J0)=>J0&&J0!==Z?n(J0):M(null)))},l.prototype.push=function(Z,M){return q0(this,Z,M,!1)},l.prototype.unshift=function(Z,M){return q0(this,Z,M,!0)};function q0(Z,M,n,J0){N("readableAddChunk",M);let K0=Z._readableState,S0;if((K0.state&c)===0){if(typeof M==="string"){if(n=n||K0.defaultEncoding,K0.encoding!==n)if(J0&&K0.encoding)M=z.from(M,n).toString(K0.encoding);else M=z.from(M,n),n=""}else if(M instanceof z)n="";else if(w._isUint8Array(M))M=w._uint8ArrayToBuffer(M),n="";else if(M!=null)S0=new k("chunk",["string","Buffer","Uint8Array"],M)}if(S0)I(Z,S0);else if(M===null)K0.state&=~Y0,E0(Z,K0);else if((K0.state&c)!==0||M&&M.length>0)if(J0)if((K0.state&f)!==0)I(Z,new T);else if(K0.destroyed||K0.errored)return!1;else L0(Z,K0,M,!0);else if(K0.ended)I(Z,new g);else if(K0.destroyed||K0.errored)return!1;else if(K0.state&=~Y0,K0.decoder&&!n)if(M=K0.decoder.write(M),K0.objectMode||M.length!==0)L0(Z,K0,M,!1);else z1(Z,K0);else L0(Z,K0,M,!1);else if(!J0)K0.state&=~Y0,z1(Z,K0);return!K0.ended&&(K0.length<K0.highWaterMark||K0.length===0)}function L0(Z,M,n,J0){if(M.flowing&&M.length===0&&!M.sync&&Z.listenerCount("data")>0){if((M.state&t)!==0)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;M.dataEmitted=!0,Z.emit("data",n)}else{if(M.length+=M.objectMode?1:n.length,J0)M.buffer.unshift(n);else M.buffer.push(n);if((M.state&Z0)!==0)h0(Z)}z1(Z,M)}l.prototype.isPaused=function(){let Z=this._readableState;return Z[X0]===!0||Z.flowing===!1},l.prototype.setEncoding=function(Z){let M=new W0(Z);this._readableState.decoder=M,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,J0="";for(let K0 of n)J0+=M.write(K0);if(n.clear(),J0!=="")n.push(J0);return this._readableState.length=J0.length,this};var d0=1073741824;function l0(Z){if(Z>d0)throw new E("size","<= 1GiB",Z);else Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++;return Z}function p2(Z,M){if(Z<=0||M.length===0&&M.ended)return 0;if((M.state&c)!==0)return 1;if(Y(Z)){if(M.flowing&&M.length)return M.buffer.first().length;return M.length}if(Z<=M.length)return Z;return M.ended?M.length:0}l.prototype.read=function(Z){if(N("read",Z),Z===void 0)Z=NaN;else if(!K(Z))Z=V(Z,10);let M=this._readableState,n=Z;if(Z>M.highWaterMark)M.highWaterMark=l0(Z);if(Z!==0)M.state&=~b;if(Z===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended)){if(N("read: emitReadable",M.length,M.ended),M.length===0&&M.ended)N8(this);else h0(this);return null}if(Z=p2(Z,M),Z===0&&M.ended){if(M.length===0)N8(this);return null}let J0=(M.state&Z0)!==0;if(N("need readable",J0),M.length===0||M.length-Z<M.highWaterMark)J0=!0,N("length less than watermark",J0);if(M.ended||M.reading||M.destroyed||M.errored||!M.constructed)J0=!1,N("reading, ended or constructing",J0);else if(J0){if(N("do read"),M.state|=Y0|H0,M.length===0)M.state|=Z0;try{this._read(M.highWaterMark)}catch(S0){I(this,S0)}if(M.state&=~H0,!M.reading)Z=p2(n,M)}let K0;if(Z>0)K0=F4(Z,M);else K0=null;if(K0===null)M.needReadable=M.length<=M.highWaterMark,Z=0;else if(M.length-=Z,M.multiAwaitDrain)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;if(M.length===0){if(!M.ended)M.needReadable=!0;if(n!==Z&&M.ended)N8(this)}if(K0!==null&&!M.errorEmitted&&!M.closeEmitted)M.dataEmitted=!0,this.emit("data",K0);return K0};function E0(Z,M){if(N("onEofChunk"),M.ended)return;if(M.decoder){let n=M.decoder.end();if(n&&n.length)M.buffer.push(n),M.length+=M.objectMode?1:n.length}if(M.ended=!0,M.sync)h0(Z);else M.needReadable=!1,M.emittedReadable=!0,U1(Z)}function h0(Z){let M=Z._readableState;if(N("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,!M.emittedReadable)N("emitReadable",M.flowing),M.emittedReadable=!0,$.nextTick(U1,Z)}function U1(Z){let M=Z._readableState;if(N("emitReadable_",M.destroyed,M.length,M.ended),!M.destroyed&&!M.errored&&(M.length||M.ended))Z.emit("readable"),M.emittedReadable=!1;M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,M4(Z)}function z1(Z,M){if(!M.readingMore&&M.constructed)M.readingMore=!0,$.nextTick(X2,Z,M)}function X2(Z,M){while(!M.reading&&!M.ended&&(M.length<M.highWaterMark||M.flowing&&M.length===0)){let n=M.length;if(N("maybeReadMore read 0"),Z.read(0),n===M.length)break}M.readingMore=!1}l.prototype._read=function(Z){throw new O("_read()")},l.prototype.pipe=function(Z,M){let n=this,J0=this._readableState;if(J0.pipes.length===1){if(!J0.multiAwaitDrain)J0.multiAwaitDrain=!0,J0.awaitDrainWriters=new j(J0.awaitDrainWriters?[J0.awaitDrainWriters]:[])}J0.pipes.push(Z),N("pipe count=%d opts=%j",J0.pipes.length,M);let K0=(!M||M.end!==!1)&&Z!==$.stdout&&Z!==$.stderr?i0:_1;if(J0.endEmitted)$.nextTick(K0);else n.once("end",K0);Z.on("unpipe",S0);function S0(m2,j2){if(N("onunpipe"),m2===n){if(j2&&j2.hasUnpiped===!1)j2.hasUnpiped=!0,SX()}}function i0(){N("onend"),Z.end()}let c2,I4=!1;function SX(){if(N("cleanup"),Z.removeListener("close",D8),Z.removeListener("finish",A8),c2)Z.removeListener("drain",c2);if(Z.removeListener("error",C8),Z.removeListener("unpipe",S0),n.removeListener("end",i0),n.removeListener("end",_1),n.removeListener("data",O4),I4=!0,c2&&J0.awaitDrainWriters&&(!Z._writableState||Z._writableState.needDrain))c2()}function N4(){if(!I4){if(J0.pipes.length===1&&J0.pipes[0]===Z)N("false write response, pause",0),J0.awaitDrainWriters=Z,J0.multiAwaitDrain=!1;else if(J0.pipes.length>1&&J0.pipes.includes(Z))N("false write response, pause",J0.awaitDrainWriters.size),J0.awaitDrainWriters.add(Z);n.pause()}if(!c2)c2=CX(n,Z),Z.on("drain",c2)}n.on("data",O4);function O4(m2){N("ondata");let j2=Z.write(m2);if(N("dest.write",j2),j2===!1)N4()}function C8(m2){if(N("onerror",m2),_1(),Z.removeListener("error",C8),Z.listenerCount("error")===0){let j2=Z._writableState||Z._readableState;if(j2&&!j2.errorEmitted)I(Z,m2);else Z.emit("error",m2)}}F(Z,"error",C8);function D8(){Z.removeListener("finish",A8),_1()}Z.once("close",D8);function A8(){N("onfinish"),Z.removeListener("close",D8),_1()}Z.once("finish",A8);function _1(){N("unpipe"),n.unpipe(Z)}if(Z.emit("pipe",n),Z.writableNeedDrain===!0)N4();else if(!J0.flowing)N("pipe resume"),n.resume();return Z};function CX(Z,M){return function(){let n=Z._readableState;if(n.awaitDrainWriters===M)N("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)N("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(M);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&Z.listenerCount("data"))Z.resume()}}l.prototype.unpipe=function(Z){let M=this._readableState,n={hasUnpiped:!1};if(M.pipes.length===0)return this;if(!Z){let K0=M.pipes;M.pipes=[],this.pause();for(let S0=0;S0<K0.length;S0++)K0[S0].emit("unpipe",this,{hasUnpiped:!1});return this}let J0=X(M.pipes,Z);if(J0===-1)return this;if(M.pipes.splice(J0,1),M.pipes.length===0)this.pause();return Z.emit("unpipe",this,n),this},l.prototype.on=function(Z,M){let n=w.prototype.on.call(this,Z,M),J0=this._readableState;if(Z==="data"){if(J0.readableListening=this.listenerCount("readable")>0,J0.flowing!==!1)this.resume()}else if(Z==="readable"){if(!J0.endEmitted&&!J0.readableListening){if(J0.readableListening=J0.needReadable=!0,J0.flowing=!1,J0.emittedReadable=!1,N("on readable",J0.length,J0.reading),J0.length)h0(this);else if(!J0.reading)$.nextTick(DX,this)}}return n},l.prototype.addListener=l.prototype.on,l.prototype.removeListener=function(Z,M){let n=w.prototype.removeListener.call(this,Z,M);if(Z==="readable")$.nextTick(P4,this);return n},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(Z){let M=w.prototype.removeAllListeners.apply(this,arguments);if(Z==="readable"||Z===void 0)$.nextTick(P4,this);return M};function P4(Z){let M=Z._readableState;if(M.readableListening=Z.listenerCount("readable")>0,M.resumeScheduled&&M[X0]===!1)M.flowing=!0;else if(Z.listenerCount("data")>0)Z.resume();else if(!M.readableListening)M.flowing=null}function DX(Z){N("readable nexttick read 0"),Z.read(0)}l.prototype.resume=function(){let Z=this._readableState;if(!Z.flowing)N("resume"),Z.flowing=!Z.readableListening,AX(this,Z);return Z[X0]=!1,this};function AX(Z,M){if(!M.resumeScheduled)M.resumeScheduled=!0,$.nextTick(RX,Z,M)}function RX(Z,M){if(N("resume",M.reading),!M.reading)Z.read(0);if(M.resumeScheduled=!1,Z.emit("resume"),M4(Z),M.flowing&&!M.reading)Z.read(0)}l.prototype.pause=function(){if(N("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)N("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[X0]=!0,this};function M4(Z){let M=Z._readableState;N("flow",M.flowing);while(M.flowing&&Z.read()!==null);}l.prototype.wrap=function(Z){let M=!1;Z.on("data",(J0)=>{if(!this.push(J0)&&Z.pause)M=!0,Z.pause()}),Z.on("end",()=>{this.push(null)}),Z.on("error",(J0)=>{I(this,J0)}),Z.on("close",()=>{this.destroy()}),Z.on("destroy",()=>{this.destroy()}),this._read=()=>{if(M&&Z.resume)M=!1,Z.resume()};let n=U(Z);for(let J0=1;J0<n.length;J0++){let K0=n[J0];if(this[K0]===void 0&&typeof Z[K0]==="function")this[K0]=Z[K0].bind(Z)}return this},l.prototype[H]=function(){return L4(this)},l.prototype.iterator=function(Z){if(Z!==void 0)e(Z,"options");return L4(this,Z)};function L4(Z,M){if(typeof Z.read!=="function")Z=l.wrap(Z,{objectMode:!0});let n=TX(Z,M);return n.stream=Z,n}async function*TX(Z,M){let n=V0;function J0(i0){if(this===Z)n(),n=V0;else n=i0}Z.on("readable",J0);let K0,S0=L(Z,{writable:!1},(i0)=>{K0=i0?v(K0,i0):null,n(),n=V0});try{while(!0){let i0=Z.destroyed?null:Z.read();if(i0!==null)yield i0;else if(K0)throw K0;else if(K0===null)return;else await new B(J0)}}catch(i0){throw K0=v(K0,i0),K0}finally{if((K0||(M===null||M===void 0?void 0:M.destroyOnReturn)!==!1)&&(K0===void 0||Z._readableState.autoDestroy))d.destroyer(Z,null);else Z.off("readable",J0),S0()}}q(l.prototype,{readable:{__proto__:null,get(){let Z=this._readableState;return!!Z&&Z.readable!==!1&&!Z.destroyed&&!Z.errorEmitted&&!Z.endEmitted},set(Z){if(this._readableState)this._readableState.readable=!!Z}},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(Z){if(this._readableState)this._readableState.flowing=Z}},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(Z){if(!this._readableState)return;this._readableState.destroyed=Z}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),q(Q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[X0]!==!1},set(Z){this[X0]=!!Z}}}),l._fromList=F4;function F4(Z,M){if(M.length===0)return null;let n;if(M.objectMode)n=M.buffer.shift();else if(!Z||Z>=M.length){if(M.decoder)n=M.buffer.join("");else if(M.buffer.length===1)n=M.buffer.first();else n=M.buffer.concat(M.length);M.buffer.clear()}else n=M.buffer.consume(Z,M.decoder);return n}function N8(Z){let M=Z._readableState;if(N("endReadable",M.endEmitted),!M.endEmitted)M.ended=!0,$.nextTick(kX,M,Z)}function kX(Z,M){if(N("endReadableNT",Z.endEmitted,Z.length),!Z.errored&&!Z.closeEmitted&&!Z.endEmitted&&Z.length===0){if(Z.endEmitted=!0,M.emit("end"),M.writable&&M.allowHalfOpen===!1)$.nextTick(EX,M);else if(Z.autoDestroy){let n=M._writableState;if(!n||n.autoDestroy&&(n.finished||n.writable===!1))M.destroy()}}}function EX(Z){if(Z.writable&&!Z.writableEnded&&!Z.destroyed)Z.end()}l.from=function(Z,M){return p(l,Z,M)};var O8;function w4(){if(O8===void 0)O8={};return O8}l.fromWeb=function(Z,M){return w4().newStreamReadableFromReadableStream(Z,M)},l.toWeb=function(Z,M){return w4().newReadableStreamFromStreamReadable(Z,M)},l.wrap=function(Z,M){var n,J0;return new l({objectMode:(n=(J0=Z.readableObjectMode)!==null&&J0!==void 0?J0:Z.objectMode)!==null&&n!==void 0?n:!0,...M,destroy(K0,S0){d.destroyer(Z,K0),S0(K0)}}).wrap(Z)}}),r8=M0((Q,J)=>{var $=o2(),{ArrayPrototypeSlice:X,Error:K,FunctionPrototypeSymbolHasInstance:Y,ObjectDefineProperty:V,ObjectDefineProperties:q,ObjectSetPrototypeOf:U,StringPrototypeToLowerCase:G,Symbol:B,SymbolHasInstance:j}=N0();J.exports=e,e.WritableState=T;var{EventEmitter:W}=(r1(),u0(n1)),H=n8().Stream,{Buffer:S}=(L2(),u0(M2)),A=P1(),{addAbortSignal:w}=x6(),{getHighWaterMark:F,getDefaultHighWaterMark:z}=g6(),{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:d,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:v,ERR_UNKNOWN_ENCODING:k}=x0().codes,{errorOrDestroy:O}=A;U(e.prototype,H.prototype),U(e,H);function E(){}var g=B("kOnFinished");function T(C,R,h){if(typeof h!=="boolean")h=R instanceof F2();if(this.objectMode=!!(C&&C.objectMode),h)this.objectMode=this.objectMode||!!(C&&C.writableObjectMode);this.highWaterMark=C?F(this,C,"writableHighWaterMark",h):z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(C&&C.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=I.bind(void 0,R),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,o(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[g]=[]}function o(C){C.buffered=[],C.bufferedIndex=0,C.allBuffers=!0,C.allNoop=!0}T.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},V(T.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(C){let R=this instanceof F2();if(!R&&!Y(e,this))return new e(C);if(this._writableState=new T(C,this,R),C){if(typeof C.write==="function")this._write=C.write;if(typeof C.writev==="function")this._writev=C.writev;if(typeof C.destroy==="function")this._destroy=C.destroy;if(typeof C.final==="function")this._final=C.final;if(typeof C.construct==="function")this._construct=C.construct;if(C.signal)w(C.signal,this)}H.call(this,C),A.construct(this,()=>{let h=this._writableState;if(!h.writing)Y0(this,h);b(this,h)})}V(e,j,{__proto__:null,value:function(C){if(Y(this,C))return!0;if(this!==e)return!1;return C&&C._writableState instanceof T}}),e.prototype.pipe=function(){O(this,new x)};function X0(C,R,h,r){let t=C._writableState;if(typeof h==="function")r=h,h=t.defaultEncoding;else{if(!h)h=t.defaultEncoding;else if(h!=="buffer"&&!S.isEncoding(h))throw new k(h);if(typeof r!=="function")r=E}if(R===null)throw new _;else if(!t.objectMode)if(typeof R==="string"){if(t.decodeStrings!==!1)R=S.from(R,h),h="buffer"}else if(R instanceof S)h="buffer";else if(H._isUint8Array(R))R=H._uint8ArrayToBuffer(R),h="buffer";else throw new P("chunk",["string","Buffer","Uint8Array"],R);let s;if(t.ending)s=new v;else if(t.destroyed)s=new d("write");if(s)return $.nextTick(r,s),O(C,s,!0),s;return t.pendingcb++,W0(C,t,R,h,r)}e.prototype.write=function(C,R,h){return X0(this,C,R,h)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let C=this._writableState;if(C.corked){if(C.corked--,!C.writing)Y0(this,C)}},e.prototype.setDefaultEncoding=function(C){if(typeof C==="string")C=G(C);if(!S.isEncoding(C))throw new k(C);return this._writableState.defaultEncoding=C,this};function W0(C,R,h,r,t){let s=R.objectMode?1:h.length;R.length+=s;let D=R.length<R.highWaterMark;if(!D)R.needDrain=!0;if(R.writing||R.corked||R.errored||!R.constructed){if(R.buffered.push({chunk:h,encoding:r,callback:t}),R.allBuffers&&r!=="buffer")R.allBuffers=!1;if(R.allNoop&&t!==E)R.allNoop=!1}else R.writelen=s,R.writecb=t,R.writing=!0,R.sync=!0,C._write(h,r,R.onwrite),R.sync=!1;return D&&!R.errored&&!R.destroyed}function p(C,R,h,r,t,s,D){if(R.writelen=r,R.writecb=D,R.writing=!0,R.sync=!0,R.destroyed)R.onwrite(new d("write"));else if(h)C._writev(t,R.onwrite);else C._write(t,s,R.onwrite);R.sync=!1}function V0(C,R,h,r){--R.pendingcb,r(h),f(R),O(C,h)}function I(C,R){let h=C._writableState,r=h.sync,t=h.writecb;if(typeof t!=="function"){O(C,new N);return}if(h.writing=!1,h.writecb=null,h.length-=h.writelen,h.writelen=0,R){if(R.stack,!h.errored)h.errored=R;if(C._readableState&&!C._readableState.errored)C._readableState.errored=R;if(r)$.nextTick(V0,C,h,R,t);else V0(C,h,R,t)}else{if(h.buffered.length>h.bufferedIndex)Y0(C,h);if(r)if(h.afterWriteTickInfo!==null&&h.afterWriteTickInfo.cb===t)h.afterWriteTickInfo.count++;else h.afterWriteTickInfo={count:1,cb:t,stream:C,state:h},$.nextTick(c,h.afterWriteTickInfo);else $0(C,h,1,t)}}function c({stream:C,state:R,count:h,cb:r}){return R.afterWriteTickInfo=null,$0(C,R,h,r)}function $0(C,R,h,r){if(!R.ending&&!C.destroyed&&R.length===0&&R.needDrain)R.needDrain=!1,C.emit("drain");while(h-- >0)R.pendingcb--,r();if(R.destroyed)f(R);b(C,R)}function f(C){if(C.writing)return;for(let t=C.bufferedIndex;t<C.buffered.length;++t){var R;let{chunk:s,callback:D}=C.buffered[t],m=C.objectMode?1:s.length;C.length-=m,D((R=C.errored)!==null&&R!==void 0?R:new d("write"))}let h=C[g].splice(0);for(let t=0;t<h.length;t++){var r;h[t]((r=C.errored)!==null&&r!==void 0?r:new d("end"))}o(C)}function Y0(C,R){if(R.corked||R.bufferProcessing||R.destroyed||!R.constructed)return;let{buffered:h,bufferedIndex:r,objectMode:t}=R,s=h.length-r;if(!s)return;let D=r;if(R.bufferProcessing=!0,s>1&&C._writev){R.pendingcb-=s-1;let m=R.allNoop?E:(l)=>{for(let q0=D;q0<h.length;++q0)h[q0].callback(l)},Q0=R.allNoop&&D===0?h:X(h,D);Q0.allBuffers=R.allBuffers,p(C,R,!0,R.length,Q0,"",m),o(R)}else{do{let{chunk:m,encoding:Q0,callback:l}=h[D];h[D++]=null;let q0=t?1:m.length;p(C,R,!1,q0,m,Q0,l)}while(D<h.length&&!R.writing);if(D===h.length)o(R);else if(D>256)h.splice(0,D),R.bufferedIndex=0;else R.bufferedIndex=D}R.bufferProcessing=!1}e.prototype._write=function(C,R,h){if(this._writev)this._writev([{chunk:C,encoding:R}],h);else throw new L("_write()")},e.prototype._writev=null,e.prototype.end=function(C,R,h){let r=this._writableState;if(typeof C==="function")h=C,C=null,R=null;else if(typeof R==="function")h=R,R=null;let t;if(C!==null&&C!==void 0){let s=X0(this,C,R);if(s instanceof K)t=s}if(r.corked)r.corked=1,this.uncork();if(t);else if(!r.errored&&!r.ending)r.ending=!0,b(this,r,!0),r.ended=!0;else if(r.finished)t=new i("end");else if(r.destroyed)t=new d("end");if(typeof h==="function")if(t||r.finished)$.nextTick(h,t);else r[g].push(h);return this};function G0(C){return C.ending&&!C.destroyed&&C.constructed&&C.length===0&&!C.errored&&C.buffered.length===0&&!C.finished&&!C.writing&&!C.errorEmitted&&!C.closeEmitted}function H0(C,R){let h=!1;function r(t){if(h){O(C,t!==null&&t!==void 0?t:N());return}if(h=!0,R.pendingcb--,t){let s=R[g].splice(0);for(let D=0;D<s.length;D++)s[D](t);O(C,t,R.sync)}else if(G0(R))R.prefinished=!0,C.emit("prefinish"),R.pendingcb++,$.nextTick(u,C,R)}R.sync=!0,R.pendingcb++;try{C._final(r)}catch(t){r(t)}R.sync=!1}function Z0(C,R){if(!R.prefinished&&!R.finalCalled)if(typeof C._final==="function"&&!R.destroyed)R.finalCalled=!0,H0(C,R);else R.prefinished=!0,C.emit("prefinish")}function b(C,R,h){if(G0(R)){if(Z0(C,R),R.pendingcb===0){if(h)R.pendingcb++,$.nextTick((r,t)=>{if(G0(t))u(r,t);else t.pendingcb--},C,R);else if(G0(R))R.pendingcb++,u(C,R)}}}function u(C,R){R.pendingcb--,R.finished=!0;let h=R[g].splice(0);for(let r=0;r<h.length;r++)h[r]();if(C.emit("finish"),R.autoDestroy){let r=C._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))C.destroy()}}q(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(C){if(this._writableState)this._writableState.destroyed=C}},writable:{__proto__:null,get(){let C=this._writableState;return!!C&&C.writable!==!1&&!C.destroyed&&!C.errored&&!C.ending&&!C.ended},set(C){if(this._writableState)this._writableState.writable=!!C}},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 C=this._writableState;if(!C)return!1;return!C.destroyed&&!C.ending&&C.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 a=A.destroy;e.prototype.destroy=function(C,R){let h=this._writableState;if(!h.destroyed&&(h.bufferedIndex<h.buffered.length||h[g].length))$.nextTick(f,h);return a.call(this,C,R),this},e.prototype._undestroy=A.undestroy,e.prototype._destroy=function(C,R){R(C)},e.prototype[W.captureRejectionSymbol]=function(C){this.destroy(C)};var U0;function z0(){if(U0===void 0)U0={};return U0}e.fromWeb=function(C,R){return z0().newStreamWritableFromWritableStream(C,R)},e.toWeb=function(C){return z0().newWritableStreamFromStreamWritable(C)}}),tY=M0((Q,J)=>{var $=o2(),X=(L2(),u0(M2)),{isReadable:K,isWritable:Y,isIterable:V,isNodeStream:q,isReadableNodeStream:U,isWritableNodeStream:G,isDuplexNodeStream:B,isReadableStream:j,isWritableStream:W}=w2(),H=k2(),{AbortError:S,codes:{ERR_INVALID_ARG_TYPE:A,ERR_INVALID_RETURN_VALUE:w}}=x0(),{destroyer:F}=P1(),z=F2(),P=y6(),L=r8(),{createDeferredPromise:N}=_0(),x=c7(),d=globalThis.Blob||X.Blob,i=typeof d<"u"?function(g){return g instanceof d}:function(g){return!1},_=globalThis.AbortController||o1().AbortController,{FunctionPrototypeCall:v}=N0();class k extends z{constructor(g){super(g);if((g===null||g===void 0?void 0:g.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((g===null||g===void 0?void 0:g.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function g(T,o){if(B(T))return T;if(U(T))return E({readable:T});if(G(T))return E({writable:T});if(q(T))return E({writable:!1,readable:!1});if(j(T))return E({readable:P.fromWeb(T)});if(W(T))return E({writable:L.fromWeb(T)});if(typeof T==="function"){let{value:X0,write:W0,final:p,destroy:V0}=O(T);if(V(X0))return x(k,X0,{objectMode:!0,write:W0,final:p,destroy:V0});let I=X0===null||X0===void 0?void 0:X0.then;if(typeof I==="function"){let c,$0=v(I,X0,(f)=>{if(f!=null)throw new w("nully","body",f)},(f)=>{F(c,f)});return c=new k({objectMode:!0,readable:!1,write:W0,final(f){p(async()=>{try{await $0,$.nextTick(f,null)}catch(Y0){$.nextTick(f,Y0)}})},destroy:V0})}throw new w("Iterable, AsyncIterable or AsyncFunction",o,X0)}if(i(T))return g(T.arrayBuffer());if(V(T))return x(k,T,{objectMode:!0,writable:!1});if(j(T===null||T===void 0?void 0:T.readable)&&W(T===null||T===void 0?void 0:T.writable))return k.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?U(T===null||T===void 0?void 0:T.readable)?T===null||T===void 0?void 0:T.readable:g(T.readable):void 0,W0=T!==null&&T!==void 0&&T.writable?G(T===null||T===void 0?void 0:T.writable)?T===null||T===void 0?void 0:T.writable:g(T.writable):void 0;return E({readable:X0,writable:W0})}let e=T===null||T===void 0?void 0:T.then;if(typeof e==="function"){let X0;return v(e,T,(W0)=>{if(W0!=null)X0.push(W0);X0.push(null)},(W0)=>{F(X0,W0)}),X0=new k({objectMode:!0,writable:!1,read(){}})}throw new A(o,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],T)};function O(g){let{promise:T,resolve:o}=N(),e=new _,X0=e.signal;return{value:g(async function*(){while(!0){let W0=T;T=null;let{chunk:p,done:V0,cb:I}=await W0;if($.nextTick(I),V0)return;if(X0.aborted)throw new S(void 0,{cause:X0.reason});({promise:T,resolve:o}=N()),yield p}}(),{signal:X0}),write(W0,p,V0){let I=o;o=null,I({chunk:W0,done:!1,cb:V0})},final(W0){let p=o;o=null,p({done:!0,cb:W0})},destroy(W0,p){e.abort(),p(W0)}}}function E(g){let T=g.readable&&typeof g.readable.read!=="function"?P.wrap(g.readable):g.readable,o=g.writable,e=!!K(T),X0=!!Y(o),W0,p,V0,I,c;function $0(f){let Y0=I;if(I=null,Y0)Y0(f);else if(f)c.destroy(f)}if(c=new k({readableObjectMode:!!(T!==null&&T!==void 0&&T.readableObjectMode),writableObjectMode:!!(o!==null&&o!==void 0&&o.writableObjectMode),readable:e,writable:X0}),X0)H(o,(f)=>{if(X0=!1,f)F(T,f);$0(f)}),c._write=function(f,Y0,G0){if(o.write(f,Y0))G0();else W0=G0},c._final=function(f){o.end(),p=f},o.on("drain",function(){if(W0){let f=W0;W0=null,f()}}),o.on("finish",function(){if(p){let f=p;p=null,f()}});if(e)H(T,(f)=>{if(e=!1,f)F(T,f);$0(f)}),T.on("readable",function(){if(V0){let f=V0;V0=null,f()}}),T.on("end",function(){c.push(null)}),c._read=function(){while(!0){let f=T.read();if(f===null){V0=c._read;return}if(!c.push(f))return}};return c._destroy=function(f,Y0){if(!f&&I!==null)f=new S;if(V0=null,W0=null,p=null,I===null)Y0(f);else I=Y0,F(o,f),F(T,f)},c}}),F2=M0((Q,J)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:K,ObjectSetPrototypeOf:Y}=N0();J.exports=U;var V=y6(),q=r8();Y(U.prototype,V.prototype),Y(U,V);{let W=K(q.prototype);for(let H=0;H<W.length;H++){let S=W[H];if(!U.prototype[S])U.prototype[S]=q.prototype[S]}}function U(W){if(!(this instanceof U))return new U(W);if(V.call(this,W),q.call(this,W),W){if(this.allowHalfOpen=W.allowHalfOpen!==!1,W.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(W.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(U.prototype,{writable:{__proto__:null,...X(q.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(q.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(q.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(q.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(q.prototype,"writableLength")},writableFinished:{__proto__:null,...X(q.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(q.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(q.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(q.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(W){if(this._readableState&&this._writableState)this._readableState.destroyed=W,this._writableState.destroyed=W}}});var G;function B(){if(G===void 0)G={};return G}U.fromWeb=function(W,H){return B().newStreamDuplexFromReadableWritablePair(W,H)},U.toWeb=function(W){return B().newReadableWritablePairFromDuplex(W)};var j;U.from=function(W){if(!j)j=tY();return j(W,"body")}}),m7=M0((Q,J)=>{var{ObjectSetPrototypeOf:$,Symbol:X}=N0();J.exports=U;var{ERR_METHOD_NOT_IMPLEMENTED:K}=x0().codes,Y=F2(),{getHighWaterMark:V}=g6();$(U.prototype,Y.prototype),$(U,Y);var q=X("kCallback");function U(j){if(!(this instanceof U))return new U(j);let W=j?V(this,j,"readableHighWaterMark",!0):null;if(W===0)j={...j,highWaterMark:null,readableHighWaterMark:W,writableHighWaterMark:j.writableHighWaterMark||0};if(Y.call(this,j),this._readableState.sync=!1,this[q]=null,j){if(typeof j.transform==="function")this._transform=j.transform;if(typeof j.flush==="function")this._flush=j.flush}this.on("prefinish",B)}function G(j){if(typeof this._flush==="function"&&!this.destroyed)this._flush((W,H)=>{if(W){if(j)j(W);else this.destroy(W);return}if(H!=null)this.push(H);if(this.push(null),j)j()});else if(this.push(null),j)j()}function B(){if(this._final!==G)G.call(this)}U.prototype._final=G,U.prototype._transform=function(j,W,H){throw new K("_transform()")},U.prototype._write=function(j,W,H){let S=this._readableState,A=this._writableState,w=S.length;this._transform(j,W,(F,z)=>{if(F){H(F);return}if(z!=null)this.push(z);if(A.ended||w===S.length||S.length<S.highWaterMark)H();else this[q]=H})},U.prototype._read=function(){if(this[q]){let j=this[q];this[q]=null,j()}}}),d7=M0((Q,J)=>{var{ObjectSetPrototypeOf:$}=N0();J.exports=K;var X=m7();$(K.prototype,X.prototype),$(K,X);function K(Y){if(!(this instanceof K))return new K(Y);X.call(this,Y)}K.prototype._transform=function(Y,V,q){q(null,Y)}}),o8=M0((Q,J)=>{var $=o2(),{ArrayIsArray:X,Promise:K,SymbolAsyncIterator:Y,SymbolDispose:V}=N0(),q=k2(),{once:U}=_0(),G=P1(),B=F2(),{aggregateTwoErrors:j,codes:{ERR_INVALID_ARG_TYPE:W,ERR_INVALID_RETURN_VALUE:H,ERR_MISSING_ARGS:S,ERR_STREAM_DESTROYED:A,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:F}=x0(),{validateFunction:z,validateAbortSignal:P}=a1(),{isIterable:L,isReadable:N,isReadableNodeStream:x,isNodeStream:d,isTransformStream:i,isWebStream:_,isReadableStream:v,isReadableFinished:k}=w2(),O=globalThis.AbortController||o1().AbortController,E,g,T;function o(f,Y0,G0){let H0=!1;f.on("close",()=>{H0=!0});let Z0=q(f,{readable:Y0,writable:G0},(b)=>{H0=!b});return{destroy:(b)=>{if(H0)return;H0=!0,G.destroyer(f,b||new A("pipe"))},cleanup:Z0}}function e(f){return z(f[f.length-1],"streams[stream.length - 1]"),f.pop()}function X0(f){if(L(f))return f;else if(x(f))return W0(f);throw new W("val",["Readable","Iterable","AsyncIterable"],f)}async function*W0(f){if(!g)g=y6();yield*g.prototype[Y].call(f)}async function p(f,Y0,G0,{end:H0}){let Z0,b=null,u=(z0)=>{if(z0)Z0=z0;if(b){let C=b;b=null,C()}},a=()=>new K((z0,C)=>{if(Z0)C(Z0);else b=()=>{if(Z0)C(Z0);else z0()}});Y0.on("drain",u);let U0=q(Y0,{readable:!1},u);try{if(Y0.writableNeedDrain)await a();for await(let z0 of f)if(!Y0.write(z0))await a();if(H0)Y0.end(),await a();G0()}catch(z0){G0(Z0!==z0?j(Z0,z0):z0)}finally{U0(),Y0.off("drain",u)}}async function V0(f,Y0,G0,{end:H0}){if(i(Y0))Y0=Y0.writable;let Z0=Y0.getWriter();try{for await(let b of f)await Z0.ready,Z0.write(b).catch(()=>{});if(await Z0.ready,H0)await Z0.close();G0()}catch(b){try{await Z0.abort(b),G0(b)}catch(u){G0(u)}}}function I(...f){return c(f,U(e(f)))}function c(f,Y0,G0){if(f.length===1&&X(f[0]))f=f[0];if(f.length<2)throw new S("streams");let H0=new O,Z0=H0.signal,b=G0===null||G0===void 0?void 0:G0.signal,u=[];P(b,"options.signal");function a(){t(new F)}T=T||_0().addAbortListener;let U0;if(b)U0=T(b,a);let z0,C,R=[],h=0;function r(l){t(l,--h===0)}function t(l,q0){var L0;if(l&&(!z0||z0.code==="ERR_STREAM_PREMATURE_CLOSE"))z0=l;if(!z0&&!q0)return;while(R.length)R.shift()(z0);if((L0=U0)===null||L0===void 0||L0[V](),H0.abort(),q0){if(!z0)u.forEach((d0)=>d0());$.nextTick(Y0,z0,C)}}let s;for(let l=0;l<f.length;l++){let q0=f[l],L0=l<f.length-1,d0=l>0,l0=L0||(G0===null||G0===void 0?void 0:G0.end)!==!1,p2=l===f.length-1;if(d(q0)){let E0=function(h0){if(h0&&h0.name!=="AbortError"&&h0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(h0)};var D=E0;if(l0){let{destroy:h0,cleanup:U1}=o(q0,L0,d0);if(R.push(h0),N(q0)&&p2)u.push(U1)}if(q0.on("error",E0),N(q0)&&p2)u.push(()=>{q0.removeListener("error",E0)})}if(l===0)if(typeof q0==="function"){if(s=q0({signal:Z0}),!L(s))throw new H("Iterable, AsyncIterable or Stream","source",s)}else if(L(q0)||x(q0)||i(q0))s=q0;else s=B.from(q0);else if(typeof q0==="function"){if(i(s)){var m;s=X0((m=s)===null||m===void 0?void 0:m.readable)}else s=X0(s);if(s=q0(s,{signal:Z0}),L0){if(!L(s,!0))throw new H("AsyncIterable",`transform[${l-1}]`,s)}else{var Q0;if(!E)E=d7();let E0=new E({objectMode:!0}),h0=(Q0=s)===null||Q0===void 0?void 0:Q0.then;if(typeof h0==="function")h++,h0.call(s,(X2)=>{if(C=X2,X2!=null)E0.write(X2);if(l0)E0.end();$.nextTick(r)},(X2)=>{E0.destroy(X2),$.nextTick(r,X2)});else if(L(s,!0))h++,p(s,E0,r,{end:l0});else if(v(s)||i(s)){let X2=s.readable||s;h++,p(X2,E0,r,{end:l0})}else throw new H("AsyncIterable or Promise","destination",s);s=E0;let{destroy:U1,cleanup:z1}=o(s,!1,!0);if(R.push(U1),p2)u.push(z1)}}else if(d(q0)){if(x(s)){h+=2;let E0=$0(s,q0,r,{end:l0});if(N(q0)&&p2)u.push(E0)}else if(i(s)||v(s)){let E0=s.readable||s;h++,p(E0,q0,r,{end:l0})}else if(L(s))h++,p(s,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else if(_(q0)){if(x(s))h++,V0(X0(s),q0,r,{end:l0});else if(v(s)||L(s))h++,V0(s,q0,r,{end:l0});else if(i(s))h++,V0(s.readable,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else s=B.from(q0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||b!==null&&b!==void 0&&b.aborted)$.nextTick(a);return s}function $0(f,Y0,G0,{end:H0}){let Z0=!1;if(Y0.on("close",()=>{if(!Z0)G0(new w)}),f.pipe(Y0,{end:!1}),H0){let u=function(){Z0=!0,Y0.end()};var b=u;if(k(f))$.nextTick(u);else f.once("end",u)}else G0();return q(f,{readable:!0,writable:!1},(u)=>{let a=f._readableState;if(u&&u.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted)f.once("end",G0).once("error",G0);else G0(u)}),q(Y0,{readable:!1,writable:!0},G0)}J.exports={pipelineImpl:c,pipeline:I}}),l7=M0((Q,J)=>{var{pipeline:$}=o8(),X=F2(),{destroyer:K}=P1(),{isNodeStream:Y,isReadable:V,isWritable:q,isWebStream:U,isTransformStream:G,isWritableStream:B,isReadableStream:j}=w2(),{AbortError:W,codes:{ERR_INVALID_ARG_VALUE:H,ERR_MISSING_ARGS:S}}=x0(),A=k2();J.exports=function(...w){if(w.length===0)throw new S("streams");if(w.length===1)return X.from(w[0]);let F=[...w];if(typeof w[0]==="function")w[0]=X.from(w[0]);if(typeof w[w.length-1]==="function"){let O=w.length-1;w[O]=X.from(w[O])}for(let O=0;O<w.length;++O){if(!Y(w[O])&&!U(w[O]))continue;if(O<w.length-1&&!(V(w[O])||j(w[O])||G(w[O])))throw new H(`streams[${O}]`,F[O],"must be readable");if(O>0&&!(q(w[O])||B(w[O])||G(w[O])))throw new H(`streams[${O}]`,F[O],"must be writable")}let z,P,L,N,x;function d(O){let E=N;if(N=null,E)E(O);else if(O)x.destroy(O);else if(!k&&!v)x.destroy()}let i=w[0],_=$(w,d),v=!!(q(i)||B(i)||G(i)),k=!!(V(_)||j(_)||G(_));if(x=new X({writableObjectMode:!!(i!==null&&i!==void 0&&i.writableObjectMode),readableObjectMode:!!(_!==null&&_!==void 0&&_.readableObjectMode),writable:v,readable:k}),v){if(Y(i))x._write=function(E,g,T){if(i.write(E,g))T();else z=T},x._final=function(E){i.end(),P=E},i.on("drain",function(){if(z){let E=z;z=null,E()}});else if(U(i)){let E=(G(i)?i.writable:i).getWriter();x._write=async function(g,T,o){try{await E.ready,E.write(g).catch(()=>{}),o()}catch(e){o(e)}},x._final=async function(g){try{await E.ready,E.close().catch(()=>{}),P=g}catch(T){g(T)}}}let O=G(_)?_.readable:_;A(O,()=>{if(P){let E=P;P=null,E()}})}if(k){if(Y(_))_.on("readable",function(){if(L){let O=L;L=null,O()}}),_.on("end",function(){x.push(null)}),x._read=function(){while(!0){let O=_.read();if(O===null){L=x._read;return}if(!x.push(O))return}};else if(U(_)){let O=(G(_)?_.readable:_).getReader();x._read=async function(){while(!0)try{let{value:E,done:g}=await O.read();if(!x.push(E))return;if(g){x.push(null);return}}catch{return}}}}return x._destroy=function(O,E){if(!O&&N!==null)O=new W;if(L=null,z=null,P=null,N===null)E(O);else if(N=E,Y(_))K(_,O)},x}}),eY=M0((Q,J)=>{var $=globalThis.AbortController||o1().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:K,ERR_MISSING_ARGS:Y,ERR_OUT_OF_RANGE:V},AbortError:q}=x0(),{validateAbortSignal:U,validateInteger:G,validateObject:B}=a1(),j=N0().Symbol("kWeak"),W=N0().Symbol("kResistStopPropagation"),{finished:H}=k2(),S=l7(),{addAbortSignalNoValidate:A}=x6(),{isWritable:w,isNodeStream:F}=w2(),{deprecate:z}=_0(),{ArrayPrototypePush:P,Boolean:L,MathFloor:N,Number:x,NumberIsNaN:d,Promise:i,PromiseReject:_,PromiseResolve:v,PromisePrototypeThen:k,Symbol:O}=N0(),E=O("kEmpty"),g=O("kEof");function T(b,u){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");if(F(b)&&!w(b))throw new X("stream",b,"must be writable");let a=S(this,b);if(u!==null&&u!==void 0&&u.signal)A(u.signal,a);return a}function o(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");let a=1;if((u===null||u===void 0?void 0:u.concurrency)!=null)a=N(u.concurrency);let U0=a-1;if((u===null||u===void 0?void 0:u.highWaterMark)!=null)U0=N(u.highWaterMark);return G(a,"options.concurrency",1),G(U0,"options.highWaterMark",0),U0+=a,async function*(){let z0=_0().AbortSignalAny([u===null||u===void 0?void 0:u.signal].filter(L)),C=this,R=[],h={signal:z0},r,t,s=!1,D=0;function m(){s=!0,Q0()}function Q0(){D-=1,l()}function l(){if(t&&!s&&D<a&&R.length<U0)t(),t=null}async function q0(){try{for await(let L0 of C){if(s)return;if(z0.aborted)throw new q;try{if(L0=b(L0,h),L0===E)continue;L0=v(L0)}catch(d0){L0=_(d0)}if(D+=1,k(L0,Q0,m),R.push(L0),r)r(),r=null;if(!s&&(R.length>=U0||D>=a))await new i((d0)=>{t=d0})}R.push(g)}catch(L0){let d0=_(L0);k(d0,Q0,m),R.push(d0)}finally{if(s=!0,r)r(),r=null}}q0();try{while(!0){while(R.length>0){let L0=await R[0];if(L0===g)return;if(z0.aborted)throw new q;if(L0!==E)yield L0;R.shift(),l()}await new i((L0)=>{r=L0})}}finally{if(s=!0,t)t(),t=null}}.call(this)}function e(b=void 0){if(b!=null)B(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)U(b.signal,"options.signal");return async function*(){let u=0;for await(let U0 of this){var a;if(b!==null&&b!==void 0&&(a=b.signal)!==null&&a!==void 0&&a.aborted)throw new q({cause:b.signal.reason});yield[u++,U0]}}.call(this)}async function X0(b,u=void 0){for await(let a of I.call(this,b,u))return!0;return!1}async function W0(b,u=void 0){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);return!await X0.call(this,async(...a)=>{return!await b(...a)},u)}async function p(b,u){for await(let a of I.call(this,b,u))return a;return}async function V0(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);async function a(U0,z0){return await b(U0,z0),E}for await(let U0 of o.call(this,a,u));}function I(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);async function a(U0,z0){if(await b(U0,z0))return U0;return E}return o.call(this,a,u)}class c extends Y{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function $0(b,u,a){var U0;if(typeof b!=="function")throw new K("reducer",["Function","AsyncFunction"],b);if(a!=null)B(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)U(a.signal,"options.signal");let z0=arguments.length>1;if(a!==null&&a!==void 0&&(U0=a.signal)!==null&&U0!==void 0&&U0.aborted){let t=new q(void 0,{cause:a.signal.reason});throw this.once("error",()=>{}),await H(this.destroy(t)),t}let C=new $,R=C.signal;if(a!==null&&a!==void 0&&a.signal){let t={once:!0,[j]:this,[W]:!0};a.signal.addEventListener("abort",()=>C.abort(),t)}let h=!1;try{for await(let t of this){var r;if(h=!0,a!==null&&a!==void 0&&(r=a.signal)!==null&&r!==void 0&&r.aborted)throw new q;if(!z0)u=t,z0=!0;else u=await b(u,t,{signal:R})}if(!h&&!z0)throw new c}finally{C.abort()}return u}async function f(b){if(b!=null)B(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)U(b.signal,"options.signal");let u=[];for await(let U0 of this){var a;if(b!==null&&b!==void 0&&(a=b.signal)!==null&&a!==void 0&&a.aborted)throw new q(void 0,{cause:b.signal.reason});P(u,U0)}return u}function Y0(b,u){let a=o.call(this,b,u);return async function*(){for await(let U0 of a)yield*U0}.call(this)}function G0(b){if(b=x(b),d(b))return 0;if(b<0)throw new V("number",">= 0",b);return b}function H0(b,u=void 0){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");return b=G0(b),async function*(){var a;if(u!==null&&u!==void 0&&(a=u.signal)!==null&&a!==void 0&&a.aborted)throw new q;for await(let z0 of this){var U0;if(u!==null&&u!==void 0&&(U0=u.signal)!==null&&U0!==void 0&&U0.aborted)throw new q;if(b--<=0)yield z0}}.call(this)}function Z0(b,u=void 0){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");return b=G0(b),async function*(){var a;if(u!==null&&u!==void 0&&(a=u.signal)!==null&&a!==void 0&&a.aborted)throw new q;for await(let z0 of this){var U0;if(u!==null&&u!==void 0&&(U0=u.signal)!==null&&U0!==void 0&&U0.aborted)throw new q;if(b-- >0)yield z0;if(b<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:z(e,"readable.asIndexedPairs will be removed in a future version."),drop:H0,filter:I,flatMap:Y0,map:o,take:Z0,compose:T},J.exports.promiseReturningOperators={every:W0,forEach:V0,reduce:$0,toArray:f,some:X0,find:p}}),i7=M0((Q,J)=>{var{ArrayPrototypePop:$,Promise:X}=N0(),{isIterable:K,isNodeStream:Y,isWebStream:V}=w2(),{pipelineImpl:q}=o8(),{finished:U}=k2();n7();function G(...B){return new X((j,W)=>{let H,S,A=B[B.length-1];if(A&&typeof A==="object"&&!Y(A)&&!K(A)&&!V(A)){let w=$(B);H=w.signal,S=w.end}q(B,(w,F)=>{if(w)W(w);else j(F)},{signal:H,end:S})})}J.exports={finished:U,pipeline:G}}),n7=M0((Q,J)=>{var{Buffer:$}=(L2(),u0(M2)),{ObjectDefineProperty:X,ObjectKeys:K,ReflectApply:Y}=N0(),{promisify:{custom:V}}=_0(),{streamReturningOperators:q,promiseReturningOperators:U}=eY(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:G}}=x0(),B=l7(),{setDefaultHighWaterMark:j,getDefaultHighWaterMark:W}=g6(),{pipeline:H}=o8(),{destroyer:S}=P1(),A=k2(),w=i7(),F=w2(),z=J.exports=n8().Stream;z.isDestroyed=F.isDestroyed,z.isDisturbed=F.isDisturbed,z.isErrored=F.isErrored,z.isReadable=F.isReadable,z.isWritable=F.isWritable,z.Readable=y6();for(let L of K(q)){let N=function(...d){if(new.target)throw G();return z.Readable.from(Y(x,this,d))},x=q[L];X(N,"name",{__proto__:null,value:x.name}),X(N,"length",{__proto__:null,value:x.length}),X(z.Readable.prototype,L,{__proto__:null,value:N,enumerable:!1,configurable:!0,writable:!0})}for(let L of K(U)){let N=function(...d){if(new.target)throw G();return Y(x,this,d)},x=U[L];X(N,"name",{__proto__:null,value:x.name}),X(N,"length",{__proto__:null,value:x.length}),X(z.Readable.prototype,L,{__proto__:null,value:N,enumerable:!1,configurable:!0,writable:!0})}z.Writable=r8(),z.Duplex=F2(),z.Transform=m7(),z.PassThrough=d7(),z.pipeline=H;var{addAbortSignal:P}=x6();z.addAbortSignal=P,z.finished=A,z.destroy=S,z.compose=B,z.setDefaultHighWaterMark=j,z.getDefaultHighWaterMark=W,X(z,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return w}}),X(H,V,{__proto__:null,enumerable:!0,get(){return w.pipeline}}),X(A,V,{__proto__:null,enumerable:!0,get(){return w.finished}}),z.Stream=z,z._isUint8Array=function(L){return L instanceof Uint8Array},z._uint8ArrayToBuffer=function(L){return $.from(L.buffer,L.byteOffset,L.byteLength)}}),Q9=M0((Q,J)=>{var $=a8();{let X=n7(),K=i7(),Y=X.Readable.destroy;J.exports=X.Readable,J.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,J.exports._isUint8Array=X._isUint8Array,J.exports.isDisturbed=X.isDisturbed,J.exports.isErrored=X.isErrored,J.exports.isReadable=X.isReadable,J.exports.Readable=X.Readable,J.exports.Writable=X.Writable,J.exports.Duplex=X.Duplex,J.exports.Transform=X.Transform,J.exports.PassThrough=X.PassThrough,J.exports.addAbortSignal=X.addAbortSignal,J.exports.finished=X.finished,J.exports.destroy=X.destroy,J.exports.destroy=Y,J.exports.pipeline=X.pipeline,J.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return K}}),J.exports.Stream=X.Stream}J.exports.default=J.exports});r7.exports=Q9()});var s8=B0((EB,o7)=>{o7.exports=a8()});var I2=B0((p0)=>{p0.base64=!0;p0.array=!0;p0.string=!0;p0.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";p0.nodebuffer=typeof Buffer<"u";p0.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")p0.blob=!1;else{h6=new ArrayBuffer(0);try{p0.blob=new Blob([h6],{type:"application/zip"}).size===0}catch(Q){try{t8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,f6=new t8,f6.append(h6),p0.blob=f6.getBlob("application/zip").size===0}catch(J){p0.blob=!1}}}var h6,t8,f6;try{p0.nodestream=!!s8().Readable}catch(Q){p0.nodestream=!1}});var Q5=B0((e8)=>{var J9=O0(),$9=I2(),q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e8.encode=function(Q){var J=[],$,X,K,Y,V,q,U,G=0,B=Q.length,j=B,W=J9.getTypeOf(Q)!=="string";while(G<Q.length){if(j=B-G,!W)$=Q.charCodeAt(G++),X=G<B?Q.charCodeAt(G++):0,K=G<B?Q.charCodeAt(G++):0;else $=Q[G++],X=G<B?Q[G++]:0,K=G<B?Q[G++]:0;Y=$>>2,V=($&3)<<4|X>>4,q=j>1?(X&15)<<2|K>>6:64,U=j>2?K&63:64,J.push(q2.charAt(Y)+q2.charAt(V)+q2.charAt(q)+q2.charAt(U))}return J.join("")};e8.decode=function(Q){var J,$,X,K,Y,V,q,U=0,G=0,B="data:";if(Q.substr(0,B.length)===B)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var j=Q.length*3/4;if(Q.charAt(Q.length-1)===q2.charAt(64))j--;if(Q.charAt(Q.length-2)===q2.charAt(64))j--;if(j%1!==0)throw Error("Invalid base64 input, bad content length.");var W;if($9.uint8array)W=new Uint8Array(j|0);else W=Array(j|0);while(U<Q.length){if(K=q2.indexOf(Q.charAt(U++)),Y=q2.indexOf(Q.charAt(U++)),V=q2.indexOf(Q.charAt(U++)),q=q2.indexOf(Q.charAt(U++)),J=K<<2|Y>>4,$=(Y&15)<<4|V>>2,X=(V&3)<<6|q,W[G++]=J,V!==64)W[G++]=$;if(q!==64)W[G++]=X}return W}});var s1=B0((xB,a7)=>{a7.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,J){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,J);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,J)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var J=new Buffer(Q);return J.fill(0),J}},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 e7=B0((gB,t7)=>{var s7=global.MutationObserver||global.WebKitMutationObserver,t1;if(s7)b6=0,J5=new s7(_6),u6=global.document.createTextNode(""),J5.observe(u6,{characterData:!0}),t1=function(){u6.data=b6=++b6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")p6=new global.MessageChannel,p6.port1.onmessage=_6,t1=function(){p6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))t1=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){_6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else t1=function(){setTimeout(_6,0)};var b6,J5,u6,p6,$5,e1=[];function _6(){$5=!0;var Q,J,$=e1.length;while($){J=e1,e1=[],Q=-1;while(++Q<$)J[Q]();$=e1.length}$5=!1}t7.exports=X9;function X9(Q){if(e1.push(Q)===1&&!$5)t1()}});var YQ=B0((yB,KQ)=>{var K9=e7();function M1(){}var v0={},QQ=["REJECTED"],X5=["FULFILLED"],JQ=["PENDING"];KQ.exports=E2;function E2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=JQ,this.queue=[],this.outcome=void 0,Q!==M1)$Q(this,Q)}E2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var J=this.constructor;return this.then($,X);function $(K){function Y(){return K}return J.resolve(Q()).then(Y)}function X(K){function Y(){throw K}return J.resolve(Q()).then(Y)}};E2.prototype.catch=function(Q){return this.then(null,Q)};E2.prototype.then=function(Q,J){if(typeof Q!=="function"&&this.state===X5||typeof J!=="function"&&this.state===QQ)return this;var $=new this.constructor(M1);if(this.state!==JQ){var X=this.state===X5?Q:J;K5($,X,this.outcome)}else this.queue.push(new Q6($,Q,J));return $};function Q6(Q,J,$){if(this.promise=Q,typeof J==="function")this.onFulfilled=J,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}Q6.prototype.callFulfilled=function(Q){v0.resolve(this.promise,Q)};Q6.prototype.otherCallFulfilled=function(Q){K5(this.promise,this.onFulfilled,Q)};Q6.prototype.callRejected=function(Q){v0.reject(this.promise,Q)};Q6.prototype.otherCallRejected=function(Q){K5(this.promise,this.onRejected,Q)};function K5(Q,J,$){K9(function(){var X;try{X=J($)}catch(K){return v0.reject(Q,K)}if(X===Q)v0.reject(Q,TypeError("Cannot resolve promise with itself"));else v0.resolve(Q,X)})}v0.resolve=function(Q,J){var $=XQ(Y9,J);if($.status==="error")return v0.reject(Q,$.value);var X=$.value;if(X)$Q(Q,X);else{Q.state=X5,Q.outcome=J;var K=-1,Y=Q.queue.length;while(++K<Y)Q.queue[K].callFulfilled(J)}return Q};v0.reject=function(Q,J){Q.state=QQ,Q.outcome=J;var $=-1,X=Q.queue.length;while(++$<X)Q.queue[$].callRejected(J);return Q};function Y9(Q){var J=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof J==="function")return function(){J.apply(Q,arguments)}}function $Q(Q,J){var $=!1;function X(q){if($)return;$=!0,v0.reject(Q,q)}function K(q){if($)return;$=!0,v0.resolve(Q,q)}function Y(){J(K,X)}var V=XQ(Y);if(V.status==="error")X(V.value)}function XQ(Q,J){var $={};try{$.value=Q(J),$.status="success"}catch(X){$.status="error",$.value=X}return $}E2.resolve=V9;function V9(Q){if(Q instanceof this)return Q;return v0.resolve(new this(M1),Q)}E2.reject=q9;function q9(Q){var J=new this(M1);return v0.reject(J,Q)}E2.all=B9;function B9(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var K=Array($),Y=0,V=-1,q=new this(M1);while(++V<$)U(Q[V],V);return q;function U(G,B){J.resolve(G).then(j,function(W){if(!X)X=!0,v0.reject(q,W)});function j(W){if(K[B]=W,++Y===$&&!X)X=!0,v0.resolve(q,K)}}}E2.race=G9;function G9(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var K=-1,Y=new this(M1);while(++K<$)V(Q[K]);return Y;function V(q){J.resolve(q).then(function(U){if(!X)X=!0,v0.resolve(Y,U)},function(U){if(!X)X=!0,v0.reject(Y,U)})}}});var L1=B0((hB,VQ)=>{var Y5=null;if(typeof Promise<"u")Y5=Promise;else Y5=YQ();VQ.exports={Promise:Y5}});var BQ=B0((qQ)=>{(function(Q,J){if(Q.setImmediate)return;var $=1,X={},K=!1,Y=Q.document,V;function q(z){if(typeof z!=="function")z=Function(""+z);var P=Array(arguments.length-1);for(var L=0;L<P.length;L++)P[L]=arguments[L+1];var N={callback:z,args:P};return X[$]=N,V($),$++}function U(z){delete X[z]}function G(z){var{callback:P,args:L}=z;switch(L.length){case 0:P();break;case 1:P(L[0]);break;case 2:P(L[0],L[1]);break;case 3:P(L[0],L[1],L[2]);break;default:P.apply(J,L);break}}function B(z){if(K)setTimeout(B,0,z);else{var P=X[z];if(P){K=!0;try{G(P)}finally{U(z),K=!1}}}}function j(){V=function(z){process.nextTick(function(){B(z)})}}function W(){if(Q.postMessage&&!Q.importScripts){var z=!0,P=Q.onmessage;return Q.onmessage=function(){z=!1},Q.postMessage("","*"),Q.onmessage=P,z}}function H(){var z="setImmediate$"+Math.random()+"$",P=function(L){if(L.source===Q&&typeof L.data==="string"&&L.data.indexOf(z)===0)B(+L.data.slice(z.length))};if(Q.addEventListener)Q.addEventListener("message",P,!1);else Q.attachEvent("onmessage",P);V=function(L){Q.postMessage(z+L,"*")}}function S(){var z=new MessageChannel;z.port1.onmessage=function(P){var L=P.data;B(L)},V=function(P){z.port2.postMessage(P)}}function A(){var z=Y.documentElement;V=function(P){var L=Y.createElement("script");L.onreadystatechange=function(){B(P),L.onreadystatechange=null,z.removeChild(L),L=null},z.appendChild(L)}}function w(){V=function(z){setTimeout(B,0,z)}}var F=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(F=F&&F.setTimeout?F:Q,{}.toString.call(Q.process)==="[object process]")j();else if(W())H();else if(Q.MessageChannel)S();else if(Y&&"onreadystatechange"in Y.createElement("script"))A();else w();F.setImmediate=q,F.clearImmediate=U})(typeof self>"u"?typeof global>"u"?qQ:global:self)});var O0=B0((A0)=>{var S2=I2(),U9=Q5(),F1=s1(),V5=L1();BQ();function z9(Q){var J=null;if(S2.uint8array)J=new Uint8Array(Q.length);else J=Array(Q.length);return m6(Q,J)}A0.newBlob=function(Q,J){A0.checkSupport("blob");try{return new Blob([Q],{type:J})}catch(K){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new $;return X.append(Q),X.getBlob(J)}catch(Y){throw Error("Bug : can't construct the Blob.")}}};function J6(Q){return Q}function m6(Q,J){for(var $=0;$<Q.length;++$)J[$]=Q.charCodeAt($)&255;return J}var c6={stringifyByChunk:function(Q,J,$){var X=[],K=0,Y=Q.length;if(Y<=$)return String.fromCharCode.apply(null,Q);while(K<Y){if(J==="array"||J==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(K,Math.min(K+$,Y))));else X.push(String.fromCharCode.apply(null,Q.subarray(K,Math.min(K+$,Y))));K+=$}return X.join("")},stringifyByChar:function(Q){var J="";for(var $=0;$<Q.length;$++)J+=String.fromCharCode(Q[$]);return J},applyCanBeUsed:{uint8array:function(){try{return S2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return S2.nodebuffer&&String.fromCharCode.apply(null,F1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function $6(Q){var J=65536,$=A0.getTypeOf(Q),X=!0;if($==="uint8array")X=c6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=c6.applyCanBeUsed.nodebuffer;if(X)while(J>1)try{return c6.stringifyByChunk(Q,$,J)}catch(K){J=Math.floor(J/2)}return c6.stringifyByChar(Q)}A0.applyFromCharCode=$6;function d6(Q,J){for(var $=0;$<Q.length;$++)J[$]=Q[$];return J}var v2={};v2.string={string:J6,array:function(Q){return m6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.string.uint8array(Q).buffer},uint8array:function(Q){return m6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return m6(Q,F1.allocBuffer(Q.length))}};v2.array={string:$6,array:J6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return F1.newBufferFrom(Q)}};v2.arraybuffer={string:function(Q){return $6(new Uint8Array(Q))},array:function(Q){return d6(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:J6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return F1.newBufferFrom(new Uint8Array(Q))}};v2.uint8array={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:J6,nodebuffer:function(Q){return F1.newBufferFrom(Q)}};v2.nodebuffer={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return d6(Q,new Uint8Array(Q.length))},nodebuffer:J6};A0.transformTo=function(Q,J){if(!J)J="";if(!Q)return J;A0.checkSupport(Q);var $=A0.getTypeOf(J),X=v2[$][Q](J);return X};A0.resolve=function(Q){var J=Q.split("/"),$=[];for(var X=0;X<J.length;X++){var K=J[X];if(K==="."||K===""&&X!==0&&X!==J.length-1)continue;else if(K==="..")$.pop();else $.push(K)}return $.join("/")};A0.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(S2.nodebuffer&&F1.isBuffer(Q))return"nodebuffer";if(S2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(S2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};A0.checkSupport=function(Q){var J=S2[Q.toLowerCase()];if(!J)throw Error(Q+" is not supported by this platform")};A0.MAX_VALUE_16BITS=65535;A0.MAX_VALUE_32BITS=-1;A0.pretty=function(Q){var J="",$,X;for(X=0;X<(Q||"").length;X++)$=Q.charCodeAt(X),J+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return J};A0.delay=function(Q,J,$){setImmediate(function(){Q.apply($||null,J||[])})};A0.inherits=function(Q,J){var $=function(){};$.prototype=J.prototype,Q.prototype=new $};A0.extend=function(){var Q={},J,$;for(J=0;J<arguments.length;J++)for($ in arguments[J])if(Object.prototype.hasOwnProperty.call(arguments[J],$)&&typeof Q[$]>"u")Q[$]=arguments[J][$];return Q};A0.prepareContent=function(Q,J,$,X,K){var Y=V5.Promise.resolve(J).then(function(V){var q=S2.blob&&(V instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(V))!==-1);if(q&&typeof FileReader<"u")return new V5.Promise(function(U,G){var B=new FileReader;B.onload=function(j){U(j.target.result)},B.onerror=function(j){G(j.target.error)},B.readAsArrayBuffer(V)});else return V});return Y.then(function(V){var q=A0.getTypeOf(V);if(!q)return V5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(q==="arraybuffer")V=A0.transformTo("uint8array",V);else if(q==="string"){if(K)V=U9.decode(V);else if($){if(X!==!0)V=z9(V)}}return V})}});var c0=B0((bB,UQ)=>{function GQ(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}GQ.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,J){return this._listeners[Q].push(J),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,J){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,J)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){J.end()}),Q.on("error",function($){J.error($)}),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,J){return this.extraStreamInfo[Q]=J,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 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}};UQ.exports=GQ});var I1=B0((x2)=>{var w1=O0(),a2=I2(),Z9=s1(),l6=c0(),X6=Array(256);for(B2=0;B2<256;B2++)X6[B2]=B2>=252?6:B2>=248?5:B2>=240?4:B2>=224?3:B2>=192?2:1;var B2;X6[254]=X6[254]=1;var W9=function(Q){var J,$,X,K,Y,V=Q.length,q=0;for(K=0;K<V;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}q+=$<128?1:$<2048?2:$<65536?3:4}if(a2.uint8array)J=new Uint8Array(q);else J=Array(q);for(Y=0,K=0;Y<q;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J},H9=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+X6[Q[$]]>J?$:J},j9=function(Q){var J,$,X,K,Y=Q.length,V=Array(Y*2);for($=0,J=0;J<Y;){if(X=Q[J++],X<128){V[$++]=X;continue}if(K=X6[X],K>4){V[$++]=65533,J+=K-1;continue}X&=K===2?31:K===3?15:7;while(K>1&&J<Y)X=X<<6|Q[J++]&63,K--;if(K>1){V[$++]=65533;continue}if(X<65536)V[$++]=X;else X-=65536,V[$++]=55296|X>>10&1023,V[$++]=56320|X&1023}if(V.length!==$)if(V.subarray)V=V.subarray(0,$);else V.length=$;return w1.applyFromCharCode(V)};x2.utf8encode=function(J){if(a2.nodebuffer)return Z9.newBufferFrom(J,"utf-8");return W9(J)};x2.utf8decode=function(J){if(a2.nodebuffer)return w1.transformTo("nodebuffer",J).toString("utf-8");return J=w1.transformTo(a2.uint8array?"uint8array":"array",J),j9(J)};function i6(){l6.call(this,"utf-8 decode"),this.leftOver=null}w1.inherits(i6,l6);i6.prototype.processChunk=function(Q){var J=w1.transformTo(a2.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(a2.uint8array){var $=J;J=new Uint8Array($.length+this.leftOver.length),J.set(this.leftOver,0),J.set($,this.leftOver.length)}else J=this.leftOver.concat(J);this.leftOver=null}var X=H9(J),K=J;if(X!==J.length)if(a2.uint8array)K=J.subarray(0,X),this.leftOver=J.subarray(X,J.length);else K=J.slice(0,X),this.leftOver=J.slice(X,J.length);this.push({data:x2.utf8decode(K),meta:Q.meta})};i6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:x2.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};x2.Utf8DecodeWorker=i6;function q5(){l6.call(this,"utf-8 encode")}w1.inherits(q5,l6);q5.prototype.processChunk=function(Q){this.push({data:x2.utf8encode(Q.data),meta:Q.meta})};x2.Utf8EncodeWorker=q5});var HQ=B0((pB,WQ)=>{var zQ=c0(),ZQ=O0();function B5(Q){zQ.call(this,"ConvertWorker to "+Q),this.destType=Q}ZQ.inherits(B5,zQ);B5.prototype.processChunk=function(Q){this.push({data:ZQ.transformTo(this.destType,Q.data),meta:Q.meta})};WQ.exports=B5});var MQ=B0((cB,PQ)=>{var jQ=s8().Readable,P9=O0();P9.inherits(G5,jQ);function G5(Q,J,$){jQ.call(this,J),this._helper=Q;var X=this;Q.on("data",function(K,Y){if(!X.push(K))X._helper.pause();if($)$(Y)}).on("error",function(K){X.emit("error",K)}).on("end",function(){X.push(null)})}G5.prototype._read=function(){this._helper.resume()};PQ.exports=G5});var U5=B0((mB,wQ)=>{var s2=O0(),M9=HQ(),L9=c0(),F9=Q5(),w9=I2(),I9=L1(),LQ=null;if(w9.nodestream)try{LQ=MQ()}catch(Q){}function N9(Q,J,$){switch(Q){case"blob":return s2.newBlob(s2.transformTo("arraybuffer",J),$);case"base64":return F9.encode(J);default:return s2.transformTo(Q,J)}}function O9(Q,J){var $,X=0,K=null,Y=0;for($=0;$<J.length;$++)Y+=J[$].length;switch(Q){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":K=new Uint8Array(Y);for($=0;$<J.length;$++)K.set(J[$],X),X+=J[$].length;return K;case"nodebuffer":return Buffer.concat(J);default:throw Error("concat : unsupported type '"+Q+"'")}}function C9(Q,J){return new I9.Promise(function($,X){var K=[],Y=Q._internalType,V=Q._outputType,q=Q._mimeType;Q.on("data",function(U,G){if(K.push(U),J)J(G)}).on("error",function(U){K=[],X(U)}).on("end",function(){try{var U=N9(V,O9(Y,K),q);$(U)}catch(G){X(G)}K=[]}).resume()})}function FQ(Q,J,$){var X=J;switch(J){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=J,this._mimeType=$,s2.checkSupport(X),this._worker=Q.pipe(new M9(X)),Q.lock()}catch(K){this._worker=new L9("error"),this._worker.error(K)}}FQ.prototype={accumulate:function(Q){return C9(this,Q)},on:function(Q,J){var $=this;if(Q==="data")this._worker.on(Q,function(X){J.call($,X.data,X.meta)});else this._worker.on(Q,function(){s2.delay(J,arguments,$)});return this},resume:function(){return s2.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(s2.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new LQ(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};wQ.exports=FQ});var z5=B0((t0)=>{t0.base64=!1;t0.binary=!1;t0.dir=!1;t0.createFolders=!0;t0.date=null;t0.compression=null;t0.compressionOptions=null;t0.comment=null;t0.unixPermissions=null;t0.dosPermissions=null});var Z5=B0((lB,IQ)=>{var n6=O0(),r6=c0(),D9=16384;function N1(Q){r6.call(this,"DataWorker");var J=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(J.dataIsReady=!0,J.data=$,J.max=$&&$.length||0,J.type=n6.getTypeOf($),!J.isPaused)J._tickAndRepeat()},function($){J.error($)})}n6.inherits(N1,r6);N1.prototype.cleanUp=function(){r6.prototype.cleanUp.call(this),this.data=null};N1.prototype.resume=function(){if(!r6.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,n6.delay(this._tickAndRepeat,[],this);return!0};N1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)n6.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};N1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=D9,J=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":J=this.data.substring(this.index,$);break;case"uint8array":J=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":J=this.data.slice(this.index,$);break}return this.index=$,this.push({data:J,meta:{percent:this.max?this.index/this.max*100:0}})}};IQ.exports=N1});var o6=B0((iB,OQ)=>{var A9=O0();function R9(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var NQ=R9();function T9(Q,J,$,X){var K=NQ,Y=X+$;Q=Q^-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^J[V])&255];return Q^-1}function k9(Q,J,$,X){var K=NQ,Y=X+$;Q=Q^-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^J.charCodeAt(V))&255];return Q^-1}OQ.exports=function(J,$){if(typeof J>"u"||!J.length)return 0;var X=A9.getTypeOf(J)!=="string";if(X)return T9($|0,J,J.length,0);else return k9($|0,J,J.length,0)}});var H5=B0((nB,DQ)=>{var CQ=c0(),E9=o6(),S9=O0();function W5(){CQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}S9.inherits(W5,CQ);W5.prototype.processChunk=function(Q){this.streamInfo.crc32=E9(Q.data,this.streamInfo.crc32||0),this.push(Q)};DQ.exports=W5});var RQ=B0((rB,AQ)=>{var v9=O0(),j5=c0();function P5(Q){j5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}v9.inherits(P5,j5);P5.prototype.processChunk=function(Q){if(Q){var J=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=J+Q.data.length}j5.prototype.processChunk.call(this,Q)};AQ.exports=P5});var a6=B0((oB,EQ)=>{var TQ=L1(),kQ=Z5(),x9=H5(),M5=RQ();function L5(Q,J,$,X,K){this.compressedSize=Q,this.uncompressedSize=J,this.crc32=$,this.compression=X,this.compressedContent=K}L5.prototype={getContentWorker:function(){var Q=new kQ(TQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new M5("data_length")),J=this;return Q.on("end",function(){if(this.streamInfo.data_length!==J.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new kQ(TQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};L5.createWorkerFrom=function(Q,J,$){return Q.pipe(new x9).pipe(new M5("uncompressedSize")).pipe(J.compressWorker($)).pipe(new M5("compressedSize")).withStreamInfo("compression",J)};EQ.exports=L5});var gQ=B0((aB,xQ)=>{var g9=U5(),y9=Z5(),F5=I1(),w5=a6(),SQ=c0(),I5=function(Q,J,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=J,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};I5.prototype={internalStream:function(Q){var J=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var X=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";J=this._decompressWorker();var K=!this._dataBinary;if(K&&!X)J=J.pipe(new F5.Utf8EncodeWorker);if(!K&&X)J=J.pipe(new F5.Utf8DecodeWorker)}catch(Y){J=new SQ("error"),J.error(Y)}return new g9(J,$,"")},async:function(Q,J){return this.internalStream(Q).accumulate(J)},nodeStream:function(Q,J){return this.internalStream(Q||"nodebuffer").toNodejsStream(J)},_compressWorker:function(Q,J){if(this._data instanceof w5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new F5.Utf8EncodeWorker);return w5.createWorkerFrom($,Q,J)}},_decompressWorker:function(){if(this._data instanceof w5)return this._data.getContentWorker();else if(this._data instanceof SQ)return this._data;else return new y9(this._data)}};var vQ=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h9=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(K6=0;K6<vQ.length;K6++)I5.prototype[vQ[K6]]=h9;var K6;xQ.exports=I5});var N2=B0((g0)=>{var f9=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function _9(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}g0.assign=function(Q){var J=Array.prototype.slice.call(arguments,1);while(J.length){var $=J.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var X in $)if(_9($,X))Q[X]=$[X]}return Q};g0.shrinkBuf=function(Q,J){if(Q.length===J)return Q;if(Q.subarray)return Q.subarray(0,J);return Q.length=J,Q};var b9={arraySet:function(Q,J,$,X,K){if(J.subarray&&Q.subarray){Q.set(J.subarray($,$+X),K);return}for(var Y=0;Y<X;Y++)Q[K+Y]=J[$+Y]},flattenChunks:function(Q){var J,$,X,K,Y,V;X=0;for(J=0,$=Q.length;J<$;J++)X+=Q[J].length;V=new Uint8Array(X),K=0;for(J=0,$=Q.length;J<$;J++)Y=Q[J],V.set(Y,K),K+=Y.length;return V}},u9={arraySet:function(Q,J,$,X,K){for(var Y=0;Y<X;Y++)Q[K+Y]=J[$+Y]},flattenChunks:function(Q){return[].concat.apply([],Q)}};g0.setTyped=function(Q){if(Q)g0.Buf8=Uint8Array,g0.Buf16=Uint16Array,g0.Buf32=Int32Array,g0.assign(g0,b9);else g0.Buf8=Array,g0.Buf16=Array,g0.Buf32=Array,g0.assign(g0,u9)};g0.setTyped(f9)});var XJ=B0((D1)=>{var p9=N2(),c9=4,yQ=0,hQ=1,m9=2;function C1(Q){var J=Q.length;while(--J>=0)Q[J]=0}var d9=0,cQ=1,l9=2,i9=3,n9=258,T5=29,U6=256,V6=U6+1+T5,O1=30,k5=19,mQ=2*V6+1,t2=15,N5=16,r9=7,E5=256,dQ=16,lQ=17,iQ=18,A5=[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],s6=[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],o9=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a9=512,O2=Array((V6+2)*2);C1(O2);var Y6=Array(O1*2);C1(Y6);var q6=Array(a9);C1(q6);var B6=Array(n9-i9+1);C1(B6);var S5=Array(T5);C1(S5);var t6=Array(O1);C1(t6);function O5(Q,J,$,X,K){this.static_tree=Q,this.extra_bits=J,this.extra_base=$,this.elems=X,this.max_length=K,this.has_stree=Q&&Q.length}var rQ,oQ,aQ;function C5(Q,J){this.dyn_tree=Q,this.max_code=0,this.stat_desc=J}function sQ(Q){return Q<256?q6[Q]:q6[256+(Q>>>7)]}function G6(Q,J){Q.pending_buf[Q.pending++]=J&255,Q.pending_buf[Q.pending++]=J>>>8&255}function b0(Q,J,$){if(Q.bi_valid>N5-$)Q.bi_buf|=J<<Q.bi_valid&65535,G6(Q,Q.bi_buf),Q.bi_buf=J>>N5-Q.bi_valid,Q.bi_valid+=$-N5;else Q.bi_buf|=J<<Q.bi_valid&65535,Q.bi_valid+=$}function G2(Q,J,$){b0(Q,$[J*2],$[J*2+1])}function tQ(Q,J){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--J>0);return $>>>1}function s9(Q){if(Q.bi_valid===16)G6(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 t9(Q,J){var{dyn_tree:$,max_code:X}=J,K=J.stat_desc.static_tree,Y=J.stat_desc.has_stree,V=J.stat_desc.extra_bits,q=J.stat_desc.extra_base,U=J.stat_desc.max_length,G,B,j,W,H,S,A=0;for(W=0;W<=t2;W++)Q.bl_count[W]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(G=Q.heap_max+1;G<mQ;G++){if(B=Q.heap[G],W=$[$[B*2+1]*2+1]+1,W>U)W=U,A++;if($[B*2+1]=W,B>X)continue;if(Q.bl_count[W]++,H=0,B>=q)H=V[B-q];if(S=$[B*2],Q.opt_len+=S*(W+H),Y)Q.static_len+=S*(K[B*2+1]+H)}if(A===0)return;do{W=U-1;while(Q.bl_count[W]===0)W--;Q.bl_count[W]--,Q.bl_count[W+1]+=2,Q.bl_count[U]--,A-=2}while(A>0);for(W=U;W!==0;W--){B=Q.bl_count[W];while(B!==0){if(j=Q.heap[--G],j>X)continue;if($[j*2+1]!==W)Q.opt_len+=(W-$[j*2+1])*$[j*2],$[j*2+1]=W;B--}}}function eQ(Q,J,$){var X=Array(t2+1),K=0,Y,V;for(Y=1;Y<=t2;Y++)X[Y]=K=K+$[Y-1]<<1;for(V=0;V<=J;V++){var q=Q[V*2+1];if(q===0)continue;Q[V*2]=tQ(X[q]++,q)}}function e9(){var Q,J,$,X,K,Y=Array(t2+1);$=0;for(X=0;X<T5-1;X++){S5[X]=$;for(Q=0;Q<1<<A5[X];Q++)B6[$++]=X}B6[$-1]=X,K=0;for(X=0;X<16;X++){t6[X]=K;for(Q=0;Q<1<<s6[X];Q++)q6[K++]=X}K>>=7;for(;X<O1;X++){t6[X]=K<<7;for(Q=0;Q<1<<s6[X]-7;Q++)q6[256+K++]=X}for(J=0;J<=t2;J++)Y[J]=0;Q=0;while(Q<=143)O2[Q*2+1]=8,Q++,Y[8]++;while(Q<=255)O2[Q*2+1]=9,Q++,Y[9]++;while(Q<=279)O2[Q*2+1]=7,Q++,Y[7]++;while(Q<=287)O2[Q*2+1]=8,Q++,Y[8]++;eQ(O2,V6+1,Y);for(Q=0;Q<O1;Q++)Y6[Q*2+1]=5,Y6[Q*2]=tQ(Q,5);rQ=new O5(O2,A5,U6+1,V6,t2),oQ=new O5(Y6,s6,0,O1,t2),aQ=new O5([],o9,0,k5,r9)}function QJ(Q){var J;for(J=0;J<V6;J++)Q.dyn_ltree[J*2]=0;for(J=0;J<O1;J++)Q.dyn_dtree[J*2]=0;for(J=0;J<k5;J++)Q.bl_tree[J*2]=0;Q.dyn_ltree[E5*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function JJ(Q){if(Q.bi_valid>8)G6(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 QV(Q,J,$,X){if(JJ(Q),X)G6(Q,$),G6(Q,~$);p9.arraySet(Q.pending_buf,Q.window,J,$,Q.pending),Q.pending+=$}function fQ(Q,J,$,X){var K=J*2,Y=$*2;return Q[K]<Q[Y]||Q[K]===Q[Y]&&X[J]<=X[$]}function D5(Q,J,$){var X=Q.heap[$],K=$<<1;while(K<=Q.heap_len){if(K<Q.heap_len&&fQ(J,Q.heap[K+1],Q.heap[K],Q.depth))K++;if(fQ(J,X,Q.heap[K],Q.depth))break;Q.heap[$]=Q.heap[K],$=K,K<<=1}Q.heap[$]=X}function _Q(Q,J,$){var X,K,Y=0,V,q;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+Y*2]<<8|Q.pending_buf[Q.d_buf+Y*2+1],K=Q.pending_buf[Q.l_buf+Y],Y++,X===0)G2(Q,K,J);else{if(V=B6[K],G2(Q,V+U6+1,J),q=A5[V],q!==0)K-=S5[V],b0(Q,K,q);if(X--,V=sQ(X),G2(Q,V,$),q=s6[V],q!==0)X-=t6[V],b0(Q,X,q)}while(Y<Q.last_lit);G2(Q,E5,J)}function R5(Q,J){var $=J.dyn_tree,X=J.stat_desc.static_tree,K=J.stat_desc.has_stree,Y=J.stat_desc.elems,V,q,U=-1,G;Q.heap_len=0,Q.heap_max=mQ;for(V=0;V<Y;V++)if($[V*2]!==0)Q.heap[++Q.heap_len]=U=V,Q.depth[V]=0;else $[V*2+1]=0;while(Q.heap_len<2)if(G=Q.heap[++Q.heap_len]=U<2?++U:0,$[G*2]=1,Q.depth[G]=0,Q.opt_len--,K)Q.static_len-=X[G*2+1];J.max_code=U;for(V=Q.heap_len>>1;V>=1;V--)D5(Q,$,V);G=Y;do V=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],D5(Q,$,1),q=Q.heap[1],Q.heap[--Q.heap_max]=V,Q.heap[--Q.heap_max]=q,$[G*2]=$[V*2]+$[q*2],Q.depth[G]=(Q.depth[V]>=Q.depth[q]?Q.depth[V]:Q.depth[q])+1,$[V*2+1]=$[q*2+1]=G,Q.heap[1]=G++,D5(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],t9(Q,J),eQ($,U,Q.bl_count)}function bQ(Q,J,$){var X,K=-1,Y,V=J[1],q=0,U=7,G=4;if(V===0)U=138,G=3;J[($+1)*2+1]=65535;for(X=0;X<=$;X++){if(Y=V,V=J[(X+1)*2+1],++q<U&&Y===V)continue;else if(q<G)Q.bl_tree[Y*2]+=q;else if(Y!==0){if(Y!==K)Q.bl_tree[Y*2]++;Q.bl_tree[dQ*2]++}else if(q<=10)Q.bl_tree[lQ*2]++;else Q.bl_tree[iQ*2]++;if(q=0,K=Y,V===0)U=138,G=3;else if(Y===V)U=6,G=3;else U=7,G=4}}function uQ(Q,J,$){var X,K=-1,Y,V=J[1],q=0,U=7,G=4;if(V===0)U=138,G=3;for(X=0;X<=$;X++){if(Y=V,V=J[(X+1)*2+1],++q<U&&Y===V)continue;else if(q<G)do G2(Q,Y,Q.bl_tree);while(--q!==0);else if(Y!==0){if(Y!==K)G2(Q,Y,Q.bl_tree),q--;G2(Q,dQ,Q.bl_tree),b0(Q,q-3,2)}else if(q<=10)G2(Q,lQ,Q.bl_tree),b0(Q,q-3,3);else G2(Q,iQ,Q.bl_tree),b0(Q,q-11,7);if(q=0,K=Y,V===0)U=138,G=3;else if(Y===V)U=6,G=3;else U=7,G=4}}function JV(Q){var J;bQ(Q,Q.dyn_ltree,Q.l_desc.max_code),bQ(Q,Q.dyn_dtree,Q.d_desc.max_code),R5(Q,Q.bl_desc);for(J=k5-1;J>=3;J--)if(Q.bl_tree[nQ[J]*2+1]!==0)break;return Q.opt_len+=3*(J+1)+5+5+4,J}function $V(Q,J,$,X){var K;b0(Q,J-257,5),b0(Q,$-1,5),b0(Q,X-4,4);for(K=0;K<X;K++)b0(Q,Q.bl_tree[nQ[K]*2+1],3);uQ(Q,Q.dyn_ltree,J-1),uQ(Q,Q.dyn_dtree,$-1)}function XV(Q){var J=4093624447,$;for($=0;$<=31;$++,J>>>=1)if(J&1&&Q.dyn_ltree[$*2]!==0)return yQ;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return hQ;for($=32;$<U6;$++)if(Q.dyn_ltree[$*2]!==0)return hQ;return yQ}var pQ=!1;function KV(Q){if(!pQ)e9(),pQ=!0;Q.l_desc=new C5(Q.dyn_ltree,rQ),Q.d_desc=new C5(Q.dyn_dtree,oQ),Q.bl_desc=new C5(Q.bl_tree,aQ),Q.bi_buf=0,Q.bi_valid=0,QJ(Q)}function $J(Q,J,$,X){b0(Q,(d9<<1)+(X?1:0),3),QV(Q,J,$,!0)}function YV(Q){b0(Q,cQ<<1,3),G2(Q,E5,O2),s9(Q)}function VV(Q,J,$,X){var K,Y,V=0;if(Q.level>0){if(Q.strm.data_type===m9)Q.strm.data_type=XV(Q);if(R5(Q,Q.l_desc),R5(Q,Q.d_desc),V=JV(Q),K=Q.opt_len+3+7>>>3,Y=Q.static_len+3+7>>>3,Y<=K)K=Y}else K=Y=$+5;if($+4<=K&&J!==-1)$J(Q,J,$,X);else if(Q.strategy===c9||Y===K)b0(Q,(cQ<<1)+(X?1:0),3),_Q(Q,O2,Y6);else b0(Q,(l9<<1)+(X?1:0),3),$V(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,V+1),_Q(Q,Q.dyn_ltree,Q.dyn_dtree);if(QJ(Q),X)JJ(Q)}function qV(Q,J,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=J>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=J&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,J===0)Q.dyn_ltree[$*2]++;else Q.matches++,J--,Q.dyn_ltree[(B6[$]+U6+1)*2]++,Q.dyn_dtree[sQ(J)*2]++;return Q.last_lit===Q.lit_bufsize-1}D1._tr_init=KV;D1._tr_stored_block=$J;D1._tr_flush_block=VV;D1._tr_tally=qV;D1._tr_align=YV});var v5=B0((eB,KJ)=>{function BV(Q,J,$,X){var K=Q&65535|0,Y=Q>>>16&65535|0,V=0;while($!==0){V=$>2000?2000:$,$-=V;do K=K+J[X++]|0,Y=Y+K|0;while(--V);K%=65521,Y%=65521}return K|Y<<16|0}KJ.exports=BV});var x5=B0((QG,YJ)=>{function GV(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var UV=GV();function zV(Q,J,$,X){var K=UV,Y=X+$;Q^=-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^J[V])&255];return Q^-1}YJ.exports=zV});var e6=B0((JG,VJ)=>{VJ.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 jJ=B0((Z2)=>{var y0=N2(),r0=XJ(),UJ=v5(),g2=x5(),ZV=e6(),$1=0,WV=1,HV=3,b2=4,qJ=5,z2=0,BJ=1,o0=-2,jV=-3,g5=-5,PV=-1,MV=1,Q8=2,LV=3,FV=4,wV=0,IV=2,K8=8,NV=9,OV=15,CV=8,DV=29,AV=256,h5=AV+1+DV,RV=30,TV=19,kV=2*h5+1,EV=15,j0=3,f2=258,e0=f2+j0+1,SV=32,Y8=42,f5=69,J8=73,$8=91,X8=103,e2=113,Z6=666,R0=1,W6=2,Q1=3,T1=4,vV=3;function _2(Q,J){return Q.msg=ZV[J],J}function GJ(Q){return(Q<<1)-(Q>4?9:0)}function h2(Q){var J=Q.length;while(--J>=0)Q[J]=0}function y2(Q){var J=Q.state,$=J.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(y0.arraySet(Q.output,J.pending_buf,J.pending_out,$,Q.next_out),Q.next_out+=$,J.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,J.pending-=$,J.pending===0)J.pending_out=0}function k0(Q,J){r0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,J),Q.block_start=Q.strstart,y2(Q.strm)}function P0(Q,J){Q.pending_buf[Q.pending++]=J}function z6(Q,J){Q.pending_buf[Q.pending++]=J>>>8&255,Q.pending_buf[Q.pending++]=J&255}function xV(Q,J,$,X){var K=Q.avail_in;if(K>X)K=X;if(K===0)return 0;if(Q.avail_in-=K,y0.arraySet(J,Q.input,Q.next_in,K,$),Q.state.wrap===1)Q.adler=UJ(Q.adler,J,K,$);else if(Q.state.wrap===2)Q.adler=g2(Q.adler,J,K,$);return Q.next_in+=K,Q.total_in+=K,K}function zJ(Q,J){var{max_chain_length:$,strstart:X}=Q,K,Y,V=Q.prev_length,q=Q.nice_match,U=Q.strstart>Q.w_size-e0?Q.strstart-(Q.w_size-e0):0,G=Q.window,B=Q.w_mask,j=Q.prev,W=Q.strstart+f2,H=G[X+V-1],S=G[X+V];if(Q.prev_length>=Q.good_match)$>>=2;if(q>Q.lookahead)q=Q.lookahead;do{if(K=J,G[K+V]!==S||G[K+V-1]!==H||G[K]!==G[X]||G[++K]!==G[X+1])continue;X+=2,K++;do;while(G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&X<W);if(Y=f2-(W-X),X=W-f2,Y>V){if(Q.match_start=J,V=Y,Y>=q)break;H=G[X+V-1],S=G[X+V]}}while((J=j[J&B])>U&&--$!==0);if(V<=Q.lookahead)return V;return Q.lookahead}function J1(Q){var J=Q.w_size,$,X,K,Y,V;do{if(Y=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=J+(J-e0)){y0.arraySet(Q.window,Q.window,J,J,0),Q.match_start-=J,Q.strstart-=J,Q.block_start-=J,X=Q.hash_size,$=X;do K=Q.head[--$],Q.head[$]=K>=J?K-J:0;while(--X);X=J,$=X;do K=Q.prev[--$],Q.prev[$]=K>=J?K-J:0;while(--X);Y+=J}if(Q.strm.avail_in===0)break;if(X=xV(Q.strm,Q.window,Q.strstart+Q.lookahead,Y),Q.lookahead+=X,Q.lookahead+Q.insert>=j0){V=Q.strstart-Q.insert,Q.ins_h=Q.window[V],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[V+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[V+j0-1])&Q.hash_mask,Q.prev[V&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=V,V++,Q.insert--,Q.lookahead+Q.insert<j0)break}}while(Q.lookahead<e0&&Q.strm.avail_in!==0)}function gV(Q,J){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(J1(Q),Q.lookahead===0&&J===$1)return R0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+$;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,k0(Q,!1),Q.strm.avail_out===0)return R0}if(Q.strstart-Q.block_start>=Q.w_size-e0){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.strstart>Q.block_start){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return R0}function y5(Q,J){var $,X;for(;;){if(Q.lookahead<e0){if(J1(Q),Q.lookahead<e0&&J===$1)return R0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if($!==0&&Q.strstart-$<=Q.w_size-e0)Q.match_length=zJ(Q,$);if(Q.match_length>=j0)if(X=r0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=j0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=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=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function A1(Q,J){var $,X,K;for(;;){if(Q.lookahead<e0){if(J1(Q),Q.lookahead<e0&&J===$1)return R0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=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=j0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-e0){if(Q.match_length=zJ(Q,$),Q.match_length<=5&&(Q.strategy===MV||Q.match_length===j0&&Q.strstart-Q.match_start>4096))Q.match_length=j0-1}if(Q.prev_length>=j0&&Q.match_length<=Q.prev_length){K=Q.strstart+Q.lookahead-j0,X=r0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-j0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=K)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=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=j0-1,Q.strstart++,X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}else if(Q.match_available){if(X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)k0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return R0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function yV(Q,J){var $,X,K,Y,V=Q.window;for(;;){if(Q.lookahead<=f2){if(J1(Q),Q.lookahead<=f2&&J===$1)return R0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=j0&&Q.strstart>0){if(K=Q.strstart-1,X=V[K],X===V[++K]&&X===V[++K]&&X===V[++K]){Y=Q.strstart+f2;do;while(X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&K<Y);if(Q.match_length=f2-(Y-K),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=j0)$=r0._tr_tally(Q,1,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function hV(Q,J){var $;for(;;){if(Q.lookahead===0){if(J1(Q),Q.lookahead===0){if(J===$1)return R0;break}}if(Q.match_length=0,$=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function U2(Q,J,$,X,K){this.good_length=Q,this.max_lazy=J,this.nice_length=$,this.max_chain=X,this.func=K}var R1;R1=[new U2(0,0,0,0,gV),new U2(4,4,8,4,y5),new U2(4,5,16,8,y5),new U2(4,6,32,32,y5),new U2(4,4,16,16,A1),new U2(8,16,32,32,A1),new U2(8,16,128,128,A1),new U2(8,32,128,256,A1),new U2(32,128,258,1024,A1),new U2(32,258,258,4096,A1)];function fV(Q){Q.window_size=2*Q.w_size,h2(Q.head),Q.max_lazy_match=R1[Q.level].max_lazy,Q.good_match=R1[Q.level].good_length,Q.nice_match=R1[Q.level].nice_length,Q.max_chain_length=R1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=j0-1,Q.match_available=0,Q.ins_h=0}function _V(){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=K8,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(kV*2),this.dyn_dtree=new y0.Buf16((2*RV+1)*2),this.bl_tree=new y0.Buf16((2*TV+1)*2),h2(this.dyn_ltree),h2(this.dyn_dtree),h2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y0.Buf16(EV+1),this.heap=new y0.Buf16(2*h5+1),h2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y0.Buf16(2*h5+1),h2(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 ZJ(Q){var J;if(!Q||!Q.state)return _2(Q,o0);if(Q.total_in=Q.total_out=0,Q.data_type=IV,J=Q.state,J.pending=0,J.pending_out=0,J.wrap<0)J.wrap=-J.wrap;return J.status=J.wrap?Y8:e2,Q.adler=J.wrap===2?0:1,J.last_flush=$1,r0._tr_init(J),z2}function WJ(Q){var J=ZJ(Q);if(J===z2)fV(Q.state);return J}function bV(Q,J){if(!Q||!Q.state)return o0;if(Q.state.wrap!==2)return o0;return Q.state.gzhead=J,z2}function HJ(Q,J,$,X,K,Y){if(!Q)return o0;var V=1;if(J===PV)J=6;if(X<0)V=0,X=-X;else if(X>15)V=2,X-=16;if(K<1||K>NV||$!==K8||X<8||X>15||J<0||J>9||Y<0||Y>FV)return _2(Q,o0);if(X===8)X=9;var q=new _V;return Q.state=q,q.strm=Q,q.wrap=V,q.gzhead=null,q.w_bits=X,q.w_size=1<<q.w_bits,q.w_mask=q.w_size-1,q.hash_bits=K+7,q.hash_size=1<<q.hash_bits,q.hash_mask=q.hash_size-1,q.hash_shift=~~((q.hash_bits+j0-1)/j0),q.window=new y0.Buf8(q.w_size*2),q.head=new y0.Buf16(q.hash_size),q.prev=new y0.Buf16(q.w_size),q.lit_bufsize=1<<K+6,q.pending_buf_size=q.lit_bufsize*4,q.pending_buf=new y0.Buf8(q.pending_buf_size),q.d_buf=1*q.lit_bufsize,q.l_buf=3*q.lit_bufsize,q.level=J,q.strategy=Y,q.method=$,WJ(Q)}function uV(Q,J){return HJ(Q,J,K8,OV,CV,wV)}function pV(Q,J){var $,X,K,Y;if(!Q||!Q.state||J>qJ||J<0)return Q?_2(Q,o0):o0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===Z6&&J!==b2)return _2(Q,Q.avail_out===0?g5:o0);if(X.strm=Q,$=X.last_flush,X.last_flush=J,X.status===Y8)if(X.wrap===2)if(Q.adler=0,P0(X,31),P0(X,139),P0(X,8),!X.gzhead)P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,X.level===9?2:X.strategy>=Q8||X.level<2?4:0),P0(X,vV),X.status=e2;else{if(P0(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)),P0(X,X.gzhead.time&255),P0(X,X.gzhead.time>>8&255),P0(X,X.gzhead.time>>16&255),P0(X,X.gzhead.time>>24&255),P0(X,X.level===9?2:X.strategy>=Q8||X.level<2?4:0),P0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)P0(X,X.gzhead.extra.length&255),P0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=g2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=f5}else{var V=K8+(X.w_bits-8<<4)<<8,q=-1;if(X.strategy>=Q8||X.level<2)q=0;else if(X.level<6)q=1;else if(X.level===6)q=2;else q=3;if(V|=q<<6,X.strstart!==0)V|=SV;if(V+=31-V%31,X.status=e2,z6(X,V),X.strstart!==0)z6(X,Q.adler>>>16),z6(X,Q.adler&65535);Q.adler=1}if(X.status===f5)if(X.gzhead.extra){K=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size)break}P0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=J8}else X.status=J8;if(X.status===J8)if(X.gzhead.name){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.name.length)Y=X.gzhead.name.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.gzindex=0,X.status=$8}else X.status=$8;if(X.status===$8)if(X.gzhead.comment){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.comment.length)Y=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=g2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.status=X8}else X.status=X8;if(X.status===X8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)y2(Q);if(X.pending+2<=X.pending_buf_size)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),Q.adler=0,X.status=e2}else X.status=e2;if(X.pending!==0){if(y2(Q),Q.avail_out===0)return X.last_flush=-1,z2}else if(Q.avail_in===0&&GJ(J)<=GJ($)&&J!==b2)return _2(Q,g5);if(X.status===Z6&&Q.avail_in!==0)return _2(Q,g5);if(Q.avail_in!==0||X.lookahead!==0||J!==$1&&X.status!==Z6){var U=X.strategy===Q8?hV(X,J):X.strategy===LV?yV(X,J):R1[X.level].func(X,J);if(U===Q1||U===T1)X.status=Z6;if(U===R0||U===Q1){if(Q.avail_out===0)X.last_flush=-1;return z2}if(U===W6){if(J===WV)r0._tr_align(X);else if(J!==qJ){if(r0._tr_stored_block(X,0,0,!1),J===HV){if(h2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(y2(Q),Q.avail_out===0)return X.last_flush=-1,z2}}if(J!==b2)return z2;if(X.wrap<=0)return BJ;if(X.wrap===2)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),P0(X,Q.adler>>16&255),P0(X,Q.adler>>24&255),P0(X,Q.total_in&255),P0(X,Q.total_in>>8&255),P0(X,Q.total_in>>16&255),P0(X,Q.total_in>>24&255);else z6(X,Q.adler>>>16),z6(X,Q.adler&65535);if(y2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?z2:BJ}function cV(Q){var J;if(!Q||!Q.state)return o0;if(J=Q.state.status,J!==Y8&&J!==f5&&J!==J8&&J!==$8&&J!==X8&&J!==e2&&J!==Z6)return _2(Q,o0);return Q.state=null,J===e2?_2(Q,jV):z2}function mV(Q,J){var $=J.length,X,K,Y,V,q,U,G,B;if(!Q||!Q.state)return o0;if(X=Q.state,V=X.wrap,V===2||V===1&&X.status!==Y8||X.lookahead)return o0;if(V===1)Q.adler=UJ(Q.adler,J,$,0);if(X.wrap=0,$>=X.w_size){if(V===0)h2(X.head),X.strstart=0,X.block_start=0,X.insert=0;B=new y0.Buf8(X.w_size),y0.arraySet(B,J,$-X.w_size,X.w_size,0),J=B,$=X.w_size}q=Q.avail_in,U=Q.next_in,G=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=J,J1(X);while(X.lookahead>=j0){K=X.strstart,Y=X.lookahead-(j0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[K+j0-1])&X.hash_mask,X.prev[K&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=K,K++;while(--Y);X.strstart=K,X.lookahead=j0-1,J1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=j0-1,X.match_available=0,Q.next_in=U,Q.input=G,Q.avail_in=q,X.wrap=V,z2}Z2.deflateInit=uV;Z2.deflateInit2=HJ;Z2.deflateReset=WJ;Z2.deflateResetKeep=ZJ;Z2.deflateSetHeader=bV;Z2.deflate=pV;Z2.deflateEnd=cV;Z2.deflateSetDictionary=mV;Z2.deflateInfo="pako deflate (from Nodeca project)"});var _5=B0((k1)=>{var V8=N2(),PJ=!0,MJ=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){PJ=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){MJ=!1}var H6=new V8.Buf8(256);for(W2=0;W2<256;W2++)H6[W2]=W2>=252?6:W2>=248?5:W2>=240?4:W2>=224?3:W2>=192?2:1;var W2;H6[254]=H6[254]=1;k1.string2buf=function(Q){var J,$,X,K,Y,V=Q.length,q=0;for(K=0;K<V;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}q+=$<128?1:$<2048?2:$<65536?3:4}J=new V8.Buf8(q);for(Y=0,K=0;Y<q;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J};function LJ(Q,J){if(J<65534){if(Q.subarray&&MJ||!Q.subarray&&PJ)return String.fromCharCode.apply(null,V8.shrinkBuf(Q,J))}var $="";for(var X=0;X<J;X++)$+=String.fromCharCode(Q[X]);return $}k1.buf2binstring=function(Q){return LJ(Q,Q.length)};k1.binstring2buf=function(Q){var J=new V8.Buf8(Q.length);for(var $=0,X=J.length;$<X;$++)J[$]=Q.charCodeAt($);return J};k1.buf2string=function(Q,J){var $,X,K,Y,V=J||Q.length,q=Array(V*2);for(X=0,$=0;$<V;){if(K=Q[$++],K<128){q[X++]=K;continue}if(Y=H6[K],Y>4){q[X++]=65533,$+=Y-1;continue}K&=Y===2?31:Y===3?15:7;while(Y>1&&$<V)K=K<<6|Q[$++]&63,Y--;if(Y>1){q[X++]=65533;continue}if(K<65536)q[X++]=K;else K-=65536,q[X++]=55296|K>>10&1023,q[X++]=56320|K&1023}return LJ(q,X)};k1.utf8border=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+H6[Q[$]]>J?$:J}});var b5=B0((KG,FJ)=>{function dV(){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}FJ.exports=dV});var OJ=B0((M6)=>{var j6=jJ(),P6=N2(),p5=_5(),c5=e6(),lV=b5(),NJ=Object.prototype.toString,iV=0,u5=4,E1=0,wJ=1,IJ=2,nV=-1,rV=0,oV=8;function X1(Q){if(!(this instanceof X1))return new X1(Q);this.options=P6.assign({level:nV,method:oV,chunkSize:16384,windowBits:15,memLevel:8,strategy:rV,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>0)J.windowBits=-J.windowBits;else if(J.gzip&&J.windowBits>0&&J.windowBits<16)J.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lV,this.strm.avail_out=0;var $=j6.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if($!==E1)throw Error(c5[$]);if(J.header)j6.deflateSetHeader(this.strm,J.header);if(J.dictionary){var X;if(typeof J.dictionary==="string")X=p5.string2buf(J.dictionary);else if(NJ.call(J.dictionary)==="[object ArrayBuffer]")X=new Uint8Array(J.dictionary);else X=J.dictionary;if($=j6.deflateSetDictionary(this.strm,X),$!==E1)throw Error(c5[$]);this._dict_set=!0}}X1.prototype.push=function(Q,J){var $=this.strm,X=this.options.chunkSize,K,Y;if(this.ended)return!1;if(Y=J===~~J?J:J===!0?u5:iV,typeof Q==="string")$.input=p5.string2buf(Q);else if(NJ.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new P6.Buf8(X),$.next_out=0,$.avail_out=X;if(K=j6.deflate($,Y),K!==wJ&&K!==E1)return this.onEnd(K),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(Y===u5||Y===IJ))if(this.options.to==="string")this.onData(p5.buf2binstring(P6.shrinkBuf($.output,$.next_out)));else this.onData(P6.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&K!==wJ);if(Y===u5)return K=j6.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E1;if(Y===IJ)return this.onEnd(E1),$.avail_out=0,!0;return!0};X1.prototype.onData=function(Q){this.chunks.push(Q)};X1.prototype.onEnd=function(Q){if(Q===E1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=P6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function m5(Q,J){var $=new X1(J);if($.push(Q,!0),$.err)throw $.msg||c5[$.err];return $.result}function aV(Q,J){return J=J||{},J.raw=!0,m5(Q,J)}function sV(Q,J){return J=J||{},J.gzip=!0,m5(Q,J)}M6.Deflate=X1;M6.deflate=m5;M6.deflateRaw=aV;M6.gzip=sV});var DJ=B0((VG,CJ)=>{var q8=30,tV=12;CJ.exports=function(J,$){var X,K,Y,V,q,U,G,B,j,W,H,S,A,w,F,z,P,L,N,x,d,i,_,v,k;X=J.state,K=J.next_in,v=J.input,Y=K+(J.avail_in-5),V=J.next_out,k=J.output,q=V-($-J.avail_out),U=V+(J.avail_out-257),G=X.dmax,B=X.wsize,j=X.whave,W=X.wnext,H=X.window,S=X.hold,A=X.bits,w=X.lencode,F=X.distcode,z=(1<<X.lenbits)-1,P=(1<<X.distbits)-1;Q:do{if(A<15)S+=v[K++]<<A,A+=8,S+=v[K++]<<A,A+=8;L=w[S&z];J:for(;;){if(N=L>>>24,S>>>=N,A-=N,N=L>>>16&255,N===0)k[V++]=L&65535;else if(N&16){if(x=L&65535,N&=15,N){if(A<N)S+=v[K++]<<A,A+=8;x+=S&(1<<N)-1,S>>>=N,A-=N}if(A<15)S+=v[K++]<<A,A+=8,S+=v[K++]<<A,A+=8;L=F[S&P];$:for(;;){if(N=L>>>24,S>>>=N,A-=N,N=L>>>16&255,N&16){if(d=L&65535,N&=15,A<N){if(S+=v[K++]<<A,A+=8,A<N)S+=v[K++]<<A,A+=8}if(d+=S&(1<<N)-1,d>G){J.msg="invalid distance too far back",X.mode=q8;break Q}if(S>>>=N,A-=N,N=V-q,d>N){if(N=d-N,N>j){if(X.sane){J.msg="invalid distance too far back",X.mode=q8;break Q}}if(i=0,_=H,W===0){if(i+=B-N,N<x){x-=N;do k[V++]=H[i++];while(--N);i=V-d,_=k}}else if(W<N){if(i+=B+W-N,N-=W,N<x){x-=N;do k[V++]=H[i++];while(--N);if(i=0,W<x){N=W,x-=N;do k[V++]=H[i++];while(--N);i=V-d,_=k}}}else if(i+=W-N,N<x){x-=N;do k[V++]=H[i++];while(--N);i=V-d,_=k}while(x>2)k[V++]=_[i++],k[V++]=_[i++],k[V++]=_[i++],x-=3;if(x){if(k[V++]=_[i++],x>1)k[V++]=_[i++]}}else{i=V-d;do k[V++]=k[i++],k[V++]=k[i++],k[V++]=k[i++],x-=3;while(x>2);if(x){if(k[V++]=k[i++],x>1)k[V++]=k[i++]}}}else if((N&64)===0){L=F[(L&65535)+(S&(1<<N)-1)];continue $}else{J.msg="invalid distance code",X.mode=q8;break Q}break}}else if((N&64)===0){L=w[(L&65535)+(S&(1<<N)-1)];continue J}else if(N&32){X.mode=tV;break Q}else{J.msg="invalid literal/length code",X.mode=q8;break Q}break}}while(K<Y&&V<U);x=A>>3,K-=x,A-=x<<3,S&=(1<<A)-1,J.next_in=K,J.next_out=V,J.avail_in=K<Y?5+(Y-K):5-(K-Y),J.avail_out=V<U?257+(U-V):257-(V-U),X.hold=S,X.bits=A;return}});var vJ=B0((qG,SJ)=>{var AJ=N2(),S1=15,RJ=852,TJ=592,kJ=0,d5=1,EJ=2,eV=[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],Qq=[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],Jq=[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],$q=[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];SJ.exports=function(J,$,X,K,Y,V,q,U){var G=U.bits,B=0,j=0,W=0,H=0,S=0,A=0,w=0,F=0,z=0,P=0,L,N,x,d,i,_=null,v=0,k,O=new AJ.Buf16(S1+1),E=new AJ.Buf16(S1+1),g=null,T=0,o,e,X0;for(B=0;B<=S1;B++)O[B]=0;for(j=0;j<K;j++)O[$[X+j]]++;S=G;for(H=S1;H>=1;H--)if(O[H]!==0)break;if(S>H)S=H;if(H===0)return Y[V++]=20971520,Y[V++]=20971520,U.bits=1,0;for(W=1;W<H;W++)if(O[W]!==0)break;if(S<W)S=W;F=1;for(B=1;B<=S1;B++)if(F<<=1,F-=O[B],F<0)return-1;if(F>0&&(J===kJ||H!==1))return-1;E[1]=0;for(B=1;B<S1;B++)E[B+1]=E[B]+O[B];for(j=0;j<K;j++)if($[X+j]!==0)q[E[$[X+j]]++]=j;if(J===kJ)_=g=q,k=19;else if(J===d5)_=eV,v-=257,g=Qq,T-=257,k=256;else _=Jq,g=$q,k=-1;if(P=0,j=0,B=W,i=V,A=S,w=0,x=-1,z=1<<S,d=z-1,J===d5&&z>RJ||J===EJ&&z>TJ)return 1;for(;;){if(o=B-w,q[j]<k)e=0,X0=q[j];else if(q[j]>k)e=g[T+q[j]],X0=_[v+q[j]];else e=96,X0=0;L=1<<B-w,N=1<<A,W=N;do N-=L,Y[i+(P>>w)+N]=o<<24|e<<16|X0|0;while(N!==0);L=1<<B-1;while(P&L)L>>=1;if(L!==0)P&=L-1,P+=L;else P=0;if(j++,--O[B]===0){if(B===H)break;B=$[X+q[j]]}if(B>S&&(P&d)!==x){if(w===0)w=S;i+=W,A=B-w,F=1<<A;while(A+w<H){if(F-=O[A+w],F<=0)break;A++,F<<=1}if(z+=1<<A,J===d5&&z>RJ||J===EJ&&z>TJ)return 1;x=P&d,Y[x]=S<<24|A<<16|i-V|0}}if(P!==0)Y[i+P]=B-w<<24|4194304|0;return U.bits=S,0}});var W$=B0((Q2)=>{var m0=N2(),a5=v5(),H2=x5(),Xq=DJ(),L6=vJ(),Kq=0,K$=1,Y$=2,xJ=4,Yq=5,B8=6,K1=0,Vq=1,qq=2,a0=-2,V$=-3,s5=-4,Bq=-5,gJ=8,q$=1,yJ=2,hJ=3,fJ=4,_J=5,bJ=6,uJ=7,pJ=8,cJ=9,mJ=10,z8=11,C2=12,l5=13,dJ=14,i5=15,lJ=16,iJ=17,nJ=18,rJ=19,G8=20,U8=21,oJ=22,aJ=23,sJ=24,tJ=25,eJ=26,n5=27,Q$=28,J$=29,I0=30,t5=31,Gq=32,Uq=852,zq=592,Zq=15,Wq=Zq;function $$(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function Hq(){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 m0.Buf16(320),this.work=new m0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function B$(Q){var J;if(!Q||!Q.state)return a0;if(J=Q.state,Q.total_in=Q.total_out=J.total=0,Q.msg="",J.wrap)Q.adler=J.wrap&1;return J.mode=q$,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new m0.Buf32(Uq),J.distcode=J.distdyn=new m0.Buf32(zq),J.sane=1,J.back=-1,K1}function G$(Q){var J;if(!Q||!Q.state)return a0;return J=Q.state,J.wsize=0,J.whave=0,J.wnext=0,B$(Q)}function U$(Q,J){var $,X;if(!Q||!Q.state)return a0;if(X=Q.state,J<0)$=0,J=-J;else if($=(J>>4)+1,J<48)J&=15;if(J&&(J<8||J>15))return a0;if(X.window!==null&&X.wbits!==J)X.window=null;return X.wrap=$,X.wbits=J,G$(Q)}function z$(Q,J){var $,X;if(!Q)return a0;if(X=new Hq,Q.state=X,X.window=null,$=U$(Q,J),$!==K1)Q.state=null;return $}function jq(Q){return z$(Q,Wq)}var X$=!0,r5,o5;function Pq(Q){if(X$){var J;r5=new m0.Buf32(512),o5=new m0.Buf32(32),J=0;while(J<144)Q.lens[J++]=8;while(J<256)Q.lens[J++]=9;while(J<280)Q.lens[J++]=7;while(J<288)Q.lens[J++]=8;L6(K$,Q.lens,0,288,r5,0,Q.work,{bits:9}),J=0;while(J<32)Q.lens[J++]=5;L6(Y$,Q.lens,0,32,o5,0,Q.work,{bits:5}),X$=!1}Q.lencode=r5,Q.lenbits=9,Q.distcode=o5,Q.distbits=5}function Z$(Q,J,$,X){var K,Y=Q.state;if(Y.window===null)Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new m0.Buf8(Y.wsize);if(X>=Y.wsize)m0.arraySet(Y.window,J,$-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize;else{if(K=Y.wsize-Y.wnext,K>X)K=X;if(m0.arraySet(Y.window,J,$-X,K,Y.wnext),X-=K,X)m0.arraySet(Y.window,J,$-X,X,0),Y.wnext=X,Y.whave=Y.wsize;else{if(Y.wnext+=K,Y.wnext===Y.wsize)Y.wnext=0;if(Y.whave<Y.wsize)Y.whave+=K}}return 0}function Mq(Q,J){var $,X,K,Y,V,q,U,G,B,j,W,H,S,A,w=0,F,z,P,L,N,x,d,i,_=new m0.Buf8(4),v,k,O=[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 a0;if($=Q.state,$.mode===C2)$.mode=l5;V=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,q=Q.avail_in,G=$.hold,B=$.bits,j=q,W=U,i=K1;Q:for(;;)switch($.mode){case q$:if($.wrap===0){$.mode=l5;break}while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.wrap&2&&G===35615){$.check=0,_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0),G=0,B=0,$.mode=yJ;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((G&255)<<8)+(G>>8))%31){Q.msg="incorrect header check",$.mode=I0;break}if((G&15)!==gJ){Q.msg="unknown compression method",$.mode=I0;break}if(G>>>=4,B-=4,d=(G&15)+8,$.wbits===0)$.wbits=d;else if(d>$.wbits){Q.msg="invalid window size",$.mode=I0;break}$.dmax=1<<d,Q.adler=$.check=1,$.mode=G&512?mJ:C2,G=0,B=0;break;case yJ:while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.flags=G,($.flags&255)!==gJ){Q.msg="unknown compression method",$.mode=I0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=I0;break}if($.head)$.head.text=G>>8&1;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0);G=0,B=0,$.mode=hJ;case hJ:while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.head)$.head.time=G;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,_[2]=G>>>16&255,_[3]=G>>>24&255,$.check=H2($.check,_,4,0);G=0,B=0,$.mode=fJ;case fJ:while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.head)$.head.xflags=G&255,$.head.os=G>>8;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0);G=0,B=0,$.mode=_J;case _J:if($.flags&1024){while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.length=G,$.head)$.head.extra_len=G;if($.flags&512)_[0]=G&255,_[1]=G>>>8&255,$.check=H2($.check,_,2,0);G=0,B=0}else if($.head)$.head.extra=null;$.mode=bJ;case bJ:if($.flags&1024){if(H=$.length,H>q)H=q;if(H){if($.head){if(d=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);m0.arraySet($.head.extra,X,Y,H,d)}if($.flags&512)$.check=H2($.check,X,H,Y);q-=H,Y+=H,$.length-=H}if($.length)break Q}$.length=0,$.mode=uJ;case uJ:if($.flags&2048){if(q===0)break Q;H=0;do if(d=X[Y+H++],$.head&&d&&$.length<65536)$.head.name+=String.fromCharCode(d);while(d&&H<q);if($.flags&512)$.check=H2($.check,X,H,Y);if(q-=H,Y+=H,d)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=pJ;case pJ:if($.flags&4096){if(q===0)break Q;H=0;do if(d=X[Y+H++],$.head&&d&&$.length<65536)$.head.comment+=String.fromCharCode(d);while(d&&H<q);if($.flags&512)$.check=H2($.check,X,H,Y);if(q-=H,Y+=H,d)break Q}else if($.head)$.head.comment=null;$.mode=cJ;case cJ:if($.flags&512){while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G!==($.check&65535)){Q.msg="header crc mismatch",$.mode=I0;break}G=0,B=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=C2;break;case mJ:while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}Q.adler=$.check=$$(G),G=0,B=0,$.mode=z8;case z8:if($.havedict===0)return Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,$.hold=G,$.bits=B,qq;Q.adler=$.check=1,$.mode=C2;case C2:if(J===Yq||J===B8)break Q;case l5:if($.last){G>>>=B&7,B-=B&7,$.mode=n5;break}while(B<3){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}switch($.last=G&1,G>>>=1,B-=1,G&3){case 0:$.mode=dJ;break;case 1:if(Pq($),$.mode=G8,J===B8){G>>>=2,B-=2;break Q}break;case 2:$.mode=iJ;break;case 3:Q.msg="invalid block type",$.mode=I0}G>>>=2,B-=2;break;case dJ:G>>>=B&7,B-=B&7;while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if((G&65535)!==(G>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=I0;break}if($.length=G&65535,G=0,B=0,$.mode=i5,J===B8)break Q;case i5:$.mode=lJ;case lJ:if(H=$.length,H){if(H>q)H=q;if(H>U)H=U;if(H===0)break Q;m0.arraySet(K,X,Y,H,V),q-=H,Y+=H,U-=H,V+=H,$.length-=H;break}$.mode=C2;break;case iJ:while(B<14){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if($.nlen=(G&31)+257,G>>>=5,B-=5,$.ndist=(G&31)+1,G>>>=5,B-=5,$.ncode=(G&15)+4,G>>>=4,B-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=I0;break}$.have=0,$.mode=nJ;case nJ:while($.have<$.ncode){while(B<3){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}$.lens[O[$.have++]]=G&7,G>>>=3,B-=3}while($.have<19)$.lens[O[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,v={bits:$.lenbits},i=L6(Kq,$.lens,0,19,$.lencode,0,$.work,v),$.lenbits=v.bits,i){Q.msg="invalid code lengths set",$.mode=I0;break}$.have=0,$.mode=rJ;case rJ:while($.have<$.nlen+$.ndist){for(;;){if(w=$.lencode[G&(1<<$.lenbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(P<16)G>>>=F,B-=F,$.lens[$.have++]=P;else{if(P===16){k=F+2;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G>>>=F,B-=F,$.have===0){Q.msg="invalid bit length repeat",$.mode=I0;break}d=$.lens[$.have-1],H=3+(G&3),G>>>=2,B-=2}else if(P===17){k=F+3;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=F,B-=F,d=0,H=3+(G&7),G>>>=3,B-=3}else{k=F+7;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=F,B-=F,d=0,H=11+(G&127),G>>>=7,B-=7}if($.have+H>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=I0;break}while(H--)$.lens[$.have++]=d}}if($.mode===I0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=I0;break}if($.lenbits=9,v={bits:$.lenbits},i=L6(K$,$.lens,0,$.nlen,$.lencode,0,$.work,v),$.lenbits=v.bits,i){Q.msg="invalid literal/lengths set",$.mode=I0;break}if($.distbits=6,$.distcode=$.distdyn,v={bits:$.distbits},i=L6(Y$,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,v),$.distbits=v.bits,i){Q.msg="invalid distances set",$.mode=I0;break}if($.mode=G8,J===B8)break Q;case G8:$.mode=U8;case U8:if(q>=6&&U>=258){if(Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,$.hold=G,$.bits=B,Xq(Q,W),V=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,q=Q.avail_in,G=$.hold,B=$.bits,$.mode===C2)$.back=-1;break}$.back=0;for(;;){if(w=$.lencode[G&(1<<$.lenbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(z&&(z&240)===0){L=F,N=z,x=P;for(;;){if(w=$.lencode[x+((G&(1<<L+N)-1)>>L)],F=w>>>24,z=w>>>16&255,P=w&65535,L+F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=L,B-=L,$.back+=L}if(G>>>=F,B-=F,$.back+=F,$.length=P,z===0){$.mode=eJ;break}if(z&32){$.back=-1,$.mode=C2;break}if(z&64){Q.msg="invalid literal/length code",$.mode=I0;break}$.extra=z&15,$.mode=oJ;case oJ:if($.extra){k=$.extra;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}$.length+=G&(1<<$.extra)-1,G>>>=$.extra,B-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=aJ;case aJ:for(;;){if(w=$.distcode[G&(1<<$.distbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if((z&240)===0){L=F,N=z,x=P;for(;;){if(w=$.distcode[x+((G&(1<<L+N)-1)>>L)],F=w>>>24,z=w>>>16&255,P=w&65535,L+F<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=L,B-=L,$.back+=L}if(G>>>=F,B-=F,$.back+=F,z&64){Q.msg="invalid distance code",$.mode=I0;break}$.offset=P,$.extra=z&15,$.mode=sJ;case sJ:if($.extra){k=$.extra;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}$.offset+=G&(1<<$.extra)-1,G>>>=$.extra,B-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=I0;break}$.mode=tJ;case tJ:if(U===0)break Q;if(H=W-U,$.offset>H){if(H=$.offset-H,H>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=I0;break}}if(H>$.wnext)H-=$.wnext,S=$.wsize-H;else S=$.wnext-H;if(H>$.length)H=$.length;A=$.window}else A=K,S=V-$.offset,H=$.length;if(H>U)H=U;U-=H,$.length-=H;do K[V++]=A[S++];while(--H);if($.length===0)$.mode=U8;break;case eJ:if(U===0)break Q;K[V++]=$.length,U--,$.mode=U8;break;case n5:if($.wrap){while(B<32){if(q===0)break Q;q--,G|=X[Y++]<<B,B+=8}if(W-=U,Q.total_out+=W,$.total+=W,W)Q.adler=$.check=$.flags?H2($.check,K,W,V-W):a5($.check,K,W,V-W);if(W=U,($.flags?G:$$(G))!==$.check){Q.msg="incorrect data check",$.mode=I0;break}G=0,B=0}$.mode=Q$;case Q$:if($.wrap&&$.flags){while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=I0;break}G=0,B=0}$.mode=J$;case J$:i=Vq;break Q;case I0:i=V$;break Q;case t5:return s5;case Gq:default:return a0}if(Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,$.hold=G,$.bits=B,$.wsize||W!==Q.avail_out&&$.mode<I0&&($.mode<n5||J!==xJ)){if(Z$(Q,Q.output,Q.next_out,W-Q.avail_out))return $.mode=t5,s5}if(j-=Q.avail_in,W-=Q.avail_out,Q.total_in+=j,Q.total_out+=W,$.total+=W,$.wrap&&W)Q.adler=$.check=$.flags?H2($.check,K,W,Q.next_out-W):a5($.check,K,W,Q.next_out-W);if(Q.data_type=$.bits+($.last?64:0)+($.mode===C2?128:0)+($.mode===G8||$.mode===i5?256:0),(j===0&&W===0||J===xJ)&&i===K1)i=Bq;return i}function Lq(Q){if(!Q||!Q.state)return a0;var J=Q.state;if(J.window)J.window=null;return Q.state=null,K1}function Fq(Q,J){var $;if(!Q||!Q.state)return a0;if($=Q.state,($.wrap&2)===0)return a0;return $.head=J,J.done=!1,K1}function wq(Q,J){var $=J.length,X,K,Y;if(!Q||!Q.state)return a0;if(X=Q.state,X.wrap!==0&&X.mode!==z8)return a0;if(X.mode===z8){if(K=1,K=a5(K,J,$,0),K!==X.check)return V$}if(Y=Z$(Q,J,$,$),Y)return X.mode=t5,s5;return X.havedict=1,K1}Q2.inflateReset=G$;Q2.inflateReset2=U$;Q2.inflateResetKeep=B$;Q2.inflateInit=jq;Q2.inflateInit2=z$;Q2.inflate=Mq;Q2.inflateEnd=Lq;Q2.inflateGetHeader=Fq;Q2.inflateSetDictionary=wq;Q2.inflateInfo="pako inflate (from Nodeca project)"});var e5=B0((GG,H$)=>{H$.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 P$=B0((UG,j$)=>{function Iq(){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}j$.exports=Iq});var L$=B0((w6)=>{var v1=W$(),F6=N2(),Z8=_5(),D0=e5(),Q4=e6(),Nq=b5(),Oq=P$(),M$=Object.prototype.toString;function Y1(Q){if(!(this instanceof Y1))return new Y1(Q);this.options=F6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>=0&&J.windowBits<16){if(J.windowBits=-J.windowBits,J.windowBits===0)J.windowBits=-15}if(J.windowBits>=0&&J.windowBits<16&&!(Q&&Q.windowBits))J.windowBits+=32;if(J.windowBits>15&&J.windowBits<48){if((J.windowBits&15)===0)J.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nq,this.strm.avail_out=0;var $=v1.inflateInit2(this.strm,J.windowBits);if($!==D0.Z_OK)throw Error(Q4[$]);if(this.header=new Oq,v1.inflateGetHeader(this.strm,this.header),J.dictionary){if(typeof J.dictionary==="string")J.dictionary=Z8.string2buf(J.dictionary);else if(M$.call(J.dictionary)==="[object ArrayBuffer]")J.dictionary=new Uint8Array(J.dictionary);if(J.raw){if($=v1.inflateSetDictionary(this.strm,J.dictionary),$!==D0.Z_OK)throw Error(Q4[$])}}}Y1.prototype.push=function(Q,J){var $=this.strm,X=this.options.chunkSize,K=this.options.dictionary,Y,V,q,U,G,B=!1;if(this.ended)return!1;if(V=J===~~J?J:J===!0?D0.Z_FINISH:D0.Z_NO_FLUSH,typeof Q==="string")$.input=Z8.binstring2buf(Q);else if(M$.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new F6.Buf8(X),$.next_out=0,$.avail_out=X;if(Y=v1.inflate($,D0.Z_NO_FLUSH),Y===D0.Z_NEED_DICT&&K)Y=v1.inflateSetDictionary(this.strm,K);if(Y===D0.Z_BUF_ERROR&&B===!0)Y=D0.Z_OK,B=!1;if(Y!==D0.Z_STREAM_END&&Y!==D0.Z_OK)return this.onEnd(Y),this.ended=!0,!1;if($.next_out){if($.avail_out===0||Y===D0.Z_STREAM_END||$.avail_in===0&&(V===D0.Z_FINISH||V===D0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(q=Z8.utf8border($.output,$.next_out),U=$.next_out-q,G=Z8.buf2string($.output,q),$.next_out=U,$.avail_out=X-U,U)F6.arraySet($.output,$.output,q,U,0);this.onData(G)}else this.onData(F6.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)B=!0}while(($.avail_in>0||$.avail_out===0)&&Y!==D0.Z_STREAM_END);if(Y===D0.Z_STREAM_END)V=D0.Z_FINISH;if(V===D0.Z_FINISH)return Y=v1.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===D0.Z_OK;if(V===D0.Z_SYNC_FLUSH)return this.onEnd(D0.Z_OK),$.avail_out=0,!0;return!0};Y1.prototype.onData=function(Q){this.chunks.push(Q)};Y1.prototype.onEnd=function(Q){if(Q===D0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=F6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function J4(Q,J){var $=new Y1(J);if($.push(Q,!0),$.err)throw $.msg||Q4[$.err];return $.result}function Cq(Q,J){return J=J||{},J.raw=!0,J4(Q,J)}w6.Inflate=Y1;w6.inflate=J4;w6.inflateRaw=Cq;w6.ungzip=J4});var I$=B0((ZG,w$)=>{var Dq=N2().assign,Aq=OJ(),Rq=L$(),Tq=e5(),F$={};Dq(F$,Aq,Rq,Tq);w$.exports=F$});var O$=B0((H8)=>{var kq=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Eq=I$(),N$=O0(),W8=c0(),Sq=kq?"uint8array":"array";H8.magic="\b\x00";function V1(Q,J){W8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=J,this.meta={}}N$.inherits(V1,W8);V1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(N$.transformTo(Sq,Q.data),!1)};V1.prototype.flush=function(){if(W8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};V1.prototype.cleanUp=function(){W8.prototype.cleanUp.call(this),this._pako=null};V1.prototype._createPako=function(){this._pako=new Eq[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(J){Q.push({data:J,meta:Q.meta})}};H8.compressWorker=function(Q){return new V1("Deflate",Q)};H8.uncompressWorker=function(){return new V1("Inflate",{})}});var X4=B0(($4)=>{var C$=c0();$4.STORE={magic:"\x00\x00",compressWorker:function(){return new C$("STORE compression")},uncompressWorker:function(){return new C$("STORE decompression")}};$4.DEFLATE=O$()});var K4=B0((q1)=>{q1.LOCAL_FILE_HEADER="PK\x03\x04";q1.CENTRAL_FILE_HEADER="PK\x01\x02";q1.CENTRAL_DIRECTORY_END="PK\x05\x06";q1.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";q1.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";q1.DATA_DESCRIPTOR="PK\x07\b"});var T$=B0((PG,R$)=>{var x1=O0(),g1=c0(),Y4=I1(),D$=o6(),j8=K4(),F0=function(Q,J){var $="",X;for(X=0;X<J;X++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},vq=function(Q,J){var $=Q;if(!Q)$=J?16893:33204;return($&65535)<<16},xq=function(Q){return(Q||0)&63},A$=function(Q,J,$,X,K,Y){var{file:V,compression:q}=Q,U=Y!==Y4.utf8encode,G=x1.transformTo("string",Y(V.name)),B=x1.transformTo("string",Y4.utf8encode(V.name)),j=V.comment,W=x1.transformTo("string",Y(j)),H=x1.transformTo("string",Y4.utf8encode(j)),S=B.length!==V.name.length,A=H.length!==j.length,w,F,z="",P="",L="",N=V.dir,x=V.date,d={crc32:0,compressedSize:0,uncompressedSize:0};if(!J||$)d.crc32=Q.crc32,d.compressedSize=Q.compressedSize,d.uncompressedSize=Q.uncompressedSize;var i=0;if(J)i|=8;if(!U&&(S||A))i|=2048;var _=0,v=0;if(N)_|=16;if(K==="UNIX")v=798,_|=vq(V.unixPermissions,N);else v=20,_|=xq(V.dosPermissions,N);if(w=x.getUTCHours(),w=w<<6,w=w|x.getUTCMinutes(),w=w<<5,w=w|x.getUTCSeconds()/2,F=x.getUTCFullYear()-1980,F=F<<4,F=F|x.getUTCMonth()+1,F=F<<5,F=F|x.getUTCDate(),S)P=F0(1,1)+F0(D$(G),4)+B,z+="up"+F0(P.length,2)+P;if(A)L=F0(1,1)+F0(D$(W),4)+H,z+="uc"+F0(L.length,2)+L;var k="";k+=`
|
|
3
|
-
\x00`,k+=F0(i,2),k+=q.magic,k+=F0(w,2),k+=F0(F,2),k+=F0(d.crc32,4),k+=F0(d.compressedSize,4),k+=F0(d.uncompressedSize,4),k+=F0(G.length,2),k+=F0(z.length,2);var O=j8.LOCAL_FILE_HEADER+k+G+z,E=j8.CENTRAL_FILE_HEADER+F0(v,2)+k+F0(W.length,2)+"\x00\x00\x00\x00"+F0(_,4)+F0(X,4)+G+z+W;return{fileRecord:O,dirRecord:E}},gq=function(Q,J,$,X,K){var Y="",V=x1.transformTo("string",K(X));return Y=j8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+F0(Q,2)+F0(Q,2)+F0(J,4)+F0($,4)+F0(V.length,2)+V,Y},yq=function(Q){var J="";return J=j8.DATA_DESCRIPTOR+F0(Q.crc32,4)+F0(Q.compressedSize,4)+F0(Q.uncompressedSize,4),J};function J2(Q,J,$,X){g1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=J,this.zipPlatform=$,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}x1.inherits(J2,g1);J2.prototype.push=function(Q){var J=Q.meta.percent||0,$=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,g1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(J+100*($-X-1))/$:100}})};J2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var J=this.streamFiles&&!Q.file.dir;if(J){var $=A$(Q,J,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J2.prototype.closedSource=function(Q){this.accumulate=!1;var J=this.streamFiles&&!Q.file.dir,$=A$(Q,J,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),J)this.push({data:yq(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J2.prototype.flush=function(){var Q=this.bytesWritten;for(var J=0;J<this.dirRecords.length;J++)this.push({data:this.dirRecords[J],meta:{percent:100}});var $=this.bytesWritten-Q,X=gq(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};J2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};J2.prototype.registerPrevious=function(Q){this._sources.push(Q);var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){if(J.closedSource(J.previous.streamInfo),J._sources.length)J.prepareNextSource();else J.end()}),Q.on("error",function($){J.error($)}),this};J2.prototype.resume=function(){if(!g1.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};J2.prototype.error=function(Q){var J=this._sources;if(!g1.prototype.error.call(this,Q))return!1;for(var $=0;$<J.length;$++)try{J[$].error(Q)}catch(X){}return!0};J2.prototype.lock=function(){g1.prototype.lock.call(this);var Q=this._sources;for(var J=0;J<Q.length;J++)Q[J].lock()};R$.exports=J2});var E$=B0((k$)=>{var hq=X4(),fq=T$(),_q=function(Q,J){var $=Q||J,X=hq[$];if(!X)throw Error($+" is not a valid compression method !");return X};k$.generateWorker=function(Q,J,$){var X=new fq(J.streamFiles,$,J.platform,J.encodeFileName),K=0;try{Q.forEach(function(Y,V){K++;var q=_q(V.options.compression,J.compression),U=V.options.compressionOptions||J.compressionOptions||{},G=V.dir,B=V.date;V._compressWorker(q,U).withStreamInfo("file",{name:Y,dir:G,date:B,comment:V.comment||"",unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions}).pipe(X)}),X.entriesCount=K}catch(Y){X.error(Y)}return X}});var v$=B0((LG,S$)=>{var bq=O0(),P8=c0();function I6(Q,J){P8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(J)}bq.inherits(I6,P8);I6.prototype._bindStream=function(Q){var J=this;this._stream=Q,Q.pause(),Q.on("data",function($){J.push({data:$,meta:{percent:0}})}).on("error",function($){if(J.isPaused)this.generatedError=$;else J.error($)}).on("end",function(){if(J.isPaused)J._upstreamEnded=!0;else J.end()})};I6.prototype.pause=function(){if(!P8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};I6.prototype.resume=function(){if(!P8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};S$.exports=I6});var c$=B0((FG,p$)=>{var uq=I1(),N6=O0(),h$=c0(),pq=U5(),f$=z5(),x$=a6(),cq=gQ(),mq=E$(),g$=s1(),dq=v$(),_$=function(Q,J,$){var X=N6.getTypeOf(J),K,Y=N6.extend($||{},f$);if(Y.date=Y.date||new Date,Y.compression!==null)Y.compression=Y.compression.toUpperCase();if(typeof Y.unixPermissions==="string")Y.unixPermissions=parseInt(Y.unixPermissions,8);if(Y.unixPermissions&&Y.unixPermissions&16384)Y.dir=!0;if(Y.dosPermissions&&Y.dosPermissions&16)Y.dir=!0;if(Y.dir)Q=b$(Q);if(Y.createFolders&&(K=lq(Q)))u$.call(this,K,!0);var V=X==="string"&&Y.binary===!1&&Y.base64===!1;if(!$||typeof $.binary>"u")Y.binary=!V;var q=J instanceof x$&&J.uncompressedSize===0;if(q||Y.dir||!J||J.length===0)Y.base64=!1,Y.binary=!0,J="",Y.compression="STORE",X="string";var U=null;if(J instanceof x$||J instanceof h$)U=J;else if(g$.isNode&&g$.isStream(J))U=new dq(Q,J);else U=N6.prepareContent(Q,J,Y.binary,Y.optimizedBinaryString,Y.base64);var G=new cq(Q,U,Y);this.files[Q]=G},lq=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var J=Q.lastIndexOf("/");return J>0?Q.substring(0,J):""},b$=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},u$=function(Q,J){if(J=typeof J<"u"?J:f$.createFolders,Q=b$(Q),!this.files[Q])_$.call(this,Q,null,{dir:!0,createFolders:J});return this.files[Q]};function y$(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var iq={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var J,$,X;for(J in this.files)if(X=this.files[J],$=J.slice(this.root.length,J.length),$&&J.slice(0,this.root.length)===this.root)Q($,X)},filter:function(Q){var J=[];return this.forEach(function($,X){if(Q($,X))J.push(X)}),J},file:function(Q,J,$){if(arguments.length===1)if(y$(Q)){var X=Q;return this.filter(function(Y,V){return!V.dir&&X.test(Y)})}else{var K=this.files[this.root+Q];if(K&&!K.dir)return K;else return null}else Q=this.root+Q,_$.call(this,Q,J,$);return this},folder:function(Q){if(!Q)return this;if(y$(Q))return this.filter(function(K,Y){return Y.dir&&Q.test(K)});var J=this.root+Q,$=u$.call(this,J),X=this.clone();return X.root=$.name,X},remove:function(Q){Q=this.root+Q;var J=this.files[Q];if(!J){if(Q.slice(-1)!=="/")Q+="/";J=this.files[Q]}if(J&&!J.dir)delete this.files[Q];else{var $=this.filter(function(K,Y){return Y.name.slice(0,Q.length)===Q});for(var X=0;X<$.length;X++)delete this.files[$[X].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var J,$={};try{if($=N6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:uq.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(N6.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var X=$.comment||this.comment||"";J=mq.generateWorker(this,$,X)}catch(K){J=new h$("error"),J.error(K)}return new pq(J,$.type||"string",$.mimeType)},generateAsync:function(Q,J){return this.generateInternalStream(Q).accumulate(J)},generateNodeStream:function(Q,J){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(J)}};p$.exports=iq});var V4=B0((wG,d$)=>{var nq=O0();function m$(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}m$.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw 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 J=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)J=(J<<8)+this.byteAt($);return this.index+=Q,J},readString:function(Q){return nq.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))}};d$.exports=m$});var q4=B0((IG,i$)=>{var l$=V4(),rq=O0();function y1(Q){l$.call(this,Q);for(var J=0;J<this.data.length;J++)Q[J]=Q[J]&255}rq.inherits(y1,l$);y1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};y1.prototype.lastIndexOfSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3);for(var Y=this.length-4;Y>=0;--Y)if(this.data[Y]===J&&this.data[Y+1]===$&&this.data[Y+2]===X&&this.data[Y+3]===K)return Y-this.zero;return-1};y1.prototype.readAndCheckSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3),Y=this.readData(4);return J===Y[0]&&$===Y[1]&&X===Y[2]&&K===Y[3]};y1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};i$.exports=y1});var o$=B0((NG,r$)=>{var n$=V4(),oq=O0();function h1(Q){n$.call(this,Q)}oq.inherits(h1,n$);h1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};h1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};h1.prototype.readAndCheckSignature=function(Q){var J=this.readData(4);return Q===J};h1.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};r$.exports=h1});var G4=B0((OG,s$)=>{var a$=q4(),aq=O0();function B4(Q){a$.call(this,Q)}aq.inherits(B4,a$);B4.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var J=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};s$.exports=B4});var QX=B0((CG,e$)=>{var t$=G4(),sq=O0();function U4(Q){t$.call(this,Q)}sq.inherits(U4,t$);U4.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};e$.exports=U4});var z4=B0((DG,$X)=>{var M8=O0(),JX=I2(),tq=q4(),eq=o$(),QB=QX(),JB=G4();$X.exports=function(Q){var J=M8.getTypeOf(Q);if(M8.checkSupport(J),J==="string"&&!JX.uint8array)return new eq(Q);if(J==="nodebuffer")return new QB(Q);if(JX.uint8array)return new JB(M8.transformTo("uint8array",Q));return new tq(M8.transformTo("array",Q))}});var VX=B0((AG,YX)=>{var Z4=z4(),u2=O0(),$B=a6(),XX=o6(),L8=I1(),F8=X4(),XB=I2(),KB=0,YB=3,VB=function(Q){for(var J in F8){if(!Object.prototype.hasOwnProperty.call(F8,J))continue;if(F8[J].magic===Q)return F8[J]}return null};function KX(Q,J){this.options=Q,this.loadOptions=J}KX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var J,$;if(Q.skip(22),this.fileNameLength=Q.readInt(2),$=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip($),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(J=VB(this.compressionMethod),J===null)throw Error("Corrupted zip : compression "+u2.pretty(this.compressionMethod)+" unknown (inner file : "+u2.transformTo("string",this.fileName)+")");this.decompressed=new $B(this.compressedSize,this.uncompressedSize,this.crc32,J,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 J=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 Error("Encrypted zip are not supported");Q.skip(J),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===KB)this.dosPermissions=this.externalFileAttributes&63;if(Q===YB)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=Z4(this.extraFields[1].value);if(this.uncompressedSize===u2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===u2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===u2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===u2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var J=Q.index+this.extraFieldsLength,$,X,K;if(!this.extraFields)this.extraFields={};while(Q.index+4<J)$=Q.readInt(2),X=Q.readInt(2),K=Q.readData(X),this.extraFields[$]={id:$,length:X,value:K};Q.setIndex(J)},handleUTF8:function(){var Q=XB.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=L8.utf8decode(this.fileName),this.fileCommentStr=L8.utf8decode(this.fileComment);else{var J=this.findExtraFieldUnicodePath();if(J!==null)this.fileNameStr=J;else{var $=u2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var K=u2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var J=Z4(Q.value);if(J.readInt(1)!==1)return null;if(XX(this.fileName)!==J.readInt(4))return null;return L8.utf8decode(J.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var J=Z4(Q.value);if(J.readInt(1)!==1)return null;if(XX(this.fileComment)!==J.readInt(4))return null;return L8.utf8decode(J.readData(Q.length-5))}return null}};YX.exports=KX});var GX=B0((RG,BX)=>{var qB=z4(),D2=O0(),$2=K4(),BB=VX(),GB=I2();function qX(Q){this.files=[],this.loadOptions=Q}qX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var J=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+D2.pretty(J)+", expected "+D2.pretty(Q)+")")}},isSignature:function(Q,J){var $=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),K=X===J;return this.reader.setIndex($),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 Q=this.reader.readData(this.zipCommentLength),J=GB.uint8array?"uint8array":"array",$=D2.transformTo(J,Q);this.zipComment=this.loadOptions.decodeFileName($)},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,J=0,$,X,K;while(J<Q)$=this.reader.readInt(2),X=this.reader.readInt(4),K=this.reader.readData(X),this.zip64ExtensibleData[$]={id:$,length:X,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 Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,J;for(Q=0;Q<this.files.length;Q++)J=this.files[Q],this.reader.setIndex(J.localHeaderOffset),this.checkSignature($2.LOCAL_FILE_HEADER),J.readLocalPart(this.reader),J.handleUTF8(),J.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature($2.CENTRAL_FILE_HEADER))Q=new BB({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 Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature($2.CENTRAL_DIRECTORY_END);if(Q<0){var J=!this.isSignature(0,$2.LOCAL_FILE_HEADER);if(J)throw 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 Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var $=Q;if(this.checkSignature($2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===D2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===D2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===D2.MAX_VALUE_16BITS||this.centralDirRecords===D2.MAX_VALUE_16BITS||this.centralDirSize===D2.MAX_VALUE_32BITS||this.centralDirOffset===D2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature($2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature($2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,$2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature($2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature($2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var K=$-X;if(K>0)if(this.isSignature($,$2.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function(Q){this.reader=qB(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};BX.exports=qX});var ZX=B0((TG,zX)=>{var W4=O0(),w8=L1(),UB=I1(),zB=GX(),ZB=H5(),UX=s1();function WB(Q){return new w8.Promise(function(J,$){var X=Q.decompressed.getContentWorker().pipe(new ZB);X.on("error",function(K){$(K)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else J()}).resume()})}zX.exports=function(Q,J){var $=this;if(J=W4.extend(J||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:UB.utf8decode}),UX.isNode&&UX.isStream(Q))return w8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return W4.prepareContent("the loaded zip file",Q,!0,J.optimizedBinaryString,J.base64).then(function(X){var K=new zB(J);return K.load(X),K}).then(function(K){var Y=[w8.Promise.resolve(K)],V=K.files;if(J.checkCRC32)for(var q=0;q<V.length;q++)Y.push(WB(V[q]));return w8.Promise.all(Y)}).then(function(K){var Y=K.shift(),V=Y.files;for(var q=0;q<V.length;q++){var U=V[q],G=U.fileNameStr,B=W4.resolve(U.fileNameStr);if($.file(B,U.decompressed,{binary:!0,optimizedBinaryString:!0,date:U.date,dir:U.dir,comment:U.fileCommentStr.length?U.fileCommentStr:null,unixPermissions:U.unixPermissions,dosPermissions:U.dosPermissions,createFolders:J.createFolders}),!U.dir)$.file(B).unsafeOriginalName=G}if(Y.zipComment.length)$.comment=Y.zipComment;return $})}});var HX=B0((kG,WX)=>{function s0(){if(!(this instanceof s0))return new s0;if(arguments.length)throw 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 s0;for(var J in this)if(typeof this[J]!=="function")Q[J]=this[J];return Q}}s0.prototype=c$();s0.prototype.loadAsync=ZX();s0.support=I2();s0.defaults=z5();s0.version="3.10.1";s0.loadAsync=function(Q,J){return new s0().loadAsync(Q,J)};s0.external=L1();WX.exports=s0});var NB={};R8(NB,{downloadImages:()=>O6,capture:()=>j4});function T4(Q,J){let $=Q.label;if(Q.includeScaleInLabel)$+=`_@${Q.scale}x`;let X=`.${Q.format}`;if($+=X,!J.includes($))return J.push($),$;let K=/-(\d+)$/,Y=$.match(K);if(Y){let V=$.replace(K,""),q=parseInt(Y[1],10);while(J.includes(`${V}-${q}${X}`))q++;let U=`${V}-${q}${X}`;return J.push(U),U}else{let V=$.replace(X,""),q=2;while(J.includes(`${V}-${q}${X}`))q++;let U=`${V}-${q}${X}`;return J.push(U),U}}function hX(Q,J){return Q[13]=1,Q[14]=J>>8,Q[15]=J&255,Q[16]=J>>8,Q[17]=J&255,Q}var y4=112,h4=72,f4=89,_4=115,T8;function fX(){let Q=new Int32Array(256);for(let J=0;J<256;J++){let $=J;for(let X=0;X<8;X++)$=$&1?3988292384^$>>>1:$>>>1;Q[J]=$}return Q}function _X(Q){let J=-1;if(!T8)T8=fX();for(let $=0;$<Q.length;$++)J=T8[(J^Q[$])&255]^J>>>8;return J^-1}function bX(Q){let J=Q.length-1;for(let $=J;$>=4;$--)if(Q[$-4]===9&&Q[$-3]===y4&&Q[$-2]===h4&&Q[$-1]===f4&&Q[$]===_4)return $-3;return 0}function uX(Q,J,$=!1){let X=new Uint8Array(13);J*=39.3701,X[0]=y4,X[1]=h4,X[2]=f4,X[3]=_4,X[4]=J>>>24,X[5]=J>>>16,X[6]=J>>>8,X[7]=J&255,X[8]=X[4],X[9]=X[5],X[10]=X[6],X[11]=X[7],X[12]=1;let K=_X(X),Y=new Uint8Array(4);if(Y[0]=K>>>24,Y[1]=K>>>16,Y[2]=K>>>8,Y[3]=K&255,$){let V=bX(Q);return Q.set(X,V),Q.set(Y,V+13),Q}else{let V=new Uint8Array(4);V[0]=0,V[1]=0,V[2]=0,V[3]=9;let q=new Uint8Array(54);return q.set(Q,0),q.set(V,33),q.set(X,37),q.set(Y,50),q}}var pX="AAlwSFlz",cX="AAAJcEhZ",mX="AAAACXBI";function dX(Q){let J=Q.indexOf(pX);if(J===-1)J=Q.indexOf(cX);if(J===-1)J=Q.indexOf(mX);return J}var b4="[modern-screenshot]",A2=typeof window<"u",lX=A2&&"Worker"in window,iX=A2&&"atob"in window,nX=A2&&"btoa"in window,S8=A2?window.navigator?.userAgent:"",u4=S8.includes("Chrome"),D6=S8.includes("AppleWebKit")&&!u4,v8=S8.includes("Firefox"),rX=(Q)=>Q&&("__CONTEXT__"in Q),oX=(Q)=>Q.constructor.name==="CSSFontFaceRule",aX=(Q)=>Q.constructor.name==="CSSImportRule",sX=(Q)=>Q.constructor.name==="CSSLayerBlockRule",K2=(Q)=>Q.nodeType===1,m1=(Q)=>typeof Q.className==="object",p4=(Q)=>Q.tagName==="image",tX=(Q)=>Q.tagName==="use",u1=(Q)=>K2(Q)&&typeof Q.style<"u"&&!m1(Q),eX=(Q)=>Q.nodeType===8,QK=(Q)=>Q.nodeType===3,W1=(Q)=>Q.tagName==="IMG",A6=(Q)=>Q.tagName==="VIDEO",JK=(Q)=>Q.tagName==="CANVAS",$K=(Q)=>Q.tagName==="TEXTAREA",XK=(Q)=>Q.tagName==="INPUT",KK=(Q)=>Q.tagName==="STYLE",YK=(Q)=>Q.tagName==="SCRIPT",VK=(Q)=>Q.tagName==="SELECT",qK=(Q)=>Q.tagName==="SLOT",BK=(Q)=>Q.tagName==="IFRAME",GK=(...Q)=>console.warn(b4,...Q);function UK(Q){let J=Q?.createElement?.("canvas");if(J)J.height=J.width=1;return Boolean(J)&&"toDataURL"in J&&Boolean(J.toDataURL("image/webp").includes("image/webp"))}var k8=(Q)=>Q.startsWith("data:");function c4(Q,J){if(Q.match(/^[a-z]+:\/\//i))return Q;if(A2&&Q.match(/^\/\//))return window.location.protocol+Q;if(Q.match(/^[a-z]+:/i))return Q;if(!A2)return Q;let $=R6().implementation.createHTMLDocument(),X=$.createElement("base"),K=$.createElement("a");if($.head.appendChild(X),$.body.appendChild(K),J)X.href=J;return K.href=Q,K.href}function R6(Q){return(Q&&K2(Q)?Q?.ownerDocument:Q)??window.document}var T6="http://www.w3.org/2000/svg";function m4(Q,J,$){let X=R6($).createElementNS(T6,"svg");return X.setAttributeNS(null,"width",Q.toString()),X.setAttributeNS(null,"height",J.toString()),X.setAttributeNS(null,"viewBox",`0 0 ${Q} ${J}`),X}function d4(Q,J){let $=new XMLSerializer().serializeToString(Q);if(J)$=$.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"");return`data:image/svg+xml;charset=utf-8,${encodeURIComponent($)}`}function zK(Q,J){return new Promise(($,X)=>{let K=new FileReader;if(K.onload=()=>$(K.result),K.onerror=()=>X(K.error),K.onabort=()=>X(Error(`Failed read blob to ${J}`)),J==="dataUrl")K.readAsDataURL(Q);else if(J==="arrayBuffer")K.readAsArrayBuffer(Q)})}var ZK=(Q)=>zK(Q,"dataUrl");function Z1(Q,J){let $=R6(J).createElement("img");return $.decoding="sync",$.loading="eager",$.src=Q,$}function p1(Q,J){return new Promise(($)=>{let{timeout:X,ownerDocument:K,onError:Y,onWarn:V}=J??{},q=typeof Q==="string"?Z1(Q,R6(K)):Q,U=null,G=null;function B(){$(q),U&&clearTimeout(U),G?.()}if(X)U=setTimeout(B,X);if(A6(q)){let j=q.currentSrc||q.src;if(!j){if(q.poster)return p1(q.poster,J).then($);return B()}if(q.readyState>=2)return B();let W=B,H=(S)=>{V?.("Failed video load",j,S),Y?.(S),B()};G=()=>{q.removeEventListener("loadeddata",W),q.removeEventListener("error",H)},q.addEventListener("loadeddata",W,{once:!0}),q.addEventListener("error",H,{once:!0})}else{let j=p4(q)?q.href.baseVal:q.currentSrc||q.src;if(!j)return B();let W=async()=>{if(W1(q)&&"decode"in q)try{await q.decode()}catch(S){V?.("Failed to decode image, trying to render anyway",q.dataset.originalSrc||j,S)}B()},H=(S)=>{V?.("Failed image load",q.dataset.originalSrc||j,S),B()};if(W1(q)&&q.complete)return W();G=()=>{q.removeEventListener("load",W),q.removeEventListener("error",H)},q.addEventListener("load",W,{once:!0}),q.addEventListener("error",H,{once:!0})}})}async function WK(Q,J){if(u1(Q))if(W1(Q)||A6(Q))await p1(Q,J);else await Promise.all(["img","video"].flatMap(($)=>{return Array.from(Q.querySelectorAll($)).map((X)=>p1(X,J))}))}var l4=function(){let J=0,$=()=>`0000${(Math.random()*1679616<<0).toString(36)}`.slice(-4);return()=>{return J+=1,`u${$()}${J}`}}();function i4(Q){return Q?.split(",").map((J)=>J.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var k4=0;function HK(Q){let J=`${b4}[#${k4}]`;return k4++,{time:($)=>Q&&console.time(`${J} ${$}`),timeEnd:($)=>Q&&console.timeEnd(`${J} ${$}`),warn:(...$)=>Q&&GK(...$)}}function jK(Q){return{cache:Q?"no-cache":"force-cache"}}async function d2(Q,J){return rX(Q)?Q:PK(Q,{...J,autoDestruct:!0})}async function PK(Q,J){let{scale:$=1,workerUrl:X,workerNumber:K=1}=J||{},Y=Boolean(J?.debug),V=J?.features??!0,q=Q.ownerDocument??(A2?window.document:void 0),U=Q.ownerDocument?.defaultView??(A2?window:void 0),G=new Map,B={width:0,height:0,quality:1,type:"image/png",scale:$,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:30000,progress:null,debug:Y,fetch:{requestInit:jK(J?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...J?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:K,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...J,__CONTEXT__:!0,log:HK(Y),node:Q,ownerDocument:q,ownerWindow:U,dpi:$===1?null:96*$,svgStyleElement:n4(q),svgDefsElement:q?.createElementNS(T6,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:lX&&X&&K?K:0})].map(()=>{try{let H=new Worker(X);return H.onmessage=async(S)=>{let{url:A,result:w}=S.data;if(w)G.get(A)?.resolve?.(w);else G.get(A)?.reject?.(Error(`Error receiving message from worker: ${A}`))},H.onmessageerror=(S)=>{let{url:A}=S.data;G.get(A)?.reject?.(Error(`Error receiving message from worker: ${A}`))},H}catch(H){return B.log.warn("Failed to new Worker",H),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[UK(q)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:G,drawImageCount:0,tasks:[],features:V,isEnable:(H)=>{if(H==="restoreScrollPosition")return typeof V==="boolean"?!1:V[H]??!1;if(typeof V==="boolean")return V;return V[H]??!0},shadowRoots:[]};B.log.time("wait until load"),await WK(Q,{timeout:B.timeout,onWarn:B.log.warn}),B.log.timeEnd("wait until load");let{width:j,height:W}=MK(Q,B);return B.width=j,B.height=W,B}function n4(Q){if(!Q)return;let J=Q.createElement("style"),$=J.ownerDocument.createTextNode(`
|
|
1
|
+
(()=>{var _X=Object.create;var{getPrototypeOf:bX,defineProperty:b1,getOwnPropertyNames:k4,getOwnPropertyDescriptor:uX}=Object,E4=Object.prototype.hasOwnProperty;function S4(Q){return this[Q]}var pX,cX,mX=(Q,$,J)=>{var X=Q!=null&&typeof Q==="object";if(X){var K=$?pX??=new WeakMap:cX??=new WeakMap,Y=K.get(Q);if(Y)return Y}J=Q!=null?_X(bX(Q)):{};let V=$||!Q||!Q.__esModule?b1(J,"default",{value:Q,enumerable:!0}):J;for(let q of k4(Q))if(!E4.call(V,q))b1(V,q,{get:S4.bind(Q,q),enumerable:!0});if(X)K.set(Q,V);return V},u0=(Q)=>{var $=(T4??=new WeakMap).get(Q),J;if($)return $;if($=b1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function"){for(var X of k4(Q))if(!E4.call($,X))b1($,X,{get:S4.bind(Q,X),enumerable:!(J=uX(Q,X))||J.enumerable})}return T4.set(Q,$),$},T4,B0=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports);var dX=(Q)=>Q;function lX(Q,$){this[Q]=dX.bind(null,$)}var k8=(Q,$)=>{for(var J in $)b1(Q,J,{get:$[J],enumerable:!0,configurable:!0,set:lX.bind($,J)})};var v4=(Q,$)=>()=>(Q&&($=Q(Q=0)),$);var M2={};k8(M2,{transcode:()=>nY,resolveObjectURL:()=>dY,kStringMaxLength:()=>L7,kMaxLength:()=>d1,isUtf8:()=>lY,isAscii:()=>iY,default:()=>rY,constants:()=>FY,btoa:()=>WY,atob:()=>jY,INSPECT_MAX_BYTES:()=>F7,File:()=>PY,Buffer:()=>h,Blob:()=>MY});function GY(Q){var $=Q.length;if($%4>0)throw Error("Invalid string. Length must be a multiple of 4");var J=Q.indexOf("=");if(J===-1)J=$;var X=J===$?0:4-J%4;return[J,X]}function UY(Q,$){return(Q+$)*3/4-$}function zY(Q){var $,J=GY(Q),X=J[0],K=J[1],Y=new Uint8Array(UY(X,K)),V=0,q=K>0?X-4:X,U;for(U=0;U<q;U+=4)$=n0[Q.charCodeAt(U)]<<18|n0[Q.charCodeAt(U+1)]<<12|n0[Q.charCodeAt(U+2)]<<6|n0[Q.charCodeAt(U+3)],Y[V++]=$>>16&255,Y[V++]=$>>8&255,Y[V++]=$&255;if(K===2)$=n0[Q.charCodeAt(U)]<<2|n0[Q.charCodeAt(U+1)]>>4,Y[V++]=$&255;if(K===1)$=n0[Q.charCodeAt(U)]<<10|n0[Q.charCodeAt(U+1)]<<4|n0[Q.charCodeAt(U+2)]>>2,Y[V++]=$>>8&255,Y[V++]=$&255;return Y}function ZY(Q){return Y2[Q>>18&63]+Y2[Q>>12&63]+Y2[Q>>6&63]+Y2[Q&63]}function HY(Q,$,J){var X,K=[];for(var Y=$;Y<J;Y+=3)X=(Q[Y]<<16&16711680)+(Q[Y+1]<<8&65280)+(Q[Y+2]&255),K.push(ZY(X));return K.join("")}function Z7(Q){var $,J=Q.length,X=J%3,K=[],Y=16383;for(var V=0,q=J-X;V<q;V+=Y)K.push(HY(Q,V,V+Y>q?q:V+Y));if(X===1)$=Q[J-1],K.push(Y2[$>>2]+Y2[$<<4&63]+"==");else if(X===2)$=(Q[J-2]<<8)+Q[J-1],K.push(Y2[$>>10]+Y2[$>>4&63]+Y2[$<<2&63]+"=");return K.join("")}function S6(Q,$,J,X,K){var Y,V,q=K*8-X-1,U=(1<<q)-1,G=U>>1,B=-7,H=J?K-1:0,W=J?-1:1,j=Q[$+H];H+=W,Y=j&(1<<-B)-1,j>>=-B,B+=q;for(;B>0;Y=Y*256+Q[$+H],H+=W,B-=8);V=Y&(1<<-B)-1,Y>>=-B,B+=X;for(;B>0;V=V*256+Q[$+H],H+=W,B-=8);if(Y===0)Y=1-G;else if(Y===U)return V?NaN:(j?-1:1)*(1/0);else V=V+Math.pow(2,X),Y=Y-G;return(j?-1:1)*V*Math.pow(2,Y-X)}function M7(Q,$,J,X,K,Y){var V,q,U,G=Y*8-K-1,B=(1<<G)-1,H=B>>1,W=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=X?0:Y-1,S=X?1:-1,A=$<0||$===0&&1/$<0?1:0;if($=Math.abs($),isNaN($)||$===1/0)q=isNaN($)?1:0,V=B;else{if(V=Math.floor(Math.log($)/Math.LN2),$*(U=Math.pow(2,-V))<1)V--,U*=2;if(V+H>=1)$+=W/U;else $+=W*Math.pow(2,1-H);if($*U>=2)V++,U/=2;if(V+H>=B)q=0,V=B;else if(V+H>=1)q=($*U-1)*Math.pow(2,K),V=V+H;else q=$*Math.pow(2,H-1)*Math.pow(2,K),V=0}for(;K>=8;Q[J+j]=q&255,j+=S,q/=256,K-=8);V=V<<K|q,G+=K;for(;G>0;Q[J+j]=V&255,j+=S,V/=256,G-=8);Q[J+j-S]|=A*128}function P2(Q){if(Q>d1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let $=new Uint8Array(Q);return Object.setPrototypeOf($,h.prototype),$}function p8(Q,$,J){return class extends J{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(X){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:X,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function h(Q,$,J){if(typeof Q==="number"){if(typeof $==="string")throw TypeError('The "string" argument must be of type string. Received type number');return c8(Q)}return I7(Q,$,J)}function I7(Q,$,J){if(typeof Q==="string")return NY(Q,$);if(ArrayBuffer.isView(Q))return OY(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(V2(Q,ArrayBuffer)||Q&&V2(Q.buffer,ArrayBuffer))return b8(Q,$,J);if(typeof SharedArrayBuffer<"u"&&(V2(Q,SharedArrayBuffer)||Q&&V2(Q.buffer,SharedArrayBuffer)))return b8(Q,$,J);if(typeof Q==="number")throw 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,$,J);let K=CY(Q);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return h.from(Q[Symbol.toPrimitive]("string"),$,J);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function w7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function wY(Q,$,J){if(w7(Q),Q<=0)return P2(Q);if($!==void 0)return typeof J==="string"?P2(Q).fill($,J):P2(Q).fill($);return P2(Q)}function c8(Q){return w7(Q),P2(Q<0?0:m8(Q)|0)}function NY(Q,$){if(typeof $!=="string"||$==="")$="utf8";if(!h.isEncoding($))throw TypeError("Unknown encoding: "+$);let J=N7(Q,$)|0,X=P2(J),K=X.write(Q,$);if(K!==J)X=X.slice(0,K);return X}function _8(Q){let $=Q.length<0?0:m8(Q.length)|0,J=P2($);for(let X=0;X<$;X+=1)J[X]=Q[X]&255;return J}function OY(Q){if(V2(Q,Uint8Array)){let $=new Uint8Array(Q);return b8($.buffer,$.byteOffset,$.byteLength)}return _8(Q)}function b8(Q,$,J){if($<0||Q.byteLength<$)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<$+(J||0))throw RangeError('"length" is outside of buffer bounds');let X;if($===void 0&&J===void 0)X=new Uint8Array(Q);else if(J===void 0)X=new Uint8Array(Q,$);else X=new Uint8Array(Q,$,J);return Object.setPrototypeOf(X,h.prototype),X}function CY(Q){if(h.isBuffer(Q)){let $=m8(Q.length)|0,J=P2($);if(J.length===0)return J;return Q.copy(J,0,0,$),J}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return P2(0);return _8(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return _8(Q.data)}function m8(Q){if(Q>=d1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d1.toString(16)+" bytes");return Q|0}function N7(Q,$){if(h.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||V2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let J=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&J===0)return 0;let K=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return u8(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J*2;case"hex":return J>>>1;case"base64":return S7(Q).length;default:if(K)return X?-1:u8(Q).length;$=(""+$).toLowerCase(),K=!0}}function DY(Q,$,J){let X=!1;if($===void 0||$<0)$=0;if($>this.length)return"";if(J===void 0||J>this.length)J=this.length;if(J<=0)return"";if(J>>>=0,$>>>=0,J<=$)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return hY(this,$,J);case"utf8":case"utf-8":return C7(this,$,J);case"ascii":return xY(this,$,J);case"latin1":case"binary":return yY(this,$,J);case"base64":return SY(this,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gY(this,$,J);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function i2(Q,$,J){let X=Q[$];Q[$]=Q[J],Q[J]=X}function O7(Q,$,J,X,K){if(Q.length===0)return-1;if(typeof J==="string")X=J,J=0;else if(J>2147483647)J=2147483647;else if(J<-2147483648)J=-2147483648;if(J=+J,Number.isNaN(J))J=K?0:Q.length-1;if(J<0)J=Q.length+J;if(J>=Q.length)if(K)return-1;else J=Q.length-1;else if(J<0)if(K)J=0;else return-1;if(typeof $==="string")$=h.from($,X);if(h.isBuffer($)){if($.length===0)return-1;return W7(Q,$,J,X,K)}else if(typeof $==="number"){if($=$&255,typeof Uint8Array.prototype.indexOf==="function")if(K)return Uint8Array.prototype.indexOf.call(Q,$,J);else return Uint8Array.prototype.lastIndexOf.call(Q,$,J);return W7(Q,[$],J,X,K)}throw TypeError("val must be string, number or Buffer")}function W7(Q,$,J,X,K){let Y=1,V=Q.length,q=$.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;Y=2,V/=2,q/=2,J/=2}}function U(B,H){if(Y===1)return B[H];else return B.readUInt16BE(H*Y)}let G;if(K){let B=-1;for(G=J;G<V;G++)if(U(Q,G)===U($,B===-1?0:G-B)){if(B===-1)B=G;if(G-B+1===q)return B*Y}else{if(B!==-1)G-=G-B;B=-1}}else{if(J+q>V)J=V-q;for(G=J;G>=0;G--){let B=!0;for(let H=0;H<q;H++)if(U(Q,G+H)!==U($,H)){B=!1;break}if(B)return G}}return-1}function AY(Q,$,J,X){J=Number(J)||0;let K=Q.length-J;if(!X)X=K;else if(X=Number(X),X>K)X=K;let Y=$.length;if(X>Y/2)X=Y/2;let V;for(V=0;V<X;++V){let q=parseInt($.substr(V*2,2),16);if(Number.isNaN(q))return V;Q[J+V]=q}return V}function RY(Q,$,J,X){return v6(u8($,Q.length-J),Q,J,X)}function TY(Q,$,J,X){return v6(uY($),Q,J,X)}function kY(Q,$,J,X){return v6(S7($),Q,J,X)}function EY(Q,$,J,X){return v6(pY($,Q.length-J),Q,J,X)}function SY(Q,$,J){if($===0&&J===Q.length)return Z7(Q);else return Z7(Q.slice($,J))}function C7(Q,$,J){J=Math.min(Q.length,J);let X=[],K=$;while(K<J){let Y=Q[K],V=null,q=Y>239?4:Y>223?3:Y>191?2:1;if(K+q<=J){let U,G,B,H;switch(q){case 1:if(Y<128)V=Y;break;case 2:if(U=Q[K+1],(U&192)===128){if(H=(Y&31)<<6|U&63,H>127)V=H}break;case 3:if(U=Q[K+1],G=Q[K+2],(U&192)===128&&(G&192)===128){if(H=(Y&15)<<12|(U&63)<<6|G&63,H>2047&&(H<55296||H>57343))V=H}break;case 4:if(U=Q[K+1],G=Q[K+2],B=Q[K+3],(U&192)===128&&(G&192)===128&&(B&192)===128){if(H=(Y&15)<<18|(U&63)<<12|(G&63)<<6|B&63,H>65535&&H<1114112)V=H}}}if(V===null)V=65533,q=1;else if(V>65535)V-=65536,X.push(V>>>10&1023|55296),V=56320|V&1023;X.push(V),K+=q}return vY(X)}function vY(Q){let $=Q.length;if($<=j7)return String.fromCharCode.apply(String,Q);let J="",X=0;while(X<$)J+=String.fromCharCode.apply(String,Q.slice(X,X+=j7));return J}function xY(Q,$,J){let X="";J=Math.min(Q.length,J);for(let K=$;K<J;++K)X+=String.fromCharCode(Q[K]&127);return X}function yY(Q,$,J){let X="";J=Math.min(Q.length,J);for(let K=$;K<J;++K)X+=String.fromCharCode(Q[K]);return X}function hY(Q,$,J){let X=Q.length;if(!$||$<0)$=0;if(!J||J<0||J>X)J=X;let K="";for(let Y=$;Y<J;++Y)K+=cY[Q[Y]];return K}function gY(Q,$,J){let X=Q.slice($,J),K="";for(let Y=0;Y<X.length-1;Y+=2)K+=String.fromCharCode(X[Y]+X[Y+1]*256);return K}function T0(Q,$,J){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+$>J)throw RangeError("Trying to access beyond buffer length")}function f0(Q,$,J,X,K,Y){if(!h.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if($>K||$<Y)throw RangeError('"value" argument is out of bounds');if(J+X>Q.length)throw RangeError("Index out of range")}function D7(Q,$,J,X,K){E7($,X,K,Q,J,7);let Y=Number($&BigInt(4294967295));Q[J++]=Y,Y=Y>>8,Q[J++]=Y,Y=Y>>8,Q[J++]=Y,Y=Y>>8,Q[J++]=Y;let V=Number($>>BigInt(32)&BigInt(4294967295));return Q[J++]=V,V=V>>8,Q[J++]=V,V=V>>8,Q[J++]=V,V=V>>8,Q[J++]=V,J}function A7(Q,$,J,X,K){E7($,X,K,Q,J,7);let Y=Number($&BigInt(4294967295));Q[J+7]=Y,Y=Y>>8,Q[J+6]=Y,Y=Y>>8,Q[J+5]=Y,Y=Y>>8,Q[J+4]=Y;let V=Number($>>BigInt(32)&BigInt(4294967295));return Q[J+3]=V,V=V>>8,Q[J+2]=V,V=V>>8,Q[J+1]=V,V=V>>8,Q[J]=V,J+8}function R7(Q,$,J,X,K,Y){if(J+X>Q.length)throw RangeError("Index out of range");if(J<0)throw RangeError("Index out of range")}function T7(Q,$,J,X,K){if($=+$,J=J>>>0,!K)R7(Q,$,J,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return M7(Q,$,J,X,23,4),J+4}function k7(Q,$,J,X,K){if($=+$,J=J>>>0,!K)R7(Q,$,J,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return M7(Q,$,J,X,52,8),J+8}function P7(Q){let $="",J=Q.length,X=Q[0]==="-"?1:0;for(;J>=X+4;J-=3)$=`_${Q.slice(J-3,J)}${$}`;return`${Q.slice(0,J)}${$}`}function fY(Q,$,J){if(W1($,"offset"),Q[$]===void 0||Q[$+J]===void 0)l1($,Q.length-(J+1))}function E7(Q,$,J,X,K,Y){if(Q>J||Q<$){let V=typeof $==="bigint"?"n":"",q;if(Y>3)if($===0||$===BigInt(0))q=`>= 0${V} and < 2${V} ** ${(Y+1)*8}${V}`;else q=`>= -(2${V} ** ${(Y+1)*8-1}${V}) and < 2 ** ${(Y+1)*8-1}${V}`;else q=`>= ${$}${V} and <= ${J}${V}`;throw new f8("value",q,Q)}fY(X,K,Y)}function W1(Q,$){if(typeof Q!=="number")throw new IY($,"number",Q)}function l1(Q,$,J){if(Math.floor(Q)!==Q)throw W1(Q,J),new f8(J||"offset","an integer",Q);if($<0)throw new LY;throw new f8(J||"offset",`>= ${J?1:0} and <= ${$}`,Q)}function bY(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(_Y,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function u8(Q,$){$=$||1/0;let J,X=Q.length,K=null,Y=[];for(let V=0;V<X;++V){if(J=Q.charCodeAt(V),J>55295&&J<57344){if(!K){if(J>56319){if(($-=3)>-1)Y.push(239,191,189);continue}else if(V+1===X){if(($-=3)>-1)Y.push(239,191,189);continue}K=J;continue}if(J<56320){if(($-=3)>-1)Y.push(239,191,189);K=J;continue}J=(K-55296<<10|J-56320)+65536}else if(K){if(($-=3)>-1)Y.push(239,191,189)}if(K=null,J<128){if(($-=1)<0)break;Y.push(J)}else if(J<2048){if(($-=2)<0)break;Y.push(J>>6|192,J&63|128)}else if(J<65536){if(($-=3)<0)break;Y.push(J>>12|224,J>>6&63|128,J&63|128)}else if(J<1114112){if(($-=4)<0)break;Y.push(J>>18|240,J>>12&63|128,J>>6&63|128,J&63|128)}else throw Error("Invalid code point")}return Y}function uY(Q){let $=[];for(let J=0;J<Q.length;++J)$.push(Q.charCodeAt(J)&255);return $}function pY(Q,$){let J,X,K,Y=[];for(let V=0;V<Q.length;++V){if(($-=2)<0)break;J=Q.charCodeAt(V),X=J>>8,K=J%256,Y.push(K),Y.push(X)}return Y}function S7(Q){return zY(bY(Q))}function v6(Q,$,J,X){let K;for(K=0;K<X;++K){if(K+J>=$.length||K>=Q.length)break;$[K+J]=Q[K]}return K}function V2(Q,$){return Q instanceof $||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===$.name}function R2(Q){return typeof BigInt>"u"?mY:Q}function mY(){throw Error("BigInt not supported")}function d8(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var Y2,n0,g8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l2,z7,H7,F7=50,d1=2147483647,L7=536870888,WY,jY,PY,MY,FY,LY,IY,f8,j7=4096,_Y,cY,dY,lY,iY=(Q)=>{for(let $ of Q)if($.charCodeAt(0)>127)return!1;return!0},nY,rY;var F2=v4(()=>{Y2=[],n0=[];for(l2=0,z7=g8.length;l2<z7;++l2)Y2[l2]=g8[l2],n0[g8.charCodeAt(l2)]=l2;n0[45]=62;n0[95]=63;H7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,WY=globalThis.btoa,jY=globalThis.atob,PY=globalThis.File,MY=globalThis.Blob,FY={MAX_LENGTH:d1,MAX_STRING_LENGTH:L7};LY=p8("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),IY=p8("ERR_INVALID_ARG_TYPE",function(Q,$){return`The "${Q}" argument must be of type number. Received type ${typeof $}`},TypeError),f8=p8("ERR_OUT_OF_RANGE",function(Q,$,J){let X=`The value of "${Q}" is out of range.`,K=J;if(Number.isInteger(J)&&Math.abs(J)>4294967296)K=P7(String(J));else if(typeof J==="bigint"){if(K=String(J),J>BigInt(2)**BigInt(32)||J<-(BigInt(2)**BigInt(32)))K=P7(K);K+="n"}return X+=` It must be ${$}. Received ${K}`,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,$,J){return I7(Q,$,J)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);h.alloc=function(Q,$,J){return wY(Q,$,J)};h.allocUnsafe=function(Q){return c8(Q)};h.allocUnsafeSlow=function(Q){return c8(Q)};h.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==h.prototype};h.compare=function(Q,$){if(V2(Q,Uint8Array))Q=h.from(Q,Q.offset,Q.byteLength);if(V2($,Uint8Array))$=h.from($,$.offset,$.byteLength);if(!h.isBuffer(Q)||!h.isBuffer($))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===$)return 0;let J=Q.length,X=$.length;for(let K=0,Y=Math.min(J,X);K<Y;++K)if(Q[K]!==$[K]){J=Q[K],X=$[K];break}if(J<X)return-1;if(X<J)return 1;return 0};h.isEncoding=function(Q){switch(String(Q).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,$){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return h.alloc(0);let J;if($===void 0){$=0;for(J=0;J<Q.length;++J)$+=Q[J].length}let X=h.allocUnsafe($),K=0;for(J=0;J<Q.length;++J){let Y=Q[J];if(V2(Y,Uint8Array))if(K+Y.length>X.length){if(!h.isBuffer(Y))Y=h.from(Y);Y.copy(X,K)}else Uint8Array.prototype.set.call(X,Y,K);else if(!h.isBuffer(Y))throw TypeError('"list" argument must be an Array of Buffers');else Y.copy(X,K);K+=Y.length}return X};h.byteLength=N7;h.prototype._isBuffer=!0;h.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<Q;$+=2)i2(this,$,$+1);return this};h.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<Q;$+=4)i2(this,$,$+3),i2(this,$+1,$+2);return this};h.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<Q;$+=8)i2(this,$,$+7),i2(this,$+1,$+6),i2(this,$+2,$+5),i2(this,$+3,$+4);return this};h.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return C7(this,0,Q);return DY.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(Q){if(!h.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return h.compare(this,Q)===0};h.prototype.inspect=function(){let Q="",$=F7;if(Q=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$)Q+=" ... ";return"<Buffer "+Q+">"};if(H7)h.prototype[H7]=h.prototype.inspect;h.prototype.compare=function(Q,$,J,X,K){if(V2(Q,Uint8Array))Q=h.from(Q,Q.offset,Q.byteLength);if(!h.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if($===void 0)$=0;if(J===void 0)J=Q?Q.length:0;if(X===void 0)X=0;if(K===void 0)K=this.length;if($<0||J>Q.length||X<0||K>this.length)throw RangeError("out of range index");if(X>=K&&$>=J)return 0;if(X>=K)return-1;if($>=J)return 1;if($>>>=0,J>>>=0,X>>>=0,K>>>=0,this===Q)return 0;let Y=K-X,V=J-$,q=Math.min(Y,V),U=this.slice(X,K),G=Q.slice($,J);for(let B=0;B<q;++B)if(U[B]!==G[B]){Y=U[B],V=G[B];break}if(Y<V)return-1;if(V<Y)return 1;return 0};h.prototype.includes=function(Q,$,J){return this.indexOf(Q,$,J)!==-1};h.prototype.indexOf=function(Q,$,J){return O7(this,Q,$,J,!0)};h.prototype.lastIndexOf=function(Q,$,J){return O7(this,Q,$,J,!1)};h.prototype.write=function(Q,$,J,X){if($===void 0)X="utf8",J=this.length,$=0;else if(J===void 0&&typeof $==="string")X=$,J=this.length,$=0;else if(isFinite($))if($=$>>>0,isFinite(J)){if(J=J>>>0,X===void 0)X="utf8"}else X=J,J=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let K=this.length-$;if(J===void 0||J>K)J=K;if(Q.length>0&&(J<0||$<0)||$>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let Y=!1;for(;;)switch(X){case"hex":return AY(this,Q,$,J);case"utf8":case"utf-8":return RY(this,Q,$,J);case"ascii":case"latin1":case"binary":return TY(this,Q,$,J);case"base64":return kY(this,Q,$,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return EY(this,Q,$,J);default:if(Y)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),Y=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};h.prototype.slice=function(Q,$){let J=this.length;if(Q=~~Q,$=$===void 0?J:~~$,Q<0){if(Q+=J,Q<0)Q=0}else if(Q>J)Q=J;if($<0){if($+=J,$<0)$=0}else if($>J)$=J;if($<Q)$=Q;let X=this.subarray(Q,$);return Object.setPrototypeOf(X,h.prototype),X};h.prototype.readUintLE=h.prototype.readUIntLE=function(Q,$,J){if(Q=Q>>>0,$=$>>>0,!J)T0(Q,$,this.length);let X=this[Q],K=1,Y=0;while(++Y<$&&(K*=256))X+=this[Q+Y]*K;return X};h.prototype.readUintBE=h.prototype.readUIntBE=function(Q,$,J){if(Q=Q>>>0,$=$>>>0,!J)T0(Q,$,this.length);let X=this[Q+--$],K=1;while($>0&&(K*=256))X+=this[Q+--$]*K;return X};h.prototype.readUint8=h.prototype.readUInt8=function(Q,$){if(Q=Q>>>0,!$)T0(Q,1,this.length);return this[Q]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,2,this.length);return this[Q]|this[Q+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,2,this.length);return this[Q]<<8|this[Q+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};h.prototype.readBigUInt64LE=R2(function(Q){Q=Q>>>0,W1(Q,"offset");let $=this[Q],J=this[Q+7];if($===void 0||J===void 0)l1(Q,this.length-8);let X=$+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,K=this[++Q]+this[++Q]*256+this[++Q]*65536+J*16777216;return BigInt(X)+(BigInt(K)<<BigInt(32))});h.prototype.readBigUInt64BE=R2(function(Q){Q=Q>>>0,W1(Q,"offset");let $=this[Q],J=this[Q+7];if($===void 0||J===void 0)l1(Q,this.length-8);let X=$*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],K=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+J;return(BigInt(X)<<BigInt(32))+BigInt(K)});h.prototype.readIntLE=function(Q,$,J){if(Q=Q>>>0,$=$>>>0,!J)T0(Q,$,this.length);let X=this[Q],K=1,Y=0;while(++Y<$&&(K*=256))X+=this[Q+Y]*K;if(K*=128,X>=K)X-=Math.pow(2,8*$);return X};h.prototype.readIntBE=function(Q,$,J){if(Q=Q>>>0,$=$>>>0,!J)T0(Q,$,this.length);let X=$,K=1,Y=this[Q+--X];while(X>0&&(K*=256))Y+=this[Q+--X]*K;if(K*=128,Y>=K)Y-=Math.pow(2,8*$);return Y};h.prototype.readInt8=function(Q,$){if(Q=Q>>>0,!$)T0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};h.prototype.readInt16LE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,2,this.length);let J=this[Q]|this[Q+1]<<8;return J&32768?J|4294901760:J};h.prototype.readInt16BE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,2,this.length);let J=this[Q+1]|this[Q]<<8;return J&32768?J|4294901760:J};h.prototype.readInt32LE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};h.prototype.readInt32BE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};h.prototype.readBigInt64LE=R2(function(Q){Q=Q>>>0,W1(Q,"offset");let $=this[Q],J=this[Q+7];if($===void 0||J===void 0)l1(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+(J<<24);return(BigInt(X)<<BigInt(32))+BigInt($+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});h.prototype.readBigInt64BE=R2(function(Q){Q=Q>>>0,W1(Q,"offset");let $=this[Q],J=this[Q+7];if($===void 0||J===void 0)l1(Q,this.length-8);let X=($<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+J)});h.prototype.readFloatLE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,4,this.length);return S6(this,Q,!0,23,4)};h.prototype.readFloatBE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,4,this.length);return S6(this,Q,!1,23,4)};h.prototype.readDoubleLE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,8,this.length);return S6(this,Q,!0,52,8)};h.prototype.readDoubleBE=function(Q,$){if(Q=Q>>>0,!$)T0(Q,8,this.length);return S6(this,Q,!1,52,8)};h.prototype.writeUintLE=h.prototype.writeUIntLE=function(Q,$,J,X){if(Q=+Q,$=$>>>0,J=J>>>0,!X){let V=Math.pow(2,8*J)-1;f0(this,Q,$,J,V,0)}let K=1,Y=0;this[$]=Q&255;while(++Y<J&&(K*=256))this[$+Y]=Q/K&255;return $+J};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(Q,$,J,X){if(Q=+Q,$=$>>>0,J=J>>>0,!X){let V=Math.pow(2,8*J)-1;f0(this,Q,$,J,V,0)}let K=J-1,Y=1;this[$+K]=Q&255;while(--K>=0&&(Y*=256))this[$+K]=Q/Y&255;return $+J};h.prototype.writeUint8=h.prototype.writeUInt8=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,1,255,0);return this[$]=Q&255,$+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,2,65535,0);return this[$]=Q&255,this[$+1]=Q>>>8,$+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,2,65535,0);return this[$]=Q>>>8,this[$+1]=Q&255,$+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,4,4294967295,0);return this[$+3]=Q>>>24,this[$+2]=Q>>>16,this[$+1]=Q>>>8,this[$]=Q&255,$+4};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,4,4294967295,0);return this[$]=Q>>>24,this[$+1]=Q>>>16,this[$+2]=Q>>>8,this[$+3]=Q&255,$+4};h.prototype.writeBigUInt64LE=R2(function(Q,$=0){return D7(this,Q,$,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=R2(function(Q,$=0){return A7(this,Q,$,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function(Q,$,J,X){if(Q=+Q,$=$>>>0,!X){let q=Math.pow(2,8*J-1);f0(this,Q,$,J,q-1,-q)}let K=0,Y=1,V=0;this[$]=Q&255;while(++K<J&&(Y*=256)){if(Q<0&&V===0&&this[$+K-1]!==0)V=1;this[$+K]=(Q/Y>>0)-V&255}return $+J};h.prototype.writeIntBE=function(Q,$,J,X){if(Q=+Q,$=$>>>0,!X){let q=Math.pow(2,8*J-1);f0(this,Q,$,J,q-1,-q)}let K=J-1,Y=1,V=0;this[$+K]=Q&255;while(--K>=0&&(Y*=256)){if(Q<0&&V===0&&this[$+K+1]!==0)V=1;this[$+K]=(Q/Y>>0)-V&255}return $+J};h.prototype.writeInt8=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,1,127,-128);if(Q<0)Q=255+Q+1;return this[$]=Q&255,$+1};h.prototype.writeInt16LE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,2,32767,-32768);return this[$]=Q&255,this[$+1]=Q>>>8,$+2};h.prototype.writeInt16BE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,2,32767,-32768);return this[$]=Q>>>8,this[$+1]=Q&255,$+2};h.prototype.writeInt32LE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,4,2147483647,-2147483648);return this[$]=Q&255,this[$+1]=Q>>>8,this[$+2]=Q>>>16,this[$+3]=Q>>>24,$+4};h.prototype.writeInt32BE=function(Q,$,J){if(Q=+Q,$=$>>>0,!J)f0(this,Q,$,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[$]=Q>>>24,this[$+1]=Q>>>16,this[$+2]=Q>>>8,this[$+3]=Q&255,$+4};h.prototype.writeBigInt64LE=R2(function(Q,$=0){return D7(this,Q,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=R2(function(Q,$=0){return A7(this,Q,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeFloatLE=function(Q,$,J){return T7(this,Q,$,!0,J)};h.prototype.writeFloatBE=function(Q,$,J){return T7(this,Q,$,!1,J)};h.prototype.writeDoubleLE=function(Q,$,J){return k7(this,Q,$,!0,J)};h.prototype.writeDoubleBE=function(Q,$,J){return k7(this,Q,$,!1,J)};h.prototype.copy=function(Q,$,J,X){if(!h.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!J)J=0;if(!X&&X!==0)X=this.length;if($>=Q.length)$=Q.length;if(!$)$=0;if(X>0&&X<J)X=J;if(X===J)return 0;if(Q.length===0||this.length===0)return 0;if($<0)throw RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw RangeError("Index out of range");if(X<0)throw RangeError("sourceEnd out of bounds");if(X>this.length)X=this.length;if(Q.length-$<X-J)X=Q.length-$+J;let K=X-J;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin($,J,X);else Uint8Array.prototype.set.call(Q,this.subarray(J,X),$);return K};h.prototype.fill=function(Q,$,J,X){if(typeof Q==="string"){if(typeof $==="string")X=$,$=0,J=this.length;else if(typeof J==="string")X=J,J=this.length;if(X!==void 0&&typeof X!=="string")throw TypeError("encoding must be a string");if(typeof X==="string"&&!h.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let Y=Q.charCodeAt(0);if(X==="utf8"&&Y<128||X==="latin1")Q=Y}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if($<0||this.length<$||this.length<J)throw RangeError("Out of range index");if(J<=$)return this;if($=$>>>0,J=J===void 0?this.length:J>>>0,!Q)Q=0;let K;if(typeof Q==="number")for(K=$;K<J;++K)this[K]=Q;else{let Y=h.isBuffer(Q)?Q:h.from(Q,X),V=Y.length;if(V===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(K=0;K<J-$;++K)this[K+$]=Y[K%V]}return this};_Y=/[^+/0-9A-Za-z-_]/g;cY=function(){let Q=Array(256);for(let $=0;$<16;++$){let J=$*16;for(let X=0;X<16;++X)Q[J+X]="0123456789abcdef"[$]+"0123456789abcdef"[X]}return Q}();dY=d8("resolveObjectURL"),lY=d8("isUtf8"),nY=d8("transcode"),rY=h});var n1={};k8(n1,{setMaxListeners:()=>c7,once:()=>u7,listenerCount:()=>m7,init:()=>T2,getMaxListeners:()=>l7,getEventListeners:()=>p7,default:()=>X9,captureRejectionSymbol:()=>g7,addAbortListener:()=>i7,EventEmitter:()=>T2});function f7(Q,$){var{_events:J}=Q;if($[0]??=Error("Unhandled error."),!J)throw $[0];var X=J[h7];if(X)for(var K of x7.call(X))K.apply(Q,$);var Y=J.error;if(!Y)throw $[0];for(var K of x7.call(Y))K.apply(Q,$);return!0}function sY(Q,$,J,X){$.then(void 0,function(K){queueMicrotask(()=>tY(Q,K,J,X))})}function tY(Q,$,J,X){if(typeof Q[v7]==="function")Q[v7]($,J,...X);else try{Q[n2]=!1,Q.emit("error",$)}finally{Q[n2]=!0}}function _7(Q,$,J){J.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${J.length} ${String($)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=$,X.count=J.length,console.warn(X)}function b7(Q,$,...J){this.removeListener(Q,$),$.apply(this,J)}function u7(Q,$,J){var X=J?.signal;if(d7(X,"options.signal"),X?.aborted)throw new l8(void 0,{cause:X?.reason});let{resolve:K,reject:Y,promise:V}=$newPromiseCapability(Promise),q=(B)=>{if(Q.removeListener($,U),X!=null)x6(X,"abort",G);Y(B)},U=(...B)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",q);if(X!=null)x6(X,"abort",G);K(B)};if(y7(Q,$,U,{once:!0}),$!=="error"&&typeof Q.once==="function")Q.once("error",q);function G(){x6(Q,$,U),x6(Q,"error",q),Y(new l8(void 0,{cause:X?.reason}))}if(X!=null)y7(X,"abort",G,{once:!0});return V}function p7(Q,$){return Q.listeners($)}function c7(Q,...$){n8(Q,"setMaxListeners",0);var J;if($&&(J=$.length))for(let X=0;X<J;X++)$[X].setMaxListeners(Q);else r2=Q}function m7(Q,$){return Q.listenerCount($)}function x6(Q,$,J,X){if(typeof Q.removeListener==="function")Q.removeListener($,J);else Q.removeEventListener($,J,X)}function y7(Q,$,J,X){if(typeof Q.on==="function")if(X.once)Q.once($,J);else Q.on($,J);else Q.addEventListener($,J,X)}function j1(Q,$,J){let X=TypeError(`The "${Q}" argument must be of type ${$}. Received ${J}`);return X.code="ERR_INVALID_ARG_TYPE",X}function $9(Q,$,J){let X=RangeError(`The "${Q}" argument is out of range. It must be ${$}. Received ${J}`);return X.code="ERR_OUT_OF_RANGE",X}function d7(Q,$){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw j1($,"AbortSignal",Q)}function n8(Q,$,J,X){if(typeof Q!=="number")throw j1($,"number",Q);if(J!=null&&Q<J||X!=null&&Q>X||(J!=null||X!=null)&&Number.isNaN(Q))throw $9($,`${J!=null?`>= ${J}`:""}${J!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function i1(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function J9(Q,$){if(typeof Q!=="boolean")throw j1($,"boolean",Q)}function l7(Q){return Q?._maxListeners??r2}function i7(Q,$){if(Q===void 0)throw j1("signal","AbortSignal",Q);if(d7(Q,"signal"),typeof $!=="function")throw j1("listener","function",$);let J;if(Q.aborted)queueMicrotask(()=>$());else Q.addEventListener("abort",$,{__proto__:null,once:!0}),J=()=>{Q.removeEventListener("abort",$)};return{__proto__:null,[Symbol.dispose](){J?.()}}}var i8,n2,h7,oY,aY,v7,g7,x7,r2=10,T2=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[n2]=Q?.captureRejections?Boolean(Q?.captureRejections):I0[n2])this.emit=Q9},I0,eY=function(Q,...$){if(Q==="error")return f7(this,$);var{_events:J}=this;if(J===void 0)return!1;var X=J[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:V}=K;Y<V;Y++){let q=K[Y];switch($.length){case 0:q.call(this);break;case 1:q.call(this,$[0]);break;case 2:q.call(this,$[0],$[1]);break;case 3:q.call(this,$[0],$[1],$[2]);break;default:q.apply(this,$);break}}return!0},Q9=function(Q,...$){if(Q==="error")return f7(this,$);var{_events:J}=this;if(J===void 0)return!1;var X=J[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:V}=K;Y<V;Y++){let q=K[Y],U;switch($.length){case 0:U=q.call(this);break;case 1:U=q.call(this,$[0]);break;case 2:U=q.call(this,$[0],$[1]);break;case 3:U=q.call(this,$[0],$[1],$[2]);break;default:U=q.apply(this,$);break}if(U!==void 0&&typeof U?.then==="function"&&U.then===Promise.prototype.then)sY(this,U,Q,$)}return!0},l8,X9;var r1=v4(()=>{i8=Symbol.for,n2=Symbol("kCapture"),h7=i8("events.errorMonitor"),oY=Symbol("events.maxEventTargetListeners"),aY=Symbol("events.maxEventTargetListenersWarned"),v7=i8("nodejs.rejection"),g7=i8("nodejs.rejection"),x7=Array.prototype.slice,I0=T2.prototype={};I0._events=void 0;I0._eventsCount=0;I0._maxListeners=void 0;I0.setMaxListeners=function(Q){return n8(Q,"setMaxListeners",0),this._maxListeners=Q,this};I0.constructor=T2;I0.getMaxListeners=function(){return this?._maxListeners??r2};I0.emit=eY;I0.addListener=function(Q,$){i1($);var J=this._events;if(!J)J=this._events={__proto__:null},this._eventsCount=0;else if(J.newListener)this.emit("newListener",Q,$.listener??$);var X=J[Q];if(!X)J[Q]=[$],this._eventsCount++;else{X.push($);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)_7(this,Q,X)}return this};I0.on=I0.addListener;I0.prependListener=function(Q,$){i1($);var J=this._events;if(!J)J=this._events={__proto__:null},this._eventsCount=0;else if(J.newListener)this.emit("newListener",Q,$.listener??$);var X=J[Q];if(!X)J[Q]=[$],this._eventsCount++;else{X.unshift($);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)_7(this,Q,X)}return this};I0.once=function(Q,$){i1($);let J=b7.bind(this,Q,$);return J.listener=$,this.addListener(Q,J),this};I0.prependOnceListener=function(Q,$){i1($);let J=b7.bind(this,Q,$);return J.listener=$,this.prependListener(Q,J),this};I0.removeListener=function(Q,$){i1($);var{_events:J}=this;if(!J)return this;var X=J[Q];if(!X)return this;var K=X.length;let Y=-1;for(let V=K-1;V>=0;V--)if(X[V]===$||X[V].listener===$){Y=V;break}if(Y<0)return this;if(Y===0)X.shift();else X.splice(Y,1);if(X.length===0)delete J[Q],this._eventsCount--;return this};I0.off=I0.removeListener;I0.removeAllListeners=function(Q){var{_events:$}=this;if(Q&&$){if($[Q])delete $[Q],this._eventsCount--}else this._events={__proto__:null};return this};I0.listeners=function(Q){var{_events:$}=this;if(!$)return[];var J=$[Q];if(!J)return[];return J.map((X)=>X.listener??X)};I0.rawListeners=function(Q){var{_events:$}=this;if(!$)return[];var J=$[Q];if(!J)return[];return J.slice()};I0.listenerCount=function(Q){var{_events:$}=this;if(!$)return 0;return $[Q]?.length??0};I0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};I0[n2]=!1;l8=class l8 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(T2,{captureRejections:{get(){return I0[n2]},set(Q){J9(Q,"EventEmitter.captureRejections"),I0[n2]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return r2},set:(Q)=>{n8(Q,"defaultMaxListeners",0),r2=Q}},kMaxEventTargetListeners:{value:oY,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:aY,enumerable:!1,configurable:!1,writable:!1}});Object.assign(T2,{once:u7,getEventListeners:p7,getMaxListeners:l7,setMaxListeners:c7,EventEmitter:T2,usingDomains:!1,captureRejectionSymbol:g7,errorMonitor:h7,addAbortListener:i7,init:T2,listenerCount:m7});X9=T2});var s8=B0((cB,QQ)=>{var M0=(Q,$)=>()=>($||Q(($={exports:{}}).exports,$),$.exports),O0=M0((Q,$)=>{class J extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let K="";for(let Y=0;Y<X.length;Y++)K+=` ${X[Y].stack}
|
|
2
|
+
`;super(K);this.name="AggregateError",this.errors=X}}$.exports={AggregateError:J,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,K){return X.includes(K)},ArrayPrototypeIndexOf(X,K){return X.indexOf(K)},ArrayPrototypeJoin(X,K){return X.join(K)},ArrayPrototypeMap(X,K){return X.map(K)},ArrayPrototypePop(X,K){return X.pop(K)},ArrayPrototypePush(X,K){return X.push(K)},ArrayPrototypeSlice(X,K,Y){return X.slice(K,Y)},Error,FunctionPrototypeCall(X,K,...Y){return X.call(K,...Y)},FunctionPrototypeSymbolHasInstance(X,K){return Function.prototype[Symbol.hasInstance].call(X,K)},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,K){return Object.defineProperties(X,K)},ObjectDefineProperty(X,K,Y){return Object.defineProperty(X,K,Y)},ObjectGetOwnPropertyDescriptor(X,K){return Object.getOwnPropertyDescriptor(X,K)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,K){return Object.setPrototypeOf(X,K)},Promise,PromisePrototypeCatch(X,K){return X.catch(K)},PromisePrototypeThen(X,K,Y){return X.then(K,Y)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,K){return X.test(K)},SafeSet:Set,String,StringPrototypeSlice(X,K,Y){return X.slice(K,Y)},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,K,Y){return X.set(K,Y)},Boolean,Uint8Array}}),n7=M0((Q,$)=>{$.exports={format(J,...X){return J.replace(/%([sdifj])/g,function(...[K,Y]){let V=X.shift();if(Y==="f")return V.toFixed(6);else if(Y==="j")return JSON.stringify(V);else if(Y==="s"&&typeof V==="object")return`${V.constructor!==Object?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(J){switch(typeof J){case"string":if(J.includes("'")){if(!J.includes('"'))return`"${J}"`;else if(!J.includes("`")&&!J.includes("${"))return`\`${J}\``}return`'${J}'`;case"number":if(isNaN(J))return"NaN";else if(Object.is(J,-0))return String(J);return J;case"bigint":return`${String(J)}n`;case"boolean":case"undefined":return String(J);case"object":return"{}"}}}}),x0=M0((Q,$)=>{var{format:J,inspect:X}=n7(),{AggregateError:K}=O0(),Y=globalThis.AggregateError||K,V=Symbol("kIsNodeError"),q=["string","function","number","object","Function","Object","boolean","bigint","symbol"],U=/^([A-Z][a-z0-9]*)+$/,G={};function B(L,z){if(!L)throw new G.ERR_INTERNAL_ASSERTION(z)}function H(L){let z="",P=L.length,F=L[0]==="-"?1:0;for(;P>=F+4;P-=3)z=`_${L.slice(P-3,P)}${z}`;return`${L.slice(0,P)}${z}`}function W(L,z,P){if(typeof z==="function")return B(z.length<=P.length,`Code: ${L}; The provided arguments length (${P.length}) does not match the required ones (${z.length}).`),z(...P);let F=(z.match(/%[dfijoOs]/g)||[]).length;if(B(F===P.length,`Code: ${L}; The provided arguments length (${P.length}) does not match the required ones (${F}).`),P.length===0)return z;return J(z,...P)}function j(L,z,P){if(!P)P=Error;class F extends P{constructor(...N){super(W(L,z,N))}toString(){return`${this.name} [${L}]: ${this.message}`}}Object.defineProperties(F.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${L}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),F.prototype.code=L,F.prototype[V]=!0,G[L]=F}function S(L){let z="__node_internal_"+L.name;return Object.defineProperty(L,"name",{value:z}),L}function A(L,z){if(L&&z&&L!==z){if(Array.isArray(z.errors))return z.errors.push(L),z;let P=new Y([z,L],z.message);return P.code=z.code,P}return L||z}class I extends Error{constructor(L="The operation was aborted",z=void 0){if(z!==void 0&&typeof z!=="object")throw new G.ERR_INVALID_ARG_TYPE("options","Object",z);super(L,z);this.code="ABORT_ERR",this.name="AbortError"}}j("ERR_ASSERTION","%s",Error),j("ERR_INVALID_ARG_TYPE",(L,z,P)=>{if(B(typeof L==="string","'name' must be a string"),!Array.isArray(z))z=[z];let F="The ";if(L.endsWith(" argument"))F+=`${L} `;else F+=`"${L}" ${L.includes(".")?"property":"argument"} `;F+="must be ";let N=[],x=[],d=[];for(let _ of z)if(B(typeof _==="string","All expected entries have to be of type string"),q.includes(_))N.push(_.toLowerCase());else if(U.test(_))x.push(_);else B(_!=="object",'The value "object" should be written as "Object"'),d.push(_);if(x.length>0){let _=N.indexOf("object");if(_!==-1)N.splice(N,_,1),x.push("Object")}if(N.length>0){switch(N.length){case 1:F+=`of type ${N[0]}`;break;case 2:F+=`one of type ${N[0]} or ${N[1]}`;break;default:{let _=N.pop();F+=`one of type ${N.join(", ")}, or ${_}`}}if(x.length>0||d.length>0)F+=" or "}if(x.length>0){switch(x.length){case 1:F+=`an instance of ${x[0]}`;break;case 2:F+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let _=x.pop();F+=`an instance of ${x.join(", ")}, or ${_}`}}if(d.length>0)F+=" or "}switch(d.length){case 0:break;case 1:if(d[0].toLowerCase()!==d[0])F+="an ";F+=`${d[0]}`;break;case 2:F+=`one of ${d[0]} or ${d[1]}`;break;default:{let _=d.pop();F+=`one of ${d.join(", ")}, or ${_}`}}if(P==null)F+=`. Received ${P}`;else if(typeof P==="function"&&P.name)F+=`. Received function ${P.name}`;else if(typeof P==="object"){var i;if((i=P.constructor)!==null&&i!==void 0&&i.name)F+=`. Received an instance of ${P.constructor.name}`;else{let _=X(P,{depth:-1});F+=`. Received ${_}`}}else{let _=X(P,{colors:!1});if(_.length>25)_=`${_.slice(0,25)}...`;F+=`. Received type ${typeof P} (${_})`}return F},TypeError),j("ERR_INVALID_ARG_VALUE",(L,z,P="is invalid")=>{let F=X(z);if(F.length>128)F=F.slice(0,128)+"...";return`The ${L.includes(".")?"property":"argument"} '${L}' ${P}. Received ${F}`},TypeError),j("ERR_INVALID_RETURN_VALUE",(L,z,P)=>{var F;let N=P!==null&&P!==void 0&&(F=P.constructor)!==null&&F!==void 0&&F.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${L} to be returned from the "${z}" function but got ${N}.`},TypeError),j("ERR_MISSING_ARGS",(...L)=>{B(L.length>0,"At least one arg needs to be specified");let z,P=L.length;switch(L=(Array.isArray(L)?L:[L]).map((F)=>`"${F}"`).join(" or "),P){case 1:z+=`The ${L[0]} argument`;break;case 2:z+=`The ${L[0]} and ${L[1]} arguments`;break;default:{let F=L.pop();z+=`The ${L.join(", ")}, and ${F} arguments`}break}return`${z} must be specified`},TypeError),j("ERR_OUT_OF_RANGE",(L,z,P)=>{B(z,'Missing "range" argument');let F;if(Number.isInteger(P)&&Math.abs(P)>4294967296)F=H(String(P));else if(typeof P==="bigint"){F=String(P);let N=BigInt(2)**BigInt(32);if(P>N||P<-N)F=H(F);F+="n"}else F=X(P);return`The value of "${L}" is out of range. It must be ${z}. Received ${F}`},RangeError),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),j("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),j("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),j("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),j("ERR_STREAM_WRITE_AFTER_END","write after end",Error),j("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),$.exports={AbortError:I,aggregateTwoErrors:S(A),hideStackFrames:S,codes:G}}),K9=M0((Q,$)=>{Object.defineProperty(Q,"__esModule",{value:!0});var J=new WeakMap,X=new WeakMap;function K(v){let k=J.get(v);return console.assert(k!=null,"'this' is expected an Event object, but got",v),k}function Y(v){if(v.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",v.passiveListener);return}if(!v.event.cancelable)return;if(v.canceled=!0,typeof v.event.preventDefault==="function")v.event.preventDefault()}function V(v,k){J.set(this,{eventTarget:v,event:k,eventPhase:2,currentTarget:v,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:k.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let O=Object.keys(k);for(let E=0;E<O.length;++E){let y=O[E];if(!(y in this))Object.defineProperty(this,y,q(y))}}if(V.prototype={get type(){return K(this).event.type},get target(){return K(this).eventTarget},get currentTarget(){return K(this).currentTarget},composedPath(){let v=K(this).currentTarget;if(v==null)return[];return[v]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return K(this).eventPhase},stopPropagation(){let v=K(this);if(v.stopped=!0,typeof v.event.stopPropagation==="function")v.event.stopPropagation()},stopImmediatePropagation(){let v=K(this);if(v.stopped=!0,v.immediateStopped=!0,typeof v.event.stopImmediatePropagation==="function")v.event.stopImmediatePropagation()},get bubbles(){return Boolean(K(this).event.bubbles)},get cancelable(){return Boolean(K(this).event.cancelable)},preventDefault(){Y(K(this))},get defaultPrevented(){return K(this).canceled},get composed(){return Boolean(K(this).event.composed)},get timeStamp(){return K(this).timeStamp},get srcElement(){return K(this).eventTarget},get cancelBubble(){return K(this).stopped},set cancelBubble(v){if(!v)return;let k=K(this);if(k.stopped=!0,typeof k.event.cancelBubble==="boolean")k.event.cancelBubble=!0},get returnValue(){return!K(this).canceled},set returnValue(v){if(!v)Y(K(this))},initEvent(){}},Object.defineProperty(V.prototype,"constructor",{value:V,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(V.prototype,window.Event.prototype),X.set(window.Event.prototype,V);function q(v){return{get(){return K(this).event[v]},set(k){K(this).event[v]=k},configurable:!0,enumerable:!0}}function U(v){return{value(){let k=K(this).event;return k[v].apply(k,arguments)},configurable:!0,enumerable:!0}}function G(v,k){let O=Object.keys(k);if(O.length===0)return v;function E(y,T){v.call(this,y,T)}E.prototype=Object.create(v.prototype,{constructor:{value:E,configurable:!0,writable:!0}});for(let y=0;y<O.length;++y){let T=O[y];if(!(T in v.prototype)){let o=typeof Object.getOwnPropertyDescriptor(k,T).value==="function";Object.defineProperty(E.prototype,T,o?U(T):q(T))}}return E}function B(v){if(v==null||v===Object.prototype)return V;let k=X.get(v);if(k==null)k=G(B(Object.getPrototypeOf(v)),v),X.set(v,k);return k}function H(v,k){return new(B(Object.getPrototypeOf(k)))(v,k)}function W(v){return K(v).immediateStopped}function j(v,k){K(v).eventPhase=k}function S(v,k){K(v).currentTarget=k}function A(v,k){K(v).passiveListener=k}var I=new WeakMap,L=1,z=2,P=3;function F(v){return v!==null&&typeof v==="object"}function N(v){let k=I.get(v);if(k==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return k}function x(v){return{get(){let k=N(this).get(v);while(k!=null){if(k.listenerType===P)return k.listener;k=k.next}return null},set(k){if(typeof k!=="function"&&!F(k))k=null;let O=N(this),E=null,y=O.get(v);while(y!=null){if(y.listenerType===P)if(E!==null)E.next=y.next;else if(y.next!==null)O.set(v,y.next);else O.delete(v);else E=y;y=y.next}if(k!==null){let T={listener:k,listenerType:P,passive:!1,once:!1,next:null};if(E===null)O.set(v,T);else E.next=T}},configurable:!0,enumerable:!0}}function d(v,k){Object.defineProperty(v,`on${k}`,x(k))}function i(v){function k(){_.call(this)}k.prototype=Object.create(_.prototype,{constructor:{value:k,configurable:!0,writable:!0}});for(let O=0;O<v.length;++O)d(k.prototype,v[O]);return k}function _(){if(this instanceof _){I.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return i(arguments[0]);if(arguments.length>0){let v=Array(arguments.length);for(let k=0;k<arguments.length;++k)v[k]=arguments[k];return i(v)}throw TypeError("Cannot call a class as a function")}if(_.prototype={addEventListener(v,k,O){if(k==null)return;if(typeof k!=="function"&&!F(k))throw TypeError("'listener' should be a function or an object.");let E=N(this),y=F(O),T=(y?Boolean(O.capture):Boolean(O))?L:z,o={listener:k,listenerType:T,passive:y&&Boolean(O.passive),once:y&&Boolean(O.once),next:null},e=E.get(v);if(e===void 0){E.set(v,o);return}let X0=null;while(e!=null){if(e.listener===k&&e.listenerType===T)return;X0=e,e=e.next}X0.next=o},removeEventListener(v,k,O){if(k==null)return;let E=N(this),y=(F(O)?Boolean(O.capture):Boolean(O))?L:z,T=null,o=E.get(v);while(o!=null){if(o.listener===k&&o.listenerType===y){if(T!==null)T.next=o.next;else if(o.next!==null)E.set(v,o.next);else E.delete(v);return}T=o,o=o.next}},dispatchEvent(v){if(v==null||typeof v.type!=="string")throw TypeError('"event.type" should be a string.');let k=N(this),O=v.type,E=k.get(O);if(E==null)return!0;let y=H(this,v),T=null;while(E!=null){if(E.once)if(T!==null)T.next=E.next;else if(E.next!==null)k.set(O,E.next);else k.delete(O);else T=E;if(A(y,E.passive?E.listener:null),typeof E.listener==="function")try{E.listener.call(this,y)}catch(o){if(typeof console<"u"&&typeof console.error==="function")console.error(o)}else if(E.listenerType!==P&&typeof E.listener.handleEvent==="function")E.listener.handleEvent(y);if(W(y))break;E=E.next}return A(y,null),j(y,0),S(y,null),!y.defaultPrevented}},Object.defineProperty(_.prototype,"constructor",{value:_,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(_.prototype,window.EventTarget.prototype);Q.defineEventAttribute=d,Q.EventTarget=_,Q.default=_,$.exports=_,$.exports.EventTarget=$.exports.default=_,$.exports.defineEventAttribute=d}),o1=M0((Q,$)=>{Object.defineProperty(Q,"__esModule",{value:!0});var J=K9();class X extends J.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let B=V.get(this);if(typeof B!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return B}}J.defineEventAttribute(X.prototype,"abort");function K(){let B=Object.create(X.prototype);return J.EventTarget.call(B),V.set(B,!1),B}function Y(B){if(V.get(B)!==!1)return;V.set(B,!0),B.dispatchEvent({type:"abort"})}var V=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 q{constructor(){U.set(this,K())}get signal(){return G(this)}abort(){Y(G(this))}}var U=new WeakMap;function G(B){let H=U.get(B);if(H==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${B===null?"null":typeof B}`);return H}if(Object.defineProperties(q.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(q.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=q,Q.AbortSignal=X,Q.default=q,$.exports=q,$.exports.AbortController=$.exports.default=q,$.exports.AbortSignal=X}),_0=M0((Q,$)=>{var J=(F2(),u0(M2)),{format:X,inspect:K}=n7(),{codes:{ERR_INVALID_ARG_TYPE:Y}}=x0(),{kResistStopPropagation:V,AggregateError:q,SymbolDispose:U}=O0(),G=globalThis.AbortSignal||o1().AbortSignal,B=globalThis.AbortController||o1().AbortController,H=Object.getPrototypeOf(async function(){}).constructor,W=globalThis.Blob||J.Blob,j=typeof W<"u"?function(I){return I instanceof W}:function(I){return!1},S=(I,L)=>{if(I!==void 0&&(I===null||typeof I!=="object"||!("aborted"in I)))throw new Y(L,"AbortSignal",I)},A=(I,L)=>{if(typeof I!=="function")throw new Y(L,"Function",I)};$.exports={AggregateError:q,kEmptyObject:Object.freeze({}),once(I){let L=!1;return function(...z){if(L)return;L=!0,I.apply(this,z)}},createDeferredPromise:function(){let I,L;return{promise:new Promise((z,P)=>{I=z,L=P}),resolve:I,reject:L}},promisify(I){return new Promise((L,z)=>{I((P,...F)=>{if(P)return z(P);return L(...F)})})},debuglog(){return function(){}},format:X,inspect:K,types:{isAsyncFunction(I){return I instanceof H},isArrayBufferView(I){return ArrayBuffer.isView(I)}},isBlob:j,deprecate(I,L){return I},addAbortListener:(r1(),u0(n1)).addAbortListener||function(I,L){if(I===void 0)throw new Y("signal","AbortSignal",I);S(I,"signal"),A(L,"listener");let z;if(I.aborted)queueMicrotask(()=>L());else I.addEventListener("abort",L,{__proto__:null,once:!0,[V]:!0}),z=()=>{I.removeEventListener("abort",L)};return{__proto__:null,[U](){var P;(P=z)===null||P===void 0||P()}}},AbortSignalAny:G.any||function(I){if(I.length===1)return I[0];let L=new B,z=()=>L.abort();return I.forEach((P)=>{S(P,"signals"),P.addEventListener("abort",z,{once:!0})}),L.signal.addEventListener("abort",()=>{I.forEach((P)=>P.removeEventListener("abort",z))},{once:!0}),L.signal}},$.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),a1=M0((Q,$)=>{var{ArrayIsArray:J,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:K,ArrayPrototypeMap:Y,NumberIsInteger:V,NumberIsNaN:q,NumberMAX_SAFE_INTEGER:U,NumberMIN_SAFE_INTEGER:G,NumberParseInt:B,ObjectPrototypeHasOwnProperty:H,RegExpPrototypeExec:W,String:j,StringPrototypeToUpperCase:S,StringPrototypeTrim:A}=O0(),{hideStackFrames:I,codes:{ERR_SOCKET_BAD_PORT:L,ERR_INVALID_ARG_TYPE:z,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:F,ERR_UNKNOWN_SIGNAL:N}}=x0(),{normalizeEncoding:x}=_0(),{isAsyncFunction:d,isArrayBufferView:i}=_0().types,_={};function v(D){return D===(D|0)}function k(D){return D===D>>>0}var O=/^[0-7]+$/,E="must be a 32-bit unsigned integer or an octal string";function y(D,m,Q0){if(typeof D>"u")D=Q0;if(typeof D==="string"){if(W(O,D)===null)throw new P(m,D,E);D=B(D,8)}return e(D,m),D}var T=I((D,m,Q0=G,l=U)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new F(m,"an integer",D);if(D<Q0||D>l)throw new F(m,`>= ${Q0} && <= ${l}`,D)}),o=I((D,m,Q0=-2147483648,l=2147483647)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new F(m,"an integer",D);if(D<Q0||D>l)throw new F(m,`>= ${Q0} && <= ${l}`,D)}),e=I((D,m,Q0=!1)=>{if(typeof D!=="number")throw new z(m,"number",D);if(!V(D))throw new F(m,"an integer",D);let l=Q0?1:0,q0=4294967295;if(D<l||D>q0)throw new F(m,`>= ${l} && <= ${q0}`,D)});function X0(D,m){if(typeof D!=="string")throw new z(m,"string",D)}function H0(D,m,Q0=void 0,l){if(typeof D!=="number")throw new z(m,"number",D);if(Q0!=null&&D<Q0||l!=null&&D>l||(Q0!=null||l!=null)&&q(D))throw new F(m,`${Q0!=null?`>= ${Q0}`:""}${Q0!=null&&l!=null?" && ":""}${l!=null?`<= ${l}`:""}`,D)}var p=I((D,m,Q0)=>{if(!X(Q0,D)){let l="must be one of: "+K(Y(Q0,(q0)=>typeof q0==="string"?`'${q0}'`:j(q0)),", ");throw new P(m,D,l)}});function V0(D,m){if(typeof D!=="boolean")throw new z(m,"boolean",D)}function w(D,m,Q0){return D==null||!H(D,m)?Q0:D[m]}var c=I((D,m,Q0=null)=>{let l=w(Q0,"allowArray",!1),q0=w(Q0,"allowFunction",!1);if(!w(Q0,"nullable",!1)&&D===null||!l&&J(D)||typeof D!=="object"&&(!q0||typeof D!=="function"))throw new z(m,"Object",D)}),J0=I((D,m)=>{if(D!=null&&typeof D!=="object"&&typeof D!=="function")throw new z(m,"a dictionary",D)}),f=I((D,m,Q0=0)=>{if(!J(D))throw new z(m,"Array",D);if(D.length<Q0){let l=`must be longer than ${Q0}`;throw new P(m,D,l)}});function Y0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++)X0(D[Q0],`${m}[${Q0}]`)}function G0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++)V0(D[Q0],`${m}[${Q0}]`)}function W0(D,m){f(D,m);for(let Q0=0;Q0<D.length;Q0++){let l=D[Q0],q0=`${m}[${Q0}]`;if(l==null)throw new z(q0,"AbortSignal",l);U0(l,q0)}}function Z0(D,m="signal"){if(X0(D,m),_[D]===void 0){if(_[S(D)]!==void 0)throw new N(D+" (signals must use all capital letters)");throw new N(D)}}var b=I((D,m="buffer")=>{if(!i(D))throw new z(m,["Buffer","TypedArray","DataView"],D)});function u(D,m){let Q0=x(m),l=D.length;if(Q0==="hex"&&l%2!==0)throw new P("encoding",m,`is invalid for data of length ${l}`)}function a(D,m="Port",Q0=!0){if(typeof D!=="number"&&typeof D!=="string"||typeof D==="string"&&A(D).length===0||+D!==+D>>>0||D>65535||D===0&&!Q0)throw new L(m,D,Q0);return D|0}var U0=I((D,m)=>{if(D!==void 0&&(D===null||typeof D!=="object"||!("aborted"in D)))throw new z(m,"AbortSignal",D)}),z0=I((D,m)=>{if(typeof D!=="function")throw new z(m,"Function",D)}),C=I((D,m)=>{if(typeof D!=="function"||d(D))throw new z(m,"Function",D)}),R=I((D,m)=>{if(D!==void 0)throw new z(m,"undefined",D)});function g(D,m,Q0){if(!X(Q0,D))throw new z(m,`('${K(Q0,"|")}')`,D)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function t(D,m){if(typeof D>"u"||!W(r,D))throw new P(m,D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function s(D){if(typeof D==="string")return t(D,"hints"),D;else if(J(D)){let m=D.length,Q0="";if(m===0)return Q0;for(let l=0;l<m;l++){let q0=D[l];if(t(q0,"hints"),Q0+=q0,l!==m-1)Q0+=", "}return Q0}throw new P("hints",D,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}$.exports={isInt32:v,isUint32:k,parseFileMode:y,validateArray:f,validateStringArray:Y0,validateBooleanArray:G0,validateAbortSignalArray:W0,validateBoolean:V0,validateBuffer:b,validateDictionary:J0,validateEncoding:u,validateFunction:z0,validateInt32:o,validateInteger:T,validateNumber:H0,validateObject:c,validateOneOf:p,validatePlainFunction:C,validatePort:a,validateSignalName:Z0,validateString:X0,validateUint32:e,validateUndefined:R,validateUnion:g,validateAbortSignal:U0,validateLinkHeaderValue:s}}),o2=M0((Q,$)=>{$.exports=globalThis.process}),I2=M0((Q,$)=>{var{SymbolAsyncIterator:J,SymbolIterator:X,SymbolFor:K}=O0(),Y=K("nodejs.stream.destroyed"),V=K("nodejs.stream.errored"),q=K("nodejs.stream.readable"),U=K("nodejs.stream.writable"),G=K("nodejs.stream.disturbed"),B=K("nodejs.webstream.isClosedPromise"),H=K("nodejs.webstream.controllerErrorFunction");function W(w,c=!1){var J0;return!!(w&&typeof w.pipe==="function"&&typeof w.on==="function"&&(!c||typeof w.pause==="function"&&typeof w.resume==="function")&&(!w._writableState||((J0=w._readableState)===null||J0===void 0?void 0:J0.readable)!==!1)&&(!w._writableState||w._readableState))}function j(w){var c;return!!(w&&typeof w.write==="function"&&typeof w.on==="function"&&(!w._readableState||((c=w._writableState)===null||c===void 0?void 0:c.writable)!==!1))}function S(w){return!!(w&&typeof w.pipe==="function"&&w._readableState&&typeof w.on==="function"&&typeof w.write==="function")}function A(w){return w&&(w._readableState||w._writableState||typeof w.write==="function"&&typeof w.on==="function"||typeof w.pipe==="function"&&typeof w.on==="function")}function I(w){return!!(w&&!A(w)&&typeof w.pipeThrough==="function"&&typeof w.getReader==="function"&&typeof w.cancel==="function")}function L(w){return!!(w&&!A(w)&&typeof w.getWriter==="function"&&typeof w.abort==="function")}function z(w){return!!(w&&!A(w)&&typeof w.readable==="object"&&typeof w.writable==="object")}function P(w){return I(w)||L(w)||z(w)}function F(w,c){if(w==null)return!1;if(c===!0)return typeof w[J]==="function";if(c===!1)return typeof w[X]==="function";return typeof w[J]==="function"||typeof w[X]==="function"}function N(w){if(!A(w))return null;let{_writableState:c,_readableState:J0}=w,f=c||J0;return!!(w.destroyed||w[Y]||f!==null&&f!==void 0&&f.destroyed)}function x(w){if(!j(w))return null;if(w.writableEnded===!0)return!0;let c=w._writableState;if(c!==null&&c!==void 0&&c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function d(w,c){if(!j(w))return null;if(w.writableFinished===!0)return!0;let J0=w._writableState;if(J0!==null&&J0!==void 0&&J0.errored)return!1;if(typeof(J0===null||J0===void 0?void 0:J0.finished)!=="boolean")return null;return!!(J0.finished||c===!1&&J0.ended===!0&&J0.length===0)}function i(w){if(!W(w))return null;if(w.readableEnded===!0)return!0;let c=w._readableState;if(!c||c.errored)return!1;if(typeof(c===null||c===void 0?void 0:c.ended)!=="boolean")return null;return c.ended}function _(w,c){if(!W(w))return null;let J0=w._readableState;if(J0!==null&&J0!==void 0&&J0.errored)return!1;if(typeof(J0===null||J0===void 0?void 0:J0.endEmitted)!=="boolean")return null;return!!(J0.endEmitted||c===!1&&J0.ended===!0&&J0.length===0)}function v(w){if(w&&w[q]!=null)return w[q];if(typeof(w===null||w===void 0?void 0:w.readable)!=="boolean")return null;if(N(w))return!1;return W(w)&&w.readable&&!_(w)}function k(w){if(w&&w[U]!=null)return w[U];if(typeof(w===null||w===void 0?void 0:w.writable)!=="boolean")return null;if(N(w))return!1;return j(w)&&w.writable&&!x(w)}function O(w,c){if(!A(w))return null;if(N(w))return!0;if((c===null||c===void 0?void 0:c.readable)!==!1&&v(w))return!1;if((c===null||c===void 0?void 0:c.writable)!==!1&&k(w))return!1;return!0}function E(w){var c,J0;if(!A(w))return null;if(w.writableErrored)return w.writableErrored;return(c=(J0=w._writableState)===null||J0===void 0?void 0:J0.errored)!==null&&c!==void 0?c:null}function y(w){var c,J0;if(!A(w))return null;if(w.readableErrored)return w.readableErrored;return(c=(J0=w._readableState)===null||J0===void 0?void 0:J0.errored)!==null&&c!==void 0?c:null}function T(w){if(!A(w))return null;if(typeof w.closed==="boolean")return w.closed;let{_writableState:c,_readableState:J0}=w;if(typeof(c===null||c===void 0?void 0:c.closed)==="boolean"||typeof(J0===null||J0===void 0?void 0:J0.closed)==="boolean")return(c===null||c===void 0?void 0:c.closed)||(J0===null||J0===void 0?void 0:J0.closed);if(typeof w._closed==="boolean"&&o(w))return w._closed;return null}function o(w){return typeof w._closed==="boolean"&&typeof w._defaultKeepAlive==="boolean"&&typeof w._removedConnection==="boolean"&&typeof w._removedContLen==="boolean"}function e(w){return typeof w._sent100==="boolean"&&o(w)}function X0(w){var c;return typeof w._consuming==="boolean"&&typeof w._dumped==="boolean"&&((c=w.req)===null||c===void 0?void 0:c.upgradeOrConnect)===void 0}function H0(w){if(!A(w))return null;let{_writableState:c,_readableState:J0}=w,f=c||J0;return!f&&e(w)||!!(f&&f.autoDestroy&&f.emitClose&&f.closed===!1)}function p(w){var c;return!!(w&&((c=w[G])!==null&&c!==void 0?c:w.readableDidRead||w.readableAborted))}function V0(w){var c,J0,f,Y0,G0,W0,Z0,b,u,a;return!!(w&&((c=(J0=(f=(Y0=(G0=(W0=w[V])!==null&&W0!==void 0?W0:w.readableErrored)!==null&&G0!==void 0?G0:w.writableErrored)!==null&&Y0!==void 0?Y0:(Z0=w._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&f!==void 0?f:(b=w._writableState)===null||b===void 0?void 0:b.errorEmitted)!==null&&J0!==void 0?J0:(u=w._readableState)===null||u===void 0?void 0:u.errored)!==null&&c!==void 0?c:(a=w._writableState)===null||a===void 0?void 0:a.errored))}$.exports={isDestroyed:N,kIsDestroyed:Y,isDisturbed:p,kIsDisturbed:G,isErrored:V0,kIsErrored:V,isReadable:v,kIsReadable:q,kIsClosedPromise:B,kControllerErrorFunction:H,kIsWritable:U,isClosed:T,isDuplexNodeStream:S,isFinished:O,isIterable:F,isReadableNodeStream:W,isReadableStream:I,isReadableEnded:i,isReadableFinished:_,isReadableErrored:y,isNodeStream:A,isWebStream:P,isWritable:k,isWritableNodeStream:j,isWritableStream:L,isWritableEnded:x,isWritableFinished:d,isWritableErrored:E,isServerRequest:X0,isServerResponse:e,willEmitClose:H0,isTransformStream:z}}),k2=M0((Q,$)=>{var J=o2(),{AbortError:X,codes:K}=x0(),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_PREMATURE_CLOSE:V}=K,{kEmptyObject:q,once:U}=_0(),{validateAbortSignal:G,validateFunction:B,validateObject:H,validateBoolean:W}=a1(),{Promise:j,PromisePrototypeThen:S,SymbolDispose:A}=O0(),{isClosed:I,isReadable:L,isReadableNodeStream:z,isReadableStream:P,isReadableFinished:F,isReadableErrored:N,isWritable:x,isWritableNodeStream:d,isWritableStream:i,isWritableFinished:_,isWritableErrored:v,isNodeStream:k,willEmitClose:O,kIsClosedPromise:E}=I2(),y;function T(p){return p.setHeader&&typeof p.abort==="function"}var o=()=>{};function e(p,V0,w){var c,J0;if(arguments.length===2)w=V0,V0=q;else if(V0==null)V0=q;else H(V0,"options");if(B(w,"callback"),G(V0.signal,"options.signal"),w=U(w),P(p)||i(p))return X0(p,V0,w);if(!k(p))throw new Y("stream",["ReadableStream","WritableStream","Stream"],p);let f=(c=V0.readable)!==null&&c!==void 0?c:z(p),Y0=(J0=V0.writable)!==null&&J0!==void 0?J0:d(p),G0=p._writableState,W0=p._readableState,Z0=()=>{if(!p.writable)a()},b=O(p)&&z(p)===f&&d(p)===Y0,u=_(p,!1),a=()=>{if(u=!0,p.destroyed)b=!1;if(b&&(!p.readable||f))return;if(!f||U0)w.call(p)},U0=F(p,!1),z0=()=>{if(U0=!0,p.destroyed)b=!1;if(b&&(!p.writable||Y0))return;if(!Y0||u)w.call(p)},C=(D)=>{w.call(p,D)},R=I(p),g=()=>{R=!0;let D=v(p)||N(p);if(D&&typeof D!=="boolean")return w.call(p,D);if(f&&!U0&&z(p,!0)){if(!F(p,!1))return w.call(p,new V)}if(Y0&&!u){if(!_(p,!1))return w.call(p,new V)}w.call(p)},r=()=>{R=!0;let D=v(p)||N(p);if(D&&typeof D!=="boolean")return w.call(p,D);w.call(p)},t=()=>{p.req.on("finish",a)};if(T(p)){if(p.on("complete",a),!b)p.on("abort",g);if(p.req)t();else p.on("request",t)}else if(Y0&&!G0)p.on("end",Z0),p.on("close",Z0);if(!b&&typeof p.aborted==="boolean")p.on("aborted",g);if(p.on("end",z0),p.on("finish",a),V0.error!==!1)p.on("error",C);if(p.on("close",g),R)J.nextTick(g);else if(G0!==null&&G0!==void 0&&G0.errorEmitted||W0!==null&&W0!==void 0&&W0.errorEmitted){if(!b)J.nextTick(r)}else if(!f&&(!b||L(p))&&(u||x(p)===!1))J.nextTick(r);else if(!Y0&&(!b||x(p))&&(U0||L(p)===!1))J.nextTick(r);else if(W0&&p.req&&p.aborted)J.nextTick(r);let s=()=>{if(w=o,p.removeListener("aborted",g),p.removeListener("complete",a),p.removeListener("abort",g),p.removeListener("request",t),p.req)p.req.removeListener("finish",a);p.removeListener("end",Z0),p.removeListener("close",Z0),p.removeListener("finish",a),p.removeListener("end",z0),p.removeListener("error",C),p.removeListener("close",g)};if(V0.signal&&!R){let D=()=>{let m=w;s(),m.call(p,new X(void 0,{cause:V0.signal.reason}))};if(V0.signal.aborted)J.nextTick(D);else{y=y||_0().addAbortListener;let m=y(V0.signal,D),Q0=w;w=U((...l)=>{m[A](),Q0.apply(p,l)})}}return s}function X0(p,V0,w){let c=!1,J0=o;if(V0.signal)if(J0=()=>{c=!0,w.call(p,new X(void 0,{cause:V0.signal.reason}))},V0.signal.aborted)J.nextTick(J0);else{y=y||_0().addAbortListener;let Y0=y(V0.signal,J0),G0=w;w=U((...W0)=>{Y0[A](),G0.apply(p,W0)})}let f=(...Y0)=>{if(!c)J.nextTick(()=>w.apply(p,Y0))};return S(p[E].promise,f,f),o}function H0(p,V0){var w;let c=!1;if(V0===null)V0=q;if((w=V0)!==null&&w!==void 0&&w.cleanup)W(V0.cleanup,"cleanup"),c=V0.cleanup;return new j((J0,f)=>{let Y0=e(p,V0,(G0)=>{if(c)Y0();if(G0)f(G0);else J0()})})}$.exports=e,$.exports.finished=H0}),P1=M0((Q,$)=>{var J=o2(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:Y}=x0(),{Symbol:V}=O0(),{kIsDestroyed:q,isDestroyed:U,isFinished:G,isServerRequest:B}=I2(),H=V("kDestroy"),W=V("kConstruct");function j(O,E,y){if(O){if(O.stack,E&&!E.errored)E.errored=O;if(y&&!y.errored)y.errored=O}}function S(O,E){let y=this._readableState,T=this._writableState,o=T||y;if(T!==null&&T!==void 0&&T.destroyed||y!==null&&y!==void 0&&y.destroyed){if(typeof E==="function")E();return this}if(j(O,T,y),T)T.destroyed=!0;if(y)y.destroyed=!0;if(!o.constructed)this.once(H,function(e){A(this,X(e,O),E)});else A(this,O,E);return this}function A(O,E,y){let T=!1;function o(e){if(T)return;T=!0;let{_readableState:X0,_writableState:H0}=O;if(j(e,H0,X0),H0)H0.closed=!0;if(X0)X0.closed=!0;if(typeof y==="function")y(e);if(e)J.nextTick(I,O,e);else J.nextTick(L,O)}try{O._destroy(E||null,o)}catch(e){o(e)}}function I(O,E){z(O,E),L(O)}function L(O){let{_readableState:E,_writableState:y}=O;if(y)y.closeEmitted=!0;if(E)E.closeEmitted=!0;if(y!==null&&y!==void 0&&y.emitClose||E!==null&&E!==void 0&&E.emitClose)O.emit("close")}function z(O,E){let{_readableState:y,_writableState:T}=O;if(T!==null&&T!==void 0&&T.errorEmitted||y!==null&&y!==void 0&&y.errorEmitted)return;if(T)T.errorEmitted=!0;if(y)y.errorEmitted=!0;O.emit("error",E)}function P(){let O=this._readableState,E=this._writableState;if(O)O.constructed=!0,O.closed=!1,O.closeEmitted=!1,O.destroyed=!1,O.errored=null,O.errorEmitted=!1,O.reading=!1,O.ended=O.readable===!1,O.endEmitted=O.readable===!1;if(E)E.constructed=!0,E.destroyed=!1,E.closed=!1,E.closeEmitted=!1,E.errored=null,E.errorEmitted=!1,E.finalCalled=!1,E.prefinished=!1,E.ended=E.writable===!1,E.ending=E.writable===!1,E.finished=E.writable===!1}function F(O,E,y){let{_readableState:T,_writableState:o}=O;if(o!==null&&o!==void 0&&o.destroyed||T!==null&&T!==void 0&&T.destroyed)return this;if(T!==null&&T!==void 0&&T.autoDestroy||o!==null&&o!==void 0&&o.autoDestroy)O.destroy(E);else if(E){if(E.stack,o&&!o.errored)o.errored=E;if(T&&!T.errored)T.errored=E;if(y)J.nextTick(z,O,E);else z(O,E)}}function N(O,E){if(typeof O._construct!=="function")return;let{_readableState:y,_writableState:T}=O;if(y)y.constructed=!1;if(T)T.constructed=!1;if(O.once(W,E),O.listenerCount(W)>1)return;J.nextTick(x,O)}function x(O){let E=!1;function y(T){if(E){F(O,T!==null&&T!==void 0?T:new K);return}E=!0;let{_readableState:o,_writableState:e}=O,X0=e||o;if(o)o.constructed=!0;if(e)e.constructed=!0;if(X0.destroyed)O.emit(H,T);else if(T)F(O,T,!0);else J.nextTick(d,O)}try{O._construct((T)=>{J.nextTick(y,T)})}catch(T){J.nextTick(y,T)}}function d(O){O.emit(W)}function i(O){return(O===null||O===void 0?void 0:O.setHeader)&&typeof O.abort==="function"}function _(O){O.emit("close")}function v(O,E){O.emit("error",E),J.nextTick(_,O)}function k(O,E){if(!O||U(O))return;if(!E&&!G(O))E=new Y;if(B(O))O.socket=null,O.destroy(E);else if(i(O))O.abort();else if(i(O.req))O.req.abort();else if(typeof O.destroy==="function")O.destroy(E);else if(typeof O.close==="function")O.close();else if(E)J.nextTick(v,O,E);else J.nextTick(_,O);if(!O.destroyed)O[q]=!0}$.exports={construct:N,destroyer:k,destroy:S,undestroy:P,errorOrDestroy:F}}),r8=M0((Q,$)=>{var{ArrayIsArray:J,ObjectSetPrototypeOf:X}=O0(),{EventEmitter:K}=(r1(),u0(n1));function Y(q){K.call(this,q)}X(Y.prototype,K.prototype),X(Y,K),Y.prototype.pipe=function(q,U){let G=this;function B(L){if(q.writable&&q.write(L)===!1&&G.pause)G.pause()}G.on("data",B);function H(){if(G.readable&&G.resume)G.resume()}if(q.on("drain",H),!q._isStdio&&(!U||U.end!==!1))G.on("end",j),G.on("close",S);let W=!1;function j(){if(W)return;W=!0,q.end()}function S(){if(W)return;if(W=!0,typeof q.destroy==="function")q.destroy()}function A(L){if(I(),K.listenerCount(this,"error")===0)this.emit("error",L)}V(G,"error",A),V(q,"error",A);function I(){G.removeListener("data",B),q.removeListener("drain",H),G.removeListener("end",j),G.removeListener("close",S),G.removeListener("error",A),q.removeListener("error",A),G.removeListener("end",I),G.removeListener("close",I),q.removeListener("close",I)}return G.on("end",I),G.on("close",I),q.on("close",I),q.emit("pipe",G),q};function V(q,U,G){if(typeof q.prependListener==="function")return q.prependListener(U,G);if(!q._events||!q._events[U])q.on(U,G);else if(J(q._events[U]))q._events[U].unshift(G);else q._events[U]=[G,q._events[U]]}$.exports={Stream:Y,prependListener:V}}),y6=M0((Q,$)=>{var{SymbolDispose:J}=O0(),{AbortError:X,codes:K}=x0(),{isNodeStream:Y,isWebStream:V,kControllerErrorFunction:q}=I2(),U=k2(),{ERR_INVALID_ARG_TYPE:G}=K,B,H=(W,j)=>{if(typeof W!=="object"||!("aborted"in W))throw new G(j,"AbortSignal",W)};$.exports.addAbortSignal=function(W,j){if(H(W,"signal"),!Y(j)&&!V(j))throw new G("stream",["ReadableStream","WritableStream","Stream"],j);return $.exports.addAbortSignalNoValidate(W,j)},$.exports.addAbortSignalNoValidate=function(W,j){if(typeof W!=="object"||!("aborted"in W))return j;let S=Y(j)?()=>{j.destroy(new X(void 0,{cause:W.reason}))}:()=>{j[q](new X(void 0,{cause:W.reason}))};if(W.aborted)S();else{B=B||_0().addAbortListener;let A=B(W,S);U(j,A[J])}return j}}),Y9=M0((Q,$)=>{var{StringPrototypeSlice:J,SymbolIterator:X,TypedArrayPrototypeSet:K,Uint8Array:Y}=O0(),{Buffer:V}=(F2(),u0(M2)),{inspect:q}=_0();$.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(U){let G={data:U,next:null};if(this.length>0)this.tail.next=G;else this.head=G;this.tail=G,++this.length}unshift(U){let G={data:U,next:this.head};if(this.length===0)this.tail=G;this.head=G,++this.length}shift(){if(this.length===0)return;let U=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,U}clear(){this.head=this.tail=null,this.length=0}join(U){if(this.length===0)return"";let G=this.head,B=""+G.data;while((G=G.next)!==null)B+=U+G.data;return B}concat(U){if(this.length===0)return V.alloc(0);let G=V.allocUnsafe(U>>>0),B=this.head,H=0;while(B)K(G,B.data,H),H+=B.data.length,B=B.next;return G}consume(U,G){let B=this.head.data;if(U<B.length){let H=B.slice(0,U);return this.head.data=B.slice(U),H}if(U===B.length)return this.shift();return G?this._getString(U):this._getBuffer(U)}first(){return this.head.data}*[X](){for(let U=this.head;U;U=U.next)yield U.data}_getString(U){let G="",B=this.head,H=0;do{let W=B.data;if(U>W.length)G+=W,U-=W.length;else{if(U===W.length)if(G+=W,++H,B.next)this.head=B.next;else this.head=this.tail=null;else G+=J(W,0,U),this.head=B,B.data=J(W,U);break}++H}while((B=B.next)!==null);return this.length-=H,G}_getBuffer(U){let G=V.allocUnsafe(U),B=U,H=this.head,W=0;do{let j=H.data;if(U>j.length)K(G,j,B-U),U-=j.length;else{if(U===j.length)if(K(G,j,B-U),++W,H.next)this.head=H.next;else this.head=this.tail=null;else K(G,new Y(j.buffer,j.byteOffset,U),B-U),this.head=H,H.data=j.slice(U);break}++W}while((H=H.next)!==null);return this.length-=W,G}[Symbol.for("nodejs.util.inspect.custom")](U,G){return q(this,{...G,depth:0,customInspect:!1})}}}),h6=M0((Q,$)=>{var{MathFloor:J,NumberIsInteger:X}=O0(),{validateInteger:K}=a1(),{ERR_INVALID_ARG_VALUE:Y}=x0().codes,V=16384,q=16;function U(W,j,S){return W.highWaterMark!=null?W.highWaterMark:j?W[S]:null}function G(W){return W?q:V}function B(W,j){if(K(j,"value",0),W)q=j;else V=j}function H(W,j,S,A){let I=U(j,A,S);if(I!=null){if(!X(I)||I<0){let L=A?`options.${S}`:"options.highWaterMark";throw new Y(L,I)}return J(I)}return G(W.objectMode)}$.exports={getHighWaterMark:H,getDefaultHighWaterMark:G,setDefaultHighWaterMark:B}}),V9=M0((Q,$)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var J=(F2(),u0(M2)),X=J.Buffer;function K(V,q){for(var U in V)q[U]=V[U]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)$.exports=J;else K(J,Q),Q.Buffer=Y;function Y(V,q,U){return X(V,q,U)}Y.prototype=Object.create(X.prototype),K(X,Y),Y.from=function(V,q,U){if(typeof V==="number")throw TypeError("Argument must not be a number");return X(V,q,U)},Y.alloc=function(V,q,U){if(typeof V!=="number")throw TypeError("Argument must be a number");var G=X(V);if(q!==void 0)if(typeof U==="string")G.fill(q,U);else G.fill(q);else G.fill(0);return G},Y.allocUnsafe=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return X(V)},Y.allocUnsafeSlow=function(V){if(typeof V!=="number")throw TypeError("Argument must be a number");return J.SlowBuffer(V)}}),q9=M0((Q)=>{var $=V9().Buffer,J=$.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 X(z){if(!z)return"utf8";var P;while(!0)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(P)return;z=(""+z).toLowerCase(),P=!0}}function K(z){var P=X(z);if(typeof P!=="string"&&($.isEncoding===J||!J(z)))throw Error("Unknown encoding: "+z);return P||z}Q.StringDecoder=Y;function Y(z){this.encoding=K(z);var P;switch(this.encoding){case"utf16le":this.text=W,this.end=j,P=4;break;case"utf8":this.fillLast=G,P=4;break;case"base64":this.text=S,this.end=A,P=3;break;default:this.write=I,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$.allocUnsafe(P)}Y.prototype.write=function(z){if(z.length===0)return"";var P,F;if(this.lastNeed){if(P=this.fillLast(z),P===void 0)return"";F=this.lastNeed,this.lastNeed=0}else F=0;if(F<z.length)return P?P+this.text(z,F):this.text(z,F);return P||""},Y.prototype.end=H,Y.prototype.text=B,Y.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 V(z){if(z<=127)return 0;else if(z>>5===6)return 2;else if(z>>4===14)return 3;else if(z>>3===30)return 4;return z>>6===2?-1:-2}function q(z,P,F){var N=P.length-1;if(N<F)return 0;var x=V(P[N]);if(x>=0){if(x>0)z.lastNeed=x-1;return x}if(--N<F||x===-2)return 0;if(x=V(P[N]),x>=0){if(x>0)z.lastNeed=x-2;return x}if(--N<F||x===-2)return 0;if(x=V(P[N]),x>=0){if(x>0)if(x===2)x=0;else z.lastNeed=x-3;return x}return 0}function U(z,P,F){if((P[0]&192)!==128)return z.lastNeed=0,"�";if(z.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return z.lastNeed=1,"�";if(z.lastNeed>2&&P.length>2){if((P[2]&192)!==128)return z.lastNeed=2,"�"}}}function G(z){var P=this.lastTotal-this.lastNeed,F=U(this,z,P);if(F!==void 0)return F;if(this.lastNeed<=z.length)return z.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);z.copy(this.lastChar,P,0,z.length),this.lastNeed-=z.length}function B(z,P){var F=q(this,z,P);if(!this.lastNeed)return z.toString("utf8",P);this.lastTotal=F;var N=z.length-(F-this.lastNeed);return z.copy(this.lastChar,0,N),z.toString("utf8",P,N)}function H(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+"�";return P}function W(z,P){if((z.length-P)%2===0){var F=z.toString("utf16le",P);if(F){var N=F.charCodeAt(F.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1],F.slice(0,-1)}return F}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=z[z.length-1],z.toString("utf16le",P,z.length-1)}function j(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed){var F=this.lastTotal-this.lastNeed;return P+this.lastChar.toString("utf16le",0,F)}return P}function S(z,P){var F=(z.length-P)%3;if(F===0)return z.toString("base64",P);if(this.lastNeed=3-F,this.lastTotal=3,F===1)this.lastChar[0]=z[z.length-1];else this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1];return z.toString("base64",P,z.length-F)}function A(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+this.lastChar.toString("base64",0,3-this.lastNeed);return P}function I(z){return z.toString(this.encoding)}function L(z){return z&&z.length?this.write(z):""}}),r7=M0((Q,$)=>{var J=o2(),{PromisePrototypeThen:X,SymbolAsyncIterator:K,SymbolIterator:Y}=O0(),{Buffer:V}=(F2(),u0(M2)),{ERR_INVALID_ARG_TYPE:q,ERR_STREAM_NULL_VALUES:U}=x0().codes;function G(B,H,W){let j;if(typeof H==="string"||H instanceof V)return new B({objectMode:!0,...W,read(){this.push(H),this.push(null)}});let S;if(H&&H[K])S=!0,j=H[K]();else if(H&&H[Y])S=!1,j=H[Y]();else throw new q("iterable",["Iterable"],H);let A=new B({objectMode:!0,highWaterMark:1,...W}),I=!1;A._read=function(){if(!I)I=!0,z()},A._destroy=function(P,F){X(L(P),()=>J.nextTick(F,P),(N)=>J.nextTick(F,N||P))};async function L(P){let F=P!==void 0&&P!==null,N=typeof j.throw==="function";if(F&&N){let{value:x,done:d}=await j.throw(P);if(await x,d)return}if(typeof j.return==="function"){let{value:x}=await j.return();await x}}async function z(){for(;;){try{let{value:P,done:F}=S?await j.next():j.next();if(F)A.push(null);else{let N=P&&typeof P.then==="function"?await P:P;if(N===null)throw I=!1,new U;else if(A.push(N))continue;else I=!1}}catch(P){A.destroy(P)}break}}return A}$.exports=G}),g6=M0((Q,$)=>{var J=o2(),{ArrayPrototypeIndexOf:X,NumberIsInteger:K,NumberIsNaN:Y,NumberParseInt:V,ObjectDefineProperties:q,ObjectKeys:U,ObjectSetPrototypeOf:G,Promise:B,SafeSet:H,SymbolAsyncDispose:W,SymbolAsyncIterator:j,Symbol:S}=O0();$.exports=l,l.ReadableState=Q0;var{EventEmitter:A}=(r1(),u0(n1)),{Stream:I,prependListener:L}=r8(),{Buffer:z}=(F2(),u0(M2)),{addAbortSignal:P}=y6(),F=k2(),N=_0().debuglog("stream",(Z)=>{N=Z}),x=Y9(),d=P1(),{getHighWaterMark:i,getDefaultHighWaterMark:_}=h6(),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:k,ERR_METHOD_NOT_IMPLEMENTED:O,ERR_OUT_OF_RANGE:E,ERR_STREAM_PUSH_AFTER_EOF:y,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:T},AbortError:o}=x0(),{validateObject:e}=a1(),X0=S("kPaused"),{StringDecoder:H0}=q9(),p=r7();G(l.prototype,I.prototype),G(l,I);var V0=()=>{},{errorOrDestroy:w}=d,c=1,J0=2,f=4,Y0=8,G0=16,W0=32,Z0=64,b=128,u=256,a=512,U0=1024,z0=2048,C=4096,R=8192,g=16384,r=32768,t=65536,s=131072,D=262144;function m(Z){return{enumerable:!1,get(){return(this.state&Z)!==0},set(M){if(M)this.state|=Z;else this.state&=~Z}}}q(Q0.prototype,{objectMode:m(c),ended:m(J0),endEmitted:m(f),reading:m(Y0),constructed:m(G0),sync:m(W0),needReadable:m(Z0),emittedReadable:m(b),readableListening:m(u),resumeScheduled:m(a),errorEmitted:m(U0),emitClose:m(z0),autoDestroy:m(C),destroyed:m(R),closed:m(g),closeEmitted:m(r),multiAwaitDrain:m(t),readingMore:m(s),dataEmitted:m(D)});function Q0(Z,M,n){if(typeof n!=="boolean")n=M instanceof L2();if(this.state=z0|C|G0|W0,Z&&Z.objectMode)this.state|=c;if(n&&Z&&Z.readableObjectMode)this.state|=c;if(this.highWaterMark=Z?i(this,Z,"readableHighWaterMark",n):_(!1),this.buffer=new x,this.length=0,this.pipes=[],this.flowing=null,this[X0]=null,Z&&Z.emitClose===!1)this.state&=~z0;if(Z&&Z.autoDestroy===!1)this.state&=~C;if(this.errored=null,this.defaultEncoding=Z&&Z.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Z&&Z.encoding)this.decoder=new H0(Z.encoding),this.encoding=Z.encoding}function l(Z){if(!(this instanceof l))return new l(Z);let M=this instanceof L2();if(this._readableState=new Q0(Z,this,M),Z){if(typeof Z.read==="function")this._read=Z.read;if(typeof Z.destroy==="function")this._destroy=Z.destroy;if(typeof Z.construct==="function")this._construct=Z.construct;if(Z.signal&&!M)P(Z.signal,this)}I.call(this,Z),d.construct(this,()=>{if(this._readableState.needReadable)z1(this,this._readableState)})}l.prototype.destroy=d.destroy,l.prototype._undestroy=d.undestroy,l.prototype._destroy=function(Z,M){M(Z)},l.prototype[A.captureRejectionSymbol]=function(Z){this.destroy(Z)},l.prototype[W]=function(){let Z;if(!this.destroyed)Z=this.readableEnded?null:new o,this.destroy(Z);return new B((M,n)=>F(this,($0)=>$0&&$0!==Z?n($0):M(null)))},l.prototype.push=function(Z,M){return q0(this,Z,M,!1)},l.prototype.unshift=function(Z,M){return q0(this,Z,M,!0)};function q0(Z,M,n,$0){N("readableAddChunk",M);let K0=Z._readableState,S0;if((K0.state&c)===0){if(typeof M==="string"){if(n=n||K0.defaultEncoding,K0.encoding!==n)if($0&&K0.encoding)M=z.from(M,n).toString(K0.encoding);else M=z.from(M,n),n=""}else if(M instanceof z)n="";else if(I._isUint8Array(M))M=I._uint8ArrayToBuffer(M),n="";else if(M!=null)S0=new k("chunk",["string","Buffer","Uint8Array"],M)}if(S0)w(Z,S0);else if(M===null)K0.state&=~Y0,E0(Z,K0);else if((K0.state&c)!==0||M&&M.length>0)if($0)if((K0.state&f)!==0)w(Z,new T);else if(K0.destroyed||K0.errored)return!1;else F0(Z,K0,M,!0);else if(K0.ended)w(Z,new y);else if(K0.destroyed||K0.errored)return!1;else if(K0.state&=~Y0,K0.decoder&&!n)if(M=K0.decoder.write(M),K0.objectMode||M.length!==0)F0(Z,K0,M,!1);else z1(Z,K0);else F0(Z,K0,M,!1);else if(!$0)K0.state&=~Y0,z1(Z,K0);return!K0.ended&&(K0.length<K0.highWaterMark||K0.length===0)}function F0(Z,M,n,$0){if(M.flowing&&M.length===0&&!M.sync&&Z.listenerCount("data")>0){if((M.state&t)!==0)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;M.dataEmitted=!0,Z.emit("data",n)}else{if(M.length+=M.objectMode?1:n.length,$0)M.buffer.unshift(n);else M.buffer.push(n);if((M.state&Z0)!==0)g0(Z)}z1(Z,M)}l.prototype.isPaused=function(){let Z=this._readableState;return Z[X0]===!0||Z.flowing===!1},l.prototype.setEncoding=function(Z){let M=new H0(Z);this._readableState.decoder=M,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,$0="";for(let K0 of n)$0+=M.write(K0);if(n.clear(),$0!=="")n.push($0);return this._readableState.length=$0.length,this};var d0=1073741824;function l0(Z){if(Z>d0)throw new E("size","<= 1GiB",Z);else Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++;return Z}function p2(Z,M){if(Z<=0||M.length===0&&M.ended)return 0;if((M.state&c)!==0)return 1;if(Y(Z)){if(M.flowing&&M.length)return M.buffer.first().length;return M.length}if(Z<=M.length)return Z;return M.ended?M.length:0}l.prototype.read=function(Z){if(N("read",Z),Z===void 0)Z=NaN;else if(!K(Z))Z=V(Z,10);let M=this._readableState,n=Z;if(Z>M.highWaterMark)M.highWaterMark=l0(Z);if(Z!==0)M.state&=~b;if(Z===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended)){if(N("read: emitReadable",M.length,M.ended),M.length===0&&M.ended)C8(this);else g0(this);return null}if(Z=p2(Z,M),Z===0&&M.ended){if(M.length===0)C8(this);return null}let $0=(M.state&Z0)!==0;if(N("need readable",$0),M.length===0||M.length-Z<M.highWaterMark)$0=!0,N("length less than watermark",$0);if(M.ended||M.reading||M.destroyed||M.errored||!M.constructed)$0=!1,N("reading, ended or constructing",$0);else if($0){if(N("do read"),M.state|=Y0|W0,M.length===0)M.state|=Z0;try{this._read(M.highWaterMark)}catch(S0){w(this,S0)}if(M.state&=~W0,!M.reading)Z=p2(n,M)}let K0;if(Z>0)K0=O4(Z,M);else K0=null;if(K0===null)M.needReadable=M.length<=M.highWaterMark,Z=0;else if(M.length-=Z,M.multiAwaitDrain)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;if(M.length===0){if(!M.ended)M.needReadable=!0;if(n!==Z&&M.ended)C8(this)}if(K0!==null&&!M.errorEmitted&&!M.closeEmitted)M.dataEmitted=!0,this.emit("data",K0);return K0};function E0(Z,M){if(N("onEofChunk"),M.ended)return;if(M.decoder){let n=M.decoder.end();if(n&&n.length)M.buffer.push(n),M.length+=M.objectMode?1:n.length}if(M.ended=!0,M.sync)g0(Z);else M.needReadable=!1,M.emittedReadable=!0,U1(Z)}function g0(Z){let M=Z._readableState;if(N("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,!M.emittedReadable)N("emitReadable",M.flowing),M.emittedReadable=!0,J.nextTick(U1,Z)}function U1(Z){let M=Z._readableState;if(N("emitReadable_",M.destroyed,M.length,M.ended),!M.destroyed&&!M.errored&&(M.length||M.ended))Z.emit("readable"),M.emittedReadable=!1;M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,w4(Z)}function z1(Z,M){if(!M.readingMore&&M.constructed)M.readingMore=!0,J.nextTick(X2,Z,M)}function X2(Z,M){while(!M.reading&&!M.ended&&(M.length<M.highWaterMark||M.flowing&&M.length===0)){let n=M.length;if(N("maybeReadMore read 0"),Z.read(0),n===M.length)break}M.readingMore=!1}l.prototype._read=function(Z){throw new O("_read()")},l.prototype.pipe=function(Z,M){let n=this,$0=this._readableState;if($0.pipes.length===1){if(!$0.multiAwaitDrain)$0.multiAwaitDrain=!0,$0.awaitDrainWriters=new H($0.awaitDrainWriters?[$0.awaitDrainWriters]:[])}$0.pipes.push(Z),N("pipe count=%d opts=%j",$0.pipes.length,M);let K0=(!M||M.end!==!1)&&Z!==J.stdout&&Z!==J.stderr?i0:_1;if($0.endEmitted)J.nextTick(K0);else n.once("end",K0);Z.on("unpipe",S0);function S0(m2,j2){if(N("onunpipe"),m2===n){if(j2&&j2.hasUnpiped===!1)j2.hasUnpiped=!0,fX()}}function i0(){N("onend"),Z.end()}let c2,D4=!1;function fX(){if(N("cleanup"),Z.removeListener("close",R8),Z.removeListener("finish",T8),c2)Z.removeListener("drain",c2);if(Z.removeListener("error",A8),Z.removeListener("unpipe",S0),n.removeListener("end",i0),n.removeListener("end",_1),n.removeListener("data",R4),D4=!0,c2&&$0.awaitDrainWriters&&(!Z._writableState||Z._writableState.needDrain))c2()}function A4(){if(!D4){if($0.pipes.length===1&&$0.pipes[0]===Z)N("false write response, pause",0),$0.awaitDrainWriters=Z,$0.multiAwaitDrain=!1;else if($0.pipes.length>1&&$0.pipes.includes(Z))N("false write response, pause",$0.awaitDrainWriters.size),$0.awaitDrainWriters.add(Z);n.pause()}if(!c2)c2=EX(n,Z),Z.on("drain",c2)}n.on("data",R4);function R4(m2){N("ondata");let j2=Z.write(m2);if(N("dest.write",j2),j2===!1)A4()}function A8(m2){if(N("onerror",m2),_1(),Z.removeListener("error",A8),Z.listenerCount("error")===0){let j2=Z._writableState||Z._readableState;if(j2&&!j2.errorEmitted)w(Z,m2);else Z.emit("error",m2)}}L(Z,"error",A8);function R8(){Z.removeListener("finish",T8),_1()}Z.once("close",R8);function T8(){N("onfinish"),Z.removeListener("close",R8),_1()}Z.once("finish",T8);function _1(){N("unpipe"),n.unpipe(Z)}if(Z.emit("pipe",n),Z.writableNeedDrain===!0)A4();else if(!$0.flowing)N("pipe resume"),n.resume();return Z};function EX(Z,M){return function(){let n=Z._readableState;if(n.awaitDrainWriters===M)N("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)N("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(M);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&Z.listenerCount("data"))Z.resume()}}l.prototype.unpipe=function(Z){let M=this._readableState,n={hasUnpiped:!1};if(M.pipes.length===0)return this;if(!Z){let K0=M.pipes;M.pipes=[],this.pause();for(let S0=0;S0<K0.length;S0++)K0[S0].emit("unpipe",this,{hasUnpiped:!1});return this}let $0=X(M.pipes,Z);if($0===-1)return this;if(M.pipes.splice($0,1),M.pipes.length===0)this.pause();return Z.emit("unpipe",this,n),this},l.prototype.on=function(Z,M){let n=I.prototype.on.call(this,Z,M),$0=this._readableState;if(Z==="data"){if($0.readableListening=this.listenerCount("readable")>0,$0.flowing!==!1)this.resume()}else if(Z==="readable"){if(!$0.endEmitted&&!$0.readableListening){if($0.readableListening=$0.needReadable=!0,$0.flowing=!1,$0.emittedReadable=!1,N("on readable",$0.length,$0.reading),$0.length)g0(this);else if(!$0.reading)J.nextTick(SX,this)}}return n},l.prototype.addListener=l.prototype.on,l.prototype.removeListener=function(Z,M){let n=I.prototype.removeListener.call(this,Z,M);if(Z==="readable")J.nextTick(I4,this);return n},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(Z){let M=I.prototype.removeAllListeners.apply(this,arguments);if(Z==="readable"||Z===void 0)J.nextTick(I4,this);return M};function I4(Z){let M=Z._readableState;if(M.readableListening=Z.listenerCount("readable")>0,M.resumeScheduled&&M[X0]===!1)M.flowing=!0;else if(Z.listenerCount("data")>0)Z.resume();else if(!M.readableListening)M.flowing=null}function SX(Z){N("readable nexttick read 0"),Z.read(0)}l.prototype.resume=function(){let Z=this._readableState;if(!Z.flowing)N("resume"),Z.flowing=!Z.readableListening,vX(this,Z);return Z[X0]=!1,this};function vX(Z,M){if(!M.resumeScheduled)M.resumeScheduled=!0,J.nextTick(xX,Z,M)}function xX(Z,M){if(N("resume",M.reading),!M.reading)Z.read(0);if(M.resumeScheduled=!1,Z.emit("resume"),w4(Z),M.flowing&&!M.reading)Z.read(0)}l.prototype.pause=function(){if(N("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)N("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[X0]=!0,this};function w4(Z){let M=Z._readableState;N("flow",M.flowing);while(M.flowing&&Z.read()!==null);}l.prototype.wrap=function(Z){let M=!1;Z.on("data",($0)=>{if(!this.push($0)&&Z.pause)M=!0,Z.pause()}),Z.on("end",()=>{this.push(null)}),Z.on("error",($0)=>{w(this,$0)}),Z.on("close",()=>{this.destroy()}),Z.on("destroy",()=>{this.destroy()}),this._read=()=>{if(M&&Z.resume)M=!1,Z.resume()};let n=U(Z);for(let $0=1;$0<n.length;$0++){let K0=n[$0];if(this[K0]===void 0&&typeof Z[K0]==="function")this[K0]=Z[K0].bind(Z)}return this},l.prototype[j]=function(){return N4(this)},l.prototype.iterator=function(Z){if(Z!==void 0)e(Z,"options");return N4(this,Z)};function N4(Z,M){if(typeof Z.read!=="function")Z=l.wrap(Z,{objectMode:!0});let n=yX(Z,M);return n.stream=Z,n}async function*yX(Z,M){let n=V0;function $0(i0){if(this===Z)n(),n=V0;else n=i0}Z.on("readable",$0);let K0,S0=F(Z,{writable:!1},(i0)=>{K0=i0?v(K0,i0):null,n(),n=V0});try{while(!0){let i0=Z.destroyed?null:Z.read();if(i0!==null)yield i0;else if(K0)throw K0;else if(K0===null)return;else await new B($0)}}catch(i0){throw K0=v(K0,i0),K0}finally{if((K0||(M===null||M===void 0?void 0:M.destroyOnReturn)!==!1)&&(K0===void 0||Z._readableState.autoDestroy))d.destroyer(Z,null);else Z.off("readable",$0),S0()}}q(l.prototype,{readable:{__proto__:null,get(){let Z=this._readableState;return!!Z&&Z.readable!==!1&&!Z.destroyed&&!Z.errorEmitted&&!Z.endEmitted},set(Z){if(this._readableState)this._readableState.readable=!!Z}},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(Z){if(this._readableState)this._readableState.flowing=Z}},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(Z){if(!this._readableState)return;this._readableState.destroyed=Z}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),q(Q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[X0]!==!1},set(Z){this[X0]=!!Z}}}),l._fromList=O4;function O4(Z,M){if(M.length===0)return null;let n;if(M.objectMode)n=M.buffer.shift();else if(!Z||Z>=M.length){if(M.decoder)n=M.buffer.join("");else if(M.buffer.length===1)n=M.buffer.first();else n=M.buffer.concat(M.length);M.buffer.clear()}else n=M.buffer.consume(Z,M.decoder);return n}function C8(Z){let M=Z._readableState;if(N("endReadable",M.endEmitted),!M.endEmitted)M.ended=!0,J.nextTick(hX,M,Z)}function hX(Z,M){if(N("endReadableNT",Z.endEmitted,Z.length),!Z.errored&&!Z.closeEmitted&&!Z.endEmitted&&Z.length===0){if(Z.endEmitted=!0,M.emit("end"),M.writable&&M.allowHalfOpen===!1)J.nextTick(gX,M);else if(Z.autoDestroy){let n=M._writableState;if(!n||n.autoDestroy&&(n.finished||n.writable===!1))M.destroy()}}}function gX(Z){if(Z.writable&&!Z.writableEnded&&!Z.destroyed)Z.end()}l.from=function(Z,M){return p(l,Z,M)};var D8;function C4(){if(D8===void 0)D8={};return D8}l.fromWeb=function(Z,M){return C4().newStreamReadableFromReadableStream(Z,M)},l.toWeb=function(Z,M){return C4().newReadableStreamFromStreamReadable(Z,M)},l.wrap=function(Z,M){var n,$0;return new l({objectMode:(n=($0=Z.readableObjectMode)!==null&&$0!==void 0?$0:Z.objectMode)!==null&&n!==void 0?n:!0,...M,destroy(K0,S0){d.destroyer(Z,K0),S0(K0)}}).wrap(Z)}}),o8=M0((Q,$)=>{var J=o2(),{ArrayPrototypeSlice:X,Error:K,FunctionPrototypeSymbolHasInstance:Y,ObjectDefineProperty:V,ObjectDefineProperties:q,ObjectSetPrototypeOf:U,StringPrototypeToLowerCase:G,Symbol:B,SymbolHasInstance:H}=O0();$.exports=e,e.WritableState=T;var{EventEmitter:W}=(r1(),u0(n1)),j=r8().Stream,{Buffer:S}=(F2(),u0(M2)),A=P1(),{addAbortSignal:I}=y6(),{getHighWaterMark:L,getDefaultHighWaterMark:z}=h6(),{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:F,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:x,ERR_STREAM_DESTROYED:d,ERR_STREAM_ALREADY_FINISHED:i,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:v,ERR_UNKNOWN_ENCODING:k}=x0().codes,{errorOrDestroy:O}=A;U(e.prototype,j.prototype),U(e,j);function E(){}var y=B("kOnFinished");function T(C,R,g){if(typeof g!=="boolean")g=R instanceof L2();if(this.objectMode=!!(C&&C.objectMode),g)this.objectMode=this.objectMode||!!(C&&C.writableObjectMode);this.highWaterMark=C?L(this,C,"writableHighWaterMark",g):z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(C&&C.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=w.bind(void 0,R),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,o(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[y]=[]}function o(C){C.buffered=[],C.bufferedIndex=0,C.allBuffers=!0,C.allNoop=!0}T.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},V(T.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(C){let R=this instanceof L2();if(!R&&!Y(e,this))return new e(C);if(this._writableState=new T(C,this,R),C){if(typeof C.write==="function")this._write=C.write;if(typeof C.writev==="function")this._writev=C.writev;if(typeof C.destroy==="function")this._destroy=C.destroy;if(typeof C.final==="function")this._final=C.final;if(typeof C.construct==="function")this._construct=C.construct;if(C.signal)I(C.signal,this)}j.call(this,C),A.construct(this,()=>{let g=this._writableState;if(!g.writing)Y0(this,g);b(this,g)})}V(e,H,{__proto__:null,value:function(C){if(Y(this,C))return!0;if(this!==e)return!1;return C&&C._writableState instanceof T}}),e.prototype.pipe=function(){O(this,new x)};function X0(C,R,g,r){let t=C._writableState;if(typeof g==="function")r=g,g=t.defaultEncoding;else{if(!g)g=t.defaultEncoding;else if(g!=="buffer"&&!S.isEncoding(g))throw new k(g);if(typeof r!=="function")r=E}if(R===null)throw new _;else if(!t.objectMode)if(typeof R==="string"){if(t.decodeStrings!==!1)R=S.from(R,g),g="buffer"}else if(R instanceof S)g="buffer";else if(j._isUint8Array(R))R=j._uint8ArrayToBuffer(R),g="buffer";else throw new P("chunk",["string","Buffer","Uint8Array"],R);let s;if(t.ending)s=new v;else if(t.destroyed)s=new d("write");if(s)return J.nextTick(r,s),O(C,s,!0),s;return t.pendingcb++,H0(C,t,R,g,r)}e.prototype.write=function(C,R,g){return X0(this,C,R,g)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let C=this._writableState;if(C.corked){if(C.corked--,!C.writing)Y0(this,C)}},e.prototype.setDefaultEncoding=function(C){if(typeof C==="string")C=G(C);if(!S.isEncoding(C))throw new k(C);return this._writableState.defaultEncoding=C,this};function H0(C,R,g,r,t){let s=R.objectMode?1:g.length;R.length+=s;let D=R.length<R.highWaterMark;if(!D)R.needDrain=!0;if(R.writing||R.corked||R.errored||!R.constructed){if(R.buffered.push({chunk:g,encoding:r,callback:t}),R.allBuffers&&r!=="buffer")R.allBuffers=!1;if(R.allNoop&&t!==E)R.allNoop=!1}else R.writelen=s,R.writecb=t,R.writing=!0,R.sync=!0,C._write(g,r,R.onwrite),R.sync=!1;return D&&!R.errored&&!R.destroyed}function p(C,R,g,r,t,s,D){if(R.writelen=r,R.writecb=D,R.writing=!0,R.sync=!0,R.destroyed)R.onwrite(new d("write"));else if(g)C._writev(t,R.onwrite);else C._write(t,s,R.onwrite);R.sync=!1}function V0(C,R,g,r){--R.pendingcb,r(g),f(R),O(C,g)}function w(C,R){let g=C._writableState,r=g.sync,t=g.writecb;if(typeof t!=="function"){O(C,new N);return}if(g.writing=!1,g.writecb=null,g.length-=g.writelen,g.writelen=0,R){if(R.stack,!g.errored)g.errored=R;if(C._readableState&&!C._readableState.errored)C._readableState.errored=R;if(r)J.nextTick(V0,C,g,R,t);else V0(C,g,R,t)}else{if(g.buffered.length>g.bufferedIndex)Y0(C,g);if(r)if(g.afterWriteTickInfo!==null&&g.afterWriteTickInfo.cb===t)g.afterWriteTickInfo.count++;else g.afterWriteTickInfo={count:1,cb:t,stream:C,state:g},J.nextTick(c,g.afterWriteTickInfo);else J0(C,g,1,t)}}function c({stream:C,state:R,count:g,cb:r}){return R.afterWriteTickInfo=null,J0(C,R,g,r)}function J0(C,R,g,r){if(!R.ending&&!C.destroyed&&R.length===0&&R.needDrain)R.needDrain=!1,C.emit("drain");while(g-- >0)R.pendingcb--,r();if(R.destroyed)f(R);b(C,R)}function f(C){if(C.writing)return;for(let t=C.bufferedIndex;t<C.buffered.length;++t){var R;let{chunk:s,callback:D}=C.buffered[t],m=C.objectMode?1:s.length;C.length-=m,D((R=C.errored)!==null&&R!==void 0?R:new d("write"))}let g=C[y].splice(0);for(let t=0;t<g.length;t++){var r;g[t]((r=C.errored)!==null&&r!==void 0?r:new d("end"))}o(C)}function Y0(C,R){if(R.corked||R.bufferProcessing||R.destroyed||!R.constructed)return;let{buffered:g,bufferedIndex:r,objectMode:t}=R,s=g.length-r;if(!s)return;let D=r;if(R.bufferProcessing=!0,s>1&&C._writev){R.pendingcb-=s-1;let m=R.allNoop?E:(l)=>{for(let q0=D;q0<g.length;++q0)g[q0].callback(l)},Q0=R.allNoop&&D===0?g:X(g,D);Q0.allBuffers=R.allBuffers,p(C,R,!0,R.length,Q0,"",m),o(R)}else{do{let{chunk:m,encoding:Q0,callback:l}=g[D];g[D++]=null;let q0=t?1:m.length;p(C,R,!1,q0,m,Q0,l)}while(D<g.length&&!R.writing);if(D===g.length)o(R);else if(D>256)g.splice(0,D),R.bufferedIndex=0;else R.bufferedIndex=D}R.bufferProcessing=!1}e.prototype._write=function(C,R,g){if(this._writev)this._writev([{chunk:C,encoding:R}],g);else throw new F("_write()")},e.prototype._writev=null,e.prototype.end=function(C,R,g){let r=this._writableState;if(typeof C==="function")g=C,C=null,R=null;else if(typeof R==="function")g=R,R=null;let t;if(C!==null&&C!==void 0){let s=X0(this,C,R);if(s instanceof K)t=s}if(r.corked)r.corked=1,this.uncork();if(t);else if(!r.errored&&!r.ending)r.ending=!0,b(this,r,!0),r.ended=!0;else if(r.finished)t=new i("end");else if(r.destroyed)t=new d("end");if(typeof g==="function")if(t||r.finished)J.nextTick(g,t);else r[y].push(g);return this};function G0(C){return C.ending&&!C.destroyed&&C.constructed&&C.length===0&&!C.errored&&C.buffered.length===0&&!C.finished&&!C.writing&&!C.errorEmitted&&!C.closeEmitted}function W0(C,R){let g=!1;function r(t){if(g){O(C,t!==null&&t!==void 0?t:N());return}if(g=!0,R.pendingcb--,t){let s=R[y].splice(0);for(let D=0;D<s.length;D++)s[D](t);O(C,t,R.sync)}else if(G0(R))R.prefinished=!0,C.emit("prefinish"),R.pendingcb++,J.nextTick(u,C,R)}R.sync=!0,R.pendingcb++;try{C._final(r)}catch(t){r(t)}R.sync=!1}function Z0(C,R){if(!R.prefinished&&!R.finalCalled)if(typeof C._final==="function"&&!R.destroyed)R.finalCalled=!0,W0(C,R);else R.prefinished=!0,C.emit("prefinish")}function b(C,R,g){if(G0(R)){if(Z0(C,R),R.pendingcb===0){if(g)R.pendingcb++,J.nextTick((r,t)=>{if(G0(t))u(r,t);else t.pendingcb--},C,R);else if(G0(R))R.pendingcb++,u(C,R)}}}function u(C,R){R.pendingcb--,R.finished=!0;let g=R[y].splice(0);for(let r=0;r<g.length;r++)g[r]();if(C.emit("finish"),R.autoDestroy){let r=C._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))C.destroy()}}q(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(C){if(this._writableState)this._writableState.destroyed=C}},writable:{__proto__:null,get(){let C=this._writableState;return!!C&&C.writable!==!1&&!C.destroyed&&!C.errored&&!C.ending&&!C.ended},set(C){if(this._writableState)this._writableState.writable=!!C}},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 C=this._writableState;if(!C)return!1;return!C.destroyed&&!C.ending&&C.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 a=A.destroy;e.prototype.destroy=function(C,R){let g=this._writableState;if(!g.destroyed&&(g.bufferedIndex<g.buffered.length||g[y].length))J.nextTick(f,g);return a.call(this,C,R),this},e.prototype._undestroy=A.undestroy,e.prototype._destroy=function(C,R){R(C)},e.prototype[W.captureRejectionSymbol]=function(C){this.destroy(C)};var U0;function z0(){if(U0===void 0)U0={};return U0}e.fromWeb=function(C,R){return z0().newStreamWritableFromWritableStream(C,R)},e.toWeb=function(C){return z0().newWritableStreamFromStreamWritable(C)}}),B9=M0((Q,$)=>{var J=o2(),X=(F2(),u0(M2)),{isReadable:K,isWritable:Y,isIterable:V,isNodeStream:q,isReadableNodeStream:U,isWritableNodeStream:G,isDuplexNodeStream:B,isReadableStream:H,isWritableStream:W}=I2(),j=k2(),{AbortError:S,codes:{ERR_INVALID_ARG_TYPE:A,ERR_INVALID_RETURN_VALUE:I}}=x0(),{destroyer:L}=P1(),z=L2(),P=g6(),F=o8(),{createDeferredPromise:N}=_0(),x=r7(),d=globalThis.Blob||X.Blob,i=typeof d<"u"?function(y){return y instanceof d}:function(y){return!1},_=globalThis.AbortController||o1().AbortController,{FunctionPrototypeCall:v}=O0();class k extends z{constructor(y){super(y);if((y===null||y===void 0?void 0:y.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((y===null||y===void 0?void 0:y.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}$.exports=function y(T,o){if(B(T))return T;if(U(T))return E({readable:T});if(G(T))return E({writable:T});if(q(T))return E({writable:!1,readable:!1});if(H(T))return E({readable:P.fromWeb(T)});if(W(T))return E({writable:F.fromWeb(T)});if(typeof T==="function"){let{value:X0,write:H0,final:p,destroy:V0}=O(T);if(V(X0))return x(k,X0,{objectMode:!0,write:H0,final:p,destroy:V0});let w=X0===null||X0===void 0?void 0:X0.then;if(typeof w==="function"){let c,J0=v(w,X0,(f)=>{if(f!=null)throw new I("nully","body",f)},(f)=>{L(c,f)});return c=new k({objectMode:!0,readable:!1,write:H0,final(f){p(async()=>{try{await J0,J.nextTick(f,null)}catch(Y0){J.nextTick(f,Y0)}})},destroy:V0})}throw new I("Iterable, AsyncIterable or AsyncFunction",o,X0)}if(i(T))return y(T.arrayBuffer());if(V(T))return x(k,T,{objectMode:!0,writable:!1});if(H(T===null||T===void 0?void 0:T.readable)&&W(T===null||T===void 0?void 0:T.writable))return k.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?U(T===null||T===void 0?void 0:T.readable)?T===null||T===void 0?void 0:T.readable:y(T.readable):void 0,H0=T!==null&&T!==void 0&&T.writable?G(T===null||T===void 0?void 0:T.writable)?T===null||T===void 0?void 0:T.writable:y(T.writable):void 0;return E({readable:X0,writable:H0})}let e=T===null||T===void 0?void 0:T.then;if(typeof e==="function"){let X0;return v(e,T,(H0)=>{if(H0!=null)X0.push(H0);X0.push(null)},(H0)=>{L(X0,H0)}),X0=new k({objectMode:!0,writable:!1,read(){}})}throw new A(o,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],T)};function O(y){let{promise:T,resolve:o}=N(),e=new _,X0=e.signal;return{value:y(async function*(){while(!0){let H0=T;T=null;let{chunk:p,done:V0,cb:w}=await H0;if(J.nextTick(w),V0)return;if(X0.aborted)throw new S(void 0,{cause:X0.reason});({promise:T,resolve:o}=N()),yield p}}(),{signal:X0}),write(H0,p,V0){let w=o;o=null,w({chunk:H0,done:!1,cb:V0})},final(H0){let p=o;o=null,p({done:!0,cb:H0})},destroy(H0,p){e.abort(),p(H0)}}}function E(y){let T=y.readable&&typeof y.readable.read!=="function"?P.wrap(y.readable):y.readable,o=y.writable,e=!!K(T),X0=!!Y(o),H0,p,V0,w,c;function J0(f){let Y0=w;if(w=null,Y0)Y0(f);else if(f)c.destroy(f)}if(c=new k({readableObjectMode:!!(T!==null&&T!==void 0&&T.readableObjectMode),writableObjectMode:!!(o!==null&&o!==void 0&&o.writableObjectMode),readable:e,writable:X0}),X0)j(o,(f)=>{if(X0=!1,f)L(T,f);J0(f)}),c._write=function(f,Y0,G0){if(o.write(f,Y0))G0();else H0=G0},c._final=function(f){o.end(),p=f},o.on("drain",function(){if(H0){let f=H0;H0=null,f()}}),o.on("finish",function(){if(p){let f=p;p=null,f()}});if(e)j(T,(f)=>{if(e=!1,f)L(T,f);J0(f)}),T.on("readable",function(){if(V0){let f=V0;V0=null,f()}}),T.on("end",function(){c.push(null)}),c._read=function(){while(!0){let f=T.read();if(f===null){V0=c._read;return}if(!c.push(f))return}};return c._destroy=function(f,Y0){if(!f&&w!==null)f=new S;if(V0=null,H0=null,p=null,w===null)Y0(f);else w=Y0,L(o,f),L(T,f)},c}}),L2=M0((Q,$)=>{var{ObjectDefineProperties:J,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:K,ObjectSetPrototypeOf:Y}=O0();$.exports=U;var V=g6(),q=o8();Y(U.prototype,V.prototype),Y(U,V);{let W=K(q.prototype);for(let j=0;j<W.length;j++){let S=W[j];if(!U.prototype[S])U.prototype[S]=q.prototype[S]}}function U(W){if(!(this instanceof U))return new U(W);if(V.call(this,W),q.call(this,W),W){if(this.allowHalfOpen=W.allowHalfOpen!==!1,W.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(W.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}J(U.prototype,{writable:{__proto__:null,...X(q.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(q.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(q.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(q.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(q.prototype,"writableLength")},writableFinished:{__proto__:null,...X(q.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(q.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(q.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(q.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(W){if(this._readableState&&this._writableState)this._readableState.destroyed=W,this._writableState.destroyed=W}}});var G;function B(){if(G===void 0)G={};return G}U.fromWeb=function(W,j){return B().newStreamDuplexFromReadableWritablePair(W,j)},U.toWeb=function(W){return B().newReadableWritablePairFromDuplex(W)};var H;U.from=function(W){if(!H)H=B9();return H(W,"body")}}),o7=M0((Q,$)=>{var{ObjectSetPrototypeOf:J,Symbol:X}=O0();$.exports=U;var{ERR_METHOD_NOT_IMPLEMENTED:K}=x0().codes,Y=L2(),{getHighWaterMark:V}=h6();J(U.prototype,Y.prototype),J(U,Y);var q=X("kCallback");function U(H){if(!(this instanceof U))return new U(H);let W=H?V(this,H,"readableHighWaterMark",!0):null;if(W===0)H={...H,highWaterMark:null,readableHighWaterMark:W,writableHighWaterMark:H.writableHighWaterMark||0};if(Y.call(this,H),this._readableState.sync=!1,this[q]=null,H){if(typeof H.transform==="function")this._transform=H.transform;if(typeof H.flush==="function")this._flush=H.flush}this.on("prefinish",B)}function G(H){if(typeof this._flush==="function"&&!this.destroyed)this._flush((W,j)=>{if(W){if(H)H(W);else this.destroy(W);return}if(j!=null)this.push(j);if(this.push(null),H)H()});else if(this.push(null),H)H()}function B(){if(this._final!==G)G.call(this)}U.prototype._final=G,U.prototype._transform=function(H,W,j){throw new K("_transform()")},U.prototype._write=function(H,W,j){let S=this._readableState,A=this._writableState,I=S.length;this._transform(H,W,(L,z)=>{if(L){j(L);return}if(z!=null)this.push(z);if(A.ended||I===S.length||S.length<S.highWaterMark)j();else this[q]=j})},U.prototype._read=function(){if(this[q]){let H=this[q];this[q]=null,H()}}}),a7=M0((Q,$)=>{var{ObjectSetPrototypeOf:J}=O0();$.exports=K;var X=o7();J(K.prototype,X.prototype),J(K,X);function K(Y){if(!(this instanceof K))return new K(Y);X.call(this,Y)}K.prototype._transform=function(Y,V,q){q(null,Y)}}),a8=M0((Q,$)=>{var J=o2(),{ArrayIsArray:X,Promise:K,SymbolAsyncIterator:Y,SymbolDispose:V}=O0(),q=k2(),{once:U}=_0(),G=P1(),B=L2(),{aggregateTwoErrors:H,codes:{ERR_INVALID_ARG_TYPE:W,ERR_INVALID_RETURN_VALUE:j,ERR_MISSING_ARGS:S,ERR_STREAM_DESTROYED:A,ERR_STREAM_PREMATURE_CLOSE:I},AbortError:L}=x0(),{validateFunction:z,validateAbortSignal:P}=a1(),{isIterable:F,isReadable:N,isReadableNodeStream:x,isNodeStream:d,isTransformStream:i,isWebStream:_,isReadableStream:v,isReadableFinished:k}=I2(),O=globalThis.AbortController||o1().AbortController,E,y,T;function o(f,Y0,G0){let W0=!1;f.on("close",()=>{W0=!0});let Z0=q(f,{readable:Y0,writable:G0},(b)=>{W0=!b});return{destroy:(b)=>{if(W0)return;W0=!0,G.destroyer(f,b||new A("pipe"))},cleanup:Z0}}function e(f){return z(f[f.length-1],"streams[stream.length - 1]"),f.pop()}function X0(f){if(F(f))return f;else if(x(f))return H0(f);throw new W("val",["Readable","Iterable","AsyncIterable"],f)}async function*H0(f){if(!y)y=g6();yield*y.prototype[Y].call(f)}async function p(f,Y0,G0,{end:W0}){let Z0,b=null,u=(z0)=>{if(z0)Z0=z0;if(b){let C=b;b=null,C()}},a=()=>new K((z0,C)=>{if(Z0)C(Z0);else b=()=>{if(Z0)C(Z0);else z0()}});Y0.on("drain",u);let U0=q(Y0,{readable:!1},u);try{if(Y0.writableNeedDrain)await a();for await(let z0 of f)if(!Y0.write(z0))await a();if(W0)Y0.end(),await a();G0()}catch(z0){G0(Z0!==z0?H(Z0,z0):z0)}finally{U0(),Y0.off("drain",u)}}async function V0(f,Y0,G0,{end:W0}){if(i(Y0))Y0=Y0.writable;let Z0=Y0.getWriter();try{for await(let b of f)await Z0.ready,Z0.write(b).catch(()=>{});if(await Z0.ready,W0)await Z0.close();G0()}catch(b){try{await Z0.abort(b),G0(b)}catch(u){G0(u)}}}function w(...f){return c(f,U(e(f)))}function c(f,Y0,G0){if(f.length===1&&X(f[0]))f=f[0];if(f.length<2)throw new S("streams");let W0=new O,Z0=W0.signal,b=G0===null||G0===void 0?void 0:G0.signal,u=[];P(b,"options.signal");function a(){t(new L)}T=T||_0().addAbortListener;let U0;if(b)U0=T(b,a);let z0,C,R=[],g=0;function r(l){t(l,--g===0)}function t(l,q0){var F0;if(l&&(!z0||z0.code==="ERR_STREAM_PREMATURE_CLOSE"))z0=l;if(!z0&&!q0)return;while(R.length)R.shift()(z0);if((F0=U0)===null||F0===void 0||F0[V](),W0.abort(),q0){if(!z0)u.forEach((d0)=>d0());J.nextTick(Y0,z0,C)}}let s;for(let l=0;l<f.length;l++){let q0=f[l],F0=l<f.length-1,d0=l>0,l0=F0||(G0===null||G0===void 0?void 0:G0.end)!==!1,p2=l===f.length-1;if(d(q0)){let E0=function(g0){if(g0&&g0.name!=="AbortError"&&g0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(g0)};var D=E0;if(l0){let{destroy:g0,cleanup:U1}=o(q0,F0,d0);if(R.push(g0),N(q0)&&p2)u.push(U1)}if(q0.on("error",E0),N(q0)&&p2)u.push(()=>{q0.removeListener("error",E0)})}if(l===0)if(typeof q0==="function"){if(s=q0({signal:Z0}),!F(s))throw new j("Iterable, AsyncIterable or Stream","source",s)}else if(F(q0)||x(q0)||i(q0))s=q0;else s=B.from(q0);else if(typeof q0==="function"){if(i(s)){var m;s=X0((m=s)===null||m===void 0?void 0:m.readable)}else s=X0(s);if(s=q0(s,{signal:Z0}),F0){if(!F(s,!0))throw new j("AsyncIterable",`transform[${l-1}]`,s)}else{var Q0;if(!E)E=a7();let E0=new E({objectMode:!0}),g0=(Q0=s)===null||Q0===void 0?void 0:Q0.then;if(typeof g0==="function")g++,g0.call(s,(X2)=>{if(C=X2,X2!=null)E0.write(X2);if(l0)E0.end();J.nextTick(r)},(X2)=>{E0.destroy(X2),J.nextTick(r,X2)});else if(F(s,!0))g++,p(s,E0,r,{end:l0});else if(v(s)||i(s)){let X2=s.readable||s;g++,p(X2,E0,r,{end:l0})}else throw new j("AsyncIterable or Promise","destination",s);s=E0;let{destroy:U1,cleanup:z1}=o(s,!1,!0);if(R.push(U1),p2)u.push(z1)}}else if(d(q0)){if(x(s)){g+=2;let E0=J0(s,q0,r,{end:l0});if(N(q0)&&p2)u.push(E0)}else if(i(s)||v(s)){let E0=s.readable||s;g++,p(E0,q0,r,{end:l0})}else if(F(s))g++,p(s,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else if(_(q0)){if(x(s))g++,V0(X0(s),q0,r,{end:l0});else if(v(s)||F(s))g++,V0(s,q0,r,{end:l0});else if(i(s))g++,V0(s.readable,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else s=B.from(q0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||b!==null&&b!==void 0&&b.aborted)J.nextTick(a);return s}function J0(f,Y0,G0,{end:W0}){let Z0=!1;if(Y0.on("close",()=>{if(!Z0)G0(new I)}),f.pipe(Y0,{end:!1}),W0){let u=function(){Z0=!0,Y0.end()};var b=u;if(k(f))J.nextTick(u);else f.once("end",u)}else G0();return q(f,{readable:!0,writable:!1},(u)=>{let a=f._readableState;if(u&&u.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted)f.once("end",G0).once("error",G0);else G0(u)}),q(Y0,{readable:!1,writable:!0},G0)}$.exports={pipelineImpl:c,pipeline:w}}),s7=M0((Q,$)=>{var{pipeline:J}=a8(),X=L2(),{destroyer:K}=P1(),{isNodeStream:Y,isReadable:V,isWritable:q,isWebStream:U,isTransformStream:G,isWritableStream:B,isReadableStream:H}=I2(),{AbortError:W,codes:{ERR_INVALID_ARG_VALUE:j,ERR_MISSING_ARGS:S}}=x0(),A=k2();$.exports=function(...I){if(I.length===0)throw new S("streams");if(I.length===1)return X.from(I[0]);let L=[...I];if(typeof I[0]==="function")I[0]=X.from(I[0]);if(typeof I[I.length-1]==="function"){let O=I.length-1;I[O]=X.from(I[O])}for(let O=0;O<I.length;++O){if(!Y(I[O])&&!U(I[O]))continue;if(O<I.length-1&&!(V(I[O])||H(I[O])||G(I[O])))throw new j(`streams[${O}]`,L[O],"must be readable");if(O>0&&!(q(I[O])||B(I[O])||G(I[O])))throw new j(`streams[${O}]`,L[O],"must be writable")}let z,P,F,N,x;function d(O){let E=N;if(N=null,E)E(O);else if(O)x.destroy(O);else if(!k&&!v)x.destroy()}let i=I[0],_=J(I,d),v=!!(q(i)||B(i)||G(i)),k=!!(V(_)||H(_)||G(_));if(x=new X({writableObjectMode:!!(i!==null&&i!==void 0&&i.writableObjectMode),readableObjectMode:!!(_!==null&&_!==void 0&&_.readableObjectMode),writable:v,readable:k}),v){if(Y(i))x._write=function(E,y,T){if(i.write(E,y))T();else z=T},x._final=function(E){i.end(),P=E},i.on("drain",function(){if(z){let E=z;z=null,E()}});else if(U(i)){let E=(G(i)?i.writable:i).getWriter();x._write=async function(y,T,o){try{await E.ready,E.write(y).catch(()=>{}),o()}catch(e){o(e)}},x._final=async function(y){try{await E.ready,E.close().catch(()=>{}),P=y}catch(T){y(T)}}}let O=G(_)?_.readable:_;A(O,()=>{if(P){let E=P;P=null,E()}})}if(k){if(Y(_))_.on("readable",function(){if(F){let O=F;F=null,O()}}),_.on("end",function(){x.push(null)}),x._read=function(){while(!0){let O=_.read();if(O===null){F=x._read;return}if(!x.push(O))return}};else if(U(_)){let O=(G(_)?_.readable:_).getReader();x._read=async function(){while(!0)try{let{value:E,done:y}=await O.read();if(!x.push(E))return;if(y){x.push(null);return}}catch{return}}}}return x._destroy=function(O,E){if(!O&&N!==null)O=new W;if(F=null,z=null,P=null,N===null)E(O);else if(N=E,Y(_))K(_,O)},x}}),G9=M0((Q,$)=>{var J=globalThis.AbortController||o1().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:K,ERR_MISSING_ARGS:Y,ERR_OUT_OF_RANGE:V},AbortError:q}=x0(),{validateAbortSignal:U,validateInteger:G,validateObject:B}=a1(),H=O0().Symbol("kWeak"),W=O0().Symbol("kResistStopPropagation"),{finished:j}=k2(),S=s7(),{addAbortSignalNoValidate:A}=y6(),{isWritable:I,isNodeStream:L}=I2(),{deprecate:z}=_0(),{ArrayPrototypePush:P,Boolean:F,MathFloor:N,Number:x,NumberIsNaN:d,Promise:i,PromiseReject:_,PromiseResolve:v,PromisePrototypeThen:k,Symbol:O}=O0(),E=O("kEmpty"),y=O("kEof");function T(b,u){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");if(L(b)&&!I(b))throw new X("stream",b,"must be writable");let a=S(this,b);if(u!==null&&u!==void 0&&u.signal)A(u.signal,a);return a}function o(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");let a=1;if((u===null||u===void 0?void 0:u.concurrency)!=null)a=N(u.concurrency);let U0=a-1;if((u===null||u===void 0?void 0:u.highWaterMark)!=null)U0=N(u.highWaterMark);return G(a,"options.concurrency",1),G(U0,"options.highWaterMark",0),U0+=a,async function*(){let z0=_0().AbortSignalAny([u===null||u===void 0?void 0:u.signal].filter(F)),C=this,R=[],g={signal:z0},r,t,s=!1,D=0;function m(){s=!0,Q0()}function Q0(){D-=1,l()}function l(){if(t&&!s&&D<a&&R.length<U0)t(),t=null}async function q0(){try{for await(let F0 of C){if(s)return;if(z0.aborted)throw new q;try{if(F0=b(F0,g),F0===E)continue;F0=v(F0)}catch(d0){F0=_(d0)}if(D+=1,k(F0,Q0,m),R.push(F0),r)r(),r=null;if(!s&&(R.length>=U0||D>=a))await new i((d0)=>{t=d0})}R.push(y)}catch(F0){let d0=_(F0);k(d0,Q0,m),R.push(d0)}finally{if(s=!0,r)r(),r=null}}q0();try{while(!0){while(R.length>0){let F0=await R[0];if(F0===y)return;if(z0.aborted)throw new q;if(F0!==E)yield F0;R.shift(),l()}await new i((F0)=>{r=F0})}}finally{if(s=!0,t)t(),t=null}}.call(this)}function e(b=void 0){if(b!=null)B(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)U(b.signal,"options.signal");return async function*(){let u=0;for await(let U0 of this){var a;if(b!==null&&b!==void 0&&(a=b.signal)!==null&&a!==void 0&&a.aborted)throw new q({cause:b.signal.reason});yield[u++,U0]}}.call(this)}async function X0(b,u=void 0){for await(let a of w.call(this,b,u))return!0;return!1}async function H0(b,u=void 0){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);return!await X0.call(this,async(...a)=>{return!await b(...a)},u)}async function p(b,u){for await(let a of w.call(this,b,u))return a;return}async function V0(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);async function a(U0,z0){return await b(U0,z0),E}for await(let U0 of o.call(this,a,u));}function w(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);async function a(U0,z0){if(await b(U0,z0))return U0;return E}return o.call(this,a,u)}class c extends Y{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function J0(b,u,a){var U0;if(typeof b!=="function")throw new K("reducer",["Function","AsyncFunction"],b);if(a!=null)B(a,"options");if((a===null||a===void 0?void 0:a.signal)!=null)U(a.signal,"options.signal");let z0=arguments.length>1;if(a!==null&&a!==void 0&&(U0=a.signal)!==null&&U0!==void 0&&U0.aborted){let t=new q(void 0,{cause:a.signal.reason});throw this.once("error",()=>{}),await j(this.destroy(t)),t}let C=new J,R=C.signal;if(a!==null&&a!==void 0&&a.signal){let t={once:!0,[H]:this,[W]:!0};a.signal.addEventListener("abort",()=>C.abort(),t)}let g=!1;try{for await(let t of this){var r;if(g=!0,a!==null&&a!==void 0&&(r=a.signal)!==null&&r!==void 0&&r.aborted)throw new q;if(!z0)u=t,z0=!0;else u=await b(u,t,{signal:R})}if(!g&&!z0)throw new c}finally{C.abort()}return u}async function f(b){if(b!=null)B(b,"options");if((b===null||b===void 0?void 0:b.signal)!=null)U(b.signal,"options.signal");let u=[];for await(let U0 of this){var a;if(b!==null&&b!==void 0&&(a=b.signal)!==null&&a!==void 0&&a.aborted)throw new q(void 0,{cause:b.signal.reason});P(u,U0)}return u}function Y0(b,u){let a=o.call(this,b,u);return async function*(){for await(let U0 of a)yield*U0}.call(this)}function G0(b){if(b=x(b),d(b))return 0;if(b<0)throw new V("number",">= 0",b);return b}function W0(b,u=void 0){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");return b=G0(b),async function*(){var a;if(u!==null&&u!==void 0&&(a=u.signal)!==null&&a!==void 0&&a.aborted)throw new q;for await(let z0 of this){var U0;if(u!==null&&u!==void 0&&(U0=u.signal)!==null&&U0!==void 0&&U0.aborted)throw new q;if(b--<=0)yield z0}}.call(this)}function Z0(b,u=void 0){if(u!=null)B(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");return b=G0(b),async function*(){var a;if(u!==null&&u!==void 0&&(a=u.signal)!==null&&a!==void 0&&a.aborted)throw new q;for await(let z0 of this){var U0;if(u!==null&&u!==void 0&&(U0=u.signal)!==null&&U0!==void 0&&U0.aborted)throw new q;if(b-- >0)yield z0;if(b<=0)return}}.call(this)}$.exports.streamReturningOperators={asIndexedPairs:z(e,"readable.asIndexedPairs will be removed in a future version."),drop:W0,filter:w,flatMap:Y0,map:o,take:Z0,compose:T},$.exports.promiseReturningOperators={every:H0,forEach:V0,reduce:J0,toArray:f,some:X0,find:p}}),t7=M0((Q,$)=>{var{ArrayPrototypePop:J,Promise:X}=O0(),{isIterable:K,isNodeStream:Y,isWebStream:V}=I2(),{pipelineImpl:q}=a8(),{finished:U}=k2();e7();function G(...B){return new X((H,W)=>{let j,S,A=B[B.length-1];if(A&&typeof A==="object"&&!Y(A)&&!K(A)&&!V(A)){let I=J(B);j=I.signal,S=I.end}q(B,(I,L)=>{if(I)W(I);else H(L)},{signal:j,end:S})})}$.exports={finished:U,pipeline:G}}),e7=M0((Q,$)=>{var{Buffer:J}=(F2(),u0(M2)),{ObjectDefineProperty:X,ObjectKeys:K,ReflectApply:Y}=O0(),{promisify:{custom:V}}=_0(),{streamReturningOperators:q,promiseReturningOperators:U}=G9(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:G}}=x0(),B=s7(),{setDefaultHighWaterMark:H,getDefaultHighWaterMark:W}=h6(),{pipeline:j}=a8(),{destroyer:S}=P1(),A=k2(),I=t7(),L=I2(),z=$.exports=r8().Stream;z.isDestroyed=L.isDestroyed,z.isDisturbed=L.isDisturbed,z.isErrored=L.isErrored,z.isReadable=L.isReadable,z.isWritable=L.isWritable,z.Readable=g6();for(let F of K(q)){let N=function(...d){if(new.target)throw G();return z.Readable.from(Y(x,this,d))},x=q[F];X(N,"name",{__proto__:null,value:x.name}),X(N,"length",{__proto__:null,value:x.length}),X(z.Readable.prototype,F,{__proto__:null,value:N,enumerable:!1,configurable:!0,writable:!0})}for(let F of K(U)){let N=function(...d){if(new.target)throw G();return Y(x,this,d)},x=U[F];X(N,"name",{__proto__:null,value:x.name}),X(N,"length",{__proto__:null,value:x.length}),X(z.Readable.prototype,F,{__proto__:null,value:N,enumerable:!1,configurable:!0,writable:!0})}z.Writable=o8(),z.Duplex=L2(),z.Transform=o7(),z.PassThrough=a7(),z.pipeline=j;var{addAbortSignal:P}=y6();z.addAbortSignal=P,z.finished=A,z.destroy=S,z.compose=B,z.setDefaultHighWaterMark=H,z.getDefaultHighWaterMark=W,X(z,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return I}}),X(j,V,{__proto__:null,enumerable:!0,get(){return I.pipeline}}),X(A,V,{__proto__:null,enumerable:!0,get(){return I.finished}}),z.Stream=z,z._isUint8Array=function(F){return F instanceof Uint8Array},z._uint8ArrayToBuffer=function(F){return J.from(F.buffer,F.byteOffset,F.byteLength)}}),U9=M0((Q,$)=>{var J=s8();{let X=e7(),K=t7(),Y=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=Y,$.exports.pipeline=X.pipeline,$.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return K}}),$.exports.Stream=X.Stream}$.exports.default=$.exports});QQ.exports=U9()});var t8=B0((dB,$Q)=>{$Q.exports=s8()});var w2=B0((p0)=>{p0.base64=!0;p0.array=!0;p0.string=!0;p0.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";p0.nodebuffer=typeof Buffer<"u";p0.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")p0.blob=!1;else{f6=new ArrayBuffer(0);try{p0.blob=new Blob([f6],{type:"application/zip"}).size===0}catch(Q){try{e8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,_6=new e8,_6.append(f6),p0.blob=_6.getBlob("application/zip").size===0}catch($){p0.blob=!1}}}var f6,e8,_6;try{p0.nodestream=!!t8().Readable}catch(Q){p0.nodestream=!1}});var $5=B0((Q5)=>{var z9=C0(),Z9=w2(),q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";Q5.encode=function(Q){var $=[],J,X,K,Y,V,q,U,G=0,B=Q.length,H=B,W=z9.getTypeOf(Q)!=="string";while(G<Q.length){if(H=B-G,!W)J=Q.charCodeAt(G++),X=G<B?Q.charCodeAt(G++):0,K=G<B?Q.charCodeAt(G++):0;else J=Q[G++],X=G<B?Q[G++]:0,K=G<B?Q[G++]:0;Y=J>>2,V=(J&3)<<4|X>>4,q=H>1?(X&15)<<2|K>>6:64,U=H>2?K&63:64,$.push(q2.charAt(Y)+q2.charAt(V)+q2.charAt(q)+q2.charAt(U))}return $.join("")};Q5.decode=function(Q){var $,J,X,K,Y,V,q,U=0,G=0,B="data:";if(Q.substr(0,B.length)===B)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var H=Q.length*3/4;if(Q.charAt(Q.length-1)===q2.charAt(64))H--;if(Q.charAt(Q.length-2)===q2.charAt(64))H--;if(H%1!==0)throw Error("Invalid base64 input, bad content length.");var W;if(Z9.uint8array)W=new Uint8Array(H|0);else W=Array(H|0);while(U<Q.length){if(K=q2.indexOf(Q.charAt(U++)),Y=q2.indexOf(Q.charAt(U++)),V=q2.indexOf(Q.charAt(U++)),q=q2.indexOf(Q.charAt(U++)),$=K<<2|Y>>4,J=(Y&15)<<4|V>>2,X=(V&3)<<6|q,W[G++]=$,V!==64)W[G++]=J;if(q!==64)W[G++]=X}return W}});var s1=B0((nB,JQ)=>{JQ.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,$){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,$);else{if(typeof Q==="number")throw 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 YQ=B0((rB,KQ)=>{var XQ=global.MutationObserver||global.WebKitMutationObserver,t1;if(XQ)u6=0,J5=new XQ(b6),p6=global.document.createTextNode(""),J5.observe(p6,{characterData:!0}),t1=function(){p6.data=u6=++u6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")c6=new global.MessageChannel,c6.port1.onmessage=b6,t1=function(){c6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))t1=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){b6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else t1=function(){setTimeout(b6,0)};var u6,J5,p6,c6,X5,e1=[];function b6(){X5=!0;var Q,$,J=e1.length;while(J){$=e1,e1=[],Q=-1;while(++Q<J)$[Q]();J=e1.length}X5=!1}KQ.exports=H9;function H9(Q){if(e1.push(Q)===1&&!X5)t1()}});var zQ=B0((oB,UQ)=>{var W9=YQ();function M1(){}var v0={},VQ=["REJECTED"],K5=["FULFILLED"],qQ=["PENDING"];UQ.exports=E2;function E2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=qQ,this.queue=[],this.outcome=void 0,Q!==M1)BQ(this,Q)}E2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var $=this.constructor;return this.then(J,X);function J(K){function Y(){return K}return $.resolve(Q()).then(Y)}function X(K){function Y(){throw K}return $.resolve(Q()).then(Y)}};E2.prototype.catch=function(Q){return this.then(null,Q)};E2.prototype.then=function(Q,$){if(typeof Q!=="function"&&this.state===K5||typeof $!=="function"&&this.state===VQ)return this;var J=new this.constructor(M1);if(this.state!==qQ){var X=this.state===K5?Q:$;Y5(J,X,this.outcome)}else this.queue.push(new Q6(J,Q,$));return J};function Q6(Q,$,J){if(this.promise=Q,typeof $==="function")this.onFulfilled=$,this.callFulfilled=this.otherCallFulfilled;if(typeof J==="function")this.onRejected=J,this.callRejected=this.otherCallRejected}Q6.prototype.callFulfilled=function(Q){v0.resolve(this.promise,Q)};Q6.prototype.otherCallFulfilled=function(Q){Y5(this.promise,this.onFulfilled,Q)};Q6.prototype.callRejected=function(Q){v0.reject(this.promise,Q)};Q6.prototype.otherCallRejected=function(Q){Y5(this.promise,this.onRejected,Q)};function Y5(Q,$,J){W9(function(){var X;try{X=$(J)}catch(K){return v0.reject(Q,K)}if(X===Q)v0.reject(Q,TypeError("Cannot resolve promise with itself"));else v0.resolve(Q,X)})}v0.resolve=function(Q,$){var J=GQ(j9,$);if(J.status==="error")return v0.reject(Q,J.value);var X=J.value;if(X)BQ(Q,X);else{Q.state=K5,Q.outcome=$;var K=-1,Y=Q.queue.length;while(++K<Y)Q.queue[K].callFulfilled($)}return Q};v0.reject=function(Q,$){Q.state=VQ,Q.outcome=$;var J=-1,X=Q.queue.length;while(++J<X)Q.queue[J].callRejected($);return Q};function j9(Q){var $=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof $==="function")return function(){$.apply(Q,arguments)}}function BQ(Q,$){var J=!1;function X(q){if(J)return;J=!0,v0.reject(Q,q)}function K(q){if(J)return;J=!0,v0.resolve(Q,q)}function Y(){$(K,X)}var V=GQ(Y);if(V.status==="error")X(V.value)}function GQ(Q,$){var J={};try{J.value=Q($),J.status="success"}catch(X){J.status="error",J.value=X}return J}E2.resolve=P9;function P9(Q){if(Q instanceof this)return Q;return v0.resolve(new this(M1),Q)}E2.reject=M9;function M9(Q){var $=new this(M1);return v0.reject($,Q)}E2.all=F9;function F9(Q){var $=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var J=Q.length,X=!1;if(!J)return this.resolve([]);var K=Array(J),Y=0,V=-1,q=new this(M1);while(++V<J)U(Q[V],V);return q;function U(G,B){$.resolve(G).then(H,function(W){if(!X)X=!0,v0.reject(q,W)});function H(W){if(K[B]=W,++Y===J&&!X)X=!0,v0.resolve(q,K)}}}E2.race=L9;function L9(Q){var $=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var J=Q.length,X=!1;if(!J)return this.resolve([]);var K=-1,Y=new this(M1);while(++K<J)V(Q[K]);return Y;function V(q){$.resolve(q).then(function(U){if(!X)X=!0,v0.resolve(Y,U)},function(U){if(!X)X=!0,v0.reject(Y,U)})}}});var F1=B0((aB,ZQ)=>{var V5=null;if(typeof Promise<"u")V5=Promise;else V5=zQ();ZQ.exports={Promise:V5}});var WQ=B0((HQ)=>{(function(Q,$){if(Q.setImmediate)return;var J=1,X={},K=!1,Y=Q.document,V;function q(z){if(typeof z!=="function")z=Function(""+z);var P=Array(arguments.length-1);for(var F=0;F<P.length;F++)P[F]=arguments[F+1];var N={callback:z,args:P};return X[J]=N,V(J),J++}function U(z){delete X[z]}function G(z){var{callback:P,args:F}=z;switch(F.length){case 0:P();break;case 1:P(F[0]);break;case 2:P(F[0],F[1]);break;case 3:P(F[0],F[1],F[2]);break;default:P.apply($,F);break}}function B(z){if(K)setTimeout(B,0,z);else{var P=X[z];if(P){K=!0;try{G(P)}finally{U(z),K=!1}}}}function H(){V=function(z){process.nextTick(function(){B(z)})}}function W(){if(Q.postMessage&&!Q.importScripts){var z=!0,P=Q.onmessage;return Q.onmessage=function(){z=!1},Q.postMessage("","*"),Q.onmessage=P,z}}function j(){var z="setImmediate$"+Math.random()+"$",P=function(F){if(F.source===Q&&typeof F.data==="string"&&F.data.indexOf(z)===0)B(+F.data.slice(z.length))};if(Q.addEventListener)Q.addEventListener("message",P,!1);else Q.attachEvent("onmessage",P);V=function(F){Q.postMessage(z+F,"*")}}function S(){var z=new MessageChannel;z.port1.onmessage=function(P){var F=P.data;B(F)},V=function(P){z.port2.postMessage(P)}}function A(){var z=Y.documentElement;V=function(P){var F=Y.createElement("script");F.onreadystatechange=function(){B(P),F.onreadystatechange=null,z.removeChild(F),F=null},z.appendChild(F)}}function I(){V=function(z){setTimeout(B,0,z)}}var L=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(L=L&&L.setTimeout?L:Q,{}.toString.call(Q.process)==="[object process]")H();else if(W())j();else if(Q.MessageChannel)S();else if(Y&&"onreadystatechange"in Y.createElement("script"))A();else I();L.setImmediate=q,L.clearImmediate=U})(typeof self>"u"?typeof global>"u"?HQ:global:self)});var C0=B0((A0)=>{var S2=w2(),I9=$5(),L1=s1(),q5=F1();WQ();function w9(Q){var $=null;if(S2.uint8array)$=new Uint8Array(Q.length);else $=Array(Q.length);return d6(Q,$)}A0.newBlob=function(Q,$){A0.checkSupport("blob");try{return new Blob([Q],{type:$})}catch(K){try{var J=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new J;return X.append(Q),X.getBlob($)}catch(Y){throw Error("Bug : can't construct the Blob.")}}};function $6(Q){return Q}function d6(Q,$){for(var J=0;J<Q.length;++J)$[J]=Q.charCodeAt(J)&255;return $}var m6={stringifyByChunk:function(Q,$,J){var X=[],K=0,Y=Q.length;if(Y<=J)return String.fromCharCode.apply(null,Q);while(K<Y){if($==="array"||$==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(K,Math.min(K+J,Y))));else X.push(String.fromCharCode.apply(null,Q.subarray(K,Math.min(K+J,Y))));K+=J}return X.join("")},stringifyByChar:function(Q){var $="";for(var J=0;J<Q.length;J++)$+=String.fromCharCode(Q[J]);return $},applyCanBeUsed:{uint8array:function(){try{return S2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return S2.nodebuffer&&String.fromCharCode.apply(null,L1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function J6(Q){var $=65536,J=A0.getTypeOf(Q),X=!0;if(J==="uint8array")X=m6.applyCanBeUsed.uint8array;else if(J==="nodebuffer")X=m6.applyCanBeUsed.nodebuffer;if(X)while($>1)try{return m6.stringifyByChunk(Q,J,$)}catch(K){$=Math.floor($/2)}return m6.stringifyByChar(Q)}A0.applyFromCharCode=J6;function l6(Q,$){for(var J=0;J<Q.length;J++)$[J]=Q[J];return $}var v2={};v2.string={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.string.uint8array(Q).buffer},uint8array:function(Q){return d6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return d6(Q,L1.allocBuffer(Q.length))}};v2.array={string:J6,array:$6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return L1.newBufferFrom(Q)}};v2.arraybuffer={string:function(Q){return J6(new Uint8Array(Q))},array:function(Q){return l6(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:$6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return L1.newBufferFrom(new Uint8Array(Q))}};v2.uint8array={string:J6,array:function(Q){return l6(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:$6,nodebuffer:function(Q){return L1.newBufferFrom(Q)}};v2.nodebuffer={string:J6,array:function(Q){return l6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return l6(Q,new Uint8Array(Q.length))},nodebuffer:$6};A0.transformTo=function(Q,$){if(!$)$="";if(!Q)return $;A0.checkSupport(Q);var J=A0.getTypeOf($),X=v2[J][Q]($);return X};A0.resolve=function(Q){var $=Q.split("/"),J=[];for(var X=0;X<$.length;X++){var K=$[X];if(K==="."||K===""&&X!==0&&X!==$.length-1)continue;else if(K==="..")J.pop();else J.push(K)}return J.join("/")};A0.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(S2.nodebuffer&&L1.isBuffer(Q))return"nodebuffer";if(S2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(S2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};A0.checkSupport=function(Q){var $=S2[Q.toLowerCase()];if(!$)throw Error(Q+" is not supported by this platform")};A0.MAX_VALUE_16BITS=65535;A0.MAX_VALUE_32BITS=-1;A0.pretty=function(Q){var $="",J,X;for(X=0;X<(Q||"").length;X++)J=Q.charCodeAt(X),$+="\\x"+(J<16?"0":"")+J.toString(16).toUpperCase();return $};A0.delay=function(Q,$,J){setImmediate(function(){Q.apply(J||null,$||[])})};A0.inherits=function(Q,$){var J=function(){};J.prototype=$.prototype,Q.prototype=new J};A0.extend=function(){var Q={},$,J;for($=0;$<arguments.length;$++)for(J in arguments[$])if(Object.prototype.hasOwnProperty.call(arguments[$],J)&&typeof Q[J]>"u")Q[J]=arguments[$][J];return Q};A0.prepareContent=function(Q,$,J,X,K){var Y=q5.Promise.resolve($).then(function(V){var q=S2.blob&&(V instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(V))!==-1);if(q&&typeof FileReader<"u")return new q5.Promise(function(U,G){var B=new FileReader;B.onload=function(H){U(H.target.result)},B.onerror=function(H){G(H.target.error)},B.readAsArrayBuffer(V)});else return V});return Y.then(function(V){var q=A0.getTypeOf(V);if(!q)return q5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(q==="arraybuffer")V=A0.transformTo("uint8array",V);else if(q==="string"){if(K)V=I9.decode(V);else if(J){if(X!==!0)V=w9(V)}}return V})}});var c0=B0((eB,PQ)=>{function jQ(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}jQ.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 J=0;J<this._listeners[Q].length;J++)this._listeners[Q][J].call(this,$)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var $=this;return Q.on("data",function(J){$.processChunk(J)}),Q.on("end",function(){$.end()}),Q.on("error",function(J){$.error(J)}),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 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}};PQ.exports=jQ});var w1=B0((x2)=>{var I1=C0(),a2=w2(),N9=s1(),i6=c0(),X6=Array(256);for(B2=0;B2<256;B2++)X6[B2]=B2>=252?6:B2>=248?5:B2>=240?4:B2>=224?3:B2>=192?2:1;var B2;X6[254]=X6[254]=1;var O9=function(Q){var $,J,X,K,Y,V=Q.length,q=0;for(K=0;K<V;K++){if(J=Q.charCodeAt(K),(J&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)J=65536+(J-55296<<10)+(X-56320),K++}q+=J<128?1:J<2048?2:J<65536?3:4}if(a2.uint8array)$=new Uint8Array(q);else $=Array(q);for(Y=0,K=0;Y<q;K++){if(J=Q.charCodeAt(K),(J&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)J=65536+(J-55296<<10)+(X-56320),K++}if(J<128)$[Y++]=J;else if(J<2048)$[Y++]=192|J>>>6,$[Y++]=128|J&63;else if(J<65536)$[Y++]=224|J>>>12,$[Y++]=128|J>>>6&63,$[Y++]=128|J&63;else $[Y++]=240|J>>>18,$[Y++]=128|J>>>12&63,$[Y++]=128|J>>>6&63,$[Y++]=128|J&63}return $},C9=function(Q,$){var J;if($=$||Q.length,$>Q.length)$=Q.length;J=$-1;while(J>=0&&(Q[J]&192)===128)J--;if(J<0)return $;if(J===0)return $;return J+X6[Q[J]]>$?J:$},D9=function(Q){var $,J,X,K,Y=Q.length,V=Array(Y*2);for(J=0,$=0;$<Y;){if(X=Q[$++],X<128){V[J++]=X;continue}if(K=X6[X],K>4){V[J++]=65533,$+=K-1;continue}X&=K===2?31:K===3?15:7;while(K>1&&$<Y)X=X<<6|Q[$++]&63,K--;if(K>1){V[J++]=65533;continue}if(X<65536)V[J++]=X;else X-=65536,V[J++]=55296|X>>10&1023,V[J++]=56320|X&1023}if(V.length!==J)if(V.subarray)V=V.subarray(0,J);else V.length=J;return I1.applyFromCharCode(V)};x2.utf8encode=function($){if(a2.nodebuffer)return N9.newBufferFrom($,"utf-8");return O9($)};x2.utf8decode=function($){if(a2.nodebuffer)return I1.transformTo("nodebuffer",$).toString("utf-8");return $=I1.transformTo(a2.uint8array?"uint8array":"array",$),D9($)};function n6(){i6.call(this,"utf-8 decode"),this.leftOver=null}I1.inherits(n6,i6);n6.prototype.processChunk=function(Q){var $=I1.transformTo(a2.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(a2.uint8array){var J=$;$=new Uint8Array(J.length+this.leftOver.length),$.set(this.leftOver,0),$.set(J,this.leftOver.length)}else $=this.leftOver.concat($);this.leftOver=null}var X=C9($),K=$;if(X!==$.length)if(a2.uint8array)K=$.subarray(0,X),this.leftOver=$.subarray(X,$.length);else K=$.slice(0,X),this.leftOver=$.slice(X,$.length);this.push({data:x2.utf8decode(K),meta:Q.meta})};n6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:x2.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};x2.Utf8DecodeWorker=n6;function B5(){i6.call(this,"utf-8 encode")}I1.inherits(B5,i6);B5.prototype.processChunk=function(Q){this.push({data:x2.utf8encode(Q.data),meta:Q.meta})};x2.Utf8EncodeWorker=B5});var IQ=B0(($G,LQ)=>{var MQ=c0(),FQ=C0();function G5(Q){MQ.call(this,"ConvertWorker to "+Q),this.destType=Q}FQ.inherits(G5,MQ);G5.prototype.processChunk=function(Q){this.push({data:FQ.transformTo(this.destType,Q.data),meta:Q.meta})};LQ.exports=G5});var OQ=B0((JG,NQ)=>{var wQ=t8().Readable,A9=C0();A9.inherits(U5,wQ);function U5(Q,$,J){wQ.call(this,$),this._helper=Q;var X=this;Q.on("data",function(K,Y){if(!X.push(K))X._helper.pause();if(J)J(Y)}).on("error",function(K){X.emit("error",K)}).on("end",function(){X.push(null)})}U5.prototype._read=function(){this._helper.resume()};NQ.exports=U5});var z5=B0((XG,AQ)=>{var s2=C0(),R9=IQ(),T9=c0(),k9=$5(),E9=w2(),S9=F1(),CQ=null;if(E9.nodestream)try{CQ=OQ()}catch(Q){}function v9(Q,$,J){switch(Q){case"blob":return s2.newBlob(s2.transformTo("arraybuffer",$),J);case"base64":return k9.encode($);default:return s2.transformTo(Q,$)}}function x9(Q,$){var J,X=0,K=null,Y=0;for(J=0;J<$.length;J++)Y+=$[J].length;switch(Q){case"string":return $.join("");case"array":return Array.prototype.concat.apply([],$);case"uint8array":K=new Uint8Array(Y);for(J=0;J<$.length;J++)K.set($[J],X),X+=$[J].length;return K;case"nodebuffer":return Buffer.concat($);default:throw Error("concat : unsupported type '"+Q+"'")}}function y9(Q,$){return new S9.Promise(function(J,X){var K=[],Y=Q._internalType,V=Q._outputType,q=Q._mimeType;Q.on("data",function(U,G){if(K.push(U),$)$(G)}).on("error",function(U){K=[],X(U)}).on("end",function(){try{var U=v9(V,x9(Y,K),q);J(U)}catch(G){X(G)}K=[]}).resume()})}function DQ(Q,$,J){var X=$;switch($){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=$,this._mimeType=J,s2.checkSupport(X),this._worker=Q.pipe(new R9(X)),Q.lock()}catch(K){this._worker=new T9("error"),this._worker.error(K)}}DQ.prototype={accumulate:function(Q){return y9(this,Q)},on:function(Q,$){var J=this;if(Q==="data")this._worker.on(Q,function(X){$.call(J,X.data,X.meta)});else this._worker.on(Q,function(){s2.delay($,arguments,J)});return this},resume:function(){return s2.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(s2.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new CQ(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};AQ.exports=DQ});var Z5=B0((t0)=>{t0.base64=!1;t0.binary=!1;t0.dir=!1;t0.createFolders=!0;t0.date=null;t0.compression=null;t0.compressionOptions=null;t0.comment=null;t0.unixPermissions=null;t0.dosPermissions=null});var H5=B0((YG,RQ)=>{var r6=C0(),o6=c0(),h9=16384;function N1(Q){o6.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(J){if($.dataIsReady=!0,$.data=J,$.max=J&&J.length||0,$.type=r6.getTypeOf(J),!$.isPaused)$._tickAndRepeat()},function(J){$.error(J)})}r6.inherits(N1,o6);N1.prototype.cleanUp=function(){o6.prototype.cleanUp.call(this),this.data=null};N1.prototype.resume=function(){if(!o6.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,r6.delay(this._tickAndRepeat,[],this);return!0};N1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)r6.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};N1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=h9,$=null,J=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,J);break;case"uint8array":$=this.data.subarray(this.index,J);break;case"array":case"nodebuffer":$=this.data.slice(this.index,J);break}return this.index=J,this.push({data:$,meta:{percent:this.max?this.index/this.max*100:0}})}};RQ.exports=N1});var a6=B0((VG,kQ)=>{var g9=C0();function f9(){var Q,$=[];for(var J=0;J<256;J++){Q=J;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;$[J]=Q}return $}var TQ=f9();function _9(Q,$,J,X){var K=TQ,Y=X+J;Q=Q^-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^$[V])&255];return Q^-1}function b9(Q,$,J,X){var K=TQ,Y=X+J;Q=Q^-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^$.charCodeAt(V))&255];return Q^-1}kQ.exports=function($,J){if(typeof $>"u"||!$.length)return 0;var X=g9.getTypeOf($)!=="string";if(X)return _9(J|0,$,$.length,0);else return b9(J|0,$,$.length,0)}});var j5=B0((qG,SQ)=>{var EQ=c0(),u9=a6(),p9=C0();function W5(){EQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p9.inherits(W5,EQ);W5.prototype.processChunk=function(Q){this.streamInfo.crc32=u9(Q.data,this.streamInfo.crc32||0),this.push(Q)};SQ.exports=W5});var xQ=B0((BG,vQ)=>{var c9=C0(),P5=c0();function M5(Q){P5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}c9.inherits(M5,P5);M5.prototype.processChunk=function(Q){if(Q){var $=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=$+Q.data.length}P5.prototype.processChunk.call(this,Q)};vQ.exports=M5});var s6=B0((GG,gQ)=>{var yQ=F1(),hQ=H5(),m9=j5(),F5=xQ();function L5(Q,$,J,X,K){this.compressedSize=Q,this.uncompressedSize=$,this.crc32=J,this.compression=X,this.compressedContent=K}L5.prototype={getContentWorker:function(){var Q=new hQ(yQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new F5("data_length")),$=this;return Q.on("end",function(){if(this.streamInfo.data_length!==$.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new hQ(yQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};L5.createWorkerFrom=function(Q,$,J){return Q.pipe(new m9).pipe(new F5("uncompressedSize")).pipe($.compressWorker(J)).pipe(new F5("compressedSize")).withStreamInfo("compression",$)};gQ.exports=L5});var uQ=B0((UG,bQ)=>{var d9=z5(),l9=H5(),I5=w1(),w5=s6(),fQ=c0(),N5=function(Q,$,J){this.name=Q,this.dir=J.dir,this.date=J.date,this.comment=J.comment,this.unixPermissions=J.unixPermissions,this.dosPermissions=J.dosPermissions,this._data=$,this._dataBinary=J.binary,this.options={compression:J.compression,compressionOptions:J.compressionOptions}};N5.prototype={internalStream:function(Q){var $=null,J="string";try{if(!Q)throw Error("No output type specified.");J=Q.toLowerCase();var X=J==="string"||J==="text";if(J==="binarystring"||J==="text")J="string";$=this._decompressWorker();var K=!this._dataBinary;if(K&&!X)$=$.pipe(new I5.Utf8EncodeWorker);if(!K&&X)$=$.pipe(new I5.Utf8DecodeWorker)}catch(Y){$=new fQ("error"),$.error(Y)}return new d9($,J,"")},async:function(Q,$){return this.internalStream(Q).accumulate($)},nodeStream:function(Q,$){return this.internalStream(Q||"nodebuffer").toNodejsStream($)},_compressWorker:function(Q,$){if(this._data instanceof w5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var J=this._decompressWorker();if(!this._dataBinary)J=J.pipe(new I5.Utf8EncodeWorker);return w5.createWorkerFrom(J,Q,$)}},_decompressWorker:function(){if(this._data instanceof w5)return this._data.getContentWorker();else if(this._data instanceof fQ)return this._data;else return new l9(this._data)}};var _Q=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],i9=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(K6=0;K6<_Q.length;K6++)N5.prototype[_Q[K6]]=i9;var K6;bQ.exports=N5});var N2=B0((y0)=>{var n9=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r9(Q,$){return Object.prototype.hasOwnProperty.call(Q,$)}y0.assign=function(Q){var $=Array.prototype.slice.call(arguments,1);while($.length){var J=$.shift();if(!J)continue;if(typeof J!=="object")throw TypeError(J+"must be non-object");for(var X in J)if(r9(J,X))Q[X]=J[X]}return Q};y0.shrinkBuf=function(Q,$){if(Q.length===$)return Q;if(Q.subarray)return Q.subarray(0,$);return Q.length=$,Q};var o9={arraySet:function(Q,$,J,X,K){if($.subarray&&Q.subarray){Q.set($.subarray(J,J+X),K);return}for(var Y=0;Y<X;Y++)Q[K+Y]=$[J+Y]},flattenChunks:function(Q){var $,J,X,K,Y,V;X=0;for($=0,J=Q.length;$<J;$++)X+=Q[$].length;V=new Uint8Array(X),K=0;for($=0,J=Q.length;$<J;$++)Y=Q[$],V.set(Y,K),K+=Y.length;return V}},a9={arraySet:function(Q,$,J,X,K){for(var Y=0;Y<X;Y++)Q[K+Y]=$[J+Y]},flattenChunks:function(Q){return[].concat.apply([],Q)}};y0.setTyped=function(Q){if(Q)y0.Buf8=Uint8Array,y0.Buf16=Uint16Array,y0.Buf32=Int32Array,y0.assign(y0,o9);else y0.Buf8=Array,y0.Buf16=Array,y0.Buf32=Array,y0.assign(y0,a9)};y0.setTyped(n9)});var G$=B0((D1)=>{var s9=N2(),t9=4,pQ=0,cQ=1,e9=2;function C1(Q){var $=Q.length;while(--$>=0)Q[$]=0}var QV=0,rQ=1,$V=2,JV=3,XV=258,k5=29,U6=256,V6=U6+1+k5,O1=30,E5=19,oQ=2*V6+1,t2=15,O5=16,KV=7,S5=256,aQ=16,sQ=17,tQ=18,R5=[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],t6=[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],YV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],eQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],VV=512,O2=Array((V6+2)*2);C1(O2);var Y6=Array(O1*2);C1(Y6);var q6=Array(VV);C1(q6);var B6=Array(XV-JV+1);C1(B6);var v5=Array(k5);C1(v5);var e6=Array(O1);C1(e6);function C5(Q,$,J,X,K){this.static_tree=Q,this.extra_bits=$,this.extra_base=J,this.elems=X,this.max_length=K,this.has_stree=Q&&Q.length}var Q$,$$,J$;function D5(Q,$){this.dyn_tree=Q,this.max_code=0,this.stat_desc=$}function X$(Q){return Q<256?q6[Q]:q6[256+(Q>>>7)]}function G6(Q,$){Q.pending_buf[Q.pending++]=$&255,Q.pending_buf[Q.pending++]=$>>>8&255}function b0(Q,$,J){if(Q.bi_valid>O5-J)Q.bi_buf|=$<<Q.bi_valid&65535,G6(Q,Q.bi_buf),Q.bi_buf=$>>O5-Q.bi_valid,Q.bi_valid+=J-O5;else Q.bi_buf|=$<<Q.bi_valid&65535,Q.bi_valid+=J}function G2(Q,$,J){b0(Q,J[$*2],J[$*2+1])}function K$(Q,$){var J=0;do J|=Q&1,Q>>>=1,J<<=1;while(--$>0);return J>>>1}function qV(Q){if(Q.bi_valid===16)G6(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 BV(Q,$){var{dyn_tree:J,max_code:X}=$,K=$.stat_desc.static_tree,Y=$.stat_desc.has_stree,V=$.stat_desc.extra_bits,q=$.stat_desc.extra_base,U=$.stat_desc.max_length,G,B,H,W,j,S,A=0;for(W=0;W<=t2;W++)Q.bl_count[W]=0;J[Q.heap[Q.heap_max]*2+1]=0;for(G=Q.heap_max+1;G<oQ;G++){if(B=Q.heap[G],W=J[J[B*2+1]*2+1]+1,W>U)W=U,A++;if(J[B*2+1]=W,B>X)continue;if(Q.bl_count[W]++,j=0,B>=q)j=V[B-q];if(S=J[B*2],Q.opt_len+=S*(W+j),Y)Q.static_len+=S*(K[B*2+1]+j)}if(A===0)return;do{W=U-1;while(Q.bl_count[W]===0)W--;Q.bl_count[W]--,Q.bl_count[W+1]+=2,Q.bl_count[U]--,A-=2}while(A>0);for(W=U;W!==0;W--){B=Q.bl_count[W];while(B!==0){if(H=Q.heap[--G],H>X)continue;if(J[H*2+1]!==W)Q.opt_len+=(W-J[H*2+1])*J[H*2],J[H*2+1]=W;B--}}}function Y$(Q,$,J){var X=Array(t2+1),K=0,Y,V;for(Y=1;Y<=t2;Y++)X[Y]=K=K+J[Y-1]<<1;for(V=0;V<=$;V++){var q=Q[V*2+1];if(q===0)continue;Q[V*2]=K$(X[q]++,q)}}function GV(){var Q,$,J,X,K,Y=Array(t2+1);J=0;for(X=0;X<k5-1;X++){v5[X]=J;for(Q=0;Q<1<<R5[X];Q++)B6[J++]=X}B6[J-1]=X,K=0;for(X=0;X<16;X++){e6[X]=K;for(Q=0;Q<1<<t6[X];Q++)q6[K++]=X}K>>=7;for(;X<O1;X++){e6[X]=K<<7;for(Q=0;Q<1<<t6[X]-7;Q++)q6[256+K++]=X}for($=0;$<=t2;$++)Y[$]=0;Q=0;while(Q<=143)O2[Q*2+1]=8,Q++,Y[8]++;while(Q<=255)O2[Q*2+1]=9,Q++,Y[9]++;while(Q<=279)O2[Q*2+1]=7,Q++,Y[7]++;while(Q<=287)O2[Q*2+1]=8,Q++,Y[8]++;Y$(O2,V6+1,Y);for(Q=0;Q<O1;Q++)Y6[Q*2+1]=5,Y6[Q*2]=K$(Q,5);Q$=new C5(O2,R5,U6+1,V6,t2),$$=new C5(Y6,t6,0,O1,t2),J$=new C5([],YV,0,E5,KV)}function V$(Q){var $;for($=0;$<V6;$++)Q.dyn_ltree[$*2]=0;for($=0;$<O1;$++)Q.dyn_dtree[$*2]=0;for($=0;$<E5;$++)Q.bl_tree[$*2]=0;Q.dyn_ltree[S5*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function q$(Q){if(Q.bi_valid>8)G6(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 UV(Q,$,J,X){if(q$(Q),X)G6(Q,J),G6(Q,~J);s9.arraySet(Q.pending_buf,Q.window,$,J,Q.pending),Q.pending+=J}function mQ(Q,$,J,X){var K=$*2,Y=J*2;return Q[K]<Q[Y]||Q[K]===Q[Y]&&X[$]<=X[J]}function A5(Q,$,J){var X=Q.heap[J],K=J<<1;while(K<=Q.heap_len){if(K<Q.heap_len&&mQ($,Q.heap[K+1],Q.heap[K],Q.depth))K++;if(mQ($,X,Q.heap[K],Q.depth))break;Q.heap[J]=Q.heap[K],J=K,K<<=1}Q.heap[J]=X}function dQ(Q,$,J){var X,K,Y=0,V,q;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+Y*2]<<8|Q.pending_buf[Q.d_buf+Y*2+1],K=Q.pending_buf[Q.l_buf+Y],Y++,X===0)G2(Q,K,$);else{if(V=B6[K],G2(Q,V+U6+1,$),q=R5[V],q!==0)K-=v5[V],b0(Q,K,q);if(X--,V=X$(X),G2(Q,V,J),q=t6[V],q!==0)X-=e6[V],b0(Q,X,q)}while(Y<Q.last_lit);G2(Q,S5,$)}function T5(Q,$){var J=$.dyn_tree,X=$.stat_desc.static_tree,K=$.stat_desc.has_stree,Y=$.stat_desc.elems,V,q,U=-1,G;Q.heap_len=0,Q.heap_max=oQ;for(V=0;V<Y;V++)if(J[V*2]!==0)Q.heap[++Q.heap_len]=U=V,Q.depth[V]=0;else J[V*2+1]=0;while(Q.heap_len<2)if(G=Q.heap[++Q.heap_len]=U<2?++U:0,J[G*2]=1,Q.depth[G]=0,Q.opt_len--,K)Q.static_len-=X[G*2+1];$.max_code=U;for(V=Q.heap_len>>1;V>=1;V--)A5(Q,J,V);G=Y;do V=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],A5(Q,J,1),q=Q.heap[1],Q.heap[--Q.heap_max]=V,Q.heap[--Q.heap_max]=q,J[G*2]=J[V*2]+J[q*2],Q.depth[G]=(Q.depth[V]>=Q.depth[q]?Q.depth[V]:Q.depth[q])+1,J[V*2+1]=J[q*2+1]=G,Q.heap[1]=G++,A5(Q,J,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],BV(Q,$),Y$(J,U,Q.bl_count)}function lQ(Q,$,J){var X,K=-1,Y,V=$[1],q=0,U=7,G=4;if(V===0)U=138,G=3;$[(J+1)*2+1]=65535;for(X=0;X<=J;X++){if(Y=V,V=$[(X+1)*2+1],++q<U&&Y===V)continue;else if(q<G)Q.bl_tree[Y*2]+=q;else if(Y!==0){if(Y!==K)Q.bl_tree[Y*2]++;Q.bl_tree[aQ*2]++}else if(q<=10)Q.bl_tree[sQ*2]++;else Q.bl_tree[tQ*2]++;if(q=0,K=Y,V===0)U=138,G=3;else if(Y===V)U=6,G=3;else U=7,G=4}}function iQ(Q,$,J){var X,K=-1,Y,V=$[1],q=0,U=7,G=4;if(V===0)U=138,G=3;for(X=0;X<=J;X++){if(Y=V,V=$[(X+1)*2+1],++q<U&&Y===V)continue;else if(q<G)do G2(Q,Y,Q.bl_tree);while(--q!==0);else if(Y!==0){if(Y!==K)G2(Q,Y,Q.bl_tree),q--;G2(Q,aQ,Q.bl_tree),b0(Q,q-3,2)}else if(q<=10)G2(Q,sQ,Q.bl_tree),b0(Q,q-3,3);else G2(Q,tQ,Q.bl_tree),b0(Q,q-11,7);if(q=0,K=Y,V===0)U=138,G=3;else if(Y===V)U=6,G=3;else U=7,G=4}}function zV(Q){var $;lQ(Q,Q.dyn_ltree,Q.l_desc.max_code),lQ(Q,Q.dyn_dtree,Q.d_desc.max_code),T5(Q,Q.bl_desc);for($=E5-1;$>=3;$--)if(Q.bl_tree[eQ[$]*2+1]!==0)break;return Q.opt_len+=3*($+1)+5+5+4,$}function ZV(Q,$,J,X){var K;b0(Q,$-257,5),b0(Q,J-1,5),b0(Q,X-4,4);for(K=0;K<X;K++)b0(Q,Q.bl_tree[eQ[K]*2+1],3);iQ(Q,Q.dyn_ltree,$-1),iQ(Q,Q.dyn_dtree,J-1)}function HV(Q){var $=4093624447,J;for(J=0;J<=31;J++,$>>>=1)if($&1&&Q.dyn_ltree[J*2]!==0)return pQ;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return cQ;for(J=32;J<U6;J++)if(Q.dyn_ltree[J*2]!==0)return cQ;return pQ}var nQ=!1;function WV(Q){if(!nQ)GV(),nQ=!0;Q.l_desc=new D5(Q.dyn_ltree,Q$),Q.d_desc=new D5(Q.dyn_dtree,$$),Q.bl_desc=new D5(Q.bl_tree,J$),Q.bi_buf=0,Q.bi_valid=0,V$(Q)}function B$(Q,$,J,X){b0(Q,(QV<<1)+(X?1:0),3),UV(Q,$,J,!0)}function jV(Q){b0(Q,rQ<<1,3),G2(Q,S5,O2),qV(Q)}function PV(Q,$,J,X){var K,Y,V=0;if(Q.level>0){if(Q.strm.data_type===e9)Q.strm.data_type=HV(Q);if(T5(Q,Q.l_desc),T5(Q,Q.d_desc),V=zV(Q),K=Q.opt_len+3+7>>>3,Y=Q.static_len+3+7>>>3,Y<=K)K=Y}else K=Y=J+5;if(J+4<=K&&$!==-1)B$(Q,$,J,X);else if(Q.strategy===t9||Y===K)b0(Q,(rQ<<1)+(X?1:0),3),dQ(Q,O2,Y6);else b0(Q,($V<<1)+(X?1:0),3),ZV(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,V+1),dQ(Q,Q.dyn_ltree,Q.dyn_dtree);if(V$(Q),X)q$(Q)}function MV(Q,$,J){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]=J&255,Q.last_lit++,$===0)Q.dyn_ltree[J*2]++;else Q.matches++,$--,Q.dyn_ltree[(B6[J]+U6+1)*2]++,Q.dyn_dtree[X$($)*2]++;return Q.last_lit===Q.lit_bufsize-1}D1._tr_init=WV;D1._tr_stored_block=B$;D1._tr_flush_block=PV;D1._tr_tally=MV;D1._tr_align=jV});var x5=B0((HG,U$)=>{function FV(Q,$,J,X){var K=Q&65535|0,Y=Q>>>16&65535|0,V=0;while(J!==0){V=J>2000?2000:J,J-=V;do K=K+$[X++]|0,Y=Y+K|0;while(--V);K%=65521,Y%=65521}return K|Y<<16|0}U$.exports=FV});var y5=B0((WG,z$)=>{function LV(){var Q,$=[];for(var J=0;J<256;J++){Q=J;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;$[J]=Q}return $}var IV=LV();function wV(Q,$,J,X){var K=IV,Y=X+J;Q^=-1;for(var V=X;V<Y;V++)Q=Q>>>8^K[(Q^$[V])&255];return Q^-1}z$.exports=wV});var Q8=B0((jG,Z$)=>{Z$.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 w$=B0((Z2)=>{var h0=N2(),r0=G$(),P$=x5(),y2=y5(),NV=Q8(),J1=0,OV=1,CV=3,b2=4,H$=5,z2=0,W$=1,o0=-2,DV=-3,h5=-5,AV=-1,RV=1,$8=2,TV=3,kV=4,EV=0,SV=2,Y8=8,vV=9,xV=15,yV=8,hV=29,gV=256,f5=gV+1+hV,fV=30,_V=19,bV=2*f5+1,uV=15,j0=3,f2=258,e0=f2+j0+1,pV=32,V8=42,_5=69,J8=73,X8=91,K8=103,e2=113,Z6=666,R0=1,H6=2,Q1=3,T1=4,cV=3;function _2(Q,$){return Q.msg=NV[$],$}function j$(Q){return(Q<<1)-(Q>4?9:0)}function g2(Q){var $=Q.length;while(--$>=0)Q[$]=0}function h2(Q){var $=Q.state,J=$.pending;if(J>Q.avail_out)J=Q.avail_out;if(J===0)return;if(h0.arraySet(Q.output,$.pending_buf,$.pending_out,J,Q.next_out),Q.next_out+=J,$.pending_out+=J,Q.total_out+=J,Q.avail_out-=J,$.pending-=J,$.pending===0)$.pending_out=0}function k0(Q,$){r0._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 P0(Q,$){Q.pending_buf[Q.pending++]=$}function z6(Q,$){Q.pending_buf[Q.pending++]=$>>>8&255,Q.pending_buf[Q.pending++]=$&255}function mV(Q,$,J,X){var K=Q.avail_in;if(K>X)K=X;if(K===0)return 0;if(Q.avail_in-=K,h0.arraySet($,Q.input,Q.next_in,K,J),Q.state.wrap===1)Q.adler=P$(Q.adler,$,K,J);else if(Q.state.wrap===2)Q.adler=y2(Q.adler,$,K,J);return Q.next_in+=K,Q.total_in+=K,K}function M$(Q,$){var{max_chain_length:J,strstart:X}=Q,K,Y,V=Q.prev_length,q=Q.nice_match,U=Q.strstart>Q.w_size-e0?Q.strstart-(Q.w_size-e0):0,G=Q.window,B=Q.w_mask,H=Q.prev,W=Q.strstart+f2,j=G[X+V-1],S=G[X+V];if(Q.prev_length>=Q.good_match)J>>=2;if(q>Q.lookahead)q=Q.lookahead;do{if(K=$,G[K+V]!==S||G[K+V-1]!==j||G[K]!==G[X]||G[++K]!==G[X+1])continue;X+=2,K++;do;while(G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&G[++X]===G[++K]&&X<W);if(Y=f2-(W-X),X=W-f2,Y>V){if(Q.match_start=$,V=Y,Y>=q)break;j=G[X+V-1],S=G[X+V]}}while(($=H[$&B])>U&&--J!==0);if(V<=Q.lookahead)return V;return Q.lookahead}function $1(Q){var $=Q.w_size,J,X,K,Y,V;do{if(Y=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=$+($-e0)){h0.arraySet(Q.window,Q.window,$,$,0),Q.match_start-=$,Q.strstart-=$,Q.block_start-=$,X=Q.hash_size,J=X;do K=Q.head[--J],Q.head[J]=K>=$?K-$:0;while(--X);X=$,J=X;do K=Q.prev[--J],Q.prev[J]=K>=$?K-$:0;while(--X);Y+=$}if(Q.strm.avail_in===0)break;if(X=mV(Q.strm,Q.window,Q.strstart+Q.lookahead,Y),Q.lookahead+=X,Q.lookahead+Q.insert>=j0){V=Q.strstart-Q.insert,Q.ins_h=Q.window[V],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[V+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[V+j0-1])&Q.hash_mask,Q.prev[V&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=V,V++,Q.insert--,Q.lookahead+Q.insert<j0)break}}while(Q.lookahead<e0&&Q.strm.avail_in!==0)}function dV(Q,$){var J=65535;if(J>Q.pending_buf_size-5)J=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if($1(Q),Q.lookahead===0&&$===J1)return R0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+J;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,k0(Q,!1),Q.strm.avail_out===0)return R0}if(Q.strstart-Q.block_start>=Q.w_size-e0){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,$===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.strstart>Q.block_start){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return R0}function g5(Q,$){var J,X;for(;;){if(Q.lookahead<e0){if($1(Q),Q.lookahead<e0&&$===J1)return R0;if(Q.lookahead===0)break}if(J=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,J=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(J!==0&&Q.strstart-J<=Q.w_size-e0)Q.match_length=M$(Q,J);if(Q.match_length>=j0)if(X=r0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=j0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,J=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=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,$===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return H6}function A1(Q,$){var J,X,K;for(;;){if(Q.lookahead<e0){if($1(Q),Q.lookahead<e0&&$===J1)return R0;if(Q.lookahead===0)break}if(J=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,J=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=j0-1,J!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-J<=Q.w_size-e0){if(Q.match_length=M$(Q,J),Q.match_length<=5&&(Q.strategy===RV||Q.match_length===j0&&Q.strstart-Q.match_start>4096))Q.match_length=j0-1}if(Q.prev_length>=j0&&Q.match_length<=Q.prev_length){K=Q.strstart+Q.lookahead-j0,X=r0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-j0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=K)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,J=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=j0-1,Q.strstart++,X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}else if(Q.match_available){if(X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)k0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return R0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,$===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return H6}function lV(Q,$){var J,X,K,Y,V=Q.window;for(;;){if(Q.lookahead<=f2){if($1(Q),Q.lookahead<=f2&&$===J1)return R0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=j0&&Q.strstart>0){if(K=Q.strstart-1,X=V[K],X===V[++K]&&X===V[++K]&&X===V[++K]){Y=Q.strstart+f2;do;while(X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&X===V[++K]&&K<Y);if(Q.match_length=f2-(Y-K),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=j0)J=r0._tr_tally(Q,1,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else J=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(J){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,$===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return H6}function iV(Q,$){var J;for(;;){if(Q.lookahead===0){if($1(Q),Q.lookahead===0){if($===J1)return R0;break}}if(Q.match_length=0,J=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,J){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,$===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return H6}function U2(Q,$,J,X,K){this.good_length=Q,this.max_lazy=$,this.nice_length=J,this.max_chain=X,this.func=K}var R1;R1=[new U2(0,0,0,0,dV),new U2(4,4,8,4,g5),new U2(4,5,16,8,g5),new U2(4,6,32,32,g5),new U2(4,4,16,16,A1),new U2(8,16,32,32,A1),new U2(8,16,128,128,A1),new U2(8,32,128,256,A1),new U2(32,128,258,1024,A1),new U2(32,258,258,4096,A1)];function nV(Q){Q.window_size=2*Q.w_size,g2(Q.head),Q.max_lazy_match=R1[Q.level].max_lazy,Q.good_match=R1[Q.level].good_length,Q.nice_match=R1[Q.level].nice_length,Q.max_chain_length=R1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=j0-1,Q.match_available=0,Q.ins_h=0}function rV(){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=Y8,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 h0.Buf16(bV*2),this.dyn_dtree=new h0.Buf16((2*fV+1)*2),this.bl_tree=new h0.Buf16((2*_V+1)*2),g2(this.dyn_ltree),g2(this.dyn_dtree),g2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new h0.Buf16(uV+1),this.heap=new h0.Buf16(2*f5+1),g2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new h0.Buf16(2*f5+1),g2(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 F$(Q){var $;if(!Q||!Q.state)return _2(Q,o0);if(Q.total_in=Q.total_out=0,Q.data_type=SV,$=Q.state,$.pending=0,$.pending_out=0,$.wrap<0)$.wrap=-$.wrap;return $.status=$.wrap?V8:e2,Q.adler=$.wrap===2?0:1,$.last_flush=J1,r0._tr_init($),z2}function L$(Q){var $=F$(Q);if($===z2)nV(Q.state);return $}function oV(Q,$){if(!Q||!Q.state)return o0;if(Q.state.wrap!==2)return o0;return Q.state.gzhead=$,z2}function I$(Q,$,J,X,K,Y){if(!Q)return o0;var V=1;if($===AV)$=6;if(X<0)V=0,X=-X;else if(X>15)V=2,X-=16;if(K<1||K>vV||J!==Y8||X<8||X>15||$<0||$>9||Y<0||Y>kV)return _2(Q,o0);if(X===8)X=9;var q=new rV;return Q.state=q,q.strm=Q,q.wrap=V,q.gzhead=null,q.w_bits=X,q.w_size=1<<q.w_bits,q.w_mask=q.w_size-1,q.hash_bits=K+7,q.hash_size=1<<q.hash_bits,q.hash_mask=q.hash_size-1,q.hash_shift=~~((q.hash_bits+j0-1)/j0),q.window=new h0.Buf8(q.w_size*2),q.head=new h0.Buf16(q.hash_size),q.prev=new h0.Buf16(q.w_size),q.lit_bufsize=1<<K+6,q.pending_buf_size=q.lit_bufsize*4,q.pending_buf=new h0.Buf8(q.pending_buf_size),q.d_buf=1*q.lit_bufsize,q.l_buf=3*q.lit_bufsize,q.level=$,q.strategy=Y,q.method=J,L$(Q)}function aV(Q,$){return I$(Q,$,Y8,xV,yV,EV)}function sV(Q,$){var J,X,K,Y;if(!Q||!Q.state||$>H$||$<0)return Q?_2(Q,o0):o0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===Z6&&$!==b2)return _2(Q,Q.avail_out===0?h5:o0);if(X.strm=Q,J=X.last_flush,X.last_flush=$,X.status===V8)if(X.wrap===2)if(Q.adler=0,P0(X,31),P0(X,139),P0(X,8),!X.gzhead)P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,X.level===9?2:X.strategy>=$8||X.level<2?4:0),P0(X,cV),X.status=e2;else{if(P0(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)),P0(X,X.gzhead.time&255),P0(X,X.gzhead.time>>8&255),P0(X,X.gzhead.time>>16&255),P0(X,X.gzhead.time>>24&255),P0(X,X.level===9?2:X.strategy>=$8||X.level<2?4:0),P0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)P0(X,X.gzhead.extra.length&255),P0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=y2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=_5}else{var V=Y8+(X.w_bits-8<<4)<<8,q=-1;if(X.strategy>=$8||X.level<2)q=0;else if(X.level<6)q=1;else if(X.level===6)q=2;else q=3;if(V|=q<<6,X.strstart!==0)V|=pV;if(V+=31-V%31,X.status=e2,z6(X,V),X.strstart!==0)z6(X,Q.adler>>>16),z6(X,Q.adler&65535);Q.adler=1}if(X.status===_5)if(X.gzhead.extra){K=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=y2(Q.adler,X.pending_buf,X.pending-K,K);if(h2(Q),K=X.pending,X.pending===X.pending_buf_size)break}P0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>K)Q.adler=y2(Q.adler,X.pending_buf,X.pending-K,K);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=J8}else X.status=J8;if(X.status===J8)if(X.gzhead.name){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=y2(Q.adler,X.pending_buf,X.pending-K,K);if(h2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.name.length)Y=X.gzhead.name.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=y2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.gzindex=0,X.status=X8}else X.status=X8;if(X.status===X8)if(X.gzhead.comment){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=y2(Q.adler,X.pending_buf,X.pending-K,K);if(h2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.comment.length)Y=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=y2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.status=K8}else X.status=K8;if(X.status===K8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)h2(Q);if(X.pending+2<=X.pending_buf_size)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),Q.adler=0,X.status=e2}else X.status=e2;if(X.pending!==0){if(h2(Q),Q.avail_out===0)return X.last_flush=-1,z2}else if(Q.avail_in===0&&j$($)<=j$(J)&&$!==b2)return _2(Q,h5);if(X.status===Z6&&Q.avail_in!==0)return _2(Q,h5);if(Q.avail_in!==0||X.lookahead!==0||$!==J1&&X.status!==Z6){var U=X.strategy===$8?iV(X,$):X.strategy===TV?lV(X,$):R1[X.level].func(X,$);if(U===Q1||U===T1)X.status=Z6;if(U===R0||U===Q1){if(Q.avail_out===0)X.last_flush=-1;return z2}if(U===H6){if($===OV)r0._tr_align(X);else if($!==H$){if(r0._tr_stored_block(X,0,0,!1),$===CV){if(g2(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($!==b2)return z2;if(X.wrap<=0)return W$;if(X.wrap===2)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),P0(X,Q.adler>>16&255),P0(X,Q.adler>>24&255),P0(X,Q.total_in&255),P0(X,Q.total_in>>8&255),P0(X,Q.total_in>>16&255),P0(X,Q.total_in>>24&255);else z6(X,Q.adler>>>16),z6(X,Q.adler&65535);if(h2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?z2:W$}function tV(Q){var $;if(!Q||!Q.state)return o0;if($=Q.state.status,$!==V8&&$!==_5&&$!==J8&&$!==X8&&$!==K8&&$!==e2&&$!==Z6)return _2(Q,o0);return Q.state=null,$===e2?_2(Q,DV):z2}function eV(Q,$){var J=$.length,X,K,Y,V,q,U,G,B;if(!Q||!Q.state)return o0;if(X=Q.state,V=X.wrap,V===2||V===1&&X.status!==V8||X.lookahead)return o0;if(V===1)Q.adler=P$(Q.adler,$,J,0);if(X.wrap=0,J>=X.w_size){if(V===0)g2(X.head),X.strstart=0,X.block_start=0,X.insert=0;B=new h0.Buf8(X.w_size),h0.arraySet(B,$,J-X.w_size,X.w_size,0),$=B,J=X.w_size}q=Q.avail_in,U=Q.next_in,G=Q.input,Q.avail_in=J,Q.next_in=0,Q.input=$,$1(X);while(X.lookahead>=j0){K=X.strstart,Y=X.lookahead-(j0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[K+j0-1])&X.hash_mask,X.prev[K&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=K,K++;while(--Y);X.strstart=K,X.lookahead=j0-1,$1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=j0-1,X.match_available=0,Q.next_in=U,Q.input=G,Q.avail_in=q,X.wrap=V,z2}Z2.deflateInit=aV;Z2.deflateInit2=I$;Z2.deflateReset=L$;Z2.deflateResetKeep=F$;Z2.deflateSetHeader=oV;Z2.deflate=sV;Z2.deflateEnd=tV;Z2.deflateSetDictionary=eV;Z2.deflateInfo="pako deflate (from Nodeca project)"});var b5=B0((k1)=>{var q8=N2(),N$=!0,O$=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){N$=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){O$=!1}var W6=new q8.Buf8(256);for(H2=0;H2<256;H2++)W6[H2]=H2>=252?6:H2>=248?5:H2>=240?4:H2>=224?3:H2>=192?2:1;var H2;W6[254]=W6[254]=1;k1.string2buf=function(Q){var $,J,X,K,Y,V=Q.length,q=0;for(K=0;K<V;K++){if(J=Q.charCodeAt(K),(J&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)J=65536+(J-55296<<10)+(X-56320),K++}q+=J<128?1:J<2048?2:J<65536?3:4}$=new q8.Buf8(q);for(Y=0,K=0;Y<q;K++){if(J=Q.charCodeAt(K),(J&64512)===55296&&K+1<V){if(X=Q.charCodeAt(K+1),(X&64512)===56320)J=65536+(J-55296<<10)+(X-56320),K++}if(J<128)$[Y++]=J;else if(J<2048)$[Y++]=192|J>>>6,$[Y++]=128|J&63;else if(J<65536)$[Y++]=224|J>>>12,$[Y++]=128|J>>>6&63,$[Y++]=128|J&63;else $[Y++]=240|J>>>18,$[Y++]=128|J>>>12&63,$[Y++]=128|J>>>6&63,$[Y++]=128|J&63}return $};function C$(Q,$){if($<65534){if(Q.subarray&&O$||!Q.subarray&&N$)return String.fromCharCode.apply(null,q8.shrinkBuf(Q,$))}var J="";for(var X=0;X<$;X++)J+=String.fromCharCode(Q[X]);return J}k1.buf2binstring=function(Q){return C$(Q,Q.length)};k1.binstring2buf=function(Q){var $=new q8.Buf8(Q.length);for(var J=0,X=$.length;J<X;J++)$[J]=Q.charCodeAt(J);return $};k1.buf2string=function(Q,$){var J,X,K,Y,V=$||Q.length,q=Array(V*2);for(X=0,J=0;J<V;){if(K=Q[J++],K<128){q[X++]=K;continue}if(Y=W6[K],Y>4){q[X++]=65533,J+=Y-1;continue}K&=Y===2?31:Y===3?15:7;while(Y>1&&J<V)K=K<<6|Q[J++]&63,Y--;if(Y>1){q[X++]=65533;continue}if(K<65536)q[X++]=K;else K-=65536,q[X++]=55296|K>>10&1023,q[X++]=56320|K&1023}return C$(q,X)};k1.utf8border=function(Q,$){var J;if($=$||Q.length,$>Q.length)$=Q.length;J=$-1;while(J>=0&&(Q[J]&192)===128)J--;if(J<0)return $;if(J===0)return $;return J+W6[Q[J]]>$?J:$}});var u5=B0((FG,D$)=>{function Qq(){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}D$.exports=Qq});var k$=B0((M6)=>{var j6=w$(),P6=N2(),c5=b5(),m5=Q8(),$q=u5(),T$=Object.prototype.toString,Jq=0,p5=4,E1=0,A$=1,R$=2,Xq=-1,Kq=0,Yq=8;function X1(Q){if(!(this instanceof X1))return new X1(Q);this.options=P6.assign({level:Xq,method:Yq,chunkSize:16384,windowBits:15,memLevel:8,strategy:Kq,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 $q,this.strm.avail_out=0;var J=j6.deflateInit2(this.strm,$.level,$.method,$.windowBits,$.memLevel,$.strategy);if(J!==E1)throw Error(m5[J]);if($.header)j6.deflateSetHeader(this.strm,$.header);if($.dictionary){var X;if(typeof $.dictionary==="string")X=c5.string2buf($.dictionary);else if(T$.call($.dictionary)==="[object ArrayBuffer]")X=new Uint8Array($.dictionary);else X=$.dictionary;if(J=j6.deflateSetDictionary(this.strm,X),J!==E1)throw Error(m5[J]);this._dict_set=!0}}X1.prototype.push=function(Q,$){var J=this.strm,X=this.options.chunkSize,K,Y;if(this.ended)return!1;if(Y=$===~~$?$:$===!0?p5:Jq,typeof Q==="string")J.input=c5.string2buf(Q);else if(T$.call(Q)==="[object ArrayBuffer]")J.input=new Uint8Array(Q);else J.input=Q;J.next_in=0,J.avail_in=J.input.length;do{if(J.avail_out===0)J.output=new P6.Buf8(X),J.next_out=0,J.avail_out=X;if(K=j6.deflate(J,Y),K!==A$&&K!==E1)return this.onEnd(K),this.ended=!0,!1;if(J.avail_out===0||J.avail_in===0&&(Y===p5||Y===R$))if(this.options.to==="string")this.onData(c5.buf2binstring(P6.shrinkBuf(J.output,J.next_out)));else this.onData(P6.shrinkBuf(J.output,J.next_out))}while((J.avail_in>0||J.avail_out===0)&&K!==A$);if(Y===p5)return K=j6.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E1;if(Y===R$)return this.onEnd(E1),J.avail_out=0,!0;return!0};X1.prototype.onData=function(Q){this.chunks.push(Q)};X1.prototype.onEnd=function(Q){if(Q===E1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=P6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function d5(Q,$){var J=new X1($);if(J.push(Q,!0),J.err)throw J.msg||m5[J.err];return J.result}function Vq(Q,$){return $=$||{},$.raw=!0,d5(Q,$)}function qq(Q,$){return $=$||{},$.gzip=!0,d5(Q,$)}M6.Deflate=X1;M6.deflate=d5;M6.deflateRaw=Vq;M6.gzip=qq});var S$=B0((IG,E$)=>{var B8=30,Bq=12;E$.exports=function($,J){var X,K,Y,V,q,U,G,B,H,W,j,S,A,I,L,z,P,F,N,x,d,i,_,v,k;X=$.state,K=$.next_in,v=$.input,Y=K+($.avail_in-5),V=$.next_out,k=$.output,q=V-(J-$.avail_out),U=V+($.avail_out-257),G=X.dmax,B=X.wsize,H=X.whave,W=X.wnext,j=X.window,S=X.hold,A=X.bits,I=X.lencode,L=X.distcode,z=(1<<X.lenbits)-1,P=(1<<X.distbits)-1;Q:do{if(A<15)S+=v[K++]<<A,A+=8,S+=v[K++]<<A,A+=8;F=I[S&z];$:for(;;){if(N=F>>>24,S>>>=N,A-=N,N=F>>>16&255,N===0)k[V++]=F&65535;else if(N&16){if(x=F&65535,N&=15,N){if(A<N)S+=v[K++]<<A,A+=8;x+=S&(1<<N)-1,S>>>=N,A-=N}if(A<15)S+=v[K++]<<A,A+=8,S+=v[K++]<<A,A+=8;F=L[S&P];J:for(;;){if(N=F>>>24,S>>>=N,A-=N,N=F>>>16&255,N&16){if(d=F&65535,N&=15,A<N){if(S+=v[K++]<<A,A+=8,A<N)S+=v[K++]<<A,A+=8}if(d+=S&(1<<N)-1,d>G){$.msg="invalid distance too far back",X.mode=B8;break Q}if(S>>>=N,A-=N,N=V-q,d>N){if(N=d-N,N>H){if(X.sane){$.msg="invalid distance too far back",X.mode=B8;break Q}}if(i=0,_=j,W===0){if(i+=B-N,N<x){x-=N;do k[V++]=j[i++];while(--N);i=V-d,_=k}}else if(W<N){if(i+=B+W-N,N-=W,N<x){x-=N;do k[V++]=j[i++];while(--N);if(i=0,W<x){N=W,x-=N;do k[V++]=j[i++];while(--N);i=V-d,_=k}}}else if(i+=W-N,N<x){x-=N;do k[V++]=j[i++];while(--N);i=V-d,_=k}while(x>2)k[V++]=_[i++],k[V++]=_[i++],k[V++]=_[i++],x-=3;if(x){if(k[V++]=_[i++],x>1)k[V++]=_[i++]}}else{i=V-d;do k[V++]=k[i++],k[V++]=k[i++],k[V++]=k[i++],x-=3;while(x>2);if(x){if(k[V++]=k[i++],x>1)k[V++]=k[i++]}}}else if((N&64)===0){F=L[(F&65535)+(S&(1<<N)-1)];continue J}else{$.msg="invalid distance code",X.mode=B8;break Q}break}}else if((N&64)===0){F=I[(F&65535)+(S&(1<<N)-1)];continue $}else if(N&32){X.mode=Bq;break Q}else{$.msg="invalid literal/length code",X.mode=B8;break Q}break}}while(K<Y&&V<U);x=A>>3,K-=x,A-=x<<3,S&=(1<<A)-1,$.next_in=K,$.next_out=V,$.avail_in=K<Y?5+(Y-K):5-(K-Y),$.avail_out=V<U?257+(U-V):257-(V-U),X.hold=S,X.bits=A;return}});var _$=B0((wG,f$)=>{var v$=N2(),S1=15,x$=852,y$=592,h$=0,l5=1,g$=2,Gq=[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],Uq=[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],zq=[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],Zq=[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];f$.exports=function($,J,X,K,Y,V,q,U){var G=U.bits,B=0,H=0,W=0,j=0,S=0,A=0,I=0,L=0,z=0,P=0,F,N,x,d,i,_=null,v=0,k,O=new v$.Buf16(S1+1),E=new v$.Buf16(S1+1),y=null,T=0,o,e,X0;for(B=0;B<=S1;B++)O[B]=0;for(H=0;H<K;H++)O[J[X+H]]++;S=G;for(j=S1;j>=1;j--)if(O[j]!==0)break;if(S>j)S=j;if(j===0)return Y[V++]=20971520,Y[V++]=20971520,U.bits=1,0;for(W=1;W<j;W++)if(O[W]!==0)break;if(S<W)S=W;L=1;for(B=1;B<=S1;B++)if(L<<=1,L-=O[B],L<0)return-1;if(L>0&&($===h$||j!==1))return-1;E[1]=0;for(B=1;B<S1;B++)E[B+1]=E[B]+O[B];for(H=0;H<K;H++)if(J[X+H]!==0)q[E[J[X+H]]++]=H;if($===h$)_=y=q,k=19;else if($===l5)_=Gq,v-=257,y=Uq,T-=257,k=256;else _=zq,y=Zq,k=-1;if(P=0,H=0,B=W,i=V,A=S,I=0,x=-1,z=1<<S,d=z-1,$===l5&&z>x$||$===g$&&z>y$)return 1;for(;;){if(o=B-I,q[H]<k)e=0,X0=q[H];else if(q[H]>k)e=y[T+q[H]],X0=_[v+q[H]];else e=96,X0=0;F=1<<B-I,N=1<<A,W=N;do N-=F,Y[i+(P>>I)+N]=o<<24|e<<16|X0|0;while(N!==0);F=1<<B-1;while(P&F)F>>=1;if(F!==0)P&=F-1,P+=F;else P=0;if(H++,--O[B]===0){if(B===j)break;B=J[X+q[H]]}if(B>S&&(P&d)!==x){if(I===0)I=S;i+=W,A=B-I,L=1<<A;while(A+I<j){if(L-=O[A+I],L<=0)break;A++,L<<=1}if(z+=1<<A,$===l5&&z>x$||$===g$&&z>y$)return 1;x=P&d,Y[x]=S<<24|A<<16|i-V|0}}if(P!==0)Y[i+P]=B-I<<24|4194304|0;return U.bits=S,0}});var LJ=B0((Q2)=>{var m0=N2(),s5=x5(),W2=y5(),Hq=S$(),F6=_$(),Wq=0,UJ=1,zJ=2,b$=4,jq=5,G8=6,K1=0,Pq=1,Mq=2,a0=-2,ZJ=-3,t5=-4,Fq=-5,u$=8,HJ=1,p$=2,c$=3,m$=4,d$=5,l$=6,i$=7,n$=8,r$=9,o$=10,Z8=11,C2=12,i5=13,a$=14,n5=15,s$=16,t$=17,e$=18,QJ=19,U8=20,z8=21,$J=22,JJ=23,XJ=24,KJ=25,YJ=26,r5=27,VJ=28,qJ=29,w0=30,e5=31,Lq=32,Iq=852,wq=592,Nq=15,Oq=Nq;function BJ(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function Cq(){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 m0.Buf16(320),this.work=new m0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function WJ(Q){var $;if(!Q||!Q.state)return a0;if($=Q.state,Q.total_in=Q.total_out=$.total=0,Q.msg="",$.wrap)Q.adler=$.wrap&1;return $.mode=HJ,$.last=0,$.havedict=0,$.dmax=32768,$.head=null,$.hold=0,$.bits=0,$.lencode=$.lendyn=new m0.Buf32(Iq),$.distcode=$.distdyn=new m0.Buf32(wq),$.sane=1,$.back=-1,K1}function jJ(Q){var $;if(!Q||!Q.state)return a0;return $=Q.state,$.wsize=0,$.whave=0,$.wnext=0,WJ(Q)}function PJ(Q,$){var J,X;if(!Q||!Q.state)return a0;if(X=Q.state,$<0)J=0,$=-$;else if(J=($>>4)+1,$<48)$&=15;if($&&($<8||$>15))return a0;if(X.window!==null&&X.wbits!==$)X.window=null;return X.wrap=J,X.wbits=$,jJ(Q)}function MJ(Q,$){var J,X;if(!Q)return a0;if(X=new Cq,Q.state=X,X.window=null,J=PJ(Q,$),J!==K1)Q.state=null;return J}function Dq(Q){return MJ(Q,Oq)}var GJ=!0,o5,a5;function Aq(Q){if(GJ){var $;o5=new m0.Buf32(512),a5=new m0.Buf32(32),$=0;while($<144)Q.lens[$++]=8;while($<256)Q.lens[$++]=9;while($<280)Q.lens[$++]=7;while($<288)Q.lens[$++]=8;F6(UJ,Q.lens,0,288,o5,0,Q.work,{bits:9}),$=0;while($<32)Q.lens[$++]=5;F6(zJ,Q.lens,0,32,a5,0,Q.work,{bits:5}),GJ=!1}Q.lencode=o5,Q.lenbits=9,Q.distcode=a5,Q.distbits=5}function FJ(Q,$,J,X){var K,Y=Q.state;if(Y.window===null)Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new m0.Buf8(Y.wsize);if(X>=Y.wsize)m0.arraySet(Y.window,$,J-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize;else{if(K=Y.wsize-Y.wnext,K>X)K=X;if(m0.arraySet(Y.window,$,J-X,K,Y.wnext),X-=K,X)m0.arraySet(Y.window,$,J-X,X,0),Y.wnext=X,Y.whave=Y.wsize;else{if(Y.wnext+=K,Y.wnext===Y.wsize)Y.wnext=0;if(Y.whave<Y.wsize)Y.whave+=K}}return 0}function Rq(Q,$){var J,X,K,Y,V,q,U,G,B,H,W,j,S,A,I=0,L,z,P,F,N,x,d,i,_=new m0.Buf8(4),v,k,O=[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 a0;if(J=Q.state,J.mode===C2)J.mode=i5;V=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,q=Q.avail_in,G=J.hold,B=J.bits,H=q,W=U,i=K1;Q:for(;;)switch(J.mode){case HJ:if(J.wrap===0){J.mode=i5;break}while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(J.wrap&2&&G===35615){J.check=0,_[0]=G&255,_[1]=G>>>8&255,J.check=W2(J.check,_,2,0),G=0,B=0,J.mode=p$;break}if(J.flags=0,J.head)J.head.done=!1;if(!(J.wrap&1)||(((G&255)<<8)+(G>>8))%31){Q.msg="incorrect header check",J.mode=w0;break}if((G&15)!==u$){Q.msg="unknown compression method",J.mode=w0;break}if(G>>>=4,B-=4,d=(G&15)+8,J.wbits===0)J.wbits=d;else if(d>J.wbits){Q.msg="invalid window size",J.mode=w0;break}J.dmax=1<<d,Q.adler=J.check=1,J.mode=G&512?o$:C2,G=0,B=0;break;case p$:while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(J.flags=G,(J.flags&255)!==u$){Q.msg="unknown compression method",J.mode=w0;break}if(J.flags&57344){Q.msg="unknown header flags set",J.mode=w0;break}if(J.head)J.head.text=G>>8&1;if(J.flags&512)_[0]=G&255,_[1]=G>>>8&255,J.check=W2(J.check,_,2,0);G=0,B=0,J.mode=c$;case c$:while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(J.head)J.head.time=G;if(J.flags&512)_[0]=G&255,_[1]=G>>>8&255,_[2]=G>>>16&255,_[3]=G>>>24&255,J.check=W2(J.check,_,4,0);G=0,B=0,J.mode=m$;case m$:while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(J.head)J.head.xflags=G&255,J.head.os=G>>8;if(J.flags&512)_[0]=G&255,_[1]=G>>>8&255,J.check=W2(J.check,_,2,0);G=0,B=0,J.mode=d$;case d$:if(J.flags&1024){while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(J.length=G,J.head)J.head.extra_len=G;if(J.flags&512)_[0]=G&255,_[1]=G>>>8&255,J.check=W2(J.check,_,2,0);G=0,B=0}else if(J.head)J.head.extra=null;J.mode=l$;case l$:if(J.flags&1024){if(j=J.length,j>q)j=q;if(j){if(J.head){if(d=J.head.extra_len-J.length,!J.head.extra)J.head.extra=Array(J.head.extra_len);m0.arraySet(J.head.extra,X,Y,j,d)}if(J.flags&512)J.check=W2(J.check,X,j,Y);q-=j,Y+=j,J.length-=j}if(J.length)break Q}J.length=0,J.mode=i$;case i$:if(J.flags&2048){if(q===0)break Q;j=0;do if(d=X[Y+j++],J.head&&d&&J.length<65536)J.head.name+=String.fromCharCode(d);while(d&&j<q);if(J.flags&512)J.check=W2(J.check,X,j,Y);if(q-=j,Y+=j,d)break Q}else if(J.head)J.head.name=null;J.length=0,J.mode=n$;case n$:if(J.flags&4096){if(q===0)break Q;j=0;do if(d=X[Y+j++],J.head&&d&&J.length<65536)J.head.comment+=String.fromCharCode(d);while(d&&j<q);if(J.flags&512)J.check=W2(J.check,X,j,Y);if(q-=j,Y+=j,d)break Q}else if(J.head)J.head.comment=null;J.mode=r$;case r$:if(J.flags&512){while(B<16){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G!==(J.check&65535)){Q.msg="header crc mismatch",J.mode=w0;break}G=0,B=0}if(J.head)J.head.hcrc=J.flags>>9&1,J.head.done=!0;Q.adler=J.check=0,J.mode=C2;break;case o$:while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}Q.adler=J.check=BJ(G),G=0,B=0,J.mode=Z8;case Z8:if(J.havedict===0)return Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,J.hold=G,J.bits=B,Mq;Q.adler=J.check=1,J.mode=C2;case C2:if($===jq||$===G8)break Q;case i5:if(J.last){G>>>=B&7,B-=B&7,J.mode=r5;break}while(B<3){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}switch(J.last=G&1,G>>>=1,B-=1,G&3){case 0:J.mode=a$;break;case 1:if(Aq(J),J.mode=U8,$===G8){G>>>=2,B-=2;break Q}break;case 2:J.mode=t$;break;case 3:Q.msg="invalid block type",J.mode=w0}G>>>=2,B-=2;break;case a$:G>>>=B&7,B-=B&7;while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if((G&65535)!==(G>>>16^65535)){Q.msg="invalid stored block lengths",J.mode=w0;break}if(J.length=G&65535,G=0,B=0,J.mode=n5,$===G8)break Q;case n5:J.mode=s$;case s$:if(j=J.length,j){if(j>q)j=q;if(j>U)j=U;if(j===0)break Q;m0.arraySet(K,X,Y,j,V),q-=j,Y+=j,U-=j,V+=j,J.length-=j;break}J.mode=C2;break;case t$:while(B<14){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(J.nlen=(G&31)+257,G>>>=5,B-=5,J.ndist=(G&31)+1,G>>>=5,B-=5,J.ncode=(G&15)+4,G>>>=4,B-=4,J.nlen>286||J.ndist>30){Q.msg="too many length or distance symbols",J.mode=w0;break}J.have=0,J.mode=e$;case e$:while(J.have<J.ncode){while(B<3){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}J.lens[O[J.have++]]=G&7,G>>>=3,B-=3}while(J.have<19)J.lens[O[J.have++]]=0;if(J.lencode=J.lendyn,J.lenbits=7,v={bits:J.lenbits},i=F6(Wq,J.lens,0,19,J.lencode,0,J.work,v),J.lenbits=v.bits,i){Q.msg="invalid code lengths set",J.mode=w0;break}J.have=0,J.mode=QJ;case QJ:while(J.have<J.nlen+J.ndist){for(;;){if(I=J.lencode[G&(1<<J.lenbits)-1],L=I>>>24,z=I>>>16&255,P=I&65535,L<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(P<16)G>>>=L,B-=L,J.lens[J.have++]=P;else{if(P===16){k=L+2;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G>>>=L,B-=L,J.have===0){Q.msg="invalid bit length repeat",J.mode=w0;break}d=J.lens[J.have-1],j=3+(G&3),G>>>=2,B-=2}else if(P===17){k=L+3;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=L,B-=L,d=0,j=3+(G&7),G>>>=3,B-=3}else{k=L+7;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=L,B-=L,d=0,j=11+(G&127),G>>>=7,B-=7}if(J.have+j>J.nlen+J.ndist){Q.msg="invalid bit length repeat",J.mode=w0;break}while(j--)J.lens[J.have++]=d}}if(J.mode===w0)break;if(J.lens[256]===0){Q.msg="invalid code -- missing end-of-block",J.mode=w0;break}if(J.lenbits=9,v={bits:J.lenbits},i=F6(UJ,J.lens,0,J.nlen,J.lencode,0,J.work,v),J.lenbits=v.bits,i){Q.msg="invalid literal/lengths set",J.mode=w0;break}if(J.distbits=6,J.distcode=J.distdyn,v={bits:J.distbits},i=F6(zJ,J.lens,J.nlen,J.ndist,J.distcode,0,J.work,v),J.distbits=v.bits,i){Q.msg="invalid distances set",J.mode=w0;break}if(J.mode=U8,$===G8)break Q;case U8:J.mode=z8;case z8:if(q>=6&&U>=258){if(Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,J.hold=G,J.bits=B,Hq(Q,W),V=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,q=Q.avail_in,G=J.hold,B=J.bits,J.mode===C2)J.back=-1;break}J.back=0;for(;;){if(I=J.lencode[G&(1<<J.lenbits)-1],L=I>>>24,z=I>>>16&255,P=I&65535,L<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(z&&(z&240)===0){F=L,N=z,x=P;for(;;){if(I=J.lencode[x+((G&(1<<F+N)-1)>>F)],L=I>>>24,z=I>>>16&255,P=I&65535,F+L<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=F,B-=F,J.back+=F}if(G>>>=L,B-=L,J.back+=L,J.length=P,z===0){J.mode=YJ;break}if(z&32){J.back=-1,J.mode=C2;break}if(z&64){Q.msg="invalid literal/length code",J.mode=w0;break}J.extra=z&15,J.mode=$J;case $J:if(J.extra){k=J.extra;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}J.length+=G&(1<<J.extra)-1,G>>>=J.extra,B-=J.extra,J.back+=J.extra}J.was=J.length,J.mode=JJ;case JJ:for(;;){if(I=J.distcode[G&(1<<J.distbits)-1],L=I>>>24,z=I>>>16&255,P=I&65535,L<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if((z&240)===0){F=L,N=z,x=P;for(;;){if(I=J.distcode[x+((G&(1<<F+N)-1)>>F)],L=I>>>24,z=I>>>16&255,P=I&65535,F+L<=B)break;if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}G>>>=F,B-=F,J.back+=F}if(G>>>=L,B-=L,J.back+=L,z&64){Q.msg="invalid distance code",J.mode=w0;break}J.offset=P,J.extra=z&15,J.mode=XJ;case XJ:if(J.extra){k=J.extra;while(B<k){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}J.offset+=G&(1<<J.extra)-1,G>>>=J.extra,B-=J.extra,J.back+=J.extra}if(J.offset>J.dmax){Q.msg="invalid distance too far back",J.mode=w0;break}J.mode=KJ;case KJ:if(U===0)break Q;if(j=W-U,J.offset>j){if(j=J.offset-j,j>J.whave){if(J.sane){Q.msg="invalid distance too far back",J.mode=w0;break}}if(j>J.wnext)j-=J.wnext,S=J.wsize-j;else S=J.wnext-j;if(j>J.length)j=J.length;A=J.window}else A=K,S=V-J.offset,j=J.length;if(j>U)j=U;U-=j,J.length-=j;do K[V++]=A[S++];while(--j);if(J.length===0)J.mode=z8;break;case YJ:if(U===0)break Q;K[V++]=J.length,U--,J.mode=z8;break;case r5:if(J.wrap){while(B<32){if(q===0)break Q;q--,G|=X[Y++]<<B,B+=8}if(W-=U,Q.total_out+=W,J.total+=W,W)Q.adler=J.check=J.flags?W2(J.check,K,W,V-W):s5(J.check,K,W,V-W);if(W=U,(J.flags?G:BJ(G))!==J.check){Q.msg="incorrect data check",J.mode=w0;break}G=0,B=0}J.mode=VJ;case VJ:if(J.wrap&&J.flags){while(B<32){if(q===0)break Q;q--,G+=X[Y++]<<B,B+=8}if(G!==(J.total&4294967295)){Q.msg="incorrect length check",J.mode=w0;break}G=0,B=0}J.mode=qJ;case qJ:i=Pq;break Q;case w0:i=ZJ;break Q;case e5:return t5;case Lq:default:return a0}if(Q.next_out=V,Q.avail_out=U,Q.next_in=Y,Q.avail_in=q,J.hold=G,J.bits=B,J.wsize||W!==Q.avail_out&&J.mode<w0&&(J.mode<r5||$!==b$)){if(FJ(Q,Q.output,Q.next_out,W-Q.avail_out))return J.mode=e5,t5}if(H-=Q.avail_in,W-=Q.avail_out,Q.total_in+=H,Q.total_out+=W,J.total+=W,J.wrap&&W)Q.adler=J.check=J.flags?W2(J.check,K,W,Q.next_out-W):s5(J.check,K,W,Q.next_out-W);if(Q.data_type=J.bits+(J.last?64:0)+(J.mode===C2?128:0)+(J.mode===U8||J.mode===n5?256:0),(H===0&&W===0||$===b$)&&i===K1)i=Fq;return i}function Tq(Q){if(!Q||!Q.state)return a0;var $=Q.state;if($.window)$.window=null;return Q.state=null,K1}function kq(Q,$){var J;if(!Q||!Q.state)return a0;if(J=Q.state,(J.wrap&2)===0)return a0;return J.head=$,$.done=!1,K1}function Eq(Q,$){var J=$.length,X,K,Y;if(!Q||!Q.state)return a0;if(X=Q.state,X.wrap!==0&&X.mode!==Z8)return a0;if(X.mode===Z8){if(K=1,K=s5(K,$,J,0),K!==X.check)return ZJ}if(Y=FJ(Q,$,J,J),Y)return X.mode=e5,t5;return X.havedict=1,K1}Q2.inflateReset=jJ;Q2.inflateReset2=PJ;Q2.inflateResetKeep=WJ;Q2.inflateInit=Dq;Q2.inflateInit2=MJ;Q2.inflate=Rq;Q2.inflateEnd=Tq;Q2.inflateGetHeader=kq;Q2.inflateSetDictionary=Eq;Q2.inflateInfo="pako inflate (from Nodeca project)"});var Q4=B0((OG,IJ)=>{IJ.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 NJ=B0((CG,wJ)=>{function Sq(){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}wJ.exports=Sq});var CJ=B0((I6)=>{var v1=LJ(),L6=N2(),H8=b5(),D0=Q4(),$4=Q8(),vq=u5(),xq=NJ(),OJ=Object.prototype.toString;function Y1(Q){if(!(this instanceof Y1))return new Y1(Q);this.options=L6.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 vq,this.strm.avail_out=0;var J=v1.inflateInit2(this.strm,$.windowBits);if(J!==D0.Z_OK)throw Error($4[J]);if(this.header=new xq,v1.inflateGetHeader(this.strm,this.header),$.dictionary){if(typeof $.dictionary==="string")$.dictionary=H8.string2buf($.dictionary);else if(OJ.call($.dictionary)==="[object ArrayBuffer]")$.dictionary=new Uint8Array($.dictionary);if($.raw){if(J=v1.inflateSetDictionary(this.strm,$.dictionary),J!==D0.Z_OK)throw Error($4[J])}}}Y1.prototype.push=function(Q,$){var J=this.strm,X=this.options.chunkSize,K=this.options.dictionary,Y,V,q,U,G,B=!1;if(this.ended)return!1;if(V=$===~~$?$:$===!0?D0.Z_FINISH:D0.Z_NO_FLUSH,typeof Q==="string")J.input=H8.binstring2buf(Q);else if(OJ.call(Q)==="[object ArrayBuffer]")J.input=new Uint8Array(Q);else J.input=Q;J.next_in=0,J.avail_in=J.input.length;do{if(J.avail_out===0)J.output=new L6.Buf8(X),J.next_out=0,J.avail_out=X;if(Y=v1.inflate(J,D0.Z_NO_FLUSH),Y===D0.Z_NEED_DICT&&K)Y=v1.inflateSetDictionary(this.strm,K);if(Y===D0.Z_BUF_ERROR&&B===!0)Y=D0.Z_OK,B=!1;if(Y!==D0.Z_STREAM_END&&Y!==D0.Z_OK)return this.onEnd(Y),this.ended=!0,!1;if(J.next_out){if(J.avail_out===0||Y===D0.Z_STREAM_END||J.avail_in===0&&(V===D0.Z_FINISH||V===D0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(q=H8.utf8border(J.output,J.next_out),U=J.next_out-q,G=H8.buf2string(J.output,q),J.next_out=U,J.avail_out=X-U,U)L6.arraySet(J.output,J.output,q,U,0);this.onData(G)}else this.onData(L6.shrinkBuf(J.output,J.next_out))}if(J.avail_in===0&&J.avail_out===0)B=!0}while((J.avail_in>0||J.avail_out===0)&&Y!==D0.Z_STREAM_END);if(Y===D0.Z_STREAM_END)V=D0.Z_FINISH;if(V===D0.Z_FINISH)return Y=v1.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===D0.Z_OK;if(V===D0.Z_SYNC_FLUSH)return this.onEnd(D0.Z_OK),J.avail_out=0,!0;return!0};Y1.prototype.onData=function(Q){this.chunks.push(Q)};Y1.prototype.onEnd=function(Q){if(Q===D0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=L6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function J4(Q,$){var J=new Y1($);if(J.push(Q,!0),J.err)throw J.msg||$4[J.err];return J.result}function yq(Q,$){return $=$||{},$.raw=!0,J4(Q,$)}I6.Inflate=Y1;I6.inflate=J4;I6.inflateRaw=yq;I6.ungzip=J4});var RJ=B0((AG,AJ)=>{var hq=N2().assign,gq=k$(),fq=CJ(),_q=Q4(),DJ={};hq(DJ,gq,fq,_q);AJ.exports=DJ});var kJ=B0((j8)=>{var bq=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",uq=RJ(),TJ=C0(),W8=c0(),pq=bq?"uint8array":"array";j8.magic="\b\x00";function V1(Q,$){W8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=$,this.meta={}}TJ.inherits(V1,W8);V1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(TJ.transformTo(pq,Q.data),!1)};V1.prototype.flush=function(){if(W8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};V1.prototype.cleanUp=function(){W8.prototype.cleanUp.call(this),this._pako=null};V1.prototype._createPako=function(){this._pako=new uq[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function($){Q.push({data:$,meta:Q.meta})}};j8.compressWorker=function(Q){return new V1("Deflate",Q)};j8.uncompressWorker=function(){return new V1("Inflate",{})}});var K4=B0((X4)=>{var EJ=c0();X4.STORE={magic:"\x00\x00",compressWorker:function(){return new EJ("STORE compression")},uncompressWorker:function(){return new EJ("STORE decompression")}};X4.DEFLATE=kJ()});var Y4=B0((q1)=>{q1.LOCAL_FILE_HEADER="PK\x03\x04";q1.CENTRAL_FILE_HEADER="PK\x01\x02";q1.CENTRAL_DIRECTORY_END="PK\x05\x06";q1.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";q1.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";q1.DATA_DESCRIPTOR="PK\x07\b"});var yJ=B0((EG,xJ)=>{var x1=C0(),y1=c0(),V4=w1(),SJ=a6(),P8=Y4(),L0=function(Q,$){var J="",X;for(X=0;X<$;X++)J+=String.fromCharCode(Q&255),Q=Q>>>8;return J},cq=function(Q,$){var J=Q;if(!Q)J=$?16893:33204;return(J&65535)<<16},mq=function(Q){return(Q||0)&63},vJ=function(Q,$,J,X,K,Y){var{file:V,compression:q}=Q,U=Y!==V4.utf8encode,G=x1.transformTo("string",Y(V.name)),B=x1.transformTo("string",V4.utf8encode(V.name)),H=V.comment,W=x1.transformTo("string",Y(H)),j=x1.transformTo("string",V4.utf8encode(H)),S=B.length!==V.name.length,A=j.length!==H.length,I,L,z="",P="",F="",N=V.dir,x=V.date,d={crc32:0,compressedSize:0,uncompressedSize:0};if(!$||J)d.crc32=Q.crc32,d.compressedSize=Q.compressedSize,d.uncompressedSize=Q.uncompressedSize;var i=0;if($)i|=8;if(!U&&(S||A))i|=2048;var _=0,v=0;if(N)_|=16;if(K==="UNIX")v=798,_|=cq(V.unixPermissions,N);else v=20,_|=mq(V.dosPermissions,N);if(I=x.getUTCHours(),I=I<<6,I=I|x.getUTCMinutes(),I=I<<5,I=I|x.getUTCSeconds()/2,L=x.getUTCFullYear()-1980,L=L<<4,L=L|x.getUTCMonth()+1,L=L<<5,L=L|x.getUTCDate(),S)P=L0(1,1)+L0(SJ(G),4)+B,z+="up"+L0(P.length,2)+P;if(A)F=L0(1,1)+L0(SJ(W),4)+j,z+="uc"+L0(F.length,2)+F;var k="";k+=`
|
|
3
|
+
\x00`,k+=L0(i,2),k+=q.magic,k+=L0(I,2),k+=L0(L,2),k+=L0(d.crc32,4),k+=L0(d.compressedSize,4),k+=L0(d.uncompressedSize,4),k+=L0(G.length,2),k+=L0(z.length,2);var O=P8.LOCAL_FILE_HEADER+k+G+z,E=P8.CENTRAL_FILE_HEADER+L0(v,2)+k+L0(W.length,2)+"\x00\x00\x00\x00"+L0(_,4)+L0(X,4)+G+z+W;return{fileRecord:O,dirRecord:E}},dq=function(Q,$,J,X,K){var Y="",V=x1.transformTo("string",K(X));return Y=P8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+L0(Q,2)+L0(Q,2)+L0($,4)+L0(J,4)+L0(V.length,2)+V,Y},lq=function(Q){var $="";return $=P8.DATA_DESCRIPTOR+L0(Q.crc32,4)+L0(Q.compressedSize,4)+L0(Q.uncompressedSize,4),$};function $2(Q,$,J,X){y1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=$,this.zipPlatform=J,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}x1.inherits($2,y1);$2.prototype.push=function(Q){var $=Q.meta.percent||0,J=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,y1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:J?($+100*(J-X-1))/J:100}})};$2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var $=this.streamFiles&&!Q.file.dir;if($){var J=vJ(Q,$,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:J.fileRecord,meta:{percent:0}})}else this.accumulate=!0};$2.prototype.closedSource=function(Q){this.accumulate=!1;var $=this.streamFiles&&!Q.file.dir,J=vJ(Q,$,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(J.dirRecord),$)this.push({data:lq(Q),meta:{percent:100}});else{this.push({data:J.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};$2.prototype.flush=function(){var Q=this.bytesWritten;for(var $=0;$<this.dirRecords.length;$++)this.push({data:this.dirRecords[$],meta:{percent:100}});var J=this.bytesWritten-Q,X=dq(this.dirRecords.length,J,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};$2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};$2.prototype.registerPrevious=function(Q){this._sources.push(Q);var $=this;return Q.on("data",function(J){$.processChunk(J)}),Q.on("end",function(){if($.closedSource($.previous.streamInfo),$._sources.length)$.prepareNextSource();else $.end()}),Q.on("error",function(J){$.error(J)}),this};$2.prototype.resume=function(){if(!y1.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};$2.prototype.error=function(Q){var $=this._sources;if(!y1.prototype.error.call(this,Q))return!1;for(var J=0;J<$.length;J++)try{$[J].error(Q)}catch(X){}return!0};$2.prototype.lock=function(){y1.prototype.lock.call(this);var Q=this._sources;for(var $=0;$<Q.length;$++)Q[$].lock()};xJ.exports=$2});var gJ=B0((hJ)=>{var iq=K4(),nq=yJ(),rq=function(Q,$){var J=Q||$,X=iq[J];if(!X)throw Error(J+" is not a valid compression method !");return X};hJ.generateWorker=function(Q,$,J){var X=new nq($.streamFiles,J,$.platform,$.encodeFileName),K=0;try{Q.forEach(function(Y,V){K++;var q=rq(V.options.compression,$.compression),U=V.options.compressionOptions||$.compressionOptions||{},G=V.dir,B=V.date;V._compressWorker(q,U).withStreamInfo("file",{name:Y,dir:G,date:B,comment:V.comment||"",unixPermissions:V.unixPermissions,dosPermissions:V.dosPermissions}).pipe(X)}),X.entriesCount=K}catch(Y){X.error(Y)}return X}});var _J=B0((vG,fJ)=>{var oq=C0(),M8=c0();function w6(Q,$){M8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream($)}oq.inherits(w6,M8);w6.prototype._bindStream=function(Q){var $=this;this._stream=Q,Q.pause(),Q.on("data",function(J){$.push({data:J,meta:{percent:0}})}).on("error",function(J){if($.isPaused)this.generatedError=J;else $.error(J)}).on("end",function(){if($.isPaused)$._upstreamEnded=!0;else $.end()})};w6.prototype.pause=function(){if(!M8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};w6.prototype.resume=function(){if(!M8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};fJ.exports=w6});var rJ=B0((xG,nJ)=>{var aq=w1(),N6=C0(),cJ=c0(),sq=z5(),mJ=Z5(),bJ=s6(),tq=uQ(),eq=gJ(),uJ=s1(),QB=_J(),dJ=function(Q,$,J){var X=N6.getTypeOf($),K,Y=N6.extend(J||{},mJ);if(Y.date=Y.date||new Date,Y.compression!==null)Y.compression=Y.compression.toUpperCase();if(typeof Y.unixPermissions==="string")Y.unixPermissions=parseInt(Y.unixPermissions,8);if(Y.unixPermissions&&Y.unixPermissions&16384)Y.dir=!0;if(Y.dosPermissions&&Y.dosPermissions&16)Y.dir=!0;if(Y.dir)Q=lJ(Q);if(Y.createFolders&&(K=$B(Q)))iJ.call(this,K,!0);var V=X==="string"&&Y.binary===!1&&Y.base64===!1;if(!J||typeof J.binary>"u")Y.binary=!V;var q=$ instanceof bJ&&$.uncompressedSize===0;if(q||Y.dir||!$||$.length===0)Y.base64=!1,Y.binary=!0,$="",Y.compression="STORE",X="string";var U=null;if($ instanceof bJ||$ instanceof cJ)U=$;else if(uJ.isNode&&uJ.isStream($))U=new QB(Q,$);else U=N6.prepareContent(Q,$,Y.binary,Y.optimizedBinaryString,Y.base64);var G=new tq(Q,U,Y);this.files[Q]=G},$B=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var $=Q.lastIndexOf("/");return $>0?Q.substring(0,$):""},lJ=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},iJ=function(Q,$){if($=typeof $<"u"?$:mJ.createFolders,Q=lJ(Q),!this.files[Q])dJ.call(this,Q,null,{dir:!0,createFolders:$});return this.files[Q]};function pJ(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var JB={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var $,J,X;for($ in this.files)if(X=this.files[$],J=$.slice(this.root.length,$.length),J&&$.slice(0,this.root.length)===this.root)Q(J,X)},filter:function(Q){var $=[];return this.forEach(function(J,X){if(Q(J,X))$.push(X)}),$},file:function(Q,$,J){if(arguments.length===1)if(pJ(Q)){var X=Q;return this.filter(function(Y,V){return!V.dir&&X.test(Y)})}else{var K=this.files[this.root+Q];if(K&&!K.dir)return K;else return null}else Q=this.root+Q,dJ.call(this,Q,$,J);return this},folder:function(Q){if(!Q)return this;if(pJ(Q))return this.filter(function(K,Y){return Y.dir&&Q.test(K)});var $=this.root+Q,J=iJ.call(this,$),X=this.clone();return X.root=J.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 J=this.filter(function(K,Y){return Y.name.slice(0,Q.length)===Q});for(var X=0;X<J.length;X++)delete this.files[J[X].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var $,J={};try{if(J=N6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:aq.utf8encode}),J.type=J.type.toLowerCase(),J.compression=J.compression.toUpperCase(),J.type==="binarystring")J.type="string";if(!J.type)throw Error("No output type specified.");if(N6.checkSupport(J.type),J.platform==="darwin"||J.platform==="freebsd"||J.platform==="linux"||J.platform==="sunos")J.platform="UNIX";if(J.platform==="win32")J.platform="DOS";var X=J.comment||this.comment||"";$=eq.generateWorker(this,J,X)}catch(K){$=new cJ("error"),$.error(K)}return new sq($,J.type||"string",J.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($)}};nJ.exports=JB});var q4=B0((yG,aJ)=>{var XB=C0();function oJ(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}oJ.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw 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,J;this.checkOffset(Q);for(J=this.index+Q-1;J>=this.index;J--)$=($<<8)+this.byteAt(J);return this.index+=Q,$},readString:function(Q){return XB.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))}};aJ.exports=oJ});var B4=B0((hG,tJ)=>{var sJ=q4(),KB=C0();function h1(Q){sJ.call(this,Q);for(var $=0;$<this.data.length;$++)Q[$]=Q[$]&255}KB.inherits(h1,sJ);h1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};h1.prototype.lastIndexOfSignature=function(Q){var $=Q.charCodeAt(0),J=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3);for(var Y=this.length-4;Y>=0;--Y)if(this.data[Y]===$&&this.data[Y+1]===J&&this.data[Y+2]===X&&this.data[Y+3]===K)return Y-this.zero;return-1};h1.prototype.readAndCheckSignature=function(Q){var $=Q.charCodeAt(0),J=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3),Y=this.readData(4);return $===Y[0]&&J===Y[1]&&X===Y[2]&&K===Y[3]};h1.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,$};tJ.exports=h1});var $X=B0((gG,QX)=>{var eJ=q4(),YB=C0();function g1(Q){eJ.call(this,Q)}YB.inherits(g1,eJ);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,$};QX.exports=g1});var U4=B0((fG,XX)=>{var JX=B4(),VB=C0();function G4(Q){JX.call(this,Q)}VB.inherits(G4,JX);G4.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,$};XX.exports=G4});var VX=B0((_G,YX)=>{var KX=U4(),qB=C0();function z4(Q){KX.call(this,Q)}qB.inherits(z4,KX);z4.prototype.readData=function(Q){this.checkOffset(Q);var $=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,$};YX.exports=z4});var Z4=B0((bG,BX)=>{var F8=C0(),qX=w2(),BB=B4(),GB=$X(),UB=VX(),zB=U4();BX.exports=function(Q){var $=F8.getTypeOf(Q);if(F8.checkSupport($),$==="string"&&!qX.uint8array)return new GB(Q);if($==="nodebuffer")return new UB(Q);if(qX.uint8array)return new zB(F8.transformTo("uint8array",Q));return new BB(F8.transformTo("array",Q))}});var ZX=B0((uG,zX)=>{var H4=Z4(),u2=C0(),ZB=s6(),GX=a6(),L8=w1(),I8=K4(),HB=w2(),WB=0,jB=3,PB=function(Q){for(var $ in I8){if(!Object.prototype.hasOwnProperty.call(I8,$))continue;if(I8[$].magic===Q)return I8[$]}return null};function UX(Q,$){this.options=Q,this.loadOptions=$}UX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var $,J;if(Q.skip(22),this.fileNameLength=Q.readInt(2),J=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip(J),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if($=PB(this.compressionMethod),$===null)throw Error("Corrupted zip : compression "+u2.pretty(this.compressionMethod)+" unknown (inner file : "+u2.transformTo("string",this.fileName)+")");this.decompressed=new ZB(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 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===WB)this.dosPermissions=this.externalFileAttributes&63;if(Q===jB)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=H4(this.extraFields[1].value);if(this.uncompressedSize===u2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===u2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===u2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===u2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var $=Q.index+this.extraFieldsLength,J,X,K;if(!this.extraFields)this.extraFields={};while(Q.index+4<$)J=Q.readInt(2),X=Q.readInt(2),K=Q.readData(X),this.extraFields[J]={id:J,length:X,value:K};Q.setIndex($)},handleUTF8:function(){var Q=HB.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=L8.utf8decode(this.fileName),this.fileCommentStr=L8.utf8decode(this.fileComment);else{var $=this.findExtraFieldUnicodePath();if($!==null)this.fileNameStr=$;else{var J=u2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(J)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var K=u2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var $=H4(Q.value);if($.readInt(1)!==1)return null;if(GX(this.fileName)!==$.readInt(4))return null;return L8.utf8decode($.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var $=H4(Q.value);if($.readInt(1)!==1)return null;if(GX(this.fileComment)!==$.readInt(4))return null;return L8.utf8decode($.readData(Q.length-5))}return null}};zX.exports=UX});var jX=B0((pG,WX)=>{var MB=Z4(),D2=C0(),J2=Y4(),FB=ZX(),LB=w2();function HX(Q){this.files=[],this.loadOptions=Q}HX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var $=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+D2.pretty($)+", expected "+D2.pretty(Q)+")")}},isSignature:function(Q,$){var J=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),K=X===$;return this.reader.setIndex(J),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 Q=this.reader.readData(this.zipCommentLength),$=LB.uint8array?"uint8array":"array",J=D2.transformTo($,Q);this.zipComment=this.loadOptions.decodeFileName(J)},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,J,X,K;while($<Q)J=this.reader.readInt(2),X=this.reader.readInt(4),K=this.reader.readData(X),this.zip64ExtensibleData[J]={id:J,length:X,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 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(J2.LOCAL_FILE_HEADER),$.readLocalPart(this.reader),$.handleUTF8(),$.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(J2.CENTRAL_FILE_HEADER))Q=new FB({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 Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature(J2.CENTRAL_DIRECTORY_END);if(Q<0){var $=!this.isSignature(0,J2.LOCAL_FILE_HEADER);if($)throw 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 Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var J=Q;if(this.checkSignature(J2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===D2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===D2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===D2.MAX_VALUE_16BITS||this.centralDirRecords===D2.MAX_VALUE_16BITS||this.centralDirSize===D2.MAX_VALUE_32BITS||this.centralDirOffset===D2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(J2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature(J2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,J2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(J2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(J2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var K=J-X;if(K>0)if(this.isSignature(J,J2.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function(Q){this.reader=MB(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};WX.exports=HX});var FX=B0((cG,MX)=>{var W4=C0(),w8=F1(),IB=w1(),wB=jX(),NB=j5(),PX=s1();function OB(Q){return new w8.Promise(function($,J){var X=Q.decompressed.getContentWorker().pipe(new NB);X.on("error",function(K){J(K)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)J(Error("Corrupted zip : CRC32 mismatch"));else $()}).resume()})}MX.exports=function(Q,$){var J=this;if($=W4.extend($||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:IB.utf8decode}),PX.isNode&&PX.isStream(Q))return w8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return W4.prepareContent("the loaded zip file",Q,!0,$.optimizedBinaryString,$.base64).then(function(X){var K=new wB($);return K.load(X),K}).then(function(K){var Y=[w8.Promise.resolve(K)],V=K.files;if($.checkCRC32)for(var q=0;q<V.length;q++)Y.push(OB(V[q]));return w8.Promise.all(Y)}).then(function(K){var Y=K.shift(),V=Y.files;for(var q=0;q<V.length;q++){var U=V[q],G=U.fileNameStr,B=W4.resolve(U.fileNameStr);if(J.file(B,U.decompressed,{binary:!0,optimizedBinaryString:!0,date:U.date,dir:U.dir,comment:U.fileCommentStr.length?U.fileCommentStr:null,unixPermissions:U.unixPermissions,dosPermissions:U.dosPermissions,createFolders:$.createFolders}),!U.dir)J.file(B).unsafeOriginalName=G}if(Y.zipComment.length)J.comment=Y.zipComment;return J})}});var IX=B0((mG,LX)=>{function s0(){if(!(this instanceof s0))return new s0;if(arguments.length)throw 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 s0;for(var $ in this)if(typeof this[$]!=="function")Q[$]=this[$];return Q}}s0.prototype=rJ();s0.prototype.loadAsync=FX();s0.support=w2();s0.defaults=Z5();s0.version="3.10.1";s0.loadAsync=function(Q,$){return new s0().loadAsync(Q,$)};s0.external=F1();LX.exports=s0});var yB={};k8(yB,{downloadImages:()=>O6,copyImageToClipboard:()=>L4,capture:()=>F4});function D6(Q,$){if(!$.has(Q))return $.add(Q),Q;let J=Q.lastIndexOf("."),X=J!==-1?Q.slice(0,J):Q,K=J!==-1?Q.slice(J):"",Y=X.match(/-(\d+)$/),V=X,q=2;if(Y)V=X.slice(0,-Y[0].length),q=parseInt(Y[1],10)+1;let U=`${V}-${q}${K}`;while($.has(U))q++,U=`${V}-${q}${K}`;return $.add(U),U}function x4(Q,$){let J=Q.label;if(Q.includeScaleInLabel)J+=`_@${Q.scale}x`;return J+=`.${Q.format}`,D6(J,$)}function iX(Q,$){return Q[13]=1,Q[14]=$>>8,Q[15]=$&255,Q[16]=$>>8,Q[17]=$&255,Q}var u4=112,p4=72,c4=89,m4=115,E8;function nX(){let Q=new Int32Array(256);for(let $=0;$<256;$++){let J=$;for(let X=0;X<8;X++)J=J&1?3988292384^J>>>1:J>>>1;Q[$]=J}return Q}function rX(Q){let $=-1;if(!E8)E8=nX();for(let J=0;J<Q.length;J++)$=E8[($^Q[J])&255]^$>>>8;return $^-1}function oX(Q){let $=Q.length-1;for(let J=$;J>=4;J--)if(Q[J-4]===9&&Q[J-3]===u4&&Q[J-2]===p4&&Q[J-1]===c4&&Q[J]===m4)return J-3;return 0}function aX(Q,$,J=!1){let X=new Uint8Array(13);$*=39.3701,X[0]=u4,X[1]=p4,X[2]=c4,X[3]=m4,X[4]=$>>>24,X[5]=$>>>16,X[6]=$>>>8,X[7]=$&255,X[8]=X[4],X[9]=X[5],X[10]=X[6],X[11]=X[7],X[12]=1;let K=rX(X),Y=new Uint8Array(4);if(Y[0]=K>>>24,Y[1]=K>>>16,Y[2]=K>>>8,Y[3]=K&255,J){let V=oX(Q);return Q.set(X,V),Q.set(Y,V+13),Q}else{let V=new Uint8Array(4);V[0]=0,V[1]=0,V[2]=0,V[3]=9;let q=new Uint8Array(54);return q.set(Q,0),q.set(V,33),q.set(X,37),q.set(Y,50),q}}var sX="AAlwSFlz",tX="AAAJcEhZ",eX="AAAACXBI";function QK(Q){let $=Q.indexOf(sX);if($===-1)$=Q.indexOf(tX);if($===-1)$=Q.indexOf(eX);return $}var d4="[modern-screenshot]",A2=typeof window<"u",$K=A2&&"Worker"in window,JK=A2&&"atob"in window,XK=A2&&"btoa"in window,x8=A2?window.navigator?.userAgent:"",l4=x8.includes("Chrome"),A6=x8.includes("AppleWebKit")&&!l4,y8=x8.includes("Firefox"),KK=(Q)=>Q&&("__CONTEXT__"in Q),YK=(Q)=>Q.constructor.name==="CSSFontFaceRule",VK=(Q)=>Q.constructor.name==="CSSImportRule",qK=(Q)=>Q.constructor.name==="CSSLayerBlockRule",K2=(Q)=>Q.nodeType===1,m1=(Q)=>typeof Q.className==="object",i4=(Q)=>Q.tagName==="image",BK=(Q)=>Q.tagName==="use",u1=(Q)=>K2(Q)&&typeof Q.style<"u"&&!m1(Q),GK=(Q)=>Q.nodeType===8,UK=(Q)=>Q.nodeType===3,H1=(Q)=>Q.tagName==="IMG",R6=(Q)=>Q.tagName==="VIDEO",zK=(Q)=>Q.tagName==="CANVAS",ZK=(Q)=>Q.tagName==="TEXTAREA",HK=(Q)=>Q.tagName==="INPUT",WK=(Q)=>Q.tagName==="STYLE",jK=(Q)=>Q.tagName==="SCRIPT",PK=(Q)=>Q.tagName==="SELECT",MK=(Q)=>Q.tagName==="SLOT",FK=(Q)=>Q.tagName==="IFRAME",LK=(...Q)=>console.warn(d4,...Q);function IK(Q){let $=Q?.createElement?.("canvas");if($)$.height=$.width=1;return Boolean($)&&"toDataURL"in $&&Boolean($.toDataURL("image/webp").includes("image/webp"))}var S8=(Q)=>Q.startsWith("data:");function n4(Q,$){if(Q.match(/^[a-z]+:\/\//i))return Q;if(A2&&Q.match(/^\/\//))return window.location.protocol+Q;if(Q.match(/^[a-z]+:/i))return Q;if(!A2)return Q;let J=T6().implementation.createHTMLDocument(),X=J.createElement("base"),K=J.createElement("a");if(J.head.appendChild(X),J.body.appendChild(K),$)X.href=$;return K.href=Q,K.href}function T6(Q){return(Q&&K2(Q)?Q?.ownerDocument:Q)??window.document}var k6="http://www.w3.org/2000/svg";function r4(Q,$,J){let X=T6(J).createElementNS(k6,"svg");return X.setAttributeNS(null,"width",Q.toString()),X.setAttributeNS(null,"height",$.toString()),X.setAttributeNS(null,"viewBox",`0 0 ${Q} ${$}`),X}function o4(Q,$){let J=new XMLSerializer().serializeToString(Q);if($)J=J.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"");return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(J)}`}function wK(Q,$){return new Promise((J,X)=>{let K=new FileReader;if(K.onload=()=>J(K.result),K.onerror=()=>X(K.error),K.onabort=()=>X(Error(`Failed read blob to ${$}`)),$==="dataUrl")K.readAsDataURL(Q);else if($==="arrayBuffer")K.readAsArrayBuffer(Q)})}var NK=(Q)=>wK(Q,"dataUrl");function Z1(Q,$){let J=T6($).createElement("img");return J.decoding="sync",J.loading="eager",J.src=Q,J}function p1(Q,$){return new Promise((J)=>{let{timeout:X,ownerDocument:K,onError:Y,onWarn:V}=$??{},q=typeof Q==="string"?Z1(Q,T6(K)):Q,U=null,G=null;function B(){J(q),U&&clearTimeout(U),G?.()}if(X)U=setTimeout(B,X);if(R6(q)){let H=q.currentSrc||q.src;if(!H){if(q.poster)return p1(q.poster,$).then(J);return B()}if(q.readyState>=2)return B();let W=B,j=(S)=>{V?.("Failed video load",H,S),Y?.(S),B()};G=()=>{q.removeEventListener("loadeddata",W),q.removeEventListener("error",j)},q.addEventListener("loadeddata",W,{once:!0}),q.addEventListener("error",j,{once:!0})}else{let H=i4(q)?q.href.baseVal:q.currentSrc||q.src;if(!H)return B();let W=async()=>{if(H1(q)&&"decode"in q)try{await q.decode()}catch(S){V?.("Failed to decode image, trying to render anyway",q.dataset.originalSrc||H,S)}B()},j=(S)=>{V?.("Failed image load",q.dataset.originalSrc||H,S),B()};if(H1(q)&&q.complete)return W();G=()=>{q.removeEventListener("load",W),q.removeEventListener("error",j)},q.addEventListener("load",W,{once:!0}),q.addEventListener("error",j,{once:!0})}})}async function OK(Q,$){if(u1(Q))if(H1(Q)||R6(Q))await p1(Q,$);else await Promise.all(["img","video"].flatMap((J)=>{return Array.from(Q.querySelectorAll(J)).map((X)=>p1(X,$))}))}var a4=function(){let $=0,J=()=>`0000${(Math.random()*1679616<<0).toString(36)}`.slice(-4);return()=>{return $+=1,`u${J()}${$}`}}();function s4(Q){return Q?.split(",").map(($)=>$.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var y4=0;function CK(Q){let $=`${d4}[#${y4}]`;return y4++,{time:(J)=>Q&&console.time(`${$} ${J}`),timeEnd:(J)=>Q&&console.timeEnd(`${$} ${J}`),warn:(...J)=>Q&&LK(...J)}}function DK(Q){return{cache:Q?"no-cache":"force-cache"}}async function d2(Q,$){return KK(Q)?Q:AK(Q,{...$,autoDestruct:!0})}async function AK(Q,$){let{scale:J=1,workerUrl:X,workerNumber:K=1}=$||{},Y=Boolean($?.debug),V=$?.features??!0,q=Q.ownerDocument??(A2?window.document:void 0),U=Q.ownerDocument?.defaultView??(A2?window:void 0),G=new Map,B={width:0,height:0,quality:1,type:"image/png",scale:J,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:30000,progress:null,debug:Y,fetch:{requestInit:DK($?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...$?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:K,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...$,__CONTEXT__:!0,log:CK(Y),node:Q,ownerDocument:q,ownerWindow:U,dpi:J===1?null:96*J,svgStyleElement:t4(q),svgDefsElement:q?.createElementNS(k6,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:$K&&X&&K?K:0})].map(()=>{try{let j=new Worker(X);return j.onmessage=async(S)=>{let{url:A,result:I}=S.data;if(I)G.get(A)?.resolve?.(I);else G.get(A)?.reject?.(Error(`Error receiving message from worker: ${A}`))},j.onmessageerror=(S)=>{let{url:A}=S.data;G.get(A)?.reject?.(Error(`Error receiving message from worker: ${A}`))},j}catch(j){return B.log.warn("Failed to new Worker",j),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[IK(q)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:G,drawImageCount:0,tasks:[],features:V,isEnable:(j)=>{if(j==="restoreScrollPosition")return typeof V==="boolean"?!1:V[j]??!1;if(typeof V==="boolean")return V;return V[j]??!0},shadowRoots:[]};B.log.time("wait until load"),await OK(Q,{timeout:B.timeout,onWarn:B.log.warn}),B.log.timeEnd("wait until load");let{width:H,height:W}=RK(Q,B);return B.width=H,B.height=W,B}function t4(Q){if(!Q)return;let $=Q.createElement("style"),J=$.ownerDocument.createTextNode(`
|
|
4
4
|
.______background-clip--text {
|
|
5
5
|
background-clip: text;
|
|
6
6
|
-webkit-background-clip: text;
|
|
7
7
|
}
|
|
8
|
-
`);return
|
|
9
|
-
`),z=q.get(
|
|
10
|
-
`))}else{let U=Array.from(
|
|
11
|
-
`));else V.push(
|
|
12
|
-
`))}))})}}var
|
|
8
|
+
`);return $.appendChild(J),$}function RK(Q,$){let{width:J,height:X}=$;if(K2(Q)&&(!J||!X)){let K=Q.getBoundingClientRect();J=J||K.width||Number(Q.getAttribute("width"))||0,X=X||K.height||Number(Q.getAttribute("height"))||0}return{width:J,height:X}}async function TK(Q,$){let{log:J,timeout:X,drawImageCount:K,drawImageInterval:Y}=$;J.time("image to canvas");let V=await p1(Q,{timeout:X,onWarn:$.log.warn}),{canvas:q,context2d:U}=kK(Q.ownerDocument,$),G=()=>{try{U?.drawImage(V,0,0,q.width,q.height)}catch(B){$.log.warn("Failed to drawImage",B)}};if(G(),$.isEnable("fixSvgXmlDecode"))for(let B=0;B<K;B++)await new Promise((H)=>{setTimeout(()=>{U?.clearRect(0,0,q.width,q.height),G(),H()},B+Y)});return $.drawImageCount=0,J.timeEnd("image to canvas"),q}function kK(Q,$){let{width:J,height:X,scale:K,backgroundColor:Y,maximumCanvasSize:V}=$,q=Q.createElement("canvas");if(q.width=Math.floor(J*K),q.height=Math.floor(X*K),q.style.width=`${J}px`,q.style.height=`${X}px`,V){if(q.width>V||q.height>V)if(q.width>V&&q.height>V)if(q.width>q.height)q.height*=V/q.width,q.width=V;else q.width*=V/q.height,q.height=V;else if(q.width>V)q.height*=V/q.width,q.width=V;else q.width*=V/q.height,q.height=V}let U=q.getContext("2d");if(U&&Y)U.fillStyle=Y,U.fillRect(0,0,q.width,q.height);return{canvas:q,context2d:U}}function e4(Q,$){if(Q.ownerDocument)try{let Y=Q.toDataURL();if(Y!=="data:,")return Z1(Y,Q.ownerDocument)}catch(Y){$.log.warn("Failed to clone canvas",Y)}let J=Q.cloneNode(!1),X=Q.getContext("2d"),K=J.getContext("2d");try{if(X&&K)K.putImageData(X.getImageData(0,0,Q.width,Q.height),0,0);return J}catch(Y){$.log.warn("Failed to clone canvas",Y)}return J}function EK(Q,$){try{if(Q?.contentDocument?.body)return h8(Q.contentDocument.body,$)}catch(J){$.log.warn("Failed to clone iframe",J)}return Q.cloneNode(!1)}function SK(Q){let $=Q.cloneNode(!1);if(Q.currentSrc&&Q.currentSrc!==Q.src)$.src=Q.currentSrc,$.srcset="";if($.loading==="lazy")$.loading="eager";return $}async function vK(Q,$){if(Q.ownerDocument&&!Q.currentSrc&&Q.poster)return Z1(Q.poster,Q.ownerDocument);let J=Q.cloneNode(!1);if(J.crossOrigin="anonymous",Q.currentSrc&&Q.currentSrc!==Q.src)J.src=Q.currentSrc;let X=J.ownerDocument;if(X){let K=!0;if(await p1(J,{onError:()=>K=!1,onWarn:$.log.warn}),!K){if(Q.poster)return Z1(Q.poster,Q.ownerDocument);return J}J.currentTime=Q.currentTime,await new Promise((V)=>{J.addEventListener("seeked",V,{once:!0})});let Y=X.createElement("canvas");Y.width=Q.offsetWidth,Y.height=Q.offsetHeight;try{let V=Y.getContext("2d");if(V)V.drawImage(J,0,0,Y.width,Y.height)}catch(V){if($.log.warn("Failed to clone video",V),Q.poster)return Z1(Q.poster,Q.ownerDocument);return J}return e4(Y,$)}return J}function xK(Q,$){if(zK(Q))return e4(Q,$);if(FK(Q))return EK(Q,$);if(H1(Q))return SK(Q);if(R6(Q))return vK(Q,$);return Q.cloneNode(!1)}function yK(Q){let $=Q.sandbox;if(!$){let{ownerDocument:J}=Q;try{if(J)$=J.createElement("iframe"),$.id=`__SANDBOX__${a4()}`,$.width="0",$.height="0",$.style.visibility="hidden",$.style.position="fixed",J.body.appendChild($),$.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',Q.sandbox=$}catch(X){Q.log.warn("Failed to getSandBox",X)}}return $}var hK=["width","height","-webkit-text-fill-color"],gK=["stroke","fill"];function Q7(Q,$,J){let{defaultComputedStyles:X}=J,K=Q.nodeName.toLowerCase(),Y=m1(Q)&&K!=="svg",V=Y?gK.map((A)=>[A,Q.getAttribute(A)]).filter(([,A])=>A!==null):[],q=[Y&&"svg",K,V.map((A,I)=>`${A}=${I}`).join(","),$].filter(Boolean).join(":");if(X.has(q))return X.get(q);let G=yK(J)?.contentWindow;if(!G)return new Map;let B=G?.document,H,W;if(Y)H=B.createElementNS(k6,"svg"),W=H.ownerDocument.createElementNS(H.namespaceURI,K),V.forEach(([A,I])=>{W.setAttributeNS(null,A,I)}),H.appendChild(W);else H=W=B.createElement(K);W.textContent=" ",B.body.appendChild(H);let j=G.getComputedStyle(W,$),S=new Map;for(let A=j.length,I=0;I<A;I++){let L=j.item(I);if(hK.includes(L))continue;S.set(L,j.getPropertyValue(L))}return B.body.removeChild(H),X.set(q,S),S}function $7(Q,$,J){let X=new Map,K=[],Y=new Map;if(J)for(let q of J)V(q);else for(let q=Q.length,U=0;U<q;U++){let G=Q.item(U);V(G)}for(let q=K.length,U=0;U<q;U++)Y.get(K[U])?.forEach((G,B)=>X.set(B,G));function V(q){let U=Q.getPropertyValue(q),G=Q.getPropertyPriority(q),B=q.lastIndexOf("-"),H=B>-1?q.substring(0,B):void 0;if(H){let W=Y.get(H);if(!W)W=new Map,Y.set(H,W);W.set(q,[U,G])}if($.get(q)===U&&!G)return;if(H)K.push(H);else X.set(q,[U,G])}return X}function fK(Q,$,J,X){let{ownerWindow:K,includeStyleProperties:Y,currentParentNodeStyle:V}=X,q=$.style,U=K.getComputedStyle(Q),G=Q7(Q,null,X);V?.forEach((H,W)=>{G.delete(W)});let B=$7(U,G,Y);if(B.delete("transition-property"),B.delete("all"),B.delete("d"),B.delete("content"),J)B.delete("margin-top"),B.delete("margin-right"),B.delete("margin-bottom"),B.delete("margin-left"),B.delete("margin-block-start"),B.delete("margin-block-end"),B.delete("margin-inline-start"),B.delete("margin-inline-end"),B.set("box-sizing",["border-box",""]);if(B.get("background-clip")?.[0]==="text")$.classList.add("______background-clip--text");if(l4){if(!B.has("font-kerning"))B.set("font-kerning",["normal",""]);if((B.get("overflow-x")?.[0]==="hidden"||B.get("overflow-y")?.[0]==="hidden")&&B.get("text-overflow")?.[0]==="ellipsis"&&Q.scrollWidth===Q.clientWidth)B.set("text-overflow",["clip",""])}for(let H=q.length,W=0;W<H;W++)q.removeProperty(q.item(W));return B.forEach(([H,W],j)=>{q.setProperty(j,H,W)}),B}function _K(Q,$){if(ZK(Q)||HK(Q)||PK(Q))$.setAttribute("value",Q.value)}var bK=["::before","::after"],uK=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function pK(Q,$,J,X,K){let{ownerWindow:Y,svgStyleElement:V,svgStyles:q,currentNodeStyle:U}=X;if(!V||!Y)return;function G(B){let H=Y.getComputedStyle(Q,B),W=H.getPropertyValue("content");if(!W||W==="none")return;K?.(W),W=W.replace(/(')|(")|(counter\(.+\))/g,"");let j=[a4()],S=Q7(Q,B,X);U?.forEach((P,F)=>{S.delete(F)});let A=$7(H,S,X.includeStyleProperties);if(A.delete("content"),A.delete("-webkit-locale"),A.get("background-clip")?.[0]==="text")$.classList.add("______background-clip--text");let I=[`content: '${W}';`];if(A.forEach(([P,F],N)=>{I.push(`${N}: ${P}${F?" !important":""};`)}),I.length===1)return;try{$.className=[$.className,...j].join(" ")}catch(P){X.log.warn("Failed to copyPseudoClass",P);return}let L=I.join(`
|
|
9
|
+
`),z=q.get(L);if(!z)z=[],q.set(L,z);z.push(`.${j[0]}${B}`)}if(bK.forEach(G),J)uK.forEach(G)}var h4=new Set(["symbol"]);async function g4(Q,$,J,X,K){if(K2(J)&&(WK(J)||jK(J)))return;if(X.filter&&!X.filter(J))return;if(h4.has($.nodeName)||h4.has(J.nodeName))X.currentParentNodeStyle=void 0;else X.currentParentNodeStyle=X.currentNodeStyle;let Y=await h8(J,X,!1,K);if(X.isEnable("restoreScrollPosition"))cK(Q,Y);$.appendChild(Y)}async function f4(Q,$,J,X){let K=Q.firstChild;if(K2(Q)){if(Q.shadowRoot)K=Q.shadowRoot?.firstChild,J.shadowRoots.push(Q.shadowRoot)}for(let Y=K;Y;Y=Y.nextSibling){if(GK(Y))continue;if(K2(Y)&&MK(Y)&&typeof Y.assignedNodes==="function"){let V=Y.assignedNodes();for(let q=0;q<V.length;q++)await g4(Q,$,V[q],J,X)}else await g4(Q,$,Y,J,X)}}function cK(Q,$){if(!u1(Q)||!u1($))return;let{scrollTop:J,scrollLeft:X}=Q;if(!J&&!X)return;let{transform:K}=$.style,Y=new DOMMatrix(K),{a:V,b:q,c:U,d:G}=Y;Y.a=1,Y.b=0,Y.c=0,Y.d=1,Y.translateSelf(-X,-J),Y.a=V,Y.b=q,Y.c=U,Y.d=G,$.style.transform=Y.toString()}function mK(Q,$){let{backgroundColor:J,width:X,height:K,style:Y}=$,V=Q.style;if(J)V.setProperty("background-color",J,"important");if(X)V.setProperty("width",`${X}px`,"important");if(K)V.setProperty("height",`${K}px`,"important");if(Y)for(let q in Y)V[q]=Y[q]}var dK=/^[\w-:]+$/;async function h8(Q,$,J=!1,X){let{ownerDocument:K,ownerWindow:Y,fontFamilies:V,onCloneEachNode:q}=$;if(K&&UK(Q)){if(X&&/\S/.test(Q.data))X(Q.data);return K.createTextNode(Q.data)}if(K&&Y&&K2(Q)&&(u1(Q)||m1(Q))){let G=await xK(Q,$);if($.isEnable("removeAbnormalAttributes")){let A=G.getAttributeNames();for(let I=A.length,L=0;L<I;L++){let z=A[L];if(!dK.test(z))G.removeAttribute(z)}}let B=$.currentNodeStyle=fK(Q,G,J,$);if(J)mK(G,$);let H=!1;if($.isEnable("copyScrollbar")){let A=[B.get("overflow-x")?.[0],B.get("overflow-y")?.[0]];H=A.includes("scroll")||(A.includes("auto")||A.includes("overlay"))&&(Q.scrollHeight>Q.clientHeight||Q.scrollWidth>Q.clientWidth)}let W=B.get("text-transform")?.[0],j=s4(B.get("font-family")?.[0]),S=j?(A)=>{if(W==="uppercase")A=A.toUpperCase();else if(W==="lowercase")A=A.toLowerCase();else if(W==="capitalize")A=A[0].toUpperCase()+A.substring(1);j.forEach((I)=>{let L=V.get(I);if(!L)V.set(I,L=new Set);A.split("").forEach((z)=>L.add(z))})}:void 0;if(pK(Q,G,H,$,S),_K(Q,G),!R6(Q))await f4(Q,G,$,S);return await q?.(G),G}let U=Q.cloneNode(!1);return await f4(Q,U,$),await q?.(U),U}function lK(Q){if(Q.ownerDocument=void 0,Q.ownerWindow=void 0,Q.svgStyleElement=void 0,Q.svgDefsElement=void 0,Q.svgStyles.clear(),Q.defaultComputedStyles.clear(),Q.sandbox){try{Q.sandbox.remove()}catch($){Q.log.warn("Failed to destroyContext",$)}Q.sandbox=void 0}Q.workers=[],Q.fontFamilies.clear(),Q.fontCssTexts.clear(),Q.requests.clear(),Q.tasks=[],Q.shadowRoots=[]}function iK(Q){let{url:$,timeout:J,responseType:X,...K}=Q,Y=new AbortController,V=J?setTimeout(()=>Y.abort(),J):void 0;return fetch($,{signal:Y.signal,...K}).then((q)=>{if(!q.ok)throw Error("Failed fetch, not 2xx response",{cause:q});switch(X){case"arrayBuffer":return q.arrayBuffer();case"dataUrl":return q.blob().then(NK);case"text":default:return q.text()}}).finally(()=>clearTimeout(V))}function c1(Q,$){let{url:J,requestType:X="text",responseType:K="text",imageDom:Y}=$,V=J,{timeout:q,acceptOfImage:U,requests:G,fetchFn:B,fetch:{requestInit:H,bypassingCache:W,placeholderImage:j},font:S,workers:A,fontFamilies:I}=Q;if(X==="image"&&(A6||y8))Q.drawImageCount++;let L=G.get(J);if(!L){if(W){if(W instanceof RegExp&&W.test(V))V+=(/\?/.test(V)?"&":"?")+new Date().getTime()}let z=X.startsWith("font")&&S&&S.minify,P=new Set;if(z)X.split(";")[1].split(",").forEach((d)=>{if(!I.has(d))return;I.get(d).forEach((i)=>P.add(i))});let F=z&&P.size,N={url:V,timeout:q,responseType:F?"arrayBuffer":K,headers:X==="image"?{accept:U}:void 0,...H};L={type:X,resolve:void 0,reject:void 0,response:null},L.response=(async()=>{if(B&&X==="image"){let x=await B(J);if(x)return x}if(!A6&&J.startsWith("http")&&A.length)return new Promise((x,d)=>{A[G.size&A.length-1].postMessage({rawUrl:J,...N}),L.resolve=x,L.reject=d});return iK(N)})().catch((x)=>{if(G.delete(J),X==="image"&&j)return Q.log.warn("Failed to fetch image base64, trying to use placeholder image",V),typeof j==="string"?j:j(Y);throw x}),G.set(J,L)}return L.response}async function J7(Q,$,J,X){if(!X7(Q))return Q;for(let[K,Y]of nK(Q,$))try{let V=await c1(J,{url:Y,requestType:X?"image":"text",responseType:"dataUrl"});Q=Q.replace(rK(K),`$1${V}$3`)}catch(V){J.log.warn("Failed to fetch css data url",K,V)}return Q}function X7(Q){return/url\((['"]?)([^'"]+?)\1\)/.test(Q)}var K7=/url\((['"]?)([^'"]+?)\1\)/g;function nK(Q,$){let J=[];return Q.replace(K7,(X,K,Y)=>{return J.push([Y,n4(Y,$)]),X}),J.filter(([X])=>!S8(X))}function rK(Q){let $=Q.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${$})(['"]?\\))`,"g")}var oK=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function aK(Q,$){return oK.map((J)=>{let X=Q.getPropertyValue(J);if(!X||X==="none")return null;if(A6||y8)$.drawImageCount++;return J7(X,null,$,!0).then((K)=>{if(!K||X===K)return;Q.setProperty(J,K,Q.getPropertyPriority(J))})}).filter(Boolean)}function sK(Q,$){if(H1(Q)){let J=Q.currentSrc||Q.src;if(!S8(J))return[c1($,{url:J,imageDom:Q,requestType:"image",responseType:"dataUrl"}).then((X)=>{if(!X)return;Q.srcset="",Q.dataset.originalSrc=J,Q.src=X||""})];if(A6||y8)$.drawImageCount++}else if(m1(Q)&&!S8(Q.href.baseVal)){let J=Q.href.baseVal;return[c1($,{url:J,imageDom:Q,requestType:"image",responseType:"dataUrl"}).then((X)=>{if(!X)return;Q.dataset.originalSrc=J,Q.href.baseVal=X||""})]}return[]}function tK(Q,$){let{ownerDocument:J,svgDefsElement:X}=$,K=Q.getAttribute("href")??Q.getAttribute("xlink:href");if(!K)return[];let[Y,V]=K.split("#");if(V){let q=`#${V}`,U=$.shadowRoots.reduce((G,B)=>{return G??B.querySelector(`svg ${q}`)},J?.querySelector(`svg ${q}`));if(Y)Q.setAttribute("href",q);if(X?.querySelector(q))return[];if(U)return X?.appendChild(U.cloneNode(!0)),[];else if(Y)return[c1($,{url:Y,responseType:"text"}).then((G)=>{X?.insertAdjacentHTML("beforeend",G)})]}return[]}function Y7(Q,$){let{tasks:J}=$;if(K2(Q)){if(H1(Q)||i4(Q))J.push(...sK(Q,$));if(BK(Q))J.push(...tK(Q,$))}if(u1(Q))J.push(...aK(Q.style,$));Q.childNodes.forEach((X)=>{Y7(X,$)})}async function eK(Q,$){let{ownerDocument:J,svgStyleElement:X,fontFamilies:K,fontCssTexts:Y,tasks:V,font:q}=$;if(!J||!X||!K.size)return;if(q&&q.cssText){let U=b4(q.cssText,$);X.appendChild(J.createTextNode(`${U}
|
|
10
|
+
`))}else{let U=Array.from(J.styleSheets).filter((B)=>{try{return"cssRules"in B&&Boolean(B.cssRules.length)}catch(H){return $.log.warn(`Error while reading CSS rules from ${B.href}`,H),!1}});await Promise.all(U.flatMap((B)=>{return Array.from(B.cssRules).map(async(H,W)=>{if(VK(H)){let j=W+1,S=H.href,A="";try{A=await c1($,{url:S,requestType:"text",responseType:"text"})}catch(L){$.log.warn(`Error fetch remote css import from ${S}`,L)}let I=A.replace(K7,(L,z,P)=>L.replace(P,n4(P,S)));for(let L of $Y(I))try{B.insertRule(L,L.startsWith("@import")?j+=1:B.cssRules.length)}catch(z){$.log.warn("Error inserting rule from remote css import",{rule:L,error:z})}}})}));let G=[];U.forEach((B)=>{v8(B.cssRules,G)}),G.filter((B)=>YK(B)&&X7(B.style.getPropertyValue("src"))&&s4(B.style.getPropertyValue("font-family"))?.some((H)=>K.has(H))).forEach((B)=>{let H=B,W=Y.get(H.cssText);if(W)X.appendChild(J.createTextNode(`${W}
|
|
11
|
+
`));else V.push(J7(H.cssText,H.parentStyleSheet?H.parentStyleSheet.href:null,$).then((j)=>{j=b4(j,$),Y.set(H.cssText,j),X.appendChild(J.createTextNode(`${j}
|
|
12
|
+
`))}))})}}var QY=/(\/\*[\s\S]*?\*\/)/g,_4=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function $Y(Q){if(Q==null)return[];let $=[],J=Q.replace(QY,"");while(!0){let Y=_4.exec(J);if(!Y)break;$.push(Y[0])}J=J.replace(_4,"");let X=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,K=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");while(!0){let Y=X.exec(J);if(!Y)if(Y=K.exec(J),!Y)break;else X.lastIndex=K.lastIndex;else K.lastIndex=X.lastIndex;$.push(Y[0])}return $}var JY=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,XY=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function b4(Q,$){let{font:J}=$,X=J?J?.preferredFormat:void 0;return X?Q.replace(XY,(K)=>{while(!0){let[Y,,V]=JY.exec(K)||[];if(!V)return"";if(V===X)return`src: ${Y};`}}):Q}function v8(Q,$=[]){for(let J of Array.from(Q))if(qK(J))$.push(...v8(J.cssRules));else if("cssRules"in J)v8(J.cssRules,$);else $.push(J);return $}async function KY(Q,$){let J=await d2(Q,$);if(K2(J.node)&&m1(J.node))return J.node;let{ownerDocument:X,log:K,tasks:Y,svgStyleElement:V,svgDefsElement:q,svgStyles:U,font:G,progress:B,autoDestruct:H,onCloneNode:W,onEmbedNode:j,onCreateForeignObjectSvg:S}=J;K.time("clone node");let A=await h8(J.node,J,!0);if(V&&X){let F="";U.forEach((N,x)=>{F+=`${N.join(`,
|
|
13
13
|
`)} {
|
|
14
14
|
${x}
|
|
15
15
|
}
|
|
16
|
-
`}),V.appendChild(X.createTextNode(
|
|
16
|
+
`}),V.appendChild(X.createTextNode(F))}if(K.timeEnd("clone node"),await W?.(A),G!==!1&&K2(A))K.time("embed web font"),await eK(A,J),K.timeEnd("embed web font");K.time("embed node"),Y7(A,J);let I=Y.length,L=0,z=async()=>{while(!0){let F=Y.pop();if(!F)break;try{await F}catch(N){J.log.warn("Failed to run task",N)}B?.(++L,I)}};B?.(L,I),await Promise.all([...Array.from({length:4})].map(z)),K.timeEnd("embed node"),await j?.(A);let P=YY(A,J);return q&&P.insertBefore(q,P.children[0]),V&&P.insertBefore(V,P.children[0]),H&&lK(J),await S?.(P),P}function YY(Q,$){let{width:J,height:X}=$,K=r4(J,X,Q.ownerDocument),Y=K.ownerDocument.createElementNS(K.namespaceURI,"foreignObject");return Y.setAttributeNS(null,"x","0%"),Y.setAttributeNS(null,"y","0%"),Y.setAttributeNS(null,"width","100%"),Y.setAttributeNS(null,"height","100%"),Y.append(Q),K.appendChild(Y),K}async function VY(Q,$){let J=await d2(Q,$),X=await KY(J),K=o4(X,J.isEnable("removeControlCharacter"));if(!J.autoDestruct)J.svgStyleElement=t4(J.ownerDocument),J.svgDefsElement=J.ownerDocument?.createElementNS(k6,"defs"),J.svgStyles.clear();let Y=Z1(K,X.ownerDocument);return await TK(Y,J)}async function E6(Q,$){let J=await d2(Q,$),{log:X,quality:K,type:Y,dpi:V}=J,q=await VY(J);X.time("canvas to data url");let U=q.toDataURL(Y,K);if(["image/png","image/jpeg"].includes(Y)&&V&&JK&&XK){let[G,B]=U.split(","),H=0,W=!1;if(Y==="image/png"){let P=QK(B);if(P>=0)H=Math.ceil((P+28)/3)*4,W=!0;else H=44}else if(Y==="image/jpeg")H=24;let j=B.substring(0,H),S=B.substring(H),A=window.atob(j),I=new Uint8Array(A.length);for(let P=0;P<I.length;P++)I[P]=A.charCodeAt(P);let L=Y==="image/png"?aX(I,V,W):iX(I,V),z=window.btoa(String.fromCharCode(...L));U=[G,",",z,S].join("")}return X.timeEnd("canvas to data url"),U}async function V7(Q,$){let J=await d2(Q,$),{width:X,height:K,ownerDocument:Y}=J,V=await E6(J),q=r4(X,K,Y),U=q.ownerDocument.createElementNS(q.namespaceURI,"image");return U.setAttributeNS(null,"href",V),U.setAttributeNS(null,"height","100%"),U.setAttributeNS(null,"width","100%"),q.appendChild(U),o4(q,J.isEnable("removeControlCharacter"))}async function q7(Q,$){return E6(await d2(Q,{...$,type:"image/jpeg"}))}async function B7(Q,$){return E6(await d2(Q,{...$,type:"image/png"}))}async function G7(Q,$){return E6(await d2(Q,{...$,type:"image/webp"}))}async function U7(Q,$,J,X){let K=!1;try{let Y="",V=X?.filter,q={...X,quality:$.quality,scale:$.scale,filter:(H)=>BY(H)&&(V?V(H):!0)},U=getComputedStyle(Q),G=U.backgroundColor,B=U.backgroundImage;if(G==="rgba(0, 0, 0, 0)"&&B==="none"&&$.format==="jpg")Q.style.backgroundColor="#FFFFFF",K=!0;switch($.format){case"jpg":Y=await q7(Q,q);break;case"png":Y=await B7(Q,q);break;case"svg":Y=await V7(Q,q);break;case"webp":Y=await G7(Q,q);break}return{dataURL:Y,fileName:x4($,J)}}catch(Y){throw Error(`ImageExporter: failed to capture element as ${$.format}`,{cause:Y})}finally{if(K)Q.style.backgroundColor="",Q.style.backgroundImage=""}}var BY=(Q)=>{if(Q instanceof HTMLElement)return!Q.hasAttribute("data-ignore-capture");return!0};var NX=mX(IX(),1);var CB={label:"image",format:"jpg",scale:1,quality:1,includeScaleInLabel:!1},B1={...CB,downloadImages:!0,defaultImageLabel:"image",zipLabel:"images",corsProxyBaseUrl:"",enableWindowLogging:!0,loggingLevel:"none"};async function O6(Q,$=B1){let J=$?{...B1,...$}:B1,X=RB(Q);if(X.length===1){let K=X[0];wX(K.blob??K.dataURL,K.fileName)}else if(X.length>1){let K=await DB(X);if(K)wX(K,AB(J))}}function wX(Q,$){let J=typeof Q==="string"?Q:URL.createObjectURL(Q),X=document.createElement("a");if(X.href=J,X.download=$,X.style.display="none",document.body.appendChild(X),X.click(),document.body.removeChild(X),typeof Q!=="string")setTimeout(()=>URL.revokeObjectURL(J),250)}async function DB(Q){let $=new NX.default;try{Q.forEach((J)=>{if(J.blob)$.file(J.fileName,J.blob);else{let X=J.dataURL.split(",")[1];$.file(J.fileName,X,{base64:!0})}})}catch(J){console.error("Image Exporter - Error adding images to ZIP:",J);return}try{return await $.generateAsync({type:"blob"})}catch(J){console.error("Image Exporter - Error generating ZIP:",J);return}}function AB(Q){try{let $=Q.zipLabel;return $=$.replace(/\s+/g,"-"),$.replace(/[^a-zA-Z0-9-_]/g,"")}catch($){return console.error($),"images"}}function RB(Q){let $=new Set;return Q.map((J)=>{let X=D6(J.fileName,$);return X===J.fileName?J:{...J,fileName:X}})}var j4=typeof window<"u",N0={info:(...Q)=>C6(Q,"info"),error:(...Q)=>C6(Q,"error"),verbose:(...Q)=>C6(Q,"verbose"),progress:(Q,$)=>TB(Q,$),group:{open:(...Q)=>C6(Q,"group"),close:(...Q)=>C6(Q,"groupEnd")}};async function C6(Q,$="info"){let J=Q.map((X)=>typeof X==="object"?JSON.stringify(X):X).join(" ");switch($){case"info":if(G1==="info"||G1==="verbose")console.log(...Q);break;case"error":if(G1==="error"||G1==="verbose")console.error(...Q);break;case"verbose":if(G1==="verbose")console.log(...Q);break;case"group":console.group(...Q);break;case"groupEnd":console.groupEnd();break}if(N8&&j4)window.imageExporterLogs.push({message:J,type:$})}async function TB(Q,$){if(N8&&j4)window.imageExporterProgress.push([Q,$])}if(j4)window.imageExporterLogs=[],window.imageExporterProgress=[];function f1(Q){try{let $=new URL(Q);if($.protocol==="data:")return!1;if($.protocol!=="http:"&&$.protocol!=="https:")return!1;return!0}catch{return!1}}async function OX(Q){let $=document.querySelectorAll('link[rel="stylesheet"]');N0.verbose("stylesheet elements to proxy",$.length);for(let J of $){let X=J.getAttribute("href");if(!X)continue;if(X.startsWith("data:"))continue;if(X.startsWith(Q.corsProxyBaseUrl))continue;if(!f1(X))continue;J.setAttribute("crossorigin","anonymous");let K=Q.corsProxyBaseUrl+encodeURIComponent(X);try{let V=await(await fetch(K)).text(),q=document.createElement("style");q.textContent=V,q.setAttribute("original-link-element",encodeURIComponent(J.outerHTML)),J.insertAdjacentElement("afterend",q),J.remove(),N0.verbose("Proxied: ",X)}catch(Y){console.error("Error fetching CSS:",Y)}}}async function CX(Q,$){try{let J=Array.from($);if(!J.length)return;N0.verbose("images to proxy",J.length);for(let X of J){let K=Array.from(X.querySelectorAll("img"));for(let Y of K)if(f1(Y.src)&&!Y.src.startsWith(Q.corsProxyBaseUrl))Y.setAttribute("original-src",Y.src),Y.src=Q.corsProxyBaseUrl+encodeURIComponent(Y.src),N0.verbose("Proxied: ",Y.src)}}catch(J){console.error("ImageExporter: Error in proxyImages",J);return}}async function DX(Q,$){try{if(N0.verbose("running CORS proxy"),!Q.corsProxyBaseUrl||!f1(Q.corsProxyBaseUrl))return;await OX(Q),await CX(Q,$)}catch(J){console.error("ImageExporter: Error in runCorsProxy",J)}}async function AX(){await kB(),await EB()}async function kB(){let Q=document.querySelectorAll("style[original-link-element]");for(let $ of Q){let J=decodeURIComponent($.getAttribute("original-link-element")),X=document.createElement("div");X.innerHTML=J,$.parentNode.insertBefore(X.firstChild,$),$.remove(),N0.verbose("Restored: ",J)}}async function EB(){let Q=document.querySelectorAll("img[original-src]");for(let $ of Q){let J=$.getAttribute("original-src");$.src=J,$.removeAttribute("original-src"),N0.verbose("Restored: ",J)}}var P4={run:DX,cleanUp:AX};function O8(Q){let $=Q.indexOf(","),J=Q.slice(0,$),X=Q.slice($+1),K=J.match(/^data:([^;]+)/),Y=K?K[1]:"";if(J.includes(";base64")){let V=atob(X),q=new Uint8Array(V.length);for(let U=0;U<V.length;U++)q[U]=V.charCodeAt(U);return new Blob([q],{type:Y})}return new Blob([decodeURIComponent(X)],{type:Y})}async function RX(Q,$){return{label:J(),format:X(),scale:K(),quality:Y(),includeScaleInLabel:V()};function J(){try{let q=Q.dataset.label||$.defaultImageLabel;if(q==="")return $.defaultImageLabel;let U=/@\d+x$/.test(q),G=q,B=/[^a-zA-Z0-9-_]/g;if(U){let H=q.match(/@\d+x$/);if(!H)return $.defaultImageLabel;G=q.slice(0,-H[0].length).replace(B,"")+H[0]}else G=q.replace(B,"");return G}catch(q){return console.error(q),$.defaultImageLabel}}function X(){try{let q=Q.dataset.format||$.format;if(q=q.trim().toLowerCase(),q==="jpg"||q==="png"||q==="svg"||q==="webp")return q;else throw Error(`ImageExporter: provided format is not valid.
|
|
17
17
|
Provided: ${q}
|
|
18
18
|
Element: ${Q}
|
|
19
|
-
Accepted values: jpg, png, svg,
|
|
20
|
-
Defaulting to: ${
|
|
19
|
+
Accepted values: jpg, png, svg, webp
|
|
20
|
+
Defaulting to: ${$.format}`)}catch(q){return console.error(q),$.format}}function K(){try{let q=Q.dataset.scale;if(!q)return $.scale;if(q.includes(",")){let U=q.trim().split(",").map((G)=>parseFloat(G));if(U.some((G)=>isNaN(G)))throw Error(`ImageExporter: provided scale is not valid.
|
|
21
21
|
Provided: ${q}
|
|
22
22
|
Element: ${Q}
|
|
23
23
|
Accepted values: number or csv numbers e.g. (1,2)
|
|
24
|
-
Defaulting to ${
|
|
24
|
+
Defaulting to ${$.scale}`);return U}else{let U=parseFloat(q.trim());if(isNaN(U))throw Error(`ImageExporter: provided scale is not valid.
|
|
25
25
|
Provided: ${q}
|
|
26
26
|
Element: ${Q}
|
|
27
27
|
Accepted values: number or csv numbers e.g. (1,2)
|
|
28
|
-
Defaulting to: ${
|
|
28
|
+
Defaulting to: ${$.scale}`);return U}}catch(q){return console.error(q),$.scale}}function Y(){try{let q=Q.dataset.quality;if(!q)return $.quality;let U=parseFloat(q.trim());if(isNaN(U))throw Error(`ImageExporter: provided quality is not valid.
|
|
29
29
|
Provided: ${q}
|
|
30
30
|
Element: ${Q}
|
|
31
31
|
Accepted values: number
|
|
32
|
-
Defaulting to: ${
|
|
32
|
+
Defaulting to: ${$.quality}`);return U}catch(q){return console.error(q),$.quality}}function V(){try{let q=Q.dataset.includeScaleInLabel;if(!q)return $.includeScaleInLabel;if(q=q.trim(),q==="true"||q==="false")return q==="true";else throw Error(`ImageExporter: provided includeScaleInLabel is not valid.
|
|
33
33
|
Provided: ${q}
|
|
34
34
|
Element: ${Q}
|
|
35
35
|
Accepted values: true or false
|
|
36
|
-
Defaulting to: ${
|
|
36
|
+
Defaulting to: ${$.includeScaleInLabel}`)}catch(q){return console.error(q),$.includeScaleInLabel}}}function TX(Q){return Q=Array.from(Q),Q.filter(($)=>SB($))}function SB(Q){let $=window.getComputedStyle(Q);return Q.offsetParent!==null&&Q.style.display!=="none"&&$.visibility==="visible"&&$.opacity!=="0"&&$.width!=="0"&&$.height!=="0"}async function kX(Q,$){try{let J=0;for(let X of Array.from(Q))J+=vB(X,$);return J}catch{return 1}}function vB(Q,$){let J=Q.dataset.scale;if(!J)return M4($);if(J.includes(",")){let K=J.trim().split(",").map((Y)=>parseFloat(Y));if(K.some((Y)=>isNaN(Y)))return M4($);return K.length}let X=parseFloat(J.trim());if(isNaN(X))return M4($);return 1}function M4(Q){return Array.isArray(Q.scale)?Q.scale.length:1}var N8=!0,G1="none";async function F4(Q,$=B1){N0.group.open("image-exporter");try{let J={...B1,...$};if(N8=J.enableWindowLogging,G1=J.loggingLevel,N0.verbose("config",J),Q instanceof HTMLElement)Q=[Q];let X=Q.length;Q=TX(Q);let K=await kX(Q,J);if(X!==Q.length)N0.verbose("Skipping capture of hidden elements: ",X-Q.length);if(N0.verbose("Element to capture",Q.length),$.corsProxyBaseUrl)await P4.run(J,Q);let Y=[],V=new Set,q=1,U=async(G,B)=>{try{let H=await U7(G,B,V,J.screenshotOptions);Y.push(xB(H,J.output))}catch(H){N0.error(H)}finally{let H=q++;N0.progress(H,K),J.onProgress?.(H,K)}};Q:for(let G of Q){if(J.signal?.aborted)break;let B=await RX(G,J);if(N0.verbose("Image options",B),B.scale instanceof Array){N0.verbose("Multi-scale capture"),B.includeScaleInLabel=!0;for(let H of B.scale){if(J.signal?.aborted)break Q;await U(G,{...B,scale:H})}}else if(typeof B.scale==="number")N0.verbose("Single-scale capture"),await U(G,B)}if(J.signal?.aborted)return N0.verbose("Capture aborted; returning",Y.length,"image(s)"),Y;if(J.downloadImages)await O6(Y,J);return Y}catch(J){return N0.error(J),null}finally{if($.corsProxyBaseUrl)await P4.cleanUp();N0.group.close()}}function xB(Q,$){if(!$||$==="dataurl")return Q;let J=O8(Q.dataURL);if($==="blob")return{...Q,dataURL:"",blob:J};return{...Q,blob:J}}async function L4(Q){let $=Q.blob??O8(Q.dataURL);await navigator.clipboard.write([new ClipboardItem({[$.type]:$})])}if(typeof window<"u")window.imageExporter=F4,window.imageExporterDownload=O6,window.imageExporterCopyToClipboard=L4;})();
|
|
37
37
|
|
|
38
|
-
//# debugId=
|
|
38
|
+
//# debugId=CD11F0ACA79A1D7464756E2164756E21
|