image-exporter 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +133 -81
- package/dist/capture/capture-element.d.ts +8 -0
- package/dist/capture/capture-element.d.ts.map +1 -0
- package/dist/capture/determine-total-elements.d.ts +9 -0
- package/dist/capture/determine-total-elements.d.ts.map +1 -0
- package/dist/capture/download-images.d.ts +10 -0
- package/dist/capture/download-images.d.ts.map +1 -0
- package/dist/capture/get-image-options.d.ts +15 -0
- package/dist/capture/get-image-options.d.ts.map +1 -0
- package/dist/capture/handle-filenames.d.ts +11 -0
- package/dist/capture/handle-filenames.d.ts.map +1 -0
- package/dist/capture/index.d.ts +10 -0
- package/dist/capture/index.d.ts.map +1 -0
- package/dist/capture/remove-hidden-elements.d.ts +2 -0
- package/dist/capture/remove-hidden-elements.d.ts.map +1 -0
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/cors-proxy/cleanup.d.ts +7 -0
- package/dist/cors-proxy/cleanup.d.ts.map +1 -0
- package/dist/cors-proxy/index.d.ts +7 -0
- package/dist/cors-proxy/index.d.ts.map +1 -0
- package/dist/cors-proxy/is-valid-url.d.ts +7 -0
- package/dist/cors-proxy/is-valid-url.d.ts.map +1 -0
- package/dist/cors-proxy/proxy-css.d.ts +9 -0
- package/dist/cors-proxy/proxy-css.d.ts.map +1 -0
- package/dist/cors-proxy/proxy-images.d.ts +9 -0
- package/dist/cors-proxy/proxy-images.d.ts.map +1 -0
- package/dist/cors-proxy/run.d.ts +9 -0
- package/dist/cors-proxy/run.d.ts.map +1 -0
- package/dist/index.browser.js +40 -0
- package/dist/index.browser.js.map +84 -0
- package/dist/index.cjs +14878 -0
- package/dist/index.cjs.map +84 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14869 -0
- package/dist/index.js.map +83 -0
- package/dist/logger.d.ts +26 -0
- package/dist/logger.d.ts.map +1 -0
- package/package.json +19 -14
- package/.gitattributes +0 -2
- package/.prettierrc +0 -5
- package/bun.lockb +0 -0
- package/dist/image-exporter.es.js +0 -4532
- package/dist/image-exporter.umd.js +0 -4538
- package/src/capture/capture-element.ts +0 -79
- package/src/capture/determine-total-elements.ts +0 -40
- package/src/capture/download-images.ts +0 -115
- package/src/capture/get-image-options.ts +0 -207
- package/src/capture/handle-filenames.ts +0 -54
- package/src/capture/index.ts +0 -102
- package/src/capture/remove-hidden-elements.ts +0 -19
- package/src/config.ts +0 -19
- package/src/cors-proxy/cleanup.ts +0 -43
- package/src/cors-proxy/index.ts +0 -7
- package/src/cors-proxy/is-valid-url.ts +0 -22
- package/src/cors-proxy/proxy-css.ts +0 -48
- package/src/cors-proxy/proxy-images.ts +0 -34
- package/src/cors-proxy/run.ts +0 -26
- package/src/index.ts +0 -16
- package/src/logger.ts +0 -71
- package/src/types.d.ts +0 -51
- package/vite.config.js +0 -35
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
(()=>{var yX=Object.create;var{getPrototypeOf:hX,defineProperty:b1,getOwnPropertyNames:A4,getOwnPropertyDescriptor:fX}=Object,R4=Object.prototype.hasOwnProperty;var T4=(Q,J,$)=>{$=Q!=null?yX(hX(Q)):{};let X=J||!Q||!Q.__esModule?b1($,"default",{value:Q,enumerable:!0}):$;for(let K of A4(Q))if(!R4.call(X,K))b1(X,K,{get:()=>Q[K],enumerable:!0});return X},D4=new WeakMap,u0=(Q)=>{var J=D4.get(Q),$;if(J)return J;if(J=b1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function")A4(Q).map((X)=>!R4.call(J,X)&&b1(J,X,{get:()=>Q[X],enumerable:!($=fX(Q,X))||$.enumerable}));return D4.set(Q,J),J},B0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var R8=(Q,J)=>{for(var $ in J)b1(Q,$,{get:J[$],enumerable:!0,configurable:!0,set:(X)=>J[$]=()=>X})};var k4=(Q,J)=>()=>(Q&&(J=Q(Q=0)),J);var B7=B0((x8,q7)=>{(function(Q,J){if(typeof define==="function"&&define.amd)define([],J);else if(typeof x8==="object")q7.exports=J();else Q.download=J()})(x8,function(){return function Q(J,$,X){var K=window,Y="application/octet-stream",q=X||Y,V=J,U=!$&&!X&&V,B=document.createElement("a"),G=function(I){return String(I)},j=K.Blob||K.MozBlob||K.WebKitBlob||G,W=$||"download",H,S;if(j=j.call?j.bind(K):Blob,String(this)==="true")V=[V,q],q=V[0],V=V[1];if(U&&U.length<2048){if(W=U.split("/").pop().split("?")[0],B.href=U,B.href.indexOf(U)!==-1){var C=new XMLHttpRequest;return C.open("GET",U,!0),C.responseType="blob",C.onload=function(I){Q(I.target.response,W,Y)},setTimeout(function(){C.send()},0),C}}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(V))if(V.length>2096103.424&&j!==G)V=P(V),q=V.type||Y;else return navigator.msSaveBlob?navigator.msSaveBlob(P(V),W):L(V);else if(/([\x80-\xff])/.test(V)){var w=0,F=new Uint8Array(V.length),z=F.length;for(w;w<z;++w)F[w]=V.charCodeAt(w);V=new j([F],{type:q})}H=V instanceof j?V:new j([V],{type:q});function P(I){var g=I.split(/[:;,]/),c=g[1],l=g[2]=="base64"?atob:decodeURIComponent,f=l(g.pop()),v=f.length,T=0,N=new Uint8Array(v);for(T;T<v;++T)N[T]=f.charCodeAt(T);return new j([N],{type:c})}function L(I,g){if("download"in B)return B.href=I,B.setAttribute("download",W),B.className="download-js-link",B.innerHTML="downloading...",B.style.display="none",document.body.appendChild(B),setTimeout(function(){if(B.click(),document.body.removeChild(B),g===!0)setTimeout(function(){K.URL.revokeObjectURL(B.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent)){if(/^data:/.test(I))I="data:"+I.replace(/^data:([\w\/\-\+]+)/,Y);if(!window.open(I)){if(confirm(`Displaying New Document
|
|
2
|
+
|
|
3
|
+
Use Save As... to download, then click back to return to this page.`))location.href=I}return!0}var c=document.createElement("iframe");if(document.body.appendChild(c),!g&&/^data:/.test(I))I="data:"+I.replace(/^data:([\w\/\-\+]+)/,Y);c.src=I,setTimeout(function(){document.body.removeChild(c)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(H,W);if(K.URL)L(K.URL.createObjectURL(H),!0);else{if(typeof H==="string"||H.constructor===G)try{return L("data:"+q+";base64,"+K.btoa(H))}catch(I){return L("data:"+q+","+encodeURIComponent(H))}S=new FileReader,S.onload=function(I){L(this.result)},S.readAsDataURL(H)}return!0}})});var M2={};R8(M2,{transcode:()=>_Y,resolveObjectURL:()=>yY,kStringMaxLength:()=>M7,kMaxLength:()=>d1,isUtf8:()=>hY,isAscii:()=>fY,default:()=>bY,constants:()=>GY,btoa:()=>YY,atob:()=>VY,INSPECT_MAX_BYTES:()=>P7,File:()=>qY,Buffer:()=>y,Blob:()=>BY});function QY(Q){var J=Q.length;if(J%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=J;var X=$===J?0:4-$%4;return[$,X]}function JY(Q,J){return(Q+J)*3/4-J}function $Y(Q){var J,$=QY(Q),X=$[0],K=$[1],Y=new Uint8Array(JY(X,K)),q=0,V=K>0?X-4:X,U;for(U=0;U<V;U+=4)J=n0[Q.charCodeAt(U)]<<18|n0[Q.charCodeAt(U+1)]<<12|n0[Q.charCodeAt(U+2)]<<6|n0[Q.charCodeAt(U+3)],Y[q++]=J>>16&255,Y[q++]=J>>8&255,Y[q++]=J&255;if(K===2)J=n0[Q.charCodeAt(U)]<<2|n0[Q.charCodeAt(U+1)]>>4,Y[q++]=J&255;if(K===1)J=n0[Q.charCodeAt(U)]<<10|n0[Q.charCodeAt(U+1)]<<4|n0[Q.charCodeAt(U+2)]>>2,Y[q++]=J>>8&255,Y[q++]=J&255;return Y}function XY(Q){return Y2[Q>>18&63]+Y2[Q>>12&63]+Y2[Q>>6&63]+Y2[Q&63]}function KY(Q,J,$){var X,K=[];for(var Y=J;Y<$;Y+=3)X=(Q[Y]<<16&16711680)+(Q[Y+1]<<8&65280)+(Q[Y+2]&255),K.push(XY(X));return K.join("")}function U7(Q){var J,$=Q.length,X=$%3,K=[],Y=16383;for(var q=0,V=$-X;q<V;q+=Y)K.push(KY(Q,q,q+Y>V?V:q+Y));if(X===1)J=Q[$-1],K.push(Y2[J>>2]+Y2[J<<4&63]+"==");else if(X===2)J=(Q[$-2]<<8)+Q[$-1],K.push(Y2[J>>10]+Y2[J>>4&63]+Y2[J<<2&63]+"=");return K.join("")}function E6(Q,J,$,X,K){var Y,q,V=K*8-X-1,U=(1<<V)-1,B=U>>1,G=-7,j=$?K-1:0,W=$?-1:1,H=Q[J+j];j+=W,Y=H&(1<<-G)-1,H>>=-G,G+=V;for(;G>0;Y=Y*256+Q[J+j],j+=W,G-=8);q=Y&(1<<-G)-1,Y>>=-G,G+=X;for(;G>0;q=q*256+Q[J+j],j+=W,G-=8);if(Y===0)Y=1-B;else if(Y===U)return q?NaN:(H?-1:1)*(1/0);else q=q+Math.pow(2,X),Y=Y-B;return(H?-1:1)*q*Math.pow(2,Y-X)}function j7(Q,J,$,X,K,Y){var q,V,U,B=Y*8-K-1,G=(1<<B)-1,j=G>>1,W=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,H=X?0:Y-1,S=X?1:-1,C=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)V=isNaN(J)?1:0,q=G;else{if(q=Math.floor(Math.log(J)/Math.LN2),J*(U=Math.pow(2,-q))<1)q--,U*=2;if(q+j>=1)J+=W/U;else J+=W*Math.pow(2,1-j);if(J*U>=2)q++,U/=2;if(q+j>=G)V=0,q=G;else if(q+j>=1)V=(J*U-1)*Math.pow(2,K),q=q+j;else V=J*Math.pow(2,j-1)*Math.pow(2,K),q=0}for(;K>=8;Q[$+H]=V&255,H+=S,V/=256,K-=8);q=q<<K|V,B+=K;for(;B>0;Q[$+H]=q&255,H+=S,q/=256,B-=8);Q[$+H-S]|=C*128}function P2(Q){if(Q>d1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let J=new Uint8Array(Q);return Object.setPrototypeOf(J,y.prototype),J}function u8(Q,J,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:J.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Q}]`,this.stack,delete this.name}get code(){return Q}set code(X){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:X,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function y(Q,J,$){if(typeof Q==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return p8(Q)}return L7(Q,J,$)}function L7(Q,J,$){if(typeof Q==="string")return WY(Q,J);if(ArrayBuffer.isView(Q))return HY(Q);if(Q==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(V2(Q,ArrayBuffer)||Q&&V2(Q.buffer,ArrayBuffer))return _8(Q,J,$);if(typeof SharedArrayBuffer<"u"&&(V2(Q,SharedArrayBuffer)||Q&&V2(Q.buffer,SharedArrayBuffer)))return _8(Q,J,$);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let X=Q.valueOf&&Q.valueOf();if(X!=null&&X!==Q)return y.from(X,J,$);let K=jY(Q);if(K)return K;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return y.from(Q[Symbol.toPrimitive]("string"),J,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function F7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function ZY(Q,J,$){if(F7(Q),Q<=0)return P2(Q);if(J!==void 0)return typeof $==="string"?P2(Q).fill(J,$):P2(Q).fill(J);return P2(Q)}function p8(Q){return F7(Q),P2(Q<0?0:c8(Q)|0)}function WY(Q,J){if(typeof J!=="string"||J==="")J="utf8";if(!y.isEncoding(J))throw TypeError("Unknown encoding: "+J);let $=w7(Q,J)|0,X=P2($),K=X.write(Q,J);if(K!==$)X=X.slice(0,K);return X}function f8(Q){let J=Q.length<0?0:c8(Q.length)|0,$=P2(J);for(let X=0;X<J;X+=1)$[X]=Q[X]&255;return $}function HY(Q){if(V2(Q,Uint8Array)){let J=new Uint8Array(Q);return _8(J.buffer,J.byteOffset,J.byteLength)}return f8(Q)}function _8(Q,J,$){if(J<0||Q.byteLength<J)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<J+($||0))throw RangeError('"length" is outside of buffer bounds');let X;if(J===void 0&&$===void 0)X=new Uint8Array(Q);else if($===void 0)X=new Uint8Array(Q,J);else X=new Uint8Array(Q,J,$);return Object.setPrototypeOf(X,y.prototype),X}function jY(Q){if(y.isBuffer(Q)){let J=c8(Q.length)|0,$=P2(J);if($.length===0)return $;return Q.copy($,0,0,J),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return P2(0);return f8(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return f8(Q.data)}function c8(Q){if(Q>=d1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d1.toString(16)+" bytes");return Q|0}function w7(Q,J){if(y.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||V2(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!=="string")throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);let $=Q.length,X=arguments.length>2&&arguments[2]===!0;if(!X&&$===0)return 0;let K=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return b8(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return k7(Q).length;default:if(K)return X?-1:b8(Q).length;J=(""+J).toLowerCase(),K=!0}}function PY(Q,J,$){let X=!1;if(J===void 0||J<0)J=0;if(J>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,J>>>=0,$<=J)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return AY(this,J,$);case"utf8":case"utf-8":return O7(this,J,$);case"ascii":return CY(this,J,$);case"latin1":case"binary":return DY(this,J,$);case"base64":return OY(this,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return RY(this,J,$);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function i2(Q,J,$){let X=Q[J];Q[J]=Q[$],Q[$]=X}function I7(Q,J,$,X,K){if(Q.length===0)return-1;if(typeof $==="string")X=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=K?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(K)return-1;else $=Q.length-1;else if($<0)if(K)$=0;else return-1;if(typeof J==="string")J=y.from(J,X);if(y.isBuffer(J)){if(J.length===0)return-1;return Z7(Q,J,$,X,K)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(K)return Uint8Array.prototype.indexOf.call(Q,J,$);else return Uint8Array.prototype.lastIndexOf.call(Q,J,$);return Z7(Q,[J],$,X,K)}throw TypeError("val must be string, number or Buffer")}function Z7(Q,J,$,X,K){let Y=1,q=Q.length,V=J.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||J.length<2)return-1;Y=2,q/=2,V/=2,$/=2}}function U(G,j){if(Y===1)return G[j];else return G.readUInt16BE(j*Y)}let B;if(K){let G=-1;for(B=$;B<q;B++)if(U(Q,B)===U(J,G===-1?0:B-G)){if(G===-1)G=B;if(B-G+1===V)return G*Y}else{if(G!==-1)B-=B-G;G=-1}}else{if($+V>q)$=q-V;for(B=$;B>=0;B--){let G=!0;for(let j=0;j<V;j++)if(U(Q,B+j)!==U(J,j)){G=!1;break}if(G)return B}}return-1}function MY(Q,J,$,X){$=Number($)||0;let K=Q.length-$;if(!X)X=K;else if(X=Number(X),X>K)X=K;let Y=J.length;if(X>Y/2)X=Y/2;let q;for(q=0;q<X;++q){let V=parseInt(J.substr(q*2,2),16);if(Number.isNaN(V))return q;Q[$+q]=V}return q}function LY(Q,J,$,X){return S6(b8(J,Q.length-$),Q,$,X)}function FY(Q,J,$,X){return S6(SY(J),Q,$,X)}function wY(Q,J,$,X){return S6(k7(J),Q,$,X)}function IY(Q,J,$,X){return S6(vY(J,Q.length-$),Q,$,X)}function OY(Q,J,$){if(J===0&&$===Q.length)return U7(Q);else return U7(Q.slice(J,$))}function O7(Q,J,$){$=Math.min(Q.length,$);let X=[],K=J;while(K<$){let Y=Q[K],q=null,V=Y>239?4:Y>223?3:Y>191?2:1;if(K+V<=$){let U,B,G,j;switch(V){case 1:if(Y<128)q=Y;break;case 2:if(U=Q[K+1],(U&192)===128){if(j=(Y&31)<<6|U&63,j>127)q=j}break;case 3:if(U=Q[K+1],B=Q[K+2],(U&192)===128&&(B&192)===128){if(j=(Y&15)<<12|(U&63)<<6|B&63,j>2047&&(j<55296||j>57343))q=j}break;case 4:if(U=Q[K+1],B=Q[K+2],G=Q[K+3],(U&192)===128&&(B&192)===128&&(G&192)===128){if(j=(Y&15)<<18|(U&63)<<12|(B&63)<<6|G&63,j>65535&&j<1114112)q=j}}}if(q===null)q=65533,V=1;else if(q>65535)q-=65536,X.push(q>>>10&1023|55296),q=56320|q&1023;X.push(q),K+=V}return NY(X)}function NY(Q){let J=Q.length;if(J<=W7)return String.fromCharCode.apply(String,Q);let $="",X=0;while(X<J)$+=String.fromCharCode.apply(String,Q.slice(X,X+=W7));return $}function CY(Q,J,$){let X="";$=Math.min(Q.length,$);for(let K=J;K<$;++K)X+=String.fromCharCode(Q[K]&127);return X}function DY(Q,J,$){let X="";$=Math.min(Q.length,$);for(let K=J;K<$;++K)X+=String.fromCharCode(Q[K]);return X}function AY(Q,J,$){let X=Q.length;if(!J||J<0)J=0;if(!$||$<0||$>X)$=X;let K="";for(let Y=J;Y<$;++Y)K+=gY[Q[Y]];return K}function RY(Q,J,$){let X=Q.slice(J,$),K="";for(let Y=0;Y<X.length-1;Y+=2)K+=String.fromCharCode(X[Y]+X[Y+1]*256);return K}function T0(Q,J,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+J>$)throw RangeError("Trying to access beyond buffer length")}function f0(Q,J,$,X,K,Y){if(!y.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(J>K||J<Y)throw RangeError('"value" argument is out of bounds');if($+X>Q.length)throw RangeError("Index out of range")}function N7(Q,J,$,X,K){T7(J,X,K,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y,Y=Y>>8,Q[$++]=Y;let q=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$++]=q,q=q>>8,Q[$++]=q,q=q>>8,Q[$++]=q,q=q>>8,Q[$++]=q,$}function C7(Q,J,$,X,K){T7(J,X,K,Q,$,7);let Y=Number(J&BigInt(4294967295));Q[$+7]=Y,Y=Y>>8,Q[$+6]=Y,Y=Y>>8,Q[$+5]=Y,Y=Y>>8,Q[$+4]=Y;let q=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$+3]=q,q=q>>8,Q[$+2]=q,q=q>>8,Q[$+1]=q,q=q>>8,Q[$]=q,$+8}function D7(Q,J,$,X,K,Y){if($+X>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function A7(Q,J,$,X,K){if(J=+J,$=$>>>0,!K)D7(Q,J,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return j7(Q,J,$,X,23,4),$+4}function R7(Q,J,$,X,K){if(J=+J,$=$>>>0,!K)D7(Q,J,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return j7(Q,J,$,X,52,8),$+8}function H7(Q){let J="",$=Q.length,X=Q[0]==="-"?1:0;for(;$>=X+4;$-=3)J=`_${Q.slice($-3,$)}${J}`;return`${Q.slice(0,$)}${J}`}function TY(Q,J,$){if(H1(J,"offset"),Q[J]===void 0||Q[J+$]===void 0)l1(J,Q.length-($+1))}function T7(Q,J,$,X,K,Y){if(Q>$||Q<J){let q=typeof J==="bigint"?"n":"",V;if(Y>3)if(J===0||J===BigInt(0))V=`>= 0${q} and < 2${q} ** ${(Y+1)*8}${q}`;else V=`>= -(2${q} ** ${(Y+1)*8-1}${q}) and < 2 ** ${(Y+1)*8-1}${q}`;else V=`>= ${J}${q} and <= ${$}${q}`;throw new h8("value",V,Q)}TY(X,K,Y)}function H1(Q,J){if(typeof Q!=="number")throw new zY(J,"number",Q)}function l1(Q,J,$){if(Math.floor(Q)!==Q)throw H1(Q,$),new h8($||"offset","an integer",Q);if(J<0)throw new UY;throw new h8($||"offset",`>= ${$?1:0} and <= ${J}`,Q)}function EY(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(kY,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function b8(Q,J){J=J||1/0;let $,X=Q.length,K=null,Y=[];for(let q=0;q<X;++q){if($=Q.charCodeAt(q),$>55295&&$<57344){if(!K){if($>56319){if((J-=3)>-1)Y.push(239,191,189);continue}else if(q+1===X){if((J-=3)>-1)Y.push(239,191,189);continue}K=$;continue}if($<56320){if((J-=3)>-1)Y.push(239,191,189);K=$;continue}$=(K-55296<<10|$-56320)+65536}else if(K){if((J-=3)>-1)Y.push(239,191,189)}if(K=null,$<128){if((J-=1)<0)break;Y.push($)}else if($<2048){if((J-=2)<0)break;Y.push($>>6|192,$&63|128)}else if($<65536){if((J-=3)<0)break;Y.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((J-=4)<0)break;Y.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return Y}function SY(Q){let J=[];for(let $=0;$<Q.length;++$)J.push(Q.charCodeAt($)&255);return J}function vY(Q,J){let $,X,K,Y=[];for(let q=0;q<Q.length;++q){if((J-=2)<0)break;$=Q.charCodeAt(q),X=$>>8,K=$%256,Y.push(K),Y.push(X)}return Y}function k7(Q){return $Y(EY(Q))}function S6(Q,J,$,X){let K;for(K=0;K<X;++K){if(K+$>=J.length||K>=Q.length)break;J[K+$]=Q[K]}return K}function V2(Q,J){return Q instanceof J||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===J.name}function R2(Q){return typeof BigInt>"u"?xY:Q}function xY(){throw Error("BigInt not supported")}function m8(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var Y2,n0,y8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l2,G7,z7,P7=50,d1=2147483647,M7=536870888,YY,VY,qY,BY,GY,UY,zY,h8,W7=4096,kY,gY,yY,hY,fY=(Q)=>{for(let J of Q)if(J.charCodeAt(0)>127)return!1;return!0},_Y,bY;var L2=k4(()=>{Y2=[],n0=[];for(l2=0,G7=y8.length;l2<G7;++l2)Y2[l2]=y8[l2],n0[y8.charCodeAt(l2)]=l2;n0[45]=62;n0[95]=63;z7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,YY=globalThis.btoa,VY=globalThis.atob,qY=globalThis.File,BY=globalThis.Blob,GY={MAX_LENGTH:d1,MAX_STRING_LENGTH:M7};UY=u8("ERR_BUFFER_OUT_OF_BOUNDS",function(Q){if(Q)return`${Q} is outside of buffer bounds`;return"Attempt to access memory outside buffer bounds"},RangeError),zY=u8("ERR_INVALID_ARG_TYPE",function(Q,J){return`The "${Q}" argument must be of type number. Received type ${typeof J}`},TypeError),h8=u8("ERR_OUT_OF_RANGE",function(Q,J,$){let X=`The value of "${Q}" is out of range.`,K=$;if(Number.isInteger($)&&Math.abs($)>4294967296)K=H7(String($));else if(typeof $==="bigint"){if(K=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))K=H7(K);K+="n"}return X+=` It must be ${J}. Received ${K}`,X},RangeError);Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(!y.isBuffer(this))return;return this.buffer}});Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(!y.isBuffer(this))return;return this.byteOffset}});y.poolSize=8192;y.from=function(Q,J,$){return L7(Q,J,$)};Object.setPrototypeOf(y.prototype,Uint8Array.prototype);Object.setPrototypeOf(y,Uint8Array);y.alloc=function(Q,J,$){return ZY(Q,J,$)};y.allocUnsafe=function(Q){return p8(Q)};y.allocUnsafeSlow=function(Q){return p8(Q)};y.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==y.prototype};y.compare=function(Q,J){if(V2(Q,Uint8Array))Q=y.from(Q,Q.offset,Q.byteLength);if(V2(J,Uint8Array))J=y.from(J,J.offset,J.byteLength);if(!y.isBuffer(Q)||!y.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===J)return 0;let $=Q.length,X=J.length;for(let K=0,Y=Math.min($,X);K<Y;++K)if(Q[K]!==J[K]){$=Q[K],X=J[K];break}if($<X)return-1;if(X<$)return 1;return 0};y.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};y.concat=function(Q,J){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return y.alloc(0);let $;if(J===void 0){J=0;for($=0;$<Q.length;++$)J+=Q[$].length}let X=y.allocUnsafe(J),K=0;for($=0;$<Q.length;++$){let Y=Q[$];if(V2(Y,Uint8Array))if(K+Y.length>X.length){if(!y.isBuffer(Y))Y=y.from(Y);Y.copy(X,K)}else Uint8Array.prototype.set.call(X,Y,K);else if(!y.isBuffer(Y))throw TypeError('"list" argument must be an Array of Buffers');else Y.copy(X,K);K+=Y.length}return X};y.byteLength=w7;y.prototype._isBuffer=!0;y.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<Q;J+=2)i2(this,J,J+1);return this};y.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<Q;J+=4)i2(this,J,J+3),i2(this,J+1,J+2);return this};y.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<Q;J+=8)i2(this,J,J+7),i2(this,J+1,J+6),i2(this,J+2,J+5),i2(this,J+3,J+4);return this};y.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return O7(this,0,Q);return PY.apply(this,arguments)};y.prototype.toLocaleString=y.prototype.toString;y.prototype.equals=function(Q){if(!y.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return y.compare(this,Q)===0};y.prototype.inspect=function(){let Q="",J=P7;if(Q=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)Q+=" ... ";return"<Buffer "+Q+">"};if(z7)y.prototype[z7]=y.prototype.inspect;y.prototype.compare=function(Q,J,$,X,K){if(V2(Q,Uint8Array))Q=y.from(Q,Q.offset,Q.byteLength);if(!y.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(J===void 0)J=0;if($===void 0)$=Q?Q.length:0;if(X===void 0)X=0;if(K===void 0)K=this.length;if(J<0||$>Q.length||X<0||K>this.length)throw RangeError("out of range index");if(X>=K&&J>=$)return 0;if(X>=K)return-1;if(J>=$)return 1;if(J>>>=0,$>>>=0,X>>>=0,K>>>=0,this===Q)return 0;let Y=K-X,q=$-J,V=Math.min(Y,q),U=this.slice(X,K),B=Q.slice(J,$);for(let G=0;G<V;++G)if(U[G]!==B[G]){Y=U[G],q=B[G];break}if(Y<q)return-1;if(q<Y)return 1;return 0};y.prototype.includes=function(Q,J,$){return this.indexOf(Q,J,$)!==-1};y.prototype.indexOf=function(Q,J,$){return I7(this,Q,J,$,!0)};y.prototype.lastIndexOf=function(Q,J,$){return I7(this,Q,J,$,!1)};y.prototype.write=function(Q,J,$,X){if(J===void 0)X="utf8",$=this.length,J=0;else if($===void 0&&typeof J==="string")X=J,$=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite($)){if($=$>>>0,X===void 0)X="utf8"}else X=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let K=this.length-J;if($===void 0||$>K)$=K;if(Q.length>0&&($<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let Y=!1;for(;;)switch(X){case"hex":return MY(this,Q,J,$);case"utf8":case"utf-8":return LY(this,Q,J,$);case"ascii":case"latin1":case"binary":return FY(this,Q,J,$);case"base64":return wY(this,Q,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return IY(this,Q,J,$);default:if(Y)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),Y=!0}};y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};y.prototype.slice=function(Q,J){let $=this.length;if(Q=~~Q,J=J===void 0?$:~~J,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(J<0){if(J+=$,J<0)J=0}else if(J>$)J=$;if(J<Q)J=Q;let X=this.subarray(Q,J);return Object.setPrototypeOf(X,y.prototype),X};y.prototype.readUintLE=y.prototype.readUIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q],K=1,Y=0;while(++Y<J&&(K*=256))X+=this[Q+Y]*K;return X};y.prototype.readUintBE=y.prototype.readUIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q+--J],K=1;while(J>0&&(K*=256))X+=this[Q+--J]*K;return X};y.prototype.readUint8=y.prototype.readUInt8=function(Q,J){if(Q=Q>>>0,!J)T0(Q,1,this.length);return this[Q]};y.prototype.readUint16LE=y.prototype.readUInt16LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);return this[Q]|this[Q+1]<<8};y.prototype.readUint16BE=y.prototype.readUInt16BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);return this[Q]<<8|this[Q+1]};y.prototype.readUint32LE=y.prototype.readUInt32LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};y.prototype.readUint32BE=y.prototype.readUInt32BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};y.prototype.readBigUInt64LE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,K=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(X)+(BigInt(K)<<BigInt(32))});y.prototype.readBigUInt64BE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=J*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],K=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(X)<<BigInt(32))+BigInt(K)});y.prototype.readIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=this[Q],K=1,Y=0;while(++Y<J&&(K*=256))X+=this[Q+Y]*K;if(K*=128,X>=K)X-=Math.pow(2,8*J);return X};y.prototype.readIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)T0(Q,J,this.length);let X=J,K=1,Y=this[Q+--X];while(X>0&&(K*=256))Y+=this[Q+--X]*K;if(K*=128,Y>=K)Y-=Math.pow(2,8*J);return Y};y.prototype.readInt8=function(Q,J){if(Q=Q>>>0,!J)T0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};y.prototype.readInt16LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};y.prototype.readInt16BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};y.prototype.readInt32LE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};y.prototype.readInt32BE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};y.prototype.readBigInt64LE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(X)<<BigInt(32))+BigInt(J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});y.prototype.readBigInt64BE=R2(function(Q){Q=Q>>>0,H1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)l1(Q,this.length-8);let X=(J<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});y.prototype.readFloatLE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return E6(this,Q,!0,23,4)};y.prototype.readFloatBE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,4,this.length);return E6(this,Q,!1,23,4)};y.prototype.readDoubleLE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,8,this.length);return E6(this,Q,!0,52,8)};y.prototype.readDoubleBE=function(Q,J){if(Q=Q>>>0,!J)T0(Q,8,this.length);return E6(this,Q,!1,52,8)};y.prototype.writeUintLE=y.prototype.writeUIntLE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,$=$>>>0,!X){let q=Math.pow(2,8*$)-1;f0(this,Q,J,$,q,0)}let K=1,Y=0;this[J]=Q&255;while(++Y<$&&(K*=256))this[J+Y]=Q/K&255;return J+$};y.prototype.writeUintBE=y.prototype.writeUIntBE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,$=$>>>0,!X){let q=Math.pow(2,8*$)-1;f0(this,Q,J,$,q,0)}let K=$-1,Y=1;this[J+K]=Q&255;while(--K>=0&&(Y*=256))this[J+K]=Q/Y&255;return J+$};y.prototype.writeUint8=y.prototype.writeUInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,1,255,0);return this[J]=Q&255,J+1};y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,65535,0);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,65535,0);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,4294967295,0);return this[J+3]=Q>>>24,this[J+2]=Q>>>16,this[J+1]=Q>>>8,this[J]=Q&255,J+4};y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,4294967295,0);return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};y.prototype.writeBigUInt64LE=R2(function(Q,J=0){return N7(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeBigUInt64BE=R2(function(Q,J=0){return C7(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});y.prototype.writeIntLE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,!X){let V=Math.pow(2,8*$-1);f0(this,Q,J,$,V-1,-V)}let K=0,Y=1,q=0;this[J]=Q&255;while(++K<$&&(Y*=256)){if(Q<0&&q===0&&this[J+K-1]!==0)q=1;this[J+K]=(Q/Y>>0)-q&255}return J+$};y.prototype.writeIntBE=function(Q,J,$,X){if(Q=+Q,J=J>>>0,!X){let V=Math.pow(2,8*$-1);f0(this,Q,J,$,V-1,-V)}let K=$-1,Y=1,q=0;this[J+K]=Q&255;while(--K>=0&&(Y*=256)){if(Q<0&&q===0&&this[J+K+1]!==0)q=1;this[J+K]=(Q/Y>>0)-q&255}return J+$};y.prototype.writeInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,1,127,-128);if(Q<0)Q=255+Q+1;return this[J]=Q&255,J+1};y.prototype.writeInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,32767,-32768);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};y.prototype.writeInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,2,32767,-32768);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};y.prototype.writeInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,2147483647,-2147483648);return this[J]=Q&255,this[J+1]=Q>>>8,this[J+2]=Q>>>16,this[J+3]=Q>>>24,J+4};y.prototype.writeInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)f0(this,Q,J,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[J]=Q>>>24,this[J+1]=Q>>>16,this[J+2]=Q>>>8,this[J+3]=Q&255,J+4};y.prototype.writeBigInt64LE=R2(function(Q,J=0){return N7(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeBigInt64BE=R2(function(Q,J=0){return C7(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});y.prototype.writeFloatLE=function(Q,J,$){return A7(this,Q,J,!0,$)};y.prototype.writeFloatBE=function(Q,J,$){return A7(this,Q,J,!1,$)};y.prototype.writeDoubleLE=function(Q,J,$){return R7(this,Q,J,!0,$)};y.prototype.writeDoubleBE=function(Q,J,$){return R7(this,Q,J,!1,$)};y.prototype.copy=function(Q,J,$,X){if(!y.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!X&&X!==0)X=this.length;if(J>=Q.length)J=Q.length;if(!J)J=0;if(X>0&&X<$)X=$;if(X===$)return 0;if(Q.length===0||this.length===0)return 0;if(J<0)throw RangeError("targetStart out of bounds");if($<0||$>=this.length)throw RangeError("Index out of range");if(X<0)throw RangeError("sourceEnd out of bounds");if(X>this.length)X=this.length;if(Q.length-J<X-$)X=Q.length-J+$;let K=X-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,$,X);else Uint8Array.prototype.set.call(Q,this.subarray($,X),J);return K};y.prototype.fill=function(Q,J,$,X){if(typeof Q==="string"){if(typeof J==="string")X=J,J=0,$=this.length;else if(typeof $==="string")X=$,$=this.length;if(X!==void 0&&typeof X!=="string")throw TypeError("encoding must be a string");if(typeof X==="string"&&!y.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let Y=Q.charCodeAt(0);if(X==="utf8"&&Y<128||X==="latin1")Q=Y}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(J<0||this.length<J||this.length<$)throw RangeError("Out of range index");if($<=J)return this;if(J=J>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let K;if(typeof Q==="number")for(K=J;K<$;++K)this[K]=Q;else{let Y=y.isBuffer(Q)?Q:y.from(Q,X),q=Y.length;if(q===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(K=0;K<$-J;++K)this[K+J]=Y[K%q]}return this};kY=/[^+/0-9A-Za-z-_]/g;gY=function(){let Q=Array(256);for(let J=0;J<16;++J){let $=J*16;for(let X=0;X<16;++X)Q[$+X]="0123456789abcdef"[J]+"0123456789abcdef"[X]}return Q}();yY=m8("resolveObjectURL"),hY=m8("isUtf8"),_Y=m8("transcode"),bY=y});var n1={};R8(n1,{setMaxListeners:()=>u7,once:()=>_7,listenerCount:()=>p7,init:()=>T2,getMaxListeners:()=>m7,getEventListeners:()=>b7,default:()=>rY,captureRejectionSymbol:()=>x7,addAbortListener:()=>d7,EventEmitter:()=>T2});function y7(Q,J){var{_events:$}=Q;if(J[0]??=Error("Unhandled error."),!$)throw J[0];var X=$[g7];if(X)for(var K of S7.call(X))K.apply(Q,J);var Y=$.error;if(!Y)throw J[0];for(var K of S7.call(Y))K.apply(Q,J);return!0}function cY(Q,J,$,X){J.then(void 0,function(K){queueMicrotask(()=>mY(Q,K,$,X))})}function mY(Q,J,$,X){if(typeof Q[E7]==="function")Q[E7](J,$,...X);else try{Q[n2]=!1,Q.emit("error",J)}finally{Q[n2]=!0}}function h7(Q,J,$){$.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(J)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=J,X.count=$.length,console.warn(X)}function f7(Q,J,...$){this.removeListener(Q,J),J.apply(this,$)}function _7(Q,J,$){var X=$?.signal;if(c7(X,"options.signal"),X?.aborted)throw new d8(void 0,{cause:X?.reason});let{resolve:K,reject:Y,promise:q}=$newPromiseCapability(Promise),V=(G)=>{if(Q.removeListener(J,U),X!=null)v6(X,"abort",B);Y(G)},U=(...G)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",V);if(X!=null)v6(X,"abort",B);K(G)};if(v7(Q,J,U,{once:!0}),J!=="error"&&typeof Q.once==="function")Q.once("error",V);function B(){v6(Q,J,U),v6(Q,"error",V),Y(new d8(void 0,{cause:X?.reason}))}if(X!=null)v7(X,"abort",B,{once:!0});return q}function b7(Q,J){return Q.listeners(J)}function u7(Q,...J){i8(Q,"setMaxListeners",0);var $;if(J&&($=J.length))for(let X=0;X<$;X++)J[X].setMaxListeners(Q);else r2=Q}function p7(Q,J){return Q.listenerCount(J)}function v6(Q,J,$,X){if(typeof Q.removeListener==="function")Q.removeListener(J,$);else Q.removeEventListener(J,$,X)}function v7(Q,J,$,X){if(typeof Q.on==="function")if(X.once)Q.once(J,$);else Q.on(J,$);else Q.addEventListener(J,$,X)}function j1(Q,J,$){let X=TypeError(`The "${Q}" argument must be of type ${J}. Received ${$}`);return X.code="ERR_INVALID_ARG_TYPE",X}function iY(Q,J,$){let X=RangeError(`The "${Q}" argument is out of range. It must be ${J}. Received ${$}`);return X.code="ERR_OUT_OF_RANGE",X}function c7(Q,J){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw j1(J,"AbortSignal",Q)}function i8(Q,J,$,X){if(typeof Q!=="number")throw j1(J,"number",Q);if($!=null&&Q<$||X!=null&&Q>X||($!=null||X!=null)&&Number.isNaN(Q))throw iY(J,`${$!=null?`>= ${$}`:""}${$!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function i1(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function nY(Q,J){if(typeof Q!=="boolean")throw j1(J,"boolean",Q)}function m7(Q){return Q?._maxListeners??r2}function d7(Q,J){if(Q===void 0)throw j1("signal","AbortSignal",Q);if(c7(Q,"signal"),typeof J!=="function")throw j1("listener","function",J);let $;if(Q.aborted)queueMicrotask(()=>J());else Q.addEventListener("abort",J,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",J)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var l8,n2,g7,uY,pY,E7,x7,S7,r2=10,T2=function(Q){if(this._events===void 0||this._events===this.__proto__._events)this._events={__proto__:null},this._eventsCount=0;if(this._maxListeners??=void 0,this[n2]=Q?.captureRejections?Boolean(Q?.captureRejections):w0[n2])this.emit=lY},w0,dY=function(Q,...J){if(Q==="error")return y7(this,J);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:q}=K;Y<q;Y++){let V=K[Y];switch(J.length){case 0:V.call(this);break;case 1:V.call(this,J[0]);break;case 2:V.call(this,J[0],J[1]);break;case 3:V.call(this,J[0],J[1],J[2]);break;default:V.apply(this,J);break}}return!0},lY=function(Q,...J){if(Q==="error")return y7(this,J);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let K=X.length>1?X.slice():X;for(let Y=0,{length:q}=K;Y<q;Y++){let V=K[Y],U;switch(J.length){case 0:U=V.call(this);break;case 1:U=V.call(this,J[0]);break;case 2:U=V.call(this,J[0],J[1]);break;case 3:U=V.call(this,J[0],J[1],J[2]);break;default:U=V.apply(this,J);break}if(U!==void 0&&typeof U?.then==="function"&&U.then===Promise.prototype.then)cY(this,U,Q,J)}return!0},d8,rY;var r1=k4(()=>{l8=Symbol.for,n2=Symbol("kCapture"),g7=l8("events.errorMonitor"),uY=Symbol("events.maxEventTargetListeners"),pY=Symbol("events.maxEventTargetListenersWarned"),E7=l8("nodejs.rejection"),x7=l8("nodejs.rejection"),S7=Array.prototype.slice,w0=T2.prototype={};w0._events=void 0;w0._eventsCount=0;w0._maxListeners=void 0;w0.setMaxListeners=function(Q){return i8(Q,"setMaxListeners",0),this._maxListeners=Q,this};w0.constructor=T2;w0.getMaxListeners=function(){return this?._maxListeners??r2};w0.emit=dY;w0.addListener=function(Q,J){i1(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var X=$[Q];if(!X)$[Q]=[J],this._eventsCount++;else{X.push(J);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)h7(this,Q,X)}return this};w0.on=w0.addListener;w0.prependListener=function(Q,J){i1(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var X=$[Q];if(!X)$[Q]=[J],this._eventsCount++;else{X.unshift(J);var K=this._maxListeners??r2;if(K>0&&X.length>K&&!X.warned)h7(this,Q,X)}return this};w0.once=function(Q,J){i1(J);let $=f7.bind(this,Q,J);return $.listener=J,this.addListener(Q,$),this};w0.prependOnceListener=function(Q,J){i1(J);let $=f7.bind(this,Q,J);return $.listener=J,this.prependListener(Q,$),this};w0.removeListener=function(Q,J){i1(J);var{_events:$}=this;if(!$)return this;var X=$[Q];if(!X)return this;var K=X.length;let Y=-1;for(let q=K-1;q>=0;q--)if(X[q]===J||X[q].listener===J){Y=q;break}if(Y<0)return this;if(Y===0)X.shift();else X.splice(Y,1);if(X.length===0)delete $[Q],this._eventsCount--;return this};w0.off=w0.removeListener;w0.removeAllListeners=function(Q){var{_events:J}=this;if(Q&&J){if(J[Q])delete J[Q],this._eventsCount--}else this._events={__proto__:null};return this};w0.listeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.map((X)=>X.listener??X)};w0.rawListeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.slice()};w0.listenerCount=function(Q){var{_events:J}=this;if(!J)return 0;return J[Q]?.length??0};w0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};w0[n2]=!1;d8=class d8 extends Error{constructor(Q="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw j1("options","Object",J);super(Q,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(T2,{captureRejections:{get(){return w0[n2]},set(Q){nY(Q,"EventEmitter.captureRejections"),w0[n2]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return r2},set:(Q)=>{i8(Q,"defaultMaxListeners",0),r2=Q}},kMaxEventTargetListeners:{value:uY,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:pY,enumerable:!1,configurable:!1,writable:!1}});Object.assign(T2,{once:_7,getEventListeners:b7,getMaxListeners:m7,setMaxListeners:u7,EventEmitter:T2,usingDomains:!1,captureRejectionSymbol:x7,errorMonitor:g7,addAbortListener:d7,init:T2,listenerCount:p7});rY=T2});var a8=B0((kB,t7)=>{var M0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),O0=M0((Q,J)=>{class $ extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let K="";for(let Y=0;Y<X.length;Y++)K+=` ${X[Y].stack}
|
|
4
|
+
`;super(K);this.name="AggregateError",this.errors=X}}J.exports={AggregateError:$,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,K){return X.includes(K)},ArrayPrototypeIndexOf(X,K){return X.indexOf(K)},ArrayPrototypeJoin(X,K){return X.join(K)},ArrayPrototypeMap(X,K){return X.map(K)},ArrayPrototypePop(X,K){return X.pop(K)},ArrayPrototypePush(X,K){return X.push(K)},ArrayPrototypeSlice(X,K,Y){return X.slice(K,Y)},Error,FunctionPrototypeCall(X,K,...Y){return X.call(K,...Y)},FunctionPrototypeSymbolHasInstance(X,K){return Function.prototype[Symbol.hasInstance].call(X,K)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,K){return Object.defineProperties(X,K)},ObjectDefineProperty(X,K,Y){return Object.defineProperty(X,K,Y)},ObjectGetOwnPropertyDescriptor(X,K){return Object.getOwnPropertyDescriptor(X,K)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,K){return Object.setPrototypeOf(X,K)},Promise,PromisePrototypeCatch(X,K){return X.catch(K)},PromisePrototypeThen(X,K,Y){return X.then(K,Y)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,K){return X.test(K)},SafeSet:Set,String,StringPrototypeSlice(X,K,Y){return X.slice(K,Y)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(X,K,Y){return X.set(K,Y)},Boolean,Uint8Array}}),l7=M0((Q,J)=>{J.exports={format($,...X){return $.replace(/%([sdifj])/g,function(...[K,Y]){let q=X.shift();if(Y==="f")return q.toFixed(6);else if(Y==="j")return JSON.stringify(q);else if(Y==="s"&&typeof q==="object")return`${q.constructor!==Object?q.constructor.name:""} {}`.trim();else return q.toString()})},inspect($){switch(typeof $){case"string":if($.includes("'")){if(!$.includes('"'))return`"${$}"`;else if(!$.includes("`")&&!$.includes("${"))return`\`${$}\``}return`'${$}'`;case"number":if(isNaN($))return"NaN";else if(Object.is($,-0))return String($);return $;case"bigint":return`${String($)}n`;case"boolean":case"undefined":return String($);case"object":return"{}"}}}}),g0=M0((Q,J)=>{var{format:$,inspect:X}=l7(),{AggregateError:K}=O0(),Y=globalThis.AggregateError||K,q=Symbol("kIsNodeError"),V=["string","function","number","object","Function","Object","boolean","bigint","symbol"],U=/^([A-Z][a-z0-9]*)+$/,B={};function G(F,z){if(!F)throw new B.ERR_INTERNAL_ASSERTION(z)}function j(F){let z="",P=F.length,L=F[0]==="-"?1:0;for(;P>=L+4;P-=3)z=`_${F.slice(P-3,P)}${z}`;return`${F.slice(0,P)}${z}`}function W(F,z,P){if(typeof z==="function")return G(z.length<=P.length,`Code: ${F}; The provided arguments length (${P.length}) does not match the required ones (${z.length}).`),z(...P);let L=(z.match(/%[dfijoOs]/g)||[]).length;if(G(L===P.length,`Code: ${F}; The provided arguments length (${P.length}) does not match the required ones (${L}).`),P.length===0)return z;return $(z,...P)}function H(F,z,P){if(!P)P=Error;class L extends P{constructor(...I){super(W(F,z,I))}toString(){return`${this.name} [${F}]: ${this.message}`}}Object.defineProperties(L.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${F}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),L.prototype.code=F,L.prototype[q]=!0,B[F]=L}function S(F){let z="__node_internal_"+F.name;return Object.defineProperty(F,"name",{value:z}),F}function C(F,z){if(F&&z&&F!==z){if(Array.isArray(z.errors))return z.errors.push(F),z;let P=new Y([z,F],z.message);return P.code=z.code,P}return F||z}class w extends Error{constructor(F="The operation was aborted",z=void 0){if(z!==void 0&&typeof z!=="object")throw new B.ERR_INVALID_ARG_TYPE("options","Object",z);super(F,z);this.code="ABORT_ERR",this.name="AbortError"}}H("ERR_ASSERTION","%s",Error),H("ERR_INVALID_ARG_TYPE",(F,z,P)=>{if(G(typeof F==="string","'name' must be a string"),!Array.isArray(z))z=[z];let L="The ";if(F.endsWith(" argument"))L+=`${F} `;else L+=`"${F}" ${F.includes(".")?"property":"argument"} `;L+="must be ";let I=[],g=[],c=[];for(let f of z)if(G(typeof f==="string","All expected entries have to be of type string"),V.includes(f))I.push(f.toLowerCase());else if(U.test(f))g.push(f);else G(f!=="object",'The value "object" should be written as "Object"'),c.push(f);if(g.length>0){let f=I.indexOf("object");if(f!==-1)I.splice(I,f,1),g.push("Object")}if(I.length>0){switch(I.length){case 1:L+=`of type ${I[0]}`;break;case 2:L+=`one of type ${I[0]} or ${I[1]}`;break;default:{let f=I.pop();L+=`one of type ${I.join(", ")}, or ${f}`}}if(g.length>0||c.length>0)L+=" or "}if(g.length>0){switch(g.length){case 1:L+=`an instance of ${g[0]}`;break;case 2:L+=`an instance of ${g[0]} or ${g[1]}`;break;default:{let f=g.pop();L+=`an instance of ${g.join(", ")}, or ${f}`}}if(c.length>0)L+=" or "}switch(c.length){case 0:break;case 1:if(c[0].toLowerCase()!==c[0])L+="an ";L+=`${c[0]}`;break;case 2:L+=`one of ${c[0]} or ${c[1]}`;break;default:{let f=c.pop();L+=`one of ${c.join(", ")}, or ${f}`}}if(P==null)L+=`. Received ${P}`;else if(typeof P==="function"&&P.name)L+=`. Received function ${P.name}`;else if(typeof P==="object"){var l;if((l=P.constructor)!==null&&l!==void 0&&l.name)L+=`. Received an instance of ${P.constructor.name}`;else{let f=X(P,{depth:-1});L+=`. Received ${f}`}}else{let f=X(P,{colors:!1});if(f.length>25)f=`${f.slice(0,25)}...`;L+=`. Received type ${typeof P} (${f})`}return L},TypeError),H("ERR_INVALID_ARG_VALUE",(F,z,P="is invalid")=>{let L=X(z);if(L.length>128)L=L.slice(0,128)+"...";return`The ${F.includes(".")?"property":"argument"} '${F}' ${P}. Received ${L}`},TypeError),H("ERR_INVALID_RETURN_VALUE",(F,z,P)=>{var L;let I=P!==null&&P!==void 0&&(L=P.constructor)!==null&&L!==void 0&&L.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${F} to be returned from the "${z}" function but got ${I}.`},TypeError),H("ERR_MISSING_ARGS",(...F)=>{G(F.length>0,"At least one arg needs to be specified");let z,P=F.length;switch(F=(Array.isArray(F)?F:[F]).map((L)=>`"${L}"`).join(" or "),P){case 1:z+=`The ${F[0]} argument`;break;case 2:z+=`The ${F[0]} and ${F[1]} arguments`;break;default:{let L=F.pop();z+=`The ${F.join(", ")}, and ${L} arguments`}break}return`${z} must be specified`},TypeError),H("ERR_OUT_OF_RANGE",(F,z,P)=>{G(z,'Missing "range" argument');let L;if(Number.isInteger(P)&&Math.abs(P)>4294967296)L=j(String(P));else if(typeof P==="bigint"){L=String(P);let I=BigInt(2)**BigInt(32);if(P>I||P<-I)L=j(L);L+="n"}else L=X(P);return`The value of "${F}" is out of range. It must be ${z}. Received ${L}`},RangeError),H("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),H("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),H("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),H("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),H("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),H("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),H("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),H("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),H("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),H("ERR_STREAM_WRITE_AFTER_END","write after end",Error),H("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:w,aggregateTwoErrors:S(C),hideStackFrames:S,codes:B}}),oY=M0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,X=new WeakMap;function K(v){let T=$.get(v);return console.assert(T!=null,"'this' is expected an Event object, but got",v),T}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 q(v,T){$.set(this,{eventTarget:v,event:T,eventPhase:2,currentTarget:v,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:T.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let N=Object.keys(T);for(let E=0;E<N.length;++E){let x=N[E];if(!(x in this))Object.defineProperty(this,x,V(x))}}if(q.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 T=K(this);if(T.stopped=!0,typeof T.event.cancelBubble==="boolean")T.event.cancelBubble=!0},get returnValue(){return!K(this).canceled},set returnValue(v){if(!v)Y(K(this))},initEvent(){}},Object.defineProperty(q.prototype,"constructor",{value:q,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(q.prototype,window.Event.prototype),X.set(window.Event.prototype,q);function V(v){return{get(){return K(this).event[v]},set(T){K(this).event[v]=T},configurable:!0,enumerable:!0}}function U(v){return{value(){let T=K(this).event;return T[v].apply(T,arguments)},configurable:!0,enumerable:!0}}function B(v,T){let N=Object.keys(T);if(N.length===0)return v;function E(x,k){v.call(this,x,k)}E.prototype=Object.create(v.prototype,{constructor:{value:E,configurable:!0,writable:!0}});for(let x=0;x<N.length;++x){let k=N[x];if(!(k in v.prototype)){let o=typeof Object.getOwnPropertyDescriptor(T,k).value==="function";Object.defineProperty(E.prototype,k,o?U(k):V(k))}}return E}function G(v){if(v==null||v===Object.prototype)return q;let T=X.get(v);if(T==null)T=B(G(Object.getPrototypeOf(v)),v),X.set(v,T);return T}function j(v,T){return new(G(Object.getPrototypeOf(T)))(v,T)}function W(v){return K(v).immediateStopped}function H(v,T){K(v).eventPhase=T}function S(v,T){K(v).currentTarget=T}function C(v,T){K(v).passiveListener=T}var w=new WeakMap,F=1,z=2,P=3;function L(v){return v!==null&&typeof v==="object"}function I(v){let T=w.get(v);if(T==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return T}function g(v){return{get(){let T=I(this).get(v);while(T!=null){if(T.listenerType===P)return T.listener;T=T.next}return null},set(T){if(typeof T!=="function"&&!L(T))T=null;let N=I(this),E=null,x=N.get(v);while(x!=null){if(x.listenerType===P)if(E!==null)E.next=x.next;else if(x.next!==null)N.set(v,x.next);else N.delete(v);else E=x;x=x.next}if(T!==null){let k={listener:T,listenerType:P,passive:!1,once:!1,next:null};if(E===null)N.set(v,k);else E.next=k}},configurable:!0,enumerable:!0}}function c(v,T){Object.defineProperty(v,`on${T}`,g(T))}function l(v){function T(){f.call(this)}T.prototype=Object.create(f.prototype,{constructor:{value:T,configurable:!0,writable:!0}});for(let N=0;N<v.length;++N)c(T.prototype,v[N]);return T}function f(){if(this instanceof f){w.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return l(arguments[0]);if(arguments.length>0){let v=Array(arguments.length);for(let T=0;T<arguments.length;++T)v[T]=arguments[T];return l(v)}throw TypeError("Cannot call a class as a function")}if(f.prototype={addEventListener(v,T,N){if(T==null)return;if(typeof T!=="function"&&!L(T))throw TypeError("'listener' should be a function or an object.");let E=I(this),x=L(N),k=(x?Boolean(N.capture):Boolean(N))?F:z,o={listener:T,listenerType:k,passive:x&&Boolean(N.passive),once:x&&Boolean(N.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===T&&e.listenerType===k)return;X0=e,e=e.next}X0.next=o},removeEventListener(v,T,N){if(T==null)return;let E=I(this),x=(L(N)?Boolean(N.capture):Boolean(N))?F:z,k=null,o=E.get(v);while(o!=null){if(o.listener===T&&o.listenerType===x){if(k!==null)k.next=o.next;else if(o.next!==null)E.set(v,o.next);else E.delete(v);return}k=o,o=o.next}},dispatchEvent(v){if(v==null||typeof v.type!=="string")throw TypeError('"event.type" should be a string.');let T=I(this),N=v.type,E=T.get(N);if(E==null)return!0;let x=j(this,v),k=null;while(E!=null){if(E.once)if(k!==null)k.next=E.next;else if(E.next!==null)T.set(N,E.next);else T.delete(N);else k=E;if(C(x,E.passive?E.listener:null),typeof E.listener==="function")try{E.listener.call(this,x)}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(x);if(W(x))break;E=E.next}return C(x,null),H(x,0),S(x,null),!x.defaultPrevented}},Object.defineProperty(f.prototype,"constructor",{value:f,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(f.prototype,window.EventTarget.prototype);Q.defineEventAttribute=c,Q.EventTarget=f,Q.default=f,J.exports=f,J.exports.EventTarget=J.exports.default=f,J.exports.defineEventAttribute=c}),o1=M0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=oY();class X extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let G=q.get(this);if(typeof G!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return G}}$.defineEventAttribute(X.prototype,"abort");function K(){let G=Object.create(X.prototype);return $.EventTarget.call(G),q.set(G,!1),G}function Y(G){if(q.get(G)!==!1)return;q.set(G,!0),G.dispatchEvent({type:"abort"})}var q=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 V{constructor(){U.set(this,K())}get signal(){return B(this)}abort(){Y(B(this))}}var U=new WeakMap;function B(G){let j=U.get(G);if(j==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${G===null?"null":typeof G}`);return j}if(Object.defineProperties(V.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(V.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=V,Q.AbortSignal=X,Q.default=V,J.exports=V,J.exports.AbortController=J.exports.default=V,J.exports.AbortSignal=X}),_0=M0((Q,J)=>{var $=(L2(),u0(M2)),{format:X,inspect:K}=l7(),{codes:{ERR_INVALID_ARG_TYPE:Y}}=g0(),{kResistStopPropagation:q,AggregateError:V,SymbolDispose:U}=O0(),B=globalThis.AbortSignal||o1().AbortSignal,G=globalThis.AbortController||o1().AbortController,j=Object.getPrototypeOf(async function(){}).constructor,W=globalThis.Blob||$.Blob,H=typeof W<"u"?function(w){return w instanceof W}:function(w){return!1},S=(w,F)=>{if(w!==void 0&&(w===null||typeof w!=="object"||!("aborted"in w)))throw new Y(F,"AbortSignal",w)},C=(w,F)=>{if(typeof w!=="function")throw new Y(F,"Function",w)};J.exports={AggregateError:V,kEmptyObject:Object.freeze({}),once(w){let F=!1;return function(...z){if(F)return;F=!0,w.apply(this,z)}},createDeferredPromise:function(){let w,F;return{promise:new Promise((z,P)=>{w=z,F=P}),resolve:w,reject:F}},promisify(w){return new Promise((F,z)=>{w((P,...L)=>{if(P)return z(P);return F(...L)})})},debuglog(){return function(){}},format:X,inspect:K,types:{isAsyncFunction(w){return w instanceof j},isArrayBufferView(w){return ArrayBuffer.isView(w)}},isBlob:H,deprecate(w,F){return w},addAbortListener:(r1(),u0(n1)).addAbortListener||function(w,F){if(w===void 0)throw new Y("signal","AbortSignal",w);S(w,"signal"),C(F,"listener");let z;if(w.aborted)queueMicrotask(()=>F());else w.addEventListener("abort",F,{__proto__:null,once:!0,[q]:!0}),z=()=>{w.removeEventListener("abort",F)};return{__proto__:null,[U](){var P;(P=z)===null||P===void 0||P()}}},AbortSignalAny:B.any||function(w){if(w.length===1)return w[0];let F=new G,z=()=>F.abort();return w.forEach((P)=>{S(P,"signals"),P.addEventListener("abort",z,{once:!0})}),F.signal.addEventListener("abort",()=>{w.forEach((P)=>P.removeEventListener("abort",z))},{once:!0}),F.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),a1=M0((Q,J)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:K,ArrayPrototypeMap:Y,NumberIsInteger:q,NumberIsNaN:V,NumberMAX_SAFE_INTEGER:U,NumberMIN_SAFE_INTEGER:B,NumberParseInt:G,ObjectPrototypeHasOwnProperty:j,RegExpPrototypeExec:W,String:H,StringPrototypeToUpperCase:S,StringPrototypeTrim:C}=O0(),{hideStackFrames:w,codes:{ERR_SOCKET_BAD_PORT:F,ERR_INVALID_ARG_TYPE:z,ERR_INVALID_ARG_VALUE:P,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:I}}=g0(),{normalizeEncoding:g}=_0(),{isAsyncFunction:c,isArrayBufferView:l}=_0().types,f={};function v(A){return A===(A|0)}function T(A){return A===A>>>0}var N=/^[0-7]+$/,E="must be a 32-bit unsigned integer or an octal string";function x(A,d,Q0){if(typeof A>"u")A=Q0;if(typeof A==="string"){if(W(N,A)===null)throw new P(d,A,E);A=G(A,8)}return e(A,d),A}var k=w((A,d,Q0=B,i=U)=>{if(typeof A!=="number")throw new z(d,"number",A);if(!q(A))throw new L(d,"an integer",A);if(A<Q0||A>i)throw new L(d,`>= ${Q0} && <= ${i}`,A)}),o=w((A,d,Q0=-2147483648,i=2147483647)=>{if(typeof A!=="number")throw new z(d,"number",A);if(!q(A))throw new L(d,"an integer",A);if(A<Q0||A>i)throw new L(d,`>= ${Q0} && <= ${i}`,A)}),e=w((A,d,Q0=!1)=>{if(typeof A!=="number")throw new z(d,"number",A);if(!q(A))throw new L(d,"an integer",A);let i=Q0?1:0,q0=4294967295;if(A<i||A>q0)throw new L(d,`>= ${i} && <= ${q0}`,A)});function X0(A,d){if(typeof A!=="string")throw new z(d,"string",A)}function W0(A,d,Q0=void 0,i){if(typeof A!=="number")throw new z(d,"number",A);if(Q0!=null&&A<Q0||i!=null&&A>i||(Q0!=null||i!=null)&&V(A))throw new L(d,`${Q0!=null?`>= ${Q0}`:""}${Q0!=null&&i!=null?" && ":""}${i!=null?`<= ${i}`:""}`,A)}var p=w((A,d,Q0)=>{if(!X(Q0,A)){let i="must be one of: "+K(Y(Q0,(q0)=>typeof q0==="string"?`'${q0}'`:H(q0)),", ");throw new P(d,A,i)}});function V0(A,d){if(typeof A!=="boolean")throw new z(d,"boolean",A)}function O(A,d,Q0){return A==null||!j(A,d)?Q0:A[d]}var m=w((A,d,Q0=null)=>{let i=O(Q0,"allowArray",!1),q0=O(Q0,"allowFunction",!1);if(!O(Q0,"nullable",!1)&&A===null||!i&&$(A)||typeof A!=="object"&&(!q0||typeof A!=="function"))throw new z(d,"Object",A)}),$0=w((A,d)=>{if(A!=null&&typeof A!=="object"&&typeof A!=="function")throw new z(d,"a dictionary",A)}),_=w((A,d,Q0=0)=>{if(!$(A))throw new z(d,"Array",A);if(A.length<Q0){let i=`must be longer than ${Q0}`;throw new P(d,A,i)}});function Y0(A,d){_(A,d);for(let Q0=0;Q0<A.length;Q0++)X0(A[Q0],`${d}[${Q0}]`)}function G0(A,d){_(A,d);for(let Q0=0;Q0<A.length;Q0++)V0(A[Q0],`${d}[${Q0}]`)}function H0(A,d){_(A,d);for(let Q0=0;Q0<A.length;Q0++){let i=A[Q0],q0=`${d}[${Q0}]`;if(i==null)throw new z(q0,"AbortSignal",i);U0(i,q0)}}function Z0(A,d="signal"){if(X0(A,d),f[A]===void 0){if(f[S(A)]!==void 0)throw new I(A+" (signals must use all capital letters)");throw new I(A)}}var b=w((A,d="buffer")=>{if(!l(A))throw new z(d,["Buffer","TypedArray","DataView"],A)});function u(A,d){let Q0=g(d),i=A.length;if(Q0==="hex"&&i%2!==0)throw new P("encoding",d,`is invalid for data of length ${i}`)}function a(A,d="Port",Q0=!0){if(typeof A!=="number"&&typeof A!=="string"||typeof A==="string"&&C(A).length===0||+A!==+A>>>0||A>65535||A===0&&!Q0)throw new F(d,A,Q0);return A|0}var U0=w((A,d)=>{if(A!==void 0&&(A===null||typeof A!=="object"||!("aborted"in A)))throw new z(d,"AbortSignal",A)}),z0=w((A,d)=>{if(typeof A!=="function")throw new z(d,"Function",A)}),D=w((A,d)=>{if(typeof A!=="function"||c(A))throw new z(d,"Function",A)}),R=w((A,d)=>{if(A!==void 0)throw new z(d,"undefined",A)});function h(A,d,Q0){if(!X(Q0,A))throw new z(d,`('${K(Q0,"|")}')`,A)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function t(A,d){if(typeof A>"u"||!W(r,A))throw new P(d,A,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function s(A){if(typeof A==="string")return t(A,"hints"),A;else if($(A)){let d=A.length,Q0="";if(d===0)return Q0;for(let i=0;i<d;i++){let q0=A[i];if(t(q0,"hints"),Q0+=q0,i!==d-1)Q0+=", "}return Q0}throw new P("hints",A,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:v,isUint32:T,parseFileMode:x,validateArray:_,validateStringArray:Y0,validateBooleanArray:G0,validateAbortSignalArray:H0,validateBoolean:V0,validateBuffer:b,validateDictionary:$0,validateEncoding:u,validateFunction:z0,validateInt32:o,validateInteger:k,validateNumber:W0,validateObject:m,validateOneOf:p,validatePlainFunction:D,validatePort:a,validateSignalName:Z0,validateString:X0,validateUint32:e,validateUndefined:R,validateUnion:h,validateAbortSignal:U0,validateLinkHeaderValue:s}}),o2=M0((Q,J)=>{J.exports=globalThis.process}),w2=M0((Q,J)=>{var{SymbolAsyncIterator:$,SymbolIterator:X,SymbolFor:K}=O0(),Y=K("nodejs.stream.destroyed"),q=K("nodejs.stream.errored"),V=K("nodejs.stream.readable"),U=K("nodejs.stream.writable"),B=K("nodejs.stream.disturbed"),G=K("nodejs.webstream.isClosedPromise"),j=K("nodejs.webstream.controllerErrorFunction");function W(O,m=!1){var $0;return!!(O&&typeof O.pipe==="function"&&typeof O.on==="function"&&(!m||typeof O.pause==="function"&&typeof O.resume==="function")&&(!O._writableState||(($0=O._readableState)===null||$0===void 0?void 0:$0.readable)!==!1)&&(!O._writableState||O._readableState))}function H(O){var m;return!!(O&&typeof O.write==="function"&&typeof O.on==="function"&&(!O._readableState||((m=O._writableState)===null||m===void 0?void 0:m.writable)!==!1))}function S(O){return!!(O&&typeof O.pipe==="function"&&O._readableState&&typeof O.on==="function"&&typeof O.write==="function")}function C(O){return O&&(O._readableState||O._writableState||typeof O.write==="function"&&typeof O.on==="function"||typeof O.pipe==="function"&&typeof O.on==="function")}function w(O){return!!(O&&!C(O)&&typeof O.pipeThrough==="function"&&typeof O.getReader==="function"&&typeof O.cancel==="function")}function F(O){return!!(O&&!C(O)&&typeof O.getWriter==="function"&&typeof O.abort==="function")}function z(O){return!!(O&&!C(O)&&typeof O.readable==="object"&&typeof O.writable==="object")}function P(O){return w(O)||F(O)||z(O)}function L(O,m){if(O==null)return!1;if(m===!0)return typeof O[$]==="function";if(m===!1)return typeof O[X]==="function";return typeof O[$]==="function"||typeof O[X]==="function"}function I(O){if(!C(O))return null;let{_writableState:m,_readableState:$0}=O,_=m||$0;return!!(O.destroyed||O[Y]||_!==null&&_!==void 0&&_.destroyed)}function g(O){if(!H(O))return null;if(O.writableEnded===!0)return!0;let m=O._writableState;if(m!==null&&m!==void 0&&m.errored)return!1;if(typeof(m===null||m===void 0?void 0:m.ended)!=="boolean")return null;return m.ended}function c(O,m){if(!H(O))return null;if(O.writableFinished===!0)return!0;let $0=O._writableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.finished)!=="boolean")return null;return!!($0.finished||m===!1&&$0.ended===!0&&$0.length===0)}function l(O){if(!W(O))return null;if(O.readableEnded===!0)return!0;let m=O._readableState;if(!m||m.errored)return!1;if(typeof(m===null||m===void 0?void 0:m.ended)!=="boolean")return null;return m.ended}function f(O,m){if(!W(O))return null;let $0=O._readableState;if($0!==null&&$0!==void 0&&$0.errored)return!1;if(typeof($0===null||$0===void 0?void 0:$0.endEmitted)!=="boolean")return null;return!!($0.endEmitted||m===!1&&$0.ended===!0&&$0.length===0)}function v(O){if(O&&O[V]!=null)return O[V];if(typeof(O===null||O===void 0?void 0:O.readable)!=="boolean")return null;if(I(O))return!1;return W(O)&&O.readable&&!f(O)}function T(O){if(O&&O[U]!=null)return O[U];if(typeof(O===null||O===void 0?void 0:O.writable)!=="boolean")return null;if(I(O))return!1;return H(O)&&O.writable&&!g(O)}function N(O,m){if(!C(O))return null;if(I(O))return!0;if((m===null||m===void 0?void 0:m.readable)!==!1&&v(O))return!1;if((m===null||m===void 0?void 0:m.writable)!==!1&&T(O))return!1;return!0}function E(O){var m,$0;if(!C(O))return null;if(O.writableErrored)return O.writableErrored;return(m=($0=O._writableState)===null||$0===void 0?void 0:$0.errored)!==null&&m!==void 0?m:null}function x(O){var m,$0;if(!C(O))return null;if(O.readableErrored)return O.readableErrored;return(m=($0=O._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&m!==void 0?m:null}function k(O){if(!C(O))return null;if(typeof O.closed==="boolean")return O.closed;let{_writableState:m,_readableState:$0}=O;if(typeof(m===null||m===void 0?void 0:m.closed)==="boolean"||typeof($0===null||$0===void 0?void 0:$0.closed)==="boolean")return(m===null||m===void 0?void 0:m.closed)||($0===null||$0===void 0?void 0:$0.closed);if(typeof O._closed==="boolean"&&o(O))return O._closed;return null}function o(O){return typeof O._closed==="boolean"&&typeof O._defaultKeepAlive==="boolean"&&typeof O._removedConnection==="boolean"&&typeof O._removedContLen==="boolean"}function e(O){return typeof O._sent100==="boolean"&&o(O)}function X0(O){var m;return typeof O._consuming==="boolean"&&typeof O._dumped==="boolean"&&((m=O.req)===null||m===void 0?void 0:m.upgradeOrConnect)===void 0}function W0(O){if(!C(O))return null;let{_writableState:m,_readableState:$0}=O,_=m||$0;return!_&&e(O)||!!(_&&_.autoDestroy&&_.emitClose&&_.closed===!1)}function p(O){var m;return!!(O&&((m=O[B])!==null&&m!==void 0?m:O.readableDidRead||O.readableAborted))}function V0(O){var m,$0,_,Y0,G0,H0,Z0,b,u,a;return!!(O&&((m=($0=(_=(Y0=(G0=(H0=O[q])!==null&&H0!==void 0?H0:O.readableErrored)!==null&&G0!==void 0?G0:O.writableErrored)!==null&&Y0!==void 0?Y0:(Z0=O._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&_!==void 0?_:(b=O._writableState)===null||b===void 0?void 0:b.errorEmitted)!==null&&$0!==void 0?$0:(u=O._readableState)===null||u===void 0?void 0:u.errored)!==null&&m!==void 0?m:(a=O._writableState)===null||a===void 0?void 0:a.errored))}J.exports={isDestroyed:I,kIsDestroyed:Y,isDisturbed:p,kIsDisturbed:B,isErrored:V0,kIsErrored:q,isReadable:v,kIsReadable:V,kIsClosedPromise:G,kControllerErrorFunction:j,kIsWritable:U,isClosed:k,isDuplexNodeStream:S,isFinished:N,isIterable:L,isReadableNodeStream:W,isReadableStream:w,isReadableEnded:l,isReadableFinished:f,isReadableErrored:x,isNodeStream:C,isWebStream:P,isWritable:T,isWritableNodeStream:H,isWritableStream:F,isWritableEnded:g,isWritableFinished:c,isWritableErrored:E,isServerRequest:X0,isServerResponse:e,willEmitClose:W0,isTransformStream:z}}),k2=M0((Q,J)=>{var $=o2(),{AbortError:X,codes:K}=g0(),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_PREMATURE_CLOSE:q}=K,{kEmptyObject:V,once:U}=_0(),{validateAbortSignal:B,validateFunction:G,validateObject:j,validateBoolean:W}=a1(),{Promise:H,PromisePrototypeThen:S,SymbolDispose:C}=O0(),{isClosed:w,isReadable:F,isReadableNodeStream:z,isReadableStream:P,isReadableFinished:L,isReadableErrored:I,isWritable:g,isWritableNodeStream:c,isWritableStream:l,isWritableFinished:f,isWritableErrored:v,isNodeStream:T,willEmitClose:N,kIsClosedPromise:E}=w2(),x;function k(p){return p.setHeader&&typeof p.abort==="function"}var o=()=>{};function e(p,V0,O){var m,$0;if(arguments.length===2)O=V0,V0=V;else if(V0==null)V0=V;else j(V0,"options");if(G(O,"callback"),B(V0.signal,"options.signal"),O=U(O),P(p)||l(p))return X0(p,V0,O);if(!T(p))throw new Y("stream",["ReadableStream","WritableStream","Stream"],p);let _=(m=V0.readable)!==null&&m!==void 0?m:z(p),Y0=($0=V0.writable)!==null&&$0!==void 0?$0:c(p),G0=p._writableState,H0=p._readableState,Z0=()=>{if(!p.writable)a()},b=N(p)&&z(p)===_&&c(p)===Y0,u=f(p,!1),a=()=>{if(u=!0,p.destroyed)b=!1;if(b&&(!p.readable||_))return;if(!_||U0)O.call(p)},U0=L(p,!1),z0=()=>{if(U0=!0,p.destroyed)b=!1;if(b&&(!p.writable||Y0))return;if(!Y0||u)O.call(p)},D=(A)=>{O.call(p,A)},R=w(p),h=()=>{R=!0;let A=v(p)||I(p);if(A&&typeof A!=="boolean")return O.call(p,A);if(_&&!U0&&z(p,!0)){if(!L(p,!1))return O.call(p,new q)}if(Y0&&!u){if(!f(p,!1))return O.call(p,new q)}O.call(p)},r=()=>{R=!0;let A=v(p)||I(p);if(A&&typeof A!=="boolean")return O.call(p,A);O.call(p)},t=()=>{p.req.on("finish",a)};if(k(p)){if(p.on("complete",a),!b)p.on("abort",h);if(p.req)t();else p.on("request",t)}else if(Y0&&!G0)p.on("end",Z0),p.on("close",Z0);if(!b&&typeof p.aborted==="boolean")p.on("aborted",h);if(p.on("end",z0),p.on("finish",a),V0.error!==!1)p.on("error",D);if(p.on("close",h),R)$.nextTick(h);else if(G0!==null&&G0!==void 0&&G0.errorEmitted||H0!==null&&H0!==void 0&&H0.errorEmitted){if(!b)$.nextTick(r)}else if(!_&&(!b||F(p))&&(u||g(p)===!1))$.nextTick(r);else if(!Y0&&(!b||g(p))&&(U0||F(p)===!1))$.nextTick(r);else if(H0&&p.req&&p.aborted)$.nextTick(r);let s=()=>{if(O=o,p.removeListener("aborted",h),p.removeListener("complete",a),p.removeListener("abort",h),p.removeListener("request",t),p.req)p.req.removeListener("finish",a);p.removeListener("end",Z0),p.removeListener("close",Z0),p.removeListener("finish",a),p.removeListener("end",z0),p.removeListener("error",D),p.removeListener("close",h)};if(V0.signal&&!R){let A=()=>{let d=O;s(),d.call(p,new X(void 0,{cause:V0.signal.reason}))};if(V0.signal.aborted)$.nextTick(A);else{x=x||_0().addAbortListener;let d=x(V0.signal,A),Q0=O;O=U((...i)=>{d[C](),Q0.apply(p,i)})}}return s}function X0(p,V0,O){let m=!1,$0=o;if(V0.signal)if($0=()=>{m=!0,O.call(p,new X(void 0,{cause:V0.signal.reason}))},V0.signal.aborted)$.nextTick($0);else{x=x||_0().addAbortListener;let Y0=x(V0.signal,$0),G0=O;O=U((...H0)=>{Y0[C](),G0.apply(p,H0)})}let _=(...Y0)=>{if(!m)$.nextTick(()=>O.apply(p,Y0))};return S(p[E].promise,_,_),o}function W0(p,V0){var O;let m=!1;if(V0===null)V0=V;if((O=V0)!==null&&O!==void 0&&O.cleanup)W(V0.cleanup,"cleanup"),m=V0.cleanup;return new H(($0,_)=>{let Y0=e(p,V0,(G0)=>{if(m)Y0();if(G0)_(G0);else $0()})})}J.exports=e,J.exports.finished=W0}),P1=M0((Q,J)=>{var $=o2(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:K},AbortError:Y}=g0(),{Symbol:q}=O0(),{kIsDestroyed:V,isDestroyed:U,isFinished:B,isServerRequest:G}=w2(),j=q("kDestroy"),W=q("kConstruct");function H(N,E,x){if(N){if(N.stack,E&&!E.errored)E.errored=N;if(x&&!x.errored)x.errored=N}}function S(N,E){let x=this._readableState,k=this._writableState,o=k||x;if(k!==null&&k!==void 0&&k.destroyed||x!==null&&x!==void 0&&x.destroyed){if(typeof E==="function")E();return this}if(H(N,k,x),k)k.destroyed=!0;if(x)x.destroyed=!0;if(!o.constructed)this.once(j,function(e){C(this,X(e,N),E)});else C(this,N,E);return this}function C(N,E,x){let k=!1;function o(e){if(k)return;k=!0;let{_readableState:X0,_writableState:W0}=N;if(H(e,W0,X0),W0)W0.closed=!0;if(X0)X0.closed=!0;if(typeof x==="function")x(e);if(e)$.nextTick(w,N,e);else $.nextTick(F,N)}try{N._destroy(E||null,o)}catch(e){o(e)}}function w(N,E){z(N,E),F(N)}function F(N){let{_readableState:E,_writableState:x}=N;if(x)x.closeEmitted=!0;if(E)E.closeEmitted=!0;if(x!==null&&x!==void 0&&x.emitClose||E!==null&&E!==void 0&&E.emitClose)N.emit("close")}function z(N,E){let{_readableState:x,_writableState:k}=N;if(k!==null&&k!==void 0&&k.errorEmitted||x!==null&&x!==void 0&&x.errorEmitted)return;if(k)k.errorEmitted=!0;if(x)x.errorEmitted=!0;N.emit("error",E)}function P(){let N=this._readableState,E=this._writableState;if(N)N.constructed=!0,N.closed=!1,N.closeEmitted=!1,N.destroyed=!1,N.errored=null,N.errorEmitted=!1,N.reading=!1,N.ended=N.readable===!1,N.endEmitted=N.readable===!1;if(E)E.constructed=!0,E.destroyed=!1,E.closed=!1,E.closeEmitted=!1,E.errored=null,E.errorEmitted=!1,E.finalCalled=!1,E.prefinished=!1,E.ended=E.writable===!1,E.ending=E.writable===!1,E.finished=E.writable===!1}function L(N,E,x){let{_readableState:k,_writableState:o}=N;if(o!==null&&o!==void 0&&o.destroyed||k!==null&&k!==void 0&&k.destroyed)return this;if(k!==null&&k!==void 0&&k.autoDestroy||o!==null&&o!==void 0&&o.autoDestroy)N.destroy(E);else if(E){if(E.stack,o&&!o.errored)o.errored=E;if(k&&!k.errored)k.errored=E;if(x)$.nextTick(z,N,E);else z(N,E)}}function I(N,E){if(typeof N._construct!=="function")return;let{_readableState:x,_writableState:k}=N;if(x)x.constructed=!1;if(k)k.constructed=!1;if(N.once(W,E),N.listenerCount(W)>1)return;$.nextTick(g,N)}function g(N){let E=!1;function x(k){if(E){L(N,k!==null&&k!==void 0?k:new K);return}E=!0;let{_readableState:o,_writableState:e}=N,X0=e||o;if(o)o.constructed=!0;if(e)e.constructed=!0;if(X0.destroyed)N.emit(j,k);else if(k)L(N,k,!0);else $.nextTick(c,N)}try{N._construct((k)=>{$.nextTick(x,k)})}catch(k){$.nextTick(x,k)}}function c(N){N.emit(W)}function l(N){return(N===null||N===void 0?void 0:N.setHeader)&&typeof N.abort==="function"}function f(N){N.emit("close")}function v(N,E){N.emit("error",E),$.nextTick(f,N)}function T(N,E){if(!N||U(N))return;if(!E&&!B(N))E=new Y;if(G(N))N.socket=null,N.destroy(E);else if(l(N))N.abort();else if(l(N.req))N.req.abort();else if(typeof N.destroy==="function")N.destroy(E);else if(typeof N.close==="function")N.close();else if(E)$.nextTick(v,N,E);else $.nextTick(f,N);if(!N.destroyed)N[V]=!0}J.exports={construct:I,destroyer:T,destroy:S,undestroy:P,errorOrDestroy:L}}),n8=M0((Q,J)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:X}=O0(),{EventEmitter:K}=(r1(),u0(n1));function Y(V){K.call(this,V)}X(Y.prototype,K.prototype),X(Y,K),Y.prototype.pipe=function(V,U){let B=this;function G(F){if(V.writable&&V.write(F)===!1&&B.pause)B.pause()}B.on("data",G);function j(){if(B.readable&&B.resume)B.resume()}if(V.on("drain",j),!V._isStdio&&(!U||U.end!==!1))B.on("end",H),B.on("close",S);let W=!1;function H(){if(W)return;W=!0,V.end()}function S(){if(W)return;if(W=!0,typeof V.destroy==="function")V.destroy()}function C(F){if(w(),K.listenerCount(this,"error")===0)this.emit("error",F)}q(B,"error",C),q(V,"error",C);function w(){B.removeListener("data",G),V.removeListener("drain",j),B.removeListener("end",H),B.removeListener("close",S),B.removeListener("error",C),V.removeListener("error",C),B.removeListener("end",w),B.removeListener("close",w),V.removeListener("close",w)}return B.on("end",w),B.on("close",w),V.on("close",w),V.emit("pipe",B),V};function q(V,U,B){if(typeof V.prependListener==="function")return V.prependListener(U,B);if(!V._events||!V._events[U])V.on(U,B);else if($(V._events[U]))V._events[U].unshift(B);else V._events[U]=[B,V._events[U]]}J.exports={Stream:Y,prependListener:q}}),g6=M0((Q,J)=>{var{SymbolDispose:$}=O0(),{AbortError:X,codes:K}=g0(),{isNodeStream:Y,isWebStream:q,kControllerErrorFunction:V}=w2(),U=k2(),{ERR_INVALID_ARG_TYPE:B}=K,G,j=(W,H)=>{if(typeof W!=="object"||!("aborted"in W))throw new B(H,"AbortSignal",W)};J.exports.addAbortSignal=function(W,H){if(j(W,"signal"),!Y(H)&&!q(H))throw new B("stream",["ReadableStream","WritableStream","Stream"],H);return J.exports.addAbortSignalNoValidate(W,H)},J.exports.addAbortSignalNoValidate=function(W,H){if(typeof W!=="object"||!("aborted"in W))return H;let S=Y(H)?()=>{H.destroy(new X(void 0,{cause:W.reason}))}:()=>{H[V](new X(void 0,{cause:W.reason}))};if(W.aborted)S();else{G=G||_0().addAbortListener;let C=G(W,S);U(H,C[$])}return H}}),aY=M0((Q,J)=>{var{StringPrototypeSlice:$,SymbolIterator:X,TypedArrayPrototypeSet:K,Uint8Array:Y}=O0(),{Buffer:q}=(L2(),u0(M2)),{inspect:V}=_0();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(U){let B={data:U,next:null};if(this.length>0)this.tail.next=B;else this.head=B;this.tail=B,++this.length}unshift(U){let B={data:U,next:this.head};if(this.length===0)this.tail=B;this.head=B,++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 B=this.head,G=""+B.data;while((B=B.next)!==null)G+=U+B.data;return G}concat(U){if(this.length===0)return q.alloc(0);let B=q.allocUnsafe(U>>>0),G=this.head,j=0;while(G)K(B,G.data,j),j+=G.data.length,G=G.next;return B}consume(U,B){let G=this.head.data;if(U<G.length){let j=G.slice(0,U);return this.head.data=G.slice(U),j}if(U===G.length)return this.shift();return B?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 B="",G=this.head,j=0;do{let W=G.data;if(U>W.length)B+=W,U-=W.length;else{if(U===W.length)if(B+=W,++j,G.next)this.head=G.next;else this.head=this.tail=null;else B+=$(W,0,U),this.head=G,G.data=$(W,U);break}++j}while((G=G.next)!==null);return this.length-=j,B}_getBuffer(U){let B=q.allocUnsafe(U),G=U,j=this.head,W=0;do{let H=j.data;if(U>H.length)K(B,H,G-U),U-=H.length;else{if(U===H.length)if(K(B,H,G-U),++W,j.next)this.head=j.next;else this.head=this.tail=null;else K(B,new Y(H.buffer,H.byteOffset,U),G-U),this.head=j,j.data=H.slice(U);break}++W}while((j=j.next)!==null);return this.length-=W,B}[Symbol.for("nodejs.util.inspect.custom")](U,B){return V(this,{...B,depth:0,customInspect:!1})}}}),x6=M0((Q,J)=>{var{MathFloor:$,NumberIsInteger:X}=O0(),{validateInteger:K}=a1(),{ERR_INVALID_ARG_VALUE:Y}=g0().codes,q=16384,V=16;function U(W,H,S){return W.highWaterMark!=null?W.highWaterMark:H?W[S]:null}function B(W){return W?V:q}function G(W,H){if(K(H,"value",0),W)V=H;else q=H}function j(W,H,S,C){let w=U(H,C,S);if(w!=null){if(!X(w)||w<0){let F=C?`options.${S}`:"options.highWaterMark";throw new Y(F,w)}return $(w)}return B(W.objectMode)}J.exports={getHighWaterMark:j,getDefaultHighWaterMark:B,setDefaultHighWaterMark:G}}),sY=M0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(L2(),u0(M2)),X=$.Buffer;function K(q,V){for(var U in q)V[U]=q[U]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)J.exports=$;else K($,Q),Q.Buffer=Y;function Y(q,V,U){return X(q,V,U)}Y.prototype=Object.create(X.prototype),K(X,Y),Y.from=function(q,V,U){if(typeof q==="number")throw TypeError("Argument must not be a number");return X(q,V,U)},Y.alloc=function(q,V,U){if(typeof q!=="number")throw TypeError("Argument must be a number");var B=X(q);if(V!==void 0)if(typeof U==="string")B.fill(V,U);else B.fill(V);else B.fill(0);return B},Y.allocUnsafe=function(q){if(typeof q!=="number")throw TypeError("Argument must be a number");return X(q)},Y.allocUnsafeSlow=function(q){if(typeof q!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(q)}}),tY=M0((Q)=>{var J=sY().Buffer,$=J.isEncoding||function(z){switch(z=""+z,z&&z.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function X(z){if(!z)return"utf8";var P;while(!0)switch(z){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return z;default:if(P)return;z=(""+z).toLowerCase(),P=!0}}function K(z){var P=X(z);if(typeof P!=="string"&&(J.isEncoding===$||!$(z)))throw Error("Unknown encoding: "+z);return P||z}Q.StringDecoder=Y;function Y(z){this.encoding=K(z);var P;switch(this.encoding){case"utf16le":this.text=W,this.end=H,P=4;break;case"utf8":this.fillLast=B,P=4;break;case"base64":this.text=S,this.end=C,P=3;break;default:this.write=w,this.end=F;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(P)}Y.prototype.write=function(z){if(z.length===0)return"";var P,L;if(this.lastNeed){if(P=this.fillLast(z),P===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;if(L<z.length)return P?P+this.text(z,L):this.text(z,L);return P||""},Y.prototype.end=j,Y.prototype.text=G,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 q(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 V(z,P,L){var I=P.length-1;if(I<L)return 0;var g=q(P[I]);if(g>=0){if(g>0)z.lastNeed=g-1;return g}if(--I<L||g===-2)return 0;if(g=q(P[I]),g>=0){if(g>0)z.lastNeed=g-2;return g}if(--I<L||g===-2)return 0;if(g=q(P[I]),g>=0){if(g>0)if(g===2)g=0;else z.lastNeed=g-3;return g}return 0}function U(z,P,L){if((P[0]&192)!==128)return z.lastNeed=0,"�";if(z.lastNeed>1&&P.length>1){if((P[1]&192)!==128)return z.lastNeed=1,"�";if(z.lastNeed>2&&P.length>2){if((P[2]&192)!==128)return z.lastNeed=2,"�"}}}function B(z){var P=this.lastTotal-this.lastNeed,L=U(this,z,P);if(L!==void 0)return L;if(this.lastNeed<=z.length)return z.copy(this.lastChar,P,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);z.copy(this.lastChar,P,0,z.length),this.lastNeed-=z.length}function G(z,P){var L=V(this,z,P);if(!this.lastNeed)return z.toString("utf8",P);this.lastTotal=L;var I=z.length-(L-this.lastNeed);return z.copy(this.lastChar,0,I),z.toString("utf8",P,I)}function j(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+"�";return P}function W(z,P){if((z.length-P)%2===0){var L=z.toString("utf16le",P);if(L){var I=L.charCodeAt(L.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=z[z.length-1],z.toString("utf16le",P,z.length-1)}function H(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return P+this.lastChar.toString("utf16le",0,L)}return P}function S(z,P){var L=(z.length-P)%3;if(L===0)return z.toString("base64",P);if(this.lastNeed=3-L,this.lastTotal=3,L===1)this.lastChar[0]=z[z.length-1];else this.lastChar[0]=z[z.length-2],this.lastChar[1]=z[z.length-1];return z.toString("base64",P,z.length-L)}function C(z){var P=z&&z.length?this.write(z):"";if(this.lastNeed)return P+this.lastChar.toString("base64",0,3-this.lastNeed);return P}function w(z){return z.toString(this.encoding)}function F(z){return z&&z.length?this.write(z):""}}),i7=M0((Q,J)=>{var $=o2(),{PromisePrototypeThen:X,SymbolAsyncIterator:K,SymbolIterator:Y}=O0(),{Buffer:q}=(L2(),u0(M2)),{ERR_INVALID_ARG_TYPE:V,ERR_STREAM_NULL_VALUES:U}=g0().codes;function B(G,j,W){let H;if(typeof j==="string"||j instanceof q)return new G({objectMode:!0,...W,read(){this.push(j),this.push(null)}});let S;if(j&&j[K])S=!0,H=j[K]();else if(j&&j[Y])S=!1,H=j[Y]();else throw new V("iterable",["Iterable"],j);let C=new G({objectMode:!0,highWaterMark:1,...W}),w=!1;C._read=function(){if(!w)w=!0,z()},C._destroy=function(P,L){X(F(P),()=>$.nextTick(L,P),(I)=>$.nextTick(L,I||P))};async function F(P){let L=P!==void 0&&P!==null,I=typeof H.throw==="function";if(L&&I){let{value:g,done:c}=await H.throw(P);if(await g,c)return}if(typeof H.return==="function"){let{value:g}=await H.return();await g}}async function z(){for(;;){try{let{value:P,done:L}=S?await H.next():H.next();if(L)C.push(null);else{let I=P&&typeof P.then==="function"?await P:P;if(I===null)throw w=!1,new U;else if(C.push(I))continue;else w=!1}}catch(P){C.destroy(P)}break}}return C}J.exports=B}),y6=M0((Q,J)=>{var $=o2(),{ArrayPrototypeIndexOf:X,NumberIsInteger:K,NumberIsNaN:Y,NumberParseInt:q,ObjectDefineProperties:V,ObjectKeys:U,ObjectSetPrototypeOf:B,Promise:G,SafeSet:j,SymbolAsyncDispose:W,SymbolAsyncIterator:H,Symbol:S}=O0();J.exports=i,i.ReadableState=Q0;var{EventEmitter:C}=(r1(),u0(n1)),{Stream:w,prependListener:F}=n8(),{Buffer:z}=(L2(),u0(M2)),{addAbortSignal:P}=g6(),L=k2(),I=_0().debuglog("stream",(Z)=>{I=Z}),g=aY(),c=P1(),{getHighWaterMark:l,getDefaultHighWaterMark:f}=x6(),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:T,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_OUT_OF_RANGE:E,ERR_STREAM_PUSH_AFTER_EOF:x,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:k},AbortError:o}=g0(),{validateObject:e}=a1(),X0=S("kPaused"),{StringDecoder:W0}=tY(),p=i7();B(i.prototype,w.prototype),B(i,w);var V0=()=>{},{errorOrDestroy:O}=c,m=1,$0=2,_=4,Y0=8,G0=16,H0=32,Z0=64,b=128,u=256,a=512,U0=1024,z0=2048,D=4096,R=8192,h=16384,r=32768,t=65536,s=131072,A=262144;function d(Z){return{enumerable:!1,get(){return(this.state&Z)!==0},set(M){if(M)this.state|=Z;else this.state&=~Z}}}V(Q0.prototype,{objectMode:d(m),ended:d($0),endEmitted:d(_),reading:d(Y0),constructed:d(G0),sync:d(H0),needReadable:d(Z0),emittedReadable:d(b),readableListening:d(u),resumeScheduled:d(a),errorEmitted:d(U0),emitClose:d(z0),autoDestroy:d(D),destroyed:d(R),closed:d(h),closeEmitted:d(r),multiAwaitDrain:d(t),readingMore:d(s),dataEmitted:d(A)});function Q0(Z,M,n){if(typeof n!=="boolean")n=M instanceof F2();if(this.state=z0|D|G0|H0,Z&&Z.objectMode)this.state|=m;if(n&&Z&&Z.readableObjectMode)this.state|=m;if(this.highWaterMark=Z?l(this,Z,"readableHighWaterMark",n):f(!1),this.buffer=new g,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&=~D;if(this.errored=null,this.defaultEncoding=Z&&Z.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,Z&&Z.encoding)this.decoder=new W0(Z.encoding),this.encoding=Z.encoding}function i(Z){if(!(this instanceof i))return new i(Z);let M=this instanceof F2();if(this._readableState=new Q0(Z,this,M),Z){if(typeof Z.read==="function")this._read=Z.read;if(typeof Z.destroy==="function")this._destroy=Z.destroy;if(typeof Z.construct==="function")this._construct=Z.construct;if(Z.signal&&!M)P(Z.signal,this)}w.call(this,Z),c.construct(this,()=>{if(this._readableState.needReadable)z1(this,this._readableState)})}i.prototype.destroy=c.destroy,i.prototype._undestroy=c.undestroy,i.prototype._destroy=function(Z,M){M(Z)},i.prototype[C.captureRejectionSymbol]=function(Z){this.destroy(Z)},i.prototype[W]=function(){let Z;if(!this.destroyed)Z=this.readableEnded?null:new o,this.destroy(Z);return new G((M,n)=>L(this,(J0)=>J0&&J0!==Z?n(J0):M(null)))},i.prototype.push=function(Z,M){return q0(this,Z,M,!1)},i.prototype.unshift=function(Z,M){return q0(this,Z,M,!0)};function q0(Z,M,n,J0){I("readableAddChunk",M);let K0=Z._readableState,S0;if((K0.state&m)===0){if(typeof M==="string"){if(n=n||K0.defaultEncoding,K0.encoding!==n)if(J0&&K0.encoding)M=z.from(M,n).toString(K0.encoding);else M=z.from(M,n),n=""}else if(M instanceof z)n="";else if(w._isUint8Array(M))M=w._uint8ArrayToBuffer(M),n="";else if(M!=null)S0=new T("chunk",["string","Buffer","Uint8Array"],M)}if(S0)O(Z,S0);else if(M===null)K0.state&=~Y0,E0(Z,K0);else if((K0.state&m)!==0||M&&M.length>0)if(J0)if((K0.state&_)!==0)O(Z,new k);else if(K0.destroyed||K0.errored)return!1;else L0(Z,K0,M,!0);else if(K0.ended)O(Z,new x);else if(K0.destroyed||K0.errored)return!1;else if(K0.state&=~Y0,K0.decoder&&!n)if(M=K0.decoder.write(M),K0.objectMode||M.length!==0)L0(Z,K0,M,!1);else z1(Z,K0);else L0(Z,K0,M,!1);else if(!J0)K0.state&=~Y0,z1(Z,K0);return!K0.ended&&(K0.length<K0.highWaterMark||K0.length===0)}function L0(Z,M,n,J0){if(M.flowing&&M.length===0&&!M.sync&&Z.listenerCount("data")>0){if((M.state&t)!==0)M.awaitDrainWriters.clear();else M.awaitDrainWriters=null;M.dataEmitted=!0,Z.emit("data",n)}else{if(M.length+=M.objectMode?1:n.length,J0)M.buffer.unshift(n);else M.buffer.push(n);if((M.state&Z0)!==0)h0(Z)}z1(Z,M)}i.prototype.isPaused=function(){let Z=this._readableState;return Z[X0]===!0||Z.flowing===!1},i.prototype.setEncoding=function(Z){let M=new W0(Z);this._readableState.decoder=M,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,J0="";for(let K0 of n)J0+=M.write(K0);if(n.clear(),J0!=="")n.push(J0);return this._readableState.length=J0.length,this};var d0=1073741824;function l0(Z){if(Z>d0)throw new E("size","<= 1GiB",Z);else Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++;return Z}function p2(Z,M){if(Z<=0||M.length===0&&M.ended)return 0;if((M.state&m)!==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}i.prototype.read=function(Z){if(I("read",Z),Z===void 0)Z=NaN;else if(!K(Z))Z=q(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(I("read: emitReadable",M.length,M.ended),M.length===0&&M.ended)O8(this);else h0(this);return null}if(Z=p2(Z,M),Z===0&&M.ended){if(M.length===0)O8(this);return null}let J0=(M.state&Z0)!==0;if(I("need readable",J0),M.length===0||M.length-Z<M.highWaterMark)J0=!0,I("length less than watermark",J0);if(M.ended||M.reading||M.destroyed||M.errored||!M.constructed)J0=!1,I("reading, ended or constructing",J0);else if(J0){if(I("do read"),M.state|=Y0|H0,M.length===0)M.state|=Z0;try{this._read(M.highWaterMark)}catch(S0){O(this,S0)}if(M.state&=~H0,!M.reading)Z=p2(n,M)}let K0;if(Z>0)K0=w4(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)O8(this)}if(K0!==null&&!M.errorEmitted&&!M.closeEmitted)M.dataEmitted=!0,this.emit("data",K0);return K0};function E0(Z,M){if(I("onEofChunk"),M.ended)return;if(M.decoder){let n=M.decoder.end();if(n&&n.length)M.buffer.push(n),M.length+=M.objectMode?1:n.length}if(M.ended=!0,M.sync)h0(Z);else M.needReadable=!1,M.emittedReadable=!0,U1(Z)}function h0(Z){let M=Z._readableState;if(I("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,!M.emittedReadable)I("emitReadable",M.flowing),M.emittedReadable=!0,$.nextTick(U1,Z)}function U1(Z){let M=Z._readableState;if(I("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,L4(Z)}function z1(Z,M){if(!M.readingMore&&M.constructed)M.readingMore=!0,$.nextTick(X2,Z,M)}function X2(Z,M){while(!M.reading&&!M.ended&&(M.length<M.highWaterMark||M.flowing&&M.length===0)){let n=M.length;if(I("maybeReadMore read 0"),Z.read(0),n===M.length)break}M.readingMore=!1}i.prototype._read=function(Z){throw new N("_read()")},i.prototype.pipe=function(Z,M){let n=this,J0=this._readableState;if(J0.pipes.length===1){if(!J0.multiAwaitDrain)J0.multiAwaitDrain=!0,J0.awaitDrainWriters=new j(J0.awaitDrainWriters?[J0.awaitDrainWriters]:[])}J0.pipes.push(Z),I("pipe count=%d opts=%j",J0.pipes.length,M);let K0=(!M||M.end!==!1)&&Z!==$.stdout&&Z!==$.stderr?i0:_1;if(J0.endEmitted)$.nextTick(K0);else n.once("end",K0);Z.on("unpipe",S0);function S0(m2,j2){if(I("onunpipe"),m2===n){if(j2&&j2.hasUnpiped===!1)j2.hasUnpiped=!0,xX()}}function i0(){I("onend"),Z.end()}let c2,O4=!1;function xX(){if(I("cleanup"),Z.removeListener("close",D8),Z.removeListener("finish",A8),c2)Z.removeListener("drain",c2);if(Z.removeListener("error",C8),Z.removeListener("unpipe",S0),n.removeListener("end",i0),n.removeListener("end",_1),n.removeListener("data",C4),O4=!0,c2&&J0.awaitDrainWriters&&(!Z._writableState||Z._writableState.needDrain))c2()}function N4(){if(!O4){if(J0.pipes.length===1&&J0.pipes[0]===Z)I("false write response, pause",0),J0.awaitDrainWriters=Z,J0.multiAwaitDrain=!1;else if(J0.pipes.length>1&&J0.pipes.includes(Z))I("false write response, pause",J0.awaitDrainWriters.size),J0.awaitDrainWriters.add(Z);n.pause()}if(!c2)c2=RX(n,Z),Z.on("drain",c2)}n.on("data",C4);function C4(m2){I("ondata");let j2=Z.write(m2);if(I("dest.write",j2),j2===!1)N4()}function C8(m2){if(I("onerror",m2),_1(),Z.removeListener("error",C8),Z.listenerCount("error")===0){let j2=Z._writableState||Z._readableState;if(j2&&!j2.errorEmitted)O(Z,m2);else Z.emit("error",m2)}}F(Z,"error",C8);function D8(){Z.removeListener("finish",A8),_1()}Z.once("close",D8);function A8(){I("onfinish"),Z.removeListener("close",D8),_1()}Z.once("finish",A8);function _1(){I("unpipe"),n.unpipe(Z)}if(Z.emit("pipe",n),Z.writableNeedDrain===!0)N4();else if(!J0.flowing)I("pipe resume"),n.resume();return Z};function RX(Z,M){return function(){let n=Z._readableState;if(n.awaitDrainWriters===M)I("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)I("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(M);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&Z.listenerCount("data"))Z.resume()}}i.prototype.unpipe=function(Z){let M=this._readableState,n={hasUnpiped:!1};if(M.pipes.length===0)return this;if(!Z){let K0=M.pipes;M.pipes=[],this.pause();for(let S0=0;S0<K0.length;S0++)K0[S0].emit("unpipe",this,{hasUnpiped:!1});return this}let J0=X(M.pipes,Z);if(J0===-1)return this;if(M.pipes.splice(J0,1),M.pipes.length===0)this.pause();return Z.emit("unpipe",this,n),this},i.prototype.on=function(Z,M){let n=w.prototype.on.call(this,Z,M),J0=this._readableState;if(Z==="data"){if(J0.readableListening=this.listenerCount("readable")>0,J0.flowing!==!1)this.resume()}else if(Z==="readable"){if(!J0.endEmitted&&!J0.readableListening){if(J0.readableListening=J0.needReadable=!0,J0.flowing=!1,J0.emittedReadable=!1,I("on readable",J0.length,J0.reading),J0.length)h0(this);else if(!J0.reading)$.nextTick(TX,this)}}return n},i.prototype.addListener=i.prototype.on,i.prototype.removeListener=function(Z,M){let n=w.prototype.removeListener.call(this,Z,M);if(Z==="readable")$.nextTick(M4,this);return n},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(Z){let M=w.prototype.removeAllListeners.apply(this,arguments);if(Z==="readable"||Z===void 0)$.nextTick(M4,this);return M};function M4(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 TX(Z){I("readable nexttick read 0"),Z.read(0)}i.prototype.resume=function(){let Z=this._readableState;if(!Z.flowing)I("resume"),Z.flowing=!Z.readableListening,kX(this,Z);return Z[X0]=!1,this};function kX(Z,M){if(!M.resumeScheduled)M.resumeScheduled=!0,$.nextTick(EX,Z,M)}function EX(Z,M){if(I("resume",M.reading),!M.reading)Z.read(0);if(M.resumeScheduled=!1,Z.emit("resume"),L4(Z),M.flowing&&!M.reading)Z.read(0)}i.prototype.pause=function(){if(I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)I("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[X0]=!0,this};function L4(Z){let M=Z._readableState;I("flow",M.flowing);while(M.flowing&&Z.read()!==null);}i.prototype.wrap=function(Z){let M=!1;Z.on("data",(J0)=>{if(!this.push(J0)&&Z.pause)M=!0,Z.pause()}),Z.on("end",()=>{this.push(null)}),Z.on("error",(J0)=>{O(this,J0)}),Z.on("close",()=>{this.destroy()}),Z.on("destroy",()=>{this.destroy()}),this._read=()=>{if(M&&Z.resume)M=!1,Z.resume()};let n=U(Z);for(let J0=1;J0<n.length;J0++){let K0=n[J0];if(this[K0]===void 0&&typeof Z[K0]==="function")this[K0]=Z[K0].bind(Z)}return this},i.prototype[H]=function(){return F4(this)},i.prototype.iterator=function(Z){if(Z!==void 0)e(Z,"options");return F4(this,Z)};function F4(Z,M){if(typeof Z.read!=="function")Z=i.wrap(Z,{objectMode:!0});let n=SX(Z,M);return n.stream=Z,n}async function*SX(Z,M){let n=V0;function J0(i0){if(this===Z)n(),n=V0;else n=i0}Z.on("readable",J0);let K0,S0=L(Z,{writable:!1},(i0)=>{K0=i0?v(K0,i0):null,n(),n=V0});try{while(!0){let i0=Z.destroyed?null:Z.read();if(i0!==null)yield i0;else if(K0)throw K0;else if(K0===null)return;else await new G(J0)}}catch(i0){throw K0=v(K0,i0),K0}finally{if((K0||(M===null||M===void 0?void 0:M.destroyOnReturn)!==!1)&&(K0===void 0||Z._readableState.autoDestroy))c.destroyer(Z,null);else Z.off("readable",J0),S0()}}V(i.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}}}),V(Q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[X0]!==!1},set(Z){this[X0]=!!Z}}}),i._fromList=w4;function w4(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 O8(Z){let M=Z._readableState;if(I("endReadable",M.endEmitted),!M.endEmitted)M.ended=!0,$.nextTick(vX,M,Z)}function vX(Z,M){if(I("endReadableNT",Z.endEmitted,Z.length),!Z.errored&&!Z.closeEmitted&&!Z.endEmitted&&Z.length===0){if(Z.endEmitted=!0,M.emit("end"),M.writable&&M.allowHalfOpen===!1)$.nextTick(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()}i.from=function(Z,M){return p(i,Z,M)};var N8;function I4(){if(N8===void 0)N8={};return N8}i.fromWeb=function(Z,M){return I4().newStreamReadableFromReadableStream(Z,M)},i.toWeb=function(Z,M){return I4().newReadableStreamFromStreamReadable(Z,M)},i.wrap=function(Z,M){var n,J0;return new i({objectMode:(n=(J0=Z.readableObjectMode)!==null&&J0!==void 0?J0:Z.objectMode)!==null&&n!==void 0?n:!0,...M,destroy(K0,S0){c.destroyer(Z,K0),S0(K0)}}).wrap(Z)}}),r8=M0((Q,J)=>{var $=o2(),{ArrayPrototypeSlice:X,Error:K,FunctionPrototypeSymbolHasInstance:Y,ObjectDefineProperty:q,ObjectDefineProperties:V,ObjectSetPrototypeOf:U,StringPrototypeToLowerCase:B,Symbol:G,SymbolHasInstance:j}=O0();J.exports=e,e.WritableState=k;var{EventEmitter:W}=(r1(),u0(n1)),H=n8().Stream,{Buffer:S}=(L2(),u0(M2)),C=P1(),{addAbortSignal:w}=g6(),{getHighWaterMark:F,getDefaultHighWaterMark:z}=x6(),{ERR_INVALID_ARG_TYPE:P,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:I,ERR_STREAM_CANNOT_PIPE:g,ERR_STREAM_DESTROYED:c,ERR_STREAM_ALREADY_FINISHED:l,ERR_STREAM_NULL_VALUES:f,ERR_STREAM_WRITE_AFTER_END:v,ERR_UNKNOWN_ENCODING:T}=g0().codes,{errorOrDestroy:N}=C;U(e.prototype,H.prototype),U(e,H);function E(){}var x=G("kOnFinished");function k(D,R,h){if(typeof h!=="boolean")h=R instanceof F2();if(this.objectMode=!!(D&&D.objectMode),h)this.objectMode=this.objectMode||!!(D&&D.writableObjectMode);this.highWaterMark=D?F(this,D,"writableHighWaterMark",h):z(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(D&&D.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=D&&D.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=O.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=!D||D.emitClose!==!1,this.autoDestroy=!D||D.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[x]=[]}function o(D){D.buffered=[],D.bufferedIndex=0,D.allBuffers=!0,D.allNoop=!0}k.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},q(k.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function e(D){let R=this instanceof F2();if(!R&&!Y(e,this))return new e(D);if(this._writableState=new k(D,this,R),D){if(typeof D.write==="function")this._write=D.write;if(typeof D.writev==="function")this._writev=D.writev;if(typeof D.destroy==="function")this._destroy=D.destroy;if(typeof D.final==="function")this._final=D.final;if(typeof D.construct==="function")this._construct=D.construct;if(D.signal)w(D.signal,this)}H.call(this,D),C.construct(this,()=>{let h=this._writableState;if(!h.writing)Y0(this,h);b(this,h)})}q(e,j,{__proto__:null,value:function(D){if(Y(this,D))return!0;if(this!==e)return!1;return D&&D._writableState instanceof k}}),e.prototype.pipe=function(){N(this,new g)};function X0(D,R,h,r){let t=D._writableState;if(typeof h==="function")r=h,h=t.defaultEncoding;else{if(!h)h=t.defaultEncoding;else if(h!=="buffer"&&!S.isEncoding(h))throw new T(h);if(typeof r!=="function")r=E}if(R===null)throw new f;else if(!t.objectMode)if(typeof R==="string"){if(t.decodeStrings!==!1)R=S.from(R,h),h="buffer"}else if(R instanceof S)h="buffer";else if(H._isUint8Array(R))R=H._uint8ArrayToBuffer(R),h="buffer";else throw new P("chunk",["string","Buffer","Uint8Array"],R);let s;if(t.ending)s=new v;else if(t.destroyed)s=new c("write");if(s)return $.nextTick(r,s),N(D,s,!0),s;return t.pendingcb++,W0(D,t,R,h,r)}e.prototype.write=function(D,R,h){return X0(this,D,R,h)===!0},e.prototype.cork=function(){this._writableState.corked++},e.prototype.uncork=function(){let D=this._writableState;if(D.corked){if(D.corked--,!D.writing)Y0(this,D)}},e.prototype.setDefaultEncoding=function(D){if(typeof D==="string")D=B(D);if(!S.isEncoding(D))throw new T(D);return this._writableState.defaultEncoding=D,this};function W0(D,R,h,r,t){let s=R.objectMode?1:h.length;R.length+=s;let A=R.length<R.highWaterMark;if(!A)R.needDrain=!0;if(R.writing||R.corked||R.errored||!R.constructed){if(R.buffered.push({chunk:h,encoding:r,callback:t}),R.allBuffers&&r!=="buffer")R.allBuffers=!1;if(R.allNoop&&t!==E)R.allNoop=!1}else R.writelen=s,R.writecb=t,R.writing=!0,R.sync=!0,D._write(h,r,R.onwrite),R.sync=!1;return A&&!R.errored&&!R.destroyed}function p(D,R,h,r,t,s,A){if(R.writelen=r,R.writecb=A,R.writing=!0,R.sync=!0,R.destroyed)R.onwrite(new c("write"));else if(h)D._writev(t,R.onwrite);else D._write(t,s,R.onwrite);R.sync=!1}function V0(D,R,h,r){--R.pendingcb,r(h),_(R),N(D,h)}function O(D,R){let h=D._writableState,r=h.sync,t=h.writecb;if(typeof t!=="function"){N(D,new I);return}if(h.writing=!1,h.writecb=null,h.length-=h.writelen,h.writelen=0,R){if(R.stack,!h.errored)h.errored=R;if(D._readableState&&!D._readableState.errored)D._readableState.errored=R;if(r)$.nextTick(V0,D,h,R,t);else V0(D,h,R,t)}else{if(h.buffered.length>h.bufferedIndex)Y0(D,h);if(r)if(h.afterWriteTickInfo!==null&&h.afterWriteTickInfo.cb===t)h.afterWriteTickInfo.count++;else h.afterWriteTickInfo={count:1,cb:t,stream:D,state:h},$.nextTick(m,h.afterWriteTickInfo);else $0(D,h,1,t)}}function m({stream:D,state:R,count:h,cb:r}){return R.afterWriteTickInfo=null,$0(D,R,h,r)}function $0(D,R,h,r){if(!R.ending&&!D.destroyed&&R.length===0&&R.needDrain)R.needDrain=!1,D.emit("drain");while(h-- >0)R.pendingcb--,r();if(R.destroyed)_(R);b(D,R)}function _(D){if(D.writing)return;for(let t=D.bufferedIndex;t<D.buffered.length;++t){var R;let{chunk:s,callback:A}=D.buffered[t],d=D.objectMode?1:s.length;D.length-=d,A((R=D.errored)!==null&&R!==void 0?R:new c("write"))}let h=D[x].splice(0);for(let t=0;t<h.length;t++){var r;h[t]((r=D.errored)!==null&&r!==void 0?r:new c("end"))}o(D)}function Y0(D,R){if(R.corked||R.bufferProcessing||R.destroyed||!R.constructed)return;let{buffered:h,bufferedIndex:r,objectMode:t}=R,s=h.length-r;if(!s)return;let A=r;if(R.bufferProcessing=!0,s>1&&D._writev){R.pendingcb-=s-1;let d=R.allNoop?E:(i)=>{for(let q0=A;q0<h.length;++q0)h[q0].callback(i)},Q0=R.allNoop&&A===0?h:X(h,A);Q0.allBuffers=R.allBuffers,p(D,R,!0,R.length,Q0,"",d),o(R)}else{do{let{chunk:d,encoding:Q0,callback:i}=h[A];h[A++]=null;let q0=t?1:d.length;p(D,R,!1,q0,d,Q0,i)}while(A<h.length&&!R.writing);if(A===h.length)o(R);else if(A>256)h.splice(0,A),R.bufferedIndex=0;else R.bufferedIndex=A}R.bufferProcessing=!1}e.prototype._write=function(D,R,h){if(this._writev)this._writev([{chunk:D,encoding:R}],h);else throw new L("_write()")},e.prototype._writev=null,e.prototype.end=function(D,R,h){let r=this._writableState;if(typeof D==="function")h=D,D=null,R=null;else if(typeof R==="function")h=R,R=null;let t;if(D!==null&&D!==void 0){let s=X0(this,D,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 l("end");else if(r.destroyed)t=new c("end");if(typeof h==="function")if(t||r.finished)$.nextTick(h,t);else r[x].push(h);return this};function G0(D){return D.ending&&!D.destroyed&&D.constructed&&D.length===0&&!D.errored&&D.buffered.length===0&&!D.finished&&!D.writing&&!D.errorEmitted&&!D.closeEmitted}function H0(D,R){let h=!1;function r(t){if(h){N(D,t!==null&&t!==void 0?t:I());return}if(h=!0,R.pendingcb--,t){let s=R[x].splice(0);for(let A=0;A<s.length;A++)s[A](t);N(D,t,R.sync)}else if(G0(R))R.prefinished=!0,D.emit("prefinish"),R.pendingcb++,$.nextTick(u,D,R)}R.sync=!0,R.pendingcb++;try{D._final(r)}catch(t){r(t)}R.sync=!1}function Z0(D,R){if(!R.prefinished&&!R.finalCalled)if(typeof D._final==="function"&&!R.destroyed)R.finalCalled=!0,H0(D,R);else R.prefinished=!0,D.emit("prefinish")}function b(D,R,h){if(G0(R)){if(Z0(D,R),R.pendingcb===0){if(h)R.pendingcb++,$.nextTick((r,t)=>{if(G0(t))u(r,t);else t.pendingcb--},D,R);else if(G0(R))R.pendingcb++,u(D,R)}}}function u(D,R){R.pendingcb--,R.finished=!0;let h=R[x].splice(0);for(let r=0;r<h.length;r++)h[r]();if(D.emit("finish"),R.autoDestroy){let r=D._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))D.destroy()}}V(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(D){if(this._writableState)this._writableState.destroyed=D}},writable:{__proto__:null,get(){let D=this._writableState;return!!D&&D.writable!==!1&&!D.destroyed&&!D.errored&&!D.ending&&!D.ended},set(D){if(this._writableState)this._writableState.writable=!!D}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{__proto__:null,get(){let D=this._writableState;if(!D)return!1;return!D.destroyed&&!D.ending&&D.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=C.destroy;e.prototype.destroy=function(D,R){let h=this._writableState;if(!h.destroyed&&(h.bufferedIndex<h.buffered.length||h[x].length))$.nextTick(_,h);return a.call(this,D,R),this},e.prototype._undestroy=C.undestroy,e.prototype._destroy=function(D,R){R(D)},e.prototype[W.captureRejectionSymbol]=function(D){this.destroy(D)};var U0;function z0(){if(U0===void 0)U0={};return U0}e.fromWeb=function(D,R){return z0().newStreamWritableFromWritableStream(D,R)},e.toWeb=function(D){return z0().newWritableStreamFromStreamWritable(D)}}),eY=M0((Q,J)=>{var $=o2(),X=(L2(),u0(M2)),{isReadable:K,isWritable:Y,isIterable:q,isNodeStream:V,isReadableNodeStream:U,isWritableNodeStream:B,isDuplexNodeStream:G,isReadableStream:j,isWritableStream:W}=w2(),H=k2(),{AbortError:S,codes:{ERR_INVALID_ARG_TYPE:C,ERR_INVALID_RETURN_VALUE:w}}=g0(),{destroyer:F}=P1(),z=F2(),P=y6(),L=r8(),{createDeferredPromise:I}=_0(),g=i7(),c=globalThis.Blob||X.Blob,l=typeof c<"u"?function(x){return x instanceof c}:function(x){return!1},f=globalThis.AbortController||o1().AbortController,{FunctionPrototypeCall:v}=O0();class T extends z{constructor(x){super(x);if((x===null||x===void 0?void 0:x.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((x===null||x===void 0?void 0:x.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function x(k,o){if(G(k))return k;if(U(k))return E({readable:k});if(B(k))return E({writable:k});if(V(k))return E({writable:!1,readable:!1});if(j(k))return E({readable:P.fromWeb(k)});if(W(k))return E({writable:L.fromWeb(k)});if(typeof k==="function"){let{value:X0,write:W0,final:p,destroy:V0}=N(k);if(q(X0))return g(T,X0,{objectMode:!0,write:W0,final:p,destroy:V0});let O=X0===null||X0===void 0?void 0:X0.then;if(typeof O==="function"){let m,$0=v(O,X0,(_)=>{if(_!=null)throw new w("nully","body",_)},(_)=>{F(m,_)});return m=new T({objectMode:!0,readable:!1,write:W0,final(_){p(async()=>{try{await $0,$.nextTick(_,null)}catch(Y0){$.nextTick(_,Y0)}})},destroy:V0})}throw new w("Iterable, AsyncIterable or AsyncFunction",o,X0)}if(l(k))return x(k.arrayBuffer());if(q(k))return g(T,k,{objectMode:!0,writable:!1});if(j(k===null||k===void 0?void 0:k.readable)&&W(k===null||k===void 0?void 0:k.writable))return T.fromWeb(k);if(typeof(k===null||k===void 0?void 0:k.writable)==="object"||typeof(k===null||k===void 0?void 0:k.readable)==="object"){let X0=k!==null&&k!==void 0&&k.readable?U(k===null||k===void 0?void 0:k.readable)?k===null||k===void 0?void 0:k.readable:x(k.readable):void 0,W0=k!==null&&k!==void 0&&k.writable?B(k===null||k===void 0?void 0:k.writable)?k===null||k===void 0?void 0:k.writable:x(k.writable):void 0;return E({readable:X0,writable:W0})}let e=k===null||k===void 0?void 0:k.then;if(typeof e==="function"){let X0;return v(e,k,(W0)=>{if(W0!=null)X0.push(W0);X0.push(null)},(W0)=>{F(X0,W0)}),X0=new T({objectMode:!0,writable:!1,read(){}})}throw new C(o,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],k)};function N(x){let{promise:k,resolve:o}=I(),e=new f,X0=e.signal;return{value:x(async function*(){while(!0){let W0=k;k=null;let{chunk:p,done:V0,cb:O}=await W0;if($.nextTick(O),V0)return;if(X0.aborted)throw new S(void 0,{cause:X0.reason});({promise:k,resolve:o}=I()),yield p}}(),{signal:X0}),write(W0,p,V0){let O=o;o=null,O({chunk:W0,done:!1,cb:V0})},final(W0){let p=o;o=null,p({done:!0,cb:W0})},destroy(W0,p){e.abort(),p(W0)}}}function E(x){let k=x.readable&&typeof x.readable.read!=="function"?P.wrap(x.readable):x.readable,o=x.writable,e=!!K(k),X0=!!Y(o),W0,p,V0,O,m;function $0(_){let Y0=O;if(O=null,Y0)Y0(_);else if(_)m.destroy(_)}if(m=new T({readableObjectMode:!!(k!==null&&k!==void 0&&k.readableObjectMode),writableObjectMode:!!(o!==null&&o!==void 0&&o.writableObjectMode),readable:e,writable:X0}),X0)H(o,(_)=>{if(X0=!1,_)F(k,_);$0(_)}),m._write=function(_,Y0,G0){if(o.write(_,Y0))G0();else W0=G0},m._final=function(_){o.end(),p=_},o.on("drain",function(){if(W0){let _=W0;W0=null,_()}}),o.on("finish",function(){if(p){let _=p;p=null,_()}});if(e)H(k,(_)=>{if(e=!1,_)F(k,_);$0(_)}),k.on("readable",function(){if(V0){let _=V0;V0=null,_()}}),k.on("end",function(){m.push(null)}),m._read=function(){while(!0){let _=k.read();if(_===null){V0=m._read;return}if(!m.push(_))return}};return m._destroy=function(_,Y0){if(!_&&O!==null)_=new S;if(V0=null,W0=null,p=null,O===null)Y0(_);else O=Y0,F(o,_),F(k,_)},m}}),F2=M0((Q,J)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:K,ObjectSetPrototypeOf:Y}=O0();J.exports=U;var q=y6(),V=r8();Y(U.prototype,q.prototype),Y(U,q);{let W=K(V.prototype);for(let H=0;H<W.length;H++){let S=W[H];if(!U.prototype[S])U.prototype[S]=V.prototype[S]}}function U(W){if(!(this instanceof U))return new U(W);if(q.call(this,W),V.call(this,W),W){if(this.allowHalfOpen=W.allowHalfOpen!==!1,W.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(W.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(U.prototype,{writable:{__proto__:null,...X(V.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(V.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(V.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(V.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(V.prototype,"writableLength")},writableFinished:{__proto__:null,...X(V.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(V.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(V.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(V.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 B;function G(){if(B===void 0)B={};return B}U.fromWeb=function(W,H){return G().newStreamDuplexFromReadableWritablePair(W,H)},U.toWeb=function(W){return G().newReadableWritablePairFromDuplex(W)};var j;U.from=function(W){if(!j)j=eY();return j(W,"body")}}),n7=M0((Q,J)=>{var{ObjectSetPrototypeOf:$,Symbol:X}=O0();J.exports=U;var{ERR_METHOD_NOT_IMPLEMENTED:K}=g0().codes,Y=F2(),{getHighWaterMark:q}=x6();$(U.prototype,Y.prototype),$(U,Y);var V=X("kCallback");function U(j){if(!(this instanceof U))return new U(j);let W=j?q(this,j,"readableHighWaterMark",!0):null;if(W===0)j={...j,highWaterMark:null,readableHighWaterMark:W,writableHighWaterMark:j.writableHighWaterMark||0};if(Y.call(this,j),this._readableState.sync=!1,this[V]=null,j){if(typeof j.transform==="function")this._transform=j.transform;if(typeof j.flush==="function")this._flush=j.flush}this.on("prefinish",G)}function B(j){if(typeof this._flush==="function"&&!this.destroyed)this._flush((W,H)=>{if(W){if(j)j(W);else this.destroy(W);return}if(H!=null)this.push(H);if(this.push(null),j)j()});else if(this.push(null),j)j()}function G(){if(this._final!==B)B.call(this)}U.prototype._final=B,U.prototype._transform=function(j,W,H){throw new K("_transform()")},U.prototype._write=function(j,W,H){let S=this._readableState,C=this._writableState,w=S.length;this._transform(j,W,(F,z)=>{if(F){H(F);return}if(z!=null)this.push(z);if(C.ended||w===S.length||S.length<S.highWaterMark)H();else this[V]=H})},U.prototype._read=function(){if(this[V]){let j=this[V];this[V]=null,j()}}}),r7=M0((Q,J)=>{var{ObjectSetPrototypeOf:$}=O0();J.exports=K;var X=n7();$(K.prototype,X.prototype),$(K,X);function K(Y){if(!(this instanceof K))return new K(Y);X.call(this,Y)}K.prototype._transform=function(Y,q,V){V(null,Y)}}),o8=M0((Q,J)=>{var $=o2(),{ArrayIsArray:X,Promise:K,SymbolAsyncIterator:Y,SymbolDispose:q}=O0(),V=k2(),{once:U}=_0(),B=P1(),G=F2(),{aggregateTwoErrors:j,codes:{ERR_INVALID_ARG_TYPE:W,ERR_INVALID_RETURN_VALUE:H,ERR_MISSING_ARGS:S,ERR_STREAM_DESTROYED:C,ERR_STREAM_PREMATURE_CLOSE:w},AbortError:F}=g0(),{validateFunction:z,validateAbortSignal:P}=a1(),{isIterable:L,isReadable:I,isReadableNodeStream:g,isNodeStream:c,isTransformStream:l,isWebStream:f,isReadableStream:v,isReadableFinished:T}=w2(),N=globalThis.AbortController||o1().AbortController,E,x,k;function o(_,Y0,G0){let H0=!1;_.on("close",()=>{H0=!0});let Z0=V(_,{readable:Y0,writable:G0},(b)=>{H0=!b});return{destroy:(b)=>{if(H0)return;H0=!0,B.destroyer(_,b||new C("pipe"))},cleanup:Z0}}function e(_){return z(_[_.length-1],"streams[stream.length - 1]"),_.pop()}function X0(_){if(L(_))return _;else if(g(_))return W0(_);throw new W("val",["Readable","Iterable","AsyncIterable"],_)}async function*W0(_){if(!x)x=y6();yield*x.prototype[Y].call(_)}async function p(_,Y0,G0,{end:H0}){let Z0,b=null,u=(z0)=>{if(z0)Z0=z0;if(b){let D=b;b=null,D()}},a=()=>new K((z0,D)=>{if(Z0)D(Z0);else b=()=>{if(Z0)D(Z0);else z0()}});Y0.on("drain",u);let U0=V(Y0,{readable:!1},u);try{if(Y0.writableNeedDrain)await a();for await(let z0 of _)if(!Y0.write(z0))await a();if(H0)Y0.end(),await a();G0()}catch(z0){G0(Z0!==z0?j(Z0,z0):z0)}finally{U0(),Y0.off("drain",u)}}async function V0(_,Y0,G0,{end:H0}){if(l(Y0))Y0=Y0.writable;let Z0=Y0.getWriter();try{for await(let b of _)await Z0.ready,Z0.write(b).catch(()=>{});if(await Z0.ready,H0)await Z0.close();G0()}catch(b){try{await Z0.abort(b),G0(b)}catch(u){G0(u)}}}function O(..._){return m(_,U(e(_)))}function m(_,Y0,G0){if(_.length===1&&X(_[0]))_=_[0];if(_.length<2)throw new S("streams");let H0=new N,Z0=H0.signal,b=G0===null||G0===void 0?void 0:G0.signal,u=[];P(b,"options.signal");function a(){t(new F)}k=k||_0().addAbortListener;let U0;if(b)U0=k(b,a);let z0,D,R=[],h=0;function r(i){t(i,--h===0)}function t(i,q0){var L0;if(i&&(!z0||z0.code==="ERR_STREAM_PREMATURE_CLOSE"))z0=i;if(!z0&&!q0)return;while(R.length)R.shift()(z0);if((L0=U0)===null||L0===void 0||L0[q](),H0.abort(),q0){if(!z0)u.forEach((d0)=>d0());$.nextTick(Y0,z0,D)}}let s;for(let i=0;i<_.length;i++){let q0=_[i],L0=i<_.length-1,d0=i>0,l0=L0||(G0===null||G0===void 0?void 0:G0.end)!==!1,p2=i===_.length-1;if(c(q0)){let E0=function(h0){if(h0&&h0.name!=="AbortError"&&h0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(h0)};var A=E0;if(l0){let{destroy:h0,cleanup:U1}=o(q0,L0,d0);if(R.push(h0),I(q0)&&p2)u.push(U1)}if(q0.on("error",E0),I(q0)&&p2)u.push(()=>{q0.removeListener("error",E0)})}if(i===0)if(typeof q0==="function"){if(s=q0({signal:Z0}),!L(s))throw new H("Iterable, AsyncIterable or Stream","source",s)}else if(L(q0)||g(q0)||l(q0))s=q0;else s=G.from(q0);else if(typeof q0==="function"){if(l(s)){var d;s=X0((d=s)===null||d===void 0?void 0:d.readable)}else s=X0(s);if(s=q0(s,{signal:Z0}),L0){if(!L(s,!0))throw new H("AsyncIterable",`transform[${i-1}]`,s)}else{var Q0;if(!E)E=r7();let E0=new E({objectMode:!0}),h0=(Q0=s)===null||Q0===void 0?void 0:Q0.then;if(typeof h0==="function")h++,h0.call(s,(X2)=>{if(D=X2,X2!=null)E0.write(X2);if(l0)E0.end();$.nextTick(r)},(X2)=>{E0.destroy(X2),$.nextTick(r,X2)});else if(L(s,!0))h++,p(s,E0,r,{end:l0});else if(v(s)||l(s)){let X2=s.readable||s;h++,p(X2,E0,r,{end:l0})}else throw new H("AsyncIterable or Promise","destination",s);s=E0;let{destroy:U1,cleanup:z1}=o(s,!1,!0);if(R.push(U1),p2)u.push(z1)}}else if(c(q0)){if(g(s)){h+=2;let E0=$0(s,q0,r,{end:l0});if(I(q0)&&p2)u.push(E0)}else if(l(s)||v(s)){let E0=s.readable||s;h++,p(E0,q0,r,{end:l0})}else if(L(s))h++,p(s,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else if(f(q0)){if(g(s))h++,V0(X0(s),q0,r,{end:l0});else if(v(s)||L(s))h++,V0(s,q0,r,{end:l0});else if(l(s))h++,V0(s.readable,q0,r,{end:l0});else throw new W("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],s);s=q0}else s=G.from(q0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||b!==null&&b!==void 0&&b.aborted)$.nextTick(a);return s}function $0(_,Y0,G0,{end:H0}){let Z0=!1;if(Y0.on("close",()=>{if(!Z0)G0(new w)}),_.pipe(Y0,{end:!1}),H0){let u=function(){Z0=!0,Y0.end()};var b=u;if(T(_))$.nextTick(u);else _.once("end",u)}else G0();return V(_,{readable:!0,writable:!1},(u)=>{let a=_._readableState;if(u&&u.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted)_.once("end",G0).once("error",G0);else G0(u)}),V(Y0,{readable:!1,writable:!0},G0)}J.exports={pipelineImpl:m,pipeline:O}}),o7=M0((Q,J)=>{var{pipeline:$}=o8(),X=F2(),{destroyer:K}=P1(),{isNodeStream:Y,isReadable:q,isWritable:V,isWebStream:U,isTransformStream:B,isWritableStream:G,isReadableStream:j}=w2(),{AbortError:W,codes:{ERR_INVALID_ARG_VALUE:H,ERR_MISSING_ARGS:S}}=g0(),C=k2();J.exports=function(...w){if(w.length===0)throw new S("streams");if(w.length===1)return X.from(w[0]);let F=[...w];if(typeof w[0]==="function")w[0]=X.from(w[0]);if(typeof w[w.length-1]==="function"){let N=w.length-1;w[N]=X.from(w[N])}for(let N=0;N<w.length;++N){if(!Y(w[N])&&!U(w[N]))continue;if(N<w.length-1&&!(q(w[N])||j(w[N])||B(w[N])))throw new H(`streams[${N}]`,F[N],"must be readable");if(N>0&&!(V(w[N])||G(w[N])||B(w[N])))throw new H(`streams[${N}]`,F[N],"must be writable")}let z,P,L,I,g;function c(N){let E=I;if(I=null,E)E(N);else if(N)g.destroy(N);else if(!T&&!v)g.destroy()}let l=w[0],f=$(w,c),v=!!(V(l)||G(l)||B(l)),T=!!(q(f)||j(f)||B(f));if(g=new X({writableObjectMode:!!(l!==null&&l!==void 0&&l.writableObjectMode),readableObjectMode:!!(f!==null&&f!==void 0&&f.readableObjectMode),writable:v,readable:T}),v){if(Y(l))g._write=function(E,x,k){if(l.write(E,x))k();else z=k},g._final=function(E){l.end(),P=E},l.on("drain",function(){if(z){let E=z;z=null,E()}});else if(U(l)){let E=(B(l)?l.writable:l).getWriter();g._write=async function(x,k,o){try{await E.ready,E.write(x).catch(()=>{}),o()}catch(e){o(e)}},g._final=async function(x){try{await E.ready,E.close().catch(()=>{}),P=x}catch(k){x(k)}}}let N=B(f)?f.readable:f;C(N,()=>{if(P){let E=P;P=null,E()}})}if(T){if(Y(f))f.on("readable",function(){if(L){let N=L;L=null,N()}}),f.on("end",function(){g.push(null)}),g._read=function(){while(!0){let N=f.read();if(N===null){L=g._read;return}if(!g.push(N))return}};else if(U(f)){let N=(B(f)?f.readable:f).getReader();g._read=async function(){while(!0)try{let{value:E,done:x}=await N.read();if(!g.push(E))return;if(x){g.push(null);return}}catch{return}}}}return g._destroy=function(N,E){if(!N&&I!==null)N=new W;if(L=null,z=null,P=null,I===null)E(N);else if(I=E,Y(f))K(f,N)},g}}),Q9=M0((Q,J)=>{var $=globalThis.AbortController||o1().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:K,ERR_MISSING_ARGS:Y,ERR_OUT_OF_RANGE:q},AbortError:V}=g0(),{validateAbortSignal:U,validateInteger:B,validateObject:G}=a1(),j=O0().Symbol("kWeak"),W=O0().Symbol("kResistStopPropagation"),{finished:H}=k2(),S=o7(),{addAbortSignalNoValidate:C}=g6(),{isWritable:w,isNodeStream:F}=w2(),{deprecate:z}=_0(),{ArrayPrototypePush:P,Boolean:L,MathFloor:I,Number:g,NumberIsNaN:c,Promise:l,PromiseReject:f,PromiseResolve:v,PromisePrototypeThen:T,Symbol:N}=O0(),E=N("kEmpty"),x=N("kEof");function k(b,u){if(u!=null)G(u,"options");if((u===null||u===void 0?void 0:u.signal)!=null)U(u.signal,"options.signal");if(F(b)&&!w(b))throw new X("stream",b,"must be writable");let a=S(this,b);if(u!==null&&u!==void 0&&u.signal)C(u.signal,a);return a}function o(b,u){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);if(u!=null)G(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=I(u.concurrency);let U0=a-1;if((u===null||u===void 0?void 0:u.highWaterMark)!=null)U0=I(u.highWaterMark);return B(a,"options.concurrency",1),B(U0,"options.highWaterMark",0),U0+=a,async function*(){let z0=_0().AbortSignalAny([u===null||u===void 0?void 0:u.signal].filter(L)),D=this,R=[],h={signal:z0},r,t,s=!1,A=0;function d(){s=!0,Q0()}function Q0(){A-=1,i()}function i(){if(t&&!s&&A<a&&R.length<U0)t(),t=null}async function q0(){try{for await(let L0 of D){if(s)return;if(z0.aborted)throw new V;try{if(L0=b(L0,h),L0===E)continue;L0=v(L0)}catch(d0){L0=f(d0)}if(A+=1,T(L0,Q0,d),R.push(L0),r)r(),r=null;if(!s&&(R.length>=U0||A>=a))await new l((d0)=>{t=d0})}R.push(x)}catch(L0){let d0=f(L0);T(d0,Q0,d),R.push(d0)}finally{if(s=!0,r)r(),r=null}}q0();try{while(!0){while(R.length>0){let L0=await R[0];if(L0===x)return;if(z0.aborted)throw new V;if(L0!==E)yield L0;R.shift(),i()}await new l((L0)=>{r=L0})}}finally{if(s=!0,t)t(),t=null}}.call(this)}function e(b=void 0){if(b!=null)G(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 V({cause:b.signal.reason});yield[u++,U0]}}.call(this)}async function X0(b,u=void 0){for await(let a of O.call(this,b,u))return!0;return!1}async function W0(b,u=void 0){if(typeof b!=="function")throw new K("fn",["Function","AsyncFunction"],b);return!await X0.call(this,async(...a)=>{return!await b(...a)},u)}async function p(b,u){for await(let a of O.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 O(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 m extends Y{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function $0(b,u,a){var U0;if(typeof b!=="function")throw new K("reducer",["Function","AsyncFunction"],b);if(a!=null)G(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 V(void 0,{cause:a.signal.reason});throw this.once("error",()=>{}),await H(this.destroy(t)),t}let D=new $,R=D.signal;if(a!==null&&a!==void 0&&a.signal){let t={once:!0,[j]:this,[W]:!0};a.signal.addEventListener("abort",()=>D.abort(),t)}let h=!1;try{for await(let t of this){var r;if(h=!0,a!==null&&a!==void 0&&(r=a.signal)!==null&&r!==void 0&&r.aborted)throw new V;if(!z0)u=t,z0=!0;else u=await b(u,t,{signal:R})}if(!h&&!z0)throw new m}finally{D.abort()}return u}async function _(b){if(b!=null)G(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 V(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=g(b),c(b))return 0;if(b<0)throw new q("number",">= 0",b);return b}function H0(b,u=void 0){if(u!=null)G(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 V;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 V;if(b--<=0)yield z0}}.call(this)}function Z0(b,u=void 0){if(u!=null)G(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 V;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 V;if(b-- >0)yield z0;if(b<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:z(e,"readable.asIndexedPairs will be removed in a future version."),drop:H0,filter:O,flatMap:Y0,map:o,take:Z0,compose:k},J.exports.promiseReturningOperators={every:W0,forEach:V0,reduce:$0,toArray:_,some:X0,find:p}}),a7=M0((Q,J)=>{var{ArrayPrototypePop:$,Promise:X}=O0(),{isIterable:K,isNodeStream:Y,isWebStream:q}=w2(),{pipelineImpl:V}=o8(),{finished:U}=k2();s7();function B(...G){return new X((j,W)=>{let H,S,C=G[G.length-1];if(C&&typeof C==="object"&&!Y(C)&&!K(C)&&!q(C)){let w=$(G);H=w.signal,S=w.end}V(G,(w,F)=>{if(w)W(w);else j(F)},{signal:H,end:S})})}J.exports={finished:U,pipeline:B}}),s7=M0((Q,J)=>{var{Buffer:$}=(L2(),u0(M2)),{ObjectDefineProperty:X,ObjectKeys:K,ReflectApply:Y}=O0(),{promisify:{custom:q}}=_0(),{streamReturningOperators:V,promiseReturningOperators:U}=Q9(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:B}}=g0(),G=o7(),{setDefaultHighWaterMark:j,getDefaultHighWaterMark:W}=x6(),{pipeline:H}=o8(),{destroyer:S}=P1(),C=k2(),w=a7(),F=w2(),z=J.exports=n8().Stream;z.isDestroyed=F.isDestroyed,z.isDisturbed=F.isDisturbed,z.isErrored=F.isErrored,z.isReadable=F.isReadable,z.isWritable=F.isWritable,z.Readable=y6();for(let L of K(V)){let I=function(...c){if(new.target)throw B();return z.Readable.from(Y(g,this,c))},g=V[L];X(I,"name",{__proto__:null,value:g.name}),X(I,"length",{__proto__:null,value:g.length}),X(z.Readable.prototype,L,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}for(let L of K(U)){let I=function(...c){if(new.target)throw B();return Y(g,this,c)},g=U[L];X(I,"name",{__proto__:null,value:g.name}),X(I,"length",{__proto__:null,value:g.length}),X(z.Readable.prototype,L,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}z.Writable=r8(),z.Duplex=F2(),z.Transform=n7(),z.PassThrough=r7(),z.pipeline=H;var{addAbortSignal:P}=g6();z.addAbortSignal=P,z.finished=C,z.destroy=S,z.compose=G,z.setDefaultHighWaterMark=j,z.getDefaultHighWaterMark=W,X(z,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return w}}),X(H,q,{__proto__:null,enumerable:!0,get(){return w.pipeline}}),X(C,q,{__proto__:null,enumerable:!0,get(){return w.finished}}),z.Stream=z,z._isUint8Array=function(L){return L instanceof Uint8Array},z._uint8ArrayToBuffer=function(L){return $.from(L.buffer,L.byteOffset,L.byteLength)}}),J9=M0((Q,J)=>{var $=a8();{let X=s7(),K=a7(),Y=X.Readable.destroy;J.exports=X.Readable,J.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,J.exports._isUint8Array=X._isUint8Array,J.exports.isDisturbed=X.isDisturbed,J.exports.isErrored=X.isErrored,J.exports.isReadable=X.isReadable,J.exports.Readable=X.Readable,J.exports.Writable=X.Writable,J.exports.Duplex=X.Duplex,J.exports.Transform=X.Transform,J.exports.PassThrough=X.PassThrough,J.exports.addAbortSignal=X.addAbortSignal,J.exports.finished=X.finished,J.exports.destroy=X.destroy,J.exports.destroy=Y,J.exports.pipeline=X.pipeline,J.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return K}}),J.exports.Stream=X.Stream}J.exports.default=J.exports});t7.exports=J9()});var s8=B0((SB,e7)=>{e7.exports=a8()});var I2=B0((p0)=>{p0.base64=!0;p0.array=!0;p0.string=!0;p0.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";p0.nodebuffer=typeof Buffer<"u";p0.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")p0.blob=!1;else{h6=new ArrayBuffer(0);try{p0.blob=new Blob([h6],{type:"application/zip"}).size===0}catch(Q){try{t8=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,f6=new t8,f6.append(h6),p0.blob=f6.getBlob("application/zip").size===0}catch(J){p0.blob=!1}}}var h6,t8,f6;try{p0.nodestream=!!s8().Readable}catch(Q){p0.nodestream=!1}});var Q5=B0((e8)=>{var $9=N0(),X9=I2(),q2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e8.encode=function(Q){var J=[],$,X,K,Y,q,V,U,B=0,G=Q.length,j=G,W=$9.getTypeOf(Q)!=="string";while(B<Q.length){if(j=G-B,!W)$=Q.charCodeAt(B++),X=B<G?Q.charCodeAt(B++):0,K=B<G?Q.charCodeAt(B++):0;else $=Q[B++],X=B<G?Q[B++]:0,K=B<G?Q[B++]:0;Y=$>>2,q=($&3)<<4|X>>4,V=j>1?(X&15)<<2|K>>6:64,U=j>2?K&63:64,J.push(q2.charAt(Y)+q2.charAt(q)+q2.charAt(V)+q2.charAt(U))}return J.join("")};e8.decode=function(Q){var J,$,X,K,Y,q,V,U=0,B=0,G="data:";if(Q.substr(0,G.length)===G)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var j=Q.length*3/4;if(Q.charAt(Q.length-1)===q2.charAt(64))j--;if(Q.charAt(Q.length-2)===q2.charAt(64))j--;if(j%1!==0)throw Error("Invalid base64 input, bad content length.");var W;if(X9.uint8array)W=new Uint8Array(j|0);else W=Array(j|0);while(U<Q.length){if(K=q2.indexOf(Q.charAt(U++)),Y=q2.indexOf(Q.charAt(U++)),q=q2.indexOf(Q.charAt(U++)),V=q2.indexOf(Q.charAt(U++)),J=K<<2|Y>>4,$=(Y&15)<<4|q>>2,X=(q&3)<<6|V,W[B++]=J,q!==64)W[B++]=$;if(V!==64)W[B++]=X}return W}});var s1=B0((xB,QQ)=>{QQ.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,J){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,J);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,J)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var J=new Buffer(Q);return J.fill(0),J}},isBuffer:function(Q){return Buffer.isBuffer(Q)},isStream:function(Q){return Q&&typeof Q.on==="function"&&typeof Q.pause==="function"&&typeof Q.resume==="function"}}});var XQ=B0((yB,$Q)=>{var JQ=global.MutationObserver||global.WebKitMutationObserver,t1;if(JQ)b6=0,J5=new JQ(_6),u6=global.document.createTextNode(""),J5.observe(u6,{characterData:!0}),t1=function(){u6.data=b6=++b6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")p6=new global.MessageChannel,p6.port1.onmessage=_6,t1=function(){p6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))t1=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){_6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else t1=function(){setTimeout(_6,0)};var b6,J5,u6,p6,$5,e1=[];function _6(){$5=!0;var Q,J,$=e1.length;while($){J=e1,e1=[],Q=-1;while(++Q<$)J[Q]();$=e1.length}$5=!1}$Q.exports=K9;function K9(Q){if(e1.push(Q)===1&&!$5)t1()}});var GQ=B0((hB,BQ)=>{var Y9=XQ();function M1(){}var v0={},KQ=["REJECTED"],X5=["FULFILLED"],YQ=["PENDING"];BQ.exports=E2;function E2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=YQ,this.queue=[],this.outcome=void 0,Q!==M1)VQ(this,Q)}E2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var J=this.constructor;return this.then($,X);function $(K){function Y(){return K}return J.resolve(Q()).then(Y)}function X(K){function Y(){throw K}return J.resolve(Q()).then(Y)}};E2.prototype.catch=function(Q){return this.then(null,Q)};E2.prototype.then=function(Q,J){if(typeof Q!=="function"&&this.state===X5||typeof J!=="function"&&this.state===KQ)return this;var $=new this.constructor(M1);if(this.state!==YQ){var X=this.state===X5?Q:J;K5($,X,this.outcome)}else this.queue.push(new Q6($,Q,J));return $};function Q6(Q,J,$){if(this.promise=Q,typeof J==="function")this.onFulfilled=J,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}Q6.prototype.callFulfilled=function(Q){v0.resolve(this.promise,Q)};Q6.prototype.otherCallFulfilled=function(Q){K5(this.promise,this.onFulfilled,Q)};Q6.prototype.callRejected=function(Q){v0.reject(this.promise,Q)};Q6.prototype.otherCallRejected=function(Q){K5(this.promise,this.onRejected,Q)};function K5(Q,J,$){Y9(function(){var X;try{X=J($)}catch(K){return v0.reject(Q,K)}if(X===Q)v0.reject(Q,TypeError("Cannot resolve promise with itself"));else v0.resolve(Q,X)})}v0.resolve=function(Q,J){var $=qQ(V9,J);if($.status==="error")return v0.reject(Q,$.value);var X=$.value;if(X)VQ(Q,X);else{Q.state=X5,Q.outcome=J;var K=-1,Y=Q.queue.length;while(++K<Y)Q.queue[K].callFulfilled(J)}return Q};v0.reject=function(Q,J){Q.state=KQ,Q.outcome=J;var $=-1,X=Q.queue.length;while(++$<X)Q.queue[$].callRejected(J);return Q};function V9(Q){var J=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof J==="function")return function(){J.apply(Q,arguments)}}function VQ(Q,J){var $=!1;function X(V){if($)return;$=!0,v0.reject(Q,V)}function K(V){if($)return;$=!0,v0.resolve(Q,V)}function Y(){J(K,X)}var q=qQ(Y);if(q.status==="error")X(q.value)}function qQ(Q,J){var $={};try{$.value=Q(J),$.status="success"}catch(X){$.status="error",$.value=X}return $}E2.resolve=q9;function q9(Q){if(Q instanceof this)return Q;return v0.resolve(new this(M1),Q)}E2.reject=B9;function B9(Q){var J=new this(M1);return v0.reject(J,Q)}E2.all=G9;function G9(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var K=Array($),Y=0,q=-1,V=new this(M1);while(++q<$)U(Q[q],q);return V;function U(B,G){J.resolve(B).then(j,function(W){if(!X)X=!0,v0.reject(V,W)});function j(W){if(K[G]=W,++Y===$&&!X)X=!0,v0.resolve(V,K)}}}E2.race=U9;function U9(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,X=!1;if(!$)return this.resolve([]);var K=-1,Y=new this(M1);while(++K<$)q(Q[K]);return Y;function q(V){J.resolve(V).then(function(U){if(!X)X=!0,v0.resolve(Y,U)},function(U){if(!X)X=!0,v0.reject(Y,U)})}}});var L1=B0((fB,UQ)=>{var Y5=null;if(typeof Promise<"u")Y5=Promise;else Y5=GQ();UQ.exports={Promise:Y5}});var ZQ=B0((zQ)=>{(function(Q,J){if(Q.setImmediate)return;var $=1,X={},K=!1,Y=Q.document,q;function V(z){if(typeof z!=="function")z=Function(""+z);var P=Array(arguments.length-1);for(var L=0;L<P.length;L++)P[L]=arguments[L+1];var I={callback:z,args:P};return X[$]=I,q($),$++}function U(z){delete X[z]}function B(z){var{callback:P,args:L}=z;switch(L.length){case 0:P();break;case 1:P(L[0]);break;case 2:P(L[0],L[1]);break;case 3:P(L[0],L[1],L[2]);break;default:P.apply(J,L);break}}function G(z){if(K)setTimeout(G,0,z);else{var P=X[z];if(P){K=!0;try{B(P)}finally{U(z),K=!1}}}}function j(){q=function(z){process.nextTick(function(){G(z)})}}function W(){if(Q.postMessage&&!Q.importScripts){var z=!0,P=Q.onmessage;return Q.onmessage=function(){z=!1},Q.postMessage("","*"),Q.onmessage=P,z}}function H(){var z="setImmediate$"+Math.random()+"$",P=function(L){if(L.source===Q&&typeof L.data==="string"&&L.data.indexOf(z)===0)G(+L.data.slice(z.length))};if(Q.addEventListener)Q.addEventListener("message",P,!1);else Q.attachEvent("onmessage",P);q=function(L){Q.postMessage(z+L,"*")}}function S(){var z=new MessageChannel;z.port1.onmessage=function(P){var L=P.data;G(L)},q=function(P){z.port2.postMessage(P)}}function C(){var z=Y.documentElement;q=function(P){var L=Y.createElement("script");L.onreadystatechange=function(){G(P),L.onreadystatechange=null,z.removeChild(L),L=null},z.appendChild(L)}}function w(){q=function(z){setTimeout(G,0,z)}}var F=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(F=F&&F.setTimeout?F:Q,{}.toString.call(Q.process)==="[object process]")j();else if(W())H();else if(Q.MessageChannel)S();else if(Y&&"onreadystatechange"in Y.createElement("script"))C();else w();F.setImmediate=V,F.clearImmediate=U})(typeof self>"u"?typeof global>"u"?zQ:global:self)});var N0=B0((A0)=>{var S2=I2(),z9=Q5(),F1=s1(),V5=L1();ZQ();function Z9(Q){var J=null;if(S2.uint8array)J=new Uint8Array(Q.length);else J=Array(Q.length);return m6(Q,J)}A0.newBlob=function(Q,J){A0.checkSupport("blob");try{return new Blob([Q],{type:J})}catch(K){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new $;return X.append(Q),X.getBlob(J)}catch(Y){throw Error("Bug : can't construct the Blob.")}}};function J6(Q){return Q}function m6(Q,J){for(var $=0;$<Q.length;++$)J[$]=Q.charCodeAt($)&255;return J}var c6={stringifyByChunk:function(Q,J,$){var X=[],K=0,Y=Q.length;if(Y<=$)return String.fromCharCode.apply(null,Q);while(K<Y){if(J==="array"||J==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(K,Math.min(K+$,Y))));else X.push(String.fromCharCode.apply(null,Q.subarray(K,Math.min(K+$,Y))));K+=$}return X.join("")},stringifyByChar:function(Q){var J="";for(var $=0;$<Q.length;$++)J+=String.fromCharCode(Q[$]);return J},applyCanBeUsed:{uint8array:function(){try{return S2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return S2.nodebuffer&&String.fromCharCode.apply(null,F1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function $6(Q){var J=65536,$=A0.getTypeOf(Q),X=!0;if($==="uint8array")X=c6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=c6.applyCanBeUsed.nodebuffer;if(X)while(J>1)try{return c6.stringifyByChunk(Q,$,J)}catch(K){J=Math.floor(J/2)}return c6.stringifyByChar(Q)}A0.applyFromCharCode=$6;function d6(Q,J){for(var $=0;$<Q.length;$++)J[$]=Q[$];return J}var v2={};v2.string={string:J6,array:function(Q){return m6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.string.uint8array(Q).buffer},uint8array:function(Q){return m6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return m6(Q,F1.allocBuffer(Q.length))}};v2.array={string:$6,array:J6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return F1.newBufferFrom(Q)}};v2.arraybuffer={string:function(Q){return $6(new Uint8Array(Q))},array:function(Q){return d6(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:J6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return F1.newBufferFrom(new Uint8Array(Q))}};v2.uint8array={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:J6,nodebuffer:function(Q){return F1.newBufferFrom(Q)}};v2.nodebuffer={string:$6,array:function(Q){return d6(Q,Array(Q.length))},arraybuffer:function(Q){return v2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return d6(Q,new Uint8Array(Q.length))},nodebuffer:J6};A0.transformTo=function(Q,J){if(!J)J="";if(!Q)return J;A0.checkSupport(Q);var $=A0.getTypeOf(J),X=v2[$][Q](J);return X};A0.resolve=function(Q){var J=Q.split("/"),$=[];for(var X=0;X<J.length;X++){var K=J[X];if(K==="."||K===""&&X!==0&&X!==J.length-1)continue;else if(K==="..")$.pop();else $.push(K)}return $.join("/")};A0.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(S2.nodebuffer&&F1.isBuffer(Q))return"nodebuffer";if(S2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(S2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};A0.checkSupport=function(Q){var J=S2[Q.toLowerCase()];if(!J)throw Error(Q+" is not supported by this platform")};A0.MAX_VALUE_16BITS=65535;A0.MAX_VALUE_32BITS=-1;A0.pretty=function(Q){var J="",$,X;for(X=0;X<(Q||"").length;X++)$=Q.charCodeAt(X),J+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return J};A0.delay=function(Q,J,$){setImmediate(function(){Q.apply($||null,J||[])})};A0.inherits=function(Q,J){var $=function(){};$.prototype=J.prototype,Q.prototype=new $};A0.extend=function(){var Q={},J,$;for(J=0;J<arguments.length;J++)for($ in arguments[J])if(Object.prototype.hasOwnProperty.call(arguments[J],$)&&typeof Q[$]>"u")Q[$]=arguments[J][$];return Q};A0.prepareContent=function(Q,J,$,X,K){var Y=V5.Promise.resolve(J).then(function(q){var V=S2.blob&&(q instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(q))!==-1);if(V&&typeof FileReader<"u")return new V5.Promise(function(U,B){var G=new FileReader;G.onload=function(j){U(j.target.result)},G.onerror=function(j){B(j.target.error)},G.readAsArrayBuffer(q)});else return q});return Y.then(function(q){var V=A0.getTypeOf(q);if(!V)return V5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(V==="arraybuffer")q=A0.transformTo("uint8array",q);else if(V==="string"){if(K)q=z9.decode(q);else if($){if(X!==!0)q=Z9(q)}}return q})}});var c0=B0((uB,HQ)=>{function WQ(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}WQ.prototype={push:function(Q){this.emit("data",Q)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(Q){this.emit("error",Q)}return!0},error:function(Q){if(this.isFinished)return!1;if(this.isPaused)this.generatedError=Q;else{if(this.isFinished=!0,this.emit("error",Q),this.previous)this.previous.error(Q);this.cleanUp()}return!0},on:function(Q,J){return this._listeners[Q].push(J),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,J){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,J)},pipe:function(Q){return Q.registerPrevious(this)},registerPrevious:function(Q){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=Q.streamInfo,this.mergeStreamInfo(),this.previous=Q;var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){J.end()}),Q.on("error",function($){J.error($)}),this},pause:function(){if(this.isPaused||this.isFinished)return!1;if(this.isPaused=!0,this.previous)this.previous.pause();return!0},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var Q=!1;if(this.generatedError)this.error(this.generatedError),Q=!0;if(this.previous)this.previous.resume();return!Q},flush:function(){},processChunk:function(Q){this.push(Q)},withStreamInfo:function(Q,J){return this.extraStreamInfo[Q]=J,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};HQ.exports=WQ});var I1=B0((g2)=>{var w1=N0(),a2=I2(),W9=s1(),l6=c0(),X6=Array(256);for(B2=0;B2<256;B2++)X6[B2]=B2>=252?6:B2>=248?5:B2>=240?4:B2>=224?3:B2>=192?2:1;var B2;X6[254]=X6[254]=1;var H9=function(Q){var J,$,X,K,Y,q=Q.length,V=0;for(K=0;K<q;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<q){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}V+=$<128?1:$<2048?2:$<65536?3:4}if(a2.uint8array)J=new Uint8Array(V);else J=Array(V);for(Y=0,K=0;Y<V;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<q){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J},j9=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+X6[Q[$]]>J?$:J},P9=function(Q){var J,$,X,K,Y=Q.length,q=Array(Y*2);for($=0,J=0;J<Y;){if(X=Q[J++],X<128){q[$++]=X;continue}if(K=X6[X],K>4){q[$++]=65533,J+=K-1;continue}X&=K===2?31:K===3?15:7;while(K>1&&J<Y)X=X<<6|Q[J++]&63,K--;if(K>1){q[$++]=65533;continue}if(X<65536)q[$++]=X;else X-=65536,q[$++]=55296|X>>10&1023,q[$++]=56320|X&1023}if(q.length!==$)if(q.subarray)q=q.subarray(0,$);else q.length=$;return w1.applyFromCharCode(q)};g2.utf8encode=function(J){if(a2.nodebuffer)return W9.newBufferFrom(J,"utf-8");return H9(J)};g2.utf8decode=function(J){if(a2.nodebuffer)return w1.transformTo("nodebuffer",J).toString("utf-8");return J=w1.transformTo(a2.uint8array?"uint8array":"array",J),P9(J)};function i6(){l6.call(this,"utf-8 decode"),this.leftOver=null}w1.inherits(i6,l6);i6.prototype.processChunk=function(Q){var J=w1.transformTo(a2.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(a2.uint8array){var $=J;J=new Uint8Array($.length+this.leftOver.length),J.set(this.leftOver,0),J.set($,this.leftOver.length)}else J=this.leftOver.concat(J);this.leftOver=null}var X=j9(J),K=J;if(X!==J.length)if(a2.uint8array)K=J.subarray(0,X),this.leftOver=J.subarray(X,J.length);else K=J.slice(0,X),this.leftOver=J.slice(X,J.length);this.push({data:g2.utf8decode(K),meta:Q.meta})};i6.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:g2.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};g2.Utf8DecodeWorker=i6;function q5(){l6.call(this,"utf-8 encode")}w1.inherits(q5,l6);q5.prototype.processChunk=function(Q){this.push({data:g2.utf8encode(Q.data),meta:Q.meta})};g2.Utf8EncodeWorker=q5});var LQ=B0((cB,MQ)=>{var jQ=c0(),PQ=N0();function B5(Q){jQ.call(this,"ConvertWorker to "+Q),this.destType=Q}PQ.inherits(B5,jQ);B5.prototype.processChunk=function(Q){this.push({data:PQ.transformTo(this.destType,Q.data),meta:Q.meta})};MQ.exports=B5});var IQ=B0((mB,wQ)=>{var FQ=s8().Readable,M9=N0();M9.inherits(G5,FQ);function G5(Q,J,$){FQ.call(this,J),this._helper=Q;var X=this;Q.on("data",function(K,Y){if(!X.push(K))X._helper.pause();if($)$(Y)}).on("error",function(K){X.emit("error",K)}).on("end",function(){X.push(null)})}G5.prototype._read=function(){this._helper.resume()};wQ.exports=G5});var U5=B0((dB,CQ)=>{var s2=N0(),L9=LQ(),F9=c0(),w9=Q5(),I9=I2(),O9=L1(),OQ=null;if(I9.nodestream)try{OQ=IQ()}catch(Q){}function N9(Q,J,$){switch(Q){case"blob":return s2.newBlob(s2.transformTo("arraybuffer",J),$);case"base64":return w9.encode(J);default:return s2.transformTo(Q,J)}}function C9(Q,J){var $,X=0,K=null,Y=0;for($=0;$<J.length;$++)Y+=J[$].length;switch(Q){case"string":return J.join("");case"array":return Array.prototype.concat.apply([],J);case"uint8array":K=new Uint8Array(Y);for($=0;$<J.length;$++)K.set(J[$],X),X+=J[$].length;return K;case"nodebuffer":return Buffer.concat(J);default:throw Error("concat : unsupported type '"+Q+"'")}}function D9(Q,J){return new O9.Promise(function($,X){var K=[],Y=Q._internalType,q=Q._outputType,V=Q._mimeType;Q.on("data",function(U,B){if(K.push(U),J)J(B)}).on("error",function(U){K=[],X(U)}).on("end",function(){try{var U=N9(q,C9(Y,K),V);$(U)}catch(B){X(B)}K=[]}).resume()})}function NQ(Q,J,$){var X=J;switch(J){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=J,this._mimeType=$,s2.checkSupport(X),this._worker=Q.pipe(new L9(X)),Q.lock()}catch(K){this._worker=new F9("error"),this._worker.error(K)}}NQ.prototype={accumulate:function(Q){return D9(this,Q)},on:function(Q,J){var $=this;if(Q==="data")this._worker.on(Q,function(X){J.call($,X.data,X.meta)});else this._worker.on(Q,function(){s2.delay(J,arguments,$)});return this},resume:function(){return s2.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(s2.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new OQ(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};CQ.exports=NQ});var z5=B0((t0)=>{t0.base64=!1;t0.binary=!1;t0.dir=!1;t0.createFolders=!0;t0.date=null;t0.compression=null;t0.compressionOptions=null;t0.comment=null;t0.unixPermissions=null;t0.dosPermissions=null});var Z5=B0((iB,DQ)=>{var n6=N0(),r6=c0(),A9=16384;function O1(Q){r6.call(this,"DataWorker");var J=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(J.dataIsReady=!0,J.data=$,J.max=$&&$.length||0,J.type=n6.getTypeOf($),!J.isPaused)J._tickAndRepeat()},function($){J.error($)})}n6.inherits(O1,r6);O1.prototype.cleanUp=function(){r6.prototype.cleanUp.call(this),this.data=null};O1.prototype.resume=function(){if(!r6.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,n6.delay(this._tickAndRepeat,[],this);return!0};O1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)n6.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};O1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=A9,J=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":J=this.data.substring(this.index,$);break;case"uint8array":J=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":J=this.data.slice(this.index,$);break}return this.index=$,this.push({data:J,meta:{percent:this.max?this.index/this.max*100:0}})}};DQ.exports=O1});var o6=B0((nB,RQ)=>{var R9=N0();function T9(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var AQ=T9();function k9(Q,J,$,X){var K=AQ,Y=X+$;Q=Q^-1;for(var q=X;q<Y;q++)Q=Q>>>8^K[(Q^J[q])&255];return Q^-1}function E9(Q,J,$,X){var K=AQ,Y=X+$;Q=Q^-1;for(var q=X;q<Y;q++)Q=Q>>>8^K[(Q^J.charCodeAt(q))&255];return Q^-1}RQ.exports=function(J,$){if(typeof J>"u"||!J.length)return 0;var X=R9.getTypeOf(J)!=="string";if(X)return k9($|0,J,J.length,0);else return E9($|0,J,J.length,0)}});var H5=B0((rB,kQ)=>{var TQ=c0(),S9=o6(),v9=N0();function W5(){TQ.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}v9.inherits(W5,TQ);W5.prototype.processChunk=function(Q){this.streamInfo.crc32=S9(Q.data,this.streamInfo.crc32||0),this.push(Q)};kQ.exports=W5});var SQ=B0((oB,EQ)=>{var g9=N0(),j5=c0();function P5(Q){j5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}g9.inherits(P5,j5);P5.prototype.processChunk=function(Q){if(Q){var J=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=J+Q.data.length}j5.prototype.processChunk.call(this,Q)};EQ.exports=P5});var a6=B0((aB,xQ)=>{var vQ=L1(),gQ=Z5(),x9=H5(),M5=SQ();function L5(Q,J,$,X,K){this.compressedSize=Q,this.uncompressedSize=J,this.crc32=$,this.compression=X,this.compressedContent=K}L5.prototype={getContentWorker:function(){var Q=new gQ(vQ.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new M5("data_length")),J=this;return Q.on("end",function(){if(this.streamInfo.data_length!==J.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new gQ(vQ.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};L5.createWorkerFrom=function(Q,J,$){return Q.pipe(new x9).pipe(new M5("uncompressedSize")).pipe(J.compressWorker($)).pipe(new M5("compressedSize")).withStreamInfo("compression",J)};xQ.exports=L5});var _Q=B0((sB,fQ)=>{var y9=U5(),h9=Z5(),F5=I1(),w5=a6(),yQ=c0(),I5=function(Q,J,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=J,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};I5.prototype={internalStream:function(Q){var J=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var X=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";J=this._decompressWorker();var K=!this._dataBinary;if(K&&!X)J=J.pipe(new F5.Utf8EncodeWorker);if(!K&&X)J=J.pipe(new F5.Utf8DecodeWorker)}catch(Y){J=new yQ("error"),J.error(Y)}return new y9(J,$,"")},async:function(Q,J){return this.internalStream(Q).accumulate(J)},nodeStream:function(Q,J){return this.internalStream(Q||"nodebuffer").toNodejsStream(J)},_compressWorker:function(Q,J){if(this._data instanceof w5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new F5.Utf8EncodeWorker);return w5.createWorkerFrom($,Q,J)}},_decompressWorker:function(){if(this._data instanceof w5)return this._data.getContentWorker();else if(this._data instanceof yQ)return this._data;else return new h9(this._data)}};var hQ=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f9=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(K6=0;K6<hQ.length;K6++)I5.prototype[hQ[K6]]=f9;var K6;fQ.exports=I5});var O2=B0((x0)=>{var _9=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function b9(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}x0.assign=function(Q){var J=Array.prototype.slice.call(arguments,1);while(J.length){var $=J.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var X in $)if(b9($,X))Q[X]=$[X]}return Q};x0.shrinkBuf=function(Q,J){if(Q.length===J)return Q;if(Q.subarray)return Q.subarray(0,J);return Q.length=J,Q};var u9={arraySet:function(Q,J,$,X,K){if(J.subarray&&Q.subarray){Q.set(J.subarray($,$+X),K);return}for(var Y=0;Y<X;Y++)Q[K+Y]=J[$+Y]},flattenChunks:function(Q){var J,$,X,K,Y,q;X=0;for(J=0,$=Q.length;J<$;J++)X+=Q[J].length;q=new Uint8Array(X),K=0;for(J=0,$=Q.length;J<$;J++)Y=Q[J],q.set(Y,K),K+=Y.length;return q}},p9={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)}};x0.setTyped=function(Q){if(Q)x0.Buf8=Uint8Array,x0.Buf16=Uint16Array,x0.Buf32=Int32Array,x0.assign(x0,u9);else x0.Buf8=Array,x0.Buf16=Array,x0.Buf32=Array,x0.assign(x0,p9)};x0.setTyped(_9)});var qJ=B0((D1)=>{var c9=O2(),m9=4,bQ=0,uQ=1,d9=2;function C1(Q){var J=Q.length;while(--J>=0)Q[J]=0}var l9=0,iQ=1,i9=2,n9=3,r9=258,T5=29,U6=256,V6=U6+1+T5,N1=30,k5=19,nQ=2*V6+1,t2=15,O5=16,o9=7,E5=256,rQ=16,oQ=17,aQ=18,A5=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s6=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a9=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],sQ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],s9=512,N2=Array((V6+2)*2);C1(N2);var Y6=Array(N1*2);C1(Y6);var q6=Array(s9);C1(q6);var B6=Array(r9-n9+1);C1(B6);var S5=Array(T5);C1(S5);var t6=Array(N1);C1(t6);function N5(Q,J,$,X,K){this.static_tree=Q,this.extra_bits=J,this.extra_base=$,this.elems=X,this.max_length=K,this.has_stree=Q&&Q.length}var tQ,eQ,QJ;function C5(Q,J){this.dyn_tree=Q,this.max_code=0,this.stat_desc=J}function JJ(Q){return Q<256?q6[Q]:q6[256+(Q>>>7)]}function G6(Q,J){Q.pending_buf[Q.pending++]=J&255,Q.pending_buf[Q.pending++]=J>>>8&255}function b0(Q,J,$){if(Q.bi_valid>O5-$)Q.bi_buf|=J<<Q.bi_valid&65535,G6(Q,Q.bi_buf),Q.bi_buf=J>>O5-Q.bi_valid,Q.bi_valid+=$-O5;else Q.bi_buf|=J<<Q.bi_valid&65535,Q.bi_valid+=$}function G2(Q,J,$){b0(Q,$[J*2],$[J*2+1])}function $J(Q,J){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--J>0);return $>>>1}function t9(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 e9(Q,J){var{dyn_tree:$,max_code:X}=J,K=J.stat_desc.static_tree,Y=J.stat_desc.has_stree,q=J.stat_desc.extra_bits,V=J.stat_desc.extra_base,U=J.stat_desc.max_length,B,G,j,W,H,S,C=0;for(W=0;W<=t2;W++)Q.bl_count[W]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(B=Q.heap_max+1;B<nQ;B++){if(G=Q.heap[B],W=$[$[G*2+1]*2+1]+1,W>U)W=U,C++;if($[G*2+1]=W,G>X)continue;if(Q.bl_count[W]++,H=0,G>=V)H=q[G-V];if(S=$[G*2],Q.opt_len+=S*(W+H),Y)Q.static_len+=S*(K[G*2+1]+H)}if(C===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]--,C-=2}while(C>0);for(W=U;W!==0;W--){G=Q.bl_count[W];while(G!==0){if(j=Q.heap[--B],j>X)continue;if($[j*2+1]!==W)Q.opt_len+=(W-$[j*2+1])*$[j*2],$[j*2+1]=W;G--}}}function XJ(Q,J,$){var X=Array(t2+1),K=0,Y,q;for(Y=1;Y<=t2;Y++)X[Y]=K=K+$[Y-1]<<1;for(q=0;q<=J;q++){var V=Q[q*2+1];if(V===0)continue;Q[q*2]=$J(X[V]++,V)}}function QV(){var Q,J,$,X,K,Y=Array(t2+1);$=0;for(X=0;X<T5-1;X++){S5[X]=$;for(Q=0;Q<1<<A5[X];Q++)B6[$++]=X}B6[$-1]=X,K=0;for(X=0;X<16;X++){t6[X]=K;for(Q=0;Q<1<<s6[X];Q++)q6[K++]=X}K>>=7;for(;X<N1;X++){t6[X]=K<<7;for(Q=0;Q<1<<s6[X]-7;Q++)q6[256+K++]=X}for(J=0;J<=t2;J++)Y[J]=0;Q=0;while(Q<=143)N2[Q*2+1]=8,Q++,Y[8]++;while(Q<=255)N2[Q*2+1]=9,Q++,Y[9]++;while(Q<=279)N2[Q*2+1]=7,Q++,Y[7]++;while(Q<=287)N2[Q*2+1]=8,Q++,Y[8]++;XJ(N2,V6+1,Y);for(Q=0;Q<N1;Q++)Y6[Q*2+1]=5,Y6[Q*2]=$J(Q,5);tQ=new N5(N2,A5,U6+1,V6,t2),eQ=new N5(Y6,s6,0,N1,t2),QJ=new N5([],a9,0,k5,o9)}function KJ(Q){var J;for(J=0;J<V6;J++)Q.dyn_ltree[J*2]=0;for(J=0;J<N1;J++)Q.dyn_dtree[J*2]=0;for(J=0;J<k5;J++)Q.bl_tree[J*2]=0;Q.dyn_ltree[E5*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function YJ(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 JV(Q,J,$,X){if(YJ(Q),X)G6(Q,$),G6(Q,~$);c9.arraySet(Q.pending_buf,Q.window,J,$,Q.pending),Q.pending+=$}function pQ(Q,J,$,X){var K=J*2,Y=$*2;return Q[K]<Q[Y]||Q[K]===Q[Y]&&X[J]<=X[$]}function D5(Q,J,$){var X=Q.heap[$],K=$<<1;while(K<=Q.heap_len){if(K<Q.heap_len&&pQ(J,Q.heap[K+1],Q.heap[K],Q.depth))K++;if(pQ(J,X,Q.heap[K],Q.depth))break;Q.heap[$]=Q.heap[K],$=K,K<<=1}Q.heap[$]=X}function cQ(Q,J,$){var X,K,Y=0,q,V;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+Y*2]<<8|Q.pending_buf[Q.d_buf+Y*2+1],K=Q.pending_buf[Q.l_buf+Y],Y++,X===0)G2(Q,K,J);else{if(q=B6[K],G2(Q,q+U6+1,J),V=A5[q],V!==0)K-=S5[q],b0(Q,K,V);if(X--,q=JJ(X),G2(Q,q,$),V=s6[q],V!==0)X-=t6[q],b0(Q,X,V)}while(Y<Q.last_lit);G2(Q,E5,J)}function R5(Q,J){var $=J.dyn_tree,X=J.stat_desc.static_tree,K=J.stat_desc.has_stree,Y=J.stat_desc.elems,q,V,U=-1,B;Q.heap_len=0,Q.heap_max=nQ;for(q=0;q<Y;q++)if($[q*2]!==0)Q.heap[++Q.heap_len]=U=q,Q.depth[q]=0;else $[q*2+1]=0;while(Q.heap_len<2)if(B=Q.heap[++Q.heap_len]=U<2?++U:0,$[B*2]=1,Q.depth[B]=0,Q.opt_len--,K)Q.static_len-=X[B*2+1];J.max_code=U;for(q=Q.heap_len>>1;q>=1;q--)D5(Q,$,q);B=Y;do q=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],D5(Q,$,1),V=Q.heap[1],Q.heap[--Q.heap_max]=q,Q.heap[--Q.heap_max]=V,$[B*2]=$[q*2]+$[V*2],Q.depth[B]=(Q.depth[q]>=Q.depth[V]?Q.depth[q]:Q.depth[V])+1,$[q*2+1]=$[V*2+1]=B,Q.heap[1]=B++,D5(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],e9(Q,J),XJ($,U,Q.bl_count)}function mQ(Q,J,$){var X,K=-1,Y,q=J[1],V=0,U=7,B=4;if(q===0)U=138,B=3;J[($+1)*2+1]=65535;for(X=0;X<=$;X++){if(Y=q,q=J[(X+1)*2+1],++V<U&&Y===q)continue;else if(V<B)Q.bl_tree[Y*2]+=V;else if(Y!==0){if(Y!==K)Q.bl_tree[Y*2]++;Q.bl_tree[rQ*2]++}else if(V<=10)Q.bl_tree[oQ*2]++;else Q.bl_tree[aQ*2]++;if(V=0,K=Y,q===0)U=138,B=3;else if(Y===q)U=6,B=3;else U=7,B=4}}function dQ(Q,J,$){var X,K=-1,Y,q=J[1],V=0,U=7,B=4;if(q===0)U=138,B=3;for(X=0;X<=$;X++){if(Y=q,q=J[(X+1)*2+1],++V<U&&Y===q)continue;else if(V<B)do G2(Q,Y,Q.bl_tree);while(--V!==0);else if(Y!==0){if(Y!==K)G2(Q,Y,Q.bl_tree),V--;G2(Q,rQ,Q.bl_tree),b0(Q,V-3,2)}else if(V<=10)G2(Q,oQ,Q.bl_tree),b0(Q,V-3,3);else G2(Q,aQ,Q.bl_tree),b0(Q,V-11,7);if(V=0,K=Y,q===0)U=138,B=3;else if(Y===q)U=6,B=3;else U=7,B=4}}function $V(Q){var J;mQ(Q,Q.dyn_ltree,Q.l_desc.max_code),mQ(Q,Q.dyn_dtree,Q.d_desc.max_code),R5(Q,Q.bl_desc);for(J=k5-1;J>=3;J--)if(Q.bl_tree[sQ[J]*2+1]!==0)break;return Q.opt_len+=3*(J+1)+5+5+4,J}function XV(Q,J,$,X){var K;b0(Q,J-257,5),b0(Q,$-1,5),b0(Q,X-4,4);for(K=0;K<X;K++)b0(Q,Q.bl_tree[sQ[K]*2+1],3);dQ(Q,Q.dyn_ltree,J-1),dQ(Q,Q.dyn_dtree,$-1)}function KV(Q){var J=4093624447,$;for($=0;$<=31;$++,J>>>=1)if(J&1&&Q.dyn_ltree[$*2]!==0)return bQ;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return uQ;for($=32;$<U6;$++)if(Q.dyn_ltree[$*2]!==0)return uQ;return bQ}var lQ=!1;function YV(Q){if(!lQ)QV(),lQ=!0;Q.l_desc=new C5(Q.dyn_ltree,tQ),Q.d_desc=new C5(Q.dyn_dtree,eQ),Q.bl_desc=new C5(Q.bl_tree,QJ),Q.bi_buf=0,Q.bi_valid=0,KJ(Q)}function VJ(Q,J,$,X){b0(Q,(l9<<1)+(X?1:0),3),JV(Q,J,$,!0)}function VV(Q){b0(Q,iQ<<1,3),G2(Q,E5,N2),t9(Q)}function qV(Q,J,$,X){var K,Y,q=0;if(Q.level>0){if(Q.strm.data_type===d9)Q.strm.data_type=KV(Q);if(R5(Q,Q.l_desc),R5(Q,Q.d_desc),q=$V(Q),K=Q.opt_len+3+7>>>3,Y=Q.static_len+3+7>>>3,Y<=K)K=Y}else K=Y=$+5;if($+4<=K&&J!==-1)VJ(Q,J,$,X);else if(Q.strategy===m9||Y===K)b0(Q,(iQ<<1)+(X?1:0),3),cQ(Q,N2,Y6);else b0(Q,(i9<<1)+(X?1:0),3),XV(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,q+1),cQ(Q,Q.dyn_ltree,Q.dyn_dtree);if(KJ(Q),X)YJ(Q)}function BV(Q,J,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=J>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=J&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,J===0)Q.dyn_ltree[$*2]++;else Q.matches++,J--,Q.dyn_ltree[(B6[$]+U6+1)*2]++,Q.dyn_dtree[JJ(J)*2]++;return Q.last_lit===Q.lit_bufsize-1}D1._tr_init=YV;D1._tr_stored_block=VJ;D1._tr_flush_block=qV;D1._tr_tally=BV;D1._tr_align=VV});var v5=B0((QG,BJ)=>{function GV(Q,J,$,X){var K=Q&65535|0,Y=Q>>>16&65535|0,q=0;while($!==0){q=$>2000?2000:$,$-=q;do K=K+J[X++]|0,Y=Y+K|0;while(--q);K%=65521,Y%=65521}return K|Y<<16|0}BJ.exports=GV});var g5=B0((JG,GJ)=>{function UV(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var zV=UV();function ZV(Q,J,$,X){var K=zV,Y=X+$;Q^=-1;for(var q=X;q<Y;q++)Q=Q>>>8^K[(Q^J[q])&255];return Q^-1}GJ.exports=ZV});var e6=B0(($G,UJ)=>{UJ.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 FJ=B0((Z2)=>{var y0=O2(),r0=qJ(),HJ=v5(),x2=g5(),WV=e6(),$1=0,HV=1,jV=3,b2=4,zJ=5,z2=0,ZJ=1,o0=-2,PV=-3,x5=-5,MV=-1,LV=1,Q8=2,FV=3,wV=4,IV=0,OV=2,K8=8,NV=9,CV=15,DV=8,AV=29,RV=256,h5=RV+1+AV,TV=30,kV=19,EV=2*h5+1,SV=15,j0=3,f2=258,e0=f2+j0+1,vV=32,Y8=42,f5=69,J8=73,$8=91,X8=103,e2=113,Z6=666,R0=1,W6=2,Q1=3,T1=4,gV=3;function _2(Q,J){return Q.msg=WV[J],J}function WJ(Q){return(Q<<1)-(Q>4?9:0)}function h2(Q){var J=Q.length;while(--J>=0)Q[J]=0}function y2(Q){var J=Q.state,$=J.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(y0.arraySet(Q.output,J.pending_buf,J.pending_out,$,Q.next_out),Q.next_out+=$,J.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,J.pending-=$,J.pending===0)J.pending_out=0}function k0(Q,J){r0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,J),Q.block_start=Q.strstart,y2(Q.strm)}function P0(Q,J){Q.pending_buf[Q.pending++]=J}function z6(Q,J){Q.pending_buf[Q.pending++]=J>>>8&255,Q.pending_buf[Q.pending++]=J&255}function xV(Q,J,$,X){var K=Q.avail_in;if(K>X)K=X;if(K===0)return 0;if(Q.avail_in-=K,y0.arraySet(J,Q.input,Q.next_in,K,$),Q.state.wrap===1)Q.adler=HJ(Q.adler,J,K,$);else if(Q.state.wrap===2)Q.adler=x2(Q.adler,J,K,$);return Q.next_in+=K,Q.total_in+=K,K}function jJ(Q,J){var{max_chain_length:$,strstart:X}=Q,K,Y,q=Q.prev_length,V=Q.nice_match,U=Q.strstart>Q.w_size-e0?Q.strstart-(Q.w_size-e0):0,B=Q.window,G=Q.w_mask,j=Q.prev,W=Q.strstart+f2,H=B[X+q-1],S=B[X+q];if(Q.prev_length>=Q.good_match)$>>=2;if(V>Q.lookahead)V=Q.lookahead;do{if(K=J,B[K+q]!==S||B[K+q-1]!==H||B[K]!==B[X]||B[++K]!==B[X+1])continue;X+=2,K++;do;while(B[++X]===B[++K]&&B[++X]===B[++K]&&B[++X]===B[++K]&&B[++X]===B[++K]&&B[++X]===B[++K]&&B[++X]===B[++K]&&B[++X]===B[++K]&&B[++X]===B[++K]&&X<W);if(Y=f2-(W-X),X=W-f2,Y>q){if(Q.match_start=J,q=Y,Y>=V)break;H=B[X+q-1],S=B[X+q]}}while((J=j[J&G])>U&&--$!==0);if(q<=Q.lookahead)return q;return Q.lookahead}function J1(Q){var J=Q.w_size,$,X,K,Y,q;do{if(Y=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=J+(J-e0)){y0.arraySet(Q.window,Q.window,J,J,0),Q.match_start-=J,Q.strstart-=J,Q.block_start-=J,X=Q.hash_size,$=X;do K=Q.head[--$],Q.head[$]=K>=J?K-J:0;while(--X);X=J,$=X;do K=Q.prev[--$],Q.prev[$]=K>=J?K-J:0;while(--X);Y+=J}if(Q.strm.avail_in===0)break;if(X=xV(Q.strm,Q.window,Q.strstart+Q.lookahead,Y),Q.lookahead+=X,Q.lookahead+Q.insert>=j0){q=Q.strstart-Q.insert,Q.ins_h=Q.window[q],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[q+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[q+j0-1])&Q.hash_mask,Q.prev[q&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=q,q++,Q.insert--,Q.lookahead+Q.insert<j0)break}}while(Q.lookahead<e0&&Q.strm.avail_in!==0)}function yV(Q,J){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(J1(Q),Q.lookahead===0&&J===$1)return R0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var X=Q.block_start+$;if(Q.strstart===0||Q.strstart>=X){if(Q.lookahead=Q.strstart-X,Q.strstart=X,k0(Q,!1),Q.strm.avail_out===0)return R0}if(Q.strstart-Q.block_start>=Q.w_size-e0){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.strstart>Q.block_start){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return R0}function y5(Q,J){var $,X;for(;;){if(Q.lookahead<e0){if(J1(Q),Q.lookahead<e0&&J===$1)return R0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if($!==0&&Q.strstart-$<=Q.w_size-e0)Q.match_length=jJ(Q,$);if(Q.match_length>=j0)if(X=r0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=j0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.match_length!==0);Q.strstart++}else Q.strstart+=Q.match_length,Q.match_length=0,Q.ins_h=Q.window[Q.strstart],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+1])&Q.hash_mask;else X=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function A1(Q,J){var $,X,K;for(;;){if(Q.lookahead<e0){if(J1(Q),Q.lookahead<e0&&J===$1)return R0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=j0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;if(Q.prev_length=Q.match_length,Q.prev_match=Q.match_start,Q.match_length=j0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-e0){if(Q.match_length=jJ(Q,$),Q.match_length<=5&&(Q.strategy===LV||Q.match_length===j0&&Q.strstart-Q.match_start>4096))Q.match_length=j0-1}if(Q.prev_length>=j0&&Q.match_length<=Q.prev_length){K=Q.strstart+Q.lookahead-j0,X=r0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-j0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=K)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+j0-1])&Q.hash_mask,$=Q.prev[Q.strstart&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=Q.strstart;while(--Q.prev_length!==0);if(Q.match_available=0,Q.match_length=j0-1,Q.strstart++,X){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}else if(Q.match_available){if(X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)k0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return R0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=r0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<j0-1?Q.strstart:j0-1,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function hV(Q,J){var $,X,K,Y,q=Q.window;for(;;){if(Q.lookahead<=f2){if(J1(Q),Q.lookahead<=f2&&J===$1)return R0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=j0&&Q.strstart>0){if(K=Q.strstart-1,X=q[K],X===q[++K]&&X===q[++K]&&X===q[++K]){Y=Q.strstart+f2;do;while(X===q[++K]&&X===q[++K]&&X===q[++K]&&X===q[++K]&&X===q[++K]&&X===q[++K]&&X===q[++K]&&X===q[++K]&&K<Y);if(Q.match_length=f2-(Y-K),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=j0)$=r0._tr_tally(Q,1,Q.match_length-j0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function fV(Q,J){var $;for(;;){if(Q.lookahead===0){if(J1(Q),Q.lookahead===0){if(J===$1)return R0;break}}if(Q.match_length=0,$=r0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(k0(Q,!1),Q.strm.avail_out===0)return R0}}if(Q.insert=0,J===b2){if(k0(Q,!0),Q.strm.avail_out===0)return Q1;return T1}if(Q.last_lit){if(k0(Q,!1),Q.strm.avail_out===0)return R0}return W6}function U2(Q,J,$,X,K){this.good_length=Q,this.max_lazy=J,this.nice_length=$,this.max_chain=X,this.func=K}var R1;R1=[new U2(0,0,0,0,yV),new U2(4,4,8,4,y5),new U2(4,5,16,8,y5),new U2(4,6,32,32,y5),new U2(4,4,16,16,A1),new U2(8,16,32,32,A1),new U2(8,16,128,128,A1),new U2(8,32,128,256,A1),new U2(32,128,258,1024,A1),new U2(32,258,258,4096,A1)];function _V(Q){Q.window_size=2*Q.w_size,h2(Q.head),Q.max_lazy_match=R1[Q.level].max_lazy,Q.good_match=R1[Q.level].good_length,Q.nice_match=R1[Q.level].nice_length,Q.max_chain_length=R1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=j0-1,Q.match_available=0,Q.ins_h=0}function bV(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=K8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new y0.Buf16(EV*2),this.dyn_dtree=new y0.Buf16((2*TV+1)*2),this.bl_tree=new y0.Buf16((2*kV+1)*2),h2(this.dyn_ltree),h2(this.dyn_dtree),h2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new y0.Buf16(SV+1),this.heap=new y0.Buf16(2*h5+1),h2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new y0.Buf16(2*h5+1),h2(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function PJ(Q){var J;if(!Q||!Q.state)return _2(Q,o0);if(Q.total_in=Q.total_out=0,Q.data_type=OV,J=Q.state,J.pending=0,J.pending_out=0,J.wrap<0)J.wrap=-J.wrap;return J.status=J.wrap?Y8:e2,Q.adler=J.wrap===2?0:1,J.last_flush=$1,r0._tr_init(J),z2}function MJ(Q){var J=PJ(Q);if(J===z2)_V(Q.state);return J}function uV(Q,J){if(!Q||!Q.state)return o0;if(Q.state.wrap!==2)return o0;return Q.state.gzhead=J,z2}function LJ(Q,J,$,X,K,Y){if(!Q)return o0;var q=1;if(J===MV)J=6;if(X<0)q=0,X=-X;else if(X>15)q=2,X-=16;if(K<1||K>NV||$!==K8||X<8||X>15||J<0||J>9||Y<0||Y>wV)return _2(Q,o0);if(X===8)X=9;var V=new bV;return Q.state=V,V.strm=Q,V.wrap=q,V.gzhead=null,V.w_bits=X,V.w_size=1<<V.w_bits,V.w_mask=V.w_size-1,V.hash_bits=K+7,V.hash_size=1<<V.hash_bits,V.hash_mask=V.hash_size-1,V.hash_shift=~~((V.hash_bits+j0-1)/j0),V.window=new y0.Buf8(V.w_size*2),V.head=new y0.Buf16(V.hash_size),V.prev=new y0.Buf16(V.w_size),V.lit_bufsize=1<<K+6,V.pending_buf_size=V.lit_bufsize*4,V.pending_buf=new y0.Buf8(V.pending_buf_size),V.d_buf=1*V.lit_bufsize,V.l_buf=3*V.lit_bufsize,V.level=J,V.strategy=Y,V.method=$,MJ(Q)}function pV(Q,J){return LJ(Q,J,K8,CV,DV,IV)}function cV(Q,J){var $,X,K,Y;if(!Q||!Q.state||J>zJ||J<0)return Q?_2(Q,o0):o0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===Z6&&J!==b2)return _2(Q,Q.avail_out===0?x5:o0);if(X.strm=Q,$=X.last_flush,X.last_flush=J,X.status===Y8)if(X.wrap===2)if(Q.adler=0,P0(X,31),P0(X,139),P0(X,8),!X.gzhead)P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,0),P0(X,X.level===9?2:X.strategy>=Q8||X.level<2?4:0),P0(X,gV),X.status=e2;else{if(P0(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(!X.gzhead.extra?0:4)+(!X.gzhead.name?0:8)+(!X.gzhead.comment?0:16)),P0(X,X.gzhead.time&255),P0(X,X.gzhead.time>>8&255),P0(X,X.gzhead.time>>16&255),P0(X,X.gzhead.time>>24&255),P0(X,X.level===9?2:X.strategy>=Q8||X.level<2?4:0),P0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)P0(X,X.gzhead.extra.length&255),P0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=x2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=f5}else{var q=K8+(X.w_bits-8<<4)<<8,V=-1;if(X.strategy>=Q8||X.level<2)V=0;else if(X.level<6)V=1;else if(X.level===6)V=2;else V=3;if(q|=V<<6,X.strstart!==0)q|=vV;if(q+=31-q%31,X.status=e2,z6(X,q),X.strstart!==0)z6(X,Q.adler>>>16),z6(X,Q.adler&65535);Q.adler=1}if(X.status===f5)if(X.gzhead.extra){K=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=x2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size)break}P0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>K)Q.adler=x2(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=x2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.name.length)Y=X.gzhead.name.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=x2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.gzindex=0,X.status=$8}else X.status=$8;if(X.status===$8)if(X.gzhead.comment){K=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>K)Q.adler=x2(Q.adler,X.pending_buf,X.pending-K,K);if(y2(Q),K=X.pending,X.pending===X.pending_buf_size){Y=1;break}}if(X.gzindex<X.gzhead.comment.length)Y=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else Y=0;P0(X,Y)}while(Y!==0);if(X.gzhead.hcrc&&X.pending>K)Q.adler=x2(Q.adler,X.pending_buf,X.pending-K,K);if(Y===0)X.status=X8}else X.status=X8;if(X.status===X8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)y2(Q);if(X.pending+2<=X.pending_buf_size)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),Q.adler=0,X.status=e2}else X.status=e2;if(X.pending!==0){if(y2(Q),Q.avail_out===0)return X.last_flush=-1,z2}else if(Q.avail_in===0&&WJ(J)<=WJ($)&&J!==b2)return _2(Q,x5);if(X.status===Z6&&Q.avail_in!==0)return _2(Q,x5);if(Q.avail_in!==0||X.lookahead!==0||J!==$1&&X.status!==Z6){var U=X.strategy===Q8?fV(X,J):X.strategy===FV?hV(X,J):R1[X.level].func(X,J);if(U===Q1||U===T1)X.status=Z6;if(U===R0||U===Q1){if(Q.avail_out===0)X.last_flush=-1;return z2}if(U===W6){if(J===HV)r0._tr_align(X);else if(J!==zJ){if(r0._tr_stored_block(X,0,0,!1),J===jV){if(h2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(y2(Q),Q.avail_out===0)return X.last_flush=-1,z2}}if(J!==b2)return z2;if(X.wrap<=0)return ZJ;if(X.wrap===2)P0(X,Q.adler&255),P0(X,Q.adler>>8&255),P0(X,Q.adler>>16&255),P0(X,Q.adler>>24&255),P0(X,Q.total_in&255),P0(X,Q.total_in>>8&255),P0(X,Q.total_in>>16&255),P0(X,Q.total_in>>24&255);else z6(X,Q.adler>>>16),z6(X,Q.adler&65535);if(y2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?z2:ZJ}function mV(Q){var J;if(!Q||!Q.state)return o0;if(J=Q.state.status,J!==Y8&&J!==f5&&J!==J8&&J!==$8&&J!==X8&&J!==e2&&J!==Z6)return _2(Q,o0);return Q.state=null,J===e2?_2(Q,PV):z2}function dV(Q,J){var $=J.length,X,K,Y,q,V,U,B,G;if(!Q||!Q.state)return o0;if(X=Q.state,q=X.wrap,q===2||q===1&&X.status!==Y8||X.lookahead)return o0;if(q===1)Q.adler=HJ(Q.adler,J,$,0);if(X.wrap=0,$>=X.w_size){if(q===0)h2(X.head),X.strstart=0,X.block_start=0,X.insert=0;G=new y0.Buf8(X.w_size),y0.arraySet(G,J,$-X.w_size,X.w_size,0),J=G,$=X.w_size}V=Q.avail_in,U=Q.next_in,B=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=J,J1(X);while(X.lookahead>=j0){K=X.strstart,Y=X.lookahead-(j0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[K+j0-1])&X.hash_mask,X.prev[K&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=K,K++;while(--Y);X.strstart=K,X.lookahead=j0-1,J1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=j0-1,X.match_available=0,Q.next_in=U,Q.input=B,Q.avail_in=V,X.wrap=q,z2}Z2.deflateInit=pV;Z2.deflateInit2=LJ;Z2.deflateReset=MJ;Z2.deflateResetKeep=PJ;Z2.deflateSetHeader=uV;Z2.deflate=cV;Z2.deflateEnd=mV;Z2.deflateSetDictionary=dV;Z2.deflateInfo="pako deflate (from Nodeca project)"});var _5=B0((k1)=>{var V8=O2(),wJ=!0,IJ=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){wJ=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){IJ=!1}var H6=new V8.Buf8(256);for(W2=0;W2<256;W2++)H6[W2]=W2>=252?6:W2>=248?5:W2>=240?4:W2>=224?3:W2>=192?2:1;var W2;H6[254]=H6[254]=1;k1.string2buf=function(Q){var J,$,X,K,Y,q=Q.length,V=0;for(K=0;K<q;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<q){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}V+=$<128?1:$<2048?2:$<65536?3:4}J=new V8.Buf8(V);for(Y=0,K=0;Y<V;K++){if($=Q.charCodeAt(K),($&64512)===55296&&K+1<q){if(X=Q.charCodeAt(K+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),K++}if($<128)J[Y++]=$;else if($<2048)J[Y++]=192|$>>>6,J[Y++]=128|$&63;else if($<65536)J[Y++]=224|$>>>12,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63;else J[Y++]=240|$>>>18,J[Y++]=128|$>>>12&63,J[Y++]=128|$>>>6&63,J[Y++]=128|$&63}return J};function OJ(Q,J){if(J<65534){if(Q.subarray&&IJ||!Q.subarray&&wJ)return String.fromCharCode.apply(null,V8.shrinkBuf(Q,J))}var $="";for(var X=0;X<J;X++)$+=String.fromCharCode(Q[X]);return $}k1.buf2binstring=function(Q){return OJ(Q,Q.length)};k1.binstring2buf=function(Q){var J=new V8.Buf8(Q.length);for(var $=0,X=J.length;$<X;$++)J[$]=Q.charCodeAt($);return J};k1.buf2string=function(Q,J){var $,X,K,Y,q=J||Q.length,V=Array(q*2);for(X=0,$=0;$<q;){if(K=Q[$++],K<128){V[X++]=K;continue}if(Y=H6[K],Y>4){V[X++]=65533,$+=Y-1;continue}K&=Y===2?31:Y===3?15:7;while(Y>1&&$<q)K=K<<6|Q[$++]&63,Y--;if(Y>1){V[X++]=65533;continue}if(K<65536)V[X++]=K;else K-=65536,V[X++]=55296|K>>10&1023,V[X++]=56320|K&1023}return OJ(V,X)};k1.utf8border=function(Q,J){var $;if(J=J||Q.length,J>Q.length)J=Q.length;$=J-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return J;if($===0)return J;return $+H6[Q[$]]>J?$:J}});var b5=B0((YG,NJ)=>{function lV(){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}NJ.exports=lV});var RJ=B0((M6)=>{var j6=FJ(),P6=O2(),p5=_5(),c5=e6(),iV=b5(),AJ=Object.prototype.toString,nV=0,u5=4,E1=0,CJ=1,DJ=2,rV=-1,oV=0,aV=8;function X1(Q){if(!(this instanceof X1))return new X1(Q);this.options=P6.assign({level:rV,method:aV,chunkSize:16384,windowBits:15,memLevel:8,strategy:oV,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>0)J.windowBits=-J.windowBits;else if(J.gzip&&J.windowBits>0&&J.windowBits<16)J.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iV,this.strm.avail_out=0;var $=j6.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if($!==E1)throw Error(c5[$]);if(J.header)j6.deflateSetHeader(this.strm,J.header);if(J.dictionary){var X;if(typeof J.dictionary==="string")X=p5.string2buf(J.dictionary);else if(AJ.call(J.dictionary)==="[object ArrayBuffer]")X=new Uint8Array(J.dictionary);else X=J.dictionary;if($=j6.deflateSetDictionary(this.strm,X),$!==E1)throw Error(c5[$]);this._dict_set=!0}}X1.prototype.push=function(Q,J){var $=this.strm,X=this.options.chunkSize,K,Y;if(this.ended)return!1;if(Y=J===~~J?J:J===!0?u5:nV,typeof Q==="string")$.input=p5.string2buf(Q);else if(AJ.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new P6.Buf8(X),$.next_out=0,$.avail_out=X;if(K=j6.deflate($,Y),K!==CJ&&K!==E1)return this.onEnd(K),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(Y===u5||Y===DJ))if(this.options.to==="string")this.onData(p5.buf2binstring(P6.shrinkBuf($.output,$.next_out)));else this.onData(P6.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&K!==CJ);if(Y===u5)return K=j6.deflateEnd(this.strm),this.onEnd(K),this.ended=!0,K===E1;if(Y===DJ)return this.onEnd(E1),$.avail_out=0,!0;return!0};X1.prototype.onData=function(Q){this.chunks.push(Q)};X1.prototype.onEnd=function(Q){if(Q===E1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=P6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function m5(Q,J){var $=new X1(J);if($.push(Q,!0),$.err)throw $.msg||c5[$.err];return $.result}function sV(Q,J){return J=J||{},J.raw=!0,m5(Q,J)}function tV(Q,J){return J=J||{},J.gzip=!0,m5(Q,J)}M6.Deflate=X1;M6.deflate=m5;M6.deflateRaw=sV;M6.gzip=tV});var kJ=B0((qG,TJ)=>{var q8=30,eV=12;TJ.exports=function(J,$){var X,K,Y,q,V,U,B,G,j,W,H,S,C,w,F,z,P,L,I,g,c,l,f,v,T;X=J.state,K=J.next_in,v=J.input,Y=K+(J.avail_in-5),q=J.next_out,T=J.output,V=q-($-J.avail_out),U=q+(J.avail_out-257),B=X.dmax,G=X.wsize,j=X.whave,W=X.wnext,H=X.window,S=X.hold,C=X.bits,w=X.lencode,F=X.distcode,z=(1<<X.lenbits)-1,P=(1<<X.distbits)-1;Q:do{if(C<15)S+=v[K++]<<C,C+=8,S+=v[K++]<<C,C+=8;L=w[S&z];J:for(;;){if(I=L>>>24,S>>>=I,C-=I,I=L>>>16&255,I===0)T[q++]=L&65535;else if(I&16){if(g=L&65535,I&=15,I){if(C<I)S+=v[K++]<<C,C+=8;g+=S&(1<<I)-1,S>>>=I,C-=I}if(C<15)S+=v[K++]<<C,C+=8,S+=v[K++]<<C,C+=8;L=F[S&P];$:for(;;){if(I=L>>>24,S>>>=I,C-=I,I=L>>>16&255,I&16){if(c=L&65535,I&=15,C<I){if(S+=v[K++]<<C,C+=8,C<I)S+=v[K++]<<C,C+=8}if(c+=S&(1<<I)-1,c>B){J.msg="invalid distance too far back",X.mode=q8;break Q}if(S>>>=I,C-=I,I=q-V,c>I){if(I=c-I,I>j){if(X.sane){J.msg="invalid distance too far back",X.mode=q8;break Q}}if(l=0,f=H,W===0){if(l+=G-I,I<g){g-=I;do T[q++]=H[l++];while(--I);l=q-c,f=T}}else if(W<I){if(l+=G+W-I,I-=W,I<g){g-=I;do T[q++]=H[l++];while(--I);if(l=0,W<g){I=W,g-=I;do T[q++]=H[l++];while(--I);l=q-c,f=T}}}else if(l+=W-I,I<g){g-=I;do T[q++]=H[l++];while(--I);l=q-c,f=T}while(g>2)T[q++]=f[l++],T[q++]=f[l++],T[q++]=f[l++],g-=3;if(g){if(T[q++]=f[l++],g>1)T[q++]=f[l++]}}else{l=q-c;do T[q++]=T[l++],T[q++]=T[l++],T[q++]=T[l++],g-=3;while(g>2);if(g){if(T[q++]=T[l++],g>1)T[q++]=T[l++]}}}else if((I&64)===0){L=F[(L&65535)+(S&(1<<I)-1)];continue $}else{J.msg="invalid distance code",X.mode=q8;break Q}break}}else if((I&64)===0){L=w[(L&65535)+(S&(1<<I)-1)];continue J}else if(I&32){X.mode=eV;break Q}else{J.msg="invalid literal/length code",X.mode=q8;break Q}break}}while(K<Y&&q<U);g=C>>3,K-=g,C-=g<<3,S&=(1<<C)-1,J.next_in=K,J.next_out=q,J.avail_in=K<Y?5+(Y-K):5-(K-Y),J.avail_out=q<U?257+(U-q):257-(q-U),X.hold=S,X.bits=C;return}});var hJ=B0((BG,yJ)=>{var EJ=O2(),S1=15,SJ=852,vJ=592,gJ=0,d5=1,xJ=2,Qq=[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],Jq=[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],$q=[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],Xq=[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];yJ.exports=function(J,$,X,K,Y,q,V,U){var B=U.bits,G=0,j=0,W=0,H=0,S=0,C=0,w=0,F=0,z=0,P=0,L,I,g,c,l,f=null,v=0,T,N=new EJ.Buf16(S1+1),E=new EJ.Buf16(S1+1),x=null,k=0,o,e,X0;for(G=0;G<=S1;G++)N[G]=0;for(j=0;j<K;j++)N[$[X+j]]++;S=B;for(H=S1;H>=1;H--)if(N[H]!==0)break;if(S>H)S=H;if(H===0)return Y[q++]=20971520,Y[q++]=20971520,U.bits=1,0;for(W=1;W<H;W++)if(N[W]!==0)break;if(S<W)S=W;F=1;for(G=1;G<=S1;G++)if(F<<=1,F-=N[G],F<0)return-1;if(F>0&&(J===gJ||H!==1))return-1;E[1]=0;for(G=1;G<S1;G++)E[G+1]=E[G]+N[G];for(j=0;j<K;j++)if($[X+j]!==0)V[E[$[X+j]]++]=j;if(J===gJ)f=x=V,T=19;else if(J===d5)f=Qq,v-=257,x=Jq,k-=257,T=256;else f=$q,x=Xq,T=-1;if(P=0,j=0,G=W,l=q,C=S,w=0,g=-1,z=1<<S,c=z-1,J===d5&&z>SJ||J===xJ&&z>vJ)return 1;for(;;){if(o=G-w,V[j]<T)e=0,X0=V[j];else if(V[j]>T)e=x[k+V[j]],X0=f[v+V[j]];else e=96,X0=0;L=1<<G-w,I=1<<C,W=I;do I-=L,Y[l+(P>>w)+I]=o<<24|e<<16|X0|0;while(I!==0);L=1<<G-1;while(P&L)L>>=1;if(L!==0)P&=L-1,P+=L;else P=0;if(j++,--N[G]===0){if(G===H)break;G=$[X+V[j]]}if(G>S&&(P&c)!==g){if(w===0)w=S;l+=W,C=G-w,F=1<<C;while(C+w<H){if(F-=N[C+w],F<=0)break;C++,F<<=1}if(z+=1<<C,J===d5&&z>SJ||J===xJ&&z>vJ)return 1;g=P&c,Y[g]=S<<24|C<<16|l-q|0}}if(P!==0)Y[l+P]=G-w<<24|4194304|0;return U.bits=S,0}});var M$=B0((Q2)=>{var m0=O2(),a5=v5(),H2=g5(),Kq=kJ(),L6=hJ(),Yq=0,B$=1,G$=2,fJ=4,Vq=5,B8=6,K1=0,qq=1,Bq=2,a0=-2,U$=-3,s5=-4,Gq=-5,_J=8,z$=1,bJ=2,uJ=3,pJ=4,cJ=5,mJ=6,dJ=7,lJ=8,iJ=9,nJ=10,z8=11,C2=12,l5=13,rJ=14,i5=15,oJ=16,aJ=17,sJ=18,tJ=19,G8=20,U8=21,eJ=22,Q$=23,J$=24,$$=25,X$=26,n5=27,K$=28,Y$=29,I0=30,t5=31,Uq=32,zq=852,Zq=592,Wq=15,Hq=Wq;function V$(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function jq(){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 Z$(Q){var J;if(!Q||!Q.state)return a0;if(J=Q.state,Q.total_in=Q.total_out=J.total=0,Q.msg="",J.wrap)Q.adler=J.wrap&1;return J.mode=z$,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new m0.Buf32(zq),J.distcode=J.distdyn=new m0.Buf32(Zq),J.sane=1,J.back=-1,K1}function W$(Q){var J;if(!Q||!Q.state)return a0;return J=Q.state,J.wsize=0,J.whave=0,J.wnext=0,Z$(Q)}function H$(Q,J){var $,X;if(!Q||!Q.state)return a0;if(X=Q.state,J<0)$=0,J=-J;else if($=(J>>4)+1,J<48)J&=15;if(J&&(J<8||J>15))return a0;if(X.window!==null&&X.wbits!==J)X.window=null;return X.wrap=$,X.wbits=J,W$(Q)}function j$(Q,J){var $,X;if(!Q)return a0;if(X=new jq,Q.state=X,X.window=null,$=H$(Q,J),$!==K1)Q.state=null;return $}function Pq(Q){return j$(Q,Hq)}var q$=!0,r5,o5;function Mq(Q){if(q$){var J;r5=new m0.Buf32(512),o5=new m0.Buf32(32),J=0;while(J<144)Q.lens[J++]=8;while(J<256)Q.lens[J++]=9;while(J<280)Q.lens[J++]=7;while(J<288)Q.lens[J++]=8;L6(B$,Q.lens,0,288,r5,0,Q.work,{bits:9}),J=0;while(J<32)Q.lens[J++]=5;L6(G$,Q.lens,0,32,o5,0,Q.work,{bits:5}),q$=!1}Q.lencode=r5,Q.lenbits=9,Q.distcode=o5,Q.distbits=5}function P$(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 Lq(Q,J){var $,X,K,Y,q,V,U,B,G,j,W,H,S,C,w=0,F,z,P,L,I,g,c,l,f=new m0.Buf8(4),v,T,N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Q||!Q.state||!Q.output||!Q.input&&Q.avail_in!==0)return a0;if($=Q.state,$.mode===C2)$.mode=l5;q=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,V=Q.avail_in,B=$.hold,G=$.bits,j=V,W=U,l=K1;Q:for(;;)switch($.mode){case z$:if($.wrap===0){$.mode=l5;break}while(G<16){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if($.wrap&2&&B===35615){$.check=0,f[0]=B&255,f[1]=B>>>8&255,$.check=H2($.check,f,2,0),B=0,G=0,$.mode=bJ;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((B&255)<<8)+(B>>8))%31){Q.msg="incorrect header check",$.mode=I0;break}if((B&15)!==_J){Q.msg="unknown compression method",$.mode=I0;break}if(B>>>=4,G-=4,c=(B&15)+8,$.wbits===0)$.wbits=c;else if(c>$.wbits){Q.msg="invalid window size",$.mode=I0;break}$.dmax=1<<c,Q.adler=$.check=1,$.mode=B&512?nJ:C2,B=0,G=0;break;case bJ:while(G<16){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if($.flags=B,($.flags&255)!==_J){Q.msg="unknown compression method",$.mode=I0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=I0;break}if($.head)$.head.text=B>>8&1;if($.flags&512)f[0]=B&255,f[1]=B>>>8&255,$.check=H2($.check,f,2,0);B=0,G=0,$.mode=uJ;case uJ:while(G<32){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if($.head)$.head.time=B;if($.flags&512)f[0]=B&255,f[1]=B>>>8&255,f[2]=B>>>16&255,f[3]=B>>>24&255,$.check=H2($.check,f,4,0);B=0,G=0,$.mode=pJ;case pJ:while(G<16){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if($.head)$.head.xflags=B&255,$.head.os=B>>8;if($.flags&512)f[0]=B&255,f[1]=B>>>8&255,$.check=H2($.check,f,2,0);B=0,G=0,$.mode=cJ;case cJ:if($.flags&1024){while(G<16){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if($.length=B,$.head)$.head.extra_len=B;if($.flags&512)f[0]=B&255,f[1]=B>>>8&255,$.check=H2($.check,f,2,0);B=0,G=0}else if($.head)$.head.extra=null;$.mode=mJ;case mJ:if($.flags&1024){if(H=$.length,H>V)H=V;if(H){if($.head){if(c=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);m0.arraySet($.head.extra,X,Y,H,c)}if($.flags&512)$.check=H2($.check,X,H,Y);V-=H,Y+=H,$.length-=H}if($.length)break Q}$.length=0,$.mode=dJ;case dJ:if($.flags&2048){if(V===0)break Q;H=0;do if(c=X[Y+H++],$.head&&c&&$.length<65536)$.head.name+=String.fromCharCode(c);while(c&&H<V);if($.flags&512)$.check=H2($.check,X,H,Y);if(V-=H,Y+=H,c)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=lJ;case lJ:if($.flags&4096){if(V===0)break Q;H=0;do if(c=X[Y+H++],$.head&&c&&$.length<65536)$.head.comment+=String.fromCharCode(c);while(c&&H<V);if($.flags&512)$.check=H2($.check,X,H,Y);if(V-=H,Y+=H,c)break Q}else if($.head)$.head.comment=null;$.mode=iJ;case iJ:if($.flags&512){while(G<16){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if(B!==($.check&65535)){Q.msg="header crc mismatch",$.mode=I0;break}B=0,G=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=C2;break;case nJ:while(G<32){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}Q.adler=$.check=V$(B),B=0,G=0,$.mode=z8;case z8:if($.havedict===0)return Q.next_out=q,Q.avail_out=U,Q.next_in=Y,Q.avail_in=V,$.hold=B,$.bits=G,Bq;Q.adler=$.check=1,$.mode=C2;case C2:if(J===Vq||J===B8)break Q;case l5:if($.last){B>>>=G&7,G-=G&7,$.mode=n5;break}while(G<3){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}switch($.last=B&1,B>>>=1,G-=1,B&3){case 0:$.mode=rJ;break;case 1:if(Mq($),$.mode=G8,J===B8){B>>>=2,G-=2;break Q}break;case 2:$.mode=aJ;break;case 3:Q.msg="invalid block type",$.mode=I0}B>>>=2,G-=2;break;case rJ:B>>>=G&7,G-=G&7;while(G<32){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if((B&65535)!==(B>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=I0;break}if($.length=B&65535,B=0,G=0,$.mode=i5,J===B8)break Q;case i5:$.mode=oJ;case oJ:if(H=$.length,H){if(H>V)H=V;if(H>U)H=U;if(H===0)break Q;m0.arraySet(K,X,Y,H,q),V-=H,Y+=H,U-=H,q+=H,$.length-=H;break}$.mode=C2;break;case aJ:while(G<14){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if($.nlen=(B&31)+257,B>>>=5,G-=5,$.ndist=(B&31)+1,B>>>=5,G-=5,$.ncode=(B&15)+4,B>>>=4,G-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=I0;break}$.have=0,$.mode=sJ;case sJ:while($.have<$.ncode){while(G<3){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}$.lens[N[$.have++]]=B&7,B>>>=3,G-=3}while($.have<19)$.lens[N[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,v={bits:$.lenbits},l=L6(Yq,$.lens,0,19,$.lencode,0,$.work,v),$.lenbits=v.bits,l){Q.msg="invalid code lengths set",$.mode=I0;break}$.have=0,$.mode=tJ;case tJ:while($.have<$.nlen+$.ndist){for(;;){if(w=$.lencode[B&(1<<$.lenbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=G)break;if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if(P<16)B>>>=F,G-=F,$.lens[$.have++]=P;else{if(P===16){T=F+2;while(G<T){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if(B>>>=F,G-=F,$.have===0){Q.msg="invalid bit length repeat",$.mode=I0;break}c=$.lens[$.have-1],H=3+(B&3),B>>>=2,G-=2}else if(P===17){T=F+3;while(G<T){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}B>>>=F,G-=F,c=0,H=3+(B&7),B>>>=3,G-=3}else{T=F+7;while(G<T){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}B>>>=F,G-=F,c=0,H=11+(B&127),B>>>=7,G-=7}if($.have+H>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=I0;break}while(H--)$.lens[$.have++]=c}}if($.mode===I0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=I0;break}if($.lenbits=9,v={bits:$.lenbits},l=L6(B$,$.lens,0,$.nlen,$.lencode,0,$.work,v),$.lenbits=v.bits,l){Q.msg="invalid literal/lengths set",$.mode=I0;break}if($.distbits=6,$.distcode=$.distdyn,v={bits:$.distbits},l=L6(G$,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,v),$.distbits=v.bits,l){Q.msg="invalid distances set",$.mode=I0;break}if($.mode=G8,J===B8)break Q;case G8:$.mode=U8;case U8:if(V>=6&&U>=258){if(Q.next_out=q,Q.avail_out=U,Q.next_in=Y,Q.avail_in=V,$.hold=B,$.bits=G,Kq(Q,W),q=Q.next_out,K=Q.output,U=Q.avail_out,Y=Q.next_in,X=Q.input,V=Q.avail_in,B=$.hold,G=$.bits,$.mode===C2)$.back=-1;break}$.back=0;for(;;){if(w=$.lencode[B&(1<<$.lenbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=G)break;if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if(z&&(z&240)===0){L=F,I=z,g=P;for(;;){if(w=$.lencode[g+((B&(1<<L+I)-1)>>L)],F=w>>>24,z=w>>>16&255,P=w&65535,L+F<=G)break;if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}B>>>=L,G-=L,$.back+=L}if(B>>>=F,G-=F,$.back+=F,$.length=P,z===0){$.mode=X$;break}if(z&32){$.back=-1,$.mode=C2;break}if(z&64){Q.msg="invalid literal/length code",$.mode=I0;break}$.extra=z&15,$.mode=eJ;case eJ:if($.extra){T=$.extra;while(G<T){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}$.length+=B&(1<<$.extra)-1,B>>>=$.extra,G-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=Q$;case Q$:for(;;){if(w=$.distcode[B&(1<<$.distbits)-1],F=w>>>24,z=w>>>16&255,P=w&65535,F<=G)break;if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if((z&240)===0){L=F,I=z,g=P;for(;;){if(w=$.distcode[g+((B&(1<<L+I)-1)>>L)],F=w>>>24,z=w>>>16&255,P=w&65535,L+F<=G)break;if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}B>>>=L,G-=L,$.back+=L}if(B>>>=F,G-=F,$.back+=F,z&64){Q.msg="invalid distance code",$.mode=I0;break}$.offset=P,$.extra=z&15,$.mode=J$;case J$:if($.extra){T=$.extra;while(G<T){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}$.offset+=B&(1<<$.extra)-1,B>>>=$.extra,G-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=I0;break}$.mode=$$;case $$:if(U===0)break Q;if(H=W-U,$.offset>H){if(H=$.offset-H,H>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=I0;break}}if(H>$.wnext)H-=$.wnext,S=$.wsize-H;else S=$.wnext-H;if(H>$.length)H=$.length;C=$.window}else C=K,S=q-$.offset,H=$.length;if(H>U)H=U;U-=H,$.length-=H;do K[q++]=C[S++];while(--H);if($.length===0)$.mode=U8;break;case X$:if(U===0)break Q;K[q++]=$.length,U--,$.mode=U8;break;case n5:if($.wrap){while(G<32){if(V===0)break Q;V--,B|=X[Y++]<<G,G+=8}if(W-=U,Q.total_out+=W,$.total+=W,W)Q.adler=$.check=$.flags?H2($.check,K,W,q-W):a5($.check,K,W,q-W);if(W=U,($.flags?B:V$(B))!==$.check){Q.msg="incorrect data check",$.mode=I0;break}B=0,G=0}$.mode=K$;case K$:if($.wrap&&$.flags){while(G<32){if(V===0)break Q;V--,B+=X[Y++]<<G,G+=8}if(B!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=I0;break}B=0,G=0}$.mode=Y$;case Y$:l=qq;break Q;case I0:l=U$;break Q;case t5:return s5;case Uq:default:return a0}if(Q.next_out=q,Q.avail_out=U,Q.next_in=Y,Q.avail_in=V,$.hold=B,$.bits=G,$.wsize||W!==Q.avail_out&&$.mode<I0&&($.mode<n5||J!==fJ)){if(P$(Q,Q.output,Q.next_out,W-Q.avail_out))return $.mode=t5,s5}if(j-=Q.avail_in,W-=Q.avail_out,Q.total_in+=j,Q.total_out+=W,$.total+=W,$.wrap&&W)Q.adler=$.check=$.flags?H2($.check,K,W,Q.next_out-W):a5($.check,K,W,Q.next_out-W);if(Q.data_type=$.bits+($.last?64:0)+($.mode===C2?128:0)+($.mode===G8||$.mode===i5?256:0),(j===0&&W===0||J===fJ)&&l===K1)l=Gq;return l}function Fq(Q){if(!Q||!Q.state)return a0;var J=Q.state;if(J.window)J.window=null;return Q.state=null,K1}function wq(Q,J){var $;if(!Q||!Q.state)return a0;if($=Q.state,($.wrap&2)===0)return a0;return $.head=J,J.done=!1,K1}function Iq(Q,J){var $=J.length,X,K,Y;if(!Q||!Q.state)return a0;if(X=Q.state,X.wrap!==0&&X.mode!==z8)return a0;if(X.mode===z8){if(K=1,K=a5(K,J,$,0),K!==X.check)return U$}if(Y=P$(Q,J,$,$),Y)return X.mode=t5,s5;return X.havedict=1,K1}Q2.inflateReset=W$;Q2.inflateReset2=H$;Q2.inflateResetKeep=Z$;Q2.inflateInit=Pq;Q2.inflateInit2=j$;Q2.inflate=Lq;Q2.inflateEnd=Fq;Q2.inflateGetHeader=wq;Q2.inflateSetDictionary=Iq;Q2.inflateInfo="pako inflate (from Nodeca project)"});var e5=B0((UG,L$)=>{L$.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 w$=B0((zG,F$)=>{function Oq(){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}F$.exports=Oq});var O$=B0((w6)=>{var v1=M$(),F6=O2(),Z8=_5(),D0=e5(),Q4=e6(),Nq=b5(),Cq=w$(),I$=Object.prototype.toString;function Y1(Q){if(!(this instanceof Y1))return new Y1(Q);this.options=F6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var J=this.options;if(J.raw&&J.windowBits>=0&&J.windowBits<16){if(J.windowBits=-J.windowBits,J.windowBits===0)J.windowBits=-15}if(J.windowBits>=0&&J.windowBits<16&&!(Q&&Q.windowBits))J.windowBits+=32;if(J.windowBits>15&&J.windowBits<48){if((J.windowBits&15)===0)J.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nq,this.strm.avail_out=0;var $=v1.inflateInit2(this.strm,J.windowBits);if($!==D0.Z_OK)throw Error(Q4[$]);if(this.header=new Cq,v1.inflateGetHeader(this.strm,this.header),J.dictionary){if(typeof J.dictionary==="string")J.dictionary=Z8.string2buf(J.dictionary);else if(I$.call(J.dictionary)==="[object ArrayBuffer]")J.dictionary=new Uint8Array(J.dictionary);if(J.raw){if($=v1.inflateSetDictionary(this.strm,J.dictionary),$!==D0.Z_OK)throw Error(Q4[$])}}}Y1.prototype.push=function(Q,J){var $=this.strm,X=this.options.chunkSize,K=this.options.dictionary,Y,q,V,U,B,G=!1;if(this.ended)return!1;if(q=J===~~J?J:J===!0?D0.Z_FINISH:D0.Z_NO_FLUSH,typeof Q==="string")$.input=Z8.binstring2buf(Q);else if(I$.call(Q)==="[object ArrayBuffer]")$.input=new Uint8Array(Q);else $.input=Q;$.next_in=0,$.avail_in=$.input.length;do{if($.avail_out===0)$.output=new F6.Buf8(X),$.next_out=0,$.avail_out=X;if(Y=v1.inflate($,D0.Z_NO_FLUSH),Y===D0.Z_NEED_DICT&&K)Y=v1.inflateSetDictionary(this.strm,K);if(Y===D0.Z_BUF_ERROR&&G===!0)Y=D0.Z_OK,G=!1;if(Y!==D0.Z_STREAM_END&&Y!==D0.Z_OK)return this.onEnd(Y),this.ended=!0,!1;if($.next_out){if($.avail_out===0||Y===D0.Z_STREAM_END||$.avail_in===0&&(q===D0.Z_FINISH||q===D0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(V=Z8.utf8border($.output,$.next_out),U=$.next_out-V,B=Z8.buf2string($.output,V),$.next_out=U,$.avail_out=X-U,U)F6.arraySet($.output,$.output,V,U,0);this.onData(B)}else this.onData(F6.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)G=!0}while(($.avail_in>0||$.avail_out===0)&&Y!==D0.Z_STREAM_END);if(Y===D0.Z_STREAM_END)q=D0.Z_FINISH;if(q===D0.Z_FINISH)return Y=v1.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===D0.Z_OK;if(q===D0.Z_SYNC_FLUSH)return this.onEnd(D0.Z_OK),$.avail_out=0,!0;return!0};Y1.prototype.onData=function(Q){this.chunks.push(Q)};Y1.prototype.onEnd=function(Q){if(Q===D0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=F6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function J4(Q,J){var $=new Y1(J);if($.push(Q,!0),$.err)throw $.msg||Q4[$.err];return $.result}function Dq(Q,J){return J=J||{},J.raw=!0,J4(Q,J)}w6.Inflate=Y1;w6.inflate=J4;w6.inflateRaw=Dq;w6.ungzip=J4});var D$=B0((WG,C$)=>{var Aq=O2().assign,Rq=RJ(),Tq=O$(),kq=e5(),N$={};Aq(N$,Rq,Tq,kq);C$.exports=N$});var R$=B0((H8)=>{var Eq=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Sq=D$(),A$=N0(),W8=c0(),vq=Eq?"uint8array":"array";H8.magic="\b\x00";function V1(Q,J){W8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=J,this.meta={}}A$.inherits(V1,W8);V1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(A$.transformTo(vq,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 Sq[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(J){Q.push({data:J,meta:Q.meta})}};H8.compressWorker=function(Q){return new V1("Deflate",Q)};H8.uncompressWorker=function(){return new V1("Inflate",{})}});var X4=B0(($4)=>{var T$=c0();$4.STORE={magic:"\x00\x00",compressWorker:function(){return new T$("STORE compression")},uncompressWorker:function(){return new T$("STORE decompression")}};$4.DEFLATE=R$()});var K4=B0((q1)=>{q1.LOCAL_FILE_HEADER="PK\x03\x04";q1.CENTRAL_FILE_HEADER="PK\x01\x02";q1.CENTRAL_DIRECTORY_END="PK\x05\x06";q1.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";q1.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";q1.DATA_DESCRIPTOR="PK\x07\b"});var v$=B0((MG,S$)=>{var g1=N0(),x1=c0(),Y4=I1(),k$=o6(),j8=K4(),F0=function(Q,J){var $="",X;for(X=0;X<J;X++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},gq=function(Q,J){var $=Q;if(!Q)$=J?16893:33204;return($&65535)<<16},xq=function(Q){return(Q||0)&63},E$=function(Q,J,$,X,K,Y){var{file:q,compression:V}=Q,U=Y!==Y4.utf8encode,B=g1.transformTo("string",Y(q.name)),G=g1.transformTo("string",Y4.utf8encode(q.name)),j=q.comment,W=g1.transformTo("string",Y(j)),H=g1.transformTo("string",Y4.utf8encode(j)),S=G.length!==q.name.length,C=H.length!==j.length,w,F,z="",P="",L="",I=q.dir,g=q.date,c={crc32:0,compressedSize:0,uncompressedSize:0};if(!J||$)c.crc32=Q.crc32,c.compressedSize=Q.compressedSize,c.uncompressedSize=Q.uncompressedSize;var l=0;if(J)l|=8;if(!U&&(S||C))l|=2048;var f=0,v=0;if(I)f|=16;if(K==="UNIX")v=798,f|=gq(q.unixPermissions,I);else v=20,f|=xq(q.dosPermissions,I);if(w=g.getUTCHours(),w=w<<6,w=w|g.getUTCMinutes(),w=w<<5,w=w|g.getUTCSeconds()/2,F=g.getUTCFullYear()-1980,F=F<<4,F=F|g.getUTCMonth()+1,F=F<<5,F=F|g.getUTCDate(),S)P=F0(1,1)+F0(k$(B),4)+G,z+="up"+F0(P.length,2)+P;if(C)L=F0(1,1)+F0(k$(W),4)+H,z+="uc"+F0(L.length,2)+L;var T="";T+=`
|
|
5
|
+
\x00`,T+=F0(l,2),T+=V.magic,T+=F0(w,2),T+=F0(F,2),T+=F0(c.crc32,4),T+=F0(c.compressedSize,4),T+=F0(c.uncompressedSize,4),T+=F0(B.length,2),T+=F0(z.length,2);var N=j8.LOCAL_FILE_HEADER+T+B+z,E=j8.CENTRAL_FILE_HEADER+F0(v,2)+T+F0(W.length,2)+"\x00\x00\x00\x00"+F0(f,4)+F0(X,4)+B+z+W;return{fileRecord:N,dirRecord:E}},yq=function(Q,J,$,X,K){var Y="",q=g1.transformTo("string",K(X));return Y=j8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+F0(Q,2)+F0(Q,2)+F0(J,4)+F0($,4)+F0(q.length,2)+q,Y},hq=function(Q){var J="";return J=j8.DATA_DESCRIPTOR+F0(Q.crc32,4)+F0(Q.compressedSize,4)+F0(Q.uncompressedSize,4),J};function J2(Q,J,$,X){x1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=J,this.zipPlatform=$,this.encodeFileName=X,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g1.inherits(J2,x1);J2.prototype.push=function(Q){var J=Q.meta.percent||0,$=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,x1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(J+100*($-X-1))/$:100}})};J2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var J=this.streamFiles&&!Q.file.dir;if(J){var $=E$(Q,J,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};J2.prototype.closedSource=function(Q){this.accumulate=!1;var J=this.streamFiles&&!Q.file.dir,$=E$(Q,J,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),J)this.push({data:hq(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};J2.prototype.flush=function(){var Q=this.bytesWritten;for(var J=0;J<this.dirRecords.length;J++)this.push({data:this.dirRecords[J],meta:{percent:100}});var $=this.bytesWritten-Q,X=yq(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};J2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};J2.prototype.registerPrevious=function(Q){this._sources.push(Q);var J=this;return Q.on("data",function($){J.processChunk($)}),Q.on("end",function(){if(J.closedSource(J.previous.streamInfo),J._sources.length)J.prepareNextSource();else J.end()}),Q.on("error",function($){J.error($)}),this};J2.prototype.resume=function(){if(!x1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};J2.prototype.error=function(Q){var J=this._sources;if(!x1.prototype.error.call(this,Q))return!1;for(var $=0;$<J.length;$++)try{J[$].error(Q)}catch(X){}return!0};J2.prototype.lock=function(){x1.prototype.lock.call(this);var Q=this._sources;for(var J=0;J<Q.length;J++)Q[J].lock()};S$.exports=J2});var x$=B0((g$)=>{var fq=X4(),_q=v$(),bq=function(Q,J){var $=Q||J,X=fq[$];if(!X)throw Error($+" is not a valid compression method !");return X};g$.generateWorker=function(Q,J,$){var X=new _q(J.streamFiles,$,J.platform,J.encodeFileName),K=0;try{Q.forEach(function(Y,q){K++;var V=bq(q.options.compression,J.compression),U=q.options.compressionOptions||J.compressionOptions||{},B=q.dir,G=q.date;q._compressWorker(V,U).withStreamInfo("file",{name:Y,dir:B,date:G,comment:q.comment||"",unixPermissions:q.unixPermissions,dosPermissions:q.dosPermissions}).pipe(X)}),X.entriesCount=K}catch(Y){X.error(Y)}return X}});var h$=B0((FG,y$)=>{var uq=N0(),P8=c0();function I6(Q,J){P8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(J)}uq.inherits(I6,P8);I6.prototype._bindStream=function(Q){var J=this;this._stream=Q,Q.pause(),Q.on("data",function($){J.push({data:$,meta:{percent:0}})}).on("error",function($){if(J.isPaused)this.generatedError=$;else J.error($)}).on("end",function(){if(J.isPaused)J._upstreamEnded=!0;else J.end()})};I6.prototype.pause=function(){if(!P8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};I6.prototype.resume=function(){if(!P8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};y$.exports=I6});var i$=B0((wG,l$)=>{var pq=I1(),O6=N0(),u$=c0(),cq=U5(),p$=z5(),f$=a6(),mq=_Q(),dq=x$(),_$=s1(),lq=h$(),c$=function(Q,J,$){var X=O6.getTypeOf(J),K,Y=O6.extend($||{},p$);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=m$(Q);if(Y.createFolders&&(K=iq(Q)))d$.call(this,K,!0);var q=X==="string"&&Y.binary===!1&&Y.base64===!1;if(!$||typeof $.binary>"u")Y.binary=!q;var V=J instanceof f$&&J.uncompressedSize===0;if(V||Y.dir||!J||J.length===0)Y.base64=!1,Y.binary=!0,J="",Y.compression="STORE",X="string";var U=null;if(J instanceof f$||J instanceof u$)U=J;else if(_$.isNode&&_$.isStream(J))U=new lq(Q,J);else U=O6.prepareContent(Q,J,Y.binary,Y.optimizedBinaryString,Y.base64);var B=new mq(Q,U,Y);this.files[Q]=B},iq=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var J=Q.lastIndexOf("/");return J>0?Q.substring(0,J):""},m$=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},d$=function(Q,J){if(J=typeof J<"u"?J:p$.createFolders,Q=m$(Q),!this.files[Q])c$.call(this,Q,null,{dir:!0,createFolders:J});return this.files[Q]};function b$(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var nq={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var J,$,X;for(J in this.files)if(X=this.files[J],$=J.slice(this.root.length,J.length),$&&J.slice(0,this.root.length)===this.root)Q($,X)},filter:function(Q){var J=[];return this.forEach(function($,X){if(Q($,X))J.push(X)}),J},file:function(Q,J,$){if(arguments.length===1)if(b$(Q)){var X=Q;return this.filter(function(Y,q){return!q.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,c$.call(this,Q,J,$);return this},folder:function(Q){if(!Q)return this;if(b$(Q))return this.filter(function(K,Y){return Y.dir&&Q.test(K)});var J=this.root+Q,$=d$.call(this,J),X=this.clone();return X.root=$.name,X},remove:function(Q){Q=this.root+Q;var J=this.files[Q];if(!J){if(Q.slice(-1)!=="/")Q+="/";J=this.files[Q]}if(J&&!J.dir)delete this.files[Q];else{var $=this.filter(function(K,Y){return Y.name.slice(0,Q.length)===Q});for(var X=0;X<$.length;X++)delete this.files[$[X].name]}return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(Q){var J,$={};try{if($=O6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:pq.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(O6.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var X=$.comment||this.comment||"";J=dq.generateWorker(this,$,X)}catch(K){J=new u$("error"),J.error(K)}return new cq(J,$.type||"string",$.mimeType)},generateAsync:function(Q,J){return this.generateInternalStream(Q).accumulate(J)},generateNodeStream:function(Q,J){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(J)}};l$.exports=nq});var V4=B0((IG,r$)=>{var rq=N0();function n$(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}n$.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+Q+"). Corrupted zip ?")},setIndex:function(Q){this.checkIndex(Q),this.index=Q},skip:function(Q){this.setIndex(this.index+Q)},byteAt:function(){},readInt:function(Q){var J=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)J=(J<<8)+this.byteAt($);return this.index+=Q,J},readString:function(Q){return rq.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))}};r$.exports=n$});var q4=B0((OG,a$)=>{var o$=V4(),oq=N0();function y1(Q){o$.call(this,Q);for(var J=0;J<this.data.length;J++)Q[J]=Q[J]&255}oq.inherits(y1,o$);y1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};y1.prototype.lastIndexOfSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3);for(var Y=this.length-4;Y>=0;--Y)if(this.data[Y]===J&&this.data[Y+1]===$&&this.data[Y+2]===X&&this.data[Y+3]===K)return Y-this.zero;return-1};y1.prototype.readAndCheckSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),K=Q.charCodeAt(3),Y=this.readData(4);return J===Y[0]&&$===Y[1]&&X===Y[2]&&K===Y[3]};y1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};a$.exports=y1});var e$=B0((NG,t$)=>{var s$=V4(),aq=N0();function h1(Q){s$.call(this,Q)}aq.inherits(h1,s$);h1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};h1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};h1.prototype.readAndCheckSignature=function(Q){var J=this.readData(4);return Q===J};h1.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};t$.exports=h1});var G4=B0((CG,JX)=>{var QX=q4(),sq=N0();function B4(Q){QX.call(this,Q)}sq.inherits(B4,QX);B4.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var J=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};JX.exports=B4});var KX=B0((DG,XX)=>{var $X=G4(),tq=N0();function U4(Q){$X.call(this,Q)}tq.inherits(U4,$X);U4.prototype.readData=function(Q){this.checkOffset(Q);var J=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,J};XX.exports=U4});var z4=B0((AG,VX)=>{var M8=N0(),YX=I2(),eq=q4(),QB=e$(),JB=KX(),$B=G4();VX.exports=function(Q){var J=M8.getTypeOf(Q);if(M8.checkSupport(J),J==="string"&&!YX.uint8array)return new QB(Q);if(J==="nodebuffer")return new JB(Q);if(YX.uint8array)return new $B(M8.transformTo("uint8array",Q));return new eq(M8.transformTo("array",Q))}});var UX=B0((RG,GX)=>{var Z4=z4(),u2=N0(),XB=a6(),qX=o6(),L8=I1(),F8=X4(),KB=I2(),YB=0,VB=3,qB=function(Q){for(var J in F8){if(!Object.prototype.hasOwnProperty.call(F8,J))continue;if(F8[J].magic===Q)return F8[J]}return null};function BX(Q,J){this.options=Q,this.loadOptions=J}BX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var J,$;if(Q.skip(22),this.fileNameLength=Q.readInt(2),$=Q.readInt(2),this.fileName=Q.readData(this.fileNameLength),Q.skip($),this.compressedSize===-1||this.uncompressedSize===-1)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(J=qB(this.compressionMethod),J===null)throw Error("Corrupted zip : compression "+u2.pretty(this.compressionMethod)+" unknown (inner file : "+u2.transformTo("string",this.fileName)+")");this.decompressed=new XB(this.compressedSize,this.uncompressedSize,this.crc32,J,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var J=Q.readInt(2);if(this.extraFieldsLength=Q.readInt(2),this.fileCommentLength=Q.readInt(2),this.diskNumberStart=Q.readInt(2),this.internalFileAttributes=Q.readInt(2),this.externalFileAttributes=Q.readInt(4),this.localHeaderOffset=Q.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");Q.skip(J),this.readExtraFields(Q),this.parseZIP64ExtraField(Q),this.fileComment=Q.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var Q=this.versionMadeBy>>8;if(this.dir=this.externalFileAttributes&16?!0:!1,Q===YB)this.dosPermissions=this.externalFileAttributes&63;if(Q===VB)this.unixPermissions=this.externalFileAttributes>>16&65535;if(!this.dir&&this.fileNameStr.slice(-1)==="/")this.dir=!0},parseZIP64ExtraField:function(){if(!this.extraFields[1])return;var Q=Z4(this.extraFields[1].value);if(this.uncompressedSize===u2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===u2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===u2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===u2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var J=Q.index+this.extraFieldsLength,$,X,K;if(!this.extraFields)this.extraFields={};while(Q.index+4<J)$=Q.readInt(2),X=Q.readInt(2),K=Q.readData(X),this.extraFields[$]={id:$,length:X,value:K};Q.setIndex(J)},handleUTF8:function(){var Q=KB.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=L8.utf8decode(this.fileName),this.fileCommentStr=L8.utf8decode(this.fileComment);else{var J=this.findExtraFieldUnicodePath();if(J!==null)this.fileNameStr=J;else{var $=u2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var K=u2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(K)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var J=Z4(Q.value);if(J.readInt(1)!==1)return null;if(qX(this.fileName)!==J.readInt(4))return null;return L8.utf8decode(J.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var J=Z4(Q.value);if(J.readInt(1)!==1)return null;if(qX(this.fileComment)!==J.readInt(4))return null;return L8.utf8decode(J.readData(Q.length-5))}return null}};GX.exports=BX});var WX=B0((TG,ZX)=>{var BB=z4(),D2=N0(),$2=K4(),GB=UX(),UB=I2();function zX(Q){this.files=[],this.loadOptions=Q}zX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var J=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+D2.pretty(J)+", expected "+D2.pretty(Q)+")")}},isSignature:function(Q,J){var $=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),K=X===J;return this.reader.setIndex($),K},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var Q=this.reader.readData(this.zipCommentLength),J=UB.uint8array?"uint8array":"array",$=D2.transformTo(J,Q);this.zipComment=this.loadOptions.decodeFileName($)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};var Q=this.zip64EndOfCentralSize-44,J=0,$,X,K;while(J<Q)$=this.reader.readInt(2),X=this.reader.readInt(4),K=this.reader.readData(X),this.zip64ExtensibleData[$]={id:$,length:X,value:K}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var Q,J;for(Q=0;Q<this.files.length;Q++)J=this.files[Q],this.reader.setIndex(J.localHeaderOffset),this.checkSignature($2.LOCAL_FILE_HEADER),J.readLocalPart(this.reader),J.handleUTF8(),J.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature($2.CENTRAL_FILE_HEADER))Q=new GB({zip64:this.zip64},this.loadOptions),Q.readCentralPart(this.reader),this.files.push(Q);if(this.centralDirRecords!==this.files.length){if(this.centralDirRecords!==0&&this.files.length===0)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)}},readEndOfCentral:function(){var Q=this.reader.lastIndexOfSignature($2.CENTRAL_DIRECTORY_END);if(Q<0){var J=!this.isSignature(0,$2.LOCAL_FILE_HEADER);if(J)throw Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");else throw Error("Corrupted zip: can't find end of central directory")}this.reader.setIndex(Q);var $=Q;if(this.checkSignature($2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===D2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===D2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===D2.MAX_VALUE_16BITS||this.centralDirRecords===D2.MAX_VALUE_16BITS||this.centralDirSize===D2.MAX_VALUE_32BITS||this.centralDirOffset===D2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature($2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),Q<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(Q),this.checkSignature($2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,$2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature($2.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory")}this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature($2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var K=$-X;if(K>0)if(this.isSignature($,$2.CENTRAL_FILE_HEADER));else this.reader.zero=K;else if(K<0)throw Error("Corrupted zip: missing "+Math.abs(K)+" bytes.")},prepareReader:function(Q){this.reader=BB(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};ZX.exports=zX});var PX=B0((kG,jX)=>{var W4=N0(),w8=L1(),zB=I1(),ZB=WX(),WB=H5(),HX=s1();function HB(Q){return new w8.Promise(function(J,$){var X=Q.decompressed.getContentWorker().pipe(new WB);X.on("error",function(K){$(K)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else J()}).resume()})}jX.exports=function(Q,J){var $=this;if(J=W4.extend(J||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:zB.utf8decode}),HX.isNode&&HX.isStream(Q))return w8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return W4.prepareContent("the loaded zip file",Q,!0,J.optimizedBinaryString,J.base64).then(function(X){var K=new ZB(J);return K.load(X),K}).then(function(K){var Y=[w8.Promise.resolve(K)],q=K.files;if(J.checkCRC32)for(var V=0;V<q.length;V++)Y.push(HB(q[V]));return w8.Promise.all(Y)}).then(function(K){var Y=K.shift(),q=Y.files;for(var V=0;V<q.length;V++){var U=q[V],B=U.fileNameStr,G=W4.resolve(U.fileNameStr);if($.file(G,U.decompressed,{binary:!0,optimizedBinaryString:!0,date:U.date,dir:U.dir,comment:U.fileCommentStr.length?U.fileCommentStr:null,unixPermissions:U.unixPermissions,dosPermissions:U.dosPermissions,createFolders:J.createFolders}),!U.dir)$.file(G).unsafeOriginalName=B}if(Y.zipComment.length)$.comment=Y.zipComment;return $})}});var LX=B0((EG,MX)=>{function s0(){if(!(this instanceof s0))return new s0;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var Q=new s0;for(var J in this)if(typeof this[J]!=="function")Q[J]=this[J];return Q}}s0.prototype=i$();s0.prototype.loadAsync=PX();s0.support=I2();s0.defaults=z5();s0.version="3.10.1";s0.loadAsync=function(Q,J){return new s0().loadAsync(Q,J)};s0.external=L1();MX.exports=s0});var NB={};R8(NB,{downloadImages:()=>N6,capture:()=>P4});function E4(Q,J){let $=Q.label;if(Q.includeScaleInLabel)$+=`_@${Q.scale}x`;let X=`.${Q.format}`;if($+=X,!J.includes($))return J.push($),$;let K=/-(\d+)$/,Y=$.match(K);if(Y){let q=$.replace(K,""),V=parseInt(Y[1],10);while(J.includes(`${q}-${V}${X}`))V++;let U=`${q}-${V}${X}`;return J.push(U),U}else{let q=$.replace(X,""),V=2;while(J.includes(`${q}-${V}${X}`))V++;let U=`${q}-${V}${X}`;return J.push(U),U}}function _X(Q,J){return Q[13]=1,Q[14]=J>>8,Q[15]=J&255,Q[16]=J>>8,Q[17]=J&255,Q}var f4=112,_4=72,b4=89,u4=115,T8;function bX(){let Q=new Int32Array(256);for(let J=0;J<256;J++){let $=J;for(let X=0;X<8;X++)$=$&1?3988292384^$>>>1:$>>>1;Q[J]=$}return Q}function uX(Q){let J=-1;if(!T8)T8=bX();for(let $=0;$<Q.length;$++)J=T8[(J^Q[$])&255]^J>>>8;return J^-1}function pX(Q){let J=Q.length-1;for(let $=J;$>=4;$--)if(Q[$-4]===9&&Q[$-3]===f4&&Q[$-2]===_4&&Q[$-1]===b4&&Q[$]===u4)return $-3;return 0}function cX(Q,J,$=!1){let X=new Uint8Array(13);J*=39.3701,X[0]=f4,X[1]=_4,X[2]=b4,X[3]=u4,X[4]=J>>>24,X[5]=J>>>16,X[6]=J>>>8,X[7]=J&255,X[8]=X[4],X[9]=X[5],X[10]=X[6],X[11]=X[7],X[12]=1;let K=uX(X),Y=new Uint8Array(4);if(Y[0]=K>>>24,Y[1]=K>>>16,Y[2]=K>>>8,Y[3]=K&255,$){let q=pX(Q);return Q.set(X,q),Q.set(Y,q+13),Q}else{let q=new Uint8Array(4);q[0]=0,q[1]=0,q[2]=0,q[3]=9;let V=new Uint8Array(54);return V.set(Q,0),V.set(q,33),V.set(X,37),V.set(Y,50),V}}var mX="AAlwSFlz",dX="AAAJcEhZ",lX="AAAACXBI";function iX(Q){let J=Q.indexOf(mX);if(J===-1)J=Q.indexOf(dX);if(J===-1)J=Q.indexOf(lX);return J}var p4="[modern-screenshot]",A2=typeof window<"u",nX=A2&&"Worker"in window,rX=A2&&"atob"in window,oX=A2&&"btoa"in window,E8=A2?window.navigator?.userAgent:"",c4=E8.includes("Chrome"),D6=E8.includes("AppleWebKit")&&!c4,S8=E8.includes("Firefox"),aX=(Q)=>Q&&("__CONTEXT__"in Q),sX=(Q)=>Q.constructor.name==="CSSFontFaceRule",tX=(Q)=>Q.constructor.name==="CSSImportRule",K2=(Q)=>Q.nodeType===1,m1=(Q)=>typeof Q.className==="object",m4=(Q)=>Q.tagName==="image",eX=(Q)=>Q.tagName==="use",u1=(Q)=>K2(Q)&&typeof Q.style<"u"&&!m1(Q),QK=(Q)=>Q.nodeType===8,JK=(Q)=>Q.nodeType===3,W1=(Q)=>Q.tagName==="IMG",A6=(Q)=>Q.tagName==="VIDEO",$K=(Q)=>Q.tagName==="CANVAS",XK=(Q)=>Q.tagName==="TEXTAREA",KK=(Q)=>Q.tagName==="INPUT",YK=(Q)=>Q.tagName==="STYLE",VK=(Q)=>Q.tagName==="SCRIPT",qK=(Q)=>Q.tagName==="SELECT",BK=(Q)=>Q.tagName==="SLOT",GK=(Q)=>Q.tagName==="IFRAME",UK=(...Q)=>console.warn(p4,...Q);function zK(Q){let J=Q?.createElement?.("canvas");if(J)J.height=J.width=1;return Boolean(J)&&"toDataURL"in J&&Boolean(J.toDataURL("image/webp").includes("image/webp"))}var k8=(Q)=>Q.startsWith("data:");function d4(Q,J){if(Q.match(/^[a-z]+:\/\//i))return Q;if(A2&&Q.match(/^\/\//))return window.location.protocol+Q;if(Q.match(/^[a-z]+:/i))return Q;if(!A2)return Q;let $=R6().implementation.createHTMLDocument(),X=$.createElement("base"),K=$.createElement("a");if($.head.appendChild(X),$.body.appendChild(K),J)X.href=J;return K.href=Q,K.href}function R6(Q){return(Q&&K2(Q)?Q?.ownerDocument:Q)??window.document}var T6="http://www.w3.org/2000/svg";function l4(Q,J,$){let X=R6($).createElementNS(T6,"svg");return X.setAttributeNS(null,"width",Q.toString()),X.setAttributeNS(null,"height",J.toString()),X.setAttributeNS(null,"viewBox",`0 0 ${Q} ${J}`),X}function i4(Q,J){let $=new XMLSerializer().serializeToString(Q);if(J)$=$.replace(/[\u0000-\u0008\v\f\u000E-\u001F\uD800-\uDFFF\uFFFE\uFFFF]/gu,"");return`data:image/svg+xml;charset=utf-8,${encodeURIComponent($)}`}function ZK(Q,J){return new Promise(($,X)=>{let K=new FileReader;if(K.onload=()=>$(K.result),K.onerror=()=>X(K.error),K.onabort=()=>X(Error(`Failed read blob to ${J}`)),J==="dataUrl")K.readAsDataURL(Q);else if(J==="arrayBuffer")K.readAsArrayBuffer(Q)})}var WK=(Q)=>ZK(Q,"dataUrl");function Z1(Q,J){let $=R6(J).createElement("img");return $.decoding="sync",$.loading="eager",$.src=Q,$}function p1(Q,J){return new Promise(($)=>{let{timeout:X,ownerDocument:K,onError:Y,onWarn:q}=J??{},V=typeof Q==="string"?Z1(Q,R6(K)):Q,U=null,B=null;function G(){$(V),U&&clearTimeout(U),B?.()}if(X)U=setTimeout(G,X);if(A6(V)){let j=V.currentSrc||V.src;if(!j){if(V.poster)return p1(V.poster,J).then($);return G()}if(V.readyState>=2)return G();let W=G,H=(S)=>{q?.("Failed video load",j,S),Y?.(S),G()};B=()=>{V.removeEventListener("loadeddata",W),V.removeEventListener("error",H)},V.addEventListener("loadeddata",W,{once:!0}),V.addEventListener("error",H,{once:!0})}else{let j=m4(V)?V.href.baseVal:V.currentSrc||V.src;if(!j)return G();let W=async()=>{if(W1(V)&&"decode"in V)try{await V.decode()}catch(S){q?.("Failed to decode image, trying to render anyway",V.dataset.originalSrc||j,S)}G()},H=(S)=>{q?.("Failed image load",V.dataset.originalSrc||j,S),G()};if(W1(V)&&V.complete)return W();B=()=>{V.removeEventListener("load",W),V.removeEventListener("error",H)},V.addEventListener("load",W,{once:!0}),V.addEventListener("error",H,{once:!0})}})}async function HK(Q,J){if(u1(Q))if(W1(Q)||A6(Q))await p1(Q,J);else await Promise.all(["img","video"].flatMap(($)=>{return Array.from(Q.querySelectorAll($)).map((X)=>p1(X,J))}))}var n4=function(){let J=0,$=()=>`0000${(Math.random()*1679616<<0).toString(36)}`.slice(-4);return()=>{return J+=1,`u${$()}${J}`}}();function r4(Q){return Q?.split(",").map((J)=>J.trim().replace(/"|'/g,"").toLowerCase()).filter(Boolean)}var S4=0;function jK(Q){let J=`${p4}[#${S4}]`;return S4++,{time:($)=>Q&&console.time(`${J} ${$}`),timeEnd:($)=>Q&&console.timeEnd(`${J} ${$}`),warn:(...$)=>Q&&UK(...$)}}function PK(Q){return{cache:Q?"no-cache":"force-cache"}}async function d2(Q,J){return aX(Q)?Q:MK(Q,{...J,autoDestruct:!0})}async function MK(Q,J){let{scale:$=1,workerUrl:X,workerNumber:K=1}=J||{},Y=Boolean(J?.debug),q=J?.features??!0,V=Q.ownerDocument??(A2?window.document:void 0),U=Q.ownerDocument?.defaultView??(A2?window:void 0),B=new Map,G={width:0,height:0,quality:1,type:"image/png",scale:$,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:30000,progress:null,debug:Y,fetch:{requestInit:PK(J?.fetch?.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1,...J?.fetch},fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:K,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1,...J,__CONTEXT__:!0,log:jK(Y),node:Q,ownerDocument:V,ownerWindow:U,dpi:$===1?null:96*$,svgStyleElement:o4(V),svgDefsElement:V?.createElementNS(T6,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:nX&&X&&K?K:0})].map(()=>{try{let H=new Worker(X);return H.onmessage=async(S)=>{let{url:C,result:w}=S.data;if(w)B.get(C)?.resolve?.(w);else B.get(C)?.reject?.(Error(`Error receiving message from worker: ${C}`))},H.onmessageerror=(S)=>{let{url:C}=S.data;B.get(C)?.reject?.(Error(`Error receiving message from worker: ${C}`))},H}catch(H){return G.log.warn("Failed to new Worker",H),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[zK(V)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:B,drawImageCount:0,tasks:[],features:q,isEnable:(H)=>{if(H==="restoreScrollPosition")return typeof q==="boolean"?!1:q[H]??!1;if(typeof q==="boolean")return q;return q[H]??!0},shadowRoots:[]};G.log.time("wait until load"),await HK(Q,{timeout:G.timeout,onWarn:G.log.warn}),G.log.timeEnd("wait until load");let{width:j,height:W}=LK(Q,G);return G.width=j,G.height=W,G}function o4(Q){if(!Q)return;let J=Q.createElement("style"),$=J.ownerDocument.createTextNode(`
|
|
6
|
+
.______background-clip--text {
|
|
7
|
+
background-clip: text;
|
|
8
|
+
-webkit-background-clip: text;
|
|
9
|
+
}
|
|
10
|
+
`);return J.appendChild($),J}function LK(Q,J){let{width:$,height:X}=J;if(K2(Q)&&(!$||!X)){let K=Q.getBoundingClientRect();$=$||K.width||Number(Q.getAttribute("width"))||0,X=X||K.height||Number(Q.getAttribute("height"))||0}return{width:$,height:X}}async function FK(Q,J){let{log:$,timeout:X,drawImageCount:K,drawImageInterval:Y}=J;$.time("image to canvas");let q=await p1(Q,{timeout:X,onWarn:J.log.warn}),{canvas:V,context2d:U}=wK(Q.ownerDocument,J),B=()=>{try{U?.drawImage(q,0,0,V.width,V.height)}catch(G){J.log.warn("Failed to drawImage",G)}};if(B(),J.isEnable("fixSvgXmlDecode"))for(let G=0;G<K;G++)await new Promise((j)=>{setTimeout(()=>{U?.clearRect(0,0,V.width,V.height),B(),j()},G+Y)});return J.drawImageCount=0,$.timeEnd("image to canvas"),V}function wK(Q,J){let{width:$,height:X,scale:K,backgroundColor:Y,maximumCanvasSize:q}=J,V=Q.createElement("canvas");if(V.width=Math.floor($*K),V.height=Math.floor(X*K),V.style.width=`${$}px`,V.style.height=`${X}px`,q){if(V.width>q||V.height>q)if(V.width>q&&V.height>q)if(V.width>V.height)V.height*=q/V.width,V.width=q;else V.width*=q/V.height,V.height=q;else if(V.width>q)V.height*=q/V.width,V.width=q;else V.width*=q/V.height,V.height=q}let U=V.getContext("2d");if(U&&Y)U.fillStyle=Y,U.fillRect(0,0,V.width,V.height);return{canvas:V,context2d:U}}function a4(Q,J){if(Q.ownerDocument)try{let Y=Q.toDataURL();if(Y!=="data:,")return Z1(Y,Q.ownerDocument)}catch(Y){J.log.warn("Failed to clone canvas",Y)}let $=Q.cloneNode(!1),X=Q.getContext("2d"),K=$.getContext("2d");try{if(X&&K)K.putImageData(X.getImageData(0,0,Q.width,Q.height),0,0);return $}catch(Y){J.log.warn("Failed to clone canvas",Y)}return $}function IK(Q,J){try{if(Q?.contentDocument?.body)return v8(Q.contentDocument.body,J)}catch($){J.log.warn("Failed to clone iframe",$)}return Q.cloneNode(!1)}function OK(Q){let J=Q.cloneNode(!1);if(Q.currentSrc&&Q.currentSrc!==Q.src)J.src=Q.currentSrc,J.srcset="";if(J.loading==="lazy")J.loading="eager";return J}async function NK(Q,J){if(Q.ownerDocument&&!Q.currentSrc&&Q.poster)return Z1(Q.poster,Q.ownerDocument);let $=Q.cloneNode(!1);if($.crossOrigin="anonymous",Q.currentSrc&&Q.currentSrc!==Q.src)$.src=Q.currentSrc;let X=$.ownerDocument;if(X){let K=!0;if(await p1($,{onError:()=>K=!1,onWarn:J.log.warn}),!K){if(Q.poster)return Z1(Q.poster,Q.ownerDocument);return $}$.currentTime=Q.currentTime,await new Promise((q)=>{$.addEventListener("seeked",q,{once:!0})});let Y=X.createElement("canvas");Y.width=Q.offsetWidth,Y.height=Q.offsetHeight;try{let q=Y.getContext("2d");if(q)q.drawImage($,0,0,Y.width,Y.height)}catch(q){if(J.log.warn("Failed to clone video",q),Q.poster)return Z1(Q.poster,Q.ownerDocument);return $}return a4(Y,J)}return $}function CK(Q,J){if($K(Q))return a4(Q,J);if(GK(Q))return IK(Q,J);if(W1(Q))return OK(Q);if(A6(Q))return NK(Q,J);return Q.cloneNode(!1)}function DK(Q){let J=Q.sandbox;if(!J){let{ownerDocument:$}=Q;try{if($)J=$.createElement("iframe"),J.id=`__SANDBOX__${n4()}`,J.width="0",J.height="0",J.style.visibility="hidden",J.style.position="fixed",$.body.appendChild(J),J.srcdoc='<!DOCTYPE html><meta charset="UTF-8"><title></title><body>',Q.sandbox=J}catch(X){Q.log.warn("Failed to getSandBox",X)}}return J}var AK=["width","height","-webkit-text-fill-color"],RK=["stroke","fill"];function s4(Q,J,$){let{defaultComputedStyles:X}=$,K=Q.nodeName.toLowerCase(),Y=m1(Q)&&K!=="svg",q=Y?RK.map((C)=>[C,Q.getAttribute(C)]).filter(([,C])=>C!==null):[],V=[Y&&"svg",K,q.map((C,w)=>`${C}=${w}`).join(","),J].filter(Boolean).join(":");if(X.has(V))return X.get(V);let B=DK($)?.contentWindow;if(!B)return new Map;let G=B?.document,j,W;if(Y)j=G.createElementNS(T6,"svg"),W=j.ownerDocument.createElementNS(j.namespaceURI,K),q.forEach(([C,w])=>{W.setAttributeNS(null,C,w)}),j.appendChild(W);else j=W=G.createElement(K);W.textContent=" ",G.body.appendChild(j);let H=B.getComputedStyle(W,J),S=new Map;for(let C=H.length,w=0;w<C;w++){let F=H.item(w);if(AK.includes(F))continue;S.set(F,H.getPropertyValue(F))}return G.body.removeChild(j),X.set(V,S),S}function t4(Q,J,$){let X=new Map,K=[],Y=new Map;if($)for(let V of $)q(V);else for(let V=Q.length,U=0;U<V;U++){let B=Q.item(U);q(B)}for(let V=K.length,U=0;U<V;U++)Y.get(K[U])?.forEach((B,G)=>X.set(G,B));function q(V){let U=Q.getPropertyValue(V),B=Q.getPropertyPriority(V),G=V.lastIndexOf("-"),j=G>-1?V.substring(0,G):void 0;if(j){let W=Y.get(j);if(!W)W=new Map,Y.set(j,W);W.set(V,[U,B])}if(J.get(V)===U&&!B)return;if(j)K.push(j);else X.set(V,[U,B])}return X}function TK(Q,J,$,X){let{ownerWindow:K,includeStyleProperties:Y,currentParentNodeStyle:q}=X,V=J.style,U=K.getComputedStyle(Q),B=s4(Q,null,X);q?.forEach((j,W)=>{B.delete(W)});let G=t4(U,B,Y);if(G.delete("transition-property"),G.delete("all"),G.delete("d"),G.delete("content"),$)G.delete("margin-top"),G.delete("margin-right"),G.delete("margin-bottom"),G.delete("margin-left"),G.delete("margin-block-start"),G.delete("margin-block-end"),G.delete("margin-inline-start"),G.delete("margin-inline-end"),G.set("box-sizing",["border-box",""]);if(G.get("background-clip")?.[0]==="text")J.classList.add("______background-clip--text");if(c4){if(!G.has("font-kerning"))G.set("font-kerning",["normal",""]);if((G.get("overflow-x")?.[0]==="hidden"||G.get("overflow-y")?.[0]==="hidden")&&G.get("text-overflow")?.[0]==="ellipsis"&&Q.scrollWidth===Q.clientWidth)G.set("text-overflow",["clip",""])}for(let j=V.length,W=0;W<j;W++)V.removeProperty(V.item(W));return G.forEach(([j,W],H)=>{V.setProperty(H,j,W)}),G}function kK(Q,J){if(XK(Q)||KK(Q)||qK(Q))J.setAttribute("value",Q.value)}var EK=["::before","::after"],SK=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function vK(Q,J,$,X,K){let{ownerWindow:Y,svgStyleElement:q,svgStyles:V,currentNodeStyle:U}=X;if(!q||!Y)return;function B(G){let j=Y.getComputedStyle(Q,G),W=j.getPropertyValue("content");if(!W||W==="none")return;K?.(W),W=W.replace(/(')|(")|(counter\(.+\))/g,"");let H=[n4()],S=s4(Q,G,X);U?.forEach((P,L)=>{S.delete(L)});let C=t4(j,S,X.includeStyleProperties);if(C.delete("content"),C.delete("-webkit-locale"),C.get("background-clip")?.[0]==="text")J.classList.add("______background-clip--text");let w=[`content: '${W}';`];if(C.forEach(([P,L],I)=>{w.push(`${I}: ${P}${L?" !important":""};`)}),w.length===1)return;try{J.className=[J.className,...H].join(" ")}catch(P){X.log.warn("Failed to copyPseudoClass",P);return}let F=w.join(`
|
|
11
|
+
`),z=V.get(F);if(!z)z=[],V.set(F,z);z.push(`.${H[0]}${G}`)}if(EK.forEach(B),$)SK.forEach(B)}var v4=new Set(["symbol"]);async function g4(Q,J,$,X,K){if(K2($)&&(YK($)||VK($)))return;if(X.filter&&!X.filter($))return;if(v4.has(J.nodeName)||v4.has($.nodeName))X.currentParentNodeStyle=void 0;else X.currentParentNodeStyle=X.currentNodeStyle;let Y=await v8($,X,!1,K);if(X.isEnable("restoreScrollPosition"))gK(Q,Y);J.appendChild(Y)}async function x4(Q,J,$,X){let K=Q.firstChild;if(K2(Q)){if(Q.shadowRoot)K=Q.shadowRoot?.firstChild,$.shadowRoots.push(Q.shadowRoot)}for(let Y=K;Y;Y=Y.nextSibling){if(QK(Y))continue;if(K2(Y)&&BK(Y)&&typeof Y.assignedNodes==="function"){let q=Y.assignedNodes();for(let V=0;V<q.length;V++)await g4(Q,J,q[V],$,X)}else await g4(Q,J,Y,$,X)}}function gK(Q,J){if(!u1(Q)||!u1(J))return;let{scrollTop:$,scrollLeft:X}=Q;if(!$&&!X)return;let{transform:K}=J.style,Y=new DOMMatrix(K),{a:q,b:V,c:U,d:B}=Y;Y.a=1,Y.b=0,Y.c=0,Y.d=1,Y.translateSelf(-X,-$),Y.a=q,Y.b=V,Y.c=U,Y.d=B,J.style.transform=Y.toString()}function xK(Q,J){let{backgroundColor:$,width:X,height:K,style:Y}=J,q=Q.style;if($)q.setProperty("background-color",$,"important");if(X)q.setProperty("width",`${X}px`,"important");if(K)q.setProperty("height",`${K}px`,"important");if(Y)for(let V in Y)q[V]=Y[V]}var yK=/^[\w-:]+$/;async function v8(Q,J,$=!1,X){let{ownerDocument:K,ownerWindow:Y,fontFamilies:q,onCloneEachNode:V}=J;if(K&&JK(Q)){if(X&&/\S/.test(Q.data))X(Q.data);return K.createTextNode(Q.data)}if(K&&Y&&K2(Q)&&(u1(Q)||m1(Q))){let B=await CK(Q,J);if(J.isEnable("removeAbnormalAttributes")){let C=B.getAttributeNames();for(let w=C.length,F=0;F<w;F++){let z=C[F];if(!yK.test(z))B.removeAttribute(z)}}let G=J.currentNodeStyle=TK(Q,B,$,J);if($)xK(B,J);let j=!1;if(J.isEnable("copyScrollbar")){let C=[G.get("overflow-x")?.[0],G.get("overflow-y")?.[0]];j=C.includes("scroll")||(C.includes("auto")||C.includes("overlay"))&&(Q.scrollHeight>Q.clientHeight||Q.scrollWidth>Q.clientWidth)}let W=G.get("text-transform")?.[0],H=r4(G.get("font-family")?.[0]),S=H?(C)=>{if(W==="uppercase")C=C.toUpperCase();else if(W==="lowercase")C=C.toLowerCase();else if(W==="capitalize")C=C[0].toUpperCase()+C.substring(1);H.forEach((w)=>{let F=q.get(w);if(!F)q.set(w,F=new Set);C.split("").forEach((z)=>F.add(z))})}:void 0;if(vK(Q,B,j,J,S),kK(Q,B),!A6(Q))await x4(Q,B,J,S);return await V?.(B),B}let U=Q.cloneNode(!1);return await x4(Q,U,J),await V?.(U),U}function hK(Q){if(Q.ownerDocument=void 0,Q.ownerWindow=void 0,Q.svgStyleElement=void 0,Q.svgDefsElement=void 0,Q.svgStyles.clear(),Q.defaultComputedStyles.clear(),Q.sandbox){try{Q.sandbox.remove()}catch(J){Q.log.warn("Failed to destroyContext",J)}Q.sandbox=void 0}Q.workers=[],Q.fontFamilies.clear(),Q.fontCssTexts.clear(),Q.requests.clear(),Q.tasks=[],Q.shadowRoots=[]}function fK(Q){let{url:J,timeout:$,responseType:X,...K}=Q,Y=new AbortController,q=$?setTimeout(()=>Y.abort(),$):void 0;return fetch(J,{signal:Y.signal,...K}).then((V)=>{if(!V.ok)throw Error("Failed fetch, not 2xx response",{cause:V});switch(X){case"arrayBuffer":return V.arrayBuffer();case"dataUrl":return V.blob().then(WK);case"text":default:return V.text()}}).finally(()=>clearTimeout(q))}function c1(Q,J){let{url:$,requestType:X="text",responseType:K="text",imageDom:Y}=J,q=$,{timeout:V,acceptOfImage:U,requests:B,fetchFn:G,fetch:{requestInit:j,bypassingCache:W,placeholderImage:H},font:S,workers:C,fontFamilies:w}=Q;if(X==="image"&&(D6||S8))Q.drawImageCount++;let F=B.get($);if(!F){if(W){if(W instanceof RegExp&&W.test(q))q+=(/\?/.test(q)?"&":"?")+new Date().getTime()}let z=X.startsWith("font")&&S&&S.minify,P=new Set;if(z)X.split(";")[1].split(",").forEach((c)=>{if(!w.has(c))return;w.get(c).forEach((l)=>P.add(l))});let L=z&&P.size,I={url:q,timeout:V,responseType:L?"arrayBuffer":K,headers:X==="image"?{accept:U}:void 0,...j};F={type:X,resolve:void 0,reject:void 0,response:null},F.response=(async()=>{if(G&&X==="image"){let g=await G($);if(g)return g}if(!D6&&$.startsWith("http")&&C.length)return new Promise((g,c)=>{C[B.size&C.length-1].postMessage({rawUrl:$,...I}),F.resolve=g,F.reject=c});return fK(I)})().catch((g)=>{if(B.delete($),X==="image"&&H)return Q.log.warn("Failed to fetch image base64, trying to use placeholder image",q),typeof H==="string"?H:H(Y);throw g}),B.set($,F)}return F.response}async function e4(Q,J,$,X){if(!Q7(Q))return Q;for(let[K,Y]of _K(Q,J))try{let q=await c1($,{url:Y,requestType:X?"image":"text",responseType:"dataUrl"});Q=Q.replace(bK(K),`$1${q}$3`)}catch(q){$.log.warn("Failed to fetch css data url",K,q)}return Q}function Q7(Q){return/url\((['"]?)([^'"]+?)\1\)/.test(Q)}var J7=/url\((['"]?)([^'"]+?)\1\)/g;function _K(Q,J){let $=[];return Q.replace(J7,(X,K,Y)=>{return $.push([Y,d4(Y,J)]),X}),$.filter(([X])=>!k8(X))}function bK(Q){let J=Q.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${J})(['"]?\\))`,"g")}var uK=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function pK(Q,J){return uK.map(($)=>{let X=Q.getPropertyValue($);if(!X||X==="none")return null;if(D6||S8)J.drawImageCount++;return e4(X,null,J,!0).then((K)=>{if(!K||X===K)return;Q.setProperty($,K,Q.getPropertyPriority($))})}).filter(Boolean)}function cK(Q,J){if(W1(Q)){let $=Q.currentSrc||Q.src;if(!k8($))return[c1(J,{url:$,imageDom:Q,requestType:"image",responseType:"dataUrl"}).then((X)=>{if(!X)return;Q.srcset="",Q.dataset.originalSrc=$,Q.src=X||""})];if(D6||S8)J.drawImageCount++}else if(m1(Q)&&!k8(Q.href.baseVal)){let $=Q.href.baseVal;return[c1(J,{url:$,imageDom:Q,requestType:"image",responseType:"dataUrl"}).then((X)=>{if(!X)return;Q.dataset.originalSrc=$,Q.href.baseVal=X||""})]}return[]}function mK(Q,J){let{ownerDocument:$,svgDefsElement:X}=J,K=Q.getAttribute("href")??Q.getAttribute("xlink:href");if(!K)return[];let[Y,q]=K.split("#");if(q){let V=`#${q}`,U=J.shadowRoots.reduce((B,G)=>{return B??G.querySelector(`svg ${V}`)},$?.querySelector(`svg ${V}`));if(Y)Q.setAttribute("href",V);if(X?.querySelector(V))return[];if(U)return X?.appendChild(U.cloneNode(!0)),[];else if(Y)return[c1(J,{url:Y,responseType:"text"}).then((B)=>{X?.insertAdjacentHTML("beforeend",B)})]}return[]}function $7(Q,J){let{tasks:$}=J;if(K2(Q)){if(W1(Q)||m4(Q))$.push(...cK(Q,J));if(eX(Q))$.push(...mK(Q,J))}if(u1(Q))$.push(...pK(Q.style,J));Q.childNodes.forEach((X)=>{$7(X,J)})}async function dK(Q,J){let{ownerDocument:$,svgStyleElement:X,fontFamilies:K,fontCssTexts:Y,tasks:q,font:V}=J;if(!$||!X||!K.size)return;if(V&&V.cssText){let U=h4(V.cssText,J);X.appendChild($.createTextNode(`${U}
|
|
12
|
+
`))}else{let U=Array.from($.styleSheets).filter((G)=>{try{return"cssRules"in G&&Boolean(G.cssRules.length)}catch(j){return J.log.warn(`Error while reading CSS rules from ${G.href}`,j),!1}});await Promise.all(U.flatMap((G)=>{return Array.from(G.cssRules).map(async(j,W)=>{if(tX(j)){let H=W+1,S=j.href,C="";try{C=await c1(J,{url:S,requestType:"text",responseType:"text"})}catch(F){J.log.warn(`Error fetch remote css import from ${S}`,F)}let w=C.replace(J7,(F,z,P)=>F.replace(P,d4(P,S)));for(let F of iK(w))try{G.insertRule(F,F.startsWith("@import")?H+=1:G.cssRules.length)}catch(z){J.log.warn("Error inserting rule from remote css import",{rule:F,error:z})}}})})),U.flatMap((G)=>Array.from(G.cssRules)).filter((G)=>sX(G)&&Q7(G.style.getPropertyValue("src"))&&r4(G.style.getPropertyValue("font-family"))?.some((j)=>K.has(j))).forEach((G)=>{let j=G,W=Y.get(j.cssText);if(W)X.appendChild($.createTextNode(`${W}
|
|
13
|
+
`));else q.push(e4(j.cssText,j.parentStyleSheet?j.parentStyleSheet.href:null,J).then((H)=>{H=h4(H,J),Y.set(j.cssText,H),X.appendChild($.createTextNode(`${H}
|
|
14
|
+
`))}))})}}var lK=/(\/\*[\s\S]*?\*\/)/g,y4=/((@.*?keyframes [\s\S]*?){([\s\S]*?}\s*?)})/gi;function iK(Q){if(Q==null)return[];let J=[],$=Q.replace(lK,"");while(!0){let Y=y4.exec($);if(!Y)break;J.push(Y[0])}$=$.replace(y4,"");let X=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,K=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");while(!0){let Y=X.exec($);if(!Y)if(Y=K.exec($),!Y)break;else X.lastIndex=K.lastIndex;else K.lastIndex=X.lastIndex;J.push(Y[0])}return J}var nK=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,rK=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function h4(Q,J){let{font:$}=J,X=$?$?.preferredFormat:void 0;return X?Q.replace(rK,(K)=>{while(!0){let[Y,,q]=nK.exec(K)||[];if(!q)return"";if(q===X)return`src: ${Y};`}}):Q}async function oK(Q,J){let $=await d2(Q,J);if(K2($.node)&&m1($.node))return $.node;let{ownerDocument:X,log:K,tasks:Y,svgStyleElement:q,svgDefsElement:V,svgStyles:U,font:B,progress:G,autoDestruct:j,onCloneNode:W,onEmbedNode:H,onCreateForeignObjectSvg:S}=$;K.time("clone node");let C=await v8($.node,$,!0);if(q&&X){let L="";U.forEach((I,g)=>{L+=`${I.join(`,
|
|
15
|
+
`)} {
|
|
16
|
+
${g}
|
|
17
|
+
}
|
|
18
|
+
`}),q.appendChild(X.createTextNode(L))}if(K.timeEnd("clone node"),await W?.(C),B!==!1&&K2(C))K.time("embed web font"),await dK(C,$),K.timeEnd("embed web font");K.time("embed node"),$7(C,$);let w=Y.length,F=0,z=async()=>{while(!0){let L=Y.pop();if(!L)break;try{await L}catch(I){$.log.warn("Failed to run task",I)}G?.(++F,w)}};G?.(F,w),await Promise.all([...Array.from({length:4})].map(z)),K.timeEnd("embed node"),await H?.(C);let P=aK(C,$);return V&&P.insertBefore(V,P.children[0]),q&&P.insertBefore(q,P.children[0]),j&&hK($),await S?.(P),P}function aK(Q,J){let{width:$,height:X}=J,K=l4($,X,Q.ownerDocument),Y=K.ownerDocument.createElementNS(K.namespaceURI,"foreignObject");return Y.setAttributeNS(null,"x","0%"),Y.setAttributeNS(null,"y","0%"),Y.setAttributeNS(null,"width","100%"),Y.setAttributeNS(null,"height","100%"),Y.append(Q),K.appendChild(Y),K}async function sK(Q,J){let $=await d2(Q,J),X=await oK($),K=i4(X,$.isEnable("removeControlCharacter"));if(!$.autoDestruct)$.svgStyleElement=o4($.ownerDocument),$.svgDefsElement=$.ownerDocument?.createElementNS(T6,"defs"),$.svgStyles.clear();let Y=Z1(K,X.ownerDocument);return await FK(Y,$)}async function k6(Q,J){let $=await d2(Q,J),{log:X,quality:K,type:Y,dpi:q}=$,V=await sK($);X.time("canvas to data url");let U=V.toDataURL(Y,K);if(["image/png","image/jpeg"].includes(Y)&&q&&rX&&oX){let[B,G]=U.split(","),j=0,W=!1;if(Y==="image/png"){let P=iX(G);if(P>=0)j=Math.ceil((P+28)/3)*4,W=!0;else j=44}else if(Y==="image/jpeg")j=24;let H=G.substring(0,j),S=G.substring(j),C=window.atob(H),w=new Uint8Array(C.length);for(let P=0;P<w.length;P++)w[P]=C.charCodeAt(P);let F=Y==="image/png"?cX(w,q,W):_X(w,q),z=window.btoa(String.fromCharCode(...F));U=[B,",",z,S].join("")}return X.timeEnd("canvas to data url"),U}async function X7(Q,J){let $=await d2(Q,J),{width:X,height:K,ownerDocument:Y}=$,q=await k6($),V=l4(X,K,Y),U=V.ownerDocument.createElementNS(V.namespaceURI,"image");return U.setAttributeNS(null,"href",q),U.setAttributeNS(null,"height","100%"),U.setAttributeNS(null,"width","100%"),V.appendChild(U),i4(V,$.isEnable("removeControlCharacter"))}async function K7(Q,J){return k6(await d2(Q,{...J,type:"image/jpeg"}))}async function Y7(Q,J){return k6(await d2(Q,{...J,type:"image/png"}))}async function V7(Q,J){return k6(await d2(Q,{...J,type:"image/webp"}))}async function g8(Q,J,$){try{let X="",K={quality:J.quality,scale:J.scale,filter:eK},Y=getComputedStyle(Q),q=Y.backgroundColor,V=Y.backgroundImage,U=!1;if(q==="rgba(0, 0, 0, 0)"&&V==="none"&&J.format==="jpg")Q.style.backgroundColor="#FFFFFF",U=!0;switch(J.format){case"jpg":X=await K7(Q,K);break;case"png":X=await Y7(Q,K);break;case"svg":X=await X7(Q,K);break;case"webp":X=await V7(Q,K);break}if(U)Q.style.backgroundColor="",Q.style.backgroundImage="";return{dataURL:X,fileName:E4(J,$)}}catch(X){return console.error("ImageExporter: Error in captureImage",X),{dataURL:"",fileName:""}}}var eK=(Q)=>{if(Q instanceof HTMLElement)return!Q.hasAttribute("data-ignore-capture");return!0};var H4=T4(B7(),1),FX=T4(LX(),1);var jB={label:"image",format:"jpg",scale:1,quality:1,includeScaleInLabel:!1},B1={...jB,downloadImages:!0,defaultImageLabel:"image",zipLabel:"images",corsProxyBaseUrl:"",enableWindowLogging:!0,loggingLevel:"none"};async function N6(Q,J=B1){let $=J?{...B1,...J}:B1,X=LB(Q);if(X.length===1){let K=X[0];await H4.default(K.dataURL,K.fileName)}else if(X.length>1){let K=await PB(X);if(K)await H4.default(K,MB($))}}async function PB(Q){let J=new FX.default;try{Q.forEach(($)=>{let X=$.dataURL.split(",")[1];J.file($.fileName,X,{base64:!0})})}catch($){console.error("Image Exporter - Error adding images to ZIP:",$);return}try{return await J.generateAsync({type:"blob"})}catch($){console.error("Image Exporter - Error generating ZIP:",$);return}}function MB(Q){try{let J=Q.zipLabel;return J=J.replace(/\s+/g,"-"),J.replace(/[^a-zA-Z0-9-_]/g,"")}catch(J){return console.error(J),"images"}}function LB(Q){let J=new Map;return Q.map(($)=>{let{fileName:X}=$,K=X.lastIndexOf("."),Y=K!==-1?X.substring(0,K):X,q=K!==-1?X.substring(K):"";if(!J.has(X))return J.set(X,1),$;let V=J.get(X)+1;J.set(X,V);let U=`${Y}-${V}${q}`;return{...$,fileName:U}})}var C0={info:(...Q)=>C6(Q,"info"),error:(...Q)=>C6(Q,"error"),verbose:(...Q)=>C6(Q,"verbose"),progress:(Q,J)=>FB(Q,J),group:{open:(...Q)=>C6(Q,"group"),close:(...Q)=>C6(Q,"groupEnd")}};async function C6(Q,J="info"){let $=Q.map((X)=>typeof X==="object"?JSON.stringify(X):X).join(" ");switch(J){case"info":if(G1==="info"||G1==="verbose")console.log(...Q);break;case"error":if(G1==="error"||G1==="verbose")console.error(...Q);break;case"verbose":if(G1==="verbose")console.log(...Q);break;case"group":console.group(...Q);break;case"groupEnd":console.groupEnd();break}if(I8)window.imageExporterLogs.push({message:$,type:J})}async function FB(Q,J){if(I8)window.imageExporterProgress.push([Q,J])}window.imageExporterLogs=[];window.imageExporterProgress=[];function f1(Q){try{let J=new URL(Q);if(J.protocol==="data:")return!1;if(J.protocol!=="http:"&&J.protocol!=="https:")return!1;return!0}catch(J){return!1}}async function wX(Q){let J=document.querySelectorAll('link[rel="stylesheet"]');C0.verbose("stylesheet elements to proxy",J.length);for(let $ of J){let X=$.getAttribute("href");if(!X)continue;if(X.startsWith("data:"))continue;if(X.startsWith(Q.corsProxyBaseUrl))continue;if(!f1(X))continue;$.setAttribute("crossorigin","anonymous");let K=Q.corsProxyBaseUrl+encodeURIComponent(X);try{let q=await(await fetch(K)).text(),V=document.createElement("style");V.textContent=q,V.setAttribute("original-link-element",encodeURIComponent($.outerHTML)),$.insertAdjacentElement("afterend",V),$.remove(),C0.verbose("Proxied: ",X)}catch(Y){console.error("Error fetching CSS:",Y)}}}async function IX(Q,J){try{let $=Array.from(J);if(!$.length)return;C0.verbose("images to proxy",$.length);for(let X of $){let K=Array.from(X.querySelectorAll("img"));for(let Y of K)if(f1(Y.src)&&!Y.src.startsWith(Q.corsProxyBaseUrl))Y.setAttribute("original-src",Y.src),Y.src=Q.corsProxyBaseUrl+encodeURIComponent(Y.src),C0.verbose("Proxied: ",Y.src)}}catch($){console.error("ImageExporter: Error in proxyImages",$);return}}async function OX(Q,J){try{if(C0.verbose("running CORS proxy"),!Q.corsProxyBaseUrl||!f1(Q.corsProxyBaseUrl))return;await wX(Q),await IX(Q,J)}catch($){console.error("ImageExporter: Error in runCorsProxy",$)}}async function NX(){await wB(),await IB()}async function wB(){let Q=document.querySelectorAll("style[original-link-element]");for(let J of Q){let $=decodeURIComponent(J.getAttribute("original-link-element")),X=document.createElement("div");X.innerHTML=$,J.parentNode.insertBefore(X.firstChild,J),J.remove(),C0.verbose("Restored: ",$)}}async function IB(){let Q=document.querySelectorAll("img[original-src]");for(let J of Q){let $=J.getAttribute("original-src");J.src=$,J.removeAttribute("original-src"),C0.verbose("Restored: ",$)}}var j4={run:OX,cleanUp:NX};async function CX(Q,J){return{label:$(),format:X(),scale:K(),quality:Y(),includeScaleInLabel:q()};function $(){try{let V=Q.dataset.label||J.defaultImageLabel;if(V==="")return J.defaultImageLabel;let U=/@\d+x$/.test(V),B=V,G=/[^a-zA-Z0-9-_]/g;if(U){let j=V.match(/@\d+x$/);if(!j)return J.defaultImageLabel;B=V.slice(0,-j[0].length).replace(G,"")+j[0]}else B=V.replace(G,"");return B}catch(V){return console.error(V),J.defaultImageLabel}}function X(){try{let V=Q.dataset.format||J.format;if(V=V.trim().toLowerCase(),V==="jpg"||V==="png"||V==="svg"||V==="webp")return V;else throw Error(`ImageExporter: provided format is not valid.
|
|
19
|
+
Provided: ${V}
|
|
20
|
+
Element: ${Q}
|
|
21
|
+
Accepted values: jpg, png, svg,
|
|
22
|
+
Defaulting to: ${J.format}`)}catch(V){return console.error(V),J.format}}function K(){try{let V=Q.dataset.scale;if(!V)return J.scale;if(V.includes(",")){let U=V.trim().split(",").map((B)=>parseFloat(B));if(U.some((B)=>isNaN(B)))throw Error(`ImageExporter: provided scale is not valid.
|
|
23
|
+
Provided: ${V}
|
|
24
|
+
Element: ${Q}
|
|
25
|
+
Accepted values: number or csv numbers e.g. (1,2)
|
|
26
|
+
Defaulting to ${J.scale}`);return U}else{let U=parseFloat(V.trim());if(isNaN(U))throw Error(`ImageExporter: provided scale is not valid.
|
|
27
|
+
Provided: ${V}
|
|
28
|
+
Element: ${Q}
|
|
29
|
+
Accepted values: number or csv numbers e.g. (1,2)
|
|
30
|
+
Defaulting to: ${J.scale}`);return U}}catch(V){return console.error(V),J.scale}}function Y(){try{let V=Q.dataset.quality;if(!V)return J.quality;let U=parseFloat(V.trim());if(isNaN(U))throw Error(`ImageExporter: provided quality is not valid.
|
|
31
|
+
Provided: ${V}
|
|
32
|
+
Element: ${Q}
|
|
33
|
+
Accepted values: number
|
|
34
|
+
Defaulting to: ${J.quality}`);return U}catch(V){return console.error(V),J.quality}}function q(){try{let V=Q.dataset.includeScaleInLabel;if(!V)return J.includeScaleInLabel;if(V=V.trim(),V==="true"||V==="false")return V==="true";else throw Error(`ImageExporter: provided includeScaleInLabel is not valid.
|
|
35
|
+
Provided: ${V}
|
|
36
|
+
Element: ${Q}
|
|
37
|
+
Accepted values: true or false
|
|
38
|
+
Defaulting to: ${J.includeScaleInLabel}`)}catch(V){return console.error(V),J.includeScaleInLabel}}}function DX(Q){return Q=Array.from(Q),Q.filter((J)=>OB(J))}function OB(Q){let J=window.getComputedStyle(Q);return Q.offsetParent!==null&&Q.style.display!=="none"&&J.visibility==="visible"&&J.opacity!=="0"&&J.width!=="0"&&J.height!=="0"}async function AX(Q){try{let J=0;for(let $ of Q){let X=$.dataset.scale;if(!X)continue;if(X.includes(",")){let K=X.trim().split(",").map((Y)=>parseFloat(Y));if(K.some((Y)=>isNaN(Y)))continue;J+=K.length}else{let K=parseFloat(X.trim());if(isNaN(K))continue;else J++}}return J}catch(J){return 1}}var I8=!0,G1="none";async function P4(Q,J=B1){C0.group.open("image-exporter");try{let $={...B1,...J};if(I8=$.enableWindowLogging,G1=$.loggingLevel,C0.verbose("config",$),Q instanceof HTMLElement)Q=[Q];let X=Q.length;Q=DX(Q);let K=await AX(Q);if(X!==Q.length)C0.verbose("Skipping capture of hidden elements: ",X-Q.length);if(C0.verbose("Element to capture",Q.length),J.corsProxyBaseUrl)await j4.run($,Q);let Y=[],q=[],V=1;for(let U of Q){let B=await CX(U,$);if(C0.verbose("Image options",B),B.scale instanceof Array){C0.verbose("Multi-scale capture"),B.includeScaleInLabel=!0;for(let G of B.scale){C0.progress(V++,K);let j=await g8(U,{...B,scale:G},q);Y.push(j)}}else if(typeof B.scale==="number"){C0.progress(V++,K),C0.verbose("Single-scale capture");let G=await g8(U,B,q);Y.push(G)}}if(J.downloadImages)await N6(Y,$);if(J.corsProxyBaseUrl)await j4.cleanUp();return Y}catch($){return C0.error($),null}finally{C0.group.close()}}if(typeof window<"u")window.imageExporter=P4,window.imageExporterDownload=N6;})();
|
|
39
|
+
|
|
40
|
+
//# debugId=CFAADAB7EC89213C64756E2164756E21
|