image-exporter 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capture/capture-element.d.ts.map +1 -1
- package/dist/index.browser.js +35 -26
- package/dist/index.browser.js.map +5 -61
- package/dist/index.cjs +2623 -12643
- package/dist/index.cjs.map +5 -61
- package/dist/index.js +2636 -12675
- package/dist/index.js.map +5 -60
- package/package.json +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -1,38 +1,47 @@
|
|
|
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(`
|
|
1
|
+
(()=>{var er=Object.create;var{getPrototypeOf:rr,defineProperty:Ct,getOwnPropertyNames:se,getOwnPropertyDescriptor:nr}=Object,Ht=Object.prototype.hasOwnProperty;function oe(t){return this[t]}var ir,ar,sr=(t,i,e)=>{var r=t!=null&&typeof t==="object";if(r){var o=i?ir??=new WeakMap:ar??=new WeakMap,n=o.get(t);if(n)return n}e=t!=null?er(rr(t)):{};let l=i||!t||!t.__esModule||!Ht.call(t,"default")?Ct(e,"default",{value:t,enumerable:!0}):e;if(t&&typeof t==="object"||typeof t==="function"){for(let s of se(t))if(!Ht.call(l,s))Ct(l,s,{get:oe.bind(t,s),enumerable:!0})}if(r)o.set(t,l);return l},or=(t)=>{var i=(ae??=new WeakMap).get(t),e;if(i)return i;if(i=Ct({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function"){for(var r of se(t))if(!Ht.call(i,r))Ct(i,r,{get:oe.bind(t,r),enumerable:!(e=nr(t,r))||e.enumerable})}return ae.set(t,i),i},ae,lr=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports);var cr=(t)=>t;function ur(t,i){this[t]=cr.bind(null,i)}var fr=(t,i)=>{for(var e in i)Ct(t,e,{get:i[e],enumerable:!0,configurable:!0,set:ur.bind(i,e)})};var We=lr(function(Me,Kt){/*!
|
|
2
|
+
|
|
3
|
+
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
4
|
+
<http://stuartk.com/jszip>
|
|
5
|
+
|
|
6
|
+
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
7
|
+
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
8
|
+
|
|
9
|
+
JSZip uses the library pako released under the MIT license :
|
|
10
|
+
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
11
|
+
*/(function(t){if(typeof Me=="object"&&typeof Kt<"u")Kt.exports=t();else if(typeof define=="function"&&define.amd)define([],t);else(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=t()})(function(){return function t(i,e,r){function o(s,b){if(!e[s]){if(!i[s]){var m=__require;if(!b&&m)return m(s,!0);if(n)return n(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var u=e[s]={exports:{}};i[s][0].call(u.exports,function(p){var f=i[s][1][p];return o(f||p)},u,u.exports,t,i,e,r)}return e[s].exports}for(var n=__require,l=0;l<r.length;l++)o(r[l]);return o}({1:[function(t,i,e){var r=t("./utils"),o=t("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(l){for(var s,b,m,d,u,p,f,g=[],h=0,y=l.length,v=y,x=r.getTypeOf(l)!=="string";h<l.length;)v=y-h,m=x?(s=l[h++],b=h<y?l[h++]:0,h<y?l[h++]:0):(s=l.charCodeAt(h++),b=h<y?l.charCodeAt(h++):0,h<y?l.charCodeAt(h++):0),d=s>>2,u=(3&s)<<4|b>>4,p=1<v?(15&b)<<2|m>>6:64,f=2<v?63&m:64,g.push(n.charAt(d)+n.charAt(u)+n.charAt(p)+n.charAt(f));return g.join("")},e.decode=function(l){var s,b,m,d,u,p,f=0,g=0,h="data:";if(l.substr(0,h.length)===h)throw Error("Invalid base64 input, it looks like a data url.");var y,v=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===n.charAt(64)&&v--,l.charAt(l.length-2)===n.charAt(64)&&v--,v%1!=0)throw Error("Invalid base64 input, bad content length.");for(y=o.uint8array?new Uint8Array(0|v):Array(0|v);f<l.length;)s=n.indexOf(l.charAt(f++))<<2|(d=n.indexOf(l.charAt(f++)))>>4,b=(15&d)<<4|(u=n.indexOf(l.charAt(f++)))>>2,m=(3&u)<<6|(p=n.indexOf(l.charAt(f++))),y[g++]=s,u!==64&&(y[g++]=b),p!==64&&(y[g++]=m);return y}},{"./support":30,"./utils":32}],2:[function(t,i,e){var r=t("./external"),o=t("./stream/DataWorker"),n=t("./stream/Crc32Probe"),l=t("./stream/DataLengthProbe");function s(b,m,d,u,p){this.compressedSize=b,this.uncompressedSize=m,this.crc32=d,this.compression=u,this.compressedContent=p}s.prototype={getContentWorker:function(){var b=new o(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),m=this;return b.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),b},getCompressedWorker:function(){return new o(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(b,m,d){return b.pipe(new n).pipe(new l("uncompressedSize")).pipe(m.compressWorker(d)).pipe(new l("compressedSize")).withStreamInfo("compression",m)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,e){var r=t("./stream/GenericWorker");e.STORE={magic:"\x00\x00",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},e.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i,e){var r=t("./utils"),o=function(){for(var n,l=[],s=0;s<256;s++){n=s;for(var b=0;b<8;b++)n=1&n?3988292384^n>>>1:n>>>1;l[s]=n}return l}();i.exports=function(n,l){return n!==void 0&&n.length?r.getTypeOf(n)!=="string"?function(s,b,m,d){var u=o,p=d+m;s^=-1;for(var f=d;f<p;f++)s=s>>>8^u[255&(s^b[f])];return-1^s}(0|l,n,n.length,0):function(s,b,m,d){var u=o,p=d+m;s^=-1;for(var f=d;f<p;f++)s=s>>>8^u[255&(s^b.charCodeAt(f))];return-1^s}(0|l,n,n.length,0):0}},{"./utils":32}],5:[function(t,i,e){e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(t,i,e){var r=null;r=typeof Promise<"u"?Promise:t("lie"),i.exports={Promise:r}},{lie:37}],7:[function(t,i,e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=t("pako"),n=t("./utils"),l=t("./stream/GenericWorker"),s=r?"uint8array":"array";function b(m,d){l.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=d,this.meta={}}e.magic="\b\x00",n.inherits(b,l),b.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(s,m.data),!1)},b.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},b.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},b.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(d){m.push({data:d,meta:m.meta})}},e.compressWorker=function(m){return new b("Deflate",m)},e.uncompressWorker=function(){return new b("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i,e){function r(u,p){var f,g="";for(f=0;f<p;f++)g+=String.fromCharCode(255&u),u>>>=8;return g}function o(u,p,f,g,h,y){var v,x,{file:S,compression:R}=u,O=y!==s.utf8encode,F=n.transformTo("string",y(S.name)),z=n.transformTo("string",s.utf8encode(S.name)),M=S.comment,Y=n.transformTo("string",y(M)),k=n.transformTo("string",s.utf8encode(M)),B=z.length!==S.name.length,c=k.length!==M.length,L="",J="",U="",{dir:Q,date:j}=S,K={crc32:0,compressedSize:0,uncompressedSize:0};p&&!f||(K.crc32=u.crc32,K.compressedSize=u.compressedSize,K.uncompressedSize=u.uncompressedSize);var A=0;p&&(A|=8),O||!B&&!c||(A|=2048);var I=0,X=0;Q&&(I|=16),h==="UNIX"?(X=798,I|=function(H,at){var ct=H;return H||(ct=at?16893:33204),(65535&ct)<<16}(S.unixPermissions,Q)):(X=20,I|=function(H){return 63&(H||0)}(S.dosPermissions)),v=j.getUTCHours(),v<<=6,v|=j.getUTCMinutes(),v<<=5,v|=j.getUTCSeconds()/2,x=j.getUTCFullYear()-1980,x<<=4,x|=j.getUTCMonth()+1,x<<=5,x|=j.getUTCDate(),B&&(J=r(1,1)+r(b(F),4)+z,L+="up"+r(J.length,2)+J),c&&(U=r(1,1)+r(b(Y),4)+k,L+="uc"+r(U.length,2)+U);var q="";return q+=`
|
|
12
|
+
\x00`,q+=r(A,2),q+=R.magic,q+=r(v,2),q+=r(x,2),q+=r(K.crc32,4),q+=r(K.compressedSize,4),q+=r(K.uncompressedSize,4),q+=r(F.length,2),q+=r(L.length,2),{fileRecord:m.LOCAL_FILE_HEADER+q+F+L,dirRecord:m.CENTRAL_FILE_HEADER+r(X,2)+q+r(Y.length,2)+"\x00\x00\x00\x00"+r(I,4)+r(g,4)+F+L+Y}}var n=t("../utils"),l=t("../stream/GenericWorker"),s=t("../utf8"),b=t("../crc32"),m=t("../signature");function d(u,p,f,g){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=p,this.zipPlatform=f,this.encodeFileName=g,this.streamFiles=u,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(d,l),d.prototype.push=function(u){var p=u.meta.percent||0,f=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(u):(this.bytesWritten+=u.data.length,l.prototype.push.call(this,{data:u.data,meta:{currentFile:this.currentFile,percent:f?(p+100*(f-g-1))/f:100}}))},d.prototype.openedSource=function(u){this.currentSourceOffset=this.bytesWritten,this.currentFile=u.file.name;var p=this.streamFiles&&!u.file.dir;if(p){var f=o(u,p,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:f.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(u){this.accumulate=!1;var p=this.streamFiles&&!u.file.dir,f=o(u,p,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(f.dirRecord),p)this.push({data:function(g){return m.DATA_DESCRIPTOR+r(g.crc32,4)+r(g.compressedSize,4)+r(g.uncompressedSize,4)}(u),meta:{percent:100}});else for(this.push({data:f.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var u=this.bytesWritten,p=0;p<this.dirRecords.length;p++)this.push({data:this.dirRecords[p],meta:{percent:100}});var f=this.bytesWritten-u,g=function(h,y,v,x,S){var R=n.transformTo("string",S(x));return m.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+r(h,2)+r(h,2)+r(y,4)+r(v,4)+r(R.length,2)+R}(this.dirRecords.length,f,u,this.zipComment,this.encodeFileName);this.push({data:g,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(u){this._sources.push(u);var p=this;return u.on("data",function(f){p.processChunk(f)}),u.on("end",function(){p.closedSource(p.previous.streamInfo),p._sources.length?p.prepareNextSource():p.end()}),u.on("error",function(f){p.error(f)}),this},d.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(u){var p=this._sources;if(!l.prototype.error.call(this,u))return!1;for(var f=0;f<p.length;f++)try{p[f].error(u)}catch(g){}return!0},d.prototype.lock=function(){l.prototype.lock.call(this);for(var u=this._sources,p=0;p<u.length;p++)u[p].lock()},i.exports=d},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,e){var r=t("../compressions"),o=t("./ZipFileWorker");e.generateWorker=function(n,l,s){var b=new o(l.streamFiles,s,l.platform,l.encodeFileName),m=0;try{n.forEach(function(d,u){m++;var p=function(y,v){var x=y||v,S=r[x];if(!S)throw Error(x+" is not a valid compression method !");return S}(u.options.compression,l.compression),f=u.options.compressionOptions||l.compressionOptions||{},{dir:g,date:h}=u;u._compressWorker(p,f).withStreamInfo("file",{name:d,dir:g,date:h,comment:u.comment||"",unixPermissions:u.unixPermissions,dosPermissions:u.dosPermissions}).pipe(b)}),b.entriesCount=m}catch(d){b.error(d)}return b}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i,e){function r(){if(!(this instanceof r))return new r;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 o=new r;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.1",r.loadAsync=function(o,n){return new r().loadAsync(o,n)},r.external=t("./external"),i.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i,e){var r=t("./utils"),o=t("./external"),n=t("./utf8"),l=t("./zipEntries"),s=t("./stream/Crc32Probe"),b=t("./nodejsUtils");function m(d){return new o.Promise(function(u,p){var f=d.decompressed.getContentWorker().pipe(new s);f.on("error",function(g){p(g)}).on("end",function(){f.streamInfo.crc32!==d.decompressed.crc32?p(Error("Corrupted zip : CRC32 mismatch")):u()}).resume()})}i.exports=function(d,u){var p=this;return u=r.extend(u||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),b.isNode&&b.isStream(d)?o.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",d,!0,u.optimizedBinaryString,u.base64).then(function(f){var g=new l(u);return g.load(f),g}).then(function(f){var g=[o.Promise.resolve(f)],h=f.files;if(u.checkCRC32)for(var y=0;y<h.length;y++)g.push(m(h[y]));return o.Promise.all(g)}).then(function(f){for(var g=f.shift(),h=g.files,y=0;y<h.length;y++){var v=h[y],x=v.fileNameStr,S=r.resolve(v.fileNameStr);p.file(S,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:u.createFolders}),v.dir||(p.file(S).unsafeOriginalName=x)}return g.zipComment.length&&(p.comment=g.zipComment),p})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i,e){var r=t("../utils"),o=t("../stream/GenericWorker");function n(l,s){o.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(s)}r.inherits(n,o),n.prototype._bindStream=function(l){var s=this;(this._stream=l).pause(),l.on("data",function(b){s.push({data:b,meta:{percent:0}})}).on("error",function(b){s.isPaused?this.generatedError=b:s.error(b)}).on("end",function(){s.isPaused?s._upstreamEnded=!0:s.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i,e){var r=t("readable-stream").Readable;function o(n,l,s){r.call(this,l),this._helper=n;var b=this;n.on("data",function(m,d){b.push(m)||b._helper.pause(),s&&s(d)}).on("error",function(m){b.emit("error",m)}).on("end",function(){b.push(null)})}t("../utils").inherits(o,r),o.prototype._read=function(){this._helper.resume()},i.exports=o},{"../utils":32,"readable-stream":16}],14:[function(t,i,e){i.exports={isNode:typeof Buffer<"u",newBufferFrom:function(r,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(r,o);if(typeof r=="number")throw Error('The "data" argument must not be a number');return new Buffer(r,o)},allocBuffer:function(r){if(Buffer.alloc)return Buffer.alloc(r);var o=new Buffer(r);return o.fill(0),o},isBuffer:function(r){return Buffer.isBuffer(r)},isStream:function(r){return r&&typeof r.on=="function"&&typeof r.pause=="function"&&typeof r.resume=="function"}}},{}],15:[function(t,i,e){function r(S,R,O){var F,z=n.getTypeOf(R),M=n.extend(O||{},b);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(S=h(S)),M.createFolders&&(F=g(S))&&y.call(this,F,!0);var Y=z==="string"&&M.binary===!1&&M.base64===!1;O&&O.binary!==void 0||(M.binary=!Y),(R instanceof m&&R.uncompressedSize===0||M.dir||!R||R.length===0)&&(M.base64=!1,M.binary=!0,R="",M.compression="STORE",z="string");var k=null;k=R instanceof m||R instanceof l?R:p.isNode&&p.isStream(R)?new f(S,R):n.prepareContent(S,R,M.binary,M.optimizedBinaryString,M.base64);var B=new d(S,k,M);this.files[S]=B}var o=t("./utf8"),n=t("./utils"),l=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),b=t("./defaults"),m=t("./compressedObject"),d=t("./zipObject"),u=t("./generate"),p=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),g=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var R=S.lastIndexOf("/");return 0<R?S.substring(0,R):""},h=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},y=function(S,R){return R=R!==void 0?R:b.createFolders,S=h(S),this.files[S]||r.call(this,S,null,{dir:!0,createFolders:R}),this.files[S]};function v(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var x={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var R,O,F;for(R in this.files)F=this.files[R],(O=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&S(O,F)},filter:function(S){var R=[];return this.forEach(function(O,F){S(O,F)&&R.push(F)}),R},file:function(S,R,O){if(arguments.length!==1)return S=this.root+S,r.call(this,S,R,O),this;if(v(S)){var F=S;return this.filter(function(M,Y){return!Y.dir&&F.test(M)})}var z=this.files[this.root+S];return z&&!z.dir?z:null},folder:function(S){if(!S)return this;if(v(S))return this.filter(function(z,M){return M.dir&&S.test(z)});var R=this.root+S,O=y.call(this,R),F=this.clone();return F.root=O.name,F},remove:function(S){S=this.root+S;var R=this.files[S];if(R||(S.slice(-1)!=="/"&&(S+="/"),R=this.files[S]),R&&!R.dir)delete this.files[S];else for(var O=this.filter(function(z,M){return M.name.slice(0,S.length)===S}),F=0;F<O.length;F++)delete this.files[O[F].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var R,O={};try{if((O=n.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw Error("No output type specified.");n.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var F=O.comment||this.comment||"";R=u.generateWorker(this,O,F)}catch(z){(R=new l("error")).error(z)}return new s(R,O.type||"string",O.mimeType)},generateAsync:function(S,R){return this.generateInternalStream(S).accumulate(R)},generateNodeStream:function(S,R){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(R)}};i.exports=x},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,i,e){i.exports=t("stream")},{stream:void 0}],17:[function(t,i,e){var r=t("./DataReader");function o(n){r.call(this,n);for(var l=0;l<this.data.length;l++)n[l]=255&n[l]}t("../utils").inherits(o,r),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var l=n.charCodeAt(0),s=n.charCodeAt(1),b=n.charCodeAt(2),m=n.charCodeAt(3),d=this.length-4;0<=d;--d)if(this.data[d]===l&&this.data[d+1]===s&&this.data[d+2]===b&&this.data[d+3]===m)return d-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var l=n.charCodeAt(0),s=n.charCodeAt(1),b=n.charCodeAt(2),m=n.charCodeAt(3),d=this.readData(4);return l===d[0]&&s===d[1]&&b===d[2]&&m===d[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./DataReader":18}],18:[function(t,i,e){var r=t("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var l,s=0;for(this.checkOffset(n),l=this.index+n-1;l>=this.index;l--)s=(s<<8)+this.byteAt(l);return this.index+=n,s},readString:function(n){return r.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},i.exports=o},{"../utils":32}],19:[function(t,i,e){var r=t("./Uint8ArrayReader");function o(n){r.call(this,n)}t("../utils").inherits(o,r),o.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i,e){var r=t("./DataReader");function o(n){r.call(this,n)}t("../utils").inherits(o,r),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,i,e){var r=t("./ArrayReader");function o(n){r.call(this,n)}t("../utils").inherits(o,r),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},i.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,i,e){var r=t("../utils"),o=t("../support"),n=t("./ArrayReader"),l=t("./StringReader"),s=t("./NodeBufferReader"),b=t("./Uint8ArrayReader");i.exports=function(m){var d=r.getTypeOf(m);return r.checkSupport(d),d!=="string"||o.uint8array?d==="nodebuffer"?new s(m):o.uint8array?new b(r.transformTo("uint8array",m)):new n(r.transformTo("array",m)):new l(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,e){e.LOCAL_FILE_HEADER="PK\x03\x04",e.CENTRAL_FILE_HEADER="PK\x01\x02",e.CENTRAL_DIRECTORY_END="PK\x05\x06",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",e.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",e.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,i,e){var r=t("./GenericWorker"),o=t("../utils");function n(l){r.call(this,"ConvertWorker to "+l),this.destType=l}o.inherits(n,r),n.prototype.processChunk=function(l){this.push({data:o.transformTo(this.destType,l.data),meta:l.meta})},i.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(t,i,e){var r=t("./GenericWorker"),o=t("../crc32");function n(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(n,r),n.prototype.processChunk=function(l){this.streamInfo.crc32=o(l.data,this.streamInfo.crc32||0),this.push(l)},i.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i,e){var r=t("../utils"),o=t("./GenericWorker");function n(l){o.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}r.inherits(n,o),n.prototype.processChunk=function(l){if(l){var s=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=s+l.data.length}o.prototype.processChunk.call(this,l)},i.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(t,i,e){var r=t("../utils"),o=t("./GenericWorker");function n(l){o.call(this,"DataWorker");var s=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(b){s.dataIsReady=!0,s.data=b,s.max=b&&b.length||0,s.type=r.getTypeOf(b),s.isPaused||s._tickAndRepeat()},function(b){s.error(b)})}r.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,s=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,s);break;case"uint8array":l=this.data.subarray(this.index,s);break;case"array":case"nodebuffer":l=this.data.slice(this.index,s)}return this.index=s,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(t,i,e){function r(o){this.name=o||"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}r.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var l=0;l<this._listeners[o].length;l++)this._listeners[o][l].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(l){n.processChunk(l)}),o.on("end",function(){n.end()}),o.on("error",function(l){n.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},i.exports=r},{}],29:[function(t,i,e){var r=t("../utils"),o=t("./ConvertWorker"),n=t("./GenericWorker"),l=t("../base64"),s=t("../support"),b=t("../external"),m=null;if(s.nodestream)try{m=t("../nodejs/NodejsStreamOutputAdapter")}catch(p){}function d(p,f){return new b.Promise(function(g,h){var y=[],{_internalType:v,_outputType:x,_mimeType:S}=p;p.on("data",function(R,O){y.push(R),f&&f(O)}).on("error",function(R){y=[],h(R)}).on("end",function(){try{var R=function(O,F,z){switch(O){case"blob":return r.newBlob(r.transformTo("arraybuffer",F),z);case"base64":return l.encode(F);default:return r.transformTo(O,F)}}(x,function(O,F){var z,M=0,Y=null,k=0;for(z=0;z<F.length;z++)k+=F[z].length;switch(O){case"string":return F.join("");case"array":return Array.prototype.concat.apply([],F);case"uint8array":for(Y=new Uint8Array(k),z=0;z<F.length;z++)Y.set(F[z],M),M+=F[z].length;return Y;case"nodebuffer":return Buffer.concat(F);default:throw Error("concat : unsupported type '"+O+"'")}}(v,y),S);g(R)}catch(O){h(O)}y=[]}).resume()})}function u(p,f,g){var h=f;switch(f){case"blob":case"arraybuffer":h="uint8array";break;case"base64":h="string"}try{this._internalType=h,this._outputType=f,this._mimeType=g,r.checkSupport(h),this._worker=p.pipe(new o(h)),p.lock()}catch(y){this._worker=new n("error"),this._worker.error(y)}}u.prototype={accumulate:function(p){return d(this,p)},on:function(p,f){var g=this;return p==="data"?this._worker.on(p,function(h){f.call(g,h.data,h.meta)}):this._worker.on(p,function(){r.delay(f,arguments,g)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(p){if(r.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},p)}},i.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,e){if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",e.nodebuffer=typeof Buffer<"u",e.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")e.blob=!1;else{var r=new ArrayBuffer(0);try{e.blob=new Blob([r],{type:"application/zip"}).size===0}catch(n){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(r),e.blob=o.getBlob("application/zip").size===0}catch(l){e.blob=!1}}}try{e.nodestream=!!t("readable-stream").Readable}catch(n){e.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,e){for(var r=t("./utils"),o=t("./support"),n=t("./nodejsUtils"),l=t("./stream/GenericWorker"),s=Array(256),b=0;b<256;b++)s[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;s[254]=s[254]=1;function m(){l.call(this,"utf-8 decode"),this.leftOver=null}function d(){l.call(this,"utf-8 encode")}e.utf8encode=function(u){return o.nodebuffer?n.newBufferFrom(u,"utf-8"):function(p){var f,g,h,y,v,x=p.length,S=0;for(y=0;y<x;y++)(64512&(g=p.charCodeAt(y)))==55296&&y+1<x&&(64512&(h=p.charCodeAt(y+1)))==56320&&(g=65536+(g-55296<<10)+(h-56320),y++),S+=g<128?1:g<2048?2:g<65536?3:4;for(f=o.uint8array?new Uint8Array(S):Array(S),y=v=0;v<S;y++)(64512&(g=p.charCodeAt(y)))==55296&&y+1<x&&(64512&(h=p.charCodeAt(y+1)))==56320&&(g=65536+(g-55296<<10)+(h-56320),y++),g<128?f[v++]=g:(g<2048?f[v++]=192|g>>>6:(g<65536?f[v++]=224|g>>>12:(f[v++]=240|g>>>18,f[v++]=128|g>>>12&63),f[v++]=128|g>>>6&63),f[v++]=128|63&g);return f}(u)},e.utf8decode=function(u){return o.nodebuffer?r.transformTo("nodebuffer",u).toString("utf-8"):function(p){var f,g,h,y,v=p.length,x=Array(2*v);for(f=g=0;f<v;)if((h=p[f++])<128)x[g++]=h;else if(4<(y=s[h]))x[g++]=65533,f+=y-1;else{for(h&=y===2?31:y===3?15:7;1<y&&f<v;)h=h<<6|63&p[f++],y--;1<y?x[g++]=65533:h<65536?x[g++]=h:(h-=65536,x[g++]=55296|h>>10&1023,x[g++]=56320|1023&h)}return x.length!==g&&(x.subarray?x=x.subarray(0,g):x.length=g),r.applyFromCharCode(x)}(u=r.transformTo(o.uint8array?"uint8array":"array",u))},r.inherits(m,l),m.prototype.processChunk=function(u){var p=r.transformTo(o.uint8array?"uint8array":"array",u.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var f=p;(p=new Uint8Array(f.length+this.leftOver.length)).set(this.leftOver,0),p.set(f,this.leftOver.length)}else p=this.leftOver.concat(p);this.leftOver=null}var g=function(y,v){var x;for((v=v||y.length)>y.length&&(v=y.length),x=v-1;0<=x&&(192&y[x])==128;)x--;return x<0?v:x===0?v:x+s[y[x]]>v?x:v}(p),h=p;g!==p.length&&(o.uint8array?(h=p.subarray(0,g),this.leftOver=p.subarray(g,p.length)):(h=p.slice(0,g),this.leftOver=p.slice(g,p.length))),this.push({data:e.utf8decode(h),meta:u.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=m,r.inherits(d,l),d.prototype.processChunk=function(u){this.push({data:e.utf8encode(u.data),meta:u.meta})},e.Utf8EncodeWorker=d},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,e){var r=t("./support"),o=t("./base64"),n=t("./nodejsUtils"),l=t("./external");function s(f){return f}function b(f,g){for(var h=0;h<f.length;++h)g[h]=255&f.charCodeAt(h);return g}t("setimmediate"),e.newBlob=function(f,g){e.checkSupport("blob");try{return new Blob([f],{type:g})}catch(y){try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return h.append(f),h.getBlob(g)}catch(v){throw Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(f,g,h){var y=[],v=0,x=f.length;if(x<=h)return String.fromCharCode.apply(null,f);for(;v<x;)g==="array"||g==="nodebuffer"?y.push(String.fromCharCode.apply(null,f.slice(v,Math.min(v+h,x)))):y.push(String.fromCharCode.apply(null,f.subarray(v,Math.min(v+h,x)))),v+=h;return y.join("")},stringifyByChar:function(f){for(var g="",h=0;h<f.length;h++)g+=String.fromCharCode(f[h]);return g},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(f){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch(f){return!1}}()}};function d(f){var g=65536,h=e.getTypeOf(f),y=!0;if(h==="uint8array"?y=m.applyCanBeUsed.uint8array:h==="nodebuffer"&&(y=m.applyCanBeUsed.nodebuffer),y)for(;1<g;)try{return m.stringifyByChunk(f,h,g)}catch(v){g=Math.floor(g/2)}return m.stringifyByChar(f)}function u(f,g){for(var h=0;h<f.length;h++)g[h]=f[h];return g}e.applyFromCharCode=d;var p={};p.string={string:s,array:function(f){return b(f,Array(f.length))},arraybuffer:function(f){return p.string.uint8array(f).buffer},uint8array:function(f){return b(f,new Uint8Array(f.length))},nodebuffer:function(f){return b(f,n.allocBuffer(f.length))}},p.array={string:d,array:s,arraybuffer:function(f){return new Uint8Array(f).buffer},uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return n.newBufferFrom(f)}},p.arraybuffer={string:function(f){return d(new Uint8Array(f))},array:function(f){return u(new Uint8Array(f),Array(f.byteLength))},arraybuffer:s,uint8array:function(f){return new Uint8Array(f)},nodebuffer:function(f){return n.newBufferFrom(new Uint8Array(f))}},p.uint8array={string:d,array:function(f){return u(f,Array(f.length))},arraybuffer:function(f){return f.buffer},uint8array:s,nodebuffer:function(f){return n.newBufferFrom(f)}},p.nodebuffer={string:d,array:function(f){return u(f,Array(f.length))},arraybuffer:function(f){return p.nodebuffer.uint8array(f).buffer},uint8array:function(f){return u(f,new Uint8Array(f.length))},nodebuffer:s},e.transformTo=function(f,g){if(g=g||"",!f)return g;e.checkSupport(f);var h=e.getTypeOf(g);return p[h][f](g)},e.resolve=function(f){for(var g=f.split("/"),h=[],y=0;y<g.length;y++){var v=g[y];v==="."||v===""&&y!==0&&y!==g.length-1||(v===".."?h.pop():h.push(v))}return h.join("/")},e.getTypeOf=function(f){return typeof f=="string"?"string":Object.prototype.toString.call(f)==="[object Array]"?"array":r.nodebuffer&&n.isBuffer(f)?"nodebuffer":r.uint8array&&f instanceof Uint8Array?"uint8array":r.arraybuffer&&f instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(f){if(!r[f.toLowerCase()])throw Error(f+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(f){var g,h,y="";for(h=0;h<(f||"").length;h++)y+="\\x"+((g=f.charCodeAt(h))<16?"0":"")+g.toString(16).toUpperCase();return y},e.delay=function(f,g,h){setImmediate(function(){f.apply(h||null,g||[])})},e.inherits=function(f,g){function h(){}h.prototype=g.prototype,f.prototype=new h},e.extend=function(){var f,g,h={};for(f=0;f<arguments.length;f++)for(g in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],g)&&h[g]===void 0&&(h[g]=arguments[f][g]);return h},e.prepareContent=function(f,g,h,y,v){return l.Promise.resolve(g).then(function(x){return r.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader<"u"?new l.Promise(function(S,R){var O=new FileReader;O.onload=function(F){S(F.target.result)},O.onerror=function(F){R(F.target.error)},O.readAsArrayBuffer(x)}):x}).then(function(x){var S=e.getTypeOf(x);return S?(S==="arraybuffer"?x=e.transformTo("uint8array",x):S==="string"&&(v?x=o.decode(x):h&&y!==!0&&(x=function(R){return b(R,r.uint8array?new Uint8Array(R.length):Array(R.length))}(x))),x):l.Promise.reject(Error("Can't read the data of '"+f+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i,e){var r=t("./reader/readerFor"),o=t("./utils"),n=t("./signature"),l=t("./zipEntry"),s=t("./support");function b(m){this.files=[],this.loadOptions=m}b.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var d=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+o.pretty(d)+", expected "+o.pretty(m)+")")}},isSignature:function(m,d){var u=this.reader.index;this.reader.setIndex(m);var p=this.reader.readString(4)===d;return this.reader.setIndex(u),p},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 m=this.reader.readData(this.zipCommentLength),d=s.uint8array?"uint8array":"array",u=o.transformTo(d,m);this.zipComment=this.loadOptions.decodeFileName(u)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var m,d,u,p=this.zip64EndOfCentralSize-44;0<p;)m=this.reader.readInt(2),d=this.reader.readInt(4),u=this.reader.readData(d),this.zip64ExtensibleData[m]={id:m,length:d,value:u}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var m,d;for(m=0;m<this.files.length;m++)d=this.files[m],this.reader.setIndex(d.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),d.readLocalPart(this.reader),d.handleUTF8(),d.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&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 m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw!this.isSignature(0,n.LOCAL_FILE_HEADER)?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"):Error("Corrupted zip: can't find end of central directory");this.reader.setIndex(m);var d=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var u=this.centralDirOffset+this.centralDirSize;this.zip64&&(u+=20,u+=12+this.zip64EndOfCentralSize);var p=d-u;if(0<p)this.isSignature(d,n.CENTRAL_FILE_HEADER)||(this.reader.zero=p);else if(p<0)throw Error("Corrupted zip: missing "+Math.abs(p)+" bytes.")},prepareReader:function(m){this.reader=r(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=b},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i,e){var r=t("./reader/readerFor"),o=t("./utils"),n=t("./compressedObject"),l=t("./crc32"),s=t("./utf8"),b=t("./compressions"),m=t("./support");function d(u,p){this.options=u,this.loadOptions=p}d.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(u){var p,f;if(u.skip(22),this.fileNameLength=u.readInt(2),f=u.readInt(2),this.fileName=u.readData(this.fileNameLength),u.skip(f),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((p=function(g){for(var h in b)if(Object.prototype.hasOwnProperty.call(b,h)&&b[h].magic===g)return b[h];return null}(this.compressionMethod))===null)throw Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,p,u.readData(this.compressedSize))},readCentralPart:function(u){this.versionMadeBy=u.readInt(2),u.skip(2),this.bitFlag=u.readInt(2),this.compressionMethod=u.readString(2),this.date=u.readDate(),this.crc32=u.readInt(4),this.compressedSize=u.readInt(4),this.uncompressedSize=u.readInt(4);var p=u.readInt(2);if(this.extraFieldsLength=u.readInt(2),this.fileCommentLength=u.readInt(2),this.diskNumberStart=u.readInt(2),this.internalFileAttributes=u.readInt(2),this.externalFileAttributes=u.readInt(4),this.localHeaderOffset=u.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");u.skip(p),this.readExtraFields(u),this.parseZIP64ExtraField(u),this.fileComment=u.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var u=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),u==0&&(this.dosPermissions=63&this.externalFileAttributes),u==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var u=r(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(u){var p,f,g,h=u.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});u.index+4<h;)p=u.readInt(2),f=u.readInt(2),g=u.readData(f),this.extraFields[p]={id:p,length:f,value:g};u.setIndex(h)},handleUTF8:function(){var u=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var p=this.findExtraFieldUnicodePath();if(p!==null)this.fileNameStr=p;else{var f=o.transformTo(u,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(f)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var h=o.transformTo(u,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(h)}}},findExtraFieldUnicodePath:function(){var u=this.extraFields[28789];if(u){var p=r(u.value);return p.readInt(1)!==1?null:l(this.fileName)!==p.readInt(4)?null:s.utf8decode(p.readData(u.length-5))}return null},findExtraFieldUnicodeComment:function(){var u=this.extraFields[25461];if(u){var p=r(u.value);return p.readInt(1)!==1?null:l(this.fileComment)!==p.readInt(4)?null:s.utf8decode(p.readData(u.length-5))}return null}},i.exports=d},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i,e){function r(p,f,g){this.name=p,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=f,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var o=t("./stream/StreamHelper"),n=t("./stream/DataWorker"),l=t("./utf8"),s=t("./compressedObject"),b=t("./stream/GenericWorker");r.prototype={internalStream:function(p){var f=null,g="string";try{if(!p)throw Error("No output type specified.");var h=(g=p.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),f=this._decompressWorker();var y=!this._dataBinary;y&&!h&&(f=f.pipe(new l.Utf8EncodeWorker)),!y&&h&&(f=f.pipe(new l.Utf8DecodeWorker))}catch(v){(f=new b("error")).error(v)}return new o(f,g,"")},async:function(p,f){return this.internalStream(p).accumulate(f)},nodeStream:function(p,f){return this.internalStream(p||"nodebuffer").toNodejsStream(f)},_compressWorker:function(p,f){if(this._data instanceof s&&this._data.compression.magic===p.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new l.Utf8EncodeWorker)),s.createWorkerFrom(g,p,f)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof b?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],d=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<m.length;u++)r.prototype[m[u]]=d;i.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,i,e){(function(r){var o,n,l=r.MutationObserver||r.WebKitMutationObserver;if(l){var s=0,b=new l(p),m=r.document.createTextNode("");b.observe(m,{characterData:!0}),o=function(){m.data=s=++s%2}}else if(r.setImmediate||r.MessageChannel===void 0)o="document"in r&&"onreadystatechange"in r.document.createElement("script")?function(){var f=r.document.createElement("script");f.onreadystatechange=function(){p(),f.onreadystatechange=null,f.parentNode.removeChild(f),f=null},r.document.documentElement.appendChild(f)}:function(){setTimeout(p,0)};else{var d=new r.MessageChannel;d.port1.onmessage=p,o=function(){d.port2.postMessage(0)}}var u=[];function p(){var f,g;n=!0;for(var h=u.length;h;){for(g=u,u=[],f=-1;++f<h;)g[f]();h=u.length}n=!1}i.exports=function(f){u.push(f)!==1||n||o()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(t,i,e){var r=t("immediate");function o(){}var n={},l=["REJECTED"],s=["FULFILLED"],b=["PENDING"];function m(h){if(typeof h!="function")throw TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,h!==o&&f(this,h)}function d(h,y,v){this.promise=h,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function u(h,y,v){r(function(){var x;try{x=y(v)}catch(S){return n.reject(h,S)}x===h?n.reject(h,TypeError("Cannot resolve promise with itself")):n.resolve(h,x)})}function p(h){var y=h&&h.then;if(h&&(typeof h=="object"||typeof h=="function")&&typeof y=="function")return function(){y.apply(h,arguments)}}function f(h,y){var v=!1;function x(O){v||(v=!0,n.reject(h,O))}function S(O){v||(v=!0,n.resolve(h,O))}var R=g(function(){y(S,x)});R.status==="error"&&x(R.value)}function g(h,y){var v={};try{v.value=h(y),v.status="success"}catch(x){v.status="error",v.value=x}return v}(i.exports=m).prototype.finally=function(h){if(typeof h!="function")return this;var y=this.constructor;return this.then(function(v){return y.resolve(h()).then(function(){return v})},function(v){return y.resolve(h()).then(function(){throw v})})},m.prototype.catch=function(h){return this.then(null,h)},m.prototype.then=function(h,y){if(typeof h!="function"&&this.state===s||typeof y!="function"&&this.state===l)return this;var v=new this.constructor(o);return this.state!==b?u(v,this.state===s?h:y,this.outcome):this.queue.push(new d(v,h,y)),v},d.prototype.callFulfilled=function(h){n.resolve(this.promise,h)},d.prototype.otherCallFulfilled=function(h){u(this.promise,this.onFulfilled,h)},d.prototype.callRejected=function(h){n.reject(this.promise,h)},d.prototype.otherCallRejected=function(h){u(this.promise,this.onRejected,h)},n.resolve=function(h,y){var v=g(p,y);if(v.status==="error")return n.reject(h,v.value);var x=v.value;if(x)f(h,x);else{h.state=s,h.outcome=y;for(var S=-1,R=h.queue.length;++S<R;)h.queue[S].callFulfilled(y)}return h},n.reject=function(h,y){h.state=l,h.outcome=y;for(var v=-1,x=h.queue.length;++v<x;)h.queue[v].callRejected(y);return h},m.resolve=function(h){if(h instanceof this)return h;return n.resolve(new this(o),h)},m.reject=function(h){var y=new this(o);return n.reject(y,h)},m.all=function(h){var y=this;if(Object.prototype.toString.call(h)!=="[object Array]")return this.reject(TypeError("must be an array"));var v=h.length,x=!1;if(!v)return this.resolve([]);var S=Array(v),R=0,O=-1,F=new this(o);for(;++O<v;)z(h[O],O);return F;function z(M,Y){y.resolve(M).then(function(k){S[Y]=k,++R!==v||x||(x=!0,n.resolve(F,S))},function(k){x||(x=!0,n.reject(F,k))})}},m.race=function(h){var y=this;if(Object.prototype.toString.call(h)!=="[object Array]")return this.reject(TypeError("must be an array"));var v=h.length,x=!1;if(!v)return this.resolve([]);var S=-1,R=new this(o);for(;++S<v;)O=h[S],y.resolve(O).then(function(F){x||(x=!0,n.resolve(R,F))},function(F){x||(x=!0,n.reject(R,F))});var O;return R}},{immediate:36}],38:[function(t,i,e){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,e){var r=t("./zlib/deflate"),o=t("./utils/common"),n=t("./utils/strings"),l=t("./zlib/messages"),s=t("./zlib/zstream"),b=Object.prototype.toString,m=0,d=-1,u=0,p=8;function f(h){if(!(this instanceof f))return new f(h);this.options=o.assign({level:d,method:p,chunkSize:16384,windowBits:15,memLevel:8,strategy:u,to:""},h||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var v=r.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(v!==m)throw Error(l[v]);if(y.header&&r.deflateSetHeader(this.strm,y.header),y.dictionary){var x;if(x=typeof y.dictionary=="string"?n.string2buf(y.dictionary):b.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(v=r.deflateSetDictionary(this.strm,x))!==m)throw Error(l[v]);this._dict_set=!0}}function g(h,y){var v=new f(y);if(v.push(h,!0),v.err)throw v.msg||l[v.err];return v.result}f.prototype.push=function(h,y){var v,x,S=this.strm,R=this.options.chunkSize;if(this.ended)return!1;x=y===~~y?y:y===!0?4:0,typeof h=="string"?S.input=n.string2buf(h):b.call(h)==="[object ArrayBuffer]"?S.input=new Uint8Array(h):S.input=h,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new o.Buf8(R),S.next_out=0,S.avail_out=R),(v=r.deflate(S,x))!==1&&v!==m)return this.onEnd(v),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(S.output,S.next_out))):this.onData(o.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&v!==1);return x===4?(v=r.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===m):x!==2||(this.onEnd(m),!(S.avail_out=0))},f.prototype.onData=function(h){this.chunks.push(h)},f.prototype.onEnd=function(h){h===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},e.Deflate=f,e.deflate=g,e.deflateRaw=function(h,y){return(y=y||{}).raw=!0,g(h,y)},e.gzip=function(h,y){return(y=y||{}).gzip=!0,g(h,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,e){var r=t("./zlib/inflate"),o=t("./utils/common"),n=t("./utils/strings"),l=t("./zlib/constants"),s=t("./zlib/messages"),b=t("./zlib/zstream"),m=t("./zlib/gzheader"),d=Object.prototype.toString;function u(f){if(!(this instanceof u))return new u(f);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},f||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||f&&f.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new b,this.strm.avail_out=0;var h=r.inflateInit2(this.strm,g.windowBits);if(h!==l.Z_OK)throw Error(s[h]);this.header=new m,r.inflateGetHeader(this.strm,this.header)}function p(f,g){var h=new u(g);if(h.push(f,!0),h.err)throw h.msg||s[h.err];return h.result}u.prototype.push=function(f,g){var h,y,v,x,S,R,O=this.strm,F=this.options.chunkSize,z=this.options.dictionary,M=!1;if(this.ended)return!1;y=g===~~g?g:g===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof f=="string"?O.input=n.binstring2buf(f):d.call(f)==="[object ArrayBuffer]"?O.input=new Uint8Array(f):O.input=f,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(F),O.next_out=0,O.avail_out=F),(h=r.inflate(O,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&z&&(R=typeof z=="string"?n.string2buf(z):d.call(z)==="[object ArrayBuffer]"?new Uint8Array(z):z,h=r.inflateSetDictionary(this.strm,R)),h===l.Z_BUF_ERROR&&M===!0&&(h=l.Z_OK,M=!1),h!==l.Z_STREAM_END&&h!==l.Z_OK)return this.onEnd(h),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&h!==l.Z_STREAM_END&&(O.avail_in!==0||y!==l.Z_FINISH&&y!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=n.utf8border(O.output,O.next_out),x=O.next_out-v,S=n.buf2string(O.output,v),O.next_out=x,O.avail_out=F-x,x&&o.arraySet(O.output,O.output,v,x,0),this.onData(S)):this.onData(o.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(M=!0)}while((0<O.avail_in||O.avail_out===0)&&h!==l.Z_STREAM_END);return h===l.Z_STREAM_END&&(y=l.Z_FINISH),y===l.Z_FINISH?(h=r.inflateEnd(this.strm),this.onEnd(h),this.ended=!0,h===l.Z_OK):y!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(O.avail_out=0))},u.prototype.onData=function(f){this.chunks.push(f)},u.prototype.onEnd=function(f){f===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=f,this.msg=this.strm.msg},e.Inflate=u,e.inflate=p,e.inflateRaw=function(f,g){return(g=g||{}).raw=!0,p(f,g)},e.ungzip=p},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,e){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";e.assign=function(l){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var b=s.shift();if(b){if(typeof b!="object")throw TypeError(b+"must be non-object");for(var m in b)b.hasOwnProperty(m)&&(l[m]=b[m])}}return l},e.shrinkBuf=function(l,s){return l.length===s?l:l.subarray?l.subarray(0,s):(l.length=s,l)};var o={arraySet:function(l,s,b,m,d){if(s.subarray&&l.subarray)l.set(s.subarray(b,b+m),d);else for(var u=0;u<m;u++)l[d+u]=s[b+u]},flattenChunks:function(l){var s,b,m,d,u,p;for(s=m=0,b=l.length;s<b;s++)m+=l[s].length;for(p=new Uint8Array(m),s=d=0,b=l.length;s<b;s++)u=l[s],p.set(u,d),d+=u.length;return p}},n={arraySet:function(l,s,b,m,d){for(var u=0;u<m;u++)l[d+u]=s[b+u]},flattenChunks:function(l){return[].concat.apply([],l)}};e.setTyped=function(l){l?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,n))},e.setTyped(r)},{}],42:[function(t,i,e){var r=t("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(m){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(m){n=!1}for(var l=new r.Buf8(256),s=0;s<256;s++)l[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function b(m,d){if(d<65537&&(m.subarray&&n||!m.subarray&&o))return String.fromCharCode.apply(null,r.shrinkBuf(m,d));for(var u="",p=0;p<d;p++)u+=String.fromCharCode(m[p]);return u}l[254]=l[254]=1,e.string2buf=function(m){var d,u,p,f,g,h=m.length,y=0;for(f=0;f<h;f++)(64512&(u=m.charCodeAt(f)))==55296&&f+1<h&&(64512&(p=m.charCodeAt(f+1)))==56320&&(u=65536+(u-55296<<10)+(p-56320),f++),y+=u<128?1:u<2048?2:u<65536?3:4;for(d=new r.Buf8(y),f=g=0;g<y;f++)(64512&(u=m.charCodeAt(f)))==55296&&f+1<h&&(64512&(p=m.charCodeAt(f+1)))==56320&&(u=65536+(u-55296<<10)+(p-56320),f++),u<128?d[g++]=u:(u<2048?d[g++]=192|u>>>6:(u<65536?d[g++]=224|u>>>12:(d[g++]=240|u>>>18,d[g++]=128|u>>>12&63),d[g++]=128|u>>>6&63),d[g++]=128|63&u);return d},e.buf2binstring=function(m){return b(m,m.length)},e.binstring2buf=function(m){for(var d=new r.Buf8(m.length),u=0,p=d.length;u<p;u++)d[u]=m.charCodeAt(u);return d},e.buf2string=function(m,d){var u,p,f,g,h=d||m.length,y=Array(2*h);for(u=p=0;u<h;)if((f=m[u++])<128)y[p++]=f;else if(4<(g=l[f]))y[p++]=65533,u+=g-1;else{for(f&=g===2?31:g===3?15:7;1<g&&u<h;)f=f<<6|63&m[u++],g--;1<g?y[p++]=65533:f<65536?y[p++]=f:(f-=65536,y[p++]=55296|f>>10&1023,y[p++]=56320|1023&f)}return b(y,p)},e.utf8border=function(m,d){var u;for((d=d||m.length)>m.length&&(d=m.length),u=d-1;0<=u&&(192&m[u])==128;)u--;return u<0?d:u===0?d:u+l[m[u]]>d?u:d}},{"./common":41}],43:[function(t,i,e){i.exports=function(r,o,n,l){for(var s=65535&r|0,b=r>>>16&65535|0,m=0;n!==0;){for(n-=m=2000<n?2000:n;b=b+(s=s+o[l++]|0)|0,--m;);s%=65521,b%=65521}return s|b<<16|0}},{}],44:[function(t,i,e){i.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}},{}],45:[function(t,i,e){var r=function(){for(var o,n=[],l=0;l<256;l++){o=l;for(var s=0;s<8;s++)o=1&o?3988292384^o>>>1:o>>>1;n[l]=o}return n}();i.exports=function(o,n,l,s){var b=r,m=s+l;o^=-1;for(var d=s;d<m;d++)o=o>>>8^b[255&(o^n[d])];return-1^o}},{}],46:[function(t,i,e){var r,o=t("../utils/common"),n=t("./trees"),l=t("./adler32"),s=t("./crc32"),b=t("./messages"),m=0,d=4,u=0,p=-2,f=-1,g=4,h=2,y=8,v=9,x=286,S=30,R=19,O=2*x+1,F=15,z=3,M=258,Y=M+z+1,k=42,B=113,c=1,L=2,J=3,U=4;function Q(a,N){return a.msg=b[N],N}function j(a){return(a<<1)-(4<a?9:0)}function K(a){for(var N=a.length;0<=--N;)a[N]=0}function A(a){var N=a.state,T=N.pending;T>a.avail_out&&(T=a.avail_out),T!==0&&(o.arraySet(a.output,N.pending_buf,N.pending_out,T,a.next_out),a.next_out+=T,N.pending_out+=T,a.total_out+=T,a.avail_out-=T,N.pending-=T,N.pending===0&&(N.pending_out=0))}function I(a,N){n._tr_flush_block(a,0<=a.block_start?a.block_start:-1,a.strstart-a.block_start,N),a.block_start=a.strstart,A(a.strm)}function X(a,N){a.pending_buf[a.pending++]=N}function q(a,N){a.pending_buf[a.pending++]=N>>>8&255,a.pending_buf[a.pending++]=255&N}function H(a,N){var T,_,{max_chain_length:w,strstart:E,prev_length:D,nice_match:P}=a,C=a.strstart>a.w_size-Y?a.strstart-(a.w_size-Y):0,{window:W,w_mask:G,prev:Z}=a,V=a.strstart+M,nt=W[E+D-1],et=W[E+D];a.prev_length>=a.good_match&&(w>>=2),P>a.lookahead&&(P=a.lookahead);do if(W[(T=N)+D]===et&&W[T+D-1]===nt&&W[T]===W[E]&&W[++T]===W[E+1]){E+=2,T++;do;while(W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&W[++E]===W[++T]&&E<V);if(_=M-(V-E),E=V-M,D<_){if(a.match_start=N,P<=(D=_))break;nt=W[E+D-1],et=W[E+D]}}while((N=Z[N&G])>C&&--w!=0);return D<=a.lookahead?D:a.lookahead}function at(a){var N,T,_,w,E,D,P,C,W,G,Z=a.w_size;do{if(w=a.window_size-a.lookahead-a.strstart,a.strstart>=Z+(Z-Y)){for(o.arraySet(a.window,a.window,Z,Z,0),a.match_start-=Z,a.strstart-=Z,a.block_start-=Z,N=T=a.hash_size;_=a.head[--N],a.head[N]=Z<=_?_-Z:0,--T;);for(N=T=Z;_=a.prev[--N],a.prev[N]=Z<=_?_-Z:0,--T;);w+=Z}if(a.strm.avail_in===0)break;if(D=a.strm,P=a.window,C=a.strstart+a.lookahead,W=w,G=void 0,G=D.avail_in,W<G&&(G=W),T=G===0?0:(D.avail_in-=G,o.arraySet(P,D.input,D.next_in,G,C),D.state.wrap===1?D.adler=l(D.adler,P,G,C):D.state.wrap===2&&(D.adler=s(D.adler,P,G,C)),D.next_in+=G,D.total_in+=G,G),a.lookahead+=T,a.lookahead+a.insert>=z)for(E=a.strstart-a.insert,a.ins_h=a.window[E],a.ins_h=(a.ins_h<<a.hash_shift^a.window[E+1])&a.hash_mask;a.insert&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[E+z-1])&a.hash_mask,a.prev[E&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=E,E++,a.insert--,!(a.lookahead+a.insert<z)););}while(a.lookahead<Y&&a.strm.avail_in!==0)}function ct(a,N){for(var T,_;;){if(a.lookahead<Y){if(at(a),a.lookahead<Y&&N===m)return c;if(a.lookahead===0)break}if(T=0,a.lookahead>=z&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),T!==0&&a.strstart-T<=a.w_size-Y&&(a.match_length=H(a,T)),a.match_length>=z)if(_=n._tr_tally(a,a.strstart-a.match_start,a.match_length-z),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=z){for(a.match_length--;a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart,--a.match_length!=0;);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else _=n._tr_tally(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(_&&(I(a,!1),a.strm.avail_out===0))return c}return a.insert=a.strstart<z-1?a.strstart:z-1,N===d?(I(a,!0),a.strm.avail_out===0?J:U):a.last_lit&&(I(a,!1),a.strm.avail_out===0)?c:L}function tt(a,N){for(var T,_,w;;){if(a.lookahead<Y){if(at(a),a.lookahead<Y&&N===m)return c;if(a.lookahead===0)break}if(T=0,a.lookahead>=z&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),a.prev_length=a.match_length,a.prev_match=a.match_start,a.match_length=z-1,T!==0&&a.prev_length<a.max_lazy_match&&a.strstart-T<=a.w_size-Y&&(a.match_length=H(a,T),a.match_length<=5&&(a.strategy===1||a.match_length===z&&4096<a.strstart-a.match_start)&&(a.match_length=z-1)),a.prev_length>=z&&a.match_length<=a.prev_length){for(w=a.strstart+a.lookahead-z,_=n._tr_tally(a,a.strstart-1-a.prev_match,a.prev_length-z),a.lookahead-=a.prev_length-1,a.prev_length-=2;++a.strstart<=w&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+z-1])&a.hash_mask,T=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart),--a.prev_length!=0;);if(a.match_available=0,a.match_length=z-1,a.strstart++,_&&(I(a,!1),a.strm.avail_out===0))return c}else if(a.match_available){if((_=n._tr_tally(a,0,a.window[a.strstart-1]))&&I(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return c}else a.match_available=1,a.strstart++,a.lookahead--}return a.match_available&&(_=n._tr_tally(a,0,a.window[a.strstart-1]),a.match_available=0),a.insert=a.strstart<z-1?a.strstart:z-1,N===d?(I(a,!0),a.strm.avail_out===0?J:U):a.last_lit&&(I(a,!1),a.strm.avail_out===0)?c:L}function rt(a,N,T,_,w){this.good_length=a,this.max_lazy=N,this.nice_length=T,this.max_chain=_,this.func=w}function lt(){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=y,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 o.Buf16(2*O),this.dyn_dtree=new o.Buf16(2*(2*S+1)),this.bl_tree=new o.Buf16(2*(2*R+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(F+1),this.heap=new o.Buf16(2*x+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*x+1),K(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 st(a){var N;return a&&a.state?(a.total_in=a.total_out=0,a.data_type=h,(N=a.state).pending=0,N.pending_out=0,N.wrap<0&&(N.wrap=-N.wrap),N.status=N.wrap?k:B,a.adler=N.wrap===2?0:1,N.last_flush=m,n._tr_init(N),u):Q(a,p)}function ht(a){var N=st(a);return N===u&&function(T){T.window_size=2*T.w_size,K(T.head),T.max_lazy_match=r[T.level].max_lazy,T.good_match=r[T.level].good_length,T.nice_match=r[T.level].nice_length,T.max_chain_length=r[T.level].max_chain,T.strstart=0,T.block_start=0,T.lookahead=0,T.insert=0,T.match_length=T.prev_length=z-1,T.match_available=0,T.ins_h=0}(a.state),N}function ft(a,N,T,_,w,E){if(!a)return p;var D=1;if(N===f&&(N=6),_<0?(D=0,_=-_):15<_&&(D=2,_-=16),w<1||v<w||T!==y||_<8||15<_||N<0||9<N||E<0||g<E)return Q(a,p);_===8&&(_=9);var P=new lt;return(a.state=P).strm=a,P.wrap=D,P.gzhead=null,P.w_bits=_,P.w_size=1<<P.w_bits,P.w_mask=P.w_size-1,P.hash_bits=w+7,P.hash_size=1<<P.hash_bits,P.hash_mask=P.hash_size-1,P.hash_shift=~~((P.hash_bits+z-1)/z),P.window=new o.Buf8(2*P.w_size),P.head=new o.Buf16(P.hash_size),P.prev=new o.Buf16(P.w_size),P.lit_bufsize=1<<w+6,P.pending_buf_size=4*P.lit_bufsize,P.pending_buf=new o.Buf8(P.pending_buf_size),P.d_buf=1*P.lit_bufsize,P.l_buf=3*P.lit_bufsize,P.level=N,P.strategy=E,P.method=T,ht(a)}r=[new rt(0,0,0,0,function(a,N){var T=65535;for(T>a.pending_buf_size-5&&(T=a.pending_buf_size-5);;){if(a.lookahead<=1){if(at(a),a.lookahead===0&&N===m)return c;if(a.lookahead===0)break}a.strstart+=a.lookahead,a.lookahead=0;var _=a.block_start+T;if((a.strstart===0||a.strstart>=_)&&(a.lookahead=a.strstart-_,a.strstart=_,I(a,!1),a.strm.avail_out===0))return c;if(a.strstart-a.block_start>=a.w_size-Y&&(I(a,!1),a.strm.avail_out===0))return c}return a.insert=0,N===d?(I(a,!0),a.strm.avail_out===0?J:U):(a.strstart>a.block_start&&(I(a,!1),a.strm.avail_out),c)}),new rt(4,4,8,4,ct),new rt(4,5,16,8,ct),new rt(4,6,32,32,ct),new rt(4,4,16,16,tt),new rt(8,16,32,32,tt),new rt(8,16,128,128,tt),new rt(8,32,128,256,tt),new rt(32,128,258,1024,tt),new rt(32,258,258,4096,tt)],e.deflateInit=function(a,N){return ft(a,N,y,15,8,0)},e.deflateInit2=ft,e.deflateReset=ht,e.deflateResetKeep=st,e.deflateSetHeader=function(a,N){return a&&a.state?a.state.wrap!==2?p:(a.state.gzhead=N,u):p},e.deflate=function(a,N){var T,_,w,E;if(!a||!a.state||5<N||N<0)return a?Q(a,p):p;if(_=a.state,!a.output||!a.input&&a.avail_in!==0||_.status===666&&N!==d)return Q(a,a.avail_out===0?-5:p);if(_.strm=a,T=_.last_flush,_.last_flush=N,_.status===k)if(_.wrap===2)a.adler=0,X(_,31),X(_,139),X(_,8),_.gzhead?(X(_,(_.gzhead.text?1:0)+(_.gzhead.hcrc?2:0)+(_.gzhead.extra?4:0)+(_.gzhead.name?8:0)+(_.gzhead.comment?16:0)),X(_,255&_.gzhead.time),X(_,_.gzhead.time>>8&255),X(_,_.gzhead.time>>16&255),X(_,_.gzhead.time>>24&255),X(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),X(_,255&_.gzhead.os),_.gzhead.extra&&_.gzhead.extra.length&&(X(_,255&_.gzhead.extra.length),X(_,_.gzhead.extra.length>>8&255)),_.gzhead.hcrc&&(a.adler=s(a.adler,_.pending_buf,_.pending,0)),_.gzindex=0,_.status=69):(X(_,0),X(_,0),X(_,0),X(_,0),X(_,0),X(_,_.level===9?2:2<=_.strategy||_.level<2?4:0),X(_,3),_.status=B);else{var D=y+(_.w_bits-8<<4)<<8;D|=(2<=_.strategy||_.level<2?0:_.level<6?1:_.level===6?2:3)<<6,_.strstart!==0&&(D|=32),D+=31-D%31,_.status=B,q(_,D),_.strstart!==0&&(q(_,a.adler>>>16),q(_,65535&a.adler)),a.adler=1}if(_.status===69)if(_.gzhead.extra){for(w=_.pending;_.gzindex<(65535&_.gzhead.extra.length)&&(_.pending!==_.pending_buf_size||(_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),A(a),w=_.pending,_.pending!==_.pending_buf_size));)X(_,255&_.gzhead.extra[_.gzindex]),_.gzindex++;_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),_.gzindex===_.gzhead.extra.length&&(_.gzindex=0,_.status=73)}else _.status=73;if(_.status===73)if(_.gzhead.name){w=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),A(a),w=_.pending,_.pending===_.pending_buf_size)){E=1;break}E=_.gzindex<_.gzhead.name.length?255&_.gzhead.name.charCodeAt(_.gzindex++):0,X(_,E)}while(E!==0);_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),E===0&&(_.gzindex=0,_.status=91)}else _.status=91;if(_.status===91)if(_.gzhead.comment){w=_.pending;do{if(_.pending===_.pending_buf_size&&(_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),A(a),w=_.pending,_.pending===_.pending_buf_size)){E=1;break}E=_.gzindex<_.gzhead.comment.length?255&_.gzhead.comment.charCodeAt(_.gzindex++):0,X(_,E)}while(E!==0);_.gzhead.hcrc&&_.pending>w&&(a.adler=s(a.adler,_.pending_buf,_.pending-w,w)),E===0&&(_.status=103)}else _.status=103;if(_.status===103&&(_.gzhead.hcrc?(_.pending+2>_.pending_buf_size&&A(a),_.pending+2<=_.pending_buf_size&&(X(_,255&a.adler),X(_,a.adler>>8&255),a.adler=0,_.status=B)):_.status=B),_.pending!==0){if(A(a),a.avail_out===0)return _.last_flush=-1,u}else if(a.avail_in===0&&j(N)<=j(T)&&N!==d)return Q(a,-5);if(_.status===666&&a.avail_in!==0)return Q(a,-5);if(a.avail_in!==0||_.lookahead!==0||N!==m&&_.status!==666){var P=_.strategy===2?function(C,W){for(var G;;){if(C.lookahead===0&&(at(C),C.lookahead===0)){if(W===m)return c;break}if(C.match_length=0,G=n._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,G&&(I(C,!1),C.strm.avail_out===0))return c}return C.insert=0,W===d?(I(C,!0),C.strm.avail_out===0?J:U):C.last_lit&&(I(C,!1),C.strm.avail_out===0)?c:L}(_,N):_.strategy===3?function(C,W){for(var G,Z,V,nt,et=C.window;;){if(C.lookahead<=M){if(at(C),C.lookahead<=M&&W===m)return c;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=z&&0<C.strstart&&(Z=et[V=C.strstart-1])===et[++V]&&Z===et[++V]&&Z===et[++V]){nt=C.strstart+M;do;while(Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&Z===et[++V]&&V<nt);C.match_length=M-(nt-V),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=z?(G=n._tr_tally(C,1,C.match_length-z),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(G=n._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),G&&(I(C,!1),C.strm.avail_out===0))return c}return C.insert=0,W===d?(I(C,!0),C.strm.avail_out===0?J:U):C.last_lit&&(I(C,!1),C.strm.avail_out===0)?c:L}(_,N):r[_.level].func(_,N);if(P!==J&&P!==U||(_.status=666),P===c||P===J)return a.avail_out===0&&(_.last_flush=-1),u;if(P===L&&(N===1?n._tr_align(_):N!==5&&(n._tr_stored_block(_,0,0,!1),N===3&&(K(_.head),_.lookahead===0&&(_.strstart=0,_.block_start=0,_.insert=0))),A(a),a.avail_out===0))return _.last_flush=-1,u}return N!==d?u:_.wrap<=0?1:(_.wrap===2?(X(_,255&a.adler),X(_,a.adler>>8&255),X(_,a.adler>>16&255),X(_,a.adler>>24&255),X(_,255&a.total_in),X(_,a.total_in>>8&255),X(_,a.total_in>>16&255),X(_,a.total_in>>24&255)):(q(_,a.adler>>>16),q(_,65535&a.adler)),A(a),0<_.wrap&&(_.wrap=-_.wrap),_.pending!==0?u:1)},e.deflateEnd=function(a){var N;return a&&a.state?(N=a.state.status)!==k&&N!==69&&N!==73&&N!==91&&N!==103&&N!==B&&N!==666?Q(a,p):(a.state=null,N===B?Q(a,-3):u):p},e.deflateSetDictionary=function(a,N){var T,_,w,E,D,P,C,W,G=N.length;if(!a||!a.state)return p;if((E=(T=a.state).wrap)===2||E===1&&T.status!==k||T.lookahead)return p;for(E===1&&(a.adler=l(a.adler,N,G,0)),T.wrap=0,G>=T.w_size&&(E===0&&(K(T.head),T.strstart=0,T.block_start=0,T.insert=0),W=new o.Buf8(T.w_size),o.arraySet(W,N,G-T.w_size,T.w_size,0),N=W,G=T.w_size),D=a.avail_in,P=a.next_in,C=a.input,a.avail_in=G,a.next_in=0,a.input=N,at(T);T.lookahead>=z;){for(_=T.strstart,w=T.lookahead-(z-1);T.ins_h=(T.ins_h<<T.hash_shift^T.window[_+z-1])&T.hash_mask,T.prev[_&T.w_mask]=T.head[T.ins_h],T.head[T.ins_h]=_,_++,--w;);T.strstart=_,T.lookahead=z-1,at(T)}return T.strstart+=T.lookahead,T.block_start=T.strstart,T.insert=T.lookahead,T.lookahead=0,T.match_length=T.prev_length=z-1,T.match_available=0,a.next_in=P,a.input=C,a.avail_in=D,T.wrap=E,u},e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i,e){i.exports=function(){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}},{}],48:[function(t,i,e){i.exports=function(r,o){var n,l,s,b,m,d,u,p,f,g,h,y,v,x,S,R,O,F,z,M,Y,k,B,c,L;n=r.state,l=r.next_in,c=r.input,s=l+(r.avail_in-5),b=r.next_out,L=r.output,m=b-(o-r.avail_out),d=b+(r.avail_out-257),u=n.dmax,p=n.wsize,f=n.whave,g=n.wnext,h=n.window,y=n.hold,v=n.bits,x=n.lencode,S=n.distcode,R=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{v<15&&(y+=c[l++]<<v,v+=8,y+=c[l++]<<v,v+=8),F=x[y&R];e:for(;;){if(y>>>=z=F>>>24,v-=z,(z=F>>>16&255)===0)L[b++]=65535&F;else{if(!(16&z)){if((64&z)==0){F=x[(65535&F)+(y&(1<<z)-1)];continue e}if(32&z){n.mode=12;break t}r.msg="invalid literal/length code",n.mode=30;break t}M=65535&F,(z&=15)&&(v<z&&(y+=c[l++]<<v,v+=8),M+=y&(1<<z)-1,y>>>=z,v-=z),v<15&&(y+=c[l++]<<v,v+=8,y+=c[l++]<<v,v+=8),F=S[y&O];r:for(;;){if(y>>>=z=F>>>24,v-=z,!(16&(z=F>>>16&255))){if((64&z)==0){F=S[(65535&F)+(y&(1<<z)-1)];continue r}r.msg="invalid distance code",n.mode=30;break t}if(Y=65535&F,v<(z&=15)&&(y+=c[l++]<<v,(v+=8)<z&&(y+=c[l++]<<v,v+=8)),u<(Y+=y&(1<<z)-1)){r.msg="invalid distance too far back",n.mode=30;break t}if(y>>>=z,v-=z,(z=b-m)<Y){if(f<(z=Y-z)&&n.sane){r.msg="invalid distance too far back",n.mode=30;break t}if(B=h,(k=0)===g){if(k+=p-z,z<M){for(M-=z;L[b++]=h[k++],--z;);k=b-Y,B=L}}else if(g<z){if(k+=p+g-z,(z-=g)<M){for(M-=z;L[b++]=h[k++],--z;);if(k=0,g<M){for(M-=z=g;L[b++]=h[k++],--z;);k=b-Y,B=L}}}else if(k+=g-z,z<M){for(M-=z;L[b++]=h[k++],--z;);k=b-Y,B=L}for(;2<M;)L[b++]=B[k++],L[b++]=B[k++],L[b++]=B[k++],M-=3;M&&(L[b++]=B[k++],1<M&&(L[b++]=B[k++]))}else{for(k=b-Y;L[b++]=L[k++],L[b++]=L[k++],L[b++]=L[k++],2<(M-=3););M&&(L[b++]=L[k++],1<M&&(L[b++]=L[k++]))}break}}break}}while(l<s&&b<d);l-=M=v>>3,y&=(1<<(v-=M<<3))-1,r.next_in=l,r.next_out=b,r.avail_in=l<s?s-l+5:5-(l-s),r.avail_out=b<d?d-b+257:257-(b-d),n.hold=y,n.bits=v}},{}],49:[function(t,i,e){var r=t("../utils/common"),o=t("./adler32"),n=t("./crc32"),l=t("./inffast"),s=t("./inftrees"),b=1,m=2,d=0,u=-2,p=1,f=852,g=592;function h(k){return(k>>>24&255)+(k>>>8&65280)+((65280&k)<<8)+((255&k)<<24)}function y(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(k){var B;return k&&k.state?(B=k.state,k.total_in=k.total_out=B.total=0,k.msg="",B.wrap&&(k.adler=1&B.wrap),B.mode=p,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new r.Buf32(f),B.distcode=B.distdyn=new r.Buf32(g),B.sane=1,B.back=-1,d):u}function x(k){var B;return k&&k.state?((B=k.state).wsize=0,B.whave=0,B.wnext=0,v(k)):u}function S(k,B){var c,L;return k&&k.state?(L=k.state,B<0?(c=0,B=-B):(c=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?u:(L.window!==null&&L.wbits!==B&&(L.window=null),L.wrap=c,L.wbits=B,x(k))):u}function R(k,B){var c,L;return k?(L=new y,(k.state=L).window=null,(c=S(k,B))!==d&&(k.state=null),c):u}var O,F,z=!0;function M(k){if(z){var B;for(O=new r.Buf32(512),F=new r.Buf32(32),B=0;B<144;)k.lens[B++]=8;for(;B<256;)k.lens[B++]=9;for(;B<280;)k.lens[B++]=7;for(;B<288;)k.lens[B++]=8;for(s(b,k.lens,0,288,O,0,k.work,{bits:9}),B=0;B<32;)k.lens[B++]=5;s(m,k.lens,0,32,F,0,k.work,{bits:5}),z=!1}k.lencode=O,k.lenbits=9,k.distcode=F,k.distbits=5}function Y(k,B,c,L){var J,U=k.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new r.Buf8(U.wsize)),L>=U.wsize?(r.arraySet(U.window,B,c-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(L<(J=U.wsize-U.wnext)&&(J=L),r.arraySet(U.window,B,c-L,J,U.wnext),(L-=J)?(r.arraySet(U.window,B,c-L,L,0),U.wnext=L,U.whave=U.wsize):(U.wnext+=J,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=J))),0}e.inflateReset=x,e.inflateReset2=S,e.inflateResetKeep=v,e.inflateInit=function(k){return R(k,15)},e.inflateInit2=R,e.inflate=function(k,B){var c,L,J,U,Q,j,K,A,I,X,q,H,at,ct,tt,rt,lt,st,ht,ft,a,N,T,_,w=0,E=new r.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!k||!k.state||!k.output||!k.input&&k.avail_in!==0)return u;(c=k.state).mode===12&&(c.mode=13),Q=k.next_out,J=k.output,K=k.avail_out,U=k.next_in,L=k.input,j=k.avail_in,A=c.hold,I=c.bits,X=j,q=K,N=d;t:for(;;)switch(c.mode){case p:if(c.wrap===0){c.mode=13;break}for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(2&c.wrap&&A===35615){E[c.check=0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0),I=A=0,c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1),!(1&c.wrap)||(((255&A)<<8)+(A>>8))%31){k.msg="incorrect header check",c.mode=30;break}if((15&A)!=8){k.msg="unknown compression method",c.mode=30;break}if(I-=4,a=8+(15&(A>>>=4)),c.wbits===0)c.wbits=a;else if(a>c.wbits){k.msg="invalid window size",c.mode=30;break}c.dmax=1<<a,k.adler=c.check=1,c.mode=512&A?10:12,I=A=0;break;case 2:for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(c.flags=A,(255&c.flags)!=8){k.msg="unknown compression method",c.mode=30;break}if(57344&c.flags){k.msg="unknown header flags set",c.mode=30;break}c.head&&(c.head.text=A>>8&1),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0)),I=A=0,c.mode=3;case 3:for(;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.head&&(c.head.time=A),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,E[2]=A>>>16&255,E[3]=A>>>24&255,c.check=n(c.check,E,4,0)),I=A=0,c.mode=4;case 4:for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.head&&(c.head.xflags=255&A,c.head.os=A>>8),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0)),I=A=0,c.mode=5;case 5:if(1024&c.flags){for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.length=A,c.head&&(c.head.extra_len=A),512&c.flags&&(E[0]=255&A,E[1]=A>>>8&255,c.check=n(c.check,E,2,0)),I=A=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(j<(H=c.length)&&(H=j),H&&(c.head&&(a=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),r.arraySet(c.head.extra,L,U,H,a)),512&c.flags&&(c.check=n(c.check,L,H,U)),j-=H,U+=H,c.length-=H),c.length))break t;c.length=0,c.mode=7;case 7:if(2048&c.flags){if(j===0)break t;for(H=0;a=L[U+H++],c.head&&a&&c.length<65536&&(c.head.name+=String.fromCharCode(a)),a&&H<j;);if(512&c.flags&&(c.check=n(c.check,L,H,U)),j-=H,U+=H,a)break t}else c.head&&(c.head.name=null);c.length=0,c.mode=8;case 8:if(4096&c.flags){if(j===0)break t;for(H=0;a=L[U+H++],c.head&&a&&c.length<65536&&(c.head.comment+=String.fromCharCode(a)),a&&H<j;);if(512&c.flags&&(c.check=n(c.check,L,H,U)),j-=H,U+=H,a)break t}else c.head&&(c.head.comment=null);c.mode=9;case 9:if(512&c.flags){for(;I<16;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(A!==(65535&c.check)){k.msg="header crc mismatch",c.mode=30;break}I=A=0}c.head&&(c.head.hcrc=c.flags>>9&1,c.head.done=!0),k.adler=c.check=0,c.mode=12;break;case 10:for(;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}k.adler=c.check=h(A),I=A=0,c.mode=11;case 11:if(c.havedict===0)return k.next_out=Q,k.avail_out=K,k.next_in=U,k.avail_in=j,c.hold=A,c.bits=I,2;k.adler=c.check=1,c.mode=12;case 12:if(B===5||B===6)break t;case 13:if(c.last){A>>>=7&I,I-=7&I,c.mode=27;break}for(;I<3;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}switch(c.last=1&A,I-=1,3&(A>>>=1)){case 0:c.mode=14;break;case 1:if(M(c),c.mode=20,B!==6)break;A>>>=2,I-=2;break t;case 2:c.mode=17;break;case 3:k.msg="invalid block type",c.mode=30}A>>>=2,I-=2;break;case 14:for(A>>>=7&I,I-=7&I;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if((65535&A)!=(A>>>16^65535)){k.msg="invalid stored block lengths",c.mode=30;break}if(c.length=65535&A,I=A=0,c.mode=15,B===6)break t;case 15:c.mode=16;case 16:if(H=c.length){if(j<H&&(H=j),K<H&&(H=K),H===0)break t;r.arraySet(J,L,U,H,Q),j-=H,U+=H,K-=H,Q+=H,c.length-=H;break}c.mode=12;break;case 17:for(;I<14;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(c.nlen=257+(31&A),A>>>=5,I-=5,c.ndist=1+(31&A),A>>>=5,I-=5,c.ncode=4+(15&A),A>>>=4,I-=4,286<c.nlen||30<c.ndist){k.msg="too many length or distance symbols",c.mode=30;break}c.have=0,c.mode=18;case 18:for(;c.have<c.ncode;){for(;I<3;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.lens[D[c.have++]]=7&A,A>>>=3,I-=3}for(;c.have<19;)c.lens[D[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,T={bits:c.lenbits},N=s(0,c.lens,0,19,c.lencode,0,c.work,T),c.lenbits=T.bits,N){k.msg="invalid code lengths set",c.mode=30;break}c.have=0,c.mode=19;case 19:for(;c.have<c.nlen+c.ndist;){for(;rt=(w=c.lencode[A&(1<<c.lenbits)-1])>>>16&255,lt=65535&w,!((tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(lt<16)A>>>=tt,I-=tt,c.lens[c.have++]=lt;else{if(lt===16){for(_=tt+2;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(A>>>=tt,I-=tt,c.have===0){k.msg="invalid bit length repeat",c.mode=30;break}a=c.lens[c.have-1],H=3+(3&A),A>>>=2,I-=2}else if(lt===17){for(_=tt+3;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}I-=tt,a=0,H=3+(7&(A>>>=tt)),A>>>=3,I-=3}else{for(_=tt+7;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}I-=tt,a=0,H=11+(127&(A>>>=tt)),A>>>=7,I-=7}if(c.have+H>c.nlen+c.ndist){k.msg="invalid bit length repeat",c.mode=30;break}for(;H--;)c.lens[c.have++]=a}}if(c.mode===30)break;if(c.lens[256]===0){k.msg="invalid code -- missing end-of-block",c.mode=30;break}if(c.lenbits=9,T={bits:c.lenbits},N=s(b,c.lens,0,c.nlen,c.lencode,0,c.work,T),c.lenbits=T.bits,N){k.msg="invalid literal/lengths set",c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,T={bits:c.distbits},N=s(m,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,T),c.distbits=T.bits,N){k.msg="invalid distances set",c.mode=30;break}if(c.mode=20,B===6)break t;case 20:c.mode=21;case 21:if(6<=j&&258<=K){k.next_out=Q,k.avail_out=K,k.next_in=U,k.avail_in=j,c.hold=A,c.bits=I,l(k,q),Q=k.next_out,J=k.output,K=k.avail_out,U=k.next_in,L=k.input,j=k.avail_in,A=c.hold,I=c.bits,c.mode===12&&(c.back=-1);break}for(c.back=0;rt=(w=c.lencode[A&(1<<c.lenbits)-1])>>>16&255,lt=65535&w,!((tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(rt&&(240&rt)==0){for(st=tt,ht=rt,ft=lt;rt=(w=c.lencode[ft+((A&(1<<st+ht)-1)>>st)])>>>16&255,lt=65535&w,!(st+(tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}A>>>=st,I-=st,c.back+=st}if(A>>>=tt,I-=tt,c.back+=tt,c.length=lt,rt===0){c.mode=26;break}if(32&rt){c.back=-1,c.mode=12;break}if(64&rt){k.msg="invalid literal/length code",c.mode=30;break}c.extra=15&rt,c.mode=22;case 22:if(c.extra){for(_=c.extra;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.length+=A&(1<<c.extra)-1,A>>>=c.extra,I-=c.extra,c.back+=c.extra}c.was=c.length,c.mode=23;case 23:for(;rt=(w=c.distcode[A&(1<<c.distbits)-1])>>>16&255,lt=65535&w,!((tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if((240&rt)==0){for(st=tt,ht=rt,ft=lt;rt=(w=c.distcode[ft+((A&(1<<st+ht)-1)>>st)])>>>16&255,lt=65535&w,!(st+(tt=w>>>24)<=I);){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}A>>>=st,I-=st,c.back+=st}if(A>>>=tt,I-=tt,c.back+=tt,64&rt){k.msg="invalid distance code",c.mode=30;break}c.offset=lt,c.extra=15&rt,c.mode=24;case 24:if(c.extra){for(_=c.extra;I<_;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}c.offset+=A&(1<<c.extra)-1,A>>>=c.extra,I-=c.extra,c.back+=c.extra}if(c.offset>c.dmax){k.msg="invalid distance too far back",c.mode=30;break}c.mode=25;case 25:if(K===0)break t;if(H=q-K,c.offset>H){if((H=c.offset-H)>c.whave&&c.sane){k.msg="invalid distance too far back",c.mode=30;break}at=H>c.wnext?(H-=c.wnext,c.wsize-H):c.wnext-H,H>c.length&&(H=c.length),ct=c.window}else ct=J,at=Q-c.offset,H=c.length;for(K<H&&(H=K),K-=H,c.length-=H;J[Q++]=ct[at++],--H;);c.length===0&&(c.mode=21);break;case 26:if(K===0)break t;J[Q++]=c.length,K--,c.mode=21;break;case 27:if(c.wrap){for(;I<32;){if(j===0)break t;j--,A|=L[U++]<<I,I+=8}if(q-=K,k.total_out+=q,c.total+=q,q&&(k.adler=c.check=c.flags?n(c.check,J,q,Q-q):o(c.check,J,q,Q-q)),q=K,(c.flags?A:h(A))!==c.check){k.msg="incorrect data check",c.mode=30;break}I=A=0}c.mode=28;case 28:if(c.wrap&&c.flags){for(;I<32;){if(j===0)break t;j--,A+=L[U++]<<I,I+=8}if(A!==(4294967295&c.total)){k.msg="incorrect length check",c.mode=30;break}I=A=0}c.mode=29;case 29:N=1;break t;case 30:N=-3;break t;case 31:return-4;case 32:default:return u}return k.next_out=Q,k.avail_out=K,k.next_in=U,k.avail_in=j,c.hold=A,c.bits=I,(c.wsize||q!==k.avail_out&&c.mode<30&&(c.mode<27||B!==4))&&Y(k,k.output,k.next_out,q-k.avail_out)?(c.mode=31,-4):(X-=k.avail_in,q-=k.avail_out,k.total_in+=X,k.total_out+=q,c.total+=q,c.wrap&&q&&(k.adler=c.check=c.flags?n(c.check,J,q,k.next_out-q):o(c.check,J,q,k.next_out-q)),k.data_type=c.bits+(c.last?64:0)+(c.mode===12?128:0)+(c.mode===20||c.mode===15?256:0),(X==0&&q===0||B===4)&&N===d&&(N=-5),N)},e.inflateEnd=function(k){if(!k||!k.state)return u;var B=k.state;return B.window&&(B.window=null),k.state=null,d},e.inflateGetHeader=function(k,B){var c;return k&&k.state?(2&(c=k.state).wrap)==0?u:((c.head=B).done=!1,d):u},e.inflateSetDictionary=function(k,B){var c,L=B.length;return k&&k.state?(c=k.state).wrap!==0&&c.mode!==11?u:c.mode===11&&o(1,B,L,0)!==c.check?-3:Y(k,B,L,L)?(c.mode=31,-4):(c.havedict=1,d):u},e.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i,e){var r=t("../utils/common"),o=[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],n=[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],l=[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],s=[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];i.exports=function(b,m,d,u,p,f,g,h){var y,v,x,S,R,O,F,z,M,Y=h.bits,k=0,B=0,c=0,L=0,J=0,U=0,Q=0,j=0,K=0,A=0,I=null,X=0,q=new r.Buf16(16),H=new r.Buf16(16),at=null,ct=0;for(k=0;k<=15;k++)q[k]=0;for(B=0;B<u;B++)q[m[d+B]]++;for(J=Y,L=15;1<=L&&q[L]===0;L--);if(L<J&&(J=L),L===0)return p[f++]=20971520,p[f++]=20971520,h.bits=1,0;for(c=1;c<L&&q[c]===0;c++);for(J<c&&(J=c),k=j=1;k<=15;k++)if(j<<=1,(j-=q[k])<0)return-1;if(0<j&&(b===0||L!==1))return-1;for(H[1]=0,k=1;k<15;k++)H[k+1]=H[k]+q[k];for(B=0;B<u;B++)m[d+B]!==0&&(g[H[m[d+B]]++]=B);if(O=b===0?(I=at=g,19):b===1?(I=o,X-=257,at=n,ct-=257,256):(I=l,at=s,-1),k=c,R=f,Q=B=A=0,x=-1,S=(K=1<<(U=J))-1,b===1&&852<K||b===2&&592<K)return 1;for(;;){for(F=k-Q,M=g[B]<O?(z=0,g[B]):g[B]>O?(z=at[ct+g[B]],I[X+g[B]]):(z=96,0),y=1<<k-Q,c=v=1<<U;p[R+(A>>Q)+(v-=y)]=F<<24|z<<16|M|0,v!==0;);for(y=1<<k-1;A&y;)y>>=1;if(y!==0?(A&=y-1,A+=y):A=0,B++,--q[k]==0){if(k===L)break;k=m[d+g[B]]}if(J<k&&(A&S)!==x){for(Q===0&&(Q=J),R+=c,j=1<<(U=k-Q);U+Q<L&&!((j-=q[U+Q])<=0);)U++,j<<=1;if(K+=1<<U,b===1&&852<K||b===2&&592<K)return 1;p[x=A&S]=J<<24|U<<16|R-f|0}}return A!==0&&(p[R+A]=k-Q<<24|4194304|0),h.bits=J,0}},{"../utils/common":41}],51:[function(t,i,e){i.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"}},{}],52:[function(t,i,e){var r=t("../utils/common"),o=0,n=1;function l(w){for(var E=w.length;0<=--E;)w[E]=0}var s=0,b=29,m=256,d=m+1+b,u=30,p=19,f=2*d+1,g=15,h=16,y=7,v=256,x=16,S=17,R=18,O=[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],F=[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],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Y=Array(2*(d+2));l(Y);var k=Array(2*u);l(k);var B=Array(512);l(B);var c=Array(256);l(c);var L=Array(b);l(L);var J,U,Q,j=Array(u);function K(w,E,D,P,C){this.static_tree=w,this.extra_bits=E,this.extra_base=D,this.elems=P,this.max_length=C,this.has_stree=w&&w.length}function A(w,E){this.dyn_tree=w,this.max_code=0,this.stat_desc=E}function I(w){return w<256?B[w]:B[256+(w>>>7)]}function X(w,E){w.pending_buf[w.pending++]=255&E,w.pending_buf[w.pending++]=E>>>8&255}function q(w,E,D){w.bi_valid>h-D?(w.bi_buf|=E<<w.bi_valid&65535,X(w,w.bi_buf),w.bi_buf=E>>h-w.bi_valid,w.bi_valid+=D-h):(w.bi_buf|=E<<w.bi_valid&65535,w.bi_valid+=D)}function H(w,E,D){q(w,D[2*E],D[2*E+1])}function at(w,E){for(var D=0;D|=1&w,w>>>=1,D<<=1,0<--E;);return D>>>1}function ct(w,E,D){var P,C,W=Array(g+1),G=0;for(P=1;P<=g;P++)W[P]=G=G+D[P-1]<<1;for(C=0;C<=E;C++){var Z=w[2*C+1];Z!==0&&(w[2*C]=at(W[Z]++,Z))}}function tt(w){var E;for(E=0;E<d;E++)w.dyn_ltree[2*E]=0;for(E=0;E<u;E++)w.dyn_dtree[2*E]=0;for(E=0;E<p;E++)w.bl_tree[2*E]=0;w.dyn_ltree[2*v]=1,w.opt_len=w.static_len=0,w.last_lit=w.matches=0}function rt(w){8<w.bi_valid?X(w,w.bi_buf):0<w.bi_valid&&(w.pending_buf[w.pending++]=w.bi_buf),w.bi_buf=0,w.bi_valid=0}function lt(w,E,D,P){var C=2*E,W=2*D;return w[C]<w[W]||w[C]===w[W]&&P[E]<=P[D]}function st(w,E,D){for(var P=w.heap[D],C=D<<1;C<=w.heap_len&&(C<w.heap_len&<(E,w.heap[C+1],w.heap[C],w.depth)&&C++,!lt(E,P,w.heap[C],w.depth));)w.heap[D]=w.heap[C],D=C,C<<=1;w.heap[D]=P}function ht(w,E,D){var P,C,W,G,Z=0;if(w.last_lit!==0)for(;P=w.pending_buf[w.d_buf+2*Z]<<8|w.pending_buf[w.d_buf+2*Z+1],C=w.pending_buf[w.l_buf+Z],Z++,P===0?H(w,C,E):(H(w,(W=c[C])+m+1,E),(G=O[W])!==0&&q(w,C-=L[W],G),H(w,W=I(--P),D),(G=F[W])!==0&&q(w,P-=j[W],G)),Z<w.last_lit;);H(w,v,E)}function ft(w,E){var D,P,C,W=E.dyn_tree,G=E.stat_desc.static_tree,Z=E.stat_desc.has_stree,V=E.stat_desc.elems,nt=-1;for(w.heap_len=0,w.heap_max=f,D=0;D<V;D++)W[2*D]!==0?(w.heap[++w.heap_len]=nt=D,w.depth[D]=0):W[2*D+1]=0;for(;w.heap_len<2;)W[2*(C=w.heap[++w.heap_len]=nt<2?++nt:0)]=1,w.depth[C]=0,w.opt_len--,Z&&(w.static_len-=G[2*C+1]);for(E.max_code=nt,D=w.heap_len>>1;1<=D;D--)st(w,W,D);for(C=V;D=w.heap[1],w.heap[1]=w.heap[w.heap_len--],st(w,W,1),P=w.heap[1],w.heap[--w.heap_max]=D,w.heap[--w.heap_max]=P,W[2*C]=W[2*D]+W[2*P],w.depth[C]=(w.depth[D]>=w.depth[P]?w.depth[D]:w.depth[P])+1,W[2*D+1]=W[2*P+1]=C,w.heap[1]=C++,st(w,W,1),2<=w.heap_len;);w.heap[--w.heap_max]=w.heap[1],function(et,ut){var St,dt,Et,ot,Bt,Zt,{dyn_tree:mt,max_code:ne}=ut,Je=ut.stat_desc.static_tree,Qe=ut.stat_desc.has_stree,tr=ut.stat_desc.extra_bits,ie=ut.stat_desc.extra_base,xt=ut.stat_desc.max_length,Nt=0;for(ot=0;ot<=g;ot++)et.bl_count[ot]=0;for(mt[2*et.heap[et.heap_max]+1]=0,St=et.heap_max+1;St<f;St++)xt<(ot=mt[2*mt[2*(dt=et.heap[St])+1]+1]+1)&&(ot=xt,Nt++),mt[2*dt+1]=ot,ne<dt||(et.bl_count[ot]++,Bt=0,ie<=dt&&(Bt=tr[dt-ie]),Zt=mt[2*dt],et.opt_len+=Zt*(ot+Bt),Qe&&(et.static_len+=Zt*(Je[2*dt+1]+Bt)));if(Nt!==0){do{for(ot=xt-1;et.bl_count[ot]===0;)ot--;et.bl_count[ot]--,et.bl_count[ot+1]+=2,et.bl_count[xt]--,Nt-=2}while(0<Nt);for(ot=xt;ot!==0;ot--)for(dt=et.bl_count[ot];dt!==0;)ne<(Et=et.heap[--St])||(mt[2*Et+1]!==ot&&(et.opt_len+=(ot-mt[2*Et+1])*mt[2*Et],mt[2*Et+1]=ot),dt--)}}(w,E),ct(W,nt,w.bl_count)}function a(w,E,D){var P,C,W=-1,G=E[1],Z=0,V=7,nt=4;for(G===0&&(V=138,nt=3),E[2*(D+1)+1]=65535,P=0;P<=D;P++)C=G,G=E[2*(P+1)+1],++Z<V&&C===G||(Z<nt?w.bl_tree[2*C]+=Z:C!==0?(C!==W&&w.bl_tree[2*C]++,w.bl_tree[2*x]++):Z<=10?w.bl_tree[2*S]++:w.bl_tree[2*R]++,W=C,nt=(Z=0)===G?(V=138,3):C===G?(V=6,3):(V=7,4))}function N(w,E,D){var P,C,W=-1,G=E[1],Z=0,V=7,nt=4;for(G===0&&(V=138,nt=3),P=0;P<=D;P++)if(C=G,G=E[2*(P+1)+1],!(++Z<V&&C===G)){if(Z<nt)for(;H(w,C,w.bl_tree),--Z!=0;);else C!==0?(C!==W&&(H(w,C,w.bl_tree),Z--),H(w,x,w.bl_tree),q(w,Z-3,2)):Z<=10?(H(w,S,w.bl_tree),q(w,Z-3,3)):(H(w,R,w.bl_tree),q(w,Z-11,7));W=C,nt=(Z=0)===G?(V=138,3):C===G?(V=6,3):(V=7,4)}}l(j);var T=!1;function _(w,E,D,P){q(w,(s<<1)+(P?1:0),3),function(C,W,G,Z){rt(C),Z&&(X(C,G),X(C,~G)),r.arraySet(C.pending_buf,C.window,W,G,C.pending),C.pending+=G}(w,E,D,!0)}e._tr_init=function(w){T||(function(){var E,D,P,C,W,G=Array(g+1);for(C=P=0;C<b-1;C++)for(L[C]=P,E=0;E<1<<O[C];E++)c[P++]=C;for(c[P-1]=C,C=W=0;C<16;C++)for(j[C]=W,E=0;E<1<<F[C];E++)B[W++]=C;for(W>>=7;C<u;C++)for(j[C]=W<<7,E=0;E<1<<F[C]-7;E++)B[256+W++]=C;for(D=0;D<=g;D++)G[D]=0;for(E=0;E<=143;)Y[2*E+1]=8,E++,G[8]++;for(;E<=255;)Y[2*E+1]=9,E++,G[9]++;for(;E<=279;)Y[2*E+1]=7,E++,G[7]++;for(;E<=287;)Y[2*E+1]=8,E++,G[8]++;for(ct(Y,d+1,G),E=0;E<u;E++)k[2*E+1]=5,k[2*E]=at(E,5);J=new K(Y,O,m+1,d,g),U=new K(k,F,0,u,g),Q=new K([],z,0,p,y)}(),T=!0),w.l_desc=new A(w.dyn_ltree,J),w.d_desc=new A(w.dyn_dtree,U),w.bl_desc=new A(w.bl_tree,Q),w.bi_buf=0,w.bi_valid=0,tt(w)},e._tr_stored_block=_,e._tr_flush_block=function(w,E,D,P){var C,W,G=0;0<w.level?(w.strm.data_type===2&&(w.strm.data_type=function(Z){var V,nt=4093624447;for(V=0;V<=31;V++,nt>>>=1)if(1&nt&&Z.dyn_ltree[2*V]!==0)return o;if(Z.dyn_ltree[18]!==0||Z.dyn_ltree[20]!==0||Z.dyn_ltree[26]!==0)return n;for(V=32;V<m;V++)if(Z.dyn_ltree[2*V]!==0)return n;return o}(w)),ft(w,w.l_desc),ft(w,w.d_desc),G=function(Z){var V;for(a(Z,Z.dyn_ltree,Z.l_desc.max_code),a(Z,Z.dyn_dtree,Z.d_desc.max_code),ft(Z,Z.bl_desc),V=p-1;3<=V&&Z.bl_tree[2*M[V]+1]===0;V--);return Z.opt_len+=3*(V+1)+5+5+4,V}(w),C=w.opt_len+3+7>>>3,(W=w.static_len+3+7>>>3)<=C&&(C=W)):C=W=D+5,D+4<=C&&E!==-1?_(w,E,D,P):w.strategy===4||W===C?(q(w,2+(P?1:0),3),ht(w,Y,k)):(q(w,4+(P?1:0),3),function(Z,V,nt,et){var ut;for(q(Z,V-257,5),q(Z,nt-1,5),q(Z,et-4,4),ut=0;ut<et;ut++)q(Z,Z.bl_tree[2*M[ut]+1],3);N(Z,Z.dyn_ltree,V-1),N(Z,Z.dyn_dtree,nt-1)}(w,w.l_desc.max_code+1,w.d_desc.max_code+1,G+1),ht(w,w.dyn_ltree,w.dyn_dtree)),tt(w),P&&rt(w)},e._tr_tally=function(w,E,D){return w.pending_buf[w.d_buf+2*w.last_lit]=E>>>8&255,w.pending_buf[w.d_buf+2*w.last_lit+1]=255&E,w.pending_buf[w.l_buf+w.last_lit]=255&D,w.last_lit++,E===0?w.dyn_ltree[2*D]++:(w.matches++,E--,w.dyn_ltree[2*(c[D]+m+1)]++,w.dyn_dtree[2*I(E)]++),w.last_lit===w.lit_bufsize-1},e._tr_align=function(w){q(w,2,3),H(w,v,Y),function(E){E.bi_valid===16?(X(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):8<=E.bi_valid&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)}(w)}},{"../utils/common":41}],53:[function(t,i,e){i.exports=function(){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}},{}],54:[function(t,i,e){(function(r){(function(o,n){if(!o.setImmediate){var l,s,b,m,d=1,u={},p=!1,f=o.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(o);g=g&&g.setTimeout?g:o,l={}.toString.call(o.process)==="[object process]"?function(x){process.nextTick(function(){y(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,S=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=S,x}}()?(m="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(x){o.postMessage(m+x,"*")}):o.MessageChannel?((b=new MessageChannel).port1.onmessage=function(x){y(x.data)},function(x){b.port2.postMessage(x)}):f&&("onreadystatechange"in f.createElement("script"))?(s=f.documentElement,function(x){var S=f.createElement("script");S.onreadystatechange=function(){y(x),S.onreadystatechange=null,s.removeChild(S),S=null},s.appendChild(S)}):function(x){setTimeout(y,0,x)},g.setImmediate=function(x){typeof x!="function"&&(x=Function(""+x));for(var S=Array(arguments.length-1),R=0;R<S.length;R++)S[R]=arguments[R+1];var O={callback:x,args:S};return u[d]=O,l(d),d++},g.clearImmediate=h}function h(x){delete u[x]}function y(x){if(p)setTimeout(y,0,x);else{var S=u[x];if(S){p=!0;try{(function(R){var{callback:O,args:F}=R;switch(F.length){case 0:O();break;case 1:O(F[0]);break;case 2:O(F[0],F[1]);break;case 3:O(F[0],F[1],F[2]);break;default:O.apply(n,F)}})(S)}finally{h(x),p=!1}}}}function v(x){x.source===o&&typeof x.data=="string"&&x.data.indexOf(m)===0&&y(+x.data.slice(m.length))}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var jn={};fr(jn,{capture:()=>ee,copyImageToClipboard:()=>re,downloadImages:()=>Ot});function Lt(t,i){if(!i.has(t))return i.add(t),t;let e=t.lastIndexOf("."),r=e!==-1?t.slice(0,e):t,o=e!==-1?t.slice(e):"",n=r.match(/-(\d+)$/),l=r,s=2;if(n)l=r.slice(0,-n[0].length),s=parseInt(n[1],10)+1;let b=`${l}-${s}${o}`;while(i.has(b))s++,b=`${l}-${s}${o}`;return i.add(b),b}function le(t,i){let e=t.label;if(t.includeScaleInLabel)e+=`_@${t.scale}x`;return e+=`.${t.format}`,Lt(e,i)}function hr(t,i){return t[13]=1,t[14]=i>>8,t[15]=i&255,t[16]=i>>8,t[17]=i&255,t}var me=112,ge=72,be=89,we=115,$t;function dr(){let t=new Int32Array(256);for(let i=0;i<256;i++){let e=i;for(let r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[i]=e}return t}function pr(t){let i=-1;if(!$t)$t=dr();for(let e=0;e<t.length;e++)i=$t[(i^t[e])&255]^i>>>8;return i^-1}function mr(t){let i=t.length-1;for(let e=i;e>=4;e--)if(t[e-4]===9&&t[e-3]===me&&t[e-2]===ge&&t[e-1]===be&&t[e]===we)return e-3;return 0}function gr(t,i,e=!1){let r=new Uint8Array(13);i*=39.3701,r[0]=me,r[1]=ge,r[2]=be,r[3]=we,r[4]=i>>>24,r[5]=i>>>16,r[6]=i>>>8,r[7]=i&255,r[8]=r[4],r[9]=r[5],r[10]=r[6],r[11]=r[7],r[12]=1;let o=pr(r),n=new Uint8Array(4);if(n[0]=o>>>24,n[1]=o>>>16,n[2]=o>>>8,n[3]=o&255,e){let l=mr(t);return t.set(r,l),t.set(n,l+13),t}else{let l=new Uint8Array(4);l[0]=0,l[1]=0,l[2]=0,l[3]=9;let s=new Uint8Array(54);return s.set(t,0),s.set(l,33),s.set(r,37),s.set(n,50),s}}var br="AAlwSFlz",wr="AAAJcEhZ",yr="AAAACXBI";function _r(t){let i=t.indexOf(br);if(i===-1)i=t.indexOf(wr);if(i===-1)i=t.indexOf(yr);return i}var ye="[modern-screenshot]",gt=typeof window<"u",vr=gt&&"Worker"in window,kr=gt&&"atob"in window,Sr=gt&&"btoa"in window,Vt=gt?window.navigator?.userAgent:"",_e=Vt.includes("Chrome"),Dt=Vt.includes("AppleWebKit")&&!_e,Xt=Vt.includes("Firefox"),Er=(t)=>t&&("__CONTEXT__"in t),xr=(t)=>t.constructor.name==="CSSFontFaceRule",Cr=(t)=>t.constructor.name==="CSSImportRule",Ir=(t)=>t.constructor.name==="CSSLayerBlockRule",pt=(t)=>t.nodeType===1,zt=(t)=>typeof t.className==="object",ve=(t)=>t.tagName==="image",Ar=(t)=>t.tagName==="use",It=(t)=>pt(t)&&typeof t.style<"u"&&!zt(t),Tr=(t)=>t.nodeType===8,zr=(t)=>t.nodeType===3,vt=(t)=>t.tagName==="IMG",Ft=(t)=>t.tagName==="VIDEO",Or=(t)=>t.tagName==="CANVAS",Rr=(t)=>t.tagName==="TEXTAREA",Br=(t)=>t.tagName==="INPUT",Nr=(t)=>t.tagName==="STYLE",Lr=(t)=>t.tagName==="SCRIPT",Dr=(t)=>t.tagName==="SELECT",Fr=(t)=>t.tagName==="SLOT",Pr=(t)=>t.tagName==="IFRAME",Ur=(...t)=>console.warn(ye,...t);function jr(t){let i=t?.createElement?.("canvas");if(i)i.height=i.width=1;return Boolean(i)&&"toDataURL"in i&&Boolean(i.toDataURL("image/webp").includes("image/webp"))}var qt=(t)=>t.startsWith("data:");function ke(t,i){if(t.match(/^[a-z]+:\/\//i))return t;if(gt&&t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;if(!gt)return t;let e=Pt().implementation.createHTMLDocument(),r=e.createElement("base"),o=e.createElement("a");if(e.head.appendChild(r),e.body.appendChild(o),i)r.href=i;return o.href=t,o.href}function Pt(t){return(t&&pt(t)?t?.ownerDocument:t)??window.document}var Ut="http://www.w3.org/2000/svg";function Se(t,i,e){let r=Pt(e).createElementNS(Ut,"svg");return r.setAttributeNS(null,"width",t.toString()),r.setAttributeNS(null,"height",i.toString()),r.setAttributeNS(null,"viewBox",`0 0 ${t} ${i}`),r}function Ee(t,i){let e=new XMLSerializer().serializeToString(t);if(i)e=e.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"");return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(e)}`}function Mr(t,i){return new Promise((e,r)=>{let o=new FileReader;if(o.onload=()=>e(o.result),o.onerror=()=>r(o.error),o.onabort=()=>r(Error(`Failed read blob to ${i}`)),i==="dataUrl")o.readAsDataURL(t);else if(i==="arrayBuffer")o.readAsArrayBuffer(t)})}var Wr=(t)=>Mr(t,"dataUrl");function _t(t,i){let e=Pt(i).createElement("img");return e.decoding="sync",e.loading="eager",e.src=t,e}function At(t,i){return new Promise((e)=>{let{timeout:r,ownerDocument:o,onError:n,onWarn:l}=i??{},s=typeof t==="string"?_t(t,Pt(o)):t,b=null,m=null;function d(){e(s),b&&clearTimeout(b),m?.()}if(r)b=setTimeout(d,r);if(Ft(s)){let u=s.currentSrc||s.src;if(!u){if(s.poster)return At(s.poster,i).then(e);return d()}if(s.readyState>=2)return d();let p=d,f=(g)=>{l?.("Failed video load",u,g),n?.(g),d()};m=()=>{s.removeEventListener("loadeddata",p),s.removeEventListener("error",f)},s.addEventListener("loadeddata",p,{once:!0}),s.addEventListener("error",f,{once:!0})}else{let u=ve(s)?s.href.baseVal:s.currentSrc||s.src;if(!u)return d();let p=async()=>{if(vt(s)&&"decode"in s)try{await s.decode()}catch(g){l?.("Failed to decode image, trying to render anyway",s.dataset.originalSrc||u,g)}d()},f=(g)=>{l?.("Failed image load",s.dataset.originalSrc||u,g),d()};if(vt(s)&&s.complete)return p();m=()=>{s.removeEventListener("load",p),s.removeEventListener("error",f)},s.addEventListener("load",p,{once:!0}),s.addEventListener("error",f,{once:!0})}})}async function Zr(t,i){if(It(t))if(vt(t)||Ft(t))await At(t,i);else await Promise.all(["img","video"].flatMap((e)=>Array.from(t.querySelectorAll(e)).map((r)=>At(r,i))))}var xe=function(){let i=0,e=()=>`0000${(Math.random()*1679616<<0).toString(36)}`.slice(-4);return()=>(i+=1,`u${e()}${i}`)}();function Ce(t){return t?.split(",").map((i)=>i.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var ce=0;function Hr(t){let i=`${ye}[#${ce}]`;return ce++,{time:(e)=>t&&console.time(`${i} ${e}`),timeEnd:(e)=>t&&console.timeEnd(`${i} ${e}`),warn:(...e)=>t&&Ur(...e)}}function $r(t){return{cache:t?"no-cache":"force-cache"}}async function bt(t,i){return Er(t)?t:qr(t,{...i,autoDestruct:!0})}async function qr(t,i){let{scale:e=1,workerUrl:r,workerNumber:o=1}=i||{},n=Boolean(i?.debug),l=i?.features??!0,s=t.ownerDocument??(gt?window.document:void 0),b=t.ownerDocument?.defaultView??(gt?window:void 0),m=new Map,d={width:0,height:0,quality:1,type:"image/png",scale:e,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:30000,progress:null,debug:n,fetch:{requestInit:$r(i?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...i?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:o,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...i,__CONTEXT__:!0,log:Hr(n),node:t,ownerDocument:s,ownerWindow:b,dpi:e===1?null:96*e,svgStyleElement:Ie(s),svgDefsElement:s?.createElementNS(Ut,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:vr&&r&&o?o:0})].map(()=>{try{let f=new Worker(r);return f.onmessage=async(g)=>{let{url:h,result:y}=g.data;if(y)m.get(h)?.resolve?.(y);else m.get(h)?.reject?.(Error(`Error receiving message from worker: ${h}`))},f.onmessageerror=(g)=>{let{url:h}=g.data;m.get(h)?.reject?.(Error(`Error receiving message from worker: ${h}`))},f}catch(f){return d.log.warn("Failed to new Worker",f),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[jr(s)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:m,drawImageCount:0,tasks:[],features:l,isEnable:(f)=>{if(f==="restoreScrollPosition")return typeof l==="boolean"?!1:l[f]??!1;if(typeof l==="boolean")return l;return l[f]??!0},shadowRoots:[]};d.log.time("wait until load"),await Zr(t,{timeout:d.timeout,onWarn:d.log.warn}),d.log.timeEnd("wait until load");let{width:u,height:p}=Gr(t,d);return d.width=u,d.height=p,d}function Ie(t){if(!t)return;let i=t.createElement("style"),e=i.ownerDocument.createTextNode(`
|
|
4
13
|
.______background-clip--text {
|
|
5
14
|
background-clip: text;
|
|
6
15
|
-webkit-background-clip: text;
|
|
7
16
|
}
|
|
8
|
-
`);return
|
|
9
|
-
`),
|
|
10
|
-
`))}else{let
|
|
11
|
-
`));else
|
|
12
|
-
`))}))})}}var
|
|
17
|
+
`);return i.appendChild(e),i}function Gr(t,i){let{width:e,height:r}=i;if(pt(t)&&(!e||!r)){let o=t.getBoundingClientRect();e=e||o.width||Number(t.getAttribute("width"))||0,r=r||o.height||Number(t.getAttribute("height"))||0}return{width:e,height:r}}async function Vr(t,i){let{log:e,timeout:r,drawImageCount:o,drawImageInterval:n}=i;e.time("image to canvas");let l=await At(t,{timeout:r,onWarn:i.log.warn}),{canvas:s,context2d:b}=Xr(t.ownerDocument,i),m=()=>{try{b?.drawImage(l,0,0,s.width,s.height)}catch(d){i.log.warn("Failed to drawImage",d)}};if(m(),i.isEnable("fixSvgXmlDecode"))for(let d=0;d<o;d++)await new Promise((u)=>{setTimeout(()=>{b?.clearRect(0,0,s.width,s.height),m(),u()},d+n)});return i.drawImageCount=0,e.timeEnd("image to canvas"),s}function Xr(t,i){let{width:e,height:r,scale:o,backgroundColor:n,maximumCanvasSize:l}=i,s=t.createElement("canvas");if(s.width=Math.floor(e*o),s.height=Math.floor(r*o),s.style.width=`${e}px`,s.style.height=`${r}px`,l){if(s.width>l||s.height>l)if(s.width>l&&s.height>l)if(s.width>s.height)s.height*=l/s.width,s.width=l;else s.width*=l/s.height,s.height=l;else if(s.width>l)s.height*=l/s.width,s.width=l;else s.width*=l/s.height,s.height=l}let b=s.getContext("2d");if(b&&n)b.fillStyle=n,b.fillRect(0,0,s.width,s.height);return{canvas:s,context2d:b}}function Ae(t,i){if(t.ownerDocument)try{let n=t.toDataURL();if(n!=="data:,")return _t(n,t.ownerDocument)}catch(n){i.log.warn("Failed to clone canvas",n)}let e=t.cloneNode(!1),r=t.getContext("2d"),o=e.getContext("2d");try{if(r&&o)o.putImageData(r.getImageData(0,0,t.width,t.height),0,0);return e}catch(n){i.log.warn("Failed to clone canvas",n)}return e}function Yr(t,i){try{if(t?.contentDocument?.body)return Yt(t.contentDocument.body,i)}catch(e){i.log.warn("Failed to clone iframe",e)}return t.cloneNode(!1)}function Kr(t){let i=t.cloneNode(!1);if(t.currentSrc&&t.currentSrc!==t.src)i.src=t.currentSrc,i.srcset="";if(i.loading==="lazy")i.loading="eager";return i}async function Jr(t,i){if(t.ownerDocument&&!t.currentSrc&&t.poster)return _t(t.poster,t.ownerDocument);let e=t.cloneNode(!1);if(e.crossOrigin="anonymous",t.currentSrc&&t.currentSrc!==t.src)e.src=t.currentSrc;let r=e.ownerDocument;if(r){let o=!0;if(await At(e,{onError:()=>o=!1,onWarn:i.log.warn}),!o){if(t.poster)return _t(t.poster,t.ownerDocument);return e}e.currentTime=t.currentTime,await new Promise((l)=>{e.addEventListener("seeked",l,{once:!0})});let n=r.createElement("canvas");n.width=t.offsetWidth,n.height=t.offsetHeight;try{let l=n.getContext("2d");if(l)l.drawImage(e,0,0,n.width,n.height)}catch(l){if(i.log.warn("Failed to clone video",l),t.poster)return _t(t.poster,t.ownerDocument);return e}return Ae(n,i)}return e}function Qr(t,i){if(Or(t))return Ae(t,i);if(Pr(t))return Yr(t,i);if(vt(t))return Kr(t);if(Ft(t))return Jr(t,i);return t.cloneNode(!1)}function tn(t){let i=t.sandbox;if(!i){let{ownerDocument:e}=t;try{if(e)i=e.createElement("iframe"),i.id=`__SANDBOX__${xe()}`,i.width="0",i.height="0",i.style.visibility="hidden",i.style.position="fixed",e.body.appendChild(i),i.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',t.sandbox=i}catch(r){t.log.warn("Failed to getSandBox",r)}}return i}var en=["width","height","-webkit-text-fill-color"],rn=["stroke","fill"];function Te(t,i,e){let{defaultComputedStyles:r}=e,o=t.nodeName.toLowerCase(),n=zt(t)&&o!=="svg",l=n?rn.map((h)=>[h,t.getAttribute(h)]).filter(([,h])=>h!==null):[],s=[n&&"svg",o,l.map((h,y)=>`${h}=${y}`).join(","),i].filter(Boolean).join(":");if(r.has(s))return r.get(s);let m=tn(e)?.contentWindow;if(!m)return new Map;let d=m?.document,u,p;if(n)u=d.createElementNS(Ut,"svg"),p=u.ownerDocument.createElementNS(u.namespaceURI,o),l.forEach(([h,y])=>{p.setAttributeNS(null,h,y)}),u.appendChild(p);else u=p=d.createElement(o);p.textContent=" ",d.body.appendChild(u);let f=m.getComputedStyle(p,i),g=new Map;for(let h=f.length,y=0;y<h;y++){let v=f.item(y);if(en.includes(v))continue;g.set(v,f.getPropertyValue(v))}return d.body.removeChild(u),r.set(s,g),g}function ze(t,i,e){let r=new Map,o=[],n=new Map;if(e)for(let s of e)l(s);else for(let s=t.length,b=0;b<s;b++){let m=t.item(b);l(m)}for(let s=o.length,b=0;b<s;b++)n.get(o[b])?.forEach((m,d)=>r.set(d,m));function l(s){let b=t.getPropertyValue(s),m=t.getPropertyPriority(s),d=s.lastIndexOf("-"),u=d>-1?s.substring(0,d):void 0;if(u){let p=n.get(u);if(!p)p=new Map,n.set(u,p);p.set(s,[b,m])}if(i.get(s)===b&&!m)return;if(u)o.push(u);else r.set(s,[b,m])}return r}function nn(t,i,e,r){let{ownerWindow:o,includeStyleProperties:n,currentParentNodeStyle:l}=r,s=i.style,b=o.getComputedStyle(t),m=Te(t,null,r);l?.forEach((u,p)=>{m.delete(p)});let d=ze(b,m,n);if(d.delete("transition-property"),d.delete("all"),d.delete("d"),d.delete("content"),e)d.delete("margin-top"),d.delete("margin-right"),d.delete("margin-bottom"),d.delete("margin-left"),d.delete("margin-block-start"),d.delete("margin-block-end"),d.delete("margin-inline-start"),d.delete("margin-inline-end"),d.set("box-sizing",["border-box",""]);if(d.get("background-clip")?.[0]==="text")i.classList.add("______background-clip--text");if(_e){if(!d.has("font-kerning"))d.set("font-kerning",["normal",""]);if((d.get("overflow-x")?.[0]==="hidden"||d.get("overflow-y")?.[0]==="hidden")&&d.get("text-overflow")?.[0]==="ellipsis"&&t.scrollWidth===t.clientWidth)d.set("text-overflow",["clip",""])}for(let u=s.length,p=0;p<u;p++)s.removeProperty(s.item(p));return d.forEach(([u,p],f)=>{s.setProperty(f,u,p)}),d}function an(t,i){if(Rr(t)||Br(t)||Dr(t))i.setAttribute("value",t.value)}var sn=["::before","::after"],on=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function ln(t,i,e,r,o){let{ownerWindow:n,svgStyleElement:l,svgStyles:s,currentNodeStyle:b}=r;if(!l||!n)return;function m(d){let u=n.getComputedStyle(t,d),p=u.getPropertyValue("content");if(!p||p==="none")return;o?.(p),p=p.replace(/(')|(")|(counter\(.+\))/g,"");let f=[xe()],g=Te(t,d,r);b?.forEach((S,R)=>{g.delete(R)});let h=ze(u,g,r.includeStyleProperties);if(h.delete("content"),h.delete("-webkit-locale"),h.get("background-clip")?.[0]==="text")i.classList.add("______background-clip--text");let y=[`content: '${p}';`];if(h.forEach(([S,R],O)=>{y.push(`${O}: ${S}${R?" !important":""};`)}),y.length===1)return;try{i.className=[i.className,...f].join(" ")}catch(S){r.log.warn("Failed to copyPseudoClass",S);return}let v=y.join(`
|
|
18
|
+
`),x=s.get(v);if(!x)x=[],s.set(v,x);x.push(`.${f[0]}${d}`)}if(sn.forEach(m),e)on.forEach(m)}var ue=new Set(["symbol"]);async function fe(t,i,e,r,o){if(pt(e)&&(Nr(e)||Lr(e)))return;if(r.filter&&!r.filter(e))return;if(ue.has(i.nodeName)||ue.has(e.nodeName))r.currentParentNodeStyle=void 0;else r.currentParentNodeStyle=r.currentNodeStyle;let n=await Yt(e,r,!1,o);if(r.isEnable("restoreScrollPosition"))cn(t,n);i.appendChild(n)}async function he(t,i,e,r){let o=t.firstChild;if(pt(t)){if(t.shadowRoot)o=t.shadowRoot?.firstChild,e.shadowRoots.push(t.shadowRoot)}for(let n=o;n;n=n.nextSibling){if(Tr(n))continue;if(pt(n)&&Fr(n)&&typeof n.assignedNodes==="function"){let l=n.assignedNodes();for(let s=0;s<l.length;s++)await fe(t,i,l[s],e,r)}else await fe(t,i,n,e,r)}}function cn(t,i){if(!It(t)||!It(i))return;let{scrollTop:e,scrollLeft:r}=t;if(!e&&!r)return;let{transform:o}=i.style,n=new DOMMatrix(o),{a:l,b:s,c:b,d:m}=n;n.a=1,n.b=0,n.c=0,n.d=1,n.translateSelf(-r,-e),n.a=l,n.b=s,n.c=b,n.d=m,i.style.transform=n.toString()}function un(t,i){let{backgroundColor:e,width:r,height:o,style:n}=i,l=t.style;if(e)l.setProperty("background-color",e,"important");if(r)l.setProperty("width",`${r}px`,"important");if(o)l.setProperty("height",`${o}px`,"important");if(n)for(let s in n)l[s]=n[s]}var fn=/^[\w-:]+$/;async function Yt(t,i,e=!1,r){let{ownerDocument:o,ownerWindow:n,fontFamilies:l,onCloneEachNode:s}=i;if(o&&zr(t)){if(r&&/\S/.test(t.data))r(t.data);return o.createTextNode(t.data)}if(o&&n&&pt(t)&&(It(t)||zt(t))){let m=await Qr(t,i);if(i.isEnable("removeAbnormalAttributes")){let h=m.getAttributeNames();for(let y=h.length,v=0;v<y;v++){let x=h[v];if(!fn.test(x))m.removeAttribute(x)}}let d=i.currentNodeStyle=nn(t,m,e,i);if(e)un(m,i);let u=!1;if(i.isEnable("copyScrollbar")){let h=[d.get("overflow-x")?.[0],d.get("overflow-y")?.[0]];u=h.includes("scroll")||(h.includes("auto")||h.includes("overlay"))&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)}let p=d.get("text-transform")?.[0],f=Ce(d.get("font-family")?.[0]),g=f?(h)=>{if(p==="uppercase")h=h.toUpperCase();else if(p==="lowercase")h=h.toLowerCase();else if(p==="capitalize")h=h[0].toUpperCase()+h.substring(1);f.forEach((y)=>{let v=l.get(y);if(!v)l.set(y,v=new Set);h.split("").forEach((x)=>v.add(x))})}:void 0;if(ln(t,m,u,i,g),an(t,m),!Ft(t))await he(t,m,i,g);return await s?.(m),m}let b=t.cloneNode(!1);return await he(t,b,i),await s?.(b),b}function hn(t){if(t.ownerDocument=void 0,t.ownerWindow=void 0,t.svgStyleElement=void 0,t.svgDefsElement=void 0,t.svgStyles.clear(),t.defaultComputedStyles.clear(),t.sandbox){try{t.sandbox.remove()}catch(i){t.log.warn("Failed to destroyContext",i)}t.sandbox=void 0}t.workers=[],t.fontFamilies.clear(),t.fontCssTexts.clear(),t.requests.clear(),t.tasks=[],t.shadowRoots=[]}function dn(t){let{url:i,timeout:e,responseType:r,...o}=t,n=new AbortController,l=e?setTimeout(()=>n.abort(),e):void 0;return fetch(i,{signal:n.signal,...o}).then((s)=>{if(!s.ok)throw Error("Failed fetch, not 2xx response",{cause:s});switch(r){case"arrayBuffer":return s.arrayBuffer();case"dataUrl":return s.blob().then(Wr);case"text":default:return s.text()}}).finally(()=>clearTimeout(l))}function Tt(t,i){let{url:e,requestType:r="text",responseType:o="text",imageDom:n}=i,l=e,{timeout:s,acceptOfImage:b,requests:m,fetchFn:d,fetch:{requestInit:u,bypassingCache:p,placeholderImage:f},font:g,workers:h,fontFamilies:y}=t;if(r==="image"&&(Dt||Xt))t.drawImageCount++;let v=m.get(e);if(!v){if(p){if(p instanceof RegExp&&p.test(l))l+=(/\?/.test(l)?"&":"?")+new Date().getTime()}let x=r.startsWith("font")&&g&&g.minify,S=new Set;if(x)r.split(";")[1].split(",").forEach((z)=>{if(!y.has(z))return;y.get(z).forEach((M)=>S.add(M))});let R=x&&S.size,O={url:l,timeout:s,responseType:R?"arrayBuffer":o,headers:r==="image"?{accept:b}:void 0,...u};v={type:r,resolve:void 0,reject:void 0,response:null},v.response=(async()=>{if(d&&r==="image"){let F=await d(e);if(F)return F}if(!Dt&&e.startsWith("http")&&h.length)return new Promise((F,z)=>{h[m.size&h.length-1].postMessage({rawUrl:e,...O}),v.resolve=F,v.reject=z});return dn(O)})().catch((F)=>{if(m.delete(e),r==="image"&&f)return t.log.warn("Failed to fetch image base64, trying to use placeholder image",l),typeof f==="string"?f:f(n);throw F}),m.set(e,v)}return v.response}async function Oe(t,i,e,r){if(!Re(t))return t;for(let[o,n]of pn(t,i))try{let l=await Tt(e,{url:n,requestType:r?"image":"text",responseType:"dataUrl"});t=t.replace(mn(o),`$1${l}$3`)}catch(l){e.log.warn("Failed to fetch css data url",o,l)}return t}function Re(t){return/url\((['"]?)([^'"]+?)\1\)/.test(t)}var Be=/url\((['"]?)([^'"]+?)\1\)/g;function pn(t,i){let e=[];return t.replace(Be,(r,o,n)=>(e.push([n,ke(n,i)]),r)),e.filter(([r])=>!qt(r))}function mn(t){let i=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${i})(['"]?\\))`,"g")}var gn=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function bn(t,i){return gn.map((e)=>{let r=t.getPropertyValue(e);if(!r||r==="none")return null;if(Dt||Xt)i.drawImageCount++;return Oe(r,null,i,!0).then((o)=>{if(!o||r===o)return;t.setProperty(e,o,t.getPropertyPriority(e))})}).filter(Boolean)}function wn(t,i){if(vt(t)){let e=t.currentSrc||t.src;if(!qt(e))return[Tt(i,{url:e,imageDom:t,requestType:"image",responseType:"dataUrl"}).then((r)=>{if(!r)return;t.srcset="",t.dataset.originalSrc=e,t.src=r||""})];if(Dt||Xt)i.drawImageCount++}else if(zt(t)&&!qt(t.href.baseVal)){let e=t.href.baseVal;return[Tt(i,{url:e,imageDom:t,requestType:"image",responseType:"dataUrl"}).then((r)=>{if(!r)return;t.dataset.originalSrc=e,t.href.baseVal=r||""})]}return[]}function yn(t,i){let{ownerDocument:e,svgDefsElement:r}=i,o=t.getAttribute("href")??t.getAttribute("xlink:href");if(!o)return[];let[n,l]=o.split("#");if(l){let s=`#${l}`,b=i.shadowRoots.reduce((m,d)=>m??d.querySelector(`svg ${s}`),e?.querySelector(`svg ${s}`));if(n)t.setAttribute("href",s);if(r?.querySelector(s))return[];if(b)return r?.appendChild(b.cloneNode(!0)),[];else if(n)return[Tt(i,{url:n,responseType:"text"}).then((m)=>{r?.insertAdjacentHTML("beforeend",m)})]}return[]}function Ne(t,i){let{tasks:e}=i;if(pt(t)){if(vt(t)||ve(t))e.push(...wn(t,i));if(Ar(t))e.push(...yn(t,i))}if(It(t))e.push(...bn(t.style,i));t.childNodes.forEach((r)=>{Ne(r,i)})}async function _n(t,i){let{ownerDocument:e,svgStyleElement:r,fontFamilies:o,fontCssTexts:n,tasks:l,font:s}=i;if(!e||!r||!o.size)return;if(s&&s.cssText){let b=pe(s.cssText,i);r.appendChild(e.createTextNode(`${b}
|
|
19
|
+
`))}else{let b=Array.from(e.styleSheets).filter((d)=>{try{return"cssRules"in d&&Boolean(d.cssRules.length)}catch(u){return i.log.warn(`Error while reading CSS rules from ${d.href}`,u),!1}});await Promise.all(b.flatMap((d)=>Array.from(d.cssRules).map(async(u,p)=>{if(Cr(u)){let f=p+1,g=u.href,h="";try{h=await Tt(i,{url:g,requestType:"text",responseType:"text"})}catch(v){i.log.warn(`Error fetch remote css import from ${g}`,v)}let y=h.replace(Be,(v,x,S)=>v.replace(S,ke(S,g)));for(let v of kn(y))try{d.insertRule(v,v.startsWith("@import")?f+=1:d.cssRules.length)}catch(x){i.log.warn("Error inserting rule from remote css import",{rule:v,error:x})}}})));let m=[];b.forEach((d)=>{Gt(d.cssRules,m)}),m.filter((d)=>xr(d)&&Re(d.style.getPropertyValue("src"))&&Ce(d.style.getPropertyValue("font-family"))?.some((u)=>o.has(u))).forEach((d)=>{let u=d,p=n.get(u.cssText);if(p)r.appendChild(e.createTextNode(`${p}
|
|
20
|
+
`));else l.push(Oe(u.cssText,u.parentStyleSheet?u.parentStyleSheet.href:null,i).then((f)=>{f=pe(f,i),n.set(u.cssText,f),r.appendChild(e.createTextNode(`${f}
|
|
21
|
+
`))}))})}}var vn=/(\/\*[\s\S]*?\*\/)/g,de=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function kn(t){if(t==null)return[];let i=[],e=t.replace(vn,"");while(!0){let n=de.exec(e);if(!n)break;i.push(n[0])}e=e.replace(de,"");let r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");while(!0){let n=r.exec(e);if(!n)if(n=o.exec(e),!n)break;else r.lastIndex=o.lastIndex;else o.lastIndex=r.lastIndex;i.push(n[0])}return i}var Sn=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,En=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pe(t,i){let{font:e}=i,r=e?e?.preferredFormat:void 0;return r?t.replace(En,(o)=>{while(!0){let[n,,l]=Sn.exec(o)||[];if(!l)return"";if(l===r)return`src: ${n};`}}):t}function Gt(t,i=[]){for(let e of Array.from(t))if(Ir(e))i.push(...Gt(e.cssRules));else if("cssRules"in e)Gt(e.cssRules,i);else i.push(e);return i}async function xn(t,i){let e=await bt(t,i);if(pt(e.node)&&zt(e.node))return e.node;let{ownerDocument:r,log:o,tasks:n,svgStyleElement:l,svgDefsElement:s,svgStyles:b,font:m,progress:d,autoDestruct:u,onCloneNode:p,onEmbedNode:f,onCreateForeignObjectSvg:g}=e;o.time("clone node");let h=await Yt(e.node,e,!0);if(l&&r){let R="";b.forEach((O,F)=>{R+=`${O.join(`,
|
|
13
22
|
`)} {
|
|
14
|
-
${
|
|
23
|
+
${F}
|
|
15
24
|
}
|
|
16
|
-
`}),
|
|
17
|
-
Provided: ${
|
|
18
|
-
Element: ${
|
|
25
|
+
`}),l.appendChild(r.createTextNode(R))}if(o.timeEnd("clone node"),await p?.(h),m!==!1&&pt(h))o.time("embed web font"),await _n(h,e),o.timeEnd("embed web font");o.time("embed node"),Ne(h,e);let y=n.length,v=0,x=async()=>{while(!0){let R=n.pop();if(!R)break;try{await R}catch(O){e.log.warn("Failed to run task",O)}d?.(++v,y)}};d?.(v,y),await Promise.all([...Array.from({length:4})].map(x)),o.timeEnd("embed node"),await f?.(h);let S=Cn(h,e);return s&&S.insertBefore(s,S.children[0]),l&&S.insertBefore(l,S.children[0]),u&&hn(e),await g?.(S),S}function Cn(t,i){let{width:e,height:r}=i,o=Se(e,r,t.ownerDocument),n=o.ownerDocument.createElementNS(o.namespaceURI,"foreignObject");return n.setAttributeNS(null,"x","0%"),n.setAttributeNS(null,"y","0%"),n.setAttributeNS(null,"width","100%"),n.setAttributeNS(null,"height","100%"),n.append(t),o.appendChild(n),o}async function In(t,i){let e=await bt(t,i),r=await xn(e),o=Ee(r,e.isEnable("removeControlCharacter"));if(!e.autoDestruct)e.svgStyleElement=Ie(e.ownerDocument),e.svgDefsElement=e.ownerDocument?.createElementNS(Ut,"defs"),e.svgStyles.clear();let n=_t(o,r.ownerDocument);return await Vr(n,e)}async function jt(t,i){let e=await bt(t,i),{log:r,quality:o,type:n,dpi:l}=e,s=await In(e);r.time("canvas to data url");let b=s.toDataURL(n,o);if(["image/png","image/jpeg"].includes(n)&&l&&kr&&Sr){let[m,d]=b.split(","),u=0,p=!1;if(n==="image/png"){let S=_r(d);if(S>=0)u=Math.ceil((S+28)/3)*4,p=!0;else u=44}else if(n==="image/jpeg")u=24;let f=d.substring(0,u),g=d.substring(u),h=window.atob(f),y=new Uint8Array(h.length);for(let S=0;S<y.length;S++)y[S]=h.charCodeAt(S);let v=n==="image/png"?gr(y,l,p):hr(y,l),x=window.btoa(String.fromCharCode(...v));b=[m,",",x,g].join("")}return r.timeEnd("canvas to data url"),b}async function Le(t,i){let e=await bt(t,i),{width:r,height:o,ownerDocument:n}=e,l=await jt(e),s=Se(r,o,n),b=s.ownerDocument.createElementNS(s.namespaceURI,"image");return b.setAttributeNS(null,"href",l),b.setAttributeNS(null,"height","100%"),b.setAttributeNS(null,"width","100%"),s.appendChild(b),Ee(s,e.isEnable("removeControlCharacter"))}async function De(t,i){return jt(await bt(t,{...i,type:"image/jpeg"}))}async function Fe(t,i){return jt(await bt(t,{...i,type:"image/png"}))}async function Pe(t,i){return jt(await bt(t,{...i,type:"image/webp"}))}async function je(t,i,e,r){let o=!1;try{let n="",l=r?.filter,s=t.getBoundingClientRect(),b={width:Ue(s.width),height:Ue(s.height),...r,quality:i.quality,scale:i.scale,filter:(p)=>Tn(p)&&(l?l(p):!0)},m=getComputedStyle(t),{backgroundColor:d,backgroundImage:u}=m;if(d==="rgba(0, 0, 0, 0)"&&u==="none"&&i.format==="jpg")t.style.backgroundColor="#FFFFFF",o=!0;switch(i.format){case"jpg":n=await De(t,b);break;case"png":n=await Fe(t,b);break;case"svg":n=await Le(t,b);break;case"webp":n=await Pe(t,b);break}return{dataURL:n,fileName:le(i,e)}}catch(n){throw Error(`ImageExporter: failed to capture element as ${i.format}`,{cause:n})}finally{if(o)t.style.backgroundColor="",t.style.backgroundImage=""}}var Ue=(t)=>{let i=Math.round(t);return Math.abs(t-i)<0.01?i:t},Tn=(t)=>{if(t instanceof HTMLElement)return!t.hasAttribute("data-ignore-capture");return!0};var He=sr(We(),1);var zn={label:"image",format:"jpg",scale:1,quality:1,includeScaleInLabel:!1},wt={...zn,downloadImages:!0,defaultImageLabel:"image",zipLabel:"images",corsProxyBaseUrl:"",enableWindowLogging:!0,loggingLevel:"none"};async function Ot(t,i=wt){let e=i?{...wt,...i}:wt,r=Bn(t);if(r.length===1){let o=r[0];Ze(o.blob??o.dataURL,o.fileName)}else if(r.length>1){let o=await On(r);if(o)Ze(o,Rn(e))}}function Ze(t,i){let e=typeof t==="string"?t:URL.createObjectURL(t),r=document.createElement("a");if(r.href=e,r.download=i,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),typeof t!=="string")setTimeout(()=>URL.revokeObjectURL(e),250)}async function On(t){let i=new He.default;try{t.forEach((e)=>{if(e.blob)i.file(e.fileName,e.blob);else{let r=e.dataURL.split(",")[1];i.file(e.fileName,r,{base64:!0})}})}catch(e){console.error("Image Exporter - Error adding images to ZIP:",e);return}try{return await i.generateAsync({type:"blob"})}catch(e){console.error("Image Exporter - Error generating ZIP:",e);return}}function Rn(t){try{let i=t.zipLabel;return i=i.replace(/\s+/g,"-"),i.replace(/[^a-zA-Z0-9-_]/g,"")}catch(i){return console.error(i),"images"}}function Bn(t){let i=new Set;return t.map((e)=>{let r=Lt(e.fileName,i);return r===e.fileName?e:{...e,fileName:r}})}var Jt=typeof window<"u",it={info:(...t)=>Rt(t,"info"),error:(...t)=>Rt(t,"error"),verbose:(...t)=>Rt(t,"verbose"),progress:(t,i)=>Nn(t,i),group:{open:(...t)=>Rt(t,"group"),close:(...t)=>Rt(t,"groupEnd")}};async function Rt(t,i="info"){let e=t.map((r)=>typeof r==="object"?JSON.stringify(r):r).join(" ");switch(i){case"info":if(yt==="info"||yt==="verbose")console.log(...t);break;case"error":if(yt==="error"||yt==="verbose")console.error(...t);break;case"verbose":if(yt==="verbose")console.log(...t);break;case"group":console.group(...t);break;case"groupEnd":console.groupEnd();break}if(Mt&&Jt)window.imageExporterLogs.push({message:e,type:i})}async function Nn(t,i){if(Mt&&Jt)window.imageExporterProgress.push([t,i])}if(Jt)window.imageExporterLogs=[],window.imageExporterProgress=[];function kt(t){try{let i=new URL(t);if(i.protocol==="data:")return!1;if(i.protocol!=="http:"&&i.protocol!=="https:")return!1;return!0}catch{return!1}}async function $e(t){let i=document.querySelectorAll('link[rel="stylesheet"]');it.verbose("stylesheet elements to proxy",i.length);for(let e of i){let r=e.getAttribute("href");if(!r)continue;if(r.startsWith("data:"))continue;if(r.startsWith(t.corsProxyBaseUrl))continue;if(!kt(r))continue;e.setAttribute("crossorigin","anonymous");let o=t.corsProxyBaseUrl+encodeURIComponent(r);try{let l=await(await fetch(o)).text(),s=document.createElement("style");s.textContent=l,s.setAttribute("original-link-element",encodeURIComponent(e.outerHTML)),e.insertAdjacentElement("afterend",s),e.remove(),it.verbose("Proxied: ",r)}catch(n){console.error("Error fetching CSS:",n)}}}async function qe(t,i){try{let e=Array.from(i);if(!e.length)return;it.verbose("images to proxy",e.length);for(let r of e){let o=Array.from(r.querySelectorAll("img"));for(let n of o)if(kt(n.src)&&!n.src.startsWith(t.corsProxyBaseUrl))n.setAttribute("original-src",n.src),n.src=t.corsProxyBaseUrl+encodeURIComponent(n.src),it.verbose("Proxied: ",n.src)}}catch(e){console.error("ImageExporter: Error in proxyImages",e);return}}async function Ge(t,i){try{if(it.verbose("running CORS proxy"),!t.corsProxyBaseUrl||!kt(t.corsProxyBaseUrl))return;await $e(t),await qe(t,i)}catch(e){console.error("ImageExporter: Error in runCorsProxy",e)}}async function Ve(){await Ln(),await Dn()}async function Ln(){let t=document.querySelectorAll("style[original-link-element]");for(let i of t){let e=decodeURIComponent(i.getAttribute("original-link-element")),r=document.createElement("div");r.innerHTML=e,i.parentNode.insertBefore(r.firstChild,i),i.remove(),it.verbose("Restored: ",e)}}async function Dn(){let t=document.querySelectorAll("img[original-src]");for(let i of t){let e=i.getAttribute("original-src");i.src=e,i.removeAttribute("original-src"),it.verbose("Restored: ",e)}}var Qt={run:Ge,cleanUp:Ve};function Wt(t){let i=t.indexOf(","),e=t.slice(0,i),r=t.slice(i+1),o=e.match(/^data:([^;]+)/),n=o?o[1]:"";if(e.includes(";base64")){let l=atob(r),s=new Uint8Array(l.length);for(let b=0;b<l.length;b++)s[b]=l.charCodeAt(b);return new Blob([s],{type:n})}return new Blob([decodeURIComponent(r)],{type:n})}async function Xe(t,i){return{label:e(),format:r(),scale:o(),quality:n(),includeScaleInLabel:l()};function e(){try{let s=t.dataset.label||i.defaultImageLabel;if(s==="")return i.defaultImageLabel;let b=/@\d+x$/.test(s),m=s,d=/[^a-zA-Z0-9-_]/g;if(b){let u=s.match(/@\d+x$/);if(!u)return i.defaultImageLabel;m=s.slice(0,-u[0].length).replace(d,"")+u[0]}else m=s.replace(d,"");return m}catch(s){return console.error(s),i.defaultImageLabel}}function r(){try{let s=t.dataset.format||i.format;if(s=s.trim().toLowerCase(),s==="jpg"||s==="png"||s==="svg"||s==="webp")return s;else throw Error(`ImageExporter: provided format is not valid.
|
|
26
|
+
Provided: ${s}
|
|
27
|
+
Element: ${t}
|
|
19
28
|
Accepted values: jpg, png, svg, webp
|
|
20
|
-
Defaulting to: ${
|
|
21
|
-
Provided: ${
|
|
22
|
-
Element: ${
|
|
29
|
+
Defaulting to: ${i.format}`)}catch(s){return console.error(s),i.format}}function o(){try{let s=t.dataset.scale;if(!s)return i.scale;if(s.includes(",")){let b=s.trim().split(",").map((m)=>parseFloat(m));if(b.some((m)=>isNaN(m)))throw Error(`ImageExporter: provided scale is not valid.
|
|
30
|
+
Provided: ${s}
|
|
31
|
+
Element: ${t}
|
|
23
32
|
Accepted values: number or csv numbers e.g. (1,2)
|
|
24
|
-
Defaulting to ${
|
|
25
|
-
Provided: ${
|
|
26
|
-
Element: ${
|
|
33
|
+
Defaulting to ${i.scale}`);return b}else{let b=parseFloat(s.trim());if(isNaN(b))throw Error(`ImageExporter: provided scale is not valid.
|
|
34
|
+
Provided: ${s}
|
|
35
|
+
Element: ${t}
|
|
27
36
|
Accepted values: number or csv numbers e.g. (1,2)
|
|
28
|
-
Defaulting to: ${
|
|
29
|
-
Provided: ${
|
|
30
|
-
Element: ${
|
|
37
|
+
Defaulting to: ${i.scale}`);return b}}catch(s){return console.error(s),i.scale}}function n(){try{let s=t.dataset.quality;if(!s)return i.quality;let b=parseFloat(s.trim());if(isNaN(b))throw Error(`ImageExporter: provided quality is not valid.
|
|
38
|
+
Provided: ${s}
|
|
39
|
+
Element: ${t}
|
|
31
40
|
Accepted values: number
|
|
32
|
-
Defaulting to: ${
|
|
33
|
-
Provided: ${
|
|
34
|
-
Element: ${
|
|
41
|
+
Defaulting to: ${i.quality}`);return b}catch(s){return console.error(s),i.quality}}function l(){try{let s=t.dataset.includeScaleInLabel;if(!s)return i.includeScaleInLabel;if(s=s.trim(),s==="true"||s==="false")return s==="true";else throw Error(`ImageExporter: provided includeScaleInLabel is not valid.
|
|
42
|
+
Provided: ${s}
|
|
43
|
+
Element: ${t}
|
|
35
44
|
Accepted values: true or false
|
|
36
|
-
Defaulting to: ${
|
|
45
|
+
Defaulting to: ${i.includeScaleInLabel}`)}catch(s){return console.error(s),i.includeScaleInLabel}}}function Ye(t){return t=Array.from(t),t.filter((i)=>Fn(i))}function Fn(t){let i=window.getComputedStyle(t);return t.offsetParent!==null&&t.style.display!=="none"&&i.visibility==="visible"&&i.opacity!=="0"&&i.width!=="0"&&i.height!=="0"}async function Ke(t,i){try{let e=0;for(let r of Array.from(t))e+=Pn(r,i);return e}catch{return 1}}function Pn(t,i){let e=t.dataset.scale;if(!e)return te(i);if(e.includes(",")){let o=e.trim().split(",").map((n)=>parseFloat(n));if(o.some((n)=>isNaN(n)))return te(i);return o.length}let r=parseFloat(e.trim());if(isNaN(r))return te(i);return 1}function te(t){return Array.isArray(t.scale)?t.scale.length:1}var Mt=!0,yt="none";async function ee(t,i=wt){it.group.open("image-exporter");try{let e={...wt,...i};if(Mt=e.enableWindowLogging,yt=e.loggingLevel,it.verbose("config",e),t instanceof HTMLElement)t=[t];let r=t.length;t=Ye(t);let o=await Ke(t,e);if(r!==t.length)it.verbose("Skipping capture of hidden elements: ",r-t.length);if(it.verbose("Element to capture",t.length),i.corsProxyBaseUrl)await Qt.run(e,t);let n=[],l=new Set,s=1,b=async(m,d)=>{try{let u=await je(m,d,l,e.screenshotOptions);n.push(Un(u,e.output))}catch(u){it.error(u)}finally{let u=s++;it.progress(u,o),e.onProgress?.(u,o)}};t:for(let m of t){if(e.signal?.aborted)break;let d=await Xe(m,e);if(it.verbose("Image options",d),d.scale instanceof Array){it.verbose("Multi-scale capture"),d.includeScaleInLabel=!0;for(let u of d.scale){if(e.signal?.aborted)break t;await b(m,{...d,scale:u})}}else if(typeof d.scale==="number")it.verbose("Single-scale capture"),await b(m,d)}if(e.signal?.aborted)return it.verbose("Capture aborted; returning",n.length,"image(s)"),n;if(e.downloadImages)await Ot(n,e);return n}catch(e){return it.error(e),null}finally{if(i.corsProxyBaseUrl)await Qt.cleanUp();it.group.close()}}function Un(t,i){if(!i||i==="dataurl")return t;let e=Wt(t.dataURL);if(i==="blob")return{...t,dataURL:"",blob:e};return{...t,blob:e}}async function re(t){let i=t.blob??Wt(t.dataURL);await navigator.clipboard.write([new ClipboardItem({[i.type]:i})])}if(typeof window<"u")window.imageExporter=ee,window.imageExporterDownload=Ot,window.imageExporterCopyToClipboard=re;})();
|
|
37
46
|
|
|
38
|
-
//# debugId=
|
|
47
|
+
//# debugId=774AF6E6EC26240864756E2164756E21
|