UNPKG

@grapecity/activereports

Version:

ActiveReportsJS

9 lines 1.72 MB
/*! * @grapecity/activereports 5.2.2 * Description: ActiveReportsJS * https://www.npmjs.com/package/@grapecity/activereports * Copyright ©️ Respective Holders. All rights reserved. * Licensed under the Commercial license */ /*! For license information please see ar-js-pdf.js.LICENSE.txt */ !function webpackUniversalModuleDefinition(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@grapecity/ar-js-pagereport")):"function"==typeof define&&define.amd?define(["@grapecity/ar-js-pagereport"],t):"object"==typeof exports?exports.GC=t(require("@grapecity/ar-js-pagereport")):(n.GC=n.GC||{},n.GC.ActiveReports=n.GC.ActiveReports||{},n.GC.ActiveReports.PdfExport=t(n.GC.ActiveReports.Core))}(self,(n=>(()=>{var t=[function(n,t,i){var s;n.exports=(s=s||function(n,t){var s;if("undefined"!=typeof window&&window.crypto&&(s=window.crypto),"undefined"!=typeof self&&self.crypto&&(s=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(s=globalThis.crypto),!s&&"undefined"!=typeof window&&window.msCrypto&&(s=window.msCrypto),!s&&void 0!==i.g&&i.g.crypto&&(s=i.g.crypto),!s)try{s=i(192)}catch(n){}var cryptoSecureRandomInt=function(){if(s){if("function"==typeof s.getRandomValues)try{return s.getRandomValues(new Uint32Array(1))[0]}catch(n){}if("function"==typeof s.randomBytes)try{return s.randomBytes(4).readInt32LE()}catch(n){}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||function(){function F(){}return function(n){var t;return F.prototype=n,t=new F,F.prototype=null,t}}(),X={},P=X.lib={},d=P.Base={extend:function(n){var t=l(this);return n&&t.mixIn(n),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var t in n)n.hasOwnProperty(t)&&(this[t]=n[t]);n.hasOwnProperty("toString")&&(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}},K=P.WordArray=d.extend({init:function(n,i){n=this.words=n||[],this.sigBytes=i!=t?i:4*n.length},toString:function(n){return(n||h).stringify(this)},concat:function(n){var t=this.words,i=n.words,s=this.sigBytes,l=n.sigBytes;if(this.clamp(),s%4)for(var X=0;X<l;X++){var P=i[X>>>2]>>>24-X%4*8&255;t[s+X>>>2]|=P<<24-(s+X)%4*8}else for(var d=0;d<l;d+=4)t[s+d>>>2]=i[d>>>2];return this.sigBytes+=l,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=n.ceil(i/4)},clone:function(){var n=d.clone.call(this);return n.words=this.words.slice(0),n},random:function(n){for(var t=[],i=0;i<n;i+=4)t.push(cryptoSecureRandomInt());return new K.init(t,n)}}),m=X.enc={},h=m.Hex={stringify:function(n){for(var t=n.words,i=n.sigBytes,s=[],l=0;l<i;l++){var X=t[l>>>2]>>>24-l%4*8&255;s.push((X>>>4).toString(16)),s.push((15&X).toString(16))}return s.join("")},parse:function(n){for(var t=n.length,i=[],s=0;s<t;s+=2)i[s>>>3]|=parseInt(n.substr(s,2),16)<<24-s%8*4;return new K.init(i,t/2)}},g=m.Latin1={stringify:function(n){for(var t=n.words,i=n.sigBytes,s=[],l=0;l<i;l++){var X=t[l>>>2]>>>24-l%4*8&255;s.push(String.fromCharCode(X))}return s.join("")},parse:function(n){for(var t=n.length,i=[],s=0;s<t;s++)i[s>>>2]|=(255&n.charCodeAt(s))<<24-s%4*8;return new K.init(i,t)}},p=m.Utf8={stringify:function(n){try{return decodeURIComponent(escape(g.stringify(n)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(n){return g.parse(unescape(encodeURIComponent(n)))}},A=P.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new K.init,this._nDataBytes=0},_append:function(n){"string"==typeof n&&(n=p.parse(n)),this._data.concat(n),this._nDataBytes+=n.sigBytes},_process:function(t){var i,s=this._data,l=s.words,X=s.sigBytes,P=this.blockSize,d=X/(4*P),m=(d=t?n.ceil(d):n.max((0|d)-this._minBufferSize,0))*P,h=n.min(4*m,X);if(m){for(var g=0;g<m;g+=P)this._doProcessBlock(l,g);i=l.splice(0,m),s.sigBytes-=h}return new K.init(i,h)},clone:function(){var n=d.clone.call(this);return n._data=this._data.clone(),n},_minBufferSize:0}),y=(P.Hasher=A.extend({cfg:d.extend(),init:function(n){this.cfg=this.cfg.extend(n),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(n){return this._append(n),this._process(),this},finalize:function(n){return n&&this._append(n),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(t,i){return new n.init(i).finalize(t)}},_createHmacHelper:function(n){return function(t,i){return new y.HMAC.init(n,i).finalize(t)}}}),X.algo={});return X}(Math),s)},function(n,t,i){var s;n.exports=(s=i(0),i(7),void(s.lib.Cipher||function(n){var t=s,i=t.lib,l=i.Base,X=i.WordArray,P=i.BufferedBlockAlgorithm,d=t.enc,K=(d.Utf8,d.Base64),m=t.algo.EvpKDF,h=i.Cipher=P.extend({cfg:l.extend(),createEncryptor:function(n,t){return this.create(this._ENC_XFORM_MODE,n,t)},createDecryptor:function(n,t){return this.create(this._DEC_XFORM_MODE,n,t)},init:function(n,t,i){this.cfg=this.cfg.extend(i),this._xformMode=n,this._key=t,this.reset()},reset:function(){P.reset.call(this),this._doReset()},process:function(n){return this._append(n),this._process()},finalize:function(n){return n&&this._append(n),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function selectCipherStrategy(n){return"string"==typeof n?x:C}return function(n){return{encrypt:function(t,i,s){return selectCipherStrategy(i).encrypt(n,t,i,s)},decrypt:function(t,i,s){return selectCipherStrategy(i).decrypt(n,t,i,s)}}}}()}),g=(i.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=i.BlockCipherMode=l.extend({createEncryptor:function(n,t){return this.Encryptor.create(n,t)},createDecryptor:function(n,t){return this.Decryptor.create(n,t)},init:function(n,t){this._cipher=n,this._iv=t}}),A=g.CBC=function(){var t=p.extend();function xorBlock(t,i,s){var l,X=this._iv;X?(l=X,this._iv=n):l=this._prevBlock;for(var P=0;P<s;P++)t[i+P]^=l[P]}return t.Encryptor=t.extend({processBlock:function(n,t){var i=this._cipher,s=i.blockSize;xorBlock.call(this,n,t,s),i.encryptBlock(n,t),this._prevBlock=n.slice(t,t+s)}}),t.Decryptor=t.extend({processBlock:function(n,t){var i=this._cipher,s=i.blockSize,l=n.slice(t,t+s);i.decryptBlock(n,t),xorBlock.call(this,n,t,s),this._prevBlock=l}}),t}(),y=(t.pad={}).Pkcs7={pad:function(n,t){for(var i=4*t,s=i-n.sigBytes%i,l=s<<24|s<<16|s<<8|s,P=[],d=0;d<s;d+=4)P.push(l);var K=X.create(P,s);n.concat(K)},unpad:function(n){var t=255&n.words[n.sigBytes-1>>>2];n.sigBytes-=t}},v=(i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:A,padding:y}),reset:function(){var n;h.reset.call(this);var t=this.cfg,i=t.iv,s=t.mode;this._xformMode==this._ENC_XFORM_MODE?n=s.createEncryptor:(n=s.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==n?this._mode.init(this,i&&i.words):(this._mode=n.call(s,this,i&&i.words),this._mode.__creator=n)},_doProcessBlock:function(n,t){this._mode.processBlock(n,t)},_doFinalize:function(){var n,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),n=this._process(!0)):(n=this._process(!0),t.unpad(n)),n},blockSize:4}),i.CipherParams=l.extend({init:function(n){this.mixIn(n)},toString:function(n){return(n||this.formatter).stringify(this)}})),b=(t.format={}).OpenSSL={stringify:function(n){var t=n.ciphertext,i=n.salt;return(i?X.create([1398893684,1701076831]).concat(i).concat(t):t).toString(K)},parse:function(n){var t,i=K.parse(n),s=i.words;return 1398893684==s[0]&&1701076831==s[1]&&(t=X.create(s.slice(2,4)),s.splice(0,4),i.sigBytes-=16),v.create({ciphertext:i,salt:t})}},C=i.SerializableCipher=l.extend({cfg:l.extend({format:b}),encrypt:function(n,t,i,s){s=this.cfg.extend(s);var l=n.createEncryptor(i,s),X=l.finalize(t),P=l.cfg;return v.create({ciphertext:X,key:i,iv:P.iv,algorithm:n,mode:P.mode,padding:P.padding,blockSize:n.blockSize,formatter:s.format})},decrypt:function(n,t,i,s){return s=this.cfg.extend(s),t=this._parse(t,s.format),n.createDecryptor(i,s).finalize(t.ciphertext)},_parse:function(n,t){return"string"==typeof n?t.parse(n,this):n}}),B=(t.kdf={}).OpenSSL={execute:function(n,t,i,s,l){if(s||(s=X.random(8)),l)P=m.create({keySize:t+i,hasher:l}).compute(n,s);else var P=m.create({keySize:t+i}).compute(n,s);var d=X.create(P.words.slice(t),4*i);return P.sigBytes=4*t,v.create({key:P,iv:d,salt:s})}},x=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:B}),encrypt:function(n,t,i,s){var l=(s=this.cfg.extend(s)).kdf.execute(i,n.keySize,n.ivSize,s.salt,s.hasher);s.iv=l.iv;var X=C.encrypt.call(this,n,t,l.key,s);return X.mixIn(l),X},decrypt:function(n,t,i,s){s=this.cfg.extend(s),t=this._parse(t,s.format);var l=s.kdf.execute(i,n.keySize,n.ivSize,t.salt,s.hasher);return s.iv=l.iv,C.decrypt.call(this,n,t,l.key,s)}})}()))},(n,t,i)=>{"use strict";const s=i(43),l=i(186),X="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=Buffer,t.SlowBuffer=function SlowBuffer(n){+n!=n&&(n=0);return Buffer.alloc(+n)},t.INSPECT_MAX_BYTES=50;const P=2147483647;function createBuffer(n){if(n>P)throw new RangeError('The value "'+n+'" is invalid for option "size"');const t=new Uint8Array(n);return Object.setPrototypeOf(t,Buffer.prototype),t}function Buffer(n,t,i){if("number"==typeof n){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(n)}return from(n,t,i)}function from(n,t,i){if("string"==typeof n)return function fromString(n,t){"string"==typeof t&&""!==t||(t="utf8");if(!Buffer.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|byteLength(n,t);let s=createBuffer(i);const l=s.write(n,t);l!==i&&(s=s.slice(0,l));return s}(n,t);if(ArrayBuffer.isView(n))return function fromArrayView(n){if(isInstance(n,Uint8Array)){const t=new Uint8Array(n);return fromArrayBuffer(t.buffer,t.byteOffset,t.byteLength)}return fromArrayLike(n)}(n);if(null==n)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(isInstance(n,ArrayBuffer)||n&&isInstance(n.buffer,ArrayBuffer))return fromArrayBuffer(n,t,i);if("undefined"!=typeof SharedArrayBuffer&&(isInstance(n,SharedArrayBuffer)||n&&isInstance(n.buffer,SharedArrayBuffer)))return fromArrayBuffer(n,t,i);if("number"==typeof n)throw new TypeError('The "value" argument must not be of type number. Received type number');const s=n.valueOf&&n.valueOf();if(null!=s&&s!==n)return Buffer.from(s,t,i);const l=function fromObject(n){if(Buffer.isBuffer(n)){const t=0|checked(n.length),i=createBuffer(t);return 0===i.length||n.copy(i,0,0,t),i}if(void 0!==n.length)return"number"!=typeof n.length||numberIsNaN(n.length)?createBuffer(0):fromArrayLike(n);if("Buffer"===n.type&&Array.isArray(n.data))return fromArrayLike(n.data)}(n);if(l)return l;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof n[Symbol.toPrimitive])return Buffer.from(n[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}function assertSize(n){if("number"!=typeof n)throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function allocUnsafe(n){return assertSize(n),createBuffer(n<0?0:0|checked(n))}function fromArrayLike(n){const t=n.length<0?0:0|checked(n.length),i=createBuffer(t);for(let s=0;s<t;s+=1)i[s]=255&n[s];return i}function fromArrayBuffer(n,t,i){if(t<0||n.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');let s;return s=void 0===t&&void 0===i?new Uint8Array(n):void 0===i?new Uint8Array(n,t):new Uint8Array(n,t,i),Object.setPrototypeOf(s,Buffer.prototype),s}function checked(n){if(n>=P)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P.toString(16)+" bytes");return 0|n}function byteLength(n,t){if(Buffer.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||isInstance(n,ArrayBuffer))return n.byteLength;if("string"!=typeof n)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);const i=n.length,s=arguments.length>2&&!0===arguments[2];if(!s&&0===i)return 0;let l=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return utf8ToBytes(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return base64ToBytes(n).length;default:if(l)return s?-1:utf8ToBytes(n).length;t=(""+t).toLowerCase(),l=!0}}function slowToString(n,t,i){let s=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return hexSlice(this,t,i);case"utf8":case"utf-8":return utf8Slice(this,t,i);case"ascii":return asciiSlice(this,t,i);case"latin1":case"binary":return latin1Slice(this,t,i);case"base64":return base64Slice(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,i);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),s=!0}}function swap(n,t,i){const s=n[t];n[t]=n[i],n[i]=s}function bidirectionalIndexOf(n,t,i,s,l){if(0===n.length)return-1;if("string"==typeof i?(s=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),numberIsNaN(i=+i)&&(i=l?0:n.length-1),i<0&&(i=n.length+i),i>=n.length){if(l)return-1;i=n.length-1}else if(i<0){if(!l)return-1;i=0}if("string"==typeof t&&(t=Buffer.from(t,s)),Buffer.isBuffer(t))return 0===t.length?-1:arrayIndexOf(n,t,i,s,l);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?l?Uint8Array.prototype.indexOf.call(n,t,i):Uint8Array.prototype.lastIndexOf.call(n,t,i):arrayIndexOf(n,[t],i,s,l);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(n,t,i,s,l){let X,P=1,d=n.length,K=t.length;if(void 0!==s&&("ucs2"===(s=String(s).toLowerCase())||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(n.length<2||t.length<2)return-1;P=2,d/=2,K/=2,i/=2}function read(n,t){return 1===P?n[t]:n.readUInt16BE(t*P)}if(l){let s=-1;for(X=i;X<d;X++)if(read(n,X)===read(t,-1===s?0:X-s)){if(-1===s&&(s=X),X-s+1===K)return s*P}else-1!==s&&(X-=X-s),s=-1}else for(i+K>d&&(i=d-K),X=i;X>=0;X--){let i=!0;for(let s=0;s<K;s++)if(read(n,X+s)!==read(t,s)){i=!1;break}if(i)return X}return-1}function hexWrite(n,t,i,s){i=Number(i)||0;const l=n.length-i;s?(s=Number(s))>l&&(s=l):s=l;const X=t.length;let P;for(s>X/2&&(s=X/2),P=0;P<s;++P){const s=parseInt(t.substr(2*P,2),16);if(numberIsNaN(s))return P;n[i+P]=s}return P}function utf8Write(n,t,i,s){return blitBuffer(utf8ToBytes(t,n.length-i),n,i,s)}function asciiWrite(n,t,i,s){return blitBuffer(function asciiToBytes(n){const t=[];for(let i=0;i<n.length;++i)t.push(255&n.charCodeAt(i));return t}(t),n,i,s)}function base64Write(n,t,i,s){return blitBuffer(base64ToBytes(t),n,i,s)}function ucs2Write(n,t,i,s){return blitBuffer(function utf16leToBytes(n,t){let i,s,l;const X=[];for(let P=0;P<n.length&&!((t-=2)<0);++P)i=n.charCodeAt(P),s=i>>8,l=i%256,X.push(l),X.push(s);return X}(t,n.length-i),n,i,s)}function base64Slice(n,t,i){return 0===t&&i===n.length?s.fromByteArray(n):s.fromByteArray(n.slice(t,i))}function utf8Slice(n,t,i){i=Math.min(n.length,i);const s=[];let l=t;for(;l<i;){const t=n[l];let X=null,P=t>239?4:t>223?3:t>191?2:1;if(l+P<=i){let i,s,d,K;switch(P){case 1:t<128&&(X=t);break;case 2:i=n[l+1],128==(192&i)&&(K=(31&t)<<6|63&i,K>127&&(X=K));break;case 3:i=n[l+1],s=n[l+2],128==(192&i)&&128==(192&s)&&(K=(15&t)<<12|(63&i)<<6|63&s,K>2047&&(K<55296||K>57343)&&(X=K));break;case 4:i=n[l+1],s=n[l+2],d=n[l+3],128==(192&i)&&128==(192&s)&&128==(192&d)&&(K=(15&t)<<18|(63&i)<<12|(63&s)<<6|63&d,K>65535&&K<1114112&&(X=K))}}null===X?(X=65533,P=1):X>65535&&(X-=65536,s.push(X>>>10&1023|55296),X=56320|1023&X),s.push(X),l+=P}return function decodeCodePointsArray(n){const t=n.length;if(t<=d)return String.fromCharCode.apply(String,n);let i="",s=0;for(;s<t;)i+=String.fromCharCode.apply(String,n.slice(s,s+=d));return i}(s)}t.kMaxLength=P,Buffer.TYPED_ARRAY_SUPPORT=function typedArraySupport(){try{const n=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(n,t),42===n.foo()}catch(n){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(n,t,i){return from(n,t,i)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(n,t,i){return function alloc(n,t,i){return assertSize(n),n<=0?createBuffer(n):void 0!==t?"string"==typeof i?createBuffer(n).fill(t,i):createBuffer(n).fill(t):createBuffer(n)}(n,t,i)},Buffer.allocUnsafe=function(n){return allocUnsafe(n)},Buffer.allocUnsafeSlow=function(n){return allocUnsafe(n)},Buffer.isBuffer=function isBuffer(n){return null!=n&&!0===n._isBuffer&&n!==Buffer.prototype},Buffer.compare=function compare(n,t){if(isInstance(n,Uint8Array)&&(n=Buffer.from(n,n.offset,n.byteLength)),isInstance(t,Uint8Array)&&(t=Buffer.from(t,t.offset,t.byteLength)),!Buffer.isBuffer(n)||!Buffer.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===t)return 0;let i=n.length,s=t.length;for(let l=0,X=Math.min(i,s);l<X;++l)if(n[l]!==t[l]){i=n[l],s=t[l];break}return i<s?-1:s<i?1:0},Buffer.isEncoding=function isEncoding(n){switch(String(n).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(n,t){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return Buffer.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<n.length;++i)t+=n[i].length;const s=Buffer.allocUnsafe(t);let l=0;for(i=0;i<n.length;++i){let t=n[i];if(isInstance(t,Uint8Array))l+t.length>s.length?(Buffer.isBuffer(t)||(t=Buffer.from(t)),t.copy(s,l)):Uint8Array.prototype.set.call(s,t,l);else{if(!Buffer.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(s,l)}l+=t.length}return s},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function swap16(){const n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<n;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function swap32(){const n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<n;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function swap64(){const n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<n;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function toString(){const n=this.length;return 0===n?"":0===arguments.length?utf8Slice(this,0,n):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function equals(n){if(!Buffer.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===Buffer.compare(this,n)},Buffer.prototype.inspect=function inspect(){let n="";const i=t.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},X&&(Buffer.prototype[X]=Buffer.prototype.inspect),Buffer.prototype.compare=function compare(n,t,i,s,l){if(isInstance(n,Uint8Array)&&(n=Buffer.from(n,n.offset,n.byteLength)),!Buffer.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(void 0===t&&(t=0),void 0===i&&(i=n?n.length:0),void 0===s&&(s=0),void 0===l&&(l=this.length),t<0||i>n.length||s<0||l>this.length)throw new RangeError("out of range index");if(s>=l&&t>=i)return 0;if(s>=l)return-1;if(t>=i)return 1;if(this===n)return 0;let X=(l>>>=0)-(s>>>=0),P=(i>>>=0)-(t>>>=0);const d=Math.min(X,P),K=this.slice(s,l),m=n.slice(t,i);for(let n=0;n<d;++n)if(K[n]!==m[n]){X=K[n],P=m[n];break}return X<P?-1:P<X?1:0},Buffer.prototype.includes=function includes(n,t,i){return-1!==this.indexOf(n,t,i)},Buffer.prototype.indexOf=function indexOf(n,t,i){return bidirectionalIndexOf(this,n,t,i,!0)},Buffer.prototype.lastIndexOf=function lastIndexOf(n,t,i){return bidirectionalIndexOf(this,n,t,i,!1)},Buffer.prototype.write=function write(n,t,i,s){if(void 0===t)s="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)s=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===s&&(s="utf8")):(s=i,i=void 0)}const l=this.length-t;if((void 0===i||i>l)&&(i=l),n.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");let X=!1;for(;;)switch(s){case"hex":return hexWrite(this,n,t,i);case"utf8":case"utf-8":return utf8Write(this,n,t,i);case"ascii":case"latin1":case"binary":return asciiWrite(this,n,t,i);case"base64":return base64Write(this,n,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,n,t,i);default:if(X)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),X=!0}},Buffer.prototype.toJSON=function toJSON(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const d=4096;function asciiSlice(n,t,i){let s="";i=Math.min(n.length,i);for(let l=t;l<i;++l)s+=String.fromCharCode(127&n[l]);return s}function latin1Slice(n,t,i){let s="";i=Math.min(n.length,i);for(let l=t;l<i;++l)s+=String.fromCharCode(n[l]);return s}function hexSlice(n,t,i){const s=n.length;(!t||t<0)&&(t=0),(!i||i<0||i>s)&&(i=s);let l="";for(let s=t;s<i;++s)l+=h[n[s]];return l}function utf16leSlice(n,t,i){const s=n.slice(t,i);let l="";for(let n=0;n<s.length-1;n+=2)l+=String.fromCharCode(s[n]+256*s[n+1]);return l}function checkOffset(n,t,i){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+t>i)throw new RangeError("Trying to access beyond buffer length")}function checkInt(n,t,i,s,l,X){if(!Buffer.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>l||t<X)throw new RangeError('"value" argument is out of bounds');if(i+s>n.length)throw new RangeError("Index out of range")}function wrtBigUInt64LE(n,t,i,s,l){checkIntBI(t,s,l,n,i,7);let X=Number(t&BigInt(4294967295));n[i++]=X,X>>=8,n[i++]=X,X>>=8,n[i++]=X,X>>=8,n[i++]=X;let P=Number(t>>BigInt(32)&BigInt(4294967295));return n[i++]=P,P>>=8,n[i++]=P,P>>=8,n[i++]=P,P>>=8,n[i++]=P,i}function wrtBigUInt64BE(n,t,i,s,l){checkIntBI(t,s,l,n,i,7);let X=Number(t&BigInt(4294967295));n[i+7]=X,X>>=8,n[i+6]=X,X>>=8,n[i+5]=X,X>>=8,n[i+4]=X;let P=Number(t>>BigInt(32)&BigInt(4294967295));return n[i+3]=P,P>>=8,n[i+2]=P,P>>=8,n[i+1]=P,P>>=8,n[i]=P,i+8}function checkIEEE754(n,t,i,s,l,X){if(i+s>n.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function writeFloat(n,t,i,s,X){return t=+t,i>>>=0,X||checkIEEE754(n,0,i,4),l.write(n,t,i,s,23,4),i+4}function writeDouble(n,t,i,s,X){return t=+t,i>>>=0,X||checkIEEE754(n,0,i,8),l.write(n,t,i,s,52,8),i+8}Buffer.prototype.slice=function slice(n,t){const i=this.length;(n=~~n)<0?(n+=i)<0&&(n=0):n>i&&(n=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<n&&(t=n);const s=this.subarray(n,t);return Object.setPrototypeOf(s,Buffer.prototype),s},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function readUIntLE(n,t,i){n>>>=0,t>>>=0,i||checkOffset(n,t,this.length);let s=this[n],l=1,X=0;for(;++X<t&&(l*=256);)s+=this[n+X]*l;return s},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function readUIntBE(n,t,i){n>>>=0,t>>>=0,i||checkOffset(n,t,this.length);let s=this[n+--t],l=1;for(;t>0&&(l*=256);)s+=this[n+--t]*l;return s},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function readUInt8(n,t){return n>>>=0,t||checkOffset(n,1,this.length),this[n]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function readUInt16LE(n,t){return n>>>=0,t||checkOffset(n,2,this.length),this[n]|this[n+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function readUInt16BE(n,t){return n>>>=0,t||checkOffset(n,2,this.length),this[n]<<8|this[n+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function readUInt32LE(n,t){return n>>>=0,t||checkOffset(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function readUInt32BE(n,t){return n>>>=0,t||checkOffset(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod((function readBigUInt64LE(n){validateNumber(n>>>=0,"offset");const t=this[n],i=this[n+7];void 0!==t&&void 0!==i||boundsError(n,this.length-8);const s=t+256*this[++n]+65536*this[++n]+this[++n]*2**24,l=this[++n]+256*this[++n]+65536*this[++n]+i*2**24;return BigInt(s)+(BigInt(l)<<BigInt(32))})),Buffer.prototype.readBigUInt64BE=defineBigIntMethod((function readBigUInt64BE(n){validateNumber(n>>>=0,"offset");const t=this[n],i=this[n+7];void 0!==t&&void 0!==i||boundsError(n,this.length-8);const s=t*2**24+65536*this[++n]+256*this[++n]+this[++n],l=this[++n]*2**24+65536*this[++n]+256*this[++n]+i;return(BigInt(s)<<BigInt(32))+BigInt(l)})),Buffer.prototype.readIntLE=function readIntLE(n,t,i){n>>>=0,t>>>=0,i||checkOffset(n,t,this.length);let s=this[n],l=1,X=0;for(;++X<t&&(l*=256);)s+=this[n+X]*l;return l*=128,s>=l&&(s-=Math.pow(2,8*t)),s},Buffer.prototype.readIntBE=function readIntBE(n,t,i){n>>>=0,t>>>=0,i||checkOffset(n,t,this.length);let s=t,l=1,X=this[n+--s];for(;s>0&&(l*=256);)X+=this[n+--s]*l;return l*=128,X>=l&&(X-=Math.pow(2,8*t)),X},Buffer.prototype.readInt8=function readInt8(n,t){return n>>>=0,t||checkOffset(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},Buffer.prototype.readInt16LE=function readInt16LE(n,t){n>>>=0,t||checkOffset(n,2,this.length);const i=this[n]|this[n+1]<<8;return 32768&i?4294901760|i:i},Buffer.prototype.readInt16BE=function readInt16BE(n,t){n>>>=0,t||checkOffset(n,2,this.length);const i=this[n+1]|this[n]<<8;return 32768&i?4294901760|i:i},Buffer.prototype.readInt32LE=function readInt32LE(n,t){return n>>>=0,t||checkOffset(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},Buffer.prototype.readInt32BE=function readInt32BE(n,t){return n>>>=0,t||checkOffset(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod((function readBigInt64LE(n){validateNumber(n>>>=0,"offset");const t=this[n],i=this[n+7];void 0!==t&&void 0!==i||boundsError(n,this.length-8);const s=this[n+4]+256*this[n+5]+65536*this[n+6]+(i<<24);return(BigInt(s)<<BigInt(32))+BigInt(t+256*this[++n]+65536*this[++n]+this[++n]*2**24)})),Buffer.prototype.readBigInt64BE=defineBigIntMethod((function readBigInt64BE(n){validateNumber(n>>>=0,"offset");const t=this[n],i=this[n+7];void 0!==t&&void 0!==i||boundsError(n,this.length-8);const s=(t<<24)+65536*this[++n]+256*this[++n]+this[++n];return(BigInt(s)<<BigInt(32))+BigInt(this[++n]*2**24+65536*this[++n]+256*this[++n]+i)})),Buffer.prototype.readFloatLE=function readFloatLE(n,t){return n>>>=0,t||checkOffset(n,4,this.length),l.read(this,n,!0,23,4)},Buffer.prototype.readFloatBE=function readFloatBE(n,t){return n>>>=0,t||checkOffset(n,4,this.length),l.read(this,n,!1,23,4)},Buffer.prototype.readDoubleLE=function readDoubleLE(n,t){return n>>>=0,t||checkOffset(n,8,this.length),l.read(this,n,!0,52,8)},Buffer.prototype.readDoubleBE=function readDoubleBE(n,t){return n>>>=0,t||checkOffset(n,8,this.length),l.read(this,n,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function writeUIntLE(n,t,i,s){if(n=+n,t>>>=0,i>>>=0,!s){checkInt(this,n,t,i,Math.pow(2,8*i)-1,0)}let l=1,X=0;for(this[t]=255&n;++X<i&&(l*=256);)this[t+X]=n/l&255;return t+i},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function writeUIntBE(n,t,i,s){if(n=+n,t>>>=0,i>>>=0,!s){checkInt(this,n,t,i,Math.pow(2,8*i)-1,0)}let l=i-1,X=1;for(this[t+l]=255&n;--l>=0&&(X*=256);)this[t+l]=n/X&255;return t+i},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function writeUInt8(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,1,255,0),this[t]=255&n,t+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function writeUInt16LE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,2,65535,0),this[t]=255&n,this[t+1]=n>>>8,t+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function writeUInt16BE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,2,65535,0),this[t]=n>>>8,this[t+1]=255&n,t+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function writeUInt32LE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,4,4294967295,0),this[t+3]=n>>>24,this[t+2]=n>>>16,this[t+1]=n>>>8,this[t]=255&n,t+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function writeUInt32BE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,4,4294967295,0),this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=255&n,t+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod((function writeBigUInt64LE(n,t=0){return wrtBigUInt64LE(this,n,t,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod((function writeBigUInt64BE(n,t=0){return wrtBigUInt64BE(this,n,t,BigInt(0),BigInt("0xffffffffffffffff"))})),Buffer.prototype.writeIntLE=function writeIntLE(n,t,i,s){if(n=+n,t>>>=0,!s){const s=Math.pow(2,8*i-1);checkInt(this,n,t,i,s-1,-s)}let l=0,X=1,P=0;for(this[t]=255&n;++l<i&&(X*=256);)n<0&&0===P&&0!==this[t+l-1]&&(P=1),this[t+l]=(n/X>>0)-P&255;return t+i},Buffer.prototype.writeIntBE=function writeIntBE(n,t,i,s){if(n=+n,t>>>=0,!s){const s=Math.pow(2,8*i-1);checkInt(this,n,t,i,s-1,-s)}let l=i-1,X=1,P=0;for(this[t+l]=255&n;--l>=0&&(X*=256);)n<0&&0===P&&0!==this[t+l+1]&&(P=1),this[t+l]=(n/X>>0)-P&255;return t+i},Buffer.prototype.writeInt8=function writeInt8(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,1,127,-128),n<0&&(n=255+n+1),this[t]=255&n,t+1},Buffer.prototype.writeInt16LE=function writeInt16LE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,2,32767,-32768),this[t]=255&n,this[t+1]=n>>>8,t+2},Buffer.prototype.writeInt16BE=function writeInt16BE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,2,32767,-32768),this[t]=n>>>8,this[t+1]=255&n,t+2},Buffer.prototype.writeInt32LE=function writeInt32LE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,4,2147483647,-2147483648),this[t]=255&n,this[t+1]=n>>>8,this[t+2]=n>>>16,this[t+3]=n>>>24,t+4},Buffer.prototype.writeInt32BE=function writeInt32BE(n,t,i){return n=+n,t>>>=0,i||checkInt(this,n,t,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[t]=n>>>24,this[t+1]=n>>>16,this[t+2]=n>>>8,this[t+3]=255&n,t+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod((function writeBigInt64LE(n,t=0){return wrtBigUInt64LE(this,n,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeBigInt64BE=defineBigIntMethod((function writeBigInt64BE(n,t=0){return wrtBigUInt64BE(this,n,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),Buffer.prototype.writeFloatLE=function writeFloatLE(n,t,i){return writeFloat(this,n,t,!0,i)},Buffer.prototype.writeFloatBE=function writeFloatBE(n,t,i){return writeFloat(this,n,t,!1,i)},Buffer.prototype.writeDoubleLE=function writeDoubleLE(n,t,i){return writeDouble(this,n,t,!0,i)},Buffer.prototype.writeDoubleBE=function writeDoubleBE(n,t,i){return writeDouble(this,n,t,!1,i)},Buffer.prototype.copy=function copy(n,t,i,s){if(!Buffer.isBuffer(n))throw new TypeError("argument should be a Buffer");if(i||(i=0),s||0===s||(s=this.length),t>=n.length&&(t=n.length),t||(t=0),s>0&&s<i&&(s=i),s===i)return 0;if(0===n.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),n.length-t<s-i&&(s=n.length-t+i);const l=s-i;return this===n&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,i,s):Uint8Array.prototype.set.call(n,this.subarray(i,s),t),l},Buffer.prototype.fill=function fill(n,t,i,s){if("string"==typeof n){if("string"==typeof t?(s=t,t=0,i=this.length):"string"==typeof i&&(s=i,i=this.length),void 0!==s&&"string"!=typeof s)throw new TypeError("encoding must be a string");if("string"==typeof s&&!Buffer.isEncoding(s))throw new TypeError("Unknown encoding: "+s);if(1===n.length){const t=n.charCodeAt(0);("utf8"===s&&t<128||"latin1"===s)&&(n=t)}}else"number"==typeof n?n&=255:"boolean"==typeof n&&(n=Number(n));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;let l;if(t>>>=0,i=void 0===i?this.length:i>>>0,n||(n=0),"number"==typeof n)for(l=t;l<i;++l)this[l]=n;else{const X=Buffer.isBuffer(n)?n:Buffer.from(n,s),P=X.length;if(0===P)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(l=0;l<i-t;++l)this[l+t]=X[l%P]}return this};const K={};function E(n,t,i){K[n]=class NodeError extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${n}]`,this.stack,delete this.name}get code(){return n}set code(n){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:n,writable:!0})}toString(){return`${this.name} [${n}]: ${this.message}`}}}function addNumericalSeparator(n){let t="",i=n.length;const s="-"===n[0]?1:0;for(;i>=s+4;i-=3)t=`_${n.slice(i-3,i)}${t}`;return`${n.slice(0,i)}${t}`}function checkIntBI(n,t,i,s,l,X){if(n>i||n<t){const s="bigint"==typeof t?"n":"";let l;throw l=X>3?0===t||t===BigInt(0)?`>= 0${s} and < 2${s} ** ${8*(X+1)}${s}`:`>= -(2${s} ** ${8*(X+1)-1}${s}) and < 2 ** ${8*(X+1)-1}${s}`:`>= ${t}${s} and <= ${i}${s}`,new K.ERR_OUT_OF_RANGE("value",l,n)}!function checkBounds(n,t,i){validateNumber(t,"offset"),void 0!==n[t]&&void 0!==n[t+i]||boundsError(t,n.length-(i+1))}(s,l,X)}function validateNumber(n,t){if("number"!=typeof n)throw new K.ERR_INVALID_ARG_TYPE(t,"number",n)}function boundsError(n,t,i){if(Math.floor(n)!==n)throw validateNumber(n,i),new K.ERR_OUT_OF_RANGE(i||"offset","an integer",n);if(t<0)throw new K.ERR_BUFFER_OUT_OF_BOUNDS;throw new K.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${t}`,n)}E("ERR_BUFFER_OUT_OF_BOUNDS",(function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),E("ERR_INVALID_ARG_TYPE",(function(n,t){return`The "${n}" argument must be of type number. Received type ${typeof t}`}),TypeError),E("ERR_OUT_OF_RANGE",(function(n,t,i){let s=`The value of "${n}" is out of range.`,l=i;return Number.isInteger(i)&&Math.abs(i)>2**32?l=addNumericalSeparator(String(i)):"bigint"==typeof i&&(l=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(l=addNumericalSeparator(l)),l+="n"),s+=` It must be ${t}. Received ${l}`,s}),RangeError);const m=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(n,t){let i;t=t||1/0;const s=n.length;let l=null;const X=[];for(let P=0;P<s;++P){if(i=n.charCodeAt(P),i>55295&&i<57344){if(!l){if(i>56319){(t-=3)>-1&&X.push(239,191,189);continue}if(P+1===s){(t-=3)>-1&&X.push(239,191,189);continue}l=i;continue}if(i<56320){(t-=3)>-1&&X.push(239,191,189),l=i;continue}i=65536+(l-55296<<10|i-56320)}else l&&(t-=3)>-1&&X.push(239,191,189);if(l=null,i<128){if((t-=1)<0)break;X.push(i)}else if(i<2048){if((t-=2)<0)break;X.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;X.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;X.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return X}function base64ToBytes(n){return s.toByteArray(function base64clean(n){if((n=(n=n.split("=")[0]).trim().replace(m,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function blitBuffer(n,t,i,s){let l;for(l=0;l<s&&!(l+i>=t.length||l>=n.length);++l)t[l+i]=n[l];return l}function isInstance(n,t){return n instanceof t||null!=n&&null!=n.constructor&&null!=n.constructor.name&&n.constructor.name===t.name}function numberIsNaN(n){return n!=n}const h=function(){const n="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const s=16*i;for(let l=0;l<16;++l)t[s+l]=n[i]+n[l]}return t}();function defineBigIntMethod(n){return"undefined"==typeof BigInt?BufferBigIntNotDefined:n}function BufferBigIntNotDefined(){throw new Error("BigInt not supported")}},(n,t,i)=>{"use strict";var s=i(4),l=i(14),X=l(s("String.prototype.indexOf"));n.exports=function callBoundIntrinsic(n,t){var i=s(n,!!t);return"function"==typeof i&&X(n,".prototype.")>-1?l(i):i}},(n,t,i)=>{"use strict";var s,l=SyntaxError,X=Function,P=TypeError,getEvalledConstructor=function(n){try{return X('"use strict"; return ('+n+").constructor;")()}catch(n){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(n){d=null}var throwTypeError=function(){throw new P},K=d?function(){try{return throwTypeError}catch(n){try{return d(arguments,"callee").get}catch(n){return throwTypeError}}}():throwTypeError,m=i(29)(),h=i(115)(),g=Object.getPrototypeOf||(h?function(n){return n.__proto__}:null),p={},A="undefined"!=typeof Uint8Array&&g?g(Uint8Array):s,y={"%AggregateError%":"undefined"==typeof AggregateError?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?s:ArrayBuffer,"%ArrayIteratorPrototype%":m&&g?g([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?s:Atomics,"%BigInt%":"undefined"==typeof BigInt?s:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?s:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?s:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?s:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?s:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?s:FinalizationRegistry,"%Function%":X,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?s:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?s:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&g?g(g([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":"undefined"==typeof Map?s:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&m&&g?g((new Map)[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?s:Promise,"%Proxy%":"undefined"==typeof Proxy?s:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?s:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?s:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&m&&g?g((new Set)[Symbol.iterator]()):s,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&g?g(""[Symbol.iterator]()):s,"%Symbol%":m?Symbol:s,"%SyntaxError%":l,"%ThrowTypeError%":K,"%TypedArray%":A,"%TypeError%":P,"%Uint8Array%":"undefined"==typeof Uint8Array?s:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?s:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?s:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?s:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?s:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?s:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?s:WeakSet};if(g)try{null.error}catch(n){var v=g(g(n));y["%Error.prototype%"]=v}var b=function doEval(n){var t;if("%AsyncFunction%"===n)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===n)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===n)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===n){var i=doEval("%AsyncGeneratorFunction%");i&&(t=i.prototype)}else if("%AsyncIteratorPrototype%"===n){var s=doEval("%AsyncGenerator%");s&&g&&(t=g(s.prototype))}return y[n]=t,t},C={"%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"]},B=i(30),x=i(117),W=B.call(Function.call,Array.prototype.concat),w=B.call(Function.apply,Array.prototype.splice),N=B.call(Function.call,String.prototype.replace),O=B.call(Function.call,String.prototype.slice),k=B.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,D=function getBaseIntrinsic(n,t){var i,s=n;if(x(C,s)&&(s="%"+(i=C[s])[0]+"%"),x(y,s)){var X=y[s];if(X===p&&(X=b(s)),void 0===X&&!t)throw new P("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:i,name:s,value:X}}throw new l("intrinsic "+n+" does not exist!")};n.exports=function GetIntrinsic(n,t){if("string"!=typeof n||0===n.length)throw new P("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new P('"allowMissing" argument must be a boolean');if(null===k(/^%?[^%]*%?$/,n))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function stringToPath(n){var t=O(n,0,1),i=O(n,-1);if("%"===t&&"%"!==i)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var s=[];return N(n,T,(function(n,t,i,l){s[s.length]=i?N(l,$,"$1"):t||n})),s}(n),s=i.length>0?i[0]:"",X=D("%"+s+"%",t),K=X.name,m=X.value,h=!1,g=X.alias;g&&(s=g[0],w(i,W([0,1],g)));for(var p=1,A=!0;p<i.length;p+=1){var v=i[p],b=O(v,0,1),C=O(v,-1);if(('"'===b||"'"===b||"`"===b||'"'===C||"'"===C||"`"===C)&&b!==C)throw new l("property names with quotes must have matching quotes");if("constructor"!==v&&A||(h=!0),x(y,K="%"+(s+="."+v)+"%"))m=y[K];else if(null!=m){if(!(v in m)){if(!t)throw new P("base intrinsic for "+n+" exists, but the property is not available.");return}if(d&&p+1>=i.length){var B=d(m,v);m=(A=!!B)&&"get"in B&&!("originalValue"in B.get)?B.get:m[v]}else A=x(m,v),m=m[v];A&&!h&&(y[K]=m)}}return m}},n=>{var t,i,s=n.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(n){if(t===setTimeout)return setTimeout(n,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(n,0);try{return t(n,0)}catch(i){try{return t.call(null,n,0)}catch(i){return t.call(this,n,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(n){t=defaultSetTimout}try{i="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(n){i=defaultClearTimeout}}();var l,X=[],P=!1,d=-1;function cleanUpNextTick(){P&&l&&(P=!1,l.length?X=l.concat(X):d=-1,X.length&&drainQueue())}function drainQueue(){if(!P){var n=runTimeout(cleanUpNextTick);P=!0;for(var t=X.length;t;){for(l=X,X=[];++d<t;)l&&l[d].run();d=-1,t=X.length}l=null,P=!1,function runClearTimeout(n){if(i===clearTimeout)return clearTimeout(n);if((i===defaultClearTimeout||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(n);try{return i(n)}catch(t){try{return i.call(null,n)}catch(t){return i.call(this,n)}}}(n)}}function Item(n,t){this.fun=n,this.array=t}function noop(){}s.nextTick=function(n){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];X.push(new Item(n,t)),1!==X.length||P||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=noop,s.addListener=noop,s.once=noop,s.off=noop,s.removeListener=noop,s.removeAllListeners=noop,s.emit=noop,s.prependListener=noop,s.prependOnceListener=noop,s.listeners=function(n){return[]},s.binding=function(n){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(n){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},(n,t,i)=>{"use strict";var s=i(35),l="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),X=Object.prototype.toString,P=Array.prototype.concat,d=Object.defineProperty,K=i(31)(),m=d&&K,defineProperty=function(n,t,i,s){if(t in n)if(!0===s){if(n[t]===i)return}else if("function"!=typeof(l=s)||"[object Function]"!==X.call(l)||!s())return;var l;m?d(n,t,{configurable:!0,enumerable:!1,value:i,writable:!0}):n[t]=i},defineProperties=function(n,t){var i=arguments.length>2?arguments[2]:{},X=s(t);l&&(X=P.call(X,Object.getOwnPropertySymbols(t)));for(var d=0;d<X.length;d+=1)defineProperty(n,X[d],t[X[d]],i[X[d]])};defineProperties.supportsDescriptors=!!m,n.exports=defineProperties},function(n,t,i){var s,l,X,P,d,K,m,h;n.exports=(h=i(0),i(40),i(25),l=(s=h).lib,X=l.Base,P=l.WordArray,d=s.algo,K=d.MD5,m=d.EvpKDF=X.extend({cfg:X.extend({keySize:4,hasher:K,iterations:1}),init:function(n){this.cfg=this.cfg.extend(n)},compute:function(n,t){for(var i,s=this.cfg,l=s.hasher.create(),X=P.create(),d=X.words,K=s.keySize,m=s.iterations;d.length<K;){i&&l.update(i),i=l.update(n).finalize(t),l.reset();for(var h=1;h<m;h++)i=l.finalize(i),l.reset();X.concat(i)}return X.sigBytes=4*K,X}}),s.EvpKDF=function(n,t,i){return m.create(i).compute(n,t)},h.EvpKDF)},(n,t,i)=>{"use strict";var s=i(23);n.exports=function hasToStringTagShams(){return s()&&!!Symbol.toStringTag}},(n,t,i)=>{const{Number:s}=i(16);t.resolveLength=function(n,t,i){let l;if("number"==typeof n?l=n:"function"==typeof n?l=n.call(i,i):i&&"string"==typeof n?l=i[n]:t&&n instanceof s&&(l=n.decode(t)),isNaN(l))throw new Error("Not a fixed size");return l};t.PropertyDescriptor=class PropertyDescriptor{constructor(n={}){this.enumerable=!0,this.configurable=!0;for(let t in n){const i=n[t];this[t]=i}}}},(n,t,i)=>{var s=i(5),l=Object.getOwnPropertyDescriptors||function getOwnPropertyDescriptors(n){for(var t=Object.keys(n),i={},s=0;s<t.length;s++)i[t[s]]=Object.getOwnPropertyDescriptor(n,t[s]);return i},X=/%[sdj%]/g;t.format=function(n){if(!isString(n)){for(var t=[],i=0;i<arguments.length;i++)t.push(inspect(arguments[i]));return t.join(" ")}i=1;for(var s=arguments,l=s.length,P=String(n).replace(X,(function(n){if("%%"===n)return"%";if(i>=l)return n;switch(n){case"%s":return String(s[i++]);case"%d":return Number(s[i++]);case"%j":try{return