UNPKG

@soloseng/ganache

Version:

A library and cli to create a local blockchain for fast Ethereum development.

2 lines 7.36 MB
/*! For license information please see ganache.min.js.LICENSE.txt */ !function webpackUniversalModuleDefinition(B,I){"object"==typeof exports&&"object"==typeof module?module.exports=I():"function"==typeof define&&define.amd?define([],I):"object"==typeof exports?exports.Ganache=I():B.Ganache=I()}(self,(function(){return(()=>{var __webpack_modules__=[(B,I,w)=>{"use strict";const C=w(972),x=w(973),v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=Buffer,I.SlowBuffer=function SlowBuffer(B){+B!=B&&(B=0);return Buffer.alloc(+B)},I.INSPECT_MAX_BYTES=50;const Q=2147483647;function createBuffer(B){if(B>Q)throw new RangeError('The value "'+B+'" is invalid for option "size"');const I=new Uint8Array(B);return Object.setPrototypeOf(I,Buffer.prototype),I}function Buffer(B,I,w){if("number"==typeof B){if("string"==typeof I)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(B)}return from(B,I,w)}function from(B,I,w){if("string"==typeof B)return function fromString(B,I){"string"==typeof I&&""!==I||(I="utf8");if(!Buffer.isEncoding(I))throw new TypeError("Unknown encoding: "+I);const w=0|byteLength(B,I);let C=createBuffer(w);const x=C.write(B,I);x!==w&&(C=C.slice(0,x));return C}(B,I);if(ArrayBuffer.isView(B))return function fromArrayView(B){if(isInstance(B,Uint8Array)){const I=new Uint8Array(B);return fromArrayBuffer(I.buffer,I.byteOffset,I.byteLength)}return fromArrayLike(B)}(B);if(null==B)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(isInstance(B,ArrayBuffer)||B&&isInstance(B.buffer,ArrayBuffer))return fromArrayBuffer(B,I,w);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(B,SharedArrayBuffer)||B&&isInstance(B.buffer,SharedArrayBuffer)))return fromArrayBuffer(B,I,w);if("number"==typeof B)throw new TypeError('The "value" argument must not be of type number. Received type number');const C=B.valueOf&&B.valueOf();if(null!=C&&C!==B)return Buffer.from(C,I,w);const x=function fromObject(B){if(Buffer.isBuffer(B)){const I=0|checked(B.length),w=createBuffer(I);return 0===w.length||B.copy(w,0,0,I),w}if(void 0!==B.length)return"number"!=typeof B.length||numberIsNaN(B.length)?createBuffer(0):fromArrayLike(B);if("Buffer"===B.type&&Array.isArray(B.data))return fromArrayLike(B.data)}(B);if(x)return x;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof B[Symbol.toPrimitive])return Buffer.from(B[Symbol.toPrimitive]("string"),I,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function assertSize(B){if("number"!=typeof B)throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function allocUnsafe(B){return assertSize(B),createBuffer(B<0?0:0|checked(B))}function fromArrayLike(B){const I=B.length<0?0:0|checked(B.length),w=createBuffer(I);for(let C=0;C<I;C+=1)w[C]=255&B[C];return w}function fromArrayBuffer(B,I,w){if(I<0||B.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<I+(w||0))throw new RangeError('"length" is outside of buffer bounds');let C;return C=void 0===I&&void 0===w?new Uint8Array(B):void 0===w?new Uint8Array(B,I):new Uint8Array(B,I,w),Object.setPrototypeOf(C,Buffer.prototype),C}function checked(B){if(B>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return 0|B}function byteLength(B,I){if(Buffer.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||isInstance(B,ArrayBuffer))return B.byteLength;if("string"!=typeof B)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const w=B.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===w)return 0;let x=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return utf8ToBytes(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*w;case"hex":return w>>>1;case"base64":return base64ToBytes(B).length;default:if(x)return C?-1:utf8ToBytes(B).length;I=(""+I).toLowerCase(),x=!0}}function slowToString(B,I,w){let C=!1;if((void 0===I||I<0)&&(I=0),I>this.length)return"";if((void 0===w||w>this.length)&&(w=this.length),w<=0)return"";if((w>>>=0)<=(I>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return hexSlice(this,I,w);case"utf8":case"utf-8":return utf8Slice(this,I,w);case"ascii":return asciiSlice(this,I,w);case"latin1":case"binary":return latin1Slice(this,I,w);case"base64":return base64Slice(this,I,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,I,w);default:if(C)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),C=!0}}function swap(B,I,w){const C=B[I];B[I]=B[w],B[w]=C}function bidirectionalIndexOf(B,I,w,C,x){if(0===B.length)return-1;if("string"==typeof w?(C=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),numberIsNaN(w=+w)&&(w=x?0:B.length-1),w<0&&(w=B.length+w),w>=B.length){if(x)return-1;w=B.length-1}else if(w<0){if(!x)return-1;w=0}if("string"==typeof I&&(I=Buffer.from(I,C)),Buffer.isBuffer(I))return 0===I.length?-1:arrayIndexOf(B,I,w,C,x);if("number"==typeof I)return I&=255,"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(B,I,w):Uint8Array.prototype.lastIndexOf.call(B,I,w):arrayIndexOf(B,[I],w,C,x);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(B,I,w,C,x){let v,Q=1,k=B.length,_=I.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(B.length<2||I.length<2)return-1;Q=2,k/=2,_/=2,w/=2}function read(B,I){return 1===Q?B[I]:B.readUInt16BE(I*Q)}if(x){let C=-1;for(v=w;v<k;v++)if(read(B,v)===read(I,-1===C?0:v-C)){if(-1===C&&(C=v),v-C+1===_)return C*Q}else-1!==C&&(v-=v-C),C=-1}else for(w+_>k&&(w=k-_),v=w;v>=0;v--){let w=!0;for(let C=0;C<_;C++)if(read(B,v+C)!==read(I,C)){w=!1;break}if(w)return v}return-1}function hexWrite(B,I,w,C){w=Number(w)||0;const x=B.length-w;C?(C=Number(C))>x&&(C=x):C=x;const v=I.length;let Q;for(C>v/2&&(C=v/2),Q=0;Q<C;++Q){const C=parseInt(I.substr(2*Q,2),16);if(numberIsNaN(C))return Q;B[w+Q]=C}return Q}function utf8Write(B,I,w,C){return blitBuffer(utf8ToBytes(I,B.length-w),B,w,C)}function asciiWrite(B,I,w,C){return blitBuffer(function asciiToBytes(B){const I=[];for(let w=0;w<B.length;++w)I.push(255&B.charCodeAt(w));return I}(I),B,w,C)}function base64Write(B,I,w,C){return blitBuffer(base64ToBytes(I),B,w,C)}function ucs2Write(B,I,w,C){return blitBuffer(function utf16leToBytes(B,I){let w,C,x;const v=[];for(let Q=0;Q<B.length&&!((I-=2)<0);++Q)w=B.charCodeAt(Q),C=w>>8,x=w%256,v.push(x),v.push(C);return v}(I,B.length-w),B,w,C)}function base64Slice(B,I,w){return 0===I&&w===B.length?C.fromByteArray(B):C.fromByteArray(B.slice(I,w))}function utf8Slice(B,I,w){w=Math.min(B.length,w);const C=[];let x=I;for(;x<w;){const I=B[x];let v=null,Q=I>239?4:I>223?3:I>191?2:1;if(x+Q<=w){let w,C,k,_;switch(Q){case 1:I<128&&(v=I);break;case 2:w=B[x+1],128==(192&w)&&(_=(31&I)<<6|63&w,_>127&&(v=_));break;case 3:w=B[x+1],C=B[x+2],128==(192&w)&&128==(192&C)&&(_=(15&I)<<12|(63&w)<<6|63&C,_>2047&&(_<55296||_>57343)&&(v=_));break;case 4:w=B[x+1],C=B[x+2],k=B[x+3],128==(192&w)&&128==(192&C)&&128==(192&k)&&(_=(15&I)<<18|(63&w)<<12|(63&C)<<6|63&k,_>65535&&_<1114112&&(v=_))}}null===v?(v=65533,Q=1):v>65535&&(v-=65536,C.push(v>>>10&1023|55296),v=56320|1023&v),C.push(v),x+=Q}return function decodeCodePointsArray(B){const I=B.length;if(I<=k)return String.fromCharCode.apply(String,B);let w="",C=0;for(;C<I;)w+=String.fromCharCode.apply(String,B.slice(C,C+=k));return w}(C)}I.kMaxLength=Q,Buffer.TYPED_ARRAY_SUPPORT=function typedArraySupport(){try{const B=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(B,I),42===B.foo()}catch(B){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(B,I,w){return from(B,I,w)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(B,I,w){return function alloc(B,I,w){return assertSize(B),B<=0?createBuffer(B):void 0!==I?"string"==typeof w?createBuffer(B).fill(I,w):createBuffer(B).fill(I):createBuffer(B)}(B,I,w)},Buffer.allocUnsafe=function(B){return allocUnsafe(B)},Buffer.allocUnsafeSlow=function(B){return allocUnsafe(B)},Buffer.isBuffer=function isBuffer(B){return null!=B&&!0===B._isBuffer&&B!==Buffer.prototype},Buffer.compare=function compare(B,I){if(isInstance(B,Uint8Array)&&(B=Buffer.from(B,B.offset,B.byteLength)),isInstance(I,Uint8Array)&&(I=Buffer.from(I,I.offset,I.byteLength)),!Buffer.isBuffer(B)||!Buffer.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===I)return 0;let w=B.length,C=I.length;for(let x=0,v=Math.min(w,C);x<v;++x)if(B[x]!==I[x]){w=B[x],C=I[x];break}return w<C?-1:C<w?1:0},Buffer.isEncoding=function isEncoding(B){switch(String(B).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}},Buffer.concat=function concat(B,I){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(0===B.length)return Buffer.alloc(0);let w;if(void 0===I)for(I=0,w=0;w<B.length;++w)I+=B[w].length;const C=Buffer.allocUnsafe(I);let x=0;for(w=0;w<B.length;++w){let I=B[w];if(isInstance(I,Uint8Array))x+I.length>C.length?(Buffer.isBuffer(I)||(I=Buffer.from(I)),I.copy(C,x)):Uint8Array.prototype.set.call(C,I,x);else{if(!Buffer.isBuffer(I))throw new TypeError('"list" argument must be an Array of Buffers');I.copy(C,x)}x+=I.length}return C},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){const B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<B;I+=2)swap(this,I,I+1);return this},Buffer.prototype.swap32=function swap32(){const B=this.length;if(B%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<B;I+=4)swap(this,I,I+3),swap(this,I+1,I+2);return this},Buffer.prototype.swap64=function swap64(){const B=this.length;if(B%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<B;I+=8)swap(this,I,I+7),swap(this,I+1,I+6),swap(this,I+2,I+5),swap(this,I+3,I+4);return this},Buffer.prototype.toString=function toString(){const B=this.length;return 0===B?"":0===arguments.length?utf8Slice(this,0,B):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function equals(B){if(!Buffer.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B||0===Buffer.compare(this,B)},Buffer.prototype.inspect=function inspect(){let B="";const w=I.INSPECT_MAX_BYTES;return B=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(B+=" ... "),"<Buffer "+B+">"},v&&(Buffer.prototype[v]=Buffer.prototype.inspect),Buffer.prototype.compare=function compare(B,I,w,C,x){if(isInstance(B,Uint8Array)&&(B=Buffer.from(B,B.offset,B.byteLength)),!Buffer.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(void 0===I&&(I=0),void 0===w&&(w=B?B.length:0),void 0===C&&(C=0),void 0===x&&(x=this.length),I<0||w>B.length||C<0||x>this.length)throw new RangeError("out of range index");if(C>=x&&I>=w)return 0;if(C>=x)return-1;if(I>=w)return 1;if(this===B)return 0;let v=(x>>>=0)-(C>>>=0),Q=(w>>>=0)-(I>>>=0);const k=Math.min(v,Q),_=this.slice(C,x),N=B.slice(I,w);for(let B=0;B<k;++B)if(_[B]!==N[B]){v=_[B],Q=N[B];break}return v<Q?-1:Q<v?1:0},Buffer.prototype.includes=function includes(B,I,w){return-1!==this.indexOf(B,I,w)},Buffer.prototype.indexOf=function indexOf(B,I,w){return bidirectionalIndexOf(this,B,I,w,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(B,I,w){return bidirectionalIndexOf(this,B,I,w,!1)},Buffer.prototype.write=function write(B,I,w,C){if(void 0===I)C="utf8",w=this.length,I=0;else if(void 0===w&&"string"==typeof I)C=I,w=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I>>>=0,isFinite(w)?(w>>>=0,void 0===C&&(C="utf8")):(C=w,w=void 0)}const x=this.length-I;if((void 0===w||w>x)&&(w=x),B.length>0&&(w<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let v=!1;for(;;)switch(C){case"hex":return hexWrite(this,B,I,w);case"utf8":case"utf-8":return utf8Write(this,B,I,w);case"ascii":case"latin1":case"binary":return asciiWrite(this,B,I,w);case"base64":return base64Write(this,B,I,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,B,I,w);default:if(v)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),v=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function asciiSlice(B,I,w){let C="";w=Math.min(B.length,w);for(let x=I;x<w;++x)C+=String.fromCharCode(127&B[x]);return C}function latin1Slice(B,I,w){let C="";w=Math.min(B.length,w);for(let x=I;x<w;++x)C+=String.fromCharCode(B[x]);return C}function hexSlice(B,I,w){const C=B.length;(!I||I<0)&&(I=0),(!w||w<0||w>C)&&(w=C);let x="";for(let C=I;C<w;++C)x+=T[B[C]];return x}function utf16leSlice(B,I,w){const C=B.slice(I,w);let x="";for(let B=0;B<C.length-1;B+=2)x+=String.fromCharCode(C[B]+256*C[B+1]);return x}function checkOffset(B,I,w){if(B%1!=0||B<0)throw new RangeError("offset is not uint");if(B+I>w)throw new RangeError("Trying to access beyond buffer length")}function checkInt(B,I,w,C,x,v){if(!Buffer.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>x||I<v)throw new RangeError('"value" argument is out of bounds');if(w+C>B.length)throw new RangeError("Index out of range")}function wrtBigUInt64LE(B,I,w,C,x){checkIntBI(I,C,x,B,w,7);let v=Number(I&BigInt(4294967295));B[w++]=v,v>>=8,B[w++]=v,v>>=8,B[w++]=v,v>>=8,B[w++]=v;let Q=Number(I>>BigInt(32)&BigInt(4294967295));return B[w++]=Q,Q>>=8,B[w++]=Q,Q>>=8,B[w++]=Q,Q>>=8,B[w++]=Q,w}function wrtBigUInt64BE(B,I,w,C,x){checkIntBI(I,C,x,B,w,7);let v=Number(I&BigInt(4294967295));B[w+7]=v,v>>=8,B[w+6]=v,v>>=8,B[w+5]=v,v>>=8,B[w+4]=v;let Q=Number(I>>BigInt(32)&BigInt(4294967295));return B[w+3]=Q,Q>>=8,B[w+2]=Q,Q>>=8,B[w+1]=Q,Q>>=8,B[w]=Q,w+8}function checkIEEE754(B,I,w,C,x,v){if(w+C>B.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function writeFloat(B,I,w,C,v){return I=+I,w>>>=0,v||checkIEEE754(B,0,w,4),x.write(B,I,w,C,23,4),w+4}function writeDouble(B,I,w,C,v){return I=+I,w>>>=0,v||checkIEEE754(B,0,w,8),x.write(B,I,w,C,52,8),w+8}Buffer.prototype.slice=function slice(B,I){const w=this.length;(B=~~B)<0?(B+=w)<0&&(B=0):B>w&&(B=w),(I=void 0===I?w:~~I)<0?(I+=w)<0&&(I=0):I>w&&(I=w),I<B&&(I=B);const C=this.subarray(B,I);return Object.setPrototypeOf(C,Buffer.prototype),C},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function readUIntLE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=this[B],x=1,v=0;for(;++v<I&&(x*=256);)C+=this[B+v]*x;return C},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function readUIntBE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=this[B+--I],x=1;for(;I>0&&(x*=256);)C+=this[B+--I]*x;return C},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function readUInt8(B,I){return B>>>=0,I||checkOffset(B,1,this.length),this[B]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function readUInt16LE(B,I){return B>>>=0,I||checkOffset(B,2,this.length),this[B]|this[B+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function readUInt16BE(B,I){return B>>>=0,I||checkOffset(B,2,this.length),this[B]<<8|this[B+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function readUInt32LE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+16777216*this[B+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function readUInt32BE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),16777216*this[B]+(this[B+1]<<16|this[B+2]<<8|this[B+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod((function readBigUInt64LE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=I+256*this[++B]+65536*this[++B]+this[++B]*2**24,x=this[++B]+256*this[++B]+65536*this[++B]+w*2**24;return BigInt(C)+(BigInt(x)<<BigInt(32))})),Buffer.prototype.readBigUInt64BE=defineBigIntMethod((function readBigUInt64BE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=I*2**24+65536*this[++B]+256*this[++B]+this[++B],x=this[++B]*2**24+65536*this[++B]+256*this[++B]+w;return(BigInt(C)<<BigInt(32))+BigInt(x)})),Buffer.prototype.readIntLE=function readIntLE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=this[B],x=1,v=0;for(;++v<I&&(x*=256);)C+=this[B+v]*x;return x*=128,C>=x&&(C-=Math.pow(2,8*I)),C},Buffer.prototype.readIntBE=function readIntBE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=I,x=1,v=this[B+--C];for(;C>0&&(x*=256);)v+=this[B+--C]*x;return x*=128,v>=x&&(v-=Math.pow(2,8*I)),v},Buffer.prototype.readInt8=function readInt8(B,I){return B>>>=0,I||checkOffset(B,1,this.length),128&this[B]?-1*(255-this[B]+1):this[B]},Buffer.prototype.readInt16LE=function readInt16LE(B,I){B>>>=0,I||checkOffset(B,2,this.length);const w=this[B]|this[B+1]<<8;return 32768&w?4294901760|w:w},Buffer.prototype.readInt16BE=function readInt16BE(B,I){B>>>=0,I||checkOffset(B,2,this.length);const w=this[B+1]|this[B]<<8;return 32768&w?4294901760|w:w},Buffer.prototype.readInt32LE=function readInt32LE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod((function readBigInt64LE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=this[B+4]+256*this[B+5]+65536*this[B+6]+(w<<24);return(BigInt(C)<<BigInt(32))+BigInt(I+256*this[++B]+65536*this[++B]+this[++B]*2**24)})),Buffer.prototype.readBigInt64BE=defineBigIntMethod((function readBigInt64BE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=(I<<24)+65536*this[++B]+256*this[++B]+this[++B];return(BigInt(C)<<BigInt(32))+BigInt(this[++B]*2**24+65536*this[++B]+256*this[++B]+w)})),Buffer.prototype.readFloatLE=function readFloatLE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),x.read(this,B,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),x.read(this,B,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(B,I){return B>>>=0,I||checkOffset(B,8,this.length),x.read(this,B,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(B,I){return B>>>=0,I||checkOffset(B,8,this.length),x.read(this,B,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function writeUIntLE(B,I,w,C){if(B=+B,I>>>=0,w>>>=0,!C){checkInt(this,B,I,w,Math.pow(2,8*w)-1,0)}let x=1,v=0;for(this[I]=255&B;++v<w&&(x*=256);)this[I+v]=B/x&255;return I+w},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function writeUIntBE(B,I,w,C){if(B=+B,I>>>=0,w>>>=0,!C){checkInt(this,B,I,w,Math.pow(2,8*w)-1,0)}let x=w-1,v=1;for(this[I+x]=255&B;--x>=0&&(v*=256);)this[I+x]=B/v&255;return I+w},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function writeUInt8(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,1,255,0),this[I]=255&B,I+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function writeUInt16LE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,2,65535,0),this[I]=255&B,this[I+1]=B>>>8,I+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function writeUInt16BE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,2,65535,0),this[I]=B>>>8,this[I+1]=255&B,I+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function writeUInt32LE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,4,4294967295,0),this[I+3]=B>>>24,this[I+2]=B>>>16,this[I+1]=B>>>8,this[I]=255&B,I+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function writeUInt32BE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,4,4294967295,0),this[I]=B>>>24,this[I+1]=B>>>16,this[I+2]=B>>>8,this[I+3]=255&B,I+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod((function writeBigUInt64LE(B,I=0){return wrtBigUInt64LE(this,B,I,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod((function writeBigUInt64BE(B,I=0){return wrtBigUInt64BE(this,B,I,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeIntLE=function writeIntLE(B,I,w,C){if(B=+B,I>>>=0,!C){const C=Math.pow(2,8*w-1);checkInt(this,B,I,w,C-1,-C)}let x=0,v=1,Q=0;for(this[I]=255&B;++x<w&&(v*=256);)B<0&&0===Q&&0!==this[I+x-1]&&(Q=1),this[I+x]=(B/v>>0)-Q&255;return I+w},Buffer.prototype.writeIntBE=function writeIntBE(B,I,w,C){if(B=+B,I>>>=0,!C){const C=Math.pow(2,8*w-1);checkInt(this,B,I,w,C-1,-C)}let x=w-1,v=1,Q=0;for(this[I+x]=255&B;--x>=0&&(v*=256);)B<0&&0===Q&&0!==this[I+x+1]&&(Q=1),this[I+x]=(B/v>>0)-Q&255;return I+w},Buffer.prototype.writeInt8=function writeInt8(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,1,127,-128),B<0&&(B=255+B+1),this[I]=255&B,I+1},Buffer.prototype.writeInt16LE=function writeInt16LE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,2,32767,-32768),this[I]=255&B,this[I+1]=B>>>8,I+2},Buffer.prototype.writeInt16BE=function writeInt16BE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,2,32767,-32768),this[I]=B>>>8,this[I+1]=255&B,I+2},Buffer.prototype.writeInt32LE=function writeInt32LE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,4,2147483647,-2147483648),this[I]=255&B,this[I+1]=B>>>8,this[I+2]=B>>>16,this[I+3]=B>>>24,I+4},Buffer.prototype.writeInt32BE=function writeInt32BE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,4,2147483647,-2147483648),B<0&&(B=4294967295+B+1),this[I]=B>>>24,this[I+1]=B>>>16,this[I+2]=B>>>8,this[I+3]=255&B,I+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod((function writeBigInt64LE(B,I=0){return wrtBigUInt64LE(this,B,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeBigInt64BE=defineBigIntMethod((function writeBigInt64BE(B,I=0){return wrtBigUInt64BE(this,B,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeFloatLE=function writeFloatLE(B,I,w){return writeFloat(this,B,I,!0,w)},Buffer.prototype.writeFloatBE=function writeFloatBE(B,I,w){return writeFloat(this,B,I,!1,w)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(B,I,w){return writeDouble(this,B,I,!0,w)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(B,I,w){return writeDouble(this,B,I,!1,w)},Buffer.prototype.copy=function copy(B,I,w,C){if(!Buffer.isBuffer(B))throw new TypeError("argument should be a Buffer");if(w||(w=0),C||0===C||(C=this.length),I>=B.length&&(I=B.length),I||(I=0),C>0&&C<w&&(C=w),C===w)return 0;if(0===B.length||0===this.length)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(w<0||w>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),B.length-I<C-w&&(C=B.length-I+w);const x=C-w;return this===B&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(I,w,C):Uint8Array.prototype.set.call(B,this.subarray(w,C),I),x},Buffer.prototype.fill=function fill(B,I,w,C){if("string"==typeof B){if("string"==typeof I?(C=I,I=0,w=this.length):"string"==typeof w&&(C=w,w=this.length),void 0!==C&&"string"!=typeof C)throw new TypeError("encoding must be a string");if("string"==typeof C&&!Buffer.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(1===B.length){const I=B.charCodeAt(0);("utf8"===C&&I<128||"latin1"===C)&&(B=I)}}else"number"==typeof B?B&=255:"boolean"==typeof B&&(B=Number(B));if(I<0||this.length<I||this.length<w)throw new RangeError("Out of range index");if(w<=I)return this;let x;if(I>>>=0,w=void 0===w?this.length:w>>>0,B||(B=0),"number"==typeof B)for(x=I;x<w;++x)this[x]=B;else{const v=Buffer.isBuffer(B)?B:Buffer.from(B,C),Q=v.length;if(0===Q)throw new TypeError('The value "'+B+'" is invalid for argument "value"');for(x=0;x<w-I;++x)this[x+I]=v[x%Q]}return this};const _={};function E(B,I,w){_[B]=class NodeError extends w{constructor(){super(),Object.defineProperty(this,"message",{value:I.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(B){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:B,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}function addNumericalSeparator(B){let I="",w=B.length;const C="-"===B[0]?1:0;for(;w>=C+4;w-=3)I=`_${B.slice(w-3,w)}${I}`;return`${B.slice(0,w)}${I}`}function checkIntBI(B,I,w,C,x,v){if(B>w||B<I){const C="bigint"==typeof I?"n":"";let x;throw x=v>3?0===I||I===BigInt(0)?`>= 0${C} and < 2${C} ** ${8*(v+1)}${C}`:`>= -(2${C} ** ${8*(v+1)-1}${C}) and < 2 ** ${8*(v+1)-1}${C}`:`>= ${I}${C} and <= ${w}${C}`,new _.ERR_OUT_OF_RANGE("value",x,B)}!function checkBounds(B,I,w){validateNumber(I,"offset"),void 0!==B[I]&&void 0!==B[I+w]||boundsError(I,B.length-(w+1))}(C,x,v)}function validateNumber(B,I){if("number"!=typeof B)throw new _.ERR_INVALID_ARG_TYPE(I,"number",B)}function boundsError(B,I,w){if(Math.floor(B)!==B)throw validateNumber(B,w),new _.ERR_OUT_OF_RANGE(w||"offset","an integer",B);if(I<0)throw new _.ERR_BUFFER_OUT_OF_BOUNDS;throw new _.ERR_OUT_OF_RANGE(w||"offset",`>= ${w?1:0} and <= ${I}`,B)}E("ERR_BUFFER_OUT_OF_BOUNDS",(function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),E("ERR_INVALID_ARG_TYPE",(function(B,I){return`The "${B}" argument must be of type number. Received type ${typeof I}`}),TypeError),E("ERR_OUT_OF_RANGE",(function(B,I,w){let C=`The value of "${B}" is out of range.`,x=w;return Number.isInteger(w)&&Math.abs(w)>2**32?x=addNumericalSeparator(String(w)):"bigint"==typeof w&&(x=String(w),(w>BigInt(2)**BigInt(32)||w<-(BigInt(2)**BigInt(32)))&&(x=addNumericalSeparator(x)),x+="n"),C+=` It must be ${I}. Received ${x}`,C}),RangeError);const N=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(B,I){let w;I=I||1/0;const C=B.length;let x=null;const v=[];for(let Q=0;Q<C;++Q){if(w=B.charCodeAt(Q),w>55295&&w<57344){if(!x){if(w>56319){(I-=3)>-1&&v.push(239,191,189);continue}if(Q+1===C){(I-=3)>-1&&v.push(239,191,189);continue}x=w;continue}if(w<56320){(I-=3)>-1&&v.push(239,191,189),x=w;continue}w=65536+(x-55296<<10|w-56320)}else x&&(I-=3)>-1&&v.push(239,191,189);if(x=null,w<128){if((I-=1)<0)break;v.push(w)}else if(w<2048){if((I-=2)<0)break;v.push(w>>6|192,63&w|128)}else if(w<65536){if((I-=3)<0)break;v.push(w>>12|224,w>>6&63|128,63&w|128)}else{if(!(w<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;v.push(w>>18|240,w>>12&63|128,w>>6&63|128,63&w|128)}}return v}function base64ToBytes(B){return C.toByteArray(function base64clean(B){if((B=(B=B.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(B))}function blitBuffer(B,I,w,C){let x;for(x=0;x<C&&!(x+w>=I.length||x>=B.length);++x)I[x+w]=B[x];return x}function isInstance(B,I){return B instanceof I||null!=B&&null!=B.constructor&&null!=B.constructor.name&&B.constructor.name===I.name}function numberIsNaN(B){return B!=B}const T=function(){const B="0123456789abcdef",I=new Array(256);for(let w=0;w<16;++w){const C=16*w;for(let x=0;x<16;++x)I[C+x]=B[w]+B[x]}return I}();function defineBigIntMethod(B){return"undefined"==typeof BigInt?BufferBigIntNotDefined:B}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}},(B,I,w)=>{"use strict";const C=w(1218),x=w(1219),v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=Buffer,I.SlowBuffer=function SlowBuffer(B){+B!=B&&(B=0);return Buffer.alloc(+B)},I.INSPECT_MAX_BYTES=50;const Q=2147483647;function createBuffer(B){if(B>Q)throw new RangeError('The value "'+B+'" is invalid for option "size"');const I=new Uint8Array(B);return Object.setPrototypeOf(I,Buffer.prototype),I}function Buffer(B,I,w){if("number"==typeof B){if("string"==typeof I)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(B)}return from(B,I,w)}function from(B,I,w){if("string"==typeof B)return function fromString(B,I){"string"==typeof I&&""!==I||(I="utf8");if(!Buffer.isEncoding(I))throw new TypeError("Unknown encoding: "+I);const w=0|byteLength(B,I);let C=createBuffer(w);const x=C.write(B,I);x!==w&&(C=C.slice(0,x));return C}(B,I);if(ArrayBuffer.isView(B))return function fromArrayView(B){if(isInstance(B,Uint8Array)){const I=new Uint8Array(B);return fromArrayBuffer(I.buffer,I.byteOffset,I.byteLength)}return fromArrayLike(B)}(B);if(null==B)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(isInstance(B,ArrayBuffer)||B&&isInstance(B.buffer,ArrayBuffer))return fromArrayBuffer(B,I,w);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(B,SharedArrayBuffer)||B&&isInstance(B.buffer,SharedArrayBuffer)))return fromArrayBuffer(B,I,w);if("number"==typeof B)throw new TypeError('The "value" argument must not be of type number. Received type number');const C=B.valueOf&&B.valueOf();if(null!=C&&C!==B)return Buffer.from(C,I,w);const x=function fromObject(B){if(Buffer.isBuffer(B)){const I=0|checked(B.length),w=createBuffer(I);return 0===w.length||B.copy(w,0,0,I),w}if(void 0!==B.length)return"number"!=typeof B.length||numberIsNaN(B.length)?createBuffer(0):fromArrayLike(B);if("Buffer"===B.type&&Array.isArray(B.data))return fromArrayLike(B.data)}(B);if(x)return x;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof B[Symbol.toPrimitive])return Buffer.from(B[Symbol.toPrimitive]("string"),I,w);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function assertSize(B){if("number"!=typeof B)throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function allocUnsafe(B){return assertSize(B),createBuffer(B<0?0:0|checked(B))}function fromArrayLike(B){const I=B.length<0?0:0|checked(B.length),w=createBuffer(I);for(let C=0;C<I;C+=1)w[C]=255&B[C];return w}function fromArrayBuffer(B,I,w){if(I<0||B.byteLength<I)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<I+(w||0))throw new RangeError('"length" is outside of buffer bounds');let C;return C=void 0===I&&void 0===w?new Uint8Array(B):void 0===w?new Uint8Array(B,I):new Uint8Array(B,I,w),Object.setPrototypeOf(C,Buffer.prototype),C}function checked(B){if(B>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return 0|B}function byteLength(B,I){if(Buffer.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||isInstance(B,ArrayBuffer))return B.byteLength;if("string"!=typeof B)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const w=B.length,C=arguments.length>2&&!0===arguments[2];if(!C&&0===w)return 0;let x=!1;for(;;)switch(I){case"ascii":case"latin1":case"binary":return w;case"utf8":case"utf-8":return utf8ToBytes(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*w;case"hex":return w>>>1;case"base64":return base64ToBytes(B).length;default:if(x)return C?-1:utf8ToBytes(B).length;I=(""+I).toLowerCase(),x=!0}}function slowToString(B,I,w){let C=!1;if((void 0===I||I<0)&&(I=0),I>this.length)return"";if((void 0===w||w>this.length)&&(w=this.length),w<=0)return"";if((w>>>=0)<=(I>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return hexSlice(this,I,w);case"utf8":case"utf-8":return utf8Slice(this,I,w);case"ascii":return asciiSlice(this,I,w);case"latin1":case"binary":return latin1Slice(this,I,w);case"base64":return base64Slice(this,I,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,I,w);default:if(C)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),C=!0}}function swap(B,I,w){const C=B[I];B[I]=B[w],B[w]=C}function bidirectionalIndexOf(B,I,w,C,x){if(0===B.length)return-1;if("string"==typeof w?(C=w,w=0):w>2147483647?w=2147483647:w<-2147483648&&(w=-2147483648),numberIsNaN(w=+w)&&(w=x?0:B.length-1),w<0&&(w=B.length+w),w>=B.length){if(x)return-1;w=B.length-1}else if(w<0){if(!x)return-1;w=0}if("string"==typeof I&&(I=Buffer.from(I,C)),Buffer.isBuffer(I))return 0===I.length?-1:arrayIndexOf(B,I,w,C,x);if("number"==typeof I)return I&=255,"function"==typeof Uint8Array.prototype.indexOf?x?Uint8Array.prototype.indexOf.call(B,I,w):Uint8Array.prototype.lastIndexOf.call(B,I,w):arrayIndexOf(B,[I],w,C,x);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(B,I,w,C,x){let v,Q=1,k=B.length,_=I.length;if(void 0!==C&&("ucs2"===(C=String(C).toLowerCase())||"ucs-2"===C||"utf16le"===C||"utf-16le"===C)){if(B.length<2||I.length<2)return-1;Q=2,k/=2,_/=2,w/=2}function read(B,I){return 1===Q?B[I]:B.readUInt16BE(I*Q)}if(x){let C=-1;for(v=w;v<k;v++)if(read(B,v)===read(I,-1===C?0:v-C)){if(-1===C&&(C=v),v-C+1===_)return C*Q}else-1!==C&&(v-=v-C),C=-1}else for(w+_>k&&(w=k-_),v=w;v>=0;v--){let w=!0;for(let C=0;C<_;C++)if(read(B,v+C)!==read(I,C)){w=!1;break}if(w)return v}return-1}function hexWrite(B,I,w,C){w=Number(w)||0;const x=B.length-w;C?(C=Number(C))>x&&(C=x):C=x;const v=I.length;let Q;for(C>v/2&&(C=v/2),Q=0;Q<C;++Q){const C=parseInt(I.substr(2*Q,2),16);if(numberIsNaN(C))return Q;B[w+Q]=C}return Q}function utf8Write(B,I,w,C){return blitBuffer(utf8ToBytes(I,B.length-w),B,w,C)}function asciiWrite(B,I,w,C){return blitBuffer(function asciiToBytes(B){const I=[];for(let w=0;w<B.length;++w)I.push(255&B.charCodeAt(w));return I}(I),B,w,C)}function base64Write(B,I,w,C){return blitBuffer(base64ToBytes(I),B,w,C)}function ucs2Write(B,I,w,C){return blitBuffer(function utf16leToBytes(B,I){let w,C,x;const v=[];for(let Q=0;Q<B.length&&!((I-=2)<0);++Q)w=B.charCodeAt(Q),C=w>>8,x=w%256,v.push(x),v.push(C);return v}(I,B.length-w),B,w,C)}function base64Slice(B,I,w){return 0===I&&w===B.length?C.fromByteArray(B):C.fromByteArray(B.slice(I,w))}function utf8Slice(B,I,w){w=Math.min(B.length,w);const C=[];let x=I;for(;x<w;){const I=B[x];let v=null,Q=I>239?4:I>223?3:I>191?2:1;if(x+Q<=w){let w,C,k,_;switch(Q){case 1:I<128&&(v=I);break;case 2:w=B[x+1],128==(192&w)&&(_=(31&I)<<6|63&w,_>127&&(v=_));break;case 3:w=B[x+1],C=B[x+2],128==(192&w)&&128==(192&C)&&(_=(15&I)<<12|(63&w)<<6|63&C,_>2047&&(_<55296||_>57343)&&(v=_));break;case 4:w=B[x+1],C=B[x+2],k=B[x+3],128==(192&w)&&128==(192&C)&&128==(192&k)&&(_=(15&I)<<18|(63&w)<<12|(63&C)<<6|63&k,_>65535&&_<1114112&&(v=_))}}null===v?(v=65533,Q=1):v>65535&&(v-=65536,C.push(v>>>10&1023|55296),v=56320|1023&v),C.push(v),x+=Q}return function decodeCodePointsArray(B){const I=B.length;if(I<=k)return String.fromCharCode.apply(String,B);let w="",C=0;for(;C<I;)w+=String.fromCharCode.apply(String,B.slice(C,C+=k));return w}(C)}I.kMaxLength=Q,Buffer.TYPED_ARRAY_SUPPORT=function typedArraySupport(){try{const B=new Uint8Array(1),I={foo:function(){return 42}};return Object.setPrototypeOf(I,Uint8Array.prototype),Object.setPrototypeOf(B,I),42===B.foo()}catch(B){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(B,I,w){return from(B,I,w)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(B,I,w){return function alloc(B,I,w){return assertSize(B),B<=0?createBuffer(B):void 0!==I?"string"==typeof w?createBuffer(B).fill(I,w):createBuffer(B).fill(I):createBuffer(B)}(B,I,w)},Buffer.allocUnsafe=function(B){return allocUnsafe(B)},Buffer.allocUnsafeSlow=function(B){return allocUnsafe(B)},Buffer.isBuffer=function isBuffer(B){return null!=B&&!0===B._isBuffer&&B!==Buffer.prototype},Buffer.compare=function compare(B,I){if(isInstance(B,Uint8Array)&&(B=Buffer.from(B,B.offset,B.byteLength)),isInstance(I,Uint8Array)&&(I=Buffer.from(I,I.offset,I.byteLength)),!Buffer.isBuffer(B)||!Buffer.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(B===I)return 0;let w=B.length,C=I.length;for(let x=0,v=Math.min(w,C);x<v;++x)if(B[x]!==I[x]){w=B[x],C=I[x];break}return w<C?-1:C<w?1:0},Buffer.isEncoding=function isEncoding(B){switch(String(B).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}},Buffer.concat=function concat(B,I){if(!Array.isArray(B))throw new TypeError('"list" argument must be an Array of Buffers');if(0===B.length)return Buffer.alloc(0);let w;if(void 0===I)for(I=0,w=0;w<B.length;++w)I+=B[w].length;const C=Buffer.allocUnsafe(I);let x=0;for(w=0;w<B.length;++w){let I=B[w];if(isInstance(I,Uint8Array))x+I.length>C.length?(Buffer.isBuffer(I)||(I=Buffer.from(I)),I.copy(C,x)):Uint8Array.prototype.set.call(C,I,x);else{if(!Buffer.isBuffer(I))throw new TypeError('"list" argument must be an Array of Buffers');I.copy(C,x)}x+=I.length}return C},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){const B=this.length;if(B%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;I<B;I+=2)swap(this,I,I+1);return this},Buffer.prototype.swap32=function swap32(){const B=this.length;if(B%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let I=0;I<B;I+=4)swap(this,I,I+3),swap(this,I+1,I+2);return this},Buffer.prototype.swap64=function swap64(){const B=this.length;if(B%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let I=0;I<B;I+=8)swap(this,I,I+7),swap(this,I+1,I+6),swap(this,I+2,I+5),swap(this,I+3,I+4);return this},Buffer.prototype.toString=function toString(){const B=this.length;return 0===B?"":0===arguments.length?utf8Slice(this,0,B):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function equals(B){if(!Buffer.isBuffer(B))throw new TypeError("Argument must be a Buffer");return this===B||0===Buffer.compare(this,B)},Buffer.prototype.inspect=function inspect(){let B="";const w=I.INSPECT_MAX_BYTES;return B=this.toString("hex",0,w).replace(/(.{2})/g,"$1 ").trim(),this.length>w&&(B+=" ... "),"<Buffer "+B+">"},v&&(Buffer.prototype[v]=Buffer.prototype.inspect),Buffer.prototype.compare=function compare(B,I,w,C,x){if(isInstance(B,Uint8Array)&&(B=Buffer.from(B,B.offset,B.byteLength)),!Buffer.isBuffer(B))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof B);if(void 0===I&&(I=0),void 0===w&&(w=B?B.length:0),void 0===C&&(C=0),void 0===x&&(x=this.length),I<0||w>B.length||C<0||x>this.length)throw new RangeError("out of range index");if(C>=x&&I>=w)return 0;if(C>=x)return-1;if(I>=w)return 1;if(this===B)return 0;let v=(x>>>=0)-(C>>>=0),Q=(w>>>=0)-(I>>>=0);const k=Math.min(v,Q),_=this.slice(C,x),N=B.slice(I,w);for(let B=0;B<k;++B)if(_[B]!==N[B]){v=_[B],Q=N[B];break}return v<Q?-1:Q<v?1:0},Buffer.prototype.includes=function includes(B,I,w){return-1!==this.indexOf(B,I,w)},Buffer.prototype.indexOf=function indexOf(B,I,w){return bidirectionalIndexOf(this,B,I,w,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(B,I,w){return bidirectionalIndexOf(this,B,I,w,!1)},Buffer.prototype.write=function write(B,I,w,C){if(void 0===I)C="utf8",w=this.length,I=0;else if(void 0===w&&"string"==typeof I)C=I,w=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I>>>=0,isFinite(w)?(w>>>=0,void 0===C&&(C="utf8")):(C=w,w=void 0)}const x=this.length-I;if((void 0===w||w>x)&&(w=x),B.length>0&&(w<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let v=!1;for(;;)switch(C){case"hex":return hexWrite(this,B,I,w);case"utf8":case"utf-8":return utf8Write(this,B,I,w);case"ascii":case"latin1":case"binary":return asciiWrite(this,B,I,w);case"base64":return base64Write(this,B,I,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,B,I,w);default:if(v)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),v=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function asciiSlice(B,I,w){let C="";w=Math.min(B.length,w);for(let x=I;x<w;++x)C+=String.fromCharCode(127&B[x]);return C}function latin1Slice(B,I,w){let C="";w=Math.min(B.length,w);for(let x=I;x<w;++x)C+=String.fromCharCode(B[x]);return C}function hexSlice(B,I,w){const C=B.length;(!I||I<0)&&(I=0),(!w||w<0||w>C)&&(w=C);let x="";for(let C=I;C<w;++C)x+=T[B[C]];return x}function utf16leSlice(B,I,w){const C=B.slice(I,w);let x="";for(let B=0;B<C.length-1;B+=2)x+=String.fromCharCode(C[B]+256*C[B+1]);return x}function checkOffset(B,I,w){if(B%1!=0||B<0)throw new RangeError("offset is not uint");if(B+I>w)throw new RangeError("Trying to access beyond buffer length")}function checkInt(B,I,w,C,x,v){if(!Buffer.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>x||I<v)throw new RangeError('"value" argument is out of bounds');if(w+C>B.length)throw new RangeError("Index out of range")}function wrtBigUInt64LE(B,I,w,C,x){checkIntBI(I,C,x,B,w,7);let v=Number(I&BigInt(4294967295));B[w++]=v,v>>=8,B[w++]=v,v>>=8,B[w++]=v,v>>=8,B[w++]=v;let Q=Number(I>>BigInt(32)&BigInt(4294967295));return B[w++]=Q,Q>>=8,B[w++]=Q,Q>>=8,B[w++]=Q,Q>>=8,B[w++]=Q,w}function wrtBigUInt64BE(B,I,w,C,x){checkIntBI(I,C,x,B,w,7);let v=Number(I&BigInt(4294967295));B[w+7]=v,v>>=8,B[w+6]=v,v>>=8,B[w+5]=v,v>>=8,B[w+4]=v;let Q=Number(I>>BigInt(32)&BigInt(4294967295));return B[w+3]=Q,Q>>=8,B[w+2]=Q,Q>>=8,B[w+1]=Q,Q>>=8,B[w]=Q,w+8}function checkIEEE754(B,I,w,C,x,v){if(w+C>B.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("Index out of range")}function writeFloat(B,I,w,C,v){return I=+I,w>>>=0,v||checkIEEE754(B,0,w,4),x.write(B,I,w,C,23,4),w+4}function writeDouble(B,I,w,C,v){return I=+I,w>>>=0,v||checkIEEE754(B,0,w,8),x.write(B,I,w,C,52,8),w+8}Buffer.prototype.slice=function slice(B,I){const w=this.length;(B=~~B)<0?(B+=w)<0&&(B=0):B>w&&(B=w),(I=void 0===I?w:~~I)<0?(I+=w)<0&&(I=0):I>w&&(I=w),I<B&&(I=B);const C=this.subarray(B,I);return Object.setPrototypeOf(C,Buffer.prototype),C},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function readUIntLE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=this[B],x=1,v=0;for(;++v<I&&(x*=256);)C+=this[B+v]*x;return C},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function readUIntBE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=this[B+--I],x=1;for(;I>0&&(x*=256);)C+=this[B+--I]*x;return C},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function readUInt8(B,I){return B>>>=0,I||checkOffset(B,1,this.length),this[B]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function readUInt16LE(B,I){return B>>>=0,I||checkOffset(B,2,this.length),this[B]|this[B+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function readUInt16BE(B,I){return B>>>=0,I||checkOffset(B,2,this.length),this[B]<<8|this[B+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function readUInt32LE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),(this[B]|this[B+1]<<8|this[B+2]<<16)+16777216*this[B+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function readUInt32BE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),16777216*this[B]+(this[B+1]<<16|this[B+2]<<8|this[B+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod((function readBigUInt64LE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=I+256*this[++B]+65536*this[++B]+this[++B]*2**24,x=this[++B]+256*this[++B]+65536*this[++B]+w*2**24;return BigInt(C)+(BigInt(x)<<BigInt(32))})),Buffer.prototype.readBigUInt64BE=defineBigIntMethod((function readBigUInt64BE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=I*2**24+65536*this[++B]+256*this[++B]+this[++B],x=this[++B]*2**24+65536*this[++B]+256*this[++B]+w;return(BigInt(C)<<BigInt(32))+BigInt(x)})),Buffer.prototype.readIntLE=function readIntLE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=this[B],x=1,v=0;for(;++v<I&&(x*=256);)C+=this[B+v]*x;return x*=128,C>=x&&(C-=Math.pow(2,8*I)),C},Buffer.prototype.readIntBE=function readIntBE(B,I,w){B>>>=0,I>>>=0,w||checkOffset(B,I,this.length);let C=I,x=1,v=this[B+--C];for(;C>0&&(x*=256);)v+=this[B+--C]*x;return x*=128,v>=x&&(v-=Math.pow(2,8*I)),v},Buffer.prototype.readInt8=function readInt8(B,I){return B>>>=0,I||checkOffset(B,1,this.length),128&this[B]?-1*(255-this[B]+1):this[B]},Buffer.prototype.readInt16LE=function readInt16LE(B,I){B>>>=0,I||checkOffset(B,2,this.length);const w=this[B]|this[B+1]<<8;return 32768&w?4294901760|w:w},Buffer.prototype.readInt16BE=function readInt16BE(B,I){B>>>=0,I||checkOffset(B,2,this.length);const w=this[B+1]|this[B]<<8;return 32768&w?4294901760|w:w},Buffer.prototype.readInt32LE=function readInt32LE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),this[B]|this[B+1]<<8|this[B+2]<<16|this[B+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),this[B]<<24|this[B+1]<<16|this[B+2]<<8|this[B+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod((function readBigInt64LE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=this[B+4]+256*this[B+5]+65536*this[B+6]+(w<<24);return(BigInt(C)<<BigInt(32))+BigInt(I+256*this[++B]+65536*this[++B]+this[++B]*2**24)})),Buffer.prototype.readBigInt64BE=defineBigIntMethod((function readBigInt64BE(B){validateNumber(B>>>=0,"offset");const I=this[B],w=this[B+7];void 0!==I&&void 0!==w||boundsError(B,this.length-8);const C=(I<<24)+65536*this[++B]+256*this[++B]+this[++B];return(BigInt(C)<<BigInt(32))+BigInt(this[++B]*2**24+65536*this[++B]+256*this[++B]+w)})),Buffer.prototype.readFloatLE=function readFloatLE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),x.read(this,B,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(B,I){return B>>>=0,I||checkOffset(B,4,this.length),x.read(this,B,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(B,I){return B>>>=0,I||checkOffset(B,8,this.length),x.read(this,B,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(B,I){return B>>>=0,I||checkOffset(B,8,this.length),x.read(this,B,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function writeUIntLE(B,I,w,C){if(B=+B,I>>>=0,w>>>=0,!C){checkInt(this,B,I,w,Math.pow(2,8*w)-1,0)}let x=1,v=0;for(this[I]=255&B;++v<w&&(x*=256);)this[I+v]=B/x&255;return I+w},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function writeUIntBE(B,I,w,C){if(B=+B,I>>>=0,w>>>=0,!C){checkInt(this,B,I,w,Math.pow(2,8*w)-1,0)}let x=w-1,v=1;for(this[I+x]=255&B;--x>=0&&(v*=256);)this[I+x]=B/v&255;return I+w},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function writeUInt8(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,1,255,0),this[I]=255&B,I+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function writeUInt16LE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,2,65535,0),this[I]=255&B,this[I+1]=B>>>8,I+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function writeUInt16BE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,2,65535,0),this[I]=B>>>8,this[I+1]=255&B,I+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function writeUInt32LE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,4,4294967295,0),this[I+3]=B>>>24,this[I+2]=B>>>16,this[I+1]=B>>>8,this[I]=255&B,I+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function writeUInt32BE(B,I,w){return B=+B,I>>>=0,w||checkInt(this,B,I,4,4294967295,0),this[I]=B>>>24,this[I+1]=B>>>16,this[I+2]=B>>>8,this[I+3]=255&B,I+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod((function writeBigUInt64LE(B,I=0){return wrtBigUInt64LE(this,B,I,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeBigUInt64BE=de