Repository: masotime/json-url Branch: master Commit: f048e1b19376 Files: 55 Total size: 471.2 KB Directory structure: gitextract_mxai2kco/ ├── .babelrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .npmignore ├── .nycrc ├── .travis.yml ├── LICENSE ├── README.md ├── dist/ │ ├── browser/ │ │ ├── json-url-998.js │ │ ├── json-url-998.js.LICENSE.txt │ │ ├── json-url-lzma.js │ │ ├── json-url-lzstring.js │ │ ├── json-url-lzw.js │ │ ├── json-url-msgpack.js │ │ ├── json-url-safe64.js │ │ ├── json-url-safe64.js.LICENSE.txt │ │ ├── json-url-single.js │ │ ├── json-url-single.js.LICENSE.txt │ │ ├── json-url.js │ │ └── json-url.js.LICENSE.txt │ └── node/ │ ├── browser-index.js │ ├── codecs/ │ │ ├── index.js │ │ ├── lzma.js │ │ ├── lzstring.js │ │ ├── lzw.js │ │ └── pack.js │ ├── index.js │ ├── loaders.js │ └── main/ │ ├── browser-index.js │ ├── codecs/ │ │ ├── index.js │ │ ├── lzma.js │ │ ├── lzstring.js │ │ ├── lzw.js │ │ └── pack.js │ ├── index.js │ └── loaders.js ├── eslint.config.js ├── examples/ │ └── browser/ │ └── test.html ├── karma.conf.js ├── package.json ├── src/ │ └── main/ │ ├── browser-index.js │ ├── codecs/ │ │ ├── index.js │ │ ├── lzma.js │ │ ├── lzstring.js │ │ ├── lzw.js │ │ └── pack.js │ ├── index.js │ └── loaders.js ├── test/ │ ├── index.js │ ├── perf.js │ └── samples.json ├── webpack.config.js └── webpack.config.single.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .babelrc ================================================ { "presets": [ "@babel/preset-env" ], "plugins": [ [ "module-resolver", { "root": [ "src" ], "transformFunctions": [ "require", "require.resolve", "import" ] } ], "dynamic-import-node", "@babel/plugin-syntax-dynamic-import", "@babel/plugin-syntax-import-meta", "@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-json-strings", [ "@babel/plugin-proposal-decorators", { "legacy": true } ], "@babel/plugin-proposal-function-sent", "@babel/plugin-proposal-export-namespace-from", "@babel/plugin-proposal-numeric-separator", "@babel/plugin-proposal-throw-expressions", "@babel/plugin-proposal-export-default-from", "@babel/plugin-proposal-logical-assignment-operators", "@babel/plugin-proposal-optional-chaining", [ "@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" } ], "@babel/plugin-proposal-nullish-coalescing-operator", "@babel/plugin-proposal-do-expressions", "@babel/plugin-proposal-function-bind" ], "env": { "test": { "plugins": [ "istanbul" ] } } } ================================================ FILE: .editorconfig ================================================ # top-most EditorConfig file root = true [*] charset = utf-8 end_of_line = lf indent_style = tab indent_size = 2 trim_trailing_whitespace = true ================================================ FILE: .eslintignore ================================================ dist/**/* ================================================ FILE: .eslintrc ================================================ { "parser": "babel-eslint", "plugins": [ "import" ], "extends": [ "eslint:recommended", "plugin:import/recommended" ], "settings": { "import/resolver": { "babel-module": {} } }, "rules": { "no-undef": 2, "no-unused-vars": 2, "no-console": 0 }, "env": { "node": true, "es6": true }, "parserOptions": { "ecmaVersion": 2015, "sourceType": "module", "ecmaFeatures": { "jsx": true, "experimentalObjectRestSpread": true, "forOf": true } } } ================================================ FILE: .gitignore ================================================ node_modules *.log .DS_Store coverage/ .nyc_output/ stats.json ================================================ FILE: .npmignore ================================================ *.log test/ examples/ .DS_Store coverage/ .nyc_output/ ================================================ FILE: .nycrc ================================================ { "include": [ "src/**/*.js" ], "require": [ "@babel/register", "@babel/polyfill" ], "sourceMap": false, "instrument": false, "reporter": [ "text", "lcov" ] } ================================================ FILE: .travis.yml ================================================ language: node_js node_js: - "node" - "14" - "12" - "10" after_success: npm run coverage install: npm install ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) Facebook, Inc. and its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # json-url [![npm downloads][downloads-image]][downloads-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coverage-image]][coverage-url] Generate URL-safe representations of some arbtirary JSON data in as small a space as possible that can be shared in a bookmark / link. Although designed to work in Node, a standalone client-side library is provided that can be used directly on the browser. ## Usage ### Compress ``` var codec = require('json-url')('lzw'); var obj = { one: 1, two: 2, three: [1,2,3], four: 'red pineapples' }; codec.compress(obj).then(result => console.log(result)); /* Result: woTCo29uZQHCo3R3bwLCpXRocmVlwpMBAgPCpGZvdXLCrsSOZCBwacSDYXBwbGVz */ ``` ### Decompress ``` var codec = require('json-url')('lzma'); codec.decompress(someCompressedString).then(json => { /* operate on json */ }) ``` ### Stats ``` var codec = require('json-url')('lzstring'); codec.stats(obj).then( ({ rawencoded, compressedencoded, compression }) => { console.log(`Raw URI-encoded JSON string length: ${rawencoded}`); console.log(`Compressed URI-encoded JSON string length: ${compressedencoded}`); console.log(`Compression ratio (raw / compressed): ${compression}`); } ); ``` ### Standalone Browser Bundle ``` ``` To see it in action, download the source code and run `npm run example`, or simply visit [this link](http://jsbin.com/cayuhox). * The browser bundle is generated using Webpack and consists of multiple chunks, with the main chunk entry point located at `dist/browser/json-url.js`. Chunks must be located in the same folder as the main module itself. * I've tried my best to reduce the bundle sizes, but the module (at least the entry) is still surprisingly large on the browser (56kb minified, 20kb gzipped). Most of it is due to the buffer.js shim, and partly due to the regenerator-runtime - I may revisit this later to try and improve efficiency. ## Usage Notes * Although not all algorithms are asynchronous, all functions return Promises to ensure compatibility. * Instantiate an instance with appropriate compression codec before using. * Valid codecs: * lzw * lzma * lzstring - runs lzstring against a stringified JSON instead of using MessagePack on JSON * pack - this just uses MessagePack and converts the binary buffer into a Base64 URL-safe representation, without any other compression ## Motivation Typically when you want to shorten a long URL with large amounts of data parameters, the approach is to generate a "short URL" where compression is achieved by using a third-party service which stores the true URL and redirects the user (e.g. bit.ly or goo.gl). However, if you want to: * share bookmarks with virtually unlimited combinations of state and/or * want to avoid the third-party dependency you would encode the data structure (typically JSON) in your URL, but this often results in very large URLs. This approach differs by removing that third-party dependency and encodes it using common compression algorithms such as LZW or LZMA. Note: It is arguable that a custom dictionary / domain specific encoding would ultimately provide better compression, but here we want to * avoid maintaining such a dictionary and/or * retain cross-application compatibility (otherwise you need a shared dictionary) ## Approach I explored several options, the most popular one being [MessagePack][1]. However, I noticed that it did not give the best possible compression as compared to [LZMA][2] and [LZW][3]. At first I tried to apply the binary compression directly on a stringified JSON, then I realised that packing it first resulted in better compression. For small JS objects, LZW largely outperformed LZMA, but for the most part you'd probably be looking to compress large JSON data rather than small amounts (otherwise a simple stringify + base64 is sufficient). You can choose to use whatever codec suits you best. In addition, there is now support for [LZSTRING][5], although the URI encoding still uses urlsafe-base64 because LZSTRING still uses unsafe characters via their `compressToURIEncodedString` method - notably the [`+` character][6] Finally, I went with [urlsafe-base64][4] to encode it in a URL-friendly format. ## TODO Find a way to improve bundle sizes for browser usage. [1]: http://msgpack.org/index.html [2]: https://www.npmjs.com/package/lzma [3]: https://www.npmjs.com/package/node-lzw [4]: https://www.npmjs.com/package/urlsafe-base64 [5]: http://pieroxy.net/blog/pages/lz-string/index.html [6]: https://github.com/pieroxy/lz-string/blob/master/libs/lz-string.js#L15 [downloads-image]: https://img.shields.io/npm/dm/json-url.svg?style=flat-square [downloads-url]: https://www.npmjs.com/package/json-url [travis-image]: https://travis-ci.org/masotime/json-url.svg?bxeranch=master [travis-url]: https://travis-ci.org/masotime/json-url [daviddm-image]: https://david-dm.org/masotime/json-url.svg?theme=shields.io [daviddm-url]: https://david-dm.org/masotime/json-url [coverage-image]: https://coveralls.io/repos/github/masotime/json-url/badge.svg?branch=master [coverage-url]: https://coveralls.io/github/masotime/json-url?branch=master ================================================ FILE: dist/browser/json-url-998.js ================================================ /*! For license information please see json-url-998.js.LICENSE.txt */ (self.webpackChunkJsonUrl=self.webpackChunkJsonUrl||[]).push([[998],{41:(t,e,r)=>{"use strict";var n=r(655),o=r(8068),i=r(9675),a=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===c&&l?l.configurable:!c,enumerable:null===u&&l?l.enumerable:!u,value:r,writable:null===s&&l?l.writable:!s});else{if(!f&&(u||s||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},63:(t,e,r)=>{"use strict";const n=r(8399).Transform,o=r(6698),i=r(4829);function a(t){(t=t||{}).objectMode=!0,t.highWaterMark=16,n.call(this,t),this._msgpack=t.msgpack}function u(t){if(!(this instanceof u))return(t=t||{}).msgpack=this,new u(t);a.call(this,t),this._wrap="wrap"in t&&t.wrap}function s(t){if(!(this instanceof s))return(t=t||{}).msgpack=this,new s(t);a.call(this,t),this._chunks=i(),this._wrap="wrap"in t&&t.wrap}o(a,n),o(u,a),u.prototype._transform=function(t,e,r){let n=null;try{n=this._msgpack.encode(this._wrap?t.value:t).slice(0)}catch(t){return this.emit("error",t),r()}this.push(n),r()},o(s,a),s.prototype._transform=function(t,e,r){t&&this._chunks.append(t);try{let t=this._msgpack.decode(this._chunks);this._wrap&&(t={value:t}),this.push(t)}catch(t){return void(t instanceof this._msgpack.IncompleteBufferError?r():this.emit("error",t))}this._chunks.length>0?this._transform(null,e,r):r()},t.exports.decoder=s,t.exports.encoder=u},76:t=>{"use strict";t.exports=Function.prototype.call},345:(t,e,r)=>{t.exports=r(7007).EventEmitter},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var n,o=r(9612),i=r(9383),a=r(1237),u=r(9290),s=r(9538),c=r(8068),f=r(9675),l=r(5345),p=r(1514),h=r(8968),y=r(6188),d=r(8002),g=r(5880),b=r(414),v=r(3093),m=Function,w=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(5795),E=r(655),_=function(){throw new f},O=S?function(){try{return _}catch(t){try{return S(arguments,"callee").get}catch(t){return _}}}():_,j=r(4039)(),A=r(3628),x=r(1064),R=r(8648),k=r(1002),P=r(76),T={},M="undefined"!=typeof Uint8Array&&A?A(Uint8Array):n,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":j&&A?A([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&A?A(A([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&A?A((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":u,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&A?A((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&A?A(""[Symbol.iterator]()):n,"%Symbol%":j?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":O,"%TypedArray%":M,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":k,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":x,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":y,"%Math.min%":d,"%Math.pow%":g,"%Math.round%":b,"%Math.sign%":v,"%Reflect.getPrototypeOf%":R};if(A)try{null.error}catch(t){var L=A(A(t));I["%Error.prototype%"]=L}var N=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&A&&(r=A(o.prototype))}return I[e]=r,r},U={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=r(6743),F=r(9957),D=B.call(P,Array.prototype.concat),C=B.call(k,Array.prototype.splice),q=B.call(P,String.prototype.replace),W=B.call(P,String.prototype.slice),G=B.call(P,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,H=function(t,e){var r,n=t;if(F(U,n)&&(n="%"+(r=U[n])[0]+"%"),F(I,n)){var o=I[n];if(o===T&&(o=N(n)),void 0===o&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new c("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===G(/^%?[^%]*%?$/,t))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=W(t,0,1),r=W(t,-1);if("%"===e&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,V,function(t,e,r,o){n[n.length]=r?q(o,$,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=H("%"+n+"%",e),i=o.name,a=o.value,u=!1,s=o.alias;s&&(n=s[0],C(r,D([0,1],s)));for(var l=1,p=!0;l=r.length){var g=S(a,h);a=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else p=F(a,h),a=a[h];p&&!u&&(I[i]=a)}}return a}},487:(t,e,r)=>{"use strict";var n=r(6897),o=r(655),i=r(3126),a=r(2205);t.exports=function(t){var e=i(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},o?o(t.exports,"apply",{value:a}):t.exports.apply=a},537:(t,e,r)=>{var n=r(5606),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,t,n.depth)}function c(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function f(t,e){return t}function l(t,r,n){if(t.customInspect&&r&&O(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return v(o)||(o=l(t,o,n)),o}var i=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(b(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(g(e))return t.stylize("null","null")}(t,r);if(i)return i;var a=Object.keys(r),u=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),_(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(O(r)){var s=r.name?": "+r.name:"";return t.stylize("[Function"+s+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return p(r)}var c,f="",S=!1,j=["{","}"];(y(r)&&(S=!0,j=["[","]"]),O(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(f=" "+RegExp.prototype.toString.call(r)),E(r)&&(f=" "+Date.prototype.toUTCString.call(r)),_(r)&&(f=" "+p(r)),0!==a.length||S&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=S?function(t,e,r,n,o){for(var i=[],a=0,u=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(c,f,j)):j[0]+f+j[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,o,i){var a,u,s;if((s=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?u=s.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):s.set&&(u=t.stylize("[Setter]","special")),R(n,o)||(a="["+o+"]"),u||(t.seen.indexOf(s.value)<0?(u=g(r)?l(t,s.value,null):l(t,s.value,r-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n")):u=t.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function y(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function g(t){return null===t}function b(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function w(t){return S(t)&&"[object RegExp]"===j(t)}function S(t){return"object"==typeof t&&null!==t}function E(t){return S(t)&&"[object Date]"===j(t)}function _(t){return S(t)&&("[object Error]"===j(t)||t instanceof Error)}function O(t){return"function"==typeof t}function j(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(u.test(t)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=y,e.isBoolean=d,e.isNull=g,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=w,e.types.isRegExp=w,e.isObject=S,e.isDate=E,e.types.isDate=E,e.isError=_,e.types.isNativeError=_,e.isFunction=O,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(t=new Date,r=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),x[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!S(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var e;if("function"!=typeof(e=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),o=[],i=0;i{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,a=i?function(t){return i(t)}:r(8875),u=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?u(n.call(t)):u(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1237:t=>{"use strict";t.exports=EvalError},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1514:t=>{"use strict";t.exports=Math.abs},2205:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(3144);t.exports=function(){return i(n,o,arguments)}},2299:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function I(t){return Object.keys(t).filter(M).concat(f(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function L(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o{"use strict";var n=r(8452),o=r(6642);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},2682:(t,e,r)=>{"use strict";var n=r(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a,u;arguments.length>=3&&(a=r),u=t,"[object Array]"===o.call(u)?function(t,e,r){for(var n=0,o=t.length;n{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e=s.allocUnsafe(t>>>0),r=this.head,n=0;r;)l(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return to.length?o.length:t;if(i===o.length?n+=o:n+=o.slice(0,t),0===(t-=i)){i===o.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,i=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,i),0===(t-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,e}},{key:f,value:function(t,e){return c(this,o(o({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},2861:(t,e,r)=>{var n=r(8287),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},2955:(t,e,r)=>{"use strict";var n,o=r(5606);function i(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(6238),u=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),p=Symbol("handlePromise"),h=Symbol("stream");function y(t,e){return{value:t,done:e}}function d(t){var e=t[u];if(null!==e){var r=t[h].read();null!==r&&(t[l]=null,t[u]=null,t[s]=null,e(y(r,!1)))}}function g(t){o.nextTick(d,t)}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[c];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(y(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(y(void 0,!0))})});var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then(function(){e[f]?r(y(void 0,!0)):e[p](r,n)},n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(y(i,!1));r=new Promise(this[p])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var t=this;return new Promise(function(e,r){t[h].destroy(null,function(t){t?r(t):e(y(void 0,!0))})})}),n),b);t.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,c,{value:null,writable:!0}),i(e,f,{value:t._readableState.endEmitted,writable:!0}),i(e,p,{value:function(t,e){var n=r[h].read();n?(r[l]=null,r[u]=null,r[s]=null,t(y(n,!1))):(r[u]=t,r[s]=e)},writable:!0}),e));return r[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[s];return null!==e&&(r[l]=null,r[u]=null,r[s]=null,e(t)),void(r[c]=t)}var n=r[u];null!==n&&(r[l]=null,r[u]=null,r[s]=null,n(y(void 0,!0))),r[f]=!0}),t.on("readable",g.bind(null,r)),r}},3003:t=>{"use strict";t.exports=function(t){return t!=t}},3070:(t,e,r)=>{"use strict";const n=r(4829),o=r(4571).N,i={196:2,197:3,198:5,199:3,200:4,201:6,202:5,203:9,204:2,205:3,206:5,207:9,208:2,209:3,210:5,211:9,212:3,213:4,214:6,215:10,216:18,217:2,218:3,219:5,222:3,220:3,221:5};function a(t,e,r){return e>=r+t}function u(t,e,r,n,o){let i=e;const a=[];let u=0;for(;u++=192&&c<=195)return function(t){if(192===t)return[null,1];if(194===t)return[!1,1];if(195===t)return[!0,1]}(c);if(c>=196&&c<=198){const e=t.readUIntBE(o,l-1);if(o+=l-1,!a(e,n,l))return null;return[t.slice(o,o+e),l+e]}if(c>=199&&c<=201){const e=t.readUIntBE(o,l-2);o+=l-2;const i=t.readInt8(o);return o+=1,a(e,n,l)?f(t,o,i,e,l,r):null}if(c>=202&&c<=203)return function(t,e,r){let n;4===r&&(n=t.readFloatBE(e));8===r&&(n=t.readDoubleBE(e));return[n,r+1]}(t,o,l-1);if(c>=204&&c<=207)return function(t,e,r){const n=e+r;let o=0;for(;e=208&&c<=211)return function(t,e,r){let n;1===r&&(n=t.readInt8(e));2===r&&(n=t.readInt16BE(e));4===r&&(n=t.readInt32BE(e));8===r&&(n=function(t,e){var r=!(128&~t[e]);if(r){let r=1;for(let n=e+7;n>=e;n--){const e=(255^t[n])+r;t[n]=255&e,r=e>>8}}const n=t.readUInt32BE(e+0),o=t.readUInt32BE(e+4);return(4294967296*n+o)*(r?-1:1)}(t.slice(e,e+8),0));return[n,r+1]}(t,o,l-1);if(c>=212&&c<=216){const e=t.readInt8(o);return o+=1,f(t,o,e,l-2,2,r)}if(c>=217&&c<=219){const e=t.readUIntBE(o,l-1);if(o+=l-1,!a(e,n,l))return null;return[t.toString("utf8",o,o+e),l+e]}if(c>=220&&c<=221){const e=t.readUIntBE(o,l-1);return o+=l-1,u(t,o,e,l,r)}if(c>=222&&c<=223){let e;switch(c){case 222:return e=t.readUInt16BE(o),o+=2,s(t,o,e,3,r);case 223:return e=t.readUInt32BE(o),o+=4,s(t,o,e,5,r)}}if(c>=224)return[c-256,1];throw new Error("not implemented yet")}function f(t,e,r,n,o,i){const a=t.slice(e,e+n),u=i.decodingTypes.get(r);if(!u)throw new Error("unable to find ext type "+r);return[u(a),o+n]}t.exports=function(t,e){const r={decodingTypes:t,options:e,decode:i};return i;function i(t){n.isBufferList(t)||(t=n(t));const e=c(t,0,r);if(!e)throw new o;return t.consume(e[1]),e[0]}}},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3126:(t,e,r)=>{"use strict";var n=r(6743),o=r(9675),i=r(76),a=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return a(n,i,t)}},3141:(t,e,r)=>{"use strict";var n=r(2861).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=s,this.end=c,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.I=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return o>0&&(t.lastNeed=o-1),o;if(--n=0)return o>0&&(t.lastNeed=o-2),o;if(--n=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3144:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(76),a=r(7119);t.exports=a||n.call(i,o)},3600:(t,e,r)=>{"use strict";t.exports=o;var n=r(4610);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(6698)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},3628:(t,e,r)=>{"use strict";var n=r(8648),o=r(1064),i=r(7176);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},3918:(t,e,r)=>{"use strict";var n=r(5606);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;et.length)&&(r=t.length),t.substring(r-e.length,r)===e}var w="",S="",E="",_="",O={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function j(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){r[e]=t[e]}),Object.defineProperty(r,"message",{value:t.message}),r}function A(t){return b(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function x(t,e,r){var o="",i="",a=0,u="",s=!1,c=A(t),f=c.split("\n"),l=A(e).split("\n"),p=0,h="";if("strictEqual"===r&&"object"===g(t)&&"object"===g(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var y=f[0].length+l[0].length;if(y<=10){if(!("object"===g(t)&&null!==t||"object"===g(e)&&null!==e||0===t&&0===e))return"".concat(O[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){if(y<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][p]===l[0][p];)p++;p>2&&(h="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}}for(var d=f[f.length-1],b=l[l.length-1];d===b&&(p++<2?u="\n ".concat(d).concat(u):o=d,f.pop(),l.pop(),0!==f.length&&0!==l.length);)d=f[f.length-1],b=l[l.length-1];var v=Math.max(f.length,l.length);if(0===v){var j=c.split("\n");if(j.length>30)for(j[26]="".concat(w,"...").concat(_);j.length>27;)j.pop();return"".concat(O.notIdentical,"\n\n").concat(j.join("\n"),"\n")}p>3&&(u="\n".concat(w,"...").concat(_).concat(u),s=!0),""!==o&&(u="\n ".concat(o).concat(u),o="");var x=0,R=O[r]+"\n".concat(S,"+ actual").concat(_," ").concat(E,"- expected").concat(_),k=" ".concat(w,"...").concat(_," Lines skipped");for(p=0;p1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(_),s=!0):P>3&&(i+="\n ".concat(l[p-2]),x++),i+="\n ".concat(l[p-1]),x++),a=p,o+="\n".concat(E,"-").concat(_," ").concat(l[p]),x++;else if(l.length1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(_),s=!0):P>3&&(i+="\n ".concat(f[p-2]),x++),i+="\n ".concat(f[p-1]),x++),a=p,i+="\n".concat(S,"+").concat(_," ").concat(f[p]),x++;else{var T=l[p],M=f[p],I=M!==T&&(!m(M,",")||M.slice(0,-1)!==T);I&&m(T,",")&&T.slice(0,-1)===M&&(I=!1,M+=","),I?(P>1&&p>2&&(P>4?(i+="\n".concat(w,"...").concat(_),s=!0):P>3&&(i+="\n ".concat(f[p-2]),x++),i+="\n ".concat(f[p-1]),x++),a=p,i+="\n".concat(S,"+").concat(_," ").concat(M),o+="\n".concat(E,"-").concat(_," ").concat(T),x+=2):(i+=o,o="",1!==P&&0!==p||(i+="\n ".concat(M),x++))}if(x>20&&p30)for(h[26]="".concat(w,"...").concat(_);h.length>27;)h.pop();e=1===h.length?p.call(this,"".concat(l," ").concat(h[0])):p.call(this,"".concat(l,"\n\n").concat(h.join("\n"),"\n"))}else{var y=A(a),d="",b=O[o];"notDeepEqual"===o||"notEqual"===o?(y="".concat(O[o],"\n\n").concat(y)).length>1024&&(y="".concat(y.slice(0,1021),"...")):(d="".concat(A(u)),y.length>512&&(y="".concat(y.slice(0,509),"...")),d.length>512&&(d="".concat(d.slice(0,509),"...")),"deepEqual"===o||"equal"===o?y="".concat(b,"\n\n").concat(y,"\n\nshould equal\n\n"):d=" ".concat(o," ").concat(d)),e=p.call(this,"".concat(y).concat(d))}return Error.stackTraceLimit=s,e.generatedMessage=!r,Object.defineProperty(f(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=u,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(f(e),i),e.stack,e.name="AssertionError",c(e)}return a=m,(s=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return b(this,i(i({},e),{},{customInspect:!1,depth:0}))}}])&&u(a.prototype,s),l&&u(a,l),Object.defineProperty(a,"prototype",{writable:!1}),m}(l(Error),b.custom);t.exports=R},4035:(t,e,r)=>{"use strict";var n,o=r(6556),i=r(9092)(),a=r(9957),u=r(5795);if(i){var s=o("RegExp.prototype.exec"),c={},f=function(){throw c},l={toString:f,valueOf:f};"symbol"==typeof Symbol.toPrimitive&&(l[Symbol.toPrimitive]=f),n=function(t){if(!t||"object"!=typeof t)return!1;var e=u(t,"lastIndex");if(!(e&&a(e,"value")))return!1;try{s(t,l)}catch(t){return t===c}}}else{var p=o("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===p(t)}}t.exports=n},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(1333);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},4133:(t,e,r)=>{"use strict";var n=r(487),o=r(8452),i=r(3003),a=r(6642),u=r(2464),s=n(a(),Number);o(s,{getPolyfill:a,implementation:i,shim:u}),t.exports=s},4148:(t,e,r)=>{"use strict";var n=r(5606);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4571:(t,e,r)=>{"use strict";const n=r(537);function o(t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t||"unable to decode"}e.N=o,n.inherits(o,Error),e.d=function(t){return t%1!=0}},4610:(t,e,r)=>{"use strict";t.exports=f;var n=r(6048).F,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=n.ERR_TRANSFORM_WITH_LENGTH_0,s=r(5382);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},4829:(t,e,r)=>{"use strict";const n=r(8399).Duplex,o=r(6698),i=r(7813);function a(t){if(!(this instanceof a))return new a(t);if("function"==typeof t){this._callback=t;const e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)}),t=null}i._init.call(this,t),n.call(this)}o(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(t){return new a(t)},a.prototype._write=function(t,e,r){this._appendBuffer(t),"function"==typeof r&&r()},a.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},a.prototype.end=function(t){n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(t,e){this._bufs.length=0,this.length=0,e(t)},a.prototype._isBufferList=function(t){return t instanceof a||t instanceof i||a.isBufferList(t)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i},4998:(t,e,r)=>{"use strict";const n=r(2861).Buffer,o=r(4148),i=r(4829),a=r(63),u=r(3070),s=r(6506),c=r(4571).N,f=r(6154);t.exports=function(t){const e=[],r=new Map;return t=t||{forceFloat64:!1,compatibilityMode:!1,disableTimestampEncoding:!1,preferMap:!1,protoAction:"error"},r.set(f.type,f.decode),t.disableTimestampEncoding||e.push(f),{encode:s(e,t),decode:u(r,t),register:function(t,e,r,a){return o(e,"must have a constructor"),o(r,"must have an encode function"),o(t>=0,"must have a non-negative type"),o(a,"must have a decode function"),this.registerEncoder(function(t){return t instanceof e},function(e){const o=i(),a=n.allocUnsafe(1);return a.writeInt8(t,0),o.append(a),o.append(r(e)),o}),this.registerDecoder(t,a),this},registerEncoder:function(t,r){return o(t,"must have an encode function"),o(r,"must have an encode function"),e.push({check:t,encode:r}),this},registerDecoder:function(t,e){return o(t>=0,"must have a non-negative type"),o(e,"must have a decode function"),r.set(t,e),this},encoder:a.encoder,decoder:a.decoder,buffer:!0,type:"msgpack5",IncompleteBufferError:c}}},5157:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5291:(t,e,r)=>{"use strict";var n=r(6048).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},5345:t=>{"use strict";t.exports=URIError},5382:(t,e,r)=>{"use strict";var n=r(5606),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(5412),a=r(6708);r(6698)(f,i);for(var u=o(a.prototype),s=0;s{"use strict";var n,o=r(5606);t.exports=j,j.ReadableState=O;r(7007).EventEmitter;var i=function(t,e){return t.listeners(e).length},a=r(345),u=r(8287).Buffer,s=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var c,f=r(9838);c=f&&f.debuglog?f.debuglog("stream"):function(){};var l,p,h,y=r(2726),d=r(5896),g=r(5291).getHighWaterMark,b=r(6048).F,v=b.ERR_INVALID_ARG_TYPE,m=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,S=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(j,a);var E=d.errorOrDestroy,_=["error","close","destroy","pause","resume"];function O(t,e,o){n=n||r(5382),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",o),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(3141).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function j(t){if(n=n||r(5382),!(this instanceof j))return new j(t);var e=this instanceof n;this._readableState=new O(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function A(t,e,r,n,o){c("readableAddChunk",e);var i,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(c("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?P(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T(t)))}(t,a);else if(o||(i=function(t,e){var r;n=e,u.isBuffer(n)||n instanceof s||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),i)E(t,i);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)a.endEmitted?E(t,new S):x(t,a,e,!0);else if(a.ended)E(t,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?x(t,a,e,!1):M(t,a)):x(t,a,e,!1)}else n||(a.reading=!1,M(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=R?t=R:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function P(t){var e=t._readableState;c("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c("emitReadable",e.flowing),e.emittedReadable=!0,o.nextTick(T,t))}function T(t){var e=t._readableState;c("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,B(t)}function M(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function N(t){c("readable nexttick read 0"),t.read(0)}function U(t,e){c("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(c("flow",e.flowing);e.flowing&&null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function D(t){var e=t._readableState;c("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,o.nextTick(C,e,t))}function C(t,e){if(c("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function q(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return c("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?D(this):P(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&D(this),null;var n,o=e.needReadable;return c("need readable",o),(0===e.length||e.length-t0?F(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&D(this)),null!==n&&this.emit("data",n),n},j.prototype._read=function(t){E(this,new w("_read()"))},j.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,c("pipe count=%d opts=%j",n.pipesCount,e);var a=(!e||!1!==e.end)&&t!==o.stdout&&t!==o.stderr?s:g;function u(e,o){c("onunpipe"),e===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,c("cleanup"),t.removeListener("close",y),t.removeListener("finish",d),t.removeListener("drain",f),t.removeListener("error",h),t.removeListener("unpipe",u),r.removeListener("end",s),r.removeListener("end",g),r.removeListener("data",p),l=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function s(){c("onend"),t.end()}n.endEmitted?o.nextTick(a):r.once("end",a),t.on("unpipe",u);var f=function(t){return function(){var e=t._readableState;c("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,B(t))}}(r);t.on("drain",f);var l=!1;function p(e){c("ondata");var o=t.write(e);c("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!l&&(c("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){c("onerror",e),g(),t.removeListener("error",h),0===i(t,"error")&&E(t,e)}function y(){t.removeListener("finish",d),g()}function d(){c("onfinish"),t.removeListener("close",y),g()}function g(){c("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",y),t.once("finish",d),t.emit("pipe",r),n.flowing||(c("pipe resume"),r.resume()),t},j.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,c("on readable",n.length,n.reading),n.length?P(this):n.reading||o.nextTick(N,this))),r},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&o.nextTick(L,this),r},j.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||o.nextTick(L,this),e},j.prototype.resume=function(){var t=this._readableState;return t.flowing||(c("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(U,t,e))}(this,t)),t.paused=!1,this},j.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",function(){if(c("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(o){(c("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))}),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var i=0;i<_.length;i++)t.on(_[i],this.emit.bind(this,_[i]));return this._read=function(e){c("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(j.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=r(2955)),p(this)}),Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(j.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(j.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),j._fromList=F,Object.defineProperty(j.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(j.from=function(t,e){return void 0===h&&(h=r(5157)),h(j,t,e)})},5606:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var u,s=[],c=!1,f=-1;function l(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!c){var t=a(l);c=!0;for(var e=s.length;e;){for(u=s,s=[];++f1)for(var r=1;r{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},5767:(t,e,r)=>{"use strict";var n=r(2682),o=r(9209),i=r(487),a=r(6556),u=r(5795),s=r(3628),c=a("Object.prototype.toString"),f=r(9092)(),l="undefined"==typeof globalThis?r.g:globalThis,p=o(),h=a("String.prototype.slice"),y=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(d,function(r,n){if(!e)try{r(t),e=h(n,1)}catch(t){}}),e}(t)}return u?function(t){var e=!1;return n(d,function(r,n){if(!e)try{"$"+r(t)===n&&(e=h(n,1))}catch(t){}}),e}(t):null}},5795:(t,e,r)=>{"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5880:t=>{"use strict";t.exports=Math.pow},5896:(t,e,r)=>{"use strict";var n=r(5606);function o(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,u=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return u||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(i,r):(r._writableState.errorEmitted=!0,n.nextTick(o,r,t)):n.nextTick(o,r,t):e?(n.nextTick(i,r),e(t)):n.nextTick(i,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6048:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var o=function(t){var e,n;function o(e,n,o){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,o))||this}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o}(n);o.prototype.name=n.name,o.prototype.code=t,e[t]=o}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var o,i,a,u;if("string"==typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(o," ").concat(n(e,"type"));else{var s=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(s," ").concat(o," ").concat(n(e,"type"))}return u+=". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},6154:(t,e,r)=>{var n=r(8287).Buffer;t.exports={check:function(t){return"function"==typeof t.getDate},type:-1,encode:function(t){if(null===t)return;const e=1*t,r=Math.floor(e/1e3),o=1e6*(e-1e3*r);if(r<0||r>17179869184){const t=n.allocUnsafe(13);t[0]=-1,t.writeUInt32BE(o,1);let e="";if(r>=0){const t="0000000000000000";e=r.toString(16),e=t.slice(0,-1*e.length)+e}else{let t=(-1*r).toString(2),n=t.length-1;for(;"0"===t[n];)n--;t=t.slice(0,n).split("").map(function(t){return"1"===t?0:1}).join("")+t.slice(n,t.length);t="1111111111111111111111111111111111111111111111111111111111111111".slice(0,-1*t.length)+t,t.match(/.{1,8}/g).forEach(function(t){1===(t=parseInt(t,2).toString(16)).length&&(t="0"+t),e+=t})}return t.write(e,5,"hex"),t}if(o||r>4294967295){const t=n.allocUnsafe(9);t[0]=-1;const e=4*o+r/Math.pow(2,32)&4294967295,i=4294967295&r;return t.writeInt32BE(e,1),t.writeInt32BE(i,5),t}{const t=n.allocUnsafe(5);return t[0]=-1,t.writeUInt32BE(Math.floor(e/1e3),1),t}},decode:function(t){let e,r,n,o,i=0;switch(t.length){case 4:e=t.readUInt32BE(0);break;case 8:r=t.readUInt32BE(0),n=t.readUInt32BE(4),i=r/4,e=(3&r)*Math.pow(2,32)+n;break;case 12:if(o=t.toString("hex",4,12),128&parseInt(t.toString("hex",4,6),16)){let t="";const r="00000000";o.match(/.{1,2}/g).forEach(function(e){e=parseInt(e,16).toString(2),e=r.slice(0,-1*e.length)+e,t+=e}),e=-1*parseInt(t.split("").map(function(t){return"1"===t?0:1}).join(""),2)-1}else e=parseInt(o,16);i=t.readUInt32BE(0)}const a=1e3*e+Math.round(i/1e6);return new Date(a)}}},6188:t=>{"use strict";t.exports=Math.max},6238:(t,e,r)=>{"use strict";var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o{"use strict";const n=r(2861).Buffer,o=r(4829),i=r(4571).d;function a(t,e,r){const n=r%4294967296,o=Math.floor(r/4294967296);t.writeUInt32BE(o,e+0),t.writeUInt32BE(n,e+4)}t.exports=function(t,e){function r(u){if(void 0===u)throw new Error("undefined is not encodable in msgpack!");if(null===u)return n.from([192]);if(!0===u)return n.from([195]);if(!1===u)return n.from([194]);if(u instanceof Map)return function(t,e,r){const n=[f(t.size,128,222)],i=[...t.keys()];e.preferMap||i.every(t=>"string"==typeof t)&&console.warn("Map with string only keys will be deserialized as an object!");return i.forEach(e=>{n.push(r(e),r(t.get(e)))}),o(n)}(u,e,r);if("string"==typeof u)return function(t,e){const r=n.byteLength(t);let o;r<32?(o=n.allocUnsafe(1+r),o[0]=160|r,r>0&&o.write(t,1)):r<=255&&!e.compatibilityMode?(o=n.allocUnsafe(2+r),o[0]=217,o[1]=r,o.write(t,2)):r<=65535?(o=n.allocUnsafe(3+r),o[0]=218,o.writeUInt16BE(r,1),o.write(t,3)):(o=n.allocUnsafe(5+r),o[0]=219,o.writeUInt32BE(r,1),o.write(t,5));return o}(u,e);if(u&&(u.readUInt32LE||u instanceof Uint8Array)){u instanceof Uint8Array&&(u=n.from(u));const t=e.compatibilityMode?p:l;return o([t(u.length),u])}if(Array.isArray(u))return function(t,e){const r=[f(t.length,144,220)];if(t.forEach(t=>{r.push(e(t))}),r.length!==t.length+1)throw new Error("Sparse arrays are not encodable in msgpack");return o(r)}(u,r);if("object"==typeof u)return function(t,e){const r=e.find(e=>e.check(t));if(!r)return null;const n=r.encode(t);return n?o([c(n.length-1),n]):null}(u,t)||function(t,e,r){const n=[];for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==t[e]&&"function"!=typeof t[e]&&n.push(e);const i=[f(n.length,128,222)];e.sortKeys&&n.sort();return n.forEach(e=>{i.push(r(e),r(t[e]))}),o(i)}(u,e,r);if("number"==typeof u)return function(t,e){let r;if(i(t))return s(t,e.forceFloat64);if(Math.abs(t)>9007199254740991)return s(t,!0);if(t>=0){if(t<128)return n.from([t]);if(t<256)return n.from([204,t]);if(t<65536)return n.from([205,255&t>>8,255&t]);if(t<=4294967295)return n.from([206,255&t>>24,255&t>>16,255&t>>8,255&t]);t<=9007199254740991&&(r=n.allocUnsafe(9),r[0]=207,a(r,1,t))}else t>=-32?(r=n.allocUnsafe(1),r[0]=256+t):t>=-128?(r=n.allocUnsafe(2),r[0]=208,r.writeInt8(t,1)):t>=-32768?(r=n.allocUnsafe(3),r[0]=209,r.writeInt16BE(t,1)):t>-214748365?(r=n.allocUnsafe(5),r[0]=210,r.writeInt32BE(t,1)):t>=-9007199254740991&&(r=n.allocUnsafe(9),r[0]=211,function(t,e,r){const n=r<0;r=Math.abs(r),a(t,e,r),n&&function(t,e){let r=e+8;for(;r-- >e;)if(0!==t[r]){t[r]=1+(255^t[r]);break}for(;r-- >e;)t[r]=255^t[r]}(t,e)}(r,1,t));return r}(u,e);throw new Error("not implemented yet")}return function(t){return r(t).slice()}};const u=Math.fround;function s(t,e){let r;return!e&&u&&Object.is(u(t),t)?(r=n.allocUnsafe(5),r[0]=202,r.writeFloatBE(t,1)):(r=n.allocUnsafe(9),r[0]=203,r.writeDoubleBE(t,1)),r}function c(t){return 1===t?n.from([212]):2===t?n.from([213]):4===t?n.from([214]):8===t?n.from([215]):16===t?n.from([216]):t<256?n.from([199,t]):t<65536?n.from([200,t>>8,255&t]):n.from([201,t>>24,t>>16&255,t>>8&255,255&t])}function f(t,e,r){if(t<16)return n.from([e|t]);const o=t<65536?2:4,i=n.allocUnsafe(1+o);return i[0]=t<65536?r:r+1,i.writeUIntBE(t,1,o),i}function l(t){let e;return t<=255?(e=n.allocUnsafe(2),e[0]=196,e[1]=t):t<=65535?(e=n.allocUnsafe(3),e[0]=197,e.writeUInt16BE(t,1)):(e=n.allocUnsafe(5),e[0]=198,e.writeUInt32BE(t,1)),e}function p(t){let e;return t<=31?(e=n.allocUnsafe(1),e[0]=160|t):t<=65535?(e=n.allocUnsafe(3),e[0]=218,e.writeUInt16BE(t,1)):(e=n.allocUnsafe(5),e[0]=219,e.writeUInt32BE(t,1)),e}},6549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{"use strict";var n=r(453),o=r(3126),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o([r]):r}},6576:(t,e,r)=>{"use strict";var n=r(9394),o=r(8452);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578:t=>{"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6642:(t,e,r)=>{"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6708:(t,e,r)=>{"use strict";var n,o=r(5606);function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=j,j.WritableState=O;var a={deprecate:r(4643)},u=r(345),s=r(8287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,l=r(5896),p=r(5291).getHighWaterMark,h=r(6048).F,y=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,b=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,m=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,S=h.ERR_UNKNOWN_ENCODING,E=l.errorOrDestroy;function _(){}function O(t,e,a){n=n||r(5382),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=p(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(T,t,e),t._writableState.errorEmitted=!0,E(t,n)):(i(n),t._writableState.errorEmitted=!0,E(t,n),T(t,e))}(t,r,n,e,i);else{var a=k(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||R(t,r),n?o.nextTick(x,t,r,a,i):x(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function j(t){var e=this instanceof(n=n||r(5382));if(!e&&!f.call(j,this))return new j(t);this._writableState=new O(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function A(t,e,r,n,o,i,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function x(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),T(t,e)}function R(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var u=0,s=!0;r;)o[u]=r,r.isBuf||(s=!1),r=r.next,u+=1;o.allBuffers=s,A(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,f=r.encoding,l=r.callback;if(A(t,e,!1,e.objectMode?1:c.length,c,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final(function(r){e.pendingcb--,r&&E(t,r),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function T(t,e){var r=k(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,o.nextTick(P,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(6698)(j,u),O.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(O.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(j,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===j&&(t&&t._writableState instanceof O)}})):f=function(t){return t instanceof this},j.prototype.pipe=function(){E(this,new b)},j.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,u=!i.objectMode&&(n=t,s.isBuffer(n)||n instanceof c);return u&&!s.isBuffer(t)&&(t=function(t){return s.from(t)}(t)),"function"==typeof e&&(r=e,e=null),u?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=_),i.ending?function(t,e){var r=new w;E(t,r),o.nextTick(e,r)}(this,r):(u||function(t,e,r,n){var i;return null===r?i=new m:"string"==typeof r||e.objectMode||(i=new y("chunk",["string","Buffer"],r)),!i||(E(t,i),o.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,o,i){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=s.from(e,r));return e}(e,n,o);n!==a&&(r=!0,o="buffer",n=a)}var u=e.objectMode?1:n.length;e.length+=u;var c=e.length-1))throw new S(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(t,e,r){r(new d("_write()"))},j.prototype._writev=null,j.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),j.prototype.destroy=l.destroy,j.prototype._undestroy=l.undestroy,j.prototype._destroy=function(t,e){e(t)}},6743:(t,e,r)=>{"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},6897:(t,e,r)=>{"use strict";var n=r(453),o=r(41),i=r(592)(),a=r(5795),u=r(9675),s=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new u("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||s(e)!==e)throw new u("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},7007:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise(function(r,n){function o(r){t.removeListener(e,i),n(r)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}d(t,e,i,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&d(t,"error",e,r)}(t,o,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function s(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function c(t,e,r,n){var o,i,a,c;if(u(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),void 0===a)a=i[e]=r,++t._eventsCount;else if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=s(t))>0&&a.length>o&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,c=f,console&&console.warn&&console.warn(c)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function p(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)n(s,this,e);else{var c=s.length,f=y(s,c);for(r=0;r=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return p(this,t,!0)},i.prototype.rawListeners=function(t){return p(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(t,e,r)=>{"use strict";var n,o=r(3126),i=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&i&&i(Object.prototype,"__proto__"),u=Object,s=u.getPrototypeOf;t.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof s&&function(t){return s(null==t?t:u(t))}},7244:(t,e,r)=>{"use strict";var n=r(9092)(),o=r(6556)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"callee"in t&&"[object Function]"===o(t.callee)},u=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=u?i:a},7653:(t,e,r)=>{"use strict";var n=r(8452),o=r(487),i=r(9211),a=r(9394),u=r(6576),s=o(a(),Object);n(s,{getPolyfill:a,implementation:i,shim:u}),t.exports=s},7758:(t,e,r)=>{"use strict";var n;var o=r(6048).F,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function s(t){t()}function c(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),o=0;o0,function(t){f||(f=t),t&&p.forEach(s),i||(p.forEach(s),l(f))})});return e.reduce(c)}},7813:(t,e,r)=>{"use strict";const{Buffer:n}=r(8287),o=Symbol.for("BufferList");function i(t){if(!(this instanceof i))return new i(t);i._init.call(this,t)}i._init=function(t){Object.defineProperty(this,o,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},i.prototype._new=function(t){return new i(t)},i.prototype._offset=function(t){if(0===t)return[0,0];let e=0;for(let r=0;rthis.length||t<0)return;const e=this._offset(t);return this._bufs[e[0]][e[1]]},i.prototype.slice=function(t,e){return"number"==typeof t&&t<0&&(t+=this.length),"number"==typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},i.prototype.copy=function(t,e,r,o){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof o||o>this.length)&&(o=this.length),r>=this.length)return t||n.alloc(0);if(o<=0)return t||n.alloc(0);const i=!!t,a=this._offset(r),u=o-r;let s=u,c=i&&e||0,f=a[1];if(0===r&&o===this.length){if(!i)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let e=0;er)){this._bufs[e].copy(t,c,f,f+s),c+=r;break}this._bufs[e].copy(t,c,f),c+=r,s-=r,f&&(f=0)}return t.length>c?t.slice(0,c):t},i.prototype.shallowSlice=function(t,e){if(t=t||0,e="number"!=typeof e?this.length:e,t<0&&(t+=this.length),e<0&&(e+=this.length),t===e)return this._new();const r=this._offset(t),n=this._offset(e),o=this._bufs.slice(r[0],n[0]+1);return 0===n[1]?o.pop():o[o.length-1]=o[o.length-1].slice(0,n[1]),0!==r[1]&&(o[0]=o[0].slice(r[1])),this._new(o)},i.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)},i.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},i.prototype.duplicate=function(){const t=this._new();for(let e=0;ethis.length?this.length:e;const o=this._offset(e);let i=o[0],a=o[1];for(;i=t.length){const r=e.indexOf(t,a);if(-1!==r)return this._reverseOffset([i,r]);a=e.length-t.length+1}else{const e=this._reverseOffset([i,a]);if(this._match(e,t))return e;a++}}a=0}return-1},i.prototype._match=function(t,e){if(this.length-t{"use strict";t.exports=Math.min},8068:t=>{"use strict";t.exports=SyntaxError},8075:(t,e,r)=>{"use strict";var n=r(453),o=r(487),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},8184:(t,e,r)=>{"use strict";var n,o=r(6556),i=r(9721)(/^\s*(?:function)?\*/),a=r(9092)(),u=r(3628),s=o("Object.prototype.toString"),c=o("Function.prototype.toString");t.exports=function(t){if("function"!=typeof t)return!1;if(i(c(t)))return!0;if(!a)return"[object GeneratorFunction]"===s(t);if(!u)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},8399:(t,e,r)=>{(e=t.exports=r(5412)).Stream=e,e.Readable=e,e.Writable=r(6708),e.Duplex=r(5382),e.Transform=r(4610),e.PassThrough=r(3600),e.finished=r(6238),e.pipeline=r(7758)},8403:(t,e,r)=>{"use strict";var n=r(1189),o=r(1333)(),i=r(6556),a=r(9612),u=i("Array.prototype.push"),s=i("Object.prototype.propertyIsEnumerable"),c=o?a.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=a(t);if(1===arguments.length)return r;for(var i=1;i{"use strict";var n=r(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,u=r(41),s=r(592)(),c=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;s?u(t,e,r,!0):u(t,e,r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var u=0;u{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8875:(t,e,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(1093),u=Object.prototype.propertyIsEnumerable,s=!u.call({toString:null},"toString"),c=u.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),u=e&&"[object String]"===i.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var y=c&&r;if(u&&t.length>0&&!o.call(t,0))for(var d=0;d0)for(var g=0;g{"use strict";t.exports=Math.floor},9032:(t,e,r)=>{"use strict";var n=r(7244),o=r(8184),i=r(5767),a=r(5680);function u(t){return t.call.bind(t)}var s="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,f=u(Object.prototype.toString),l=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),h=u(Boolean.prototype.valueOf);if(s)var y=u(BigInt.prototype.valueOf);if(c)var d=u(Symbol.prototype.valueOf);function g(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function b(t){return"[object Map]"===f(t)}function v(t){return"[object Set]"===f(t)}function m(t){return"[object WeakMap]"===f(t)}function w(t){return"[object WeakSet]"===f(t)}function S(t){return"[object ArrayBuffer]"===f(t)}function E(t){return"undefined"!=typeof ArrayBuffer&&(S.working?S(t):t instanceof ArrayBuffer)}function _(t){return"[object DataView]"===f(t)}function O(t){return"undefined"!=typeof DataView&&(_.working?_(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||O(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},b.working="undefined"!=typeof Map&&b(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(b.working?b(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(m.working?m(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},S.working="undefined"!=typeof ArrayBuffer&&S(new ArrayBuffer),e.isArrayBuffer=E,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=O;var j="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(t){return"[object SharedArrayBuffer]"===f(t)}function x(t){return void 0!==j&&(void 0===A.working&&(A.working=A(new j)),A.working?A(t):t instanceof j)}function R(t){return g(t,l)}function k(t){return g(t,p)}function P(t){return g(t,h)}function T(t){return s&&g(t,y)}function M(t){return c&&g(t,d)}e.isSharedArrayBuffer=x,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===f(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===f(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===f(t)},e.isGeneratorObject=function(t){return"[object Generator]"===f(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===f(t)},e.isNumberObject=R,e.isStringObject=k,e.isBooleanObject=P,e.isBigIntObject=T,e.isSymbolObject=M,e.isBoxedPrimitive=function(t){return R(t)||k(t)||P(t)||T(t)||M(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(E(t)||x(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})},9092:(t,e,r)=>{"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133:(t,e,r)=>{"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{"use strict";var n=r(6578),o="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9290:t=>{"use strict";t.exports=RangeError},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{"use strict";t.exports=Error},9394:(t,e,r)=>{"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9538:t=>{"use strict";t.exports=ReferenceError},9597:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(t,e,o){var i,a,u,s;if(void 0===c&&(c=r(4148)),c("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(!u||u<0?0:+u,a.length)===a)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(h(e,"type"));else{var f=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(h(e,"type"))}return s+=". Received type ".concat(n(o))},TypeError),p("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=r(537));var o=f.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map(function(t){return'"'.concat(t,'"')}),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),t.exports.codes=l},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o(function(){throw 42},null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},u=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},s=Object.prototype.toString,c="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var p=document.all;s.call(p)===s.call(document.all)&&(l=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=s.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&u(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(c)return u(t);if(a(t))return!1;var e=s.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}},9612:t=>{"use strict";t.exports=Object},9675:t=>{"use strict";t.exports=TypeError},9721:(t,e,r)=>{"use strict";var n=r(6556),o=r(4035),i=n("RegExp.prototype.exec"),a=r(9675);t.exports=function(t){if(!o(t))throw new a("`regex` must be a RegExp");return function(e){return null!==i(t,e)}}},9957:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(6743);t.exports=i.call(n,o)}}]); ================================================ FILE: dist/browser/json-url-998.js.LICENSE.txt ================================================ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ ================================================ FILE: dist/browser/json-url-lzma.js ================================================ (self.webpackChunkJsonUrl=self.webpackChunkJsonUrl||[]).push([[483],{894:function(){var n=function(){"use strict";function r(n,r){postMessage({action:Kn,cbn:r,result:n})}function c(n){var r=[];return r[n-1]=void 0,r}function t(n,r){return b(n[0]+r[0],n[1]+r[1])}function o(n,r){return function(n,r){var c,t;return c=n*Vn,t=r,0>r&&(t+=Vn),[t,c]}(Math.max(Math.min(n[1]/Vn,2147483647),-2147483648)&Math.max(Math.min(r[1]/Vn,2147483647),-2147483648),e(n)&e(r))}function f(n,r){var c,t;return n[0]==r[0]&&n[1]==r[1]?0:(c=0>n[1],t=0>r[1],c&&!t?-1:!c&&t?1:d(n,r)[1]<0?-1:1)}function b(n,r){var c,t;for(n%=0x10000000000000000,r=(r%=0x10000000000000000)-(c=r%Vn)+(t=Math.floor(n/Vn)*Vn),n=n-t+c;0>n;)n+=Vn,r-=Vn;for(;n>4294967295;)n-=Vn,r+=Vn;for(r%=0x10000000000000000;r>0x7fffffff00000000;)r-=0x10000000000000000;for(;-0x8000000000000000>r;)r+=0x10000000000000000;return[n,r]}function i(n,r){return n[0]==r[0]&&n[1]==r[1]}function u(n){return n>=0?[n,0]:[n+Vn,-Vn]}function e(n){return n[0]>=2147483648?~~Math.max(Math.min(n[0]-Vn,2147483647),-2147483648):~~Math.max(Math.min(n[0],2147483647),-2147483648)}function a(n){return 30>=n?1<n[1])throw Error("Neg");return f=a(r),t=n[1]*f%0x10000000000000000,(t+=c=(o=n[0]*f)-o%Vn)>=0x8000000000000000&&(t-=0x10000000000000000),[o-=c,t]}function l(n,r){var c;return c=a(r&=63),b(Math.floor(n[0]/c),n[1]/c)}function d(n,r){return b(n[0]-r[0],n[1]-r[1])}function h(n,r){return n.Mc=r,n.Lc=0,n.Yb=r.length,n}function s(n){return n.Lc>=n.Yb?-1:255&n.Mc[n.Lc++]}function m(n,r,c,t){return n.Lc>=n.Yb?-1:(t=Math.min(t,n.Yb-n.Lc),z(n.Mc,n.Lc,r,c,t),n.Lc+=t,t)}function g(n){return n.Mc=c(32),n.Yb=0,n}function x(n){var r=n.Mc;return r.length=n.Yb,r}function p(n,r){n.Mc[n.Yb++]=r<<24>>24}function w(n,r,c,t){z(r,c,n.Mc,n.Yb,t),n.Yb+=t}function z(n,r,c,t,o){for(var f=0;o>f;++f)c[t+f]=n[r+f]}function M(r,c,t,o,b){var i,u;if(f(o,Yn)<0)throw Error("invalid length "+o);for(r.Tb=o,function(n,r){(function(n,r){n.ab=r;for(var c=0;r>1<>24;for(var c=0;4>c;++c)n.fc[1+c]=n.ab>>8*c<<24>>24;w(r,n.fc,0,5)}(i,t),u=0;64>u;u+=8)p(t,255&e(l(o,u)));r.yb=(i.W=0,i.oc=c,i.pc=0,function(n){var r,c;n.b||(r={},c=4,n.X||(c=2),function(n,r){n.qb=r>2,n.qb?(n.w=0,n.xb=4,n.R=66560):(n.w=2,n.xb=3,n.R=0)}(r,c),n.b=r),dn(n.A,n.eb,n.fb),(n.ab!=n.wb||n.Hb!=n.n)&&(U(n.b,n.ab,4096,n.n,274),n.wb=n.ab,n.Hb=n.n)}(i),i.d.Ab=t,function(n){(function(n){n.l=0,n.J=0;for(var r=0;4>r;++r)n.v[r]=0})(n),function(n){n.mc=Sn,n.xc=Sn,n.E=-1,n.Jb=1,n.Oc=0}(n.d),Bn(n.C),Bn(n._),Bn(n.bb),Bn(n.hb),Bn(n.Ub),Bn(n.vc),Bn(n.Sb),function(n){var r,c=1<r;++r)Bn(n.V[r].tb)}(n.A);for(var r=0;4>r;++r)Bn(n.K[r].G);bn(n.$,1<o;++o){if(-1==(f=s(r)))throw Error("truncated input");e[o]=f<<24>>24}if(!function(n,r){var c,t,o,f,b,i,u;if(5>r.length)return 0;for(u=255&r[0],o=u%9,f=(i=~~(u/9))%5,b=~~(i/5),c=0,t=0;4>t;++t)c+=(255&r[1+t])<<8*t;return c>99999999||!function(n,r,c,t){if(r>8||c>4||t>4)return 0;S(n.gb,c,r);var o=1<r?0:(n.Ob!=r&&(n.Ob=r,n.nb=Math.max(n.Ob,1),J(n.B,Math.max(n.nb,4096))),1)}(n,c)}(t=K({}),e))throw Error("corrupted input");for(o=0;64>o;o+=8){if(-1==(f=s(r)))throw Error("truncated input");1==(f=f.toString(16)).length&&(f="0"+f),i=f+""+i}/^0+$|^f+$/i.test(i)?n.Tb=Yn:(b=parseInt(i,16),n.Tb=b>4294967295?Yn:u(b)),n.yb=function(n,r,c,t){return n.e.Ab=r,D(n.B),n.B.cc=c,function(n){n.B.h=0,n.B.o=0,Bn(n.Gb),Bn(n.pb),Bn(n.Zb),Bn(n.Cb),Bn(n.Db),Bn(n.Eb),Bn(n.kc),function(n){var r,c;for(c=1<r;++r)Bn(n.V[r].Ib)}(n.gb);for(var r=0;4>r;++r)Bn(n.kb[r].G);R(n.Rb),R(n.sb),Bn(n.Fb.G),function(n){n.Bb=0,n.E=-1;for(var r=0;5>r;++r)n.Bb=n.Bb<<8|s(n.Ab)}(n.e)}(n),n.U=0,n.ib=0,n.Jc=0,n.Ic=0,n.Qc=0,n.Nc=t,n.g=Sn,n.jc=0,function(n,r){return n.Z=r,n.cb=null,n.zc=1,n}({},n)}(t,r,c,n.Tb)}function j(n,r){return n.Nb=g({}),L(n,h({},r),n.Nb),n}function y(n,r){return n.c[n.f+n.o+r]}function k(n,r,c,t){var o,f;for(n.T&&n.o+r+t>n.h&&(t=n.h-(n.o+r)),++c,f=n.f+n.o+r,o=0;t>o&&n.c[f+o]==n.c[f+o-c];++o);return o}function C(n){return n.h-n.o}function A(n){var r,c;if(!n.T)for(;;){if(!(c=-n.f+n.Kb-n.h))return;if(-1==(r=m(n.cc,n.c,n.f+n.h,c)))return n.zb=n.h,n.f+n.zb>n.H&&(n.zb=n.H-n.f),void(n.T=1);n.h+=r,n.h>=n.o+n._b&&(n.zb=n.h-n._b)}}function B(n,r){n.f+=r,n.zb-=r,n.o-=r,n.h-=r}function U(n,r,t,o,f){var b,i;1073741567>r&&(n.Fc=16+(o>>1),function(n,r,t,o){var f;n.Bc=r,n._b=t,f=r+t+o,(null==n.c||n.Kb!=f)&&(n.c=null,n.Kb=f,n.c=c(n.Kb)),n.H=n.Kb-t}(n,r+t,o+f,256+~~((r+t+o+f)/2)),n.ob=o,b=r+1,n.p!=b&&(n.L=c(2*(n.p=b))),i=65536,n.qb&&(i=r-1,i|=i>>1,i|=i>>2,i|=i>>4,i|=i>>8,i>>=1,(i|=65535)>16777216&&(i>>=1),n.Ec=i,++i,i+=n.R),i!=n.rc&&(n.ub=c(n.rc=i)))}function G(n){var r;++n.k>=n.p&&(n.k=0),function(n){++n.o,n.o>n.zb&&(n.f+n.o>n.H&&function(n){var r,c,t;for((t=n.f+n.o-n.Bc)>0&&--t,c=n.f+n.h-t,r=0;c>r;++r)n.c[r]=n.c[t+r];n.f-=t}(n),A(n))}(n),1073741823==n.o&&(r=n.o-n.p,I(n.L,2*n.p,r),I(n.ub,n.rc,r),B(n,r))}function I(n,r,c){var t,o;for(t=0;r>t;++t)c>=(o=n[t]||0)?o=0:o-=c,n[t]=o}function J(n,r){(null==n.Lb||n.M!=r)&&(n.Lb=c(r)),n.M=r,n.o=0,n.h=0}function q(n){var r=n.o-n.h;r&&(w(n.cc,n.Lb,n.h,r),n.o>=n.M&&(n.o=0),n.h=n.o)}function Q(n,r){var c=n.o-r-1;return 0>c&&(c+=n.M),n.Lb[c]}function D(n){q(n),n.cc=null}function N(n){return 4>(n-=2)?n:3}function Z(n){return 4>n?0:10>n?n-3:n-6}function F(n){if(!n.zc)throw Error("bad state");return n.cb?function(n){(function(n,r,c,o){var b,a,v,l,h,s,m,g,x,p,w,z,M,E,L;if(r[0]=Sn,c[0]=Sn,o[0]=1,n.oc&&(n.b.cc=n.oc,function(n){n.f=0,n.o=0,n.h=0,n.T=0,A(n),n.k=0,B(n,-1)}(n.b),n.W=1,n.oc=null),!n.pc){if(n.pc=1,E=n.g,i(n.g,Sn)){if(!C(n.b))return void _(n,e(n.g));tn(n),M=e(n.g)&n.y,Un(n.d,n.C,(n.l<<4)+M,0),n.l=Z(n.l),v=y(n.b,-n.s),sn(hn(n.A,e(n.g),n.J),n.d,v),n.J=v,--n.s,n.g=t(n.g,On)}if(!C(n.b))return void _(n,e(n.g));for(;;){if(m=X(n,e(n.g)),p=n.mb,M=e(n.g)&n.y,a=(n.l<<4)+M,1==m&&-1==p)Un(n.d,n.C,a,0),v=y(n.b,-n.s),L=hn(n.A,e(n.g),n.J),7>n.l?sn(L,n.d,v):(x=y(n.b,-n.v[0]-1-n.s),mn(L,n.d,x,v)),n.J=v,n.l=Z(n.l);else{if(Un(n.d,n.C,a,1),4>p){if(Un(n.d,n.bb,n.l,1),p?(Un(n.d,n.hb,n.l,1),1==p?Un(n.d,n.Ub,n.l,0):(Un(n.d,n.Ub,n.l,1),Un(n.d,n.vc,n.l,p-2))):(Un(n.d,n.hb,n.l,0),Un(n.d,n._,a,1==m?0:1)),1==m?n.l=7>n.l?9:11:(en(n.i,n.d,m-2,M),n.l=7>n.l?8:11),l=n.v[p],0!=p){for(s=p;s>=1;--s)n.v[s]=n.v[s-1];n.v[0]=l}}else{for(Un(n.d,n.bb,n.l,0),n.l=7>n.l?7:10,en(n.$,n.d,m-2,M),z=fn(p-=4),g=N(m),En(n.K[g],n.d,z),z>=4&&(w=p-(b=(2|1&z)<<(h=(z>>1)-1)),14>z?kn(n.Sb,b-z-1,n.d,h,w):(Gn(n.d,w>>4,h-4),jn(n.S,n.d,15&w),++n.Qb)),l=p,s=3;s>=1;--s)n.v[s]=n.v[s-1];n.v[0]=l,++n.Mb}n.J=y(n.b,m-1-n.s)}if(n.s-=m,n.g=t(n.g,u(m)),!n.s){if(n.Mb>=128&&W(n),n.Qb>=16&&P(n),r[0]=n.g,c[0]=In(n.d),!C(n.b))return void _(n,e(n.g));if(f(d(n.g,E),[4096,0])>=0)return n.pc=0,void(o[0]=0)}}}})(n.cb,n.cb.Xb,n.cb.uc,n.cb.Kc),n.Pb=n.cb.Xb[0],n.cb.Kc[0]&&(function(n){on(n),n.d.Ab=null}(n.cb),n.zc=0)}(n):function(n){var r=function(n){var r,c,o,b,i,a;if(a=e(n.g)&n.Dc,An(n.e,n.Gb,(n.U<<4)+a)){if(An(n.e,n.Zb,n.U))o=0,An(n.e,n.Cb,n.U)?(An(n.e,n.Db,n.U)?(An(n.e,n.Eb,n.U)?(c=n.Qc,n.Qc=n.Ic):c=n.Ic,n.Ic=n.Jc):c=n.Jc,n.Jc=n.ib,n.ib=c):An(n.e,n.pb,(n.U<<4)+a)||(n.U=7>n.U?9:11,o=1),o||(o=V(n.sb,n.e,a)+2,n.U=7>n.U?8:11);else if(n.Qc=n.Ic,n.Ic=n.Jc,n.Jc=n.ib,o=2+V(n.Rb,n.e,a),n.U=7>n.U?7:10,(i=zn(n.kb[N(o)],n.e))>=4){if(b=(i>>1)-1,n.ib=(2|1&i)<i)n.ib+=function(n,r,c,t){var o,f,b=1,i=0;for(f=0;t>f;++f)o=An(c,n,r+b),b<<=1,b+=o,i|=o<>>=1,t=n.Bb-n.E>>>31,n.Bb-=n.E&t-1,o=o<<1|1-t,-16777216&n.E||(n.Bb=n.Bb<<8|s(n.Ab),n.E<<=8);return o}(n.e,b-4)<<4,n.ib+=function(n,r){var c,t,o=1,f=0;for(t=0;n.F>t;++t)c=An(r,n.G,o),o<<=1,o+=c,f|=c<n.ib)return-1==n.ib?1:-1}else n.ib=i;if(f(u(n.ib),n.g)>=0||n.ib>=n.nb)return-1;(function(n,r,c){var t=n.o-r-1;for(0>t&&(t+=n.M);0!=c;--c)t>=n.M&&(t=0),n.Lb[n.o++]=n.Lb[t++],n.o>=n.M&&q(n)})(n.B,n.ib,o),n.g=t(n.g,u(o)),n.jc=Q(n.B,0)}else r=function(n,r,c){return n.V[((r&n.qc)<>>8-n.u)]}(n.gb,e(n.g),n.jc),n.jc=7>n.U?function(n,r){var c=1;do{c=c<<1|An(r,n.Ib,c)}while(256>c);return c<<24>>24}(r,n.e):function(n,r,c){var t,o,f=1;do{if(o=c>>7&1,c<<=1,t=An(r,n.Ib,(1+o<<8)+f),f=f<<1|t,o!=t){for(;256>f;)f=f<<1|An(r,n.Ib,f);break}}while(256>f);return f<<24>>24}(r,n.e,Q(n.B,n.ib)),function(n,r){n.Lb[n.o++]=r,n.o>=n.M&&q(n)}(n.B,n.jc),n.U=Z(n.U),n.g=t(n.g,On);return 0}(n.Z);if(-1==r)throw Error("corrupted input");n.Pb=Yn,n.Pc=n.Z.g,(r||f(n.Z.Nc,Sn)>=0&&f(n.Z.g,n.Z.Nc)>=0)&&(q(n.Z.B),D(n.Z.B),n.Z.e.Ab=null,n.zc=0)}(n),n.zc}function K(n){n.B={},n.e={},n.Gb=c(192),n.Zb=c(12),n.Cb=c(12),n.Db=c(12),n.Eb=c(12),n.pb=c(192),n.kb=c(4),n.kc=c(114),n.Fb=wn({},4),n.Rb=Y({}),n.sb=Y({}),n.gb={};for(var r=0;4>r;++r)n.kb[r]=wn({},6);return n}function T(n,r){for(;r>n.O;++n.O)n.ec[n.O]=wn({},3),n.hc[n.O]=wn({},3)}function V(n,r,c){return An(r,n.wc,0)?8+(An(r,n.wc,1)?8+zn(n.tc,r):zn(n.hc[c],r)):zn(n.ec[c],r)}function Y(n){return n.wc=c(2),n.ec=c(16),n.hc=c(16),n.tc=wn({},8),n.O=0,n}function R(n){Bn(n.wc);for(var r=0;n.O>r;++r)Bn(n.ec[r].G),Bn(n.hc[r].G);Bn(n.tc.G)}function S(n,r,t){var o,f;if(null==n.V||n.u!=t||n.I!=r)for(n.I=r,n.qc=(1<o;++o)n.V[o]=O({})}function O(n){return n.Ib=c(768),n}function H(n,r){var c,t,o,f;n.jb=r,o=n.a[r].r,t=n.a[r].j;do{n.a[r].t&&(pn(n.a[o]),n.a[o].r=o-1,n.a[r].Ac&&(n.a[o-1].t=0,n.a[o-1].r=n.a[r].r2,n.a[o-1].j=n.a[r].j2)),f=o,c=t,t=n.a[f].j,o=n.a[f].r,n.a[f].j=c,n.a[f].r=r,r=f}while(r>0);return n.mb=n.a[0].j,n.q=n.a[0].r}function $(n){var r;for(n.v=c(4),n.a=[],n.d={},n.C=c(192),n.bb=c(12),n.hb=c(12),n.Ub=c(12),n.vc=c(12),n._=c(192),n.K=[],n.Sb=c(114),n.S=Mn({},4),n.$=an({}),n.i=an({}),n.A={},n.m=[],n.P=[],n.lb=[],n.nc=c(16),n.x=c(4),n.Q=c(4),n.Xb=[Sn],n.uc=[Sn],n.Kc=[0],n.fc=c(5),n.yc=c(128),n.vb=0,n.X=1,n.D=0,n.Hb=-1,n.mb=0,r=0;4096>r;++r)n.a[r]={};for(r=0;4>r;++r)n.K[r]=Mn({},6);return n}function P(n){for(var r=0;16>r;++r)n.nc[r]=yn(n.S,r);n.Qb=0}function W(n){var r,c,t,o,f,b,i,u;for(o=4;128>o;++o)r=(2|1&(b=fn(o)))<<(t=(b>>1)-1),n.yc[o]=Cn(n.Sb,r-b-1,t,o-r);for(f=0;4>f;++f){for(c=n.K[f],i=f<<6,b=0;n.$b>b;++b)n.P[i+b]=Ln(c,b);for(b=14;n.$b>b;++b)n.P[i+b]+=(b>>1)-1-4<<6;for(u=128*f,o=0;4>o;++o)n.lb[u+o]=n.P[i+o];for(;128>o;++o)n.lb[u+o]=n.P[i+fn(o)]+n.yc[o]}n.Mb=0}function _(n,r){on(n),function(n,r){if(n.Gc){Un(n.d,n.C,(n.l<<4)+r,1),Un(n.d,n.bb,n.l,0),n.l=7>n.l?7:10,en(n.$,n.d,0,r);var c=N(2);En(n.K[c],n.d,63),Gn(n.d,67108863,26),jn(n.S,n.d,15)}}(n,r&n.y);for(var c=0;5>c;++c)Jn(n.d)}function X(n,r){var c,t,o,f,b,i,u,e,a,v,l,d,h,s,m,g,x,p,w,z,M,E,L,j,A,B,U,G,I,J,q,Q,D,N,F,K,T,V,Y,R,S,O,$,P;if(n.jb!=n.q)return h=n.a[n.q].r-n.q,n.mb=n.a[n.q].j,n.q=n.a[n.q].r,h;if(n.q=n.jb=0,n.N?(d=n.vb,n.N=0):d=tn(n),B=n.D,2>(j=C(n.b)+1))return n.mb=-1,1;for(j>273&&(j=273),Y=0,a=0;4>a;++a)n.x[a]=n.v[a],n.Q[a]=k(n.b,-1,n.x[a],273),n.Q[a]>n.Q[Y]&&(Y=a);if(n.Q[Y]>=n.n)return n.mb=Y,cn(n,(h=n.Q[Y])-1),h;if(d>=n.n)return n.mb=n.m[B-1]+4,cn(n,d-1),d;if(u=y(n.b,-1),x=y(n.b,-n.v[0]-1-1),2>d&&u!=x&&2>n.Q[Y])return n.mb=-1,1;if(n.a[0].Hc=n.l,D=r&n.y,n.a[1].z=Pn[n.C[(n.l<<4)+D]>>>2]+xn(hn(n.A,r,n.J),n.l>=7,x,u),pn(n.a[1]),V=(p=Pn[2048-n.C[(n.l<<4)+D]>>>2])+Pn[2048-n.bb[n.l]>>>2],x==u&&(R=V+function(n,r,c){return Pn[n.hb[r]>>>2]+Pn[n._[(r<<4)+c]>>>2]}(n,n.l,D),n.a[1].z>R&&(n.a[1].z=R,function(n){n.j=0,n.t=0}(n.a[1]))),2>(l=d>=n.Q[Y]?d:n.Q[Y]))return n.mb=n.a[1].j,1;n.a[1].r=0,n.a[0].bc=n.x[0],n.a[0].ac=n.x[1],n.a[0].dc=n.x[2],n.a[0].lc=n.x[3],v=l;do{n.a[v--].z=268435455}while(v>=2);for(a=0;4>a;++a)if(!(2>(T=n.Q[a]))){F=V+rn(n,a,n.l,D);do{f=F+vn(n.i,T-2,D),(J=n.a[T]).z>f&&(J.z=f,J.r=0,J.j=a,J.t=0)}while(--T>=2)}if(L=p+Pn[n.bb[n.l]>>>2],d>=(v=n.Q[0]>=2?n.Q[0]+1:2)){for(U=0;v>n.m[U];)U+=2;for(;f=L+nn(n,e=n.m[U+1],v,D),(J=n.a[v]).z>f&&(J.z=f,J.r=0,J.j=e+4,J.t=0),v!=n.m[U]||(U+=2)!=B;++v);}for(c=0;;){if(++c==l)return H(n,c);if(w=tn(n),B=n.D,w>=n.n)return n.vb=w,n.N=1,H(n,c);if(++r,Q=n.a[c].r,n.a[c].t?(--Q,n.a[c].Ac?(O=n.a[n.a[c].r2].Hc,O=4>n.a[c].j2?7>O?8:11:7>O?7:10):O=n.a[Q].Hc,O=Z(O)):O=n.a[Q].Hc,Q==c-1?O=n.a[c].j?Z(O):7>O?9:11:(n.a[c].t&&n.a[c].Ac?(Q=n.a[c].r2,q=n.a[c].j2,O=7>O?8:11):O=4>(q=n.a[c].j)?7>O?8:11:7>O?7:10,I=n.a[Q],4>q?q?1==q?(n.x[0]=I.ac,n.x[1]=I.bc,n.x[2]=I.dc,n.x[3]=I.lc):2==q?(n.x[0]=I.dc,n.x[1]=I.bc,n.x[2]=I.ac,n.x[3]=I.lc):(n.x[0]=I.lc,n.x[1]=I.bc,n.x[2]=I.ac,n.x[3]=I.dc):(n.x[0]=I.bc,n.x[1]=I.ac,n.x[2]=I.dc,n.x[3]=I.lc):(n.x[0]=q-4,n.x[1]=I.bc,n.x[2]=I.ac,n.x[3]=I.dc)),n.a[c].Hc=O,n.a[c].bc=n.x[0],n.a[c].ac=n.x[1],n.a[c].dc=n.x[2],n.a[c].lc=n.x[3],i=n.a[c].z,u=y(n.b,-1),x=y(n.b,-n.x[0]-1-1),D=r&n.y,t=i+Pn[n.C[(O<<4)+D]>>>2]+xn(hn(n.A,r,y(n.b,-2)),O>=7,x,u),z=0,(M=n.a[c+1]).z>t&&(M.z=t,M.r=c,M.j=-1,M.t=0,z=1),V=(p=i+Pn[2048-n.C[(O<<4)+D]>>>2])+Pn[2048-n.bb[O]>>>2],x!=u||c>M.r&&!M.j||(R=V+(Pn[n.hb[O]>>>2]+Pn[n._[(O<<4)+D]>>>2]),M.z>=R&&(M.z=R,M.r=c,M.j=0,M.t=0,z=1)),!(2>(j=A=(A=C(n.b)+1)>4095-c?4095-c:A))){if(j>n.n&&(j=n.n),!z&&x!=u&&(P=Math.min(A-1,n.n),(m=k(n.b,0,n.x[0],P))>=2)){for($=Z(O),N=r+1&n.y,E=t+Pn[2048-n.C[($<<4)+N]>>>2]+Pn[2048-n.bb[$]>>>2],G=c+1+m;G>l;)n.a[++l].z=268435455;f=E+(vn(n.i,m-2,N)+rn(n,0,$,N)),(J=n.a[G]).z>f&&(J.z=f,J.r=c+1,J.j=0,J.t=1,J.Ac=0)}for(S=2,K=0;4>K;++K)if(!(2>(s=k(n.b,-1,n.x[K],j)))){g=s;do{for(;c+s>l;)n.a[++l].z=268435455;f=V+(vn(n.i,s-2,D)+rn(n,K,O,D)),(J=n.a[c+s]).z>f&&(J.z=f,J.r=c,J.j=K,J.t=0)}while(--s>=2);if(s=g,K||(S=s+1),A>s&&(P=Math.min(A-1-s,n.n),(m=k(n.b,s,n.x[K],P))>=2)){for($=7>O?8:11,N=r+s&n.y,o=V+(vn(n.i,s-2,D)+rn(n,K,O,D))+Pn[n.C[($<<4)+N]>>>2]+xn(hn(n.A,r+s,y(n.b,s-1-1)),1,y(n.b,s-1-(n.x[K]+1)),y(n.b,s-1)),$=Z($),N=r+s+1&n.y,E=o+Pn[2048-n.C[($<<4)+N]>>>2]+Pn[2048-n.bb[$]>>>2],G=s+1+m;c+G>l;)n.a[++l].z=268435455;f=E+(vn(n.i,m-2,N)+rn(n,0,$,N)),(J=n.a[c+G]).z>f&&(J.z=f,J.r=c+s+1,J.j=0,J.t=1,J.Ac=1,J.r2=c,J.j2=K)}}if(w>j){for(w=j,B=0;w>n.m[B];B+=2);n.m[B]=w,B+=2}if(w>=S){for(L=p+Pn[n.bb[O]>>>2];c+w>l;)n.a[++l].z=268435455;for(U=0;S>n.m[U];)U+=2;for(s=S;;++s)if(f=L+nn(n,b=n.m[U+1],s,D),(J=n.a[c+s]).z>f&&(J.z=f,J.r=c,J.j=b+4,J.t=0),s==n.m[U]){if(A>s&&(P=Math.min(A-1-s,n.n),(m=k(n.b,s,b,P))>=2)){for($=7>O?7:10,N=r+s&n.y,o=f+Pn[n.C[($<<4)+N]>>>2]+xn(hn(n.A,r+s,y(n.b,s-1-1)),1,y(n.b,s-(b+1)-1),y(n.b,s-1)),$=Z($),N=r+s+1&n.y,E=o+Pn[2048-n.C[($<<4)+N]>>>2]+Pn[2048-n.bb[$]>>>2],G=s+1+m;c+G>l;)n.a[++l].z=268435455;f=E+(vn(n.i,m-2,N)+rn(n,0,$,N)),(J=n.a[c+G]).z>f&&(J.z=f,J.r=c+s+1,J.j=0,J.t=1,J.Ac=1,J.r2=c,J.j2=b+4)}if((U+=2)==B)break}}}}}function nn(n,r,c,t){var o=N(c);return(128>r?n.lb[128*o+r]:n.P[(o<<6)+function(n){return 131072>n?$n[n>>6]+12:134217728>n?$n[n>>16]+32:$n[n>>26]+52}(r)]+n.nc[15&r])+vn(n.$,c-2,t)}function rn(n,r,c,t){var o;return r?(o=Pn[2048-n.hb[c]>>>2],1==r?o+=Pn[n.Ub[c]>>>2]:(o+=Pn[2048-n.Ub[c]>>>2],o+=qn(n.vc[c],r-2))):(o=Pn[n.hb[c]>>>2],o+=Pn[2048-n._[(c<<4)+t]>>>2]),o}function cn(n,r){r>0&&(function(n,r){var c,t,o,f,b,i,u,e,a,v,l,d,h,s,m,g,x;do{if(n.h>=n.o+n.ob)d=n.ob;else if(d=n.h-n.o,n.xb>d){G(n);continue}for(h=n.o>n.p?n.o-n.p:0,t=n.f+n.o,n.qb?(i=1023&(x=Hn[255&n.c[t]]^255&n.c[t+1]),n.ub[i]=n.o,u=65535&(x^=(255&n.c[t+2])<<8),n.ub[1024+u]=n.o,e=(x^Hn[255&n.c[t+3]]<<5)&n.Ec):e=255&n.c[t]^(255&n.c[t+1])<<8,o=n.ub[n.R+e],n.ub[n.R+e]=n.o,m=1+(n.k<<1),g=n.k<<1,v=l=n.w,c=n.Fc;;){if(h>=o||0==c--){n.L[m]=n.L[g]=0;break}if(b=n.o-o,f=(n.k>=b?n.k-b:n.k-b+n.p)<<1,s=n.f+o,a=l>v?v:l,n.c[s+a]==n.c[t+a]){for(;++a!=d&&n.c[s+a]==n.c[t+a];);if(a==d){n.L[g]=n.L[f],n.L[m]=n.L[f+1];break}}(255&n.c[t+a])>(255&n.c[s+a])?(n.L[g]=o,g=f+1,o=n.L[g],l=a):(n.L[m]=o,m=f,o=n.L[m],v=a)}G(n)}while(0!=--r)}(n.b,r),n.s+=r)}function tn(n){var r=0;return n.D=function(n,r){var c,t,o,f,b,i,u,e,a,v,l,d,h,s,m,g,x,p,w,z,M;if(n.h>=n.o+n.ob)s=n.ob;else if(s=n.h-n.o,n.xb>s)return G(n),0;for(x=0,m=n.o>n.p?n.o-n.p:0,t=n.f+n.o,g=1,e=0,a=0,n.qb?(e=1023&(M=Hn[255&n.c[t]]^255&n.c[t+1]),a=65535&(M^=(255&n.c[t+2])<<8),v=(M^Hn[255&n.c[t+3]]<<5)&n.Ec):v=255&n.c[t]^(255&n.c[t+1])<<8,o=n.ub[n.R+v]||0,n.qb&&(f=n.ub[e]||0,b=n.ub[1024+a]||0,n.ub[e]=n.o,n.ub[1024+a]=n.o,f>m&&n.c[n.f+f]==n.c[t]&&(r[x++]=g=2,r[x++]=n.o-f-1),b>m&&n.c[n.f+b]==n.c[t]&&(b==f&&(x-=2),r[x++]=g=3,r[x++]=n.o-b-1,f=b),0!=x&&f==o&&(x-=2,g=1)),n.ub[n.R+v]=n.o,w=1+(n.k<<1),z=n.k<<1,d=h=n.w,0!=n.w&&o>m&&n.c[n.f+o+n.w]!=n.c[t+n.w]&&(r[x++]=g=n.w,r[x++]=n.o-o-1),c=n.Fc;;){if(m>=o||0==c--){n.L[w]=n.L[z]=0;break}if(u=n.o-o,i=(n.k>=u?n.k-u:n.k-u+n.p)<<1,p=n.f+o,l=h>d?d:h,n.c[p+l]==n.c[t+l]){for(;++l!=s&&n.c[p+l]==n.c[t+l];);if(l>g&&(r[x++]=g=l,r[x++]=u-1,l==s)){n.L[z]=n.L[i],n.L[w]=n.L[i+1];break}}(255&n.c[t+l])>(255&n.c[p+l])?(n.L[z]=o,z=i+1,o=n.L[z],h=l):(n.L[w]=o,w=i,o=n.L[w],d=l)}return G(n),x}(n.b,n.m),n.D>0&&((r=n.m[n.D-2])==n.n&&(r+=k(n.b,r-1,n.m[n.D-1],273-r))),++n.s,r}function on(n){n.b&&n.W&&(n.b.cc=null,n.W=0)}function fn(n){return 2048>n?$n[n]:2097152>n?$n[n>>10]+20:$n[n>>20]+40}function bn(n,r){Bn(n.db);for(var c=0;r>c;++c)Bn(n.Vb[c].G),Bn(n.Wb[c].G);Bn(n.ic.G)}function un(n,r,c,t,o){var f,b,i,u,e;for(f=Pn[n.db[0]>>>2],i=(b=Pn[2048-n.db[0]>>>2])+Pn[n.db[1]>>>2],u=b+Pn[2048-n.db[1]>>>2],e=0,e=0;8>e;++e){if(e>=c)return;t[o+e]=f+Ln(n.Vb[r],e)}for(;16>e;++e){if(e>=c)return;t[o+e]=i+Ln(n.Wb[r],e-8)}for(;c>e;++e)t[o+e]=u+Ln(n.ic,e-8-8)}function en(n,r,c,t){(function(n,r,c,t){8>c?(Un(r,n.db,0,0),En(n.Vb[t],r,c)):(c-=8,Un(r,n.db,0,1),8>c?(Un(r,n.db,1,0),En(n.Wb[t],r,c)):(Un(r,n.db,1,1),En(n.ic,r,c-8)))})(n,r,c,t),0==--n.sc[t]&&(un(n,t,n.rb,n.Cc,272*t),n.sc[t]=n.rb)}function an(n){return function(n){n.db=c(2),n.Vb=c(16),n.Wb=c(16),n.ic=Mn({},8);for(var r=0;16>r;++r)n.Vb[r]=Mn({},3),n.Wb[r]=Mn({},3)}(n),n.Cc=[],n.sc=[],n}function vn(n,r,c){return n.Cc[272*c+r]}function ln(n,r){for(var c=0;r>c;++c)un(n,c,n.rb,n.Cc,272*c),n.sc[c]=n.rb}function dn(n,r,t){var o,f;if(null==n.V||n.u!=t||n.I!=r)for(n.I=r,n.qc=(1<o;++o)n.V[o]=gn({})}function hn(n,r,c){return n.V[((r&n.qc)<>>8-n.u)]}function sn(n,r,c){var t,o,f=1;for(o=7;o>=0;--o)t=c>>o&1,Un(r,n.tb,f,t),f=f<<1|t}function mn(n,r,c,t){var o,f,b,i,u=1,e=1;for(f=7;f>=0;--f)o=t>>f&1,i=e,u&&(i+=1+(b=c>>f&1)<<8,u=b==o),Un(r,n.tb,i,o),e=e<<1|o}function gn(n){return n.tb=c(768),n}function xn(n,r,c,t){var o,f,b=1,i=7,u=0;if(r)for(;i>=0;--i)if(f=c>>i&1,o=t>>i&1,u+=qn(n.tb[(1+f<<8)+b],o),b=b<<1|o,f!=o){--i;break}for(;i>=0;--i)o=t>>i&1,u+=qn(n.tb[b],o),b=b<<1|o;return u}function pn(n){n.j=-1,n.t=0}function wn(n,r){return n.F=r,n.G=c(1<>>--o&1,Un(r,n.G,f,t),f=f<<1|t}function Ln(n,r){var c,t,o=1,f=0;for(t=n.F;0!=t;)c=r>>>--t&1,f+=qn(n.G[o],c),o=(o<<1)+c;return f}function jn(n,r,c){var t,o,f=1;for(o=0;n.F>o;++o)t=1&c,Un(r,n.G,f,t),f=f<<1|t,c>>=1}function yn(n,r){var c,t,o=1,f=0;for(t=n.F;0!=t;--t)c=1&r,r>>>=1,f+=qn(n.G[o],c),o=o<<1|c;return f}function kn(n,r,c,t,o){var f,b,i=1;for(b=0;t>b;++b)Un(c,n,r+i,f=1&o),i=i<<1|f,o>>=1}function Cn(n,r,c,t){var o,f,b=1,i=0;for(f=c;0!=f;--f)o=1&t,t>>>=1,i+=Pn[(2047&(n[r+b]-o^-o))>>>2],b=b<<1|o;return i}function An(n,r,c){var t,o=r[c];return(-2147483648^(t=(n.E>>>11)*o))>(-2147483648^n.Bb)?(n.E=t,r[c]=o+(2048-o>>>5)<<16>>16,-16777216&n.E||(n.Bb=n.Bb<<8|s(n.Ab),n.E<<=8),0):(n.E-=t,n.Bb-=t,r[c]=o-(o>>>5)<<16>>16,-16777216&n.E||(n.Bb=n.Bb<<8|s(n.Ab),n.E<<=8),1)}function Bn(n){for(var r=n.length-1;r>=0;--r)n[r]=1024}function Un(n,r,c,f){var b,i=r[c];b=(n.E>>>11)*i,f?(n.xc=t(n.xc,o(u(b),[4294967295,0])),n.E-=b,r[c]=i-(i>>>5)<<16>>16):(n.E=b,r[c]=i+(2048-i>>>5)<<16>>16),-16777216&n.E||(n.E<<=8,Jn(n))}function Gn(n,r,c){for(var o=c-1;o>=0;--o)n.E>>>=1,1==(r>>>o&1)&&(n.xc=t(n.xc,u(n.E))),-16777216&n.E||(n.E<<=8,Jn(n))}function In(n){return t(t(u(n.Jb),n.mc),[4,0])}function Jn(n){var r,c=e(function(n,r){var c;return c=l(n,r&=63),0>n[1]&&(c=t(c,v([2,0],63-r))),c}(n.xc,32));if(0!=c||f(n.xc,[4278190080,0])<0){n.mc=t(n.mc,u(n.Jb)),r=n.Oc;do{p(n.Ab,r+c),r=255}while(0!=--n.Jb);n.Oc=e(n.xc)>>>24}++n.Jb,n.xc=v(o(n.xc,[16777215,0]),8)}function qn(n,r){return Pn[(2047&(n-r^-r))>>>2]}function Qn(n){for(var r,c,t,o=0,f=0,b=n.length,i=[],u=[];b>o;++o,++f){if(128&(r=255&n[o]))if(192==(224&r)){if(o+1>=b)return n;if(128!=(192&(c=255&n[++o])))return n;u[f]=(31&r)<<6|63&c}else{if(224!=(240&r))return n;if(o+2>=b)return n;if(128!=(192&(c=255&n[++o])))return n;if(128!=(192&(t=255&n[++o])))return n;u[f]=(15&r)<<12|(63&c)<<6|63&t}else{if(!r)return n;u[f]=r}16383==f&&(i.push(String.fromCharCode.apply(String,u)),f=-1)}return f>0&&(u.length=f,i.push(String.fromCharCode.apply(String,u))),i.join("")}function Dn(n){var r,c,t,o=[],f=0,b=n.length;if("object"==typeof n)return n;for(function(n,r,c,t,o){var f;for(f=r;c>f;++f)t[o++]=n.charCodeAt(f)}(n,0,b,o,0),t=0;b>t;++t)(r=o[t])>=1&&127>=r?++f:f+=!r||r>=128&&2047>=r?2:3;for(c=[],f=0,t=0;b>t;++t)(r=o[t])>=1&&127>=r?c[f++]=r<<24>>24:!r||r>=128&&2047>=r?(c[f++]=(192|r>>6&31)<<24>>24,c[f++]=(128|63&r)<<24>>24):(c[f++]=(224|r>>12&15)<<24>>24,c[f++]=(128|r>>6&63)<<24>>24,c[f++]=(128|63&r)<<24>>24);return c}function Nn(n){return n[1]+n[0]}var Zn=1,Fn=2,Kn=3,Tn="function"==typeof setImmediate?setImmediate:setTimeout,Vn=4294967296,Yn=[4294967295,-Vn],Rn=[0,-0x8000000000000000],Sn=[0,0],On=[1,0],Hn=function(){var n,r,c,t=[];for(n=0;256>n;++n){for(c=n,r=0;8>r;++r)1&c?c=c>>>1^-306674912:c>>>=1;t[n]=c}return t}(),$n=function(){var n,r,c,t=2,o=[0,1];for(c=2;22>c;++c)for(r=1<<(c>>1)-1,n=0;r>n;++n,++t)o[t]=c<<24>>24;return o}(),Pn=function(){var n,r,c,t=[];for(r=8;r>=0;--r)for(n=1<<9-r,c=1<<9-r-1;n>c;++c)t[c]=(r<<6)+(n-c<<6>>>9-r-1);return t}(),Wn=function(){var n=[{s:16,f:64,m:0},{s:20,f:64,m:0},{s:19,f:64,m:1},{s:20,f:64,m:1},{s:21,f:128,m:1},{s:22,f:128,m:1},{s:23,f:128,m:1},{s:24,f:255,m:1},{s:25,f:255,m:1}];return function(r){return n[r-1]||n[6]}}();return"undefined"==typeof onmessage||"undefined"!=typeof window&&void 0!==window.document||(onmessage=function(r){r&&r.gc&&(r.gc.action==Fn?n.decompress(r.gc.gc,r.gc.cbn):r.gc.action==Zn&&n.compress(r.gc.gc,r.gc.Rc,r.gc.cbn))}),{compress:function(n,c,t,o){var f,b,i={},u=void 0===t&&void 0===o;if("function"!=typeof t&&(b=t,t=o=0),o=o||function(n){return void 0!==b?r(n,b):void 0},t=t||function(n,r){return void 0!==b?postMessage({action:Zn,cbn:b,result:n,error:r}):void 0},u){for(i.c=E({},Dn(n),Wn(c));F(i.c.yb););return x(i.c.Nb)}try{i.c=E({},Dn(n),Wn(c)),o(0)}catch(n){return t(null,n)}Tn(function n(){try{for(var r,c=(new Date).getTime();F(i.c.yb);)if(f=Nn(i.c.yb.Pb)/Nn(i.c.Tb),(new Date).getTime()-c>200)return o(f),Tn(n,0),0;o(1),r=x(i.c.Nb),Tn(t.bind(null,r),0)}catch(n){t(null,n)}},0)},decompress:function(n,c,t){var o,f,b,i,u={},e=void 0===c&&void 0===t;if("function"!=typeof c&&(f=c,c=t=0),t=t||function(n){return void 0!==f?r(b?n:-1,f):void 0},c=c||function(n,r){return void 0!==f?postMessage({action:Fn,cbn:f,result:n,error:r}):void 0},e){for(u.d=j({},n);F(u.d.yb););return Qn(x(u.d.Nb))}try{u.d=j({},n),i=Nn(u.d.Tb),b=i>-1,t(0)}catch(n){return c(null,n)}Tn(function n(){try{for(var r,f=0,e=(new Date).getTime();F(u.d.yb);)if(++f%1e3==0&&(new Date).getTime()-e>200)return b&&(o=Nn(u.d.yb.Z.g)/i,t(o)),Tn(n,0),0;t(1),r=Qn(x(u.d.Nb)),Tn(c.bind(null,r),0)}catch(n){c(null,n)}},0)}}}();this.LZMA=this.LZMA_WORKER=n}}]); ================================================ FILE: dist/browser/json-url-lzstring.js ================================================ (self.webpackChunkJsonUrl=self.webpackChunkJsonUrl||[]).push([[66],{2992:(o,r,n)=>{var e,t=function(){var o=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",e={};function t(o,r){if(!e[o]){e[o]={};for(var n=0;n>>8,n[2*e+1]=i%256}return n},decompressFromUint8Array:function(r){if(null==r)return s.decompress(r);for(var n=new Array(r.length/2),e=0,t=n.length;e>=1}else{for(t=1,e=0;e>=1}0==--l&&(l=Math.pow(2,h),h++),delete p[u]}else for(t=i[u],e=0;e>=1;0==--l&&(l=Math.pow(2,h),h++),i[a]=f++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(p,u)){if(u.charCodeAt(0)<256){for(e=0;e>=1}else{for(t=1,e=0;e>=1}0==--l&&(l=Math.pow(2,h),h++),delete p[u]}else for(t=i[u],e=0;e>=1;0==--l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;e>=1;for(;;){if(m<<=1,v==r-1){d.push(n(m));break}v++}return d.join("")},decompress:function(o){return null==o?"":""==o?null:s._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(r,n,e){var t,s,i,p,c,a,u,l=[],f=4,h=4,d=3,m="",v=[],w={val:e(0),position:n,index:1};for(t=0;t<3;t+=1)l[t]=t;for(i=0,c=Math.pow(2,2),a=1;a!=c;)p=w.val&w.position,w.position>>=1,0==w.position&&(w.position=n,w.val=e(w.index++)),i|=(p>0?1:0)*a,a<<=1;switch(i){case 0:for(i=0,c=Math.pow(2,8),a=1;a!=c;)p=w.val&w.position,w.position>>=1,0==w.position&&(w.position=n,w.val=e(w.index++)),i|=(p>0?1:0)*a,a<<=1;u=o(i);break;case 1:for(i=0,c=Math.pow(2,16),a=1;a!=c;)p=w.val&w.position,w.position>>=1,0==w.position&&(w.position=n,w.val=e(w.index++)),i|=(p>0?1:0)*a,a<<=1;u=o(i);break;case 2:return""}for(l[3]=u,s=u,v.push(u);;){if(w.index>r)return"";for(i=0,c=Math.pow(2,d),a=1;a!=c;)p=w.val&w.position,w.position>>=1,0==w.position&&(w.position=n,w.val=e(w.index++)),i|=(p>0?1:0)*a,a<<=1;switch(u=i){case 0:for(i=0,c=Math.pow(2,8),a=1;a!=c;)p=w.val&w.position,w.position>>=1,0==w.position&&(w.position=n,w.val=e(w.index++)),i|=(p>0?1:0)*a,a<<=1;l[h++]=o(i),u=h-1,f--;break;case 1:for(i=0,c=Math.pow(2,16),a=1;a!=c;)p=w.val&w.position,w.position>>=1,0==w.position&&(w.position=n,w.val=e(w.index++)),i|=(p>0?1:0)*a,a<<=1;l[h++]=o(i),u=h-1,f--;break;case 2:return v.join("")}if(0==f&&(f=Math.pow(2,d),d++),l[u])m=l[u];else{if(u!==h)return null;m=s+s.charAt(0)}v.push(m),l[h++]=s+m.charAt(0),s=m,0==--f&&(f=Math.pow(2,d),d++)}}};return s}();void 0===(e=function(){return t}.call(r,n,r,o))||(o.exports=e)}}]); ================================================ FILE: dist/browser/json-url-lzw.js ================================================ "use strict";(self.webpackChunkJsonUrl=self.webpackChunkJsonUrl||[]).push([[508],{4484:e=>{var r=function(){};r.prototype.encode=function(e){for(var r,t={},n=(e+"").split(""),o=[],h=n[0],l=256,p=1;p1?t[h]:h.charCodeAt(0)),t[h+r]=l,l++,h=r);o.push(h.length>1?t[h]:h.charCodeAt(0));for(p=0;p{},9838:()=>{}}]); ================================================ FILE: dist/browser/json-url-safe64.js ================================================ /*! For license information please see json-url-safe64.js.LICENSE.txt */ (self.webpackChunkJsonUrl=self.webpackChunkJsonUrl||[]).push([[622],{421:(e,r,n)=>{e.exports=n(5253)},5253:(e,r,n)=>{var a=n(8287).Buffer;r.version="1.0.0",r.encode=function(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},r.decode=function(e){return e=(e+=Array(5-e.length%4).join("=")).replace(/\-/g,"+").replace(/\_/g,"/"),new a(e,"base64")},r.validate=function(e){return/^[A-Za-z0-9\-_]+$/.test(e)}}}]); ================================================ FILE: dist/browser/json-url-safe64.js.LICENSE.txt ================================================ /*! * urlsafe-base64 */ ================================================ FILE: dist/browser/json-url-single.js ================================================ /*! For license information please see json-url-single.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.JsonUrl=e():t.JsonUrl=e()}(self,()=>(()=>{var t,e,r={41:(t,e,r)=>{"use strict";var n=r(655),o=r(8068),i=r(9675),a=r(5795);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new i("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===s&&l?l.configurable:!s,enumerable:null===u&&l?l.enumerable:!u,value:r,writable:null===c&&l?l.writable:!c});else{if(!f&&(u||c||s))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},63:(t,e,r)=>{"use strict";const n=r(8399).Transform,o=r(6698),i=r(4829);function a(t){(t=t||{}).objectMode=!0,t.highWaterMark=16,n.call(this,t),this._msgpack=t.msgpack}function u(t){if(!(this instanceof u))return(t=t||{}).msgpack=this,new u(t);a.call(this,t),this._wrap="wrap"in t&&t.wrap}function c(t){if(!(this instanceof c))return(t=t||{}).msgpack=this,new c(t);a.call(this,t),this._chunks=i(),this._wrap="wrap"in t&&t.wrap}o(a,n),o(u,a),u.prototype._transform=function(t,e,r){let n=null;try{n=this._msgpack.encode(this._wrap?t.value:t).slice(0)}catch(t){return this.emit("error",t),r()}this.push(n),r()},o(c,a),c.prototype._transform=function(t,e,r){t&&this._chunks.append(t);try{let t=this._msgpack.decode(this._chunks);this._wrap&&(t={value:t}),this.push(t)}catch(t){return void(t instanceof this._msgpack.IncompleteBufferError?r():this.emit("error",t))}this._chunks.length>0?this._transform(null,e,r):r()},t.exports.decoder=c,t.exports.encoder=u},76:t=>{"use strict";t.exports=Function.prototype.call},251:(t,e)=>{e.read=function(t,e,r,n,o){var i,a,u=8*o-n-1,c=(1<>1,f=-7,l=r?o-1:0,p=r?-1:1,h=t[e+l];for(l+=p,i=h&(1<<-f)-1,h>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=p,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+l],l+=p,f-=8);if(0===i)i=1-s;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=s}return(h?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,u,c,s=8*i-o-1,f=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+l>=1?p/c:p*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*c-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[r+h]=255&u,h+=d,u/=256,o-=8);for(a=a<0;t[r+h]=255&a,h+=d,a/=256,s-=8);t[r+h-d]|=128*y}},345:(t,e,r)=>{t.exports=r(7007).EventEmitter},414:t=>{"use strict";t.exports=Math.round},421:(t,e,r)=>{t.exports=r(5253)},453:(t,e,r)=>{"use strict";var n,o=r(9612),i=r(9383),a=r(1237),u=r(9290),c=r(9538),s=r(8068),f=r(9675),l=r(5345),p=r(1514),h=r(8968),d=r(6188),y=r(8002),b=r(5880),g=r(414),v=r(3093),m=Function,w=function(t){try{return m('"use strict"; return ('+t+").constructor;")()}catch(t){}},E=r(5795),_=r(655),S=function(){throw new f},x=E?function(){try{return S}catch(t){try{return E(arguments,"callee").get}catch(t){return S}}}():S,O=r(4039)(),j=r(3628),A=r(1064),R=r(8648),k=r(1002),B=r(76),T={},P="undefined"!=typeof Uint8Array&&j?j(Uint8Array):n,I={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&j?j([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&j?j(j([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&j?j((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&j?j((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&j?j(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":x,"%TypedArray%":P,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":k,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":A,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":d,"%Math.min%":y,"%Math.pow%":b,"%Math.round%":g,"%Math.sign%":v,"%Reflect.getPrototypeOf%":R};if(j)try{null.error}catch(t){var M=j(j(t));I["%Error.prototype%"]=M}var U=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var o=t("%AsyncGenerator%");o&&j&&(r=j(o.prototype))}return I[e]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=r(6743),C=r(9957),F=N.call(B,Array.prototype.concat),D=N.call(k,Array.prototype.splice),q=N.call(B,String.prototype.replace),z=N.call(B,String.prototype.slice),$=N.call(B,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(t,e){var r,n=t;if(C(L,n)&&(n="%"+(r=L[n])[0]+"%"),C(I,n)){var o=I[n];if(o===T&&(o=U(n)),void 0===o&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new s("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===$(/^%?[^%]*%?$/,t))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=z(t,0,1),r=z(t,-1);if("%"===e&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,G,function(t,e,r,o){n[n.length]=r?q(o,W,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=V("%"+n+"%",e),i=o.name,a=o.value,u=!1,c=o.alias;c&&(n=c[0],D(r,F([0,1],c)));for(var l=1,p=!0;l=r.length){var b=E(a,h);a=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:a[h]}else p=C(a,h),a=a[h];p&&!u&&(I[i]=a)}}return a}},487:(t,e,r)=>{"use strict";var n=r(6897),o=r(655),i=r(3126),a=r(2205);t.exports=function(t){var e=i(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},o?o(t.exports,"apply",{value:a}):t.exports.apply=a},537:(t,e,r)=>{var n=r(5606),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&e._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),l(n,t,n.depth)}function s(t,e){var r=c.styles[e];return r?"["+c.colors[r][0]+"m"+t+"["+c.colors[r][1]+"m":t}function f(t,e){return t}function l(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,t);return v(o)||(o=l(t,o,n)),o}var i=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(b(e))return t.stylize("null","null")}(t,r);if(i)return i;var a=Object.keys(r),u=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return t.stylize("[Function"+c+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(_(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return p(r)}var s,f="",E=!1,O=["{","}"];(d(r)&&(E=!0,O=["[","]"]),x(r))&&(f=" [Function"+(r.name?": "+r.name:"")+"]");return w(r)&&(f=" "+RegExp.prototype.toString.call(r)),_(r)&&(f=" "+Date.prototype.toUTCString.call(r)),S(r)&&(f=" "+p(r)),0!==a.length||E&&0!=r.length?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),s=E?function(t,e,r,n,o){for(var i=[],a=0,u=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(s,f,O)):O[0]+f+O[1]}function p(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,o,i){var a,u,c;if((c=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]}).get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),R(n,o)||(a="["+o+"]"),u||(t.seen.indexOf(c.value)<0?(u=b(r)?l(t,c.value,null):l(t,c.value,r-1)).indexOf("\n")>-1&&(u=i?u.split("\n").map(function(t){return" "+t}).join("\n").slice(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n")):u=t.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function d(t){return Array.isArray(t)}function y(t){return"boolean"==typeof t}function b(t){return null===t}function g(t){return"number"==typeof t}function v(t){return"string"==typeof t}function m(t){return void 0===t}function w(t){return E(t)&&"[object RegExp]"===O(t)}function E(t){return"object"==typeof t&&null!==t}function _(t){return E(t)&&"[object Date]"===O(t)}function S(t){return E(t)&&("[object Error]"===O(t)||t instanceof Error)}function x(t){return"function"==typeof t}function O(t){return Object.prototype.toString.call(t)}function j(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!a[t])if(u.test(t)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(9032),e.isArray=d,e.isBoolean=y,e.isNull=b,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=w,e.types.isRegExp=w,e.isObject=E,e.isDate=_,e.types.isDate=_,e.isError=S,e.types.isNativeError=S,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(1135);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(t=new Date,r=[j(t.getHours()),j(t.getMinutes()),j(t.getSeconds())].join(":"),[t.getDate(),A[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6698),e._extend=function(t,e){if(!e||!E(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function B(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(k&&t[k]){var e;if("function"!=typeof(e=t[k]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,k,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),o=[],i=0;i{var n=r(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},592:(t,e,r)=>{"use strict";var n=r(655),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=o},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},887:(t,e,r)=>{var n=r(6993),o=r(1791);t.exports=function(t,e,r,i,a){return new o(n().w(t,e,r,i),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},894:function(){var t=function(){"use strict";function e(t,e){postMessage({action:Dt,cbn:e,result:t})}function r(t){var e=[];return e[t-1]=void 0,e}function n(t,e){return a(t[0]+e[0],t[1]+e[1])}function o(t,e){return function(t,e){var r,n;return r=t*zt,n=e,0>e&&(n+=zt),[n,r]}(Math.max(Math.min(t[1]/zt,2147483647),-2147483648)&Math.max(Math.min(e[1]/zt,2147483647),-2147483648),s(t)&s(e))}function i(t,e){var r,n;return t[0]==e[0]&&t[1]==e[1]?0:(r=0>t[1],n=0>e[1],r&&!n?-1:!r&&n?1:h(t,e)[1]<0?-1:1)}function a(t,e){var r,n;for(t%=0x10000000000000000,e=(e%=0x10000000000000000)-(r=e%zt)+(n=Math.floor(t/zt)*zt),t=t-n+r;0>t;)t+=zt,e-=zt;for(;t>4294967295;)t-=zt,e+=zt;for(e%=0x10000000000000000;e>0x7fffffff00000000;)e-=0x10000000000000000;for(;-0x8000000000000000>e;)e+=0x10000000000000000;return[t,e]}function u(t,e){return t[0]==e[0]&&t[1]==e[1]}function c(t){return t>=0?[t,0]:[t+zt,-zt]}function s(t){return t[0]>=2147483648?~~Math.max(Math.min(t[0]-zt,2147483647),-2147483648):~~Math.max(Math.min(t[0],2147483647),-2147483648)}function f(t){return 30>=t?1<t[1])throw Error("Neg");return i=f(e),n=t[1]*i%0x10000000000000000,(n+=r=(o=t[0]*i)-o%zt)>=0x8000000000000000&&(n-=0x10000000000000000),[o-=r,n]}function p(t,e){var r;return r=f(e&=63),a(Math.floor(t[0]/r),t[1]/r)}function h(t,e){return a(t[0]-e[0],t[1]-e[1])}function d(t,e){return t.Mc=e,t.Lc=0,t.Yb=e.length,t}function y(t){return t.Lc>=t.Yb?-1:255&t.Mc[t.Lc++]}function b(t,e,r,n){return t.Lc>=t.Yb?-1:(n=Math.min(n,t.Yb-t.Lc),E(t.Mc,t.Lc,e,r,n),t.Lc+=n,n)}function g(t){return t.Mc=r(32),t.Yb=0,t}function v(t){var e=t.Mc;return e.length=t.Yb,e}function m(t,e){t.Mc[t.Yb++]=e<<24>>24}function w(t,e,r,n){E(e,r,t.Mc,t.Yb,n),t.Yb+=n}function E(t,e,r,n,o){for(var i=0;o>i;++i)r[n+i]=t[e+i]}function _(e,r,n,o,a){var u,c;if(i(o,$t)<0)throw Error("invalid length "+o);for(e.Tb=o,function(t,e){(function(t,e){t.ab=e;for(var r=0;e>1<>24;for(var r=0;4>r;++r)t.fc[1+r]=t.ab>>8*r<<24>>24;w(e,t.fc,0,5)}(u,n),c=0;64>c;c+=8)m(n,255&s(p(o,c)));e.yb=(u.W=0,u.oc=r,u.pc=0,function(t){var e,r;t.b||(e={},r=4,t.X||(r=2),function(t,e){t.qb=e>2,t.qb?(t.w=0,t.xb=4,t.R=66560):(t.w=2,t.xb=3,t.R=0)}(e,r),t.b=e),pt(t.A,t.eb,t.fb),(t.ab!=t.wb||t.Hb!=t.n)&&(T(t.b,t.ab,4096,t.n,274),t.wb=t.ab,t.Hb=t.n)}(u),u.d.Ab=n,function(t){(function(t){t.l=0,t.J=0;for(var e=0;4>e;++e)t.v[e]=0})(t),function(t){t.mc=Wt,t.xc=Wt,t.E=-1,t.Jb=1,t.Oc=0}(t.d),kt(t.C),kt(t._),kt(t.bb),kt(t.hb),kt(t.Ub),kt(t.vc),kt(t.Sb),function(t){var e,r=1<e;++e)kt(t.V[e].tb)}(t.A);for(var e=0;4>e;++e)kt(t.K[e].G);at(t.$,1<o;++o){if(-1==(i=y(e)))throw Error("truncated input");s[o]=i<<24>>24}if(!function(t,e){var r,n,o,i,a,u,c;if(5>e.length)return 0;for(c=255&e[0],o=c%9,i=(u=~~(c/9))%5,a=~~(u/5),r=0,n=0;4>n;++n)r+=(255&e[1+n])<<8*n;return r>99999999||!function(t,e,r,n){if(e>8||r>4||n>4)return 0;V(t.gb,r,e);var o=1<e?0:(t.Ob!=e&&(t.Ob=e,t.nb=Math.max(t.Ob,1),M(t.B,Math.max(t.nb,4096))),1)}(t,r)}(n=q({}),s))throw Error("corrupted input");for(o=0;64>o;o+=8){if(-1==(i=y(e)))throw Error("truncated input");1==(i=i.toString(16)).length&&(i="0"+i),u=i+""+u}/^0+$|^f+$/i.test(u)?t.Tb=$t:(a=parseInt(u,16),t.Tb=a>4294967295?$t:c(a)),t.yb=function(t,e,r,n){return t.e.Ab=e,N(t.B),t.B.cc=r,function(t){t.B.h=0,t.B.o=0,kt(t.Gb),kt(t.pb),kt(t.Zb),kt(t.Cb),kt(t.Db),kt(t.Eb),kt(t.kc),function(t){var e,r;for(r=1<e;++e)kt(t.V[e].Ib)}(t.gb);for(var e=0;4>e;++e)kt(t.kb[e].G);W(t.Rb),W(t.sb),kt(t.Fb.G),function(t){t.Bb=0,t.E=-1;for(var e=0;5>e;++e)t.Bb=t.Bb<<8|y(t.Ab)}(t.e)}(t),t.U=0,t.ib=0,t.Jc=0,t.Ic=0,t.Qc=0,t.Nc=n,t.g=Wt,t.jc=0,function(t,e){return t.Z=e,t.cb=null,t.zc=1,t}({},t)}(n,e,r,t.Tb)}function O(t,e){return t.Nb=g({}),x(t,d({},e),t.Nb),t}function j(t,e){return t.c[t.f+t.o+e]}function A(t,e,r,n){var o,i;for(t.T&&t.o+e+n>t.h&&(n=t.h-(t.o+e)),++r,i=t.f+t.o+e,o=0;n>o&&t.c[i+o]==t.c[i+o-r];++o);return o}function R(t){return t.h-t.o}function k(t){var e,r;if(!t.T)for(;;){if(!(r=-t.f+t.Kb-t.h))return;if(-1==(e=b(t.cc,t.c,t.f+t.h,r)))return t.zb=t.h,t.f+t.zb>t.H&&(t.zb=t.H-t.f),void(t.T=1);t.h+=e,t.h>=t.o+t._b&&(t.zb=t.h-t._b)}}function B(t,e){t.f+=e,t.zb-=e,t.o-=e,t.h-=e}function T(t,e,n,o,i){var a,u;1073741567>e&&(t.Fc=16+(o>>1),function(t,e,n,o){var i;t.Bc=e,t._b=n,i=e+n+o,(null==t.c||t.Kb!=i)&&(t.c=null,t.Kb=i,t.c=r(t.Kb)),t.H=t.Kb-n}(t,e+n,o+i,256+~~((e+n+o+i)/2)),t.ob=o,a=e+1,t.p!=a&&(t.L=r(2*(t.p=a))),u=65536,t.qb&&(u=e-1,u|=u>>1,u|=u>>2,u|=u>>4,u|=u>>8,u>>=1,(u|=65535)>16777216&&(u>>=1),t.Ec=u,++u,u+=t.R),u!=t.rc&&(t.ub=r(t.rc=u)))}function P(t){var e;++t.k>=t.p&&(t.k=0),function(t){++t.o,t.o>t.zb&&(t.f+t.o>t.H&&function(t){var e,r,n;for((n=t.f+t.o-t.Bc)>0&&--n,r=t.f+t.h-n,e=0;r>e;++e)t.c[e]=t.c[n+e];t.f-=n}(t),k(t))}(t),1073741823==t.o&&(e=t.o-t.p,I(t.L,2*t.p,e),I(t.ub,t.rc,e),B(t,e))}function I(t,e,r){var n,o;for(n=0;e>n;++n)r>=(o=t[n]||0)?o=0:o-=r,t[n]=o}function M(t,e){(null==t.Lb||t.M!=e)&&(t.Lb=r(e)),t.M=e,t.o=0,t.h=0}function U(t){var e=t.o-t.h;e&&(w(t.cc,t.Lb,t.h,e),t.o>=t.M&&(t.o=0),t.h=t.o)}function L(t,e){var r=t.o-e-1;return 0>r&&(r+=t.M),t.Lb[r]}function N(t){U(t),t.cc=null}function C(t){return 4>(t-=2)?t:3}function F(t){return 4>t?0:10>t?t-3:t-6}function D(t){if(!t.zc)throw Error("bad state");return t.cb?function(t){(function(t,e,r,o){var a,f,l,p,d,y,b,g,v,m,w,E,_,S,x;if(e[0]=Wt,r[0]=Wt,o[0]=1,t.oc&&(t.b.cc=t.oc,function(t){t.f=0,t.o=0,t.h=0,t.T=0,k(t),t.k=0,B(t,-1)}(t.b),t.W=1,t.oc=null),!t.pc){if(t.pc=1,S=t.g,u(t.g,Wt)){if(!R(t.b))return void Q(t,s(t.g));nt(t),_=s(t.g)&t.y,Bt(t.d,t.C,(t.l<<4)+_,0),t.l=F(t.l),l=j(t.b,-t.s),dt(ht(t.A,s(t.g),t.J),t.d,l),t.J=l,--t.s,t.g=n(t.g,Vt)}if(!R(t.b))return void Q(t,s(t.g));for(;;){if(b=X(t,s(t.g)),m=t.mb,_=s(t.g)&t.y,f=(t.l<<4)+_,1==b&&-1==m)Bt(t.d,t.C,f,0),l=j(t.b,-t.s),x=ht(t.A,s(t.g),t.J),7>t.l?dt(x,t.d,l):(v=j(t.b,-t.v[0]-1-t.s),yt(x,t.d,v,l)),t.J=l,t.l=F(t.l);else{if(Bt(t.d,t.C,f,1),4>m){if(Bt(t.d,t.bb,t.l,1),m?(Bt(t.d,t.hb,t.l,1),1==m?Bt(t.d,t.Ub,t.l,0):(Bt(t.d,t.Ub,t.l,1),Bt(t.d,t.vc,t.l,m-2))):(Bt(t.d,t.hb,t.l,0),Bt(t.d,t._,f,1==b?0:1)),1==b?t.l=7>t.l?9:11:(ct(t.i,t.d,b-2,_),t.l=7>t.l?8:11),p=t.v[m],0!=m){for(y=m;y>=1;--y)t.v[y]=t.v[y-1];t.v[0]=p}}else{for(Bt(t.d,t.bb,t.l,0),t.l=7>t.l?7:10,ct(t.$,t.d,b-2,_),E=it(m-=4),g=C(b),_t(t.K[g],t.d,E),E>=4&&(w=m-(a=(2|1&E)<<(d=(E>>1)-1)),14>E?jt(t.Sb,a-E-1,t.d,d,w):(Tt(t.d,w>>4,d-4),xt(t.S,t.d,15&w),++t.Qb)),p=m,y=3;y>=1;--y)t.v[y]=t.v[y-1];t.v[0]=p,++t.Mb}t.J=j(t.b,b-1-t.s)}if(t.s-=b,t.g=n(t.g,c(b)),!t.s){if(t.Mb>=128&&Z(t),t.Qb>=16&&K(t),e[0]=t.g,r[0]=Pt(t.d),!R(t.b))return void Q(t,s(t.g));if(i(h(t.g,S),[4096,0])>=0)return t.pc=0,void(o[0]=0)}}}})(t.cb,t.cb.Xb,t.cb.uc,t.cb.Kc),t.Pb=t.cb.Xb[0],t.cb.Kc[0]&&(function(t){ot(t),t.d.Ab=null}(t.cb),t.zc=0)}(t):function(t){var e=function(t){var e,r,o,a,u,f;if(f=s(t.g)&t.Dc,Rt(t.e,t.Gb,(t.U<<4)+f)){if(Rt(t.e,t.Zb,t.U))o=0,Rt(t.e,t.Cb,t.U)?(Rt(t.e,t.Db,t.U)?(Rt(t.e,t.Eb,t.U)?(r=t.Qc,t.Qc=t.Ic):r=t.Ic,t.Ic=t.Jc):r=t.Jc,t.Jc=t.ib,t.ib=r):Rt(t.e,t.pb,(t.U<<4)+f)||(t.U=7>t.U?9:11,o=1),o||(o=$(t.sb,t.e,f)+2,t.U=7>t.U?8:11);else if(t.Qc=t.Ic,t.Ic=t.Jc,t.Jc=t.ib,o=2+$(t.Rb,t.e,f),t.U=7>t.U?7:10,(u=wt(t.kb[C(o)],t.e))>=4){if(a=(u>>1)-1,t.ib=(2|1&u)<u)t.ib+=function(t,e,r,n){var o,i,a=1,u=0;for(i=0;n>i;++i)o=Rt(r,t,e+a),a<<=1,a+=o,u|=o<>>=1,n=t.Bb-t.E>>>31,t.Bb-=t.E&n-1,o=o<<1|1-n,-16777216&t.E||(t.Bb=t.Bb<<8|y(t.Ab),t.E<<=8);return o}(t.e,a-4)<<4,t.ib+=function(t,e){var r,n,o=1,i=0;for(n=0;t.F>n;++n)r=Rt(e,t.G,o),o<<=1,o+=r,i|=r<t.ib)return-1==t.ib?1:-1}else t.ib=u;if(i(c(t.ib),t.g)>=0||t.ib>=t.nb)return-1;(function(t,e,r){var n=t.o-e-1;for(0>n&&(n+=t.M);0!=r;--r)n>=t.M&&(n=0),t.Lb[t.o++]=t.Lb[n++],t.o>=t.M&&U(t)})(t.B,t.ib,o),t.g=n(t.g,c(o)),t.jc=L(t.B,0)}else e=function(t,e,r){return t.V[((e&t.qc)<>>8-t.u)]}(t.gb,s(t.g),t.jc),t.jc=7>t.U?function(t,e){var r=1;do{r=r<<1|Rt(e,t.Ib,r)}while(256>r);return r<<24>>24}(e,t.e):function(t,e,r){var n,o,i=1;do{if(o=r>>7&1,r<<=1,n=Rt(e,t.Ib,(1+o<<8)+i),i=i<<1|n,o!=n){for(;256>i;)i=i<<1|Rt(e,t.Ib,i);break}}while(256>i);return i<<24>>24}(e,t.e,L(t.B,t.ib)),function(t,e){t.Lb[t.o++]=e,t.o>=t.M&&U(t)}(t.B,t.jc),t.U=F(t.U),t.g=n(t.g,Vt);return 0}(t.Z);if(-1==e)throw Error("corrupted input");t.Pb=$t,t.Pc=t.Z.g,(e||i(t.Z.Nc,Wt)>=0&&i(t.Z.g,t.Z.Nc)>=0)&&(U(t.Z.B),N(t.Z.B),t.Z.e.Ab=null,t.zc=0)}(t),t.zc}function q(t){t.B={},t.e={},t.Gb=r(192),t.Zb=r(12),t.Cb=r(12),t.Db=r(12),t.Eb=r(12),t.pb=r(192),t.kb=r(4),t.kc=r(114),t.Fb=mt({},4),t.Rb=G({}),t.sb=G({}),t.gb={};for(var e=0;4>e;++e)t.kb[e]=mt({},6);return t}function z(t,e){for(;e>t.O;++t.O)t.ec[t.O]=mt({},3),t.hc[t.O]=mt({},3)}function $(t,e,r){return Rt(e,t.wc,0)?8+(Rt(e,t.wc,1)?8+wt(t.tc,e):wt(t.hc[r],e)):wt(t.ec[r],e)}function G(t){return t.wc=r(2),t.ec=r(16),t.hc=r(16),t.tc=mt({},8),t.O=0,t}function W(t){kt(t.wc);for(var e=0;t.O>e;++e)kt(t.ec[e].G),kt(t.hc[e].G);kt(t.tc.G)}function V(t,e,n){var o,i;if(null==t.V||t.u!=n||t.I!=e)for(t.I=e,t.qc=(1<o;++o)t.V[o]=H({})}function H(t){return t.Ib=r(768),t}function Y(t,e){var r,n,o,i;t.jb=e,o=t.a[e].r,n=t.a[e].j;do{t.a[e].t&&(vt(t.a[o]),t.a[o].r=o-1,t.a[e].Ac&&(t.a[o-1].t=0,t.a[o-1].r=t.a[e].r2,t.a[o-1].j=t.a[e].j2)),i=o,r=n,n=t.a[i].j,o=t.a[i].r,t.a[i].j=r,t.a[i].r=e,e=i}while(e>0);return t.mb=t.a[0].j,t.q=t.a[0].r}function J(t){var e;for(t.v=r(4),t.a=[],t.d={},t.C=r(192),t.bb=r(12),t.hb=r(12),t.Ub=r(12),t.vc=r(12),t._=r(192),t.K=[],t.Sb=r(114),t.S=Et({},4),t.$=st({}),t.i=st({}),t.A={},t.m=[],t.P=[],t.lb=[],t.nc=r(16),t.x=r(4),t.Q=r(4),t.Xb=[Wt],t.uc=[Wt],t.Kc=[0],t.fc=r(5),t.yc=r(128),t.vb=0,t.X=1,t.D=0,t.Hb=-1,t.mb=0,e=0;4096>e;++e)t.a[e]={};for(e=0;4>e;++e)t.K[e]=Et({},6);return t}function K(t){for(var e=0;16>e;++e)t.nc[e]=Ot(t.S,e);t.Qb=0}function Z(t){var e,r,n,o,i,a,u,c;for(o=4;128>o;++o)e=(2|1&(a=it(o)))<<(n=(a>>1)-1),t.yc[o]=At(t.Sb,e-a-1,n,o-e);for(i=0;4>i;++i){for(r=t.K[i],u=i<<6,a=0;t.$b>a;++a)t.P[u+a]=St(r,a);for(a=14;t.$b>a;++a)t.P[u+a]+=(a>>1)-1-4<<6;for(c=128*i,o=0;4>o;++o)t.lb[c+o]=t.P[u+o];for(;128>o;++o)t.lb[c+o]=t.P[u+it(o)]+t.yc[o]}t.Mb=0}function Q(t,e){ot(t),function(t,e){if(t.Gc){Bt(t.d,t.C,(t.l<<4)+e,1),Bt(t.d,t.bb,t.l,0),t.l=7>t.l?7:10,ct(t.$,t.d,0,e);var r=C(2);_t(t.K[r],t.d,63),Tt(t.d,67108863,26),xt(t.S,t.d,15)}}(t,e&t.y);for(var r=0;5>r;++r)It(t.d)}function X(t,e){var r,n,o,i,a,u,c,s,f,l,p,h,d,y,b,g,v,m,w,E,_,S,x,O,k,B,T,P,I,M,U,L,N,C,D,q,z,$,G,W,V,H,J,K;if(t.jb!=t.q)return d=t.a[t.q].r-t.q,t.mb=t.a[t.q].j,t.q=t.a[t.q].r,d;if(t.q=t.jb=0,t.N?(h=t.vb,t.N=0):h=nt(t),B=t.D,2>(O=R(t.b)+1))return t.mb=-1,1;for(O>273&&(O=273),G=0,f=0;4>f;++f)t.x[f]=t.v[f],t.Q[f]=A(t.b,-1,t.x[f],273),t.Q[f]>t.Q[G]&&(G=f);if(t.Q[G]>=t.n)return t.mb=G,rt(t,(d=t.Q[G])-1),d;if(h>=t.n)return t.mb=t.m[B-1]+4,rt(t,h-1),h;if(c=j(t.b,-1),v=j(t.b,-t.v[0]-1-1),2>h&&c!=v&&2>t.Q[G])return t.mb=-1,1;if(t.a[0].Hc=t.l,N=e&t.y,t.a[1].z=Jt[t.C[(t.l<<4)+N]>>>2]+gt(ht(t.A,e,t.J),t.l>=7,v,c),vt(t.a[1]),$=(m=Jt[2048-t.C[(t.l<<4)+N]>>>2])+Jt[2048-t.bb[t.l]>>>2],v==c&&(W=$+function(t,e,r){return Jt[t.hb[e]>>>2]+Jt[t._[(e<<4)+r]>>>2]}(t,t.l,N),t.a[1].z>W&&(t.a[1].z=W,function(t){t.j=0,t.t=0}(t.a[1]))),2>(p=h>=t.Q[G]?h:t.Q[G]))return t.mb=t.a[1].j,1;t.a[1].r=0,t.a[0].bc=t.x[0],t.a[0].ac=t.x[1],t.a[0].dc=t.x[2],t.a[0].lc=t.x[3],l=p;do{t.a[l--].z=268435455}while(l>=2);for(f=0;4>f;++f)if(!(2>(z=t.Q[f]))){D=$+et(t,f,t.l,N);do{i=D+ft(t.i,z-2,N),(M=t.a[z]).z>i&&(M.z=i,M.r=0,M.j=f,M.t=0)}while(--z>=2)}if(x=m+Jt[t.bb[t.l]>>>2],h>=(l=t.Q[0]>=2?t.Q[0]+1:2)){for(T=0;l>t.m[T];)T+=2;for(;i=x+tt(t,s=t.m[T+1],l,N),(M=t.a[l]).z>i&&(M.z=i,M.r=0,M.j=s+4,M.t=0),l!=t.m[T]||(T+=2)!=B;++l);}for(r=0;;){if(++r==p)return Y(t,r);if(w=nt(t),B=t.D,w>=t.n)return t.vb=w,t.N=1,Y(t,r);if(++e,L=t.a[r].r,t.a[r].t?(--L,t.a[r].Ac?(H=t.a[t.a[r].r2].Hc,H=4>t.a[r].j2?7>H?8:11:7>H?7:10):H=t.a[L].Hc,H=F(H)):H=t.a[L].Hc,L==r-1?H=t.a[r].j?F(H):7>H?9:11:(t.a[r].t&&t.a[r].Ac?(L=t.a[r].r2,U=t.a[r].j2,H=7>H?8:11):H=4>(U=t.a[r].j)?7>H?8:11:7>H?7:10,I=t.a[L],4>U?U?1==U?(t.x[0]=I.ac,t.x[1]=I.bc,t.x[2]=I.dc,t.x[3]=I.lc):2==U?(t.x[0]=I.dc,t.x[1]=I.bc,t.x[2]=I.ac,t.x[3]=I.lc):(t.x[0]=I.lc,t.x[1]=I.bc,t.x[2]=I.ac,t.x[3]=I.dc):(t.x[0]=I.bc,t.x[1]=I.ac,t.x[2]=I.dc,t.x[3]=I.lc):(t.x[0]=U-4,t.x[1]=I.bc,t.x[2]=I.ac,t.x[3]=I.dc)),t.a[r].Hc=H,t.a[r].bc=t.x[0],t.a[r].ac=t.x[1],t.a[r].dc=t.x[2],t.a[r].lc=t.x[3],u=t.a[r].z,c=j(t.b,-1),v=j(t.b,-t.x[0]-1-1),N=e&t.y,n=u+Jt[t.C[(H<<4)+N]>>>2]+gt(ht(t.A,e,j(t.b,-2)),H>=7,v,c),E=0,(_=t.a[r+1]).z>n&&(_.z=n,_.r=r,_.j=-1,_.t=0,E=1),$=(m=u+Jt[2048-t.C[(H<<4)+N]>>>2])+Jt[2048-t.bb[H]>>>2],v!=c||r>_.r&&!_.j||(W=$+(Jt[t.hb[H]>>>2]+Jt[t._[(H<<4)+N]>>>2]),_.z>=W&&(_.z=W,_.r=r,_.j=0,_.t=0,E=1)),!(2>(O=k=(k=R(t.b)+1)>4095-r?4095-r:k))){if(O>t.n&&(O=t.n),!E&&v!=c&&(K=Math.min(k-1,t.n),(b=A(t.b,0,t.x[0],K))>=2)){for(J=F(H),C=e+1&t.y,S=n+Jt[2048-t.C[(J<<4)+C]>>>2]+Jt[2048-t.bb[J]>>>2],P=r+1+b;P>p;)t.a[++p].z=268435455;i=S+(ft(t.i,b-2,C)+et(t,0,J,C)),(M=t.a[P]).z>i&&(M.z=i,M.r=r+1,M.j=0,M.t=1,M.Ac=0)}for(V=2,q=0;4>q;++q)if(!(2>(y=A(t.b,-1,t.x[q],O)))){g=y;do{for(;r+y>p;)t.a[++p].z=268435455;i=$+(ft(t.i,y-2,N)+et(t,q,H,N)),(M=t.a[r+y]).z>i&&(M.z=i,M.r=r,M.j=q,M.t=0)}while(--y>=2);if(y=g,q||(V=y+1),k>y&&(K=Math.min(k-1-y,t.n),(b=A(t.b,y,t.x[q],K))>=2)){for(J=7>H?8:11,C=e+y&t.y,o=$+(ft(t.i,y-2,N)+et(t,q,H,N))+Jt[t.C[(J<<4)+C]>>>2]+gt(ht(t.A,e+y,j(t.b,y-1-1)),1,j(t.b,y-1-(t.x[q]+1)),j(t.b,y-1)),J=F(J),C=e+y+1&t.y,S=o+Jt[2048-t.C[(J<<4)+C]>>>2]+Jt[2048-t.bb[J]>>>2],P=y+1+b;r+P>p;)t.a[++p].z=268435455;i=S+(ft(t.i,b-2,C)+et(t,0,J,C)),(M=t.a[r+P]).z>i&&(M.z=i,M.r=r+y+1,M.j=0,M.t=1,M.Ac=1,M.r2=r,M.j2=q)}}if(w>O){for(w=O,B=0;w>t.m[B];B+=2);t.m[B]=w,B+=2}if(w>=V){for(x=m+Jt[t.bb[H]>>>2];r+w>p;)t.a[++p].z=268435455;for(T=0;V>t.m[T];)T+=2;for(y=V;;++y)if(i=x+tt(t,a=t.m[T+1],y,N),(M=t.a[r+y]).z>i&&(M.z=i,M.r=r,M.j=a+4,M.t=0),y==t.m[T]){if(k>y&&(K=Math.min(k-1-y,t.n),(b=A(t.b,y,a,K))>=2)){for(J=7>H?7:10,C=e+y&t.y,o=i+Jt[t.C[(J<<4)+C]>>>2]+gt(ht(t.A,e+y,j(t.b,y-1-1)),1,j(t.b,y-(a+1)-1),j(t.b,y-1)),J=F(J),C=e+y+1&t.y,S=o+Jt[2048-t.C[(J<<4)+C]>>>2]+Jt[2048-t.bb[J]>>>2],P=y+1+b;r+P>p;)t.a[++p].z=268435455;i=S+(ft(t.i,b-2,C)+et(t,0,J,C)),(M=t.a[r+P]).z>i&&(M.z=i,M.r=r+y+1,M.j=0,M.t=1,M.Ac=1,M.r2=r,M.j2=a+4)}if((T+=2)==B)break}}}}}function tt(t,e,r,n){var o=C(r);return(128>e?t.lb[128*o+e]:t.P[(o<<6)+function(t){return 131072>t?Yt[t>>6]+12:134217728>t?Yt[t>>16]+32:Yt[t>>26]+52}(e)]+t.nc[15&e])+ft(t.$,r-2,n)}function et(t,e,r,n){var o;return e?(o=Jt[2048-t.hb[r]>>>2],1==e?o+=Jt[t.Ub[r]>>>2]:(o+=Jt[2048-t.Ub[r]>>>2],o+=Mt(t.vc[r],e-2))):(o=Jt[t.hb[r]>>>2],o+=Jt[2048-t._[(r<<4)+n]>>>2]),o}function rt(t,e){e>0&&(function(t,e){var r,n,o,i,a,u,c,s,f,l,p,h,d,y,b,g,v;do{if(t.h>=t.o+t.ob)h=t.ob;else if(h=t.h-t.o,t.xb>h){P(t);continue}for(d=t.o>t.p?t.o-t.p:0,n=t.f+t.o,t.qb?(u=1023&(v=Ht[255&t.c[n]]^255&t.c[n+1]),t.ub[u]=t.o,c=65535&(v^=(255&t.c[n+2])<<8),t.ub[1024+c]=t.o,s=(v^Ht[255&t.c[n+3]]<<5)&t.Ec):s=255&t.c[n]^(255&t.c[n+1])<<8,o=t.ub[t.R+s],t.ub[t.R+s]=t.o,b=1+(t.k<<1),g=t.k<<1,l=p=t.w,r=t.Fc;;){if(d>=o||0==r--){t.L[b]=t.L[g]=0;break}if(a=t.o-o,i=(t.k>=a?t.k-a:t.k-a+t.p)<<1,y=t.f+o,f=p>l?l:p,t.c[y+f]==t.c[n+f]){for(;++f!=h&&t.c[y+f]==t.c[n+f];);if(f==h){t.L[g]=t.L[i],t.L[b]=t.L[i+1];break}}(255&t.c[n+f])>(255&t.c[y+f])?(t.L[g]=o,g=i+1,o=t.L[g],p=f):(t.L[b]=o,b=i,o=t.L[b],l=f)}P(t)}while(0!=--e)}(t.b,e),t.s+=e)}function nt(t){var e=0;return t.D=function(t,e){var r,n,o,i,a,u,c,s,f,l,p,h,d,y,b,g,v,m,w,E,_;if(t.h>=t.o+t.ob)y=t.ob;else if(y=t.h-t.o,t.xb>y)return P(t),0;for(v=0,b=t.o>t.p?t.o-t.p:0,n=t.f+t.o,g=1,s=0,f=0,t.qb?(s=1023&(_=Ht[255&t.c[n]]^255&t.c[n+1]),f=65535&(_^=(255&t.c[n+2])<<8),l=(_^Ht[255&t.c[n+3]]<<5)&t.Ec):l=255&t.c[n]^(255&t.c[n+1])<<8,o=t.ub[t.R+l]||0,t.qb&&(i=t.ub[s]||0,a=t.ub[1024+f]||0,t.ub[s]=t.o,t.ub[1024+f]=t.o,i>b&&t.c[t.f+i]==t.c[n]&&(e[v++]=g=2,e[v++]=t.o-i-1),a>b&&t.c[t.f+a]==t.c[n]&&(a==i&&(v-=2),e[v++]=g=3,e[v++]=t.o-a-1,i=a),0!=v&&i==o&&(v-=2,g=1)),t.ub[t.R+l]=t.o,w=1+(t.k<<1),E=t.k<<1,h=d=t.w,0!=t.w&&o>b&&t.c[t.f+o+t.w]!=t.c[n+t.w]&&(e[v++]=g=t.w,e[v++]=t.o-o-1),r=t.Fc;;){if(b>=o||0==r--){t.L[w]=t.L[E]=0;break}if(c=t.o-o,u=(t.k>=c?t.k-c:t.k-c+t.p)<<1,m=t.f+o,p=d>h?h:d,t.c[m+p]==t.c[n+p]){for(;++p!=y&&t.c[m+p]==t.c[n+p];);if(p>g&&(e[v++]=g=p,e[v++]=c-1,p==y)){t.L[E]=t.L[u],t.L[w]=t.L[u+1];break}}(255&t.c[n+p])>(255&t.c[m+p])?(t.L[E]=o,E=u+1,o=t.L[E],d=p):(t.L[w]=o,w=u,o=t.L[w],h=p)}return P(t),v}(t.b,t.m),t.D>0&&((e=t.m[t.D-2])==t.n&&(e+=A(t.b,e-1,t.m[t.D-1],273-e))),++t.s,e}function ot(t){t.b&&t.W&&(t.b.cc=null,t.W=0)}function it(t){return 2048>t?Yt[t]:2097152>t?Yt[t>>10]+20:Yt[t>>20]+40}function at(t,e){kt(t.db);for(var r=0;e>r;++r)kt(t.Vb[r].G),kt(t.Wb[r].G);kt(t.ic.G)}function ut(t,e,r,n,o){var i,a,u,c,s;for(i=Jt[t.db[0]>>>2],u=(a=Jt[2048-t.db[0]>>>2])+Jt[t.db[1]>>>2],c=a+Jt[2048-t.db[1]>>>2],s=0,s=0;8>s;++s){if(s>=r)return;n[o+s]=i+St(t.Vb[e],s)}for(;16>s;++s){if(s>=r)return;n[o+s]=u+St(t.Wb[e],s-8)}for(;r>s;++s)n[o+s]=c+St(t.ic,s-8-8)}function ct(t,e,r,n){(function(t,e,r,n){8>r?(Bt(e,t.db,0,0),_t(t.Vb[n],e,r)):(r-=8,Bt(e,t.db,0,1),8>r?(Bt(e,t.db,1,0),_t(t.Wb[n],e,r)):(Bt(e,t.db,1,1),_t(t.ic,e,r-8)))})(t,e,r,n),0==--t.sc[n]&&(ut(t,n,t.rb,t.Cc,272*n),t.sc[n]=t.rb)}function st(t){return function(t){t.db=r(2),t.Vb=r(16),t.Wb=r(16),t.ic=Et({},8);for(var e=0;16>e;++e)t.Vb[e]=Et({},3),t.Wb[e]=Et({},3)}(t),t.Cc=[],t.sc=[],t}function ft(t,e,r){return t.Cc[272*r+e]}function lt(t,e){for(var r=0;e>r;++r)ut(t,r,t.rb,t.Cc,272*r),t.sc[r]=t.rb}function pt(t,e,n){var o,i;if(null==t.V||t.u!=n||t.I!=e)for(t.I=e,t.qc=(1<o;++o)t.V[o]=bt({})}function ht(t,e,r){return t.V[((e&t.qc)<>>8-t.u)]}function dt(t,e,r){var n,o,i=1;for(o=7;o>=0;--o)n=r>>o&1,Bt(e,t.tb,i,n),i=i<<1|n}function yt(t,e,r,n){var o,i,a,u,c=1,s=1;for(i=7;i>=0;--i)o=n>>i&1,u=s,c&&(u+=1+(a=r>>i&1)<<8,c=a==o),Bt(e,t.tb,u,o),s=s<<1|o}function bt(t){return t.tb=r(768),t}function gt(t,e,r,n){var o,i,a=1,u=7,c=0;if(e)for(;u>=0;--u)if(i=r>>u&1,o=n>>u&1,c+=Mt(t.tb[(1+i<<8)+a],o),a=a<<1|o,i!=o){--u;break}for(;u>=0;--u)o=n>>u&1,c+=Mt(t.tb[a],o),a=a<<1|o;return c}function vt(t){t.j=-1,t.t=0}function mt(t,e){return t.F=e,t.G=r(1<>>--o&1,Bt(e,t.G,i,n),i=i<<1|n}function St(t,e){var r,n,o=1,i=0;for(n=t.F;0!=n;)r=e>>>--n&1,i+=Mt(t.G[o],r),o=(o<<1)+r;return i}function xt(t,e,r){var n,o,i=1;for(o=0;t.F>o;++o)n=1&r,Bt(e,t.G,i,n),i=i<<1|n,r>>=1}function Ot(t,e){var r,n,o=1,i=0;for(n=t.F;0!=n;--n)r=1&e,e>>>=1,i+=Mt(t.G[o],r),o=o<<1|r;return i}function jt(t,e,r,n,o){var i,a,u=1;for(a=0;n>a;++a)Bt(r,t,e+u,i=1&o),u=u<<1|i,o>>=1}function At(t,e,r,n){var o,i,a=1,u=0;for(i=r;0!=i;--i)o=1&n,n>>>=1,u+=Jt[(2047&(t[e+a]-o^-o))>>>2],a=a<<1|o;return u}function Rt(t,e,r){var n,o=e[r];return(-2147483648^(n=(t.E>>>11)*o))>(-2147483648^t.Bb)?(t.E=n,e[r]=o+(2048-o>>>5)<<16>>16,-16777216&t.E||(t.Bb=t.Bb<<8|y(t.Ab),t.E<<=8),0):(t.E-=n,t.Bb-=n,e[r]=o-(o>>>5)<<16>>16,-16777216&t.E||(t.Bb=t.Bb<<8|y(t.Ab),t.E<<=8),1)}function kt(t){for(var e=t.length-1;e>=0;--e)t[e]=1024}function Bt(t,e,r,i){var a,u=e[r];a=(t.E>>>11)*u,i?(t.xc=n(t.xc,o(c(a),[4294967295,0])),t.E-=a,e[r]=u-(u>>>5)<<16>>16):(t.E=a,e[r]=u+(2048-u>>>5)<<16>>16),-16777216&t.E||(t.E<<=8,It(t))}function Tt(t,e,r){for(var o=r-1;o>=0;--o)t.E>>>=1,1==(e>>>o&1)&&(t.xc=n(t.xc,c(t.E))),-16777216&t.E||(t.E<<=8,It(t))}function Pt(t){return n(n(c(t.Jb),t.mc),[4,0])}function It(t){var e,r=s(function(t,e){var r;return r=p(t,e&=63),0>t[1]&&(r=n(r,l([2,0],63-e))),r}(t.xc,32));if(0!=r||i(t.xc,[4278190080,0])<0){t.mc=n(t.mc,c(t.Jb)),e=t.Oc;do{m(t.Ab,e+r),e=255}while(0!=--t.Jb);t.Oc=s(t.xc)>>>24}++t.Jb,t.xc=l(o(t.xc,[16777215,0]),8)}function Mt(t,e){return Jt[(2047&(t-e^-e))>>>2]}function Ut(t){for(var e,r,n,o=0,i=0,a=t.length,u=[],c=[];a>o;++o,++i){if(128&(e=255&t[o]))if(192==(224&e)){if(o+1>=a)return t;if(128!=(192&(r=255&t[++o])))return t;c[i]=(31&e)<<6|63&r}else{if(224!=(240&e))return t;if(o+2>=a)return t;if(128!=(192&(r=255&t[++o])))return t;if(128!=(192&(n=255&t[++o])))return t;c[i]=(15&e)<<12|(63&r)<<6|63&n}else{if(!e)return t;c[i]=e}16383==i&&(u.push(String.fromCharCode.apply(String,c)),i=-1)}return i>0&&(c.length=i,u.push(String.fromCharCode.apply(String,c))),u.join("")}function Lt(t){var e,r,n,o=[],i=0,a=t.length;if("object"==typeof t)return t;for(function(t,e,r,n,o){var i;for(i=e;r>i;++i)n[o++]=t.charCodeAt(i)}(t,0,a,o,0),n=0;a>n;++n)(e=o[n])>=1&&127>=e?++i:i+=!e||e>=128&&2047>=e?2:3;for(r=[],i=0,n=0;a>n;++n)(e=o[n])>=1&&127>=e?r[i++]=e<<24>>24:!e||e>=128&&2047>=e?(r[i++]=(192|e>>6&31)<<24>>24,r[i++]=(128|63&e)<<24>>24):(r[i++]=(224|e>>12&15)<<24>>24,r[i++]=(128|e>>6&63)<<24>>24,r[i++]=(128|63&e)<<24>>24);return r}function Nt(t){return t[1]+t[0]}var Ct=1,Ft=2,Dt=3,qt="function"==typeof setImmediate?setImmediate:setTimeout,zt=4294967296,$t=[4294967295,-zt],Gt=[0,-0x8000000000000000],Wt=[0,0],Vt=[1,0],Ht=function(){var t,e,r,n=[];for(t=0;256>t;++t){for(r=t,e=0;8>e;++e)1&r?r=r>>>1^-306674912:r>>>=1;n[t]=r}return n}(),Yt=function(){var t,e,r,n=2,o=[0,1];for(r=2;22>r;++r)for(e=1<<(r>>1)-1,t=0;e>t;++t,++n)o[n]=r<<24>>24;return o}(),Jt=function(){var t,e,r,n=[];for(e=8;e>=0;--e)for(t=1<<9-e,r=1<<9-e-1;t>r;++r)n[r]=(e<<6)+(t-r<<6>>>9-e-1);return n}(),Kt=function(){var t=[{s:16,f:64,m:0},{s:20,f:64,m:0},{s:19,f:64,m:1},{s:20,f:64,m:1},{s:21,f:128,m:1},{s:22,f:128,m:1},{s:23,f:128,m:1},{s:24,f:255,m:1},{s:25,f:255,m:1}];return function(e){return t[e-1]||t[6]}}();return"undefined"==typeof onmessage||"undefined"!=typeof window&&void 0!==window.document||(onmessage=function(e){e&&e.gc&&(e.gc.action==Ft?t.decompress(e.gc.gc,e.gc.cbn):e.gc.action==Ct&&t.compress(e.gc.gc,e.gc.Rc,e.gc.cbn))}),{compress:function(t,r,n,o){var i,a,u={},c=void 0===n&&void 0===o;if("function"!=typeof n&&(a=n,n=o=0),o=o||function(t){return void 0!==a?e(t,a):void 0},n=n||function(t,e){return void 0!==a?postMessage({action:Ct,cbn:a,result:t,error:e}):void 0},c){for(u.c=S({},Lt(t),Kt(r));D(u.c.yb););return v(u.c.Nb)}try{u.c=S({},Lt(t),Kt(r)),o(0)}catch(t){return n(null,t)}qt(function t(){try{for(var e,r=(new Date).getTime();D(u.c.yb);)if(i=Nt(u.c.yb.Pb)/Nt(u.c.Tb),(new Date).getTime()-r>200)return o(i),qt(t,0),0;o(1),e=v(u.c.Nb),qt(n.bind(null,e),0)}catch(t){n(null,t)}},0)},decompress:function(t,r,n){var o,i,a,u,c={},s=void 0===r&&void 0===n;if("function"!=typeof r&&(i=r,r=n=0),n=n||function(t){return void 0!==i?e(a?t:-1,i):void 0},r=r||function(t,e){return void 0!==i?postMessage({action:Ft,cbn:i,result:t,error:e}):void 0},s){for(c.d=O({},t);D(c.d.yb););return Ut(v(c.d.Nb))}try{c.d=O({},t),u=Nt(c.d.Tb),a=u>-1,n(0)}catch(t){return r(null,t)}qt(function t(){try{for(var e,i=0,s=(new Date).getTime();D(c.d.yb);)if(++i%1e3==0&&(new Date).getTime()-s>200)return a&&(o=Nt(c.d.yb.Z.g)/u,n(o)),qt(t,0),0;n(1),e=Ut(v(c.d.Nb)),qt(r.bind(null,e),0)}catch(t){r(null,t)}},0)}}}();this.LZMA=this.LZMA_WORKER=t},1002:t=>{"use strict";t.exports=Function.prototype.apply},1064:(t,e,r)=>{"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1093:t=>{"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1135:t=>{t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},1189:(t,e,r)=>{"use strict";var n=Array.prototype.slice,o=r(1093),i=Object.keys,a=i?function(t){return i(t)}:r(8875),u=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return o(t)?u(n.call(t)):u(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1237:t=>{"use strict";t.exports=EvalError},1333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1514:t=>{"use strict";t.exports=Math.abs},1791:(t,e,r)=>{var n=r(5172),o=r(5546);t.exports=function t(e,r){function i(t,o,a,u){try{var c=e[t](o),s=c.value;return s instanceof n?r.resolve(s.v).then(function(t){i("next",t,a,u)},function(t){i("throw",t,a,u)}):r.resolve(s).then(function(t){c.value=t,a(c)},function(t){return i("throw",t,a,u)})}catch(t){u(t)}}var a;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(t,e,n){function o(){return new r(function(e,r){i(t,n,e,r)})}return a=a?a.then(o,o):o()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},2205:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(3144);t.exports=function(){return i(n,o,arguments)}},2299:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function I(t){return Object.keys(t).filter(P).concat(f(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function M(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o{"use strict";var n=r(8452),o=r(6642);t.exports=function(){var t=o();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},2682:(t,e,r)=>{"use strict";var n=r(9600),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a,u;arguments.length>=3&&(a=r),u=t,"[object Array]"===o.call(u)?function(t,e,r){for(var n=0,o=t.length;n{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);for(var e=c.allocUnsafe(t>>>0),r=this.head,n=0;r;)l(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return to.length?o.length:t;if(i===o.length?n+=o:n+=o.slice(0,t),0===(t-=i)){i===o.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var o=r.data,i=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,i),0===(t-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,e}},{key:f,value:function(t,e){return s(this,o(o({},e),{},{depth:0,customInspect:!1}))}}])&&a(e.prototype,r),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},2861:(t,e,r)=>{var n=r(8287),o=n.Buffer;function i(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return o(t,e,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=o(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},2955:(t,e,r)=>{"use strict";var n,o=r(5606);function i(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(6238),u=Symbol("lastResolve"),c=Symbol("lastReject"),s=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),p=Symbol("handlePromise"),h=Symbol("stream");function d(t,e){return{value:t,done:e}}function y(t){var e=t[u];if(null!==e){var r=t[h].read();null!==r&&(t[l]=null,t[u]=null,t[c]=null,e(d(r,!1)))}}function b(t){o.nextTick(y,t)}var g=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[s];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[s]?r(t[s]):e(d(void 0,!0))})});var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then(function(){e[f]?r(d(void 0,!0)):e[p](r,n)},n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[p])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var t=this;return new Promise(function(e,r){t[h].destroy(null,function(t){t?r(t):e(d(void 0,!0))})})}),n),g);t.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,f,{value:t._readableState.endEmitted,writable:!0}),i(e,p,{value:function(t,e){var n=r[h].read();n?(r[l]=null,r[u]=null,r[c]=null,t(d(n,!1))):(r[u]=t,r[c]=e)},writable:!0}),e));return r[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[c];return null!==e&&(r[l]=null,r[u]=null,r[c]=null,e(t)),void(r[s]=t)}var n=r[u];null!==n&&(r[l]=null,r[u]=null,r[c]=null,n(d(void 0,!0))),r[f]=!0}),t.on("readable",b.bind(null,r)),r}},2992:(t,e,r)=>{var n,o=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function o(t,e){if(!n[t]){n[t]={};for(var r=0;r>>8,r[2*n+1]=a%256}return r},decompressFromUint8Array:function(e){if(null==e)return i.decompress(e);for(var r=new Array(e.length/2),n=0,o=r.length;n>=1}else{for(o=1,n=0;n>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[f]}else for(o=a[f],n=0;n>=1;0==--l&&(l=Math.pow(2,h),h++),a[s]=p++,f=String(c)}if(""!==f){if(Object.prototype.hasOwnProperty.call(u,f)){if(f.charCodeAt(0)<256){for(n=0;n>=1}else{for(o=1,n=0;n>=1}0==--l&&(l=Math.pow(2,h),h++),delete u[f]}else for(o=a[f],n=0;n>=1;0==--l&&(l=Math.pow(2,h),h++)}for(o=2,n=0;n>=1;for(;;){if(y<<=1,b==e-1){d.push(r(y));break}b++}return d.join("")},decompress:function(t){return null==t?"":""==t?null:i._decompress(t.length,32768,function(e){return t.charCodeAt(e)})},_decompress:function(e,r,n){var o,i,a,u,c,s,f,l=[],p=4,h=4,d=3,y="",b=[],g={val:n(0),position:r,index:1};for(o=0;o<3;o+=1)l[o]=o;for(a=0,c=Math.pow(2,2),s=1;s!=c;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(u>0?1:0)*s,s<<=1;switch(a){case 0:for(a=0,c=Math.pow(2,8),s=1;s!=c;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(u>0?1:0)*s,s<<=1;f=t(a);break;case 1:for(a=0,c=Math.pow(2,16),s=1;s!=c;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(u>0?1:0)*s,s<<=1;f=t(a);break;case 2:return""}for(l[3]=f,i=f,b.push(f);;){if(g.index>e)return"";for(a=0,c=Math.pow(2,d),s=1;s!=c;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(u>0?1:0)*s,s<<=1;switch(f=a){case 0:for(a=0,c=Math.pow(2,8),s=1;s!=c;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(u>0?1:0)*s,s<<=1;l[h++]=t(a),f=h-1,p--;break;case 1:for(a=0,c=Math.pow(2,16),s=1;s!=c;)u=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(u>0?1:0)*s,s<<=1;l[h++]=t(a),f=h-1,p--;break;case 2:return b.join("")}if(0==p&&(p=Math.pow(2,d),d++),l[f])y=l[f];else{if(f!==h)return null;y=i+i.charAt(0)}b.push(y),l[h++]=i+y.charAt(0),i=y,0==--p&&(p=Math.pow(2,d),d++)}}};return i}();void 0===(n=function(){return o}.call(e,r,e,t))||(t.exports=n)},3003:t=>{"use strict";t.exports=function(t){return t!=t}},3070:(t,e,r)=>{"use strict";const n=r(4829),o=r(4571).N,i={196:2,197:3,198:5,199:3,200:4,201:6,202:5,203:9,204:2,205:3,206:5,207:9,208:2,209:3,210:5,211:9,212:3,213:4,214:6,215:10,216:18,217:2,218:3,219:5,222:3,220:3,221:5};function a(t,e,r){return e>=r+t}function u(t,e,r,n,o){let i=e;const a=[];let u=0;for(;u++=192&&s<=195)return function(t){if(192===t)return[null,1];if(194===t)return[!1,1];if(195===t)return[!0,1]}(s);if(s>=196&&s<=198){const e=t.readUIntBE(o,l-1);if(o+=l-1,!a(e,n,l))return null;return[t.slice(o,o+e),l+e]}if(s>=199&&s<=201){const e=t.readUIntBE(o,l-2);o+=l-2;const i=t.readInt8(o);return o+=1,a(e,n,l)?f(t,o,i,e,l,r):null}if(s>=202&&s<=203)return function(t,e,r){let n;4===r&&(n=t.readFloatBE(e));8===r&&(n=t.readDoubleBE(e));return[n,r+1]}(t,o,l-1);if(s>=204&&s<=207)return function(t,e,r){const n=e+r;let o=0;for(;e=208&&s<=211)return function(t,e,r){let n;1===r&&(n=t.readInt8(e));2===r&&(n=t.readInt16BE(e));4===r&&(n=t.readInt32BE(e));8===r&&(n=function(t,e){var r=!(128&~t[e]);if(r){let r=1;for(let n=e+7;n>=e;n--){const e=(255^t[n])+r;t[n]=255&e,r=e>>8}}const n=t.readUInt32BE(e+0),o=t.readUInt32BE(e+4);return(4294967296*n+o)*(r?-1:1)}(t.slice(e,e+8),0));return[n,r+1]}(t,o,l-1);if(s>=212&&s<=216){const e=t.readInt8(o);return o+=1,f(t,o,e,l-2,2,r)}if(s>=217&&s<=219){const e=t.readUIntBE(o,l-1);if(o+=l-1,!a(e,n,l))return null;return[t.toString("utf8",o,o+e),l+e]}if(s>=220&&s<=221){const e=t.readUIntBE(o,l-1);return o+=l-1,u(t,o,e,l,r)}if(s>=222&&s<=223){let e;switch(s){case 222:return e=t.readUInt16BE(o),o+=2,c(t,o,e,3,r);case 223:return e=t.readUInt32BE(o),o+=4,c(t,o,e,5,r)}}if(s>=224)return[s-256,1];throw new Error("not implemented yet")}function f(t,e,r,n,o,i){const a=t.slice(e,e+n),u=i.decodingTypes.get(r);if(!u)throw new Error("unable to find ext type "+r);return[u(a),o+n]}t.exports=function(t,e){const r={decodingTypes:t,options:e,decode:i};return i;function i(t){n.isBufferList(t)||(t=n(t));const e=s(t,0,r);if(!e)throw new o;return t.consume(e[1]),e[0]}}},3093:(t,e,r)=>{"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3126:(t,e,r)=>{"use strict";var n=r(6743),o=r(9675),i=r(76),a=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new o("a function is required");return a(n,i,t)}},3141:(t,e,r)=>{"use strict";var n=r(2861).Buffer,o=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=s,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=f,this.end=l,e=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function s(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function f(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.I=i,i.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return o>0&&(t.lastNeed=o-1),o;if(--n=0)return o>0&&(t.lastNeed=o-2),o;if(--n=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3144:(t,e,r)=>{"use strict";var n=r(6743),o=r(1002),i=r(76),a=r(7119);t.exports=a||n.call(i,o)},3600:(t,e,r)=>{"use strict";t.exports=o;var n=r(4610);function o(t){if(!(this instanceof o))return new o(t);n.call(this,t)}r(6698)(o,n),o.prototype._transform=function(t,e,r){r(null,t)}},3628:(t,e,r)=>{"use strict";var n=r(8648),o=r(1064),i=r(7176);t.exports=n?function(t){return n(t)}:o?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return o(t)}:i?function(t){return i(t)}:null},3738:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},3918:(t,e,r)=>{"use strict";var n=r(5606);function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;et.length)&&(r=t.length),t.substring(r-e.length,r)===e}var w="",E="",_="",S="",x={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function O(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){r[e]=t[e]}),Object.defineProperty(r,"message",{value:t.message}),r}function j(t){return g(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(t,e,r){var o="",i="",a=0,u="",c=!1,s=j(t),f=s.split("\n"),l=j(e).split("\n"),p=0,h="";if("strictEqual"===r&&"object"===b(t)&&"object"===b(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===f.length&&1===l.length&&f[0]!==l[0]){var d=f[0].length+l[0].length;if(d<=10){if(!("object"===b(t)&&null!==t||"object"===b(e)&&null!==e||0===t&&0===e))return"".concat(x[r],"\n\n")+"".concat(f[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r){if(d<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;f[0][p]===l[0][p];)p++;p>2&&(h="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}}for(var y=f[f.length-1],g=l[l.length-1];y===g&&(p++<2?u="\n ".concat(y).concat(u):o=y,f.pop(),l.pop(),0!==f.length&&0!==l.length);)y=f[f.length-1],g=l[l.length-1];var v=Math.max(f.length,l.length);if(0===v){var O=s.split("\n");if(O.length>30)for(O[26]="".concat(w,"...").concat(S);O.length>27;)O.pop();return"".concat(x.notIdentical,"\n\n").concat(O.join("\n"),"\n")}p>3&&(u="\n".concat(w,"...").concat(S).concat(u),c=!0),""!==o&&(u="\n ".concat(o).concat(u),o="");var A=0,R=x[r]+"\n".concat(E,"+ actual").concat(S," ").concat(_,"- expected").concat(S),k=" ".concat(w,"...").concat(S," Lines skipped");for(p=0;p1&&p>2&&(B>4?(i+="\n".concat(w,"...").concat(S),c=!0):B>3&&(i+="\n ".concat(l[p-2]),A++),i+="\n ".concat(l[p-1]),A++),a=p,o+="\n".concat(_,"-").concat(S," ").concat(l[p]),A++;else if(l.length1&&p>2&&(B>4?(i+="\n".concat(w,"...").concat(S),c=!0):B>3&&(i+="\n ".concat(f[p-2]),A++),i+="\n ".concat(f[p-1]),A++),a=p,i+="\n".concat(E,"+").concat(S," ").concat(f[p]),A++;else{var T=l[p],P=f[p],I=P!==T&&(!m(P,",")||P.slice(0,-1)!==T);I&&m(T,",")&&T.slice(0,-1)===P&&(I=!1,P+=","),I?(B>1&&p>2&&(B>4?(i+="\n".concat(w,"...").concat(S),c=!0):B>3&&(i+="\n ".concat(f[p-2]),A++),i+="\n ".concat(f[p-1]),A++),a=p,i+="\n".concat(E,"+").concat(S," ").concat(P),o+="\n".concat(_,"-").concat(S," ").concat(T),A+=2):(i+=o,o="",1!==B&&0!==p||(i+="\n ".concat(P),A++))}if(A>20&&p30)for(h[26]="".concat(w,"...").concat(S);h.length>27;)h.pop();e=1===h.length?p.call(this,"".concat(l," ").concat(h[0])):p.call(this,"".concat(l,"\n\n").concat(h.join("\n"),"\n"))}else{var d=j(a),y="",g=x[o];"notDeepEqual"===o||"notEqual"===o?(d="".concat(x[o],"\n\n").concat(d)).length>1024&&(d="".concat(d.slice(0,1021),"...")):(y="".concat(j(u)),d.length>512&&(d="".concat(d.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===o||"equal"===o?d="".concat(g,"\n\n").concat(d,"\n\nshould equal\n\n"):y=" ".concat(o," ").concat(y)),e=p.call(this,"".concat(d).concat(y))}return Error.stackTraceLimit=c,e.generatedMessage=!r,Object.defineProperty(f(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=a,e.expected=u,e.operator=o,Error.captureStackTrace&&Error.captureStackTrace(f(e),i),e.stack,e.name="AssertionError",s(e)}return a=m,(c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return g(this,i(i({},e),{},{customInspect:!1,depth:0}))}}])&&u(a.prototype,c),l&&u(a,l),Object.defineProperty(a,"prototype",{writable:!1}),m}(l(Error),g.custom);t.exports=R},4035:(t,e,r)=>{"use strict";var n,o=r(6556),i=r(9092)(),a=r(9957),u=r(5795);if(i){var c=o("RegExp.prototype.exec"),s={},f=function(){throw s},l={toString:f,valueOf:f};"symbol"==typeof Symbol.toPrimitive&&(l[Symbol.toPrimitive]=f),n=function(t){if(!t||"object"!=typeof t)return!1;var e=u(t,"lastIndex");if(!(e&&a(e,"value")))return!1;try{c(t,l)}catch(t){return t===s}}}else{var p=o("Object.prototype.toString");n=function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===p(t)}}t.exports=n},4039:(t,e,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(1333);t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},4133:(t,e,r)=>{"use strict";var n=r(487),o=r(8452),i=r(3003),a=r(6642),u=r(2464),c=n(a(),Number);o(c,{getPolyfill:a,implementation:i,shim:u}),t.exports=c},4148:(t,e,r)=>{"use strict";var n=r(5606);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){for(var r=0;r1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o1?r-1:0),o=1;o{t.exports=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4484:t=>{"use strict";var e=function(){};e.prototype.encode=function(t){for(var e,r={},n=(t+"").split(""),o=[],i=n[0],a=256,u=1;u1?r[i]:i.charCodeAt(0)),r[i+e]=a,a++,i=e);o.push(i.length>1?r[i]:i.charCodeAt(0));for(u=0;u{"use strict";const n=r(537);function o(t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t||"unable to decode"}e.N=o,n.inherits(o,Error),e.d=function(t){return t%1!=0}},4610:(t,e,r)=>{"use strict";t.exports=f;var n=r(6048).F,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5382);function s(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{var n=r(5172),o=r(6993),i=r(5869),a=r(887),u=r(1791),c=r(4373),s=r(579);function f(){"use strict";var e=o(),r=e.m(f),l=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===l||"GeneratorFunction"===(e.displayName||e.name))}var h={throw:1,return:2,break:3,continue:3};function d(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,h[t],e)},delegateYield:function(t,o,i){return e.resultName=o,r(n.d,s(t),i)},finish:function(t){return r(n.f,t)}},r=function(t,r,o){n.p=e.prev,n.n=e.next;try{return t(r,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(t.exports=f=function(){return{wrap:function(t,r,n,o){return e.w(d(t),r,n,o&&o.reverse())},isGeneratorFunction:p,mark:e.m,awrap:function(t,e){return new n(t,e)},AsyncIterator:u,async:function(t,e,r,n,o){return(p(e)?a:i)(d(t),e,r,n,o)},keys:c,values:s}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=f,t.exports.__esModule=!0,t.exports.default=t.exports},4643:t=>{function e(t){try{if(!window.localStorage)return!1}catch(t){return!1}var e=window.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,r){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw new Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return t.apply(this,arguments)}}},4756:(t,e,r)=>{var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},4829:(t,e,r)=>{"use strict";const n=r(8399).Duplex,o=r(6698),i=r(7813);function a(t){if(!(this instanceof a))return new a(t);if("function"==typeof t){this._callback=t;const e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",function(t){t.on("error",e)}),this.on("unpipe",function(t){t.removeListener("error",e)}),t=null}i._init.call(this,t),n.call(this)}o(a,n),Object.assign(a.prototype,i.prototype),a.prototype._new=function(t){return new a(t)},a.prototype._write=function(t,e,r){this._appendBuffer(t),"function"==typeof r&&r()},a.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},a.prototype.end=function(t){n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(t,e){this._bufs.length=0,this.length=0,e(t)},a.prototype._isBufferList=function(t){return t instanceof a||t instanceof i||a.isBufferList(t)},a.isBufferList=i.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=i},4998:(t,e,r)=>{"use strict";const n=r(2861).Buffer,o=r(4148),i=r(4829),a=r(63),u=r(3070),c=r(6506),s=r(4571).N,f=r(6154);t.exports=function(t){const e=[],r=new Map;return t=t||{forceFloat64:!1,compatibilityMode:!1,disableTimestampEncoding:!1,preferMap:!1,protoAction:"error"},r.set(f.type,f.decode),t.disableTimestampEncoding||e.push(f),{encode:c(e,t),decode:u(r,t),register:function(t,e,r,a){return o(e,"must have a constructor"),o(r,"must have an encode function"),o(t>=0,"must have a non-negative type"),o(a,"must have a decode function"),this.registerEncoder(function(t){return t instanceof e},function(e){const o=i(),a=n.allocUnsafe(1);return a.writeInt8(t,0),o.append(a),o.append(r(e)),o}),this.registerDecoder(t,a),this},registerEncoder:function(t,r){return o(t,"must have an encode function"),o(r,"must have an encode function"),e.push({check:t,encode:r}),this},registerDecoder:function(t,e){return o(t>=0,"must have a non-negative type"),o(e,"must have a decode function"),r.set(t,e),this},encoder:a.encoder,decoder:a.decoder,buffer:!0,type:"msgpack5",IncompleteBufferError:s}}},5157:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5172:t=>{t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},5253:(t,e,r)=>{var n=r(8287).Buffer;e.version="1.0.0",e.encode=function(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.decode=function(t){return t=(t+=Array(5-t.length%4).join("=")).replace(/\-/g,"+").replace(/\_/g,"/"),new n(t,"base64")},e.validate=function(t){return/^[A-Za-z0-9\-_]+$/.test(t)}},5291:(t,e,r)=>{"use strict";var n=r(6048).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,o){var i=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return t.objectMode?16:16384}}},5340:()=>{},5345:t=>{"use strict";t.exports=URIError},5382:(t,e,r)=>{"use strict";var n=r(5606),o=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(5412),a=r(6708);r(6698)(f,i);for(var u=o(a.prototype),c=0;c{"use strict";var n,o=r(5606);t.exports=O,O.ReadableState=x;r(7007).EventEmitter;var i=function(t,e){return t.listeners(e).length},a=r(345),u=r(8287).Buffer,c=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,f=r(9838);s=f&&f.debuglog?f.debuglog("stream"):function(){};var l,p,h,d=r(2726),y=r(5896),b=r(5291).getHighWaterMark,g=r(6048).F,v=g.ERR_INVALID_ARG_TYPE,m=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,E=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(O,a);var _=y.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(t,e,o){n=n||r(5382),t=t||{},"boolean"!=typeof o&&(o=e instanceof n),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",o),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(3141).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function O(t){if(n=n||r(5382),!(this instanceof O))return new O(t);var e=this instanceof n;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function j(t,e,r,n,o){s("readableAddChunk",e);var i,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(s("onEofChunk"),e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T(t)))}(t,a);else if(o||(i=function(t,e){var r;n=e,u.isBuffer(n)||n instanceof c||"string"==typeof e||void 0===e||t.objectMode||(r=new v("chunk",["string","Buffer","Uint8Array"],e));var n;return r}(a,e)),i)_(t,i);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)a.endEmitted?_(t,new E):A(t,a,e,!0);else if(a.ended)_(t,new m);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):P(t,a)):A(t,a,e,!1)}else n||(a.reading=!1,P(t,a));return!a.ended&&(a.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=R?t=R:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,o.nextTick(T,t))}function T(t){var e=t._readableState;s("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function U(t){s("readable nexttick read 0"),t.read(0)}function L(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function F(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,o.nextTick(D,e,t))}function D(t,e){if(s("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function q(t,e){for(var r=0,n=t.length;r=e.highWaterMark:e.length>0)||e.ended))return s("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):B(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&F(this),null;var n,o=e.needReadable;return s("need readable",o),(0===e.length||e.length-t0?C(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&F(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(t){_(this,new w("_read()"))},O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,s("pipe count=%d opts=%j",n.pipesCount,e);var a=(!e||!1!==e.end)&&t!==o.stdout&&t!==o.stderr?c:b;function u(e,o){s("onunpipe"),e===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),t.removeListener("close",d),t.removeListener("finish",y),t.removeListener("drain",f),t.removeListener("error",h),t.removeListener("unpipe",u),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",p),l=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function c(){s("onend"),t.end()}n.endEmitted?o.nextTick(a):r.once("end",a),t.on("unpipe",u);var f=function(t){return function(){var e=t._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&i(t,"data")&&(e.flowing=!0,N(t))}}(r);t.on("drain",f);var l=!1;function p(e){s("ondata");var o=t.write(e);s("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!l&&(s("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){s("onerror",e),b(),t.removeListener("error",h),0===i(t,"error")&&_(t,e)}function d(){t.removeListener("finish",y),b()}function y(){s("onfinish"),t.removeListener("close",d),b()}function b(){s("unpipe"),r.unpipe(t)}return r.on("data",p),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",d),t.once("finish",y),t.emit("pipe",r),n.flowing||(s("pipe resume"),r.resume()),t},O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,s("on readable",n.length,n.reading),n.length?B(this):n.reading||o.nextTick(U,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(t,e){var r=a.prototype.removeListener.call(this,t,e);return"readable"===t&&o.nextTick(M,this),r},O.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||o.nextTick(M,this),e},O.prototype.resume=function(){var t=this._readableState;return t.flowing||(s("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(L,t,e))}(this,t)),t.paused=!1,this},O.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",function(){if(s("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(o){(s("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))}),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var i=0;i{function e(r,n,o,i){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}t.exports=e=function(t,r,n,o){function i(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?a?a(t,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[r]=n:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5606:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var u,c=[],s=!1,f=-1;function l(){s&&u&&(s=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!s){var t=a(l);s=!0;for(var e=c.length;e;){for(u=c,c=[];++f1)for(var r=1;r{"use strict";var n=r(5767);t.exports=function(t){return!!n(t)}},5767:(t,e,r)=>{"use strict";var n=r(2682),o=r(9209),i=r(487),a=r(6556),u=r(5795),c=r(3628),s=a("Object.prototype.toString"),f=r(9092)(),l="undefined"==typeof globalThis?window:globalThis,p=o(),h=a("String.prototype.slice"),d=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r-1?e:"Object"===e&&function(t){var e=!1;return n(y,function(r,n){if(!e)try{r(t),e=h(n,1)}catch(t){}}),e}(t)}return u?function(t){var e=!1;return n(y,function(r,n){if(!e)try{"$"+r(t)===n&&(e=h(n,1))}catch(t){}}),e}(t):null}},5795:(t,e,r)=>{"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5869:(t,e,r)=>{var n=r(887);t.exports=function(t,e,r,o,i){var a=n(t,e,r,o,i);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},5880:t=>{"use strict";t.exports=Math.pow},5896:(t,e,r)=>{"use strict";var n=r(5606);function o(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,u=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return u||c?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(i,r):(r._writableState.errorEmitted=!0,n.nextTick(o,r,t)):n.nextTick(o,r,t):e?(n.nextTick(i,r),e(t)):n.nextTick(i,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6048:t=>{"use strict";var e={};function r(t,r,n){n||(n=Error);var o=function(t){var e,n;function o(e,n,o){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,o))||this}return n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,o}(n);o.prototype.name=n.name,o.prototype.code=t,e[t]=o}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var o,i,a,u;if("string"==typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(o="must not be",e=e.replace(/^not /,"")):o="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))u="The ".concat(t," ").concat(o," ").concat(n(e,"type"));else{var c=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(c," ").concat(o," ").concat(n(e,"type"))}return u+=". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},6154:(t,e,r)=>{var n=r(8287).Buffer;t.exports={check:function(t){return"function"==typeof t.getDate},type:-1,encode:function(t){if(null===t)return;const e=1*t,r=Math.floor(e/1e3),o=1e6*(e-1e3*r);if(r<0||r>17179869184){const t=n.allocUnsafe(13);t[0]=-1,t.writeUInt32BE(o,1);let e="";if(r>=0){const t="0000000000000000";e=r.toString(16),e=t.slice(0,-1*e.length)+e}else{let t=(-1*r).toString(2),n=t.length-1;for(;"0"===t[n];)n--;t=t.slice(0,n).split("").map(function(t){return"1"===t?0:1}).join("")+t.slice(n,t.length);t="1111111111111111111111111111111111111111111111111111111111111111".slice(0,-1*t.length)+t,t.match(/.{1,8}/g).forEach(function(t){1===(t=parseInt(t,2).toString(16)).length&&(t="0"+t),e+=t})}return t.write(e,5,"hex"),t}if(o||r>4294967295){const t=n.allocUnsafe(9);t[0]=-1;const e=4*o+r/Math.pow(2,32)&4294967295,i=4294967295&r;return t.writeInt32BE(e,1),t.writeInt32BE(i,5),t}{const t=n.allocUnsafe(5);return t[0]=-1,t.writeUInt32BE(Math.floor(e/1e3),1),t}},decode:function(t){let e,r,n,o,i=0;switch(t.length){case 4:e=t.readUInt32BE(0);break;case 8:r=t.readUInt32BE(0),n=t.readUInt32BE(4),i=r/4,e=(3&r)*Math.pow(2,32)+n;break;case 12:if(o=t.toString("hex",4,12),128&parseInt(t.toString("hex",4,6),16)){let t="";const r="00000000";o.match(/.{1,2}/g).forEach(function(e){e=parseInt(e,16).toString(2),e=r.slice(0,-1*e.length)+e,t+=e}),e=-1*parseInt(t.split("").map(function(t){return"1"===t?0:1}).join(""),2)-1}else e=parseInt(o,16);i=t.readUInt32BE(0)}const a=1e3*e+Math.round(i/1e6);return new Date(a)}}},6188:t=>{"use strict";t.exports=Math.max},6238:(t,e,r)=>{"use strict";var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,r,i){if("function"==typeof r)return t(e,null,r);r||(r={}),i=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),o=0;o{"use strict";const n=r(2861).Buffer,o=r(4829),i=r(4571).d;function a(t,e,r){const n=r%4294967296,o=Math.floor(r/4294967296);t.writeUInt32BE(o,e+0),t.writeUInt32BE(n,e+4)}t.exports=function(t,e){function r(u){if(void 0===u)throw new Error("undefined is not encodable in msgpack!");if(null===u)return n.from([192]);if(!0===u)return n.from([195]);if(!1===u)return n.from([194]);if(u instanceof Map)return function(t,e,r){const n=[f(t.size,128,222)],i=[...t.keys()];e.preferMap||i.every(t=>"string"==typeof t)&&console.warn("Map with string only keys will be deserialized as an object!");return i.forEach(e=>{n.push(r(e),r(t.get(e)))}),o(n)}(u,e,r);if("string"==typeof u)return function(t,e){const r=n.byteLength(t);let o;r<32?(o=n.allocUnsafe(1+r),o[0]=160|r,r>0&&o.write(t,1)):r<=255&&!e.compatibilityMode?(o=n.allocUnsafe(2+r),o[0]=217,o[1]=r,o.write(t,2)):r<=65535?(o=n.allocUnsafe(3+r),o[0]=218,o.writeUInt16BE(r,1),o.write(t,3)):(o=n.allocUnsafe(5+r),o[0]=219,o.writeUInt32BE(r,1),o.write(t,5));return o}(u,e);if(u&&(u.readUInt32LE||u instanceof Uint8Array)){u instanceof Uint8Array&&(u=n.from(u));const t=e.compatibilityMode?p:l;return o([t(u.length),u])}if(Array.isArray(u))return function(t,e){const r=[f(t.length,144,220)];if(t.forEach(t=>{r.push(e(t))}),r.length!==t.length+1)throw new Error("Sparse arrays are not encodable in msgpack");return o(r)}(u,r);if("object"==typeof u)return function(t,e){const r=e.find(e=>e.check(t));if(!r)return null;const n=r.encode(t);return n?o([s(n.length-1),n]):null}(u,t)||function(t,e,r){const n=[];for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0!==t[e]&&"function"!=typeof t[e]&&n.push(e);const i=[f(n.length,128,222)];e.sortKeys&&n.sort();return n.forEach(e=>{i.push(r(e),r(t[e]))}),o(i)}(u,e,r);if("number"==typeof u)return function(t,e){let r;if(i(t))return c(t,e.forceFloat64);if(Math.abs(t)>9007199254740991)return c(t,!0);if(t>=0){if(t<128)return n.from([t]);if(t<256)return n.from([204,t]);if(t<65536)return n.from([205,255&t>>8,255&t]);if(t<=4294967295)return n.from([206,255&t>>24,255&t>>16,255&t>>8,255&t]);t<=9007199254740991&&(r=n.allocUnsafe(9),r[0]=207,a(r,1,t))}else t>=-32?(r=n.allocUnsafe(1),r[0]=256+t):t>=-128?(r=n.allocUnsafe(2),r[0]=208,r.writeInt8(t,1)):t>=-32768?(r=n.allocUnsafe(3),r[0]=209,r.writeInt16BE(t,1)):t>-214748365?(r=n.allocUnsafe(5),r[0]=210,r.writeInt32BE(t,1)):t>=-9007199254740991&&(r=n.allocUnsafe(9),r[0]=211,function(t,e,r){const n=r<0;r=Math.abs(r),a(t,e,r),n&&function(t,e){let r=e+8;for(;r-- >e;)if(0!==t[r]){t[r]=1+(255^t[r]);break}for(;r-- >e;)t[r]=255^t[r]}(t,e)}(r,1,t));return r}(u,e);throw new Error("not implemented yet")}return function(t){return r(t).slice()}};const u=Math.fround;function c(t,e){let r;return!e&&u&&Object.is(u(t),t)?(r=n.allocUnsafe(5),r[0]=202,r.writeFloatBE(t,1)):(r=n.allocUnsafe(9),r[0]=203,r.writeDoubleBE(t,1)),r}function s(t){return 1===t?n.from([212]):2===t?n.from([213]):4===t?n.from([214]):8===t?n.from([215]):16===t?n.from([216]):t<256?n.from([199,t]):t<65536?n.from([200,t>>8,255&t]):n.from([201,t>>24,t>>16&255,t>>8&255,255&t])}function f(t,e,r){if(t<16)return n.from([e|t]);const o=t<65536?2:4,i=n.allocUnsafe(1+o);return i[0]=t<65536?r:r+1,i.writeUIntBE(t,1,o),i}function l(t){let e;return t<=255?(e=n.allocUnsafe(2),e[0]=196,e[1]=t):t<=65535?(e=n.allocUnsafe(3),e[0]=197,e.writeUInt16BE(t,1)):(e=n.allocUnsafe(5),e[0]=198,e.writeUInt32BE(t,1)),e}function p(t){let e;return t<=31?(e=n.allocUnsafe(1),e[0]=160|t):t<=65535?(e=n.allocUnsafe(3),e[0]=218,e.writeUInt16BE(t,1)):(e=n.allocUnsafe(5),e[0]=219,e.writeUInt32BE(t,1)),e}},6549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},6556:(t,e,r)=>{"use strict";var n=r(453),o=r(3126),i=o([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o([r]):r}},6576:(t,e,r)=>{"use strict";var n=r(9394),o=r(8452);t.exports=function(){var t=n();return o(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578:t=>{"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6642:(t,e,r)=>{"use strict";var n=r(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6708:(t,e,r)=>{"use strict";var n,o=r(5606);function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var o=n.callback;e.pendingcb--,o(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=O,O.WritableState=x;var a={deprecate:r(4643)},u=r(345),c=r(8287).Buffer,s=("undefined"!=typeof window||"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,l=r(5896),p=r(5291).getHighWaterMark,h=r(6048).F,d=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,v=h.ERR_STREAM_DESTROYED,m=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,E=h.ERR_UNKNOWN_ENCODING,_=l.errorOrDestroy;function S(){}function x(t,e,a){n=n||r(5382),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=p(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new b;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(T,t,e),t._writableState.errorEmitted=!0,_(t,n)):(i(n),t._writableState.errorEmitted=!0,_(t,n),T(t,e))}(t,r,n,e,i);else{var a=k(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||R(t,r),n?o.nextTick(A,t,r,a,i):A(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(t){var e=this instanceof(n=n||r(5382));if(!e&&!f.call(O,this))return new O(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function j(t,e,r,n,o,i,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),T(t,e)}function R(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,o=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var u=0,c=!0;r;)o[u]=r,r.isBuf||(c=!1),r=r.next,u+=1;o.allBuffers=c,j(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var s=r.chunk,f=r.encoding,l=r.callback;if(j(t,e,!1,e.objectMode?1:s.length,s,f,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function B(t,e){t._final(function(r){e.pendingcb--,r&&_(t,r),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function T(t,e){var r=k(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,o.nextTick(B,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(6698)(O,u),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===O&&(t&&t._writableState instanceof x)}})):f=function(t){return t instanceof this},O.prototype.pipe=function(){_(this,new g)},O.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,u=!i.objectMode&&(n=t,c.isBuffer(n)||n instanceof s);return u&&!c.isBuffer(t)&&(t=function(t){return c.from(t)}(t)),"function"==typeof e&&(r=e,e=null),u?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=S),i.ending?function(t,e){var r=new w;_(t,r),o.nextTick(e,r)}(this,r):(u||function(t,e,r,n){var i;return null===r?i=new m:"string"==typeof r||e.objectMode||(i=new d("chunk",["string","Buffer"],r)),!i||(_(t,i),o.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,o,i){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=c.from(e,r));return e}(e,n,o);n!==a&&(r=!0,o="buffer",n=a)}var u=e.objectMode?1:n.length;e.length+=u;var s=e.length-1))throw new E(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(t,e){e(t)}},6743:(t,e,r)=>{"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},6897:(t,e,r)=>{"use strict";var n=r(453),o=r(41),i=r(592)(),a=r(5795),u=r(9675),c=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new u("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||c(e)!==e)throw new u("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,s=!0;if("length"in t&&a){var f=a(t,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(s=!1)}return(n||s||!r)&&(i?o(t,"length",e,!0,!0):o(t,"length",e)),t}},6993:(t,e,r)=>{var n=r(5546);function o(){var e,r,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.toStringTag||"@@toStringTag";function c(t,o,i,a){var u=o&&o.prototype instanceof f?o:f,c=Object.create(u.prototype);return n(c,"_invoke",function(t,n,o){var i,a,u,c=0,f=o||[],l=!1,p={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return i=t,a=0,u=e,p.n=r,s}};function h(t,n){for(a=t,u=n,r=0;!l&&c&&!o&&r3?(o=d===n)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=t<2&&hn||n>d)&&(i[4]=t,i[5]=n,p.n=d,a=0))}if(o||t>1)return s;throw l=!0,n}return function(o,f,d){if(c>1)throw TypeError("Generator is already running");for(l&&1===f&&h(f,d),a=f,u=d;(r=a<2?e:u)||!l;){i||(a?a<3?(a>1&&(p.n=-1),h(a,u)):p.n=u:p.v=u);try{if(c=2,i){if(a||(o="next"),r=i[o]){if(!(r=r.call(i,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,a<2&&(a=0)}else 1===a&&(r=i.return)&&r.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((r=(l=p.n<0)?u:t.call(n,p))!==s)break}catch(t){i=e,a=1,u=t}finally{c=1}}return{value:r,done:l}}}(t,i,a),!0),c}var s={};function f(){}function l(){}function p(){}r=Object.getPrototypeOf;var h=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),d=p.prototype=f.prototype=Object.create(h);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,n(t,u,"GeneratorFunction")),t.prototype=Object.create(d),t}return l.prototype=p,n(d,"constructor",p),n(p,"constructor",l),l.displayName="GeneratorFunction",n(p,u,"GeneratorFunction"),n(d),n(d,u,"Generator"),n(d,a,function(){return this}),n(d,"toString",function(){return"[object Generator]"}),(t.exports=o=function(){return{w:c,m:y}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7007:t=>{"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise(function(r,n){function o(r){t.removeListener(e,i),n(r)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}y(t,e,i,{once:!0}),"error"!==e&&function(t,e,r){"function"==typeof t.on&&y(t,"error",e,r)}(t,o,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function s(t,e,r,n){var o,i,a,s;if(u(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),a=i[e]),void 0===a)a=i[e]=r,++t._eventsCount;else if("function"==typeof a?a=i[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(t))>0&&a.length>o&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=e,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function p(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var s=c.length,f=d(c,s);for(r=0;r=0;i--)if(r[i]===e||r[i].listener===e){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return p(this,t,!0)},i.prototype.rawListeners=function(t){return p(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},7119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7176:(t,e,r)=>{"use strict";var n,o=r(3126),i=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&i&&i(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;t.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(t){return c(null==t?t:u(t))}},7244:(t,e,r)=>{"use strict";var n=r(9092)(),o=r(6556)("Object.prototype.toString"),i=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},a=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"length"in t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"callee"in t&&"[object Function]"===o(t.callee)},u=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=u?i:a},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=u(t),a=i[0],c=i[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,c)),f=0,l=c>0?a-4:a;for(r=0;r>16&255,s[f++]=e>>8&255,s[f++]=255&e;2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,s[f++]=255&e);1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,s[f++]=e>>8&255,s[f++]=255&e);return s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,u=0,c=n-o;uc?c:u+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function s(t,e,r){for(var n,o=[],i=e;i{"use strict";var n=r(8452),o=r(487),i=r(9211),a=r(9394),u=r(6576),c=o(a(),Object);n(c,{getPolyfill:a,implementation:i,shim:u}),t.exports=c},7758:(t,e,r)=>{"use strict";var n;var o=r(6048).F,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(t){if(t)throw t}function c(t){t()}function s(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),o=0;o0,function(t){f||(f=t),t&&p.forEach(c),i||(p.forEach(c),l(f))})});return e.reduce(s)}},7813:(t,e,r)=>{"use strict";const{Buffer:n}=r(8287),o=Symbol.for("BufferList");function i(t){if(!(this instanceof i))return new i(t);i._init.call(this,t)}i._init=function(t){Object.defineProperty(this,o,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},i.prototype._new=function(t){return new i(t)},i.prototype._offset=function(t){if(0===t)return[0,0];let e=0;for(let r=0;rthis.length||t<0)return;const e=this._offset(t);return this._bufs[e[0]][e[1]]},i.prototype.slice=function(t,e){return"number"==typeof t&&t<0&&(t+=this.length),"number"==typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},i.prototype.copy=function(t,e,r,o){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof o||o>this.length)&&(o=this.length),r>=this.length)return t||n.alloc(0);if(o<=0)return t||n.alloc(0);const i=!!t,a=this._offset(r),u=o-r;let c=u,s=i&&e||0,f=a[1];if(0===r&&o===this.length){if(!i)return 1===this._bufs.length?this._bufs[0]:n.concat(this._bufs,this.length);for(let e=0;er)){this._bufs[e].copy(t,s,f,f+c),s+=r;break}this._bufs[e].copy(t,s,f),s+=r,c-=r,f&&(f=0)}return t.length>s?t.slice(0,s):t},i.prototype.shallowSlice=function(t,e){if(t=t||0,e="number"!=typeof e?this.length:e,t<0&&(t+=this.length),e<0&&(e+=this.length),t===e)return this._new();const r=this._offset(t),n=this._offset(e),o=this._bufs.slice(r[0],n[0]+1);return 0===n[1]?o.pop():o[o.length-1]=o[o.length-1].slice(0,n[1]),0!==r[1]&&(o[0]=o[0].slice(r[1])),this._new(o)},i.prototype.toString=function(t,e,r){return this.slice(e,r).toString(t)},i.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},i.prototype.duplicate=function(){const t=this._new();for(let e=0;ethis.length?this.length:e;const o=this._offset(e);let i=o[0],a=o[1];for(;i=t.length){const r=e.indexOf(t,a);if(-1!==r)return this._reverseOffset([i,r]);a=e.length-t.length+1}else{const e=this._reverseOffset([i,a]);if(this._match(e,t))return e;a++}}a=0}return-1},i.prototype._match=function(t,e){if(this.length-t{"use strict";t.exports=Math.min},8068:t=>{"use strict";t.exports=SyntaxError},8075:(t,e,r)=>{"use strict";var n=r(453),o=r(487),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?o(r):r}},8184:(t,e,r)=>{"use strict";var n,o=r(6556),i=r(9721)(/^\s*(?:function)?\*/),a=r(9092)(),u=r(3628),c=o("Object.prototype.toString"),s=o("Function.prototype.toString");t.exports=function(t){if("function"!=typeof t)return!1;if(i(s(t)))return!0;if(!a)return"[object GeneratorFunction]"===c(t);if(!u)return!1;if(void 0===n){var e=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(t){}}();n=!!e&&u(e)}return u(t)===n}},8287:(t,e,r)=>{"use strict";const n=r(7526),o=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function u(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|y(t,e);let n=u(r);const o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(J(t,Uint8Array)){const e=new Uint8Array(t);return h(e.buffer,e.byteOffset,e.byteLength)}return p(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return h(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return h(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return c.from(n,e,r);const o=function(t){if(c.isBuffer(t)){const e=0|d(t.length),r=u(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||K(t.length)?u(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return f(t),u(t<0?0:0|d(t))}function p(t){const e=t.length<0?0:0|d(t.length),r=u(e);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function y(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return H(t).length;default:if(o)return n?-1:V(t).length;e=(""+e).toLowerCase(),o=!0}}function b(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,r);case"utf8":case"utf-8":return j(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),K(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=c.from(e,n)),c.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){let i,a=1,u=t.length,c=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,u/=2,c/=2,r/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let n=-1;for(i=r;iu&&(r=u-c),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=e.length;let a;for(n>i/2&&(n=i/2),a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function O(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function j(t,e,r){r=Math.min(t.length,r);const n=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+a<=r){let r,n,u,c;switch(a){case 1:e<128&&(i=e);break;case 2:r=t[o+1],128==(192&r)&&(c=(31&e)<<6|63&r,c>127&&(i=c));break;case 3:r=t[o+1],n=t[o+2],128==(192&r)&&128==(192&n)&&(c=(15&e)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=t[o+1],n=t[o+2],u=t[o+3],128==(192&r)&&128==(192&n)&&128==(192&u)&&(c=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&u,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(t){const e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,o)}o+=e.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(t+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(t,e,r,n,o){if(J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const u=Math.min(i,a),s=this.slice(n,o),f=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return _(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function R(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;on)&&(r=n);let o="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,r,n,o,i){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function M(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function U(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function L(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,i){return e=+e,r>>>=0,i||L(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function C(t,e,r,n,i){return e=+e,r>>>=0,i||L(t,0,r,8),o.write(t,e,r,n,52,8),r+8}c.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||P(t,e,this.length);let n=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,r||P(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||P(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=Q(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||P(t,e,this.length);let n=this[t],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*e)),n},c.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||P(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},c.prototype.readInt8=function(t,e){return t>>>=0,e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||P(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(t,e){t>>>=0,e||P(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=Q(function(t){$(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||G(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||P(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||P(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||P(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||P(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){I(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,!n){I(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=Q(function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Q(function(t,e=0){return U(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);I(this,t,e,r,n-1,-n)}let o=0,i=1,a=0;for(this[e]=255&t;++o>>=0,!n){const n=Math.pow(2,8*r-1);I(this,t,e,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+r},c.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=Q(function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Q(function(t,e=0){return U(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},c.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},c.prototype.writeDoubleLE=function(t,e,r){return C(this,t,e,!0,r)},c.prototype.writeDoubleBE=function(t,e,r){return C(this,t,e,!1,r)},c.prototype.copy=function(t,e,r,n){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function z(t,e,r,n,o,i){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new F.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){$(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||G(e,t.length-(r+1))}(n,o,i)}function $(t,e){if("number"!=typeof t)throw new F.ERR_INVALID_ARG_TYPE(e,"number",t)}function G(t,e,r){if(Math.floor(t)!==t)throw $(t,r),new F.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new F.ERR_BUFFER_OUT_OF_BOUNDS;throw new F.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}D("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),D("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),D("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=q(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=q(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const n=t.length;let o=null;const i=[];for(let a=0;a55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function H(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,r,n){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}const Z=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function Q(t){return"undefined"==typeof BigInt?X:t}function X(){throw new Error("BigInt not supported")}},8399:(t,e,r)=>{(e=t.exports=r(5412)).Stream=e,e.Readable=e,e.Writable=r(6708),e.Duplex=r(5382),e.Transform=r(4610),e.PassThrough=r(3600),e.finished=r(6238),e.pipeline=r(7758)},8403:(t,e,r)=>{"use strict";var n=r(1189),o=r(1333)(),i=r(6556),a=r(9612),u=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),s=o?a.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r=a(t);if(1===arguments.length)return r;for(var i=1;i{"use strict";var n=r(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,u=r(41),c=r(592)(),s=function(t,e,r,n){if(e in t)if(!0===n){if(t[e]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==i.call(o)||!n())return;var o;c?u(t,e,r,!0):u(t,e,r)},f=function(t,e){var r=arguments.length>2?arguments[2]:{},i=n(e);o&&(i=a.call(i,Object.getOwnPropertySymbols(e)));for(var u=0;u{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8875:(t,e,r)=>{"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(1093),u=Object.prototype.propertyIsEnumerable,c=!u.call({toString:null},"toString"),s=u.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===i.call(t),n=a(t),u=e&&"[object String]"===i.call(t),p=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=s&&r;if(u&&t.length>0&&!o.call(t,0))for(var y=0;y0)for(var b=0;b{"use strict";t.exports=Math.floor},9032:(t,e,r)=>{"use strict";var n=r(7244),o=r(8184),i=r(5767),a=r(5680);function u(t){return t.call.bind(t)}var c="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,f=u(Object.prototype.toString),l=u(Number.prototype.valueOf),p=u(String.prototype.valueOf),h=u(Boolean.prototype.valueOf);if(c)var d=u(BigInt.prototype.valueOf);if(s)var y=u(Symbol.prototype.valueOf);function b(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function g(t){return"[object Map]"===f(t)}function v(t){return"[object Set]"===f(t)}function m(t){return"[object WeakMap]"===f(t)}function w(t){return"[object WeakSet]"===f(t)}function E(t){return"[object ArrayBuffer]"===f(t)}function _(t){return"undefined"!=typeof ArrayBuffer&&(E.working?E(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===f(t)}function x(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=o,e.isTypedArray=a,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||x(t)},e.isUint8Array=function(t){return"Uint8Array"===i(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},e.isUint16Array=function(t){return"Uint16Array"===i(t)},e.isUint32Array=function(t){return"Uint32Array"===i(t)},e.isInt8Array=function(t){return"Int8Array"===i(t)},e.isInt16Array=function(t){return"Int16Array"===i(t)},e.isInt32Array=function(t){return"Int32Array"===i(t)},e.isFloat32Array=function(t){return"Float32Array"===i(t)},e.isFloat64Array=function(t){return"Float64Array"===i(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},g.working="undefined"!=typeof Map&&g(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(g.working?g(t):t instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(v.working?v(t):t instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(m.working?m(t):t instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),e.isArrayBuffer=_,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var O="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function j(t){return"[object SharedArrayBuffer]"===f(t)}function A(t){return void 0!==O&&(void 0===j.working&&(j.working=j(new O)),j.working?j(t):t instanceof O)}function R(t){return b(t,l)}function k(t){return b(t,p)}function B(t){return b(t,h)}function T(t){return c&&b(t,d)}function P(t){return s&&b(t,y)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===f(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===f(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===f(t)},e.isGeneratorObject=function(t){return"[object Generator]"===f(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===f(t)},e.isNumberObject=R,e.isStringObject=k,e.isBooleanObject=B,e.isBigIntObject=T,e.isSymbolObject=P,e.isBoxedPrimitive=function(t){return R(t)||k(t)||B(t)||T(t)||P(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(_(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})})},9092:(t,e,r)=>{"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133:(t,e,r)=>{"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n{"use strict";var n=r(6578),o="undefined"==typeof globalThis?window:globalThis;t.exports=function(){for(var t=[],e=0;e{"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9290:t=>{"use strict";t.exports=RangeError},9353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n{"use strict";t.exports=Error},9394:(t,e,r)=>{"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9538:t=>{"use strict";t.exports=ReferenceError},9597:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){for(var r=0;r2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}p("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),p("ERR_INVALID_ARG_TYPE",function(t,e,o){var i,a,u,c;if(void 0===s&&(s=r(4148)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(a="not ",e.substr(!u||u<0?0:+u,a.length)===a)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))c="The ".concat(t," ").concat(i," ").concat(h(e,"type"));else{var f=function(t,e,r){return"number"!=typeof r&&(r=0),!(r+e.length>t.length)&&-1!==t.indexOf(e,r)}(t,".")?"property":"argument";c='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(h(e,"type"))}return c+=". Received type ".concat(n(o))},TypeError),p("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=r(537));var o=f.inspect(e);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),p("ERR_INVALID_RETURN_VALUE",function(t,e,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(o,".")},TypeError),p("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=new Array(t),n=0;n0,"At least one arg needs to be specified");var o="The ",i=e.length;switch(e=e.map(function(t){return'"'.concat(t,'"')}),i){case 1:o+="".concat(e[0]," argument");break;case 2:o+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:o+=e.slice(0,i-1).join(", "),o+=", and ".concat(e[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),t.exports.codes=l},9600:t=>{"use strict";var e,r,n=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},o(function(){throw 42},null,e)}catch(t){t!==r&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(t){try{var e=n.call(t);return i.test(e)}catch(t){return!1}},u=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},c=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(l=function(t){if((f||!t)&&(void 0===t||"object"==typeof t))try{var e=c.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=o?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{o(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&u(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(s)return u(t);if(a(t))return!1;var e=c.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&u(t)}},9612:t=>{"use strict";t.exports=Object},9675:t=>{"use strict";t.exports=TypeError},9721:(t,e,r)=>{"use strict";var n=r(6556),o=r(4035),i=n("RegExp.prototype.exec"),a=r(9675);t.exports=function(t){if(!o(t))throw new a("`regex` must be a RegExp");return function(e){return null!==i(t,e)}}},9838:()=>{},9957:(t,e,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=r(6743);t.exports=i.call(n,o)}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t].call(i.exports,i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var u=2&n&&r;("object"==typeof u||"function"==typeof u)&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach(t=>a[t]=()=>r[t]);return a.default=()=>r,o.d(i,a),i},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})();var i={};return(()=>{"use strict";function t(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)})}}o.d(i,{default:()=>S});var r=o(4756),n=o.n(r);const a=function(){return e(n().mark(function t(){var e,r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Promise.resolve().then(o.t.bind(o,4998,23));case 1:return e=t.sent,r=e.default||e,t.abrupt("return",r());case 2:case"end":return t.stop()}},t)}))()},u=function(){return e(n().mark(function t(){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Promise.resolve().then(o.t.bind(o,421,19));case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t)}))()},c=function(){return e(n().mark(function t(){var e;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Promise.resolve().then(o.t.bind(o,894,19));case 1:return e=t.sent,t.abrupt("return",e.compress?e:e.LZMA);case 2:case"end":return t.stop()}},t)}))()},s=function(){return e(n().mark(function t(){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Promise.resolve().then(o.t.bind(o,2992,23));case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t)}))()},f=function(){return e(n().mark(function t(){var e,r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Promise.resolve().then(o.t.bind(o,4484,23));case 1:return e=t.sent,r=e.default||e,t.abrupt("return",r);case 2:case"end":return t.stop()}},t)}))()};var l=o(8287).Buffer;const p={pack:!0,encode:!0,compress:(d=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,c();case 1:return r=t.sent,t.abrupt("return",new Promise(function(t,n){return r.compress(e,9,function(e,r){return r?n(r):t(l.from(e))})}));case 2:case"end":return t.stop()}},t)})),function(t){return d.apply(this,arguments)}),decompress:(h=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,c();case 1:return r=t.sent,t.abrupt("return",new Promise(function(t,n){return r.decompress(e,function(e,r){return r?n(r):t(l.from(e))})}));case 2:case"end":return t.stop()}},t)})),function(t){return h.apply(this,arguments)})};var h,d,y=o(8287).Buffer;const b={pack:!1,encode:!0,compress:function(){var t=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=y,t.next=1,s();case 1:return t.abrupt("return",r.from.call(r,t.sent.compressToUint8Array(e)));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),decompress:function(){var t=e(n().mark(function t(e){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,s();case 1:return t.abrupt("return",t.sent.decompressFromUint8Array(e));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()};var g=o(8287).Buffer;const v={pack:!0,encode:!0,compress:function(){var t=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=g,t.next=1,f();case 1:return t.abrupt("return",r.from.call(r,t.sent.encode(e.toString("binary"))));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),decompress:function(){var t=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=g,t.next=1,f();case 1:return t.abrupt("return",r.from.call(r,t.sent.decode(e),"binary"));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},m={pack:!0,encode:!0,compress:function(){var t=e(n().mark(function t(e){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),decompress:function(){var t=e(n().mark(function t(e){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},w={lzma:p,lzstring:b,lzw:v,pack:m};var E,_=function(t){return Math.floor(1e4*t)/1e4};o.p=(E=function(){if(document.currentScript)return document.currentScript.src;var t=document.getElementsByTagName("script");return t[t.length-1].src}()).substring(0,E.lastIndexOf("/"))+"/";const S=function(t){if(!Object.prototype.hasOwnProperty.call(w,t))throw new Error("No such algorithm ".concat(t));var r=w[t],o=r.pack,i=r.encode;function c(t){return s.apply(this,arguments)}function s(){return(s=e(n().mark(function e(r){var c,s,f,l,p;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!o){e.next=2;break}return e.next=1,a();case 1:l=e.sent.encode(r),e.next=3;break;case 2:l=JSON.stringify(r);case 3:return c=l,e.next=4,w[t].compress(c);case 4:if(s=e.sent,!i){e.next=6;break}return e.next=5,u();case 5:p=e.sent.encode(s),e.next=7;break;case 6:p=s;case 7:return f=p,e.abrupt("return",f);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function f(){return(f=e(n().mark(function e(r){var c,s,f,l,p;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=2;break}return e.next=1,u();case 1:l=e.sent.decode(r),e.next=3;break;case 2:l=r;case 3:return c=l,e.next=4,w[t].decompress(c);case 4:if(s=e.sent,!o){e.next=6;break}return e.next=5,a();case 5:p=e.sent.decode(s),e.next=7;break;case 6:p=JSON.parse(s);case 7:return f=p,e.abrupt("return",f);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function l(){return(l=e(n().mark(function t(e){var r,o,i;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=JSON.stringify(e),o=encodeURIComponent(r),t.next=1,c(e);case 1:return i=t.sent,t.abrupt("return",{raw:r.length,rawencoded:o.length,compressedencoded:i.length,compression:_(o.length/i.length)});case 2:case"end":return t.stop()}},t)}))).apply(this,arguments)}return{compress:c,decompress:function(t){return f.apply(this,arguments)},stats:function(t){return l.apply(this,arguments)}}}})(),i=i.default})()); ================================================ FILE: dist/browser/json-url-single.js.LICENSE.txt ================================================ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /*! * urlsafe-base64 */ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ ================================================ FILE: dist/browser/json-url.js ================================================ /*! For license information please see json-url.js.LICENSE.txt */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.JsonUrl=e():t.JsonUrl=e()}(self,()=>(()=>{var t,e,r,n,o={251:(t,e)=>{e.read=function(t,e,r,n,o){var i,u,s=8*o-n-1,f=(1<>1,c=-7,p=r?o-1:0,h=r?-1:1,l=t[e+p];for(p+=h,i=l&(1<<-c)-1,l>>=-c,c+=s;c>0;i=256*i+t[e+p],p+=h,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=n;c>0;u=256*u+t[e+p],p+=h,c-=8);if(0===i)i=1-a;else{if(i===f)return u?NaN:1/0*(l?-1:1);u+=Math.pow(2,n),i-=a}return(l?-1:1)*u*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var u,s,f,a=8*i-o-1,c=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:i-1,y=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),(e+=u+p>=1?h/f:h*Math.pow(2,1-p))*f>=2&&(u++,f/=2),u+p>=c?(s=0,u=c):u+p>=1?(s=(e*f-1)*Math.pow(2,o),u+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,o),u=0));o>=8;t[r+l]=255&s,l+=y,s/=256,o-=8);for(u=u<0;t[r+l]=255&u,l+=y,u/=256,a-=8);t[r+l-y]|=128*g}},579:(t,e,r)=>{var n=r(3738).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(n(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},887:(t,e,r)=>{var n=r(6993),o=r(1791);t.exports=function(t,e,r,i,u){return new o(n().w(t,e,r,i),u||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},1791:(t,e,r)=>{var n=r(5172),o=r(5546);t.exports=function t(e,r){function i(t,o,u,s){try{var f=e[t](o),a=f.value;return a instanceof n?r.resolve(a.v).then(function(t){i("next",t,u,s)},function(t){i("throw",t,u,s)}):r.resolve(a).then(function(t){f.value=t,u(f)},function(t){return i("throw",t,u,s)})}catch(t){s(t)}}var u;this.next||(o(t.prototype),o(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(t,e,n){function o(){return new r(function(e,r){i(t,n,e,r)})}return u=u?u.then(o,o):o()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},3738:t=>{function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},4373:t=>{t.exports=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},4633:(t,e,r)=>{var n=r(5172),o=r(6993),i=r(5869),u=r(887),s=r(1791),f=r(4373),a=r(579);function c(){"use strict";var e=o(),r=e.m(c),p=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function h(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))}var l={throw:1,return:2,break:3,continue:3};function y(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,l[t],e)},delegateYield:function(t,o,i){return e.resultName=o,r(n.d,a(t),i)},finish:function(t){return r(n.f,t)}},r=function(t,r,o){n.p=e.prev,n.n=e.next;try{return t(r,o)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(t.exports=c=function(){return{wrap:function(t,r,n,o){return e.w(y(t),r,n,o&&o.reverse())},isGeneratorFunction:h,mark:e.m,awrap:function(t,e){return new n(t,e)},AsyncIterator:s,async:function(t,e,r,n,o){return(h(e)?u:i)(y(t),e,r,n,o)},keys:f,values:a}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},4756:(t,e,r)=>{var n=r(4633)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},5172:t=>{t.exports=function(t,e){this.v=t,this.k=e},t.exports.__esModule=!0,t.exports.default=t.exports},5546:t=>{function e(r,n,o,i){var u=Object.defineProperty;try{u({},"",{})}catch(r){u=0}t.exports=e=function(t,r,n,o){function i(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?u?u(t,r,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[r]=n:(i("next",0),i("throw",1),i("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,o,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5869:(t,e,r)=>{var n=r(887);t.exports=function(t,e,r,o,i){var u=n(t,e,r,o,i);return u.next().then(function(t){return t.done?t.value:u.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},6993:(t,e,r)=>{var n=r(5546);function o(){var e,r,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function f(t,o,i,u){var s=o&&o.prototype instanceof c?o:c,f=Object.create(s.prototype);return n(f,"_invoke",function(t,n,o){var i,u,s,f=0,c=o||[],p=!1,h={p:0,n:0,v:e,a:l,f:l.bind(e,4),d:function(t,r){return i=t,u=0,s=e,h.n=r,a}};function l(t,n){for(u=t,s=n,r=0;!p&&f&&!o&&r3?(o=y===n)&&(s=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=e):i[0]<=l&&((o=t<2&&ln||n>y)&&(i[4]=t,i[5]=n,h.n=y,u=0))}if(o||t>1)return a;throw p=!0,n}return function(o,c,y){if(f>1)throw TypeError("Generator is already running");for(p&&1===c&&l(c,y),u=c,s=y;(r=u<2?e:s)||!p;){i||(u?u<3?(u>1&&(h.n=-1),l(u,s)):h.n=s:h.v=s);try{if(f=2,i){if(u||(o="next"),r=i[o]){if(!(r=r.call(i,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,u<2&&(u=0)}else 1===u&&(r=i.return)&&r.call(i),u<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=e}else if((r=(p=h.n<0)?s:t.call(n,h))!==a)break}catch(t){i=e,u=1,s=t}finally{f=1}}return{value:r,done:p}}}(t,i,u),!0),f}var a={};function c(){}function p(){}function h(){}r=Object.getPrototypeOf;var l=[][u]?r(r([][u]())):(n(r={},u,function(){return this}),r),y=h.prototype=c.prototype=Object.create(l);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,n(t,s,"GeneratorFunction")),t.prototype=Object.create(y),t}return p.prototype=h,n(y,"constructor",h),n(h,"constructor",p),p.displayName="GeneratorFunction",n(h,s,"GeneratorFunction"),n(y),n(y,s,"Generator"),n(y,u,function(){return this}),n(y,"toString",function(){return"[object Generator]"}),(t.exports=o=function(){return{w:f,m:g}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},7526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=s(t),u=i[0],f=i[1],a=new o(function(t,e,r){return 3*(e+r)/4-r}(0,u,f)),c=0,p=f>0?u-4:u;for(r=0;r>16&255,a[c++]=e>>8&255,a[c++]=255&e;2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,a[c++]=255&e);1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e);return a},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],u=16383,s=0,f=n-o;sf?f:s+u));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)r[u]=i[u],n[i.charCodeAt(u)]=u;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function a(t,e,r){for(var n,o=[],i=e;i{"use strict";const n=r(7526),o=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=function(t){+t!=t&&(t=0);return f.alloc(+t)},e.INSPECT_MAX_BYTES=50;const u=2147483647;function s(t){if(t>u)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return p(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!f.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|g(t,e);let n=s(r);const o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(X(t,Uint8Array)){const e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(X(t,ArrayBuffer)||t&&X(t.buffer,ArrayBuffer))return l(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(X(t,SharedArrayBuffer)||t&&X(t.buffer,SharedArrayBuffer)))return l(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return f.from(n,e,r);const o=function(t){if(f.isBuffer(t)){const e=0|y(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||Z(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function p(t){return c(t),s(t<0?0:0|y(t))}function h(t){const e=t.length<0?0:0|y(t.length),r=s(e);for(let n=0;n=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return 0|t}function g(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||X(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(t).length;default:if(o)return n?-1:q(t).length;e=(""+e).toLowerCase(),o=!0}}function d(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return _(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return I(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function w(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(t,e,r,n,o){let i,u=1,s=t.length,f=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;u=2,s/=2,f/=2,r/=2}function a(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(o){let n=-1;for(i=r;is&&(r=s-f),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=e.length;let u;for(n>i/2&&(n=i/2),u=0;u>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function I(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function _(t,e,r){r=Math.min(t.length,r);const n=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+u<=r){let r,n,s,f;switch(u){case 1:e<128&&(i=e);break;case 2:r=t[o+1],128==(192&r)&&(f=(31&e)<<6|63&r,f>127&&(i=f));break;case 3:r=t[o+1],n=t[o+2],128==(192&r)&&128==(192&n)&&(f=(15&e)<<12|(63&r)<<6|63&n,f>2047&&(f<55296||f>57343)&&(i=f));break;case 4:r=t[o+1],n=t[o+2],s=t[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(f=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,f>65535&&f<1114112&&(i=f))}}null===i?(i=65533,u=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=u}return function(t){const e=t.length;if(e<=U)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(f.isBuffer(e)||(e=f.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else{if(!f.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,o)}o+=e.length}return n},f.byteLength=g,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(t+=" ... "),""},i&&(f.prototype[i]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,o){if(X(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(o>>>=0)-(n>>>=0),u=(r>>>=0)-(e>>>=0);const s=Math.min(i,u),a=this.slice(n,o),c=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return B(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const U=4096;function O(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;on)&&(r=n);let o="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,n,o,i){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function L(t,e,r,n,o){G(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=u,u>>=8,t[r++]=u,u>>=8,t[r++]=u,u>>=8,t[r++]=u,r}function M(t,e,r,n,o){G(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let u=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=u,u>>=8,t[r+2]=u,u>>=8,t[r+1]=u,u>>=8,t[r]=u,r+8}function P(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(t,e,r,n,i){return e=+e,r>>>=0,i||P(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function C(t,e,r,n,i){return e=+e,r>>>=0,i||P(t,0,r,8),o.write(t,e,r,n,52,8),r+8}f.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},f.prototype.readUint8=f.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readBigUInt64LE=K(function(t){D(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||J(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||J(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||R(t,e,this.length);let n=this[t],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},f.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readBigInt64LE=K(function(t){D(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||J(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||J(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||R(t,4,this.length),o.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),o.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),o.read(this,t,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){j(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,!n){j(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeBigUInt64LE=K(function(t,e=0){return L(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=K(function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let o=0,i=1,u=0;for(this[e]=255&t;++o>>=0,!n){const n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}let o=r-1,i=1,u=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===u&&0!==this[e+o+1]&&(u=1),this[e+o]=(t/i|0)-u&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeBigInt64LE=K(function(t,e=0){return L(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=K(function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(t,e,r){return N(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return N(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return C(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return C(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function G(t,e,r,n,o,i){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new $.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){D(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||J(e,t.length-(r+1))}(n,o,i)}function D(t,e){if("number"!=typeof t)throw new $.ERR_INVALID_ARG_TYPE(e,"number",t)}function J(t,e,r){if(Math.floor(t)!==t)throw D(t,r),new $.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new $.ERR_BUFFER_OUT_OF_BOUNDS;throw new $.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),F("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=z(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=z(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n},RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function q(t,e){let r;e=e||1/0;const n=t.length;let o=null;const i=[];for(let u=0;u55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(u+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function V(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function W(t,e,r,n){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function X(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Z(t){return t!=t}const H=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function K(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}}},i={};function u(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return o[t].call(r.exports,r,r.exports,u),r.exports}u.m=o,u.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return u.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,u.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var o=Object.create(null);u.r(o);var i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&r;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(t=>i[t]=()=>r[t]);return i.default=()=>r,u.d(o,i),o},u.d=(t,e)=>{for(var r in e)u.o(e,r)&&!u.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},u.f={},u.e=t=>Promise.all(Object.keys(u.f).reduce((e,r)=>(u.f[r](t,e),e),[])),u.u=t=>"json-url-"+({66:"lzstring",81:"msgpack",483:"lzma",508:"lzw",622:"safe64"}[t]||t)+".js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),u.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},n="JsonUrl:",u.l=(t,e,o,i)=>{if(r[t])r[t].push(e);else{var s,f;if(void 0!==o)for(var a=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(l);var o=r[t];if(delete r[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(t=>t(n)),e)return e(n)},l=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),f&&document.head.appendChild(s)}},u.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;u.g.importScripts&&(t=u.g.location+"");var e=u.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),u.p=t})(),(()=>{var t={792:0};u.f.j=(e,r)=>{var n=u.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise((r,o)=>n=t[e]=[r,o]);r.push(n[2]=o);var i=u.p+u.u(e),s=new Error;u.l(i,r=>{if(u.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,n[1](s)}},"chunk-"+e,e)}};var e=(e,r)=>{var n,o,[i,s,f]=r,a=0;if(i.some(e=>0!==t[e])){for(n in s)u.o(s,n)&&(u.m[n]=s[n]);if(f)f(u)}for(e&&e(r);a{"use strict";function t(t,e,r,n,o,i,u){try{var s=t[i](u),f=s.value}catch(t){return void r(t)}s.done?e(f):Promise.resolve(f).then(n,o)}function e(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var u=e.apply(r,n);function s(e){t(u,o,i,s,f,"next",e)}function f(e){t(u,o,i,s,f,"throw",e)}s(void 0)})}}u.d(s,{default:()=>B});var r=u(4756),n=u.n(r);const o=function(){return e(n().mark(function t(){var e,r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,Promise.all([u.e(998),u.e(81)]).then(u.t.bind(u,4998,23));case 1:return e=t.sent,r=e.default||e,t.abrupt("return",r());case 2:case"end":return t.stop()}},t)}))()},i=function(){return e(n().mark(function t(){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,u.e(622).then(u.t.bind(u,421,19));case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t)}))()},f=function(){return e(n().mark(function t(){var e;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,u.e(483).then(u.t.bind(u,894,19));case 1:return e=t.sent,t.abrupt("return",e.compress?e:e.LZMA);case 2:case"end":return t.stop()}},t)}))()},a=function(){return e(n().mark(function t(){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,u.e(66).then(u.t.bind(u,2992,23));case 1:return t.abrupt("return",t.sent);case 2:case"end":return t.stop()}},t)}))()},c=function(){return e(n().mark(function t(){var e,r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,u.e(508).then(u.t.bind(u,4484,23));case 1:return e=t.sent,r=e.default||e,t.abrupt("return",r);case 2:case"end":return t.stop()}},t)}))()};var p=u(8287).Buffer;const h={pack:!0,encode:!0,compress:(y=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,f();case 1:return r=t.sent,t.abrupt("return",new Promise(function(t,n){return r.compress(e,9,function(e,r){return r?n(r):t(p.from(e))})}));case 2:case"end":return t.stop()}},t)})),function(t){return y.apply(this,arguments)}),decompress:(l=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,f();case 1:return r=t.sent,t.abrupt("return",new Promise(function(t,n){return r.decompress(e,function(e,r){return r?n(r):t(p.from(e))})}));case 2:case"end":return t.stop()}},t)})),function(t){return l.apply(this,arguments)})};var l,y,g=u(8287).Buffer;const d={pack:!1,encode:!0,compress:function(){var t=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=g,t.next=1,a();case 1:return t.abrupt("return",r.from.call(r,t.sent.compressToUint8Array(e)));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),decompress:function(){var t=e(n().mark(function t(e){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=1,a();case 1:return t.abrupt("return",t.sent.decompressFromUint8Array(e));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()};var w=u(8287).Buffer;const b={pack:!0,encode:!0,compress:function(){var t=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=w,t.next=1,c();case 1:return t.abrupt("return",r.from.call(r,t.sent.encode(e.toString("binary"))));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),decompress:function(){var t=e(n().mark(function t(e){var r;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=w,t.next=1,c();case 1:return t.abrupt("return",r.from.call(r,t.sent.decode(e),"binary"));case 2:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},m={pack:!0,encode:!0,compress:function(){var t=e(n().mark(function t(e){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}(),decompress:function(){var t=e(n().mark(function t(e){return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e);case 1:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},v={lzma:h,lzstring:d,lzw:b,pack:m};var x,E=function(t){return Math.floor(1e4*t)/1e4};u.p=(x=function(){if(document.currentScript)return document.currentScript.src;var t=document.getElementsByTagName("script");return t[t.length-1].src}()).substring(0,x.lastIndexOf("/"))+"/";const B=function(t){if(!Object.prototype.hasOwnProperty.call(v,t))throw new Error("No such algorithm ".concat(t));var r=v[t],u=r.pack,s=r.encode;function f(t){return a.apply(this,arguments)}function a(){return(a=e(n().mark(function e(r){var f,a,c,p,h;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!u){e.next=2;break}return e.next=1,o();case 1:p=e.sent.encode(r),e.next=3;break;case 2:p=JSON.stringify(r);case 3:return f=p,e.next=4,v[t].compress(f);case 4:if(a=e.sent,!s){e.next=6;break}return e.next=5,i();case 5:h=e.sent.encode(a),e.next=7;break;case 6:h=a;case 7:return c=h,e.abrupt("return",c);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function c(){return(c=e(n().mark(function e(r){var f,a,c,p,h;return n().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!s){e.next=2;break}return e.next=1,i();case 1:p=e.sent.decode(r),e.next=3;break;case 2:p=r;case 3:return f=p,e.next=4,v[t].decompress(f);case 4:if(a=e.sent,!u){e.next=6;break}return e.next=5,o();case 5:h=e.sent.decode(a),e.next=7;break;case 6:h=JSON.parse(a);case 7:return c=h,e.abrupt("return",c);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function p(){return(p=e(n().mark(function t(e){var r,o,i;return n().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=JSON.stringify(e),o=encodeURIComponent(r),t.next=1,f(e);case 1:return i=t.sent,t.abrupt("return",{raw:r.length,rawencoded:o.length,compressedencoded:i.length,compression:E(o.length/i.length)});case 2:case"end":return t.stop()}},t)}))).apply(this,arguments)}return{compress:f,decompress:function(t){return c.apply(this,arguments)},stats:function(t){return p.apply(this,arguments)}}}})(),s=s.default})()); ================================================ FILE: dist/browser/json-url.js.LICENSE.txt ================================================ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ ================================================ FILE: dist/node/browser-index.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _index = _interopRequireDefault(require("./index.js")); /* global document */ // adapted from https://github.com/webpack/webpack/issues/595 function getCurrentScriptSrc() { if (document.currentScript) return document.currentScript.src; // this is unreliable if the script is loaded asynchronously var scripts = document.getElementsByTagName('script'); return scripts[scripts.length - 1].src; } function derivePath(scriptSrc) { return scriptSrc.substring(0, scriptSrc.lastIndexOf('/')); } // allows webpack to dynamically load chunks on the same path as where the index script is loaded. __webpack_public_path__ = derivePath(getCurrentScriptSrc()) + '/'; // eslint-disable-line var _default = exports["default"] = _index["default"]; module.exports = exports.default; ================================================ FILE: dist/node/codecs/index.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _lzma = _interopRequireDefault(require("./lzma")); var _lzstring = _interopRequireDefault(require("./lzstring")); var _lzw = _interopRequireDefault(require("./lzw")); var _pack = _interopRequireDefault(require("./pack")); var _default = exports["default"] = { lzma: _lzma["default"], lzstring: _lzstring["default"], lzw: _lzw["default"], pack: _pack["default"] }; module.exports = exports.default; ================================================ FILE: dist/node/codecs/lzma.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _loaders = _interopRequireDefault(require("../loaders")); var _default = exports["default"] = { pack: true, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(input) { var lzma; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 1; return _loaders["default"].lzma(); case 1: lzma = _context.sent; return _context.abrupt("return", new Promise(function (ok, fail) { return lzma.compress(input, 9, function (byteArray, err) { if (err) return fail(err); return ok(Buffer.from(byteArray)); }); })); case 2: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(input) { var lzma; return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 1; return _loaders["default"].lzma(); case 1: lzma = _context2.sent; return _context2.abrupt("return", new Promise(function (ok, fail) { return lzma.decompress(input, function (byteArray, err) { if (err) return fail(err); return ok(Buffer.from(byteArray)); }); })); case 2: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/codecs/lzstring.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _loaders = _interopRequireDefault(require("../loaders")); var _default = exports["default"] = { pack: false, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(string) { var _t; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _t = Buffer; _context.next = 1; return _loaders["default"].lzstring(); case 1: return _context.abrupt("return", _t.from.call(_t, _context.sent.compressToUint8Array(string))); case 2: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(buffer) { return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 1; return _loaders["default"].lzstring(); case 1: return _context2.abrupt("return", _context2.sent.decompressFromUint8Array(buffer)); case 2: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/codecs/lzw.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _loaders = _interopRequireDefault(require("../loaders")); var _default = exports["default"] = { pack: true, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(input) { var _t; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _t = Buffer; _context.next = 1; return _loaders["default"].lzw(); case 1: return _context.abrupt("return", _t.from.call(_t, _context.sent.encode(input.toString('binary')))); case 2: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(input) { var _t2; return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _t2 = Buffer; _context2.next = 1; return _loaders["default"].lzw(); case 1: return _context2.abrupt("return", _t2.from.call(_t2, _context2.sent.decode(input), 'binary')); case 2: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/codecs/pack.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _default = exports["default"] = { pack: true, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(_) { return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: return _context.abrupt("return", _); case 1: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(_) { return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: return _context2.abrupt("return", _); case 1: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/index.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = createClient; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _codecs = _interopRequireDefault(require("./codecs")); var _loaders = _interopRequireDefault(require("./loaders")); var twoDigitPercentage = function twoDigitPercentage(val) { return Math.floor(val * 10000) / 10000; }; function createClient(algorithm) { if (!Object.prototype.hasOwnProperty.call(_codecs["default"], algorithm)) throw new Error("No such algorithm ".concat(algorithm)); var _ALGORITHMS$algorithm = _codecs["default"][algorithm], pack = _ALGORITHMS$algorithm.pack, encode = _ALGORITHMS$algorithm.encode; function compress(_x) { return _compress.apply(this, arguments); } function _compress() { _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(json) { var packed, compressed, encoded, _t, _t2; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: if (!pack) { _context.next = 2; break; } _context.next = 1; return _loaders["default"].msgpack(); case 1: _t = _context.sent.encode(json); _context.next = 3; break; case 2: _t = JSON.stringify(json); case 3: packed = _t; _context.next = 4; return _codecs["default"][algorithm].compress(packed); case 4: compressed = _context.sent; if (!encode) { _context.next = 6; break; } _context.next = 5; return _loaders["default"].safe64(); case 5: _t2 = _context.sent.encode(compressed); _context.next = 7; break; case 6: _t2 = compressed; case 7: encoded = _t2; return _context.abrupt("return", encoded); case 8: case "end": return _context.stop(); } }, _callee); })); return _compress.apply(this, arguments); } function decompress(_x2) { return _decompress.apply(this, arguments); } function _decompress() { _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(string) { var decoded, decompressed, unpacked, _t3, _t4; return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: if (!encode) { _context2.next = 2; break; } _context2.next = 1; return _loaders["default"].safe64(); case 1: _t3 = _context2.sent.decode(string); _context2.next = 3; break; case 2: _t3 = string; case 3: decoded = _t3; _context2.next = 4; return _codecs["default"][algorithm].decompress(decoded); case 4: decompressed = _context2.sent; if (!pack) { _context2.next = 6; break; } _context2.next = 5; return _loaders["default"].msgpack(); case 5: _t4 = _context2.sent.decode(decompressed); _context2.next = 7; break; case 6: _t4 = JSON.parse(decompressed); case 7: unpacked = _t4; return _context2.abrupt("return", unpacked); case 8: case "end": return _context2.stop(); } }, _callee2); })); return _decompress.apply(this, arguments); } function stats(_x3) { return _stats.apply(this, arguments); } function _stats() { _stats = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(json) { var raw, rawencoded, compressed; return _regenerator["default"].wrap(function (_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: raw = JSON.stringify(json); rawencoded = encodeURIComponent(raw); _context3.next = 1; return compress(json); case 1: compressed = _context3.sent; return _context3.abrupt("return", { raw: raw.length, rawencoded: rawencoded.length, compressedencoded: compressed.length, compression: twoDigitPercentage(rawencoded.length / compressed.length) }); case 2: case "end": return _context3.stop(); } }, _callee3); })); return _stats.apply(this, arguments); } return { compress: compress, decompress: decompress, stats: stats }; } module.exports = exports.default; ================================================ FILE: dist/node/loaders.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } // centralize all chunks in one file var _default = exports["default"] = { msgpack: function msgpack() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() { var module, factory; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "msgpack" */'msgpack5')); }); case 1: module = _context.sent; factory = module["default"] || module; return _context.abrupt("return", factory()); case 2: case "end": return _context.stop(); } }, _callee); }))(); }, safe64: function safe64() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() { return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "safe64" */'urlsafe-base64')); }); case 1: return _context2.abrupt("return", _context2.sent); case 2: case "end": return _context2.stop(); } }, _callee2); }))(); }, lzma: function lzma() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() { var lzma; return _regenerator["default"].wrap(function (_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: _context3.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "lzma" */'lzma')); }); case 1: lzma = _context3.sent; return _context3.abrupt("return", lzma.compress ? lzma : lzma.LZMA); case 2: case "end": return _context3.stop(); } }, _callee3); }))(); }, lzstring: function lzstring() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() { return _regenerator["default"].wrap(function (_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: _context4.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "lzstring" */'lz-string')); }); case 1: return _context4.abrupt("return", _context4.sent); case 2: case "end": return _context4.stop(); } }, _callee4); }))(); }, lzw: function lzw() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() { var module, lzw; return _regenerator["default"].wrap(function (_context5) { while (1) switch (_context5.prev = _context5.next) { case 0: _context5.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "lzw" */'node-lzw')); }); case 1: module = _context5.sent; lzw = module["default"] || module; return _context5.abrupt("return", lzw); case 2: case "end": return _context5.stop(); } }, _callee5); }))(); } }; module.exports = exports.default; ================================================ FILE: dist/node/main/browser-index.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _index = _interopRequireDefault(require("./index.js")); /* global document */ // adapted from https://github.com/webpack/webpack/issues/595 function getCurrentScriptSrc() { if (document.currentScript) return document.currentScript.src; // this is unreliable if the script is loaded asynchronously var scripts = document.getElementsByTagName('script'); return scripts[scripts.length - 1].src; } function derivePath(scriptSrc) { return scriptSrc.substring(0, scriptSrc.lastIndexOf('/')); } // allows webpack to dynamically load chunks on the same path as where the index script is loaded. __webpack_public_path__ = derivePath(getCurrentScriptSrc()) + '/'; // eslint-disable-line var _default = exports["default"] = _index["default"]; module.exports = exports.default; ================================================ FILE: dist/node/main/codecs/index.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _lzma = _interopRequireDefault(require("./lzma")); var _lzstring = _interopRequireDefault(require("./lzstring")); var _lzw = _interopRequireDefault(require("./lzw")); var _pack = _interopRequireDefault(require("./pack")); var _default = exports["default"] = { lzma: _lzma["default"], lzstring: _lzstring["default"], lzw: _lzw["default"], pack: _pack["default"] }; module.exports = exports.default; ================================================ FILE: dist/node/main/codecs/lzma.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _loaders = _interopRequireDefault(require("../loaders")); var _default = exports["default"] = { pack: true, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(input) { var lzma; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 1; return _loaders["default"].lzma(); case 1: lzma = _context.sent; return _context.abrupt("return", new Promise(function (ok, fail) { return lzma.compress(input, 9, function (byteArray, err) { if (err) return fail(err); return ok(Buffer.from(byteArray)); }); })); case 2: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(input) { var lzma; return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 1; return _loaders["default"].lzma(); case 1: lzma = _context2.sent; return _context2.abrupt("return", new Promise(function (ok, fail) { return lzma.decompress(input, function (byteArray, err) { if (err) return fail(err); return ok(Buffer.from(byteArray)); }); })); case 2: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/main/codecs/lzstring.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _loaders = _interopRequireDefault(require("../loaders")); var _default = exports["default"] = { pack: false, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(string) { var _t; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _t = Buffer; _context.next = 1; return _loaders["default"].lzstring(); case 1: return _context.abrupt("return", _t.from.call(_t, _context.sent.compressToUint8Array(string))); case 2: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(buffer) { return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 1; return _loaders["default"].lzstring(); case 1: return _context2.abrupt("return", _context2.sent.decompressFromUint8Array(buffer)); case 2: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/main/codecs/lzw.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _loaders = _interopRequireDefault(require("../loaders")); var _default = exports["default"] = { pack: true, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(input) { var _t; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _t = Buffer; _context.next = 1; return _loaders["default"].lzw(); case 1: return _context.abrupt("return", _t.from.call(_t, _context.sent.encode(input.toString('binary')))); case 2: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(input) { var _t2; return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _t2 = Buffer; _context2.next = 1; return _loaders["default"].lzw(); case 1: return _context2.abrupt("return", _t2.from.call(_t2, _context2.sent.decode(input), 'binary')); case 2: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/main/codecs/pack.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _default = exports["default"] = { pack: true, encode: true, compress: function () { var _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(_) { return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: return _context.abrupt("return", _); case 1: case "end": return _context.stop(); } }, _callee); })); function compress(_x) { return _compress.apply(this, arguments); } return compress; }(), decompress: function () { var _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(_) { return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: return _context2.abrupt("return", _); case 1: case "end": return _context2.stop(); } }, _callee2); })); function decompress(_x2) { return _decompress.apply(this, arguments); } return decompress; }() }; module.exports = exports.default; ================================================ FILE: dist/node/main/index.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = createClient; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); var _codecs = _interopRequireDefault(require("./codecs")); var _loaders = _interopRequireDefault(require("./loaders")); var twoDigitPercentage = function twoDigitPercentage(val) { return Math.floor(val * 10000) / 10000; }; function createClient(algorithm) { if (!Object.prototype.hasOwnProperty.call(_codecs["default"], algorithm)) throw new Error("No such algorithm ".concat(algorithm)); var _ALGORITHMS$algorithm = _codecs["default"][algorithm], pack = _ALGORITHMS$algorithm.pack, encode = _ALGORITHMS$algorithm.encode; function compress(_x) { return _compress.apply(this, arguments); } function _compress() { _compress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(json) { var packed, compressed, encoded, _t, _t2; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: if (!pack) { _context.next = 2; break; } _context.next = 1; return _loaders["default"].msgpack(); case 1: _t = _context.sent.encode(json); _context.next = 3; break; case 2: _t = JSON.stringify(json); case 3: packed = _t; _context.next = 4; return _codecs["default"][algorithm].compress(packed); case 4: compressed = _context.sent; if (!encode) { _context.next = 6; break; } _context.next = 5; return _loaders["default"].safe64(); case 5: _t2 = _context.sent.encode(compressed); _context.next = 7; break; case 6: _t2 = compressed; case 7: encoded = _t2; return _context.abrupt("return", encoded); case 8: case "end": return _context.stop(); } }, _callee); })); return _compress.apply(this, arguments); } function decompress(_x2) { return _decompress.apply(this, arguments); } function _decompress() { _decompress = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2(string) { var decoded, decompressed, unpacked, _t3, _t4; return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: if (!encode) { _context2.next = 2; break; } _context2.next = 1; return _loaders["default"].safe64(); case 1: _t3 = _context2.sent.decode(string); _context2.next = 3; break; case 2: _t3 = string; case 3: decoded = _t3; _context2.next = 4; return _codecs["default"][algorithm].decompress(decoded); case 4: decompressed = _context2.sent; if (!pack) { _context2.next = 6; break; } _context2.next = 5; return _loaders["default"].msgpack(); case 5: _t4 = _context2.sent.decode(decompressed); _context2.next = 7; break; case 6: _t4 = JSON.parse(decompressed); case 7: unpacked = _t4; return _context2.abrupt("return", unpacked); case 8: case "end": return _context2.stop(); } }, _callee2); })); return _decompress.apply(this, arguments); } function stats(_x3) { return _stats.apply(this, arguments); } function _stats() { _stats = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3(json) { var raw, rawencoded, compressed; return _regenerator["default"].wrap(function (_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: raw = JSON.stringify(json); rawencoded = encodeURIComponent(raw); _context3.next = 1; return compress(json); case 1: compressed = _context3.sent; return _context3.abrupt("return", { raw: raw.length, rawencoded: rawencoded.length, compressedencoded: compressed.length, compression: twoDigitPercentage(rawencoded.length / compressed.length) }); case 2: case "end": return _context3.stop(); } }, _callee3); })); return _stats.apply(this, arguments); } return { compress: compress, decompress: decompress, stats: stats }; } module.exports = exports.default; ================================================ FILE: dist/node/main/loaders.js ================================================ "use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator")); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); } // centralize all chunks in one file var _default = exports["default"] = { msgpack: function msgpack() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() { var module, factory; return _regenerator["default"].wrap(function (_context) { while (1) switch (_context.prev = _context.next) { case 0: _context.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "msgpack" */'msgpack5')); }); case 1: module = _context.sent; factory = module["default"] || module; return _context.abrupt("return", factory()); case 2: case "end": return _context.stop(); } }, _callee); }))(); }, safe64: function safe64() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() { return _regenerator["default"].wrap(function (_context2) { while (1) switch (_context2.prev = _context2.next) { case 0: _context2.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "safe64" */'urlsafe-base64')); }); case 1: return _context2.abrupt("return", _context2.sent); case 2: case "end": return _context2.stop(); } }, _callee2); }))(); }, lzma: function lzma() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee3() { var lzma; return _regenerator["default"].wrap(function (_context3) { while (1) switch (_context3.prev = _context3.next) { case 0: _context3.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "lzma" */'lzma')); }); case 1: lzma = _context3.sent; return _context3.abrupt("return", lzma.compress ? lzma : lzma.LZMA); case 2: case "end": return _context3.stop(); } }, _callee3); }))(); }, lzstring: function lzstring() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() { return _regenerator["default"].wrap(function (_context4) { while (1) switch (_context4.prev = _context4.next) { case 0: _context4.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "lzstring" */'lz-string')); }); case 1: return _context4.abrupt("return", _context4.sent); case 2: case "end": return _context4.stop(); } }, _callee4); }))(); }, lzw: function lzw() { return (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee5() { var module, lzw; return _regenerator["default"].wrap(function (_context5) { while (1) switch (_context5.prev = _context5.next) { case 0: _context5.next = 1; return Promise.resolve().then(function () { return _interopRequireWildcard(require(/* webpackChunkName: "lzw" */'node-lzw')); }); case 1: module = _context5.sent; lzw = module["default"] || module; return _context5.abrupt("return", lzw); case 2: case "end": return _context5.stop(); } }, _callee5); }))(); } }; module.exports = exports.default; ================================================ FILE: eslint.config.js ================================================ // eslint.config.js import js from "@eslint/js"; import importPlugin from "eslint-plugin-import"; import babelParser from "@babel/eslint-parser"; import globals from "globals"; export default [ { ignores: ["dist/**", "coverage/**"], }, // Core recommended rules js.configs.recommended, // import plugin's recommended rules importPlugin.flatConfigs.recommended, { files: ["**/*.{js,mjs,cjs}"], languageOptions: { parser: babelParser, parserOptions: { requireConfigFile: false, // no .babelrc needed to lint sourceType: "module", ecmaVersion: "latest", }, globals: { ...globals.node, ...globals.es2021, }, }, settings: { // keep your resolver from .eslintrc "import/resolver": { "babel-module": {}, }, }, rules: { "no-undef": "error", "no-unused-vars": "error", "no-console": "off", }, }, ]; ================================================ FILE: examples/browser/test.html ================================================ json-url demo page

