rmapi-js 10.1.1 → 10.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.
@@ -1,23 +1,10 @@
1
- var FU=Object.create;var{getPrototypeOf:jU,defineProperty:t1,getOwnPropertyNames:X7,getOwnPropertyDescriptor:HU}=Object,Y7=Object.prototype.hasOwnProperty;function J7(Q){return this[Q]}var MU,wU,V5=(Q,q,$)=>{var X=Q!=null&&typeof Q==="object";if(X){var Y=q?MU??=new WeakMap:wU??=new WeakMap,J=Y.get(Q);if(J)return J}$=Q!=null?FU(jU(Q)):{};let K=q||!Q||!Q.__esModule?t1($,"default",{value:Q,enumerable:!0}):$;for(let U of X7(Q))if(!Y7.call(K,U))t1(K,U,{get:J7.bind(Q,U),enumerable:!0});if(X)Y.set(Q,K);return K},a0=(Q)=>{var q=($7??=new WeakMap).get(Q),$;if(q)return q;if(q=t1({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function"){for(var X of X7(Q))if(!Y7.call(q,X))t1(q,X,{get:J7.bind(Q,X),enumerable:!($=HU(Q,X))||$.enumerable})}return $7.set(Q,q),q},$7,k=(Q,q)=>()=>(q||Q((q={exports:{}}).exports,q),q.exports);var PU=(Q)=>Q;function LU(Q,q){this[Q]=PU.bind(null,q)}var K7=(Q,q)=>{for(var $ in q)t1(Q,$,{get:q[$],enumerable:!0,configurable:!0,set:LU.bind(q,$)})};var U7=(Q,q)=>()=>(Q&&(q=Q(Q=0)),q);var A2={};K7(A2,{transcode:()=>JV,resolveObjectURL:()=>$V,kStringMaxLength:()=>H7,kMaxLength:()=>e1,isUtf8:()=>XV,isAscii:()=>YV,default:()=>KV,constants:()=>vU,btoa:()=>OU,atob:()=>RU,INSPECT_MAX_BYTES:()=>j7,File:()=>xU,Buffer:()=>_,Blob:()=>TU});function CU(Q){var q=Q.length;if(q%4>0)throw Error("Invalid string. Length must be a multiple of 4");var $=Q.indexOf("=");if($===-1)$=q;var X=$===q?0:4-$%4;return[$,X]}function IU(Q,q){return(Q+q)*3/4-q}function NU(Q){var q,$=CU(Q),X=$[0],Y=$[1],J=new Uint8Array(IU(X,Y)),K=0,U=Y>0?X-4:X,G;for(G=0;G<U;G+=4)q=s0[Q.charCodeAt(G)]<<18|s0[Q.charCodeAt(G+1)]<<12|s0[Q.charCodeAt(G+2)]<<6|s0[Q.charCodeAt(G+3)],J[K++]=q>>16&255,J[K++]=q>>8&255,J[K++]=q&255;if(Y===2)q=s0[Q.charCodeAt(G)]<<2|s0[Q.charCodeAt(G+1)]>>4,J[K++]=q&255;if(Y===1)q=s0[Q.charCodeAt(G)]<<10|s0[Q.charCodeAt(G+1)]<<4|s0[Q.charCodeAt(G+2)]>>2,J[K++]=q>>8&255,J[K++]=q&255;return J}function DU(Q){return B2[Q>>18&63]+B2[Q>>12&63]+B2[Q>>6&63]+B2[Q&63]}function AU(Q,q,$){var X,Y=[];for(var J=q;J<$;J+=3)X=(Q[J]<<16&16711680)+(Q[J+1]<<8&65280)+(Q[J+2]&255),Y.push(DU(X));return Y.join("")}function z7(Q){var q,$=Q.length,X=$%3,Y=[],J=16383;for(var K=0,U=$-X;K<U;K+=J)Y.push(AU(Q,K,K+J>U?U:K+J));if(X===1)q=Q[$-1],Y.push(B2[q>>2]+B2[q<<4&63]+"==");else if(X===2)q=(Q[$-2]<<8)+Q[$-1],Y.push(B2[q>>10]+B2[q>>4&63]+B2[q<<2&63]+"=");return Y.join("")}function b6(Q,q,$,X,Y){var J,K,U=Y*8-X-1,G=(1<<U)-1,V=G>>1,z=-7,H=$?Y-1:0,j=$?-1:1,Z=Q[q+H];H+=j,J=Z&(1<<-z)-1,Z>>=-z,z+=U;for(;z>0;J=J*256+Q[q+H],H+=j,z-=8);K=J&(1<<-z)-1,J>>=-z,z+=X;for(;z>0;K=K*256+Q[q+H],H+=j,z-=8);if(J===0)J=1-V;else if(J===G)return K?NaN:(Z?-1:1)*(1/0);else K=K+Math.pow(2,X),J=J-V;return(Z?-1:1)*K*Math.pow(2,J-X)}function F7(Q,q,$,X,Y,J){var K,U,G,V=J*8-Y-1,z=(1<<V)-1,H=z>>1,j=Y===23?Math.pow(2,-24)-Math.pow(2,-77):0,Z=X?0:J-1,h=X?1:-1,g=q<0||q===0&&1/q<0?1:0;if(q=Math.abs(q),isNaN(q)||q===1/0)U=isNaN(q)?1:0,K=z;else{if(K=Math.floor(Math.log(q)/Math.LN2),q*(G=Math.pow(2,-K))<1)K--,G*=2;if(K+H>=1)q+=j/G;else q+=j*Math.pow(2,1-H);if(q*G>=2)K++,G/=2;if(K+H>=z)U=0,K=z;else if(K+H>=1)U=(q*G-1)*Math.pow(2,Y),K=K+H;else U=q*Math.pow(2,H-1)*Math.pow(2,Y),K=0}for(;Y>=8;Q[$+Z]=U&255,Z+=h,U/=256,Y-=8);K=K<<Y|U,V+=Y;for(;V>0;Q[$+Z]=K&255,Z+=h,K/=256,V-=8);Q[$+Z-h]|=g*128}function D2(Q){if(Q>e1)throw RangeError('The value "'+Q+'" is invalid for option "size"');let q=new Uint8Array(Q);return Object.setPrototypeOf(q,_.prototype),q}function F5(Q,q,$){return class extends ${constructor(){super();Object.defineProperty(this,"message",{value:q.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 _(Q,q,$){if(typeof Q==="number"){if(typeof q==="string")throw TypeError('The "string" argument must be of type string. Received type number');return j5(Q)}return M7(Q,q,$)}function M7(Q,q,$){if(typeof Q==="string")return gU(Q,q);if(ArrayBuffer.isView(Q))return yU(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(Z2(Q,ArrayBuffer)||Q&&Z2(Q.buffer,ArrayBuffer))return B5(Q,q,$);if(typeof SharedArrayBuffer<"u"&&(Z2(Q,SharedArrayBuffer)||Q&&Z2(Q.buffer,SharedArrayBuffer)))return B5(Q,q,$);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 _.from(X,q,$);let Y=fU(Q);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return _.from(Q[Symbol.toPrimitive]("string"),q,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function w7(Q){if(typeof Q!=="number")throw TypeError('"size" argument must be of type number');else if(Q<0)throw RangeError('The value "'+Q+'" is invalid for option "size"')}function kU(Q,q,$){if(w7(Q),Q<=0)return D2(Q);if(q!==void 0)return typeof $==="string"?D2(Q).fill(q,$):D2(Q).fill(q);return D2(Q)}function j5(Q){return w7(Q),D2(Q<0?0:H5(Q)|0)}function gU(Q,q){if(typeof q!=="string"||q==="")q="utf8";if(!_.isEncoding(q))throw TypeError("Unknown encoding: "+q);let $=P7(Q,q)|0,X=D2($),Y=X.write(Q,q);if(Y!==$)X=X.slice(0,Y);return X}function W5(Q){let q=Q.length<0?0:H5(Q.length)|0,$=D2(q);for(let X=0;X<q;X+=1)$[X]=Q[X]&255;return $}function yU(Q){if(Z2(Q,Uint8Array)){let q=new Uint8Array(Q);return B5(q.buffer,q.byteOffset,q.byteLength)}return W5(Q)}function B5(Q,q,$){if(q<0||Q.byteLength<q)throw RangeError('"offset" is outside of buffer bounds');if(Q.byteLength<q+($||0))throw RangeError('"length" is outside of buffer bounds');let X;if(q===void 0&&$===void 0)X=new Uint8Array(Q);else if($===void 0)X=new Uint8Array(Q,q);else X=new Uint8Array(Q,q,$);return Object.setPrototypeOf(X,_.prototype),X}function fU(Q){if(_.isBuffer(Q)){let q=H5(Q.length)|0,$=D2(q);if($.length===0)return $;return Q.copy($,0,0,q),$}if(Q.length!==void 0){if(typeof Q.length!=="number"||Number.isNaN(Q.length))return D2(0);return W5(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return W5(Q.data)}function H5(Q){if(Q>=e1)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e1.toString(16)+" bytes");return Q|0}function P7(Q,q){if(_.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||Z2(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 Y=!1;for(;;)switch(q){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Z5(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return x7(Q).length;default:if(Y)return X?-1:Z5(Q).length;q=(""+q).toLowerCase(),Y=!0}}function hU(Q,q,$){let X=!1;if(q===void 0||q<0)q=0;if(q>this.length)return"";if($===void 0||$>this.length)$=this.length;if($<=0)return"";if($>>>=0,q>>>=0,$<=q)return"";if(!Q)Q="utf8";while(!0)switch(Q){case"hex":return oU(this,q,$);case"utf8":case"utf-8":return C7(this,q,$);case"ascii":return lU(this,q,$);case"latin1":case"binary":return iU(this,q,$);case"base64":return mU(this,q,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nU(this,q,$);default:if(X)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),X=!0}}function X1(Q,q,$){let X=Q[q];Q[q]=Q[$],Q[$]=X}function L7(Q,q,$,X,Y){if(Q.length===0)return-1;if(typeof $==="string")X=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=Y?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(Y)return-1;else $=Q.length-1;else if($<0)if(Y)$=0;else return-1;if(typeof q==="string")q=_.from(q,X);if(_.isBuffer(q)){if(q.length===0)return-1;return W7(Q,q,$,X,Y)}else if(typeof q==="number"){if(q=q&255,typeof Uint8Array.prototype.indexOf==="function")if(Y)return Uint8Array.prototype.indexOf.call(Q,q,$);else return Uint8Array.prototype.lastIndexOf.call(Q,q,$);return W7(Q,[q],$,X,Y)}throw TypeError("val must be string, number or Buffer")}function W7(Q,q,$,X,Y){let J=1,K=Q.length,U=q.length;if(X!==void 0){if(X=String(X).toLowerCase(),X==="ucs2"||X==="ucs-2"||X==="utf16le"||X==="utf-16le"){if(Q.length<2||q.length<2)return-1;J=2,K/=2,U/=2,$/=2}}function G(z,H){if(J===1)return z[H];else return z.readUInt16BE(H*J)}let V;if(Y){let z=-1;for(V=$;V<K;V++)if(G(Q,V)===G(q,z===-1?0:V-z)){if(z===-1)z=V;if(V-z+1===U)return z*J}else{if(z!==-1)V-=V-z;z=-1}}else{if($+U>K)$=K-U;for(V=$;V>=0;V--){let z=!0;for(let H=0;H<U;H++)if(G(Q,V+H)!==G(q,H)){z=!1;break}if(z)return V}}return-1}function _U(Q,q,$,X){$=Number($)||0;let Y=Q.length-$;if(!X)X=Y;else if(X=Number(X),X>Y)X=Y;let J=q.length;if(X>J/2)X=J/2;let K;for(K=0;K<X;++K){let U=parseInt(q.substr(K*2,2),16);if(Number.isNaN(U))return K;Q[$+K]=U}return K}function bU(Q,q,$,X){return u6(Z5(q,Q.length-$),Q,$,X)}function uU(Q,q,$,X){return u6(tU(q),Q,$,X)}function cU(Q,q,$,X){return u6(x7(q),Q,$,X)}function pU(Q,q,$,X){return u6(eU(q,Q.length-$),Q,$,X)}function mU(Q,q,$){if(q===0&&$===Q.length)return z7(Q);else return z7(Q.slice(q,$))}function C7(Q,q,$){$=Math.min(Q.length,$);let X=[],Y=q;while(Y<$){let J=Q[Y],K=null,U=J>239?4:J>223?3:J>191?2:1;if(Y+U<=$){let G,V,z,H;switch(U){case 1:if(J<128)K=J;break;case 2:if(G=Q[Y+1],(G&192)===128){if(H=(J&31)<<6|G&63,H>127)K=H}break;case 3:if(G=Q[Y+1],V=Q[Y+2],(G&192)===128&&(V&192)===128){if(H=(J&15)<<12|(G&63)<<6|V&63,H>2047&&(H<55296||H>57343))K=H}break;case 4:if(G=Q[Y+1],V=Q[Y+2],z=Q[Y+3],(G&192)===128&&(V&192)===128&&(z&192)===128){if(H=(J&15)<<18|(G&63)<<12|(V&63)<<6|z&63,H>65535&&H<1114112)K=H}}}if(K===null)K=65533,U=1;else if(K>65535)K-=65536,X.push(K>>>10&1023|55296),K=56320|K&1023;X.push(K),Y+=U}return dU(X)}function dU(Q){let q=Q.length;if(q<=B7)return String.fromCharCode.apply(String,Q);let $="",X=0;while(X<q)$+=String.fromCharCode.apply(String,Q.slice(X,X+=B7));return $}function lU(Q,q,$){let X="";$=Math.min(Q.length,$);for(let Y=q;Y<$;++Y)X+=String.fromCharCode(Q[Y]&127);return X}function iU(Q,q,$){let X="";$=Math.min(Q.length,$);for(let Y=q;Y<$;++Y)X+=String.fromCharCode(Q[Y]);return X}function oU(Q,q,$){let X=Q.length;if(!q||q<0)q=0;if(!$||$<0||$>X)$=X;let Y="";for(let J=q;J<$;++J)Y+=QV[Q[J]];return Y}function nU(Q,q,$){let X=Q.slice(q,$),Y="";for(let J=0;J<X.length-1;J+=2)Y+=String.fromCharCode(X[J]+X[J+1]*256);return Y}function v0(Q,q,$){if(Q%1!==0||Q<0)throw RangeError("offset is not uint");if(Q+q>$)throw RangeError("Trying to access beyond buffer length")}function p0(Q,q,$,X,Y,J){if(!_.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(q>Y||q<J)throw RangeError('"value" argument is out of bounds');if($+X>Q.length)throw RangeError("Index out of range")}function I7(Q,q,$,X,Y){R7(q,X,Y,Q,$,7);let J=Number(q&BigInt(4294967295));Q[$++]=J,J=J>>8,Q[$++]=J,J=J>>8,Q[$++]=J,J=J>>8,Q[$++]=J;let K=Number(q>>BigInt(32)&BigInt(4294967295));return Q[$++]=K,K=K>>8,Q[$++]=K,K=K>>8,Q[$++]=K,K=K>>8,Q[$++]=K,$}function N7(Q,q,$,X,Y){R7(q,X,Y,Q,$,7);let J=Number(q&BigInt(4294967295));Q[$+7]=J,J=J>>8,Q[$+6]=J,J=J>>8,Q[$+5]=J,J=J>>8,Q[$+4]=J;let K=Number(q>>BigInt(32)&BigInt(4294967295));return Q[$+3]=K,K=K>>8,Q[$+2]=K,K=K>>8,Q[$+1]=K,K=K>>8,Q[$]=K,$+8}function D7(Q,q,$,X,Y,J){if($+X>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function A7(Q,q,$,X,Y){if(q=+q,$=$>>>0,!Y)D7(Q,q,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return F7(Q,q,$,X,23,4),$+4}function O7(Q,q,$,X,Y){if(q=+q,$=$>>>0,!Y)D7(Q,q,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return F7(Q,q,$,X,52,8),$+8}function Z7(Q){let q="",$=Q.length,X=Q[0]==="-"?1:0;for(;$>=X+4;$-=3)q=`_${Q.slice($-3,$)}${q}`;return`${Q.slice(0,$)}${q}`}function rU(Q,q,$){if(D1(q,"offset"),Q[q]===void 0||Q[q+$]===void 0)Q6(q,Q.length-($+1))}function R7(Q,q,$,X,Y,J){if(Q>$||Q<q){let K=typeof q==="bigint"?"n":"",U;if(J>3)if(q===0||q===BigInt(0))U=`>= 0${K} and < 2${K} ** ${(J+1)*8}${K}`;else U=`>= -(2${K} ** ${(J+1)*8-1}${K}) and < 2 ** ${(J+1)*8-1}${K}`;else U=`>= ${q}${K} and <= ${$}${K}`;throw new G5("value",U,Q)}rU(X,Y,J)}function D1(Q,q){if(typeof Q!=="number")throw new SU(q,"number",Q)}function Q6(Q,q,$){if(Math.floor(Q)!==Q)throw D1(Q,$),new G5($||"offset","an integer",Q);if(q<0)throw new EU;throw new G5($||"offset",`>= ${$?1:0} and <= ${q}`,Q)}function sU(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(aU,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function Z5(Q,q){q=q||1/0;let $,X=Q.length,Y=null,J=[];for(let K=0;K<X;++K){if($=Q.charCodeAt(K),$>55295&&$<57344){if(!Y){if($>56319){if((q-=3)>-1)J.push(239,191,189);continue}else if(K+1===X){if((q-=3)>-1)J.push(239,191,189);continue}Y=$;continue}if($<56320){if((q-=3)>-1)J.push(239,191,189);Y=$;continue}$=(Y-55296<<10|$-56320)+65536}else if(Y){if((q-=3)>-1)J.push(239,191,189)}if(Y=null,$<128){if((q-=1)<0)break;J.push($)}else if($<2048){if((q-=2)<0)break;J.push($>>6|192,$&63|128)}else if($<65536){if((q-=3)<0)break;J.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((q-=4)<0)break;J.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw Error("Invalid code point")}return J}function tU(Q){let q=[];for(let $=0;$<Q.length;++$)q.push(Q.charCodeAt($)&255);return q}function eU(Q,q){let $,X,Y,J=[];for(let K=0;K<Q.length;++K){if((q-=2)<0)break;$=Q.charCodeAt(K),X=$>>8,Y=$%256,J.push(Y),J.push(X)}return J}function x7(Q){return NU(sU(Q))}function u6(Q,q,$,X){let Y;for(Y=0;Y<X;++Y){if(Y+$>=q.length||Y>=Q.length)break;q[Y+$]=Q[Y]}return Y}function Z2(Q,q){return Q instanceof q||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===q.name}function f2(Q){return typeof BigInt>"u"?qV:Q}function qV(){throw Error("BigInt not supported")}function M5(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var B2,s0,z5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$1,V7,G7,j7=50,e1=2147483647,H7=536870888,OU,RU,xU,TU,vU,EU,SU,G5,B7=4096,aU,QV,$V,XV,YV=(Q)=>{for(let q of Q)if(q.charCodeAt(0)>127)return!1;return!0},JV,KV;var O2=U7(()=>{B2=[],s0=[];for($1=0,V7=z5.length;$1<V7;++$1)B2[$1]=z5[$1],s0[z5.charCodeAt($1)]=$1;s0[45]=62;s0[95]=63;G7=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,OU=globalThis.btoa,RU=globalThis.atob,xU=globalThis.File,TU=globalThis.Blob,vU={MAX_LENGTH:e1,MAX_STRING_LENGTH:H7};EU=F5("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),SU=F5("ERR_INVALID_ARG_TYPE",function(Q,q){return`The "${Q}" argument must be of type number. Received type ${typeof q}`},TypeError),G5=F5("ERR_OUT_OF_RANGE",function(Q,q,$){let X=`The value of "${Q}" is out of range.`,Y=$;if(Number.isInteger($)&&Math.abs($)>4294967296)Y=Z7(String($));else if(typeof $==="bigint"){if(Y=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))Y=Z7(Y);Y+="n"}return X+=` It must be ${q}. Received ${Y}`,X},RangeError);Object.defineProperty(_.prototype,"parent",{enumerable:!0,get:function(){if(!_.isBuffer(this))return;return this.buffer}});Object.defineProperty(_.prototype,"offset",{enumerable:!0,get:function(){if(!_.isBuffer(this))return;return this.byteOffset}});_.poolSize=8192;_.from=function(Q,q,$){return M7(Q,q,$)};Object.setPrototypeOf(_.prototype,Uint8Array.prototype);Object.setPrototypeOf(_,Uint8Array);_.alloc=function(Q,q,$){return kU(Q,q,$)};_.allocUnsafe=function(Q){return j5(Q)};_.allocUnsafeSlow=function(Q){return j5(Q)};_.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==_.prototype};_.compare=function(Q,q){if(Z2(Q,Uint8Array))Q=_.from(Q,Q.offset,Q.byteLength);if(Z2(q,Uint8Array))q=_.from(q,q.offset,q.byteLength);if(!_.isBuffer(Q)||!_.isBuffer(q))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===q)return 0;let $=Q.length,X=q.length;for(let Y=0,J=Math.min($,X);Y<J;++Y)if(Q[Y]!==q[Y]){$=Q[Y],X=q[Y];break}if($<X)return-1;if(X<$)return 1;return 0};_.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}};_.concat=function(Q,q){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return _.alloc(0);let $;if(q===void 0){q=0;for($=0;$<Q.length;++$)q+=Q[$].length}let X=_.allocUnsafe(q),Y=0;for($=0;$<Q.length;++$){let J=Q[$];if(Z2(J,Uint8Array))if(Y+J.length>X.length){if(!_.isBuffer(J))J=_.from(J);J.copy(X,Y)}else Uint8Array.prototype.set.call(X,J,Y);else if(!_.isBuffer(J))throw TypeError('"list" argument must be an Array of Buffers');else J.copy(X,Y);Y+=J.length}return X};_.byteLength=P7;_.prototype._isBuffer=!0;_.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let q=0;q<Q;q+=2)X1(this,q,q+1);return this};_.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let q=0;q<Q;q+=4)X1(this,q,q+3),X1(this,q+1,q+2);return this};_.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let q=0;q<Q;q+=8)X1(this,q,q+7),X1(this,q+1,q+6),X1(this,q+2,q+5),X1(this,q+3,q+4);return this};_.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return C7(this,0,Q);return hU.apply(this,arguments)};_.prototype.toLocaleString=_.prototype.toString;_.prototype.equals=function(Q){if(!_.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return _.compare(this,Q)===0};_.prototype.inspect=function(){let Q="",q=j7;if(Q=this.toString("hex",0,q).replace(/(.{2})/g,"$1 ").trim(),this.length>q)Q+=" ... ";return"<Buffer "+Q+">"};if(G7)_.prototype[G7]=_.prototype.inspect;_.prototype.compare=function(Q,q,$,X,Y){if(Z2(Q,Uint8Array))Q=_.from(Q,Q.offset,Q.byteLength);if(!_.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(q===void 0)q=0;if($===void 0)$=Q?Q.length:0;if(X===void 0)X=0;if(Y===void 0)Y=this.length;if(q<0||$>Q.length||X<0||Y>this.length)throw RangeError("out of range index");if(X>=Y&&q>=$)return 0;if(X>=Y)return-1;if(q>=$)return 1;if(q>>>=0,$>>>=0,X>>>=0,Y>>>=0,this===Q)return 0;let J=Y-X,K=$-q,U=Math.min(J,K),G=this.slice(X,Y),V=Q.slice(q,$);for(let z=0;z<U;++z)if(G[z]!==V[z]){J=G[z],K=V[z];break}if(J<K)return-1;if(K<J)return 1;return 0};_.prototype.includes=function(Q,q,$){return this.indexOf(Q,q,$)!==-1};_.prototype.indexOf=function(Q,q,$){return L7(this,Q,q,$,!0)};_.prototype.lastIndexOf=function(Q,q,$){return L7(this,Q,q,$,!1)};_.prototype.write=function(Q,q,$,X){if(q===void 0)X="utf8",$=this.length,q=0;else if($===void 0&&typeof q==="string")X=q,$=this.length,q=0;else if(isFinite(q))if(q=q>>>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 Y=this.length-q;if($===void 0||$>Y)$=Y;if(Q.length>0&&($<0||q<0)||q>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!X)X="utf8";let J=!1;for(;;)switch(X){case"hex":return _U(this,Q,q,$);case"utf8":case"utf-8":return bU(this,Q,q,$);case"ascii":case"latin1":case"binary":return uU(this,Q,q,$);case"base64":return cU(this,Q,q,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pU(this,Q,q,$);default:if(J)throw TypeError("Unknown encoding: "+X);X=(""+X).toLowerCase(),J=!0}};_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};_.prototype.slice=function(Q,q){let $=this.length;if(Q=~~Q,q=q===void 0?$:~~q,Q<0){if(Q+=$,Q<0)Q=0}else if(Q>$)Q=$;if(q<0){if(q+=$,q<0)q=0}else if(q>$)q=$;if(q<Q)q=Q;let X=this.subarray(Q,q);return Object.setPrototypeOf(X,_.prototype),X};_.prototype.readUintLE=_.prototype.readUIntLE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q],Y=1,J=0;while(++J<q&&(Y*=256))X+=this[Q+J]*Y;return X};_.prototype.readUintBE=_.prototype.readUIntBE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q+--q],Y=1;while(q>0&&(Y*=256))X+=this[Q+--q]*Y;return X};_.prototype.readUint8=_.prototype.readUInt8=function(Q,q){if(Q=Q>>>0,!q)v0(Q,1,this.length);return this[Q]};_.prototype.readUint16LE=_.prototype.readUInt16LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);return this[Q]|this[Q+1]<<8};_.prototype.readUint16BE=_.prototype.readUInt16BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);return this[Q]<<8|this[Q+1]};_.prototype.readUint32LE=_.prototype.readUInt32LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};_.prototype.readUint32BE=_.prototype.readUInt32BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};_.prototype.readBigUInt64LE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=q+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,Y=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(X)+(BigInt(Y)<<BigInt(32))});_.prototype.readBigUInt64BE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=q*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],Y=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(X)<<BigInt(32))+BigInt(Y)});_.prototype.readIntLE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=this[Q],Y=1,J=0;while(++J<q&&(Y*=256))X+=this[Q+J]*Y;if(Y*=128,X>=Y)X-=Math.pow(2,8*q);return X};_.prototype.readIntBE=function(Q,q,$){if(Q=Q>>>0,q=q>>>0,!$)v0(Q,q,this.length);let X=q,Y=1,J=this[Q+--X];while(X>0&&(Y*=256))J+=this[Q+--X]*Y;if(Y*=128,J>=Y)J-=Math.pow(2,8*q);return J};_.prototype.readInt8=function(Q,q){if(Q=Q>>>0,!q)v0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};_.prototype.readInt16LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};_.prototype.readInt16BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};_.prototype.readInt32LE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};_.prototype.readInt32BE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};_.prototype.readBigInt64LE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(X)<<BigInt(32))+BigInt(q+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});_.prototype.readBigInt64BE=f2(function(Q){Q=Q>>>0,D1(Q,"offset");let q=this[Q],$=this[Q+7];if(q===void 0||$===void 0)Q6(Q,this.length-8);let X=(q<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(X)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});_.prototype.readFloatLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return b6(this,Q,!0,23,4)};_.prototype.readFloatBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,4,this.length);return b6(this,Q,!1,23,4)};_.prototype.readDoubleLE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return b6(this,Q,!0,52,8)};_.prototype.readDoubleBE=function(Q,q){if(Q=Q>>>0,!q)v0(Q,8,this.length);return b6(this,Q,!1,52,8)};_.prototype.writeUintLE=_.prototype.writeUIntLE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,$=$>>>0,!X){let K=Math.pow(2,8*$)-1;p0(this,Q,q,$,K,0)}let Y=1,J=0;this[q]=Q&255;while(++J<$&&(Y*=256))this[q+J]=Q/Y&255;return q+$};_.prototype.writeUintBE=_.prototype.writeUIntBE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,$=$>>>0,!X){let K=Math.pow(2,8*$)-1;p0(this,Q,q,$,K,0)}let Y=$-1,J=1;this[q+Y]=Q&255;while(--Y>=0&&(J*=256))this[q+Y]=Q/J&255;return q+$};_.prototype.writeUint8=_.prototype.writeUInt8=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,1,255,0);return this[q]=Q&255,q+1};_.prototype.writeUint16LE=_.prototype.writeUInt16LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,2,65535,0);return this[q]=Q&255,this[q+1]=Q>>>8,q+2};_.prototype.writeUint16BE=_.prototype.writeUInt16BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,2,65535,0);return this[q]=Q>>>8,this[q+1]=Q&255,q+2};_.prototype.writeUint32LE=_.prototype.writeUInt32LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,4,4294967295,0);return this[q+3]=Q>>>24,this[q+2]=Q>>>16,this[q+1]=Q>>>8,this[q]=Q&255,q+4};_.prototype.writeUint32BE=_.prototype.writeUInt32BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,4,4294967295,0);return this[q]=Q>>>24,this[q+1]=Q>>>16,this[q+2]=Q>>>8,this[q+3]=Q&255,q+4};_.prototype.writeBigUInt64LE=f2(function(Q,q=0){return I7(this,Q,q,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeBigUInt64BE=f2(function(Q,q=0){return N7(this,Q,q,BigInt(0),BigInt("0xffffffffffffffff"))});_.prototype.writeIntLE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,!X){let U=Math.pow(2,8*$-1);p0(this,Q,q,$,U-1,-U)}let Y=0,J=1,K=0;this[q]=Q&255;while(++Y<$&&(J*=256)){if(Q<0&&K===0&&this[q+Y-1]!==0)K=1;this[q+Y]=(Q/J>>0)-K&255}return q+$};_.prototype.writeIntBE=function(Q,q,$,X){if(Q=+Q,q=q>>>0,!X){let U=Math.pow(2,8*$-1);p0(this,Q,q,$,U-1,-U)}let Y=$-1,J=1,K=0;this[q+Y]=Q&255;while(--Y>=0&&(J*=256)){if(Q<0&&K===0&&this[q+Y+1]!==0)K=1;this[q+Y]=(Q/J>>0)-K&255}return q+$};_.prototype.writeInt8=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,1,127,-128);if(Q<0)Q=255+Q+1;return this[q]=Q&255,q+1};_.prototype.writeInt16LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,2,32767,-32768);return this[q]=Q&255,this[q+1]=Q>>>8,q+2};_.prototype.writeInt16BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,2,32767,-32768);return this[q]=Q>>>8,this[q+1]=Q&255,q+2};_.prototype.writeInt32LE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,4,2147483647,-2147483648);return this[q]=Q&255,this[q+1]=Q>>>8,this[q+2]=Q>>>16,this[q+3]=Q>>>24,q+4};_.prototype.writeInt32BE=function(Q,q,$){if(Q=+Q,q=q>>>0,!$)p0(this,Q,q,4,2147483647,-2147483648);if(Q<0)Q=4294967295+Q+1;return this[q]=Q>>>24,this[q+1]=Q>>>16,this[q+2]=Q>>>8,this[q+3]=Q&255,q+4};_.prototype.writeBigInt64LE=f2(function(Q,q=0){return I7(this,Q,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeBigInt64BE=f2(function(Q,q=0){return N7(this,Q,q,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});_.prototype.writeFloatLE=function(Q,q,$){return A7(this,Q,q,!0,$)};_.prototype.writeFloatBE=function(Q,q,$){return A7(this,Q,q,!1,$)};_.prototype.writeDoubleLE=function(Q,q,$){return O7(this,Q,q,!0,$)};_.prototype.writeDoubleBE=function(Q,q,$){return O7(this,Q,q,!1,$)};_.prototype.copy=function(Q,q,$,X){if(!_.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!X&&X!==0)X=this.length;if(q>=Q.length)q=Q.length;if(!q)q=0;if(X>0&&X<$)X=$;if(X===$)return 0;if(Q.length===0||this.length===0)return 0;if(q<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-q<X-$)X=Q.length-q+$;let Y=X-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(q,$,X);else Uint8Array.prototype.set.call(Q,this.subarray($,X),q);return Y};_.prototype.fill=function(Q,q,$,X){if(typeof Q==="string"){if(typeof q==="string")X=q,q=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"&&!_.isEncoding(X))throw TypeError("Unknown encoding: "+X);if(Q.length===1){let J=Q.charCodeAt(0);if(X==="utf8"&&J<128||X==="latin1")Q=J}}else if(typeof Q==="number")Q=Q&255;else if(typeof Q==="boolean")Q=Number(Q);if(q<0||this.length<q||this.length<$)throw RangeError("Out of range index");if($<=q)return this;if(q=q>>>0,$=$===void 0?this.length:$>>>0,!Q)Q=0;let Y;if(typeof Q==="number")for(Y=q;Y<$;++Y)this[Y]=Q;else{let J=_.isBuffer(Q)?Q:_.from(Q,X),K=J.length;if(K===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(Y=0;Y<$-q;++Y)this[Y+q]=J[Y%K]}return this};aU=/[^+/0-9A-Za-z-_]/g;QV=function(){let Q=Array(256);for(let q=0;q<16;++q){let $=q*16;for(let X=0;X<16;++X)Q[$+X]="0123456789abcdef"[q]+"0123456789abcdef"[X]}return Q}();$V=M5("resolveObjectURL"),XV=M5("isUtf8"),JV=M5("transcode"),KV=_});var $6={};K7($6,{setMaxListeners:()=>b7,once:()=>h7,listenerCount:()=>u7,init:()=>h2,getMaxListeners:()=>p7,getEventListeners:()=>_7,default:()=>jV,captureRejectionSymbol:()=>k7,addAbortListener:()=>m7,EventEmitter:()=>h2});function g7(Q,q){var{_events:$}=Q;if(q[0]??=Error("Unhandled error."),!$)throw q[0];var X=$[S7];if(X)for(var Y of v7.call(X))Y.apply(Q,q);var J=$.error;if(!J)throw q[0];for(var Y of v7.call(J))Y.apply(Q,q);return!0}function zV(Q,q,$,X){q.then(void 0,function(Y){queueMicrotask(()=>GV(Q,Y,$,X))})}function GV(Q,q,$,X){if(typeof Q[T7]==="function")Q[T7](q,$,...X);else try{Q[Y1]=!1,Q.emit("error",q)}finally{Q[Y1]=!0}}function y7(Q,q,$){$.warned=!0;let X=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(q)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);X.name="MaxListenersExceededWarning",X.emitter=Q,X.type=q,X.count=$.length,console.warn(X)}function f7(Q,q,...$){this.removeListener(Q,q),q.apply(this,$)}function h7(Q,q,$){var X=$?.signal;if(c7(X,"options.signal"),X?.aborted)throw new w5(void 0,{cause:X?.reason});let{resolve:Y,reject:J,promise:K}=$newPromiseCapability(Promise),U=(z)=>{if(Q.removeListener(q,G),X!=null)c6(X,"abort",V);J(z)},G=(...z)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",U);if(X!=null)c6(X,"abort",V);Y(z)};if(E7(Q,q,G,{once:!0}),q!=="error"&&typeof Q.once==="function")Q.once("error",U);function V(){c6(Q,q,G),c6(Q,"error",U),J(new w5(void 0,{cause:X?.reason}))}if(X!=null)E7(X,"abort",V,{once:!0});return K}function _7(Q,q){return Q.listeners(q)}function b7(Q,...q){L5(Q,"setMaxListeners",0);var $;if(q&&($=q.length))for(let X=0;X<$;X++)q[X].setMaxListeners(Q);else J1=Q}function u7(Q,q){return Q.listenerCount(q)}function c6(Q,q,$,X){if(typeof Q.removeListener==="function")Q.removeListener(q,$);else Q.removeEventListener(q,$,X)}function E7(Q,q,$,X){if(typeof Q.on==="function")if(X.once)Q.once(q,$);else Q.on(q,$);else Q.addEventListener(q,$,X)}function A1(Q,q,$){let X=TypeError(`The "${Q}" argument must be of type ${q}. Received ${$}`);return X.code="ERR_INVALID_ARG_TYPE",X}function ZV(Q,q,$){let X=RangeError(`The "${Q}" argument is out of range. It must be ${q}. Received ${$}`);return X.code="ERR_OUT_OF_RANGE",X}function c7(Q,q){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw A1(q,"AbortSignal",Q)}function L5(Q,q,$,X){if(typeof Q!=="number")throw A1(q,"number",Q);if($!=null&&Q<$||X!=null&&Q>X||($!=null||X!=null)&&Number.isNaN(Q))throw ZV(q,`${$!=null?`>= ${$}`:""}${$!=null&&X!=null?" && ":""}${X!=null?`<= ${X}`:""}`,Q)}function q6(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function FV(Q,q){if(typeof Q!=="boolean")throw A1(q,"boolean",Q)}function p7(Q){return Q?._maxListeners??J1}function m7(Q,q){if(Q===void 0)throw A1("signal","AbortSignal",Q);if(c7(Q,"signal"),typeof q!=="function")throw A1("listener","function",q);let $;if(Q.aborted)queueMicrotask(()=>q());else Q.addEventListener("abort",q,{__proto__:null,once:!0}),$=()=>{Q.removeEventListener("abort",q)};return{__proto__:null,[Symbol.dispose](){$?.()}}}var P5,Y1,S7,UV,VV,T7,k7,v7,J1=10,h2=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[Y1]=Q?.captureRejections?Boolean(Q?.captureRejections):I0[Y1])this.emit=BV},I0,WV=function(Q,...q){if(Q==="error")return g7(this,q);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let Y=X.length>1?X.slice():X;for(let J=0,{length:K}=Y;J<K;J++){let U=Y[J];switch(q.length){case 0:U.call(this);break;case 1:U.call(this,q[0]);break;case 2:U.call(this,q[0],q[1]);break;case 3:U.call(this,q[0],q[1],q[2]);break;default:U.apply(this,q);break}}return!0},BV=function(Q,...q){if(Q==="error")return g7(this,q);var{_events:$}=this;if($===void 0)return!1;var X=$[Q];if(X===void 0)return!1;let Y=X.length>1?X.slice():X;for(let J=0,{length:K}=Y;J<K;J++){let U=Y[J],G;switch(q.length){case 0:G=U.call(this);break;case 1:G=U.call(this,q[0]);break;case 2:G=U.call(this,q[0],q[1]);break;case 3:G=U.call(this,q[0],q[1],q[2]);break;default:G=U.apply(this,q);break}if(G!==void 0&&typeof G?.then==="function"&&G.then===Promise.prototype.then)zV(this,G,Q,q)}return!0},w5,jV;var X6=U7(()=>{P5=Symbol.for,Y1=Symbol("kCapture"),S7=P5("events.errorMonitor"),UV=Symbol("events.maxEventTargetListeners"),VV=Symbol("events.maxEventTargetListenersWarned"),T7=P5("nodejs.rejection"),k7=P5("nodejs.rejection"),v7=Array.prototype.slice,I0=h2.prototype={};I0._events=void 0;I0._eventsCount=0;I0._maxListeners=void 0;I0.setMaxListeners=function(Q){return L5(Q,"setMaxListeners",0),this._maxListeners=Q,this};I0.constructor=h2;I0.getMaxListeners=function(){return this?._maxListeners??J1};I0.emit=WV;I0.addListener=function(Q,q){q6(q);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,q.listener??q);var X=$[Q];if(!X)$[Q]=[q],this._eventsCount++;else{X.push(q);var Y=this._maxListeners??J1;if(Y>0&&X.length>Y&&!X.warned)y7(this,Q,X)}return this};I0.on=I0.addListener;I0.prependListener=function(Q,q){q6(q);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,q.listener??q);var X=$[Q];if(!X)$[Q]=[q],this._eventsCount++;else{X.unshift(q);var Y=this._maxListeners??J1;if(Y>0&&X.length>Y&&!X.warned)y7(this,Q,X)}return this};I0.once=function(Q,q){q6(q);let $=f7.bind(this,Q,q);return $.listener=q,this.addListener(Q,$),this};I0.prependOnceListener=function(Q,q){q6(q);let $=f7.bind(this,Q,q);return $.listener=q,this.prependListener(Q,$),this};I0.removeListener=function(Q,q){q6(q);var{_events:$}=this;if(!$)return this;var X=$[Q];if(!X)return this;var Y=X.length;let J=-1;for(let K=Y-1;K>=0;K--)if(X[K]===q||X[K].listener===q){J=K;break}if(J<0)return this;if(J===0)X.shift();else X.splice(J,1);if(X.length===0)delete $[Q],this._eventsCount--;return this};I0.off=I0.removeListener;I0.removeAllListeners=function(Q){var{_events:q}=this;if(Q&&q){if(q[Q])delete q[Q],this._eventsCount--}else this._events={__proto__:null};return this};I0.listeners=function(Q){var{_events:q}=this;if(!q)return[];var $=q[Q];if(!$)return[];return $.map((X)=>X.listener??X)};I0.rawListeners=function(Q){var{_events:q}=this;if(!q)return[];var $=q[Q];if(!$)return[];return $.slice()};I0.listenerCount=function(Q){var{_events:q}=this;if(!q)return 0;return q[Q]?.length??0};I0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};I0[Y1]=!1;w5=class w5 extends Error{constructor(Q="The operation was aborted",q=void 0){if(q!==void 0&&typeof q!=="object")throw A1("options","Object",q);super(Q,q);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(h2,{captureRejections:{get(){return I0[Y1]},set(Q){FV(Q,"EventEmitter.captureRejections"),I0[Y1]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return J1},set:(Q)=>{L5(Q,"defaultMaxListeners",0),J1=Q}},kMaxEventTargetListeners:{value:UV,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:VV,enumerable:!1,configurable:!1,writable:!1}});Object.assign(h2,{once:h7,getEventListeners:_7,getMaxListeners:p7,setMaxListeners:b7,EventEmitter:h2,usingDomains:!1,captureRejectionSymbol:k7,errorMonitor:S7,addAbortListener:m7,init:h2,listenerCount:u7});jV=h2});var l6=k((nw,s7)=>{var w0=(Q,q)=>()=>(q||Q((q={exports:{}}).exports,q),q.exports),D0=w0((Q,q)=>{class $ extends Error{constructor(X){if(!Array.isArray(X))throw TypeError(`Expected input to be an Array, got ${typeof X}`);let Y="";for(let J=0;J<X.length;J++)Y+=` ${X[J].stack}
2
- `;super(Y);this.name="AggregateError",this.errors=X}}q.exports={AggregateError:$,ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,Y){return X.includes(Y)},ArrayPrototypeIndexOf(X,Y){return X.indexOf(Y)},ArrayPrototypeJoin(X,Y){return X.join(Y)},ArrayPrototypeMap(X,Y){return X.map(Y)},ArrayPrototypePop(X,Y){return X.pop(Y)},ArrayPrototypePush(X,Y){return X.push(Y)},ArrayPrototypeSlice(X,Y,J){return X.slice(Y,J)},Error,FunctionPrototypeCall(X,Y,...J){return X.call(Y,...J)},FunctionPrototypeSymbolHasInstance(X,Y){return Function.prototype[Symbol.hasInstance].call(X,Y)},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,Y){return Object.defineProperties(X,Y)},ObjectDefineProperty(X,Y,J){return Object.defineProperty(X,Y,J)},ObjectGetOwnPropertyDescriptor(X,Y){return Object.getOwnPropertyDescriptor(X,Y)},ObjectKeys(X){return Object.keys(X)},ObjectSetPrototypeOf(X,Y){return Object.setPrototypeOf(X,Y)},Promise,PromisePrototypeCatch(X,Y){return X.catch(Y)},PromisePrototypeThen(X,Y,J){return X.then(Y,J)},PromiseReject(X){return Promise.reject(X)},PromiseResolve(X){return Promise.resolve(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,Y){return X.test(Y)},SafeSet:Set,String,StringPrototypeSlice(X,Y,J){return X.slice(Y,J)},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,Y,J){return X.set(Y,J)},Boolean,Uint8Array}}),d7=w0((Q,q)=>{q.exports={format($,...X){return $.replace(/%([sdifj])/g,function(...[Y,J]){let K=X.shift();if(J==="f")return K.toFixed(6);else if(J==="j")return JSON.stringify(K);else if(J==="s"&&typeof K==="object")return`${K.constructor!==Object?K.constructor.name:""} {}`.trim();else return K.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"{}"}}}}),_0=w0((Q,q)=>{var{format:$,inspect:X}=d7(),{AggregateError:Y}=D0(),J=globalThis.AggregateError||Y,K=Symbol("kIsNodeError"),U=["string","function","number","object","Function","Object","boolean","bigint","symbol"],G=/^([A-Z][a-z0-9]*)+$/,V={};function z(N,W){if(!N)throw new V.ERR_INTERNAL_ASSERTION(W)}function H(N){let W="",M=N.length,w=N[0]==="-"?1:0;for(;M>=w+4;M-=3)W=`_${N.slice(M-3,M)}${W}`;return`${N.slice(0,M)}${W}`}function j(N,W,M){if(typeof W==="function")return z(W.length<=M.length,`Code: ${N}; The provided arguments length (${M.length}) does not match the required ones (${W.length}).`),W(...M);let w=(W.match(/%[dfijoOs]/g)||[]).length;if(z(w===M.length,`Code: ${N}; The provided arguments length (${M.length}) does not match the required ones (${w}).`),M.length===0)return W;return $(W,...M)}function Z(N,W,M){if(!M)M=Error;class w extends M{constructor(...I){super(j(N,W,I))}toString(){return`${this.name} [${N}]: ${this.message}`}}Object.defineProperties(w.prototype,{name:{value:M.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),w.prototype.code=N,w.prototype[K]=!0,V[N]=w}function h(N){let W="__node_internal_"+N.name;return Object.defineProperty(N,"name",{value:W}),N}function g(N,W){if(N&&W&&N!==W){if(Array.isArray(W.errors))return W.errors.push(N),W;let M=new J([W,N],W.message);return M.code=W.code,M}return N||W}class C extends Error{constructor(N="The operation was aborted",W=void 0){if(W!==void 0&&typeof W!=="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",W);super(N,W);this.code="ABORT_ERR",this.name="AbortError"}}Z("ERR_ASSERTION","%s",Error),Z("ERR_INVALID_ARG_TYPE",(N,W,M)=>{if(z(typeof N==="string","'name' must be a string"),!Array.isArray(W))W=[W];let w="The ";if(N.endsWith(" argument"))w+=`${N} `;else w+=`"${N}" ${N.includes(".")?"property":"argument"} `;w+="must be ";let I=[],f=[],E=[];for(let R of W)if(z(typeof R==="string","All expected entries have to be of type string"),U.includes(R))I.push(R.toLowerCase());else if(G.test(R))f.push(R);else z(R!=="object",'The value "object" should be written as "Object"'),E.push(R);if(f.length>0){let R=I.indexOf("object");if(R!==-1)I.splice(I,R,1),f.push("Object")}if(I.length>0){switch(I.length){case 1:w+=`of type ${I[0]}`;break;case 2:w+=`one of type ${I[0]} or ${I[1]}`;break;default:{let R=I.pop();w+=`one of type ${I.join(", ")}, or ${R}`}}if(f.length>0||E.length>0)w+=" or "}if(f.length>0){switch(f.length){case 1:w+=`an instance of ${f[0]}`;break;case 2:w+=`an instance of ${f[0]} or ${f[1]}`;break;default:{let R=f.pop();w+=`an instance of ${f.join(", ")}, or ${R}`}}if(E.length>0)w+=" or "}switch(E.length){case 0:break;case 1:if(E[0].toLowerCase()!==E[0])w+="an ";w+=`${E[0]}`;break;case 2:w+=`one of ${E[0]} or ${E[1]}`;break;default:{let R=E.pop();w+=`one of ${E.join(", ")}, or ${R}`}}if(M==null)w+=`. Received ${M}`;else if(typeof M==="function"&&M.name)w+=`. Received function ${M.name}`;else if(typeof M==="object"){var d;if((d=M.constructor)!==null&&d!==void 0&&d.name)w+=`. Received an instance of ${M.constructor.name}`;else{let R=X(M,{depth:-1});w+=`. Received ${R}`}}else{let R=X(M,{colors:!1});if(R.length>25)R=`${R.slice(0,25)}...`;w+=`. Received type ${typeof M} (${R})`}return w},TypeError),Z("ERR_INVALID_ARG_VALUE",(N,W,M="is invalid")=>{let w=X(W);if(w.length>128)w=w.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${M}. Received ${w}`},TypeError),Z("ERR_INVALID_RETURN_VALUE",(N,W,M)=>{var w;let I=M!==null&&M!==void 0&&(w=M.constructor)!==null&&w!==void 0&&w.name?`instance of ${M.constructor.name}`:`type ${typeof M}`;return`Expected ${N} to be returned from the "${W}" function but got ${I}.`},TypeError),Z("ERR_MISSING_ARGS",(...N)=>{z(N.length>0,"At least one arg needs to be specified");let W,M=N.length;switch(N=(Array.isArray(N)?N:[N]).map((w)=>`"${w}"`).join(" or "),M){case 1:W+=`The ${N[0]} argument`;break;case 2:W+=`The ${N[0]} and ${N[1]} arguments`;break;default:{let w=N.pop();W+=`The ${N.join(", ")}, and ${w} arguments`}break}return`${W} must be specified`},TypeError),Z("ERR_OUT_OF_RANGE",(N,W,M)=>{z(W,'Missing "range" argument');let w;if(Number.isInteger(M)&&Math.abs(M)>4294967296)w=H(String(M));else if(typeof M==="bigint"){w=String(M);let I=BigInt(2)**BigInt(32);if(M>I||M<-I)w=H(w);w+="n"}else w=X(M);return`The value of "${N}" is out of range. It must be ${W}. Received ${w}`},RangeError),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),Z("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),Z("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),Z("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),Z("ERR_STREAM_WRITE_AFTER_END","write after end",Error),Z("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),q.exports={AbortError:C,aggregateTwoErrors:h(g),hideStackFrames:h,codes:V}}),HV=w0((Q,q)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,X=new WeakMap;function Y(x){let D=$.get(x);return console.assert(D!=null,"'this' is expected an Event object, but got",x),D}function J(x){if(x.passiveListener!=null){if(typeof console<"u"&&typeof console.error==="function")console.error("Unable to preventDefault inside passive event listener invocation.",x.passiveListener);return}if(!x.event.cancelable)return;if(x.canceled=!0,typeof x.event.preventDefault==="function")x.event.preventDefault()}function K(x,D){$.set(this,{eventTarget:x,event:D,eventPhase:2,currentTarget:x,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:D.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let L=Object.keys(D);for(let S=0;S<L.length;++S){let y=L[S];if(!(y in this))Object.defineProperty(this,y,U(y))}}if(K.prototype={get type(){return Y(this).event.type},get target(){return Y(this).eventTarget},get currentTarget(){return Y(this).currentTarget},composedPath(){let x=Y(this).currentTarget;if(x==null)return[];return[x]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Y(this).eventPhase},stopPropagation(){let x=Y(this);if(x.stopped=!0,typeof x.event.stopPropagation==="function")x.event.stopPropagation()},stopImmediatePropagation(){let x=Y(this);if(x.stopped=!0,x.immediateStopped=!0,typeof x.event.stopImmediatePropagation==="function")x.event.stopImmediatePropagation()},get bubbles(){return Boolean(Y(this).event.bubbles)},get cancelable(){return Boolean(Y(this).event.cancelable)},preventDefault(){J(Y(this))},get defaultPrevented(){return Y(this).canceled},get composed(){return Boolean(Y(this).event.composed)},get timeStamp(){return Y(this).timeStamp},get srcElement(){return Y(this).eventTarget},get cancelBubble(){return Y(this).stopped},set cancelBubble(x){if(!x)return;let D=Y(this);if(D.stopped=!0,typeof D.event.cancelBubble==="boolean")D.event.cancelBubble=!0},get returnValue(){return!Y(this).canceled},set returnValue(x){if(!x)J(Y(this))},initEvent(){}},Object.defineProperty(K.prototype,"constructor",{value:K,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(K.prototype,window.Event.prototype),X.set(window.Event.prototype,K);function U(x){return{get(){return Y(this).event[x]},set(D){Y(this).event[x]=D},configurable:!0,enumerable:!0}}function G(x){return{value(){let D=Y(this).event;return D[x].apply(D,arguments)},configurable:!0,enumerable:!0}}function V(x,D){let L=Object.keys(D);if(L.length===0)return x;function S(y,v){x.call(this,y,v)}S.prototype=Object.create(x.prototype,{constructor:{value:S,configurable:!0,writable:!0}});for(let y=0;y<L.length;++y){let v=L[y];if(!(v in x.prototype)){let a=typeof Object.getOwnPropertyDescriptor(D,v).value==="function";Object.defineProperty(S.prototype,v,a?G(v):U(v))}}return S}function z(x){if(x==null||x===Object.prototype)return K;let D=X.get(x);if(D==null)D=V(z(Object.getPrototypeOf(x)),x),X.set(x,D);return D}function H(x,D){return new(z(Object.getPrototypeOf(D)))(x,D)}function j(x){return Y(x).immediateStopped}function Z(x,D){Y(x).eventPhase=D}function h(x,D){Y(x).currentTarget=D}function g(x,D){Y(x).passiveListener=D}var C=new WeakMap,N=1,W=2,M=3;function w(x){return x!==null&&typeof x==="object"}function I(x){let D=C.get(x);if(D==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return D}function f(x){return{get(){let D=I(this).get(x);while(D!=null){if(D.listenerType===M)return D.listener;D=D.next}return null},set(D){if(typeof D!=="function"&&!w(D))D=null;let L=I(this),S=null,y=L.get(x);while(y!=null){if(y.listenerType===M)if(S!==null)S.next=y.next;else if(y.next!==null)L.set(x,y.next);else L.delete(x);else S=y;y=y.next}if(D!==null){let v={listener:D,listenerType:M,passive:!1,once:!1,next:null};if(S===null)L.set(x,v);else S.next=v}},configurable:!0,enumerable:!0}}function E(x,D){Object.defineProperty(x,`on${D}`,f(D))}function d(x){function D(){R.call(this)}D.prototype=Object.create(R.prototype,{constructor:{value:D,configurable:!0,writable:!0}});for(let L=0;L<x.length;++L)E(D.prototype,x[L]);return D}function R(){if(this instanceof R){C.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return d(arguments[0]);if(arguments.length>0){let x=Array(arguments.length);for(let D=0;D<arguments.length;++D)x[D]=arguments[D];return d(x)}throw TypeError("Cannot call a class as a function")}if(R.prototype={addEventListener(x,D,L){if(D==null)return;if(typeof D!=="function"&&!w(D))throw TypeError("'listener' should be a function or an object.");let S=I(this),y=w(L),v=(y?Boolean(L.capture):Boolean(L))?N:W,a={listener:D,listenerType:v,passive:y&&Boolean(L.passive),once:y&&Boolean(L.once),next:null},Q0=S.get(x);if(Q0===void 0){S.set(x,a);return}let Y0=null;while(Q0!=null){if(Q0.listener===D&&Q0.listenerType===v)return;Y0=Q0,Q0=Q0.next}Y0.next=a},removeEventListener(x,D,L){if(D==null)return;let S=I(this),y=(w(L)?Boolean(L.capture):Boolean(L))?N:W,v=null,a=S.get(x);while(a!=null){if(a.listener===D&&a.listenerType===y){if(v!==null)v.next=a.next;else if(a.next!==null)S.set(x,a.next);else S.delete(x);return}v=a,a=a.next}},dispatchEvent(x){if(x==null||typeof x.type!=="string")throw TypeError('"event.type" should be a string.');let D=I(this),L=x.type,S=D.get(L);if(S==null)return!0;let y=H(this,x),v=null;while(S!=null){if(S.once)if(v!==null)v.next=S.next;else if(S.next!==null)D.set(L,S.next);else D.delete(L);else v=S;if(g(y,S.passive?S.listener:null),typeof S.listener==="function")try{S.listener.call(this,y)}catch(a){if(typeof console<"u"&&typeof console.error==="function")console.error(a)}else if(S.listenerType!==M&&typeof S.listener.handleEvent==="function")S.listener.handleEvent(y);if(j(y))break;S=S.next}return g(y,null),Z(y,0),h(y,null),!y.defaultPrevented}},Object.defineProperty(R.prototype,"constructor",{value:R,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(R.prototype,window.EventTarget.prototype);Q.defineEventAttribute=E,Q.EventTarget=R,Q.default=R,q.exports=R,q.exports.EventTarget=q.exports.default=R,q.exports.defineEventAttribute=E}),Y6=w0((Q,q)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=HV();class X extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let z=K.get(this);if(typeof z!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return z}}$.defineEventAttribute(X.prototype,"abort");function Y(){let z=Object.create(X.prototype);return $.EventTarget.call(z),K.set(z,!1),z}function J(z){if(K.get(z)!==!1)return;K.set(z,!0),z.dispatchEvent({type:"abort"})}var K=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 U{constructor(){G.set(this,Y())}get signal(){return V(this)}abort(){J(V(this))}}var G=new WeakMap;function V(z){let H=G.get(z);if(H==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${z===null?"null":typeof z}`);return H}if(Object.defineProperties(U.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(U.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=U,Q.AbortSignal=X,Q.default=U,q.exports=U,q.exports.AbortController=q.exports.default=U,q.exports.AbortSignal=X}),m0=w0((Q,q)=>{var $=(O2(),a0(A2)),{format:X,inspect:Y}=d7(),{codes:{ERR_INVALID_ARG_TYPE:J}}=_0(),{kResistStopPropagation:K,AggregateError:U,SymbolDispose:G}=D0(),V=globalThis.AbortSignal||Y6().AbortSignal,z=globalThis.AbortController||Y6().AbortController,H=Object.getPrototypeOf(async function(){}).constructor,j=globalThis.Blob||$.Blob,Z=typeof j<"u"?function(C){return C instanceof j}:function(C){return!1},h=(C,N)=>{if(C!==void 0&&(C===null||typeof C!=="object"||!("aborted"in C)))throw new J(N,"AbortSignal",C)},g=(C,N)=>{if(typeof C!=="function")throw new J(N,"Function",C)};q.exports={AggregateError:U,kEmptyObject:Object.freeze({}),once(C){let N=!1;return function(...W){if(N)return;N=!0,C.apply(this,W)}},createDeferredPromise:function(){let C,N;return{promise:new Promise((W,M)=>{C=W,N=M}),resolve:C,reject:N}},promisify(C){return new Promise((N,W)=>{C((M,...w)=>{if(M)return W(M);return N(...w)})})},debuglog(){return function(){}},format:X,inspect:Y,types:{isAsyncFunction(C){return C instanceof H},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:Z,deprecate(C,N){return C},addAbortListener:(X6(),a0($6)).addAbortListener||function(C,N){if(C===void 0)throw new J("signal","AbortSignal",C);h(C,"signal"),g(N,"listener");let W;if(C.aborted)queueMicrotask(()=>N());else C.addEventListener("abort",N,{__proto__:null,once:!0,[K]:!0}),W=()=>{C.removeEventListener("abort",N)};return{__proto__:null,[G](){var M;(M=W)===null||M===void 0||M()}}},AbortSignalAny:V.any||function(C){if(C.length===1)return C[0];let N=new z,W=()=>N.abort();return C.forEach((M)=>{h(M,"signals"),M.addEventListener("abort",W,{once:!0})}),N.signal.addEventListener("abort",()=>{C.forEach((M)=>M.removeEventListener("abort",W))},{once:!0}),N.signal}},q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),J6=w0((Q,q)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:X,ArrayPrototypeJoin:Y,ArrayPrototypeMap:J,NumberIsInteger:K,NumberIsNaN:U,NumberMAX_SAFE_INTEGER:G,NumberMIN_SAFE_INTEGER:V,NumberParseInt:z,ObjectPrototypeHasOwnProperty:H,RegExpPrototypeExec:j,String:Z,StringPrototypeToUpperCase:h,StringPrototypeTrim:g}=D0(),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:N,ERR_INVALID_ARG_TYPE:W,ERR_INVALID_ARG_VALUE:M,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:I}}=_0(),{normalizeEncoding:f}=m0(),{isAsyncFunction:E,isArrayBufferView:d}=m0().types,R={};function x(O){return O===(O|0)}function D(O){return O===O>>>0}var L=/^[0-7]+$/,S="must be a 32-bit unsigned integer or an octal string";function y(O,i,q0){if(typeof O>"u")O=q0;if(typeof O==="string"){if(j(L,O)===null)throw new M(i,O,S);O=z(O,8)}return Q0(O,i),O}var v=C((O,i,q0=V,o=G)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!K(O))throw new w(i,"an integer",O);if(O<q0||O>o)throw new w(i,`>= ${q0} && <= ${o}`,O)}),a=C((O,i,q0=-2147483648,o=2147483647)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!K(O))throw new w(i,"an integer",O);if(O<q0||O>o)throw new w(i,`>= ${q0} && <= ${o}`,O)}),Q0=C((O,i,q0=!1)=>{if(typeof O!=="number")throw new W(i,"number",O);if(!K(O))throw new w(i,"an integer",O);let o=q0?1:0,V0=4294967295;if(O<o||O>V0)throw new w(i,`>= ${o} && <= ${V0}`,O)});function Y0(O,i){if(typeof O!=="string")throw new W(i,"string",O)}function B0(O,i,q0=void 0,o){if(typeof O!=="number")throw new W(i,"number",O);if(q0!=null&&O<q0||o!=null&&O>o||(q0!=null||o!=null)&&U(O))throw new w(i,`${q0!=null?`>= ${q0}`:""}${q0!=null&&o!=null?" && ":""}${o!=null?`<= ${o}`:""}`,O)}var c=C((O,i,q0)=>{if(!X(q0,O)){let o="must be one of: "+Y(J(q0,(V0)=>typeof V0==="string"?`'${V0}'`:Z(V0)),", ");throw new M(i,O,o)}});function U0(O,i){if(typeof O!=="boolean")throw new W(i,"boolean",O)}function P(O,i,q0){return O==null||!H(O,i)?q0:O[i]}var l=C((O,i,q0=null)=>{let o=P(q0,"allowArray",!1),V0=P(q0,"allowFunction",!1);if(!P(q0,"nullable",!1)&&O===null||!o&&$(O)||typeof O!=="object"&&(!V0||typeof O!=="function"))throw new W(i,"Object",O)}),$0=C((O,i)=>{if(O!=null&&typeof O!=="object"&&typeof O!=="function")throw new W(i,"a dictionary",O)}),u=C((O,i,q0=0)=>{if(!$(O))throw new W(i,"Array",O);if(O.length<q0){let o=`must be longer than ${q0}`;throw new M(i,O,o)}});function K0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++)Y0(O[q0],`${i}[${q0}]`)}function z0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++)U0(O[q0],`${i}[${q0}]`)}function j0(O,i){u(O,i);for(let q0=0;q0<O.length;q0++){let o=O[q0],V0=`${i}[${q0}]`;if(o==null)throw new W(V0,"AbortSignal",o);G0(o,V0)}}function Z0(O,i="signal"){if(Y0(O,i),R[O]===void 0){if(R[h(O)]!==void 0)throw new I(O+" (signals must use all capital letters)");throw new I(O)}}var p=C((O,i="buffer")=>{if(!d(O))throw new W(i,["Buffer","TypedArray","DataView"],O)});function m(O,i){let q0=f(i),o=O.length;if(q0==="hex"&&o%2!==0)throw new M("encoding",i,`is invalid for data of length ${o}`)}function s(O,i="Port",q0=!0){if(typeof O!=="number"&&typeof O!=="string"||typeof O==="string"&&g(O).length===0||+O!==+O>>>0||O>65535||O===0&&!q0)throw new N(i,O,q0);return O|0}var G0=C((O,i)=>{if(O!==void 0&&(O===null||typeof O!=="object"||!("aborted"in O)))throw new W(i,"AbortSignal",O)}),W0=C((O,i)=>{if(typeof O!=="function")throw new W(i,"Function",O)}),A=C((O,i)=>{if(typeof O!=="function"||E(O))throw new W(i,"Function",O)}),T=C((O,i)=>{if(O!==void 0)throw new W(i,"undefined",O)});function b(O,i,q0){if(!X(q0,O))throw new W(i,`('${Y(q0,"|")}')`,O)}var r=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function e(O,i){if(typeof O>"u"||!j(r,O))throw new M(i,O,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function t(O){if(typeof O==="string")return e(O,"hints"),O;else if($(O)){let i=O.length,q0="";if(i===0)return q0;for(let o=0;o<i;o++){let V0=O[o];if(e(V0,"hints"),q0+=V0,o!==i-1)q0+=", "}return q0}throw new M("hints",O,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}q.exports={isInt32:x,isUint32:D,parseFileMode:y,validateArray:u,validateStringArray:K0,validateBooleanArray:z0,validateAbortSignalArray:j0,validateBoolean:U0,validateBuffer:p,validateDictionary:$0,validateEncoding:m,validateFunction:W0,validateInt32:a,validateInteger:v,validateNumber:B0,validateObject:l,validateOneOf:c,validatePlainFunction:A,validatePort:s,validateSignalName:Z0,validateString:Y0,validateUint32:Q0,validateUndefined:T,validateUnion:b,validateAbortSignal:G0,validateLinkHeaderValue:t}}),K1=w0((Q,q)=>{q.exports=globalThis.process}),x2=w0((Q,q)=>{var{SymbolAsyncIterator:$,SymbolIterator:X,SymbolFor:Y}=D0(),J=Y("nodejs.stream.destroyed"),K=Y("nodejs.stream.errored"),U=Y("nodejs.stream.readable"),G=Y("nodejs.stream.writable"),V=Y("nodejs.stream.disturbed"),z=Y("nodejs.webstream.isClosedPromise"),H=Y("nodejs.webstream.controllerErrorFunction");function j(P,l=!1){var $0;return!!(P&&typeof P.pipe==="function"&&typeof P.on==="function"&&(!l||typeof P.pause==="function"&&typeof P.resume==="function")&&(!P._writableState||(($0=P._readableState)===null||$0===void 0?void 0:$0.readable)!==!1)&&(!P._writableState||P._readableState))}function Z(P){var l;return!!(P&&typeof P.write==="function"&&typeof P.on==="function"&&(!P._readableState||((l=P._writableState)===null||l===void 0?void 0:l.writable)!==!1))}function h(P){return!!(P&&typeof P.pipe==="function"&&P._readableState&&typeof P.on==="function"&&typeof P.write==="function")}function g(P){return P&&(P._readableState||P._writableState||typeof P.write==="function"&&typeof P.on==="function"||typeof P.pipe==="function"&&typeof P.on==="function")}function C(P){return!!(P&&!g(P)&&typeof P.pipeThrough==="function"&&typeof P.getReader==="function"&&typeof P.cancel==="function")}function N(P){return!!(P&&!g(P)&&typeof P.getWriter==="function"&&typeof P.abort==="function")}function W(P){return!!(P&&!g(P)&&typeof P.readable==="object"&&typeof P.writable==="object")}function M(P){return C(P)||N(P)||W(P)}function w(P,l){if(P==null)return!1;if(l===!0)return typeof P[$]==="function";if(l===!1)return typeof P[X]==="function";return typeof P[$]==="function"||typeof P[X]==="function"}function I(P){if(!g(P))return null;let{_writableState:l,_readableState:$0}=P,u=l||$0;return!!(P.destroyed||P[J]||u!==null&&u!==void 0&&u.destroyed)}function f(P){if(!Z(P))return null;if(P.writableEnded===!0)return!0;let l=P._writableState;if(l!==null&&l!==void 0&&l.errored)return!1;if(typeof(l===null||l===void 0?void 0:l.ended)!=="boolean")return null;return l.ended}function E(P,l){if(!Z(P))return null;if(P.writableFinished===!0)return!0;let $0=P._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||l===!1&&$0.ended===!0&&$0.length===0)}function d(P){if(!j(P))return null;if(P.readableEnded===!0)return!0;let l=P._readableState;if(!l||l.errored)return!1;if(typeof(l===null||l===void 0?void 0:l.ended)!=="boolean")return null;return l.ended}function R(P,l){if(!j(P))return null;let $0=P._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||l===!1&&$0.ended===!0&&$0.length===0)}function x(P){if(P&&P[U]!=null)return P[U];if(typeof(P===null||P===void 0?void 0:P.readable)!=="boolean")return null;if(I(P))return!1;return j(P)&&P.readable&&!R(P)}function D(P){if(P&&P[G]!=null)return P[G];if(typeof(P===null||P===void 0?void 0:P.writable)!=="boolean")return null;if(I(P))return!1;return Z(P)&&P.writable&&!f(P)}function L(P,l){if(!g(P))return null;if(I(P))return!0;if((l===null||l===void 0?void 0:l.readable)!==!1&&x(P))return!1;if((l===null||l===void 0?void 0:l.writable)!==!1&&D(P))return!1;return!0}function S(P){var l,$0;if(!g(P))return null;if(P.writableErrored)return P.writableErrored;return(l=($0=P._writableState)===null||$0===void 0?void 0:$0.errored)!==null&&l!==void 0?l:null}function y(P){var l,$0;if(!g(P))return null;if(P.readableErrored)return P.readableErrored;return(l=($0=P._readableState)===null||$0===void 0?void 0:$0.errored)!==null&&l!==void 0?l:null}function v(P){if(!g(P))return null;if(typeof P.closed==="boolean")return P.closed;let{_writableState:l,_readableState:$0}=P;if(typeof(l===null||l===void 0?void 0:l.closed)==="boolean"||typeof($0===null||$0===void 0?void 0:$0.closed)==="boolean")return(l===null||l===void 0?void 0:l.closed)||($0===null||$0===void 0?void 0:$0.closed);if(typeof P._closed==="boolean"&&a(P))return P._closed;return null}function a(P){return typeof P._closed==="boolean"&&typeof P._defaultKeepAlive==="boolean"&&typeof P._removedConnection==="boolean"&&typeof P._removedContLen==="boolean"}function Q0(P){return typeof P._sent100==="boolean"&&a(P)}function Y0(P){var l;return typeof P._consuming==="boolean"&&typeof P._dumped==="boolean"&&((l=P.req)===null||l===void 0?void 0:l.upgradeOrConnect)===void 0}function B0(P){if(!g(P))return null;let{_writableState:l,_readableState:$0}=P,u=l||$0;return!u&&Q0(P)||!!(u&&u.autoDestroy&&u.emitClose&&u.closed===!1)}function c(P){var l;return!!(P&&((l=P[V])!==null&&l!==void 0?l:P.readableDidRead||P.readableAborted))}function U0(P){var l,$0,u,K0,z0,j0,Z0,p,m,s;return!!(P&&((l=($0=(u=(K0=(z0=(j0=P[K])!==null&&j0!==void 0?j0:P.readableErrored)!==null&&z0!==void 0?z0:P.writableErrored)!==null&&K0!==void 0?K0:(Z0=P._readableState)===null||Z0===void 0?void 0:Z0.errorEmitted)!==null&&u!==void 0?u:(p=P._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&$0!==void 0?$0:(m=P._readableState)===null||m===void 0?void 0:m.errored)!==null&&l!==void 0?l:(s=P._writableState)===null||s===void 0?void 0:s.errored))}q.exports={isDestroyed:I,kIsDestroyed:J,isDisturbed:c,kIsDisturbed:V,isErrored:U0,kIsErrored:K,isReadable:x,kIsReadable:U,kIsClosedPromise:z,kControllerErrorFunction:H,kIsWritable:G,isClosed:v,isDuplexNodeStream:h,isFinished:L,isIterable:w,isReadableNodeStream:j,isReadableStream:C,isReadableEnded:d,isReadableFinished:R,isReadableErrored:y,isNodeStream:g,isWebStream:M,isWritable:D,isWritableNodeStream:Z,isWritableStream:N,isWritableEnded:f,isWritableFinished:E,isWritableErrored:S,isServerRequest:Y0,isServerResponse:Q0,willEmitClose:B0,isTransformStream:W}}),_2=w0((Q,q)=>{var $=K1(),{AbortError:X,codes:Y}=_0(),{ERR_INVALID_ARG_TYPE:J,ERR_STREAM_PREMATURE_CLOSE:K}=Y,{kEmptyObject:U,once:G}=m0(),{validateAbortSignal:V,validateFunction:z,validateObject:H,validateBoolean:j}=J6(),{Promise:Z,PromisePrototypeThen:h,SymbolDispose:g}=D0(),{isClosed:C,isReadable:N,isReadableNodeStream:W,isReadableStream:M,isReadableFinished:w,isReadableErrored:I,isWritable:f,isWritableNodeStream:E,isWritableStream:d,isWritableFinished:R,isWritableErrored:x,isNodeStream:D,willEmitClose:L,kIsClosedPromise:S}=x2(),y;function v(c){return c.setHeader&&typeof c.abort==="function"}var a=()=>{};function Q0(c,U0,P){var l,$0;if(arguments.length===2)P=U0,U0=U;else if(U0==null)U0=U;else H(U0,"options");if(z(P,"callback"),V(U0.signal,"options.signal"),P=G(P),M(c)||d(c))return Y0(c,U0,P);if(!D(c))throw new J("stream",["ReadableStream","WritableStream","Stream"],c);let u=(l=U0.readable)!==null&&l!==void 0?l:W(c),K0=($0=U0.writable)!==null&&$0!==void 0?$0:E(c),z0=c._writableState,j0=c._readableState,Z0=()=>{if(!c.writable)s()},p=L(c)&&W(c)===u&&E(c)===K0,m=R(c,!1),s=()=>{if(m=!0,c.destroyed)p=!1;if(p&&(!c.readable||u))return;if(!u||G0)P.call(c)},G0=w(c,!1),W0=()=>{if(G0=!0,c.destroyed)p=!1;if(p&&(!c.writable||K0))return;if(!K0||m)P.call(c)},A=(O)=>{P.call(c,O)},T=C(c),b=()=>{T=!0;let O=x(c)||I(c);if(O&&typeof O!=="boolean")return P.call(c,O);if(u&&!G0&&W(c,!0)){if(!w(c,!1))return P.call(c,new K)}if(K0&&!m){if(!R(c,!1))return P.call(c,new K)}P.call(c)},r=()=>{T=!0;let O=x(c)||I(c);if(O&&typeof O!=="boolean")return P.call(c,O);P.call(c)},e=()=>{c.req.on("finish",s)};if(v(c)){if(c.on("complete",s),!p)c.on("abort",b);if(c.req)e();else c.on("request",e)}else if(K0&&!z0)c.on("end",Z0),c.on("close",Z0);if(!p&&typeof c.aborted==="boolean")c.on("aborted",b);if(c.on("end",W0),c.on("finish",s),U0.error!==!1)c.on("error",A);if(c.on("close",b),T)$.nextTick(b);else if(z0!==null&&z0!==void 0&&z0.errorEmitted||j0!==null&&j0!==void 0&&j0.errorEmitted){if(!p)$.nextTick(r)}else if(!u&&(!p||N(c))&&(m||f(c)===!1))$.nextTick(r);else if(!K0&&(!p||f(c))&&(G0||N(c)===!1))$.nextTick(r);else if(j0&&c.req&&c.aborted)$.nextTick(r);let t=()=>{if(P=a,c.removeListener("aborted",b),c.removeListener("complete",s),c.removeListener("abort",b),c.removeListener("request",e),c.req)c.req.removeListener("finish",s);c.removeListener("end",Z0),c.removeListener("close",Z0),c.removeListener("finish",s),c.removeListener("end",W0),c.removeListener("error",A),c.removeListener("close",b)};if(U0.signal&&!T){let O=()=>{let i=P;t(),i.call(c,new X(void 0,{cause:U0.signal.reason}))};if(U0.signal.aborted)$.nextTick(O);else{y=y||m0().addAbortListener;let i=y(U0.signal,O),q0=P;P=G((...o)=>{i[g](),q0.apply(c,o)})}}return t}function Y0(c,U0,P){let l=!1,$0=a;if(U0.signal)if($0=()=>{l=!0,P.call(c,new X(void 0,{cause:U0.signal.reason}))},U0.signal.aborted)$.nextTick($0);else{y=y||m0().addAbortListener;let K0=y(U0.signal,$0),z0=P;P=G((...j0)=>{K0[g](),z0.apply(c,j0)})}let u=(...K0)=>{if(!l)$.nextTick(()=>P.apply(c,K0))};return h(c[S].promise,u,u),a}function B0(c,U0){var P;let l=!1;if(U0===null)U0=U;if((P=U0)!==null&&P!==void 0&&P.cleanup)j(U0.cleanup,"cleanup"),l=U0.cleanup;return new Z(($0,u)=>{let K0=Q0(c,U0,(z0)=>{if(l)K0();if(z0)u(z0);else $0()})})}q.exports=Q0,q.exports.finished=B0}),O1=w0((Q,q)=>{var $=K1(),{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:Y},AbortError:J}=_0(),{Symbol:K}=D0(),{kIsDestroyed:U,isDestroyed:G,isFinished:V,isServerRequest:z}=x2(),H=K("kDestroy"),j=K("kConstruct");function Z(L,S,y){if(L){if(L.stack,S&&!S.errored)S.errored=L;if(y&&!y.errored)y.errored=L}}function h(L,S){let y=this._readableState,v=this._writableState,a=v||y;if(v!==null&&v!==void 0&&v.destroyed||y!==null&&y!==void 0&&y.destroyed){if(typeof S==="function")S();return this}if(Z(L,v,y),v)v.destroyed=!0;if(y)y.destroyed=!0;if(!a.constructed)this.once(H,function(Q0){g(this,X(Q0,L),S)});else g(this,L,S);return this}function g(L,S,y){let v=!1;function a(Q0){if(v)return;v=!0;let{_readableState:Y0,_writableState:B0}=L;if(Z(Q0,B0,Y0),B0)B0.closed=!0;if(Y0)Y0.closed=!0;if(typeof y==="function")y(Q0);if(Q0)$.nextTick(C,L,Q0);else $.nextTick(N,L)}try{L._destroy(S||null,a)}catch(Q0){a(Q0)}}function C(L,S){W(L,S),N(L)}function N(L){let{_readableState:S,_writableState:y}=L;if(y)y.closeEmitted=!0;if(S)S.closeEmitted=!0;if(y!==null&&y!==void 0&&y.emitClose||S!==null&&S!==void 0&&S.emitClose)L.emit("close")}function W(L,S){let{_readableState:y,_writableState:v}=L;if(v!==null&&v!==void 0&&v.errorEmitted||y!==null&&y!==void 0&&y.errorEmitted)return;if(v)v.errorEmitted=!0;if(y)y.errorEmitted=!0;L.emit("error",S)}function M(){let L=this._readableState,S=this._writableState;if(L)L.constructed=!0,L.closed=!1,L.closeEmitted=!1,L.destroyed=!1,L.errored=null,L.errorEmitted=!1,L.reading=!1,L.ended=L.readable===!1,L.endEmitted=L.readable===!1;if(S)S.constructed=!0,S.destroyed=!1,S.closed=!1,S.closeEmitted=!1,S.errored=null,S.errorEmitted=!1,S.finalCalled=!1,S.prefinished=!1,S.ended=S.writable===!1,S.ending=S.writable===!1,S.finished=S.writable===!1}function w(L,S,y){let{_readableState:v,_writableState:a}=L;if(a!==null&&a!==void 0&&a.destroyed||v!==null&&v!==void 0&&v.destroyed)return this;if(v!==null&&v!==void 0&&v.autoDestroy||a!==null&&a!==void 0&&a.autoDestroy)L.destroy(S);else if(S){if(S.stack,a&&!a.errored)a.errored=S;if(v&&!v.errored)v.errored=S;if(y)$.nextTick(W,L,S);else W(L,S)}}function I(L,S){if(typeof L._construct!=="function")return;let{_readableState:y,_writableState:v}=L;if(y)y.constructed=!1;if(v)v.constructed=!1;if(L.once(j,S),L.listenerCount(j)>1)return;$.nextTick(f,L)}function f(L){let S=!1;function y(v){if(S){w(L,v!==null&&v!==void 0?v:new Y);return}S=!0;let{_readableState:a,_writableState:Q0}=L,Y0=Q0||a;if(a)a.constructed=!0;if(Q0)Q0.constructed=!0;if(Y0.destroyed)L.emit(H,v);else if(v)w(L,v,!0);else $.nextTick(E,L)}try{L._construct((v)=>{$.nextTick(y,v)})}catch(v){$.nextTick(y,v)}}function E(L){L.emit(j)}function d(L){return(L===null||L===void 0?void 0:L.setHeader)&&typeof L.abort==="function"}function R(L){L.emit("close")}function x(L,S){L.emit("error",S),$.nextTick(R,L)}function D(L,S){if(!L||G(L))return;if(!S&&!V(L))S=new J;if(z(L))L.socket=null,L.destroy(S);else if(d(L))L.abort();else if(d(L.req))L.req.abort();else if(typeof L.destroy==="function")L.destroy(S);else if(typeof L.close==="function")L.close();else if(S)$.nextTick(x,L,S);else $.nextTick(R,L);if(!L.destroyed)L[U]=!0}q.exports={construct:I,destroyer:D,destroy:h,undestroy:M,errorOrDestroy:w}}),C5=w0((Q,q)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:X}=D0(),{EventEmitter:Y}=(X6(),a0($6));function J(U){Y.call(this,U)}X(J.prototype,Y.prototype),X(J,Y),J.prototype.pipe=function(U,G){let V=this;function z(N){if(U.writable&&U.write(N)===!1&&V.pause)V.pause()}V.on("data",z);function H(){if(V.readable&&V.resume)V.resume()}if(U.on("drain",H),!U._isStdio&&(!G||G.end!==!1))V.on("end",Z),V.on("close",h);let j=!1;function Z(){if(j)return;j=!0,U.end()}function h(){if(j)return;if(j=!0,typeof U.destroy==="function")U.destroy()}function g(N){if(C(),Y.listenerCount(this,"error")===0)this.emit("error",N)}K(V,"error",g),K(U,"error",g);function C(){V.removeListener("data",z),U.removeListener("drain",H),V.removeListener("end",Z),V.removeListener("close",h),V.removeListener("error",g),U.removeListener("error",g),V.removeListener("end",C),V.removeListener("close",C),U.removeListener("close",C)}return V.on("end",C),V.on("close",C),U.on("close",C),U.emit("pipe",V),U};function K(U,G,V){if(typeof U.prependListener==="function")return U.prependListener(G,V);if(!U._events||!U._events[G])U.on(G,V);else if($(U._events[G]))U._events[G].unshift(V);else U._events[G]=[V,U._events[G]]}q.exports={Stream:J,prependListener:K}}),p6=w0((Q,q)=>{var{SymbolDispose:$}=D0(),{AbortError:X,codes:Y}=_0(),{isNodeStream:J,isWebStream:K,kControllerErrorFunction:U}=x2(),G=_2(),{ERR_INVALID_ARG_TYPE:V}=Y,z,H=(j,Z)=>{if(typeof j!=="object"||!("aborted"in j))throw new V(Z,"AbortSignal",j)};q.exports.addAbortSignal=function(j,Z){if(H(j,"signal"),!J(Z)&&!K(Z))throw new V("stream",["ReadableStream","WritableStream","Stream"],Z);return q.exports.addAbortSignalNoValidate(j,Z)},q.exports.addAbortSignalNoValidate=function(j,Z){if(typeof j!=="object"||!("aborted"in j))return Z;let h=J(Z)?()=>{Z.destroy(new X(void 0,{cause:j.reason}))}:()=>{Z[U](new X(void 0,{cause:j.reason}))};if(j.aborted)h();else{z=z||m0().addAbortListener;let g=z(j,h);G(Z,g[$])}return Z}}),MV=w0((Q,q)=>{var{StringPrototypeSlice:$,SymbolIterator:X,TypedArrayPrototypeSet:Y,Uint8Array:J}=D0(),{Buffer:K}=(O2(),a0(A2)),{inspect:U}=m0();q.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(G){let V={data:G,next:null};if(this.length>0)this.tail.next=V;else this.head=V;this.tail=V,++this.length}unshift(G){let V={data:G,next:this.head};if(this.length===0)this.tail=V;this.head=V,++this.length}shift(){if(this.length===0)return;let G=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,G}clear(){this.head=this.tail=null,this.length=0}join(G){if(this.length===0)return"";let V=this.head,z=""+V.data;while((V=V.next)!==null)z+=G+V.data;return z}concat(G){if(this.length===0)return K.alloc(0);let V=K.allocUnsafe(G>>>0),z=this.head,H=0;while(z)Y(V,z.data,H),H+=z.data.length,z=z.next;return V}consume(G,V){let z=this.head.data;if(G<z.length){let H=z.slice(0,G);return this.head.data=z.slice(G),H}if(G===z.length)return this.shift();return V?this._getString(G):this._getBuffer(G)}first(){return this.head.data}*[X](){for(let G=this.head;G;G=G.next)yield G.data}_getString(G){let V="",z=this.head,H=0;do{let j=z.data;if(G>j.length)V+=j,G-=j.length;else{if(G===j.length)if(V+=j,++H,z.next)this.head=z.next;else this.head=this.tail=null;else V+=$(j,0,G),this.head=z,z.data=$(j,G);break}++H}while((z=z.next)!==null);return this.length-=H,V}_getBuffer(G){let V=K.allocUnsafe(G),z=G,H=this.head,j=0;do{let Z=H.data;if(G>Z.length)Y(V,Z,z-G),G-=Z.length;else{if(G===Z.length)if(Y(V,Z,z-G),++j,H.next)this.head=H.next;else this.head=this.tail=null;else Y(V,new J(Z.buffer,Z.byteOffset,G),z-G),this.head=H,H.data=Z.slice(G);break}++j}while((H=H.next)!==null);return this.length-=j,V}[Symbol.for("nodejs.util.inspect.custom")](G,V){return U(this,{...V,depth:0,customInspect:!1})}}}),m6=w0((Q,q)=>{var{MathFloor:$,NumberIsInteger:X}=D0(),{validateInteger:Y}=J6(),{ERR_INVALID_ARG_VALUE:J}=_0().codes,K=16384,U=16;function G(j,Z,h){return j.highWaterMark!=null?j.highWaterMark:Z?j[h]:null}function V(j){return j?U:K}function z(j,Z){if(Y(Z,"value",0),j)U=Z;else K=Z}function H(j,Z,h,g){let C=G(Z,g,h);if(C!=null){if(!X(C)||C<0){let N=g?`options.${h}`:"options.highWaterMark";throw new J(N,C)}return $(C)}return V(j.objectMode)}q.exports={getHighWaterMark:H,getDefaultHighWaterMark:V,setDefaultHighWaterMark:z}}),wV=w0((Q,q)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(O2(),a0(A2)),X=$.Buffer;function Y(K,U){for(var G in K)U[G]=K[G]}if(X.from&&X.alloc&&X.allocUnsafe&&X.allocUnsafeSlow)q.exports=$;else Y($,Q),Q.Buffer=J;function J(K,U,G){return X(K,U,G)}J.prototype=Object.create(X.prototype),Y(X,J),J.from=function(K,U,G){if(typeof K==="number")throw TypeError("Argument must not be a number");return X(K,U,G)},J.alloc=function(K,U,G){if(typeof K!=="number")throw TypeError("Argument must be a number");var V=X(K);if(U!==void 0)if(typeof G==="string")V.fill(U,G);else V.fill(U);else V.fill(0);return V},J.allocUnsafe=function(K){if(typeof K!=="number")throw TypeError("Argument must be a number");return X(K)},J.allocUnsafeSlow=function(K){if(typeof K!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(K)}}),PV=w0((Q)=>{var q=wV().Buffer,$=q.isEncoding||function(W){switch(W=""+W,W&&W.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function X(W){if(!W)return"utf8";var M;while(!0)switch(W){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return W;default:if(M)return;W=(""+W).toLowerCase(),M=!0}}function Y(W){var M=X(W);if(typeof M!=="string"&&(q.isEncoding===$||!$(W)))throw Error("Unknown encoding: "+W);return M||W}Q.StringDecoder=J;function J(W){this.encoding=Y(W);var M;switch(this.encoding){case"utf16le":this.text=j,this.end=Z,M=4;break;case"utf8":this.fillLast=V,M=4;break;case"base64":this.text=h,this.end=g,M=3;break;default:this.write=C,this.end=N;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=q.allocUnsafe(M)}J.prototype.write=function(W){if(W.length===0)return"";var M,w;if(this.lastNeed){if(M=this.fillLast(W),M===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;if(w<W.length)return M?M+this.text(W,w):this.text(W,w);return M||""},J.prototype.end=H,J.prototype.text=z,J.prototype.fillLast=function(W){if(this.lastNeed<=W.length)return W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,this.lastTotal-this.lastNeed,0,W.length),this.lastNeed-=W.length};function K(W){if(W<=127)return 0;else if(W>>5===6)return 2;else if(W>>4===14)return 3;else if(W>>3===30)return 4;return W>>6===2?-1:-2}function U(W,M,w){var I=M.length-1;if(I<w)return 0;var f=K(M[I]);if(f>=0){if(f>0)W.lastNeed=f-1;return f}if(--I<w||f===-2)return 0;if(f=K(M[I]),f>=0){if(f>0)W.lastNeed=f-2;return f}if(--I<w||f===-2)return 0;if(f=K(M[I]),f>=0){if(f>0)if(f===2)f=0;else W.lastNeed=f-3;return f}return 0}function G(W,M,w){if((M[0]&192)!==128)return W.lastNeed=0,"�";if(W.lastNeed>1&&M.length>1){if((M[1]&192)!==128)return W.lastNeed=1,"�";if(W.lastNeed>2&&M.length>2){if((M[2]&192)!==128)return W.lastNeed=2,"�"}}}function V(W){var M=this.lastTotal-this.lastNeed,w=G(this,W,M);if(w!==void 0)return w;if(this.lastNeed<=W.length)return W.copy(this.lastChar,M,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);W.copy(this.lastChar,M,0,W.length),this.lastNeed-=W.length}function z(W,M){var w=U(this,W,M);if(!this.lastNeed)return W.toString("utf8",M);this.lastTotal=w;var I=W.length-(w-this.lastNeed);return W.copy(this.lastChar,0,I),W.toString("utf8",M,I)}function H(W){var M=W&&W.length?this.write(W):"";if(this.lastNeed)return M+"�";return M}function j(W,M){if((W.length-M)%2===0){var w=W.toString("utf16le",M);if(w){var I=w.charCodeAt(w.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=W[W.length-1],W.toString("utf16le",M,W.length-1)}function Z(W){var M=W&&W.length?this.write(W):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return M+this.lastChar.toString("utf16le",0,w)}return M}function h(W,M){var w=(W.length-M)%3;if(w===0)return W.toString("base64",M);if(this.lastNeed=3-w,this.lastTotal=3,w===1)this.lastChar[0]=W[W.length-1];else this.lastChar[0]=W[W.length-2],this.lastChar[1]=W[W.length-1];return W.toString("base64",M,W.length-w)}function g(W){var M=W&&W.length?this.write(W):"";if(this.lastNeed)return M+this.lastChar.toString("base64",0,3-this.lastNeed);return M}function C(W){return W.toString(this.encoding)}function N(W){return W&&W.length?this.write(W):""}}),l7=w0((Q,q)=>{var $=K1(),{PromisePrototypeThen:X,SymbolAsyncIterator:Y,SymbolIterator:J}=D0(),{Buffer:K}=(O2(),a0(A2)),{ERR_INVALID_ARG_TYPE:U,ERR_STREAM_NULL_VALUES:G}=_0().codes;function V(z,H,j){let Z;if(typeof H==="string"||H instanceof K)return new z({objectMode:!0,...j,read(){this.push(H),this.push(null)}});let h;if(H&&H[Y])h=!0,Z=H[Y]();else if(H&&H[J])h=!1,Z=H[J]();else throw new U("iterable",["Iterable"],H);let g=new z({objectMode:!0,highWaterMark:1,...j}),C=!1;g._read=function(){if(!C)C=!0,W()},g._destroy=function(M,w){X(N(M),()=>$.nextTick(w,M),(I)=>$.nextTick(w,I||M))};async function N(M){let w=M!==void 0&&M!==null,I=typeof Z.throw==="function";if(w&&I){let{value:f,done:E}=await Z.throw(M);if(await f,E)return}if(typeof Z.return==="function"){let{value:f}=await Z.return();await f}}async function W(){for(;;){try{let{value:M,done:w}=h?await Z.next():Z.next();if(w)g.push(null);else{let I=M&&typeof M.then==="function"?await M:M;if(I===null)throw C=!1,new G;else if(g.push(I))continue;else C=!1}}catch(M){g.destroy(M)}break}}return g}q.exports=V}),d6=w0((Q,q)=>{var $=K1(),{ArrayPrototypeIndexOf:X,NumberIsInteger:Y,NumberIsNaN:J,NumberParseInt:K,ObjectDefineProperties:U,ObjectKeys:G,ObjectSetPrototypeOf:V,Promise:z,SafeSet:H,SymbolAsyncDispose:j,SymbolAsyncIterator:Z,Symbol:h}=D0();q.exports=o,o.ReadableState=q0;var{EventEmitter:g}=(X6(),a0($6)),{Stream:C,prependListener:N}=C5(),{Buffer:W}=(O2(),a0(A2)),{addAbortSignal:M}=p6(),w=_2(),I=m0().debuglog("stream",(B)=>{I=B}),f=MV(),E=O1(),{getHighWaterMark:d,getDefaultHighWaterMark:R}=m6(),{aggregateTwoErrors:x,codes:{ERR_INVALID_ARG_TYPE:D,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:S,ERR_STREAM_PUSH_AFTER_EOF:y,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:v},AbortError:a}=_0(),{validateObject:Q0}=J6(),Y0=h("kPaused"),{StringDecoder:B0}=PV(),c=l7();V(o.prototype,C.prototype),V(o,C);var U0=()=>{},{errorOrDestroy:P}=E,l=1,$0=2,u=4,K0=8,z0=16,j0=32,Z0=64,p=128,m=256,s=512,G0=1024,W0=2048,A=4096,T=8192,b=16384,r=32768,e=65536,t=131072,O=262144;function i(B){return{enumerable:!1,get(){return(this.state&B)!==0},set(F){if(F)this.state|=B;else this.state&=~B}}}U(q0.prototype,{objectMode:i(l),ended:i($0),endEmitted:i(u),reading:i(K0),constructed:i(z0),sync:i(j0),needReadable:i(Z0),emittedReadable:i(p),readableListening:i(m),resumeScheduled:i(s),errorEmitted:i(G0),emitClose:i(W0),autoDestroy:i(A),destroyed:i(T),closed:i(b),closeEmitted:i(r),multiAwaitDrain:i(e),readingMore:i(t),dataEmitted:i(O)});function q0(B,F,n){if(typeof n!=="boolean")n=F instanceof R2();if(this.state=W0|A|z0|j0,B&&B.objectMode)this.state|=l;if(n&&B&&B.readableObjectMode)this.state|=l;if(this.highWaterMark=B?d(this,B,"readableHighWaterMark",n):R(!1),this.buffer=new f,this.length=0,this.pipes=[],this.flowing=null,this[Y0]=null,B&&B.emitClose===!1)this.state&=~W0;if(B&&B.autoDestroy===!1)this.state&=~A;if(this.errored=null,this.defaultEncoding=B&&B.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,B&&B.encoding)this.decoder=new B0(B.encoding),this.encoding=B.encoding}function o(B){if(!(this instanceof o))return new o(B);let F=this instanceof R2();if(this._readableState=new q0(B,this,F),B){if(typeof B.read==="function")this._read=B.read;if(typeof B.destroy==="function")this._destroy=B.destroy;if(typeof B.construct==="function")this._construct=B.construct;if(B.signal&&!F)M(B.signal,this)}C.call(this,B),E.construct(this,()=>{if(this._readableState.needReadable)N1(this,this._readableState)})}o.prototype.destroy=E.destroy,o.prototype._undestroy=E.undestroy,o.prototype._destroy=function(B,F){F(B)},o.prototype[g.captureRejectionSymbol]=function(B){this.destroy(B)},o.prototype[j]=function(){let B;if(!this.destroyed)B=this.readableEnded?null:new a,this.destroy(B);return new z((F,n)=>w(this,(X0)=>X0&&X0!==B?n(X0):F(null)))},o.prototype.push=function(B,F){return V0(this,B,F,!1)},o.prototype.unshift=function(B,F){return V0(this,B,F,!0)};function V0(B,F,n,X0){I("readableAddChunk",F);let J0=B._readableState,y0;if((J0.state&l)===0){if(typeof F==="string"){if(n=n||J0.defaultEncoding,J0.encoding!==n)if(X0&&J0.encoding)F=W.from(F,n).toString(J0.encoding);else F=W.from(F,n),n=""}else if(F instanceof W)n="";else if(C._isUint8Array(F))F=C._uint8ArrayToBuffer(F),n="";else if(F!=null)y0=new D("chunk",["string","Buffer","Uint8Array"],F)}if(y0)P(B,y0);else if(F===null)J0.state&=~K0,g0(B,J0);else if((J0.state&l)!==0||F&&F.length>0)if(X0)if((J0.state&u)!==0)P(B,new v);else if(J0.destroyed||J0.errored)return!1;else P0(B,J0,F,!0);else if(J0.ended)P(B,new y);else if(J0.destroyed||J0.errored)return!1;else if(J0.state&=~K0,J0.decoder&&!n)if(F=J0.decoder.write(F),J0.objectMode||F.length!==0)P0(B,J0,F,!1);else N1(B,J0);else P0(B,J0,F,!1);else if(!X0)J0.state&=~K0,N1(B,J0);return!J0.ended&&(J0.length<J0.highWaterMark||J0.length===0)}function P0(B,F,n,X0){if(F.flowing&&F.length===0&&!F.sync&&B.listenerCount("data")>0){if((F.state&e)!==0)F.awaitDrainWriters.clear();else F.awaitDrainWriters=null;F.dataEmitted=!0,B.emit("data",n)}else{if(F.length+=F.objectMode?1:n.length,X0)F.buffer.unshift(n);else F.buffer.push(n);if((F.state&Z0)!==0)c0(B)}N1(B,F)}o.prototype.isPaused=function(){let B=this._readableState;return B[Y0]===!0||B.flowing===!1},o.prototype.setEncoding=function(B){let F=new B0(B);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;let n=this._readableState.buffer,X0="";for(let J0 of n)X0+=F.write(J0);if(n.clear(),X0!=="")n.push(X0);return this._readableState.length=X0.length,this};var o0=1073741824;function n0(B){if(B>o0)throw new S("size","<= 1GiB",B);else B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++;return B}function e2(B,F){if(B<=0||F.length===0&&F.ended)return 0;if((F.state&l)!==0)return 1;if(J(B)){if(F.flowing&&F.length)return F.buffer.first().length;return F.length}if(B<=F.length)return B;return F.ended?F.length:0}o.prototype.read=function(B){if(I("read",B),B===void 0)B=NaN;else if(!Y(B))B=K(B,10);let F=this._readableState,n=B;if(B>F.highWaterMark)F.highWaterMark=n0(B);if(B!==0)F.state&=~p;if(B===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended)){if(I("read: emitReadable",F.length,F.ended),F.length===0&&F.ended)X5(this);else c0(this);return null}if(B=e2(B,F),B===0&&F.ended){if(F.length===0)X5(this);return null}let X0=(F.state&Z0)!==0;if(I("need readable",X0),F.length===0||F.length-B<F.highWaterMark)X0=!0,I("length less than watermark",X0);if(F.ended||F.reading||F.destroyed||F.errored||!F.constructed)X0=!1,I("reading, ended or constructing",X0);else if(X0){if(I("do read"),F.state|=K0|j0,F.length===0)F.state|=Z0;try{this._read(F.highWaterMark)}catch(y0){P(this,y0)}if(F.state&=~j0,!F.reading)B=e2(n,F)}let J0;if(B>0)J0=sQ(B,F);else J0=null;if(J0===null)F.needReadable=F.length<=F.highWaterMark,B=0;else if(F.length-=B,F.multiAwaitDrain)F.awaitDrainWriters.clear();else F.awaitDrainWriters=null;if(F.length===0){if(!F.ended)F.needReadable=!0;if(n!==B&&F.ended)X5(this)}if(J0!==null&&!F.errorEmitted&&!F.closeEmitted)F.dataEmitted=!0,this.emit("data",J0);return J0};function g0(B,F){if(I("onEofChunk"),F.ended)return;if(F.decoder){let n=F.decoder.end();if(n&&n.length)F.buffer.push(n),F.length+=F.objectMode?1:n.length}if(F.ended=!0,F.sync)c0(B);else F.needReadable=!1,F.emittedReadable=!0,I1(B)}function c0(B){let F=B._readableState;if(I("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,!F.emittedReadable)I("emitReadable",F.flowing),F.emittedReadable=!0,$.nextTick(I1,B)}function I1(B){let F=B._readableState;if(I("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&!F.errored&&(F.length||F.ended))B.emit("readable"),F.emittedReadable=!1;F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,rQ(B)}function N1(B,F){if(!F.readingMore&&F.constructed)F.readingMore=!0,$.nextTick(W2,B,F)}function W2(B,F){while(!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0)){let n=F.length;if(I("maybeReadMore read 0"),B.read(0),n===F.length)break}F.readingMore=!1}o.prototype._read=function(B){throw new L("_read()")},o.prototype.pipe=function(B,F){let n=this,X0=this._readableState;if(X0.pipes.length===1){if(!X0.multiAwaitDrain)X0.multiAwaitDrain=!0,X0.awaitDrainWriters=new H(X0.awaitDrainWriters?[X0.awaitDrainWriters]:[])}X0.pipes.push(B),I("pipe count=%d opts=%j",X0.pipes.length,F);let J0=(!F||F.end!==!1)&&B!==$.stdout&&B!==$.stderr?r0:s1;if(X0.endEmitted)$.nextTick(J0);else n.once("end",J0);B.on("unpipe",y0);function y0(q1,N2){if(I("onunpipe"),q1===n){if(N2&&N2.hasUnpiped===!1)N2.hasUnpiped=!0,ZU()}}function r0(){I("onend"),B.end()}let Q1,eQ=!1;function ZU(){if(I("cleanup"),B.removeListener("close",K5),B.removeListener("finish",U5),Q1)B.removeListener("drain",Q1);if(B.removeListener("error",J5),B.removeListener("unpipe",y0),n.removeListener("end",r0),n.removeListener("end",s1),n.removeListener("data",q7),eQ=!0,Q1&&X0.awaitDrainWriters&&(!B._writableState||B._writableState.needDrain))Q1()}function Q7(){if(!eQ){if(X0.pipes.length===1&&X0.pipes[0]===B)I("false write response, pause",0),X0.awaitDrainWriters=B,X0.multiAwaitDrain=!1;else if(X0.pipes.length>1&&X0.pipes.includes(B))I("false write response, pause",X0.awaitDrainWriters.size),X0.awaitDrainWriters.add(B);n.pause()}if(!Q1)Q1=KU(n,B),B.on("drain",Q1)}n.on("data",q7);function q7(q1){I("ondata");let N2=B.write(q1);if(I("dest.write",N2),N2===!1)Q7()}function J5(q1){if(I("onerror",q1),s1(),B.removeListener("error",J5),B.listenerCount("error")===0){let N2=B._writableState||B._readableState;if(N2&&!N2.errorEmitted)P(B,q1);else B.emit("error",q1)}}N(B,"error",J5);function K5(){B.removeListener("finish",U5),s1()}B.once("close",K5);function U5(){I("onfinish"),B.removeListener("close",K5),s1()}B.once("finish",U5);function s1(){I("unpipe"),n.unpipe(B)}if(B.emit("pipe",n),B.writableNeedDrain===!0)Q7();else if(!X0.flowing)I("pipe resume"),n.resume();return B};function KU(B,F){return function(){let n=B._readableState;if(n.awaitDrainWriters===F)I("pipeOnDrain",1),n.awaitDrainWriters=null;else if(n.multiAwaitDrain)I("pipeOnDrain",n.awaitDrainWriters.size),n.awaitDrainWriters.delete(F);if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&B.listenerCount("data"))B.resume()}}o.prototype.unpipe=function(B){let F=this._readableState,n={hasUnpiped:!1};if(F.pipes.length===0)return this;if(!B){let J0=F.pipes;F.pipes=[],this.pause();for(let y0=0;y0<J0.length;y0++)J0[y0].emit("unpipe",this,{hasUnpiped:!1});return this}let X0=X(F.pipes,B);if(X0===-1)return this;if(F.pipes.splice(X0,1),F.pipes.length===0)this.pause();return B.emit("unpipe",this,n),this},o.prototype.on=function(B,F){let n=C.prototype.on.call(this,B,F),X0=this._readableState;if(B==="data"){if(X0.readableListening=this.listenerCount("readable")>0,X0.flowing!==!1)this.resume()}else if(B==="readable"){if(!X0.endEmitted&&!X0.readableListening){if(X0.readableListening=X0.needReadable=!0,X0.flowing=!1,X0.emittedReadable=!1,I("on readable",X0.length,X0.reading),X0.length)c0(this);else if(!X0.reading)$.nextTick(UU,this)}}return n},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(B,F){let n=C.prototype.removeListener.call(this,B,F);if(B==="readable")$.nextTick(nQ,this);return n},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(B){let F=C.prototype.removeAllListeners.apply(this,arguments);if(B==="readable"||B===void 0)$.nextTick(nQ,this);return F};function nQ(B){let F=B._readableState;if(F.readableListening=B.listenerCount("readable")>0,F.resumeScheduled&&F[Y0]===!1)F.flowing=!0;else if(B.listenerCount("data")>0)B.resume();else if(!F.readableListening)F.flowing=null}function UU(B){I("readable nexttick read 0"),B.read(0)}o.prototype.resume=function(){let B=this._readableState;if(!B.flowing)I("resume"),B.flowing=!B.readableListening,VU(this,B);return B[Y0]=!1,this};function VU(B,F){if(!F.resumeScheduled)F.resumeScheduled=!0,$.nextTick(zU,B,F)}function zU(B,F){if(I("resume",F.reading),!F.reading)B.read(0);if(F.resumeScheduled=!1,B.emit("resume"),rQ(B),F.flowing&&!F.reading)B.read(0)}o.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[Y0]=!0,this};function rQ(B){let F=B._readableState;I("flow",F.flowing);while(F.flowing&&B.read()!==null);}o.prototype.wrap=function(B){let F=!1;B.on("data",(X0)=>{if(!this.push(X0)&&B.pause)F=!0,B.pause()}),B.on("end",()=>{this.push(null)}),B.on("error",(X0)=>{P(this,X0)}),B.on("close",()=>{this.destroy()}),B.on("destroy",()=>{this.destroy()}),this._read=()=>{if(F&&B.resume)F=!1,B.resume()};let n=G(B);for(let X0=1;X0<n.length;X0++){let J0=n[X0];if(this[J0]===void 0&&typeof B[J0]==="function")this[J0]=B[J0].bind(B)}return this},o.prototype[Z]=function(){return aQ(this)},o.prototype.iterator=function(B){if(B!==void 0)Q0(B,"options");return aQ(this,B)};function aQ(B,F){if(typeof B.read!=="function")B=o.wrap(B,{objectMode:!0});let n=GU(B,F);return n.stream=B,n}async function*GU(B,F){let n=U0;function X0(r0){if(this===B)n(),n=U0;else n=r0}B.on("readable",X0);let J0,y0=w(B,{writable:!1},(r0)=>{J0=r0?x(J0,r0):null,n(),n=U0});try{while(!0){let r0=B.destroyed?null:B.read();if(r0!==null)yield r0;else if(J0)throw J0;else if(J0===null)return;else await new z(X0)}}catch(r0){throw J0=x(J0,r0),J0}finally{if((J0||(F===null||F===void 0?void 0:F.destroyOnReturn)!==!1)&&(J0===void 0||B._readableState.autoDestroy))E.destroyer(B,null);else B.off("readable",X0),y0()}}U(o.prototype,{readable:{__proto__:null,get(){let B=this._readableState;return!!B&&B.readable!==!1&&!B.destroyed&&!B.errorEmitted&&!B.endEmitted},set(B){if(this._readableState)this._readableState.readable=!!B}},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(B){if(this._readableState)this._readableState.flowing=B}},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(B){if(!this._readableState)return;this._readableState.destroyed=B}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),U(q0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[Y0]!==!1},set(B){this[Y0]=!!B}}}),o._fromList=sQ;function sQ(B,F){if(F.length===0)return null;let n;if(F.objectMode)n=F.buffer.shift();else if(!B||B>=F.length){if(F.decoder)n=F.buffer.join("");else if(F.buffer.length===1)n=F.buffer.first();else n=F.buffer.concat(F.length);F.buffer.clear()}else n=F.buffer.consume(B,F.decoder);return n}function X5(B){let F=B._readableState;if(I("endReadable",F.endEmitted),!F.endEmitted)F.ended=!0,$.nextTick(WU,F,B)}function WU(B,F){if(I("endReadableNT",B.endEmitted,B.length),!B.errored&&!B.closeEmitted&&!B.endEmitted&&B.length===0){if(B.endEmitted=!0,F.emit("end"),F.writable&&F.allowHalfOpen===!1)$.nextTick(BU,F);else if(B.autoDestroy){let n=F._writableState;if(!n||n.autoDestroy&&(n.finished||n.writable===!1))F.destroy()}}}function BU(B){if(B.writable&&!B.writableEnded&&!B.destroyed)B.end()}o.from=function(B,F){return c(o,B,F)};var Y5;function tQ(){if(Y5===void 0)Y5={};return Y5}o.fromWeb=function(B,F){return tQ().newStreamReadableFromReadableStream(B,F)},o.toWeb=function(B,F){return tQ().newReadableStreamFromStreamReadable(B,F)},o.wrap=function(B,F){var n,X0;return new o({objectMode:(n=(X0=B.readableObjectMode)!==null&&X0!==void 0?X0:B.objectMode)!==null&&n!==void 0?n:!0,...F,destroy(J0,y0){E.destroyer(B,J0),y0(J0)}}).wrap(B)}}),I5=w0((Q,q)=>{var $=K1(),{ArrayPrototypeSlice:X,Error:Y,FunctionPrototypeSymbolHasInstance:J,ObjectDefineProperty:K,ObjectDefineProperties:U,ObjectSetPrototypeOf:G,StringPrototypeToLowerCase:V,Symbol:z,SymbolHasInstance:H}=D0();q.exports=Q0,Q0.WritableState=v;var{EventEmitter:j}=(X6(),a0($6)),Z=C5().Stream,{Buffer:h}=(O2(),a0(A2)),g=O1(),{addAbortSignal:C}=p6(),{getHighWaterMark:N,getDefaultHighWaterMark:W}=m6(),{ERR_INVALID_ARG_TYPE:M,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:I,ERR_STREAM_CANNOT_PIPE:f,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:d,ERR_STREAM_NULL_VALUES:R,ERR_STREAM_WRITE_AFTER_END:x,ERR_UNKNOWN_ENCODING:D}=_0().codes,{errorOrDestroy:L}=g;G(Q0.prototype,Z.prototype),G(Q0,Z);function S(){}var y=z("kOnFinished");function v(A,T,b){if(typeof b!=="boolean")b=T instanceof R2();if(this.objectMode=!!(A&&A.objectMode),b)this.objectMode=this.objectMode||!!(A&&A.writableObjectMode);this.highWaterMark=A?N(this,A,"writableHighWaterMark",b):W(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let r=!!(A&&A.decodeStrings===!1);this.decodeStrings=!r,this.defaultEncoding=A&&A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=P.bind(void 0,T),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,a(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!A||A.emitClose!==!1,this.autoDestroy=!A||A.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[y]=[]}function a(A){A.buffered=[],A.bufferedIndex=0,A.allBuffers=!0,A.allNoop=!0}v.prototype.getBuffer=function(){return X(this.buffered,this.bufferedIndex)},K(v.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Q0(A){let T=this instanceof R2();if(!T&&!J(Q0,this))return new Q0(A);if(this._writableState=new v(A,this,T),A){if(typeof A.write==="function")this._write=A.write;if(typeof A.writev==="function")this._writev=A.writev;if(typeof A.destroy==="function")this._destroy=A.destroy;if(typeof A.final==="function")this._final=A.final;if(typeof A.construct==="function")this._construct=A.construct;if(A.signal)C(A.signal,this)}Z.call(this,A),g.construct(this,()=>{let b=this._writableState;if(!b.writing)K0(this,b);p(this,b)})}K(Q0,H,{__proto__:null,value:function(A){if(J(this,A))return!0;if(this!==Q0)return!1;return A&&A._writableState instanceof v}}),Q0.prototype.pipe=function(){L(this,new f)};function Y0(A,T,b,r){let e=A._writableState;if(typeof b==="function")r=b,b=e.defaultEncoding;else{if(!b)b=e.defaultEncoding;else if(b!=="buffer"&&!h.isEncoding(b))throw new D(b);if(typeof r!=="function")r=S}if(T===null)throw new R;else if(!e.objectMode)if(typeof T==="string"){if(e.decodeStrings!==!1)T=h.from(T,b),b="buffer"}else if(T instanceof h)b="buffer";else if(Z._isUint8Array(T))T=Z._uint8ArrayToBuffer(T),b="buffer";else throw new M("chunk",["string","Buffer","Uint8Array"],T);let t;if(e.ending)t=new x;else if(e.destroyed)t=new E("write");if(t)return $.nextTick(r,t),L(A,t,!0),t;return e.pendingcb++,B0(A,e,T,b,r)}Q0.prototype.write=function(A,T,b){return Y0(this,A,T,b)===!0},Q0.prototype.cork=function(){this._writableState.corked++},Q0.prototype.uncork=function(){let A=this._writableState;if(A.corked){if(A.corked--,!A.writing)K0(this,A)}},Q0.prototype.setDefaultEncoding=function(A){if(typeof A==="string")A=V(A);if(!h.isEncoding(A))throw new D(A);return this._writableState.defaultEncoding=A,this};function B0(A,T,b,r,e){let t=T.objectMode?1:b.length;T.length+=t;let O=T.length<T.highWaterMark;if(!O)T.needDrain=!0;if(T.writing||T.corked||T.errored||!T.constructed){if(T.buffered.push({chunk:b,encoding:r,callback:e}),T.allBuffers&&r!=="buffer")T.allBuffers=!1;if(T.allNoop&&e!==S)T.allNoop=!1}else T.writelen=t,T.writecb=e,T.writing=!0,T.sync=!0,A._write(b,r,T.onwrite),T.sync=!1;return O&&!T.errored&&!T.destroyed}function c(A,T,b,r,e,t,O){if(T.writelen=r,T.writecb=O,T.writing=!0,T.sync=!0,T.destroyed)T.onwrite(new E("write"));else if(b)A._writev(e,T.onwrite);else A._write(e,t,T.onwrite);T.sync=!1}function U0(A,T,b,r){--T.pendingcb,r(b),u(T),L(A,b)}function P(A,T){let b=A._writableState,r=b.sync,e=b.writecb;if(typeof e!=="function"){L(A,new I);return}if(b.writing=!1,b.writecb=null,b.length-=b.writelen,b.writelen=0,T){if(T.stack,!b.errored)b.errored=T;if(A._readableState&&!A._readableState.errored)A._readableState.errored=T;if(r)$.nextTick(U0,A,b,T,e);else U0(A,b,T,e)}else{if(b.buffered.length>b.bufferedIndex)K0(A,b);if(r)if(b.afterWriteTickInfo!==null&&b.afterWriteTickInfo.cb===e)b.afterWriteTickInfo.count++;else b.afterWriteTickInfo={count:1,cb:e,stream:A,state:b},$.nextTick(l,b.afterWriteTickInfo);else $0(A,b,1,e)}}function l({stream:A,state:T,count:b,cb:r}){return T.afterWriteTickInfo=null,$0(A,T,b,r)}function $0(A,T,b,r){if(!T.ending&&!A.destroyed&&T.length===0&&T.needDrain)T.needDrain=!1,A.emit("drain");while(b-- >0)T.pendingcb--,r();if(T.destroyed)u(T);p(A,T)}function u(A){if(A.writing)return;for(let e=A.bufferedIndex;e<A.buffered.length;++e){var T;let{chunk:t,callback:O}=A.buffered[e],i=A.objectMode?1:t.length;A.length-=i,O((T=A.errored)!==null&&T!==void 0?T:new E("write"))}let b=A[y].splice(0);for(let e=0;e<b.length;e++){var r;b[e]((r=A.errored)!==null&&r!==void 0?r:new E("end"))}a(A)}function K0(A,T){if(T.corked||T.bufferProcessing||T.destroyed||!T.constructed)return;let{buffered:b,bufferedIndex:r,objectMode:e}=T,t=b.length-r;if(!t)return;let O=r;if(T.bufferProcessing=!0,t>1&&A._writev){T.pendingcb-=t-1;let i=T.allNoop?S:(o)=>{for(let V0=O;V0<b.length;++V0)b[V0].callback(o)},q0=T.allNoop&&O===0?b:X(b,O);q0.allBuffers=T.allBuffers,c(A,T,!0,T.length,q0,"",i),a(T)}else{do{let{chunk:i,encoding:q0,callback:o}=b[O];b[O++]=null;let V0=e?1:i.length;c(A,T,!1,V0,i,q0,o)}while(O<b.length&&!T.writing);if(O===b.length)a(T);else if(O>256)b.splice(0,O),T.bufferedIndex=0;else T.bufferedIndex=O}T.bufferProcessing=!1}Q0.prototype._write=function(A,T,b){if(this._writev)this._writev([{chunk:A,encoding:T}],b);else throw new w("_write()")},Q0.prototype._writev=null,Q0.prototype.end=function(A,T,b){let r=this._writableState;if(typeof A==="function")b=A,A=null,T=null;else if(typeof T==="function")b=T,T=null;let e;if(A!==null&&A!==void 0){let t=Y0(this,A,T);if(t instanceof Y)e=t}if(r.corked)r.corked=1,this.uncork();if(e);else if(!r.errored&&!r.ending)r.ending=!0,p(this,r,!0),r.ended=!0;else if(r.finished)e=new d("end");else if(r.destroyed)e=new E("end");if(typeof b==="function")if(e||r.finished)$.nextTick(b,e);else r[y].push(b);return this};function z0(A){return A.ending&&!A.destroyed&&A.constructed&&A.length===0&&!A.errored&&A.buffered.length===0&&!A.finished&&!A.writing&&!A.errorEmitted&&!A.closeEmitted}function j0(A,T){let b=!1;function r(e){if(b){L(A,e!==null&&e!==void 0?e:I());return}if(b=!0,T.pendingcb--,e){let t=T[y].splice(0);for(let O=0;O<t.length;O++)t[O](e);L(A,e,T.sync)}else if(z0(T))T.prefinished=!0,A.emit("prefinish"),T.pendingcb++,$.nextTick(m,A,T)}T.sync=!0,T.pendingcb++;try{A._final(r)}catch(e){r(e)}T.sync=!1}function Z0(A,T){if(!T.prefinished&&!T.finalCalled)if(typeof A._final==="function"&&!T.destroyed)T.finalCalled=!0,j0(A,T);else T.prefinished=!0,A.emit("prefinish")}function p(A,T,b){if(z0(T)){if(Z0(A,T),T.pendingcb===0){if(b)T.pendingcb++,$.nextTick((r,e)=>{if(z0(e))m(r,e);else e.pendingcb--},A,T);else if(z0(T))T.pendingcb++,m(A,T)}}}function m(A,T){T.pendingcb--,T.finished=!0;let b=T[y].splice(0);for(let r=0;r<b.length;r++)b[r]();if(A.emit("finish"),T.autoDestroy){let r=A._readableState;if(!r||r.autoDestroy&&(r.endEmitted||r.readable===!1))A.destroy()}}U(Q0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(A){if(this._writableState)this._writableState.destroyed=A}},writable:{__proto__:null,get(){let A=this._writableState;return!!A&&A.writable!==!1&&!A.destroyed&&!A.errored&&!A.ending&&!A.ended},set(A){if(this._writableState)this._writableState.writable=!!A}},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 A=this._writableState;if(!A)return!1;return!A.destroyed&&!A.ending&&A.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 s=g.destroy;Q0.prototype.destroy=function(A,T){let b=this._writableState;if(!b.destroyed&&(b.bufferedIndex<b.buffered.length||b[y].length))$.nextTick(u,b);return s.call(this,A,T),this},Q0.prototype._undestroy=g.undestroy,Q0.prototype._destroy=function(A,T){T(A)},Q0.prototype[j.captureRejectionSymbol]=function(A){this.destroy(A)};var G0;function W0(){if(G0===void 0)G0={};return G0}Q0.fromWeb=function(A,T){return W0().newStreamWritableFromWritableStream(A,T)},Q0.toWeb=function(A){return W0().newWritableStreamFromStreamWritable(A)}}),LV=w0((Q,q)=>{var $=K1(),X=(O2(),a0(A2)),{isReadable:Y,isWritable:J,isIterable:K,isNodeStream:U,isReadableNodeStream:G,isWritableNodeStream:V,isDuplexNodeStream:z,isReadableStream:H,isWritableStream:j}=x2(),Z=_2(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:g,ERR_INVALID_RETURN_VALUE:C}}=_0(),{destroyer:N}=O1(),W=R2(),M=d6(),w=I5(),{createDeferredPromise:I}=m0(),f=l7(),E=globalThis.Blob||X.Blob,d=typeof E<"u"?function(y){return y instanceof E}:function(y){return!1},R=globalThis.AbortController||Y6().AbortController,{FunctionPrototypeCall:x}=D0();class D extends W{constructor(y){super(y);if((y===null||y===void 0?void 0:y.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((y===null||y===void 0?void 0:y.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}q.exports=function y(v,a){if(z(v))return v;if(G(v))return S({readable:v});if(V(v))return S({writable:v});if(U(v))return S({writable:!1,readable:!1});if(H(v))return S({readable:M.fromWeb(v)});if(j(v))return S({writable:w.fromWeb(v)});if(typeof v==="function"){let{value:Y0,write:B0,final:c,destroy:U0}=L(v);if(K(Y0))return f(D,Y0,{objectMode:!0,write:B0,final:c,destroy:U0});let P=Y0===null||Y0===void 0?void 0:Y0.then;if(typeof P==="function"){let l,$0=x(P,Y0,(u)=>{if(u!=null)throw new C("nully","body",u)},(u)=>{N(l,u)});return l=new D({objectMode:!0,readable:!1,write:B0,final(u){c(async()=>{try{await $0,$.nextTick(u,null)}catch(K0){$.nextTick(u,K0)}})},destroy:U0})}throw new C("Iterable, AsyncIterable or AsyncFunction",a,Y0)}if(d(v))return y(v.arrayBuffer());if(K(v))return f(D,v,{objectMode:!0,writable:!1});if(H(v===null||v===void 0?void 0:v.readable)&&j(v===null||v===void 0?void 0:v.writable))return D.fromWeb(v);if(typeof(v===null||v===void 0?void 0:v.writable)==="object"||typeof(v===null||v===void 0?void 0:v.readable)==="object"){let Y0=v!==null&&v!==void 0&&v.readable?G(v===null||v===void 0?void 0:v.readable)?v===null||v===void 0?void 0:v.readable:y(v.readable):void 0,B0=v!==null&&v!==void 0&&v.writable?V(v===null||v===void 0?void 0:v.writable)?v===null||v===void 0?void 0:v.writable:y(v.writable):void 0;return S({readable:Y0,writable:B0})}let Q0=v===null||v===void 0?void 0:v.then;if(typeof Q0==="function"){let Y0;return x(Q0,v,(B0)=>{if(B0!=null)Y0.push(B0);Y0.push(null)},(B0)=>{N(Y0,B0)}),Y0=new D({objectMode:!0,writable:!1,read(){}})}throw new g(a,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],v)};function L(y){let{promise:v,resolve:a}=I(),Q0=new R,Y0=Q0.signal;return{value:y(async function*(){while(!0){let B0=v;v=null;let{chunk:c,done:U0,cb:P}=await B0;if($.nextTick(P),U0)return;if(Y0.aborted)throw new h(void 0,{cause:Y0.reason});({promise:v,resolve:a}=I()),yield c}}(),{signal:Y0}),write(B0,c,U0){let P=a;a=null,P({chunk:B0,done:!1,cb:U0})},final(B0){let c=a;a=null,c({done:!0,cb:B0})},destroy(B0,c){Q0.abort(),c(B0)}}}function S(y){let v=y.readable&&typeof y.readable.read!=="function"?M.wrap(y.readable):y.readable,a=y.writable,Q0=!!Y(v),Y0=!!J(a),B0,c,U0,P,l;function $0(u){let K0=P;if(P=null,K0)K0(u);else if(u)l.destroy(u)}if(l=new D({readableObjectMode:!!(v!==null&&v!==void 0&&v.readableObjectMode),writableObjectMode:!!(a!==null&&a!==void 0&&a.writableObjectMode),readable:Q0,writable:Y0}),Y0)Z(a,(u)=>{if(Y0=!1,u)N(v,u);$0(u)}),l._write=function(u,K0,z0){if(a.write(u,K0))z0();else B0=z0},l._final=function(u){a.end(),c=u},a.on("drain",function(){if(B0){let u=B0;B0=null,u()}}),a.on("finish",function(){if(c){let u=c;c=null,u()}});if(Q0)Z(v,(u)=>{if(Q0=!1,u)N(v,u);$0(u)}),v.on("readable",function(){if(U0){let u=U0;U0=null,u()}}),v.on("end",function(){l.push(null)}),l._read=function(){while(!0){let u=v.read();if(u===null){U0=l._read;return}if(!l.push(u))return}};return l._destroy=function(u,K0){if(!u&&P!==null)u=new h;if(U0=null,B0=null,c=null,P===null)K0(u);else P=K0,N(a,u),N(v,u)},l}}),R2=w0((Q,q)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:X,ObjectKeys:Y,ObjectSetPrototypeOf:J}=D0();q.exports=G;var K=d6(),U=I5();J(G.prototype,K.prototype),J(G,K);{let j=Y(U.prototype);for(let Z=0;Z<j.length;Z++){let h=j[Z];if(!G.prototype[h])G.prototype[h]=U.prototype[h]}}function G(j){if(!(this instanceof G))return new G(j);if(K.call(this,j),U.call(this,j),j){if(this.allowHalfOpen=j.allowHalfOpen!==!1,j.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(j.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(G.prototype,{writable:{__proto__:null,...X(U.prototype,"writable")},writableHighWaterMark:{__proto__:null,...X(U.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...X(U.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...X(U.prototype,"writableBuffer")},writableLength:{__proto__:null,...X(U.prototype,"writableLength")},writableFinished:{__proto__:null,...X(U.prototype,"writableFinished")},writableCorked:{__proto__:null,...X(U.prototype,"writableCorked")},writableEnded:{__proto__:null,...X(U.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...X(U.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(j){if(this._readableState&&this._writableState)this._readableState.destroyed=j,this._writableState.destroyed=j}}});var V;function z(){if(V===void 0)V={};return V}G.fromWeb=function(j,Z){return z().newStreamDuplexFromReadableWritablePair(j,Z)},G.toWeb=function(j){return z().newReadableWritablePairFromDuplex(j)};var H;G.from=function(j){if(!H)H=LV();return H(j,"body")}}),i7=w0((Q,q)=>{var{ObjectSetPrototypeOf:$,Symbol:X}=D0();q.exports=G;var{ERR_METHOD_NOT_IMPLEMENTED:Y}=_0().codes,J=R2(),{getHighWaterMark:K}=m6();$(G.prototype,J.prototype),$(G,J);var U=X("kCallback");function G(H){if(!(this instanceof G))return new G(H);let j=H?K(this,H,"readableHighWaterMark",!0):null;if(j===0)H={...H,highWaterMark:null,readableHighWaterMark:j,writableHighWaterMark:H.writableHighWaterMark||0};if(J.call(this,H),this._readableState.sync=!1,this[U]=null,H){if(typeof H.transform==="function")this._transform=H.transform;if(typeof H.flush==="function")this._flush=H.flush}this.on("prefinish",z)}function V(H){if(typeof this._flush==="function"&&!this.destroyed)this._flush((j,Z)=>{if(j){if(H)H(j);else this.destroy(j);return}if(Z!=null)this.push(Z);if(this.push(null),H)H()});else if(this.push(null),H)H()}function z(){if(this._final!==V)V.call(this)}G.prototype._final=V,G.prototype._transform=function(H,j,Z){throw new Y("_transform()")},G.prototype._write=function(H,j,Z){let h=this._readableState,g=this._writableState,C=h.length;this._transform(H,j,(N,W)=>{if(N){Z(N);return}if(W!=null)this.push(W);if(g.ended||C===h.length||h.length<h.highWaterMark)Z();else this[U]=Z})},G.prototype._read=function(){if(this[U]){let H=this[U];this[U]=null,H()}}}),o7=w0((Q,q)=>{var{ObjectSetPrototypeOf:$}=D0();q.exports=Y;var X=i7();$(Y.prototype,X.prototype),$(Y,X);function Y(J){if(!(this instanceof Y))return new Y(J);X.call(this,J)}Y.prototype._transform=function(J,K,U){U(null,J)}}),N5=w0((Q,q)=>{var $=K1(),{ArrayIsArray:X,Promise:Y,SymbolAsyncIterator:J,SymbolDispose:K}=D0(),U=_2(),{once:G}=m0(),V=O1(),z=R2(),{aggregateTwoErrors:H,codes:{ERR_INVALID_ARG_TYPE:j,ERR_INVALID_RETURN_VALUE:Z,ERR_MISSING_ARGS:h,ERR_STREAM_DESTROYED:g,ERR_STREAM_PREMATURE_CLOSE:C},AbortError:N}=_0(),{validateFunction:W,validateAbortSignal:M}=J6(),{isIterable:w,isReadable:I,isReadableNodeStream:f,isNodeStream:E,isTransformStream:d,isWebStream:R,isReadableStream:x,isReadableFinished:D}=x2(),L=globalThis.AbortController||Y6().AbortController,S,y,v;function a(u,K0,z0){let j0=!1;u.on("close",()=>{j0=!0});let Z0=U(u,{readable:K0,writable:z0},(p)=>{j0=!p});return{destroy:(p)=>{if(j0)return;j0=!0,V.destroyer(u,p||new g("pipe"))},cleanup:Z0}}function Q0(u){return W(u[u.length-1],"streams[stream.length - 1]"),u.pop()}function Y0(u){if(w(u))return u;else if(f(u))return B0(u);throw new j("val",["Readable","Iterable","AsyncIterable"],u)}async function*B0(u){if(!y)y=d6();yield*y.prototype[J].call(u)}async function c(u,K0,z0,{end:j0}){let Z0,p=null,m=(W0)=>{if(W0)Z0=W0;if(p){let A=p;p=null,A()}},s=()=>new Y((W0,A)=>{if(Z0)A(Z0);else p=()=>{if(Z0)A(Z0);else W0()}});K0.on("drain",m);let G0=U(K0,{readable:!1},m);try{if(K0.writableNeedDrain)await s();for await(let W0 of u)if(!K0.write(W0))await s();if(j0)K0.end(),await s();z0()}catch(W0){z0(Z0!==W0?H(Z0,W0):W0)}finally{G0(),K0.off("drain",m)}}async function U0(u,K0,z0,{end:j0}){if(d(K0))K0=K0.writable;let Z0=K0.getWriter();try{for await(let p of u)await Z0.ready,Z0.write(p).catch(()=>{});if(await Z0.ready,j0)await Z0.close();z0()}catch(p){try{await Z0.abort(p),z0(p)}catch(m){z0(m)}}}function P(...u){return l(u,G(Q0(u)))}function l(u,K0,z0){if(u.length===1&&X(u[0]))u=u[0];if(u.length<2)throw new h("streams");let j0=new L,Z0=j0.signal,p=z0===null||z0===void 0?void 0:z0.signal,m=[];M(p,"options.signal");function s(){e(new N)}v=v||m0().addAbortListener;let G0;if(p)G0=v(p,s);let W0,A,T=[],b=0;function r(o){e(o,--b===0)}function e(o,V0){var P0;if(o&&(!W0||W0.code==="ERR_STREAM_PREMATURE_CLOSE"))W0=o;if(!W0&&!V0)return;while(T.length)T.shift()(W0);if((P0=G0)===null||P0===void 0||P0[K](),j0.abort(),V0){if(!W0)m.forEach((o0)=>o0());$.nextTick(K0,W0,A)}}let t;for(let o=0;o<u.length;o++){let V0=u[o],P0=o<u.length-1,o0=o>0,n0=P0||(z0===null||z0===void 0?void 0:z0.end)!==!1,e2=o===u.length-1;if(E(V0)){let g0=function(c0){if(c0&&c0.name!=="AbortError"&&c0.code!=="ERR_STREAM_PREMATURE_CLOSE")r(c0)};var O=g0;if(n0){let{destroy:c0,cleanup:I1}=a(V0,P0,o0);if(T.push(c0),I(V0)&&e2)m.push(I1)}if(V0.on("error",g0),I(V0)&&e2)m.push(()=>{V0.removeListener("error",g0)})}if(o===0)if(typeof V0==="function"){if(t=V0({signal:Z0}),!w(t))throw new Z("Iterable, AsyncIterable or Stream","source",t)}else if(w(V0)||f(V0)||d(V0))t=V0;else t=z.from(V0);else if(typeof V0==="function"){if(d(t)){var i;t=Y0((i=t)===null||i===void 0?void 0:i.readable)}else t=Y0(t);if(t=V0(t,{signal:Z0}),P0){if(!w(t,!0))throw new Z("AsyncIterable",`transform[${o-1}]`,t)}else{var q0;if(!S)S=o7();let g0=new S({objectMode:!0}),c0=(q0=t)===null||q0===void 0?void 0:q0.then;if(typeof c0==="function")b++,c0.call(t,(W2)=>{if(A=W2,W2!=null)g0.write(W2);if(n0)g0.end();$.nextTick(r)},(W2)=>{g0.destroy(W2),$.nextTick(r,W2)});else if(w(t,!0))b++,c(t,g0,r,{end:n0});else if(x(t)||d(t)){let W2=t.readable||t;b++,c(W2,g0,r,{end:n0})}else throw new Z("AsyncIterable or Promise","destination",t);t=g0;let{destroy:I1,cleanup:N1}=a(t,!1,!0);if(T.push(I1),e2)m.push(N1)}}else if(E(V0)){if(f(t)){b+=2;let g0=$0(t,V0,r,{end:n0});if(I(V0)&&e2)m.push(g0)}else if(d(t)||x(t)){let g0=t.readable||t;b++,c(g0,V0,r,{end:n0})}else if(w(t))b++,c(t,V0,r,{end:n0});else throw new j("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],t);t=V0}else if(R(V0)){if(f(t))b++,U0(Y0(t),V0,r,{end:n0});else if(x(t)||w(t))b++,U0(t,V0,r,{end:n0});else if(d(t))b++,U0(t.readable,V0,r,{end:n0});else throw new j("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],t);t=V0}else t=z.from(V0)}if(Z0!==null&&Z0!==void 0&&Z0.aborted||p!==null&&p!==void 0&&p.aborted)$.nextTick(s);return t}function $0(u,K0,z0,{end:j0}){let Z0=!1;if(K0.on("close",()=>{if(!Z0)z0(new C)}),u.pipe(K0,{end:!1}),j0){let m=function(){Z0=!0,K0.end()};var p=m;if(D(u))$.nextTick(m);else u.once("end",m)}else z0();return U(u,{readable:!0,writable:!1},(m)=>{let s=u._readableState;if(m&&m.code==="ERR_STREAM_PREMATURE_CLOSE"&&s&&s.ended&&!s.errored&&!s.errorEmitted)u.once("end",z0).once("error",z0);else z0(m)}),U(K0,{readable:!1,writable:!0},z0)}q.exports={pipelineImpl:l,pipeline:P}}),n7=w0((Q,q)=>{var{pipeline:$}=N5(),X=R2(),{destroyer:Y}=O1(),{isNodeStream:J,isReadable:K,isWritable:U,isWebStream:G,isTransformStream:V,isWritableStream:z,isReadableStream:H}=x2(),{AbortError:j,codes:{ERR_INVALID_ARG_VALUE:Z,ERR_MISSING_ARGS:h}}=_0(),g=_2();q.exports=function(...C){if(C.length===0)throw new h("streams");if(C.length===1)return X.from(C[0]);let N=[...C];if(typeof C[0]==="function")C[0]=X.from(C[0]);if(typeof C[C.length-1]==="function"){let L=C.length-1;C[L]=X.from(C[L])}for(let L=0;L<C.length;++L){if(!J(C[L])&&!G(C[L]))continue;if(L<C.length-1&&!(K(C[L])||H(C[L])||V(C[L])))throw new Z(`streams[${L}]`,N[L],"must be readable");if(L>0&&!(U(C[L])||z(C[L])||V(C[L])))throw new Z(`streams[${L}]`,N[L],"must be writable")}let W,M,w,I,f;function E(L){let S=I;if(I=null,S)S(L);else if(L)f.destroy(L);else if(!D&&!x)f.destroy()}let d=C[0],R=$(C,E),x=!!(U(d)||z(d)||V(d)),D=!!(K(R)||H(R)||V(R));if(f=new X({writableObjectMode:!!(d!==null&&d!==void 0&&d.writableObjectMode),readableObjectMode:!!(R!==null&&R!==void 0&&R.readableObjectMode),writable:x,readable:D}),x){if(J(d))f._write=function(S,y,v){if(d.write(S,y))v();else W=v},f._final=function(S){d.end(),M=S},d.on("drain",function(){if(W){let S=W;W=null,S()}});else if(G(d)){let S=(V(d)?d.writable:d).getWriter();f._write=async function(y,v,a){try{await S.ready,S.write(y).catch(()=>{}),a()}catch(Q0){a(Q0)}},f._final=async function(y){try{await S.ready,S.close().catch(()=>{}),M=y}catch(v){y(v)}}}let L=V(R)?R.readable:R;g(L,()=>{if(M){let S=M;M=null,S()}})}if(D){if(J(R))R.on("readable",function(){if(w){let L=w;w=null,L()}}),R.on("end",function(){f.push(null)}),f._read=function(){while(!0){let L=R.read();if(L===null){w=f._read;return}if(!f.push(L))return}};else if(G(R)){let L=(V(R)?R.readable:R).getReader();f._read=async function(){while(!0)try{let{value:S,done:y}=await L.read();if(!f.push(S))return;if(y){f.push(null);return}}catch{return}}}}return f._destroy=function(L,S){if(!L&&I!==null)L=new j;if(w=null,W=null,M=null,I===null)S(L);else if(I=S,J(R))Y(R,L)},f}}),CV=w0((Q,q)=>{var $=globalThis.AbortController||Y6().AbortController,{codes:{ERR_INVALID_ARG_VALUE:X,ERR_INVALID_ARG_TYPE:Y,ERR_MISSING_ARGS:J,ERR_OUT_OF_RANGE:K},AbortError:U}=_0(),{validateAbortSignal:G,validateInteger:V,validateObject:z}=J6(),H=D0().Symbol("kWeak"),j=D0().Symbol("kResistStopPropagation"),{finished:Z}=_2(),h=n7(),{addAbortSignalNoValidate:g}=p6(),{isWritable:C,isNodeStream:N}=x2(),{deprecate:W}=m0(),{ArrayPrototypePush:M,Boolean:w,MathFloor:I,Number:f,NumberIsNaN:E,Promise:d,PromiseReject:R,PromiseResolve:x,PromisePrototypeThen:D,Symbol:L}=D0(),S=L("kEmpty"),y=L("kEof");function v(p,m){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");if(N(p)&&!C(p))throw new X("stream",p,"must be writable");let s=h(this,p);if(m!==null&&m!==void 0&&m.signal)g(m.signal,s);return s}function a(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");let s=1;if((m===null||m===void 0?void 0:m.concurrency)!=null)s=I(m.concurrency);let G0=s-1;if((m===null||m===void 0?void 0:m.highWaterMark)!=null)G0=I(m.highWaterMark);return V(s,"options.concurrency",1),V(G0,"options.highWaterMark",0),G0+=s,async function*(){let W0=m0().AbortSignalAny([m===null||m===void 0?void 0:m.signal].filter(w)),A=this,T=[],b={signal:W0},r,e,t=!1,O=0;function i(){t=!0,q0()}function q0(){O-=1,o()}function o(){if(e&&!t&&O<s&&T.length<G0)e(),e=null}async function V0(){try{for await(let P0 of A){if(t)return;if(W0.aborted)throw new U;try{if(P0=p(P0,b),P0===S)continue;P0=x(P0)}catch(o0){P0=R(o0)}if(O+=1,D(P0,q0,i),T.push(P0),r)r(),r=null;if(!t&&(T.length>=G0||O>=s))await new d((o0)=>{e=o0})}T.push(y)}catch(P0){let o0=R(P0);D(o0,q0,i),T.push(o0)}finally{if(t=!0,r)r(),r=null}}V0();try{while(!0){while(T.length>0){let P0=await T[0];if(P0===y)return;if(W0.aborted)throw new U;if(P0!==S)yield P0;T.shift(),o()}await new d((P0)=>{r=P0})}}finally{if(t=!0,e)e(),e=null}}.call(this)}function Q0(p=void 0){if(p!=null)z(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");return async function*(){let m=0;for await(let G0 of this){var s;if(p!==null&&p!==void 0&&(s=p.signal)!==null&&s!==void 0&&s.aborted)throw new U({cause:p.signal.reason});yield[m++,G0]}}.call(this)}async function Y0(p,m=void 0){for await(let s of P.call(this,p,m))return!0;return!1}async function B0(p,m=void 0){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);return!await Y0.call(this,async(...s)=>{return!await p(...s)},m)}async function c(p,m){for await(let s of P.call(this,p,m))return s;return}async function U0(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);async function s(G0,W0){return await p(G0,W0),S}for await(let G0 of a.call(this,s,m));}function P(p,m){if(typeof p!=="function")throw new Y("fn",["Function","AsyncFunction"],p);async function s(G0,W0){if(await p(G0,W0))return G0;return S}return a.call(this,s,m)}class l extends J{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function $0(p,m,s){var G0;if(typeof p!=="function")throw new Y("reducer",["Function","AsyncFunction"],p);if(s!=null)z(s,"options");if((s===null||s===void 0?void 0:s.signal)!=null)G(s.signal,"options.signal");let W0=arguments.length>1;if(s!==null&&s!==void 0&&(G0=s.signal)!==null&&G0!==void 0&&G0.aborted){let e=new U(void 0,{cause:s.signal.reason});throw this.once("error",()=>{}),await Z(this.destroy(e)),e}let A=new $,T=A.signal;if(s!==null&&s!==void 0&&s.signal){let e={once:!0,[H]:this,[j]:!0};s.signal.addEventListener("abort",()=>A.abort(),e)}let b=!1;try{for await(let e of this){var r;if(b=!0,s!==null&&s!==void 0&&(r=s.signal)!==null&&r!==void 0&&r.aborted)throw new U;if(!W0)m=e,W0=!0;else m=await p(m,e,{signal:T})}if(!b&&!W0)throw new l}finally{A.abort()}return m}async function u(p){if(p!=null)z(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)G(p.signal,"options.signal");let m=[];for await(let G0 of this){var s;if(p!==null&&p!==void 0&&(s=p.signal)!==null&&s!==void 0&&s.aborted)throw new U(void 0,{cause:p.signal.reason});M(m,G0)}return m}function K0(p,m){let s=a.call(this,p,m);return async function*(){for await(let G0 of s)yield*G0}.call(this)}function z0(p){if(p=f(p),E(p))return 0;if(p<0)throw new K("number",">= 0",p);return p}function j0(p,m=void 0){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");return p=z0(p),async function*(){var s;if(m!==null&&m!==void 0&&(s=m.signal)!==null&&s!==void 0&&s.aborted)throw new U;for await(let W0 of this){var G0;if(m!==null&&m!==void 0&&(G0=m.signal)!==null&&G0!==void 0&&G0.aborted)throw new U;if(p--<=0)yield W0}}.call(this)}function Z0(p,m=void 0){if(m!=null)z(m,"options");if((m===null||m===void 0?void 0:m.signal)!=null)G(m.signal,"options.signal");return p=z0(p),async function*(){var s;if(m!==null&&m!==void 0&&(s=m.signal)!==null&&s!==void 0&&s.aborted)throw new U;for await(let W0 of this){var G0;if(m!==null&&m!==void 0&&(G0=m.signal)!==null&&G0!==void 0&&G0.aborted)throw new U;if(p-- >0)yield W0;if(p<=0)return}}.call(this)}q.exports.streamReturningOperators={asIndexedPairs:W(Q0,"readable.asIndexedPairs will be removed in a future version."),drop:j0,filter:P,flatMap:K0,map:a,take:Z0,compose:v},q.exports.promiseReturningOperators={every:B0,forEach:U0,reduce:$0,toArray:u,some:Y0,find:c}}),r7=w0((Q,q)=>{var{ArrayPrototypePop:$,Promise:X}=D0(),{isIterable:Y,isNodeStream:J,isWebStream:K}=x2(),{pipelineImpl:U}=N5(),{finished:G}=_2();a7();function V(...z){return new X((H,j)=>{let Z,h,g=z[z.length-1];if(g&&typeof g==="object"&&!J(g)&&!Y(g)&&!K(g)){let C=$(z);Z=C.signal,h=C.end}U(z,(C,N)=>{if(C)j(C);else H(N)},{signal:Z,end:h})})}q.exports={finished:G,pipeline:V}}),a7=w0((Q,q)=>{var{Buffer:$}=(O2(),a0(A2)),{ObjectDefineProperty:X,ObjectKeys:Y,ReflectApply:J}=D0(),{promisify:{custom:K}}=m0(),{streamReturningOperators:U,promiseReturningOperators:G}=CV(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:V}}=_0(),z=n7(),{setDefaultHighWaterMark:H,getDefaultHighWaterMark:j}=m6(),{pipeline:Z}=N5(),{destroyer:h}=O1(),g=_2(),C=r7(),N=x2(),W=q.exports=C5().Stream;W.isDestroyed=N.isDestroyed,W.isDisturbed=N.isDisturbed,W.isErrored=N.isErrored,W.isReadable=N.isReadable,W.isWritable=N.isWritable,W.Readable=d6();for(let w of Y(U)){let I=function(...E){if(new.target)throw V();return W.Readable.from(J(f,this,E))},f=U[w];X(I,"name",{__proto__:null,value:f.name}),X(I,"length",{__proto__:null,value:f.length}),X(W.Readable.prototype,w,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}for(let w of Y(G)){let I=function(...E){if(new.target)throw V();return J(f,this,E)},f=G[w];X(I,"name",{__proto__:null,value:f.name}),X(I,"length",{__proto__:null,value:f.length}),X(W.Readable.prototype,w,{__proto__:null,value:I,enumerable:!1,configurable:!0,writable:!0})}W.Writable=I5(),W.Duplex=R2(),W.Transform=i7(),W.PassThrough=o7(),W.pipeline=Z;var{addAbortSignal:M}=p6();W.addAbortSignal=M,W.finished=g,W.destroy=h,W.compose=z,W.setDefaultHighWaterMark=H,W.getDefaultHighWaterMark=j,X(W,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return C}}),X(Z,K,{__proto__:null,enumerable:!0,get(){return C.pipeline}}),X(g,K,{__proto__:null,enumerable:!0,get(){return C.finished}}),W.Stream=W,W._isUint8Array=function(w){return w instanceof Uint8Array},W._uint8ArrayToBuffer=function(w){return $.from(w.buffer,w.byteOffset,w.byteLength)}}),IV=w0((Q,q)=>{var $=l6();{let X=a7(),Y=r7(),J=X.Readable.destroy;q.exports=X.Readable,q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,q.exports._isUint8Array=X._isUint8Array,q.exports.isDisturbed=X.isDisturbed,q.exports.isErrored=X.isErrored,q.exports.isReadable=X.isReadable,q.exports.Readable=X.Readable,q.exports.Writable=X.Writable,q.exports.Duplex=X.Duplex,q.exports.Transform=X.Transform,q.exports.PassThrough=X.PassThrough,q.exports.addAbortSignal=X.addAbortSignal,q.exports.finished=X.finished,q.exports.destroy=X.destroy,q.exports.destroy=J,q.exports.pipeline=X.pipeline,q.exports.compose=X.compose,Object.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return Y}}),q.exports.Stream=X.Stream}q.exports.default=q.exports});s7.exports=IV()});var T2=k((DV)=>{DV.base64=!0;DV.array=!0;DV.string=!0;DV.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";DV.nodebuffer=typeof Buffer<"u";DV.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")DV.blob=!1;else{i6=new ArrayBuffer(0);try{DV.blob=new Blob([i6],{type:"application/zip"}).size===0}catch(Q){try{A5=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,o6=new A5,o6.append(i6),DV.blob=o6.getBlob("application/zip").size===0}catch(q){DV.blob=!1}}}var i6,A5,o6;try{DV.nodestream=!!l6().Readable}catch(Q){DV.nodestream=!1}});var O5=k((kV)=>{var EV=A0(),SV=T2(),F2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";kV.encode=function(Q){var q=[],$,X,Y,J,K,U,G,V=0,z=Q.length,H=z,j=EV.getTypeOf(Q)!=="string";while(V<Q.length){if(H=z-V,!j)$=Q.charCodeAt(V++),X=V<z?Q.charCodeAt(V++):0,Y=V<z?Q.charCodeAt(V++):0;else $=Q[V++],X=V<z?Q[V++]:0,Y=V<z?Q[V++]:0;J=$>>2,K=($&3)<<4|X>>4,U=H>1?(X&15)<<2|Y>>6:64,G=H>2?Y&63:64,q.push(F2.charAt(J)+F2.charAt(K)+F2.charAt(U)+F2.charAt(G))}return q.join("")};kV.decode=function(Q){var q,$,X,Y,J,K,U,G=0,V=0,z="data:";if(Q.substr(0,z.length)===z)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var H=Q.length*3/4;if(Q.charAt(Q.length-1)===F2.charAt(64))H--;if(Q.charAt(Q.length-2)===F2.charAt(64))H--;if(H%1!==0)throw Error("Invalid base64 input, bad content length.");var j;if(SV.uint8array)j=new Uint8Array(H|0);else j=Array(H|0);while(G<Q.length){if(Y=F2.indexOf(Q.charAt(G++)),J=F2.indexOf(Q.charAt(G++)),K=F2.indexOf(Q.charAt(G++)),U=F2.indexOf(Q.charAt(G++)),q=Y<<2|J>>4,$=(J&15)<<4|K>>2,X=(K&3)<<6|U,j[V++]=q,K!==64)j[V++]=$;if(U!==64)j[V++]=X}return j}});var K6=k((tw,t7)=>{t7.exports={isNode:typeof Buffer<"u",newBufferFrom:function(Q,q){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(Q,q);else{if(typeof Q==="number")throw Error('The "data" argument must not be a number');return new Buffer(Q,q)}},allocBuffer:function(Q){if(Buffer.alloc)return Buffer.alloc(Q);else{var q=new Buffer(Q);return q.fill(0),q}},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 q9=k((ew,Q9)=>{var e7=global.MutationObserver||global.WebKitMutationObserver,U6;if(e7)r6=0,R5=new e7(n6),a6=global.document.createTextNode(""),R5.observe(a6,{characterData:!0}),U6=function(){a6.data=r6=++r6%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")s6=new global.MessageChannel,s6.port1.onmessage=n6,U6=function(){s6.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))U6=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){n6(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else U6=function(){setTimeout(n6,0)};var r6,R5,a6,s6,x5,V6=[];function n6(){x5=!0;var Q,q,$=V6.length;while($){q=V6,V6=[],Q=-1;while(++Q<$)q[Q]();$=V6.length}x5=!1}Q9.exports=fV;function fV(Q){if(V6.push(Q)===1&&!x5)U6()}});var U9=k((QP,K9)=>{var hV=q9();function R1(){}var f0={},$9=["REJECTED"],T5=["FULFILLED"],X9=["PENDING"];K9.exports=b2;function b2(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=X9,this.queue=[],this.outcome=void 0,Q!==R1)Y9(this,Q)}b2.prototype.finally=function(Q){if(typeof Q!=="function")return this;var q=this.constructor;return this.then($,X);function $(Y){function J(){return Y}return q.resolve(Q()).then(J)}function X(Y){function J(){throw Y}return q.resolve(Q()).then(J)}};b2.prototype.catch=function(Q){return this.then(null,Q)};b2.prototype.then=function(Q,q){if(typeof Q!=="function"&&this.state===T5||typeof q!=="function"&&this.state===$9)return this;var $=new this.constructor(R1);if(this.state!==X9){var X=this.state===T5?Q:q;v5($,X,this.outcome)}else this.queue.push(new z6($,Q,q));return $};function z6(Q,q,$){if(this.promise=Q,typeof q==="function")this.onFulfilled=q,this.callFulfilled=this.otherCallFulfilled;if(typeof $==="function")this.onRejected=$,this.callRejected=this.otherCallRejected}z6.prototype.callFulfilled=function(Q){f0.resolve(this.promise,Q)};z6.prototype.otherCallFulfilled=function(Q){v5(this.promise,this.onFulfilled,Q)};z6.prototype.callRejected=function(Q){f0.reject(this.promise,Q)};z6.prototype.otherCallRejected=function(Q){v5(this.promise,this.onRejected,Q)};function v5(Q,q,$){hV(function(){var X;try{X=q($)}catch(Y){return f0.reject(Q,Y)}if(X===Q)f0.reject(Q,TypeError("Cannot resolve promise with itself"));else f0.resolve(Q,X)})}f0.resolve=function(Q,q){var $=J9(_V,q);if($.status==="error")return f0.reject(Q,$.value);var X=$.value;if(X)Y9(Q,X);else{Q.state=T5,Q.outcome=q;var Y=-1,J=Q.queue.length;while(++Y<J)Q.queue[Y].callFulfilled(q)}return Q};f0.reject=function(Q,q){Q.state=$9,Q.outcome=q;var $=-1,X=Q.queue.length;while(++$<X)Q.queue[$].callRejected(q);return Q};function _V(Q){var q=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof q==="function")return function(){q.apply(Q,arguments)}}function Y9(Q,q){var $=!1;function X(U){if($)return;$=!0,f0.reject(Q,U)}function Y(U){if($)return;$=!0,f0.resolve(Q,U)}function J(){q(Y,X)}var K=J9(J);if(K.status==="error")X(K.value)}function J9(Q,q){var $={};try{$.value=Q(q),$.status="success"}catch(X){$.status="error",$.value=X}return $}b2.resolve=bV;function bV(Q){if(Q instanceof this)return Q;return f0.resolve(new this(R1),Q)}b2.reject=uV;function uV(Q){var q=new this(R1);return f0.reject(q,Q)}b2.all=cV;function cV(Q){var q=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 Y=Array($),J=0,K=-1,U=new this(R1);while(++K<$)G(Q[K],K);return U;function G(V,z){q.resolve(V).then(H,function(j){if(!X)X=!0,f0.reject(U,j)});function H(j){if(Y[z]=j,++J===$&&!X)X=!0,f0.resolve(U,Y)}}}b2.race=pV;function pV(Q){var q=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 Y=-1,J=new this(R1);while(++Y<$)K(Q[Y]);return J;function K(U){q.resolve(U).then(function(G){if(!X)X=!0,f0.resolve(J,G)},function(G){if(!X)X=!0,f0.reject(J,G)})}}});var x1=k((qP,V9)=>{var E5=null;if(typeof Promise<"u")E5=Promise;else E5=U9();V9.exports={Promise:E5}});var G9=k((z9)=>{(function(Q,q){if(Q.setImmediate)return;var $=1,X={},Y=!1,J=Q.document,K;function U(W){if(typeof W!=="function")W=Function(""+W);var M=Array(arguments.length-1);for(var w=0;w<M.length;w++)M[w]=arguments[w+1];var I={callback:W,args:M};return X[$]=I,K($),$++}function G(W){delete X[W]}function V(W){var{callback:M,args:w}=W;switch(w.length){case 0:M();break;case 1:M(w[0]);break;case 2:M(w[0],w[1]);break;case 3:M(w[0],w[1],w[2]);break;default:M.apply(q,w);break}}function z(W){if(Y)setTimeout(z,0,W);else{var M=X[W];if(M){Y=!0;try{V(M)}finally{G(W),Y=!1}}}}function H(){K=function(W){process.nextTick(function(){z(W)})}}function j(){if(Q.postMessage&&!Q.importScripts){var W=!0,M=Q.onmessage;return Q.onmessage=function(){W=!1},Q.postMessage("","*"),Q.onmessage=M,W}}function Z(){var W="setImmediate$"+Math.random()+"$",M=function(w){if(w.source===Q&&typeof w.data==="string"&&w.data.indexOf(W)===0)z(+w.data.slice(W.length))};if(Q.addEventListener)Q.addEventListener("message",M,!1);else Q.attachEvent("onmessage",M);K=function(w){Q.postMessage(W+w,"*")}}function h(){var W=new MessageChannel;W.port1.onmessage=function(M){var w=M.data;z(w)},K=function(M){W.port2.postMessage(M)}}function g(){var W=J.documentElement;K=function(M){var w=J.createElement("script");w.onreadystatechange=function(){z(M),w.onreadystatechange=null,W.removeChild(w),w=null},W.appendChild(w)}}function C(){K=function(W){setTimeout(z,0,W)}}var N=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(N=N&&N.setTimeout?N:Q,{}.toString.call(Q.process)==="[object process]")H();else if(j())Z();else if(Q.MessageChannel)h();else if(J&&"onreadystatechange"in J.createElement("script"))g();else C();N.setImmediate=U,N.clearImmediate=G})(typeof self>"u"?typeof global>"u"?z9:global:self)});var A0=k((lV)=>{var u2=T2(),mV=O5(),T1=K6(),S5=x1();G9();function dV(Q){var q=null;if(u2.uint8array)q=new Uint8Array(Q.length);else q=Array(Q.length);return e6(Q,q)}lV.newBlob=function(Q,q){lV.checkSupport("blob");try{return new Blob([Q],{type:q})}catch(Y){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,X=new $;return X.append(Q),X.getBlob(q)}catch(J){throw Error("Bug : can't construct the Blob.")}}};function G6(Q){return Q}function e6(Q,q){for(var $=0;$<Q.length;++$)q[$]=Q.charCodeAt($)&255;return q}var t6={stringifyByChunk:function(Q,q,$){var X=[],Y=0,J=Q.length;if(J<=$)return String.fromCharCode.apply(null,Q);while(Y<J){if(q==="array"||q==="nodebuffer")X.push(String.fromCharCode.apply(null,Q.slice(Y,Math.min(Y+$,J))));else X.push(String.fromCharCode.apply(null,Q.subarray(Y,Math.min(Y+$,J))));Y+=$}return X.join("")},stringifyByChar:function(Q){var q="";for(var $=0;$<Q.length;$++)q+=String.fromCharCode(Q[$]);return q},applyCanBeUsed:{uint8array:function(){try{return u2.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return u2.nodebuffer&&String.fromCharCode.apply(null,T1.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function W6(Q){var q=65536,$=lV.getTypeOf(Q),X=!0;if($==="uint8array")X=t6.applyCanBeUsed.uint8array;else if($==="nodebuffer")X=t6.applyCanBeUsed.nodebuffer;if(X)while(q>1)try{return t6.stringifyByChunk(Q,$,q)}catch(Y){q=Math.floor(q/2)}return t6.stringifyByChar(Q)}lV.applyFromCharCode=W6;function Q8(Q,q){for(var $=0;$<Q.length;$++)q[$]=Q[$];return q}var c2={};c2.string={string:G6,array:function(Q){return e6(Q,Array(Q.length))},arraybuffer:function(Q){return c2.string.uint8array(Q).buffer},uint8array:function(Q){return e6(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return e6(Q,T1.allocBuffer(Q.length))}};c2.array={string:W6,array:G6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return T1.newBufferFrom(Q)}};c2.arraybuffer={string:function(Q){return W6(new Uint8Array(Q))},array:function(Q){return Q8(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:G6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return T1.newBufferFrom(new Uint8Array(Q))}};c2.uint8array={string:W6,array:function(Q){return Q8(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:G6,nodebuffer:function(Q){return T1.newBufferFrom(Q)}};c2.nodebuffer={string:W6,array:function(Q){return Q8(Q,Array(Q.length))},arraybuffer:function(Q){return c2.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return Q8(Q,new Uint8Array(Q.length))},nodebuffer:G6};lV.transformTo=function(Q,q){if(!q)q="";if(!Q)return q;lV.checkSupport(Q);var $=lV.getTypeOf(q),X=c2[$][Q](q);return X};lV.resolve=function(Q){var q=Q.split("/"),$=[];for(var X=0;X<q.length;X++){var Y=q[X];if(Y==="."||Y===""&&X!==0&&X!==q.length-1)continue;else if(Y==="..")$.pop();else $.push(Y)}return $.join("/")};lV.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if(u2.nodebuffer&&T1.isBuffer(Q))return"nodebuffer";if(u2.uint8array&&Q instanceof Uint8Array)return"uint8array";if(u2.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};lV.checkSupport=function(Q){var q=u2[Q.toLowerCase()];if(!q)throw Error(Q+" is not supported by this platform")};lV.MAX_VALUE_16BITS=65535;lV.MAX_VALUE_32BITS=-1;lV.pretty=function(Q){var q="",$,X;for(X=0;X<(Q||"").length;X++)$=Q.charCodeAt(X),q+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return q};lV.delay=function(Q,q,$){setImmediate(function(){Q.apply($||null,q||[])})};lV.inherits=function(Q,q){var $=function(){};$.prototype=q.prototype,Q.prototype=new $};lV.extend=function(){var Q={},q,$;for(q=0;q<arguments.length;q++)for($ in arguments[q])if(Object.prototype.hasOwnProperty.call(arguments[q],$)&&typeof Q[$]>"u")Q[$]=arguments[q][$];return Q};lV.prepareContent=function(Q,q,$,X,Y){var J=S5.Promise.resolve(q).then(function(K){var U=u2.blob&&(K instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(K))!==-1);if(U&&typeof FileReader<"u")return new S5.Promise(function(G,V){var z=new FileReader;z.onload=function(H){G(H.target.result)},z.onerror=function(H){V(H.target.error)},z.readAsArrayBuffer(K)});else return K});return J.then(function(K){var U=lV.getTypeOf(K);if(!U)return S5.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(U==="arraybuffer")K=lV.transformTo("uint8array",K);else if(U==="string"){if(Y)K=mV.decode(K);else if($){if(X!==!0)K=dV(K)}}return K})}});var l0=k((YP,F9)=>{function Z9(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}Z9.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,q){return this._listeners[Q].push(q),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(Q,q){if(this._listeners[Q])for(var $=0;$<this._listeners[Q].length;$++)this._listeners[Q][$].call(this,q)},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 q=this;return Q.on("data",function($){q.processChunk($)}),Q.on("end",function(){q.end()}),Q.on("error",function($){q.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,q){return this.extraStreamInfo[Q]=q,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var Q in this.extraStreamInfo){if(!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,Q))continue;this.streamInfo[Q]=this.extraStreamInfo[Q]}},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");if(this.isLocked=!0,this.previous)this.previous.lock()},toString:function(){var Q="Worker "+this.name;if(this.previous)return this.previous+" -> "+Q;else return Q}};F9.exports=Z9});var E1=k((Kz)=>{var v1=A0(),U1=T2(),$z=K6(),q8=l0(),B6=Array(256);for(j2=0;j2<256;j2++)B6[j2]=j2>=252?6:j2>=248?5:j2>=240?4:j2>=224?3:j2>=192?2:1;var j2;B6[254]=B6[254]=1;var Xz=function(Q){var q,$,X,Y,J,K=Q.length,U=0;for(Y=0;Y<K;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<K){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}U+=$<128?1:$<2048?2:$<65536?3:4}if(U1.uint8array)q=new Uint8Array(U);else q=Array(U);for(J=0,Y=0;J<U;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<K){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}if($<128)q[J++]=$;else if($<2048)q[J++]=192|$>>>6,q[J++]=128|$&63;else if($<65536)q[J++]=224|$>>>12,q[J++]=128|$>>>6&63,q[J++]=128|$&63;else q[J++]=240|$>>>18,q[J++]=128|$>>>12&63,q[J++]=128|$>>>6&63,q[J++]=128|$&63}return q},Yz=function(Q,q){var $;if(q=q||Q.length,q>Q.length)q=Q.length;$=q-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return q;if($===0)return q;return $+B6[Q[$]]>q?$:q},Jz=function(Q){var q,$,X,Y,J=Q.length,K=Array(J*2);for($=0,q=0;q<J;){if(X=Q[q++],X<128){K[$++]=X;continue}if(Y=B6[X],Y>4){K[$++]=65533,q+=Y-1;continue}X&=Y===2?31:Y===3?15:7;while(Y>1&&q<J)X=X<<6|Q[q++]&63,Y--;if(Y>1){K[$++]=65533;continue}if(X<65536)K[$++]=X;else X-=65536,K[$++]=55296|X>>10&1023,K[$++]=56320|X&1023}if(K.length!==$)if(K.subarray)K=K.subarray(0,$);else K.length=$;return v1.applyFromCharCode(K)};Kz.utf8encode=function(q){if(U1.nodebuffer)return $z.newBufferFrom(q,"utf-8");return Xz(q)};Kz.utf8decode=function(q){if(U1.nodebuffer)return v1.transformTo("nodebuffer",q).toString("utf-8");return q=v1.transformTo(U1.uint8array?"uint8array":"array",q),Jz(q)};function $8(){q8.call(this,"utf-8 decode"),this.leftOver=null}v1.inherits($8,q8);$8.prototype.processChunk=function(Q){var q=v1.transformTo(U1.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(U1.uint8array){var $=q;q=new Uint8Array($.length+this.leftOver.length),q.set(this.leftOver,0),q.set($,this.leftOver.length)}else q=this.leftOver.concat(q);this.leftOver=null}var X=Yz(q),Y=q;if(X!==q.length)if(U1.uint8array)Y=q.subarray(0,X),this.leftOver=q.subarray(X,q.length);else Y=q.slice(0,X),this.leftOver=q.slice(X,q.length);this.push({data:Kz.utf8decode(Y),meta:Q.meta})};$8.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:Kz.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};Kz.Utf8DecodeWorker=$8;function g5(){q8.call(this,"utf-8 encode")}v1.inherits(g5,q8);g5.prototype.processChunk=function(Q){this.push({data:Kz.utf8encode(Q.data),meta:Q.meta})};Kz.Utf8EncodeWorker=g5});var P9=k((KP,w9)=>{var H9=l0(),M9=A0();function f5(Q){H9.call(this,"ConvertWorker to "+Q),this.destType=Q}M9.inherits(f5,H9);f5.prototype.processChunk=function(Q){this.push({data:M9.transformTo(this.destType,Q.data),meta:Q.meta})};w9.exports=f5});var I9=k((UP,C9)=>{var L9=l6().Readable,zz=A0();zz.inherits(h5,L9);function h5(Q,q,$){L9.call(this,q),this._helper=Q;var X=this;Q.on("data",function(Y,J){if(!X.push(Y))X._helper.pause();if($)$(J)}).on("error",function(Y){X.emit("error",Y)}).on("end",function(){X.push(null)})}h5.prototype._read=function(){this._helper.resume()};C9.exports=h5});var _5=k((VP,A9)=>{var V1=A0(),Gz=P9(),Wz=l0(),Bz=O5(),Zz=T2(),Fz=x1(),N9=null;if(Zz.nodestream)try{N9=I9()}catch(Q){}function jz(Q,q,$){switch(Q){case"blob":return V1.newBlob(V1.transformTo("arraybuffer",q),$);case"base64":return Bz.encode(q);default:return V1.transformTo(Q,q)}}function Hz(Q,q){var $,X=0,Y=null,J=0;for($=0;$<q.length;$++)J+=q[$].length;switch(Q){case"string":return q.join("");case"array":return Array.prototype.concat.apply([],q);case"uint8array":Y=new Uint8Array(J);for($=0;$<q.length;$++)Y.set(q[$],X),X+=q[$].length;return Y;case"nodebuffer":return Buffer.concat(q);default:throw Error("concat : unsupported type '"+Q+"'")}}function Mz(Q,q){return new Fz.Promise(function($,X){var Y=[],J=Q._internalType,K=Q._outputType,U=Q._mimeType;Q.on("data",function(G,V){if(Y.push(G),q)q(V)}).on("error",function(G){Y=[],X(G)}).on("end",function(){try{var G=jz(K,Hz(J,Y),U);$(G)}catch(V){X(V)}Y=[]}).resume()})}function D9(Q,q,$){var X=q;switch(q){case"blob":case"arraybuffer":X="uint8array";break;case"base64":X="string";break}try{this._internalType=X,this._outputType=q,this._mimeType=$,V1.checkSupport(X),this._worker=Q.pipe(new Gz(X)),Q.lock()}catch(Y){this._worker=new Wz("error"),this._worker.error(Y)}}D9.prototype={accumulate:function(Q){return Mz(this,Q)},on:function(Q,q){var $=this;if(Q==="data")this._worker.on(Q,function(X){q.call($,X.data,X.meta)});else this._worker.on(Q,function(){V1.delay(q,arguments,$)});return this},resume:function(){return V1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(V1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new N9(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};A9.exports=D9});var b5=k((wz)=>{wz.base64=!1;wz.binary=!1;wz.dir=!1;wz.createFolders=!0;wz.date=null;wz.compression=null;wz.compressionOptions=null;wz.comment=null;wz.unixPermissions=null;wz.dosPermissions=null});var u5=k((GP,O9)=>{var X8=A0(),Y8=l0(),Tz=16384;function S1(Q){Y8.call(this,"DataWorker");var q=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,Q.then(function($){if(q.dataIsReady=!0,q.data=$,q.max=$&&$.length||0,q.type=X8.getTypeOf($),!q.isPaused)q._tickAndRepeat()},function($){q.error($)})}X8.inherits(S1,Y8);S1.prototype.cleanUp=function(){Y8.prototype.cleanUp.call(this),this.data=null};S1.prototype.resume=function(){if(!Y8.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,X8.delay(this._tickAndRepeat,[],this);return!0};S1.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)X8.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};S1.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=Tz,q=null,$=Math.min(this.max,this.index+Q);if(this.index>=this.max)return this.end();else{switch(this.type){case"string":q=this.data.substring(this.index,$);break;case"uint8array":q=this.data.subarray(this.index,$);break;case"array":case"nodebuffer":q=this.data.slice(this.index,$);break}return this.index=$,this.push({data:q,meta:{percent:this.max?this.index/this.max*100:0}})}};O9.exports=S1});var J8=k((WP,x9)=>{var vz=A0();function Ez(){var Q,q=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;q[$]=Q}return q}var R9=Ez();function Sz(Q,q,$,X){var Y=R9,J=X+$;Q=Q^-1;for(var K=X;K<J;K++)Q=Q>>>8^Y[(Q^q[K])&255];return Q^-1}function kz(Q,q,$,X){var Y=R9,J=X+$;Q=Q^-1;for(var K=X;K<J;K++)Q=Q>>>8^Y[(Q^q.charCodeAt(K))&255];return Q^-1}x9.exports=function(q,$){if(typeof q>"u"||!q.length)return 0;var X=vz.getTypeOf(q)!=="string";if(X)return Sz($|0,q,q.length,0);else return kz($|0,q,q.length,0)}});var p5=k((BP,v9)=>{var T9=l0(),gz=J8(),yz=A0();function c5(){T9.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}yz.inherits(c5,T9);c5.prototype.processChunk=function(Q){this.streamInfo.crc32=gz(Q.data,this.streamInfo.crc32||0),this.push(Q)};v9.exports=c5});var S9=k((ZP,E9)=>{var fz=A0(),m5=l0();function d5(Q){m5.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}fz.inherits(d5,m5);d5.prototype.processChunk=function(Q){if(Q){var q=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=q+Q.data.length}m5.prototype.processChunk.call(this,Q)};E9.exports=d5});var K8=k((FP,y9)=>{var k9=x1(),g9=u5(),hz=p5(),l5=S9();function i5(Q,q,$,X,Y){this.compressedSize=Q,this.uncompressedSize=q,this.crc32=$,this.compression=X,this.compressedContent=Y}i5.prototype={getContentWorker:function(){var Q=new g9(k9.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l5("data_length")),q=this;return Q.on("end",function(){if(this.streamInfo.data_length!==q.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),Q},getCompressedWorker:function(){return new g9(k9.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};i5.createWorkerFrom=function(Q,q,$){return Q.pipe(new hz).pipe(new l5("uncompressedSize")).pipe(q.compressWorker($)).pipe(new l5("compressedSize")).withStreamInfo("compression",q)};y9.exports=i5});var b9=k((jP,_9)=>{var _z=_5(),bz=u5(),o5=E1(),n5=K8(),f9=l0(),r5=function(Q,q,$){this.name=Q,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=q,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}};r5.prototype={internalStream:function(Q){var q=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var X=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";q=this._decompressWorker();var Y=!this._dataBinary;if(Y&&!X)q=q.pipe(new o5.Utf8EncodeWorker);if(!Y&&X)q=q.pipe(new o5.Utf8DecodeWorker)}catch(J){q=new f9("error"),q.error(J)}return new _z(q,$,"")},async:function(Q,q){return this.internalStream(Q).accumulate(q)},nodeStream:function(Q,q){return this.internalStream(Q||"nodebuffer").toNodejsStream(q)},_compressWorker:function(Q,q){if(this._data instanceof n5&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new o5.Utf8EncodeWorker);return n5.createWorkerFrom($,Q,q)}},_decompressWorker:function(){if(this._data instanceof n5)return this._data.getContentWorker();else if(this._data instanceof f9)return this._data;else return new bz(this._data)}};var h9=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],uz=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(Z6=0;Z6<h9.length;Z6++)r5.prototype[h9[Z6]]=uz;var Z6;_9.exports=r5});var v2=k((a5)=>{var dz=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function lz(Q,q){return Object.prototype.hasOwnProperty.call(Q,q)}a5.assign=function(Q){var q=Array.prototype.slice.call(arguments,1);while(q.length){var $=q.shift();if(!$)continue;if(typeof $!=="object")throw TypeError($+"must be non-object");for(var X in $)if(lz($,X))Q[X]=$[X]}return Q};a5.shrinkBuf=function(Q,q){if(Q.length===q)return Q;if(Q.subarray)return Q.subarray(0,q);return Q.length=q,Q};var iz={arraySet:function(Q,q,$,X,Y){if(q.subarray&&Q.subarray){Q.set(q.subarray($,$+X),Y);return}for(var J=0;J<X;J++)Q[Y+J]=q[$+J]},flattenChunks:function(Q){var q,$,X,Y,J,K;X=0;for(q=0,$=Q.length;q<$;q++)X+=Q[q].length;K=new Uint8Array(X),Y=0;for(q=0,$=Q.length;q<$;q++)J=Q[q],K.set(J,Y),Y+=J.length;return K}},oz={arraySet:function(Q,q,$,X,Y){for(var J=0;J<X;J++)Q[Y+J]=q[$+J]},flattenChunks:function(Q){return[].concat.apply([],Q)}};a5.setTyped=function(Q){if(Q)a5.Buf8=Uint8Array,a5.Buf16=Uint16Array,a5.Buf32=Int32Array,a5.assign(a5,iz);else a5.Buf8=Array,a5.Buf16=Array,a5.Buf32=Array,a5.assign(a5,oz)};a5.setTyped(dz)});var zq=k((HG)=>{var rz=v2(),az=4,c9=0,p9=1,sz=2;function g1(Q){var q=Q.length;while(--q>=0)Q[q]=0}var tz=0,n9=1,ez=2,QG=3,qG=258,Y4=29,P6=256,j6=P6+1+Y4,k1=30,J4=19,r9=2*j6+1,z1=15,t5=16,$G=7,K4=256,a9=16,s9=17,t9=18,$4=[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],U8=[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],XG=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],e9=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],YG=512,E2=Array((j6+2)*2);g1(E2);var F6=Array(k1*2);g1(F6);var H6=Array(YG);g1(H6);var M6=Array(qG-QG+1);g1(M6);var U4=Array(Y4);g1(U4);var V8=Array(k1);g1(V8);function e5(Q,q,$,X,Y){this.static_tree=Q,this.extra_bits=q,this.extra_base=$,this.elems=X,this.max_length=Y,this.has_stree=Q&&Q.length}var Qq,qq,$q;function Q4(Q,q){this.dyn_tree=Q,this.max_code=0,this.stat_desc=q}function Xq(Q){return Q<256?H6[Q]:H6[256+(Q>>>7)]}function w6(Q,q){Q.pending_buf[Q.pending++]=q&255,Q.pending_buf[Q.pending++]=q>>>8&255}function d0(Q,q,$){if(Q.bi_valid>t5-$)Q.bi_buf|=q<<Q.bi_valid&65535,w6(Q,Q.bi_buf),Q.bi_buf=q>>t5-Q.bi_valid,Q.bi_valid+=$-t5;else Q.bi_buf|=q<<Q.bi_valid&65535,Q.bi_valid+=$}function H2(Q,q,$){d0(Q,$[q*2],$[q*2+1])}function Yq(Q,q){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--q>0);return $>>>1}function JG(Q){if(Q.bi_valid===16)w6(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 KG(Q,q){var{dyn_tree:$,max_code:X}=q,Y=q.stat_desc.static_tree,J=q.stat_desc.has_stree,K=q.stat_desc.extra_bits,U=q.stat_desc.extra_base,G=q.stat_desc.max_length,V,z,H,j,Z,h,g=0;for(j=0;j<=z1;j++)Q.bl_count[j]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(V=Q.heap_max+1;V<r9;V++){if(z=Q.heap[V],j=$[$[z*2+1]*2+1]+1,j>G)j=G,g++;if($[z*2+1]=j,z>X)continue;if(Q.bl_count[j]++,Z=0,z>=U)Z=K[z-U];if(h=$[z*2],Q.opt_len+=h*(j+Z),J)Q.static_len+=h*(Y[z*2+1]+Z)}if(g===0)return;do{j=G-1;while(Q.bl_count[j]===0)j--;Q.bl_count[j]--,Q.bl_count[j+1]+=2,Q.bl_count[G]--,g-=2}while(g>0);for(j=G;j!==0;j--){z=Q.bl_count[j];while(z!==0){if(H=Q.heap[--V],H>X)continue;if($[H*2+1]!==j)Q.opt_len+=(j-$[H*2+1])*$[H*2],$[H*2+1]=j;z--}}}function Jq(Q,q,$){var X=Array(z1+1),Y=0,J,K;for(J=1;J<=z1;J++)X[J]=Y=Y+$[J-1]<<1;for(K=0;K<=q;K++){var U=Q[K*2+1];if(U===0)continue;Q[K*2]=Yq(X[U]++,U)}}function UG(){var Q,q,$,X,Y,J=Array(z1+1);$=0;for(X=0;X<Y4-1;X++){U4[X]=$;for(Q=0;Q<1<<$4[X];Q++)M6[$++]=X}M6[$-1]=X,Y=0;for(X=0;X<16;X++){V8[X]=Y;for(Q=0;Q<1<<U8[X];Q++)H6[Y++]=X}Y>>=7;for(;X<k1;X++){V8[X]=Y<<7;for(Q=0;Q<1<<U8[X]-7;Q++)H6[256+Y++]=X}for(q=0;q<=z1;q++)J[q]=0;Q=0;while(Q<=143)E2[Q*2+1]=8,Q++,J[8]++;while(Q<=255)E2[Q*2+1]=9,Q++,J[9]++;while(Q<=279)E2[Q*2+1]=7,Q++,J[7]++;while(Q<=287)E2[Q*2+1]=8,Q++,J[8]++;Jq(E2,j6+1,J);for(Q=0;Q<k1;Q++)F6[Q*2+1]=5,F6[Q*2]=Yq(Q,5);Qq=new e5(E2,$4,P6+1,j6,z1),qq=new e5(F6,U8,0,k1,z1),$q=new e5([],XG,0,J4,$G)}function Kq(Q){var q;for(q=0;q<j6;q++)Q.dyn_ltree[q*2]=0;for(q=0;q<k1;q++)Q.dyn_dtree[q*2]=0;for(q=0;q<J4;q++)Q.bl_tree[q*2]=0;Q.dyn_ltree[K4*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function Uq(Q){if(Q.bi_valid>8)w6(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 VG(Q,q,$,X){if(Uq(Q),X)w6(Q,$),w6(Q,~$);rz.arraySet(Q.pending_buf,Q.window,q,$,Q.pending),Q.pending+=$}function m9(Q,q,$,X){var Y=q*2,J=$*2;return Q[Y]<Q[J]||Q[Y]===Q[J]&&X[q]<=X[$]}function q4(Q,q,$){var X=Q.heap[$],Y=$<<1;while(Y<=Q.heap_len){if(Y<Q.heap_len&&m9(q,Q.heap[Y+1],Q.heap[Y],Q.depth))Y++;if(m9(q,X,Q.heap[Y],Q.depth))break;Q.heap[$]=Q.heap[Y],$=Y,Y<<=1}Q.heap[$]=X}function d9(Q,q,$){var X,Y,J=0,K,U;if(Q.last_lit!==0)do if(X=Q.pending_buf[Q.d_buf+J*2]<<8|Q.pending_buf[Q.d_buf+J*2+1],Y=Q.pending_buf[Q.l_buf+J],J++,X===0)H2(Q,Y,q);else{if(K=M6[Y],H2(Q,K+P6+1,q),U=$4[K],U!==0)Y-=U4[K],d0(Q,Y,U);if(X--,K=Xq(X),H2(Q,K,$),U=U8[K],U!==0)X-=V8[K],d0(Q,X,U)}while(J<Q.last_lit);H2(Q,K4,q)}function X4(Q,q){var $=q.dyn_tree,X=q.stat_desc.static_tree,Y=q.stat_desc.has_stree,J=q.stat_desc.elems,K,U,G=-1,V;Q.heap_len=0,Q.heap_max=r9;for(K=0;K<J;K++)if($[K*2]!==0)Q.heap[++Q.heap_len]=G=K,Q.depth[K]=0;else $[K*2+1]=0;while(Q.heap_len<2)if(V=Q.heap[++Q.heap_len]=G<2?++G:0,$[V*2]=1,Q.depth[V]=0,Q.opt_len--,Y)Q.static_len-=X[V*2+1];q.max_code=G;for(K=Q.heap_len>>1;K>=1;K--)q4(Q,$,K);V=J;do K=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],q4(Q,$,1),U=Q.heap[1],Q.heap[--Q.heap_max]=K,Q.heap[--Q.heap_max]=U,$[V*2]=$[K*2]+$[U*2],Q.depth[V]=(Q.depth[K]>=Q.depth[U]?Q.depth[K]:Q.depth[U])+1,$[K*2+1]=$[U*2+1]=V,Q.heap[1]=V++,q4(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],KG(Q,q),Jq($,G,Q.bl_count)}function l9(Q,q,$){var X,Y=-1,J,K=q[1],U=0,G=7,V=4;if(K===0)G=138,V=3;q[($+1)*2+1]=65535;for(X=0;X<=$;X++){if(J=K,K=q[(X+1)*2+1],++U<G&&J===K)continue;else if(U<V)Q.bl_tree[J*2]+=U;else if(J!==0){if(J!==Y)Q.bl_tree[J*2]++;Q.bl_tree[a9*2]++}else if(U<=10)Q.bl_tree[s9*2]++;else Q.bl_tree[t9*2]++;if(U=0,Y=J,K===0)G=138,V=3;else if(J===K)G=6,V=3;else G=7,V=4}}function i9(Q,q,$){var X,Y=-1,J,K=q[1],U=0,G=7,V=4;if(K===0)G=138,V=3;for(X=0;X<=$;X++){if(J=K,K=q[(X+1)*2+1],++U<G&&J===K)continue;else if(U<V)do H2(Q,J,Q.bl_tree);while(--U!==0);else if(J!==0){if(J!==Y)H2(Q,J,Q.bl_tree),U--;H2(Q,a9,Q.bl_tree),d0(Q,U-3,2)}else if(U<=10)H2(Q,s9,Q.bl_tree),d0(Q,U-3,3);else H2(Q,t9,Q.bl_tree),d0(Q,U-11,7);if(U=0,Y=J,K===0)G=138,V=3;else if(J===K)G=6,V=3;else G=7,V=4}}function zG(Q){var q;l9(Q,Q.dyn_ltree,Q.l_desc.max_code),l9(Q,Q.dyn_dtree,Q.d_desc.max_code),X4(Q,Q.bl_desc);for(q=J4-1;q>=3;q--)if(Q.bl_tree[e9[q]*2+1]!==0)break;return Q.opt_len+=3*(q+1)+5+5+4,q}function GG(Q,q,$,X){var Y;d0(Q,q-257,5),d0(Q,$-1,5),d0(Q,X-4,4);for(Y=0;Y<X;Y++)d0(Q,Q.bl_tree[e9[Y]*2+1],3);i9(Q,Q.dyn_ltree,q-1),i9(Q,Q.dyn_dtree,$-1)}function WG(Q){var q=4093624447,$;for($=0;$<=31;$++,q>>>=1)if(q&1&&Q.dyn_ltree[$*2]!==0)return c9;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return p9;for($=32;$<P6;$++)if(Q.dyn_ltree[$*2]!==0)return p9;return c9}var o9=!1;function BG(Q){if(!o9)UG(),o9=!0;Q.l_desc=new Q4(Q.dyn_ltree,Qq),Q.d_desc=new Q4(Q.dyn_dtree,qq),Q.bl_desc=new Q4(Q.bl_tree,$q),Q.bi_buf=0,Q.bi_valid=0,Kq(Q)}function Vq(Q,q,$,X){d0(Q,(tz<<1)+(X?1:0),3),VG(Q,q,$,!0)}function ZG(Q){d0(Q,n9<<1,3),H2(Q,K4,E2),JG(Q)}function FG(Q,q,$,X){var Y,J,K=0;if(Q.level>0){if(Q.strm.data_type===sz)Q.strm.data_type=WG(Q);if(X4(Q,Q.l_desc),X4(Q,Q.d_desc),K=zG(Q),Y=Q.opt_len+3+7>>>3,J=Q.static_len+3+7>>>3,J<=Y)Y=J}else Y=J=$+5;if($+4<=Y&&q!==-1)Vq(Q,q,$,X);else if(Q.strategy===az||J===Y)d0(Q,(n9<<1)+(X?1:0),3),d9(Q,E2,F6);else d0(Q,(ez<<1)+(X?1:0),3),GG(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,K+1),d9(Q,Q.dyn_ltree,Q.dyn_dtree);if(Kq(Q),X)Uq(Q)}function jG(Q,q,$){if(Q.pending_buf[Q.d_buf+Q.last_lit*2]=q>>>8&255,Q.pending_buf[Q.d_buf+Q.last_lit*2+1]=q&255,Q.pending_buf[Q.l_buf+Q.last_lit]=$&255,Q.last_lit++,q===0)Q.dyn_ltree[$*2]++;else Q.matches++,q--,Q.dyn_ltree[(M6[$]+P6+1)*2]++,Q.dyn_dtree[Xq(q)*2]++;return Q.last_lit===Q.lit_bufsize-1}HG._tr_init=BG;HG._tr_stored_block=Vq;HG._tr_flush_block=FG;HG._tr_tally=jG;HG._tr_align=ZG});var V4=k((wP,Gq)=>{function IG(Q,q,$,X){var Y=Q&65535|0,J=Q>>>16&65535|0,K=0;while($!==0){K=$>2000?2000:$,$-=K;do Y=Y+q[X++]|0,J=J+Y|0;while(--K);Y%=65521,J%=65521}return Y|J<<16|0}Gq.exports=IG});var z4=k((PP,Wq)=>{function NG(){var Q,q=[];for(var $=0;$<256;$++){Q=$;for(var X=0;X<8;X++)Q=Q&1?3988292384^Q>>>1:Q>>>1;q[$]=Q}return q}var DG=NG();function AG(Q,q,$,X){var Y=DG,J=X+$;Q^=-1;for(var K=X;K<J;K++)Q=Q>>>8^Y[(Q^q[K])&255];return Q^-1}Wq.exports=AG});var z8=k((LP,Bq)=>{Bq.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 Cq=k((YW)=>{var b0=v2(),t0=zq(),Hq=V4(),p2=z4(),OG=z8(),Z1=0,RG=1,xG=3,o2=4,Zq=5,w2=0,Fq=1,e0=-2,TG=-3,G4=-5,vG=-1,EG=1,G8=2,SG=3,kG=4,gG=0,yG=2,F8=8,fG=9,hG=15,_G=8,bG=29,uG=256,B4=uG+1+bG,cG=30,pG=19,mG=2*B4+1,dG=15,H0=3,l2=258,J2=l2+H0+1,lG=32,j8=42,Z4=69,W8=73,B8=91,Z8=103,G1=113,C6=666,T0=1,I6=2,W1=3,h1=4,iG=3;function i2(Q,q){return Q.msg=OG[q],q}function jq(Q){return(Q<<1)-(Q>4?9:0)}function d2(Q){var q=Q.length;while(--q>=0)Q[q]=0}function m2(Q){var q=Q.state,$=q.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(b0.arraySet(Q.output,q.pending_buf,q.pending_out,$,Q.next_out),Q.next_out+=$,q.pending_out+=$,Q.total_out+=$,Q.avail_out-=$,q.pending-=$,q.pending===0)q.pending_out=0}function E0(Q,q){t0._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,q),Q.block_start=Q.strstart,m2(Q.strm)}function M0(Q,q){Q.pending_buf[Q.pending++]=q}function L6(Q,q){Q.pending_buf[Q.pending++]=q>>>8&255,Q.pending_buf[Q.pending++]=q&255}function oG(Q,q,$,X){var Y=Q.avail_in;if(Y>X)Y=X;if(Y===0)return 0;if(Q.avail_in-=Y,b0.arraySet(q,Q.input,Q.next_in,Y,$),Q.state.wrap===1)Q.adler=Hq(Q.adler,q,Y,$);else if(Q.state.wrap===2)Q.adler=p2(Q.adler,q,Y,$);return Q.next_in+=Y,Q.total_in+=Y,Y}function Mq(Q,q){var{max_chain_length:$,strstart:X}=Q,Y,J,K=Q.prev_length,U=Q.nice_match,G=Q.strstart>Q.w_size-J2?Q.strstart-(Q.w_size-J2):0,V=Q.window,z=Q.w_mask,H=Q.prev,j=Q.strstart+l2,Z=V[X+K-1],h=V[X+K];if(Q.prev_length>=Q.good_match)$>>=2;if(U>Q.lookahead)U=Q.lookahead;do{if(Y=q,V[Y+K]!==h||V[Y+K-1]!==Z||V[Y]!==V[X]||V[++Y]!==V[X+1])continue;X+=2,Y++;do;while(V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&V[++X]===V[++Y]&&X<j);if(J=l2-(j-X),X=j-l2,J>K){if(Q.match_start=q,K=J,J>=U)break;Z=V[X+K-1],h=V[X+K]}}while((q=H[q&z])>G&&--$!==0);if(K<=Q.lookahead)return K;return Q.lookahead}function B1(Q){var q=Q.w_size,$,X,Y,J,K;do{if(J=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=q+(q-J2)){b0.arraySet(Q.window,Q.window,q,q,0),Q.match_start-=q,Q.strstart-=q,Q.block_start-=q,X=Q.hash_size,$=X;do Y=Q.head[--$],Q.head[$]=Y>=q?Y-q:0;while(--X);X=q,$=X;do Y=Q.prev[--$],Q.prev[$]=Y>=q?Y-q:0;while(--X);J+=q}if(Q.strm.avail_in===0)break;if(X=oG(Q.strm,Q.window,Q.strstart+Q.lookahead,J),Q.lookahead+=X,Q.lookahead+Q.insert>=H0){K=Q.strstart-Q.insert,Q.ins_h=Q.window[K],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[K+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[K+H0-1])&Q.hash_mask,Q.prev[K&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=K,K++,Q.insert--,Q.lookahead+Q.insert<H0)break}}while(Q.lookahead<J2&&Q.strm.avail_in!==0)}function nG(Q,q){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(B1(Q),Q.lookahead===0&&q===Z1)return T0;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,E0(Q,!1),Q.strm.avail_out===0)return T0}if(Q.strstart-Q.block_start>=Q.w_size-J2){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.strstart>Q.block_start){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return T0}function W4(Q,q){var $,X;for(;;){if(Q.lookahead<J2){if(B1(Q),Q.lookahead<J2&&q===Z1)return T0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=H0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-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-J2)Q.match_length=Mq(Q,$);if(Q.match_length>=H0)if(X=t0._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-H0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=H0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-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=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(X){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=Q.strstart<H0-1?Q.strstart:H0-1,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function y1(Q,q){var $,X,Y;for(;;){if(Q.lookahead<J2){if(B1(Q),Q.lookahead<J2&&q===Z1)return T0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=H0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-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=H0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-J2){if(Q.match_length=Mq(Q,$),Q.match_length<=5&&(Q.strategy===EG||Q.match_length===H0&&Q.strstart-Q.match_start>4096))Q.match_length=H0-1}if(Q.prev_length>=H0&&Q.match_length<=Q.prev_length){Y=Q.strstart+Q.lookahead-H0,X=t0._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-H0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=Y)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+H0-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=H0-1,Q.strstart++,X){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}else if(Q.match_available){if(X=t0._tr_tally(Q,0,Q.window[Q.strstart-1]),X)E0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return T0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)X=t0._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<H0-1?Q.strstart:H0-1,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function rG(Q,q){var $,X,Y,J,K=Q.window;for(;;){if(Q.lookahead<=l2){if(B1(Q),Q.lookahead<=l2&&q===Z1)return T0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=H0&&Q.strstart>0){if(Y=Q.strstart-1,X=K[Y],X===K[++Y]&&X===K[++Y]&&X===K[++Y]){J=Q.strstart+l2;do;while(X===K[++Y]&&X===K[++Y]&&X===K[++Y]&&X===K[++Y]&&X===K[++Y]&&X===K[++Y]&&X===K[++Y]&&X===K[++Y]&&Y<J);if(Q.match_length=l2-(J-Y),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=H0)$=t0._tr_tally(Q,1,Q.match_length-H0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function aG(Q,q){var $;for(;;){if(Q.lookahead===0){if(B1(Q),Q.lookahead===0){if(q===Z1)return T0;break}}if(Q.match_length=0,$=t0._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(E0(Q,!1),Q.strm.avail_out===0)return T0}}if(Q.insert=0,q===o2){if(E0(Q,!0),Q.strm.avail_out===0)return W1;return h1}if(Q.last_lit){if(E0(Q,!1),Q.strm.avail_out===0)return T0}return I6}function M2(Q,q,$,X,Y){this.good_length=Q,this.max_lazy=q,this.nice_length=$,this.max_chain=X,this.func=Y}var f1;f1=[new M2(0,0,0,0,nG),new M2(4,4,8,4,W4),new M2(4,5,16,8,W4),new M2(4,6,32,32,W4),new M2(4,4,16,16,y1),new M2(8,16,32,32,y1),new M2(8,16,128,128,y1),new M2(8,32,128,256,y1),new M2(32,128,258,1024,y1),new M2(32,258,258,4096,y1)];function sG(Q){Q.window_size=2*Q.w_size,d2(Q.head),Q.max_lazy_match=f1[Q.level].max_lazy,Q.good_match=f1[Q.level].good_length,Q.nice_match=f1[Q.level].nice_length,Q.max_chain_length=f1[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=H0-1,Q.match_available=0,Q.ins_h=0}function tG(){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=F8,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 b0.Buf16(mG*2),this.dyn_dtree=new b0.Buf16((2*cG+1)*2),this.bl_tree=new b0.Buf16((2*pG+1)*2),d2(this.dyn_ltree),d2(this.dyn_dtree),d2(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b0.Buf16(dG+1),this.heap=new b0.Buf16(2*B4+1),d2(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b0.Buf16(2*B4+1),d2(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 wq(Q){var q;if(!Q||!Q.state)return i2(Q,e0);if(Q.total_in=Q.total_out=0,Q.data_type=yG,q=Q.state,q.pending=0,q.pending_out=0,q.wrap<0)q.wrap=-q.wrap;return q.status=q.wrap?j8:G1,Q.adler=q.wrap===2?0:1,q.last_flush=Z1,t0._tr_init(q),w2}function Pq(Q){var q=wq(Q);if(q===w2)sG(Q.state);return q}function eG(Q,q){if(!Q||!Q.state)return e0;if(Q.state.wrap!==2)return e0;return Q.state.gzhead=q,w2}function Lq(Q,q,$,X,Y,J){if(!Q)return e0;var K=1;if(q===vG)q=6;if(X<0)K=0,X=-X;else if(X>15)K=2,X-=16;if(Y<1||Y>fG||$!==F8||X<8||X>15||q<0||q>9||J<0||J>kG)return i2(Q,e0);if(X===8)X=9;var U=new tG;return Q.state=U,U.strm=Q,U.wrap=K,U.gzhead=null,U.w_bits=X,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=Y+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+H0-1)/H0),U.window=new b0.Buf8(U.w_size*2),U.head=new b0.Buf16(U.hash_size),U.prev=new b0.Buf16(U.w_size),U.lit_bufsize=1<<Y+6,U.pending_buf_size=U.lit_bufsize*4,U.pending_buf=new b0.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=q,U.strategy=J,U.method=$,Pq(Q)}function QW(Q,q){return Lq(Q,q,F8,hG,_G,gG)}function qW(Q,q){var $,X,Y,J;if(!Q||!Q.state||q>Zq||q<0)return Q?i2(Q,e0):e0;if(X=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||X.status===C6&&q!==o2)return i2(Q,Q.avail_out===0?G4:e0);if(X.strm=Q,$=X.last_flush,X.last_flush=q,X.status===j8)if(X.wrap===2)if(Q.adler=0,M0(X,31),M0(X,139),M0(X,8),!X.gzhead)M0(X,0),M0(X,0),M0(X,0),M0(X,0),M0(X,0),M0(X,X.level===9?2:X.strategy>=G8||X.level<2?4:0),M0(X,iG),X.status=G1;else{if(M0(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)),M0(X,X.gzhead.time&255),M0(X,X.gzhead.time>>8&255),M0(X,X.gzhead.time>>16&255),M0(X,X.gzhead.time>>24&255),M0(X,X.level===9?2:X.strategy>=G8||X.level<2?4:0),M0(X,X.gzhead.os&255),X.gzhead.extra&&X.gzhead.extra.length)M0(X,X.gzhead.extra.length&255),M0(X,X.gzhead.extra.length>>8&255);if(X.gzhead.hcrc)Q.adler=p2(Q.adler,X.pending_buf,X.pending,0);X.gzindex=0,X.status=Z4}else{var K=F8+(X.w_bits-8<<4)<<8,U=-1;if(X.strategy>=G8||X.level<2)U=0;else if(X.level<6)U=1;else if(X.level===6)U=2;else U=3;if(K|=U<<6,X.strstart!==0)K|=lG;if(K+=31-K%31,X.status=G1,L6(X,K),X.strstart!==0)L6(X,Q.adler>>>16),L6(X,Q.adler&65535);Q.adler=1}if(X.status===Z4)if(X.gzhead.extra){Y=X.pending;while(X.gzindex<(X.gzhead.extra.length&65535)){if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size)break}M0(X,X.gzhead.extra[X.gzindex]&255),X.gzindex++}if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(X.gzindex===X.gzhead.extra.length)X.gzindex=0,X.status=W8}else X.status=W8;if(X.status===W8)if(X.gzhead.name){Y=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size){J=1;break}}if(X.gzindex<X.gzhead.name.length)J=X.gzhead.name.charCodeAt(X.gzindex++)&255;else J=0;M0(X,J)}while(J!==0);if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(J===0)X.gzindex=0,X.status=B8}else X.status=B8;if(X.status===B8)if(X.gzhead.comment){Y=X.pending;do{if(X.pending===X.pending_buf_size){if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(m2(Q),Y=X.pending,X.pending===X.pending_buf_size){J=1;break}}if(X.gzindex<X.gzhead.comment.length)J=X.gzhead.comment.charCodeAt(X.gzindex++)&255;else J=0;M0(X,J)}while(J!==0);if(X.gzhead.hcrc&&X.pending>Y)Q.adler=p2(Q.adler,X.pending_buf,X.pending-Y,Y);if(J===0)X.status=Z8}else X.status=Z8;if(X.status===Z8)if(X.gzhead.hcrc){if(X.pending+2>X.pending_buf_size)m2(Q);if(X.pending+2<=X.pending_buf_size)M0(X,Q.adler&255),M0(X,Q.adler>>8&255),Q.adler=0,X.status=G1}else X.status=G1;if(X.pending!==0){if(m2(Q),Q.avail_out===0)return X.last_flush=-1,w2}else if(Q.avail_in===0&&jq(q)<=jq($)&&q!==o2)return i2(Q,G4);if(X.status===C6&&Q.avail_in!==0)return i2(Q,G4);if(Q.avail_in!==0||X.lookahead!==0||q!==Z1&&X.status!==C6){var G=X.strategy===G8?aG(X,q):X.strategy===SG?rG(X,q):f1[X.level].func(X,q);if(G===W1||G===h1)X.status=C6;if(G===T0||G===W1){if(Q.avail_out===0)X.last_flush=-1;return w2}if(G===I6){if(q===RG)t0._tr_align(X);else if(q!==Zq){if(t0._tr_stored_block(X,0,0,!1),q===xG){if(d2(X.head),X.lookahead===0)X.strstart=0,X.block_start=0,X.insert=0}}if(m2(Q),Q.avail_out===0)return X.last_flush=-1,w2}}if(q!==o2)return w2;if(X.wrap<=0)return Fq;if(X.wrap===2)M0(X,Q.adler&255),M0(X,Q.adler>>8&255),M0(X,Q.adler>>16&255),M0(X,Q.adler>>24&255),M0(X,Q.total_in&255),M0(X,Q.total_in>>8&255),M0(X,Q.total_in>>16&255),M0(X,Q.total_in>>24&255);else L6(X,Q.adler>>>16),L6(X,Q.adler&65535);if(m2(Q),X.wrap>0)X.wrap=-X.wrap;return X.pending!==0?w2:Fq}function $W(Q){var q;if(!Q||!Q.state)return e0;if(q=Q.state.status,q!==j8&&q!==Z4&&q!==W8&&q!==B8&&q!==Z8&&q!==G1&&q!==C6)return i2(Q,e0);return Q.state=null,q===G1?i2(Q,TG):w2}function XW(Q,q){var $=q.length,X,Y,J,K,U,G,V,z;if(!Q||!Q.state)return e0;if(X=Q.state,K=X.wrap,K===2||K===1&&X.status!==j8||X.lookahead)return e0;if(K===1)Q.adler=Hq(Q.adler,q,$,0);if(X.wrap=0,$>=X.w_size){if(K===0)d2(X.head),X.strstart=0,X.block_start=0,X.insert=0;z=new b0.Buf8(X.w_size),b0.arraySet(z,q,$-X.w_size,X.w_size,0),q=z,$=X.w_size}U=Q.avail_in,G=Q.next_in,V=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=q,B1(X);while(X.lookahead>=H0){Y=X.strstart,J=X.lookahead-(H0-1);do X.ins_h=(X.ins_h<<X.hash_shift^X.window[Y+H0-1])&X.hash_mask,X.prev[Y&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=Y,Y++;while(--J);X.strstart=Y,X.lookahead=H0-1,B1(X)}return X.strstart+=X.lookahead,X.block_start=X.strstart,X.insert=X.lookahead,X.lookahead=0,X.match_length=X.prev_length=H0-1,X.match_available=0,Q.next_in=G,Q.input=V,Q.avail_in=U,X.wrap=K,w2}YW.deflateInit=QW;YW.deflateInit2=Lq;YW.deflateReset=Pq;YW.deflateResetKeep=wq;YW.deflateSetHeader=eG;YW.deflate=qW;YW.deflateEnd=$W;YW.deflateSetDictionary=XW;YW.deflateInfo="pako deflate (from Nodeca project)"});var F4=k((FW)=>{var H8=v2(),Iq=!0,Nq=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){Iq=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){Nq=!1}var N6=new H8.Buf8(256);for(P2=0;P2<256;P2++)N6[P2]=P2>=252?6:P2>=248?5:P2>=240?4:P2>=224?3:P2>=192?2:1;var P2;N6[254]=N6[254]=1;FW.string2buf=function(Q){var q,$,X,Y,J,K=Q.length,U=0;for(Y=0;Y<K;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<K){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}U+=$<128?1:$<2048?2:$<65536?3:4}q=new H8.Buf8(U);for(J=0,Y=0;J<U;Y++){if($=Q.charCodeAt(Y),($&64512)===55296&&Y+1<K){if(X=Q.charCodeAt(Y+1),(X&64512)===56320)$=65536+($-55296<<10)+(X-56320),Y++}if($<128)q[J++]=$;else if($<2048)q[J++]=192|$>>>6,q[J++]=128|$&63;else if($<65536)q[J++]=224|$>>>12,q[J++]=128|$>>>6&63,q[J++]=128|$&63;else q[J++]=240|$>>>18,q[J++]=128|$>>>12&63,q[J++]=128|$>>>6&63,q[J++]=128|$&63}return q};function Dq(Q,q){if(q<65534){if(Q.subarray&&Nq||!Q.subarray&&Iq)return String.fromCharCode.apply(null,H8.shrinkBuf(Q,q))}var $="";for(var X=0;X<q;X++)$+=String.fromCharCode(Q[X]);return $}FW.buf2binstring=function(Q){return Dq(Q,Q.length)};FW.binstring2buf=function(Q){var q=new H8.Buf8(Q.length);for(var $=0,X=q.length;$<X;$++)q[$]=Q.charCodeAt($);return q};FW.buf2string=function(Q,q){var $,X,Y,J,K=q||Q.length,U=Array(K*2);for(X=0,$=0;$<K;){if(Y=Q[$++],Y<128){U[X++]=Y;continue}if(J=N6[Y],J>4){U[X++]=65533,$+=J-1;continue}Y&=J===2?31:J===3?15:7;while(J>1&&$<K)Y=Y<<6|Q[$++]&63,J--;if(J>1){U[X++]=65533;continue}if(Y<65536)U[X++]=Y;else Y-=65536,U[X++]=55296|Y>>10&1023,U[X++]=56320|Y&1023}return Dq(U,X)};FW.utf8border=function(Q,q){var $;if(q=q||Q.length,q>Q.length)q=Q.length;$=q-1;while($>=0&&(Q[$]&192)===128)$--;if($<0)return q;if($===0)return q;return $+N6[Q[$]]>q?$:q}});var j4=k((NP,Aq)=>{function LW(){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}Aq.exports=LW});var Tq=k((xW)=>{var D6=Cq(),A6=v2(),M4=F4(),w4=z8(),CW=j4(),xq=Object.prototype.toString,IW=0,H4=4,_1=0,Oq=1,Rq=2,NW=-1,DW=0,AW=8;function F1(Q){if(!(this instanceof F1))return new F1(Q);this.options=A6.assign({level:NW,method:AW,chunkSize:16384,windowBits:15,memLevel:8,strategy:DW,to:""},Q||{});var q=this.options;if(q.raw&&q.windowBits>0)q.windowBits=-q.windowBits;else if(q.gzip&&q.windowBits>0&&q.windowBits<16)q.windowBits+=16;this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new CW,this.strm.avail_out=0;var $=D6.deflateInit2(this.strm,q.level,q.method,q.windowBits,q.memLevel,q.strategy);if($!==_1)throw Error(w4[$]);if(q.header)D6.deflateSetHeader(this.strm,q.header);if(q.dictionary){var X;if(typeof q.dictionary==="string")X=M4.string2buf(q.dictionary);else if(xq.call(q.dictionary)==="[object ArrayBuffer]")X=new Uint8Array(q.dictionary);else X=q.dictionary;if($=D6.deflateSetDictionary(this.strm,X),$!==_1)throw Error(w4[$]);this._dict_set=!0}}F1.prototype.push=function(Q,q){var $=this.strm,X=this.options.chunkSize,Y,J;if(this.ended)return!1;if(J=q===~~q?q:q===!0?H4:IW,typeof Q==="string")$.input=M4.string2buf(Q);else if(xq.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 A6.Buf8(X),$.next_out=0,$.avail_out=X;if(Y=D6.deflate($,J),Y!==Oq&&Y!==_1)return this.onEnd(Y),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(J===H4||J===Rq))if(this.options.to==="string")this.onData(M4.buf2binstring(A6.shrinkBuf($.output,$.next_out)));else this.onData(A6.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&Y!==Oq);if(J===H4)return Y=D6.deflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===_1;if(J===Rq)return this.onEnd(_1),$.avail_out=0,!0;return!0};F1.prototype.onData=function(Q){this.chunks.push(Q)};F1.prototype.onEnd=function(Q){if(Q===_1)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=A6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function P4(Q,q){var $=new F1(q);if($.push(Q,!0),$.err)throw $.msg||w4[$.err];return $.result}function OW(Q,q){return q=q||{},q.raw=!0,P4(Q,q)}function RW(Q,q){return q=q||{},q.gzip=!0,P4(Q,q)}xW.Deflate=F1;xW.deflate=P4;xW.deflateRaw=OW;xW.gzip=RW});var Eq=k((AP,vq)=>{var M8=30,kW=12;vq.exports=function(q,$){var X,Y,J,K,U,G,V,z,H,j,Z,h,g,C,N,W,M,w,I,f,E,d,R,x,D;X=q.state,Y=q.next_in,x=q.input,J=Y+(q.avail_in-5),K=q.next_out,D=q.output,U=K-($-q.avail_out),G=K+(q.avail_out-257),V=X.dmax,z=X.wsize,H=X.whave,j=X.wnext,Z=X.window,h=X.hold,g=X.bits,C=X.lencode,N=X.distcode,W=(1<<X.lenbits)-1,M=(1<<X.distbits)-1;Q:do{if(g<15)h+=x[Y++]<<g,g+=8,h+=x[Y++]<<g,g+=8;w=C[h&W];q:for(;;){if(I=w>>>24,h>>>=I,g-=I,I=w>>>16&255,I===0)D[K++]=w&65535;else if(I&16){if(f=w&65535,I&=15,I){if(g<I)h+=x[Y++]<<g,g+=8;f+=h&(1<<I)-1,h>>>=I,g-=I}if(g<15)h+=x[Y++]<<g,g+=8,h+=x[Y++]<<g,g+=8;w=N[h&M];$:for(;;){if(I=w>>>24,h>>>=I,g-=I,I=w>>>16&255,I&16){if(E=w&65535,I&=15,g<I){if(h+=x[Y++]<<g,g+=8,g<I)h+=x[Y++]<<g,g+=8}if(E+=h&(1<<I)-1,E>V){q.msg="invalid distance too far back",X.mode=M8;break Q}if(h>>>=I,g-=I,I=K-U,E>I){if(I=E-I,I>H){if(X.sane){q.msg="invalid distance too far back",X.mode=M8;break Q}}if(d=0,R=Z,j===0){if(d+=z-I,I<f){f-=I;do D[K++]=Z[d++];while(--I);d=K-E,R=D}}else if(j<I){if(d+=z+j-I,I-=j,I<f){f-=I;do D[K++]=Z[d++];while(--I);if(d=0,j<f){I=j,f-=I;do D[K++]=Z[d++];while(--I);d=K-E,R=D}}}else if(d+=j-I,I<f){f-=I;do D[K++]=Z[d++];while(--I);d=K-E,R=D}while(f>2)D[K++]=R[d++],D[K++]=R[d++],D[K++]=R[d++],f-=3;if(f){if(D[K++]=R[d++],f>1)D[K++]=R[d++]}}else{d=K-E;do D[K++]=D[d++],D[K++]=D[d++],D[K++]=D[d++],f-=3;while(f>2);if(f){if(D[K++]=D[d++],f>1)D[K++]=D[d++]}}}else if((I&64)===0){w=N[(w&65535)+(h&(1<<I)-1)];continue $}else{q.msg="invalid distance code",X.mode=M8;break Q}break}}else if((I&64)===0){w=C[(w&65535)+(h&(1<<I)-1)];continue q}else if(I&32){X.mode=kW;break Q}else{q.msg="invalid literal/length code",X.mode=M8;break Q}break}}while(Y<J&&K<G);f=g>>3,Y-=f,g-=f<<3,h&=(1<<g)-1,q.next_in=Y,q.next_out=K,q.avail_in=Y<J?5+(J-Y):5-(Y-J),q.avail_out=K<G?257+(G-K):257-(K-G),X.hold=h,X.bits=g;return}});var _q=k((OP,hq)=>{var Sq=v2(),b1=15,kq=852,gq=592,yq=0,L4=1,fq=2,gW=[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],yW=[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],fW=[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],hW=[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];hq.exports=function(q,$,X,Y,J,K,U,G){var V=G.bits,z=0,H=0,j=0,Z=0,h=0,g=0,C=0,N=0,W=0,M=0,w,I,f,E,d,R=null,x=0,D,L=new Sq.Buf16(b1+1),S=new Sq.Buf16(b1+1),y=null,v=0,a,Q0,Y0;for(z=0;z<=b1;z++)L[z]=0;for(H=0;H<Y;H++)L[$[X+H]]++;h=V;for(Z=b1;Z>=1;Z--)if(L[Z]!==0)break;if(h>Z)h=Z;if(Z===0)return J[K++]=20971520,J[K++]=20971520,G.bits=1,0;for(j=1;j<Z;j++)if(L[j]!==0)break;if(h<j)h=j;N=1;for(z=1;z<=b1;z++)if(N<<=1,N-=L[z],N<0)return-1;if(N>0&&(q===yq||Z!==1))return-1;S[1]=0;for(z=1;z<b1;z++)S[z+1]=S[z]+L[z];for(H=0;H<Y;H++)if($[X+H]!==0)U[S[$[X+H]]++]=H;if(q===yq)R=y=U,D=19;else if(q===L4)R=gW,x-=257,y=yW,v-=257,D=256;else R=fW,y=hW,D=-1;if(M=0,H=0,z=j,d=K,g=h,C=0,f=-1,W=1<<h,E=W-1,q===L4&&W>kq||q===fq&&W>gq)return 1;for(;;){if(a=z-C,U[H]<D)Q0=0,Y0=U[H];else if(U[H]>D)Q0=y[v+U[H]],Y0=R[x+U[H]];else Q0=96,Y0=0;w=1<<z-C,I=1<<g,j=I;do I-=w,J[d+(M>>C)+I]=a<<24|Q0<<16|Y0|0;while(I!==0);w=1<<z-1;while(M&w)w>>=1;if(w!==0)M&=w-1,M+=w;else M=0;if(H++,--L[z]===0){if(z===Z)break;z=$[X+U[H]]}if(z>h&&(M&E)!==f){if(C===0)C=h;d+=j,g=z-C,N=1<<g;while(g+C<Z){if(N-=L[g+C],N<=0)break;g++,N<<=1}if(W+=1<<g,q===L4&&W>kq||q===fq&&W>gq)return 1;f=M&E,J[f]=h<<24|g<<16|d-K|0}}if(M!==0)J[d+M]=z-C<<24|4194304|0;return G.bits=h,0}});var P$=k(($B)=>{var i0=v2(),O4=V4(),L2=z4(),_W=Eq(),O6=_q(),bW=0,G$=1,W$=2,bq=4,uW=5,w8=6,j1=0,cW=1,pW=2,Q2=-2,B$=-3,R4=-4,mW=-5,uq=8,Z$=1,cq=2,pq=3,mq=4,dq=5,lq=6,iq=7,oq=8,nq=9,rq=10,C8=11,S2=12,C4=13,aq=14,I4=15,sq=16,tq=17,eq=18,Q$=19,P8=20,L8=21,q$=22,$$=23,X$=24,Y$=25,J$=26,N4=27,K$=28,U$=29,N0=30,x4=31,dW=32,lW=852,iW=592,oW=15,nW=oW;function V$(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function rW(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i0.Buf16(320),this.work=new i0.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function F$(Q){var q;if(!Q||!Q.state)return Q2;if(q=Q.state,Q.total_in=Q.total_out=q.total=0,Q.msg="",q.wrap)Q.adler=q.wrap&1;return q.mode=Z$,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new i0.Buf32(lW),q.distcode=q.distdyn=new i0.Buf32(iW),q.sane=1,q.back=-1,j1}function j$(Q){var q;if(!Q||!Q.state)return Q2;return q=Q.state,q.wsize=0,q.whave=0,q.wnext=0,F$(Q)}function H$(Q,q){var $,X;if(!Q||!Q.state)return Q2;if(X=Q.state,q<0)$=0,q=-q;else if($=(q>>4)+1,q<48)q&=15;if(q&&(q<8||q>15))return Q2;if(X.window!==null&&X.wbits!==q)X.window=null;return X.wrap=$,X.wbits=q,j$(Q)}function M$(Q,q){var $,X;if(!Q)return Q2;if(X=new rW,Q.state=X,X.window=null,$=H$(Q,q),$!==j1)Q.state=null;return $}function aW(Q){return M$(Q,nW)}var z$=!0,D4,A4;function sW(Q){if(z$){var q;D4=new i0.Buf32(512),A4=new i0.Buf32(32),q=0;while(q<144)Q.lens[q++]=8;while(q<256)Q.lens[q++]=9;while(q<280)Q.lens[q++]=7;while(q<288)Q.lens[q++]=8;O6(G$,Q.lens,0,288,D4,0,Q.work,{bits:9}),q=0;while(q<32)Q.lens[q++]=5;O6(W$,Q.lens,0,32,A4,0,Q.work,{bits:5}),z$=!1}Q.lencode=D4,Q.lenbits=9,Q.distcode=A4,Q.distbits=5}function w$(Q,q,$,X){var Y,J=Q.state;if(J.window===null)J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new i0.Buf8(J.wsize);if(X>=J.wsize)i0.arraySet(J.window,q,$-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize;else{if(Y=J.wsize-J.wnext,Y>X)Y=X;if(i0.arraySet(J.window,q,$-X,Y,J.wnext),X-=Y,X)i0.arraySet(J.window,q,$-X,X,0),J.wnext=X,J.whave=J.wsize;else{if(J.wnext+=Y,J.wnext===J.wsize)J.wnext=0;if(J.whave<J.wsize)J.whave+=Y}}return 0}function tW(Q,q){var $,X,Y,J,K,U,G,V,z,H,j,Z,h,g,C=0,N,W,M,w,I,f,E,d,R=new i0.Buf8(4),x,D,L=[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 Q2;if($=Q.state,$.mode===S2)$.mode=C4;K=Q.next_out,Y=Q.output,G=Q.avail_out,J=Q.next_in,X=Q.input,U=Q.avail_in,V=$.hold,z=$.bits,H=U,j=G,d=j1;Q:for(;;)switch($.mode){case Z$:if($.wrap===0){$.mode=C4;break}while(z<16){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if($.wrap&2&&V===35615){$.check=0,R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0),V=0,z=0,$.mode=cq;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((V&255)<<8)+(V>>8))%31){Q.msg="incorrect header check",$.mode=N0;break}if((V&15)!==uq){Q.msg="unknown compression method",$.mode=N0;break}if(V>>>=4,z-=4,E=(V&15)+8,$.wbits===0)$.wbits=E;else if(E>$.wbits){Q.msg="invalid window size",$.mode=N0;break}$.dmax=1<<E,Q.adler=$.check=1,$.mode=V&512?rq:S2,V=0,z=0;break;case cq:while(z<16){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if($.flags=V,($.flags&255)!==uq){Q.msg="unknown compression method",$.mode=N0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=N0;break}if($.head)$.head.text=V>>8&1;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0,$.mode=pq;case pq:while(z<32){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if($.head)$.head.time=V;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,R[2]=V>>>16&255,R[3]=V>>>24&255,$.check=L2($.check,R,4,0);V=0,z=0,$.mode=mq;case mq:while(z<16){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if($.head)$.head.xflags=V&255,$.head.os=V>>8;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0,$.mode=dq;case dq:if($.flags&1024){while(z<16){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if($.length=V,$.head)$.head.extra_len=V;if($.flags&512)R[0]=V&255,R[1]=V>>>8&255,$.check=L2($.check,R,2,0);V=0,z=0}else if($.head)$.head.extra=null;$.mode=lq;case lq:if($.flags&1024){if(Z=$.length,Z>U)Z=U;if(Z){if($.head){if(E=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);i0.arraySet($.head.extra,X,J,Z,E)}if($.flags&512)$.check=L2($.check,X,Z,J);U-=Z,J+=Z,$.length-=Z}if($.length)break Q}$.length=0,$.mode=iq;case iq:if($.flags&2048){if(U===0)break Q;Z=0;do if(E=X[J+Z++],$.head&&E&&$.length<65536)$.head.name+=String.fromCharCode(E);while(E&&Z<U);if($.flags&512)$.check=L2($.check,X,Z,J);if(U-=Z,J+=Z,E)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=oq;case oq:if($.flags&4096){if(U===0)break Q;Z=0;do if(E=X[J+Z++],$.head&&E&&$.length<65536)$.head.comment+=String.fromCharCode(E);while(E&&Z<U);if($.flags&512)$.check=L2($.check,X,Z,J);if(U-=Z,J+=Z,E)break Q}else if($.head)$.head.comment=null;$.mode=nq;case nq:if($.flags&512){while(z<16){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if(V!==($.check&65535)){Q.msg="header crc mismatch",$.mode=N0;break}V=0,z=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=S2;break;case rq:while(z<32){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}Q.adler=$.check=V$(V),V=0,z=0,$.mode=C8;case C8:if($.havedict===0)return Q.next_out=K,Q.avail_out=G,Q.next_in=J,Q.avail_in=U,$.hold=V,$.bits=z,pW;Q.adler=$.check=1,$.mode=S2;case S2:if(q===uW||q===w8)break Q;case C4:if($.last){V>>>=z&7,z-=z&7,$.mode=N4;break}while(z<3){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}switch($.last=V&1,V>>>=1,z-=1,V&3){case 0:$.mode=aq;break;case 1:if(sW($),$.mode=P8,q===w8){V>>>=2,z-=2;break Q}break;case 2:$.mode=tq;break;case 3:Q.msg="invalid block type",$.mode=N0}V>>>=2,z-=2;break;case aq:V>>>=z&7,z-=z&7;while(z<32){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if((V&65535)!==(V>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=N0;break}if($.length=V&65535,V=0,z=0,$.mode=I4,q===w8)break Q;case I4:$.mode=sq;case sq:if(Z=$.length,Z){if(Z>U)Z=U;if(Z>G)Z=G;if(Z===0)break Q;i0.arraySet(Y,X,J,Z,K),U-=Z,J+=Z,G-=Z,K+=Z,$.length-=Z;break}$.mode=S2;break;case tq:while(z<14){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if($.nlen=(V&31)+257,V>>>=5,z-=5,$.ndist=(V&31)+1,V>>>=5,z-=5,$.ncode=(V&15)+4,V>>>=4,z-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=N0;break}$.have=0,$.mode=eq;case eq:while($.have<$.ncode){while(z<3){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}$.lens[L[$.have++]]=V&7,V>>>=3,z-=3}while($.have<19)$.lens[L[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,x={bits:$.lenbits},d=O6(bW,$.lens,0,19,$.lencode,0,$.work,x),$.lenbits=x.bits,d){Q.msg="invalid code lengths set",$.mode=N0;break}$.have=0,$.mode=Q$;case Q$:while($.have<$.nlen+$.ndist){for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],N=C>>>24,W=C>>>16&255,M=C&65535,N<=z)break;if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if(M<16)V>>>=N,z-=N,$.lens[$.have++]=M;else{if(M===16){D=N+2;while(z<D){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if(V>>>=N,z-=N,$.have===0){Q.msg="invalid bit length repeat",$.mode=N0;break}E=$.lens[$.have-1],Z=3+(V&3),V>>>=2,z-=2}else if(M===17){D=N+3;while(z<D){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}V>>>=N,z-=N,E=0,Z=3+(V&7),V>>>=3,z-=3}else{D=N+7;while(z<D){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}V>>>=N,z-=N,E=0,Z=11+(V&127),V>>>=7,z-=7}if($.have+Z>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=N0;break}while(Z--)$.lens[$.have++]=E}}if($.mode===N0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=N0;break}if($.lenbits=9,x={bits:$.lenbits},d=O6(G$,$.lens,0,$.nlen,$.lencode,0,$.work,x),$.lenbits=x.bits,d){Q.msg="invalid literal/lengths set",$.mode=N0;break}if($.distbits=6,$.distcode=$.distdyn,x={bits:$.distbits},d=O6(W$,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,x),$.distbits=x.bits,d){Q.msg="invalid distances set",$.mode=N0;break}if($.mode=P8,q===w8)break Q;case P8:$.mode=L8;case L8:if(U>=6&&G>=258){if(Q.next_out=K,Q.avail_out=G,Q.next_in=J,Q.avail_in=U,$.hold=V,$.bits=z,_W(Q,j),K=Q.next_out,Y=Q.output,G=Q.avail_out,J=Q.next_in,X=Q.input,U=Q.avail_in,V=$.hold,z=$.bits,$.mode===S2)$.back=-1;break}$.back=0;for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],N=C>>>24,W=C>>>16&255,M=C&65535,N<=z)break;if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if(W&&(W&240)===0){w=N,I=W,f=M;for(;;){if(C=$.lencode[f+((V&(1<<w+I)-1)>>w)],N=C>>>24,W=C>>>16&255,M=C&65535,w+N<=z)break;if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}V>>>=w,z-=w,$.back+=w}if(V>>>=N,z-=N,$.back+=N,$.length=M,W===0){$.mode=J$;break}if(W&32){$.back=-1,$.mode=S2;break}if(W&64){Q.msg="invalid literal/length code",$.mode=N0;break}$.extra=W&15,$.mode=q$;case q$:if($.extra){D=$.extra;while(z<D){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}$.length+=V&(1<<$.extra)-1,V>>>=$.extra,z-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=$$;case $$:for(;;){if(C=$.distcode[V&(1<<$.distbits)-1],N=C>>>24,W=C>>>16&255,M=C&65535,N<=z)break;if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if((W&240)===0){w=N,I=W,f=M;for(;;){if(C=$.distcode[f+((V&(1<<w+I)-1)>>w)],N=C>>>24,W=C>>>16&255,M=C&65535,w+N<=z)break;if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}V>>>=w,z-=w,$.back+=w}if(V>>>=N,z-=N,$.back+=N,W&64){Q.msg="invalid distance code",$.mode=N0;break}$.offset=M,$.extra=W&15,$.mode=X$;case X$:if($.extra){D=$.extra;while(z<D){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}$.offset+=V&(1<<$.extra)-1,V>>>=$.extra,z-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=N0;break}$.mode=Y$;case Y$:if(G===0)break Q;if(Z=j-G,$.offset>Z){if(Z=$.offset-Z,Z>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=N0;break}}if(Z>$.wnext)Z-=$.wnext,h=$.wsize-Z;else h=$.wnext-Z;if(Z>$.length)Z=$.length;g=$.window}else g=Y,h=K-$.offset,Z=$.length;if(Z>G)Z=G;G-=Z,$.length-=Z;do Y[K++]=g[h++];while(--Z);if($.length===0)$.mode=L8;break;case J$:if(G===0)break Q;Y[K++]=$.length,G--,$.mode=L8;break;case N4:if($.wrap){while(z<32){if(U===0)break Q;U--,V|=X[J++]<<z,z+=8}if(j-=G,Q.total_out+=j,$.total+=j,j)Q.adler=$.check=$.flags?L2($.check,Y,j,K-j):O4($.check,Y,j,K-j);if(j=G,($.flags?V:V$(V))!==$.check){Q.msg="incorrect data check",$.mode=N0;break}V=0,z=0}$.mode=K$;case K$:if($.wrap&&$.flags){while(z<32){if(U===0)break Q;U--,V+=X[J++]<<z,z+=8}if(V!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=N0;break}V=0,z=0}$.mode=U$;case U$:d=cW;break Q;case N0:d=B$;break Q;case x4:return R4;case dW:default:return Q2}if(Q.next_out=K,Q.avail_out=G,Q.next_in=J,Q.avail_in=U,$.hold=V,$.bits=z,$.wsize||j!==Q.avail_out&&$.mode<N0&&($.mode<N4||q!==bq)){if(w$(Q,Q.output,Q.next_out,j-Q.avail_out))return $.mode=x4,R4}if(H-=Q.avail_in,j-=Q.avail_out,Q.total_in+=H,Q.total_out+=j,$.total+=j,$.wrap&&j)Q.adler=$.check=$.flags?L2($.check,Y,j,Q.next_out-j):O4($.check,Y,j,Q.next_out-j);if(Q.data_type=$.bits+($.last?64:0)+($.mode===S2?128:0)+($.mode===P8||$.mode===I4?256:0),(H===0&&j===0||q===bq)&&d===j1)d=mW;return d}function eW(Q){if(!Q||!Q.state)return Q2;var q=Q.state;if(q.window)q.window=null;return Q.state=null,j1}function QB(Q,q){var $;if(!Q||!Q.state)return Q2;if($=Q.state,($.wrap&2)===0)return Q2;return $.head=q,q.done=!1,j1}function qB(Q,q){var $=q.length,X,Y,J;if(!Q||!Q.state)return Q2;if(X=Q.state,X.wrap!==0&&X.mode!==C8)return Q2;if(X.mode===C8){if(Y=1,Y=O4(Y,q,$,0),Y!==X.check)return B$}if(J=w$(Q,q,$,$),J)return X.mode=x4,R4;return X.havedict=1,j1}$B.inflateReset=j$;$B.inflateReset2=H$;$B.inflateResetKeep=F$;$B.inflateInit=aW;$B.inflateInit2=M$;$B.inflate=tW;$B.inflateEnd=eW;$B.inflateGetHeader=QB;$B.inflateSetDictionary=qB;$B.inflateInfo="pako inflate (from Nodeca project)"});var T4=k((xP,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 I$=k((TP,C$)=>{function ZB(){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}C$.exports=ZB});var D$=k((MB)=>{var u1=P$(),R6=v2(),I8=F4(),x0=T4(),v4=z8(),FB=j4(),jB=I$(),N$=Object.prototype.toString;function H1(Q){if(!(this instanceof H1))return new H1(Q);this.options=R6.assign({chunkSize:16384,windowBits:0,to:""},Q||{});var q=this.options;if(q.raw&&q.windowBits>=0&&q.windowBits<16){if(q.windowBits=-q.windowBits,q.windowBits===0)q.windowBits=-15}if(q.windowBits>=0&&q.windowBits<16&&!(Q&&Q.windowBits))q.windowBits+=32;if(q.windowBits>15&&q.windowBits<48){if((q.windowBits&15)===0)q.windowBits|=15}this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new FB,this.strm.avail_out=0;var $=u1.inflateInit2(this.strm,q.windowBits);if($!==x0.Z_OK)throw Error(v4[$]);if(this.header=new jB,u1.inflateGetHeader(this.strm,this.header),q.dictionary){if(typeof q.dictionary==="string")q.dictionary=I8.string2buf(q.dictionary);else if(N$.call(q.dictionary)==="[object ArrayBuffer]")q.dictionary=new Uint8Array(q.dictionary);if(q.raw){if($=u1.inflateSetDictionary(this.strm,q.dictionary),$!==x0.Z_OK)throw Error(v4[$])}}}H1.prototype.push=function(Q,q){var $=this.strm,X=this.options.chunkSize,Y=this.options.dictionary,J,K,U,G,V,z=!1;if(this.ended)return!1;if(K=q===~~q?q:q===!0?x0.Z_FINISH:x0.Z_NO_FLUSH,typeof Q==="string")$.input=I8.binstring2buf(Q);else if(N$.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 R6.Buf8(X),$.next_out=0,$.avail_out=X;if(J=u1.inflate($,x0.Z_NO_FLUSH),J===x0.Z_NEED_DICT&&Y)J=u1.inflateSetDictionary(this.strm,Y);if(J===x0.Z_BUF_ERROR&&z===!0)J=x0.Z_OK,z=!1;if(J!==x0.Z_STREAM_END&&J!==x0.Z_OK)return this.onEnd(J),this.ended=!0,!1;if($.next_out){if($.avail_out===0||J===x0.Z_STREAM_END||$.avail_in===0&&(K===x0.Z_FINISH||K===x0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(U=I8.utf8border($.output,$.next_out),G=$.next_out-U,V=I8.buf2string($.output,U),$.next_out=G,$.avail_out=X-G,G)R6.arraySet($.output,$.output,U,G,0);this.onData(V)}else this.onData(R6.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)z=!0}while(($.avail_in>0||$.avail_out===0)&&J!==x0.Z_STREAM_END);if(J===x0.Z_STREAM_END)K=x0.Z_FINISH;if(K===x0.Z_FINISH)return J=u1.inflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===x0.Z_OK;if(K===x0.Z_SYNC_FLUSH)return this.onEnd(x0.Z_OK),$.avail_out=0,!0;return!0};H1.prototype.onData=function(Q){this.chunks.push(Q)};H1.prototype.onEnd=function(Q){if(Q===x0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=R6.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function E4(Q,q){var $=new H1(q);if($.push(Q,!0),$.err)throw $.msg||v4[$.err];return $.result}function HB(Q,q){return q=q||{},q.raw=!0,E4(Q,q)}MB.Inflate=H1;MB.inflate=E4;MB.inflateRaw=HB;MB.ungzip=E4});var R$=k((EP,O$)=>{var IB=v2().assign,NB=Tq(),DB=D$(),AB=T4(),A$={};IB(A$,NB,DB,AB);O$.exports=A$});var T$=k((TB)=>{var OB=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",RB=R$(),x$=A0(),N8=l0(),xB=OB?"uint8array":"array";TB.magic="\b\x00";function M1(Q,q){N8.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=q,this.meta={}}x$.inherits(M1,N8);M1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(x$.transformTo(xB,Q.data),!1)};M1.prototype.flush=function(){if(N8.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};M1.prototype.cleanUp=function(){N8.prototype.cleanUp.call(this),this._pako=null};M1.prototype._createPako=function(){this._pako=new RB[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(q){Q.push({data:q,meta:Q.meta})}};TB.compressWorker=function(Q){return new M1("Deflate",Q)};TB.uncompressWorker=function(){return new M1("Inflate",{})}});var S4=k((kB)=>{var v$=l0();kB.STORE={magic:"\x00\x00",compressWorker:function(){return new v$("STORE compression")},uncompressWorker:function(){return new v$("STORE decompression")}};kB.DEFLATE=T$()});var k4=k((fB)=>{fB.LOCAL_FILE_HEADER="PK\x03\x04";fB.CENTRAL_FILE_HEADER="PK\x01\x02";fB.CENTRAL_DIRECTORY_END="PK\x05\x06";fB.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";fB.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";fB.DATA_DESCRIPTOR="PK\x07\b"});var g$=k((yP,k$)=>{var c1=A0(),p1=l0(),g4=E1(),E$=J8(),D8=k4(),L0=function(Q,q){var $="",X;for(X=0;X<q;X++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},mB=function(Q,q){var $=Q;if(!Q)$=q?16893:33204;return($&65535)<<16},dB=function(Q){return(Q||0)&63},S$=function(Q,q,$,X,Y,J){var{file:K,compression:U}=Q,G=J!==g4.utf8encode,V=c1.transformTo("string",J(K.name)),z=c1.transformTo("string",g4.utf8encode(K.name)),H=K.comment,j=c1.transformTo("string",J(H)),Z=c1.transformTo("string",g4.utf8encode(H)),h=z.length!==K.name.length,g=Z.length!==H.length,C,N,W="",M="",w="",I=K.dir,f=K.date,E={crc32:0,compressedSize:0,uncompressedSize:0};if(!q||$)E.crc32=Q.crc32,E.compressedSize=Q.compressedSize,E.uncompressedSize=Q.uncompressedSize;var d=0;if(q)d|=8;if(!G&&(h||g))d|=2048;var R=0,x=0;if(I)R|=16;if(Y==="UNIX")x=798,R|=mB(K.unixPermissions,I);else x=20,R|=dB(K.dosPermissions,I);if(C=f.getUTCHours(),C=C<<6,C=C|f.getUTCMinutes(),C=C<<5,C=C|f.getUTCSeconds()/2,N=f.getUTCFullYear()-1980,N=N<<4,N=N|f.getUTCMonth()+1,N=N<<5,N=N|f.getUTCDate(),h)M=L0(1,1)+L0(E$(V),4)+z,W+="up"+L0(M.length,2)+M;if(g)w=L0(1,1)+L0(E$(j),4)+Z,W+="uc"+L0(w.length,2)+w;var D="";D+=`
3
- \x00`,D+=L0(d,2),D+=U.magic,D+=L0(C,2),D+=L0(N,2),D+=L0(E.crc32,4),D+=L0(E.compressedSize,4),D+=L0(E.uncompressedSize,4),D+=L0(V.length,2),D+=L0(W.length,2);var L=D8.LOCAL_FILE_HEADER+D+V+W,S=D8.CENTRAL_FILE_HEADER+L0(x,2)+D+L0(j.length,2)+"\x00\x00\x00\x00"+L0(R,4)+L0(X,4)+V+W+j;return{fileRecord:L,dirRecord:S}},lB=function(Q,q,$,X,Y){var J="",K=c1.transformTo("string",Y(X));return J=D8.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+L0(Q,2)+L0(Q,2)+L0(q,4)+L0($,4)+L0(K.length,2)+K,J},iB=function(Q){var q="";return q=D8.DATA_DESCRIPTOR+L0(Q.crc32,4)+L0(Q.compressedSize,4)+L0(Q.uncompressedSize,4),q};function K2(Q,q,$,X){p1.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=q,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=[]}c1.inherits(K2,p1);K2.prototype.push=function(Q){var q=Q.meta.percent||0,$=this.entriesCount,X=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,p1.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(q+100*($-X-1))/$:100}})};K2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var q=this.streamFiles&&!Q.file.dir;if(q){var $=S$(Q,q,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};K2.prototype.closedSource=function(Q){this.accumulate=!1;var q=this.streamFiles&&!Q.file.dir,$=S$(Q,q,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),q)this.push({data:iB(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};K2.prototype.flush=function(){var Q=this.bytesWritten;for(var q=0;q<this.dirRecords.length;q++)this.push({data:this.dirRecords[q],meta:{percent:100}});var $=this.bytesWritten-Q,X=lB(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})};K2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};K2.prototype.registerPrevious=function(Q){this._sources.push(Q);var q=this;return Q.on("data",function($){q.processChunk($)}),Q.on("end",function(){if(q.closedSource(q.previous.streamInfo),q._sources.length)q.prepareNextSource();else q.end()}),Q.on("error",function($){q.error($)}),this};K2.prototype.resume=function(){if(!p1.prototype.resume.call(this))return!1;if(!this.previous&&this._sources.length)return this.prepareNextSource(),!0;if(!this.previous&&!this._sources.length&&!this.generatedError)return this.end(),!0};K2.prototype.error=function(Q){var q=this._sources;if(!p1.prototype.error.call(this,Q))return!1;for(var $=0;$<q.length;$++)try{q[$].error(Q)}catch(X){}return!0};K2.prototype.lock=function(){p1.prototype.lock.call(this);var Q=this._sources;for(var q=0;q<Q.length;q++)Q[q].lock()};k$.exports=K2});var y$=k((aB)=>{var oB=S4(),nB=g$(),rB=function(Q,q){var $=Q||q,X=oB[$];if(!X)throw Error($+" is not a valid compression method !");return X};aB.generateWorker=function(Q,q,$){var X=new nB(q.streamFiles,$,q.platform,q.encodeFileName),Y=0;try{Q.forEach(function(J,K){Y++;var U=rB(K.options.compression,q.compression),G=K.options.compressionOptions||q.compressionOptions||{},V=K.dir,z=K.date;K._compressWorker(U,G).withStreamInfo("file",{name:J,dir:V,date:z,comment:K.comment||"",unixPermissions:K.unixPermissions,dosPermissions:K.dosPermissions}).pipe(X)}),X.entriesCount=Y}catch(J){X.error(J)}return X}});var h$=k((hP,f$)=>{var tB=A0(),A8=l0();function x6(Q,q){A8.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(q)}tB.inherits(x6,A8);x6.prototype._bindStream=function(Q){var q=this;this._stream=Q,Q.pause(),Q.on("data",function($){q.push({data:$,meta:{percent:0}})}).on("error",function($){if(q.isPaused)this.generatedError=$;else q.error($)}).on("end",function(){if(q.isPaused)q._upstreamEnded=!0;else q.end()})};x6.prototype.pause=function(){if(!A8.prototype.pause.call(this))return!1;return this._stream.pause(),!0};x6.prototype.resume=function(){if(!A8.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};f$.exports=x6});var o$=k((_P,i$)=>{var eB=E1(),T6=A0(),c$=l0(),QZ=_5(),p$=b5(),_$=K8(),qZ=b9(),$Z=y$(),b$=K6(),XZ=h$(),m$=function(Q,q,$){var X=T6.getTypeOf(q),Y,J=T6.extend($||{},p$);if(J.date=J.date||new Date,J.compression!==null)J.compression=J.compression.toUpperCase();if(typeof J.unixPermissions==="string")J.unixPermissions=parseInt(J.unixPermissions,8);if(J.unixPermissions&&J.unixPermissions&16384)J.dir=!0;if(J.dosPermissions&&J.dosPermissions&16)J.dir=!0;if(J.dir)Q=d$(Q);if(J.createFolders&&(Y=YZ(Q)))l$.call(this,Y,!0);var K=X==="string"&&J.binary===!1&&J.base64===!1;if(!$||typeof $.binary>"u")J.binary=!K;var U=q instanceof _$&&q.uncompressedSize===0;if(U||J.dir||!q||q.length===0)J.base64=!1,J.binary=!0,q="",J.compression="STORE",X="string";var G=null;if(q instanceof _$||q instanceof c$)G=q;else if(b$.isNode&&b$.isStream(q))G=new XZ(Q,q);else G=T6.prepareContent(Q,q,J.binary,J.optimizedBinaryString,J.base64);var V=new qZ(Q,G,J);this.files[Q]=V},YZ=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var q=Q.lastIndexOf("/");return q>0?Q.substring(0,q):""},d$=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},l$=function(Q,q){if(q=typeof q<"u"?q:p$.createFolders,Q=d$(Q),!this.files[Q])m$.call(this,Q,null,{dir:!0,createFolders:q});return this.files[Q]};function u$(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var JZ={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var q,$,X;for(q in this.files)if(X=this.files[q],$=q.slice(this.root.length,q.length),$&&q.slice(0,this.root.length)===this.root)Q($,X)},filter:function(Q){var q=[];return this.forEach(function($,X){if(Q($,X))q.push(X)}),q},file:function(Q,q,$){if(arguments.length===1)if(u$(Q)){var X=Q;return this.filter(function(J,K){return!K.dir&&X.test(J)})}else{var Y=this.files[this.root+Q];if(Y&&!Y.dir)return Y;else return null}else Q=this.root+Q,m$.call(this,Q,q,$);return this},folder:function(Q){if(!Q)return this;if(u$(Q))return this.filter(function(Y,J){return J.dir&&Q.test(Y)});var q=this.root+Q,$=l$.call(this,q),X=this.clone();return X.root=$.name,X},remove:function(Q){Q=this.root+Q;var q=this.files[Q];if(!q){if(Q.slice(-1)!=="/")Q+="/";q=this.files[Q]}if(q&&!q.dir)delete this.files[Q];else{var $=this.filter(function(Y,J){return J.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 q,$={};try{if($=T6.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:eB.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(T6.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var X=$.comment||this.comment||"";q=$Z.generateWorker(this,$,X)}catch(Y){q=new c$("error"),q.error(Y)}return new QZ(q,$.type||"string",$.mimeType)},generateAsync:function(Q,q){return this.generateInternalStream(Q).accumulate(q)},generateNodeStream:function(Q,q){if(Q=Q||{},!Q.type)Q.type="nodebuffer";return this.generateInternalStream(Q).toNodejsStream(q)}};i$.exports=JZ});var y4=k((bP,r$)=>{var KZ=A0();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 q=0,$;this.checkOffset(Q);for($=this.index+Q-1;$>=this.index;$--)q=(q<<8)+this.byteAt($);return this.index+=Q,q},readString:function(Q){return KZ.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 f4=k((uP,s$)=>{var a$=y4(),UZ=A0();function m1(Q){a$.call(this,Q);for(var q=0;q<this.data.length;q++)Q[q]=Q[q]&255}UZ.inherits(m1,a$);m1.prototype.byteAt=function(Q){return this.data[this.zero+Q]};m1.prototype.lastIndexOfSignature=function(Q){var q=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),Y=Q.charCodeAt(3);for(var J=this.length-4;J>=0;--J)if(this.data[J]===q&&this.data[J+1]===$&&this.data[J+2]===X&&this.data[J+3]===Y)return J-this.zero;return-1};m1.prototype.readAndCheckSignature=function(Q){var q=Q.charCodeAt(0),$=Q.charCodeAt(1),X=Q.charCodeAt(2),Y=Q.charCodeAt(3),J=this.readData(4);return q===J[0]&&$===J[1]&&X===J[2]&&Y===J[3]};m1.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return[];var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};s$.exports=m1});var QX=k((cP,e$)=>{var t$=y4(),VZ=A0();function d1(Q){t$.call(this,Q)}VZ.inherits(d1,t$);d1.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};d1.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};d1.prototype.readAndCheckSignature=function(Q){var q=this.readData(4);return Q===q};d1.prototype.readData=function(Q){this.checkOffset(Q);var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};e$.exports=d1});var _4=k((pP,$X)=>{var qX=f4(),zZ=A0();function h4(Q){qX.call(this,Q)}zZ.inherits(h4,qX);h4.prototype.readData=function(Q){if(this.checkOffset(Q),Q===0)return new Uint8Array(0);var q=this.data.subarray(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};$X.exports=h4});var JX=k((mP,YX)=>{var XX=_4(),GZ=A0();function b4(Q){XX.call(this,Q)}GZ.inherits(b4,XX);b4.prototype.readData=function(Q){this.checkOffset(Q);var q=this.data.slice(this.zero+this.index,this.zero+this.index+Q);return this.index+=Q,q};YX.exports=b4});var u4=k((dP,UX)=>{var O8=A0(),KX=T2(),WZ=f4(),BZ=QX(),ZZ=JX(),FZ=_4();UX.exports=function(Q){var q=O8.getTypeOf(Q);if(O8.checkSupport(q),q==="string"&&!KX.uint8array)return new BZ(Q);if(q==="nodebuffer")return new ZZ(Q);if(KX.uint8array)return new FZ(O8.transformTo("uint8array",Q));return new WZ(O8.transformTo("array",Q))}});var WX=k((lP,GX)=>{var c4=u4(),n2=A0(),jZ=K8(),VX=J8(),R8=E1(),x8=S4(),HZ=T2(),MZ=0,wZ=3,PZ=function(Q){for(var q in x8){if(!Object.prototype.hasOwnProperty.call(x8,q))continue;if(x8[q].magic===Q)return x8[q]}return null};function zX(Q,q){this.options=Q,this.loadOptions=q}zX.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},readLocalPart:function(Q){var q,$;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(q=PZ(this.compressionMethod),q===null)throw Error("Corrupted zip : compression "+n2.pretty(this.compressionMethod)+" unknown (inner file : "+n2.transformTo("string",this.fileName)+")");this.decompressed=new jZ(this.compressedSize,this.uncompressedSize,this.crc32,q,Q.readData(this.compressedSize))},readCentralPart:function(Q){this.versionMadeBy=Q.readInt(2),Q.skip(2),this.bitFlag=Q.readInt(2),this.compressionMethod=Q.readString(2),this.date=Q.readDate(),this.crc32=Q.readInt(4),this.compressedSize=Q.readInt(4),this.uncompressedSize=Q.readInt(4);var q=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(q),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===MZ)this.dosPermissions=this.externalFileAttributes&63;if(Q===wZ)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=c4(this.extraFields[1].value);if(this.uncompressedSize===n2.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===n2.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===n2.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===n2.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var q=Q.index+this.extraFieldsLength,$,X,Y;if(!this.extraFields)this.extraFields={};while(Q.index+4<q)$=Q.readInt(2),X=Q.readInt(2),Y=Q.readData(X),this.extraFields[$]={id:$,length:X,value:Y};Q.setIndex(q)},handleUTF8:function(){var Q=HZ.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=R8.utf8decode(this.fileName),this.fileCommentStr=R8.utf8decode(this.fileComment);else{var q=this.findExtraFieldUnicodePath();if(q!==null)this.fileNameStr=q;else{var $=n2.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var Y=n2.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Y)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var q=c4(Q.value);if(q.readInt(1)!==1)return null;if(VX(this.fileName)!==q.readInt(4))return null;return R8.utf8decode(q.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var q=c4(Q.value);if(q.readInt(1)!==1)return null;if(VX(this.fileComment)!==q.readInt(4))return null;return R8.utf8decode(q.readData(Q.length-5))}return null}};GX.exports=zX});var FX=k((iP,ZX)=>{var LZ=u4(),k2=A0(),U2=k4(),CZ=WX(),IZ=T2();function BX(Q){this.files=[],this.loadOptions=Q}BX.prototype={checkSignature:function(Q){if(!this.reader.readAndCheckSignature(Q)){this.reader.index-=4;var q=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+k2.pretty(q)+", expected "+k2.pretty(Q)+")")}},isSignature:function(Q,q){var $=this.reader.index;this.reader.setIndex(Q);var X=this.reader.readString(4),Y=X===q;return this.reader.setIndex($),Y},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),q=IZ.uint8array?"uint8array":"array",$=k2.transformTo(q,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,q=0,$,X,Y;while(q<Q)$=this.reader.readInt(2),X=this.reader.readInt(4),Y=this.reader.readData(X),this.zip64ExtensibleData[$]={id:$,length:X,value:Y}},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,q;for(Q=0;Q<this.files.length;Q++)q=this.files[Q],this.reader.setIndex(q.localHeaderOffset),this.checkSignature(U2.LOCAL_FILE_HEADER),q.readLocalPart(this.reader),q.handleUTF8(),q.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(U2.CENTRAL_FILE_HEADER))Q=new CZ({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(U2.CENTRAL_DIRECTORY_END);if(Q<0){var q=!this.isSignature(0,U2.LOCAL_FILE_HEADER);if(q)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(U2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===k2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===k2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===k2.MAX_VALUE_16BITS||this.centralDirRecords===k2.MAX_VALUE_16BITS||this.centralDirSize===k2.MAX_VALUE_32BITS||this.centralDirOffset===k2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(U2.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(U2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,U2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(U2.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(U2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var X=this.centralDirOffset+this.centralDirSize;if(this.zip64)X+=20,X+=12+this.zip64EndOfCentralSize;var Y=$-X;if(Y>0)if(this.isSignature($,U2.CENTRAL_FILE_HEADER));else this.reader.zero=Y;else if(Y<0)throw Error("Corrupted zip: missing "+Math.abs(Y)+" bytes.")},prepareReader:function(Q){this.reader=LZ(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};ZX.exports=BX});var MX=k((oP,HX)=>{var p4=A0(),T8=x1(),NZ=E1(),DZ=FX(),AZ=p5(),jX=K6();function OZ(Q){return new T8.Promise(function(q,$){var X=Q.decompressed.getContentWorker().pipe(new AZ);X.on("error",function(Y){$(Y)}).on("end",function(){if(X.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else q()}).resume()})}HX.exports=function(Q,q){var $=this;if(q=p4.extend(q||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:NZ.utf8decode}),jX.isNode&&jX.isStream(Q))return T8.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return p4.prepareContent("the loaded zip file",Q,!0,q.optimizedBinaryString,q.base64).then(function(X){var Y=new DZ(q);return Y.load(X),Y}).then(function(Y){var J=[T8.Promise.resolve(Y)],K=Y.files;if(q.checkCRC32)for(var U=0;U<K.length;U++)J.push(OZ(K[U]));return T8.Promise.all(J)}).then(function(Y){var J=Y.shift(),K=J.files;for(var U=0;U<K.length;U++){var G=K[U],V=G.fileNameStr,z=p4.resolve(G.fileNameStr);if($.file(z,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:q.createFolders}),!G.dir)$.file(z).unsafeOriginalName=V}if(J.zipComment.length)$.comment=J.zipComment;return $})}});var PX=k((nP,wX)=>{function q2(){if(!(this instanceof q2))return new q2;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 q2;for(var q in this)if(typeof this[q]!=="function")Q[q]=this[q];return Q}}q2.prototype=o$();q2.prototype.loadAsync=MX();q2.support=T2();q2.defaults=b5();q2.version="3.10.1";q2.loadAsync=function(Q,q){return new q2().loadAsync(Q,q)};q2.external=x1();wX.exports=q2});var uX=k((i4)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var bX;(function(Q){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof i4==="object")Q(i4);else if(typeof define==="function"&&define.amd)define(function(){var q={};return Q(q),q});else Q(bX={});else Q(bX={})})(function(Q){Q.version="1.2.2";function q(){var E=0,d=Array(256);for(var R=0;R!=256;++R)E=R,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,E=E&1?-2097792136^E>>>1:E>>>1,d[R]=E;return typeof Int32Array<"u"?new Int32Array(d):d}var $=q();function X(E){var d=0,R=0,x=0,D=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(x=0;x!=256;++x)D[x]=E[x];for(x=0;x!=256;++x){R=E[x];for(d=256+x;d<4096;d+=256)R=D[d]=R>>>8^E[R&255]}var L=[];for(x=1;x!=16;++x)L[x-1]=typeof Int32Array<"u"?D.subarray(x*256,x*256+256):D.slice(x*256,x*256+256);return L}var Y=X($),J=Y[0],K=Y[1],U=Y[2],G=Y[3],V=Y[4],z=Y[5],H=Y[6],j=Y[7],Z=Y[8],h=Y[9],g=Y[10],C=Y[11],N=Y[12],W=Y[13],M=Y[14];function w(E,d){var R=d^-1;for(var x=0,D=E.length;x<D;)R=R>>>8^$[(R^E.charCodeAt(x++))&255];return~R}function I(E,d){var R=d^-1,x=E.length-15,D=0;for(;D<x;)R=M[E[D++]^R&255]^W[E[D++]^R>>8&255]^N[E[D++]^R>>16&255]^C[E[D++]^R>>>24]^g[E[D++]]^h[E[D++]]^Z[E[D++]]^j[E[D++]]^H[E[D++]]^z[E[D++]]^V[E[D++]]^G[E[D++]]^U[E[D++]]^K[E[D++]]^J[E[D++]]^$[E[D++]];x+=15;while(D<x)R=R>>>8^$[(R^E[D++])&255];return~R}function f(E,d){var R=d^-1;for(var x=0,D=E.length,L=0,S=0;x<D;)if(L=E.charCodeAt(x++),L<128)R=R>>>8^$[(R^L)&255];else if(L<2048)R=R>>>8^$[(R^(192|L>>6&31))&255],R=R>>>8^$[(R^(128|L&63))&255];else if(L>=55296&&L<57344)L=(L&1023)+64,S=E.charCodeAt(x++)&1023,R=R>>>8^$[(R^(240|L>>8&7))&255],R=R>>>8^$[(R^(128|L>>2&63))&255],R=R>>>8^$[(R^(128|S>>6&15|(L&3)<<4))&255],R=R>>>8^$[(R^(128|S&63))&255];else R=R>>>8^$[(R^(224|L>>12&15))&255],R=R>>>8^$[(R^(128|L>>6&63))&255],R=R>>>8^$[(R^(128|L&63))&255];return~R}Q.table=$,Q.bstr=w,Q.buf=I,Q.str=f})});var R0=k((o4,pX)=>{var g6=function(Q){return Q&&Q.Math===Math&&Q};pX.exports=g6(typeof globalThis=="object"&&globalThis)||g6(typeof window=="object"&&window)||g6(typeof self=="object"&&self)||g6(typeof global=="object"&&global)||g6(typeof o4=="object"&&o4)||function(){return this}()||Function("return this")()});var g2=k((kL,mX)=>{mX.exports=function(Q){try{return!!Q()}catch(q){return!0}}});var r2=k((gL,dX)=>{var pZ=g2();dX.exports=!pZ(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var n4=k((yL,lX)=>{var mZ=g2();lX.exports=!mZ(function(){var Q=function(){}.bind();return typeof Q!="function"||Q.hasOwnProperty("prototype")})});var h8=k((fL,iX)=>{var dZ=n4(),f8=Function.prototype.call;iX.exports=dZ?f8.bind(f8):function(){return f8.apply(f8,arguments)}});var rX=k((iZ)=>{var oX={}.propertyIsEnumerable,nX=Object.getOwnPropertyDescriptor,lZ=nX&&!oX.call({1:2},1);iZ.f=lZ?function(q){var $=nX(this,q);return!!$&&$.enumerable}:oX});var r4=k((_L,aX)=>{aX.exports=function(Q,q){return{enumerable:!(Q&1),configurable:!(Q&2),writable:!(Q&4),value:q}}});var u0=k((bL,eX)=>{var sX=n4(),tX=Function.prototype,a4=tX.call,nZ=sX&&tX.bind.bind(a4,a4);eX.exports=sX?nZ:function(Q){return function(){return a4.apply(Q,arguments)}}});var _8=k((uL,qY)=>{var QY=u0(),rZ=QY({}.toString),aZ=QY("".slice);qY.exports=function(Q){return aZ(rZ(Q),8,-1)}});var XY=k((cL,$Y)=>{var sZ=u0(),tZ=g2(),eZ=_8(),s4=Object,QF=sZ("".split);$Y.exports=tZ(function(){return!s4("z").propertyIsEnumerable(0)})?function(Q){return eZ(Q)==="String"?QF(Q,""):s4(Q)}:s4});var t4=k((pL,YY)=>{YY.exports=function(Q){return Q===null||Q===void 0}});var e4=k((mL,JY)=>{var qF=t4(),$F=TypeError;JY.exports=function(Q){if(qF(Q))throw new $F("Can't call method on "+Q);return Q}});var b8=k((dL,KY)=>{var XF=XY(),YF=e4();KY.exports=function(Q){return XF(YF(Q))}});var X2=k((lL,UY)=>{var QQ=typeof document=="object"&&document.all;UY.exports=typeof QQ>"u"&&QQ!==void 0?function(Q){return typeof Q=="function"||Q===QQ}:function(Q){return typeof Q=="function"}});var P1=k((iL,VY)=>{var JF=X2();VY.exports=function(Q){return typeof Q=="object"?Q!==null:JF(Q)}});var $Q=k((oL,zY)=>{var qQ=R0(),KF=X2(),UF=function(Q){return KF(Q)?Q:void 0};zY.exports=function(Q,q){return arguments.length<2?UF(qQ[Q]):qQ[Q]&&qQ[Q][q]}});var WY=k((nL,GY)=>{var VF=u0();GY.exports=VF({}.isPrototypeOf)});var jY=k((rL,FY)=>{var zF=R0(),BY=zF.navigator,ZY=BY&&BY.userAgent;FY.exports=ZY?String(ZY):""});var IY=k((aL,CY)=>{var LY=R0(),XQ=jY(),HY=LY.process,MY=LY.Deno,wY=HY&&HY.versions||MY&&MY.version,PY=wY&&wY.v8,G2,u8;if(PY)G2=PY.split("."),u8=G2[0]>0&&G2[0]<4?1:+(G2[0]+G2[1]);if(!u8&&XQ){if(G2=XQ.match(/Edge\/(\d+)/),!G2||G2[1]>=74){if(G2=XQ.match(/Chrome\/(\d+)/),G2)u8=+G2[1]}}CY.exports=u8});var YQ=k((sL,DY)=>{var NY=IY(),GF=g2(),WF=R0(),BF=WF.String;DY.exports=!!Object.getOwnPropertySymbols&&!GF(function(){var Q=Symbol("symbol detection");return!BF(Q)||!(Object(Q)instanceof Symbol)||!Symbol.sham&&NY&&NY<41})});var JQ=k((tL,AY)=>{var ZF=YQ();AY.exports=ZF&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var KQ=k((eL,OY)=>{var FF=$Q(),jF=X2(),HF=WY(),MF=JQ(),wF=Object;OY.exports=MF?function(Q){return typeof Q=="symbol"}:function(Q){var q=FF("Symbol");return jF(q)&&HF(q.prototype,wF(Q))}});var xY=k((Q3,RY)=>{var PF=String;RY.exports=function(Q){try{return PF(Q)}catch(q){return"Object"}}});var UQ=k((q3,TY)=>{var LF=X2(),CF=xY(),IF=TypeError;TY.exports=function(Q){if(LF(Q))return Q;throw new IF(CF(Q)+" is not a function")}});var EY=k(($3,vY)=>{var NF=UQ(),DF=t4();vY.exports=function(Q,q){var $=Q[q];return DF($)?void 0:NF($)}});var kY=k((X3,SY)=>{var VQ=h8(),zQ=X2(),GQ=P1(),AF=TypeError;SY.exports=function(Q,q){var $,X;if(q==="string"&&zQ($=Q.toString)&&!GQ(X=VQ($,Q)))return X;if(zQ($=Q.valueOf)&&!GQ(X=VQ($,Q)))return X;if(q!=="string"&&zQ($=Q.toString)&&!GQ(X=VQ($,Q)))return X;throw new AF("Can't convert object to primitive value")}});var yY=k((Y3,gY)=>{gY.exports=!1});var c8=k((J3,hY)=>{var fY=R0(),OF=Object.defineProperty;hY.exports=function(Q,q){try{OF(fY,Q,{value:q,configurable:!0,writable:!0})}catch($){fY[Q]=q}return q}});var p8=k((K3,uY)=>{var RF=yY(),xF=R0(),TF=c8(),_Y="__core-js_shared__",bY=uY.exports=xF[_Y]||TF(_Y,{});(bY.versions||(bY.versions=[])).push({version:"3.49.0",mode:RF?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var WQ=k((U3,pY)=>{var cY=p8();pY.exports=function(Q,q){return cY[Q]||(cY[Q]=q||{})}});var dY=k((V3,mY)=>{var vF=e4(),EF=Object;mY.exports=function(Q){return EF(vF(Q))}});var y2=k((z3,lY)=>{var SF=u0(),kF=dY(),gF=SF({}.hasOwnProperty);lY.exports=Object.hasOwn||function(q,$){return gF(kF(q),$)}});var BQ=k((G3,iY)=>{var yF=u0(),fF=0,hF=Math.random(),_F=yF(1.1 .toString);iY.exports=function(Q){return"Symbol("+(Q===void 0?"":Q)+")_"+_F(++fF+hF,36)}});var m8=k((W3,nY)=>{var bF=R0(),uF=WQ(),oY=y2(),cF=BQ(),pF=YQ(),mF=JQ(),r1=bF.Symbol,ZQ=uF("wks"),dF=mF?r1.for||r1:r1&&r1.withoutSetter||cF;nY.exports=function(Q){if(!oY(ZQ,Q))ZQ[Q]=pF&&oY(r1,Q)?r1[Q]:dF("Symbol."+Q);return ZQ[Q]}});var tY=k((B3,sY)=>{var lF=h8(),rY=P1(),aY=KQ(),iF=EY(),oF=kY(),nF=m8(),rF=TypeError,aF=nF("toPrimitive");sY.exports=function(Q,q){if(!rY(Q)||aY(Q))return Q;var $=iF(Q,aF),X;if($){if(q===void 0)q="default";if(X=lF($,Q,q),!rY(X)||aY(X))return X;throw new rF("Can't convert object to primitive value")}if(q===void 0)q="number";return oF(Q,q)}});var FQ=k((Z3,eY)=>{var sF=tY(),tF=KQ();eY.exports=function(Q){var q=sF(Q,"string");return tF(q)?q:q+""}});var $J=k((F3,qJ)=>{var eF=R0(),QJ=P1(),jQ=eF.document,Qj=QJ(jQ)&&QJ(jQ.createElement);qJ.exports=function(Q){return Qj?jQ.createElement(Q):{}}});var HQ=k((j3,XJ)=>{var qj=r2(),$j=g2(),Xj=$J();XJ.exports=!qj&&!$j(function(){return Object.defineProperty(Xj("div"),"a",{get:function(){return 7}}).a!==7})});var MQ=k((Bj)=>{var Yj=r2(),Jj=h8(),Kj=rX(),Uj=r4(),Vj=b8(),zj=FQ(),Gj=y2(),Wj=HQ(),YJ=Object.getOwnPropertyDescriptor;Bj.f=Yj?YJ:function(q,$){if(q=Vj(q),$=zj($),Wj)try{return YJ(q,$)}catch(X){}if(Gj(q,$))return Uj(!Jj(Kj.f,q,$),q[$])}});var KJ=k((M3,JJ)=>{var Fj=r2(),jj=g2();JJ.exports=Fj&&jj(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var wQ=k((w3,UJ)=>{var Hj=P1(),Mj=String,wj=TypeError;UJ.exports=function(Q){if(Hj(Q))return Q;throw new wj(Mj(Q)+" is not an object")}});var l8=k((Dj)=>{var Pj=r2(),Lj=HQ(),Cj=KJ(),d8=wQ(),VJ=FQ(),Ij=TypeError,PQ=Object.defineProperty,Nj=Object.getOwnPropertyDescriptor,LQ="enumerable",CQ="configurable",IQ="writable";Dj.f=Pj?Cj?function(q,$,X){if(d8(q),$=VJ($),d8(X),typeof q==="function"&&$==="prototype"&&"value"in X&&IQ in X&&!X[IQ]){var Y=Nj(q,$);if(Y&&Y[IQ])q[$]=X.value,X={configurable:CQ in X?X[CQ]:Y[CQ],enumerable:LQ in X?X[LQ]:Y[LQ],writable:!1}}return PQ(q,$,X)}:PQ:function(q,$,X){if(d8(q),$=VJ($),d8(X),Lj)try{return PQ(q,$,X)}catch(Y){}if("get"in X||"set"in X)throw new Ij("Accessors not supported");if("value"in X)q[$]=X.value;return q}});var NQ=k((L3,zJ)=>{var Oj=r2(),Rj=l8(),xj=r4();zJ.exports=Oj?function(Q,q,$){return Rj.f(Q,q,xj(1,$))}:function(Q,q,$){return Q[q]=$,Q}});var BJ=k((C3,WJ)=>{var DQ=r2(),Tj=y2(),GJ=Function.prototype,vj=DQ&&Object.getOwnPropertyDescriptor,AQ=Tj(GJ,"name"),Ej=AQ&&function(){}.name==="something",Sj=AQ&&(!DQ||DQ&&vj(GJ,"name").configurable);WJ.exports={EXISTS:AQ,PROPER:Ej,CONFIGURABLE:Sj}});var FJ=k((I3,ZJ)=>{var kj=u0(),gj=X2(),OQ=p8(),yj=kj(Function.toString);if(!gj(OQ.inspectSource))OQ.inspectSource=function(Q){return yj(Q)};ZJ.exports=OQ.inspectSource});var MJ=k((N3,HJ)=>{var fj=R0(),hj=X2(),jJ=fj.WeakMap;HJ.exports=hj(jJ)&&/native code/.test(String(jJ))});var LJ=k((D3,PJ)=>{var _j=WQ(),bj=BQ(),wJ=_j("keys");PJ.exports=function(Q){return wJ[Q]||(wJ[Q]=bj(Q))}});var RQ=k((A3,CJ)=>{CJ.exports={}});var AJ=k((O3,DJ)=>{var uj=MJ(),NJ=R0(),cj=P1(),pj=NQ(),xQ=y2(),TQ=p8(),mj=LJ(),dj=RQ(),IJ="Object already initialized",vQ=NJ.TypeError,lj=NJ.WeakMap,i8,y6,o8,ij=function(Q){return o8(Q)?y6(Q):i8(Q,{})},oj=function(Q){return function(q){var $;if(!cj(q)||($=y6(q)).type!==Q)throw new vQ("Incompatible receiver, "+Q+" required");return $}};if(uj||TQ.state)Y2=TQ.state||(TQ.state=new lj),Y2.get=Y2.get,Y2.has=Y2.has,Y2.set=Y2.set,i8=function(Q,q){if(Y2.has(Q))throw new vQ(IJ);return q.facade=Q,Y2.set(Q,q),q},y6=function(Q){return Y2.get(Q)||{}},o8=function(Q){return Y2.has(Q)};else a2=mj("state"),dj[a2]=!0,i8=function(Q,q){if(xQ(Q,a2))throw new vQ(IJ);return q.facade=Q,pj(Q,a2,q),q},y6=function(Q){return xQ(Q,a2)?Q[a2]:{}},o8=function(Q){return xQ(Q,a2)};var Y2,a2;DJ.exports={set:i8,get:y6,has:o8,enforce:ij,getterFor:oj}});var TJ=k((R3,xJ)=>{var SQ=u0(),nj=g2(),rj=X2(),n8=y2(),EQ=r2(),aj=BJ().CONFIGURABLE,sj=FJ(),RJ=AJ(),tj=RJ.enforce,ej=RJ.get,OJ=String,r8=Object.defineProperty,QH=SQ("".slice),qH=SQ("".replace),$H=SQ([].join),XH=EQ&&!nj(function(){return r8(function(){},"length",{value:8}).length!==8}),YH=String(String).split("String"),JH=xJ.exports=function(Q,q,$){if(QH(OJ(q),0,7)==="Symbol(")q="["+qH(OJ(q),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if($&&$.getter)q="get "+q;if($&&$.setter)q="set "+q;if(!n8(Q,"name")||aj&&Q.name!==q)if(EQ)r8(Q,"name",{value:q,configurable:!0});else Q.name=q;if(XH&&$&&n8($,"arity")&&Q.length!==$.arity)r8(Q,"length",{value:$.arity});try{if($&&n8($,"constructor")&&$.constructor){if(EQ)r8(Q,"prototype",{writable:!1})}else if(Q.prototype)Q.prototype=void 0}catch(Y){}var X=tj(Q);if(!n8(X,"source"))X.source=$H(YH,typeof q=="string"?q:"");return Q};Function.prototype.toString=JH(function(){return rj(this)&&ej(this).source||sj(this)},"toString")});var EJ=k((x3,vJ)=>{var KH=X2(),UH=l8(),VH=TJ(),zH=c8();vJ.exports=function(Q,q,$,X){if(!X)X={};var Y=X.enumerable,J=X.name!==void 0?X.name:q;if(KH($))VH($,J,X);if(X.global)if(Y)Q[q]=$;else zH(q,$);else{try{if(!X.unsafe)delete Q[q];else if(Q[q])Y=!0}catch(K){}if(Y)Q[q]=$;else UH.f(Q,q,{value:$,enumerable:!1,configurable:!X.nonConfigurable,writable:!X.nonWritable})}return Q}});var kJ=k((T3,SJ)=>{var{ceil:GH,floor:WH}=Math;SJ.exports=Math.trunc||function(q){var $=+q;return($>0?WH:GH)($)}});var kQ=k((v3,gJ)=>{var BH=kJ();gJ.exports=function(Q){var q=+Q;return q!==q||q===0?0:BH(q)}});var fJ=k((E3,yJ)=>{var ZH=kQ(),FH=Math.max,jH=Math.min;yJ.exports=function(Q,q){var $=ZH(Q);return $<0?FH($+q,0):jH($,q)}});var _J=k((S3,hJ)=>{var HH=kQ(),MH=Math.min;hJ.exports=function(Q){var q=HH(Q);return q>0?MH(q,9007199254740991):0}});var gQ=k((k3,bJ)=>{var wH=_J();bJ.exports=function(Q){return wH(Q.length)}});var pJ=k((g3,cJ)=>{var PH=b8(),LH=fJ(),CH=gQ(),uJ=function(Q){return function(q,$,X){var Y=PH(q),J=CH(Y);if(J===0)return!Q&&-1;var K=LH(X,J),U;if(Q&&$!==$){while(J>K)if(U=Y[K++],U!==U)return!0}else for(;J>K;K++)if((Q||(K in Y))&&Y[K]===$)return Q||K||0;return!Q&&-1}};cJ.exports={includes:uJ(!0),indexOf:uJ(!1)}});var lJ=k((y3,dJ)=>{var IH=u0(),yQ=y2(),NH=b8(),DH=pJ().indexOf,AH=RQ(),mJ=IH([].push);dJ.exports=function(Q,q){var $=NH(Q),X=0,Y=[],J;for(J in $)!yQ(AH,J)&&yQ($,J)&&mJ(Y,J);while(q.length>X)if(yQ($,J=q[X++]))~DH(Y,J)||mJ(Y,J);return Y}});var oJ=k((f3,iJ)=>{iJ.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nJ=k((TH)=>{var OH=lJ(),RH=oJ(),xH=RH.concat("length","prototype");TH.f=Object.getOwnPropertyNames||function(q){return OH(q,xH)}});var rJ=k((EH)=>{EH.f=Object.getOwnPropertySymbols});var sJ=k((b3,aJ)=>{var kH=$Q(),gH=u0(),yH=nJ(),fH=rJ(),hH=wQ(),_H=gH([].concat);aJ.exports=kH("Reflect","ownKeys")||function(q){var $=yH.f(hH(q)),X=fH.f;return X?_H($,X(q)):$}});var QK=k((u3,eJ)=>{var tJ=y2(),bH=sJ(),uH=MQ(),cH=l8();eJ.exports=function(Q,q,$){var X=bH(q),Y=cH.f,J=uH.f;for(var K=0;K<X.length;K++){var U=X[K];if(!tJ(Q,U)&&!($&&tJ($,U)))Y(Q,U,J(q,U))}}});var $K=k((c3,qK)=>{var pH=g2(),mH=X2(),dH=/#|\.prototype\./,f6=function(Q,q){var $=iH[lH(Q)];return $===nH?!0:$===oH?!1:mH(q)?pH(q):!!q},lH=f6.normalize=function(Q){return String(Q).replace(dH,".").toLowerCase()},iH=f6.data={},oH=f6.NATIVE="N",nH=f6.POLYFILL="P";qK.exports=f6});var L1=k((p3,XK)=>{var a8=R0(),rH=MQ().f,aH=NQ(),sH=EJ(),tH=c8(),eH=QK(),QM=$K();XK.exports=function(Q,q){var{target:$,global:X,stat:Y}=Q,J,K,U,G,V,z;if(X)K=a8;else if(Y)K=a8[$]||tH($,{});else K=a8[$]&&a8[$].prototype;if(K)for(U in q){if(V=q[U],Q.dontCallGetSet)z=rH(K,U),G=z&&z.value;else G=K[U];if(J=QM(X?U:$+(Y?".":"#")+U,Q.forced),!J&&G!==void 0){if(typeof V==typeof G)continue;eH(V,G)}if(Q.sham||G&&G.sham)aH(V,"sham",!0);sH(K,U,V,Q)}}});var JK=k((m3,YK)=>{var qM=gQ();YK.exports=function(Q,q,$){var X=0,Y=arguments.length>2?$:qM(q),J=new Q(Y);while(Y>X)J[X]=q[X++];return J}});var fQ=k((d3,KK)=>{var $M=P1(),XM=String,YM=TypeError;KK.exports=function(Q){if(Q===void 0||$M(Q))return Q;throw new YM(XM(Q)+" is not an object or undefined")}});var s8=k((l3,UK)=>{var JM=TypeError;UK.exports=function(Q){if(typeof Q=="string")return Q;throw new JM("Argument is not a string")}});var hQ=k((i3,BK)=>{var WK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",VK=WK+"+/",zK=WK+"-_",GK=function(Q){var q={},$=0;for(;$<64;$++)q[Q.charAt($)]=$;return q};BK.exports={i2c:VK,c2i:GK(VK),i2cUrl:zK,c2iUrl:GK(zK)}});var _Q=k((o3,ZK)=>{var KM=TypeError;ZK.exports=function(Q){var q=Q&&Q.alphabet;if(q===void 0||q==="base64"||q==="base64url")return q||"base64";throw new KM("Incorrect `alphabet` option")}});var jK=k((n3,FK)=>{FK.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"});var MK=k((r3,HK)=>{var UM=u0(),VM=UQ();HK.exports=function(Q,q,$){try{return UM(VM(Object.getOwnPropertyDescriptor(Q,q)[$]))}catch(X){}}});var CK=k((a3,LK)=>{var PK=R0(),zM=MK(),GM=_8(),wK=PK.ArrayBuffer,WM=PK.TypeError;LK.exports=wK&&zM(wK.prototype,"byteLength","get")||function(Q){if(GM(Q)!=="ArrayBuffer")throw new WM("ArrayBuffer expected");return Q.byteLength}});var NK=k((s3,IK)=>{var BM=R0(),ZM=jK(),FM=CK(),jM=BM.DataView;IK.exports=function(Q){if(!ZM||FM(Q)!==0)return!1;try{return new jM(Q),!1}catch(q){return!0}}});var h6=k((t3,DK)=>{var HM=NK(),MM=TypeError;DK.exports=function(Q){if(HM(Q))throw new MM("ArrayBuffer is detached");return Q}});var pQ=k((e3,RK)=>{var AK=R0(),wM=u0(),PM=fQ(),LM=s8(),CM=y2(),OK=hQ(),IM=_Q(),NM=h6(),DM=OK.c2i,AM=OK.c2iUrl,s2=AK.SyntaxError,OM=AK.TypeError,C1=wM("".charAt),bQ=function(Q,q){var $=Q.length;for(;q<$;q++){var X=C1(Q,q);if(X!==" "&&X!=="\t"&&X!==`
4
- `&&X!=="\f"&&X!=="\r")break}return q},uQ=function(Q,q,$){var X=Q.length;if(X<4)Q+=X===2?"AA":"A";var Y=(q[C1(Q,0)]<<18)+(q[C1(Q,1)]<<12)+(q[C1(Q,2)]<<6)+q[C1(Q,3)],J=[Y>>16&255,Y>>8&255,Y&255];if(X===2){if($&&J[1]!==0)throw new s2("Extra bits");return[J[0]]}if(X===3){if($&&J[2]!==0)throw new s2("Extra bits");return[J[0],J[1]]}return J},cQ=function(Q,q,$){var X=q.length;for(var Y=0;Y<X;Y++)Q[$+Y]=q[Y];return $+X};RK.exports=function(Q,q,$,X){LM(Q),PM(q);var Y=IM(q)==="base64"?DM:AM,J=q?q.lastChunkHandling:void 0;if(J===void 0)J="loose";if(J!=="loose"&&J!=="strict"&&J!=="stop-before-partial")throw new OM("Incorrect `lastChunkHandling` option");if($)NM($.buffer);var K=Q.length,U=$||[],G=0,V=0,z="",H=0;if(X)while(!0){if(H=bQ(Q,H),H===K){if(z.length>0){if(J==="stop-before-partial")break;if(J==="loose"){if(z.length===1)throw new s2("Malformed padding: exactly one additional character");G=cQ(U,uQ(z,Y,!1),G)}else throw new s2("Missing padding")}V=K;break}var j=C1(Q,H);if(++H,j==="="){if(z.length<2)throw new s2("Padding is too early");if(H=bQ(Q,H),z.length===2){if(H===K){if(J==="stop-before-partial")break;throw new s2("Malformed padding: only one =")}if(C1(Q,H)==="=")++H,H=bQ(Q,H)}if(H<K)throw new s2("Unexpected character after padding");G=cQ(U,uQ(z,Y,J==="strict"),G),V=K;break}if(!CM(Y,j))throw new s2("Unexpected character");var Z=X-G;if(Z===1&&z.length===2||Z===2&&z.length===3)break;if(z+=j,z.length===4){if(G=cQ(U,uQ(z,Y,!1),G),z="",V=H,G===X)break}}return{bytes:U,read:V,written:G}}});var xK=k(()=>{var RM=L1(),xM=R0(),TM=JK(),vM=pQ(),a1=xM.Uint8Array,EM=!a1||!a1.fromBase64||!function(){try{a1.fromBase64("a");return}catch(Q){}try{a1.fromBase64("",null)}catch(Q){return!0}}();if(a1)RM({target:"Uint8Array",stat:!0,forced:EM},{fromBase64:function(q){var $=vM(q,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return TM(a1,$.bytes)}})});var TK=k(()=>{xK()});var mQ=k((YC,SK)=>{var EK=R0(),SM=u0(),kM=EK.Uint8Array,vK=EK.SyntaxError,gM=Math.min,yM=SM("".match);SK.exports=function(Q,q){var $=Q.length;if($%2!==0)throw new vK("String should be an even number of characters");var X=q?gM(q.length,$/2):$/2,Y=q||new kM(X),J=yM(Q,/.{2}/g),K=0;for(;K<X;K++){var U=+("0x"+J[K]+"0");if(U!==U)throw new vK("String should only contain hex characters");Y[K]=U>>4}return{bytes:Y,read:K<<1}}});var kK=k(()=>{var fM=L1(),hM=R0(),_M=s8(),bM=mQ();if(hM.Uint8Array)fM({target:"Uint8Array",stat:!0},{fromHex:function(q){return bM(_M(q)).bytes}})});var gK=k(()=>{kK()});var hK=k((zC,fK)=>{var uM=m8(),cM=uM("toStringTag"),yK={};yK[cM]="z";fK.exports=String(yK)==="[object z]"});var bK=k((GC,_K)=>{var pM=hK(),mM=X2(),t8=_8(),dM=m8(),lM=dM("toStringTag"),iM=Object,oM=t8(function(){return arguments}())==="Arguments",nM=function(Q,q){try{return Q[q]}catch($){}};_K.exports=pM?t8:function(Q){var q,$,X;return Q===void 0?"Undefined":Q===null?"Null":typeof($=nM(q=iM(Q),lM))=="string"?$:oM?t8(q):(X=t8(q))==="Object"&&mM(q.callee)?"Arguments":X}});var _6=k((WC,uK)=>{var rM=bK(),aM=TypeError;uK.exports=function(Q){if(rM(Q)==="Uint8Array")return Q;throw new aM("Argument is not an Uint8Array")}});var cK=k(()=>{var sM=L1(),tM=R0(),eM=pQ(),Qw=_6(),e8=tM.Uint8Array,qw=!e8||!e8.prototype.setFromBase64||!function(){var Q=new e8([255,255,255,255,255]);try{Q.setFromBase64("",null);return}catch(q){}try{Q.setFromBase64("a");return}catch(q){}try{Q.setFromBase64("MjYyZg===")}catch(q){return Q[0]===50&&Q[1]===54&&Q[2]===50&&Q[3]===255&&Q[4]===255}}();if(e8)sM({target:"Uint8Array",proto:!0,forced:qw},{setFromBase64:function(q){Qw(this);var $=eM(q,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:$.read,written:$.written}}})});var pK=k(()=>{cK()});var mK=k(()=>{var $w=L1(),Xw=R0(),Yw=s8(),Jw=_6(),Kw=h6(),Uw=mQ();function Vw(){try{var Q=new ArrayBuffer(16,{maxByteLength:1024});new Uint8Array(Q).setFromHex("cafed00d")}catch(q){return!0}}if(Xw.Uint8Array)$w({target:"Uint8Array",proto:!0,forced:Vw()},{setFromHex:function(q){Jw(this),Yw(q),Kw(this.buffer);var $=Uw(q,this).read;return{read:$,written:$/2}}})});var dK=k(()=>{mK()});var iK=k(()=>{var zw=L1(),Gw=R0(),Ww=u0(),Bw=fQ(),Zw=_6(),Fw=h6(),lK=hQ(),jw=_Q(),Hw=lK.i2c,Mw=lK.i2cUrl,ww=Ww("".charAt),Q5=Gw.Uint8Array,Pw=!Q5||!Q5.prototype.toBase64||!function(){try{var Q=new Q5;Q.toBase64(null)}catch(q){return!0}}();if(Q5)zw({target:"Uint8Array",proto:!0,forced:Pw},{toBase64:function(){var q=Zw(this),$=arguments.length?Bw(arguments[0]):void 0,X=jw($)==="base64"?Hw:Mw,Y=!!$&&!!$.omitPadding;Fw(this.buffer);var J="",K=0,U=q.length,G,V=function(z){return ww(X,G>>6*z&63)};for(;K+2<U;K+=3)G=(q[K]<<16)+(q[K+1]<<8)+q[K+2],J+=V(3)+V(2)+V(1)+V(0);if(K+2===U)G=(q[K]<<16)+(q[K+1]<<8),J+=V(3)+V(2)+V(1)+(Y?"":"=");else if(K+1===U)G=q[K]<<16,J+=V(3)+V(2)+(Y?"":"==");return J}})});var oK=k(()=>{iK()});var rK=k(()=>{var Lw=L1(),Cw=R0(),nK=u0(),Iw=_6(),Nw=h6(),Dw=nK(1.1 .toString),Aw=nK([].join),Ow=Array,q5=Cw.Uint8Array,Rw=!q5||!q5.prototype.toHex||!function(){try{var Q=new q5([255,255,255,255,255,255,255,255]);return Q.toHex()==="ffffffffffffffff"}catch(q){return!1}}();if(q5)Lw({target:"Uint8Array",proto:!0,forced:Rw},{toHex:function(){Iw(this),Nw(this.buffer);var q=Ow(this.length);for(var $=0,X=this.length;$<X;$++){var Y=Dw(this[$],16);q[$]=Y.length===1?"0"+Y:Y}return Aw(q,"")}})});var aK=k(()=>{rK()});var sK=k(()=>{TK();gK();pK();dK();oK();aK()});var XU=V5(PX(),1);var RZ=/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(\.\d+)?([zZ]|((\+|-)(\d{2}):(\d{2})))$/;function xZ(Q){let q=RZ.exec(Q);if(!q)return!1;let[,$,X,Y,J,K,U]=q.map((G)=>parseInt(G));return $!==void 0&&X!==void 0&&Y!==void 0&&J!==void 0&&K!==void 0&&U!==void 0&&0<X&&X<=12&&Y<=TZ($,X)&&J<24&&K<60&&U<=60}function TZ(Q,q){if(q===2)return vZ(Q)?29:28;return EZ[q-1]??0}function vZ(Q){return Q%4===0&&(Q%100!==0||Q%400===0)}var EZ=[31,0,31,30,31,30,31,31,30,31,30,31];function S8(Q){return typeof Q==="object"&&Q!==null&&!Array.isArray(Q)}var SZ={int8:[-128,128],int16:[-32768,32768],int32:[-2147483648,2147483648],uint8:[0,256],uint16:[0,65536],uint32:[0,4294967296]};function v6(Q=0.5){return Math.random()<Q}function CX(Q,q){return Q+Math.floor(Math.random()*(q-Q))}function k8(Q){let q=Q[CX(0,Q.length)];if(q===void 0)throw Error("choices was empty in random choice");else return q}var v8;function m4(){if(v8===void 0){let Q=Math.sqrt(-2*Math.log(Math.random())),q=2*Math.PI*Math.random();return v8=Q*Math.sin(q),Q*Math.cos(q)}else{let Q=v8;return v8=void 0,Q}}function V2(Q=1){let q=Math.exp(-Q),$=0,X=Math.random();while(X>q)$++,X*=Math.random();return $}var LX=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ;,'"`;function i1(Q){return Array(Q).fill(null).map(()=>LX.charAt(Math.floor(Math.random()*LX.length))).join("")}function*IX(...Q){for(let q of Q)yield*q}function*E8(Q,q){let $=0;for(let X of Q)yield q(X,$++)}function*kZ(Q,q){let $=0;for(let X of Q)if(q(X,$++))yield X}function*gZ(Q){for(let q=0;q<Q;++q)yield q}function l1(Q){return/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(Q)?`.${Q}`:`["${Q}"]`}function $2(Q){return Q===null?"null":Array.isArray(Q)?"array":typeof Q}class S0{guard(Q){for(let q of this.pathErrors(Q))return!1;return!0}guardAssert(Q){let q=[];for(let[$,X]of this.pathErrors(Q)){let Y=$.reverse().join("")||".";q.push(`${Y}: ${X}`)}if(q.length){let $=JSON.stringify(Q,null,2),X=JSON.stringify(this.schema(),null,2);throw Error(`Validation errors:
5
- ${q.join(`
6
- `)}
7
-
8
- While trying to validate:
9
- ${$}
10
-
11
- Against schema:
12
- ${X}`)}else return!0}}class NX extends S0{#Q;definitions;nullable=!0;constructor(Q){super();this.#Q=Q,this.definitions=Q.definitions}*pathErrors(Q){if(Q!==null)for(let[q,$]of this.#Q.pathErrors(Q))yield[q,`${$} or ${$2(Q)} is not null`]}fuzz(){return v6(0.1)?null:this.#Q.fuzz()}schema(){return{...this.#Q.schema(),nullable:!0}}}function E6(Q){return new NX(Q)}class yZ extends S0{#Q;#q;definitions;nullable;constructor(Q,q){super();this.#Q=Q,this.#q=q,this.definitions=Q.definitions,this.nullable=Q.nullable}*pathErrors(Q){yield*this.#Q.pathErrors(Q)}fuzz(){return this.#Q.fuzz()}schema(){return{...this.#Q.schema(),metadata:this.#q}}}class DX extends S0{*pathErrors(Q){if(Q===void 0)yield[[],"value is undefined"]}fuzz(){return k8([()=>null,v6,m4,()=>i1(V2()),()=>Array(V2()).fill(null).map(()=>this.fuzz()),()=>Object.fromEntries(Array(V2()).fill(null).map(()=>[i1(V2(3)),this.fuzz()]))])()}schema(){return{}}}function AX(){return new DX}class OX extends S0{*pathErrors(Q){if(typeof Q!=="boolean")yield[[],`${$2(Q)} is not a boolean`]}fuzz(){return v6()}schema(){return{type:"boolean"}}}function w1(){return new OX}class g8 extends S0{#Q;#q;#$;constructor(Q){super();this.#Q=Q,[this.#q,this.#$]=SZ[Q]}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${$2(Q)} is not a number`];else if(Q%1!==0)yield[[],`${Q.toPrecision()} is not an integer`];else if(Q<this.#q)yield[[],`${Q.toFixed()} is less than ${this.#q.toFixed()}`];else if(Q>=this.#$)yield[[],`${Q.toFixed()} is greater than ${(this.#$-1).toFixed()}`]}fuzz(){return CX(this.#q,this.#$)}schema(){return{type:this.#Q}}}function y8(){return new g8("uint8")}function z2(){return new g8("int32")}function o1(){return new g8("uint32")}class RX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(typeof Q!=="number")yield[[],`${$2(Q)} is not number, expected a float`]}fuzz(){return m4()}schema(){return{type:this.#Q}}}function O0(){return new RX("float64")}class xX extends S0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`]}fuzz(){return i1(V2(3))}schema(){return{type:"string"}}}function F0(){return new xX}class TX extends S0{*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`];else if(!xZ(Q))yield[[],`${Q} is not a valid timestamp`]}fuzz(){return new Date(Math.random()*3153600000000).toISOString()}schema(){return{type:"timestamp"}}}function vX(){return new TX}class EX extends S0{#Q;#q;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){if(typeof Q!=="string")yield[[],`${$2(Q)} is not a string`];else if(!this.#q.has(Q))yield[[],`${Q} is not one of ${this.#Q.join(", ")}`]}fuzz(){return k8(this.#Q)}schema(){return{enum:[...this.#Q]}}}function C2(...Q){let q=new Set(Q);if(q.size!==Q.length)throw Error("enum can't contain duplicates");else return new EX(Q,q)}class SX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!Array.isArray(Q))yield[[],`${$2(Q)} is not an array`];else for(let[q,$]of Q.entries())for(let[X,Y]of this.#Q.pathErrors($))X.push(`[${q.toFixed()}]`),yield[X,Y]}fuzz(){return Array(V2()).fill(null).map(()=>this.#Q.fuzz())}schema(){return{elements:this.#Q.schema()}}}function h0(Q){if(Q.definitions)throw Error("definitions can only exist on a root schema");else return new SX(Q)}class kX extends S0{#Q;constructor(Q){super();this.#Q=Q}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not a record`];else for(let[q,$]of Object.entries(Q))for(let[X,Y]of this.#Q.pathErrors($))X.push(l1(q)),yield[X,Y]}fuzz(){return Object.fromEntries(Array(V2()).fill(null).map(()=>[i1(V2(3)),this.#Q.fuzz()]))}schema(){return{values:this.#Q.schema()}}}function S6(Q){if(Q.definitions)throw Error("definitions can only exist on a root schema");else return new kX(Q)}class gX extends S0{#Q;#q;#$;keys;constructor(Q,q,$,X){super();this.#Q=Q,this.#q=q,this.#$=$,this.keys=X}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not a record`];else{if(this.#Q)for(let[q,$]of this.#Q){let X=Q[q];if(X===void 0)yield[[],`required key '${q}' is missing`];else for(let[Y,J]of $.pathErrors(X))Y.push(l1(q)),yield[Y,J]}if(this.#q){for(let[q,$]of this.#q)if(Q[q]!==void 0)for(let[X,Y]of $.pathErrors(Q[q]))X.push(l1(q)),yield[X,Y]}if(!this.#$){for(let q of Object.keys(Q))if(!this.keys.has(q))yield[[l1(q)],`'${q}' is not a valid property and additional properties are not allowed`]}}}fuzz(){let Q=E8(this.#Q??[],([X,Y])=>[X,Y.fuzz()]),q=E8(kZ(this.#q??[],()=>v6()),([X,Y])=>[X,Y.fuzz()]),$=this.#$?E8(gZ(V2()),()=>[i1(V2(3)),k8([()=>null,v6,m4,()=>i1(V2()),()=>[],()=>({})])()]):[];return Object.fromEntries(IX(Q,q,$))}schema(){let Q={};if(this.#Q)Q.properties=Object.fromEntries(this.#Q.map(([q,$])=>[q,$.schema()]));if(this.#q)Q.optionalProperties=Object.fromEntries(this.#q.map(([q,$])=>[q,$.schema()]));if(this.#$)Q.additionalProperties=!0;return Q}}function fZ(Q,q,$){let X=new Set(E8(IX(Q??[],q??[]),([Y])=>Y));if(Q?.some(([,Y])=>Y.definitions))throw Error("definitions can only exist on a root schema");else if(q?.some(([,Y])=>Y.definitions))throw Error("definitions can only exist on a root schema");else if(X.size!==(Q?.length??0)+(q?.length??0))throw Error("properties and optionalProperties keys must be unique");else return new gX(Q,q,$??!1,X)}function C0(Q,q,$){return fZ(Q?Object.entries(Q):void 0,q?Object.entries(q):void 0,$)}class hZ extends S0{#Q;#q;#$;constructor(Q,q,$){super();this.#Q=Q,this.#q=q,this.#$=$}guard(Q){if(!S8(Q))return!1;let{[this.#Q]:q,...$}=Q;if(typeof q!=="string")return!1;return this.#q[q]?.guard($)??!1}*pathErrors(Q){if(!S8(Q))yield[[],`${$2(Q)} is not an object`];else{let{[this.#Q]:q,...$}=Q;if(q===void 0)yield[[],`discriminator key '${this.#Q}' is missing`];else if(typeof q!=="string")yield[[l1(this.#Q)],`${$2(q)} is not a string`];else{let X=this.#q[q];if(X===void 0)yield[[l1(this.#Q)],`'${q}' is not a valid discriminator value (${Object.keys(this.#q).join(", ")})`];else yield*X.pathErrors($)}}}fuzz(){let[Q,q]=k8(this.#$);return{...q.fuzz(),[this.#Q]:Q}}schema(){let Q=Object.fromEntries(this.#$.map(([q,$])=>[q,$.schema()]));return{discriminator:this.#Q,mapping:Q}}}class yX extends S0{#Q;#q;definitions=!0;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){yield*this.#q.pathErrors(Q)}fuzz(){return this.#q.fuzz()}schema(){let Q=Object.fromEntries(Object.entries(this.#Q).map(([q,$])=>[q,$.schema()]));return{...this.#q.schema(),definitions:Q}}}class fX extends S0{#Q;#q;constructor(Q,q){super();this.#Q=Q,this.#q=q}*pathErrors(Q){yield*this.#q.pathErrors(Q)}fuzz(){return this.#q.fuzz()}schema(){return{ref:this.#Q}}}class hX{#Q;#q;constructor(Q,q){this.#Q=Q,this.#q=q}def(Q,q){let $=q(this.#q);return new hX({...this.#Q,[Q]:$},{...this.#q,[Q]:new fX(Q,$)})}build(Q){return new yX(this.#Q,Q(this.#q))}}class _Z extends S0{#Q;#q;constructor(Q,q){super();this.#q=Q,this.#Q=q}#$(){let Q=this.#q[this.#Q];if(Q===void 0)throw Error(`ref ${this.#Q} was not in definitions after ref builder was finished`);else return Q}*pathErrors(Q){yield*this.#$().pathErrors(Q)}fuzz(){return this.#$().fuzz()}schema(){return{ref:this.#Q}}}var bZ=new Uint8Array(16);function d4(){return crypto.getRandomValues(bZ)}var k0=[];for(let Q=0;Q<256;++Q)k0.push((Q+256).toString(16).slice(1));function _X(Q,q=0){return(k0[Q[q+0]]+k0[Q[q+1]]+k0[Q[q+2]]+k0[Q[q+3]]+"-"+k0[Q[q+4]]+k0[Q[q+5]]+"-"+k0[Q[q+6]]+k0[Q[q+7]]+"-"+k0[Q[q+8]]+k0[Q[q+9]]+"-"+k0[Q[q+10]]+k0[Q[q+11]]+k0[Q[q+12]]+k0[Q[q+13]]+k0[Q[q+14]]+k0[Q[q+15]]).toLowerCase()}function uZ(Q,q,$){if(!q&&!Q&&crypto.randomUUID)return crypto.randomUUID();return cZ(Q,q,$)}function cZ(Q,q,$){Q=Q||{};let X=Q.random??Q.rng?.()??d4();if(X.length<16)throw Error("Random bytes length must be >= 16");if(X[6]=X[6]&15|64,X[8]=X[8]&63|128,q){if($=$||0,$<0||$+16>q.length)throw RangeError(`UUID byte range ${$}:${$+15} is out of buffer bounds`);for(let Y=0;Y<16;++Y)q[$+Y]=X[Y];return q}return _X(X)}var n1=uZ;class I2 extends Error{field;regex;constructor(Q,q,$){super($);this.field=Q,this.regex=q}}class k6 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class l4 extends Map{#Q;#q=0;constructor(Q,q=[]){super();this.#Q=Q;for(let[$,X]of q)this.set($,X)}get(Q){let q=super.get(Q);if(q!==void 0)super.delete(Q),super.set(Q,q);return q}set(Q,q){let $=super.get(Q);if($===void 0)this.#q+=Q.length;else if($!==null)this.#q-=$.length;if(q!==null)this.#q+=q.length;super.delete(Q);let X;while(this.#q>this.#Q&&(X=this.entries().next().value)){let[Y,J]=X;if(super.delete(Y),this.#q-=Y.length,J!==null)this.#q-=J.length}return super.set(Q,q),this}delete(Q){let q=super.get(Q);if(q===void 0)return!1;if(super.delete(Q),q!==null)this.#q-=q.length;return this.#q-=Q.length,!0}clear(){super.clear(),this.#q=0}}var eK=V5(uX(),1);function cX(Q){let q=Q.reduce((Y,J)=>Y+J.length,0),$=new Uint8Array(q),X=0;for(let Y of Q)$.set(Y,X),X+=Y.length;return $}var kC=V5(sK(),1),$5=/^[0-9a-f]{64}$/,QU=C0({name:F0(),timestamp:O0()},void 0,!0),xw=C0({name:F0(),pageId:F0(),timestamp:O0()},void 0,!0),Tw=C0(void 0,{authors:h0(F0()),title:F0(),publicationDate:F0(),publisher:F0()},!0),vw=C0({id:F0(),idx:C0({timestamp:F0(),value:F0()},void 0,!0)},{template:C0({timestamp:F0(),value:F0()},void 0,!0),redir:C0({timestamp:F0(),value:z2()},void 0,!0),scrollTime:C0({timestamp:F0(),value:vX()},void 0,!0),verticalScroll:C0({timestamp:F0(),value:O0()},void 0,!0),deleted:C0({timestamp:F0(),value:z2()},void 0,!0)},!0),Ew=C0({lastOpened:C0({timestamp:F0(),value:F0()},void 0,!0),original:C0({timestamp:F0(),value:z2()},void 0,!0),pages:h0(vw),uuids:E6(h0(C0({first:F0(),second:o1()},void 0,!0)))},void 0,!0),Sw=C0(void 0,{tags:h0(QU)}),kw=C0(void 0,{tags:h0(F0())}),qU={coverPageNumber:z2(),documentMetadata:Tw,extraMetadata:S6(F0()),fileType:C2("epub","notebook","pdf"),fontName:F0(),lineHeight:z2(),orientation:C2("portrait","landscape"),pageCount:o1(),textAlignment:C2("","justify","left"),textScale:O0()},$U={cPages:Ew,customZoomCenterX:O0(),customZoomCenterY:O0(),customZoomOrientation:C2("portrait","landscape"),customZoomPageHeight:O0(),customZoomPageWidth:O0(),customZoomScale:O0(),dummyDocument:w1(),formatVersion:y8(),keyboardMetadata:C0({count:o1(),timestamp:O0()},void 0,!0),lastOpenedPage:z2(),margins:o1(),originalPageCount:z2(),pages:E6(h0(F0())),pageTags:h0(xw),redirectionPageMap:h0(z2()),sizeInBytes:F0(),transform:C0(void 0,{m11:O0(),m12:O0(),m13:O0(),m21:O0(),m22:O0(),m23:O0(),m31:O0(),m32:O0(),m33:O0()},!0),viewBackgroundFilter:C2("off","fullpage"),zoomMode:C2("bestFit","customFit","fitToHeight","fitToWidth")},gw=C0(qU,{...$U,tags:h0(QU)},!0),yw=C0(qU,{...$U,tags:h0(F0())},!0),fw=C0({name:F0(),author:F0(),iconData:F0(),categories:h0(F0()),labels:h0(F0()),orientation:C2("portrait","landscape"),templateVersion:F0(),supportedScreens:h0(C2("rm2","rmPP")),constants:h0(S6(z2())),items:h0(AX())},{formatVersion:y8()}),hw=C0({lastModified:F0(),parent:F0(),pinned:w1(),type:C2("DocumentType","CollectionType","TemplateType"),visibleName:F0()},{lastOpened:F0(),lastOpenedPage:z2(),createdTime:F0(),deleted:w1(),metadatamodified:w1(),modified:w1(),synced:w1(),version:o1()},!0),_w=C0({hash:F0(),generation:O0()},void 0,!0),bw=C0({hash:F0(),generation:O0(),schemaVersion:y8()},void 0,!0),uw=C0({docID:F0(),hash:F0()},void 0,!0);async function dQ(Q){let q=await crypto.subtle.digest("SHA-256",Q);return new Uint8Array(q).toHex()}function tK(Q){let[q,$,X,Y,J]=Q.split(":");if(q===void 0||$===void 0||X===void 0||Y===void 0||J===void 0)throw Error(`line '${Q}' was not formatted correctly`);else if($==="80000000"||$==="0")return{hash:q,type:$==="0"?0:80000000,id:X,subfiles:parseInt(Y,10),size:parseInt(J,10)};else throw Error(`line '${Q}' was not formatted correctly`)}class lQ{#Q;#q;#$;#X;constructor(Q,q,$,X){this.#Q=Q,this.#X=q,this.#q=$,this.#$=X}async getRootHash(){let q=await(await this.#Q("GET",`${this.#q}/sync/v4/root`)).text(),$=JSON.parse(q);if(!bw.guardAssert($))throw Error("invalid root hash");let{hash:X,generation:Y,schemaVersion:J}=$;if(J!==3&&J!==4)throw Error(`schema version ${J} not supported`);else if(!Number.isSafeInteger(Y))throw Error(`generation ${Y} was not a safe integer; please file a bug report`);else return[X,Y,J]}async#Y(Q,q){if(!$5.test(q))throw new I2(q,$5,"hash was not a valid hash");let X=await(await this.#Q("GET",`${this.#q}/sync/v3/files/${q}`,{headers:{"rm-filename":Q}})).arrayBuffer();return new Uint8Array(X)}async getHash(Q,q){let $=this.#X.get(q);if($!=null)return new TextEncoder().encode($);else{let X=await this.#Y(Q,q);if(this.#X.get(q)===void 0)this.#X.set(q,null);return X}}async getText(Q,q){let $=this.#X.get(q);if($!=null)return $;else{let X=await this.#Y(Q,q),J=new TextDecoder().decode(X);return this.#X.set(q,J),J}}async getEntries(Q,q){let $=await this.getText(Q,q),[X,...Y]=$.slice(0,-1).split(`
13
- `);if(X==="3")return{entries:Y.map(tK)};else if(X==="4"){let[J,...K]=Y;if(!J)throw Error("missing info line for schema version 4");let[U,G,V,z]=J.split(":");if(U!=="0"||G===void 0||V===void 0||z===void 0)throw Error(`schema 4 info line '${J}' was not formatted correctly`);let H=K.map(tK);if(parseInt(V,10)!==H.length)throw Error(`schema 4 expected ${V} entries, but found ${H.length}`);else return{entries:H,id:G,size:parseInt(z,10)}}else throw Error(`schema version ${X} not supported`)}async getContent(Q,q){let $=await this.getText(Q,q),X=JSON.parse($),Y=[];for(let[K,U]of[["collection",Sw],["legacy collection",kw],["template",fw],["document",gw],["legacy document",yw]])try{if(U.guardAssert(X))return X}catch(G){let V=G instanceof Error?G.message:"unknown error type";Y.push(`Couldn't validate as ${K} because:
14
- ${V}`)}let J=Y.join(`
15
-
16
- or
17
-
18
- `);throw Error(`invalid content: ${J}`)}async getMetadata(Q,q){let $=await this.getText(Q,q),X=JSON.parse($);if(!hw.guardAssert(X))throw Error("invalid metadata");return X}async putRootHash(Q,q,$=!0){if(!Number.isSafeInteger(q))throw Error(`generation ${q} was not a safe integer`);else if(!$5.test(Q))throw new I2(Q,$5,"rootHash was not a valid hash");let X=JSON.stringify({hash:Q,generation:q,broadcast:$}),J=await(await this.#Q("PUT",`${this.#q}/sync/v3/root`,{body:X})).text(),K=JSON.parse(J);if(!_w.guardAssert(K))throw Error("invalid root hash");let{hash:U,generation:G}=K;if(Number.isSafeInteger(G))return[U,G];else throw Error(`new generation ${G} was not a safe integer; please file a bug report`)}async#J(Q,q,$){if(!this.#X.has(q)){let X=eK.default.buf($,0),Y=new ArrayBuffer(4);new DataView(Y).setInt32(0,X,!1);let J=new Uint8Array(Y).toBase64();if(await this.#Q("PUT",`${this.#q}/sync/v3/files/${q}`,{body:$,headers:{"rm-filename":Q,"x-goog-hash":`crc32c=${J}`}}),this.#X.get(q)===void 0)this.#X.set(q,null)}}async putFile(Q,q){let $=await dQ(q);return[{id:Q,hash:$,type:0,subfiles:0,size:q.length},this.#J(Q,$,q)]}async putText(Q,q){let X=new TextEncoder().encode(q),[Y,J]=await this.putFile(Q,X);return[Y,J.then(()=>{this.#X.set(Y.hash,q)})]}async putContent(Q,q){if(!Q.endsWith(".content"))throw Error(`id ${Q} did not end with '.content'`);else return await this.putText(Q,JSON.stringify(q))}async putMetadata(Q,q){if(!Q.endsWith(".metadata"))throw Error(`id ${Q} did not end with '.metadata'`);else return await this.putText(Q,JSON.stringify(q))}async putEntries(Q,q,$){if(Q==="root"&&$===3)console.warn('writing a schema 3 root index, which reMarkable rejects with a 400 "Software must be updated" error; write the root index with schema version 4 instead');q.sort((V,z)=>V.id.localeCompare(z.id));let X=q.reduce((V,z)=>V+z.size,0),Y=[`${$}
19
- `];if($===4){let V=Q==="root"?".":Q;Y.push(`0:${V}:${q.length}:${X}
20
- `)}for(let{hash:V,type:z,id:H,subfiles:j,size:Z}of q){let h=$===4?0:z;Y.push(`${V}:${h}:${H}:${j}:${Z}
21
- `)}let K=new TextEncoder().encode(Y.join("")),U;if($===3){let V=[];for(let{hash:z}of q)V.push(Uint8Array.fromHex(z));U=await dQ(cX(V))}else if($===4)U=await dQ(K);else throw Error(`unsupported schema version ${$}`);return[{id:Q,hash:U,type:$>3?0:80000000,subfiles:q.length,size:X},this.#J(`${Q}.docSchema`,U,K)]}async uploadFile(Q,q,$){let Y=new TextEncoder().encode(JSON.stringify({file_name:Q})).toBase64(),K=await(await this.#Q("POST",`${this.#$}/doc/v2/files`,{body:q,headers:{"Content-Type":$,"rm-meta":Y,"rm-source":"RoR-Browser"}})).json();if(!uw.guardAssert(K))throw Error("invalid upload response");let{docID:U,hash:G}=K;return{id:U,hash:G}}dumpCache(){return JSON.stringify(Object.fromEntries(this.#X))}clearCache(){this.#X.clear()}}var YU="https://webapp-prod.cloud.remarkable.engineering",cw="https://eu.tectonic.remarkable.com",pw="https://internal.cloud.remarkable.com",t2=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class iQ extends Error{constructor(){super("root generation was stale; try put again")}}class oQ extends Error{status;statusText;constructor(Q,q,$){super($);this.status=Q,this.statusText=q}}async function uC(Q,{deviceDesc:q="browser-chrome",uuid:$=n1(),authHost:X=YU}={}){if(Q.length!==8)throw Error(`code should be length 8, but was ${Q.length}`);let Y=await fetch(`${X}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:Q,deviceDesc:q,deviceID:$})});if(!Y.ok)throw new oQ(Y.status,Y.statusText,"couldn't register api");else return await Y.text()}class JU{#Q;#q;raw;#$;constructor(Q,q,$,X){this.#Q=Q,this.#q=X,this.raw=new lQ((Y,J,{body:K,headers:U}={})=>this.#J(J,{method:Y,body:K,headers:U}),X,q,$)}async#X(Q=!1){if(Q||this.#$===void 0)this.#$=await this.raw.getRootHash();return this.#$}async#Y(Q,q){try{let[$,X]=await this.raw.putRootHash(Q,q),[,,Y]=this.#$;this.#$=[$,X,Y]}catch($){if($ instanceof iQ)this.#$=void 0;throw $}}async#J(Q,{body:q,method:$="POST",headers:X={}}){let Y=await fetch(Q,{method:$,headers:{Authorization:`Bearer ${this.#Q}`,...X},body:q});if(!Y.ok){let J=await Y.text();if(J===`{"message":"precondition failed"}
22
- `)throw new iQ;else throw new oQ(Y.status,Y.statusText,`failed reMarkable request: ${J}`)}else return Y}async#G({hash:Q,id:q}){let{entries:$}=await this.raw.getEntries(`${q}.docSchema`,Q),X=$.find((Z)=>Z.id.endsWith(".metadata")),Y=$.find((Z)=>Z.id.endsWith(".content"));if(X===void 0)throw Error(`couldn't find metadata for hash ${Q}`);let[{visibleName:J,lastModified:K,pinned:U,parent:G,lastOpened:V,new:z,source:H},j]=await Promise.all([this.raw.getMetadata(X.id,X.hash),Y===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(Y.id,Y.hash)]);if("templateVersion"in j)return{id:q,hash:Q,visibleName:J,lastModified:K,new:z,pinned:U,source:H,parent:G,type:"TemplateType"};else if(j.fileType===void 0)return{id:q,hash:Q,visibleName:J,lastModified:K,pinned:U,parent:G,tags:j.tags,type:"CollectionType"};else return{id:q,hash:Q,visibleName:J,lastModified:K,pinned:U,parent:G,tags:j.tags,lastOpened:V??"",fileType:j.fileType,type:"DocumentType"}}async listItems(Q=!1){let q=await this.listIds(Q);return await Promise.all(q.map(($)=>this.#G($)))}async listIds(Q=!1){let[q]=await this.#X(Q),{entries:$}=await this.raw.getEntries("root.docSchema",q);return $.map(({id:X,hash:Y})=>({id:X,hash:Y}))}async getContent(Q,q){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,q),[X]=$.filter((Y)=>Y.id.endsWith(".content"));if(X===void 0)throw Error(`couldn't find contents for hash ${q}`);else return await this.raw.getContent(X.id,X.hash)}async getMetadata(Q,q){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,q),[X]=$.filter((Y)=>Y.id.endsWith(".metadata"));if(X===void 0)throw Error(`couldn't find metadata for hash ${q}`);else return await this.raw.getMetadata(X.id,X.hash)}async getPdf(Q,q){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,q),[X]=$.filter((Y)=>Y.id.endsWith(".pdf"));if(X===void 0)throw Error(`couldn't find pdf for hash ${q}`);else return await this.raw.getHash(X.id,X.hash)}async getEpub(Q,q){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,q),[X]=$.filter((Y)=>Y.id.endsWith(".epub"));if(X===void 0)throw Error(`couldn't find epub for hash ${q}`);else return await this.raw.getHash(X.id,X.hash)}async getDocument(Q,q){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,q),X=new XU.default;for(let Y of $)X.file(Y.id,this.raw.getHash(Y.id,Y.hash));return X.generateAsync({type:"uint8array"})}async#V(Q,q,$,{refresh:X,parent:Y="",pinned:J=!1,zoomMode:K="bestFit",viewBackgroundFilter:U,textScale:G=1,textAlignment:V="justify",fontName:z="",coverPageNumber:H=-1,authors:j,title:Z,publicationDate:h,publisher:g,extraMetadata:C={},lineHeight:N=-1,margins:W=125,orientation:M="portrait",tags:w}){if(Y&&!t2.test(Y))throw new I2(Y,t2,"parent must be a valid document id");let I=n1(),f=new Date,E={parent:Y,pinned:J,lastModified:(+f).toFixed(),createdTime:(+f).toFixed(),type:"DocumentType",visibleName:Q,lastOpened:"0",lastOpenedPage:0},d={coverPageNumber:H,documentMetadata:{authors:j,title:Z,publicationDate:h,publisher:g},extraMetadata:C,lineHeight:N,margins:W,orientation:M,fileType:q,formatVersion:1,tags:w?.map((u)=>({name:u,timestamp:+f}))??[],fontName:z,textAlignment:V,textScale:G,zoomMode:K,viewBackgroundFilter:U,originalPageCount:1,pageCount:1,pageTags:[],pages:[n1()],redirectionPageMap:[0],sizeInBytes:$.length.toFixed()},[[R,x],[D,L],[S,y],[v,a],[Q0,Y0,B0]]=await Promise.all([this.raw.putContent(`${I}.content`,d),this.raw.putMetadata(`${I}.metadata`,E),this.raw.putText(`${I}.pagedata`,`
23
- `),this.raw.putFile(`${I}.${q}`,$),this.#X(X)]),[[c,U0],{entries:P}]=await Promise.all([this.raw.putEntries(I,[R,D,S,v],B0),this.raw.getEntries("root.docSchema",Q0)]);P.push(c);let[l,$0]=await this.raw.putEntries("root",P,4);return await Promise.all([x,L,y,a,U0,$0]),await this.#Y(l.hash,Y0),{id:I,hash:c.hash}}async putPdf(Q,q,$={}){return await this.#V(Q,"pdf",q,$)}async putEpub(Q,q,$={}){return await this.#V(Q,"epub",q,$)}async putFolder(Q,{parent:q=""}={},$=!1){if(q&&!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");let X=n1(),Y=new Date,J={tags:[]},K={lastModified:(+Y).toFixed(),createdTime:(+Y).toFixed(),parent:q,pinned:!1,type:"CollectionType",visibleName:Q},[[U,G],[V,z],[H,j,Z]]=await Promise.all([this.raw.putContent(`${X}.content`,J),this.raw.putMetadata(`${X}.metadata`,K),this.#X($)]),[[h,g],{entries:C}]=await Promise.all([this.raw.putEntries(X,[U,V],Z),this.raw.getEntries("root.docSchema",H)]);C.push(h);let[N,W]=await this.raw.putEntries("root",C,4);return await Promise.all([G,z,g,W]),await this.#Y(N.hash,j),{id:X,hash:h.hash}}async uploadEpub(Q,q){return await this.raw.uploadFile(Q,q,"application/epub+zip")}async uploadPdf(Q,q){return await this.raw.uploadFile(Q,q,"application/pdf")}async uploadFolder(Q){return await this.raw.uploadFile(Q,new Uint8Array(0),"folder")}async#W(Q,q,$,X){let{entries:Y}=await this.raw.getEntries(`${Q}.docSchema`,q),J=Y.findIndex((Z)=>Z.id.endsWith(".content")),K=Y[J];if(K===void 0)throw Error("internal error: couldn't find content in entry hash");let U=await this.raw.getContent(K.id,K.hash);Object.assign(U,$);let[G,V]=await this.raw.putContent(K.id,U);Y[J]=G;let[z,H]=await this.raw.putEntries(Q,Y,X),j=Promise.all([V,H]);return[z,j]}async#K(Q,q,$,X){let[Y,J,K]=await this.#X(X),{entries:U}=await this.raw.getEntries("root.docSchema",Y),G=U.findIndex((g)=>g.hash===Q),V=U[G];if(V===void 0)throw new k6(Q);let[[z,H],j]=await Promise.all([this.#W(V.id,Q,q,K),this.getMetadata(V.id,Q)]);if(j.type!==$)throw Error(`expected type ${$} but got ${j.type} for hash ${Q}`);U[G]=z;let[Z,h]=await this.raw.putEntries("root",U,4);return await Promise.all([H,h]),await this.#Y(Z.hash,J),{hash:z.hash}}async updateDocument(Q,q,$=!1){return await this.#K(Q,q,"DocumentType",$)}async updateCollection(Q,q,$=!1){return await this.#K(Q,q,"CollectionType",$)}async updateTemplate(Q,q,$=!1){return await this.#K(Q,q,"TemplateType",$)}async#z(Q,q,$,X){let{entries:Y}=await this.raw.getEntries(`${Q}.docSchema`,q),J=Y.findIndex((Z)=>Z.id.endsWith(".metadata")),K=Y[J];if(K===void 0)throw Error("internal error: couldn't find metadata in entry hash");let U=await this.raw.getMetadata(K.id,K.hash);Object.assign(U,$);let[G,V]=await this.raw.putMetadata(K.id,U);Y[J]=G;let[z,H]=await this.raw.putEntries(Q,Y,X),j=Promise.all([V,H]);return[z,j]}async#U(Q,q,$=!1){let[X,Y,J]=await this.#X($),{entries:K}=await this.raw.getEntries("root.docSchema",X),U=K.findIndex((Z)=>Z.hash===Q),G=K[U];if(G===void 0)throw new k6(Q);let[V,z]=await this.#z(G.id,Q,q,J);K[U]=V;let[H,j]=await this.raw.putEntries("root",K,4);return await Promise.all([z,j]),await this.#Y(H.hash,Y),{hash:V.hash}}async move(Q,q,$=!1){if(!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");return await this.#U(Q,{parent:q},$)}async delete(Q,q=!1){return await this.move(Q,"trash",q)}async rename(Q,q,$=!1){return await this.#U(Q,{visibleName:q},$)}async stared(Q,q,$=!1){return await this.#U(Q,{pinned:q},$)}async bulkMove(Q,q,$=!1){if(!t2.test(q))throw new I2(q,t2,"parent must be a valid document id");let[X,Y,J]=await this.#X($),{entries:K}=await this.raw.getEntries("root.docSchema",X),U=new Set(Q),G=[],V=[];for(let g of K)(U.has(g.hash)?G:V).push(g);let z=await Promise.all(G.map(({id:g,hash:C})=>this.#z(g,C,{parent:q},J))),H=[],j={};for(let[g,[C,N]]of z.entries())V.push(C),H.push(N),j[G[g].hash]=C.hash;let[Z,h]=await this.raw.putEntries("root",V,4);return await Promise.all([Promise.all(H),h]),await this.#Y(Z.hash,Y),{hashes:j}}async bulkDelete(Q,q=!1){return await this.bulkMove(Q,"trash",q)}dumpCache(){return this.raw.dumpCache()}async pruneCache(Q){let[q]=await this.#X(Q),$=new Set(this.#q.keys()),Y=[(await this.raw.getEntries("root.docSchema",q)).entries],J=[];while(Y.length){for(let U of Y)for(let{hash:G,type:V,id:z}of U)if($.add(G),V===80000000)J.push(this.raw.getEntries(`${z}.docSchema`,G));Y=(await Promise.all(J)).map((U)=>U.entries),J=[]}for(let K of $)this.#q.delete(K)}clearCache(){this.raw.clearCache()}}var mw=S6(E6(F0()));async function dw(Q,{authHost:q=YU}={}){let $=await fetch(`${q}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${Q}`}});if(!$.ok)throw Error(`couldn't fetch auth token: ${$.statusText}`);return await $.text()}function lw(Q,{rawHost:q=cw,uploadHost:$=pw,cache:X,maxCacheSize:Y=1/0}={}){let J=JSON.parse(X??"{}");if(mw.guard(J)){let K=Object.entries(J),U=Y===1/0?new Map(K):new l4(Y,K);return new JU(Q,q,$,U)}throw Error("cache was not a valid cache (json string mapping); your cache must be corrupted somehow. Either initialize remarkable without a cache, or fix its format.")}async function cC(Q,q={}){let{authHost:$,rawHost:X,uploadHost:Y,cache:J,maxCacheSize:K,syncHost:U}=q??{},G=await dw(Q,{authHost:$});return lw(G,{rawHost:X,uploadHost:Y,cache:J,maxCacheSize:K,syncHost:U})}export{lw as session,cC as remarkable,uC as register,dw as auth,I2 as ValidationError,oQ as ResponseError,k6 as HashNotFoundError,iQ as GenerationError};
1
+ var nW=Object.create;var{getPrototypeOf:oW,defineProperty:f6,getOwnPropertyNames:dQ,getOwnPropertyDescriptor:rW}=Object,iQ=Object.prototype.hasOwnProperty;function nQ(Q){return this[Q]}var aW,sW,n5=(Q,J,$)=>{var q=Q!=null&&typeof Q==="object";if(q){var X=J?aW??=new WeakMap:sW??=new WeakMap,Y=X.get(Q);if(Y)return Y}$=Q!=null?nW(oW(Q)):{};let G=J||!Q||!Q.__esModule?f6($,"default",{value:Q,enumerable:!0}):$;for(let W of dQ(Q))if(!iQ.call(G,W))f6(G,W,{get:nQ.bind(Q,W),enumerable:!0});if(q)X.set(Q,G);return G},Y2=(Q)=>{var J=(lQ??=new WeakMap).get(Q),$;if(J)return J;if(J=f6({},"__esModule",{value:!0}),Q&&typeof Q==="object"||typeof Q==="function"){for(var q of dQ(Q))if(!iQ.call(J,q))f6(J,q,{get:nQ.bind(Q,q),enumerable:!($=rW(Q,q))||$.enumerable})}return lQ.set(Q,J),J},lQ,g=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports);var tW=(Q)=>Q;function eW(Q,J){this[Q]=tW.bind(null,J)}var o5=(Q,J)=>{for(var $ in J)f6(Q,$,{get:J[$],enumerable:!0,configurable:!0,set:eW.bind(J,$)})};var oQ=(Q,J)=>()=>(Q&&(J=Q(Q=0)),J);var b2={};o5(b2,{transcode:()=>bV,resolveObjectURL:()=>fV,kStringMaxLength:()=>qJ,kMaxLength:()=>_6,isUtf8:()=>_V,isAscii:()=>yV,default:()=>hV,constants:()=>BV,btoa:()=>YV,atob:()=>GV,INSPECT_MAX_BYTES:()=>$J,File:()=>WV,Buffer:()=>h,Blob:()=>VV});function QV(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 q=$===J?0:4-$%4;return[$,q]}function JV(Q,J){return(Q+J)*3/4-J}function $V(Q){var J,$=QV(Q),q=$[0],X=$[1],Y=new Uint8Array(JV(q,X)),G=0,W=X>0?q-4:q,B;for(B=0;B<W;B+=4)J=G2[Q.charCodeAt(B)]<<18|G2[Q.charCodeAt(B+1)]<<12|G2[Q.charCodeAt(B+2)]<<6|G2[Q.charCodeAt(B+3)],Y[G++]=J>>16&255,Y[G++]=J>>8&255,Y[G++]=J&255;if(X===2)J=G2[Q.charCodeAt(B)]<<2|G2[Q.charCodeAt(B+1)]>>4,Y[G++]=J&255;if(X===1)J=G2[Q.charCodeAt(B)]<<10|G2[Q.charCodeAt(B+1)]<<4|G2[Q.charCodeAt(B+2)]>>2,Y[G++]=J>>8&255,Y[G++]=J&255;return Y}function qV(Q){return P2[Q>>18&63]+P2[Q>>12&63]+P2[Q>>6&63]+P2[Q&63]}function XV(Q,J,$){var q,X=[];for(var Y=J;Y<$;Y+=3)q=(Q[Y]<<16&16711680)+(Q[Y+1]<<8&65280)+(Q[Y+2]&255),X.push(qV(q));return X.join("")}function aQ(Q){var J,$=Q.length,q=$%3,X=[],Y=16383;for(var G=0,W=$-q;G<W;G+=Y)X.push(XV(Q,G,G+Y>W?W:G+Y));if(q===1)J=Q[$-1],X.push(P2[J>>2]+P2[J<<4&63]+"==");else if(q===2)J=(Q[$-2]<<8)+Q[$-1],X.push(P2[J>>10]+P2[J>>4&63]+P2[J<<2&63]+"=");return X.join("")}function I8(Q,J,$,q,X){var Y,G,W=X*8-q-1,B=(1<<W)-1,V=B>>1,U=-7,M=$?X-1:0,z=$?-1:1,j=Q[J+M];M+=z,Y=j&(1<<-U)-1,j>>=-U,U+=W;for(;U>0;Y=Y*256+Q[J+M],M+=z,U-=8);G=Y&(1<<-U)-1,Y>>=-U,U+=q;for(;U>0;G=G*256+Q[J+M],M+=z,U-=8);if(Y===0)Y=1-V;else if(Y===B)return G?NaN:(j?-1:1)*(1/0);else G=G+Math.pow(2,q),Y=Y-V;return(j?-1:1)*G*Math.pow(2,Y-q)}function JJ(Q,J,$,q,X,Y){var G,W,B,V=Y*8-X-1,U=(1<<V)-1,M=U>>1,z=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,j=q?0:Y-1,y=q?1:-1,f=J<0||J===0&&1/J<0?1:0;if(J=Math.abs(J),isNaN(J)||J===1/0)W=isNaN(J)?1:0,G=U;else{if(G=Math.floor(Math.log(J)/Math.LN2),J*(B=Math.pow(2,-G))<1)G--,B*=2;if(G+M>=1)J+=z/B;else J+=z*Math.pow(2,1-M);if(J*B>=2)G++,B/=2;if(G+M>=U)W=0,G=U;else if(G+M>=1)W=(J*B-1)*Math.pow(2,X),G=G+M;else W=J*Math.pow(2,M-1)*Math.pow(2,X),G=0}for(;X>=8;Q[$+j]=W&255,j+=y,W/=256,X-=8);G=G<<X|W,V+=X;for(;V>0;Q[$+j]=G&255,j+=y,G/=256,V-=8);Q[$+j-y]|=f*128}function y2(Q){if(Q>_6)throw RangeError('The value "'+Q+'" is invalid for option "size"');let J=new Uint8Array(Q);return Object.setPrototypeOf(J,h.prototype),J}function Q4(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(q){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:q,writable:!0})}toString(){return`${this.name} [${Q}]: ${this.message}`}}}function h(Q,J,$){if(typeof Q==="number"){if(typeof J==="string")throw TypeError('The "string" argument must be of type string. Received type number');return J4(Q)}return XJ(Q,J,$)}function XJ(Q,J,$){if(typeof Q==="string")return jV(Q,J);if(ArrayBuffer.isView(Q))return MV(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(R2(Q,ArrayBuffer)||Q&&R2(Q.buffer,ArrayBuffer))return t5(Q,J,$);if(typeof SharedArrayBuffer<"u"&&(R2(Q,SharedArrayBuffer)||Q&&R2(Q.buffer,SharedArrayBuffer)))return t5(Q,J,$);if(typeof Q==="number")throw TypeError('The "value" argument must not be of type number. Received type number');let q=Q.valueOf&&Q.valueOf();if(q!=null&&q!==Q)return h.from(q,J,$);let X=FV(Q);if(X)return X;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]==="function")return h.from(Q[Symbol.toPrimitive]("string"),J,$);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}function YJ(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 HV(Q,J,$){if(YJ(Q),Q<=0)return y2(Q);if(J!==void 0)return typeof $==="string"?y2(Q).fill(J,$):y2(Q).fill(J);return y2(Q)}function J4(Q){return YJ(Q),y2(Q<0?0:$4(Q)|0)}function jV(Q,J){if(typeof J!=="string"||J==="")J="utf8";if(!h.isEncoding(J))throw TypeError("Unknown encoding: "+J);let $=GJ(Q,J)|0,q=y2($),X=q.write(Q,J);if(X!==$)q=q.slice(0,X);return q}function s5(Q){let J=Q.length<0?0:$4(Q.length)|0,$=y2(J);for(let q=0;q<J;q+=1)$[q]=Q[q]&255;return $}function MV(Q){if(R2(Q,Uint8Array)){let J=new Uint8Array(Q);return t5(J.buffer,J.byteOffset,J.byteLength)}return s5(Q)}function t5(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 q;if(J===void 0&&$===void 0)q=new Uint8Array(Q);else if($===void 0)q=new Uint8Array(Q,J);else q=new Uint8Array(Q,J,$);return Object.setPrototypeOf(q,h.prototype),q}function FV(Q){if(h.isBuffer(Q)){let J=$4(Q.length)|0,$=y2(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 y2(0);return s5(Q)}if(Q.type==="Buffer"&&Array.isArray(Q.data))return s5(Q.data)}function $4(Q){if(Q>=_6)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_6.toString(16)+" bytes");return Q|0}function GJ(Q,J){if(h.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||R2(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,q=arguments.length>2&&arguments[2]===!0;if(!q&&$===0)return 0;let X=!1;for(;;)switch(J){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return e5(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return FJ(Q).length;default:if(X)return q?-1:e5(Q).length;J=(""+J).toLowerCase(),X=!0}}function zV(Q,J,$){let q=!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 IV(this,J,$);case"utf8":case"utf-8":return VJ(this,J,$);case"ascii":return RV(this,J,$);case"latin1":case"binary":return AV(this,J,$);case"base64":return OV(this,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return SV(this,J,$);default:if(q)throw TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),q=!0}}function R1(Q,J,$){let q=Q[J];Q[J]=Q[$],Q[$]=q}function WJ(Q,J,$,q,X){if(Q.length===0)return-1;if(typeof $==="string")q=$,$=0;else if($>2147483647)$=2147483647;else if($<-2147483648)$=-2147483648;if($=+$,Number.isNaN($))$=X?0:Q.length-1;if($<0)$=Q.length+$;if($>=Q.length)if(X)return-1;else $=Q.length-1;else if($<0)if(X)$=0;else return-1;if(typeof J==="string")J=h.from(J,q);if(h.isBuffer(J)){if(J.length===0)return-1;return tQ(Q,J,$,q,X)}else if(typeof J==="number"){if(J=J&255,typeof Uint8Array.prototype.indexOf==="function")if(X)return Uint8Array.prototype.indexOf.call(Q,J,$);else return Uint8Array.prototype.lastIndexOf.call(Q,J,$);return tQ(Q,[J],$,q,X)}throw TypeError("val must be string, number or Buffer")}function tQ(Q,J,$,q,X){let Y=1,G=Q.length,W=J.length;if(q!==void 0){if(q=String(q).toLowerCase(),q==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le"){if(Q.length<2||J.length<2)return-1;Y=2,G/=2,W/=2,$/=2}}function B(U,M){if(Y===1)return U[M];else return U.readUInt16BE(M*Y)}let V;if(X){let U=-1;for(V=$;V<G;V++)if(B(Q,V)===B(J,U===-1?0:V-U)){if(U===-1)U=V;if(V-U+1===W)return U*Y}else{if(U!==-1)V-=V-U;U=-1}}else{if($+W>G)$=G-W;for(V=$;V>=0;V--){let U=!0;for(let M=0;M<W;M++)if(B(Q,V+M)!==B(J,M)){U=!1;break}if(U)return V}}return-1}function wV(Q,J,$,q){$=Number($)||0;let X=Q.length-$;if(!q)q=X;else if(q=Number(q),q>X)q=X;let Y=J.length;if(q>Y/2)q=Y/2;let G;for(G=0;G<q;++G){let W=parseInt(J.substr(G*2,2),16);if(Number.isNaN(W))return G;Q[$+G]=W}return G}function LV(Q,J,$,q){return S8(e5(J,Q.length-$),Q,$,q)}function NV(Q,J,$,q){return S8(kV(J),Q,$,q)}function DV(Q,J,$,q){return S8(FJ(J),Q,$,q)}function CV(Q,J,$,q){return S8(TV(J,Q.length-$),Q,$,q)}function OV(Q,J,$){if(J===0&&$===Q.length)return aQ(Q);else return aQ(Q.slice(J,$))}function VJ(Q,J,$){$=Math.min(Q.length,$);let q=[],X=J;while(X<$){let Y=Q[X],G=null,W=Y>239?4:Y>223?3:Y>191?2:1;if(X+W<=$){let B,V,U,M;switch(W){case 1:if(Y<128)G=Y;break;case 2:if(B=Q[X+1],(B&192)===128){if(M=(Y&31)<<6|B&63,M>127)G=M}break;case 3:if(B=Q[X+1],V=Q[X+2],(B&192)===128&&(V&192)===128){if(M=(Y&15)<<12|(B&63)<<6|V&63,M>2047&&(M<55296||M>57343))G=M}break;case 4:if(B=Q[X+1],V=Q[X+2],U=Q[X+3],(B&192)===128&&(V&192)===128&&(U&192)===128){if(M=(Y&15)<<18|(B&63)<<12|(V&63)<<6|U&63,M>65535&&M<1114112)G=M}}}if(G===null)G=65533,W=1;else if(G>65535)G-=65536,q.push(G>>>10&1023|55296),G=56320|G&1023;q.push(G),X+=W}return PV(q)}function PV(Q){let J=Q.length;if(J<=eQ)return String.fromCharCode.apply(String,Q);let $="",q=0;while(q<J)$+=String.fromCharCode.apply(String,Q.slice(q,q+=eQ));return $}function RV(Q,J,$){let q="";$=Math.min(Q.length,$);for(let X=J;X<$;++X)q+=String.fromCharCode(Q[X]&127);return q}function AV(Q,J,$){let q="";$=Math.min(Q.length,$);for(let X=J;X<$;++X)q+=String.fromCharCode(Q[X]);return q}function IV(Q,J,$){let q=Q.length;if(!J||J<0)J=0;if(!$||$<0||$>q)$=q;let X="";for(let Y=J;Y<$;++Y)X+=xV[Q[Y]];return X}function SV(Q,J,$){let q=Q.slice(J,$),X="";for(let Y=0;Y<q.length-1;Y+=2)X+=String.fromCharCode(q[Y]+q[Y+1]*256);return X}function b0(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 a0(Q,J,$,q,X,Y){if(!h.isBuffer(Q))throw TypeError('"buffer" argument must be a Buffer instance');if(J>X||J<Y)throw RangeError('"value" argument is out of bounds');if($+q>Q.length)throw RangeError("Index out of range")}function BJ(Q,J,$,q,X){MJ(J,q,X,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 G=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$++]=G,G=G>>8,Q[$++]=G,G=G>>8,Q[$++]=G,G=G>>8,Q[$++]=G,$}function UJ(Q,J,$,q,X){MJ(J,q,X,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 G=Number(J>>BigInt(32)&BigInt(4294967295));return Q[$+3]=G,G=G>>8,Q[$+2]=G,G=G>>8,Q[$+1]=G,G=G>>8,Q[$]=G,$+8}function KJ(Q,J,$,q,X,Y){if($+q>Q.length)throw RangeError("Index out of range");if($<0)throw RangeError("Index out of range")}function HJ(Q,J,$,q,X){if(J=+J,$=$>>>0,!X)KJ(Q,J,$,4,340282346638528860000000000000000000000,-340282346638528860000000000000000000000);return JJ(Q,J,$,q,23,4),$+4}function jJ(Q,J,$,q,X){if(J=+J,$=$>>>0,!X)KJ(Q,J,$,8,179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000);return JJ(Q,J,$,q,52,8),$+8}function QJ(Q){let J="",$=Q.length,q=Q[0]==="-"?1:0;for(;$>=q+4;$-=3)J=`_${Q.slice($-3,$)}${J}`;return`${Q.slice(0,$)}${J}`}function vV(Q,J,$){if(r1(J,"offset"),Q[J]===void 0||Q[J+$]===void 0)y6(J,Q.length-($+1))}function MJ(Q,J,$,q,X,Y){if(Q>$||Q<J){let G=typeof J==="bigint"?"n":"",W;if(Y>3)if(J===0||J===BigInt(0))W=`>= 0${G} and < 2${G} ** ${(Y+1)*8}${G}`;else W=`>= -(2${G} ** ${(Y+1)*8-1}${G}) and < 2 ** ${(Y+1)*8-1}${G}`;else W=`>= ${J}${G} and <= ${$}${G}`;throw new a5("value",W,Q)}vV(q,X,Y)}function r1(Q,J){if(typeof Q!=="number")throw new KV(J,"number",Q)}function y6(Q,J,$){if(Math.floor(Q)!==Q)throw r1(Q,$),new a5($||"offset","an integer",Q);if(J<0)throw new UV;throw new a5($||"offset",`>= ${$?1:0} and <= ${J}`,Q)}function ZV(Q){if(Q=Q.split("=")[0],Q=Q.trim().replace(EV,""),Q.length<2)return"";while(Q.length%4!==0)Q=Q+"=";return Q}function e5(Q,J){J=J||1/0;let $,q=Q.length,X=null,Y=[];for(let G=0;G<q;++G){if($=Q.charCodeAt(G),$>55295&&$<57344){if(!X){if($>56319){if((J-=3)>-1)Y.push(239,191,189);continue}else if(G+1===q){if((J-=3)>-1)Y.push(239,191,189);continue}X=$;continue}if($<56320){if((J-=3)>-1)Y.push(239,191,189);X=$;continue}$=(X-55296<<10|$-56320)+65536}else if(X){if((J-=3)>-1)Y.push(239,191,189)}if(X=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 kV(Q){let J=[];for(let $=0;$<Q.length;++$)J.push(Q.charCodeAt($)&255);return J}function TV(Q,J){let $,q,X,Y=[];for(let G=0;G<Q.length;++G){if((J-=2)<0)break;$=Q.charCodeAt(G),q=$>>8,X=$%256,Y.push(X),Y.push(q)}return Y}function FJ(Q){return $V(ZV(Q))}function S8(Q,J,$,q){let X;for(X=0;X<q;++X){if(X+$>=J.length||X>=Q.length)break;J[X+$]=Q[X]}return X}function R2(Q,J){return Q instanceof J||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===J.name}function t2(Q){return typeof BigInt>"u"?gV:Q}function gV(){throw Error("BigInt not supported")}function q4(Q){return()=>{throw Error(Q+" is not implemented for node:buffer browser polyfill")}}var P2,G2,r5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P1,rQ,sQ,$J=50,_6=2147483647,qJ=536870888,YV,GV,WV,VV,BV,UV,KV,a5,eQ=4096,EV,xV,fV,_V,yV=(Q)=>{for(let J of Q)if(J.charCodeAt(0)>127)return!1;return!0},bV,hV;var h2=oQ(()=>{P2=[],G2=[];for(P1=0,rQ=r5.length;P1<rQ;++P1)P2[P1]=r5[P1],G2[r5.charCodeAt(P1)]=P1;G2[45]=62;G2[95]=63;sQ=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):null,YV=globalThis.btoa,GV=globalThis.atob,WV=globalThis.File,VV=globalThis.Blob,BV={MAX_LENGTH:_6,MAX_STRING_LENGTH:qJ};UV=Q4("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),KV=Q4("ERR_INVALID_ARG_TYPE",function(Q,J){return`The "${Q}" argument must be of type number. Received type ${typeof J}`},TypeError),a5=Q4("ERR_OUT_OF_RANGE",function(Q,J,$){let q=`The value of "${Q}" is out of range.`,X=$;if(Number.isInteger($)&&Math.abs($)>4294967296)X=QJ(String($));else if(typeof $==="bigint"){if(X=String($),$>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))X=QJ(X);X+="n"}return q+=` It must be ${J}. Received ${X}`,q},RangeError);Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(!h.isBuffer(this))return;return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(!h.isBuffer(this))return;return this.byteOffset}});h.poolSize=8192;h.from=function(Q,J,$){return XJ(Q,J,$)};Object.setPrototypeOf(h.prototype,Uint8Array.prototype);Object.setPrototypeOf(h,Uint8Array);h.alloc=function(Q,J,$){return HV(Q,J,$)};h.allocUnsafe=function(Q){return J4(Q)};h.allocUnsafeSlow=function(Q){return J4(Q)};h.isBuffer=function(Q){return Q!=null&&Q._isBuffer===!0&&Q!==h.prototype};h.compare=function(Q,J){if(R2(Q,Uint8Array))Q=h.from(Q,Q.offset,Q.byteLength);if(R2(J,Uint8Array))J=h.from(J,J.offset,J.byteLength);if(!h.isBuffer(Q)||!h.isBuffer(J))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Q===J)return 0;let $=Q.length,q=J.length;for(let X=0,Y=Math.min($,q);X<Y;++X)if(Q[X]!==J[X]){$=Q[X],q=J[X];break}if($<q)return-1;if(q<$)return 1;return 0};h.isEncoding=function(Q){switch(String(Q).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};h.concat=function(Q,J){if(!Array.isArray(Q))throw TypeError('"list" argument must be an Array of Buffers');if(Q.length===0)return h.alloc(0);let $;if(J===void 0){J=0;for($=0;$<Q.length;++$)J+=Q[$].length}let q=h.allocUnsafe(J),X=0;for($=0;$<Q.length;++$){let Y=Q[$];if(R2(Y,Uint8Array))if(X+Y.length>q.length){if(!h.isBuffer(Y))Y=h.from(Y);Y.copy(q,X)}else Uint8Array.prototype.set.call(q,Y,X);else if(!h.isBuffer(Y))throw TypeError('"list" argument must be an Array of Buffers');else Y.copy(q,X);X+=Y.length}return q};h.byteLength=GJ;h.prototype._isBuffer=!0;h.prototype.swap16=function(){let Q=this.length;if(Q%2!==0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let J=0;J<Q;J+=2)R1(this,J,J+1);return this};h.prototype.swap32=function(){let Q=this.length;if(Q%4!==0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let J=0;J<Q;J+=4)R1(this,J,J+3),R1(this,J+1,J+2);return this};h.prototype.swap64=function(){let Q=this.length;if(Q%8!==0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let J=0;J<Q;J+=8)R1(this,J,J+7),R1(this,J+1,J+6),R1(this,J+2,J+5),R1(this,J+3,J+4);return this};h.prototype.toString=function(){let Q=this.length;if(Q===0)return"";if(arguments.length===0)return VJ(this,0,Q);return zV.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function(Q){if(!h.isBuffer(Q))throw TypeError("Argument must be a Buffer");if(this===Q)return!0;return h.compare(this,Q)===0};h.prototype.inspect=function(){let Q="",J=$J;if(Q=this.toString("hex",0,J).replace(/(.{2})/g,"$1 ").trim(),this.length>J)Q+=" ... ";return"<Buffer "+Q+">"};if(sQ)h.prototype[sQ]=h.prototype.inspect;h.prototype.compare=function(Q,J,$,q,X){if(R2(Q,Uint8Array))Q=h.from(Q,Q.offset,Q.byteLength);if(!h.isBuffer(Q))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Q);if(J===void 0)J=0;if($===void 0)$=Q?Q.length:0;if(q===void 0)q=0;if(X===void 0)X=this.length;if(J<0||$>Q.length||q<0||X>this.length)throw RangeError("out of range index");if(q>=X&&J>=$)return 0;if(q>=X)return-1;if(J>=$)return 1;if(J>>>=0,$>>>=0,q>>>=0,X>>>=0,this===Q)return 0;let Y=X-q,G=$-J,W=Math.min(Y,G),B=this.slice(q,X),V=Q.slice(J,$);for(let U=0;U<W;++U)if(B[U]!==V[U]){Y=B[U],G=V[U];break}if(Y<G)return-1;if(G<Y)return 1;return 0};h.prototype.includes=function(Q,J,$){return this.indexOf(Q,J,$)!==-1};h.prototype.indexOf=function(Q,J,$){return WJ(this,Q,J,$,!0)};h.prototype.lastIndexOf=function(Q,J,$){return WJ(this,Q,J,$,!1)};h.prototype.write=function(Q,J,$,q){if(J===void 0)q="utf8",$=this.length,J=0;else if($===void 0&&typeof J==="string")q=J,$=this.length,J=0;else if(isFinite(J))if(J=J>>>0,isFinite($)){if($=$>>>0,q===void 0)q="utf8"}else q=$,$=void 0;else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let X=this.length-J;if($===void 0||$>X)$=X;if(Q.length>0&&($<0||J<0)||J>this.length)throw RangeError("Attempt to write outside buffer bounds");if(!q)q="utf8";let Y=!1;for(;;)switch(q){case"hex":return wV(this,Q,J,$);case"utf8":case"utf-8":return LV(this,Q,J,$);case"ascii":case"latin1":case"binary":return NV(this,Q,J,$);case"base64":return DV(this,Q,J,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return CV(this,Q,J,$);default:if(Y)throw TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),Y=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};h.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 q=this.subarray(Q,J);return Object.setPrototypeOf(q,h.prototype),q};h.prototype.readUintLE=h.prototype.readUIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=this[Q],X=1,Y=0;while(++Y<J&&(X*=256))q+=this[Q+Y]*X;return q};h.prototype.readUintBE=h.prototype.readUIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=this[Q+--J],X=1;while(J>0&&(X*=256))q+=this[Q+--J]*X;return q};h.prototype.readUint8=h.prototype.readUInt8=function(Q,J){if(Q=Q>>>0,!J)b0(Q,1,this.length);return this[Q]};h.prototype.readUint16LE=h.prototype.readUInt16LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);return this[Q]|this[Q+1]<<8};h.prototype.readUint16BE=h.prototype.readUInt16BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);return this[Q]<<8|this[Q+1]};h.prototype.readUint32LE=h.prototype.readUInt32LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return(this[Q]|this[Q+1]<<8|this[Q+2]<<16)+this[Q+3]*16777216};h.prototype.readUint32BE=h.prototype.readUInt32BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return this[Q]*16777216+(this[Q+1]<<16|this[Q+2]<<8|this[Q+3])};h.prototype.readBigUInt64LE=t2(function(Q){Q=Q>>>0,r1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)y6(Q,this.length-8);let q=J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216,X=this[++Q]+this[++Q]*256+this[++Q]*65536+$*16777216;return BigInt(q)+(BigInt(X)<<BigInt(32))});h.prototype.readBigUInt64BE=t2(function(Q){Q=Q>>>0,r1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)y6(Q,this.length-8);let q=J*16777216+this[++Q]*65536+this[++Q]*256+this[++Q],X=this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$;return(BigInt(q)<<BigInt(32))+BigInt(X)});h.prototype.readIntLE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=this[Q],X=1,Y=0;while(++Y<J&&(X*=256))q+=this[Q+Y]*X;if(X*=128,q>=X)q-=Math.pow(2,8*J);return q};h.prototype.readIntBE=function(Q,J,$){if(Q=Q>>>0,J=J>>>0,!$)b0(Q,J,this.length);let q=J,X=1,Y=this[Q+--q];while(q>0&&(X*=256))Y+=this[Q+--q]*X;if(X*=128,Y>=X)Y-=Math.pow(2,8*J);return Y};h.prototype.readInt8=function(Q,J){if(Q=Q>>>0,!J)b0(Q,1,this.length);if(!(this[Q]&128))return this[Q];return(255-this[Q]+1)*-1};h.prototype.readInt16LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);let $=this[Q]|this[Q+1]<<8;return $&32768?$|4294901760:$};h.prototype.readInt16BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,2,this.length);let $=this[Q+1]|this[Q]<<8;return $&32768?$|4294901760:$};h.prototype.readInt32LE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return this[Q]|this[Q+1]<<8|this[Q+2]<<16|this[Q+3]<<24};h.prototype.readInt32BE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return this[Q]<<24|this[Q+1]<<16|this[Q+2]<<8|this[Q+3]};h.prototype.readBigInt64LE=t2(function(Q){Q=Q>>>0,r1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)y6(Q,this.length-8);let q=this[Q+4]+this[Q+5]*256+this[Q+6]*65536+($<<24);return(BigInt(q)<<BigInt(32))+BigInt(J+this[++Q]*256+this[++Q]*65536+this[++Q]*16777216)});h.prototype.readBigInt64BE=t2(function(Q){Q=Q>>>0,r1(Q,"offset");let J=this[Q],$=this[Q+7];if(J===void 0||$===void 0)y6(Q,this.length-8);let q=(J<<24)+this[++Q]*65536+this[++Q]*256+this[++Q];return(BigInt(q)<<BigInt(32))+BigInt(this[++Q]*16777216+this[++Q]*65536+this[++Q]*256+$)});h.prototype.readFloatLE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return I8(this,Q,!0,23,4)};h.prototype.readFloatBE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,4,this.length);return I8(this,Q,!1,23,4)};h.prototype.readDoubleLE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,8,this.length);return I8(this,Q,!0,52,8)};h.prototype.readDoubleBE=function(Q,J){if(Q=Q>>>0,!J)b0(Q,8,this.length);return I8(this,Q,!1,52,8)};h.prototype.writeUintLE=h.prototype.writeUIntLE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,$=$>>>0,!q){let G=Math.pow(2,8*$)-1;a0(this,Q,J,$,G,0)}let X=1,Y=0;this[J]=Q&255;while(++Y<$&&(X*=256))this[J+Y]=Q/X&255;return J+$};h.prototype.writeUintBE=h.prototype.writeUIntBE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,$=$>>>0,!q){let G=Math.pow(2,8*$)-1;a0(this,Q,J,$,G,0)}let X=$-1,Y=1;this[J+X]=Q&255;while(--X>=0&&(Y*=256))this[J+X]=Q/Y&255;return J+$};h.prototype.writeUint8=h.prototype.writeUInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(this,Q,J,1,255,0);return this[J]=Q&255,J+1};h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(this,Q,J,2,65535,0);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(this,Q,J,2,65535,0);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(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};h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(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};h.prototype.writeBigUInt64LE=t2(function(Q,J=0){return BJ(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeBigUInt64BE=t2(function(Q,J=0){return UJ(this,Q,J,BigInt(0),BigInt("0xffffffffffffffff"))});h.prototype.writeIntLE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,!q){let W=Math.pow(2,8*$-1);a0(this,Q,J,$,W-1,-W)}let X=0,Y=1,G=0;this[J]=Q&255;while(++X<$&&(Y*=256)){if(Q<0&&G===0&&this[J+X-1]!==0)G=1;this[J+X]=(Q/Y>>0)-G&255}return J+$};h.prototype.writeIntBE=function(Q,J,$,q){if(Q=+Q,J=J>>>0,!q){let W=Math.pow(2,8*$-1);a0(this,Q,J,$,W-1,-W)}let X=$-1,Y=1,G=0;this[J+X]=Q&255;while(--X>=0&&(Y*=256)){if(Q<0&&G===0&&this[J+X+1]!==0)G=1;this[J+X]=(Q/Y>>0)-G&255}return J+$};h.prototype.writeInt8=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(this,Q,J,1,127,-128);if(Q<0)Q=255+Q+1;return this[J]=Q&255,J+1};h.prototype.writeInt16LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(this,Q,J,2,32767,-32768);return this[J]=Q&255,this[J+1]=Q>>>8,J+2};h.prototype.writeInt16BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(this,Q,J,2,32767,-32768);return this[J]=Q>>>8,this[J+1]=Q&255,J+2};h.prototype.writeInt32LE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(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};h.prototype.writeInt32BE=function(Q,J,$){if(Q=+Q,J=J>>>0,!$)a0(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};h.prototype.writeBigInt64LE=t2(function(Q,J=0){return BJ(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeBigInt64BE=t2(function(Q,J=0){return UJ(this,Q,J,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});h.prototype.writeFloatLE=function(Q,J,$){return HJ(this,Q,J,!0,$)};h.prototype.writeFloatBE=function(Q,J,$){return HJ(this,Q,J,!1,$)};h.prototype.writeDoubleLE=function(Q,J,$){return jJ(this,Q,J,!0,$)};h.prototype.writeDoubleBE=function(Q,J,$){return jJ(this,Q,J,!1,$)};h.prototype.copy=function(Q,J,$,q){if(!h.isBuffer(Q))throw TypeError("argument should be a Buffer");if(!$)$=0;if(!q&&q!==0)q=this.length;if(J>=Q.length)J=Q.length;if(!J)J=0;if(q>0&&q<$)q=$;if(q===$)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(q<0)throw RangeError("sourceEnd out of bounds");if(q>this.length)q=this.length;if(Q.length-J<q-$)q=Q.length-J+$;let X=q-$;if(this===Q&&typeof Uint8Array.prototype.copyWithin==="function")this.copyWithin(J,$,q);else Uint8Array.prototype.set.call(Q,this.subarray($,q),J);return X};h.prototype.fill=function(Q,J,$,q){if(typeof Q==="string"){if(typeof J==="string")q=J,J=0,$=this.length;else if(typeof $==="string")q=$,$=this.length;if(q!==void 0&&typeof q!=="string")throw TypeError("encoding must be a string");if(typeof q==="string"&&!h.isEncoding(q))throw TypeError("Unknown encoding: "+q);if(Q.length===1){let Y=Q.charCodeAt(0);if(q==="utf8"&&Y<128||q==="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 X;if(typeof Q==="number")for(X=J;X<$;++X)this[X]=Q;else{let Y=h.isBuffer(Q)?Q:h.from(Q,q),G=Y.length;if(G===0)throw TypeError('The value "'+Q+'" is invalid for argument "value"');for(X=0;X<$-J;++X)this[X+J]=Y[X%G]}return this};EV=/[^+/0-9A-Za-z-_]/g;xV=function(){let Q=Array(256);for(let J=0;J<16;++J){let $=J*16;for(let q=0;q<16;++q)Q[$+q]="0123456789abcdef"[J]+"0123456789abcdef"[q]}return Q}();fV=q4("resolveObjectURL"),_V=q4("isUtf8"),bV=q4("transcode"),hV=h});var h6={};o5(h6,{setMaxListeners:()=>IJ,once:()=>RJ,listenerCount:()=>SJ,init:()=>e2,getMaxListeners:()=>EJ,getEventListeners:()=>AJ,default:()=>oV,captureRejectionSymbol:()=>DJ,addAbortListener:()=>ZJ,EventEmitter:()=>e2});function CJ(Q,J){var{_events:$}=Q;if(J[0]??=Error("Unhandled error."),!$)throw J[0];var q=$[NJ];if(q)for(var X of wJ.call(q))X.apply(Q,J);var Y=$.error;if(!Y)throw J[0];for(var X of wJ.call(Y))X.apply(Q,J);return!0}function uV(Q,J,$,q){J.then(void 0,function(X){queueMicrotask(()=>pV(Q,X,$,q))})}function pV(Q,J,$,q){if(typeof Q[zJ]==="function")Q[zJ](J,$,...q);else try{Q[A1]=!1,Q.emit("error",J)}finally{Q[A1]=!0}}function OJ(Q,J,$){$.warned=!0;let q=Error(`Possible EventEmitter memory leak detected. ${$.length} ${String(J)} listeners added to [${Q.constructor.name}]. Use emitter.setMaxListeners() to increase limit`);q.name="MaxListenersExceededWarning",q.emitter=Q,q.type=J,q.count=$.length,console.warn(q)}function PJ(Q,J,...$){this.removeListener(Q,J),J.apply(this,$)}function RJ(Q,J,$){var q=$?.signal;if(vJ(q,"options.signal"),q?.aborted)throw new X4(void 0,{cause:q?.reason});let{resolve:X,reject:Y,promise:G}=$newPromiseCapability(Promise),W=(U)=>{if(Q.removeListener(J,B),q!=null)v8(q,"abort",V);Y(U)},B=(...U)=>{if(typeof Q.removeListener==="function")Q.removeListener("error",W);if(q!=null)v8(q,"abort",V);X(U)};if(LJ(Q,J,B,{once:!0}),J!=="error"&&typeof Q.once==="function")Q.once("error",W);function V(){v8(Q,J,B),v8(Q,"error",W),Y(new X4(void 0,{cause:q?.reason}))}if(q!=null)LJ(q,"abort",V,{once:!0});return G}function AJ(Q,J){return Q.listeners(J)}function IJ(Q,...J){G4(Q,"setMaxListeners",0);var $;if(J&&($=J.length))for(let q=0;q<$;q++)J[q].setMaxListeners(Q);else I1=Q}function SJ(Q,J){return Q.listenerCount(J)}function v8(Q,J,$,q){if(typeof Q.removeListener==="function")Q.removeListener(J,$);else Q.removeEventListener(J,$,q)}function LJ(Q,J,$,q){if(typeof Q.on==="function")if(q.once)Q.once(J,$);else Q.on(J,$);else Q.addEventListener(J,$,q)}function a1(Q,J,$){let q=TypeError(`The "${Q}" argument must be of type ${J}. Received ${$}`);return q.code="ERR_INVALID_ARG_TYPE",q}function iV(Q,J,$){let q=RangeError(`The "${Q}" argument is out of range. It must be ${J}. Received ${$}`);return q.code="ERR_OUT_OF_RANGE",q}function vJ(Q,J){if(Q!==void 0&&(Q===null||typeof Q!=="object"||!("aborted"in Q)))throw a1(J,"AbortSignal",Q)}function G4(Q,J,$,q){if(typeof Q!=="number")throw a1(J,"number",Q);if($!=null&&Q<$||q!=null&&Q>q||($!=null||q!=null)&&Number.isNaN(Q))throw iV(J,`${$!=null?`>= ${$}`:""}${$!=null&&q!=null?" && ":""}${q!=null?`<= ${q}`:""}`,Q)}function b6(Q){if(typeof Q!=="function")throw TypeError("The listener must be a function")}function nV(Q,J){if(typeof Q!=="boolean")throw a1(J,"boolean",Q)}function EJ(Q){return Q?._maxListeners??I1}function ZJ(Q,J){if(Q===void 0)throw a1("signal","AbortSignal",Q);if(vJ(Q,"signal"),typeof J!=="function")throw a1("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 Y4,A1,NJ,mV,cV,zJ,DJ,wJ,I1=10,e2=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[A1]=Q?.captureRejections?Boolean(Q?.captureRejections):Z0[A1])this.emit=dV},Z0,lV=function(Q,...J){if(Q==="error")return CJ(this,J);var{_events:$}=this;if($===void 0)return!1;var q=$[Q];if(q===void 0)return!1;let X=q.length>1?q.slice():q;for(let Y=0,{length:G}=X;Y<G;Y++){let W=X[Y];switch(J.length){case 0:W.call(this);break;case 1:W.call(this,J[0]);break;case 2:W.call(this,J[0],J[1]);break;case 3:W.call(this,J[0],J[1],J[2]);break;default:W.apply(this,J);break}}return!0},dV=function(Q,...J){if(Q==="error")return CJ(this,J);var{_events:$}=this;if($===void 0)return!1;var q=$[Q];if(q===void 0)return!1;let X=q.length>1?q.slice():q;for(let Y=0,{length:G}=X;Y<G;Y++){let W=X[Y],B;switch(J.length){case 0:B=W.call(this);break;case 1:B=W.call(this,J[0]);break;case 2:B=W.call(this,J[0],J[1]);break;case 3:B=W.call(this,J[0],J[1],J[2]);break;default:B=W.apply(this,J);break}if(B!==void 0&&typeof B?.then==="function"&&B.then===Promise.prototype.then)uV(this,B,Q,J)}return!0},X4,oV;var m6=oQ(()=>{Y4=Symbol.for,A1=Symbol("kCapture"),NJ=Y4("events.errorMonitor"),mV=Symbol("events.maxEventTargetListeners"),cV=Symbol("events.maxEventTargetListenersWarned"),zJ=Y4("nodejs.rejection"),DJ=Y4("nodejs.rejection"),wJ=Array.prototype.slice,Z0=e2.prototype={};Z0._events=void 0;Z0._eventsCount=0;Z0._maxListeners=void 0;Z0.setMaxListeners=function(Q){return G4(Q,"setMaxListeners",0),this._maxListeners=Q,this};Z0.constructor=e2;Z0.getMaxListeners=function(){return this?._maxListeners??I1};Z0.emit=lV;Z0.addListener=function(Q,J){b6(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var q=$[Q];if(!q)$[Q]=[J],this._eventsCount++;else{q.push(J);var X=this._maxListeners??I1;if(X>0&&q.length>X&&!q.warned)OJ(this,Q,q)}return this};Z0.on=Z0.addListener;Z0.prependListener=function(Q,J){b6(J);var $=this._events;if(!$)$=this._events={__proto__:null},this._eventsCount=0;else if($.newListener)this.emit("newListener",Q,J.listener??J);var q=$[Q];if(!q)$[Q]=[J],this._eventsCount++;else{q.unshift(J);var X=this._maxListeners??I1;if(X>0&&q.length>X&&!q.warned)OJ(this,Q,q)}return this};Z0.once=function(Q,J){b6(J);let $=PJ.bind(this,Q,J);return $.listener=J,this.addListener(Q,$),this};Z0.prependOnceListener=function(Q,J){b6(J);let $=PJ.bind(this,Q,J);return $.listener=J,this.prependListener(Q,$),this};Z0.removeListener=function(Q,J){b6(J);var{_events:$}=this;if(!$)return this;var q=$[Q];if(!q)return this;var X=q.length;let Y=-1;for(let G=X-1;G>=0;G--)if(q[G]===J||q[G].listener===J){Y=G;break}if(Y<0)return this;if(Y===0)q.shift();else q.splice(Y,1);if(q.length===0)delete $[Q],this._eventsCount--;return this};Z0.off=Z0.removeListener;Z0.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};Z0.listeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.map((q)=>q.listener??q)};Z0.rawListeners=function(Q){var{_events:J}=this;if(!J)return[];var $=J[Q];if(!$)return[];return $.slice()};Z0.listenerCount=function(Q){var{_events:J}=this;if(!J)return 0;return J[Q]?.length??0};Z0.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};Z0[A1]=!1;X4=class X4 extends Error{constructor(Q="The operation was aborted",J=void 0){if(J!==void 0&&typeof J!=="object")throw a1("options","Object",J);super(Q,J);this.code="ABORT_ERR",this.name="AbortError"}};Object.defineProperties(e2,{captureRejections:{get(){return Z0[A1]},set(Q){nV(Q,"EventEmitter.captureRejections"),Z0[A1]=Q},enumerable:!0},defaultMaxListeners:{enumerable:!0,get:()=>{return I1},set:(Q)=>{G4(Q,"defaultMaxListeners",0),I1=Q}},kMaxEventTargetListeners:{value:mV,enumerable:!1,configurable:!1,writable:!1},kMaxEventTargetListenersWarned:{value:cV,enumerable:!1,configurable:!1,writable:!1}});Object.assign(e2,{once:RJ,getEventListeners:AJ,getMaxListeners:EJ,setMaxListeners:IJ,EventEmitter:e2,usingDomains:!1,captureRejectionSymbol:DJ,errorMonitor:NJ,addAbortListener:ZJ,init:e2,listenerCount:SJ});oV=e2});var T8=g((vN,bJ)=>{var S0=(Q,J)=>()=>(J||Q((J={exports:{}}).exports,J),J.exports),T0=S0((Q,J)=>{class $ extends Error{constructor(q){if(!Array.isArray(q))throw TypeError(`Expected input to be an Array, got ${typeof q}`);let X="";for(let Y=0;Y<q.length;Y++)X+=` ${q[Y].stack}
2
+ `;super(X);this.name="AggregateError",this.errors=q}}J.exports={AggregateError:$,ArrayIsArray(q){return Array.isArray(q)},ArrayPrototypeIncludes(q,X){return q.includes(X)},ArrayPrototypeIndexOf(q,X){return q.indexOf(X)},ArrayPrototypeJoin(q,X){return q.join(X)},ArrayPrototypeMap(q,X){return q.map(X)},ArrayPrototypePop(q,X){return q.pop(X)},ArrayPrototypePush(q,X){return q.push(X)},ArrayPrototypeSlice(q,X,Y){return q.slice(X,Y)},Error,FunctionPrototypeCall(q,X,...Y){return q.call(X,...Y)},FunctionPrototypeSymbolHasInstance(q,X){return Function.prototype[Symbol.hasInstance].call(q,X)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(q,X){return Object.defineProperties(q,X)},ObjectDefineProperty(q,X,Y){return Object.defineProperty(q,X,Y)},ObjectGetOwnPropertyDescriptor(q,X){return Object.getOwnPropertyDescriptor(q,X)},ObjectKeys(q){return Object.keys(q)},ObjectSetPrototypeOf(q,X){return Object.setPrototypeOf(q,X)},Promise,PromisePrototypeCatch(q,X){return q.catch(X)},PromisePrototypeThen(q,X,Y){return q.then(X,Y)},PromiseReject(q){return Promise.reject(q)},PromiseResolve(q){return Promise.resolve(q)},ReflectApply:Reflect.apply,RegExpPrototypeTest(q,X){return q.test(X)},SafeSet:Set,String,StringPrototypeSlice(q,X,Y){return q.slice(X,Y)},StringPrototypeToLowerCase(q){return q.toLowerCase()},StringPrototypeToUpperCase(q){return q.toUpperCase()},StringPrototypeTrim(q){return q.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(q,X,Y){return q.set(X,Y)},Boolean,Uint8Array}}),kJ=S0((Q,J)=>{J.exports={format($,...q){return $.replace(/%([sdifj])/g,function(...[X,Y]){let G=q.shift();if(Y==="f")return G.toFixed(6);else if(Y==="j")return JSON.stringify(G);else if(Y==="s"&&typeof G==="object")return`${G.constructor!==Object?G.constructor.name:""} {}`.trim();else return G.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"{}"}}}}),i0=S0((Q,J)=>{var{format:$,inspect:q}=kJ(),{AggregateError:X}=T0(),Y=globalThis.AggregateError||X,G=Symbol("kIsNodeError"),W=["string","function","number","object","Function","Object","boolean","bigint","symbol"],B=/^([A-Z][a-z0-9]*)+$/,V={};function U(P,K){if(!P)throw new V.ERR_INTERNAL_ASSERTION(K)}function M(P){let K="",w=P.length,L=P[0]==="-"?1:0;for(;w>=L+4;w-=3)K=`_${P.slice(w-3,w)}${K}`;return`${P.slice(0,w)}${K}`}function z(P,K,w){if(typeof K==="function")return U(K.length<=w.length,`Code: ${P}; The provided arguments length (${w.length}) does not match the required ones (${K.length}).`),K(...w);let L=(K.match(/%[dfijoOs]/g)||[]).length;if(U(L===w.length,`Code: ${P}; The provided arguments length (${w.length}) does not match the required ones (${L}).`),w.length===0)return K;return $(K,...w)}function j(P,K,w){if(!w)w=Error;class L extends w{constructor(...O){super(z(P,K,O))}toString(){return`${this.name} [${P}]: ${this.message}`}}Object.defineProperties(L.prototype,{name:{value:w.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${P}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),L.prototype.code=P,L.prototype[G]=!0,V[P]=L}function y(P){let K="__node_internal_"+P.name;return Object.defineProperty(P,"name",{value:K}),P}function f(P,K){if(P&&K&&P!==K){if(Array.isArray(K.errors))return K.errors.push(P),K;let w=new Y([K,P],K.message);return w.code=K.code,w}return P||K}class C extends Error{constructor(P="The operation was aborted",K=void 0){if(K!==void 0&&typeof K!=="object")throw new V.ERR_INVALID_ARG_TYPE("options","Object",K);super(P,K);this.code="ABORT_ERR",this.name="AbortError"}}j("ERR_ASSERTION","%s",Error),j("ERR_INVALID_ARG_TYPE",(P,K,w)=>{if(U(typeof P==="string","'name' must be a string"),!Array.isArray(K))K=[K];let L="The ";if(P.endsWith(" argument"))L+=`${P} `;else L+=`"${P}" ${P.includes(".")?"property":"argument"} `;L+="must be ";let O=[],b=[],k=[];for(let S of K)if(U(typeof S==="string","All expected entries have to be of type string"),W.includes(S))O.push(S.toLowerCase());else if(B.test(S))b.push(S);else U(S!=="object",'The value "object" should be written as "Object"'),k.push(S);if(b.length>0){let S=O.indexOf("object");if(S!==-1)O.splice(O,S,1),b.push("Object")}if(O.length>0){switch(O.length){case 1:L+=`of type ${O[0]}`;break;case 2:L+=`one of type ${O[0]} or ${O[1]}`;break;default:{let S=O.pop();L+=`one of type ${O.join(", ")}, or ${S}`}}if(b.length>0||k.length>0)L+=" or "}if(b.length>0){switch(b.length){case 1:L+=`an instance of ${b[0]}`;break;case 2:L+=`an instance of ${b[0]} or ${b[1]}`;break;default:{let S=b.pop();L+=`an instance of ${b.join(", ")}, or ${S}`}}if(k.length>0)L+=" or "}switch(k.length){case 0:break;case 1:if(k[0].toLowerCase()!==k[0])L+="an ";L+=`${k[0]}`;break;case 2:L+=`one of ${k[0]} or ${k[1]}`;break;default:{let S=k.pop();L+=`one of ${k.join(", ")}, or ${S}`}}if(w==null)L+=`. Received ${w}`;else if(typeof w==="function"&&w.name)L+=`. Received function ${w.name}`;else if(typeof w==="object"){var d;if((d=w.constructor)!==null&&d!==void 0&&d.name)L+=`. Received an instance of ${w.constructor.name}`;else{let S=q(w,{depth:-1});L+=`. Received ${S}`}}else{let S=q(w,{colors:!1});if(S.length>25)S=`${S.slice(0,25)}...`;L+=`. Received type ${typeof w} (${S})`}return L},TypeError),j("ERR_INVALID_ARG_VALUE",(P,K,w="is invalid")=>{let L=q(K);if(L.length>128)L=L.slice(0,128)+"...";return`The ${P.includes(".")?"property":"argument"} '${P}' ${w}. Received ${L}`},TypeError),j("ERR_INVALID_RETURN_VALUE",(P,K,w)=>{var L;let O=w!==null&&w!==void 0&&(L=w.constructor)!==null&&L!==void 0&&L.name?`instance of ${w.constructor.name}`:`type ${typeof w}`;return`Expected ${P} to be returned from the "${K}" function but got ${O}.`},TypeError),j("ERR_MISSING_ARGS",(...P)=>{U(P.length>0,"At least one arg needs to be specified");let K,w=P.length;switch(P=(Array.isArray(P)?P:[P]).map((L)=>`"${L}"`).join(" or "),w){case 1:K+=`The ${P[0]} argument`;break;case 2:K+=`The ${P[0]} and ${P[1]} arguments`;break;default:{let L=P.pop();K+=`The ${P.join(", ")}, and ${L} arguments`}break}return`${K} must be specified`},TypeError),j("ERR_OUT_OF_RANGE",(P,K,w)=>{U(K,'Missing "range" argument');let L;if(Number.isInteger(w)&&Math.abs(w)>4294967296)L=M(String(w));else if(typeof w==="bigint"){L=String(w);let O=BigInt(2)**BigInt(32);if(w>O||w<-O)L=M(L);L+="n"}else L=q(w);return`The value of "${P}" is out of range. It must be ${K}. Received ${L}`},RangeError),j("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),j("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),j("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),j("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),j("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),j("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),j("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),j("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),j("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),j("ERR_STREAM_WRITE_AFTER_END","write after end",Error),j("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),J.exports={AbortError:C,aggregateTwoErrors:y(f),hideStackFrames:y,codes:V}}),rV=S0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=new WeakMap,q=new WeakMap;function X(v){let R=$.get(v);return console.assert(R!=null,"'this' is expected an Event object, but got",v),R}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 G(v,R){$.set(this,{eventTarget:v,event:R,eventPhase:2,currentTarget:v,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:R.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});let D=Object.keys(R);for(let T=0;T<D.length;++T){let _=D[T];if(!(_ in this))Object.defineProperty(this,_,W(_))}}if(G.prototype={get type(){return X(this).event.type},get target(){return X(this).eventTarget},get currentTarget(){return X(this).currentTarget},composedPath(){let v=X(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 X(this).eventPhase},stopPropagation(){let v=X(this);if(v.stopped=!0,typeof v.event.stopPropagation==="function")v.event.stopPropagation()},stopImmediatePropagation(){let v=X(this);if(v.stopped=!0,v.immediateStopped=!0,typeof v.event.stopImmediatePropagation==="function")v.event.stopImmediatePropagation()},get bubbles(){return Boolean(X(this).event.bubbles)},get cancelable(){return Boolean(X(this).event.cancelable)},preventDefault(){Y(X(this))},get defaultPrevented(){return X(this).canceled},get composed(){return Boolean(X(this).event.composed)},get timeStamp(){return X(this).timeStamp},get srcElement(){return X(this).eventTarget},get cancelBubble(){return X(this).stopped},set cancelBubble(v){if(!v)return;let R=X(this);if(R.stopped=!0,typeof R.event.cancelBubble==="boolean")R.event.cancelBubble=!0},get returnValue(){return!X(this).canceled},set returnValue(v){if(!v)Y(X(this))},initEvent(){}},Object.defineProperty(G.prototype,"constructor",{value:G,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.Event<"u")Object.setPrototypeOf(G.prototype,window.Event.prototype),q.set(window.Event.prototype,G);function W(v){return{get(){return X(this).event[v]},set(R){X(this).event[v]=R},configurable:!0,enumerable:!0}}function B(v){return{value(){let R=X(this).event;return R[v].apply(R,arguments)},configurable:!0,enumerable:!0}}function V(v,R){let D=Object.keys(R);if(D.length===0)return v;function T(_,Z){v.call(this,_,Z)}T.prototype=Object.create(v.prototype,{constructor:{value:T,configurable:!0,writable:!0}});for(let _=0;_<D.length;++_){let Z=D[_];if(!(Z in v.prototype)){let t=typeof Object.getOwnPropertyDescriptor(R,Z).value==="function";Object.defineProperty(T.prototype,Z,t?B(Z):W(Z))}}return T}function U(v){if(v==null||v===Object.prototype)return G;let R=q.get(v);if(R==null)R=V(U(Object.getPrototypeOf(v)),v),q.set(v,R);return R}function M(v,R){return new(U(Object.getPrototypeOf(R)))(v,R)}function z(v){return X(v).immediateStopped}function j(v,R){X(v).eventPhase=R}function y(v,R){X(v).currentTarget=R}function f(v,R){X(v).passiveListener=R}var C=new WeakMap,P=1,K=2,w=3;function L(v){return v!==null&&typeof v==="object"}function O(v){let R=C.get(v);if(R==null)throw TypeError("'this' is expected an EventTarget object, but got another value.");return R}function b(v){return{get(){let R=O(this).get(v);while(R!=null){if(R.listenerType===w)return R.listener;R=R.next}return null},set(R){if(typeof R!=="function"&&!L(R))R=null;let D=O(this),T=null,_=D.get(v);while(_!=null){if(_.listenerType===w)if(T!==null)T.next=_.next;else if(_.next!==null)D.set(v,_.next);else D.delete(v);else T=_;_=_.next}if(R!==null){let Z={listener:R,listenerType:w,passive:!1,once:!1,next:null};if(T===null)D.set(v,Z);else T.next=Z}},configurable:!0,enumerable:!0}}function k(v,R){Object.defineProperty(v,`on${R}`,b(R))}function d(v){function R(){S.call(this)}R.prototype=Object.create(S.prototype,{constructor:{value:R,configurable:!0,writable:!0}});for(let D=0;D<v.length;++D)k(R.prototype,v[D]);return R}function S(){if(this instanceof S){C.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0]))return d(arguments[0]);if(arguments.length>0){let v=Array(arguments.length);for(let R=0;R<arguments.length;++R)v[R]=arguments[R];return d(v)}throw TypeError("Cannot call a class as a function")}if(S.prototype={addEventListener(v,R,D){if(R==null)return;if(typeof R!=="function"&&!L(R))throw TypeError("'listener' should be a function or an object.");let T=O(this),_=L(D),Z=(_?Boolean(D.capture):Boolean(D))?P:K,t={listener:R,listenerType:Z,passive:_&&Boolean(D.passive),once:_&&Boolean(D.once),next:null},q0=T.get(v);if(q0===void 0){T.set(v,t);return}let V0=null;while(q0!=null){if(q0.listener===R&&q0.listenerType===Z)return;V0=q0,q0=q0.next}V0.next=t},removeEventListener(v,R,D){if(R==null)return;let T=O(this),_=(L(D)?Boolean(D.capture):Boolean(D))?P:K,Z=null,t=T.get(v);while(t!=null){if(t.listener===R&&t.listenerType===_){if(Z!==null)Z.next=t.next;else if(t.next!==null)T.set(v,t.next);else T.delete(v);return}Z=t,t=t.next}},dispatchEvent(v){if(v==null||typeof v.type!=="string")throw TypeError('"event.type" should be a string.');let R=O(this),D=v.type,T=R.get(D);if(T==null)return!0;let _=M(this,v),Z=null;while(T!=null){if(T.once)if(Z!==null)Z.next=T.next;else if(T.next!==null)R.set(D,T.next);else R.delete(D);else Z=T;if(f(_,T.passive?T.listener:null),typeof T.listener==="function")try{T.listener.call(this,_)}catch(t){if(typeof console<"u"&&typeof console.error==="function")console.error(t)}else if(T.listenerType!==w&&typeof T.listener.handleEvent==="function")T.listener.handleEvent(_);if(z(_))break;T=T.next}return f(_,null),j(_,0),y(_,null),!_.defaultPrevented}},Object.defineProperty(S.prototype,"constructor",{value:S,configurable:!0,writable:!0}),typeof window<"u"&&typeof window.EventTarget<"u")Object.setPrototypeOf(S.prototype,window.EventTarget.prototype);Q.defineEventAttribute=k,Q.EventTarget=S,Q.default=S,J.exports=S,J.exports.EventTarget=J.exports.default=S,J.exports.defineEventAttribute=k}),c6=S0((Q,J)=>{Object.defineProperty(Q,"__esModule",{value:!0});var $=rV();class q extends $.EventTarget{constructor(){super();throw TypeError("AbortSignal cannot be constructed directly")}get aborted(){let U=G.get(this);if(typeof U!=="boolean")throw TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`);return U}}$.defineEventAttribute(q.prototype,"abort");function X(){let U=Object.create(q.prototype);return $.EventTarget.call(U),G.set(U,!1),U}function Y(U){if(G.get(U)!==!1)return;G.set(U,!0),U.dispatchEvent({type:"abort"})}var G=new WeakMap;if(Object.defineProperties(q.prototype,{aborted:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(q.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});class W{constructor(){B.set(this,X())}get signal(){return V(this)}abort(){Y(V(this))}}var B=new WeakMap;function V(U){let M=B.get(U);if(M==null)throw TypeError(`Expected 'this' to be an 'AbortController' object, but got ${U===null?"null":typeof U}`);return M}if(Object.defineProperties(W.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol")Object.defineProperty(W.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"});Q.AbortController=W,Q.AbortSignal=q,Q.default=W,J.exports=W,J.exports.AbortController=J.exports.default=W,J.exports.AbortSignal=q}),s0=S0((Q,J)=>{var $=(h2(),Y2(b2)),{format:q,inspect:X}=kJ(),{codes:{ERR_INVALID_ARG_TYPE:Y}}=i0(),{kResistStopPropagation:G,AggregateError:W,SymbolDispose:B}=T0(),V=globalThis.AbortSignal||c6().AbortSignal,U=globalThis.AbortController||c6().AbortController,M=Object.getPrototypeOf(async function(){}).constructor,z=globalThis.Blob||$.Blob,j=typeof z<"u"?function(C){return C instanceof z}:function(C){return!1},y=(C,P)=>{if(C!==void 0&&(C===null||typeof C!=="object"||!("aborted"in C)))throw new Y(P,"AbortSignal",C)},f=(C,P)=>{if(typeof C!=="function")throw new Y(P,"Function",C)};J.exports={AggregateError:W,kEmptyObject:Object.freeze({}),once(C){let P=!1;return function(...K){if(P)return;P=!0,C.apply(this,K)}},createDeferredPromise:function(){let C,P;return{promise:new Promise((K,w)=>{C=K,P=w}),resolve:C,reject:P}},promisify(C){return new Promise((P,K)=>{C((w,...L)=>{if(w)return K(w);return P(...L)})})},debuglog(){return function(){}},format:q,inspect:X,types:{isAsyncFunction(C){return C instanceof M},isArrayBufferView(C){return ArrayBuffer.isView(C)}},isBlob:j,deprecate(C,P){return C},addAbortListener:(m6(),Y2(h6)).addAbortListener||function(C,P){if(C===void 0)throw new Y("signal","AbortSignal",C);y(C,"signal"),f(P,"listener");let K;if(C.aborted)queueMicrotask(()=>P());else C.addEventListener("abort",P,{__proto__:null,once:!0,[G]:!0}),K=()=>{C.removeEventListener("abort",P)};return{__proto__:null,[B](){var w;(w=K)===null||w===void 0||w()}}},AbortSignalAny:V.any||function(C){if(C.length===1)return C[0];let P=new U,K=()=>P.abort();return C.forEach((w)=>{y(w,"signals"),w.addEventListener("abort",K,{once:!0})}),P.signal.addEventListener("abort",()=>{C.forEach((w)=>w.removeEventListener("abort",K))},{once:!0}),P.signal}},J.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),u6=S0((Q,J)=>{var{ArrayIsArray:$,ArrayPrototypeIncludes:q,ArrayPrototypeJoin:X,ArrayPrototypeMap:Y,NumberIsInteger:G,NumberIsNaN:W,NumberMAX_SAFE_INTEGER:B,NumberMIN_SAFE_INTEGER:V,NumberParseInt:U,ObjectPrototypeHasOwnProperty:M,RegExpPrototypeExec:z,String:j,StringPrototypeToUpperCase:y,StringPrototypeTrim:f}=T0(),{hideStackFrames:C,codes:{ERR_SOCKET_BAD_PORT:P,ERR_INVALID_ARG_TYPE:K,ERR_INVALID_ARG_VALUE:w,ERR_OUT_OF_RANGE:L,ERR_UNKNOWN_SIGNAL:O}}=i0(),{normalizeEncoding:b}=s0(),{isAsyncFunction:k,isArrayBufferView:d}=s0().types,S={};function v(I){return I===(I|0)}function R(I){return I===I>>>0}var D=/^[0-7]+$/,T="must be a 32-bit unsigned integer or an octal string";function _(I,n,X0){if(typeof I>"u")I=X0;if(typeof I==="string"){if(z(D,I)===null)throw new w(n,I,T);I=U(I,8)}return q0(I,n),I}var Z=C((I,n,X0=V,o=B)=>{if(typeof I!=="number")throw new K(n,"number",I);if(!G(I))throw new L(n,"an integer",I);if(I<X0||I>o)throw new L(n,`>= ${X0} && <= ${o}`,I)}),t=C((I,n,X0=-2147483648,o=2147483647)=>{if(typeof I!=="number")throw new K(n,"number",I);if(!G(I))throw new L(n,"an integer",I);if(I<X0||I>o)throw new L(n,`>= ${X0} && <= ${o}`,I)}),q0=C((I,n,X0=!1)=>{if(typeof I!=="number")throw new K(n,"number",I);if(!G(I))throw new L(n,"an integer",I);let o=X0?1:0,j0=4294967295;if(I<o||I>j0)throw new L(n,`>= ${o} && <= ${j0}`,I)});function V0(I,n){if(typeof I!=="string")throw new K(n,"string",I)}function N0(I,n,X0=void 0,o){if(typeof I!=="number")throw new K(n,"number",I);if(X0!=null&&I<X0||o!=null&&I>o||(X0!=null||o!=null)&&W(I))throw new L(n,`${X0!=null?`>= ${X0}`:""}${X0!=null&&o!=null?" && ":""}${o!=null?`<= ${o}`:""}`,I)}var u=C((I,n,X0)=>{if(!q(X0,I)){let o="must be one of: "+X(Y(X0,(j0)=>typeof j0==="string"?`'${j0}'`:j(j0)),", ");throw new w(n,I,o)}});function H0(I,n){if(typeof I!=="boolean")throw new K(n,"boolean",I)}function N(I,n,X0){return I==null||!M(I,n)?X0:I[n]}var i=C((I,n,X0=null)=>{let o=N(X0,"allowArray",!1),j0=N(X0,"allowFunction",!1);if(!N(X0,"nullable",!1)&&I===null||!o&&$(I)||typeof I!=="object"&&(!j0||typeof I!=="function"))throw new K(n,"Object",I)}),G0=C((I,n)=>{if(I!=null&&typeof I!=="object"&&typeof I!=="function")throw new K(n,"a dictionary",I)}),c=C((I,n,X0=0)=>{if(!$(I))throw new K(n,"Array",I);if(I.length<X0){let o=`must be longer than ${X0}`;throw new w(n,I,o)}});function U0(I,n){c(I,n);for(let X0=0;X0<I.length;X0++)V0(I[X0],`${n}[${X0}]`)}function M0(I,n){c(I,n);for(let X0=0;X0<I.length;X0++)H0(I[X0],`${n}[${X0}]`)}function R0(I,n){c(I,n);for(let X0=0;X0<I.length;X0++){let o=I[X0],j0=`${n}[${X0}]`;if(o==null)throw new K(j0,"AbortSignal",o);w0(o,j0)}}function D0(I,n="signal"){if(V0(I,n),S[I]===void 0){if(S[y(I)]!==void 0)throw new O(I+" (signals must use all capital letters)");throw new O(I)}}var p=C((I,n="buffer")=>{if(!d(I))throw new K(n,["Buffer","TypedArray","DataView"],I)});function l(I,n){let X0=b(n),o=I.length;if(X0==="hex"&&o%2!==0)throw new w("encoding",n,`is invalid for data of length ${o}`)}function e(I,n="Port",X0=!0){if(typeof I!=="number"&&typeof I!=="string"||typeof I==="string"&&f(I).length===0||+I!==+I>>>0||I>65535||I===0&&!X0)throw new P(n,I,X0);return I|0}var w0=C((I,n)=>{if(I!==void 0&&(I===null||typeof I!=="object"||!("aborted"in I)))throw new K(n,"AbortSignal",I)}),L0=C((I,n)=>{if(typeof I!=="function")throw new K(n,"Function",I)}),A=C((I,n)=>{if(typeof I!=="function"||k(I))throw new K(n,"Function",I)}),E=C((I,n)=>{if(I!==void 0)throw new K(n,"undefined",I)});function m(I,n,X0){if(!q(X0,I))throw new K(n,`('${X(X0,"|")}')`,I)}var s=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function $0(I,n){if(typeof I>"u"||!z(s,I))throw new w(n,I,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}function Q0(I){if(typeof I==="string")return $0(I,"hints"),I;else if($(I)){let n=I.length,X0="";if(n===0)return X0;for(let o=0;o<n;o++){let j0=I[o];if($0(j0,"hints"),X0+=j0,o!==n-1)X0+=", "}return X0}throw new w("hints",I,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}J.exports={isInt32:v,isUint32:R,parseFileMode:_,validateArray:c,validateStringArray:U0,validateBooleanArray:M0,validateAbortSignalArray:R0,validateBoolean:H0,validateBuffer:p,validateDictionary:G0,validateEncoding:l,validateFunction:L0,validateInt32:t,validateInteger:Z,validateNumber:N0,validateObject:i,validateOneOf:u,validatePlainFunction:A,validatePort:e,validateSignalName:D0,validateString:V0,validateUint32:q0,validateUndefined:E,validateUnion:m,validateAbortSignal:w0,validateLinkHeaderValue:Q0}}),S1=S0((Q,J)=>{J.exports=globalThis.process}),c2=S0((Q,J)=>{var{SymbolAsyncIterator:$,SymbolIterator:q,SymbolFor:X}=T0(),Y=X("nodejs.stream.destroyed"),G=X("nodejs.stream.errored"),W=X("nodejs.stream.readable"),B=X("nodejs.stream.writable"),V=X("nodejs.stream.disturbed"),U=X("nodejs.webstream.isClosedPromise"),M=X("nodejs.webstream.controllerErrorFunction");function z(N,i=!1){var G0;return!!(N&&typeof N.pipe==="function"&&typeof N.on==="function"&&(!i||typeof N.pause==="function"&&typeof N.resume==="function")&&(!N._writableState||((G0=N._readableState)===null||G0===void 0?void 0:G0.readable)!==!1)&&(!N._writableState||N._readableState))}function j(N){var i;return!!(N&&typeof N.write==="function"&&typeof N.on==="function"&&(!N._readableState||((i=N._writableState)===null||i===void 0?void 0:i.writable)!==!1))}function y(N){return!!(N&&typeof N.pipe==="function"&&N._readableState&&typeof N.on==="function"&&typeof N.write==="function")}function f(N){return N&&(N._readableState||N._writableState||typeof N.write==="function"&&typeof N.on==="function"||typeof N.pipe==="function"&&typeof N.on==="function")}function C(N){return!!(N&&!f(N)&&typeof N.pipeThrough==="function"&&typeof N.getReader==="function"&&typeof N.cancel==="function")}function P(N){return!!(N&&!f(N)&&typeof N.getWriter==="function"&&typeof N.abort==="function")}function K(N){return!!(N&&!f(N)&&typeof N.readable==="object"&&typeof N.writable==="object")}function w(N){return C(N)||P(N)||K(N)}function L(N,i){if(N==null)return!1;if(i===!0)return typeof N[$]==="function";if(i===!1)return typeof N[q]==="function";return typeof N[$]==="function"||typeof N[q]==="function"}function O(N){if(!f(N))return null;let{_writableState:i,_readableState:G0}=N,c=i||G0;return!!(N.destroyed||N[Y]||c!==null&&c!==void 0&&c.destroyed)}function b(N){if(!j(N))return null;if(N.writableEnded===!0)return!0;let i=N._writableState;if(i!==null&&i!==void 0&&i.errored)return!1;if(typeof(i===null||i===void 0?void 0:i.ended)!=="boolean")return null;return i.ended}function k(N,i){if(!j(N))return null;if(N.writableFinished===!0)return!0;let G0=N._writableState;if(G0!==null&&G0!==void 0&&G0.errored)return!1;if(typeof(G0===null||G0===void 0?void 0:G0.finished)!=="boolean")return null;return!!(G0.finished||i===!1&&G0.ended===!0&&G0.length===0)}function d(N){if(!z(N))return null;if(N.readableEnded===!0)return!0;let i=N._readableState;if(!i||i.errored)return!1;if(typeof(i===null||i===void 0?void 0:i.ended)!=="boolean")return null;return i.ended}function S(N,i){if(!z(N))return null;let G0=N._readableState;if(G0!==null&&G0!==void 0&&G0.errored)return!1;if(typeof(G0===null||G0===void 0?void 0:G0.endEmitted)!=="boolean")return null;return!!(G0.endEmitted||i===!1&&G0.ended===!0&&G0.length===0)}function v(N){if(N&&N[W]!=null)return N[W];if(typeof(N===null||N===void 0?void 0:N.readable)!=="boolean")return null;if(O(N))return!1;return z(N)&&N.readable&&!S(N)}function R(N){if(N&&N[B]!=null)return N[B];if(typeof(N===null||N===void 0?void 0:N.writable)!=="boolean")return null;if(O(N))return!1;return j(N)&&N.writable&&!b(N)}function D(N,i){if(!f(N))return null;if(O(N))return!0;if((i===null||i===void 0?void 0:i.readable)!==!1&&v(N))return!1;if((i===null||i===void 0?void 0:i.writable)!==!1&&R(N))return!1;return!0}function T(N){var i,G0;if(!f(N))return null;if(N.writableErrored)return N.writableErrored;return(i=(G0=N._writableState)===null||G0===void 0?void 0:G0.errored)!==null&&i!==void 0?i:null}function _(N){var i,G0;if(!f(N))return null;if(N.readableErrored)return N.readableErrored;return(i=(G0=N._readableState)===null||G0===void 0?void 0:G0.errored)!==null&&i!==void 0?i:null}function Z(N){if(!f(N))return null;if(typeof N.closed==="boolean")return N.closed;let{_writableState:i,_readableState:G0}=N;if(typeof(i===null||i===void 0?void 0:i.closed)==="boolean"||typeof(G0===null||G0===void 0?void 0:G0.closed)==="boolean")return(i===null||i===void 0?void 0:i.closed)||(G0===null||G0===void 0?void 0:G0.closed);if(typeof N._closed==="boolean"&&t(N))return N._closed;return null}function t(N){return typeof N._closed==="boolean"&&typeof N._defaultKeepAlive==="boolean"&&typeof N._removedConnection==="boolean"&&typeof N._removedContLen==="boolean"}function q0(N){return typeof N._sent100==="boolean"&&t(N)}function V0(N){var i;return typeof N._consuming==="boolean"&&typeof N._dumped==="boolean"&&((i=N.req)===null||i===void 0?void 0:i.upgradeOrConnect)===void 0}function N0(N){if(!f(N))return null;let{_writableState:i,_readableState:G0}=N,c=i||G0;return!c&&q0(N)||!!(c&&c.autoDestroy&&c.emitClose&&c.closed===!1)}function u(N){var i;return!!(N&&((i=N[V])!==null&&i!==void 0?i:N.readableDidRead||N.readableAborted))}function H0(N){var i,G0,c,U0,M0,R0,D0,p,l,e;return!!(N&&((i=(G0=(c=(U0=(M0=(R0=N[G])!==null&&R0!==void 0?R0:N.readableErrored)!==null&&M0!==void 0?M0:N.writableErrored)!==null&&U0!==void 0?U0:(D0=N._readableState)===null||D0===void 0?void 0:D0.errorEmitted)!==null&&c!==void 0?c:(p=N._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&G0!==void 0?G0:(l=N._readableState)===null||l===void 0?void 0:l.errored)!==null&&i!==void 0?i:(e=N._writableState)===null||e===void 0?void 0:e.errored))}J.exports={isDestroyed:O,kIsDestroyed:Y,isDisturbed:u,kIsDisturbed:V,isErrored:H0,kIsErrored:G,isReadable:v,kIsReadable:W,kIsClosedPromise:U,kControllerErrorFunction:M,kIsWritable:B,isClosed:Z,isDuplexNodeStream:y,isFinished:D,isIterable:L,isReadableNodeStream:z,isReadableStream:C,isReadableEnded:d,isReadableFinished:S,isReadableErrored:_,isNodeStream:f,isWebStream:w,isWritable:R,isWritableNodeStream:j,isWritableStream:P,isWritableEnded:b,isWritableFinished:k,isWritableErrored:T,isServerRequest:V0,isServerResponse:q0,willEmitClose:N0,isTransformStream:K}}),Q1=S0((Q,J)=>{var $=S1(),{AbortError:q,codes:X}=i0(),{ERR_INVALID_ARG_TYPE:Y,ERR_STREAM_PREMATURE_CLOSE:G}=X,{kEmptyObject:W,once:B}=s0(),{validateAbortSignal:V,validateFunction:U,validateObject:M,validateBoolean:z}=u6(),{Promise:j,PromisePrototypeThen:y,SymbolDispose:f}=T0(),{isClosed:C,isReadable:P,isReadableNodeStream:K,isReadableStream:w,isReadableFinished:L,isReadableErrored:O,isWritable:b,isWritableNodeStream:k,isWritableStream:d,isWritableFinished:S,isWritableErrored:v,isNodeStream:R,willEmitClose:D,kIsClosedPromise:T}=c2(),_;function Z(u){return u.setHeader&&typeof u.abort==="function"}var t=()=>{};function q0(u,H0,N){var i,G0;if(arguments.length===2)N=H0,H0=W;else if(H0==null)H0=W;else M(H0,"options");if(U(N,"callback"),V(H0.signal,"options.signal"),N=B(N),w(u)||d(u))return V0(u,H0,N);if(!R(u))throw new Y("stream",["ReadableStream","WritableStream","Stream"],u);let c=(i=H0.readable)!==null&&i!==void 0?i:K(u),U0=(G0=H0.writable)!==null&&G0!==void 0?G0:k(u),M0=u._writableState,R0=u._readableState,D0=()=>{if(!u.writable)e()},p=D(u)&&K(u)===c&&k(u)===U0,l=S(u,!1),e=()=>{if(l=!0,u.destroyed)p=!1;if(p&&(!u.readable||c))return;if(!c||w0)N.call(u)},w0=L(u,!1),L0=()=>{if(w0=!0,u.destroyed)p=!1;if(p&&(!u.writable||U0))return;if(!U0||l)N.call(u)},A=(I)=>{N.call(u,I)},E=C(u),m=()=>{E=!0;let I=v(u)||O(u);if(I&&typeof I!=="boolean")return N.call(u,I);if(c&&!w0&&K(u,!0)){if(!L(u,!1))return N.call(u,new G)}if(U0&&!l){if(!S(u,!1))return N.call(u,new G)}N.call(u)},s=()=>{E=!0;let I=v(u)||O(u);if(I&&typeof I!=="boolean")return N.call(u,I);N.call(u)},$0=()=>{u.req.on("finish",e)};if(Z(u)){if(u.on("complete",e),!p)u.on("abort",m);if(u.req)$0();else u.on("request",$0)}else if(U0&&!M0)u.on("end",D0),u.on("close",D0);if(!p&&typeof u.aborted==="boolean")u.on("aborted",m);if(u.on("end",L0),u.on("finish",e),H0.error!==!1)u.on("error",A);if(u.on("close",m),E)$.nextTick(m);else if(M0!==null&&M0!==void 0&&M0.errorEmitted||R0!==null&&R0!==void 0&&R0.errorEmitted){if(!p)$.nextTick(s)}else if(!c&&(!p||P(u))&&(l||b(u)===!1))$.nextTick(s);else if(!U0&&(!p||b(u))&&(w0||P(u)===!1))$.nextTick(s);else if(R0&&u.req&&u.aborted)$.nextTick(s);let Q0=()=>{if(N=t,u.removeListener("aborted",m),u.removeListener("complete",e),u.removeListener("abort",m),u.removeListener("request",$0),u.req)u.req.removeListener("finish",e);u.removeListener("end",D0),u.removeListener("close",D0),u.removeListener("finish",e),u.removeListener("end",L0),u.removeListener("error",A),u.removeListener("close",m)};if(H0.signal&&!E){let I=()=>{let n=N;Q0(),n.call(u,new q(void 0,{cause:H0.signal.reason}))};if(H0.signal.aborted)$.nextTick(I);else{_=_||s0().addAbortListener;let n=_(H0.signal,I),X0=N;N=B((...o)=>{n[f](),X0.apply(u,o)})}}return Q0}function V0(u,H0,N){let i=!1,G0=t;if(H0.signal)if(G0=()=>{i=!0,N.call(u,new q(void 0,{cause:H0.signal.reason}))},H0.signal.aborted)$.nextTick(G0);else{_=_||s0().addAbortListener;let U0=_(H0.signal,G0),M0=N;N=B((...R0)=>{U0[f](),M0.apply(u,R0)})}let c=(...U0)=>{if(!i)$.nextTick(()=>N.apply(u,U0))};return y(u[T].promise,c,c),t}function N0(u,H0){var N;let i=!1;if(H0===null)H0=W;if((N=H0)!==null&&N!==void 0&&N.cleanup)z(H0.cleanup,"cleanup"),i=H0.cleanup;return new j((G0,c)=>{let U0=q0(u,H0,(M0)=>{if(i)U0();if(M0)c(M0);else G0()})})}J.exports=q0,J.exports.finished=N0}),s1=S0((Q,J)=>{var $=S1(),{aggregateTwoErrors:q,codes:{ERR_MULTIPLE_CALLBACK:X},AbortError:Y}=i0(),{Symbol:G}=T0(),{kIsDestroyed:W,isDestroyed:B,isFinished:V,isServerRequest:U}=c2(),M=G("kDestroy"),z=G("kConstruct");function j(D,T,_){if(D){if(D.stack,T&&!T.errored)T.errored=D;if(_&&!_.errored)_.errored=D}}function y(D,T){let _=this._readableState,Z=this._writableState,t=Z||_;if(Z!==null&&Z!==void 0&&Z.destroyed||_!==null&&_!==void 0&&_.destroyed){if(typeof T==="function")T();return this}if(j(D,Z,_),Z)Z.destroyed=!0;if(_)_.destroyed=!0;if(!t.constructed)this.once(M,function(q0){f(this,q(q0,D),T)});else f(this,D,T);return this}function f(D,T,_){let Z=!1;function t(q0){if(Z)return;Z=!0;let{_readableState:V0,_writableState:N0}=D;if(j(q0,N0,V0),N0)N0.closed=!0;if(V0)V0.closed=!0;if(typeof _==="function")_(q0);if(q0)$.nextTick(C,D,q0);else $.nextTick(P,D)}try{D._destroy(T||null,t)}catch(q0){t(q0)}}function C(D,T){K(D,T),P(D)}function P(D){let{_readableState:T,_writableState:_}=D;if(_)_.closeEmitted=!0;if(T)T.closeEmitted=!0;if(_!==null&&_!==void 0&&_.emitClose||T!==null&&T!==void 0&&T.emitClose)D.emit("close")}function K(D,T){let{_readableState:_,_writableState:Z}=D;if(Z!==null&&Z!==void 0&&Z.errorEmitted||_!==null&&_!==void 0&&_.errorEmitted)return;if(Z)Z.errorEmitted=!0;if(_)_.errorEmitted=!0;D.emit("error",T)}function w(){let D=this._readableState,T=this._writableState;if(D)D.constructed=!0,D.closed=!1,D.closeEmitted=!1,D.destroyed=!1,D.errored=null,D.errorEmitted=!1,D.reading=!1,D.ended=D.readable===!1,D.endEmitted=D.readable===!1;if(T)T.constructed=!0,T.destroyed=!1,T.closed=!1,T.closeEmitted=!1,T.errored=null,T.errorEmitted=!1,T.finalCalled=!1,T.prefinished=!1,T.ended=T.writable===!1,T.ending=T.writable===!1,T.finished=T.writable===!1}function L(D,T,_){let{_readableState:Z,_writableState:t}=D;if(t!==null&&t!==void 0&&t.destroyed||Z!==null&&Z!==void 0&&Z.destroyed)return this;if(Z!==null&&Z!==void 0&&Z.autoDestroy||t!==null&&t!==void 0&&t.autoDestroy)D.destroy(T);else if(T){if(T.stack,t&&!t.errored)t.errored=T;if(Z&&!Z.errored)Z.errored=T;if(_)$.nextTick(K,D,T);else K(D,T)}}function O(D,T){if(typeof D._construct!=="function")return;let{_readableState:_,_writableState:Z}=D;if(_)_.constructed=!1;if(Z)Z.constructed=!1;if(D.once(z,T),D.listenerCount(z)>1)return;$.nextTick(b,D)}function b(D){let T=!1;function _(Z){if(T){L(D,Z!==null&&Z!==void 0?Z:new X);return}T=!0;let{_readableState:t,_writableState:q0}=D,V0=q0||t;if(t)t.constructed=!0;if(q0)q0.constructed=!0;if(V0.destroyed)D.emit(M,Z);else if(Z)L(D,Z,!0);else $.nextTick(k,D)}try{D._construct((Z)=>{$.nextTick(_,Z)})}catch(Z){$.nextTick(_,Z)}}function k(D){D.emit(z)}function d(D){return(D===null||D===void 0?void 0:D.setHeader)&&typeof D.abort==="function"}function S(D){D.emit("close")}function v(D,T){D.emit("error",T),$.nextTick(S,D)}function R(D,T){if(!D||B(D))return;if(!T&&!V(D))T=new Y;if(U(D))D.socket=null,D.destroy(T);else if(d(D))D.abort();else if(d(D.req))D.req.abort();else if(typeof D.destroy==="function")D.destroy(T);else if(typeof D.close==="function")D.close();else if(T)$.nextTick(v,D,T);else $.nextTick(S,D);if(!D.destroyed)D[W]=!0}J.exports={construct:O,destroyer:R,destroy:y,undestroy:w,errorOrDestroy:L}}),W4=S0((Q,J)=>{var{ArrayIsArray:$,ObjectSetPrototypeOf:q}=T0(),{EventEmitter:X}=(m6(),Y2(h6));function Y(W){X.call(this,W)}q(Y.prototype,X.prototype),q(Y,X),Y.prototype.pipe=function(W,B){let V=this;function U(P){if(W.writable&&W.write(P)===!1&&V.pause)V.pause()}V.on("data",U);function M(){if(V.readable&&V.resume)V.resume()}if(W.on("drain",M),!W._isStdio&&(!B||B.end!==!1))V.on("end",j),V.on("close",y);let z=!1;function j(){if(z)return;z=!0,W.end()}function y(){if(z)return;if(z=!0,typeof W.destroy==="function")W.destroy()}function f(P){if(C(),X.listenerCount(this,"error")===0)this.emit("error",P)}G(V,"error",f),G(W,"error",f);function C(){V.removeListener("data",U),W.removeListener("drain",M),V.removeListener("end",j),V.removeListener("close",y),V.removeListener("error",f),W.removeListener("error",f),V.removeListener("end",C),V.removeListener("close",C),W.removeListener("close",C)}return V.on("end",C),V.on("close",C),W.on("close",C),W.emit("pipe",V),W};function G(W,B,V){if(typeof W.prependListener==="function")return W.prependListener(B,V);if(!W._events||!W._events[B])W.on(B,V);else if($(W._events[B]))W._events[B].unshift(V);else W._events[B]=[V,W._events[B]]}J.exports={Stream:Y,prependListener:G}}),E8=S0((Q,J)=>{var{SymbolDispose:$}=T0(),{AbortError:q,codes:X}=i0(),{isNodeStream:Y,isWebStream:G,kControllerErrorFunction:W}=c2(),B=Q1(),{ERR_INVALID_ARG_TYPE:V}=X,U,M=(z,j)=>{if(typeof z!=="object"||!("aborted"in z))throw new V(j,"AbortSignal",z)};J.exports.addAbortSignal=function(z,j){if(M(z,"signal"),!Y(j)&&!G(j))throw new V("stream",["ReadableStream","WritableStream","Stream"],j);return J.exports.addAbortSignalNoValidate(z,j)},J.exports.addAbortSignalNoValidate=function(z,j){if(typeof z!=="object"||!("aborted"in z))return j;let y=Y(j)?()=>{j.destroy(new q(void 0,{cause:z.reason}))}:()=>{j[W](new q(void 0,{cause:z.reason}))};if(z.aborted)y();else{U=U||s0().addAbortListener;let f=U(z,y);B(j,f[$])}return j}}),aV=S0((Q,J)=>{var{StringPrototypeSlice:$,SymbolIterator:q,TypedArrayPrototypeSet:X,Uint8Array:Y}=T0(),{Buffer:G}=(h2(),Y2(b2)),{inspect:W}=s0();J.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(B){let V={data:B,next:null};if(this.length>0)this.tail.next=V;else this.head=V;this.tail=V,++this.length}unshift(B){let V={data:B,next:this.head};if(this.length===0)this.tail=V;this.head=V,++this.length}shift(){if(this.length===0)return;let B=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,B}clear(){this.head=this.tail=null,this.length=0}join(B){if(this.length===0)return"";let V=this.head,U=""+V.data;while((V=V.next)!==null)U+=B+V.data;return U}concat(B){if(this.length===0)return G.alloc(0);let V=G.allocUnsafe(B>>>0),U=this.head,M=0;while(U)X(V,U.data,M),M+=U.data.length,U=U.next;return V}consume(B,V){let U=this.head.data;if(B<U.length){let M=U.slice(0,B);return this.head.data=U.slice(B),M}if(B===U.length)return this.shift();return V?this._getString(B):this._getBuffer(B)}first(){return this.head.data}*[q](){for(let B=this.head;B;B=B.next)yield B.data}_getString(B){let V="",U=this.head,M=0;do{let z=U.data;if(B>z.length)V+=z,B-=z.length;else{if(B===z.length)if(V+=z,++M,U.next)this.head=U.next;else this.head=this.tail=null;else V+=$(z,0,B),this.head=U,U.data=$(z,B);break}++M}while((U=U.next)!==null);return this.length-=M,V}_getBuffer(B){let V=G.allocUnsafe(B),U=B,M=this.head,z=0;do{let j=M.data;if(B>j.length)X(V,j,U-B),B-=j.length;else{if(B===j.length)if(X(V,j,U-B),++z,M.next)this.head=M.next;else this.head=this.tail=null;else X(V,new Y(j.buffer,j.byteOffset,B),U-B),this.head=M,M.data=j.slice(B);break}++z}while((M=M.next)!==null);return this.length-=z,V}[Symbol.for("nodejs.util.inspect.custom")](B,V){return W(this,{...V,depth:0,customInspect:!1})}}}),Z8=S0((Q,J)=>{var{MathFloor:$,NumberIsInteger:q}=T0(),{validateInteger:X}=u6(),{ERR_INVALID_ARG_VALUE:Y}=i0().codes,G=16384,W=16;function B(z,j,y){return z.highWaterMark!=null?z.highWaterMark:j?z[y]:null}function V(z){return z?W:G}function U(z,j){if(X(j,"value",0),z)W=j;else G=j}function M(z,j,y,f){let C=B(j,f,y);if(C!=null){if(!q(C)||C<0){let P=f?`options.${y}`:"options.highWaterMark";throw new Y(P,C)}return $(C)}return V(z.objectMode)}J.exports={getHighWaterMark:M,getDefaultHighWaterMark:V,setDefaultHighWaterMark:U}}),sV=S0((Q,J)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var $=(h2(),Y2(b2)),q=$.Buffer;function X(G,W){for(var B in G)W[B]=G[B]}if(q.from&&q.alloc&&q.allocUnsafe&&q.allocUnsafeSlow)J.exports=$;else X($,Q),Q.Buffer=Y;function Y(G,W,B){return q(G,W,B)}Y.prototype=Object.create(q.prototype),X(q,Y),Y.from=function(G,W,B){if(typeof G==="number")throw TypeError("Argument must not be a number");return q(G,W,B)},Y.alloc=function(G,W,B){if(typeof G!=="number")throw TypeError("Argument must be a number");var V=q(G);if(W!==void 0)if(typeof B==="string")V.fill(W,B);else V.fill(W);else V.fill(0);return V},Y.allocUnsafe=function(G){if(typeof G!=="number")throw TypeError("Argument must be a number");return q(G)},Y.allocUnsafeSlow=function(G){if(typeof G!=="number")throw TypeError("Argument must be a number");return $.SlowBuffer(G)}}),tV=S0((Q)=>{var J=sV().Buffer,$=J.isEncoding||function(K){switch(K=""+K,K&&K.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function q(K){if(!K)return"utf8";var w;while(!0)switch(K){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 K;default:if(w)return;K=(""+K).toLowerCase(),w=!0}}function X(K){var w=q(K);if(typeof w!=="string"&&(J.isEncoding===$||!$(K)))throw Error("Unknown encoding: "+K);return w||K}Q.StringDecoder=Y;function Y(K){this.encoding=X(K);var w;switch(this.encoding){case"utf16le":this.text=z,this.end=j,w=4;break;case"utf8":this.fillLast=V,w=4;break;case"base64":this.text=y,this.end=f,w=3;break;default:this.write=C,this.end=P;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=J.allocUnsafe(w)}Y.prototype.write=function(K){if(K.length===0)return"";var w,L;if(this.lastNeed){if(w=this.fillLast(K),w===void 0)return"";L=this.lastNeed,this.lastNeed=0}else L=0;if(L<K.length)return w?w+this.text(K,L):this.text(K,L);return w||""},Y.prototype.end=M,Y.prototype.text=U,Y.prototype.fillLast=function(K){if(this.lastNeed<=K.length)return K.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);K.copy(this.lastChar,this.lastTotal-this.lastNeed,0,K.length),this.lastNeed-=K.length};function G(K){if(K<=127)return 0;else if(K>>5===6)return 2;else if(K>>4===14)return 3;else if(K>>3===30)return 4;return K>>6===2?-1:-2}function W(K,w,L){var O=w.length-1;if(O<L)return 0;var b=G(w[O]);if(b>=0){if(b>0)K.lastNeed=b-1;return b}if(--O<L||b===-2)return 0;if(b=G(w[O]),b>=0){if(b>0)K.lastNeed=b-2;return b}if(--O<L||b===-2)return 0;if(b=G(w[O]),b>=0){if(b>0)if(b===2)b=0;else K.lastNeed=b-3;return b}return 0}function B(K,w,L){if((w[0]&192)!==128)return K.lastNeed=0,"�";if(K.lastNeed>1&&w.length>1){if((w[1]&192)!==128)return K.lastNeed=1,"�";if(K.lastNeed>2&&w.length>2){if((w[2]&192)!==128)return K.lastNeed=2,"�"}}}function V(K){var w=this.lastTotal-this.lastNeed,L=B(this,K,w);if(L!==void 0)return L;if(this.lastNeed<=K.length)return K.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);K.copy(this.lastChar,w,0,K.length),this.lastNeed-=K.length}function U(K,w){var L=W(this,K,w);if(!this.lastNeed)return K.toString("utf8",w);this.lastTotal=L;var O=K.length-(L-this.lastNeed);return K.copy(this.lastChar,0,O),K.toString("utf8",w,O)}function M(K){var w=K&&K.length?this.write(K):"";if(this.lastNeed)return w+"�";return w}function z(K,w){if((K.length-w)%2===0){var L=K.toString("utf16le",w);if(L){var O=L.charCodeAt(L.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=K[K.length-2],this.lastChar[1]=K[K.length-1],L.slice(0,-1)}return L}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=K[K.length-1],K.toString("utf16le",w,K.length-1)}function j(K){var w=K&&K.length?this.write(K):"";if(this.lastNeed){var L=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,L)}return w}function y(K,w){var L=(K.length-w)%3;if(L===0)return K.toString("base64",w);if(this.lastNeed=3-L,this.lastTotal=3,L===1)this.lastChar[0]=K[K.length-1];else this.lastChar[0]=K[K.length-2],this.lastChar[1]=K[K.length-1];return K.toString("base64",w,K.length-L)}function f(K){var w=K&&K.length?this.write(K):"";if(this.lastNeed)return w+this.lastChar.toString("base64",0,3-this.lastNeed);return w}function C(K){return K.toString(this.encoding)}function P(K){return K&&K.length?this.write(K):""}}),TJ=S0((Q,J)=>{var $=S1(),{PromisePrototypeThen:q,SymbolAsyncIterator:X,SymbolIterator:Y}=T0(),{Buffer:G}=(h2(),Y2(b2)),{ERR_INVALID_ARG_TYPE:W,ERR_STREAM_NULL_VALUES:B}=i0().codes;function V(U,M,z){let j;if(typeof M==="string"||M instanceof G)return new U({objectMode:!0,...z,read(){this.push(M),this.push(null)}});let y;if(M&&M[X])y=!0,j=M[X]();else if(M&&M[Y])y=!1,j=M[Y]();else throw new W("iterable",["Iterable"],M);let f=new U({objectMode:!0,highWaterMark:1,...z}),C=!1;f._read=function(){if(!C)C=!0,K()},f._destroy=function(w,L){q(P(w),()=>$.nextTick(L,w),(O)=>$.nextTick(L,O||w))};async function P(w){let L=w!==void 0&&w!==null,O=typeof j.throw==="function";if(L&&O){let{value:b,done:k}=await j.throw(w);if(await b,k)return}if(typeof j.return==="function"){let{value:b}=await j.return();await b}}async function K(){for(;;){try{let{value:w,done:L}=y?await j.next():j.next();if(L)f.push(null);else{let O=w&&typeof w.then==="function"?await w:w;if(O===null)throw C=!1,new B;else if(f.push(O))continue;else C=!1}}catch(w){f.destroy(w)}break}}return f}J.exports=V}),k8=S0((Q,J)=>{var $=S1(),{ArrayPrototypeIndexOf:q,NumberIsInteger:X,NumberIsNaN:Y,NumberParseInt:G,ObjectDefineProperties:W,ObjectKeys:B,ObjectSetPrototypeOf:V,Promise:U,SafeSet:M,SymbolAsyncDispose:z,SymbolAsyncIterator:j,Symbol:y}=T0();J.exports=o,o.ReadableState=X0;var{EventEmitter:f}=(m6(),Y2(h6)),{Stream:C,prependListener:P}=W4(),{Buffer:K}=(h2(),Y2(b2)),{addAbortSignal:w}=E8(),L=Q1(),O=s0().debuglog("stream",(H)=>{O=H}),b=aV(),k=s1(),{getHighWaterMark:d,getDefaultHighWaterMark:S}=Z8(),{aggregateTwoErrors:v,codes:{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_OUT_OF_RANGE:T,ERR_STREAM_PUSH_AFTER_EOF:_,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:Z},AbortError:t}=i0(),{validateObject:q0}=u6(),V0=y("kPaused"),{StringDecoder:N0}=tV(),u=TJ();V(o.prototype,C.prototype),V(o,C);var H0=()=>{},{errorOrDestroy:N}=k,i=1,G0=2,c=4,U0=8,M0=16,R0=32,D0=64,p=128,l=256,e=512,w0=1024,L0=2048,A=4096,E=8192,m=16384,s=32768,$0=65536,Q0=131072,I=262144;function n(H){return{enumerable:!1,get(){return(this.state&H)!==0},set(F){if(F)this.state|=H;else this.state&=~H}}}W(X0.prototype,{objectMode:n(i),ended:n(G0),endEmitted:n(c),reading:n(U0),constructed:n(M0),sync:n(R0),needReadable:n(D0),emittedReadable:n(p),readableListening:n(l),resumeScheduled:n(e),errorEmitted:n(w0),emitClose:n(L0),autoDestroy:n(A),destroyed:n(E),closed:n(m),closeEmitted:n(s),multiAwaitDrain:n($0),readingMore:n(Q0),dataEmitted:n(I)});function X0(H,F,a){if(typeof a!=="boolean")a=F instanceof m2();if(this.state=L0|A|M0|R0,H&&H.objectMode)this.state|=i;if(a&&H&&H.readableObjectMode)this.state|=i;if(this.highWaterMark=H?d(this,H,"readableHighWaterMark",a):S(!1),this.buffer=new b,this.length=0,this.pipes=[],this.flowing=null,this[V0]=null,H&&H.emitClose===!1)this.state&=~L0;if(H&&H.autoDestroy===!1)this.state&=~A;if(this.errored=null,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.decoder=null,this.encoding=null,H&&H.encoding)this.decoder=new N0(H.encoding),this.encoding=H.encoding}function o(H){if(!(this instanceof o))return new o(H);let F=this instanceof m2();if(this._readableState=new X0(H,this,F),H){if(typeof H.read==="function")this._read=H.read;if(typeof H.destroy==="function")this._destroy=H.destroy;if(typeof H.construct==="function")this._construct=H.construct;if(H.signal&&!F)w(H.signal,this)}C.call(this,H),k.construct(this,()=>{if(this._readableState.needReadable)o1(this,this._readableState)})}o.prototype.destroy=k.destroy,o.prototype._undestroy=k.undestroy,o.prototype._destroy=function(H,F){F(H)},o.prototype[f.captureRejectionSymbol]=function(H){this.destroy(H)},o.prototype[z]=function(){let H;if(!this.destroyed)H=this.readableEnded?null:new t,this.destroy(H);return new U((F,a)=>L(this,(W0)=>W0&&W0!==H?a(W0):F(null)))},o.prototype.push=function(H,F){return j0(this,H,F,!1)},o.prototype.unshift=function(H,F){return j0(this,H,F,!0)};function j0(H,F,a,W0){O("readableAddChunk",F);let B0=H._readableState,p0;if((B0.state&i)===0){if(typeof F==="string"){if(a=a||B0.defaultEncoding,B0.encoding!==a)if(W0&&B0.encoding)F=K.from(F,a).toString(B0.encoding);else F=K.from(F,a),a=""}else if(F instanceof K)a="";else if(C._isUint8Array(F))F=C._uint8ArrayToBuffer(F),a="";else if(F!=null)p0=new R("chunk",["string","Buffer","Uint8Array"],F)}if(p0)N(H,p0);else if(F===null)B0.state&=~U0,u0(H,B0);else if((B0.state&i)!==0||F&&F.length>0)if(W0)if((B0.state&c)!==0)N(H,new Z);else if(B0.destroyed||B0.errored)return!1;else v0(H,B0,F,!0);else if(B0.ended)N(H,new _);else if(B0.destroyed||B0.errored)return!1;else if(B0.state&=~U0,B0.decoder&&!a)if(F=B0.decoder.write(F),B0.objectMode||F.length!==0)v0(H,B0,F,!1);else o1(H,B0);else v0(H,B0,F,!1);else if(!W0)B0.state&=~U0,o1(H,B0);return!B0.ended&&(B0.length<B0.highWaterMark||B0.length===0)}function v0(H,F,a,W0){if(F.flowing&&F.length===0&&!F.sync&&H.listenerCount("data")>0){if((F.state&$0)!==0)F.awaitDrainWriters.clear();else F.awaitDrainWriters=null;F.dataEmitted=!0,H.emit("data",a)}else{if(F.length+=F.objectMode?1:a.length,W0)F.buffer.unshift(a);else F.buffer.push(a);if((F.state&D0)!==0)r0(H)}o1(H,F)}o.prototype.isPaused=function(){let H=this._readableState;return H[V0]===!0||H.flowing===!1},o.prototype.setEncoding=function(H){let F=new N0(H);this._readableState.decoder=F,this._readableState.encoding=this._readableState.decoder.encoding;let a=this._readableState.buffer,W0="";for(let B0 of a)W0+=F.write(B0);if(a.clear(),W0!=="")a.push(W0);return this._readableState.length=W0.length,this};var $2=1073741824;function q2(H){if(H>$2)throw new T("size","<= 1GiB",H);else H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++;return H}function D1(H,F){if(H<=0||F.length===0&&F.ended)return 0;if((F.state&i)!==0)return 1;if(Y(H)){if(F.flowing&&F.length)return F.buffer.first().length;return F.length}if(H<=F.length)return H;return F.ended?F.length:0}o.prototype.read=function(H){if(O("read",H),H===void 0)H=NaN;else if(!X(H))H=G(H,10);let F=this._readableState,a=H;if(H>F.highWaterMark)F.highWaterMark=q2(H);if(H!==0)F.state&=~p;if(H===0&&F.needReadable&&((F.highWaterMark!==0?F.length>=F.highWaterMark:F.length>0)||F.ended)){if(O("read: emitReadable",F.length,F.ended),F.length===0&&F.ended)u5(this);else r0(this);return null}if(H=D1(H,F),H===0&&F.ended){if(F.length===0)u5(this);return null}let W0=(F.state&D0)!==0;if(O("need readable",W0),F.length===0||F.length-H<F.highWaterMark)W0=!0,O("length less than watermark",W0);if(F.ended||F.reading||F.destroyed||F.errored||!F.constructed)W0=!1,O("reading, ended or constructing",W0);else if(W0){if(O("do read"),F.state|=U0|R0,F.length===0)F.state|=D0;try{this._read(F.highWaterMark)}catch(p0){N(this,p0)}if(F.state&=~R0,!F.reading)H=D1(a,F)}let B0;if(H>0)B0=hQ(H,F);else B0=null;if(B0===null)F.needReadable=F.length<=F.highWaterMark,H=0;else if(F.length-=H,F.multiAwaitDrain)F.awaitDrainWriters.clear();else F.awaitDrainWriters=null;if(F.length===0){if(!F.ended)F.needReadable=!0;if(a!==H&&F.ended)u5(this)}if(B0!==null&&!F.errorEmitted&&!F.closeEmitted)F.dataEmitted=!0,this.emit("data",B0);return B0};function u0(H,F){if(O("onEofChunk"),F.ended)return;if(F.decoder){let a=F.decoder.end();if(a&&a.length)F.buffer.push(a),F.length+=F.objectMode?1:a.length}if(F.ended=!0,F.sync)r0(H);else F.needReadable=!1,F.emittedReadable=!0,n1(H)}function r0(H){let F=H._readableState;if(O("emitReadable",F.needReadable,F.emittedReadable),F.needReadable=!1,!F.emittedReadable)O("emitReadable",F.flowing),F.emittedReadable=!0,$.nextTick(n1,H)}function n1(H){let F=H._readableState;if(O("emitReadable_",F.destroyed,F.length,F.ended),!F.destroyed&&!F.errored&&(F.length||F.ended))H.emit("readable"),F.emittedReadable=!1;F.needReadable=!F.flowing&&!F.ended&&F.length<=F.highWaterMark,yQ(H)}function o1(H,F){if(!F.readingMore&&F.constructed)F.readingMore=!0,$.nextTick(O2,H,F)}function O2(H,F){while(!F.reading&&!F.ended&&(F.length<F.highWaterMark||F.flowing&&F.length===0)){let a=F.length;if(O("maybeReadMore read 0"),H.read(0),a===F.length)break}F.readingMore=!1}o.prototype._read=function(H){throw new D("_read()")},o.prototype.pipe=function(H,F){let a=this,W0=this._readableState;if(W0.pipes.length===1){if(!W0.multiAwaitDrain)W0.multiAwaitDrain=!0,W0.awaitDrainWriters=new M(W0.awaitDrainWriters?[W0.awaitDrainWriters]:[])}W0.pipes.push(H),O("pipe count=%d opts=%j",W0.pipes.length,F);let B0=(!F||F.end!==!1)&&H!==$.stdout&&H!==$.stderr?X2:g6;if(W0.endEmitted)$.nextTick(B0);else a.once("end",B0);H.on("unpipe",p0);function p0(O1,_2){if(O("onunpipe"),O1===a){if(_2&&_2.hasUnpiped===!1)_2.hasUnpiped=!0,iW()}}function X2(){O("onend"),H.end()}let C1,cQ=!1;function iW(){if(O("cleanup"),H.removeListener("close",d5),H.removeListener("finish",i5),C1)H.removeListener("drain",C1);if(H.removeListener("error",l5),H.removeListener("unpipe",p0),a.removeListener("end",X2),a.removeListener("end",g6),a.removeListener("data",pQ),cQ=!0,C1&&W0.awaitDrainWriters&&(!H._writableState||H._writableState.needDrain))C1()}function uQ(){if(!cQ){if(W0.pipes.length===1&&W0.pipes[0]===H)O("false write response, pause",0),W0.awaitDrainWriters=H,W0.multiAwaitDrain=!1;else if(W0.pipes.length>1&&W0.pipes.includes(H))O("false write response, pause",W0.awaitDrainWriters.size),W0.awaitDrainWriters.add(H);a.pause()}if(!C1)C1=hW(a,H),H.on("drain",C1)}a.on("data",pQ);function pQ(O1){O("ondata");let _2=H.write(O1);if(O("dest.write",_2),_2===!1)uQ()}function l5(O1){if(O("onerror",O1),g6(),H.removeListener("error",l5),H.listenerCount("error")===0){let _2=H._writableState||H._readableState;if(_2&&!_2.errorEmitted)N(H,O1);else H.emit("error",O1)}}P(H,"error",l5);function d5(){H.removeListener("finish",i5),g6()}H.once("close",d5);function i5(){O("onfinish"),H.removeListener("close",d5),g6()}H.once("finish",i5);function g6(){O("unpipe"),a.unpipe(H)}if(H.emit("pipe",a),H.writableNeedDrain===!0)uQ();else if(!W0.flowing)O("pipe resume"),a.resume();return H};function hW(H,F){return function(){let a=H._readableState;if(a.awaitDrainWriters===F)O("pipeOnDrain",1),a.awaitDrainWriters=null;else if(a.multiAwaitDrain)O("pipeOnDrain",a.awaitDrainWriters.size),a.awaitDrainWriters.delete(F);if((!a.awaitDrainWriters||a.awaitDrainWriters.size===0)&&H.listenerCount("data"))H.resume()}}o.prototype.unpipe=function(H){let F=this._readableState,a={hasUnpiped:!1};if(F.pipes.length===0)return this;if(!H){let B0=F.pipes;F.pipes=[],this.pause();for(let p0=0;p0<B0.length;p0++)B0[p0].emit("unpipe",this,{hasUnpiped:!1});return this}let W0=q(F.pipes,H);if(W0===-1)return this;if(F.pipes.splice(W0,1),F.pipes.length===0)this.pause();return H.emit("unpipe",this,a),this},o.prototype.on=function(H,F){let a=C.prototype.on.call(this,H,F),W0=this._readableState;if(H==="data"){if(W0.readableListening=this.listenerCount("readable")>0,W0.flowing!==!1)this.resume()}else if(H==="readable"){if(!W0.endEmitted&&!W0.readableListening){if(W0.readableListening=W0.needReadable=!0,W0.flowing=!1,W0.emittedReadable=!1,O("on readable",W0.length,W0.reading),W0.length)r0(this);else if(!W0.reading)$.nextTick(mW,this)}}return a},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(H,F){let a=C.prototype.removeListener.call(this,H,F);if(H==="readable")$.nextTick(_Q,this);return a},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(H){let F=C.prototype.removeAllListeners.apply(this,arguments);if(H==="readable"||H===void 0)$.nextTick(_Q,this);return F};function _Q(H){let F=H._readableState;if(F.readableListening=H.listenerCount("readable")>0,F.resumeScheduled&&F[V0]===!1)F.flowing=!0;else if(H.listenerCount("data")>0)H.resume();else if(!F.readableListening)F.flowing=null}function mW(H){O("readable nexttick read 0"),H.read(0)}o.prototype.resume=function(){let H=this._readableState;if(!H.flowing)O("resume"),H.flowing=!H.readableListening,cW(this,H);return H[V0]=!1,this};function cW(H,F){if(!F.resumeScheduled)F.resumeScheduled=!0,$.nextTick(uW,H,F)}function uW(H,F){if(O("resume",F.reading),!F.reading)H.read(0);if(F.resumeScheduled=!1,H.emit("resume"),yQ(H),F.flowing&&!F.reading)H.read(0)}o.prototype.pause=function(){if(O("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)O("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState[V0]=!0,this};function yQ(H){let F=H._readableState;O("flow",F.flowing);while(F.flowing&&H.read()!==null);}o.prototype.wrap=function(H){let F=!1;H.on("data",(W0)=>{if(!this.push(W0)&&H.pause)F=!0,H.pause()}),H.on("end",()=>{this.push(null)}),H.on("error",(W0)=>{N(this,W0)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{if(F&&H.resume)F=!1,H.resume()};let a=B(H);for(let W0=1;W0<a.length;W0++){let B0=a[W0];if(this[B0]===void 0&&typeof H[B0]==="function")this[B0]=H[B0].bind(H)}return this},o.prototype[j]=function(){return bQ(this)},o.prototype.iterator=function(H){if(H!==void 0)q0(H,"options");return bQ(this,H)};function bQ(H,F){if(typeof H.read!=="function")H=o.wrap(H,{objectMode:!0});let a=pW(H,F);return a.stream=H,a}async function*pW(H,F){let a=H0;function W0(X2){if(this===H)a(),a=H0;else a=X2}H.on("readable",W0);let B0,p0=L(H,{writable:!1},(X2)=>{B0=X2?v(B0,X2):null,a(),a=H0});try{while(!0){let X2=H.destroyed?null:H.read();if(X2!==null)yield X2;else if(B0)throw B0;else if(B0===null)return;else await new U(W0)}}catch(X2){throw B0=v(B0,X2),B0}finally{if((B0||(F===null||F===void 0?void 0:F.destroyOnReturn)!==!1)&&(B0===void 0||H._readableState.autoDestroy))k.destroyer(H,null);else H.off("readable",W0),p0()}}W(o.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){if(this._readableState)this._readableState.readable=!!H}},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(H){if(this._readableState)this._readableState.flowing=H}},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(H){if(!this._readableState)return;this._readableState.destroyed=H}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),W(X0.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[V0]!==!1},set(H){this[V0]=!!H}}}),o._fromList=hQ;function hQ(H,F){if(F.length===0)return null;let a;if(F.objectMode)a=F.buffer.shift();else if(!H||H>=F.length){if(F.decoder)a=F.buffer.join("");else if(F.buffer.length===1)a=F.buffer.first();else a=F.buffer.concat(F.length);F.buffer.clear()}else a=F.buffer.consume(H,F.decoder);return a}function u5(H){let F=H._readableState;if(O("endReadable",F.endEmitted),!F.endEmitted)F.ended=!0,$.nextTick(lW,F,H)}function lW(H,F){if(O("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,F.emit("end"),F.writable&&F.allowHalfOpen===!1)$.nextTick(dW,F);else if(H.autoDestroy){let a=F._writableState;if(!a||a.autoDestroy&&(a.finished||a.writable===!1))F.destroy()}}}function dW(H){if(H.writable&&!H.writableEnded&&!H.destroyed)H.end()}o.from=function(H,F){return u(o,H,F)};var p5;function mQ(){if(p5===void 0)p5={};return p5}o.fromWeb=function(H,F){return mQ().newStreamReadableFromReadableStream(H,F)},o.toWeb=function(H,F){return mQ().newReadableStreamFromStreamReadable(H,F)},o.wrap=function(H,F){var a,W0;return new o({objectMode:(a=(W0=H.readableObjectMode)!==null&&W0!==void 0?W0:H.objectMode)!==null&&a!==void 0?a:!0,...F,destroy(B0,p0){k.destroyer(H,B0),p0(B0)}}).wrap(H)}}),V4=S0((Q,J)=>{var $=S1(),{ArrayPrototypeSlice:q,Error:X,FunctionPrototypeSymbolHasInstance:Y,ObjectDefineProperty:G,ObjectDefineProperties:W,ObjectSetPrototypeOf:B,StringPrototypeToLowerCase:V,Symbol:U,SymbolHasInstance:M}=T0();J.exports=q0,q0.WritableState=Z;var{EventEmitter:z}=(m6(),Y2(h6)),j=W4().Stream,{Buffer:y}=(h2(),Y2(b2)),f=s1(),{addAbortSignal:C}=E8(),{getHighWaterMark:P,getDefaultHighWaterMark:K}=Z8(),{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_MULTIPLE_CALLBACK:O,ERR_STREAM_CANNOT_PIPE:b,ERR_STREAM_DESTROYED:k,ERR_STREAM_ALREADY_FINISHED:d,ERR_STREAM_NULL_VALUES:S,ERR_STREAM_WRITE_AFTER_END:v,ERR_UNKNOWN_ENCODING:R}=i0().codes,{errorOrDestroy:D}=f;B(q0.prototype,j.prototype),B(q0,j);function T(){}var _=U("kOnFinished");function Z(A,E,m){if(typeof m!=="boolean")m=E instanceof m2();if(this.objectMode=!!(A&&A.objectMode),m)this.objectMode=this.objectMode||!!(A&&A.writableObjectMode);this.highWaterMark=A?P(this,A,"writableHighWaterMark",m):K(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let s=!!(A&&A.decodeStrings===!1);this.decodeStrings=!s,this.defaultEncoding=A&&A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=N.bind(void 0,E),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,t(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!A||A.emitClose!==!1,this.autoDestroy=!A||A.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[_]=[]}function t(A){A.buffered=[],A.bufferedIndex=0,A.allBuffers=!0,A.allNoop=!0}Z.prototype.getBuffer=function(){return q(this.buffered,this.bufferedIndex)},G(Z.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function q0(A){let E=this instanceof m2();if(!E&&!Y(q0,this))return new q0(A);if(this._writableState=new Z(A,this,E),A){if(typeof A.write==="function")this._write=A.write;if(typeof A.writev==="function")this._writev=A.writev;if(typeof A.destroy==="function")this._destroy=A.destroy;if(typeof A.final==="function")this._final=A.final;if(typeof A.construct==="function")this._construct=A.construct;if(A.signal)C(A.signal,this)}j.call(this,A),f.construct(this,()=>{let m=this._writableState;if(!m.writing)U0(this,m);p(this,m)})}G(q0,M,{__proto__:null,value:function(A){if(Y(this,A))return!0;if(this!==q0)return!1;return A&&A._writableState instanceof Z}}),q0.prototype.pipe=function(){D(this,new b)};function V0(A,E,m,s){let $0=A._writableState;if(typeof m==="function")s=m,m=$0.defaultEncoding;else{if(!m)m=$0.defaultEncoding;else if(m!=="buffer"&&!y.isEncoding(m))throw new R(m);if(typeof s!=="function")s=T}if(E===null)throw new S;else if(!$0.objectMode)if(typeof E==="string"){if($0.decodeStrings!==!1)E=y.from(E,m),m="buffer"}else if(E instanceof y)m="buffer";else if(j._isUint8Array(E))E=j._uint8ArrayToBuffer(E),m="buffer";else throw new w("chunk",["string","Buffer","Uint8Array"],E);let Q0;if($0.ending)Q0=new v;else if($0.destroyed)Q0=new k("write");if(Q0)return $.nextTick(s,Q0),D(A,Q0,!0),Q0;return $0.pendingcb++,N0(A,$0,E,m,s)}q0.prototype.write=function(A,E,m){return V0(this,A,E,m)===!0},q0.prototype.cork=function(){this._writableState.corked++},q0.prototype.uncork=function(){let A=this._writableState;if(A.corked){if(A.corked--,!A.writing)U0(this,A)}},q0.prototype.setDefaultEncoding=function(A){if(typeof A==="string")A=V(A);if(!y.isEncoding(A))throw new R(A);return this._writableState.defaultEncoding=A,this};function N0(A,E,m,s,$0){let Q0=E.objectMode?1:m.length;E.length+=Q0;let I=E.length<E.highWaterMark;if(!I)E.needDrain=!0;if(E.writing||E.corked||E.errored||!E.constructed){if(E.buffered.push({chunk:m,encoding:s,callback:$0}),E.allBuffers&&s!=="buffer")E.allBuffers=!1;if(E.allNoop&&$0!==T)E.allNoop=!1}else E.writelen=Q0,E.writecb=$0,E.writing=!0,E.sync=!0,A._write(m,s,E.onwrite),E.sync=!1;return I&&!E.errored&&!E.destroyed}function u(A,E,m,s,$0,Q0,I){if(E.writelen=s,E.writecb=I,E.writing=!0,E.sync=!0,E.destroyed)E.onwrite(new k("write"));else if(m)A._writev($0,E.onwrite);else A._write($0,Q0,E.onwrite);E.sync=!1}function H0(A,E,m,s){--E.pendingcb,s(m),c(E),D(A,m)}function N(A,E){let m=A._writableState,s=m.sync,$0=m.writecb;if(typeof $0!=="function"){D(A,new O);return}if(m.writing=!1,m.writecb=null,m.length-=m.writelen,m.writelen=0,E){if(E.stack,!m.errored)m.errored=E;if(A._readableState&&!A._readableState.errored)A._readableState.errored=E;if(s)$.nextTick(H0,A,m,E,$0);else H0(A,m,E,$0)}else{if(m.buffered.length>m.bufferedIndex)U0(A,m);if(s)if(m.afterWriteTickInfo!==null&&m.afterWriteTickInfo.cb===$0)m.afterWriteTickInfo.count++;else m.afterWriteTickInfo={count:1,cb:$0,stream:A,state:m},$.nextTick(i,m.afterWriteTickInfo);else G0(A,m,1,$0)}}function i({stream:A,state:E,count:m,cb:s}){return E.afterWriteTickInfo=null,G0(A,E,m,s)}function G0(A,E,m,s){if(!E.ending&&!A.destroyed&&E.length===0&&E.needDrain)E.needDrain=!1,A.emit("drain");while(m-- >0)E.pendingcb--,s();if(E.destroyed)c(E);p(A,E)}function c(A){if(A.writing)return;for(let $0=A.bufferedIndex;$0<A.buffered.length;++$0){var E;let{chunk:Q0,callback:I}=A.buffered[$0],n=A.objectMode?1:Q0.length;A.length-=n,I((E=A.errored)!==null&&E!==void 0?E:new k("write"))}let m=A[_].splice(0);for(let $0=0;$0<m.length;$0++){var s;m[$0]((s=A.errored)!==null&&s!==void 0?s:new k("end"))}t(A)}function U0(A,E){if(E.corked||E.bufferProcessing||E.destroyed||!E.constructed)return;let{buffered:m,bufferedIndex:s,objectMode:$0}=E,Q0=m.length-s;if(!Q0)return;let I=s;if(E.bufferProcessing=!0,Q0>1&&A._writev){E.pendingcb-=Q0-1;let n=E.allNoop?T:(o)=>{for(let j0=I;j0<m.length;++j0)m[j0].callback(o)},X0=E.allNoop&&I===0?m:q(m,I);X0.allBuffers=E.allBuffers,u(A,E,!0,E.length,X0,"",n),t(E)}else{do{let{chunk:n,encoding:X0,callback:o}=m[I];m[I++]=null;let j0=$0?1:n.length;u(A,E,!1,j0,n,X0,o)}while(I<m.length&&!E.writing);if(I===m.length)t(E);else if(I>256)m.splice(0,I),E.bufferedIndex=0;else E.bufferedIndex=I}E.bufferProcessing=!1}q0.prototype._write=function(A,E,m){if(this._writev)this._writev([{chunk:A,encoding:E}],m);else throw new L("_write()")},q0.prototype._writev=null,q0.prototype.end=function(A,E,m){let s=this._writableState;if(typeof A==="function")m=A,A=null,E=null;else if(typeof E==="function")m=E,E=null;let $0;if(A!==null&&A!==void 0){let Q0=V0(this,A,E);if(Q0 instanceof X)$0=Q0}if(s.corked)s.corked=1,this.uncork();if($0);else if(!s.errored&&!s.ending)s.ending=!0,p(this,s,!0),s.ended=!0;else if(s.finished)$0=new d("end");else if(s.destroyed)$0=new k("end");if(typeof m==="function")if($0||s.finished)$.nextTick(m,$0);else s[_].push(m);return this};function M0(A){return A.ending&&!A.destroyed&&A.constructed&&A.length===0&&!A.errored&&A.buffered.length===0&&!A.finished&&!A.writing&&!A.errorEmitted&&!A.closeEmitted}function R0(A,E){let m=!1;function s($0){if(m){D(A,$0!==null&&$0!==void 0?$0:O());return}if(m=!0,E.pendingcb--,$0){let Q0=E[_].splice(0);for(let I=0;I<Q0.length;I++)Q0[I]($0);D(A,$0,E.sync)}else if(M0(E))E.prefinished=!0,A.emit("prefinish"),E.pendingcb++,$.nextTick(l,A,E)}E.sync=!0,E.pendingcb++;try{A._final(s)}catch($0){s($0)}E.sync=!1}function D0(A,E){if(!E.prefinished&&!E.finalCalled)if(typeof A._final==="function"&&!E.destroyed)E.finalCalled=!0,R0(A,E);else E.prefinished=!0,A.emit("prefinish")}function p(A,E,m){if(M0(E)){if(D0(A,E),E.pendingcb===0){if(m)E.pendingcb++,$.nextTick((s,$0)=>{if(M0($0))l(s,$0);else $0.pendingcb--},A,E);else if(M0(E))E.pendingcb++,l(A,E)}}}function l(A,E){E.pendingcb--,E.finished=!0;let m=E[_].splice(0);for(let s=0;s<m.length;s++)m[s]();if(A.emit("finish"),E.autoDestroy){let s=A._readableState;if(!s||s.autoDestroy&&(s.endEmitted||s.readable===!1))A.destroy()}}W(q0.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:!1}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:!1},set(A){if(this._writableState)this._writableState.destroyed=A}},writable:{__proto__:null,get(){let A=this._writableState;return!!A&&A.writable!==!1&&!A.destroyed&&!A.errored&&!A.ending&&!A.ended},set(A){if(this._writableState)this._writableState.writable=!!A}},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 A=this._writableState;if(!A)return!1;return!A.destroyed&&!A.ending&&A.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 e=f.destroy;q0.prototype.destroy=function(A,E){let m=this._writableState;if(!m.destroyed&&(m.bufferedIndex<m.buffered.length||m[_].length))$.nextTick(c,m);return e.call(this,A,E),this},q0.prototype._undestroy=f.undestroy,q0.prototype._destroy=function(A,E){E(A)},q0.prototype[z.captureRejectionSymbol]=function(A){this.destroy(A)};var w0;function L0(){if(w0===void 0)w0={};return w0}q0.fromWeb=function(A,E){return L0().newStreamWritableFromWritableStream(A,E)},q0.toWeb=function(A){return L0().newWritableStreamFromStreamWritable(A)}}),eV=S0((Q,J)=>{var $=S1(),q=(h2(),Y2(b2)),{isReadable:X,isWritable:Y,isIterable:G,isNodeStream:W,isReadableNodeStream:B,isWritableNodeStream:V,isDuplexNodeStream:U,isReadableStream:M,isWritableStream:z}=c2(),j=Q1(),{AbortError:y,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:C}}=i0(),{destroyer:P}=s1(),K=m2(),w=k8(),L=V4(),{createDeferredPromise:O}=s0(),b=TJ(),k=globalThis.Blob||q.Blob,d=typeof k<"u"?function(_){return _ instanceof k}:function(_){return!1},S=globalThis.AbortController||c6().AbortController,{FunctionPrototypeCall:v}=T0();class R extends K{constructor(_){super(_);if((_===null||_===void 0?void 0:_.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((_===null||_===void 0?void 0:_.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}J.exports=function _(Z,t){if(U(Z))return Z;if(B(Z))return T({readable:Z});if(V(Z))return T({writable:Z});if(W(Z))return T({writable:!1,readable:!1});if(M(Z))return T({readable:w.fromWeb(Z)});if(z(Z))return T({writable:L.fromWeb(Z)});if(typeof Z==="function"){let{value:V0,write:N0,final:u,destroy:H0}=D(Z);if(G(V0))return b(R,V0,{objectMode:!0,write:N0,final:u,destroy:H0});let N=V0===null||V0===void 0?void 0:V0.then;if(typeof N==="function"){let i,G0=v(N,V0,(c)=>{if(c!=null)throw new C("nully","body",c)},(c)=>{P(i,c)});return i=new R({objectMode:!0,readable:!1,write:N0,final(c){u(async()=>{try{await G0,$.nextTick(c,null)}catch(U0){$.nextTick(c,U0)}})},destroy:H0})}throw new C("Iterable, AsyncIterable or AsyncFunction",t,V0)}if(d(Z))return _(Z.arrayBuffer());if(G(Z))return b(R,Z,{objectMode:!0,writable:!1});if(M(Z===null||Z===void 0?void 0:Z.readable)&&z(Z===null||Z===void 0?void 0:Z.writable))return R.fromWeb(Z);if(typeof(Z===null||Z===void 0?void 0:Z.writable)==="object"||typeof(Z===null||Z===void 0?void 0:Z.readable)==="object"){let V0=Z!==null&&Z!==void 0&&Z.readable?B(Z===null||Z===void 0?void 0:Z.readable)?Z===null||Z===void 0?void 0:Z.readable:_(Z.readable):void 0,N0=Z!==null&&Z!==void 0&&Z.writable?V(Z===null||Z===void 0?void 0:Z.writable)?Z===null||Z===void 0?void 0:Z.writable:_(Z.writable):void 0;return T({readable:V0,writable:N0})}let q0=Z===null||Z===void 0?void 0:Z.then;if(typeof q0==="function"){let V0;return v(q0,Z,(N0)=>{if(N0!=null)V0.push(N0);V0.push(null)},(N0)=>{P(V0,N0)}),V0=new R({objectMode:!0,writable:!1,read(){}})}throw new f(t,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],Z)};function D(_){let{promise:Z,resolve:t}=O(),q0=new S,V0=q0.signal;return{value:_(async function*(){while(!0){let N0=Z;Z=null;let{chunk:u,done:H0,cb:N}=await N0;if($.nextTick(N),H0)return;if(V0.aborted)throw new y(void 0,{cause:V0.reason});({promise:Z,resolve:t}=O()),yield u}}(),{signal:V0}),write(N0,u,H0){let N=t;t=null,N({chunk:N0,done:!1,cb:H0})},final(N0){let u=t;t=null,u({done:!0,cb:N0})},destroy(N0,u){q0.abort(),u(N0)}}}function T(_){let Z=_.readable&&typeof _.readable.read!=="function"?w.wrap(_.readable):_.readable,t=_.writable,q0=!!X(Z),V0=!!Y(t),N0,u,H0,N,i;function G0(c){let U0=N;if(N=null,U0)U0(c);else if(c)i.destroy(c)}if(i=new R({readableObjectMode:!!(Z!==null&&Z!==void 0&&Z.readableObjectMode),writableObjectMode:!!(t!==null&&t!==void 0&&t.writableObjectMode),readable:q0,writable:V0}),V0)j(t,(c)=>{if(V0=!1,c)P(Z,c);G0(c)}),i._write=function(c,U0,M0){if(t.write(c,U0))M0();else N0=M0},i._final=function(c){t.end(),u=c},t.on("drain",function(){if(N0){let c=N0;N0=null,c()}}),t.on("finish",function(){if(u){let c=u;u=null,c()}});if(q0)j(Z,(c)=>{if(q0=!1,c)P(Z,c);G0(c)}),Z.on("readable",function(){if(H0){let c=H0;H0=null,c()}}),Z.on("end",function(){i.push(null)}),i._read=function(){while(!0){let c=Z.read();if(c===null){H0=i._read;return}if(!i.push(c))return}};return i._destroy=function(c,U0){if(!c&&N!==null)c=new y;if(H0=null,N0=null,u=null,N===null)U0(c);else N=U0,P(t,c),P(Z,c)},i}}),m2=S0((Q,J)=>{var{ObjectDefineProperties:$,ObjectGetOwnPropertyDescriptor:q,ObjectKeys:X,ObjectSetPrototypeOf:Y}=T0();J.exports=B;var G=k8(),W=V4();Y(B.prototype,G.prototype),Y(B,G);{let z=X(W.prototype);for(let j=0;j<z.length;j++){let y=z[j];if(!B.prototype[y])B.prototype[y]=W.prototype[y]}}function B(z){if(!(this instanceof B))return new B(z);if(G.call(this,z),W.call(this,z),z){if(this.allowHalfOpen=z.allowHalfOpen!==!1,z.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(z.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}$(B.prototype,{writable:{__proto__:null,...q(W.prototype,"writable")},writableHighWaterMark:{__proto__:null,...q(W.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...q(W.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...q(W.prototype,"writableBuffer")},writableLength:{__proto__:null,...q(W.prototype,"writableLength")},writableFinished:{__proto__:null,...q(W.prototype,"writableFinished")},writableCorked:{__proto__:null,...q(W.prototype,"writableCorked")},writableEnded:{__proto__:null,...q(W.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...q(W.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(z){if(this._readableState&&this._writableState)this._readableState.destroyed=z,this._writableState.destroyed=z}}});var V;function U(){if(V===void 0)V={};return V}B.fromWeb=function(z,j){return U().newStreamDuplexFromReadableWritablePair(z,j)},B.toWeb=function(z){return U().newReadableWritablePairFromDuplex(z)};var M;B.from=function(z){if(!M)M=eV();return M(z,"body")}}),xJ=S0((Q,J)=>{var{ObjectSetPrototypeOf:$,Symbol:q}=T0();J.exports=B;var{ERR_METHOD_NOT_IMPLEMENTED:X}=i0().codes,Y=m2(),{getHighWaterMark:G}=Z8();$(B.prototype,Y.prototype),$(B,Y);var W=q("kCallback");function B(M){if(!(this instanceof B))return new B(M);let z=M?G(this,M,"readableHighWaterMark",!0):null;if(z===0)M={...M,highWaterMark:null,readableHighWaterMark:z,writableHighWaterMark:M.writableHighWaterMark||0};if(Y.call(this,M),this._readableState.sync=!1,this[W]=null,M){if(typeof M.transform==="function")this._transform=M.transform;if(typeof M.flush==="function")this._flush=M.flush}this.on("prefinish",U)}function V(M){if(typeof this._flush==="function"&&!this.destroyed)this._flush((z,j)=>{if(z){if(M)M(z);else this.destroy(z);return}if(j!=null)this.push(j);if(this.push(null),M)M()});else if(this.push(null),M)M()}function U(){if(this._final!==V)V.call(this)}B.prototype._final=V,B.prototype._transform=function(M,z,j){throw new X("_transform()")},B.prototype._write=function(M,z,j){let y=this._readableState,f=this._writableState,C=y.length;this._transform(M,z,(P,K)=>{if(P){j(P);return}if(K!=null)this.push(K);if(f.ended||C===y.length||y.length<y.highWaterMark)j();else this[W]=j})},B.prototype._read=function(){if(this[W]){let M=this[W];this[W]=null,M()}}}),gJ=S0((Q,J)=>{var{ObjectSetPrototypeOf:$}=T0();J.exports=X;var q=xJ();$(X.prototype,q.prototype),$(X,q);function X(Y){if(!(this instanceof X))return new X(Y);q.call(this,Y)}X.prototype._transform=function(Y,G,W){W(null,Y)}}),B4=S0((Q,J)=>{var $=S1(),{ArrayIsArray:q,Promise:X,SymbolAsyncIterator:Y,SymbolDispose:G}=T0(),W=Q1(),{once:B}=s0(),V=s1(),U=m2(),{aggregateTwoErrors:M,codes:{ERR_INVALID_ARG_TYPE:z,ERR_INVALID_RETURN_VALUE:j,ERR_MISSING_ARGS:y,ERR_STREAM_DESTROYED:f,ERR_STREAM_PREMATURE_CLOSE:C},AbortError:P}=i0(),{validateFunction:K,validateAbortSignal:w}=u6(),{isIterable:L,isReadable:O,isReadableNodeStream:b,isNodeStream:k,isTransformStream:d,isWebStream:S,isReadableStream:v,isReadableFinished:R}=c2(),D=globalThis.AbortController||c6().AbortController,T,_,Z;function t(c,U0,M0){let R0=!1;c.on("close",()=>{R0=!0});let D0=W(c,{readable:U0,writable:M0},(p)=>{R0=!p});return{destroy:(p)=>{if(R0)return;R0=!0,V.destroyer(c,p||new f("pipe"))},cleanup:D0}}function q0(c){return K(c[c.length-1],"streams[stream.length - 1]"),c.pop()}function V0(c){if(L(c))return c;else if(b(c))return N0(c);throw new z("val",["Readable","Iterable","AsyncIterable"],c)}async function*N0(c){if(!_)_=k8();yield*_.prototype[Y].call(c)}async function u(c,U0,M0,{end:R0}){let D0,p=null,l=(L0)=>{if(L0)D0=L0;if(p){let A=p;p=null,A()}},e=()=>new X((L0,A)=>{if(D0)A(D0);else p=()=>{if(D0)A(D0);else L0()}});U0.on("drain",l);let w0=W(U0,{readable:!1},l);try{if(U0.writableNeedDrain)await e();for await(let L0 of c)if(!U0.write(L0))await e();if(R0)U0.end(),await e();M0()}catch(L0){M0(D0!==L0?M(D0,L0):L0)}finally{w0(),U0.off("drain",l)}}async function H0(c,U0,M0,{end:R0}){if(d(U0))U0=U0.writable;let D0=U0.getWriter();try{for await(let p of c)await D0.ready,D0.write(p).catch(()=>{});if(await D0.ready,R0)await D0.close();M0()}catch(p){try{await D0.abort(p),M0(p)}catch(l){M0(l)}}}function N(...c){return i(c,B(q0(c)))}function i(c,U0,M0){if(c.length===1&&q(c[0]))c=c[0];if(c.length<2)throw new y("streams");let R0=new D,D0=R0.signal,p=M0===null||M0===void 0?void 0:M0.signal,l=[];w(p,"options.signal");function e(){$0(new P)}Z=Z||s0().addAbortListener;let w0;if(p)w0=Z(p,e);let L0,A,E=[],m=0;function s(o){$0(o,--m===0)}function $0(o,j0){var v0;if(o&&(!L0||L0.code==="ERR_STREAM_PREMATURE_CLOSE"))L0=o;if(!L0&&!j0)return;while(E.length)E.shift()(L0);if((v0=w0)===null||v0===void 0||v0[G](),R0.abort(),j0){if(!L0)l.forEach(($2)=>$2());$.nextTick(U0,L0,A)}}let Q0;for(let o=0;o<c.length;o++){let j0=c[o],v0=o<c.length-1,$2=o>0,q2=v0||(M0===null||M0===void 0?void 0:M0.end)!==!1,D1=o===c.length-1;if(k(j0)){let u0=function(r0){if(r0&&r0.name!=="AbortError"&&r0.code!=="ERR_STREAM_PREMATURE_CLOSE")s(r0)};var I=u0;if(q2){let{destroy:r0,cleanup:n1}=t(j0,v0,$2);if(E.push(r0),O(j0)&&D1)l.push(n1)}if(j0.on("error",u0),O(j0)&&D1)l.push(()=>{j0.removeListener("error",u0)})}if(o===0)if(typeof j0==="function"){if(Q0=j0({signal:D0}),!L(Q0))throw new j("Iterable, AsyncIterable or Stream","source",Q0)}else if(L(j0)||b(j0)||d(j0))Q0=j0;else Q0=U.from(j0);else if(typeof j0==="function"){if(d(Q0)){var n;Q0=V0((n=Q0)===null||n===void 0?void 0:n.readable)}else Q0=V0(Q0);if(Q0=j0(Q0,{signal:D0}),v0){if(!L(Q0,!0))throw new j("AsyncIterable",`transform[${o-1}]`,Q0)}else{var X0;if(!T)T=gJ();let u0=new T({objectMode:!0}),r0=(X0=Q0)===null||X0===void 0?void 0:X0.then;if(typeof r0==="function")m++,r0.call(Q0,(O2)=>{if(A=O2,O2!=null)u0.write(O2);if(q2)u0.end();$.nextTick(s)},(O2)=>{u0.destroy(O2),$.nextTick(s,O2)});else if(L(Q0,!0))m++,u(Q0,u0,s,{end:q2});else if(v(Q0)||d(Q0)){let O2=Q0.readable||Q0;m++,u(O2,u0,s,{end:q2})}else throw new j("AsyncIterable or Promise","destination",Q0);Q0=u0;let{destroy:n1,cleanup:o1}=t(Q0,!1,!0);if(E.push(n1),D1)l.push(o1)}}else if(k(j0)){if(b(Q0)){m+=2;let u0=G0(Q0,j0,s,{end:q2});if(O(j0)&&D1)l.push(u0)}else if(d(Q0)||v(Q0)){let u0=Q0.readable||Q0;m++,u(u0,j0,s,{end:q2})}else if(L(Q0))m++,u(Q0,j0,s,{end:q2});else throw new z("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Q0);Q0=j0}else if(S(j0)){if(b(Q0))m++,H0(V0(Q0),j0,s,{end:q2});else if(v(Q0)||L(Q0))m++,H0(Q0,j0,s,{end:q2});else if(d(Q0))m++,H0(Q0.readable,j0,s,{end:q2});else throw new z("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],Q0);Q0=j0}else Q0=U.from(j0)}if(D0!==null&&D0!==void 0&&D0.aborted||p!==null&&p!==void 0&&p.aborted)$.nextTick(e);return Q0}function G0(c,U0,M0,{end:R0}){let D0=!1;if(U0.on("close",()=>{if(!D0)M0(new C)}),c.pipe(U0,{end:!1}),R0){let l=function(){D0=!0,U0.end()};var p=l;if(R(c))$.nextTick(l);else c.once("end",l)}else M0();return W(c,{readable:!0,writable:!1},(l)=>{let e=c._readableState;if(l&&l.code==="ERR_STREAM_PREMATURE_CLOSE"&&e&&e.ended&&!e.errored&&!e.errorEmitted)c.once("end",M0).once("error",M0);else M0(l)}),W(U0,{readable:!1,writable:!0},M0)}J.exports={pipelineImpl:i,pipeline:N}}),fJ=S0((Q,J)=>{var{pipeline:$}=B4(),q=m2(),{destroyer:X}=s1(),{isNodeStream:Y,isReadable:G,isWritable:W,isWebStream:B,isTransformStream:V,isWritableStream:U,isReadableStream:M}=c2(),{AbortError:z,codes:{ERR_INVALID_ARG_VALUE:j,ERR_MISSING_ARGS:y}}=i0(),f=Q1();J.exports=function(...C){if(C.length===0)throw new y("streams");if(C.length===1)return q.from(C[0]);let P=[...C];if(typeof C[0]==="function")C[0]=q.from(C[0]);if(typeof C[C.length-1]==="function"){let D=C.length-1;C[D]=q.from(C[D])}for(let D=0;D<C.length;++D){if(!Y(C[D])&&!B(C[D]))continue;if(D<C.length-1&&!(G(C[D])||M(C[D])||V(C[D])))throw new j(`streams[${D}]`,P[D],"must be readable");if(D>0&&!(W(C[D])||U(C[D])||V(C[D])))throw new j(`streams[${D}]`,P[D],"must be writable")}let K,w,L,O,b;function k(D){let T=O;if(O=null,T)T(D);else if(D)b.destroy(D);else if(!R&&!v)b.destroy()}let d=C[0],S=$(C,k),v=!!(W(d)||U(d)||V(d)),R=!!(G(S)||M(S)||V(S));if(b=new q({writableObjectMode:!!(d!==null&&d!==void 0&&d.writableObjectMode),readableObjectMode:!!(S!==null&&S!==void 0&&S.readableObjectMode),writable:v,readable:R}),v){if(Y(d))b._write=function(T,_,Z){if(d.write(T,_))Z();else K=Z},b._final=function(T){d.end(),w=T},d.on("drain",function(){if(K){let T=K;K=null,T()}});else if(B(d)){let T=(V(d)?d.writable:d).getWriter();b._write=async function(_,Z,t){try{await T.ready,T.write(_).catch(()=>{}),t()}catch(q0){t(q0)}},b._final=async function(_){try{await T.ready,T.close().catch(()=>{}),w=_}catch(Z){_(Z)}}}let D=V(S)?S.readable:S;f(D,()=>{if(w){let T=w;w=null,T()}})}if(R){if(Y(S))S.on("readable",function(){if(L){let D=L;L=null,D()}}),S.on("end",function(){b.push(null)}),b._read=function(){while(!0){let D=S.read();if(D===null){L=b._read;return}if(!b.push(D))return}};else if(B(S)){let D=(V(S)?S.readable:S).getReader();b._read=async function(){while(!0)try{let{value:T,done:_}=await D.read();if(!b.push(T))return;if(_){b.push(null);return}}catch{return}}}}return b._destroy=function(D,T){if(!D&&O!==null)D=new z;if(L=null,K=null,w=null,O===null)T(D);else if(O=T,Y(S))X(S,D)},b}}),QB=S0((Q,J)=>{var $=globalThis.AbortController||c6().AbortController,{codes:{ERR_INVALID_ARG_VALUE:q,ERR_INVALID_ARG_TYPE:X,ERR_MISSING_ARGS:Y,ERR_OUT_OF_RANGE:G},AbortError:W}=i0(),{validateAbortSignal:B,validateInteger:V,validateObject:U}=u6(),M=T0().Symbol("kWeak"),z=T0().Symbol("kResistStopPropagation"),{finished:j}=Q1(),y=fJ(),{addAbortSignalNoValidate:f}=E8(),{isWritable:C,isNodeStream:P}=c2(),{deprecate:K}=s0(),{ArrayPrototypePush:w,Boolean:L,MathFloor:O,Number:b,NumberIsNaN:k,Promise:d,PromiseReject:S,PromiseResolve:v,PromisePrototypeThen:R,Symbol:D}=T0(),T=D("kEmpty"),_=D("kEof");function Z(p,l){if(l!=null)U(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)B(l.signal,"options.signal");if(P(p)&&!C(p))throw new q("stream",p,"must be writable");let e=y(this,p);if(l!==null&&l!==void 0&&l.signal)f(l.signal,e);return e}function t(p,l){if(typeof p!=="function")throw new X("fn",["Function","AsyncFunction"],p);if(l!=null)U(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)B(l.signal,"options.signal");let e=1;if((l===null||l===void 0?void 0:l.concurrency)!=null)e=O(l.concurrency);let w0=e-1;if((l===null||l===void 0?void 0:l.highWaterMark)!=null)w0=O(l.highWaterMark);return V(e,"options.concurrency",1),V(w0,"options.highWaterMark",0),w0+=e,async function*(){let L0=s0().AbortSignalAny([l===null||l===void 0?void 0:l.signal].filter(L)),A=this,E=[],m={signal:L0},s,$0,Q0=!1,I=0;function n(){Q0=!0,X0()}function X0(){I-=1,o()}function o(){if($0&&!Q0&&I<e&&E.length<w0)$0(),$0=null}async function j0(){try{for await(let v0 of A){if(Q0)return;if(L0.aborted)throw new W;try{if(v0=p(v0,m),v0===T)continue;v0=v(v0)}catch($2){v0=S($2)}if(I+=1,R(v0,X0,n),E.push(v0),s)s(),s=null;if(!Q0&&(E.length>=w0||I>=e))await new d(($2)=>{$0=$2})}E.push(_)}catch(v0){let $2=S(v0);R($2,X0,n),E.push($2)}finally{if(Q0=!0,s)s(),s=null}}j0();try{while(!0){while(E.length>0){let v0=await E[0];if(v0===_)return;if(L0.aborted)throw new W;if(v0!==T)yield v0;E.shift(),o()}await new d((v0)=>{s=v0})}}finally{if(Q0=!0,$0)$0(),$0=null}}.call(this)}function q0(p=void 0){if(p!=null)U(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)B(p.signal,"options.signal");return async function*(){let l=0;for await(let w0 of this){var e;if(p!==null&&p!==void 0&&(e=p.signal)!==null&&e!==void 0&&e.aborted)throw new W({cause:p.signal.reason});yield[l++,w0]}}.call(this)}async function V0(p,l=void 0){for await(let e of N.call(this,p,l))return!0;return!1}async function N0(p,l=void 0){if(typeof p!=="function")throw new X("fn",["Function","AsyncFunction"],p);return!await V0.call(this,async(...e)=>{return!await p(...e)},l)}async function u(p,l){for await(let e of N.call(this,p,l))return e;return}async function H0(p,l){if(typeof p!=="function")throw new X("fn",["Function","AsyncFunction"],p);async function e(w0,L0){return await p(w0,L0),T}for await(let w0 of t.call(this,e,l));}function N(p,l){if(typeof p!=="function")throw new X("fn",["Function","AsyncFunction"],p);async function e(w0,L0){if(await p(w0,L0))return w0;return T}return t.call(this,e,l)}class i extends Y{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function G0(p,l,e){var w0;if(typeof p!=="function")throw new X("reducer",["Function","AsyncFunction"],p);if(e!=null)U(e,"options");if((e===null||e===void 0?void 0:e.signal)!=null)B(e.signal,"options.signal");let L0=arguments.length>1;if(e!==null&&e!==void 0&&(w0=e.signal)!==null&&w0!==void 0&&w0.aborted){let $0=new W(void 0,{cause:e.signal.reason});throw this.once("error",()=>{}),await j(this.destroy($0)),$0}let A=new $,E=A.signal;if(e!==null&&e!==void 0&&e.signal){let $0={once:!0,[M]:this,[z]:!0};e.signal.addEventListener("abort",()=>A.abort(),$0)}let m=!1;try{for await(let $0 of this){var s;if(m=!0,e!==null&&e!==void 0&&(s=e.signal)!==null&&s!==void 0&&s.aborted)throw new W;if(!L0)l=$0,L0=!0;else l=await p(l,$0,{signal:E})}if(!m&&!L0)throw new i}finally{A.abort()}return l}async function c(p){if(p!=null)U(p,"options");if((p===null||p===void 0?void 0:p.signal)!=null)B(p.signal,"options.signal");let l=[];for await(let w0 of this){var e;if(p!==null&&p!==void 0&&(e=p.signal)!==null&&e!==void 0&&e.aborted)throw new W(void 0,{cause:p.signal.reason});w(l,w0)}return l}function U0(p,l){let e=t.call(this,p,l);return async function*(){for await(let w0 of e)yield*w0}.call(this)}function M0(p){if(p=b(p),k(p))return 0;if(p<0)throw new G("number",">= 0",p);return p}function R0(p,l=void 0){if(l!=null)U(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)B(l.signal,"options.signal");return p=M0(p),async function*(){var e;if(l!==null&&l!==void 0&&(e=l.signal)!==null&&e!==void 0&&e.aborted)throw new W;for await(let L0 of this){var w0;if(l!==null&&l!==void 0&&(w0=l.signal)!==null&&w0!==void 0&&w0.aborted)throw new W;if(p--<=0)yield L0}}.call(this)}function D0(p,l=void 0){if(l!=null)U(l,"options");if((l===null||l===void 0?void 0:l.signal)!=null)B(l.signal,"options.signal");return p=M0(p),async function*(){var e;if(l!==null&&l!==void 0&&(e=l.signal)!==null&&e!==void 0&&e.aborted)throw new W;for await(let L0 of this){var w0;if(l!==null&&l!==void 0&&(w0=l.signal)!==null&&w0!==void 0&&w0.aborted)throw new W;if(p-- >0)yield L0;if(p<=0)return}}.call(this)}J.exports.streamReturningOperators={asIndexedPairs:K(q0,"readable.asIndexedPairs will be removed in a future version."),drop:R0,filter:N,flatMap:U0,map:t,take:D0,compose:Z},J.exports.promiseReturningOperators={every:N0,forEach:H0,reduce:G0,toArray:c,some:V0,find:u}}),_J=S0((Q,J)=>{var{ArrayPrototypePop:$,Promise:q}=T0(),{isIterable:X,isNodeStream:Y,isWebStream:G}=c2(),{pipelineImpl:W}=B4(),{finished:B}=Q1();yJ();function V(...U){return new q((M,z)=>{let j,y,f=U[U.length-1];if(f&&typeof f==="object"&&!Y(f)&&!X(f)&&!G(f)){let C=$(U);j=C.signal,y=C.end}W(U,(C,P)=>{if(C)z(C);else M(P)},{signal:j,end:y})})}J.exports={finished:B,pipeline:V}}),yJ=S0((Q,J)=>{var{Buffer:$}=(h2(),Y2(b2)),{ObjectDefineProperty:q,ObjectKeys:X,ReflectApply:Y}=T0(),{promisify:{custom:G}}=s0(),{streamReturningOperators:W,promiseReturningOperators:B}=QB(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:V}}=i0(),U=fJ(),{setDefaultHighWaterMark:M,getDefaultHighWaterMark:z}=Z8(),{pipeline:j}=B4(),{destroyer:y}=s1(),f=Q1(),C=_J(),P=c2(),K=J.exports=W4().Stream;K.isDestroyed=P.isDestroyed,K.isDisturbed=P.isDisturbed,K.isErrored=P.isErrored,K.isReadable=P.isReadable,K.isWritable=P.isWritable,K.Readable=k8();for(let L of X(W)){let O=function(...k){if(new.target)throw V();return K.Readable.from(Y(b,this,k))},b=W[L];q(O,"name",{__proto__:null,value:b.name}),q(O,"length",{__proto__:null,value:b.length}),q(K.Readable.prototype,L,{__proto__:null,value:O,enumerable:!1,configurable:!0,writable:!0})}for(let L of X(B)){let O=function(...k){if(new.target)throw V();return Y(b,this,k)},b=B[L];q(O,"name",{__proto__:null,value:b.name}),q(O,"length",{__proto__:null,value:b.length}),q(K.Readable.prototype,L,{__proto__:null,value:O,enumerable:!1,configurable:!0,writable:!0})}K.Writable=V4(),K.Duplex=m2(),K.Transform=xJ(),K.PassThrough=gJ(),K.pipeline=j;var{addAbortSignal:w}=E8();K.addAbortSignal=w,K.finished=f,K.destroy=y,K.compose=U,K.setDefaultHighWaterMark=M,K.getDefaultHighWaterMark=z,q(K,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return C}}),q(j,G,{__proto__:null,enumerable:!0,get(){return C.pipeline}}),q(f,G,{__proto__:null,enumerable:!0,get(){return C.finished}}),K.Stream=K,K._isUint8Array=function(L){return L instanceof Uint8Array},K._uint8ArrayToBuffer=function(L){return $.from(L.buffer,L.byteOffset,L.byteLength)}}),JB=S0((Q,J)=>{var $=T8();{let q=yJ(),X=_J(),Y=q.Readable.destroy;J.exports=q.Readable,J.exports._uint8ArrayToBuffer=q._uint8ArrayToBuffer,J.exports._isUint8Array=q._isUint8Array,J.exports.isDisturbed=q.isDisturbed,J.exports.isErrored=q.isErrored,J.exports.isReadable=q.isReadable,J.exports.Readable=q.Readable,J.exports.Writable=q.Writable,J.exports.Duplex=q.Duplex,J.exports.Transform=q.Transform,J.exports.PassThrough=q.PassThrough,J.exports.addAbortSignal=q.addAbortSignal,J.exports.finished=q.finished,J.exports.destroy=q.destroy,J.exports.destroy=Y,J.exports.pipeline=q.pipeline,J.exports.compose=q.compose,Object.defineProperty(q,"promises",{configurable:!0,enumerable:!0,get(){return X}}),J.exports.Stream=q.Stream}J.exports.default=J.exports});bJ.exports=JB()});var u2=g((qB)=>{qB.base64=!0;qB.array=!0;qB.string=!0;qB.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u";qB.nodebuffer=typeof Buffer<"u";qB.uint8array=typeof Uint8Array<"u";if(typeof ArrayBuffer>"u")qB.blob=!1;else{x8=new ArrayBuffer(0);try{qB.blob=new Blob([x8],{type:"application/zip"}).size===0}catch(Q){try{K4=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,g8=new K4,g8.append(x8),qB.blob=g8.getBlob("application/zip").size===0}catch(J){qB.blob=!1}}}var x8,K4,g8;try{qB.nodestream=!!T8().Readable}catch(Q){qB.nodestream=!1}});var H4=g((HB)=>{var UB=x0(),KB=u2(),A2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";HB.encode=function(Q){var J=[],$,q,X,Y,G,W,B,V=0,U=Q.length,M=U,z=UB.getTypeOf(Q)!=="string";while(V<Q.length){if(M=U-V,!z)$=Q.charCodeAt(V++),q=V<U?Q.charCodeAt(V++):0,X=V<U?Q.charCodeAt(V++):0;else $=Q[V++],q=V<U?Q[V++]:0,X=V<U?Q[V++]:0;Y=$>>2,G=($&3)<<4|q>>4,W=M>1?(q&15)<<2|X>>6:64,B=M>2?X&63:64,J.push(A2.charAt(Y)+A2.charAt(G)+A2.charAt(W)+A2.charAt(B))}return J.join("")};HB.decode=function(Q){var J,$,q,X,Y,G,W,B=0,V=0,U="data:";if(Q.substr(0,U.length)===U)throw Error("Invalid base64 input, it looks like a data url.");Q=Q.replace(/[^A-Za-z0-9+/=]/g,"");var M=Q.length*3/4;if(Q.charAt(Q.length-1)===A2.charAt(64))M--;if(Q.charAt(Q.length-2)===A2.charAt(64))M--;if(M%1!==0)throw Error("Invalid base64 input, bad content length.");var z;if(KB.uint8array)z=new Uint8Array(M|0);else z=Array(M|0);while(B<Q.length){if(X=A2.indexOf(Q.charAt(B++)),Y=A2.indexOf(Q.charAt(B++)),G=A2.indexOf(Q.charAt(B++)),W=A2.indexOf(Q.charAt(B++)),J=X<<2|Y>>4,$=(Y&15)<<4|G>>2,q=(G&3)<<6|W,z[V++]=J,G!==64)z[V++]=$;if(W!==64)z[V++]=q}return z}});var p6=g((TN,hJ)=>{hJ.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 uJ=g((xN,cJ)=>{var mJ=global.MutationObserver||global.WebKitMutationObserver,l6;if(mJ)_8=0,j4=new mJ(f8),y8=global.document.createTextNode(""),j4.observe(y8,{characterData:!0}),l6=function(){y8.data=_8=++_8%2};else if(!global.setImmediate&&typeof global.MessageChannel<"u")b8=new global.MessageChannel,b8.port1.onmessage=f8,l6=function(){b8.port2.postMessage(0)};else if("document"in global&&"onreadystatechange"in global.document.createElement("script"))l6=function(){var Q=global.document.createElement("script");Q.onreadystatechange=function(){f8(),Q.onreadystatechange=null,Q.parentNode.removeChild(Q),Q=null},global.document.documentElement.appendChild(Q)};else l6=function(){setTimeout(f8,0)};var _8,j4,y8,b8,M4,d6=[];function f8(){M4=!0;var Q,J,$=d6.length;while($){J=d6,d6=[],Q=-1;while(++Q<$)J[Q]();$=d6.length}M4=!1}cJ.exports=FB;function FB(Q){if(d6.push(Q)===1&&!M4)l6()}});var oJ=g((gN,nJ)=>{var zB=uJ();function t1(){}var l0={},pJ=["REJECTED"],F4=["FULFILLED"],lJ=["PENDING"];nJ.exports=J1;function J1(Q){if(typeof Q!=="function")throw TypeError("resolver must be a function");if(this.state=lJ,this.queue=[],this.outcome=void 0,Q!==t1)dJ(this,Q)}J1.prototype.finally=function(Q){if(typeof Q!=="function")return this;var J=this.constructor;return this.then($,q);function $(X){function Y(){return X}return J.resolve(Q()).then(Y)}function q(X){function Y(){throw X}return J.resolve(Q()).then(Y)}};J1.prototype.catch=function(Q){return this.then(null,Q)};J1.prototype.then=function(Q,J){if(typeof Q!=="function"&&this.state===F4||typeof J!=="function"&&this.state===pJ)return this;var $=new this.constructor(t1);if(this.state!==lJ){var q=this.state===F4?Q:J;z4($,q,this.outcome)}else this.queue.push(new i6($,Q,J));return $};function i6(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}i6.prototype.callFulfilled=function(Q){l0.resolve(this.promise,Q)};i6.prototype.otherCallFulfilled=function(Q){z4(this.promise,this.onFulfilled,Q)};i6.prototype.callRejected=function(Q){l0.reject(this.promise,Q)};i6.prototype.otherCallRejected=function(Q){z4(this.promise,this.onRejected,Q)};function z4(Q,J,$){zB(function(){var q;try{q=J($)}catch(X){return l0.reject(Q,X)}if(q===Q)l0.reject(Q,TypeError("Cannot resolve promise with itself"));else l0.resolve(Q,q)})}l0.resolve=function(Q,J){var $=iJ(wB,J);if($.status==="error")return l0.reject(Q,$.value);var q=$.value;if(q)dJ(Q,q);else{Q.state=F4,Q.outcome=J;var X=-1,Y=Q.queue.length;while(++X<Y)Q.queue[X].callFulfilled(J)}return Q};l0.reject=function(Q,J){Q.state=pJ,Q.outcome=J;var $=-1,q=Q.queue.length;while(++$<q)Q.queue[$].callRejected(J);return Q};function wB(Q){var J=Q&&Q.then;if(Q&&(typeof Q==="object"||typeof Q==="function")&&typeof J==="function")return function(){J.apply(Q,arguments)}}function dJ(Q,J){var $=!1;function q(W){if($)return;$=!0,l0.reject(Q,W)}function X(W){if($)return;$=!0,l0.resolve(Q,W)}function Y(){J(X,q)}var G=iJ(Y);if(G.status==="error")q(G.value)}function iJ(Q,J){var $={};try{$.value=Q(J),$.status="success"}catch(q){$.status="error",$.value=q}return $}J1.resolve=LB;function LB(Q){if(Q instanceof this)return Q;return l0.resolve(new this(t1),Q)}J1.reject=NB;function NB(Q){var J=new this(t1);return l0.reject(J,Q)}J1.all=DB;function DB(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,q=!1;if(!$)return this.resolve([]);var X=Array($),Y=0,G=-1,W=new this(t1);while(++G<$)B(Q[G],G);return W;function B(V,U){J.resolve(V).then(M,function(z){if(!q)q=!0,l0.reject(W,z)});function M(z){if(X[U]=z,++Y===$&&!q)q=!0,l0.resolve(W,X)}}}J1.race=CB;function CB(Q){var J=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(TypeError("must be an array"));var $=Q.length,q=!1;if(!$)return this.resolve([]);var X=-1,Y=new this(t1);while(++X<$)G(Q[X]);return Y;function G(W){J.resolve(W).then(function(B){if(!q)q=!0,l0.resolve(Y,B)},function(B){if(!q)q=!0,l0.reject(Y,B)})}}});var e1=g((fN,rJ)=>{var w4=null;if(typeof Promise<"u")w4=Promise;else w4=oJ();rJ.exports={Promise:w4}});var sJ=g((aJ)=>{(function(Q,J){if(Q.setImmediate)return;var $=1,q={},X=!1,Y=Q.document,G;function W(K){if(typeof K!=="function")K=Function(""+K);var w=Array(arguments.length-1);for(var L=0;L<w.length;L++)w[L]=arguments[L+1];var O={callback:K,args:w};return q[$]=O,G($),$++}function B(K){delete q[K]}function V(K){var{callback:w,args:L}=K;switch(L.length){case 0:w();break;case 1:w(L[0]);break;case 2:w(L[0],L[1]);break;case 3:w(L[0],L[1],L[2]);break;default:w.apply(J,L);break}}function U(K){if(X)setTimeout(U,0,K);else{var w=q[K];if(w){X=!0;try{V(w)}finally{B(K),X=!1}}}}function M(){G=function(K){process.nextTick(function(){U(K)})}}function z(){if(Q.postMessage&&!Q.importScripts){var K=!0,w=Q.onmessage;return Q.onmessage=function(){K=!1},Q.postMessage("","*"),Q.onmessage=w,K}}function j(){var K="setImmediate$"+Math.random()+"$",w=function(L){if(L.source===Q&&typeof L.data==="string"&&L.data.indexOf(K)===0)U(+L.data.slice(K.length))};if(Q.addEventListener)Q.addEventListener("message",w,!1);else Q.attachEvent("onmessage",w);G=function(L){Q.postMessage(K+L,"*")}}function y(){var K=new MessageChannel;K.port1.onmessage=function(w){var L=w.data;U(L)},G=function(w){K.port2.postMessage(w)}}function f(){var K=Y.documentElement;G=function(w){var L=Y.createElement("script");L.onreadystatechange=function(){U(w),L.onreadystatechange=null,K.removeChild(L),L=null},K.appendChild(L)}}function C(){G=function(K){setTimeout(U,0,K)}}var P=Object.getPrototypeOf&&Object.getPrototypeOf(Q);if(P=P&&P.setTimeout?P:Q,{}.toString.call(Q.process)==="[object process]")M();else if(z())j();else if(Q.MessageChannel)y();else if(Y&&"onreadystatechange"in Y.createElement("script"))f();else C();P.setImmediate=W,P.clearImmediate=B})(typeof self>"u"?typeof global>"u"?aJ:global:self)});var x0=g((RB)=>{var $1=u2(),OB=H4(),Q6=p6(),L4=e1();sJ();function PB(Q){var J=null;if($1.uint8array)J=new Uint8Array(Q.length);else J=Array(Q.length);return m8(Q,J)}RB.newBlob=function(Q,J){RB.checkSupport("blob");try{return new Blob([Q],{type:J})}catch(X){try{var $=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,q=new $;return q.append(Q),q.getBlob(J)}catch(Y){throw Error("Bug : can't construct the Blob.")}}};function n6(Q){return Q}function m8(Q,J){for(var $=0;$<Q.length;++$)J[$]=Q.charCodeAt($)&255;return J}var h8={stringifyByChunk:function(Q,J,$){var q=[],X=0,Y=Q.length;if(Y<=$)return String.fromCharCode.apply(null,Q);while(X<Y){if(J==="array"||J==="nodebuffer")q.push(String.fromCharCode.apply(null,Q.slice(X,Math.min(X+$,Y))));else q.push(String.fromCharCode.apply(null,Q.subarray(X,Math.min(X+$,Y))));X+=$}return q.join("")},stringifyByChar:function(Q){var J="";for(var $=0;$<Q.length;$++)J+=String.fromCharCode(Q[$]);return J},applyCanBeUsed:{uint8array:function(){try{return $1.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(Q){return!1}}(),nodebuffer:function(){try{return $1.nodebuffer&&String.fromCharCode.apply(null,Q6.allocBuffer(1)).length===1}catch(Q){return!1}}()}};function o6(Q){var J=65536,$=RB.getTypeOf(Q),q=!0;if($==="uint8array")q=h8.applyCanBeUsed.uint8array;else if($==="nodebuffer")q=h8.applyCanBeUsed.nodebuffer;if(q)while(J>1)try{return h8.stringifyByChunk(Q,$,J)}catch(X){J=Math.floor(J/2)}return h8.stringifyByChar(Q)}RB.applyFromCharCode=o6;function c8(Q,J){for(var $=0;$<Q.length;$++)J[$]=Q[$];return J}var q1={};q1.string={string:n6,array:function(Q){return m8(Q,Array(Q.length))},arraybuffer:function(Q){return q1.string.uint8array(Q).buffer},uint8array:function(Q){return m8(Q,new Uint8Array(Q.length))},nodebuffer:function(Q){return m8(Q,Q6.allocBuffer(Q.length))}};q1.array={string:o6,array:n6,arraybuffer:function(Q){return new Uint8Array(Q).buffer},uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return Q6.newBufferFrom(Q)}};q1.arraybuffer={string:function(Q){return o6(new Uint8Array(Q))},array:function(Q){return c8(new Uint8Array(Q),Array(Q.byteLength))},arraybuffer:n6,uint8array:function(Q){return new Uint8Array(Q)},nodebuffer:function(Q){return Q6.newBufferFrom(new Uint8Array(Q))}};q1.uint8array={string:o6,array:function(Q){return c8(Q,Array(Q.length))},arraybuffer:function(Q){return Q.buffer},uint8array:n6,nodebuffer:function(Q){return Q6.newBufferFrom(Q)}};q1.nodebuffer={string:o6,array:function(Q){return c8(Q,Array(Q.length))},arraybuffer:function(Q){return q1.nodebuffer.uint8array(Q).buffer},uint8array:function(Q){return c8(Q,new Uint8Array(Q.length))},nodebuffer:n6};RB.transformTo=function(Q,J){if(!J)J="";if(!Q)return J;RB.checkSupport(Q);var $=RB.getTypeOf(J),q=q1[$][Q](J);return q};RB.resolve=function(Q){var J=Q.split("/"),$=[];for(var q=0;q<J.length;q++){var X=J[q];if(X==="."||X===""&&q!==0&&q!==J.length-1)continue;else if(X==="..")$.pop();else $.push(X)}return $.join("/")};RB.getTypeOf=function(Q){if(typeof Q==="string")return"string";if(Object.prototype.toString.call(Q)==="[object Array]")return"array";if($1.nodebuffer&&Q6.isBuffer(Q))return"nodebuffer";if($1.uint8array&&Q instanceof Uint8Array)return"uint8array";if($1.arraybuffer&&Q instanceof ArrayBuffer)return"arraybuffer"};RB.checkSupport=function(Q){var J=$1[Q.toLowerCase()];if(!J)throw Error(Q+" is not supported by this platform")};RB.MAX_VALUE_16BITS=65535;RB.MAX_VALUE_32BITS=-1;RB.pretty=function(Q){var J="",$,q;for(q=0;q<(Q||"").length;q++)$=Q.charCodeAt(q),J+="\\x"+($<16?"0":"")+$.toString(16).toUpperCase();return J};RB.delay=function(Q,J,$){setImmediate(function(){Q.apply($||null,J||[])})};RB.inherits=function(Q,J){var $=function(){};$.prototype=J.prototype,Q.prototype=new $};RB.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};RB.prepareContent=function(Q,J,$,q,X){var Y=L4.Promise.resolve(J).then(function(G){var W=$1.blob&&(G instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(G))!==-1);if(W&&typeof FileReader<"u")return new L4.Promise(function(B,V){var U=new FileReader;U.onload=function(M){B(M.target.result)},U.onerror=function(M){V(M.target.error)},U.readAsArrayBuffer(G)});else return G});return Y.then(function(G){var W=RB.getTypeOf(G);if(!W)return L4.Promise.reject(Error("Can't read the data of '"+Q+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));if(W==="arraybuffer")G=RB.transformTo("uint8array",G);else if(W==="string"){if(X)G=OB.decode(G);else if($){if(q!==!0)G=PB(G)}}return G})}});var Q2=g((bN,J$)=>{function Q$(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}Q$.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}};J$.exports=Q$});var $6=g((hB)=>{var J6=x0(),v1=u2(),fB=p6(),u8=Q2(),r6=Array(256);for(I2=0;I2<256;I2++)r6[I2]=I2>=252?6:I2>=248?5:I2>=240?4:I2>=224?3:I2>=192?2:1;var I2;r6[254]=r6[254]=1;var _B=function(Q){var J,$,q,X,Y,G=Q.length,W=0;for(X=0;X<G;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<G){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}W+=$<128?1:$<2048?2:$<65536?3:4}if(v1.uint8array)J=new Uint8Array(W);else J=Array(W);for(Y=0,X=0;Y<W;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<G){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}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},yB=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 $+r6[Q[$]]>J?$:J},bB=function(Q){var J,$,q,X,Y=Q.length,G=Array(Y*2);for($=0,J=0;J<Y;){if(q=Q[J++],q<128){G[$++]=q;continue}if(X=r6[q],X>4){G[$++]=65533,J+=X-1;continue}q&=X===2?31:X===3?15:7;while(X>1&&J<Y)q=q<<6|Q[J++]&63,X--;if(X>1){G[$++]=65533;continue}if(q<65536)G[$++]=q;else q-=65536,G[$++]=55296|q>>10&1023,G[$++]=56320|q&1023}if(G.length!==$)if(G.subarray)G=G.subarray(0,$);else G.length=$;return J6.applyFromCharCode(G)};hB.utf8encode=function(J){if(v1.nodebuffer)return fB.newBufferFrom(J,"utf-8");return _B(J)};hB.utf8decode=function(J){if(v1.nodebuffer)return J6.transformTo("nodebuffer",J).toString("utf-8");return J=J6.transformTo(v1.uint8array?"uint8array":"array",J),bB(J)};function p8(){u8.call(this,"utf-8 decode"),this.leftOver=null}J6.inherits(p8,u8);p8.prototype.processChunk=function(Q){var J=J6.transformTo(v1.uint8array?"uint8array":"array",Q.data);if(this.leftOver&&this.leftOver.length){if(v1.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 q=yB(J),X=J;if(q!==J.length)if(v1.uint8array)X=J.subarray(0,q),this.leftOver=J.subarray(q,J.length);else X=J.slice(0,q),this.leftOver=J.slice(q,J.length);this.push({data:hB.utf8decode(X),meta:Q.meta})};p8.prototype.flush=function(){if(this.leftOver&&this.leftOver.length)this.push({data:hB.utf8decode(this.leftOver),meta:{}}),this.leftOver=null};hB.Utf8DecodeWorker=p8;function D4(){u8.call(this,"utf-8 encode")}J6.inherits(D4,u8);D4.prototype.processChunk=function(Q){this.push({data:hB.utf8encode(Q.data),meta:Q.meta})};hB.Utf8EncodeWorker=D4});var G$=g((mN,Y$)=>{var q$=Q2(),X$=x0();function O4(Q){q$.call(this,"ConvertWorker to "+Q),this.destType=Q}X$.inherits(O4,q$);O4.prototype.processChunk=function(Q){this.push({data:X$.transformTo(this.destType,Q.data),meta:Q.meta})};Y$.exports=O4});var B$=g((cN,V$)=>{var W$=T8().Readable,uB=x0();uB.inherits(P4,W$);function P4(Q,J,$){W$.call(this,J),this._helper=Q;var q=this;Q.on("data",function(X,Y){if(!q.push(X))q._helper.pause();if($)$(Y)}).on("error",function(X){q.emit("error",X)}).on("end",function(){q.push(null)})}P4.prototype._read=function(){this._helper.resume()};V$.exports=P4});var R4=g((uN,H$)=>{var E1=x0(),pB=G$(),lB=Q2(),dB=H4(),iB=u2(),nB=e1(),U$=null;if(iB.nodestream)try{U$=B$()}catch(Q){}function oB(Q,J,$){switch(Q){case"blob":return E1.newBlob(E1.transformTo("arraybuffer",J),$);case"base64":return dB.encode(J);default:return E1.transformTo(Q,J)}}function rB(Q,J){var $,q=0,X=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":X=new Uint8Array(Y);for($=0;$<J.length;$++)X.set(J[$],q),q+=J[$].length;return X;case"nodebuffer":return Buffer.concat(J);default:throw Error("concat : unsupported type '"+Q+"'")}}function aB(Q,J){return new nB.Promise(function($,q){var X=[],Y=Q._internalType,G=Q._outputType,W=Q._mimeType;Q.on("data",function(B,V){if(X.push(B),J)J(V)}).on("error",function(B){X=[],q(B)}).on("end",function(){try{var B=oB(G,rB(Y,X),W);$(B)}catch(V){q(V)}X=[]}).resume()})}function K$(Q,J,$){var q=J;switch(J){case"blob":case"arraybuffer":q="uint8array";break;case"base64":q="string";break}try{this._internalType=q,this._outputType=J,this._mimeType=$,E1.checkSupport(q),this._worker=Q.pipe(new pB(q)),Q.lock()}catch(X){this._worker=new lB("error"),this._worker.error(X)}}K$.prototype={accumulate:function(Q){return aB(this,Q)},on:function(Q,J){var $=this;if(Q==="data")this._worker.on(Q,function(q){J.call($,q.data,q.meta)});else this._worker.on(Q,function(){E1.delay(J,arguments,$)});return this},resume:function(){return E1.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(Q){if(E1.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw Error(this._outputType+" is not supported by this method");return new U$(this,{objectMode:this._outputType!=="nodebuffer"},Q)}};H$.exports=K$});var A4=g((sB)=>{sB.base64=!1;sB.binary=!1;sB.dir=!1;sB.createFolders=!0;sB.date=null;sB.compression=null;sB.compressionOptions=null;sB.comment=null;sB.unixPermissions=null;sB.dosPermissions=null});var I4=g((lN,j$)=>{var l8=x0(),d8=Q2(),VU=16384;function q6(Q){d8.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=l8.getTypeOf($),!J.isPaused)J._tickAndRepeat()},function($){J.error($)})}l8.inherits(q6,d8);q6.prototype.cleanUp=function(){d8.prototype.cleanUp.call(this),this.data=null};q6.prototype.resume=function(){if(!d8.prototype.resume.call(this))return!1;if(!this._tickScheduled&&this.dataIsReady)this._tickScheduled=!0,l8.delay(this._tickAndRepeat,[],this);return!0};q6.prototype._tickAndRepeat=function(){if(this._tickScheduled=!1,this.isPaused||this.isFinished)return;if(this._tick(),!this.isFinished)l8.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0};q6.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var Q=VU,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}})}};j$.exports=q6});var i8=g((dN,F$)=>{var BU=x0();function UU(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var q=0;q<8;q++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var M$=UU();function KU(Q,J,$,q){var X=M$,Y=q+$;Q=Q^-1;for(var G=q;G<Y;G++)Q=Q>>>8^X[(Q^J[G])&255];return Q^-1}function HU(Q,J,$,q){var X=M$,Y=q+$;Q=Q^-1;for(var G=q;G<Y;G++)Q=Q>>>8^X[(Q^J.charCodeAt(G))&255];return Q^-1}F$.exports=function(J,$){if(typeof J>"u"||!J.length)return 0;var q=BU.getTypeOf(J)!=="string";if(q)return KU($|0,J,J.length,0);else return HU($|0,J,J.length,0)}});var v4=g((iN,w$)=>{var z$=Q2(),jU=i8(),MU=x0();function S4(){z$.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}MU.inherits(S4,z$);S4.prototype.processChunk=function(Q){this.streamInfo.crc32=jU(Q.data,this.streamInfo.crc32||0),this.push(Q)};w$.exports=S4});var N$=g((nN,L$)=>{var FU=x0(),E4=Q2();function Z4(Q){E4.call(this,"DataLengthProbe for "+Q),this.propName=Q,this.withStreamInfo(Q,0)}FU.inherits(Z4,E4);Z4.prototype.processChunk=function(Q){if(Q){var J=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=J+Q.data.length}E4.prototype.processChunk.call(this,Q)};L$.exports=Z4});var n8=g((oN,O$)=>{var D$=e1(),C$=I4(),zU=v4(),k4=N$();function T4(Q,J,$,q,X){this.compressedSize=Q,this.uncompressedSize=J,this.crc32=$,this.compression=q,this.compressedContent=X}T4.prototype={getContentWorker:function(){var Q=new C$(D$.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new k4("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 C$(D$.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}};T4.createWorkerFrom=function(Q,J,$){return Q.pipe(new zU).pipe(new k4("uncompressedSize")).pipe(J.compressWorker($)).pipe(new k4("compressedSize")).withStreamInfo("compression",J)};O$.exports=T4});var I$=g((rN,A$)=>{var wU=R4(),LU=I4(),x4=$6(),g4=n8(),P$=Q2(),f4=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}};f4.prototype={internalStream:function(Q){var J=null,$="string";try{if(!Q)throw Error("No output type specified.");$=Q.toLowerCase();var q=$==="string"||$==="text";if($==="binarystring"||$==="text")$="string";J=this._decompressWorker();var X=!this._dataBinary;if(X&&!q)J=J.pipe(new x4.Utf8EncodeWorker);if(!X&&q)J=J.pipe(new x4.Utf8DecodeWorker)}catch(Y){J=new P$("error"),J.error(Y)}return new wU(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 g4&&this._data.compression.magic===Q.magic)return this._data.getCompressedWorker();else{var $=this._decompressWorker();if(!this._dataBinary)$=$.pipe(new x4.Utf8EncodeWorker);return g4.createWorkerFrom($,Q,J)}},_decompressWorker:function(){if(this._data instanceof g4)return this._data.getContentWorker();else if(this._data instanceof P$)return this._data;else return new LU(this._data)}};var R$=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],NU=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")};for(a6=0;a6<R$.length;a6++)f4.prototype[R$[a6]]=NU;var a6;A$.exports=f4});var p2=g((_4)=>{var PU=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function RU(Q,J){return Object.prototype.hasOwnProperty.call(Q,J)}_4.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 q in $)if(RU($,q))Q[q]=$[q]}return Q};_4.shrinkBuf=function(Q,J){if(Q.length===J)return Q;if(Q.subarray)return Q.subarray(0,J);return Q.length=J,Q};var AU={arraySet:function(Q,J,$,q,X){if(J.subarray&&Q.subarray){Q.set(J.subarray($,$+q),X);return}for(var Y=0;Y<q;Y++)Q[X+Y]=J[$+Y]},flattenChunks:function(Q){var J,$,q,X,Y,G;q=0;for(J=0,$=Q.length;J<$;J++)q+=Q[J].length;G=new Uint8Array(q),X=0;for(J=0,$=Q.length;J<$;J++)Y=Q[J],G.set(Y,X),X+=Y.length;return G}},IU={arraySet:function(Q,J,$,q,X){for(var Y=0;Y<q;Y++)Q[X+Y]=J[$+Y]},flattenChunks:function(Q){return[].concat.apply([],Q)}};_4.setTyped=function(Q){if(Q)_4.Buf8=Uint8Array,_4.Buf16=Uint16Array,_4.Buf32=Int32Array,_4.assign(_4,AU);else _4.Buf8=Array,_4.Buf16=Array,_4.Buf32=Array,_4.assign(_4,IU)};_4.setTyped(PU)});var a$=g((rU)=>{var vU=p2(),EU=4,v$=0,E$=1,ZU=2;function Y6(Q){var J=Q.length;while(--J>=0)Q[J]=0}var kU=0,f$=1,TU=2,xU=3,gU=258,l4=29,$8=256,t6=$8+1+l4,X6=30,d4=19,_$=2*t6+1,Z1=15,b4=16,fU=7,i4=256,y$=16,b$=17,h$=18,u4=[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],o8=[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],_U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],m$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],yU=512,l2=Array((t6+2)*2);Y6(l2);var s6=Array(X6*2);Y6(s6);var e6=Array(yU);Y6(e6);var Q8=Array(gU-xU+1);Y6(Q8);var n4=Array(l4);Y6(n4);var r8=Array(X6);Y6(r8);function h4(Q,J,$,q,X){this.static_tree=Q,this.extra_bits=J,this.extra_base=$,this.elems=q,this.max_length=X,this.has_stree=Q&&Q.length}var c$,u$,p$;function m4(Q,J){this.dyn_tree=Q,this.max_code=0,this.stat_desc=J}function l$(Q){return Q<256?e6[Q]:e6[256+(Q>>>7)]}function J8(Q,J){Q.pending_buf[Q.pending++]=J&255,Q.pending_buf[Q.pending++]=J>>>8&255}function t0(Q,J,$){if(Q.bi_valid>b4-$)Q.bi_buf|=J<<Q.bi_valid&65535,J8(Q,Q.bi_buf),Q.bi_buf=J>>b4-Q.bi_valid,Q.bi_valid+=$-b4;else Q.bi_buf|=J<<Q.bi_valid&65535,Q.bi_valid+=$}function S2(Q,J,$){t0(Q,$[J*2],$[J*2+1])}function d$(Q,J){var $=0;do $|=Q&1,Q>>>=1,$<<=1;while(--J>0);return $>>>1}function bU(Q){if(Q.bi_valid===16)J8(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 hU(Q,J){var{dyn_tree:$,max_code:q}=J,X=J.stat_desc.static_tree,Y=J.stat_desc.has_stree,G=J.stat_desc.extra_bits,W=J.stat_desc.extra_base,B=J.stat_desc.max_length,V,U,M,z,j,y,f=0;for(z=0;z<=Z1;z++)Q.bl_count[z]=0;$[Q.heap[Q.heap_max]*2+1]=0;for(V=Q.heap_max+1;V<_$;V++){if(U=Q.heap[V],z=$[$[U*2+1]*2+1]+1,z>B)z=B,f++;if($[U*2+1]=z,U>q)continue;if(Q.bl_count[z]++,j=0,U>=W)j=G[U-W];if(y=$[U*2],Q.opt_len+=y*(z+j),Y)Q.static_len+=y*(X[U*2+1]+j)}if(f===0)return;do{z=B-1;while(Q.bl_count[z]===0)z--;Q.bl_count[z]--,Q.bl_count[z+1]+=2,Q.bl_count[B]--,f-=2}while(f>0);for(z=B;z!==0;z--){U=Q.bl_count[z];while(U!==0){if(M=Q.heap[--V],M>q)continue;if($[M*2+1]!==z)Q.opt_len+=(z-$[M*2+1])*$[M*2],$[M*2+1]=z;U--}}}function i$(Q,J,$){var q=Array(Z1+1),X=0,Y,G;for(Y=1;Y<=Z1;Y++)q[Y]=X=X+$[Y-1]<<1;for(G=0;G<=J;G++){var W=Q[G*2+1];if(W===0)continue;Q[G*2]=d$(q[W]++,W)}}function mU(){var Q,J,$,q,X,Y=Array(Z1+1);$=0;for(q=0;q<l4-1;q++){n4[q]=$;for(Q=0;Q<1<<u4[q];Q++)Q8[$++]=q}Q8[$-1]=q,X=0;for(q=0;q<16;q++){r8[q]=X;for(Q=0;Q<1<<o8[q];Q++)e6[X++]=q}X>>=7;for(;q<X6;q++){r8[q]=X<<7;for(Q=0;Q<1<<o8[q]-7;Q++)e6[256+X++]=q}for(J=0;J<=Z1;J++)Y[J]=0;Q=0;while(Q<=143)l2[Q*2+1]=8,Q++,Y[8]++;while(Q<=255)l2[Q*2+1]=9,Q++,Y[9]++;while(Q<=279)l2[Q*2+1]=7,Q++,Y[7]++;while(Q<=287)l2[Q*2+1]=8,Q++,Y[8]++;i$(l2,t6+1,Y);for(Q=0;Q<X6;Q++)s6[Q*2+1]=5,s6[Q*2]=d$(Q,5);c$=new h4(l2,u4,$8+1,t6,Z1),u$=new h4(s6,o8,0,X6,Z1),p$=new h4([],_U,0,d4,fU)}function n$(Q){var J;for(J=0;J<t6;J++)Q.dyn_ltree[J*2]=0;for(J=0;J<X6;J++)Q.dyn_dtree[J*2]=0;for(J=0;J<d4;J++)Q.bl_tree[J*2]=0;Q.dyn_ltree[i4*2]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function o$(Q){if(Q.bi_valid>8)J8(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 cU(Q,J,$,q){if(o$(Q),q)J8(Q,$),J8(Q,~$);vU.arraySet(Q.pending_buf,Q.window,J,$,Q.pending),Q.pending+=$}function Z$(Q,J,$,q){var X=J*2,Y=$*2;return Q[X]<Q[Y]||Q[X]===Q[Y]&&q[J]<=q[$]}function c4(Q,J,$){var q=Q.heap[$],X=$<<1;while(X<=Q.heap_len){if(X<Q.heap_len&&Z$(J,Q.heap[X+1],Q.heap[X],Q.depth))X++;if(Z$(J,q,Q.heap[X],Q.depth))break;Q.heap[$]=Q.heap[X],$=X,X<<=1}Q.heap[$]=q}function k$(Q,J,$){var q,X,Y=0,G,W;if(Q.last_lit!==0)do if(q=Q.pending_buf[Q.d_buf+Y*2]<<8|Q.pending_buf[Q.d_buf+Y*2+1],X=Q.pending_buf[Q.l_buf+Y],Y++,q===0)S2(Q,X,J);else{if(G=Q8[X],S2(Q,G+$8+1,J),W=u4[G],W!==0)X-=n4[G],t0(Q,X,W);if(q--,G=l$(q),S2(Q,G,$),W=o8[G],W!==0)q-=r8[G],t0(Q,q,W)}while(Y<Q.last_lit);S2(Q,i4,J)}function p4(Q,J){var $=J.dyn_tree,q=J.stat_desc.static_tree,X=J.stat_desc.has_stree,Y=J.stat_desc.elems,G,W,B=-1,V;Q.heap_len=0,Q.heap_max=_$;for(G=0;G<Y;G++)if($[G*2]!==0)Q.heap[++Q.heap_len]=B=G,Q.depth[G]=0;else $[G*2+1]=0;while(Q.heap_len<2)if(V=Q.heap[++Q.heap_len]=B<2?++B:0,$[V*2]=1,Q.depth[V]=0,Q.opt_len--,X)Q.static_len-=q[V*2+1];J.max_code=B;for(G=Q.heap_len>>1;G>=1;G--)c4(Q,$,G);V=Y;do G=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],c4(Q,$,1),W=Q.heap[1],Q.heap[--Q.heap_max]=G,Q.heap[--Q.heap_max]=W,$[V*2]=$[G*2]+$[W*2],Q.depth[V]=(Q.depth[G]>=Q.depth[W]?Q.depth[G]:Q.depth[W])+1,$[G*2+1]=$[W*2+1]=V,Q.heap[1]=V++,c4(Q,$,1);while(Q.heap_len>=2);Q.heap[--Q.heap_max]=Q.heap[1],hU(Q,J),i$($,B,Q.bl_count)}function T$(Q,J,$){var q,X=-1,Y,G=J[1],W=0,B=7,V=4;if(G===0)B=138,V=3;J[($+1)*2+1]=65535;for(q=0;q<=$;q++){if(Y=G,G=J[(q+1)*2+1],++W<B&&Y===G)continue;else if(W<V)Q.bl_tree[Y*2]+=W;else if(Y!==0){if(Y!==X)Q.bl_tree[Y*2]++;Q.bl_tree[y$*2]++}else if(W<=10)Q.bl_tree[b$*2]++;else Q.bl_tree[h$*2]++;if(W=0,X=Y,G===0)B=138,V=3;else if(Y===G)B=6,V=3;else B=7,V=4}}function x$(Q,J,$){var q,X=-1,Y,G=J[1],W=0,B=7,V=4;if(G===0)B=138,V=3;for(q=0;q<=$;q++){if(Y=G,G=J[(q+1)*2+1],++W<B&&Y===G)continue;else if(W<V)do S2(Q,Y,Q.bl_tree);while(--W!==0);else if(Y!==0){if(Y!==X)S2(Q,Y,Q.bl_tree),W--;S2(Q,y$,Q.bl_tree),t0(Q,W-3,2)}else if(W<=10)S2(Q,b$,Q.bl_tree),t0(Q,W-3,3);else S2(Q,h$,Q.bl_tree),t0(Q,W-11,7);if(W=0,X=Y,G===0)B=138,V=3;else if(Y===G)B=6,V=3;else B=7,V=4}}function uU(Q){var J;T$(Q,Q.dyn_ltree,Q.l_desc.max_code),T$(Q,Q.dyn_dtree,Q.d_desc.max_code),p4(Q,Q.bl_desc);for(J=d4-1;J>=3;J--)if(Q.bl_tree[m$[J]*2+1]!==0)break;return Q.opt_len+=3*(J+1)+5+5+4,J}function pU(Q,J,$,q){var X;t0(Q,J-257,5),t0(Q,$-1,5),t0(Q,q-4,4);for(X=0;X<q;X++)t0(Q,Q.bl_tree[m$[X]*2+1],3);x$(Q,Q.dyn_ltree,J-1),x$(Q,Q.dyn_dtree,$-1)}function lU(Q){var J=4093624447,$;for($=0;$<=31;$++,J>>>=1)if(J&1&&Q.dyn_ltree[$*2]!==0)return v$;if(Q.dyn_ltree[18]!==0||Q.dyn_ltree[20]!==0||Q.dyn_ltree[26]!==0)return E$;for($=32;$<$8;$++)if(Q.dyn_ltree[$*2]!==0)return E$;return v$}var g$=!1;function dU(Q){if(!g$)mU(),g$=!0;Q.l_desc=new m4(Q.dyn_ltree,c$),Q.d_desc=new m4(Q.dyn_dtree,u$),Q.bl_desc=new m4(Q.bl_tree,p$),Q.bi_buf=0,Q.bi_valid=0,n$(Q)}function r$(Q,J,$,q){t0(Q,(kU<<1)+(q?1:0),3),cU(Q,J,$,!0)}function iU(Q){t0(Q,f$<<1,3),S2(Q,i4,l2),bU(Q)}function nU(Q,J,$,q){var X,Y,G=0;if(Q.level>0){if(Q.strm.data_type===ZU)Q.strm.data_type=lU(Q);if(p4(Q,Q.l_desc),p4(Q,Q.d_desc),G=uU(Q),X=Q.opt_len+3+7>>>3,Y=Q.static_len+3+7>>>3,Y<=X)X=Y}else X=Y=$+5;if($+4<=X&&J!==-1)r$(Q,J,$,q);else if(Q.strategy===EU||Y===X)t0(Q,(f$<<1)+(q?1:0),3),k$(Q,l2,s6);else t0(Q,(TU<<1)+(q?1:0),3),pU(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,G+1),k$(Q,Q.dyn_ltree,Q.dyn_dtree);if(n$(Q),q)o$(Q)}function oU(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[(Q8[$]+$8+1)*2]++,Q.dyn_dtree[l$(J)*2]++;return Q.last_lit===Q.lit_bufsize-1}rU._tr_init=dU;rU._tr_stored_block=r$;rU._tr_flush_block=nU;rU._tr_tally=oU;rU._tr_align=iU});var o4=g((tN,s$)=>{function JK(Q,J,$,q){var X=Q&65535|0,Y=Q>>>16&65535|0,G=0;while($!==0){G=$>2000?2000:$,$-=G;do X=X+J[q++]|0,Y=Y+X|0;while(--G);X%=65521,Y%=65521}return X|Y<<16|0}s$.exports=JK});var r4=g((eN,t$)=>{function $K(){var Q,J=[];for(var $=0;$<256;$++){Q=$;for(var q=0;q<8;q++)Q=Q&1?3988292384^Q>>>1:Q>>>1;J[$]=Q}return J}var qK=$K();function XK(Q,J,$,q){var X=qK,Y=q+$;Q^=-1;for(var G=q;G<Y;G++)Q=Q>>>8^X[(Q^J[G])&255];return Q^-1}t$.exports=XK});var a8=g((QD,e$)=>{e$.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 Vq=g((yK)=>{var n0=p2(),W2=a$(),qq=o4(),X1=r4(),YK=a8(),g1=0,GK=1,WK=3,B1=4,Qq=5,E2=0,Jq=1,V2=-2,VK=-3,a4=-5,BK=-1,UK=1,s8=2,KK=3,HK=4,jK=0,MK=2,J5=8,FK=9,zK=15,wK=8,LK=29,NK=256,t4=NK+1+LK,DK=30,CK=19,OK=2*t4+1,PK=15,A0=3,W1=258,j2=W1+A0+1,RK=32,$5=42,e4=69,t8=73,e8=91,Q5=103,k1=113,X8=666,y0=1,Y8=2,T1=3,V6=4,AK=3;function V1(Q,J){return Q.msg=YK[J],J}function $q(Q){return(Q<<1)-(Q>4?9:0)}function G1(Q){var J=Q.length;while(--J>=0)Q[J]=0}function Y1(Q){var J=Q.state,$=J.pending;if($>Q.avail_out)$=Q.avail_out;if($===0)return;if(n0.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 h0(Q,J){W2._tr_flush_block(Q,Q.block_start>=0?Q.block_start:-1,Q.strstart-Q.block_start,J),Q.block_start=Q.strstart,Y1(Q.strm)}function I0(Q,J){Q.pending_buf[Q.pending++]=J}function q8(Q,J){Q.pending_buf[Q.pending++]=J>>>8&255,Q.pending_buf[Q.pending++]=J&255}function IK(Q,J,$,q){var X=Q.avail_in;if(X>q)X=q;if(X===0)return 0;if(Q.avail_in-=X,n0.arraySet(J,Q.input,Q.next_in,X,$),Q.state.wrap===1)Q.adler=qq(Q.adler,J,X,$);else if(Q.state.wrap===2)Q.adler=X1(Q.adler,J,X,$);return Q.next_in+=X,Q.total_in+=X,X}function Xq(Q,J){var{max_chain_length:$,strstart:q}=Q,X,Y,G=Q.prev_length,W=Q.nice_match,B=Q.strstart>Q.w_size-j2?Q.strstart-(Q.w_size-j2):0,V=Q.window,U=Q.w_mask,M=Q.prev,z=Q.strstart+W1,j=V[q+G-1],y=V[q+G];if(Q.prev_length>=Q.good_match)$>>=2;if(W>Q.lookahead)W=Q.lookahead;do{if(X=J,V[X+G]!==y||V[X+G-1]!==j||V[X]!==V[q]||V[++X]!==V[q+1])continue;q+=2,X++;do;while(V[++q]===V[++X]&&V[++q]===V[++X]&&V[++q]===V[++X]&&V[++q]===V[++X]&&V[++q]===V[++X]&&V[++q]===V[++X]&&V[++q]===V[++X]&&V[++q]===V[++X]&&q<z);if(Y=W1-(z-q),q=z-W1,Y>G){if(Q.match_start=J,G=Y,Y>=W)break;j=V[q+G-1],y=V[q+G]}}while((J=M[J&U])>B&&--$!==0);if(G<=Q.lookahead)return G;return Q.lookahead}function x1(Q){var J=Q.w_size,$,q,X,Y,G;do{if(Y=Q.window_size-Q.lookahead-Q.strstart,Q.strstart>=J+(J-j2)){n0.arraySet(Q.window,Q.window,J,J,0),Q.match_start-=J,Q.strstart-=J,Q.block_start-=J,q=Q.hash_size,$=q;do X=Q.head[--$],Q.head[$]=X>=J?X-J:0;while(--q);q=J,$=q;do X=Q.prev[--$],Q.prev[$]=X>=J?X-J:0;while(--q);Y+=J}if(Q.strm.avail_in===0)break;if(q=IK(Q.strm,Q.window,Q.strstart+Q.lookahead,Y),Q.lookahead+=q,Q.lookahead+Q.insert>=A0){G=Q.strstart-Q.insert,Q.ins_h=Q.window[G],Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[G+1])&Q.hash_mask;while(Q.insert)if(Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[G+A0-1])&Q.hash_mask,Q.prev[G&Q.w_mask]=Q.head[Q.ins_h],Q.head[Q.ins_h]=G,G++,Q.insert--,Q.lookahead+Q.insert<A0)break}}while(Q.lookahead<j2&&Q.strm.avail_in!==0)}function SK(Q,J){var $=65535;if($>Q.pending_buf_size-5)$=Q.pending_buf_size-5;for(;;){if(Q.lookahead<=1){if(x1(Q),Q.lookahead===0&&J===g1)return y0;if(Q.lookahead===0)break}Q.strstart+=Q.lookahead,Q.lookahead=0;var q=Q.block_start+$;if(Q.strstart===0||Q.strstart>=q){if(Q.lookahead=Q.strstart-q,Q.strstart=q,h0(Q,!1),Q.strm.avail_out===0)return y0}if(Q.strstart-Q.block_start>=Q.w_size-j2){if(h0(Q,!1),Q.strm.avail_out===0)return y0}}if(Q.insert=0,J===B1){if(h0(Q,!0),Q.strm.avail_out===0)return T1;return V6}if(Q.strstart>Q.block_start){if(h0(Q,!1),Q.strm.avail_out===0)return y0}return y0}function s4(Q,J){var $,q;for(;;){if(Q.lookahead<j2){if(x1(Q),Q.lookahead<j2&&J===g1)return y0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=A0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+A0-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-j2)Q.match_length=Xq(Q,$);if(Q.match_length>=A0)if(q=W2._tr_tally(Q,Q.strstart-Q.match_start,Q.match_length-A0),Q.lookahead-=Q.match_length,Q.match_length<=Q.max_lazy_match&&Q.lookahead>=A0){Q.match_length--;do Q.strstart++,Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+A0-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 q=W2._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if(q){if(h0(Q,!1),Q.strm.avail_out===0)return y0}}if(Q.insert=Q.strstart<A0-1?Q.strstart:A0-1,J===B1){if(h0(Q,!0),Q.strm.avail_out===0)return T1;return V6}if(Q.last_lit){if(h0(Q,!1),Q.strm.avail_out===0)return y0}return Y8}function G6(Q,J){var $,q,X;for(;;){if(Q.lookahead<j2){if(x1(Q),Q.lookahead<j2&&J===g1)return y0;if(Q.lookahead===0)break}if($=0,Q.lookahead>=A0)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+A0-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=A0-1,$!==0&&Q.prev_length<Q.max_lazy_match&&Q.strstart-$<=Q.w_size-j2){if(Q.match_length=Xq(Q,$),Q.match_length<=5&&(Q.strategy===UK||Q.match_length===A0&&Q.strstart-Q.match_start>4096))Q.match_length=A0-1}if(Q.prev_length>=A0&&Q.match_length<=Q.prev_length){X=Q.strstart+Q.lookahead-A0,q=W2._tr_tally(Q,Q.strstart-1-Q.prev_match,Q.prev_length-A0),Q.lookahead-=Q.prev_length-1,Q.prev_length-=2;do if(++Q.strstart<=X)Q.ins_h=(Q.ins_h<<Q.hash_shift^Q.window[Q.strstart+A0-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=A0-1,Q.strstart++,q){if(h0(Q,!1),Q.strm.avail_out===0)return y0}}else if(Q.match_available){if(q=W2._tr_tally(Q,0,Q.window[Q.strstart-1]),q)h0(Q,!1);if(Q.strstart++,Q.lookahead--,Q.strm.avail_out===0)return y0}else Q.match_available=1,Q.strstart++,Q.lookahead--}if(Q.match_available)q=W2._tr_tally(Q,0,Q.window[Q.strstart-1]),Q.match_available=0;if(Q.insert=Q.strstart<A0-1?Q.strstart:A0-1,J===B1){if(h0(Q,!0),Q.strm.avail_out===0)return T1;return V6}if(Q.last_lit){if(h0(Q,!1),Q.strm.avail_out===0)return y0}return Y8}function vK(Q,J){var $,q,X,Y,G=Q.window;for(;;){if(Q.lookahead<=W1){if(x1(Q),Q.lookahead<=W1&&J===g1)return y0;if(Q.lookahead===0)break}if(Q.match_length=0,Q.lookahead>=A0&&Q.strstart>0){if(X=Q.strstart-1,q=G[X],q===G[++X]&&q===G[++X]&&q===G[++X]){Y=Q.strstart+W1;do;while(q===G[++X]&&q===G[++X]&&q===G[++X]&&q===G[++X]&&q===G[++X]&&q===G[++X]&&q===G[++X]&&q===G[++X]&&X<Y);if(Q.match_length=W1-(Y-X),Q.match_length>Q.lookahead)Q.match_length=Q.lookahead}}if(Q.match_length>=A0)$=W2._tr_tally(Q,1,Q.match_length-A0),Q.lookahead-=Q.match_length,Q.strstart+=Q.match_length,Q.match_length=0;else $=W2._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++;if($){if(h0(Q,!1),Q.strm.avail_out===0)return y0}}if(Q.insert=0,J===B1){if(h0(Q,!0),Q.strm.avail_out===0)return T1;return V6}if(Q.last_lit){if(h0(Q,!1),Q.strm.avail_out===0)return y0}return Y8}function EK(Q,J){var $;for(;;){if(Q.lookahead===0){if(x1(Q),Q.lookahead===0){if(J===g1)return y0;break}}if(Q.match_length=0,$=W2._tr_tally(Q,0,Q.window[Q.strstart]),Q.lookahead--,Q.strstart++,$){if(h0(Q,!1),Q.strm.avail_out===0)return y0}}if(Q.insert=0,J===B1){if(h0(Q,!0),Q.strm.avail_out===0)return T1;return V6}if(Q.last_lit){if(h0(Q,!1),Q.strm.avail_out===0)return y0}return Y8}function v2(Q,J,$,q,X){this.good_length=Q,this.max_lazy=J,this.nice_length=$,this.max_chain=q,this.func=X}var W6;W6=[new v2(0,0,0,0,SK),new v2(4,4,8,4,s4),new v2(4,5,16,8,s4),new v2(4,6,32,32,s4),new v2(4,4,16,16,G6),new v2(8,16,32,32,G6),new v2(8,16,128,128,G6),new v2(8,32,128,256,G6),new v2(32,128,258,1024,G6),new v2(32,258,258,4096,G6)];function ZK(Q){Q.window_size=2*Q.w_size,G1(Q.head),Q.max_lazy_match=W6[Q.level].max_lazy,Q.good_match=W6[Q.level].good_length,Q.nice_match=W6[Q.level].nice_length,Q.max_chain_length=W6[Q.level].max_chain,Q.strstart=0,Q.block_start=0,Q.lookahead=0,Q.insert=0,Q.match_length=Q.prev_length=A0-1,Q.match_available=0,Q.ins_h=0}function kK(){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=J5,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 n0.Buf16(OK*2),this.dyn_dtree=new n0.Buf16((2*DK+1)*2),this.bl_tree=new n0.Buf16((2*CK+1)*2),G1(this.dyn_ltree),G1(this.dyn_dtree),G1(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n0.Buf16(PK+1),this.heap=new n0.Buf16(2*t4+1),G1(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n0.Buf16(2*t4+1),G1(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 Yq(Q){var J;if(!Q||!Q.state)return V1(Q,V2);if(Q.total_in=Q.total_out=0,Q.data_type=MK,J=Q.state,J.pending=0,J.pending_out=0,J.wrap<0)J.wrap=-J.wrap;return J.status=J.wrap?$5:k1,Q.adler=J.wrap===2?0:1,J.last_flush=g1,W2._tr_init(J),E2}function Gq(Q){var J=Yq(Q);if(J===E2)ZK(Q.state);return J}function TK(Q,J){if(!Q||!Q.state)return V2;if(Q.state.wrap!==2)return V2;return Q.state.gzhead=J,E2}function Wq(Q,J,$,q,X,Y){if(!Q)return V2;var G=1;if(J===BK)J=6;if(q<0)G=0,q=-q;else if(q>15)G=2,q-=16;if(X<1||X>FK||$!==J5||q<8||q>15||J<0||J>9||Y<0||Y>HK)return V1(Q,V2);if(q===8)q=9;var W=new kK;return Q.state=W,W.strm=Q,W.wrap=G,W.gzhead=null,W.w_bits=q,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=X+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+A0-1)/A0),W.window=new n0.Buf8(W.w_size*2),W.head=new n0.Buf16(W.hash_size),W.prev=new n0.Buf16(W.w_size),W.lit_bufsize=1<<X+6,W.pending_buf_size=W.lit_bufsize*4,W.pending_buf=new n0.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=J,W.strategy=Y,W.method=$,Gq(Q)}function xK(Q,J){return Wq(Q,J,J5,zK,wK,jK)}function gK(Q,J){var $,q,X,Y;if(!Q||!Q.state||J>Qq||J<0)return Q?V1(Q,V2):V2;if(q=Q.state,!Q.output||!Q.input&&Q.avail_in!==0||q.status===X8&&J!==B1)return V1(Q,Q.avail_out===0?a4:V2);if(q.strm=Q,$=q.last_flush,q.last_flush=J,q.status===$5)if(q.wrap===2)if(Q.adler=0,I0(q,31),I0(q,139),I0(q,8),!q.gzhead)I0(q,0),I0(q,0),I0(q,0),I0(q,0),I0(q,0),I0(q,q.level===9?2:q.strategy>=s8||q.level<2?4:0),I0(q,AK),q.status=k1;else{if(I0(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(!q.gzhead.extra?0:4)+(!q.gzhead.name?0:8)+(!q.gzhead.comment?0:16)),I0(q,q.gzhead.time&255),I0(q,q.gzhead.time>>8&255),I0(q,q.gzhead.time>>16&255),I0(q,q.gzhead.time>>24&255),I0(q,q.level===9?2:q.strategy>=s8||q.level<2?4:0),I0(q,q.gzhead.os&255),q.gzhead.extra&&q.gzhead.extra.length)I0(q,q.gzhead.extra.length&255),I0(q,q.gzhead.extra.length>>8&255);if(q.gzhead.hcrc)Q.adler=X1(Q.adler,q.pending_buf,q.pending,0);q.gzindex=0,q.status=e4}else{var G=J5+(q.w_bits-8<<4)<<8,W=-1;if(q.strategy>=s8||q.level<2)W=0;else if(q.level<6)W=1;else if(q.level===6)W=2;else W=3;if(G|=W<<6,q.strstart!==0)G|=RK;if(G+=31-G%31,q.status=k1,q8(q,G),q.strstart!==0)q8(q,Q.adler>>>16),q8(q,Q.adler&65535);Q.adler=1}if(q.status===e4)if(q.gzhead.extra){X=q.pending;while(q.gzindex<(q.gzhead.extra.length&65535)){if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>X)Q.adler=X1(Q.adler,q.pending_buf,q.pending-X,X);if(Y1(Q),X=q.pending,q.pending===q.pending_buf_size)break}I0(q,q.gzhead.extra[q.gzindex]&255),q.gzindex++}if(q.gzhead.hcrc&&q.pending>X)Q.adler=X1(Q.adler,q.pending_buf,q.pending-X,X);if(q.gzindex===q.gzhead.extra.length)q.gzindex=0,q.status=t8}else q.status=t8;if(q.status===t8)if(q.gzhead.name){X=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>X)Q.adler=X1(Q.adler,q.pending_buf,q.pending-X,X);if(Y1(Q),X=q.pending,q.pending===q.pending_buf_size){Y=1;break}}if(q.gzindex<q.gzhead.name.length)Y=q.gzhead.name.charCodeAt(q.gzindex++)&255;else Y=0;I0(q,Y)}while(Y!==0);if(q.gzhead.hcrc&&q.pending>X)Q.adler=X1(Q.adler,q.pending_buf,q.pending-X,X);if(Y===0)q.gzindex=0,q.status=e8}else q.status=e8;if(q.status===e8)if(q.gzhead.comment){X=q.pending;do{if(q.pending===q.pending_buf_size){if(q.gzhead.hcrc&&q.pending>X)Q.adler=X1(Q.adler,q.pending_buf,q.pending-X,X);if(Y1(Q),X=q.pending,q.pending===q.pending_buf_size){Y=1;break}}if(q.gzindex<q.gzhead.comment.length)Y=q.gzhead.comment.charCodeAt(q.gzindex++)&255;else Y=0;I0(q,Y)}while(Y!==0);if(q.gzhead.hcrc&&q.pending>X)Q.adler=X1(Q.adler,q.pending_buf,q.pending-X,X);if(Y===0)q.status=Q5}else q.status=Q5;if(q.status===Q5)if(q.gzhead.hcrc){if(q.pending+2>q.pending_buf_size)Y1(Q);if(q.pending+2<=q.pending_buf_size)I0(q,Q.adler&255),I0(q,Q.adler>>8&255),Q.adler=0,q.status=k1}else q.status=k1;if(q.pending!==0){if(Y1(Q),Q.avail_out===0)return q.last_flush=-1,E2}else if(Q.avail_in===0&&$q(J)<=$q($)&&J!==B1)return V1(Q,a4);if(q.status===X8&&Q.avail_in!==0)return V1(Q,a4);if(Q.avail_in!==0||q.lookahead!==0||J!==g1&&q.status!==X8){var B=q.strategy===s8?EK(q,J):q.strategy===KK?vK(q,J):W6[q.level].func(q,J);if(B===T1||B===V6)q.status=X8;if(B===y0||B===T1){if(Q.avail_out===0)q.last_flush=-1;return E2}if(B===Y8){if(J===GK)W2._tr_align(q);else if(J!==Qq){if(W2._tr_stored_block(q,0,0,!1),J===WK){if(G1(q.head),q.lookahead===0)q.strstart=0,q.block_start=0,q.insert=0}}if(Y1(Q),Q.avail_out===0)return q.last_flush=-1,E2}}if(J!==B1)return E2;if(q.wrap<=0)return Jq;if(q.wrap===2)I0(q,Q.adler&255),I0(q,Q.adler>>8&255),I0(q,Q.adler>>16&255),I0(q,Q.adler>>24&255),I0(q,Q.total_in&255),I0(q,Q.total_in>>8&255),I0(q,Q.total_in>>16&255),I0(q,Q.total_in>>24&255);else q8(q,Q.adler>>>16),q8(q,Q.adler&65535);if(Y1(Q),q.wrap>0)q.wrap=-q.wrap;return q.pending!==0?E2:Jq}function fK(Q){var J;if(!Q||!Q.state)return V2;if(J=Q.state.status,J!==$5&&J!==e4&&J!==t8&&J!==e8&&J!==Q5&&J!==k1&&J!==X8)return V1(Q,V2);return Q.state=null,J===k1?V1(Q,VK):E2}function _K(Q,J){var $=J.length,q,X,Y,G,W,B,V,U;if(!Q||!Q.state)return V2;if(q=Q.state,G=q.wrap,G===2||G===1&&q.status!==$5||q.lookahead)return V2;if(G===1)Q.adler=qq(Q.adler,J,$,0);if(q.wrap=0,$>=q.w_size){if(G===0)G1(q.head),q.strstart=0,q.block_start=0,q.insert=0;U=new n0.Buf8(q.w_size),n0.arraySet(U,J,$-q.w_size,q.w_size,0),J=U,$=q.w_size}W=Q.avail_in,B=Q.next_in,V=Q.input,Q.avail_in=$,Q.next_in=0,Q.input=J,x1(q);while(q.lookahead>=A0){X=q.strstart,Y=q.lookahead-(A0-1);do q.ins_h=(q.ins_h<<q.hash_shift^q.window[X+A0-1])&q.hash_mask,q.prev[X&q.w_mask]=q.head[q.ins_h],q.head[q.ins_h]=X,X++;while(--Y);q.strstart=X,q.lookahead=A0-1,x1(q)}return q.strstart+=q.lookahead,q.block_start=q.strstart,q.insert=q.lookahead,q.lookahead=0,q.match_length=q.prev_length=A0-1,q.match_available=0,Q.next_in=B,Q.input=V,Q.avail_in=W,q.wrap=G,E2}yK.deflateInit=xK;yK.deflateInit2=Wq;yK.deflateReset=Gq;yK.deflateResetKeep=Yq;yK.deflateSetHeader=TK;yK.deflate=gK;yK.deflateEnd=fK;yK.deflateSetDictionary=_K;yK.deflateInfo="pako deflate (from Nodeca project)"});var Q7=g((nK)=>{var q5=p2(),Bq=!0,Uq=!0;try{String.fromCharCode.apply(null,[0])}catch(Q){Bq=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(Q){Uq=!1}var G8=new q5.Buf8(256);for(Z2=0;Z2<256;Z2++)G8[Z2]=Z2>=252?6:Z2>=248?5:Z2>=240?4:Z2>=224?3:Z2>=192?2:1;var Z2;G8[254]=G8[254]=1;nK.string2buf=function(Q){var J,$,q,X,Y,G=Q.length,W=0;for(X=0;X<G;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<G){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}W+=$<128?1:$<2048?2:$<65536?3:4}J=new q5.Buf8(W);for(Y=0,X=0;Y<W;X++){if($=Q.charCodeAt(X),($&64512)===55296&&X+1<G){if(q=Q.charCodeAt(X+1),(q&64512)===56320)$=65536+($-55296<<10)+(q-56320),X++}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 Kq(Q,J){if(J<65534){if(Q.subarray&&Uq||!Q.subarray&&Bq)return String.fromCharCode.apply(null,q5.shrinkBuf(Q,J))}var $="";for(var q=0;q<J;q++)$+=String.fromCharCode(Q[q]);return $}nK.buf2binstring=function(Q){return Kq(Q,Q.length)};nK.binstring2buf=function(Q){var J=new q5.Buf8(Q.length);for(var $=0,q=J.length;$<q;$++)J[$]=Q.charCodeAt($);return J};nK.buf2string=function(Q,J){var $,q,X,Y,G=J||Q.length,W=Array(G*2);for(q=0,$=0;$<G;){if(X=Q[$++],X<128){W[q++]=X;continue}if(Y=G8[X],Y>4){W[q++]=65533,$+=Y-1;continue}X&=Y===2?31:Y===3?15:7;while(Y>1&&$<G)X=X<<6|Q[$++]&63,Y--;if(Y>1){W[q++]=65533;continue}if(X<65536)W[q++]=X;else X-=65536,W[q++]=55296|X>>10&1023,W[q++]=56320|X&1023}return Kq(W,q)};nK.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 $+G8[Q[$]]>J?$:J}});var J7=g((qD,Hq)=>{function eK(){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}Hq.exports=eK});var zq=g((WH)=>{var W8=Vq(),V8=p2(),q7=Q7(),X7=a8(),QH=J7(),Fq=Object.prototype.toString,JH=0,$7=4,B6=0,jq=1,Mq=2,$H=-1,qH=0,XH=8;function f1(Q){if(!(this instanceof f1))return new f1(Q);this.options=V8.assign({level:$H,method:XH,chunkSize:16384,windowBits:15,memLevel:8,strategy:qH,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 QH,this.strm.avail_out=0;var $=W8.deflateInit2(this.strm,J.level,J.method,J.windowBits,J.memLevel,J.strategy);if($!==B6)throw Error(X7[$]);if(J.header)W8.deflateSetHeader(this.strm,J.header);if(J.dictionary){var q;if(typeof J.dictionary==="string")q=q7.string2buf(J.dictionary);else if(Fq.call(J.dictionary)==="[object ArrayBuffer]")q=new Uint8Array(J.dictionary);else q=J.dictionary;if($=W8.deflateSetDictionary(this.strm,q),$!==B6)throw Error(X7[$]);this._dict_set=!0}}f1.prototype.push=function(Q,J){var $=this.strm,q=this.options.chunkSize,X,Y;if(this.ended)return!1;if(Y=J===~~J?J:J===!0?$7:JH,typeof Q==="string")$.input=q7.string2buf(Q);else if(Fq.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 V8.Buf8(q),$.next_out=0,$.avail_out=q;if(X=W8.deflate($,Y),X!==jq&&X!==B6)return this.onEnd(X),this.ended=!0,!1;if($.avail_out===0||$.avail_in===0&&(Y===$7||Y===Mq))if(this.options.to==="string")this.onData(q7.buf2binstring(V8.shrinkBuf($.output,$.next_out)));else this.onData(V8.shrinkBuf($.output,$.next_out))}while(($.avail_in>0||$.avail_out===0)&&X!==jq);if(Y===$7)return X=W8.deflateEnd(this.strm),this.onEnd(X),this.ended=!0,X===B6;if(Y===Mq)return this.onEnd(B6),$.avail_out=0,!0;return!0};f1.prototype.onData=function(Q){this.chunks.push(Q)};f1.prototype.onEnd=function(Q){if(Q===B6)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=V8.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function Y7(Q,J){var $=new f1(J);if($.push(Q,!0),$.err)throw $.msg||X7[$.err];return $.result}function YH(Q,J){return J=J||{},J.raw=!0,Y7(Q,J)}function GH(Q,J){return J=J||{},J.gzip=!0,Y7(Q,J)}WH.Deflate=f1;WH.deflate=Y7;WH.deflateRaw=YH;WH.gzip=GH});var Lq=g((YD,wq)=>{var X5=30,HH=12;wq.exports=function(J,$){var q,X,Y,G,W,B,V,U,M,z,j,y,f,C,P,K,w,L,O,b,k,d,S,v,R;q=J.state,X=J.next_in,v=J.input,Y=X+(J.avail_in-5),G=J.next_out,R=J.output,W=G-($-J.avail_out),B=G+(J.avail_out-257),V=q.dmax,U=q.wsize,M=q.whave,z=q.wnext,j=q.window,y=q.hold,f=q.bits,C=q.lencode,P=q.distcode,K=(1<<q.lenbits)-1,w=(1<<q.distbits)-1;Q:do{if(f<15)y+=v[X++]<<f,f+=8,y+=v[X++]<<f,f+=8;L=C[y&K];J:for(;;){if(O=L>>>24,y>>>=O,f-=O,O=L>>>16&255,O===0)R[G++]=L&65535;else if(O&16){if(b=L&65535,O&=15,O){if(f<O)y+=v[X++]<<f,f+=8;b+=y&(1<<O)-1,y>>>=O,f-=O}if(f<15)y+=v[X++]<<f,f+=8,y+=v[X++]<<f,f+=8;L=P[y&w];$:for(;;){if(O=L>>>24,y>>>=O,f-=O,O=L>>>16&255,O&16){if(k=L&65535,O&=15,f<O){if(y+=v[X++]<<f,f+=8,f<O)y+=v[X++]<<f,f+=8}if(k+=y&(1<<O)-1,k>V){J.msg="invalid distance too far back",q.mode=X5;break Q}if(y>>>=O,f-=O,O=G-W,k>O){if(O=k-O,O>M){if(q.sane){J.msg="invalid distance too far back",q.mode=X5;break Q}}if(d=0,S=j,z===0){if(d+=U-O,O<b){b-=O;do R[G++]=j[d++];while(--O);d=G-k,S=R}}else if(z<O){if(d+=U+z-O,O-=z,O<b){b-=O;do R[G++]=j[d++];while(--O);if(d=0,z<b){O=z,b-=O;do R[G++]=j[d++];while(--O);d=G-k,S=R}}}else if(d+=z-O,O<b){b-=O;do R[G++]=j[d++];while(--O);d=G-k,S=R}while(b>2)R[G++]=S[d++],R[G++]=S[d++],R[G++]=S[d++],b-=3;if(b){if(R[G++]=S[d++],b>1)R[G++]=S[d++]}}else{d=G-k;do R[G++]=R[d++],R[G++]=R[d++],R[G++]=R[d++],b-=3;while(b>2);if(b){if(R[G++]=R[d++],b>1)R[G++]=R[d++]}}}else if((O&64)===0){L=P[(L&65535)+(y&(1<<O)-1)];continue $}else{J.msg="invalid distance code",q.mode=X5;break Q}break}}else if((O&64)===0){L=C[(L&65535)+(y&(1<<O)-1)];continue J}else if(O&32){q.mode=HH;break Q}else{J.msg="invalid literal/length code",q.mode=X5;break Q}break}}while(X<Y&&G<B);b=f>>3,X-=b,f-=b<<3,y&=(1<<f)-1,J.next_in=X,J.next_out=G,J.avail_in=X<Y?5+(Y-X):5-(X-Y),J.avail_out=G<B?257+(B-G):257-(G-B),q.hold=y,q.bits=f;return}});var Aq=g((GD,Rq)=>{var Nq=p2(),U6=15,Dq=852,Cq=592,Oq=0,G7=1,Pq=2,jH=[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],MH=[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],FH=[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],zH=[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];Rq.exports=function(J,$,q,X,Y,G,W,B){var V=B.bits,U=0,M=0,z=0,j=0,y=0,f=0,C=0,P=0,K=0,w=0,L,O,b,k,d,S=null,v=0,R,D=new Nq.Buf16(U6+1),T=new Nq.Buf16(U6+1),_=null,Z=0,t,q0,V0;for(U=0;U<=U6;U++)D[U]=0;for(M=0;M<X;M++)D[$[q+M]]++;y=V;for(j=U6;j>=1;j--)if(D[j]!==0)break;if(y>j)y=j;if(j===0)return Y[G++]=20971520,Y[G++]=20971520,B.bits=1,0;for(z=1;z<j;z++)if(D[z]!==0)break;if(y<z)y=z;P=1;for(U=1;U<=U6;U++)if(P<<=1,P-=D[U],P<0)return-1;if(P>0&&(J===Oq||j!==1))return-1;T[1]=0;for(U=1;U<U6;U++)T[U+1]=T[U]+D[U];for(M=0;M<X;M++)if($[q+M]!==0)W[T[$[q+M]]++]=M;if(J===Oq)S=_=W,R=19;else if(J===G7)S=jH,v-=257,_=MH,Z-=257,R=256;else S=FH,_=zH,R=-1;if(w=0,M=0,U=z,d=G,f=y,C=0,b=-1,K=1<<y,k=K-1,J===G7&&K>Dq||J===Pq&&K>Cq)return 1;for(;;){if(t=U-C,W[M]<R)q0=0,V0=W[M];else if(W[M]>R)q0=_[Z+W[M]],V0=S[v+W[M]];else q0=96,V0=0;L=1<<U-C,O=1<<f,z=O;do O-=L,Y[d+(w>>C)+O]=t<<24|q0<<16|V0|0;while(O!==0);L=1<<U-1;while(w&L)L>>=1;if(L!==0)w&=L-1,w+=L;else w=0;if(M++,--D[U]===0){if(U===j)break;U=$[q+W[M]]}if(U>y&&(w&k)!==b){if(C===0)C=y;d+=z,f=U-C,P=1<<f;while(f+C<j){if(P-=D[f+C],P<=0)break;f++,P<<=1}if(K+=1<<f,J===G7&&K>Dq||J===Pq&&K>Cq)return 1;b=w&k,Y[b]=y<<24|f<<16|d-G|0}}if(w!==0)Y[d+w]=U-C<<24|4194304|0;return B.bits=y,0}});var G9=g((fH)=>{var J2=p2(),H7=o4(),k2=r4(),wH=Lq(),B8=Aq(),LH=0,sq=1,tq=2,Iq=4,NH=5,Y5=6,_1=0,DH=1,CH=2,B2=-2,eq=-3,j7=-4,OH=-5,Sq=8,Q9=1,vq=2,Eq=3,Zq=4,kq=5,Tq=6,xq=7,gq=8,fq=9,_q=10,V5=11,d2=12,W7=13,yq=14,V7=15,bq=16,hq=17,mq=18,cq=19,G5=20,W5=21,uq=22,pq=23,lq=24,dq=25,iq=26,B7=27,nq=28,oq=29,k0=30,M7=31,PH=32,RH=852,AH=592,IH=15,SH=IH;function rq(Q){return(Q>>>24&255)+(Q>>>8&65280)+((Q&65280)<<8)+((Q&255)<<24)}function vH(){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 J2.Buf16(320),this.work=new J2.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function J9(Q){var J;if(!Q||!Q.state)return B2;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=Q9,J.last=0,J.havedict=0,J.dmax=32768,J.head=null,J.hold=0,J.bits=0,J.lencode=J.lendyn=new J2.Buf32(RH),J.distcode=J.distdyn=new J2.Buf32(AH),J.sane=1,J.back=-1,_1}function $9(Q){var J;if(!Q||!Q.state)return B2;return J=Q.state,J.wsize=0,J.whave=0,J.wnext=0,J9(Q)}function q9(Q,J){var $,q;if(!Q||!Q.state)return B2;if(q=Q.state,J<0)$=0,J=-J;else if($=(J>>4)+1,J<48)J&=15;if(J&&(J<8||J>15))return B2;if(q.window!==null&&q.wbits!==J)q.window=null;return q.wrap=$,q.wbits=J,$9(Q)}function X9(Q,J){var $,q;if(!Q)return B2;if(q=new vH,Q.state=q,q.window=null,$=q9(Q,J),$!==_1)Q.state=null;return $}function EH(Q){return X9(Q,SH)}var aq=!0,U7,K7;function ZH(Q){if(aq){var J;U7=new J2.Buf32(512),K7=new J2.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;B8(sq,Q.lens,0,288,U7,0,Q.work,{bits:9}),J=0;while(J<32)Q.lens[J++]=5;B8(tq,Q.lens,0,32,K7,0,Q.work,{bits:5}),aq=!1}Q.lencode=U7,Q.lenbits=9,Q.distcode=K7,Q.distbits=5}function Y9(Q,J,$,q){var X,Y=Q.state;if(Y.window===null)Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new J2.Buf8(Y.wsize);if(q>=Y.wsize)J2.arraySet(Y.window,J,$-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize;else{if(X=Y.wsize-Y.wnext,X>q)X=q;if(J2.arraySet(Y.window,J,$-q,X,Y.wnext),q-=X,q)J2.arraySet(Y.window,J,$-q,q,0),Y.wnext=q,Y.whave=Y.wsize;else{if(Y.wnext+=X,Y.wnext===Y.wsize)Y.wnext=0;if(Y.whave<Y.wsize)Y.whave+=X}}return 0}function kH(Q,J){var $,q,X,Y,G,W,B,V,U,M,z,j,y,f,C=0,P,K,w,L,O,b,k,d,S=new J2.Buf8(4),v,R,D=[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 B2;if($=Q.state,$.mode===d2)$.mode=W7;G=Q.next_out,X=Q.output,B=Q.avail_out,Y=Q.next_in,q=Q.input,W=Q.avail_in,V=$.hold,U=$.bits,M=W,z=B,d=_1;Q:for(;;)switch($.mode){case Q9:if($.wrap===0){$.mode=W7;break}while(U<16){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if($.wrap&2&&V===35615){$.check=0,S[0]=V&255,S[1]=V>>>8&255,$.check=k2($.check,S,2,0),V=0,U=0,$.mode=vq;break}if($.flags=0,$.head)$.head.done=!1;if(!($.wrap&1)||(((V&255)<<8)+(V>>8))%31){Q.msg="incorrect header check",$.mode=k0;break}if((V&15)!==Sq){Q.msg="unknown compression method",$.mode=k0;break}if(V>>>=4,U-=4,k=(V&15)+8,$.wbits===0)$.wbits=k;else if(k>$.wbits){Q.msg="invalid window size",$.mode=k0;break}$.dmax=1<<k,Q.adler=$.check=1,$.mode=V&512?_q:d2,V=0,U=0;break;case vq:while(U<16){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if($.flags=V,($.flags&255)!==Sq){Q.msg="unknown compression method",$.mode=k0;break}if($.flags&57344){Q.msg="unknown header flags set",$.mode=k0;break}if($.head)$.head.text=V>>8&1;if($.flags&512)S[0]=V&255,S[1]=V>>>8&255,$.check=k2($.check,S,2,0);V=0,U=0,$.mode=Eq;case Eq:while(U<32){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if($.head)$.head.time=V;if($.flags&512)S[0]=V&255,S[1]=V>>>8&255,S[2]=V>>>16&255,S[3]=V>>>24&255,$.check=k2($.check,S,4,0);V=0,U=0,$.mode=Zq;case Zq:while(U<16){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if($.head)$.head.xflags=V&255,$.head.os=V>>8;if($.flags&512)S[0]=V&255,S[1]=V>>>8&255,$.check=k2($.check,S,2,0);V=0,U=0,$.mode=kq;case kq:if($.flags&1024){while(U<16){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if($.length=V,$.head)$.head.extra_len=V;if($.flags&512)S[0]=V&255,S[1]=V>>>8&255,$.check=k2($.check,S,2,0);V=0,U=0}else if($.head)$.head.extra=null;$.mode=Tq;case Tq:if($.flags&1024){if(j=$.length,j>W)j=W;if(j){if($.head){if(k=$.head.extra_len-$.length,!$.head.extra)$.head.extra=Array($.head.extra_len);J2.arraySet($.head.extra,q,Y,j,k)}if($.flags&512)$.check=k2($.check,q,j,Y);W-=j,Y+=j,$.length-=j}if($.length)break Q}$.length=0,$.mode=xq;case xq:if($.flags&2048){if(W===0)break Q;j=0;do if(k=q[Y+j++],$.head&&k&&$.length<65536)$.head.name+=String.fromCharCode(k);while(k&&j<W);if($.flags&512)$.check=k2($.check,q,j,Y);if(W-=j,Y+=j,k)break Q}else if($.head)$.head.name=null;$.length=0,$.mode=gq;case gq:if($.flags&4096){if(W===0)break Q;j=0;do if(k=q[Y+j++],$.head&&k&&$.length<65536)$.head.comment+=String.fromCharCode(k);while(k&&j<W);if($.flags&512)$.check=k2($.check,q,j,Y);if(W-=j,Y+=j,k)break Q}else if($.head)$.head.comment=null;$.mode=fq;case fq:if($.flags&512){while(U<16){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if(V!==($.check&65535)){Q.msg="header crc mismatch",$.mode=k0;break}V=0,U=0}if($.head)$.head.hcrc=$.flags>>9&1,$.head.done=!0;Q.adler=$.check=0,$.mode=d2;break;case _q:while(U<32){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}Q.adler=$.check=rq(V),V=0,U=0,$.mode=V5;case V5:if($.havedict===0)return Q.next_out=G,Q.avail_out=B,Q.next_in=Y,Q.avail_in=W,$.hold=V,$.bits=U,CH;Q.adler=$.check=1,$.mode=d2;case d2:if(J===NH||J===Y5)break Q;case W7:if($.last){V>>>=U&7,U-=U&7,$.mode=B7;break}while(U<3){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}switch($.last=V&1,V>>>=1,U-=1,V&3){case 0:$.mode=yq;break;case 1:if(ZH($),$.mode=G5,J===Y5){V>>>=2,U-=2;break Q}break;case 2:$.mode=hq;break;case 3:Q.msg="invalid block type",$.mode=k0}V>>>=2,U-=2;break;case yq:V>>>=U&7,U-=U&7;while(U<32){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if((V&65535)!==(V>>>16^65535)){Q.msg="invalid stored block lengths",$.mode=k0;break}if($.length=V&65535,V=0,U=0,$.mode=V7,J===Y5)break Q;case V7:$.mode=bq;case bq:if(j=$.length,j){if(j>W)j=W;if(j>B)j=B;if(j===0)break Q;J2.arraySet(X,q,Y,j,G),W-=j,Y+=j,B-=j,G+=j,$.length-=j;break}$.mode=d2;break;case hq:while(U<14){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if($.nlen=(V&31)+257,V>>>=5,U-=5,$.ndist=(V&31)+1,V>>>=5,U-=5,$.ncode=(V&15)+4,V>>>=4,U-=4,$.nlen>286||$.ndist>30){Q.msg="too many length or distance symbols",$.mode=k0;break}$.have=0,$.mode=mq;case mq:while($.have<$.ncode){while(U<3){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}$.lens[D[$.have++]]=V&7,V>>>=3,U-=3}while($.have<19)$.lens[D[$.have++]]=0;if($.lencode=$.lendyn,$.lenbits=7,v={bits:$.lenbits},d=B8(LH,$.lens,0,19,$.lencode,0,$.work,v),$.lenbits=v.bits,d){Q.msg="invalid code lengths set",$.mode=k0;break}$.have=0,$.mode=cq;case cq:while($.have<$.nlen+$.ndist){for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],P=C>>>24,K=C>>>16&255,w=C&65535,P<=U)break;if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if(w<16)V>>>=P,U-=P,$.lens[$.have++]=w;else{if(w===16){R=P+2;while(U<R){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if(V>>>=P,U-=P,$.have===0){Q.msg="invalid bit length repeat",$.mode=k0;break}k=$.lens[$.have-1],j=3+(V&3),V>>>=2,U-=2}else if(w===17){R=P+3;while(U<R){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}V>>>=P,U-=P,k=0,j=3+(V&7),V>>>=3,U-=3}else{R=P+7;while(U<R){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}V>>>=P,U-=P,k=0,j=11+(V&127),V>>>=7,U-=7}if($.have+j>$.nlen+$.ndist){Q.msg="invalid bit length repeat",$.mode=k0;break}while(j--)$.lens[$.have++]=k}}if($.mode===k0)break;if($.lens[256]===0){Q.msg="invalid code -- missing end-of-block",$.mode=k0;break}if($.lenbits=9,v={bits:$.lenbits},d=B8(sq,$.lens,0,$.nlen,$.lencode,0,$.work,v),$.lenbits=v.bits,d){Q.msg="invalid literal/lengths set",$.mode=k0;break}if($.distbits=6,$.distcode=$.distdyn,v={bits:$.distbits},d=B8(tq,$.lens,$.nlen,$.ndist,$.distcode,0,$.work,v),$.distbits=v.bits,d){Q.msg="invalid distances set",$.mode=k0;break}if($.mode=G5,J===Y5)break Q;case G5:$.mode=W5;case W5:if(W>=6&&B>=258){if(Q.next_out=G,Q.avail_out=B,Q.next_in=Y,Q.avail_in=W,$.hold=V,$.bits=U,wH(Q,z),G=Q.next_out,X=Q.output,B=Q.avail_out,Y=Q.next_in,q=Q.input,W=Q.avail_in,V=$.hold,U=$.bits,$.mode===d2)$.back=-1;break}$.back=0;for(;;){if(C=$.lencode[V&(1<<$.lenbits)-1],P=C>>>24,K=C>>>16&255,w=C&65535,P<=U)break;if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if(K&&(K&240)===0){L=P,O=K,b=w;for(;;){if(C=$.lencode[b+((V&(1<<L+O)-1)>>L)],P=C>>>24,K=C>>>16&255,w=C&65535,L+P<=U)break;if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}V>>>=L,U-=L,$.back+=L}if(V>>>=P,U-=P,$.back+=P,$.length=w,K===0){$.mode=iq;break}if(K&32){$.back=-1,$.mode=d2;break}if(K&64){Q.msg="invalid literal/length code",$.mode=k0;break}$.extra=K&15,$.mode=uq;case uq:if($.extra){R=$.extra;while(U<R){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}$.length+=V&(1<<$.extra)-1,V>>>=$.extra,U-=$.extra,$.back+=$.extra}$.was=$.length,$.mode=pq;case pq:for(;;){if(C=$.distcode[V&(1<<$.distbits)-1],P=C>>>24,K=C>>>16&255,w=C&65535,P<=U)break;if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if((K&240)===0){L=P,O=K,b=w;for(;;){if(C=$.distcode[b+((V&(1<<L+O)-1)>>L)],P=C>>>24,K=C>>>16&255,w=C&65535,L+P<=U)break;if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}V>>>=L,U-=L,$.back+=L}if(V>>>=P,U-=P,$.back+=P,K&64){Q.msg="invalid distance code",$.mode=k0;break}$.offset=w,$.extra=K&15,$.mode=lq;case lq:if($.extra){R=$.extra;while(U<R){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}$.offset+=V&(1<<$.extra)-1,V>>>=$.extra,U-=$.extra,$.back+=$.extra}if($.offset>$.dmax){Q.msg="invalid distance too far back",$.mode=k0;break}$.mode=dq;case dq:if(B===0)break Q;if(j=z-B,$.offset>j){if(j=$.offset-j,j>$.whave){if($.sane){Q.msg="invalid distance too far back",$.mode=k0;break}}if(j>$.wnext)j-=$.wnext,y=$.wsize-j;else y=$.wnext-j;if(j>$.length)j=$.length;f=$.window}else f=X,y=G-$.offset,j=$.length;if(j>B)j=B;B-=j,$.length-=j;do X[G++]=f[y++];while(--j);if($.length===0)$.mode=W5;break;case iq:if(B===0)break Q;X[G++]=$.length,B--,$.mode=W5;break;case B7:if($.wrap){while(U<32){if(W===0)break Q;W--,V|=q[Y++]<<U,U+=8}if(z-=B,Q.total_out+=z,$.total+=z,z)Q.adler=$.check=$.flags?k2($.check,X,z,G-z):H7($.check,X,z,G-z);if(z=B,($.flags?V:rq(V))!==$.check){Q.msg="incorrect data check",$.mode=k0;break}V=0,U=0}$.mode=nq;case nq:if($.wrap&&$.flags){while(U<32){if(W===0)break Q;W--,V+=q[Y++]<<U,U+=8}if(V!==($.total&4294967295)){Q.msg="incorrect length check",$.mode=k0;break}V=0,U=0}$.mode=oq;case oq:d=DH;break Q;case k0:d=eq;break Q;case M7:return j7;case PH:default:return B2}if(Q.next_out=G,Q.avail_out=B,Q.next_in=Y,Q.avail_in=W,$.hold=V,$.bits=U,$.wsize||z!==Q.avail_out&&$.mode<k0&&($.mode<B7||J!==Iq)){if(Y9(Q,Q.output,Q.next_out,z-Q.avail_out))return $.mode=M7,j7}if(M-=Q.avail_in,z-=Q.avail_out,Q.total_in+=M,Q.total_out+=z,$.total+=z,$.wrap&&z)Q.adler=$.check=$.flags?k2($.check,X,z,Q.next_out-z):H7($.check,X,z,Q.next_out-z);if(Q.data_type=$.bits+($.last?64:0)+($.mode===d2?128:0)+($.mode===G5||$.mode===V7?256:0),(M===0&&z===0||J===Iq)&&d===_1)d=OH;return d}function TH(Q){if(!Q||!Q.state)return B2;var J=Q.state;if(J.window)J.window=null;return Q.state=null,_1}function xH(Q,J){var $;if(!Q||!Q.state)return B2;if($=Q.state,($.wrap&2)===0)return B2;return $.head=J,J.done=!1,_1}function gH(Q,J){var $=J.length,q,X,Y;if(!Q||!Q.state)return B2;if(q=Q.state,q.wrap!==0&&q.mode!==V5)return B2;if(q.mode===V5){if(X=1,X=H7(X,J,$,0),X!==q.check)return eq}if(Y=Y9(Q,J,$,$),Y)return q.mode=M7,j7;return q.havedict=1,_1}fH.inflateReset=$9;fH.inflateReset2=q9;fH.inflateResetKeep=J9;fH.inflateInit=EH;fH.inflateInit2=X9;fH.inflate=kH;fH.inflateEnd=TH;fH.inflateGetHeader=xH;fH.inflateSetDictionary=gH;fH.inflateInfo="pako inflate (from Nodeca project)"});var F7=g((VD,W9)=>{W9.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 B9=g((BD,V9)=>{function iH(){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}V9.exports=iH});var K9=g((aH)=>{var K6=G9(),U8=p2(),B5=Q7(),_0=F7(),z7=a8(),nH=J7(),oH=B9(),U9=Object.prototype.toString;function y1(Q){if(!(this instanceof y1))return new y1(Q);this.options=U8.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 nH,this.strm.avail_out=0;var $=K6.inflateInit2(this.strm,J.windowBits);if($!==_0.Z_OK)throw Error(z7[$]);if(this.header=new oH,K6.inflateGetHeader(this.strm,this.header),J.dictionary){if(typeof J.dictionary==="string")J.dictionary=B5.string2buf(J.dictionary);else if(U9.call(J.dictionary)==="[object ArrayBuffer]")J.dictionary=new Uint8Array(J.dictionary);if(J.raw){if($=K6.inflateSetDictionary(this.strm,J.dictionary),$!==_0.Z_OK)throw Error(z7[$])}}}y1.prototype.push=function(Q,J){var $=this.strm,q=this.options.chunkSize,X=this.options.dictionary,Y,G,W,B,V,U=!1;if(this.ended)return!1;if(G=J===~~J?J:J===!0?_0.Z_FINISH:_0.Z_NO_FLUSH,typeof Q==="string")$.input=B5.binstring2buf(Q);else if(U9.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 U8.Buf8(q),$.next_out=0,$.avail_out=q;if(Y=K6.inflate($,_0.Z_NO_FLUSH),Y===_0.Z_NEED_DICT&&X)Y=K6.inflateSetDictionary(this.strm,X);if(Y===_0.Z_BUF_ERROR&&U===!0)Y=_0.Z_OK,U=!1;if(Y!==_0.Z_STREAM_END&&Y!==_0.Z_OK)return this.onEnd(Y),this.ended=!0,!1;if($.next_out){if($.avail_out===0||Y===_0.Z_STREAM_END||$.avail_in===0&&(G===_0.Z_FINISH||G===_0.Z_SYNC_FLUSH))if(this.options.to==="string"){if(W=B5.utf8border($.output,$.next_out),B=$.next_out-W,V=B5.buf2string($.output,W),$.next_out=B,$.avail_out=q-B,B)U8.arraySet($.output,$.output,W,B,0);this.onData(V)}else this.onData(U8.shrinkBuf($.output,$.next_out))}if($.avail_in===0&&$.avail_out===0)U=!0}while(($.avail_in>0||$.avail_out===0)&&Y!==_0.Z_STREAM_END);if(Y===_0.Z_STREAM_END)G=_0.Z_FINISH;if(G===_0.Z_FINISH)return Y=K6.inflateEnd(this.strm),this.onEnd(Y),this.ended=!0,Y===_0.Z_OK;if(G===_0.Z_SYNC_FLUSH)return this.onEnd(_0.Z_OK),$.avail_out=0,!0;return!0};y1.prototype.onData=function(Q){this.chunks.push(Q)};y1.prototype.onEnd=function(Q){if(Q===_0.Z_OK)if(this.options.to==="string")this.result=this.chunks.join("");else this.result=U8.flattenChunks(this.chunks);this.chunks=[],this.err=Q,this.msg=this.strm.msg};function w7(Q,J){var $=new y1(J);if($.push(Q,!0),$.err)throw $.msg||z7[$.err];return $.result}function rH(Q,J){return J=J||{},J.raw=!0,w7(Q,J)}aH.Inflate=y1;aH.inflate=w7;aH.inflateRaw=rH;aH.ungzip=w7});var M9=g((KD,j9)=>{var Jj=p2().assign,$j=zq(),qj=K9(),Xj=F7(),H9={};Jj(H9,$j,qj,Xj);j9.exports=H9});var z9=g((Vj)=>{var Yj=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",Gj=M9(),F9=x0(),U5=Q2(),Wj=Yj?"uint8array":"array";Vj.magic="\b\x00";function b1(Q,J){U5.call(this,"FlateWorker/"+Q),this._pako=null,this._pakoAction=Q,this._pakoOptions=J,this.meta={}}F9.inherits(b1,U5);b1.prototype.processChunk=function(Q){if(this.meta=Q.meta,this._pako===null)this._createPako();this._pako.push(F9.transformTo(Wj,Q.data),!1)};b1.prototype.flush=function(){if(U5.prototype.flush.call(this),this._pako===null)this._createPako();this._pako.push([],!0)};b1.prototype.cleanUp=function(){U5.prototype.cleanUp.call(this),this._pako=null};b1.prototype._createPako=function(){this._pako=new Gj[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var Q=this;this._pako.onData=function(J){Q.push({data:J,meta:Q.meta})}};Vj.compressWorker=function(Q){return new b1("Deflate",Q)};Vj.uncompressWorker=function(){return new b1("Inflate",{})}});var L7=g((Hj)=>{var w9=Q2();Hj.STORE={magic:"\x00\x00",compressWorker:function(){return new w9("STORE compression")},uncompressWorker:function(){return new w9("STORE decompression")}};Hj.DEFLATE=z9()});var N7=g((Fj)=>{Fj.LOCAL_FILE_HEADER="PK\x03\x04";Fj.CENTRAL_FILE_HEADER="PK\x01\x02";Fj.CENTRAL_DIRECTORY_END="PK\x05\x06";Fj.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07";Fj.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06";Fj.DATA_DESCRIPTOR="PK\x07\b"});var C9=g((FD,D9)=>{var H6=x0(),j6=Q2(),D7=$6(),L9=i8(),K5=N7(),E0=function(Q,J){var $="",q;for(q=0;q<J;q++)$+=String.fromCharCode(Q&255),Q=Q>>>8;return $},Oj=function(Q,J){var $=Q;if(!Q)$=J?16893:33204;return($&65535)<<16},Pj=function(Q){return(Q||0)&63},N9=function(Q,J,$,q,X,Y){var{file:G,compression:W}=Q,B=Y!==D7.utf8encode,V=H6.transformTo("string",Y(G.name)),U=H6.transformTo("string",D7.utf8encode(G.name)),M=G.comment,z=H6.transformTo("string",Y(M)),j=H6.transformTo("string",D7.utf8encode(M)),y=U.length!==G.name.length,f=j.length!==M.length,C,P,K="",w="",L="",O=G.dir,b=G.date,k={crc32:0,compressedSize:0,uncompressedSize:0};if(!J||$)k.crc32=Q.crc32,k.compressedSize=Q.compressedSize,k.uncompressedSize=Q.uncompressedSize;var d=0;if(J)d|=8;if(!B&&(y||f))d|=2048;var S=0,v=0;if(O)S|=16;if(X==="UNIX")v=798,S|=Oj(G.unixPermissions,O);else v=20,S|=Pj(G.dosPermissions,O);if(C=b.getUTCHours(),C=C<<6,C=C|b.getUTCMinutes(),C=C<<5,C=C|b.getUTCSeconds()/2,P=b.getUTCFullYear()-1980,P=P<<4,P=P|b.getUTCMonth()+1,P=P<<5,P=P|b.getUTCDate(),y)w=E0(1,1)+E0(L9(V),4)+U,K+="up"+E0(w.length,2)+w;if(f)L=E0(1,1)+E0(L9(z),4)+j,K+="uc"+E0(L.length,2)+L;var R="";R+=`
3
+ \x00`,R+=E0(d,2),R+=W.magic,R+=E0(C,2),R+=E0(P,2),R+=E0(k.crc32,4),R+=E0(k.compressedSize,4),R+=E0(k.uncompressedSize,4),R+=E0(V.length,2),R+=E0(K.length,2);var D=K5.LOCAL_FILE_HEADER+R+V+K,T=K5.CENTRAL_FILE_HEADER+E0(v,2)+R+E0(z.length,2)+"\x00\x00\x00\x00"+E0(S,4)+E0(q,4)+V+K+z;return{fileRecord:D,dirRecord:T}},Rj=function(Q,J,$,q,X){var Y="",G=H6.transformTo("string",X(q));return Y=K5.CENTRAL_DIRECTORY_END+"\x00\x00\x00\x00"+E0(Q,2)+E0(Q,2)+E0(J,4)+E0($,4)+E0(G.length,2)+G,Y},Aj=function(Q){var J="";return J=K5.DATA_DESCRIPTOR+E0(Q.crc32,4)+E0(Q.compressedSize,4)+E0(Q.uncompressedSize,4),J};function M2(Q,J,$,q){j6.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=J,this.zipPlatform=$,this.encodeFileName=q,this.streamFiles=Q,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}H6.inherits(M2,j6);M2.prototype.push=function(Q){var J=Q.meta.percent||0,$=this.entriesCount,q=this._sources.length;if(this.accumulate)this.contentBuffer.push(Q);else this.bytesWritten+=Q.data.length,j6.prototype.push.call(this,{data:Q.data,meta:{currentFile:this.currentFile,percent:$?(J+100*($-q-1))/$:100}})};M2.prototype.openedSource=function(Q){this.currentSourceOffset=this.bytesWritten,this.currentFile=Q.file.name;var J=this.streamFiles&&!Q.file.dir;if(J){var $=N9(Q,J,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0};M2.prototype.closedSource=function(Q){this.accumulate=!1;var J=this.streamFiles&&!Q.file.dir,$=N9(Q,J,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),J)this.push({data:Aj(Q),meta:{percent:100}});else{this.push({data:$.fileRecord,meta:{percent:0}});while(this.contentBuffer.length)this.push(this.contentBuffer.shift())}this.currentFile=null};M2.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,q=Rj(this.dirRecords.length,$,Q,this.zipComment,this.encodeFileName);this.push({data:q,meta:{percent:100}})};M2.prototype.prepareNextSource=function(){if(this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused)this.previous.pause();else this.previous.resume()};M2.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};M2.prototype.resume=function(){if(!j6.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};M2.prototype.error=function(Q){var J=this._sources;if(!j6.prototype.error.call(this,Q))return!1;for(var $=0;$<J.length;$++)try{J[$].error(Q)}catch(q){}return!0};M2.prototype.lock=function(){j6.prototype.lock.call(this);var Q=this._sources;for(var J=0;J<Q.length;J++)Q[J].lock()};D9.exports=M2});var O9=g((Ej)=>{var Ij=L7(),Sj=C9(),vj=function(Q,J){var $=Q||J,q=Ij[$];if(!q)throw Error($+" is not a valid compression method !");return q};Ej.generateWorker=function(Q,J,$){var q=new Sj(J.streamFiles,$,J.platform,J.encodeFileName),X=0;try{Q.forEach(function(Y,G){X++;var W=vj(G.options.compression,J.compression),B=G.options.compressionOptions||J.compressionOptions||{},V=G.dir,U=G.date;G._compressWorker(W,B).withStreamInfo("file",{name:Y,dir:V,date:U,comment:G.comment||"",unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions}).pipe(q)}),q.entriesCount=X}catch(Y){q.error(Y)}return q}});var R9=g((wD,P9)=>{var kj=x0(),H5=Q2();function K8(Q,J){H5.call(this,"Nodejs stream input adapter for "+Q),this._upstreamEnded=!1,this._bindStream(J)}kj.inherits(K8,H5);K8.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()})};K8.prototype.pause=function(){if(!H5.prototype.pause.call(this))return!1;return this._stream.pause(),!0};K8.prototype.resume=function(){if(!H5.prototype.resume.call(this))return!1;if(this._upstreamEnded)this.end();else this._stream.resume();return!0};P9.exports=K8});var g9=g((LD,x9)=>{var Tj=$6(),H8=x0(),v9=Q2(),xj=R4(),E9=A4(),A9=n8(),gj=I$(),fj=O9(),I9=p6(),_j=R9(),Z9=function(Q,J,$){var q=H8.getTypeOf(J),X,Y=H8.extend($||{},E9);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=k9(Q);if(Y.createFolders&&(X=yj(Q)))T9.call(this,X,!0);var G=q==="string"&&Y.binary===!1&&Y.base64===!1;if(!$||typeof $.binary>"u")Y.binary=!G;var W=J instanceof A9&&J.uncompressedSize===0;if(W||Y.dir||!J||J.length===0)Y.base64=!1,Y.binary=!0,J="",Y.compression="STORE",q="string";var B=null;if(J instanceof A9||J instanceof v9)B=J;else if(I9.isNode&&I9.isStream(J))B=new _j(Q,J);else B=H8.prepareContent(Q,J,Y.binary,Y.optimizedBinaryString,Y.base64);var V=new gj(Q,B,Y);this.files[Q]=V},yj=function(Q){if(Q.slice(-1)==="/")Q=Q.substring(0,Q.length-1);var J=Q.lastIndexOf("/");return J>0?Q.substring(0,J):""},k9=function(Q){if(Q.slice(-1)!=="/")Q+="/";return Q},T9=function(Q,J){if(J=typeof J<"u"?J:E9.createFolders,Q=k9(Q),!this.files[Q])Z9.call(this,Q,null,{dir:!0,createFolders:J});return this.files[Q]};function S9(Q){return Object.prototype.toString.call(Q)==="[object RegExp]"}var bj={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(Q){var J,$,q;for(J in this.files)if(q=this.files[J],$=J.slice(this.root.length,J.length),$&&J.slice(0,this.root.length)===this.root)Q($,q)},filter:function(Q){var J=[];return this.forEach(function($,q){if(Q($,q))J.push(q)}),J},file:function(Q,J,$){if(arguments.length===1)if(S9(Q)){var q=Q;return this.filter(function(Y,G){return!G.dir&&q.test(Y)})}else{var X=this.files[this.root+Q];if(X&&!X.dir)return X;else return null}else Q=this.root+Q,Z9.call(this,Q,J,$);return this},folder:function(Q){if(!Q)return this;if(S9(Q))return this.filter(function(X,Y){return Y.dir&&Q.test(X)});var J=this.root+Q,$=T9.call(this,J),q=this.clone();return q.root=$.name,q},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(X,Y){return Y.name.slice(0,Q.length)===Q});for(var q=0;q<$.length;q++)delete this.files[$[q].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($=H8.extend(Q||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Tj.utf8encode}),$.type=$.type.toLowerCase(),$.compression=$.compression.toUpperCase(),$.type==="binarystring")$.type="string";if(!$.type)throw Error("No output type specified.");if(H8.checkSupport($.type),$.platform==="darwin"||$.platform==="freebsd"||$.platform==="linux"||$.platform==="sunos")$.platform="UNIX";if($.platform==="win32")$.platform="DOS";var q=$.comment||this.comment||"";J=fj.generateWorker(this,$,q)}catch(X){J=new v9("error"),J.error(X)}return new xj(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)}};x9.exports=bj});var C7=g((ND,_9)=>{var hj=x0();function f9(Q){this.data=Q,this.length=Q.length,this.index=0,this.zero=0}f9.prototype={checkOffset:function(Q){this.checkIndex(this.index+Q)},checkIndex:function(Q){if(this.length<this.zero+Q||Q<0)throw 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 hj.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))}};_9.exports=f9});var O7=g((DD,b9)=>{var y9=C7(),mj=x0();function M6(Q){y9.call(this,Q);for(var J=0;J<this.data.length;J++)Q[J]=Q[J]&255}mj.inherits(M6,y9);M6.prototype.byteAt=function(Q){return this.data[this.zero+Q]};M6.prototype.lastIndexOfSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),q=Q.charCodeAt(2),X=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]===q&&this.data[Y+3]===X)return Y-this.zero;return-1};M6.prototype.readAndCheckSignature=function(Q){var J=Q.charCodeAt(0),$=Q.charCodeAt(1),q=Q.charCodeAt(2),X=Q.charCodeAt(3),Y=this.readData(4);return J===Y[0]&&$===Y[1]&&q===Y[2]&&X===Y[3]};M6.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};b9.exports=M6});var c9=g((CD,m9)=>{var h9=C7(),cj=x0();function F6(Q){h9.call(this,Q)}cj.inherits(F6,h9);F6.prototype.byteAt=function(Q){return this.data.charCodeAt(this.zero+Q)};F6.prototype.lastIndexOfSignature=function(Q){return this.data.lastIndexOf(Q)-this.zero};F6.prototype.readAndCheckSignature=function(Q){var J=this.readData(4);return Q===J};F6.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};m9.exports=F6});var R7=g((OD,p9)=>{var u9=O7(),uj=x0();function P7(Q){u9.call(this,Q)}uj.inherits(P7,u9);P7.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};p9.exports=P7});var i9=g((PD,d9)=>{var l9=R7(),pj=x0();function A7(Q){l9.call(this,Q)}pj.inherits(A7,l9);A7.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};d9.exports=A7});var I7=g((RD,o9)=>{var j5=x0(),n9=u2(),lj=O7(),dj=c9(),ij=i9(),nj=R7();o9.exports=function(Q){var J=j5.getTypeOf(Q);if(j5.checkSupport(J),J==="string"&&!n9.uint8array)return new dj(Q);if(J==="nodebuffer")return new ij(Q);if(n9.uint8array)return new nj(j5.transformTo("uint8array",Q));return new lj(j5.transformTo("array",Q))}});var t9=g((AD,s9)=>{var S7=I7(),U1=x0(),oj=n8(),r9=i8(),M5=$6(),F5=L7(),rj=u2(),aj=0,sj=3,tj=function(Q){for(var J in F5){if(!Object.prototype.hasOwnProperty.call(F5,J))continue;if(F5[J].magic===Q)return F5[J]}return null};function a9(Q,J){this.options=Q,this.loadOptions=J}a9.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=tj(this.compressionMethod),J===null)throw Error("Corrupted zip : compression "+U1.pretty(this.compressionMethod)+" unknown (inner file : "+U1.transformTo("string",this.fileName)+")");this.decompressed=new oj(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===aj)this.dosPermissions=this.externalFileAttributes&63;if(Q===sj)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=S7(this.extraFields[1].value);if(this.uncompressedSize===U1.MAX_VALUE_32BITS)this.uncompressedSize=Q.readInt(8);if(this.compressedSize===U1.MAX_VALUE_32BITS)this.compressedSize=Q.readInt(8);if(this.localHeaderOffset===U1.MAX_VALUE_32BITS)this.localHeaderOffset=Q.readInt(8);if(this.diskNumberStart===U1.MAX_VALUE_32BITS)this.diskNumberStart=Q.readInt(4)},readExtraFields:function(Q){var J=Q.index+this.extraFieldsLength,$,q,X;if(!this.extraFields)this.extraFields={};while(Q.index+4<J)$=Q.readInt(2),q=Q.readInt(2),X=Q.readData(q),this.extraFields[$]={id:$,length:q,value:X};Q.setIndex(J)},handleUTF8:function(){var Q=rj.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=M5.utf8decode(this.fileName),this.fileCommentStr=M5.utf8decode(this.fileComment);else{var J=this.findExtraFieldUnicodePath();if(J!==null)this.fileNameStr=J;else{var $=U1.transformTo(Q,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var q=this.findExtraFieldUnicodeComment();if(q!==null)this.fileCommentStr=q;else{var X=U1.transformTo(Q,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(X)}}},findExtraFieldUnicodePath:function(){var Q=this.extraFields[28789];if(Q){var J=S7(Q.value);if(J.readInt(1)!==1)return null;if(r9(this.fileName)!==J.readInt(4))return null;return M5.utf8decode(J.readData(Q.length-5))}return null},findExtraFieldUnicodeComment:function(){var Q=this.extraFields[25461];if(Q){var J=S7(Q.value);if(J.readInt(1)!==1)return null;if(r9(this.fileComment)!==J.readInt(4))return null;return M5.utf8decode(J.readData(Q.length-5))}return null}};s9.exports=a9});var JX=g((ID,QX)=>{var ej=I7(),i2=x0(),F2=N7(),QM=t9(),JM=u2();function e9(Q){this.files=[],this.loadOptions=Q}e9.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 ("+i2.pretty(J)+", expected "+i2.pretty(Q)+")")}},isSignature:function(Q,J){var $=this.reader.index;this.reader.setIndex(Q);var q=this.reader.readString(4),X=q===J;return this.reader.setIndex($),X},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=JM.uint8array?"uint8array":"array",$=i2.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,$,q,X;while(J<Q)$=this.reader.readInt(2),q=this.reader.readInt(4),X=this.reader.readData(q),this.zip64ExtensibleData[$]={id:$,length:q,value:X}},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(F2.LOCAL_FILE_HEADER),J.readLocalPart(this.reader),J.handleUTF8(),J.processAttributes()},readCentralDir:function(){var Q;this.reader.setIndex(this.centralDirOffset);while(this.reader.readAndCheckSignature(F2.CENTRAL_FILE_HEADER))Q=new QM({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(F2.CENTRAL_DIRECTORY_END);if(Q<0){var J=!this.isSignature(0,F2.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(F2.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i2.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i2.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i2.MAX_VALUE_16BITS||this.centralDirRecords===i2.MAX_VALUE_16BITS||this.centralDirSize===i2.MAX_VALUE_32BITS||this.centralDirOffset===i2.MAX_VALUE_32BITS){if(this.zip64=!0,Q=this.reader.lastIndexOfSignature(F2.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(F2.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,F2.ZIP64_CENTRAL_DIRECTORY_END)){if(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(F2.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(F2.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var q=this.centralDirOffset+this.centralDirSize;if(this.zip64)q+=20,q+=12+this.zip64EndOfCentralSize;var X=$-q;if(X>0)if(this.isSignature($,F2.CENTRAL_FILE_HEADER));else this.reader.zero=X;else if(X<0)throw Error("Corrupted zip: missing "+Math.abs(X)+" bytes.")},prepareReader:function(Q){this.reader=ej(Q)},load:function(Q){this.prepareReader(Q),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}};QX.exports=e9});var XX=g((SD,qX)=>{var v7=x0(),z5=e1(),$M=$6(),qM=JX(),XM=v4(),$X=p6();function YM(Q){return new z5.Promise(function(J,$){var q=Q.decompressed.getContentWorker().pipe(new XM);q.on("error",function(X){$(X)}).on("end",function(){if(q.streamInfo.crc32!==Q.decompressed.crc32)$(Error("Corrupted zip : CRC32 mismatch"));else J()}).resume()})}qX.exports=function(Q,J){var $=this;if(J=v7.extend(J||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:$M.utf8decode}),$X.isNode&&$X.isStream(Q))return z5.Promise.reject(Error("JSZip can't accept a stream when loading a zip file."));return v7.prepareContent("the loaded zip file",Q,!0,J.optimizedBinaryString,J.base64).then(function(q){var X=new qM(J);return X.load(q),X}).then(function(X){var Y=[z5.Promise.resolve(X)],G=X.files;if(J.checkCRC32)for(var W=0;W<G.length;W++)Y.push(YM(G[W]));return z5.Promise.all(Y)}).then(function(X){var Y=X.shift(),G=Y.files;for(var W=0;W<G.length;W++){var B=G[W],V=B.fileNameStr,U=v7.resolve(B.fileNameStr);if($.file(U,B.decompressed,{binary:!0,optimizedBinaryString:!0,date:B.date,dir:B.dir,comment:B.fileCommentStr.length?B.fileCommentStr:null,unixPermissions:B.unixPermissions,dosPermissions:B.dosPermissions,createFolders:J.createFolders}),!B.dir)$.file(U).unsafeOriginalName=V}if(Y.zipComment.length)$.comment=Y.zipComment;return $})}});var GX=g((vD,YX)=>{function U2(){if(!(this instanceof U2))return new U2;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 U2;for(var J in this)if(typeof this[J]!=="function")Q[J]=this[J];return Q}}U2.prototype=g9();U2.prototype.loadAsync=XX();U2.support=u2();U2.defaults=A4();U2.version="3.10.1";U2.loadAsync=function(Q,J){return new U2().loadAsync(Q,J)};U2.external=e1();YX.exports=U2});var DX=g((g7)=>{/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */var NX;(function(Q){if(typeof DO_NOT_EXPORT_CRC>"u")if(typeof g7==="object")Q(g7);else if(typeof define==="function"&&define.amd)define(function(){var J={};return Q(J),J});else Q(NX={});else Q(NX={})})(function(Q){Q.version="1.2.2";function J(){var k=0,d=Array(256);for(var S=0;S!=256;++S)k=S,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,k=k&1?-2097792136^k>>>1:k>>>1,d[S]=k;return typeof Int32Array<"u"?new Int32Array(d):d}var $=J();function q(k){var d=0,S=0,v=0,R=typeof Int32Array<"u"?new Int32Array(4096):Array(4096);for(v=0;v!=256;++v)R[v]=k[v];for(v=0;v!=256;++v){S=k[v];for(d=256+v;d<4096;d+=256)S=R[d]=S>>>8^k[S&255]}var D=[];for(v=1;v!=16;++v)D[v-1]=typeof Int32Array<"u"?R.subarray(v*256,v*256+256):R.slice(v*256,v*256+256);return D}var X=q($),Y=X[0],G=X[1],W=X[2],B=X[3],V=X[4],U=X[5],M=X[6],z=X[7],j=X[8],y=X[9],f=X[10],C=X[11],P=X[12],K=X[13],w=X[14];function L(k,d){var S=d^-1;for(var v=0,R=k.length;v<R;)S=S>>>8^$[(S^k.charCodeAt(v++))&255];return~S}function O(k,d){var S=d^-1,v=k.length-15,R=0;for(;R<v;)S=w[k[R++]^S&255]^K[k[R++]^S>>8&255]^P[k[R++]^S>>16&255]^C[k[R++]^S>>>24]^f[k[R++]]^y[k[R++]]^j[k[R++]]^z[k[R++]]^M[k[R++]]^U[k[R++]]^V[k[R++]]^B[k[R++]]^W[k[R++]]^G[k[R++]]^Y[k[R++]]^$[k[R++]];v+=15;while(R<v)S=S>>>8^$[(S^k[R++])&255];return~S}function b(k,d){var S=d^-1;for(var v=0,R=k.length,D=0,T=0;v<R;)if(D=k.charCodeAt(v++),D<128)S=S>>>8^$[(S^D)&255];else if(D<2048)S=S>>>8^$[(S^(192|D>>6&31))&255],S=S>>>8^$[(S^(128|D&63))&255];else if(D>=55296&&D<57344)D=(D&1023)+64,T=k.charCodeAt(v++)&1023,S=S>>>8^$[(S^(240|D>>8&7))&255],S=S>>>8^$[(S^(128|D>>2&63))&255],S=S>>>8^$[(S^(128|T>>6&15|(D&3)<<4))&255],S=S>>>8^$[(S^(128|T&63))&255];else S=S>>>8^$[(S^(224|D>>12&15))&255],S=S>>>8^$[(S^(128|D>>6&63))&255],S=S>>>8^$[(S^(128|D&63))&255];return~S}Q.table=$,Q.bstr=L,Q.buf=O,Q.str=b})});var f0=g((f7,OX)=>{var C8=function(Q){return Q&&Q.Math===Math&&Q};OX.exports=C8(typeof globalThis=="object"&&globalThis)||C8(typeof window=="object"&&window)||C8(typeof self=="object"&&self)||C8(typeof global=="object"&&global)||C8(typeof f7=="object"&&f7)||function(){return this}()||Function("return this")()});var a2=g((bC,PX)=>{PX.exports=function(Q){try{return!!Q()}catch(J){return!0}}});var z1=g((hC,RX)=>{var NF=a2();RX.exports=!NF(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var _7=g((mC,AX)=>{var DF=a2();AX.exports=!DF(function(){var Q=function(){}.bind();return typeof Q!="function"||Q.hasOwnProperty("prototype")})});var O5=g((cC,IX)=>{var CF=_7(),C5=Function.prototype.call;IX.exports=CF?C5.bind(C5):function(){return C5.apply(C5,arguments)}});var EX=g((PF)=>{var SX={}.propertyIsEnumerable,vX=Object.getOwnPropertyDescriptor,OF=vX&&!SX.call({1:2},1);PF.f=OF?function(J){var $=vX(this,J);return!!$&&$.enumerable}:SX});var y7=g((pC,ZX)=>{ZX.exports=function(Q,J){return{enumerable:!(Q&1),configurable:!(Q&2),writable:!(Q&4),value:J}}});var o0=g((lC,xX)=>{var kX=_7(),TX=Function.prototype,b7=TX.call,AF=kX&&TX.bind.bind(b7,b7);xX.exports=kX?AF:function(Q){return function(){return b7.apply(Q,arguments)}}});var P5=g((dC,fX)=>{var gX=o0(),IF=gX({}.toString),SF=gX("".slice);fX.exports=function(Q){return SF(IF(Q),8,-1)}});var yX=g((iC,_X)=>{var vF=o0(),EF=a2(),ZF=P5(),h7=Object,kF=vF("".split);_X.exports=EF(function(){return!h7("z").propertyIsEnumerable(0)})?function(Q){return ZF(Q)==="String"?kF(Q,""):h7(Q)}:h7});var m7=g((nC,bX)=>{bX.exports=function(Q){return Q===null||Q===void 0}});var c7=g((oC,hX)=>{var TF=m7(),xF=TypeError;hX.exports=function(Q){if(TF(Q))throw new xF("Can't call method on "+Q);return Q}});var R5=g((rC,mX)=>{var gF=yX(),fF=c7();mX.exports=function(Q){return gF(fF(Q))}});var K2=g((aC,cX)=>{var u7=typeof document=="object"&&document.all;cX.exports=typeof u7>"u"&&u7!==void 0?function(Q){return typeof Q=="function"||Q===u7}:function(Q){return typeof Q=="function"}});var l1=g((sC,uX)=>{var _F=K2();uX.exports=function(Q){return typeof Q=="object"?Q!==null:_F(Q)}});var l7=g((tC,pX)=>{var p7=f0(),yF=K2(),bF=function(Q){return yF(Q)?Q:void 0};pX.exports=function(Q,J){return arguments.length<2?bF(p7[Q]):p7[Q]&&p7[Q][J]}});var dX=g((eC,lX)=>{var hF=o0();lX.exports=hF({}.isPrototypeOf)});var rX=g((QO,oX)=>{var mF=f0(),iX=mF.navigator,nX=iX&&iX.userAgent;oX.exports=nX?String(nX):""});var $Y=g((JO,JY)=>{var QY=f0(),d7=rX(),aX=QY.process,sX=QY.Deno,tX=aX&&aX.versions||sX&&sX.version,eX=tX&&tX.v8,C2,A5;if(eX)C2=eX.split("."),A5=C2[0]>0&&C2[0]<4?1:+(C2[0]+C2[1]);if(!A5&&d7){if(C2=d7.match(/Edge\/(\d+)/),!C2||C2[1]>=74){if(C2=d7.match(/Chrome\/(\d+)/),C2)A5=+C2[1]}}JY.exports=A5});var i7=g(($O,XY)=>{var qY=$Y(),cF=a2(),uF=f0(),pF=uF.String;XY.exports=!!Object.getOwnPropertySymbols&&!cF(function(){var Q=Symbol("symbol detection");return!pF(Q)||!(Object(Q)instanceof Symbol)||!Symbol.sham&&qY&&qY<41})});var n7=g((qO,YY)=>{var lF=i7();YY.exports=lF&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var o7=g((XO,GY)=>{var dF=l7(),iF=K2(),nF=dX(),oF=n7(),rF=Object;GY.exports=oF?function(Q){return typeof Q=="symbol"}:function(Q){var J=dF("Symbol");return iF(J)&&nF(J.prototype,rF(Q))}});var VY=g((YO,WY)=>{var aF=String;WY.exports=function(Q){try{return aF(Q)}catch(J){return"Object"}}});var r7=g((GO,BY)=>{var sF=K2(),tF=VY(),eF=TypeError;BY.exports=function(Q){if(sF(Q))return Q;throw new eF(tF(Q)+" is not a function")}});var KY=g((WO,UY)=>{var Qz=r7(),Jz=m7();UY.exports=function(Q,J){var $=Q[J];return Jz($)?void 0:Qz($)}});var jY=g((VO,HY)=>{var a7=O5(),s7=K2(),t7=l1(),$z=TypeError;HY.exports=function(Q,J){var $,q;if(J==="string"&&s7($=Q.toString)&&!t7(q=a7($,Q)))return q;if(s7($=Q.valueOf)&&!t7(q=a7($,Q)))return q;if(J!=="string"&&s7($=Q.toString)&&!t7(q=a7($,Q)))return q;throw new $z("Can't convert object to primitive value")}});var FY=g((BO,MY)=>{MY.exports=!1});var I5=g((UO,wY)=>{var zY=f0(),qz=Object.defineProperty;wY.exports=function(Q,J){try{qz(zY,Q,{value:J,configurable:!0,writable:!0})}catch($){zY[Q]=J}return J}});var S5=g((KO,DY)=>{var Xz=FY(),Yz=f0(),Gz=I5(),LY="__core-js_shared__",NY=DY.exports=Yz[LY]||Gz(LY,{});(NY.versions||(NY.versions=[])).push({version:"3.49.0",mode:Xz?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var e7=g((HO,OY)=>{var CY=S5();OY.exports=function(Q,J){return CY[Q]||(CY[Q]=J||{})}});var RY=g((jO,PY)=>{var Wz=c7(),Vz=Object;PY.exports=function(Q){return Vz(Wz(Q))}});var s2=g((MO,AY)=>{var Bz=o0(),Uz=RY(),Kz=Bz({}.hasOwnProperty);AY.exports=Object.hasOwn||function(J,$){return Kz(Uz(J),$)}});var QQ=g((FO,IY)=>{var Hz=o0(),jz=0,Mz=Math.random(),Fz=Hz(1.1 .toString);IY.exports=function(Q){return"Symbol("+(Q===void 0?"":Q)+")_"+Fz(++jz+Mz,36)}});var v5=g((zO,vY)=>{var zz=f0(),wz=e7(),SY=s2(),Lz=QQ(),Nz=i7(),Dz=n7(),T6=zz.Symbol,JQ=wz("wks"),Cz=Dz?T6.for||T6:T6&&T6.withoutSetter||Lz;vY.exports=function(Q){if(!SY(JQ,Q))JQ[Q]=Nz&&SY(T6,Q)?T6[Q]:Cz("Symbol."+Q);return JQ[Q]}});var TY=g((wO,kY)=>{var Oz=O5(),EY=l1(),ZY=o7(),Pz=KY(),Rz=jY(),Az=v5(),Iz=TypeError,Sz=Az("toPrimitive");kY.exports=function(Q,J){if(!EY(Q)||ZY(Q))return Q;var $=Pz(Q,Sz),q;if($){if(J===void 0)J="default";if(q=Oz($,Q,J),!EY(q)||ZY(q))return q;throw new Iz("Can't convert object to primitive value")}if(J===void 0)J="number";return Rz(Q,J)}});var $Q=g((LO,xY)=>{var vz=TY(),Ez=o7();xY.exports=function(Q){var J=vz(Q,"string");return Ez(J)?J:J+""}});var _Y=g((NO,fY)=>{var Zz=f0(),gY=l1(),qQ=Zz.document,kz=gY(qQ)&&gY(qQ.createElement);fY.exports=function(Q){return kz?qQ.createElement(Q):{}}});var XQ=g((DO,yY)=>{var Tz=z1(),xz=a2(),gz=_Y();yY.exports=!Tz&&!xz(function(){return Object.defineProperty(gz("div"),"a",{get:function(){return 7}}).a!==7})});var YQ=g((pz)=>{var fz=z1(),_z=O5(),yz=EX(),bz=y7(),hz=R5(),mz=$Q(),cz=s2(),uz=XQ(),bY=Object.getOwnPropertyDescriptor;pz.f=fz?bY:function(J,$){if(J=hz(J),$=mz($),uz)try{return bY(J,$)}catch(q){}if(cz(J,$))return bz(!_z(yz.f,J,$),J[$])}});var mY=g((OO,hY)=>{var dz=z1(),iz=a2();hY.exports=dz&&iz(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var GQ=g((PO,cY)=>{var nz=l1(),oz=String,rz=TypeError;cY.exports=function(Q){if(nz(Q))return Q;throw new rz(oz(Q)+" is not an object")}});var Z5=g((J3)=>{var az=z1(),sz=XQ(),tz=mY(),E5=GQ(),uY=$Q(),ez=TypeError,WQ=Object.defineProperty,Q3=Object.getOwnPropertyDescriptor,VQ="enumerable",BQ="configurable",UQ="writable";J3.f=az?tz?function(J,$,q){if(E5(J),$=uY($),E5(q),typeof J==="function"&&$==="prototype"&&"value"in q&&UQ in q&&!q[UQ]){var X=Q3(J,$);if(X&&X[UQ])J[$]=q.value,q={configurable:BQ in q?q[BQ]:X[BQ],enumerable:VQ in q?q[VQ]:X[VQ],writable:!1}}return WQ(J,$,q)}:WQ:function(J,$,q){if(E5(J),$=uY($),E5(q),sz)try{return WQ(J,$,q)}catch(X){}if("get"in q||"set"in q)throw new ez("Accessors not supported");if("value"in q)J[$]=q.value;return J}});var KQ=g((AO,pY)=>{var q3=z1(),X3=Z5(),Y3=y7();pY.exports=q3?function(Q,J,$){return X3.f(Q,J,Y3(1,$))}:function(Q,J,$){return Q[J]=$,Q}});var iY=g((IO,dY)=>{var HQ=z1(),G3=s2(),lY=Function.prototype,W3=HQ&&Object.getOwnPropertyDescriptor,jQ=G3(lY,"name"),V3=jQ&&function(){}.name==="something",B3=jQ&&(!HQ||HQ&&W3(lY,"name").configurable);dY.exports={EXISTS:jQ,PROPER:V3,CONFIGURABLE:B3}});var oY=g((SO,nY)=>{var U3=o0(),K3=K2(),MQ=S5(),H3=U3(Function.toString);if(!K3(MQ.inspectSource))MQ.inspectSource=function(Q){return H3(Q)};nY.exports=MQ.inspectSource});var sY=g((vO,aY)=>{var j3=f0(),M3=K2(),rY=j3.WeakMap;aY.exports=M3(rY)&&/native code/.test(String(rY))});var QG=g((EO,eY)=>{var F3=e7(),z3=QQ(),tY=F3("keys");eY.exports=function(Q){return tY[Q]||(tY[Q]=z3(Q))}});var FQ=g((ZO,JG)=>{JG.exports={}});var YG=g((kO,XG)=>{var w3=sY(),qG=f0(),L3=l1(),N3=KQ(),zQ=s2(),wQ=S5(),D3=QG(),C3=FQ(),$G="Object already initialized",LQ=qG.TypeError,O3=qG.WeakMap,k5,O8,T5,P3=function(Q){return T5(Q)?O8(Q):k5(Q,{})},R3=function(Q){return function(J){var $;if(!L3(J)||($=O8(J)).type!==Q)throw new LQ("Incompatible receiver, "+Q+" required");return $}};if(w3||wQ.state)H2=wQ.state||(wQ.state=new O3),H2.get=H2.get,H2.has=H2.has,H2.set=H2.set,k5=function(Q,J){if(H2.has(Q))throw new LQ($G);return J.facade=Q,H2.set(Q,J),J},O8=function(Q){return H2.get(Q)||{}},T5=function(Q){return H2.has(Q)};else w1=D3("state"),C3[w1]=!0,k5=function(Q,J){if(zQ(Q,w1))throw new LQ($G);return J.facade=Q,N3(Q,w1,J),J},O8=function(Q){return zQ(Q,w1)?Q[w1]:{}},T5=function(Q){return zQ(Q,w1)};var H2,w1;XG.exports={set:k5,get:O8,has:T5,enforce:P3,getterFor:R3}});var BG=g((TO,VG)=>{var DQ=o0(),A3=a2(),I3=K2(),x5=s2(),NQ=z1(),S3=iY().CONFIGURABLE,v3=oY(),WG=YG(),E3=WG.enforce,Z3=WG.get,GG=String,g5=Object.defineProperty,k3=DQ("".slice),T3=DQ("".replace),x3=DQ([].join),g3=NQ&&!A3(function(){return g5(function(){},"length",{value:8}).length!==8}),f3=String(String).split("String"),_3=VG.exports=function(Q,J,$){if(k3(GG(J),0,7)==="Symbol(")J="["+T3(GG(J),/^Symbol\(([^)]*)\).*$/,"$1")+"]";if($&&$.getter)J="get "+J;if($&&$.setter)J="set "+J;if(!x5(Q,"name")||S3&&Q.name!==J)if(NQ)g5(Q,"name",{value:J,configurable:!0});else Q.name=J;if(g3&&$&&x5($,"arity")&&Q.length!==$.arity)g5(Q,"length",{value:$.arity});try{if($&&x5($,"constructor")&&$.constructor){if(NQ)g5(Q,"prototype",{writable:!1})}else if(Q.prototype)Q.prototype=void 0}catch(X){}var q=E3(Q);if(!x5(q,"source"))q.source=x3(f3,typeof J=="string"?J:"");return Q};Function.prototype.toString=_3(function(){return I3(this)&&Z3(this).source||v3(this)},"toString")});var KG=g((xO,UG)=>{var y3=K2(),b3=Z5(),h3=BG(),m3=I5();UG.exports=function(Q,J,$,q){if(!q)q={};var X=q.enumerable,Y=q.name!==void 0?q.name:J;if(y3($))h3($,Y,q);if(q.global)if(X)Q[J]=$;else m3(J,$);else{try{if(!q.unsafe)delete Q[J];else if(Q[J])X=!0}catch(G){}if(X)Q[J]=$;else b3.f(Q,J,{value:$,enumerable:!1,configurable:!q.nonConfigurable,writable:!q.nonWritable})}return Q}});var jG=g((gO,HG)=>{var{ceil:c3,floor:u3}=Math;HG.exports=Math.trunc||function(J){var $=+J;return($>0?u3:c3)($)}});var CQ=g((fO,MG)=>{var p3=jG();MG.exports=function(Q){var J=+Q;return J!==J||J===0?0:p3(J)}});var zG=g((_O,FG)=>{var l3=CQ(),d3=Math.max,i3=Math.min;FG.exports=function(Q,J){var $=l3(Q);return $<0?d3($+J,0):i3($,J)}});var LG=g((yO,wG)=>{var n3=CQ(),o3=Math.min;wG.exports=function(Q){var J=n3(Q);return J>0?o3(J,9007199254740991):0}});var OQ=g((bO,NG)=>{var r3=LG();NG.exports=function(Q){return r3(Q.length)}});var OG=g((hO,CG)=>{var a3=R5(),s3=zG(),t3=OQ(),DG=function(Q){return function(J,$,q){var X=a3(J),Y=t3(X);if(Y===0)return!Q&&-1;var G=s3(q,Y),W;if(Q&&$!==$){while(Y>G)if(W=X[G++],W!==W)return!0}else for(;Y>G;G++)if((Q||(G in X))&&X[G]===$)return Q||G||0;return!Q&&-1}};CG.exports={includes:DG(!0),indexOf:DG(!1)}});var AG=g((mO,RG)=>{var e3=o0(),PQ=s2(),Qw=R5(),Jw=OG().indexOf,$w=FQ(),PG=e3([].push);RG.exports=function(Q,J){var $=Qw(Q),q=0,X=[],Y;for(Y in $)!PQ($w,Y)&&PQ($,Y)&&PG(X,Y);while(J.length>q)if(PQ($,Y=J[q++]))~Jw(X,Y)||PG(X,Y);return X}});var SG=g((cO,IG)=>{IG.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var vG=g((Gw)=>{var qw=AG(),Xw=SG(),Yw=Xw.concat("length","prototype");Gw.f=Object.getOwnPropertyNames||function(J){return qw(J,Yw)}});var EG=g((Vw)=>{Vw.f=Object.getOwnPropertySymbols});var kG=g((lO,ZG)=>{var Uw=l7(),Kw=o0(),Hw=vG(),jw=EG(),Mw=GQ(),Fw=Kw([].concat);ZG.exports=Uw("Reflect","ownKeys")||function(J){var $=Hw.f(Mw(J)),q=jw.f;return q?Fw($,q(J)):$}});var gG=g((dO,xG)=>{var TG=s2(),zw=kG(),ww=YQ(),Lw=Z5();xG.exports=function(Q,J,$){var q=zw(J),X=Lw.f,Y=ww.f;for(var G=0;G<q.length;G++){var W=q[G];if(!TG(Q,W)&&!($&&TG($,W)))X(Q,W,Y(J,W))}}});var _G=g((iO,fG)=>{var Nw=a2(),Dw=K2(),Cw=/#|\.prototype\./,P8=function(Q,J){var $=Pw[Ow(Q)];return $===Aw?!0:$===Rw?!1:Dw(J)?Nw(J):!!J},Ow=P8.normalize=function(Q){return String(Q).replace(Cw,".").toLowerCase()},Pw=P8.data={},Rw=P8.NATIVE="N",Aw=P8.POLYFILL="P";fG.exports=P8});var d1=g((nO,yG)=>{var f5=f0(),Iw=YQ().f,Sw=KQ(),vw=KG(),Ew=I5(),Zw=gG(),kw=_G();yG.exports=function(Q,J){var{target:$,global:q,stat:X}=Q,Y,G,W,B,V,U;if(q)G=f5;else if(X)G=f5[$]||Ew($,{});else G=f5[$]&&f5[$].prototype;if(G)for(W in J){if(V=J[W],Q.dontCallGetSet)U=Iw(G,W),B=U&&U.value;else B=G[W];if(Y=kw(q?W:$+(X?".":"#")+W,Q.forced),!Y&&B!==void 0){if(typeof V==typeof B)continue;Zw(V,B)}if(Q.sham||B&&B.sham)Sw(V,"sham",!0);vw(G,W,V,Q)}}});var hG=g((oO,bG)=>{var Tw=OQ();bG.exports=function(Q,J,$){var q=0,X=arguments.length>2?$:Tw(J),Y=new Q(X);while(X>q)Y[q]=J[q++];return Y}});var RQ=g((rO,mG)=>{var xw=l1(),gw=String,fw=TypeError;mG.exports=function(Q){if(Q===void 0||xw(Q))return Q;throw new fw(gw(Q)+" is not an object or undefined")}});var _5=g((aO,cG)=>{var _w=TypeError;cG.exports=function(Q){if(typeof Q=="string")return Q;throw new _w("Argument is not a string")}});var AQ=g((sO,iG)=>{var dG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",uG=dG+"+/",pG=dG+"-_",lG=function(Q){var J={},$=0;for(;$<64;$++)J[Q.charAt($)]=$;return J};iG.exports={i2c:uG,c2i:lG(uG),i2cUrl:pG,c2iUrl:lG(pG)}});var IQ=g((tO,nG)=>{var yw=TypeError;nG.exports=function(Q){var J=Q&&Q.alphabet;if(J===void 0||J==="base64"||J==="base64url")return J||"base64";throw new yw("Incorrect `alphabet` option")}});var rG=g((eO,oG)=>{oG.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"});var sG=g((QP,aG)=>{var bw=o0(),hw=r7();aG.exports=function(Q,J,$){try{return bw(hw(Object.getOwnPropertyDescriptor(Q,J)[$]))}catch(q){}}});var JW=g((JP,QW)=>{var eG=f0(),mw=sG(),cw=P5(),tG=eG.ArrayBuffer,uw=eG.TypeError;QW.exports=tG&&mw(tG.prototype,"byteLength","get")||function(Q){if(cw(Q)!=="ArrayBuffer")throw new uw("ArrayBuffer expected");return Q.byteLength}});var qW=g(($P,$W)=>{var pw=f0(),lw=rG(),dw=JW(),iw=pw.DataView;$W.exports=function(Q){if(!lw||dw(Q)!==0)return!1;try{return new iw(Q),!1}catch(J){return!0}}});var R8=g((qP,XW)=>{var nw=qW(),ow=TypeError;XW.exports=function(Q){if(nw(Q))throw new ow("ArrayBuffer is detached");return Q}});var ZQ=g((XP,WW)=>{var YW=f0(),rw=o0(),aw=RQ(),sw=_5(),tw=s2(),GW=AQ(),ew=IQ(),QL=R8(),JL=GW.c2i,$L=GW.c2iUrl,L1=YW.SyntaxError,qL=YW.TypeError,i1=rw("".charAt),SQ=function(Q,J){var $=Q.length;for(;J<$;J++){var q=i1(Q,J);if(q!==" "&&q!=="\t"&&q!==`
4
+ `&&q!=="\f"&&q!=="\r")break}return J},vQ=function(Q,J,$){var q=Q.length;if(q<4)Q+=q===2?"AA":"A";var X=(J[i1(Q,0)]<<18)+(J[i1(Q,1)]<<12)+(J[i1(Q,2)]<<6)+J[i1(Q,3)],Y=[X>>16&255,X>>8&255,X&255];if(q===2){if($&&Y[1]!==0)throw new L1("Extra bits");return[Y[0]]}if(q===3){if($&&Y[2]!==0)throw new L1("Extra bits");return[Y[0],Y[1]]}return Y},EQ=function(Q,J,$){var q=J.length;for(var X=0;X<q;X++)Q[$+X]=J[X];return $+q};WW.exports=function(Q,J,$,q){sw(Q),aw(J);var X=ew(J)==="base64"?JL:$L,Y=J?J.lastChunkHandling:void 0;if(Y===void 0)Y="loose";if(Y!=="loose"&&Y!=="strict"&&Y!=="stop-before-partial")throw new qL("Incorrect `lastChunkHandling` option");if($)QL($.buffer);var G=Q.length,W=$||[],B=0,V=0,U="",M=0;if(q)while(!0){if(M=SQ(Q,M),M===G){if(U.length>0){if(Y==="stop-before-partial")break;if(Y==="loose"){if(U.length===1)throw new L1("Malformed padding: exactly one additional character");B=EQ(W,vQ(U,X,!1),B)}else throw new L1("Missing padding")}V=G;break}var z=i1(Q,M);if(++M,z==="="){if(U.length<2)throw new L1("Padding is too early");if(M=SQ(Q,M),U.length===2){if(M===G){if(Y==="stop-before-partial")break;throw new L1("Malformed padding: only one =")}if(i1(Q,M)==="=")++M,M=SQ(Q,M)}if(M<G)throw new L1("Unexpected character after padding");B=EQ(W,vQ(U,X,Y==="strict"),B),V=G;break}if(!tw(X,z))throw new L1("Unexpected character");var j=q-B;if(j===1&&U.length===2||j===2&&U.length===3)break;if(U+=z,U.length===4){if(B=EQ(W,vQ(U,X,!1),B),U="",V=M,B===q)break}}return{bytes:W,read:V,written:B}}});var VW=g(()=>{var XL=d1(),YL=f0(),GL=hG(),WL=ZQ(),x6=YL.Uint8Array,VL=!x6||!x6.fromBase64||!function(){try{x6.fromBase64("a");return}catch(Q){}try{x6.fromBase64("",null)}catch(Q){return!0}}();if(x6)XL({target:"Uint8Array",stat:!0,forced:VL},{fromBase64:function(J){var $=WL(J,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return GL(x6,$.bytes)}})});var BW=g(()=>{VW()});var kQ=g((BP,HW)=>{var KW=f0(),BL=o0(),UL=KW.Uint8Array,UW=KW.SyntaxError,KL=Math.min,HL=BL("".match);HW.exports=function(Q,J){var $=Q.length;if($%2!==0)throw new UW("String should be an even number of characters");var q=J?KL(J.length,$/2):$/2,X=J||new UL(q),Y=HL(Q,/.{2}/g),G=0;for(;G<q;G++){var W=+("0x"+Y[G]+"0");if(W!==W)throw new UW("String should only contain hex characters");X[G]=W>>4}return{bytes:X,read:G<<1}}});var jW=g(()=>{var jL=d1(),ML=f0(),FL=_5(),zL=kQ();if(ML.Uint8Array)jL({target:"Uint8Array",stat:!0},{fromHex:function(J){return zL(FL(J)).bytes}})});var MW=g(()=>{jW()});var wW=g((MP,zW)=>{var wL=v5(),LL=wL("toStringTag"),FW={};FW[LL]="z";zW.exports=String(FW)==="[object z]"});var NW=g((FP,LW)=>{var NL=wW(),DL=K2(),y5=P5(),CL=v5(),OL=CL("toStringTag"),PL=Object,RL=y5(function(){return arguments}())==="Arguments",AL=function(Q,J){try{return Q[J]}catch($){}};LW.exports=NL?y5:function(Q){var J,$,q;return Q===void 0?"Undefined":Q===null?"Null":typeof($=AL(J=PL(Q),OL))=="string"?$:RL?y5(J):(q=y5(J))==="Object"&&DL(J.callee)?"Arguments":q}});var A8=g((zP,DW)=>{var IL=NW(),SL=TypeError;DW.exports=function(Q){if(IL(Q)==="Uint8Array")return Q;throw new SL("Argument is not an Uint8Array")}});var CW=g(()=>{var vL=d1(),EL=f0(),ZL=ZQ(),kL=A8(),b5=EL.Uint8Array,TL=!b5||!b5.prototype.setFromBase64||!function(){var Q=new b5([255,255,255,255,255]);try{Q.setFromBase64("",null);return}catch(J){}try{Q.setFromBase64("a");return}catch(J){}try{Q.setFromBase64("MjYyZg===")}catch(J){return Q[0]===50&&Q[1]===54&&Q[2]===50&&Q[3]===255&&Q[4]===255}}();if(b5)vL({target:"Uint8Array",proto:!0,forced:TL},{setFromBase64:function(J){kL(this);var $=ZL(J,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:$.read,written:$.written}}})});var OW=g(()=>{CW()});var PW=g(()=>{var xL=d1(),gL=f0(),fL=_5(),_L=A8(),yL=R8(),bL=kQ();function hL(){try{var Q=new ArrayBuffer(16,{maxByteLength:1024});new Uint8Array(Q).setFromHex("cafed00d")}catch(J){return!0}}if(gL.Uint8Array)xL({target:"Uint8Array",proto:!0,forced:hL()},{setFromHex:function(J){_L(this),fL(J),yL(this.buffer);var $=bL(J,this).read;return{read:$,written:$/2}}})});var RW=g(()=>{PW()});var IW=g(()=>{var mL=d1(),cL=f0(),uL=o0(),pL=RQ(),lL=A8(),dL=R8(),AW=AQ(),iL=IQ(),nL=AW.i2c,oL=AW.i2cUrl,rL=uL("".charAt),h5=cL.Uint8Array,aL=!h5||!h5.prototype.toBase64||!function(){try{var Q=new h5;Q.toBase64(null)}catch(J){return!0}}();if(h5)mL({target:"Uint8Array",proto:!0,forced:aL},{toBase64:function(){var J=lL(this),$=arguments.length?pL(arguments[0]):void 0,q=iL($)==="base64"?nL:oL,X=!!$&&!!$.omitPadding;dL(this.buffer);var Y="",G=0,W=J.length,B,V=function(U){return rL(q,B>>6*U&63)};for(;G+2<W;G+=3)B=(J[G]<<16)+(J[G+1]<<8)+J[G+2],Y+=V(3)+V(2)+V(1)+V(0);if(G+2===W)B=(J[G]<<16)+(J[G+1]<<8),Y+=V(3)+V(2)+V(1)+(X?"":"=");else if(G+1===W)B=J[G]<<16,Y+=V(3)+V(2)+(X?"":"==");return Y}})});var SW=g(()=>{IW()});var EW=g(()=>{var sL=d1(),tL=f0(),vW=o0(),eL=A8(),QN=R8(),JN=vW(1.1 .toString),$N=vW([].join),qN=Array,m5=tL.Uint8Array,XN=!m5||!m5.prototype.toHex||!function(){try{var Q=new m5([255,255,255,255,255,255,255,255]);return Q.toHex()==="ffffffffffffffff"}catch(J){return!1}}();if(m5)sL({target:"Uint8Array",proto:!0,forced:XN},{toHex:function(){eL(this),QN(this.buffer);var J=qN(this.length);for(var $=0,q=this.length;$<q;$++){var X=JN(this[$],16);J[$]=X.length===1?"0"+X:X}return $N(J,"")}})});var ZW=g(()=>{EW()});var kW=g(()=>{BW();MW();OW();RW();SW();ZW()});var _W=n5(GX(),1);var GM=new Uint8Array(16);function E7(){return crypto.getRandomValues(GM)}var m0=[];for(let Q=0;Q<256;++Q)m0.push((Q+256).toString(16).slice(1));function WX(Q,J=0){return(m0[Q[J+0]]+m0[Q[J+1]]+m0[Q[J+2]]+m0[Q[J+3]]+"-"+m0[Q[J+4]]+m0[Q[J+5]]+"-"+m0[Q[J+6]]+m0[Q[J+7]]+"-"+m0[Q[J+8]]+m0[Q[J+9]]+"-"+m0[Q[J+10]]+m0[Q[J+11]]+m0[Q[J+12]]+m0[Q[J+13]]+m0[Q[J+14]]+m0[Q[J+15]]).toLowerCase()}function WM(Q,J,$){if(!J&&!Q&&crypto.randomUUID)return crypto.randomUUID();return VM(Q,J,$)}function VM(Q,J,$){Q=Q||{};let q=Q.random??Q.rng?.()??E7();if(q.length<16)throw Error("Random bytes length must be >= 16");if(q[6]=q[6]&15|64,q[8]=q[8]&63|128,J){if($=$||0,$<0||$+16>J.length)throw RangeError(`UUID byte range ${$}:${$+15} is out of buffer bounds`);for(let X=0;X<16;++X)J[$+X]=q[X];return J}return WX(q)}var z6=WM;var x={};o5(x,{void:()=>iM,util:()=>P0,unknown:()=>lM,union:()=>aM,undefined:()=>cM,tuple:()=>eM,transformer:()=>BF,symbol:()=>mM,string:()=>zX,strictObject:()=>rM,setErrorMap:()=>KM,set:()=>$F,record:()=>QF,quotelessJson:()=>BM,promise:()=>VF,preprocess:()=>HF,pipeline:()=>jF,ostring:()=>MF,optional:()=>UF,onumber:()=>FF,oboolean:()=>zF,objectUtil:()=>Z7,object:()=>oM,number:()=>wX,nullable:()=>KF,null:()=>uM,never:()=>dM,nativeEnum:()=>WF,nan:()=>yM,map:()=>JF,makeIssue:()=>j8,literal:()=>YF,lazy:()=>XF,late:()=>fM,isValid:()=>K1,isDirty:()=>L5,isAsync:()=>L6,isAborted:()=>w5,intersection:()=>tM,instanceof:()=>_M,getParsedType:()=>T2,getErrorMap:()=>w6,function:()=>qF,enum:()=>GF,effect:()=>BF,discriminatedUnion:()=>sM,defaultErrorMap:()=>n2,datetimeRegex:()=>jX,date:()=>hM,custom:()=>FX,coerce:()=>wF,boolean:()=>LX,bigint:()=>bM,array:()=>nM,any:()=>pM,addIssueToContext:()=>Y0,ZodVoid:()=>F8,ZodUnknown:()=>H1,ZodUnion:()=>R6,ZodUndefined:()=>O6,ZodType:()=>O0,ZodTuple:()=>g2,ZodTransformer:()=>D2,ZodSymbol:()=>M8,ZodString:()=>z2,ZodSet:()=>u1,ZodSchema:()=>O0,ZodRecord:()=>z8,ZodReadonly:()=>k6,ZodPromise:()=>p1,ZodPipeline:()=>N8,ZodParsedType:()=>J0,ZodOptional:()=>L2,ZodObject:()=>g0,ZodNumber:()=>j1,ZodNullable:()=>r2,ZodNull:()=>P6,ZodNever:()=>x2,ZodNativeEnum:()=>v6,ZodNaN:()=>L8,ZodMap:()=>w8,ZodLiteral:()=>S6,ZodLazy:()=>I6,ZodIssueCode:()=>r,ZodIntersection:()=>A6,ZodFunction:()=>D6,ZodFirstPartyTypeKind:()=>z0,ZodError:()=>e0,ZodEnum:()=>F1,ZodEffects:()=>D2,ZodDiscriminatedUnion:()=>N5,ZodDefault:()=>E6,ZodDate:()=>m1,ZodCatch:()=>Z6,ZodBranded:()=>D5,ZodBoolean:()=>C6,ZodBigInt:()=>M1,ZodArray:()=>w2,ZodAny:()=>c1,Schema:()=>O0,ParseStatus:()=>c0,OK:()=>d0,NEVER:()=>LF,INVALID:()=>F0,EMPTY_PATH:()=>HM,DIRTY:()=>h1,BRAND:()=>gM});var P0;(function(Q){Q.assertEqual=(X)=>{};function J(X){}Q.assertIs=J;function $(X){throw Error()}Q.assertNever=$,Q.arrayToEnum=(X)=>{let Y={};for(let G of X)Y[G]=G;return Y},Q.getValidEnumValues=(X)=>{let Y=Q.objectKeys(X).filter((W)=>typeof X[X[W]]!=="number"),G={};for(let W of Y)G[W]=X[W];return Q.objectValues(G)},Q.objectValues=(X)=>{return Q.objectKeys(X).map(function(Y){return X[Y]})},Q.objectKeys=typeof Object.keys==="function"?(X)=>Object.keys(X):(X)=>{let Y=[];for(let G in X)if(Object.prototype.hasOwnProperty.call(X,G))Y.push(G);return Y},Q.find=(X,Y)=>{for(let G of X)if(Y(G))return G;return},Q.isInteger=typeof Number.isInteger==="function"?(X)=>Number.isInteger(X):(X)=>typeof X==="number"&&Number.isFinite(X)&&Math.floor(X)===X;function q(X,Y=" | "){return X.map((G)=>typeof G==="string"?`'${G}'`:G).join(Y)}Q.joinValues=q,Q.jsonStringifyReplacer=(X,Y)=>{if(typeof Y==="bigint")return Y.toString();return Y}})(P0||(P0={}));var Z7;(function(Q){Q.mergeShapes=(J,$)=>{return{...J,...$}}})(Z7||(Z7={}));var J0=P0.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),T2=(Q)=>{switch(typeof Q){case"undefined":return J0.undefined;case"string":return J0.string;case"number":return Number.isNaN(Q)?J0.nan:J0.number;case"boolean":return J0.boolean;case"function":return J0.function;case"bigint":return J0.bigint;case"symbol":return J0.symbol;case"object":if(Array.isArray(Q))return J0.array;if(Q===null)return J0.null;if(Q.then&&typeof Q.then==="function"&&Q.catch&&typeof Q.catch==="function")return J0.promise;if(typeof Map<"u"&&Q instanceof Map)return J0.map;if(typeof Set<"u"&&Q instanceof Set)return J0.set;if(typeof Date<"u"&&Q instanceof Date)return J0.date;return J0.object;default:return J0.unknown}};var r=P0.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),BM=(Q)=>{return JSON.stringify(Q,null,2).replace(/"([^"]+)":/g,"$1:")};class e0 extends Error{get errors(){return this.issues}constructor(Q){super();this.issues=[],this.addIssue=($)=>{this.issues=[...this.issues,$]},this.addIssues=($=[])=>{this.issues=[...this.issues,...$]};let J=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,J);else this.__proto__=J;this.name="ZodError",this.issues=Q}format(Q){let J=Q||function(X){return X.message},$={_errors:[]},q=(X)=>{for(let Y of X.issues)if(Y.code==="invalid_union")Y.unionErrors.map(q);else if(Y.code==="invalid_return_type")q(Y.returnTypeError);else if(Y.code==="invalid_arguments")q(Y.argumentsError);else if(Y.path.length===0)$._errors.push(J(Y));else{let G=$,W=0;while(W<Y.path.length){let B=Y.path[W];if(W!==Y.path.length-1)G[B]=G[B]||{_errors:[]};else G[B]=G[B]||{_errors:[]},G[B]._errors.push(J(Y));G=G[B],W++}}};return q(this),$}static assert(Q){if(!(Q instanceof e0))throw Error(`Not a ZodError: ${Q}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,P0.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(Q=(J)=>J.message){let J={},$=[];for(let q of this.issues)if(q.path.length>0){let X=q.path[0];J[X]=J[X]||[],J[X].push(Q(q))}else $.push(Q(q));return{formErrors:$,fieldErrors:J}}get formErrors(){return this.flatten()}}e0.create=(Q)=>{return new e0(Q)};var UM=(Q,J)=>{let $;switch(Q.code){case r.invalid_type:if(Q.received===J0.undefined)$="Required";else $=`Expected ${Q.expected}, received ${Q.received}`;break;case r.invalid_literal:$=`Invalid literal value, expected ${JSON.stringify(Q.expected,P0.jsonStringifyReplacer)}`;break;case r.unrecognized_keys:$=`Unrecognized key(s) in object: ${P0.joinValues(Q.keys,", ")}`;break;case r.invalid_union:$="Invalid input";break;case r.invalid_union_discriminator:$=`Invalid discriminator value. Expected ${P0.joinValues(Q.options)}`;break;case r.invalid_enum_value:$=`Invalid enum value. Expected ${P0.joinValues(Q.options)}, received '${Q.received}'`;break;case r.invalid_arguments:$="Invalid function arguments";break;case r.invalid_return_type:$="Invalid function return type";break;case r.invalid_date:$="Invalid date";break;case r.invalid_string:if(typeof Q.validation==="object")if("includes"in Q.validation){if($=`Invalid input: must include "${Q.validation.includes}"`,typeof Q.validation.position==="number")$=`${$} at one or more positions greater than or equal to ${Q.validation.position}`}else if("startsWith"in Q.validation)$=`Invalid input: must start with "${Q.validation.startsWith}"`;else if("endsWith"in Q.validation)$=`Invalid input: must end with "${Q.validation.endsWith}"`;else P0.assertNever(Q.validation);else if(Q.validation!=="regex")$=`Invalid ${Q.validation}`;else $="Invalid";break;case r.too_small:if(Q.type==="array")$=`Array must contain ${Q.exact?"exactly":Q.inclusive?"at least":"more than"} ${Q.minimum} element(s)`;else if(Q.type==="string")$=`String must contain ${Q.exact?"exactly":Q.inclusive?"at least":"over"} ${Q.minimum} character(s)`;else if(Q.type==="number")$=`Number must be ${Q.exact?"exactly equal to ":Q.inclusive?"greater than or equal to ":"greater than "}${Q.minimum}`;else if(Q.type==="bigint")$=`Number must be ${Q.exact?"exactly equal to ":Q.inclusive?"greater than or equal to ":"greater than "}${Q.minimum}`;else if(Q.type==="date")$=`Date must be ${Q.exact?"exactly equal to ":Q.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(Q.minimum))}`;else $="Invalid input";break;case r.too_big:if(Q.type==="array")$=`Array must contain ${Q.exact?"exactly":Q.inclusive?"at most":"less than"} ${Q.maximum} element(s)`;else if(Q.type==="string")$=`String must contain ${Q.exact?"exactly":Q.inclusive?"at most":"under"} ${Q.maximum} character(s)`;else if(Q.type==="number")$=`Number must be ${Q.exact?"exactly":Q.inclusive?"less than or equal to":"less than"} ${Q.maximum}`;else if(Q.type==="bigint")$=`BigInt must be ${Q.exact?"exactly":Q.inclusive?"less than or equal to":"less than"} ${Q.maximum}`;else if(Q.type==="date")$=`Date must be ${Q.exact?"exactly":Q.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(Q.maximum))}`;else $="Invalid input";break;case r.custom:$="Invalid input";break;case r.invalid_intersection_types:$="Intersection results could not be merged";break;case r.not_multiple_of:$=`Number must be a multiple of ${Q.multipleOf}`;break;case r.not_finite:$="Number must be finite";break;default:$=J.defaultError,P0.assertNever(Q)}return{message:$}},n2=UM;var VX=n2;function KM(Q){VX=Q}function w6(){return VX}var j8=(Q)=>{let{data:J,path:$,errorMaps:q,issueData:X}=Q,Y=[...$,...X.path||[]],G={...X,path:Y};if(X.message!==void 0)return{...X,path:Y,message:X.message};let W="",B=q.filter((V)=>!!V).slice().reverse();for(let V of B)W=V(G,{data:J,defaultError:W}).message;return{...X,path:Y,message:W}},HM=[];function Y0(Q,J){let $=w6(),q=j8({issueData:J,data:Q.data,path:Q.path,errorMaps:[Q.common.contextualErrorMap,Q.schemaErrorMap,$,$===n2?void 0:n2].filter((X)=>!!X)});Q.common.issues.push(q)}class c0{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(Q,J){let $=[];for(let q of J){if(q.status==="aborted")return F0;if(q.status==="dirty")Q.dirty();$.push(q.value)}return{status:Q.value,value:$}}static async mergeObjectAsync(Q,J){let $=[];for(let q of J){let X=await q.key,Y=await q.value;$.push({key:X,value:Y})}return c0.mergeObjectSync(Q,$)}static mergeObjectSync(Q,J){let $={};for(let q of J){let{key:X,value:Y}=q;if(X.status==="aborted")return F0;if(Y.status==="aborted")return F0;if(X.status==="dirty")Q.dirty();if(Y.status==="dirty")Q.dirty();if(X.value!=="__proto__"&&(typeof Y.value<"u"||q.alwaysSet))$[X.value]=Y.value}return{status:Q.value,value:$}}}var F0=Object.freeze({status:"aborted"}),h1=(Q)=>({status:"dirty",value:Q}),d0=(Q)=>({status:"valid",value:Q}),w5=(Q)=>Q.status==="aborted",L5=(Q)=>Q.status==="dirty",K1=(Q)=>Q.status==="valid",L6=(Q)=>typeof Promise<"u"&&Q instanceof Promise;var K0;(function(Q){Q.errToObj=(J)=>typeof J==="string"?{message:J}:J||{},Q.toString=(J)=>typeof J==="string"?J:J?.message})(K0||(K0={}));class N2{constructor(Q,J,$,q){this._cachedPath=[],this.parent=Q,this.data=J,this._path=$,this._key=q}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var BX=(Q,J)=>{if(K1(J))return{success:!0,data:J.value};else{if(!Q.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let $=new e0(Q.common.issues);return this._error=$,this._error}}}};function C0(Q){if(!Q)return{};let{errorMap:J,invalid_type_error:$,required_error:q,description:X}=Q;if(J&&($||q))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(J)return{errorMap:J,description:X};return{errorMap:(G,W)=>{let{message:B}=Q;if(G.code==="invalid_enum_value")return{message:B??W.defaultError};if(typeof W.data>"u")return{message:B??q??W.defaultError};if(G.code!=="invalid_type")return{message:W.defaultError};return{message:B??$??W.defaultError}},description:X}}class O0{get description(){return this._def.description}_getType(Q){return T2(Q.data)}_getOrReturnCtx(Q,J){return J||{common:Q.parent.common,data:Q.data,parsedType:T2(Q.data),schemaErrorMap:this._def.errorMap,path:Q.path,parent:Q.parent}}_processInputParams(Q){return{status:new c0,ctx:{common:Q.parent.common,data:Q.data,parsedType:T2(Q.data),schemaErrorMap:this._def.errorMap,path:Q.path,parent:Q.parent}}}_parseSync(Q){let J=this._parse(Q);if(L6(J))throw Error("Synchronous parse encountered promise.");return J}_parseAsync(Q){let J=this._parse(Q);return Promise.resolve(J)}parse(Q,J){let $=this.safeParse(Q,J);if($.success)return $.data;throw $.error}safeParse(Q,J){let $={common:{issues:[],async:J?.async??!1,contextualErrorMap:J?.errorMap},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:Q,parsedType:T2(Q)},q=this._parseSync({data:Q,path:$.path,parent:$});return BX($,q)}"~validate"(Q){let J={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:Q,parsedType:T2(Q)};if(!this["~standard"].async)try{let $=this._parseSync({data:Q,path:[],parent:J});return K1($)?{value:$.value}:{issues:J.common.issues}}catch($){if($?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;J.common={issues:[],async:!0}}return this._parseAsync({data:Q,path:[],parent:J}).then(($)=>K1($)?{value:$.value}:{issues:J.common.issues})}async parseAsync(Q,J){let $=await this.safeParseAsync(Q,J);if($.success)return $.data;throw $.error}async safeParseAsync(Q,J){let $={common:{issues:[],contextualErrorMap:J?.errorMap,async:!0},path:J?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:Q,parsedType:T2(Q)},q=this._parse({data:Q,path:$.path,parent:$}),X=await(L6(q)?q:Promise.resolve(q));return BX($,X)}refine(Q,J){let $=(q)=>{if(typeof J==="string"||typeof J>"u")return{message:J};else if(typeof J==="function")return J(q);else return J};return this._refinement((q,X)=>{let Y=Q(q),G=()=>X.addIssue({code:r.custom,...$(q)});if(typeof Promise<"u"&&Y instanceof Promise)return Y.then((W)=>{if(!W)return G(),!1;else return!0});if(!Y)return G(),!1;else return!0})}refinement(Q,J){return this._refinement(($,q)=>{if(!Q($))return q.addIssue(typeof J==="function"?J($,q):J),!1;else return!0})}_refinement(Q){return new D2({schema:this,typeName:z0.ZodEffects,effect:{type:"refinement",refinement:Q}})}superRefine(Q){return this._refinement(Q)}constructor(Q){this.spa=this.safeParseAsync,this._def=Q,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(J)=>this["~validate"](J)}}optional(){return L2.create(this,this._def)}nullable(){return r2.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return w2.create(this)}promise(){return p1.create(this,this._def)}or(Q){return R6.create([this,Q],this._def)}and(Q){return A6.create(this,Q,this._def)}transform(Q){return new D2({...C0(this._def),schema:this,typeName:z0.ZodEffects,effect:{type:"transform",transform:Q}})}default(Q){let J=typeof Q==="function"?Q:()=>Q;return new E6({...C0(this._def),innerType:this,defaultValue:J,typeName:z0.ZodDefault})}brand(){return new D5({typeName:z0.ZodBranded,type:this,...C0(this._def)})}catch(Q){let J=typeof Q==="function"?Q:()=>Q;return new Z6({...C0(this._def),innerType:this,catchValue:J,typeName:z0.ZodCatch})}describe(Q){return new this.constructor({...this._def,description:Q})}pipe(Q){return N8.create(this,Q)}readonly(){return k6.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var jM=/^c[^\s-]{8,}$/i,MM=/^[0-9a-z]+$/,FM=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zM=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,wM=/^[a-z0-9_-]{21}$/i,LM=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,NM=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,DM=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,CM="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",k7,OM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PM=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,RM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,AM=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,IM=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,SM=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,KX="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",vM=new RegExp(`^${KX}$`);function HX(Q){let J="[0-5]\\d";if(Q.precision)J=`${J}\\.\\d{${Q.precision}}`;else if(Q.precision==null)J=`${J}(\\.\\d+)?`;let $=Q.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${J})${$}`}function EM(Q){return new RegExp(`^${HX(Q)}$`)}function jX(Q){let J=`${KX}T${HX(Q)}`,$=[];if($.push(Q.local?"Z?":"Z"),Q.offset)$.push("([+-]\\d{2}:?\\d{2})");return J=`${J}(${$.join("|")})`,new RegExp(`^${J}$`)}function ZM(Q,J){if((J==="v4"||!J)&&OM.test(Q))return!0;if((J==="v6"||!J)&&RM.test(Q))return!0;return!1}function kM(Q,J){if(!LM.test(Q))return!1;try{let[$]=Q.split(".");if(!$)return!1;let q=$.replace(/-/g,"+").replace(/_/g,"/").padEnd($.length+(4-$.length%4)%4,"="),X=JSON.parse(atob(q));if(typeof X!=="object"||X===null)return!1;if("typ"in X&&X?.typ!=="JWT")return!1;if(!X.alg)return!1;if(J&&X.alg!==J)return!1;return!0}catch{return!1}}function TM(Q,J){if((J==="v4"||!J)&&PM.test(Q))return!0;if((J==="v6"||!J)&&AM.test(Q))return!0;return!1}class z2 extends O0{_parse(Q){if(this._def.coerce)Q.data=String(Q.data);if(this._getType(Q)!==J0.string){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_type,expected:J0.string,received:X.parsedType}),F0}let $=new c0,q=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(Q.data.length<X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),$.dirty()}else if(X.kind==="max"){if(Q.data.length>X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!1,message:X.message}),$.dirty()}else if(X.kind==="length"){let Y=Q.data.length>X.value,G=Q.data.length<X.value;if(Y||G){if(q=this._getOrReturnCtx(Q,q),Y)Y0(q,{code:r.too_big,maximum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});else if(G)Y0(q,{code:r.too_small,minimum:X.value,type:"string",inclusive:!0,exact:!0,message:X.message});$.dirty()}}else if(X.kind==="email"){if(!DM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"email",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="emoji"){if(!k7)k7=new RegExp(CM,"u");if(!k7.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"emoji",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="uuid"){if(!zM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"uuid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="nanoid"){if(!wM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"nanoid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="cuid"){if(!jM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"cuid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="cuid2"){if(!MM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"cuid2",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="ulid"){if(!FM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"ulid",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="url")try{new URL(Q.data)}catch{q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"url",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="regex"){if(X.regex.lastIndex=0,!X.regex.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"regex",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="trim")Q.data=Q.data.trim();else if(X.kind==="includes"){if(!Q.data.includes(X.value,X.position))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:{includes:X.value,position:X.position},message:X.message}),$.dirty()}else if(X.kind==="toLowerCase")Q.data=Q.data.toLowerCase();else if(X.kind==="toUpperCase")Q.data=Q.data.toUpperCase();else if(X.kind==="startsWith"){if(!Q.data.startsWith(X.value))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:{startsWith:X.value},message:X.message}),$.dirty()}else if(X.kind==="endsWith"){if(!Q.data.endsWith(X.value))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:{endsWith:X.value},message:X.message}),$.dirty()}else if(X.kind==="datetime"){if(!jX(X).test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:"datetime",message:X.message}),$.dirty()}else if(X.kind==="date"){if(!vM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:"date",message:X.message}),$.dirty()}else if(X.kind==="time"){if(!EM(X).test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.invalid_string,validation:"time",message:X.message}),$.dirty()}else if(X.kind==="duration"){if(!NM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"duration",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="ip"){if(!ZM(Q.data,X.version))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"ip",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="jwt"){if(!kM(Q.data,X.alg))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"jwt",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="cidr"){if(!TM(Q.data,X.version))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"cidr",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="base64"){if(!IM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"base64",code:r.invalid_string,message:X.message}),$.dirty()}else if(X.kind==="base64url"){if(!SM.test(Q.data))q=this._getOrReturnCtx(Q,q),Y0(q,{validation:"base64url",code:r.invalid_string,message:X.message}),$.dirty()}else P0.assertNever(X);return{status:$.value,value:Q.data}}_regex(Q,J,$){return this.refinement((q)=>Q.test(q),{validation:J,code:r.invalid_string,...K0.errToObj($)})}_addCheck(Q){return new z2({...this._def,checks:[...this._def.checks,Q]})}email(Q){return this._addCheck({kind:"email",...K0.errToObj(Q)})}url(Q){return this._addCheck({kind:"url",...K0.errToObj(Q)})}emoji(Q){return this._addCheck({kind:"emoji",...K0.errToObj(Q)})}uuid(Q){return this._addCheck({kind:"uuid",...K0.errToObj(Q)})}nanoid(Q){return this._addCheck({kind:"nanoid",...K0.errToObj(Q)})}cuid(Q){return this._addCheck({kind:"cuid",...K0.errToObj(Q)})}cuid2(Q){return this._addCheck({kind:"cuid2",...K0.errToObj(Q)})}ulid(Q){return this._addCheck({kind:"ulid",...K0.errToObj(Q)})}base64(Q){return this._addCheck({kind:"base64",...K0.errToObj(Q)})}base64url(Q){return this._addCheck({kind:"base64url",...K0.errToObj(Q)})}jwt(Q){return this._addCheck({kind:"jwt",...K0.errToObj(Q)})}ip(Q){return this._addCheck({kind:"ip",...K0.errToObj(Q)})}cidr(Q){return this._addCheck({kind:"cidr",...K0.errToObj(Q)})}datetime(Q){if(typeof Q==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:Q});return this._addCheck({kind:"datetime",precision:typeof Q?.precision>"u"?null:Q?.precision,offset:Q?.offset??!1,local:Q?.local??!1,...K0.errToObj(Q?.message)})}date(Q){return this._addCheck({kind:"date",message:Q})}time(Q){if(typeof Q==="string")return this._addCheck({kind:"time",precision:null,message:Q});return this._addCheck({kind:"time",precision:typeof Q?.precision>"u"?null:Q?.precision,...K0.errToObj(Q?.message)})}duration(Q){return this._addCheck({kind:"duration",...K0.errToObj(Q)})}regex(Q,J){return this._addCheck({kind:"regex",regex:Q,...K0.errToObj(J)})}includes(Q,J){return this._addCheck({kind:"includes",value:Q,position:J?.position,...K0.errToObj(J?.message)})}startsWith(Q,J){return this._addCheck({kind:"startsWith",value:Q,...K0.errToObj(J)})}endsWith(Q,J){return this._addCheck({kind:"endsWith",value:Q,...K0.errToObj(J)})}min(Q,J){return this._addCheck({kind:"min",value:Q,...K0.errToObj(J)})}max(Q,J){return this._addCheck({kind:"max",value:Q,...K0.errToObj(J)})}length(Q,J){return this._addCheck({kind:"length",value:Q,...K0.errToObj(J)})}nonempty(Q){return this.min(1,K0.errToObj(Q))}trim(){return new z2({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new z2({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new z2({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((Q)=>Q.kind==="datetime")}get isDate(){return!!this._def.checks.find((Q)=>Q.kind==="date")}get isTime(){return!!this._def.checks.find((Q)=>Q.kind==="time")}get isDuration(){return!!this._def.checks.find((Q)=>Q.kind==="duration")}get isEmail(){return!!this._def.checks.find((Q)=>Q.kind==="email")}get isURL(){return!!this._def.checks.find((Q)=>Q.kind==="url")}get isEmoji(){return!!this._def.checks.find((Q)=>Q.kind==="emoji")}get isUUID(){return!!this._def.checks.find((Q)=>Q.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((Q)=>Q.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((Q)=>Q.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((Q)=>Q.kind==="cuid2")}get isULID(){return!!this._def.checks.find((Q)=>Q.kind==="ulid")}get isIP(){return!!this._def.checks.find((Q)=>Q.kind==="ip")}get isCIDR(){return!!this._def.checks.find((Q)=>Q.kind==="cidr")}get isBase64(){return!!this._def.checks.find((Q)=>Q.kind==="base64")}get isBase64url(){return!!this._def.checks.find((Q)=>Q.kind==="base64url")}get minLength(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q}get maxLength(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q}}z2.create=(Q)=>{return new z2({checks:[],typeName:z0.ZodString,coerce:Q?.coerce??!1,...C0(Q)})};function xM(Q,J){let $=(Q.toString().split(".")[1]||"").length,q=(J.toString().split(".")[1]||"").length,X=$>q?$:q,Y=Number.parseInt(Q.toFixed(X).replace(".","")),G=Number.parseInt(J.toFixed(X).replace(".",""));return Y%G/10**X}class j1 extends O0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(Q){if(this._def.coerce)Q.data=Number(Q.data);if(this._getType(Q)!==J0.number){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_type,expected:J0.number,received:X.parsedType}),F0}let $=void 0,q=new c0;for(let X of this._def.checks)if(X.kind==="int"){if(!P0.isInteger(Q.data))$=this._getOrReturnCtx(Q,$),Y0($,{code:r.invalid_type,expected:"integer",received:"float",message:X.message}),q.dirty()}else if(X.kind==="min"){if(X.inclusive?Q.data<X.value:Q.data<=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_small,minimum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),q.dirty()}else if(X.kind==="max"){if(X.inclusive?Q.data>X.value:Q.data>=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_big,maximum:X.value,type:"number",inclusive:X.inclusive,exact:!1,message:X.message}),q.dirty()}else if(X.kind==="multipleOf"){if(xM(Q.data,X.value)!==0)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.not_multiple_of,multipleOf:X.value,message:X.message}),q.dirty()}else if(X.kind==="finite"){if(!Number.isFinite(Q.data))$=this._getOrReturnCtx(Q,$),Y0($,{code:r.not_finite,message:X.message}),q.dirty()}else P0.assertNever(X);return{status:q.value,value:Q.data}}gte(Q,J){return this.setLimit("min",Q,!0,K0.toString(J))}gt(Q,J){return this.setLimit("min",Q,!1,K0.toString(J))}lte(Q,J){return this.setLimit("max",Q,!0,K0.toString(J))}lt(Q,J){return this.setLimit("max",Q,!1,K0.toString(J))}setLimit(Q,J,$,q){return new j1({...this._def,checks:[...this._def.checks,{kind:Q,value:J,inclusive:$,message:K0.toString(q)}]})}_addCheck(Q){return new j1({...this._def,checks:[...this._def.checks,Q]})}int(Q){return this._addCheck({kind:"int",message:K0.toString(Q)})}positive(Q){return this._addCheck({kind:"min",value:0,inclusive:!1,message:K0.toString(Q)})}negative(Q){return this._addCheck({kind:"max",value:0,inclusive:!1,message:K0.toString(Q)})}nonpositive(Q){return this._addCheck({kind:"max",value:0,inclusive:!0,message:K0.toString(Q)})}nonnegative(Q){return this._addCheck({kind:"min",value:0,inclusive:!0,message:K0.toString(Q)})}multipleOf(Q,J){return this._addCheck({kind:"multipleOf",value:Q,message:K0.toString(J)})}finite(Q){return this._addCheck({kind:"finite",message:K0.toString(Q)})}safe(Q){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:K0.toString(Q)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:K0.toString(Q)})}get minValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q}get maxValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q}get isInt(){return!!this._def.checks.find((Q)=>Q.kind==="int"||Q.kind==="multipleOf"&&P0.isInteger(Q.value))}get isFinite(){let Q=null,J=null;for(let $ of this._def.checks)if($.kind==="finite"||$.kind==="int"||$.kind==="multipleOf")return!0;else if($.kind==="min"){if(J===null||$.value>J)J=$.value}else if($.kind==="max"){if(Q===null||$.value<Q)Q=$.value}return Number.isFinite(J)&&Number.isFinite(Q)}}j1.create=(Q)=>{return new j1({checks:[],typeName:z0.ZodNumber,coerce:Q?.coerce||!1,...C0(Q)})};class M1 extends O0{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(Q){if(this._def.coerce)try{Q.data=BigInt(Q.data)}catch{return this._getInvalidInput(Q)}if(this._getType(Q)!==J0.bigint)return this._getInvalidInput(Q);let $=void 0,q=new c0;for(let X of this._def.checks)if(X.kind==="min"){if(X.inclusive?Q.data<X.value:Q.data<=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_small,type:"bigint",minimum:X.value,inclusive:X.inclusive,message:X.message}),q.dirty()}else if(X.kind==="max"){if(X.inclusive?Q.data>X.value:Q.data>=X.value)$=this._getOrReturnCtx(Q,$),Y0($,{code:r.too_big,type:"bigint",maximum:X.value,inclusive:X.inclusive,message:X.message}),q.dirty()}else if(X.kind==="multipleOf"){if(Q.data%X.value!==BigInt(0))$=this._getOrReturnCtx(Q,$),Y0($,{code:r.not_multiple_of,multipleOf:X.value,message:X.message}),q.dirty()}else P0.assertNever(X);return{status:q.value,value:Q.data}}_getInvalidInput(Q){let J=this._getOrReturnCtx(Q);return Y0(J,{code:r.invalid_type,expected:J0.bigint,received:J.parsedType}),F0}gte(Q,J){return this.setLimit("min",Q,!0,K0.toString(J))}gt(Q,J){return this.setLimit("min",Q,!1,K0.toString(J))}lte(Q,J){return this.setLimit("max",Q,!0,K0.toString(J))}lt(Q,J){return this.setLimit("max",Q,!1,K0.toString(J))}setLimit(Q,J,$,q){return new M1({...this._def,checks:[...this._def.checks,{kind:Q,value:J,inclusive:$,message:K0.toString(q)}]})}_addCheck(Q){return new M1({...this._def,checks:[...this._def.checks,Q]})}positive(Q){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:K0.toString(Q)})}negative(Q){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:K0.toString(Q)})}nonpositive(Q){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:K0.toString(Q)})}nonnegative(Q){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:K0.toString(Q)})}multipleOf(Q,J){return this._addCheck({kind:"multipleOf",value:Q,message:K0.toString(J)})}get minValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q}get maxValue(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q}}M1.create=(Q)=>{return new M1({checks:[],typeName:z0.ZodBigInt,coerce:Q?.coerce??!1,...C0(Q)})};class C6 extends O0{_parse(Q){if(this._def.coerce)Q.data=Boolean(Q.data);if(this._getType(Q)!==J0.boolean){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.boolean,received:$.parsedType}),F0}return d0(Q.data)}}C6.create=(Q)=>{return new C6({typeName:z0.ZodBoolean,coerce:Q?.coerce||!1,...C0(Q)})};class m1 extends O0{_parse(Q){if(this._def.coerce)Q.data=new Date(Q.data);if(this._getType(Q)!==J0.date){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_type,expected:J0.date,received:X.parsedType}),F0}if(Number.isNaN(Q.data.getTime())){let X=this._getOrReturnCtx(Q);return Y0(X,{code:r.invalid_date}),F0}let $=new c0,q=void 0;for(let X of this._def.checks)if(X.kind==="min"){if(Q.data.getTime()<X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_small,message:X.message,inclusive:!0,exact:!1,minimum:X.value,type:"date"}),$.dirty()}else if(X.kind==="max"){if(Q.data.getTime()>X.value)q=this._getOrReturnCtx(Q,q),Y0(q,{code:r.too_big,message:X.message,inclusive:!0,exact:!1,maximum:X.value,type:"date"}),$.dirty()}else P0.assertNever(X);return{status:$.value,value:new Date(Q.data.getTime())}}_addCheck(Q){return new m1({...this._def,checks:[...this._def.checks,Q]})}min(Q,J){return this._addCheck({kind:"min",value:Q.getTime(),message:K0.toString(J)})}max(Q,J){return this._addCheck({kind:"max",value:Q.getTime(),message:K0.toString(J)})}get minDate(){let Q=null;for(let J of this._def.checks)if(J.kind==="min"){if(Q===null||J.value>Q)Q=J.value}return Q!=null?new Date(Q):null}get maxDate(){let Q=null;for(let J of this._def.checks)if(J.kind==="max"){if(Q===null||J.value<Q)Q=J.value}return Q!=null?new Date(Q):null}}m1.create=(Q)=>{return new m1({checks:[],coerce:Q?.coerce||!1,typeName:z0.ZodDate,...C0(Q)})};class M8 extends O0{_parse(Q){if(this._getType(Q)!==J0.symbol){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.symbol,received:$.parsedType}),F0}return d0(Q.data)}}M8.create=(Q)=>{return new M8({typeName:z0.ZodSymbol,...C0(Q)})};class O6 extends O0{_parse(Q){if(this._getType(Q)!==J0.undefined){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.undefined,received:$.parsedType}),F0}return d0(Q.data)}}O6.create=(Q)=>{return new O6({typeName:z0.ZodUndefined,...C0(Q)})};class P6 extends O0{_parse(Q){if(this._getType(Q)!==J0.null){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.null,received:$.parsedType}),F0}return d0(Q.data)}}P6.create=(Q)=>{return new P6({typeName:z0.ZodNull,...C0(Q)})};class c1 extends O0{constructor(){super(...arguments);this._any=!0}_parse(Q){return d0(Q.data)}}c1.create=(Q)=>{return new c1({typeName:z0.ZodAny,...C0(Q)})};class H1 extends O0{constructor(){super(...arguments);this._unknown=!0}_parse(Q){return d0(Q.data)}}H1.create=(Q)=>{return new H1({typeName:z0.ZodUnknown,...C0(Q)})};class x2 extends O0{_parse(Q){let J=this._getOrReturnCtx(Q);return Y0(J,{code:r.invalid_type,expected:J0.never,received:J.parsedType}),F0}}x2.create=(Q)=>{return new x2({typeName:z0.ZodNever,...C0(Q)})};class F8 extends O0{_parse(Q){if(this._getType(Q)!==J0.undefined){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.void,received:$.parsedType}),F0}return d0(Q.data)}}F8.create=(Q)=>{return new F8({typeName:z0.ZodVoid,...C0(Q)})};class w2 extends O0{_parse(Q){let{ctx:J,status:$}=this._processInputParams(Q),q=this._def;if(J.parsedType!==J0.array)return Y0(J,{code:r.invalid_type,expected:J0.array,received:J.parsedType}),F0;if(q.exactLength!==null){let Y=J.data.length>q.exactLength.value,G=J.data.length<q.exactLength.value;if(Y||G)Y0(J,{code:Y?r.too_big:r.too_small,minimum:G?q.exactLength.value:void 0,maximum:Y?q.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:q.exactLength.message}),$.dirty()}if(q.minLength!==null){if(J.data.length<q.minLength.value)Y0(J,{code:r.too_small,minimum:q.minLength.value,type:"array",inclusive:!0,exact:!1,message:q.minLength.message}),$.dirty()}if(q.maxLength!==null){if(J.data.length>q.maxLength.value)Y0(J,{code:r.too_big,maximum:q.maxLength.value,type:"array",inclusive:!0,exact:!1,message:q.maxLength.message}),$.dirty()}if(J.common.async)return Promise.all([...J.data].map((Y,G)=>{return q.type._parseAsync(new N2(J,Y,J.path,G))})).then((Y)=>{return c0.mergeArray($,Y)});let X=[...J.data].map((Y,G)=>{return q.type._parseSync(new N2(J,Y,J.path,G))});return c0.mergeArray($,X)}get element(){return this._def.type}min(Q,J){return new w2({...this._def,minLength:{value:Q,message:K0.toString(J)}})}max(Q,J){return new w2({...this._def,maxLength:{value:Q,message:K0.toString(J)}})}length(Q,J){return new w2({...this._def,exactLength:{value:Q,message:K0.toString(J)}})}nonempty(Q){return this.min(1,Q)}}w2.create=(Q,J)=>{return new w2({type:Q,minLength:null,maxLength:null,exactLength:null,typeName:z0.ZodArray,...C0(J)})};function N6(Q){if(Q instanceof g0){let J={};for(let $ in Q.shape){let q=Q.shape[$];J[$]=L2.create(N6(q))}return new g0({...Q._def,shape:()=>J})}else if(Q instanceof w2)return new w2({...Q._def,type:N6(Q.element)});else if(Q instanceof L2)return L2.create(N6(Q.unwrap()));else if(Q instanceof r2)return r2.create(N6(Q.unwrap()));else if(Q instanceof g2)return g2.create(Q.items.map((J)=>N6(J)));else return Q}class g0 extends O0{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let Q=this._def.shape(),J=P0.objectKeys(Q);return this._cached={shape:Q,keys:J},this._cached}_parse(Q){if(this._getType(Q)!==J0.object){let B=this._getOrReturnCtx(Q);return Y0(B,{code:r.invalid_type,expected:J0.object,received:B.parsedType}),F0}let{status:$,ctx:q}=this._processInputParams(Q),{shape:X,keys:Y}=this._getCached(),G=[];if(!(this._def.catchall instanceof x2&&this._def.unknownKeys==="strip")){for(let B in q.data)if(!Y.includes(B))G.push(B)}let W=[];for(let B of Y){let V=X[B],U=q.data[B];W.push({key:{status:"valid",value:B},value:V._parse(new N2(q,U,q.path,B)),alwaysSet:B in q.data})}if(this._def.catchall instanceof x2){let B=this._def.unknownKeys;if(B==="passthrough")for(let V of G)W.push({key:{status:"valid",value:V},value:{status:"valid",value:q.data[V]}});else if(B==="strict"){if(G.length>0)Y0(q,{code:r.unrecognized_keys,keys:G}),$.dirty()}else if(B==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let B=this._def.catchall;for(let V of G){let U=q.data[V];W.push({key:{status:"valid",value:V},value:B._parse(new N2(q,U,q.path,V)),alwaysSet:V in q.data})}}if(q.common.async)return Promise.resolve().then(async()=>{let B=[];for(let V of W){let U=await V.key,M=await V.value;B.push({key:U,value:M,alwaysSet:V.alwaysSet})}return B}).then((B)=>{return c0.mergeObjectSync($,B)});else return c0.mergeObjectSync($,W)}get shape(){return this._def.shape()}strict(Q){return K0.errToObj,new g0({...this._def,unknownKeys:"strict",...Q!==void 0?{errorMap:(J,$)=>{let q=this._def.errorMap?.(J,$).message??$.defaultError;if(J.code==="unrecognized_keys")return{message:K0.errToObj(Q).message??q};return{message:q}}}:{}})}strip(){return new g0({...this._def,unknownKeys:"strip"})}passthrough(){return new g0({...this._def,unknownKeys:"passthrough"})}extend(Q){return new g0({...this._def,shape:()=>({...this._def.shape(),...Q})})}merge(Q){return new g0({unknownKeys:Q._def.unknownKeys,catchall:Q._def.catchall,shape:()=>({...this._def.shape(),...Q._def.shape()}),typeName:z0.ZodObject})}setKey(Q,J){return this.augment({[Q]:J})}catchall(Q){return new g0({...this._def,catchall:Q})}pick(Q){let J={};for(let $ of P0.objectKeys(Q))if(Q[$]&&this.shape[$])J[$]=this.shape[$];return new g0({...this._def,shape:()=>J})}omit(Q){let J={};for(let $ of P0.objectKeys(this.shape))if(!Q[$])J[$]=this.shape[$];return new g0({...this._def,shape:()=>J})}deepPartial(){return N6(this)}partial(Q){let J={};for(let $ of P0.objectKeys(this.shape)){let q=this.shape[$];if(Q&&!Q[$])J[$]=q;else J[$]=q.optional()}return new g0({...this._def,shape:()=>J})}required(Q){let J={};for(let $ of P0.objectKeys(this.shape))if(Q&&!Q[$])J[$]=this.shape[$];else{let X=this.shape[$];while(X instanceof L2)X=X._def.innerType;J[$]=X}return new g0({...this._def,shape:()=>J})}keyof(){return MX(P0.objectKeys(this.shape))}}g0.create=(Q,J)=>{return new g0({shape:()=>Q,unknownKeys:"strip",catchall:x2.create(),typeName:z0.ZodObject,...C0(J)})};g0.strictCreate=(Q,J)=>{return new g0({shape:()=>Q,unknownKeys:"strict",catchall:x2.create(),typeName:z0.ZodObject,...C0(J)})};g0.lazycreate=(Q,J)=>{return new g0({shape:Q,unknownKeys:"strip",catchall:x2.create(),typeName:z0.ZodObject,...C0(J)})};class R6 extends O0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$=this._def.options;function q(X){for(let G of X)if(G.result.status==="valid")return G.result;for(let G of X)if(G.result.status==="dirty")return J.common.issues.push(...G.ctx.common.issues),G.result;let Y=X.map((G)=>new e0(G.ctx.common.issues));return Y0(J,{code:r.invalid_union,unionErrors:Y}),F0}if(J.common.async)return Promise.all($.map(async(X)=>{let Y={...J,common:{...J.common,issues:[]},parent:null};return{result:await X._parseAsync({data:J.data,path:J.path,parent:Y}),ctx:Y}})).then(q);else{let X=void 0,Y=[];for(let W of $){let B={...J,common:{...J.common,issues:[]},parent:null},V=W._parseSync({data:J.data,path:J.path,parent:B});if(V.status==="valid")return V;else if(V.status==="dirty"&&!X)X={result:V,ctx:B};if(B.common.issues.length)Y.push(B.common.issues)}if(X)return J.common.issues.push(...X.ctx.common.issues),X.result;let G=Y.map((W)=>new e0(W));return Y0(J,{code:r.invalid_union,unionErrors:G}),F0}}get options(){return this._def.options}}R6.create=(Q,J)=>{return new R6({options:Q,typeName:z0.ZodUnion,...C0(J)})};var o2=(Q)=>{if(Q instanceof I6)return o2(Q.schema);else if(Q instanceof D2)return o2(Q.innerType());else if(Q instanceof S6)return[Q.value];else if(Q instanceof F1)return Q.options;else if(Q instanceof v6)return P0.objectValues(Q.enum);else if(Q instanceof E6)return o2(Q._def.innerType);else if(Q instanceof O6)return[void 0];else if(Q instanceof P6)return[null];else if(Q instanceof L2)return[void 0,...o2(Q.unwrap())];else if(Q instanceof r2)return[null,...o2(Q.unwrap())];else if(Q instanceof D5)return o2(Q.unwrap());else if(Q instanceof k6)return o2(Q.unwrap());else if(Q instanceof Z6)return o2(Q._def.innerType);else return[]};class N5 extends O0{_parse(Q){let{ctx:J}=this._processInputParams(Q);if(J.parsedType!==J0.object)return Y0(J,{code:r.invalid_type,expected:J0.object,received:J.parsedType}),F0;let $=this.discriminator,q=J.data[$],X=this.optionsMap.get(q);if(!X)return Y0(J,{code:r.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[$]}),F0;if(J.common.async)return X._parseAsync({data:J.data,path:J.path,parent:J});else return X._parseSync({data:J.data,path:J.path,parent:J})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(Q,J,$){let q=new Map;for(let X of J){let Y=o2(X.shape[Q]);if(!Y.length)throw Error(`A discriminator value for key \`${Q}\` could not be extracted from all schema options`);for(let G of Y){if(q.has(G))throw Error(`Discriminator property ${String(Q)} has duplicate value ${String(G)}`);q.set(G,X)}}return new N5({typeName:z0.ZodDiscriminatedUnion,discriminator:Q,options:J,optionsMap:q,...C0($)})}}function T7(Q,J){let $=T2(Q),q=T2(J);if(Q===J)return{valid:!0,data:Q};else if($===J0.object&&q===J0.object){let X=P0.objectKeys(J),Y=P0.objectKeys(Q).filter((W)=>X.indexOf(W)!==-1),G={...Q,...J};for(let W of Y){let B=T7(Q[W],J[W]);if(!B.valid)return{valid:!1};G[W]=B.data}return{valid:!0,data:G}}else if($===J0.array&&q===J0.array){if(Q.length!==J.length)return{valid:!1};let X=[];for(let Y=0;Y<Q.length;Y++){let G=Q[Y],W=J[Y],B=T7(G,W);if(!B.valid)return{valid:!1};X.push(B.data)}return{valid:!0,data:X}}else if($===J0.date&&q===J0.date&&+Q===+J)return{valid:!0,data:Q};else return{valid:!1}}class A6 extends O0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q),q=(X,Y)=>{if(w5(X)||w5(Y))return F0;let G=T7(X.value,Y.value);if(!G.valid)return Y0($,{code:r.invalid_intersection_types}),F0;if(L5(X)||L5(Y))J.dirty();return{status:J.value,value:G.data}};if($.common.async)return Promise.all([this._def.left._parseAsync({data:$.data,path:$.path,parent:$}),this._def.right._parseAsync({data:$.data,path:$.path,parent:$})]).then(([X,Y])=>q(X,Y));else return q(this._def.left._parseSync({data:$.data,path:$.path,parent:$}),this._def.right._parseSync({data:$.data,path:$.path,parent:$}))}}A6.create=(Q,J,$)=>{return new A6({left:Q,right:J,typeName:z0.ZodIntersection,...C0($)})};class g2 extends O0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.array)return Y0($,{code:r.invalid_type,expected:J0.array,received:$.parsedType}),F0;if($.data.length<this._def.items.length)return Y0($,{code:r.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),F0;if(!this._def.rest&&$.data.length>this._def.items.length)Y0($,{code:r.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J.dirty();let X=[...$.data].map((Y,G)=>{let W=this._def.items[G]||this._def.rest;if(!W)return null;return W._parse(new N2($,Y,$.path,G))}).filter((Y)=>!!Y);if($.common.async)return Promise.all(X).then((Y)=>{return c0.mergeArray(J,Y)});else return c0.mergeArray(J,X)}get items(){return this._def.items}rest(Q){return new g2({...this._def,rest:Q})}}g2.create=(Q,J)=>{if(!Array.isArray(Q))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new g2({items:Q,typeName:z0.ZodTuple,rest:null,...C0(J)})};class z8 extends O0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.object)return Y0($,{code:r.invalid_type,expected:J0.object,received:$.parsedType}),F0;let q=[],X=this._def.keyType,Y=this._def.valueType;for(let G in $.data)q.push({key:X._parse(new N2($,G,$.path,G)),value:Y._parse(new N2($,$.data[G],$.path,G)),alwaysSet:G in $.data});if($.common.async)return c0.mergeObjectAsync(J,q);else return c0.mergeObjectSync(J,q)}get element(){return this._def.valueType}static create(Q,J,$){if(J instanceof O0)return new z8({keyType:Q,valueType:J,typeName:z0.ZodRecord,...C0($)});return new z8({keyType:z2.create(),valueType:Q,typeName:z0.ZodRecord,...C0(J)})}}class w8 extends O0{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.map)return Y0($,{code:r.invalid_type,expected:J0.map,received:$.parsedType}),F0;let q=this._def.keyType,X=this._def.valueType,Y=[...$.data.entries()].map(([G,W],B)=>{return{key:q._parse(new N2($,G,$.path,[B,"key"])),value:X._parse(new N2($,W,$.path,[B,"value"]))}});if($.common.async){let G=new Map;return Promise.resolve().then(async()=>{for(let W of Y){let B=await W.key,V=await W.value;if(B.status==="aborted"||V.status==="aborted")return F0;if(B.status==="dirty"||V.status==="dirty")J.dirty();G.set(B.value,V.value)}return{status:J.value,value:G}})}else{let G=new Map;for(let W of Y){let{key:B,value:V}=W;if(B.status==="aborted"||V.status==="aborted")return F0;if(B.status==="dirty"||V.status==="dirty")J.dirty();G.set(B.value,V.value)}return{status:J.value,value:G}}}}w8.create=(Q,J,$)=>{return new w8({valueType:J,keyType:Q,typeName:z0.ZodMap,...C0($)})};class u1 extends O0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.parsedType!==J0.set)return Y0($,{code:r.invalid_type,expected:J0.set,received:$.parsedType}),F0;let q=this._def;if(q.minSize!==null){if($.data.size<q.minSize.value)Y0($,{code:r.too_small,minimum:q.minSize.value,type:"set",inclusive:!0,exact:!1,message:q.minSize.message}),J.dirty()}if(q.maxSize!==null){if($.data.size>q.maxSize.value)Y0($,{code:r.too_big,maximum:q.maxSize.value,type:"set",inclusive:!0,exact:!1,message:q.maxSize.message}),J.dirty()}let X=this._def.valueType;function Y(W){let B=new Set;for(let V of W){if(V.status==="aborted")return F0;if(V.status==="dirty")J.dirty();B.add(V.value)}return{status:J.value,value:B}}let G=[...$.data.values()].map((W,B)=>X._parse(new N2($,W,$.path,B)));if($.common.async)return Promise.all(G).then((W)=>Y(W));else return Y(G)}min(Q,J){return new u1({...this._def,minSize:{value:Q,message:K0.toString(J)}})}max(Q,J){return new u1({...this._def,maxSize:{value:Q,message:K0.toString(J)}})}size(Q,J){return this.min(Q,J).max(Q,J)}nonempty(Q){return this.min(1,Q)}}u1.create=(Q,J)=>{return new u1({valueType:Q,minSize:null,maxSize:null,typeName:z0.ZodSet,...C0(J)})};class D6 extends O0{constructor(){super(...arguments);this.validate=this.implement}_parse(Q){let{ctx:J}=this._processInputParams(Q);if(J.parsedType!==J0.function)return Y0(J,{code:r.invalid_type,expected:J0.function,received:J.parsedType}),F0;function $(G,W){return j8({data:G,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,w6(),n2].filter((B)=>!!B),issueData:{code:r.invalid_arguments,argumentsError:W}})}function q(G,W){return j8({data:G,path:J.path,errorMaps:[J.common.contextualErrorMap,J.schemaErrorMap,w6(),n2].filter((B)=>!!B),issueData:{code:r.invalid_return_type,returnTypeError:W}})}let X={errorMap:J.common.contextualErrorMap},Y=J.data;if(this._def.returns instanceof p1){let G=this;return d0(async function(...W){let B=new e0([]),V=await G._def.args.parseAsync(W,X).catch((z)=>{throw B.addIssue($(W,z)),B}),U=await Reflect.apply(Y,this,V);return await G._def.returns._def.type.parseAsync(U,X).catch((z)=>{throw B.addIssue(q(U,z)),B})})}else{let G=this;return d0(function(...W){let B=G._def.args.safeParse(W,X);if(!B.success)throw new e0([$(W,B.error)]);let V=Reflect.apply(Y,this,B.data),U=G._def.returns.safeParse(V,X);if(!U.success)throw new e0([q(V,U.error)]);return U.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...Q){return new D6({...this._def,args:g2.create(Q).rest(H1.create())})}returns(Q){return new D6({...this._def,returns:Q})}implement(Q){return this.parse(Q)}strictImplement(Q){return this.parse(Q)}static create(Q,J,$){return new D6({args:Q?Q:g2.create([]).rest(H1.create()),returns:J||H1.create(),typeName:z0.ZodFunction,...C0($)})}}class I6 extends O0{get schema(){return this._def.getter()}_parse(Q){let{ctx:J}=this._processInputParams(Q);return this._def.getter()._parse({data:J.data,path:J.path,parent:J})}}I6.create=(Q,J)=>{return new I6({getter:Q,typeName:z0.ZodLazy,...C0(J)})};class S6 extends O0{_parse(Q){if(Q.data!==this._def.value){let J=this._getOrReturnCtx(Q);return Y0(J,{received:J.data,code:r.invalid_literal,expected:this._def.value}),F0}return{status:"valid",value:Q.data}}get value(){return this._def.value}}S6.create=(Q,J)=>{return new S6({value:Q,typeName:z0.ZodLiteral,...C0(J)})};function MX(Q,J){return new F1({values:Q,typeName:z0.ZodEnum,...C0(J)})}class F1 extends O0{_parse(Q){if(typeof Q.data!=="string"){let J=this._getOrReturnCtx(Q),$=this._def.values;return Y0(J,{expected:P0.joinValues($),received:J.parsedType,code:r.invalid_type}),F0}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(Q.data)){let J=this._getOrReturnCtx(Q),$=this._def.values;return Y0(J,{received:J.data,code:r.invalid_enum_value,options:$}),F0}return d0(Q.data)}get options(){return this._def.values}get enum(){let Q={};for(let J of this._def.values)Q[J]=J;return Q}get Values(){let Q={};for(let J of this._def.values)Q[J]=J;return Q}get Enum(){let Q={};for(let J of this._def.values)Q[J]=J;return Q}extract(Q,J=this._def){return F1.create(Q,{...this._def,...J})}exclude(Q,J=this._def){return F1.create(this.options.filter(($)=>!Q.includes($)),{...this._def,...J})}}F1.create=MX;class v6 extends O0{_parse(Q){let J=P0.getValidEnumValues(this._def.values),$=this._getOrReturnCtx(Q);if($.parsedType!==J0.string&&$.parsedType!==J0.number){let q=P0.objectValues(J);return Y0($,{expected:P0.joinValues(q),received:$.parsedType,code:r.invalid_type}),F0}if(!this._cache)this._cache=new Set(P0.getValidEnumValues(this._def.values));if(!this._cache.has(Q.data)){let q=P0.objectValues(J);return Y0($,{received:$.data,code:r.invalid_enum_value,options:q}),F0}return d0(Q.data)}get enum(){return this._def.values}}v6.create=(Q,J)=>{return new v6({values:Q,typeName:z0.ZodNativeEnum,...C0(J)})};class p1 extends O0{unwrap(){return this._def.type}_parse(Q){let{ctx:J}=this._processInputParams(Q);if(J.parsedType!==J0.promise&&J.common.async===!1)return Y0(J,{code:r.invalid_type,expected:J0.promise,received:J.parsedType}),F0;let $=J.parsedType===J0.promise?J.data:Promise.resolve(J.data);return d0($.then((q)=>{return this._def.type.parseAsync(q,{path:J.path,errorMap:J.common.contextualErrorMap})}))}}p1.create=(Q,J)=>{return new p1({type:Q,typeName:z0.ZodPromise,...C0(J)})};class D2 extends O0{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===z0.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q),q=this._def.effect||null,X={addIssue:(Y)=>{if(Y0($,Y),Y.fatal)J.abort();else J.dirty()},get path(){return $.path}};if(X.addIssue=X.addIssue.bind(X),q.type==="preprocess"){let Y=q.transform($.data,X);if($.common.async)return Promise.resolve(Y).then(async(G)=>{if(J.value==="aborted")return F0;let W=await this._def.schema._parseAsync({data:G,path:$.path,parent:$});if(W.status==="aborted")return F0;if(W.status==="dirty")return h1(W.value);if(J.value==="dirty")return h1(W.value);return W});else{if(J.value==="aborted")return F0;let G=this._def.schema._parseSync({data:Y,path:$.path,parent:$});if(G.status==="aborted")return F0;if(G.status==="dirty")return h1(G.value);if(J.value==="dirty")return h1(G.value);return G}}if(q.type==="refinement"){let Y=(G)=>{let W=q.refinement(G,X);if($.common.async)return Promise.resolve(W);if(W instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return G};if($.common.async===!1){let G=this._def.schema._parseSync({data:$.data,path:$.path,parent:$});if(G.status==="aborted")return F0;if(G.status==="dirty")J.dirty();return Y(G.value),{status:J.value,value:G.value}}else return this._def.schema._parseAsync({data:$.data,path:$.path,parent:$}).then((G)=>{if(G.status==="aborted")return F0;if(G.status==="dirty")J.dirty();return Y(G.value).then(()=>{return{status:J.value,value:G.value}})})}if(q.type==="transform")if($.common.async===!1){let Y=this._def.schema._parseSync({data:$.data,path:$.path,parent:$});if(!K1(Y))return F0;let G=q.transform(Y.value,X);if(G instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:J.value,value:G}}else return this._def.schema._parseAsync({data:$.data,path:$.path,parent:$}).then((Y)=>{if(!K1(Y))return F0;return Promise.resolve(q.transform(Y.value,X)).then((G)=>({status:J.value,value:G}))});P0.assertNever(q)}}D2.create=(Q,J,$)=>{return new D2({schema:Q,typeName:z0.ZodEffects,effect:J,...C0($)})};D2.createWithPreprocess=(Q,J,$)=>{return new D2({schema:J,effect:{type:"preprocess",transform:Q},typeName:z0.ZodEffects,...C0($)})};class L2 extends O0{_parse(Q){if(this._getType(Q)===J0.undefined)return d0(void 0);return this._def.innerType._parse(Q)}unwrap(){return this._def.innerType}}L2.create=(Q,J)=>{return new L2({innerType:Q,typeName:z0.ZodOptional,...C0(J)})};class r2 extends O0{_parse(Q){if(this._getType(Q)===J0.null)return d0(null);return this._def.innerType._parse(Q)}unwrap(){return this._def.innerType}}r2.create=(Q,J)=>{return new r2({innerType:Q,typeName:z0.ZodNullable,...C0(J)})};class E6 extends O0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$=J.data;if(J.parsedType===J0.undefined)$=this._def.defaultValue();return this._def.innerType._parse({data:$,path:J.path,parent:J})}removeDefault(){return this._def.innerType}}E6.create=(Q,J)=>{return new E6({innerType:Q,typeName:z0.ZodDefault,defaultValue:typeof J.default==="function"?J.default:()=>J.default,...C0(J)})};class Z6 extends O0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$={...J,common:{...J.common,issues:[]}},q=this._def.innerType._parse({data:$.data,path:$.path,parent:{...$}});if(L6(q))return q.then((X)=>{return{status:"valid",value:X.status==="valid"?X.value:this._def.catchValue({get error(){return new e0($.common.issues)},input:$.data})}});else return{status:"valid",value:q.status==="valid"?q.value:this._def.catchValue({get error(){return new e0($.common.issues)},input:$.data})}}removeCatch(){return this._def.innerType}}Z6.create=(Q,J)=>{return new Z6({innerType:Q,typeName:z0.ZodCatch,catchValue:typeof J.catch==="function"?J.catch:()=>J.catch,...C0(J)})};class L8 extends O0{_parse(Q){if(this._getType(Q)!==J0.nan){let $=this._getOrReturnCtx(Q);return Y0($,{code:r.invalid_type,expected:J0.nan,received:$.parsedType}),F0}return{status:"valid",value:Q.data}}}L8.create=(Q)=>{return new L8({typeName:z0.ZodNaN,...C0(Q)})};var gM=Symbol("zod_brand");class D5 extends O0{_parse(Q){let{ctx:J}=this._processInputParams(Q),$=J.data;return this._def.type._parse({data:$,path:J.path,parent:J})}unwrap(){return this._def.type}}class N8 extends O0{_parse(Q){let{status:J,ctx:$}=this._processInputParams(Q);if($.common.async)return(async()=>{let X=await this._def.in._parseAsync({data:$.data,path:$.path,parent:$});if(X.status==="aborted")return F0;if(X.status==="dirty")return J.dirty(),h1(X.value);else return this._def.out._parseAsync({data:X.value,path:$.path,parent:$})})();else{let q=this._def.in._parseSync({data:$.data,path:$.path,parent:$});if(q.status==="aborted")return F0;if(q.status==="dirty")return J.dirty(),{status:"dirty",value:q.value};else return this._def.out._parseSync({data:q.value,path:$.path,parent:$})}}static create(Q,J){return new N8({in:Q,out:J,typeName:z0.ZodPipeline})}}class k6 extends O0{_parse(Q){let J=this._def.innerType._parse(Q),$=(q)=>{if(K1(q))q.value=Object.freeze(q.value);return q};return L6(J)?J.then((q)=>$(q)):$(J)}unwrap(){return this._def.innerType}}k6.create=(Q,J)=>{return new k6({innerType:Q,typeName:z0.ZodReadonly,...C0(J)})};function UX(Q,J){let $=typeof Q==="function"?Q(J):typeof Q==="string"?{message:Q}:Q;return typeof $==="string"?{message:$}:$}function FX(Q,J={},$){if(Q)return c1.create().superRefine((q,X)=>{let Y=Q(q);if(Y instanceof Promise)return Y.then((G)=>{if(!G){let W=UX(J,q),B=W.fatal??$??!0;X.addIssue({code:"custom",...W,fatal:B})}});if(!Y){let G=UX(J,q),W=G.fatal??$??!0;X.addIssue({code:"custom",...G,fatal:W})}return});return c1.create()}var fM={object:g0.lazycreate},z0;(function(Q){Q.ZodString="ZodString",Q.ZodNumber="ZodNumber",Q.ZodNaN="ZodNaN",Q.ZodBigInt="ZodBigInt",Q.ZodBoolean="ZodBoolean",Q.ZodDate="ZodDate",Q.ZodSymbol="ZodSymbol",Q.ZodUndefined="ZodUndefined",Q.ZodNull="ZodNull",Q.ZodAny="ZodAny",Q.ZodUnknown="ZodUnknown",Q.ZodNever="ZodNever",Q.ZodVoid="ZodVoid",Q.ZodArray="ZodArray",Q.ZodObject="ZodObject",Q.ZodUnion="ZodUnion",Q.ZodDiscriminatedUnion="ZodDiscriminatedUnion",Q.ZodIntersection="ZodIntersection",Q.ZodTuple="ZodTuple",Q.ZodRecord="ZodRecord",Q.ZodMap="ZodMap",Q.ZodSet="ZodSet",Q.ZodFunction="ZodFunction",Q.ZodLazy="ZodLazy",Q.ZodLiteral="ZodLiteral",Q.ZodEnum="ZodEnum",Q.ZodEffects="ZodEffects",Q.ZodNativeEnum="ZodNativeEnum",Q.ZodOptional="ZodOptional",Q.ZodNullable="ZodNullable",Q.ZodDefault="ZodDefault",Q.ZodCatch="ZodCatch",Q.ZodPromise="ZodPromise",Q.ZodBranded="ZodBranded",Q.ZodPipeline="ZodPipeline",Q.ZodReadonly="ZodReadonly"})(z0||(z0={}));var _M=(Q,J={message:`Input not instance of ${Q.name}`})=>FX(($)=>$ instanceof Q,J),zX=z2.create,wX=j1.create,yM=L8.create,bM=M1.create,LX=C6.create,hM=m1.create,mM=M8.create,cM=O6.create,uM=P6.create,pM=c1.create,lM=H1.create,dM=x2.create,iM=F8.create,nM=w2.create,oM=g0.create,rM=g0.strictCreate,aM=R6.create,sM=N5.create,tM=A6.create,eM=g2.create,QF=z8.create,JF=w8.create,$F=u1.create,qF=D6.create,XF=I6.create,YF=S6.create,GF=F1.create,WF=v6.create,VF=p1.create,BF=D2.create,UF=L2.create,KF=r2.create,HF=D2.createWithPreprocess,jF=N8.create,MF=()=>zX().optional(),FF=()=>wX().optional(),zF=()=>LX().optional(),wF={string:(Q)=>z2.create({...Q,coerce:!0}),number:(Q)=>j1.create({...Q,coerce:!0}),boolean:(Q)=>C6.create({...Q,coerce:!0}),bigint:(Q)=>M1.create({...Q,coerce:!0}),date:(Q)=>m1.create({...Q,coerce:!0})};var LF=F0;class f2 extends Error{field;regex;constructor(Q,J,$){super($);this.field=Q,this.regex=J}}class D8 extends Error{hash;constructor(Q){super(`'${Q}' not found in the root hash`);this.hash=Q}}class x7 extends Map{#$;#Q=0;constructor(Q,J=[]){super();this.#$=Q;for(let[$,q]of J)this.set($,q)}get(Q){let J=super.get(Q);if(J!==void 0)super.delete(Q),super.set(Q,J);return J}set(Q,J){let $=super.get(Q);if($===void 0)this.#Q+=Q.length;else if($!==null)this.#Q-=$.length;if(J!==null)this.#Q+=J.length;super.delete(Q);let q;while(this.#Q>this.#$&&(q=this.entries().next().value)){let[X,Y]=q;if(super.delete(X),this.#Q-=X.length,Y!==null)this.#Q-=Y.length}return super.set(Q,J),this}delete(Q){let J=super.get(Q);if(J===void 0)return!1;if(super.delete(Q),J!==null)this.#Q-=J.length;return this.#Q-=Q.length,!0}clear(){super.clear(),this.#Q=0}}var xW=n5(DX(),1);function CX(Q){let J=Q.reduce((X,Y)=>X+Y.length,0),$=new Uint8Array(J),q=0;for(let X of Q)$.set(X,q),q+=X.length;return $}var bP=n5(kW(),1),c5=/^[0-9a-f]{64}$/,gW=x.object({name:x.string(),timestamp:x.number()}).passthrough(),YN=x.object({name:x.string(),pageId:x.string(),timestamp:x.number()}).passthrough(),GN=x.object({authors:x.array(x.string()).optional(),title:x.string().optional(),publicationDate:x.string().optional(),publisher:x.string().optional()}).passthrough(),WN=x.object({id:x.string(),idx:x.object({timestamp:x.string(),value:x.string()}).passthrough(),template:x.object({timestamp:x.string(),value:x.string()}).passthrough().optional(),redir:x.object({timestamp:x.string(),value:x.number().int()}).passthrough().optional(),scrollTime:x.object({timestamp:x.string(),value:x.string().datetime({offset:!0})}).passthrough().optional(),verticalScroll:x.object({timestamp:x.string(),value:x.number()}).passthrough().optional(),deleted:x.object({timestamp:x.string(),value:x.number().int()}).passthrough().optional()}).passthrough(),VN=x.object({lastOpened:x.object({timestamp:x.string(),value:x.string()}).passthrough(),original:x.object({timestamp:x.string(),value:x.number().int()}).passthrough(),pages:x.array(WN),uuids:x.array(x.object({first:x.string(),second:x.number().int().nonnegative()}).passthrough()).nullable()}).passthrough(),BN=x.object({tags:x.array(gW).optional()}).strict(),UN=x.object({tags:x.array(x.string()).optional()}).strict(),KN={coverPageNumber:x.number().int(),documentMetadata:GN,extraMetadata:x.record(x.string(),x.string()),fileType:x.enum(["epub","notebook","pdf"]),fontName:x.string(),lineHeight:x.number().int(),orientation:x.enum(["portrait","landscape"]),pageCount:x.number().int().nonnegative(),textAlignment:x.enum(["","justify","left"]),textScale:x.number()},HN={cPages:VN.optional(),customZoomCenterX:x.number().optional(),customZoomCenterY:x.number().optional(),customZoomOrientation:x.enum(["portrait","landscape"]).optional(),customZoomPageHeight:x.number().optional(),customZoomPageWidth:x.number().optional(),customZoomScale:x.number().optional(),dummyDocument:x.boolean().optional(),formatVersion:x.number().int().nonnegative().optional(),keyboardMetadata:x.object({count:x.number().int().nonnegative(),timestamp:x.number()}).passthrough().optional(),lastOpenedPage:x.number().int().optional(),margins:x.number().int().nonnegative().optional(),originalPageCount:x.number().int().optional(),pages:x.array(x.string()).nullable().optional(),pageTags:x.array(YN).optional(),redirectionPageMap:x.array(x.number().int()).optional(),sizeInBytes:x.string().optional(),transform:x.object({m11:x.number().optional(),m12:x.number().optional(),m13:x.number().optional(),m21:x.number().optional(),m22:x.number().optional(),m23:x.number().optional(),m31:x.number().optional(),m32:x.number().optional(),m33:x.number().optional()}).passthrough().optional(),viewBackgroundFilter:x.enum(["off","fullpage"]).optional(),zoomMode:x.enum(["bestFit","customFit","fitToHeight","fitToWidth"]).optional()},fW=x.object({...KN,...HN}).passthrough(),jN=fW.extend({tags:x.array(gW).optional()}).passthrough(),MN=fW.extend({tags:x.array(x.string()).optional()}).passthrough(),FN=x.object({name:x.string(),author:x.string(),iconData:x.string(),categories:x.array(x.string()),labels:x.array(x.string()),orientation:x.enum(["portrait","landscape"]),templateVersion:x.string(),supportedScreens:x.array(x.enum(["rm2","rmPP"])),constants:x.array(x.record(x.string(),x.number().int())).optional(),items:x.array(x.unknown()),formatVersion:x.number().int().nonnegative().optional()}).strict(),zN=x.union([BN,UN,FN,jN,MN]),wN=x.object({lastModified:x.string(),parent:x.string(),pinned:x.boolean(),type:x.enum(["DocumentType","CollectionType","TemplateType"]),visibleName:x.string(),lastOpened:x.string().optional(),lastOpenedPage:x.number().int().optional(),createdTime:x.string().optional(),deleted:x.boolean().optional(),metadatamodified:x.boolean().optional(),modified:x.boolean().optional(),synced:x.boolean().optional(),version:x.number().int().nonnegative().optional(),new:x.boolean().optional(),source:x.string().optional()}).passthrough(),LN=x.object({hash:x.string(),generation:x.number()}).passthrough(),NN=x.object({hash:x.string(),generation:x.number(),schemaVersion:x.number().int().nonnegative()}).passthrough(),DN=x.object({docID:x.string(),hash:x.string()}).passthrough();async function TQ(Q){let J=await crypto.subtle.digest("SHA-256",Q);return new Uint8Array(J).toHex()}function TW(Q){let[J,$,q,X,Y]=Q.split(":");if(J===void 0||$===void 0||q===void 0||X===void 0||Y===void 0)throw Error(`line '${Q}' was not formatted correctly`);else if($==="80000000"||$==="0")return{hash:J,type:$==="0"?0:80000000,id:q,subfiles:parseInt(X,10),size:parseInt(Y,10)};else throw Error(`line '${Q}' was not formatted correctly`)}class xQ{#$;#Q;#X;#J;constructor(Q,J,$,q){this.#$=Q,this.#J=J,this.#Q=$,this.#X=q}async getRootHash(){let J=await(await this.#$("GET",`${this.#Q}/sync/v4/root`)).text(),$=JSON.parse(J),{hash:q,generation:X,schemaVersion:Y}=NN.parse($);if(Y!==3&&Y!==4)throw Error(`schema version ${Y} not supported`);else if(!Number.isSafeInteger(X))throw Error(`generation ${X} was not a safe integer; please file a bug report`);else return[q,X,Y]}async#q(Q,J){if(!c5.test(J))throw new f2(J,c5,"hash was not a valid hash");let q=await(await this.#$("GET",`${this.#Q}/sync/v3/files/${J}`,{headers:{"rm-filename":Q}})).arrayBuffer();return new Uint8Array(q)}async getHash(Q,J){let $=this.#J.get(J);if($!=null)return new TextEncoder().encode($);else{let q=await this.#q(Q,J);if(this.#J.get(J)===void 0)this.#J.set(J,null);return q}}async getText(Q,J){let $=this.#J.get(J);if($!=null)return $;else{let q=await this.#q(Q,J),Y=new TextDecoder().decode(q);return this.#J.set(J,Y),Y}}async getEntries(Q,J){let $=await this.getText(Q,J),[q,...X]=$.slice(0,-1).split(`
5
+ `);if(q==="3")return{entries:X.map(TW)};else if(q==="4"){let[Y,...G]=X;if(!Y)throw Error("missing info line for schema version 4");let[W,B,V,U]=Y.split(":");if(W!=="0"||B===void 0||V===void 0||U===void 0)throw Error(`schema 4 info line '${Y}' was not formatted correctly`);let M=G.map(TW);if(parseInt(V,10)!==M.length)throw Error(`schema 4 expected ${V} entries, but found ${M.length}`);else return{entries:M,id:B,size:parseInt(U,10)}}else throw Error(`schema version ${q} not supported`)}async getContent(Q,J){let $=await this.getText(Q,J),q=JSON.parse($);return zN.parse(q)}async getMetadata(Q,J){let $=await this.getText(Q,J),q=JSON.parse($);return wN.parse(q)}async putRootHash(Q,J,$=!0){if(!Number.isSafeInteger(J))throw Error(`generation ${J} was not a safe integer`);else if(!c5.test(Q))throw new f2(Q,c5,"rootHash was not a valid hash");let q=JSON.stringify({hash:Q,generation:J,broadcast:$}),Y=await(await this.#$("PUT",`${this.#Q}/sync/v3/root`,{body:q})).text(),G=JSON.parse(Y),{hash:W,generation:B}=LN.parse(G);if(Number.isSafeInteger(B))return[W,B];else throw Error(`new generation ${B} was not a safe integer; please file a bug report`)}async#Y(Q,J,$){if(!this.#J.has(J)){let q=xW.default.buf($,0),X=new ArrayBuffer(4);new DataView(X).setInt32(0,q,!1);let Y=new Uint8Array(X).toBase64();if(await this.#$("PUT",`${this.#Q}/sync/v3/files/${J}`,{body:$,headers:{"rm-filename":Q,"x-goog-hash":`crc32c=${Y}`}}),this.#J.get(J)===void 0)this.#J.set(J,null)}}async putFile(Q,J){let $=await TQ(J);return[{id:Q,hash:$,type:0,subfiles:0,size:J.length},this.#Y(Q,$,J)]}async putText(Q,J){let q=new TextEncoder().encode(J),[X,Y]=await this.putFile(Q,q);return[X,Y.then(()=>{this.#J.set(X.hash,J)})]}async putContent(Q,J){if(!Q.endsWith(".content"))throw Error(`id ${Q} did not end with '.content'`);else return await this.putText(Q,JSON.stringify(J))}async putMetadata(Q,J){if(!Q.endsWith(".metadata"))throw Error(`id ${Q} did not end with '.metadata'`);else return await this.putText(Q,JSON.stringify(J))}async putEntries(Q,J,$){if(Q==="root"&&$===3)console.warn('writing a schema 3 root index, which reMarkable rejects with a 400 "Software must be updated" error; write the root index with schema version 4 instead');let q=[...J].sort((U,M)=>U.id.localeCompare(M.id)),X=q.reduce((U,M)=>U+M.size,0),Y=[`${$}
6
+ `];if($===4){let U=Q==="root"?".":Q;Y.push(`0:${U}:${q.length}:${X}
7
+ `)}for(let{hash:U,type:M,id:z,subfiles:j,size:y}of q){let f=$===4?0:M;Y.push(`${U}:${f}:${z}:${j}:${y}
8
+ `)}let W=new TextEncoder().encode(Y.join("")),B;if($===3){let U=[];for(let{hash:M}of q)U.push(Uint8Array.fromHex(M));B=await TQ(CX(U))}else if($===4)B=await TQ(W);else throw Error(`unsupported schema version ${$}`);return[{id:Q,hash:B,type:$>3?0:80000000,subfiles:q.length,size:X},this.#Y(`${Q}.docSchema`,B,W)]}async uploadFile(Q,J,$){let X=new TextEncoder().encode(JSON.stringify({file_name:Q})).toBase64(),G=await(await this.#$("POST",`${this.#X}/doc/v2/files`,{body:J,headers:{"Content-Type":$,"rm-meta":X,"rm-source":"RoR-Browser"}})).json(),{docID:W,hash:B}=DN.parse(G);return{id:W,hash:B}}dumpCache(){return JSON.stringify(Object.fromEntries(this.#J))}clearCache(){this.#J.clear()}}var yW="https://webapp-prod.cloud.remarkable.engineering",CN="https://eu.tectonic.remarkable.com",ON="https://internal.cloud.remarkable.com",N1=/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}||trash)$/;class gQ extends Error{constructor(){super("root generation was stale; try put again")}}class fQ extends Error{status;statusText;constructor(Q,J,$){super($);this.status=Q,this.statusText=J}}async function dP(Q,{deviceDesc:J="browser-chrome",uuid:$=z6(),authHost:q=yW}={}){if(Q.length!==8)throw Error(`code should be length 8, but was ${Q.length}`);let X=await fetch(`${q}/token/json/2/device/new`,{method:"POST",headers:{Authorization:"Bearer"},body:JSON.stringify({code:Q,deviceDesc:J,deviceID:$})});if(!X.ok)throw new fQ(X.status,X.statusText,"couldn't register api");else return await X.text()}class bW{#$;#Q;raw;#X;#J;constructor(Q,J,$,q){this.#$=Q,this.#Q=q,this.raw=new xQ((X,Y,{body:G,headers:W}={})=>this.#U(Y,{method:X,body:G,headers:W}),q,J,$)}async#q(Q=!1){if(Q||this.#X===void 0){let[J,$,q]=await this.raw.getRootHash();this.#X=[J,$],this.#J=q}return[...this.#X,this.#J]}async#Y(Q,J){try{let[$,q]=await this.raw.putRootHash(Q,J);this.#X=[$,q]}catch($){if($ instanceof gQ)this.#X=void 0;throw $}}async#U(Q,{body:J,method:$="POST",headers:q={}}){let X=await fetch(Q,{method:$,headers:{Authorization:`Bearer ${this.#$}`,...q},body:J});if(!X.ok){let Y=await X.text();if(Y===`{"message":"precondition failed"}
9
+ `)throw new gQ;else throw new fQ(X.status,X.statusText,`failed reMarkable request: ${Y}`)}else return X}async#K({hash:Q,id:J}){let{entries:$}=await this.raw.getEntries(`${J}.docSchema`,Q),q=$.find((y)=>y.id.endsWith(".metadata")),X=$.find((y)=>y.id.endsWith(".content"));if(q===void 0)throw Error(`couldn't find metadata for hash ${Q}`);let[{visibleName:Y,lastModified:G,pinned:W,parent:B,lastOpened:V,createdTime:U,new:M,source:z},j]=await Promise.all([this.raw.getMetadata(q.id,q.hash),X===void 0?Promise.resolve({fileType:void 0,tags:void 0}):this.raw.getContent(X.id,X.hash)]);if("templateVersion"in j)return{id:J,hash:Q,visibleName:Y,lastModified:G,new:M,pinned:W,source:z,parent:B,createdTime:U,type:"TemplateType"};else if(j.fileType===void 0)return{id:J,hash:Q,visibleName:Y,lastModified:G,pinned:W,parent:B,tags:j.tags,type:"CollectionType"};else return{id:J,hash:Q,visibleName:Y,lastModified:G,pinned:W,parent:B,tags:j.tags,lastOpened:V??"",fileType:j.fileType,type:"DocumentType"}}async listItems(Q=!1){let J=await this.listIds(Q);return await Promise.all(J.map(($)=>this.#K($)))}async listIds(Q=!1){let[J]=await this.#q(Q),{entries:$}=await this.raw.getEntries("root.docSchema",J);return $.map(({id:q,hash:X})=>({id:q,hash:X}))}async getContent(Q,J){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,J),[q]=$.filter((X)=>X.id.endsWith(".content"));if(q===void 0)throw Error(`couldn't find contents for hash ${J}`);else return await this.raw.getContent(q.id,q.hash)}async getMetadata(Q,J){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,J),[q]=$.filter((X)=>X.id.endsWith(".metadata"));if(q===void 0)throw Error(`couldn't find metadata for hash ${J}`);else return await this.raw.getMetadata(q.id,q.hash)}async getPdf(Q,J){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,J),[q]=$.filter((X)=>X.id.endsWith(".pdf"));if(q===void 0)throw Error(`couldn't find pdf for hash ${J}`);else return await this.raw.getHash(q.id,q.hash)}async getEpub(Q,J){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,J),[q]=$.filter((X)=>X.id.endsWith(".epub"));if(q===void 0)throw Error(`couldn't find epub for hash ${J}`);else return await this.raw.getHash(q.id,q.hash)}async getDocument(Q,J){let{entries:$}=await this.raw.getEntries(`${Q}.docSchema`,J),q=new _W.default;for(let X of $)q.file(X.id,this.raw.getHash(X.id,X.hash));return q.generateAsync({type:"uint8array"})}async#V(Q,J,$,{refresh:q,parent:X="",pinned:Y=!1,zoomMode:G="bestFit",viewBackgroundFilter:W,textScale:B=1,textAlignment:V="justify",fontName:U="",coverPageNumber:M=-1,authors:z,title:j,publicationDate:y,publisher:f,extraMetadata:C={},lineHeight:P=-1,margins:K=125,orientation:w="portrait",tags:L}){if(X&&!N1.test(X))throw new f2(X,N1,"parent must be a valid document id");let O=z6(),b=new Date,k={parent:X,pinned:Y,lastModified:(+b).toFixed(),createdTime:(+b).toFixed(),type:"DocumentType",visibleName:Q,lastOpened:"0",lastOpenedPage:0},d={coverPageNumber:M,documentMetadata:{authors:z,title:j,publicationDate:y,publisher:f},extraMetadata:C,lineHeight:P,margins:K,orientation:w,fileType:J,formatVersion:1,tags:L?.map((c)=>({name:c,timestamp:+b}))??[],fontName:U,textAlignment:V,textScale:B,zoomMode:G,viewBackgroundFilter:W,originalPageCount:1,pageCount:1,pageTags:[],pages:[z6()],redirectionPageMap:[0],sizeInBytes:$.length.toFixed()},[[S,v],[R,D],[T,_],[Z,t],[q0,V0,N0]]=await Promise.all([this.raw.putContent(`${O}.content`,d),this.raw.putMetadata(`${O}.metadata`,k),this.raw.putText(`${O}.pagedata`,`
10
+ `),this.raw.putFile(`${O}.${J}`,$),this.#q(q)]),[[u,H0],{entries:N}]=await Promise.all([this.raw.putEntries(O,[S,R,T,Z],N0),this.raw.getEntries("root.docSchema",q0)]);N.push(u);let[i,G0]=await this.raw.putEntries("root",N,4);return await Promise.all([v,D,_,t,H0,G0]),await this.#Y(i.hash,V0),{id:O,hash:u.hash}}async putPdf(Q,J,$={}){return await this.#V(Q,"pdf",J,$)}async putEpub(Q,J,$={}){return await this.#V(Q,"epub",J,$)}async putFolder(Q,{parent:J=""}={},$=!1){if(J&&!N1.test(J))throw new f2(J,N1,"parent must be a valid document id");let q=z6(),X=new Date,Y={tags:[]},G={lastModified:(+X).toFixed(),createdTime:(+X).toFixed(),parent:J,pinned:!1,type:"CollectionType",visibleName:Q},[[W,B],[V,U],[M,z,j]]=await Promise.all([this.raw.putContent(`${q}.content`,Y),this.raw.putMetadata(`${q}.metadata`,G),this.#q($)]),[[y,f],{entries:C}]=await Promise.all([this.raw.putEntries(q,[W,V],j),this.raw.getEntries("root.docSchema",M)]);C.push(y);let[P,K]=await this.raw.putEntries("root",C,4);return await Promise.all([B,U,f,K]),await this.#Y(P.hash,z),{id:q,hash:y.hash}}async uploadEpub(Q,J){return await this.raw.uploadFile(Q,J,"application/epub+zip")}async uploadPdf(Q,J){return await this.raw.uploadFile(Q,J,"application/pdf")}async uploadFolder(Q){return await this.raw.uploadFile(Q,new Uint8Array(0),"folder")}async#H(Q,J,$,q){let{entries:X}=await this.raw.getEntries(`${Q}.docSchema`,J),Y=X.findIndex((j)=>j.id.endsWith(".content")),G=X[Y];if(G===void 0)throw Error("internal error: couldn't find content in entry hash");let W=await this.raw.getContent(G.id,G.hash);Object.assign(W,$);let[B,V]=await this.raw.putContent(G.id,W);X[Y]=B;let[U,M]=await this.raw.putEntries(Q,X,q),z=Promise.all([V,M]);return[U,z]}async#G(Q,J,$,q){let[X,Y,G]=await this.#q(q),{entries:W}=await this.raw.getEntries("root.docSchema",X),B=W.findIndex((f)=>f.hash===Q),V=W[B];if(V===void 0)throw new D8(Q);let[[U,M],z]=await Promise.all([this.#H(V.id,Q,J,G),this.getMetadata(V.id,Q)]);if(z.type!==$)throw Error(`expected type ${$} but got ${z.type} for hash ${Q}`);W[B]=U;let[j,y]=await this.raw.putEntries("root",W,4);return await Promise.all([M,y]),await this.#Y(j.hash,Y),{hash:U.hash}}async updateDocument(Q,J,$=!1){return await this.#G(Q,J,"DocumentType",$)}async updateCollection(Q,J,$=!1){return await this.#G(Q,J,"CollectionType",$)}async updateTemplate(Q,J,$=!1){return await this.#G(Q,J,"TemplateType",$)}async#B(Q,J,$,q){let{entries:X}=await this.raw.getEntries(`${Q}.docSchema`,J),Y=X.findIndex((j)=>j.id.endsWith(".metadata")),G=X[Y];if(G===void 0)throw Error("internal error: couldn't find metadata in entry hash");let W=await this.raw.getMetadata(G.id,G.hash);Object.assign(W,$);let[B,V]=await this.raw.putMetadata(G.id,W);X[Y]=B;let[U,M]=await this.raw.putEntries(Q,X,q),z=Promise.all([V,M]);return[U,z]}async#W(Q,J,$=!1){let[q,X,Y]=await this.#q($),{entries:G}=await this.raw.getEntries("root.docSchema",q),W=G.findIndex((j)=>j.hash===Q),B=G[W];if(B===void 0)throw new D8(Q);let[V,U]=await this.#B(B.id,Q,J,Y);G[W]=V;let[M,z]=await this.raw.putEntries("root",G,4);return await Promise.all([U,z]),await this.#Y(M.hash,X),{hash:V.hash}}async move(Q,J,$=!1){if(!N1.test(J))throw new f2(J,N1,"parent must be a valid document id");return await this.#W(Q,{parent:J},$)}async delete(Q,J=!1){return await this.move(Q,"trash",J)}async rename(Q,J,$=!1){return await this.#W(Q,{visibleName:J},$)}async stared(Q,J,$=!1){return await this.#W(Q,{pinned:J},$)}async bulkMove(Q,J,$=!1){if(!N1.test(J))throw new f2(J,N1,"parent must be a valid document id");let[q,X,Y]=await this.#q($),{entries:G}=await this.raw.getEntries("root.docSchema",q),W=new Set(Q),B=[],V=[];for(let f of G)(W.has(f.hash)?B:V).push(f);let U=await Promise.all(B.map(({id:f,hash:C})=>this.#B(f,C,{parent:J},Y))),M=[],z={};for(let[f,[C,P]]of U.entries())V.push(C),M.push(P),z[B[f].hash]=C.hash;let[j,y]=await this.raw.putEntries("root",V,4);return await Promise.all([Promise.all(M),y]),await this.#Y(j.hash,X),{hashes:z}}async bulkDelete(Q,J=!1){return await this.bulkMove(Q,"trash",J)}dumpCache(){return this.raw.dumpCache()}async pruneCache(Q){let[J]=await this.#q(Q),$=new Set(this.#Q.keys());$.delete(J);let X=[(await this.raw.getEntries("root.docSchema",J)).entries],Y=[];while(X.length){for(let W of X)for(let{hash:B,subfiles:V,id:U}of W)if($.delete(B),V>0)Y.push(this.raw.getEntries(`${U}.docSchema`,B));X=(await Promise.all(Y)).map((W)=>W.entries),Y=[]}for(let G of $)this.#Q.delete(G)}clearCache(){this.raw.clearCache()}}var PN=x.record(x.string(),x.string().nullable());async function RN(Q,{authHost:J=yW}={}){let $=await fetch(`${J}/token/json/2/user/new`,{method:"POST",headers:{Authorization:`Bearer ${Q}`}});if(!$.ok)throw Error(`couldn't fetch auth token: ${$.statusText}`);return await $.text()}function AN(Q,{rawHost:J=CN,uploadHost:$=ON,cache:q,maxCacheSize:X=1/0}={}){let Y=JSON.parse(q??"{}"),G=PN.safeParse(Y);if(G.success){let W=Object.entries(G.data),B=X===1/0?new Map(W):new x7(X,W);return new bW(Q,J,$,B)}throw Error("cache was not a valid cache (json string mapping); your cache must be corrupted somehow. Either initialize remarkable without a cache, or fix its format.")}async function iP(Q,J={}){let{authHost:$,rawHost:q,uploadHost:X,cache:Y,maxCacheSize:G}=J??{},W=await RN(Q,{authHost:$});return AN(W,{rawHost:q,uploadHost:X,cache:Y,maxCacheSize:G})}export{AN as session,iP as remarkable,dP as register,RN as auth,f2 as ValidationError,fQ as ResponseError,D8 as HashNotFoundError,gQ as GenerationError};