UNPKG

@toruslabs/solana-embed

Version:
2 lines 243 kB
/*! For license information please see solanaEmbed.umd.min.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SolanaEmbed=e():t.SolanaEmbed=e()}(self,()=>(()=>{var t={41:(t,e,r)=>{"use strict";var n=r(655),o=r(8068),i=r(9675),s=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],f=!!s&&s(t,e);if(n)n(t,e,{configurable:null===u&&f?f.configurable:!u,enumerable:null===a&&f?f.enumerable:!a,value:r,writable:null===l&&f?f.writable:!l});else{if(!c&&(a||l||u))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},76:t=>{"use strict";t.exports=Function.prototype.call},251:(t,e)=>{e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,l=(1<<a)-1,u=l>>1,c=-7,f=r?o-1:0,d=r?-1:1,h=t[e+f];for(f+=d,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+t[e+f],f+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+t[e+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=u}return(h?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,p=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(s++,l/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(e*l-1)*Math.pow(2,o),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;t[r+h]=255&a,h+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;t[r+h]=255&s,h+=p,s/=256,u-=8);t[r+h-p]|=128*y}},277:(t,e,r)=>{"use strict";const{ArrayIsArray:n,ArrayPrototypeIncludes:o,ArrayPrototypeJoin:i,ArrayPrototypeMap:s,NumberIsInteger:a,NumberIsNaN:l,NumberMAX_SAFE_INTEGER:u,NumberMIN_SAFE_INTEGER:c,NumberParseInt:f,ObjectPrototypeHasOwnProperty:d,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:y,StringPrototypeTrim:g}=r(4134),{hideStackFrames:b,codes:{ERR_SOCKET_BAD_PORT:w,ERR_INVALID_ARG_TYPE:m,ERR_INVALID_ARG_VALUE:v,ERR_OUT_OF_RANGE:_,ERR_UNKNOWN_SIGNAL:E}}=r(6371),{normalizeEncoding:S}=r(7760),{isAsyncFunction:A,isArrayBufferView:I}=r(7760).types,R={},O=/^[0-7]+$/,T=b((t,e,r=c,n=u)=>{if("number"!=typeof t)throw new m(e,"number",t);if(!a(t))throw new _(e,"an integer",t);if(t<r||t>n)throw new _(e,`>= ${r} && <= ${n}`,t)}),x=b((t,e,r=-2147483648,n=2147483647)=>{if("number"!=typeof t)throw new m(e,"number",t);if(!a(t))throw new _(e,"an integer",t);if(t<r||t>n)throw new _(e,`>= ${r} && <= ${n}`,t)}),N=b((t,e,r=!1)=>{if("number"!=typeof t)throw new m(e,"number",t);if(!a(t))throw new _(e,"an integer",t);const n=r?1:0,o=4294967295;if(t<n||t>o)throw new _(e,`>= ${n} && <= ${o}`,t)});function P(t,e){if("string"!=typeof t)throw new m(e,"string",t)}const L=b((t,e,r)=>{if(!o(r,t)){const n=i(s(r,t=>"string"==typeof t?`'${t}'`:p(t)),", ");throw new v(e,t,"must be one of: "+n)}});function B(t,e){if("boolean"!=typeof t)throw new m(e,"boolean",t)}function C(t,e,r){return null!=t&&d(t,e)?t[e]:r}const k=b((t,e,r=null)=>{const o=C(r,"allowArray",!1),i=C(r,"allowFunction",!1);if(!C(r,"nullable",!1)&&null===t||!o&&n(t)||"object"!=typeof t&&(!i||"function"!=typeof t))throw new m(e,"Object",t)}),j=b((t,e)=>{if(null!=t&&"object"!=typeof t&&"function"!=typeof t)throw new m(e,"a dictionary",t)}),U=b((t,e,r=0)=>{if(!n(t))throw new m(e,"Array",t);if(t.length<r)throw new v(e,t,`must be longer than ${r}`)}),M=b((t,e="buffer")=>{if(!I(t))throw new m(e,["Buffer","TypedArray","DataView"],t)}),D=b((t,e)=>{if(void 0!==t&&(null===t||"object"!=typeof t||!("aborted"in t)))throw new m(e,"AbortSignal",t)}),F=b((t,e)=>{if("function"!=typeof t)throw new m(e,"Function",t)}),W=b((t,e)=>{if("function"!=typeof t||A(t))throw new m(e,"Function",t)}),$=b((t,e)=>{if(void 0!==t)throw new m(e,"undefined",t)}),H=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function q(t,e){if(void 0===t||!h(H,t))throw new v(e,t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}t.exports={isInt32:function(t){return t===(0|t)},isUint32:function(t){return t===t>>>0},parseFileMode:function(t,e,r){if(void 0===t&&(t=r),"string"==typeof t){if(null===h(O,t))throw new v(e,t,"must be a 32-bit unsigned integer or an octal string");t=f(t,8)}return N(t,e),t},validateArray:U,validateStringArray:function(t,e){U(t,e);for(let r=0;r<t.length;r++)P(t[r],`${e}[${r}]`)},validateBooleanArray:function(t,e){U(t,e);for(let r=0;r<t.length;r++)B(t[r],`${e}[${r}]`)},validateAbortSignalArray:function(t,e){U(t,e);for(let r=0;r<t.length;r++){const n=t[r],o=`${e}[${r}]`;if(null==n)throw new m(o,"AbortSignal",n);D(n,o)}},validateBoolean:B,validateBuffer:M,validateDictionary:j,validateEncoding:function(t,e){const r=S(e),n=t.length;if("hex"===r&&n%2!=0)throw new v("encoding",e,`is invalid for data of length ${n}`)},validateFunction:F,validateInt32:x,validateInteger:T,validateNumber:function(t,e,r=void 0,n){if("number"!=typeof t)throw new m(e,"number",t);if(null!=r&&t<r||null!=n&&t>n||(null!=r||null!=n)&&l(t))throw new _(e,`${null!=r?`>= ${r}`:""}${null!=r&&null!=n?" && ":""}${null!=n?`<= ${n}`:""}`,t)},validateObject:k,validateOneOf:L,validatePlainFunction:W,validatePort:function(t,e="Port",r=!0){if("number"!=typeof t&&"string"!=typeof t||"string"==typeof t&&0===g(t).length||+t!==+t>>>0||t>65535||0===t&&!r)throw new w(e,t,r);return 0|t},validateSignalName:function(t,e="signal"){if(P(t,e),void 0===R[t]){if(void 0!==R[y(t)])throw new E(t+" (signals must use all capital letters)");throw new E(t)}},validateString:P,validateUint32:N,validateUndefined:$,validateUnion:function(t,e,r){if(!o(r,t))throw new m(e,`('${i(r,"|")}')`,t)},validateAbortSignal:D,validateLinkHeaderValue:function(t){if("string"==typeof t)return q(t,"hints"),t;if(n(t)){const e=t.length;let r="";if(0===e)return r;for(let n=0;n<e;n++){const o=t[n];q(o,"hints"),r+=o,n!==e-1&&(r+=", ")}return r}throw new v("hints",t,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}},345:(t,e,r)=>{"use strict";const{StringPrototypeSlice:n,SymbolIterator:o,TypedArrayPrototypeSet:i,Uint8Array:s}=r(4134),{Buffer:a}=r(8287),{inspect:l}=r(7760);t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(t){const e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}unshift(t){const e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}shift(){if(0===this.length)return;const t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}clear(){this.head=this.tail=null,this.length=0}join(t){if(0===this.length)return"";let e=this.head,r=""+e.data;for(;null!==(e=e.next);)r+=t+e.data;return r}concat(t){if(0===this.length)return a.alloc(0);const e=a.allocUnsafe(t>>>0);let r=this.head,n=0;for(;r;)i(e,r.data,n),n+=r.data.length,r=r.next;return e}consume(t,e){const r=this.head.data;if(t<r.length){const e=r.slice(0,t);return this.head.data=r.slice(t),e}return t===r.length?this.shift():e?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[o](){for(let t=this.head;t;t=t.next)yield t.data}_getString(t){let e="",r=this.head,o=0;do{const i=r.data;if(!(t>i.length)){t===i.length?(e+=i,++o,r.next?this.head=r.next:this.head=this.tail=null):(e+=n(i,0,t),this.head=r,r.data=n(i,t));break}e+=i,t-=i.length,++o}while(null!==(r=r.next));return this.length-=o,e}_getBuffer(t){const e=a.allocUnsafe(t),r=t;let n=this.head,o=0;do{const a=n.data;if(!(t>a.length)){t===a.length?(i(e,a,r-t),++o,n.next?this.head=n.next:this.head=this.tail=null):(i(e,new s(a.buffer,a.byteOffset,t),r-t),this.head=n,n.data=a.slice(t));break}i(e,a,r-t),t-=a.length,++o}while(null!==(n=n.next));return this.length-=o,e}[Symbol.for("nodejs.util.inspect.custom")](t,e){return l(this,{...e,depth:0,customInspect:!1})}}},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var n,o=r(9612),i=r(9383),s=r(1237),a=r(9290),l=r(9538),u=r(8068),c=r(9675),f=r(5345),d=r(1514),h=r(8968),p=r(6188),y=r(8002),g=r(5880),b=r(414),w=r(3093),m=Function,v=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},_=r(5795),E=r(655),S=function(){throw new c},A=_?function(){try{return S}catch(t){try{return _(arguments,"callee").get}catch(t){return S}}}():S,I=r(4039)(),R=r(3628),O=r(1064),T=r(8648),x=r(1002),N=r(76),P={},L="undefined"!=typeof Uint8Array&&R?R(Uint8Array):n,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":I&&R?R([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I&&R?R(R([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&I&&R?R((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":_,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&I&&R?R((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I&&R?R(""[Symbol.iterator]()):n,"%Symbol%":I?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":A,"%TypedArray%":L,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":N,"%Function.prototype.apply%":x,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":w,"%Reflect.getPrototypeOf%":T};if(R)try{null.error}catch(t){var C=R(R(t));B["%Error.prototype%"]=C}var k=function t(e){var r;if("%AsyncFunction%"===e)r=v("async function () {}");else if("%GeneratorFunction%"===e)r=v("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=v("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&R&&(r=R(o.prototype))}return B[e]=r,r},j={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=r(6743),M=r(9957),D=U.call(N,Array.prototype.concat),F=U.call(x,Array.prototype.splice),W=U.call(N,String.prototype.replace),$=U.call(N,String.prototype.slice),H=U.call(N,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,V=function(t,e){var r,n=t;if(M(j,n)&&(n="%"+(r=j[n])[0]+"%"),M(B,n)){var o=B[n];if(o===P&&(o=k(n)),void 0===o&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=$(t,0,1),r=$(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return W(t,q,function(t,e,r,o){n[n.length]=r?W(o,G,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=V("%"+n+"%",e),i=o.name,s=o.value,a=!1,l=o.alias;l&&(n=l[0],F(r,D([0,1],l)));for(var f=1,d=!0;f<r.length;f+=1){var h=r[f],p=$(h,0,1),y=$(h,-1);if(('"'===p||"'"===p||"`"===p||'"'===y||"'"===y||"`"===y)&&p!==y)throw new u("property names with quotes must have matching quotes");if("constructor"!==h&&d||(a=!0),M(B,i="%"+(n+="."+h)+"%"))s=B[i];else if(null!=s){if(!(h in s)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(_&&f+1>=r.length){var g=_(s,h);s=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[h]}else d=M(s,h),s=s[h];d&&!a&&(B[i]=s)}}return s}},487:(t,e,r)=>{"use strict";var n=r(6897),o=r(655),i=r(3126),s=r(2205);t.exports=function(t){var e=i(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},o?o(t.exports,"apply",{value:s}):t.exports.apply=s},592:(t,e,r)=>{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},815:(t,e,r)=>{var n,o=r(5606),i=r(3519),s=r(6611);try{n=r(2376)}catch(t){}var a=function(){},l=void 0!==o&&/^v?\.0/.test(o.version),u=function(t){return"function"==typeof t},c=function(t){t()},f=function(t,e){return t.pipe(e)};t.exports=function(){var t,e=Array.prototype.slice.call(arguments),r=u(e[e.length-1]||a)&&e.pop()||a;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var o=e.map(function(f,d){var h=d<e.length-1;return function(t,e,r,o){o=i(o);var c=!1;t.on("close",function(){c=!0}),s(t,{readable:e,writable:r},function(t){if(t)return o(t);c=!0,o()});var f=!1;return function(e){if(!c&&!f)return f=!0,function(t){return!!l&&!!n&&(t instanceof(n.ReadStream||a)||t instanceof(n.WriteStream||a))&&u(t.close)}(t)?t.close(a):function(t){return t.setHeader&&u(t.abort)}(t)?t.abort():u(t.destroy)?t.destroy():void o(e||new Error("stream was destroyed"))}}(f,h,d>0,function(e){t||(t=e),e&&o.forEach(c),h||(o.forEach(c),r(t))})});return e.reduce(f)}},823:(t,e,r)=>{"use strict";const n=globalThis.AbortController||r(5568).AbortController,{codes:{ERR_INVALID_ARG_VALUE:o,ERR_INVALID_ARG_TYPE:i,ERR_MISSING_ARGS:s,ERR_OUT_OF_RANGE:a},AbortError:l}=r(6371),{validateAbortSignal:u,validateInteger:c,validateObject:f}=r(277),d=r(4134).Symbol("kWeak"),h=r(4134).Symbol("kResistStopPropagation"),{finished:p}=r(6238),y=r(7830),{addAbortSignalNoValidate:g}=r(4147),{isWritable:b,isNodeStream:w}=r(6115),{deprecate:m}=r(7760),{ArrayPrototypePush:v,Boolean:_,MathFloor:E,Number:S,NumberIsNaN:A,Promise:I,PromiseReject:R,PromiseResolve:O,PromisePrototypeThen:T,Symbol:x}=r(4134),N=x("kEmpty"),P=x("kEof");function L(t,e){if("function"!=typeof t)throw new i("fn",["Function","AsyncFunction"],t);null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal");let n=1;null!=(null==e?void 0:e.concurrency)&&(n=E(e.concurrency));let o=n-1;return null!=(null==e?void 0:e.highWaterMark)&&(o=E(e.highWaterMark)),c(n,"options.concurrency",1),c(o,"options.highWaterMark",0),o+=n,async function*(){const i=r(7760).AbortSignalAny([null==e?void 0:e.signal].filter(_)),s=this,a=[],u={signal:i};let c,f,d=!1,h=0;function p(){d=!0,y()}function y(){h-=1,g()}function g(){f&&!d&&h<n&&a.length<o&&(f(),f=null)}!async function(){try{for await(let e of s){if(d)return;if(i.aborted)throw new l;try{if(e=t(e,u),e===N)continue;e=O(e)}catch(t){e=R(t)}h+=1,T(e,y,p),a.push(e),c&&(c(),c=null),!d&&(a.length>=o||h>=n)&&await new I(t=>{f=t})}a.push(P)}catch(t){const e=R(t);T(e,y,p),a.push(e)}finally{d=!0,c&&(c(),c=null)}}();try{for(;;){for(;a.length>0;){const t=await a[0];if(t===P)return;if(i.aborted)throw new l;t!==N&&(yield t),a.shift(),g()}await new I(t=>{c=t})}}finally{d=!0,f&&(f(),f=null)}}.call(this)}async function B(t,e=void 0){for await(const r of C.call(this,t,e))return!0;return!1}function C(t,e){if("function"!=typeof t)throw new i("fn",["Function","AsyncFunction"],t);return L.call(this,async function(e,r){return await t(e,r)?e:N},e)}class k extends s{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}function j(t){if(t=S(t),A(t))return 0;if(t<0)throw new a("number",">= 0",t);return t}t.exports.streamReturningOperators={asIndexedPairs:m(function(t=void 0){return null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal"),async function*(){let e=0;for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l({cause:t.signal.reason});yield[e++,n]}}.call(this)},"readable.asIndexedPairs will be removed in a future version."),drop:function(t,e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=j(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;t--<=0&&(yield r)}}.call(this)},filter:C,flatMap:function(t,e){const r=L.call(this,t,e);return async function*(){for await(const t of r)yield*t}.call(this)},map:L,take:function(t,e=void 0){return null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),t=j(t),async function*(){var r;if(null!=e&&null!==(r=e.signal)&&void 0!==r&&r.aborted)throw new l;for await(const r of this){var n;if(null!=e&&null!==(n=e.signal)&&void 0!==n&&n.aborted)throw new l;if(t-- >0&&(yield r),t<=0)return}}.call(this)},compose:function(t,e){if(null!=e&&f(e,"options"),null!=(null==e?void 0:e.signal)&&u(e.signal,"options.signal"),w(t)&&!b(t))throw new o("stream",t,"must be writable");const r=y(this,t);return null!=e&&e.signal&&g(e.signal,r),r}},t.exports.promiseReturningOperators={every:async function(t,e=void 0){if("function"!=typeof t)throw new i("fn",["Function","AsyncFunction"],t);return!await B.call(this,async(...e)=>!await t(...e),e)},forEach:async function(t,e){if("function"!=typeof t)throw new i("fn",["Function","AsyncFunction"],t);for await(const r of L.call(this,async function(e,r){return await t(e,r),N},e));},reduce:async function(t,e,r){var o;if("function"!=typeof t)throw new i("reducer",["Function","AsyncFunction"],t);null!=r&&f(r,"options"),null!=(null==r?void 0:r.signal)&&u(r.signal,"options.signal");let s=arguments.length>1;if(null!=r&&null!==(o=r.signal)&&void 0!==o&&o.aborted){const t=new l(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await p(this.destroy(t)),t}const a=new n,c=a.signal;if(null!=r&&r.signal){const t={once:!0,[d]:this,[h]:!0};r.signal.addEventListener("abort",()=>a.abort(),t)}let y=!1;try{for await(const n of this){var g;if(y=!0,null!=r&&null!==(g=r.signal)&&void 0!==g&&g.aborted)throw new l;s?e=await t(e,n,{signal:c}):(e=n,s=!0)}if(!y&&!s)throw new k}finally{a.abort()}return e},toArray:async function(t){null!=t&&f(t,"options"),null!=(null==t?void 0:t.signal)&&u(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(null!=t&&null!==(r=t.signal)&&void 0!==r&&r.aborted)throw new l(void 0,{cause:t.signal.reason});v(e,n)}return e},some:B,find:async function(t,e){for await(const r of C.call(this,t,e))return r}}},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,s=i?function(t){return i(t)}:r(8875),a=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?a(n.call(t)):a(t)})}else Object.keys=s;return Object.keys||s},t.exports=s},1237:t=>{"use strict";t.exports=EvalError},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1514:t=>{"use strict";t.exports=Math.abs},2017:t=>{"use strict";t.exports=function t(e,r){if(e===r)return!0;if(e&&r&&"object"==typeof e&&"object"==typeof r){if(e.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(e)){if((n=e.length)!=r.length)return!1;for(o=n;0!==o--;)if(!t(e[o],r[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(r).length)return!1;for(o=n;0!==o--;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;0!==o--;){var s=i[o];if(!t(e[s],r[s]))return!1}return!0}return e!=e&&r!=r}},2205:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(3144);t.exports=function(){return i(n,o,arguments)}},2376:()=>{},2861:(t,e,r)=>{var n=r(8287),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=s),s.prototype=Object.create(o.prototype),i(o,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},3065:function(t,e,r){var n,o;!function(){"use strict";n=function(){var t=function(){},e="undefined",r=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},i=null;function s(t,e){var r=t[e];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch(e){return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var r=this.getLevel(),o=0;o<n.length;o++){var i=n[o];this[i]=o<r?t:this.methodFactory(i,r,this.name)}if(this.log=this.debug,typeof console===e&&r<this.levels.SILENT)return"No console available for logging"}function u(t){return function(){typeof console!==e&&(l.call(this),this[t].apply(this,arguments))}}function c(n,o,i){return function(n){return"debug"===n&&(n="log"),typeof console!==e&&("trace"===n&&r?a:void 0!==console[n]?s(console,n):void 0!==console.log?s(console,"log"):t)}(n)||u.apply(this,arguments)}function f(t,r){var s,a,u,f=this,d="loglevel";function h(){var t;if(typeof window!==e&&d){try{t=window.localStorage[d]}catch(t){}if(typeof t===e)try{var r=window.document.cookie,n=encodeURIComponent(d),o=r.indexOf(n+"=");-1!==o&&(t=/^([^;]+)/.exec(r.slice(o+n.length+1))[1])}catch(t){}return void 0===f.levels[t]&&(t=void 0),t}}function p(t){var e=t;if("string"==typeof e&&void 0!==f.levels[e.toUpperCase()]&&(e=f.levels[e.toUpperCase()]),"number"==typeof e&&e>=0&&e<=f.levels.SILENT)return e;throw new TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?d+=":"+t:"symbol"==typeof t&&(d=void 0),f.name=t,f.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},f.methodFactory=r||c,f.getLevel=function(){return null!=u?u:null!=a?a:s},f.setLevel=function(t,r){return u=p(t),!1!==r&&function(t){var r=(n[t]||"silent").toUpperCase();if(typeof window!==e&&d){try{return void(window.localStorage[d]=r)}catch(t){}try{window.document.cookie=encodeURIComponent(d)+"="+r+";"}catch(t){}}}(u),l.call(f)},f.setDefaultLevel=function(t){a=p(t),h()||f.setLevel(t,!1)},f.resetLevel=function(){u=null,function(){if(typeof window!==e&&d){try{window.localStorage.removeItem(d)}catch(t){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(t){}}}(),l.call(f)},f.enableAll=function(t){f.setLevel(f.levels.TRACE,t)},f.disableAll=function(t){f.setLevel(f.levels.SILENT,t)},f.rebuild=function(){if(i!==f&&(s=p(i.getLevel())),l.call(f),i===f)for(var t in o)o[t].rebuild()},s=p(i?i.getLevel():"WARN");var y=h();null!=y&&(u=p(y)),l.call(f)}(i=new f).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw new TypeError("You must supply a name when creating a logger.");var e=o[t];return e||(e=o[t]=new f(t,i.methodFactory)),e};var d=typeof window!==e?window.log:void 0;return i.noConflict=function(){return typeof window!==e&&window.log===i&&(window.log=d),i},i.getLoggers=function(){return o},i.default=i,i},void 0===(o=n.call(e,r,e,t))||(t.exports=o)}()},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3095:(t,e,r)=>{"use strict";const{ArrayPrototypePop:n,Promise:o}=r(4134),{isIterable:i,isNodeStream:s,isWebStream:a}=r(6115),{pipelineImpl:l}=r(7758),{finished:u}=r(6238);r(5506),t.exports={finished:u,pipeline:function(...t){return new o((e,r)=>{let o,u;const c=t[t.length-1];if(c&&"object"==typeof c&&!s(c)&&!i(c)&&!a(c)){const e=n(t);o=e.signal,u=e.end}l(t,(t,n)=>{t?r(t):e(n)},{signal:o,end:u})})}}},3126:(t,e,r)=>{"use strict";var n=r(6743),o=r(9675),i=r(76),s=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return s(n,i,t)}},3141:(t,e,r)=>{"use strict";var n=r(2861).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.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 i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=f,e=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},i.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},i.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var o=s(e[n]);return o>=0?(o>0&&(t.lastNeed=o-1),o):--n<r||-2===o?0:(o=s(e[n]))>=0?(o>0&&(t.lastNeed=o-2),o):--n<r||-2===o?0:(o=s(e[n]))>=0?(o>0&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3144:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(76),s=r(7119);t.exports=s||n.call(i,o)},3370:(t,e,r)=>{"use strict";const{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:o,ObjectKeys:i,ObjectSetPrototypeOf:s}=r(4134);t.exports=u;const a=r(7576),l=r(8584);s(u.prototype,a.prototype),s(u,a);{const t=i(l.prototype);for(let e=0;e<t.length;e++){const r=t[e];u.prototype[r]||(u.prototype[r]=l.prototype[r])}}function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),l.call(this,t),t?(this.allowHalfOpen=!1!==t.allowHalfOpen,!1===t.readable&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),!1===t.writable&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)):this.allowHalfOpen=!0}let c,f;function d(){return void 0===c&&(c={}),c}n(u.prototype,{writable:{__proto__:null,...o(l.prototype,"writable")},writableHighWaterMark:{__proto__:null,...o(l.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...o(l.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...o(l.prototype,"writableBuffer")},writableLength:{__proto__:null,...o(l.prototype,"writableLength")},writableFinished:{__proto__:null,...o(l.prototype,"writableFinished")},writableCorked:{__proto__:null,...o(l.prototype,"writableCorked")},writableEnded:{__proto__:null,...o(l.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...o(l.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set(t){this._readableState&&this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}}),u.fromWeb=function(t,e){return d().newStreamDuplexFromReadableWritablePair(t,e)},u.toWeb=function(t){return d().newReadableWritablePairFromDuplex(t)},u.from=function(t){return f||(f=r(6706)),f(t,"body")}},3519:(t,e,r)=>{var n=r(6587);function o(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function i(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=n(o),t.exports.strict=n(i),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})})},3628:(t,e,r)=>{"use strict";var n=r(8648),o=r(1064),i=r(7176);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},4134:t=>{"use strict";class e extends Error{constructor(t){if(!Array.isArray(t))throw new TypeError("Expected input to be an Array, got "+typeof t);let e="";for(let r=0;r<t.length;r++)e+=` ${t[r].stack}\n`;super(e),this.name="AggregateError",this.errors=t}}t.exports={AggregateError:e,ArrayIsArray:t=>Array.isArray(t),ArrayPrototypeIncludes:(t,e)=>t.includes(e),ArrayPrototypeIndexOf:(t,e)=>t.indexOf(e),ArrayPrototypeJoin:(t,e)=>t.join(e),ArrayPrototypeMap:(t,e)=>t.map(e),ArrayPrototypePop:(t,e)=>t.pop(e),ArrayPrototypePush:(t,e)=>t.push(e),ArrayPrototypeSlice:(t,e,r)=>t.slice(e,r),Error,FunctionPrototypeCall:(t,e,...r)=>t.call(e,...r),FunctionPrototypeSymbolHasInstance:(t,e)=>Function.prototype[Symbol.hasInstance].call(t,e),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:(t,e)=>Object.defineProperties(t,e),ObjectDefineProperty:(t,e,r)=>Object.defineProperty(t,e,r),ObjectGetOwnPropertyDescriptor:(t,e)=>Object.getOwnPropertyDescriptor(t,e),ObjectKeys:t=>Object.keys(t),ObjectSetPrototypeOf:(t,e)=>Object.setPrototypeOf(t,e),Promise,PromisePrototypeCatch:(t,e)=>t.catch(e),PromisePrototypeThen:(t,e,r)=>t.then(e,r),PromiseReject:t=>Promise.reject(t),PromiseResolve:t=>Promise.resolve(t),ReflectApply:Reflect.apply,RegExpPrototypeTest:(t,e)=>t.test(e),SafeSet:Set,String,StringPrototypeSlice:(t,e,r)=>t.slice(e,r),StringPrototypeToLowerCase:t=>t.toLowerCase(),StringPrototypeToUpperCase:t=>t.toUpperCase(),StringPrototypeTrim:t=>t.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:(t,e,r)=>t.set(e,r),Boolean,Uint8Array}},4147:(t,e,r)=>{"use strict";const{SymbolDispose:n}=r(4134),{AbortError:o,codes:i}=r(6371),{isNodeStream:s,isWebStream:a,kControllerErrorFunction:l}=r(6115),u=r(6238),{ERR_INVALID_ARG_TYPE:c}=i;let f;t.exports.addAbortSignal=function(e,r){if((t=>{if("object"!=typeof t||!("aborted"in t))throw new c("signal","AbortSignal",t)})(e),!s(r)&&!a(r))throw new c("stream",["ReadableStream","WritableStream","Stream"],r);return t.exports.addAbortSignalNoValidate(e,r)},t.exports.addAbortSignalNoValidate=function(t,e){if("object"!=typeof t||!("aborted"in t))return e;const i=s(e)?()=>{e.destroy(new o(void 0,{cause:t.reason}))}:()=>{e[l](new o(void 0,{cause:t.reason}))};if(t.aborted)i();else{f=f||r(7760).addAbortListener;const o=f(t,i);u(e,o[n])}return e}},4259:(t,e,r)=>{"use strict";const{ArrayIsArray:n,ObjectSetPrototypeOf:o}=r(4134),{EventEmitter:i}=r(7007);function s(t){i.call(this,t)}function a(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?n(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}o(s.prototype,i.prototype),o(s,i),s.prototype.pipe=function(t,e){const r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",l),r.on("close",u));let s=!1;function l(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){f(),0===i.listenerCount(this,"error")&&this.emit("error",t)}function f(){r.removeListener("data",n),t.removeListener("drain",o),r.removeListener("end",l),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),t.removeListener("close",f)}return a(r,"error",c),a(t,"error",c),r.on("end",f),r.on("close",f),t.on("close",f),t.emit("pipe",r),t},t.exports={Stream:s,prependListener:a}},4343:(t,e,r)=>{"use strict";e.parse=r(5776),e.stringify=r(9086)},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4634:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},5291:(t,e,r)=>{"use strict";const{MathFloor:n,NumberIsInteger:o}=r(4134),{validateInteger:i}=r(277),{ERR_INVALID_ARG_VALUE:s}=r(6371).codes;let a=16384,l=16;function u(t){return t?l:a}t.exports={getHighWaterMark:function(t,e,r,i){const a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!o(a)||a<0)throw new s(i?`options.${r}`:"options.highWaterMark",a);return n(a)}return u(t.objectMode)},getDefaultHighWaterMark:u,setDefaultHighWaterMark:function(t,e){i(e,"value",0),t?l=e:a=e}}},5345:t=>{"use strict";t.exports=URIError},5473:(t,e,r)=>{"use strict";var n=("undefined"!=typeof JSON?JSON:r(4343)).stringify,o=r(4634),i=r(1189),s=r(487),a=r(6556),l=a("Array.prototype.join"),u=a("Array.prototype.indexOf"),c=a("Array.prototype.splice"),f=a("Array.prototype.sort"),d=function(t,e){for(var r="",n=0;n<t;n+=1)r+=e;return r},h=function(t,e,r){return r};t.exports=function(t){var e=arguments.length>1?arguments[1]:void 0,r=e&&e.space||"";"number"==typeof r&&(r=d(r," "));var a=!!e&&"boolean"==typeof e.cycles&&e.cycles,p=e&&e.replacer?s(e.replacer):h;if(e&&void 0!==e.collapseEmpty&&"boolean"!=typeof e.collapseEmpty)throw new TypeError("`collapseEmpty` must be a boolean, if provided");var y=!!e&&e.collapseEmpty,g="function"==typeof e?e:e&&e.cmp,b=g&&function(t){var e=g.length>2&&function(e){return t[e]};return function(r,n){return g({key:r,value:t[r]},{key:n,value:t[n]},e?{__proto__:null,get:e}:void 0)}},w=[];return function t(e,s,h,g){var m=r?"\n"+d(g,r):"",v=r?": ":":";if(h&&h.toJSON&&"function"==typeof h.toJSON&&(h=h.toJSON()),void 0!==(h=p(e,s,h))){if("object"!=typeof h||null===h)return n(h);var _=function(t,e){return y&&0===t.length?e:("[]"===e?"[":"{")+l(t,",")+m+("[]"===e?"]":"}")};if(o(h)){for(var E=[],S=0;S<h.length;S++){var A=t(h,S,h[S],g+1)||n(null);E[E.length]=m+r+A}return _(E,"[]")}if(-1!==u(w,h)){if(a)return n("__cycle__");throw new TypeError("Converting circular structure to JSON")}w[w.length]=h;var I=f(i(h),b&&b(h));for(E=[],S=0;S<I.length;S++){var R=t(h,s=I[S],h[s],g+1);if(R){var O=n(s)+v+R;E[E.length]=m+r+O}}return c(w,u(w,h),1),_(E,"{}")}}({"":t},"",t,0)}},5506:(t,e,r)=>{"use strict";const{Buffer:n}=r(8287),{ObjectDefineProperty:o,ObjectKeys:i,ReflectApply:s}=r(4134),{promisify:{custom:a}}=r(7760),{streamReturningOperators:l,promiseReturningOperators:u}=r(823),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=r(6371),f=r(7830),{setDefaultHighWaterMark:d,getDefaultHighWaterMark:h}=r(5291),{pipeline:p}=r(7758),{destroyer:y}=r(5896),g=r(6238),b=r(3095),w=r(6115),m=t.exports=r(4259).Stream;m.isDestroyed=w.isDestroyed,m.isDisturbed=w.isDisturbed,m.isErrored=w.isErrored,m.isReadable=w.isReadable,m.isWritable=w.isWritable,m.Readable=r(7576);for(const _ of i(l)){const E=l[_];function S(...t){if(new.target)throw c();return m.Readable.from(s(E,this,t))}o(S,"name",{__proto__:null,value:E.name}),o(S,"length",{__proto__:null,value:E.length}),o(m.Readable.prototype,_,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}for(const A of i(u)){const I=u[A];function R(...t){if(new.target)throw c();return s(I,this,t)}o(R,"name",{__proto__:null,value:I.name}),o(R,"length",{__proto__:null,value:I.length}),o(m.Readable.prototype,A,{__proto__:null,value:R,enumerable:!1,configurable:!0,writable:!0})}m.Writable=r(8584),m.Duplex=r(3370),m.Transform=r(7382),m.PassThrough=r(6524),m.pipeline=p;const{addAbortSignal:v}=r(4147);m.addAbortSignal=v,m.finished=g,m.destroy=y,m.compose=f,m.setDefaultHighWaterMark=d,m.getDefaultHighWaterMark=h,o(m,"promises",{__proto__:null,configurable:!0,enumerable:!0,get:()=>b}),o(p,a,{__proto__:null,enumerable:!0,get:()=>b.pipeline}),o(g,a,{__proto__:null,enumerable:!0,get:()=>b.finished}),m.Stream=m,m._isUint8Array=function(t){return t instanceof Uint8Array},m._uint8ArrayToBuffer=function(t){return n.from(t.buffer,t.byteOffset,t.byteLength)}},5568:t=>{"use strict";const{AbortController:e,AbortSignal:r}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;t.exports=e,t.exports.AbortSignal=r,t.exports.default=e},5606:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,l=[],u=!1,c=-1;function f(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&d())}function d(){if(!u){var t=s(f);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new h(t,e)),1!==l.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5776:t=>{"use strict";var e,r,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(t){throw{name:"SyntaxError",message:t,at:e,text:n}}function s(t){return t&&t!==r&&i("Expected '"+t+"' instead of '"+r+"'"),r=n.charAt(e),e+=1,r}function a(){var t,e="";for("-"===r&&(e="-",s("-"));r>="0"&&r<="9";)e+=r,s();if("."===r)for(e+=".";s()&&r>="0"&&r<="9";)e+=r;if("e"===r||"E"===r)for(e+=r,s(),"-"!==r&&"+"!==r||(e+=r,s());r>="0"&&r<="9";)e+=r,s();return t=Number(e),isFinite(t)||i("Bad number"),t}function l(){var t,e,n,a="";if('"'===r)for(;s();){if('"'===r)return s(),a;if("\\"===r)if(s(),"u"===r){for(n=0,e=0;e<4&&(t=parseInt(s(),16),isFinite(t));e+=1)n=16*n+t;a+=String.fromCharCode(n)}else{if("string"!=typeof o[r])break;a+=o[r]}else a+=r}i("Bad string")}function u(){for(;r&&r<=" ";)s()}function c(){switch(u(),r){case"{":return function(){var t,e={};if("{"===r){if(s("{"),u(),"}"===r)return s("}"),e;for(;r;){if(t=l(),u(),s(":"),Object.prototype.hasOwnProperty.call(e,t)&&i('Duplicate key "'+t+'"'),e[t]=c(),u(),"}"===r)return s("}"),e;s(","),u()}}i("Bad object")}();case"[":return function(){var t=[];if("["===r){if(s("["),u(),"]"===r)return s("]"),t;for(;r;){if(t.push(c()),u(),"]"===r)return s("]"),t;s(","),u()}}i("Bad array")}();case'"':return l();case"-":return a();default:return r>="0"&&r<="9"?a():function(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null;default:i("Unexpected '"+r+"'")}}()}}t.exports=function(t,o){var s;return n=t,e=0,r=" ",s=c(),u(),r&&i("Syntax error"),"function"==typeof o?function t(e,r){var n,i,s=e[r];if(s&&"object"==typeof s)for(n in c)Object.prototype.hasOwnProperty.call(s,n)&&(void 0===(i=t(s,n))?delete s[n]:s[n]=i);return o.call(e,r,s)}({"":s},""):s}},5795:(t,e,r)=>{"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5880:t=>{"use strict";t.exports=Math.pow},5896:(t,e,r)=>{"use strict";const n=r(5606),{aggregateTwoErrors:o,codes:{ERR_MULTIPLE_CALLBACK:i},AbortError:s}=r(6371),{Symbol:a}=r(4134),{kIsDestroyed:l,isDestroyed:u,isFinished:c,isServerRequest:f}=r(6115),d=a("kDestroy"),h=a("kConstruct");function p(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function y(t,e,r){let o=!1;function i(e){if(o)return;o=!0;const i=t._readableSt