json-url demo

Proudly written in vanilla.js™

Result

Decompression

================================================ FILE: karma.conf.js ================================================ /* eslint-disable import/unambiguous */ const webpack = require('webpack'); const prodWebpackConfig = require('./webpack.config.js'); // Deep clone that preserves RegExp function deepClone(x) { if (x instanceof RegExp) return new RegExp(x.source, x.flags); if (Array.isArray(x)) return x.map(deepClone); if (x && typeof x === 'object') { const out = {}; for (const k of Object.keys(x)) out[k] = deepClone(x[k]); return out; } return x; } function makeKarmaWebpackConfig() { const cfg = deepClone(prodWebpackConfig); // Build from tests, not prod entry/output delete cfg.entry; cfg.output = { filename: '[name].js' }; // no path, no hashing cfg.mode = 'development'; cfg.devtool = 'inline-source-map'; cfg.target = 'web'; // Disable prod-only stuff cfg.plugins = []; cfg.optimization = { minimize: false, splitChunks: false, runtimeChunk: false }; // ----- IMPORTANT: keep your lzma alias for browser ----- // (Do NOT delete alias.lzma here.) // ------------------------------------------------------- // Add Webpack 5 Node polyfills for browser cfg.resolve = cfg.resolve || {}; cfg.resolve.fallback = { ...(cfg.resolve.fallback || {}), assert: require.resolve('assert/'), util: require.resolve('util/'), path: require.resolve('path-browserify'), buffer: require.resolve('buffer/'), stream: require.resolve('stream-browserify'), }; // Provide globals commonly expected by libs cfg.plugins.push( new webpack.ProvidePlugin({ Buffer: ['buffer', 'Buffer'], process: ['process'], }) ); return cfg; } module.exports = (config) => { config.set({ frameworks: ['mocha', 'webpack'], files: [{ pattern: 'test/index.js', watched: false }], preprocessors: { 'test/index.js': ['webpack'], 'test/**/*.spec.js': ['webpack'], }, webpack: makeKarmaWebpackConfig(), webpackMiddleware: { stats: { all: false, errors: true, warnings: true, errorDetails: true } }, reporters: ['progress'], browsers: ['ChromeHeadless'], singleRun: true, logLevel: config.LOG_DEBUG, }); }; ================================================ FILE: package.json ================================================ { "name": "json-url", "version": "4.0.0", "description": "Compress JSON into compact base64 URI-friendly notation", "main": "dist/node/index.js", "browser": "dist/browser/json-url-single.js", "scripts": { "lint": "eslint src/*", "compile": "rm -rf dist/; mkdir dist & wait & npm run compile:node & npm run compile:webpack & npm run compile:webpack:single", "compile:node": "babel --plugins @babel/plugin-transform-runtime,add-module-exports -d dist/node src src/main", "compile:webpack": "webpack", "compile:webpack:single": "webpack --config webpack.config.single.js", "prepublish": "npm test && npm run compile", "test": "npm run lint && npm run test:node && npm run test:karma", "test:node": "BABEL_ENV=test nyc mocha test/index.js --timeout 120000", "test:karma": "karma start --single-run", "perf": "babel-node test/perf.js", "coverage": "nyc report --reporter=text-lcov", "example": "open http://localhost:8000/examples/browser/test.html & static-server --port 8000" }, "repository": { "type": "git", "url": "https://github.com/masotime/json-url" }, "author": "Benjamin Goh ", "license": "ISC", "dependencies": { "@babel/runtime-corejs2": "^7.28.3", "bluebird": "^3.7.2", "lz-string": "^1.5.0", "lzma": "^2.3.2", "msgpack5": "^6.0.2", "node-lzw": "^0.3.1", "urlsafe-base64": "^1.0.0" }, "devDependencies": { "@babel/cli": "^7.28.3", "@babel/core": "^7.28.3", "@babel/eslint-parser": "^7.28.0", "@babel/node": "^7.28.0", "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-decorators": "^7.28.0", "@babel/plugin-proposal-do-expressions": "^7.28.3", "@babel/plugin-proposal-export-default-from": "^7.27.1", "@babel/plugin-proposal-export-namespace-from": "^7.18.9", "@babel/plugin-proposal-function-bind": "^7.27.1", "@babel/plugin-proposal-function-sent": "^7.27.1", "@babel/plugin-proposal-json-strings": "^7.18.6", "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", "@babel/plugin-proposal-numeric-separator": "^7.18.6", "@babel/plugin-proposal-optional-chaining": "^7.21.0", "@babel/plugin-proposal-pipeline-operator": "^7.27.1", "@babel/plugin-proposal-throw-expressions": "^7.27.1", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-transform-runtime": "^7.28.3", "@babel/polyfill": "^7.12.1", "@babel/preset-env": "^7.28.3", "@babel/register": "^7.28.3", "@babel/runtime": "^7.28.3", "@eslint/js": "^9.34.0", "assert": "^2.1.0", "babel-eslint": "^10.1.0", "babel-loader": "^10.0.0", "babel-plugin-add-module-exports": "^1.0.4", "babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-istanbul": "^7.0.0", "babel-plugin-module-resolver": "^5.0.2", "buffer": "^6.0.3", "eslint": "^9.34.0", "eslint-import-resolver-babel-module": "^5.3.2", "eslint-plugin-import": "^2.32.0", "globals": "^16.3.0", "karma": "^6.4.4", "karma-chrome-launcher": "^3.2.0", "karma-mocha": "^2.0.1", "karma-webpack": "^5.0.1", "mocha": "^11.7.1", "nyc": "^17.1.0", "path-browserify": "^1.0.1", "process": "^0.11.10", "static-server": "^3.0.0", "stream-browserify": "^3.0.0", "terser-webpack-plugin": "^5.3.14", "util": "^0.12.5", "webpack": "^5.101.3", "webpack-cli": "^6.0.1" } } ================================================ FILE: src/main/browser-index.js ================================================ /* global document */ import createClient from './index.js'; // adapted from https://github.com/webpack/webpack/issues/595 function getCurrentScriptSrc() { if (document.currentScript) return document.currentScript.src; // this is unreliable if the script is loaded asynchronously const scripts = document.getElementsByTagName('script'); return scripts[scripts.length-1].src; } function derivePath(scriptSrc) { return scriptSrc.substring(0, scriptSrc.lastIndexOf('/')); } // allows webpack to dynamically load chunks on the same path as where the index script is loaded. __webpack_public_path__ = derivePath(getCurrentScriptSrc()) + '/'; // eslint-disable-line export default createClient; ================================================ FILE: src/main/codecs/index.js ================================================ import lzma from 'main/codecs/lzma'; import lzstring from 'main/codecs/lzstring'; import lzw from 'main/codecs/lzw'; import pack from 'main/codecs/pack'; export default { lzma, lzstring, lzw, pack }; ================================================ FILE: src/main/codecs/lzma.js ================================================ import LOADERS from 'main/loaders'; export default { pack: true, encode: true, compress: async input => { const lzma = await LOADERS.lzma(); return new Promise((ok, fail) => lzma.compress(input, 9, (byteArray, err) => { if (err) return fail(err); return ok(Buffer.from(byteArray)); }) ) }, decompress: async input => { const lzma = await LOADERS.lzma(); return new Promise((ok, fail) => lzma.decompress(input, (byteArray, err) => { if (err) return fail(err); return ok(Buffer.from(byteArray)); }) ) } }; ================================================ FILE: src/main/codecs/lzstring.js ================================================ import LOADERS from 'main/loaders'; export default { pack: false, encode: true, compress: async string => Buffer.from((await LOADERS.lzstring()).compressToUint8Array(string)), decompress: async buffer => (await LOADERS.lzstring()).decompressFromUint8Array(buffer) }; ================================================ FILE: src/main/codecs/lzw.js ================================================ import LOADERS from 'main/loaders'; export default { pack: true, encode: true, compress: async input => Buffer.from((await LOADERS.lzw()).encode(input.toString('binary'))), decompress: async input => Buffer.from((await LOADERS.lzw()).decode(input), 'binary') }; ================================================ FILE: src/main/codecs/pack.js ================================================ export default { pack: true, encode: true, compress: async _ => _, decompress: async _ => _ }; ================================================ FILE: src/main/index.js ================================================ import ALGORITHMS from 'main/codecs'; import LOADERS from 'main/loaders'; const twoDigitPercentage = val => Math.floor(val * 10000) / 10000; export default function createClient(algorithm) { if (!Object.prototype.hasOwnProperty.call(ALGORITHMS, algorithm)) throw new Error(`No such algorithm ${algorithm}`); const { pack, encode } = ALGORITHMS[algorithm]; async function compress(json) { const packed = pack ? (await LOADERS.msgpack()).encode(json) : JSON.stringify(json); const compressed = await ALGORITHMS[algorithm].compress(packed); const encoded = encode ? (await LOADERS.safe64()).encode(compressed) : compressed; return encoded; } async function decompress(string) { const decoded = encode ? (await LOADERS.safe64()).decode(string) : string; const decompressed = await ALGORITHMS[algorithm].decompress(decoded); const unpacked = pack ? (await LOADERS.msgpack()).decode(decompressed) : JSON.parse(decompressed); return unpacked; } async function stats(json) { const raw = JSON.stringify(json); const rawencoded = encodeURIComponent(raw); const compressed = await compress(json); return { raw: raw.length, rawencoded: rawencoded.length, compressedencoded: compressed.length, compression: twoDigitPercentage(rawencoded.length / compressed.length) }; } return { compress, decompress, stats }; } ================================================ FILE: src/main/loaders.js ================================================ // centralize all chunks in one file export default { async msgpack() { const module = await import(/* webpackChunkName: "msgpack" */ 'msgpack5'); const factory = module.default || module; return factory(); }, async safe64() { return await import(/* webpackChunkName: "safe64" */ 'urlsafe-base64'); }, async lzma() { const lzma = await import(/* webpackChunkName: "lzma" */ 'lzma'); // this special condition is present because the web minified version has a slightly different export return lzma.compress ? lzma : lzma.LZMA; }, async lzstring() { return await import(/* webpackChunkName: "lzstring" */ 'lz-string'); }, async lzw() { const module = await import(/* webpackChunkName: "lzw" */ 'node-lzw'); const lzw = module.default || module; return lzw; } }; ================================================ FILE: test/index.js ================================================ /* global describe, it */ import assert from 'assert'; import createClient from 'main'; import { validate } from 'urlsafe-base64'; import samples from './samples.json' describe('json-url', () => { samples.forEach(sample => { describe(`When attempting to compress ${JSON.stringify(sample).slice(0, 50)}...`, () => { ['pack', 'lzw', 'lzma', 'lzstring'].forEach(algorithm => { describe(`using the ${algorithm} algorithm`, () => { const client = createClient(algorithm); it('compresses JSON via #compress to base64 format', async () => { const compressed = await client.compress(sample); assert.ok(validate(compressed), `${compressed} is not valid base64`); }); it('can decompress JSON compressed via #compress using #decompress', async () => { const compressed = await client.compress(sample); const decompressed = await client.decompress(compressed); assert.equal(JSON.stringify(decompressed), JSON.stringify(sample)); }); it('returns stats { rawencoded, compressedencoded, compression } via #stats', async () => { const result = await client.stats(sample); assert.ok(result['rawencoded']); assert.ok(result['compressedencoded']); assert.ok(result['compression']); }); }); // each algorithm }); }); // each sample }); }); ================================================ FILE: test/perf.js ================================================ import jsonUrl from 'main/index.js'; import samples from './samples.json'; import ALGORITHMS from 'main/compress'; const algorithms = Object.keys(ALGORITHMS); async function main() { const results = new Array(samples.length); for (const algorithm of algorithms) { const lib = jsonUrl(algorithm); let counter = 0; for (const datum of samples) { const { raw, rawencoded, compressedencoded, compression } = await lib.stats(datum); results[counter] = results[counter] || {}; results[counter].raw = raw; results[counter].rawencoded = rawencoded; results[counter][algorithm] = { ratio: compression, compressed: compressedencoded }; counter += 1; } } console.log(JSON.stringify(results, null, 2)); } main(); ================================================ FILE: test/samples.json ================================================ [ { "filters": { "amenities": [4, 55, 23], "budget_max": 80000, "budget_min": 50000, "event_types": [1, 2, 3], "neighborhoods": [4, 55, 502] }, "page": 1, "search_fields": { "end_time": "11:00pm", "guests": "50", "region": 8, "start_date": "11-23-2015", "start_time": "8:00pm" }, "search_for_name": "Name Search Test" }, { "setup": { "protocol": "NVP" }, "use": { "master": { "stage": "NO" } }, "common_request_params": { "version": "123", "method": "SetExpressCheckout" }, "NVP": { "SetExpressCheckout": { "AMT": "16", "CANCELURL": "http://xotoolslvs01.qa.paypal.com/ectest/cancel.html", "L_AMT0": "8", "L_NAME0": "Test Item fewarwerwerw", "L_QTY0": "2", "PAYMENTACTION": "Sale", "RETURNURL": "http://xotoolslvs01.qa.paypal.com/ectest/return.html", "_custom0__name": "L_DESC0", "_custom0": "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world" } } }, { "zh": { "name": "China", "continent": "Asia", "flagColors": [ "red", "yellow" ], "leader": { "name": "习 近平-习", "title": "President", "term": 137 }, "population": 1370000000 }, "in": { "name": "India", "continent": "", "a": true, "b": false, "c": null, "emptyArray": [], "emptyObject": {}, "flagColors": [ "orange", "white", "green" ], "leader": { "name": "Narendra\nModi.", "title": "Prime Minister", "term": 119 }, "population": 1190000000 }, "array": [ "asdf", [ 3, 4 ] ] }, { "one": 1 }, { "one": 1, "two": 2, "three": 3 }, { "_id": "55d54e11bf8bf51e99245818", "index": 0, "guid": "f1205498-83a2-4f9d-ba60-ded5585c0e67", "isActive": false, "balance": "$2,370.15", "picture": "http://placehold.it/32x32", "age": 28, "eyeColor": "green", "name": { "first": "Jill", "last": "Pennington" }, "company": "GAZAK", "email": "jill.pennington@gazak.co.uk", "phone": "+1 (998) 584-3321", "address": "517 Coles Street, Skyland, Montana, 7661", "about": "Pariatur tempor consequat amet do incididunt aute nulla. Pariatur reprehenderit nostrud quis mollit duis ipsum ut consequat mollit qui. Ullamco reprehenderit nostrud nulla nisi ipsum adipisicing esse. Et ullamco in reprehenderit fugiat consectetur sunt laborum est. Magna sit consectetur commodo tempor dolore sint id dolor Lorem Lorem. Ex nisi ea occaecat nisi. Voluptate enim in aliquip laborum consectetur eu commodo enim excepteur ex.", "registered": "Saturday, July 26, 2014 3:55 PM", "latitude": "74.180645", "longitude": "-80.748226", "tags": [ "anim", "est", "excepteur", "esse", "voluptate", "nulla", "anim", "custom_tag" ], "range": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "friends": [ { "id": 0, "name": "Frazier Schwartz" }, { "id": 1, "name": "Ellis Fuller" }, { "id": 2, "name": "Laurel Hill" } ], "greeting": "Hello, Jill! You have 9 unread messages.", "favoriteFruit": "apple" }, { "_id": "55d54e11e47640367e1e8a29", "index": 1, "guid": "edb46838-ba45-4de1-8a8a-71a7503d5a2d", "isActive": true, "balance": "$3,282.70", "picture": "http://placehold.it/32x32", "age": 35, "eyeColor": "brown", "name": { "first": "Eliza", "last": "Mcdaniel" }, "company": "GENMOM", "email": "eliza.mcdaniel@genmom.name", "phone": "+1 (991) 496-2864", "address": "532 Jewel Street, Outlook, Utah, 2237", "about": "Aliquip ea et mollit in excepteur anim duis adipisicing laboris esse occaecat. Mollit tempor et duis sit tempor irure sint sit id enim eiusmod. Amet consectetur esse commodo nostrud dolore excepteur in laboris aliqua cillum elit velit adipisicing deserunt. Ut excepteur ad quis ea velit aliqua tempor consectetur.", "registered": "Sunday, August 17, 2014 1:04 AM", "latitude": "-39.904477", "longitude": "71.117407", "tags": [ "anim", "est", "excepteur", "esse", "voluptate", "nulla", "anim", "custom_tag" ], "range": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "friends": [ { "id": 0, "name": "Frazier Schwartz" }, { "id": 1, "name": "Ellis Fuller" }, { "id": 2, "name": "Laurel Hill" } ], "greeting": "Hello, Eliza! You have 9 unread messages.", "favoriteFruit": "banana" }, { "_id": "55d54e118f4a1f5c6749e9fa", "index": 2, "guid": "854040fa-6f9d-481b-990e-d2877dbee2d4", "isActive": false, "balance": "$3,010.47", "picture": "http://placehold.it/32x32", "age": 40, "eyeColor": "brown", "name": { "first": "Robert", "last": "Burch" }, "company": "ACRODANCE", "email": "robert.burch@acrodance.biz", "phone": "+1 (876) 431-2360", "address": "139 Cornelia Street, Collins, Oklahoma, 671", "about": "Voluptate anim est velit reprehenderit sit ut magna non commodo. Commodo veniam sit non commodo nisi enim. Sint adipisicing culpa cillum exercitation irure consequat laboris laborum.", "registered": "Wednesday, September 17, 2014 9:16 AM", "latitude": "-18.778534", "longitude": "-77.0815", "tags": [ "anim", "est", "excepteur", "esse", "voluptate", "nulla", "anim", "custom_tag" ], "range": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "friends": [ { "id": 0, "name": "Frazier Schwartz" }, { "id": 1, "name": "Ellis Fuller" }, { "id": 2, "name": "Laurel Hill" } ], "greeting": "Hello, Robert! You have 6 unread messages.", "favoriteFruit": "strawberry" }, { "_id": "55d54e1161c743c696e550b9", "index": 3, "guid": "a9bc9cc1-f159-44c0-af72-0832a4a05ed6", "isActive": false, "balance": "$2,632.61", "picture": "http://placehold.it/32x32", "age": 32, "eyeColor": "green", "name": { "first": "Mae", "last": "Fowler" }, "company": "JUNIPOOR", "email": "mae.fowler@junipoor.org", "phone": "+1 (825) 426-2682", "address": "316 Pineapple Street, Hegins, New York, 5565", "about": "Voluptate elit non magna excepteur velit voluptate. Eu aliqua Lorem eiusmod ut quis amet cillum consequat. Do magna ex laborum incididunt est proident dolore tempor in ullamco. Commodo irure labore nulla voluptate in voluptate minim mollit enim aliqua minim excepteur ad esse.", "registered": "Thursday, June 18, 2015 10:05 PM", "latitude": "-62.526412", "longitude": "-54.420474", "tags": [ "anim", "est", "excepteur", "esse", "voluptate", "nulla", "anim", "custom_tag" ], "range": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "friends": [ { "id": 0, "name": "Frazier Schwartz" }, { "id": 1, "name": "Ellis Fuller" }, { "id": 2, "name": "Laurel Hill" } ], "greeting": "Hello, Mae! You have 9 unread messages.", "favoriteFruit": "banana" }, { "_id": "55d54e1134a6c7726d4311b7", "index": 4, "guid": "7b5cbc42-3c27-41fd-bec4-08e34581ce26", "isActive": false, "balance": "$2,232.78", "picture": "http://placehold.it/32x32", "age": 39, "eyeColor": "blue", "name": { "first": "Casey", "last": "Evans" }, "company": "NETERIA", "email": "casey.evans@neteria.ca", "phone": "+1 (989) 576-2758", "address": "940 Norfolk Street, Keller, Iowa, 6578", "about": "Do Lorem ullamco laborum ex qui qui ea ullamco deserunt aliquip reprehenderit sint dolore. Amet est dolor minim officia. Non irure sint mollit aute sunt ad enim id ullamco amet excepteur minim. Deserunt cillum esse do cupidatat cupidatat dolor nostrud proident pariatur laborum minim incididunt. Adipisicing eiusmod nulla aliquip in ea commodo anim irure ex qui culpa sint. Cupidatat fugiat est laboris culpa occaecat veniam qui eiusmod. Laborum qui dolore est ipsum anim.", "registered": "Monday, August 25, 2014 11:26 PM", "latitude": "52.117994", "longitude": "-9.442317", "tags": [ "anim", "est", "excepteur", "esse", "voluptate", "nulla", "anim", "custom_tag" ], "range": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ], "friends": [ { "id": 0, "name": "Frazier Schwartz" }, { "id": 1, "name": "Ellis Fuller" }, { "id": 2, "name": "Laurel Hill" } ], "greeting": "Hello, Casey! You have 5 unread messages.", "favoriteFruit": "apple" } ] ================================================ FILE: webpack.config.js ================================================ /* eslint-disable import/unambiguous */ const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: './src/main/browser-index.js', target: 'web', // make intent explicit output: { library: 'JsonUrl', libraryTarget: 'umd', libraryExport: 'default', filename: 'json-url.js', chunkFilename: 'json-url-[name].js', path: __dirname + '/dist/browser', }, module: { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { babelrc: false, presets: ['@babel/preset-env'], plugins: [ '@babel/plugin-syntax-dynamic-import', [ 'module-resolver', { root: ['src'], alias: { // keep these for browser build lzma: require.resolve('lzma/src/lzma_worker-min'), bluebird: require.resolve('bluebird/js/browser/bluebird.core.min.js'), }, }, ], '@babel/plugin-transform-runtime', ], }, }, }, ], }, // Webpack 5: explicitly polyfill the few Node bits your deps touch resolve: { fallback: { assert: require.resolve('assert/'), util: require.resolve('util/'), buffer: require.resolve('buffer/'), stream: require.resolve('stream-browserify'), // thanks to the lzma alias above, we don't need 'path' in the browser: path: false, }, }, plugins: [ // Provide the globals many Node libs expect new webpack.ProvidePlugin({ process: 'process/browser', Buffer: ['buffer', 'Buffer'], }), // (optional) prune debug-only branches early new webpack.DefinePlugin({ 'process.env.NODE_DEBUG': JSON.stringify(''), }), ], mode: 'production', optimization: { minimize: true, minimizer: [new TerserPlugin()], }, }; ================================================ FILE: webpack.config.single.js ================================================ /* eslint-disable import/unambiguous */ const webpack = require('webpack'); const TerserPlugin = require('terser-webpack-plugin'); module.exports = { entry: './src/main/browser-index.js', target: 'web', output: { library: 'JsonUrl', libraryTarget: 'umd', libraryExport: 'default', filename: 'json-url-single.js', path: __dirname + '/dist/browser', }, module: { rules: [ { test: /\.js$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader', options: { babelrc: false, presets: ['@babel/preset-env'], plugins: [ '@babel/plugin-syntax-dynamic-import', [ 'module-resolver', { root: ['src'], alias: { lzma: require.resolve('lzma/src/lzma_worker-min'), bluebird: require.resolve('bluebird/js/browser/bluebird.core.min.js'), }, }, ], '@babel/plugin-transform-runtime', ], }, }, }, ], }, // keep their explicit "global" behavior node: { global: false }, resolve: { fallback: { assert: require.resolve('assert/'), util: require.resolve('util/'), buffer: require.resolve('buffer/'), stream: require.resolve('stream-browserify'), path: false, }, }, plugins: [ new webpack.optimize.LimitChunkCountPlugin({ maxChunks: 1 }), new webpack.DefinePlugin({ global: 'window' }), new webpack.ProvidePlugin({ process: 'process/browser', Buffer: ['buffer', 'Buffer'], }), new webpack.DefinePlugin({ 'process.env.NODE_DEBUG': JSON.stringify(''), }), ], mode: 'production', optimization: { minimize: true, minimizer: [new TerserPlugin()], }, };