utilitas 1995.3.36 → 1995.3.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see utilitas.lite.mjs.LICENSE.txt */
2
- (()=>{var e,t,r={765:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=765,e.exports=t},2768:e=>{function t(e){this._db=e,this._operations=[],this._written=!1}t.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},t.prototype.put=function(e,t){this._checkWritten();var r=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(r)throw r;if(r=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw r;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},t.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},t.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},t.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void process.nextTick(t)},e.exports=t},4427:e=>{function t(e){this.db=e,this._ended=!1,this._nexting=!1}t.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next((function(){t._nexting=!1,e.apply(null,arguments)})):void process.nextTick((function(){t._nexting=!1,e()})))},t.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void process.nextTick(e))},e.exports=t},1831:(e,t,r)=>{var n=r(8287).Buffer,i=r(3409),o=r(4427),a=r(2768);function s(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}s.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);process.nextTick(t)},s.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);process.nextTick(e)},s.prototype.get=function(e,t,r){var n;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("get() requires a callback argument");return(n=this._checkKeyValue(e,"key",this._isBuffer))?r(n):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,r):void process.nextTick((function(){r(new Error("NotFound"))})))},s.prototype.put=function(e,t,r,n){var i;if("function"==typeof r&&(n=r),"function"!=typeof n)throw new Error("put() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))||(i=this._checkKeyValue(t,"value",this._isBuffer))?n(i):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||process.browser||(t=String(t)),"object"!=typeof r&&(r={}),"function"==typeof this._put?this._put(e,t,r,n):void process.nextTick(n))},s.prototype.del=function(e,t,r){var n;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("del() requires a callback argument");return(n=this._checkKeyValue(e,"key",this._isBuffer))?r(n):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,r):void process.nextTick(r))},s.prototype.batch=function(e,t,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return r(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var n,i,o=0,a=e.length;o<a;o++)if("object"==typeof(n=e[o])){if(i=this._checkKeyValue(n.type,"type",this._isBuffer))return r(i);if(i=this._checkKeyValue(n.key,"key",this._isBuffer))return r(i);if("put"==n.type&&(i=this._checkKeyValue(n.value,"value",this._isBuffer)))return r(i)}if("function"==typeof this._batch)return this._batch(e,t,r);process.nextTick(r)},s.prototype.approximateSize=function(e,t,r){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof r)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,r);process.nextTick((function(){r(null,0)}))},s.prototype._setupIteratorOptions=function(e){var t=this;return e=i(e),["start","end","gt","gte","lt","lte"].forEach((function(r){e[r]&&t._isBuffer(e[r])&&0===e[r].length&&delete e[r]})),e.reverse=!!e.reverse,e.reverse&&e.lt&&(e.start=e.lt),e.reverse&&e.lte&&(e.start=e.lte),!e.reverse&&e.gt&&(e.start=e.gt),!e.reverse&&e.gte&&(e.start=e.gte),(e.reverse&&e.lt&&!e.lte||!e.reverse&&e.gt&&!e.gte)&&(e.exclusiveStart=!0),e},s.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new o(this)},s.prototype._chainedBatch=function(){return new a(this)},s.prototype._isBuffer=function(e){return n.isBuffer(e)},s.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports.Z$=s,e.exports.No=o},3409:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},4148:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===n(o)?o:String(o)),i)}var o}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var a,s,c=r(9597).codes,u=c.ERR_AMBIGUOUS_ARGUMENT,f=c.ERR_INVALID_ARG_TYPE,l=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,p=c.ERR_MISSING_ARGS,d=r(3918),g=r(537).inspect,y=r(537).types,m=y.isPromise,b=y.isRegExp,v=r(1514)(),w=r(9394)(),_=r(8075)("RegExp.prototype.test");function E(){var e=r(2299);a=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var k=!1,x=e.exports=A,S={};function O(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function R(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];R.apply(void 0,[A,t.length].concat(t))}x.fail=function e(t,r,n,i,o){var a,s=arguments.length;if(0===s?a="Failed":1===s?(n=t,t=void 0):(!1===k&&(k=!0,(process.emitWarning?process.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(i="!=")),n instanceof Error)throw n;var c={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:o||e};void 0!==n&&(c.message=n);var u=new d(c);throw a&&(u.message=a,u.generatedMessage=!0),u},x.AssertionError=d,x.ok=A,x.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&O({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&O({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)||O({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)||O({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)||O({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)&&O({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var j=o((function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&b(t[e])&&_(t[e],n[e])?i[e]=n[e]:i[e]=t[e])}))}));function T(e,t,r,i){if("function"!=typeof t){if(b(t))return _(t,e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var c=Object.keys(t);if(t instanceof Error)c.push("name","message");else if(0===c.length)throw new l("error",t,"may not be an empty object");return void 0===a&&E(),c.forEach((function(n){"string"==typeof e[n]&&b(t[n])&&_(t[n],e[n])||function(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new j(e,i),c=new j(t,i,e),u=new d({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}O({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}(e,t,n,r,c,i)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return S}function L(e){return m(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function B(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!L(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!L(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function M(e,t,r,i){if("string"==typeof r){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new f("error",["Object","Error","Function","RegExp"],r);if(t===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var a="rejects"===e.name?"rejection":"exception";O({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!T(t,r,i,e))throw t}function N(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||T(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";O({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function P(e,t,r,i,o){if(!b(t))throw new f("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||_(t,e)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(n(e)," (").concat(g(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var c=new d({actual:e,expected:t,message:r,operator:o,stackStartFn:i});throw c.generatedMessage=s,c}}function C(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];R.apply(void 0,[C,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];M.apply(void 0,[e,I(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return B(t).then((function(t){return M.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];N.apply(void 0,[e,I(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return B(t).then((function(t){return N.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var i=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=i.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}i.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw i}},x.match=function e(t,r,n){P(t,r,n,e,"match")},x.doesNotMatch=function e(t,r,n){P(t,r,n,e,"doesNotMatch")},x.strict=v(C,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},3918:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){var n,i,o;n=e,i=t,o=r[t],(i=a(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}function s(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)},u(e)}function f(e,t,r){return f=l()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&h(i,r.prototype),i},f.apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var g=r(537).inspect,y=r(9597).codes.ERR_INVALID_ARG_TYPE;function m(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",v="",w="",_="",E={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 k(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function x(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var S=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(S,e);var r,n,a,u,f=(r=S,n=l(),function(){var e,t=p(r);if(n){var i=p(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return s(this,e)});function S(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),"object"!==d(e)||null===e)throw new y("options","Object",e);var r=e.message,n=e.operator,i=e.stackStartFn,o=e.actual,a=e.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=f.call(this,String(r));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(b="",v="",_="",w=""):(b="",v="",_="",w="")),"object"===d(o)&&null!==o&&"object"===d(a)&&null!==a&&"stack"in o&&o instanceof Error&&"stack"in a&&a instanceof Error&&(o=k(o),a=k(a)),"deepStrictEqual"===n||"strictEqual"===n)t=f.call(this,function(e,t,r){var n="",i="",o=0,a="",s=!1,c=x(e),u=c.split("\n"),f=x(t).split("\n"),l=0,h="";if("strictEqual"===r&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===f.length&&u[0]!==f[0]){var p=u[0].length+f[0].length;if(p<=10){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&p<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][l]===f[0][l];)l++;l>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",l),"^"),l=0)}}for(var g=u[u.length-1],y=f[f.length-1];g===y&&(l++<2?a="\n ".concat(g).concat(a):n=g,u.pop(),f.pop(),0!==u.length&&0!==f.length);)g=u[u.length-1],y=f[f.length-1];var k=Math.max(u.length,f.length);if(0===k){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(b,"...").concat(_);S.length>27;)S.pop();return"".concat(E.notIdentical,"\n\n").concat(S.join("\n"),"\n")}l>3&&(a="\n".concat(b,"...").concat(_).concat(a),s=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var O=0,R=E[r]+"\n".concat(v,"+ actual").concat(_," ").concat(w,"- expected").concat(_),A=" ".concat(b,"...").concat(_," Lines skipped");for(l=0;l<k;l++){var j=l-o;if(u.length<l+1)j>1&&l>2&&(j>4?(i+="\n".concat(b,"...").concat(_),s=!0):j>3&&(i+="\n ".concat(f[l-2]),O++),i+="\n ".concat(f[l-1]),O++),o=l,n+="\n".concat(w,"-").concat(_," ").concat(f[l]),O++;else if(f.length<l+1)j>1&&l>2&&(j>4?(i+="\n".concat(b,"...").concat(_),s=!0):j>3&&(i+="\n ".concat(u[l-2]),O++),i+="\n ".concat(u[l-1]),O++),o=l,i+="\n".concat(v,"+").concat(_," ").concat(u[l]),O++;else{var T=f[l],I=u[l],L=I!==T&&(!m(I,",")||I.slice(0,-1)!==T);L&&m(T,",")&&T.slice(0,-1)===I&&(L=!1,I+=","),L?(j>1&&l>2&&(j>4?(i+="\n".concat(b,"...").concat(_),s=!0):j>3&&(i+="\n ".concat(u[l-2]),O++),i+="\n ".concat(u[l-1]),O++),o=l,i+="\n".concat(v,"+").concat(_," ").concat(I),n+="\n".concat(w,"-").concat(_," ").concat(T),O+=2):(i+=n,n="",1!==j&&0!==l||(i+="\n ".concat(I),O++))}if(O>20&&l<k-2)return"".concat(R).concat(A,"\n").concat(i,"\n").concat(b,"...").concat(_).concat(n,"\n")+"".concat(b,"...").concat(_)}return"".concat(R).concat(s?A:"","\n").concat(i).concat(n).concat(a).concat(h)}(o,a,n));else if("notDeepStrictEqual"===n||"notStrictEqual"===n){var l=E[n],h=x(o).split("\n");if("notStrictEqual"===n&&"object"===d(o)&&null!==o&&(l=E.notStrictEqualObject),h.length>30)for(h[26]="".concat(b,"...").concat(_);h.length>27;)h.pop();t=1===h.length?f.call(this,"".concat(l," ").concat(h[0])):f.call(this,"".concat(l,"\n\n").concat(h.join("\n"),"\n"))}else{var p=x(o),g="",O=E[n];"notDeepEqual"===n||"notEqual"===n?(p="".concat(E[n],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(g="".concat(x(a)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===n||"equal"===n?p="".concat(O,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(n," ").concat(g)),t=f.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=u,t.generatedMessage=!r,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(c(t),i),t.stack,t.name="AssertionError",s(t)}return a=S,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),S}(u(Error),g.custom);e.exports=S},9597:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,c={};function u(e,t,r){r||(r=Error);var a=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(f,r);var a,s,c,u=(s=f,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(c){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o=u.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i)),o.code=e,o}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(r);c[e]=a}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,c,u,l;if(void 0===a&&(a=r(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var h=("number"!=typeof l&&(l=0),l+1>(u=e).length||-1===u.indexOf(".",l)?"argument":"property");c='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(f(t,"type"))}return c+". Received type ".concat(n(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(537));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(4148)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},2299:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},c=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(7653),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4133);function h(e){return e.call.bind(e)}var p=h(Object.prototype.hasOwnProperty),d=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),y=r(537).types,m=y.isAnyArrayBuffer,b=y.isArrayBufferView,v=y.isDate,w=y.isMap,_=y.isRegExp,E=y.isSet,k=y.isNativeError,x=y.isBoxedPrimitive,S=y.isNumberObject,O=y.isStringObject,R=y.isBooleanObject,A=y.isBigIntObject,j=y.isSymbolObject,T=y.isFloat32Array,I=y.isFloat64Array;function L(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function B(e){return Object.keys(e).filter(L).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var N=0,P=1,C=2,D=3;function U(e,t,r,n){if(e===t)return 0!==e||!r||u(e,t);if(r){if("object"!==o(e))return"number"==typeof e&&l(e)&&l(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,c,f,h=g(e);if(h!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=B(e),d=B(t);return p.length===d.length&&z(e,t,r,n,P,p)}if("[object Object]"===h&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(c=e,f=t,!(a?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(r||!T(e)&&!I(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var y=B(e),L=B(t);return y.length===L.length&&z(e,t,r,n,N,y)}if(E(e))return!(!E(t)||e.size!==t.size)&&z(e,t,r,n,C);if(w(e))return!(!w(t)||e.size!==t.size)&&z(e,t,r,n,D);if(m(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==M(new Uint8Array(i),new Uint8Array(s)))return!1}else if(x(e)&&!function(e,t){return S(e)?S(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):R(e)?R(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):A(e)?A(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return z(e,t,r,n,N)}function F(e,t){return t.filter((function(t){return d(e,t)}))}function z(e,t,r,i,a,u){if(5===arguments.length){u=Object.keys(e);var l=Object.keys(t);if(u.length!==l.length)return!1}for(var h=0;h<u.length;h++)if(!p(t,u[h]))return!1;if(r&&5===arguments.length){var g=f(e);if(0!==g.length){var y=0;for(h=0;h<g.length;h++){var m=g[h];if(d(e,m)){if(!d(t,m))return!1;u.push(m),y++}else if(d(t,m))return!1}var b=f(t);if(g.length!==b.length&&F(t,b).length!==y)return!1}else{var v=f(t);if(0!==v.length&&0!==F(t,v).length)return!1}}if(0===u.length&&(a===N||a===P&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var _=i.val2.get(t);if(void 0!==_)return w===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,r,i,a,u){var f=0;if(u===C){if(!function(e,t,r,n){for(var i=null,a=s(e),c=0;c<a.length;c++){var u=a[c];if("object"===o(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(r)return!1;if(!$(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var f=s(t),l=0;l<f.length;l++){var h=f[l];if("object"===o(h)&&null!==h){if(!W(i,h,r,n))return!1}else if(!r&&!e.has(h)&&!W(i,h,r,n))return!1}return 0===i.size}return!0}(e,t,r,a))return!1}else if(u===D){if(!function(e,t,r,i){for(var a=null,s=c(e),u=0;u<s.length;u++){var f=n(s[u],2),l=f[0],h=f[1];if("object"===o(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var p=t.get(l);if(void 0===p&&!t.has(l)||!U(h,p,r,i)){if(r)return!1;if(!Z(e,t,l,h,i))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var d=c(t),g=0;g<d.length;g++){var y=n(d[g],2),m=y[0],b=y[1];if("object"===o(m)&&null!==m){if(!G(a,e,m,b,r,i))return!1}else if(!(r||e.has(m)&&U(e.get(m),b,!1,i)||G(a,e,m,b,!1,i)))return!1}return 0===a.size}return!0}(e,t,r,a))return!1}else if(u===P)for(;f<e.length;f++){if(!p(e,f)){if(p(t,f))return!1;for(var l=Object.keys(e);f<l.length;f++){var h=l[f];if(!p(t,h)||!U(e[h],t[h],r,a))return!1}return l.length===Object.keys(t).length}if(!p(t,f)||!U(e[f],t[f],r,a))return!1}for(f=0;f<i.length;f++){var d=i[f];if(!U(e[d],t[d],r,a))return!1}return!0}(e,t,r,u,i,a);return i.val1.delete(e),i.val2.delete(t),E}function W(e,t,r,n){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(U(t,a,r,n))return e.delete(a),!0}return!1}function q(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(l(e))return!1}return!0}function $(e,t,r){var n=q(r);return null!=n?n:t.has(n)&&!e.has(n)}function Z(e,t,r,n,i){var o=q(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!U(n,a,!1,i))&&!e.has(o)&&U(n,a,!1,i)}function G(e,t,r,n,i,o){for(var a=s(e),c=0;c<a.length;c++){var u=a[c];if(U(r,u,i,o)&&U(n,t.get(u),i,o))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return U(e,t,!1)},isDeepStrictEqual:function(e,t){return U(e,t,!0)}}},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),f=0,l=c>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[f++]=255&t),1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4829:(e,t,r)=>{var n=r(8287).Buffer,i=r(8320).Duplex;function o(e){if(!(this instanceof o))return new o(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else n.isBuffer(e)?this.append(e):Array.isArray(e)&&e.forEach(function(e){n.isBuffer(e)&&this.append(e)}.bind(this));i.call(this)}r(537).inherits(o,i),o.prototype._offset=function(e){for(var t,r=0,n=0;n<this._bufs.length;n++){if(e<(t=r+this._bufs[n].length))return[n,e-r];r=t}},o.prototype.append=function(e){return this._bufs.push(n.isBuffer(e)?e:new n(e)),this.length+=e.length,this},o.prototype._write=function(e,t,r){this.append(e),r&&r()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype.get=function(e){return this.slice(e,e+1)[0]},o.prototype.slice=function(e,t){return this.copy(null,0,e,t)},o.prototype.copy=function(e,t,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length)return e||new n(0);if(i<=0)return e||new n(0);var o,a,s=!!e,c=this._offset(r),u=i-r,f=u,l=s&&t||0,h=c[1];if(0===r&&i==this.length){if(!s)return n.concat(this._bufs);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,l),l+=this._bufs[a].length;return e}if(f<=this._bufs[c[0]].length-h)return s?this._bufs[c[0]].copy(e,t,h,h+f):this._bufs[c[0]].slice(h,h+f);for(s||(e=new n(u)),a=c[0];a<this._bufs.length;a++){if(!(f>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,l,h,h+f);break}this._bufs[a].copy(e,l,h),l+=o,f-=o,h&&(h=0)}return e},o.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},o.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=0,t=new o;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)!function(t){o.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}}(t)}(),e.exports=o},5240:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(1438),a=r(626);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},186:(e,t,r)=>{e.exports=o;var n=r(9816),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},1438:(e,t,r)=>{e.exports=f;var n=r(4634),i=r(8287).Buffer;f.ReadableState=u;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);function u(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(5641).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new u(e,this),this.readable=!0,s.call(this)}function l(e,t,r,n,o){var a=function(e,t){var r=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?d(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(6698),c.inherits(f,s),f.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),l(this,r,e,t,!1)},f.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){a||(a=r(5641).I),this._readableState.decoder=new a(e),this._readableState.encoding=e};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){g(e)})):g(e))}function g(e){e.emit("readable")}function y(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(o.listenerCount(e,"data")>0&&b(e));r.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",(function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&w(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(n,t)),null===(r=e>0?v(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?f:c;function s(e){e===r&&f()}function c(){e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(r);function f(){e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function l(t){d(),e.removeListener("error",l),0===o.listenerCount(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),d()}function p(){e.removeListener("close",h),d()}function d(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(l):e._events.error=[l,e._events.error]:e.on("error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(this.on("readable",m),i.flowing=!0,process.nextTick((function(){y(r)}))),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this):this.read(0))}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){b(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},f._fromList=v},9816:(e,t,r)=>{e.exports=a;var n=r(5240),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},626:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){i(n)})):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,0,n,t,i);else{var o=l(0,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(u(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(5240);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&h(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var r=l(0,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,i){var o=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){i(a)})),o=!1}return o}(this,i,e,r)&&(o=function(e,t,r,i,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new n(t,r)),t}(t,r,i),n.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new a(r,i,o)):u(e,t,s,r,i,o),c}(this,i,e,t,r)),o},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.ending||n.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},8320:(e,t,r)=>{var n=r(8310);(t=e.exports=r(1438)).Stream=n,t.Readable=t,t.Writable=r(626),t.Duplex=r(5240),t.Transform=r(9816),t.PassThrough=r(186),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},5641:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},7713:(e,t,r)=>{var n=r(2963),i=r(9043),o=r(1891),a=i("level-filesystem",{db:n});e.exports=o(a)},5974:(e,t,r)=>{"use strict";var n=r(8287).Buffer,i=r(4148),o=r(4442),a=r(8411),s=r(1447),c=r(9681);for(var u in c)t[u]=c[u];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,r,n,i,o,a){return this._write(!0,e,t,r,n,i,o,a)},f.prototype.writeSync=function(e,t,r,n,i,o,a){return this._write(!1,e,t,r,n,i,o,a)},f.prototype._write=function(e,r,o,a,s,c,u,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=n.alloc(0),s=0,a=0),this.strm.avail_in=s,this.strm.input=o,this.strm.next_in=a,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=u,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return process.nextTick((function(){l._process(),l._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,r,n,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(r>=-1&&r<=9,"invalid compression level"),i(n>=1&&n<=9,"invalid memlevel"),i(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,n,o,a),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,r,n,i,c){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=c,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},8559:(e,t,r)=>{"use strict";var n=r(8287).Buffer,i=r(8310).Transform,o=r(5974),a=r(537),s=r(4148).ok,c=r(8287).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+c.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),l=0;l<f.length;l++){var h=f[l];h.match(/^Z/)&&Object.defineProperty(t,h,{enumerable:!0,value:o[h],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(p),g=0;g<d.length;g++){var y=d[g];p[p[y]]=y}function m(e,t,r){var i=[],o=0;function a(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=c?a=new RangeError(u):t=n.concat(i,o),i=[],e.close(),r(a,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",a),r(t)})),e.on("end",s),e.end(t),a()}function b(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function v(e){if(!(this instanceof v))return new v(e);R.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);R.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);R.call(this,e,o.GZIP)}function E(e){if(!(this instanceof E))return new E(e);R.call(this,e,o.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);R.call(this,e,o.DEFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);R.call(this,e,o.INFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);R.call(this,e,o.UNZIP)}function O(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function R(e,r){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!O(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!O(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(e,r){A(s),s._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],s.emit("error",n)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function A(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function j(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),t.Deflate=v,t.Inflate=w,t.Gzip=_,t.Gunzip=E,t.DeflateRaw=k,t.InflateRaw=x,t.Unzip=S,t.createDeflate=function(e){return new v(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new k(e)},t.createInflateRaw=function(e){return new x(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new E(e)},t.createUnzip=function(e){return new S(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new v(t),e,r)},t.deflateSync=function(e,t){return b(new v(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new _(t),e,r)},t.gzipSync=function(e,t){return b(new _(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new k(t),e,r)},t.deflateRawSync=function(e,t){return b(new k(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new S(t),e,r)},t.unzipSync=function(e,t){return b(new S(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new w(t),e,r)},t.inflateSync=function(e,t){return b(new w(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new E(t),e,r)},t.gunzipSync=function(e,t){return b(new E(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new x(t),e,r)},t.inflateRawSync=function(e,t){return b(new x(t),e)},a.inherits(R,i),R.prototype.params=function(e,r,n){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(i._handle,"zlib binding closed"),i._handle.params(e,r),i._hadError||(i._level=e,i._strategy=r,n&&n())}))}else process.nextTick(n)},R.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},R.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},R.prototype.flush=function(e,t){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&process.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return r.flush(e,t)})):(this._flushFlag=e,this.write(n.alloc(0),"",t))},R.prototype.close=function(e){A(this,e),process.nextTick(j,this)},R.prototype._transform=function(e,t,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||n.isBuffer(e)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},R.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,f=this,l="function"==typeof r;if(!l){var h,p=[],d=0;this.on("error",(function(e){h=e})),s(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw h;if(d>=c)throw A(this),new RangeError(u);var y=n.concat(p,d);return A(this),y}s(this._handle,"zlib binding closed");var m=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function b(c,u){if(this&&(this.buffer=null,this.callback=null),!f._hadError){var h=o-u;if(s(h>=0,"have should not go down"),h>0){var g=f._buffer.slice(f._offset,f._offset+h);f._offset+=h,l?f.push(g):(p.push(g),d+=g.length)}if((0===u||f._offset>=f._chunkSize)&&(o=f._chunkSize,f._offset=0,f._buffer=n.allocUnsafe(f._chunkSize)),0===u){if(a+=i-c,i=c,!l)return!0;var y=f._handle.write(t,e,a,i,f._buffer,f._offset,f._chunkSize);return y.callback=b,void(y.buffer=e)}if(!l)return!1;r()}}m.buffer=e,m.callback=b},a.inherits(v,R),a.inherits(w,R),a.inherits(_,R),a.inherits(E,R),a.inherits(k,R),a.inherits(x,R),a.inherits(S,R)},2746:(e,t,r)=>{var n=r(8287).Buffer,i=Object.prototype.toString,o=void 0!==n&&"function"==typeof n.alloc&&"function"==typeof n.allocUnsafe&&"function"==typeof n.from;e.exports=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===i.call(a).slice(8,-1)?function(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return o?n.from(e.slice(t,t+r)):new n(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?n.from(e,t):new n(e,t)}(e,t):o?n.from(e):new n(e);var a}},8287:(e,t,r)=>{"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|d(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return f(e),s(e<0?0:0|d(e))}function h(e){const t=e.length<0?0:0|d(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function d(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(Y(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return H(G(t,e.length-r),e,r,n)}function E(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return H(V(t),e,r,n)}function x(e,t,r,n){return H(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=R));return r}(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return f(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(n,i),f=e.slice(t,r);for(let e=0;e<s;++e)if(u[e]!==f[e]){o=u[e],a=f[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=J[e[n]];return i}function I(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function L(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function M(e,t,r,n,i){W(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function N(e,t,r,n,i){W(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function P(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const U={};function F(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||$(t,e.length-(r+1))}(n,i,o)}function q(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8075:(e,t,r)=>{"use strict";var n=r(453),i=r(487),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},487:(e,t,r)=>{"use strict";var n=r(6743),i=r(453),o=r(6897),a=r(9675),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(c,s),f=r(655),l=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(n,c,arguments);return o(t,1+l(0,e.length-(arguments.length-1)),!0)};var h=function(){return u(n,s,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h},1779:(e,t,r)=>{"use strict";var n=r(8287).Buffer;function i(e){return Object.prototype.toString.call(e)}function o(e,t,r,o){var a=[],s=[],c=void 0!==n;return void 0===t&&(t=!0),void 0===r&&(r=1/0),function e(r,u){if(null===r)return null;if(0==u)return r;var f,l,h,p,d;if("object"!=typeof r)return r;if(d=r,Array.isArray(d)||"object"==typeof d&&"[object Array]"===i(d))f=[];else if("object"==typeof(p=r)&&"[object RegExp]"===i(p))f=new RegExp(r.source,function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}(r)),r.lastIndex&&(f.lastIndex=r.lastIndex);else if("object"==typeof(h=r)&&"[object Date]"===i(h))f=new Date(r.getTime());else{if(c&&n.isBuffer(r))return f=new n(r.length),r.copy(f),f;void 0===o?(l=Object.getPrototypeOf(r),f=Object.create(l)):(f=Object.create(o),l=o)}if(t){var g=a.indexOf(r);if(-1!=g)return s[g];a.push(r),s.push(f)}for(var y in r){var m;l&&(m=Object.getOwnPropertyDescriptor(l,y)),m&&null==m.set||(f[y]=e(r[y],u-1))}return f}(e,r)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},7520:(e,t,r)=>{var n=r(8287).Buffer,i=r(3050).Writable,o=r(6698),a=r(2746);if("undefined"==typeof Uint8Array)var s=r(9656).SE;else s=Uint8Array;function c(e,t){if(!(this instanceof c))return new c(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var r=e.encoding,n=!1;r?"u8"!==(r=String(r).toLowerCase())&&"uint8"!==r||(r="uint8array"):n=!0,i.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=n,t&&this.on("finish",(function(){t(this.getBody())})),this.body=[]}function u(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=c,o(c,i),c.prototype._write=function(e,t,r){this.body.push(e),r()},c.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return n.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},c.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++)t.push.apply(t,e[r]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];"string"==typeof i||n.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return t=n.isBuffer(e[0])?(t=n.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];n.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return n.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,r=0;r<e.length;r++)"string"==typeof e[r]&&(e[r]=a(e[r])),t+=e[r].length;for(var n=new s(t),i=(r=0,0);r<e.length;r++)for(var o=e[r],c=0;c<o.length;c++)n[i++]=o[c];return n}(this.body):this.body):[]},Array.isArray},1097:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4935:(e,t,r)=>{"use strict";var n=r(3225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(5622));o.inherits=r(6698);var a=r(4053),s=r(5509);o.inherits(l,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var f=c[u];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},4507:(e,t,r)=>{"use strict";e.exports=o;var n=r(1657),i=Object.create(r(5622));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},4053:(e,t,r)=>{"use strict";var n=r(3225);e.exports=b;var i,o=r(1097);b.ReadableState=m,r(7007).EventEmitter;var a=function(e,t){return e.listeners(t).length},s=r(8010),c=r(5386).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=Object.create(r(5622));f.inherits=r(6698);var l=r(4385),h=void 0;h=l&&l.debuglog?l.debuglog("stream"):function(){};var p,d=r(3005),g=r(7353);f.inherits(b,s);var y=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var n=t instanceof(i=i||r(4935));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(7650).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(4935),!(this instanceof b))return new b(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function v(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),S(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},b.prototype.unshift=function(e){return v(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=r(7650).I),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var _=8388608;function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),j(e)}function S(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(O,e,t))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function R(e){h("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}b.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):k(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?m:c;function c(){h("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,o){h("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",u);var f=!1,l=!1;function p(t){h("ondata"),l=!1,!1!==e.write(t)||l||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++,l=!0),r.pause())}function d(t){h("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),m()}function y(){h("onfinish"),e.removeListener("close",g),m()}function m(){h("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",g),e.once("finish",y),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},b.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):n.nextTick(R,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(A,e,t))}(this,e)),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T},1657:(e,t,r)=>{"use strict";e.exports=a;var n=r(4935),i=Object.create(r(5622));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},5509:(e,t,r)=>{"use strict";var n=r(3225);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var o,a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;y.WritableState=g;var s=Object.create(r(5622));s.inherits=r(6698);var c,u={deprecate:r(4643)},f=r(8010),l=r(5386).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=r(7353);function d(){}function g(e,t){o=o||r(4935),e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(u||0===u)?u:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),E(e,t))}(e,r,i,t,o);else{var s=w(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?a(b,e,r,s,o):b(e,r,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function y(e){if(o=o||r(4935),!(c.call(y,this)||this instanceof o))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function m(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),E(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,m(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(m(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var r=w(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}s.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===y&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof h);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=d),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),n.nextTick(i,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,E(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}},3005:(e,t,r)=>{"use strict";var n=r(5386).Buffer,i=r(993);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},7353:(e,t,r)=>{"use strict";var n=r(3225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),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)}}},8010:(e,t,r)=>{e.exports=r(7007).EventEmitter},3050:(e,t,r)=>{(t=e.exports=r(4053)).Stream=t,t.Readable=t,t.Writable=r(5509),t.Duplex=r(4935),t.Transform=r(1657),t.PassThrough=r(4507)},5386:(e,t,r)=>{var n=r(8287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},7650:(e,t,r)=>{"use strict";var n=r(5386).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},5622:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8287).Buffer.isBuffer},6841:(e,t,r)=>{var n=r(8287).Buffer,i=r(537),o=r(1831).Z$;function a(e){o.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}i.inherits(a,o),a.prototype.setDb=function(e){this._db=e,this._operations.forEach((function(t){e[t.method].apply(e,t.args)}))},a.prototype._open=function(e,t){return process.nextTick(t)},a.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach((function(e){a.prototype["_"+e]=function(){this._operation(e,arguments)}})),a.prototype._isBuffer=function(e){return n.isBuffer(e)},a.prototype._iterator=function(){throw new TypeError("not implemented")},e.exports=a},41:(e,t,r)=>{"use strict";var n=r(655),i=r(8068),o=r(9675),a=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&l?l.configurable:!u,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===c&&l?l.writable:!c});else{if(!f&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},8452:(e,t,r)=>{"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(41),c=r(592)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;c?s(e,t,r,!0):s(e,t,r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],r[o[s]])};f.supportsDescriptors=!!c,e.exports=f},2796:(e,t,r)=>{var n=r(9723);function i(e,t,r){t&&"string"!=typeof t&&(t=t.message||t.name),n(this,{type:e,name:e,cause:"string"!=typeof t?t:r,message:t},"ewr")}function o(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=new Error,e.exports=function(e){var t=function(t,r){return function(e,t,r){var n=function(r,o){i.call(this,t,r,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,n)};return n.prototype=r?new r:new o,n}(e,t,r)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},519:(e,t,r)=>{var n=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},n.forEach((function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t})),e.exports.custom=r(2796)(e.exports),e.exports.create=e.exports.custom.createError},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},1237:e=>{"use strict";e.exports=EvalError},9383:e=>{"use strict";e.exports=Error},9290:e=>{"use strict";e.exports=RangeError},9538:e=>{"use strict";e.exports=ReferenceError},8068:e=>{"use strict";e.exports=SyntaxError},9675:e=>{"use strict";e.exports=TypeError},5345:e=>{"use strict";e.exports=URIError},7007:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,a,u;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,u=f,console&&console.warn&&console.warn(u)}return e}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(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):d(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,f=d(c,u);for(r=0;r<u;++r)n(f[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2682:(e,t,r)=>{"use strict";var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},7593:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},9353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var r=[],n=1,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments),s=r(0,i.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))})),i.prototype){var f=function(){};f.prototype=i.prototype,o.prototype=new f,f.prototype=null}return o}},6743:(e,t,r)=>{"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},4837:(e,t,r)=>{var n=r(8287).Buffer,i=r(2602),o=r(3238),a=r(8688),s=new n(0),c=function(){},u=function(e){return"function"==typeof e?e:function(t){t(null,e)}},f=function(e,t){var r=!1,n=!1;return e._read=function(){r=!0},e.destroy=function(){n=!0},t((function(t,i){if(t)return e.emit("error",t);var o=function(){for(var t;null!==(t=i.read());)r=!1,e.push(t)};if(i.on("readable",(function(){r&&o()})),i.on("end",(function(){o(),e.push(null)})),i.on("error",(function(t){e.emit("error",t)})),i.on("close",(function(){o(),process.nextTick((function(){e.emit("close")}))})),e._read=function(){r=!0,o()},e.destroy=function(){n||(n=!0,i.destroy&&i.destroy())},n)return n=!1,void e.destroy();r&&o()})),e},l=function(e,t){var r=c,n=!1;return e._write=function(e,t,n){r=n},e.destroy=function(){n=!0},e.write(s),t((function(t,i){if(t)return e.emit("error",t);i.on("close",(function(){e.emit("close")})),i.on("error",(function(t){e.emit("error",t)})),e._write=function(e,t,r){if(e===s)return r();i.write(e,t,r)};var o=e.emit;if(i.on("finish",(function(){o.call(e,"finish")})),e.destroy=function(){n||(n=!0,i.destroy&&i.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);i.end()},n)return n=!1,void e.destroy();r()})),e};t.readable=function(e,r){return 1===arguments.length?t.readable(null,e):(e||(e={}),f(new o(e),u(r)))},t.writable=function(e,r){return 1===arguments.length?t.writable(null,e):(e||(e={}),l(new i(e),u(r)))},t.duplex=function(e,r,n){if(2===arguments.length)return t.duplex(null,e,r);e||(e={});var i=new a(e);return l(i,u(r)),f(i,u(n)),i}},8688:(e,t,r)=>{e.exports=r(8166)},8166:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(5140),a=r(7684);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},5824:(e,t,r)=>{e.exports=o;var n=r(5778),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5140:(e,t,r)=>{e.exports=f;var n=r(4634),i=r(8287).Buffer;f.ReadableState=u;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);function u(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(5019).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new u(e,this),this.readable=!0,s.call(this)}function l(e,t,r,n,o){var a=function(e,t){var r=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?d(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(6698),c.inherits(f,s),f.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),l(this,r,e,t,!1)},f.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){a||(a=r(5019).I),this._readableState.decoder=new a(e),this._readableState.encoding=e};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){g(e)})):g(e))}function g(e){e.emit("readable")}function y(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(o.listenerCount(e,"data")>0&&b(e));r.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",(function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&w(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(n,t)),null===(r=e>0?v(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?f:c;function s(e){e===r&&f()}function c(){e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(r);function f(){e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function l(t){d(),e.removeListener("error",l),0===o.listenerCount(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),d()}function p(){e.removeListener("close",h),d()}function d(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(l):e._events.error=[l,e._events.error]:e.on("error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(this.on("readable",m),i.flowing=!0,process.nextTick((function(){y(r)}))),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this):this.read(0))}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){b(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},f._fromList=v},5778:(e,t,r)=>{e.exports=a;var n=r(8166),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},7684:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){i(n)})):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,0,n,t,i);else{var o=l(0,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(u(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(8166);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&h(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var r=l(0,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,i){var o=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){i(a)})),o=!1}return o}(this,i,e,r)&&(o=function(e,t,r,i,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new n(t,r)),t}(t,r,i),n.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new a(r,i,o)):u(e,t,s,r,i,o),c}(this,i,e,t,r)),o},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.ending||n.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},3238:(e,t,r)=>{var n=r(8310);(t=e.exports=r(5140)).Stream=n,t.Readable=t,t.Writable=r(7684),t.Duplex=r(8166),t.Transform=r(5778),t.PassThrough=r(5824),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},2602:(e,t,r)=>{e.exports=r(7684)},5019:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},453:(e,t,r)=>{"use strict";var n,i=r(9383),o=r(1237),a=r(9290),s=r(9538),c=r(8068),u=r(9675),f=r(5345),l=Function,h=function(e){try{return l('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var d=function(){throw new u},g=p?function(){try{return d}catch(e){try{return p(arguments,"callee").get}catch(e){return d}}}():d,y=r(4039)(),m=r(24)(),b=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%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%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&b?b(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":g,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var E=b(b(e));_["%Error.prototype%"]=E}var k=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&b&&(r=b(i.prototype))}return _[t]=r,r},x={__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"]},S=r(6743),O=r(9957),R=S.call(Function.call,Array.prototype.concat),A=S.call(Function.apply,Array.prototype.splice),j=S.call(Function.call,String.prototype.replace),T=S.call(Function.call,String.prototype.slice),I=S.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,M=function(e,t){var r,n=e;if(O(x,n)&&(n="%"+(r=x[n])[0]+"%"),O(_,n)){var i=_[n];if(i===v&&(i=k(n)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=T(e,0,1),r=T(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,L,(function(e,t,r,i){n[n.length]=r?j(i,B,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],A(r,R([0,1],f)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],g=T(d,0,1),y=T(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),O(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&l+1>=r.length){var m=p(a,d);a=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else h=O(a,d),a=a[d];h&&!s&&(_[o]=a)}}return a}},5795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592:(e,t,r)=>{"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},24:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},4039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9092:(e,t,r)=>{"use strict";var n=r(1333);e.exports=function(){return n()&&!!Symbol.toStringTag}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);e.exports=o.call(n,i)},196:function(e,t,r){var n,i;!function(o,a,s){"use strict";n=function(){var e=function(e){throw e},t=function(){},r={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},n=function(e,t){for(var n in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),r)this[n]=void 0!==e[n]?e[n]:r[n];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,o=this.implementationPreference.filter((function(e){return e in i}));this.implementation=o[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:n,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var r="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(r+=" with error code "+e.target.errorCode),t=new Error(r)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var r=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=r.objectStore(this.storeName);var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(!r)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),n.splice(n.indexOf(r),1)}else t=!0,this.onError(new Error('Cannot create new index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))}),this),n.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+n.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var r={autoIncrement:this.autoIncrement};null!==this.keyPath&&(r.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,r)}var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(r||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(this.store.deleteIndex(r),this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),n.splice(n.indexOf(r),1)}else this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})}),this),n.length&&n.forEach((function(e){this.store.deleteIndex(e)}),this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var r=this.idb.deleteDatabase(this.dbName);r.onsuccess=e,r.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(r,n,i,o){null!==this.keyPath&&(o=i,i=n,n=r),o||(o=e),i||(i=t);var a,s=!1,c=null,u=this.db.transaction([this.storeName],this.consts.READ_WRITE);return u.oncomplete=function(){(s?i:o)(c)},u.onabort=o,u.onerror=o,null!==this.keyPath?(this._addIdPropertyIfNeeded(n),a=u.objectStore(this.storeName).put(n)):a=u.objectStore(this.storeName).put(n,r),a.onsuccess=function(e){s=!0,c=e.target.result},a.onerror=o,u},get:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).get(r);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},remove:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_WRITE);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).delete(r);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},batch:function(r,n,i){if(i||(i=e),n||(n=t),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("dataArray argument must be of type Array."));else if(0===r.length)return n(!0);var o=r.length,a=!1,s=!1,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);c.oncomplete=function(){(s?n:i)(s)},c.onabort=i,c.onerror=i;var u=function(){0!=--o||a||(a=!0,s=!0)};return r.forEach((function(e){var t=e.type,r=e.key,n=e.value,o=function(e){c.abort(),a||(a=!0,i(e,t,r))};if("remove"==t){var s=c.objectStore(this.storeName).delete(r);s.onsuccess=u,s.onerror=o}else if("put"==t){var f;null!==this.keyPath?(this._addIdPropertyIfNeeded(n),f=c.objectStore(this.storeName).put(n)):f=c.objectStore(this.storeName).put(n,r),f.onsuccess=u,f.onerror=o}}),this),c},putBatch:function(e,t,r){var n=e.map((function(e){return{type:"put",value:e}}));return this.batch(n,t,r)},upsertBatch:function(r,n,i,o){"function"==typeof n&&(o=i=n,n={}),o||(o=e),i||(i=t),n||(n={}),"[object Array]"!=Object.prototype.toString.call(r)&&o(new Error("dataArray argument must be of type Array."));var a=n.keyField||this.keyPath,s=r.length,c=!1,u=!1,f=0,l=this.db.transaction([this.storeName],this.consts.READ_WRITE);l.oncomplete=function(){u?i(r):o(!1)},l.onabort=o,l.onerror=o;var h=function(e){r[f++][a]=e.target.result,0!=--s||c||(c=!0,u=!0)};return r.forEach((function(e){var t,r=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=l.objectStore(this.storeName).put(e)):t=l.objectStore(this.storeName).put(e,r),t.onsuccess=h,t.onerror=function(e){l.abort(),c||(c=!0,o(e))}}),this),l},removeBatch:function(e,t,r){var n=e.map((function(e){return{type:"remove",key:e}}));return this.batch(n,t,r)},getBatch:function(r,n,i,o){if(i||(i=e),n||(n=t),o||(o="sparse"),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("keyArray argument must be of type Array."));else if(0===r.length)return n([]);var a=[],s=r.length,c=!1,u=null,f=this.db.transaction([this.storeName],this.consts.READ_ONLY);f.oncomplete=function(){(c?n:i)(u)},f.onabort=i,f.onerror=i;var l=function(e){e.target.result||"dense"==o?a.push(e.target.result):"sparse"==o&&a.length++,0==--s&&(c=!0,u=a)};return r.forEach((function(e){var t=f.objectStore(this.storeName).get(e);t.onsuccess=l,t.onerror=function(e){u=e,i(e),f.abort()}}),this),f},getAll:function(r,n){n||(n=e),r||(r=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),o=i.objectStore(this.storeName);return o.getAll?this._getAllNative(i,o,r,n):this._getAllCursor(i,o,r,n),i},_getAllNative:function(e,t,r,n){var i=!1,o=null;e.oncomplete=function(){(i?r:n)(o)},e.onabort=n,e.onerror=n;var a=t.getAll();a.onsuccess=function(e){i=!0,o=e.target.result},a.onerror=n},_getAllCursor:function(e,t,r,n){var i=[],o=!1,a=null;e.oncomplete=function(){(o?r:n)(a)},e.onabort=n,e.onerror=n;var s=t.openCursor();s.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(o=!0,a=i)},s.onError=n},clear:function(r,n){n||(n=e),r||(r=t);var i=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(i?r:n)(o)},a.onabort=n,a.onerror=n;var s=a.objectStore(this.storeName).clear();return s.onsuccess=function(e){i=!0,o=e.target.result},s.onerror=n,a},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){return["keyPath","unique","multiEntry"].every((function(r){if("multiEntry"==r&&void 0===e[r]&&!1===t[r])return!0;if("keyPath"==r&&"[object Array]"==Object.prototype.toString.call(t[r])){var n=t.keyPath,i=e.keyPath;if("string"==typeof i)return n.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==n.length)return!1;for(var o=0,a=n.length;o<a;o++)if(!(i.contains&&i.contains(n[o])||i.indexOf(-1!==n[o])))return!1;return!0}return t[r]==e[r]}))},iterate:function(t,r){var n="desc"==(r=a({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},r||{})).order.toLowerCase()?"PREV":"NEXT";r.filterDuplicates&&(n+="_NO_DUPLICATE");var i=!1,o=this.db.transaction([this.storeName],this.consts[r.writeAccess?"READ_WRITE":"READ_ONLY"]),s=o.objectStore(this.storeName);r.index&&(s=s.index(r.index));var c=0;o.oncomplete=function(){i?r.onEnd?r.onEnd():t(null):r.onError(null)},o.onabort=r.onError,o.onerror=r.onError;var u=s.openCursor(r.keyRange,this.consts[n]);return u.onerror=r.onError,u.onsuccess=function(e){var n=e.target.result;if(n)if(r.offset)n.advance(r.offset),r.offset=0;else{var a=t(n.value,n,o);r.allowItemRejection&&!1===a||c++,r.autoContinue&&(c+r.offset<r.limit?n.continue():i=!0)}else i=!0},o},query:function(e,t){var r=[],n=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(r,n)},this.iterate((function(e){n++;var i=!t.filter||t.filter(e);return!1!==i&&r.push(e),i}),t)},count:function(t,r){var n=(r=a({index:null,keyRange:null},r||{})).onError||e,i=!1,o=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(i?t:n)(o)},s.onabort=n,s.onerror=n;var c=s.objectStore(this.storeName);r.index&&(c=c.index(r.index));var u=c.count(r.keyRange);return u.onsuccess=function(e){i=!0,o=e.target.result},u.onError=n,s},makeKeyRange:function(e){var t,r=void 0!==e.lower,n=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case r&&n:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case r:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case n:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},o={};function a(e,t){var r,n;for(r in t)(n=t[r])!==o[r]&&n!==e[r]&&(e[r]=n);return e}return n.prototype=i,n.version=i.version,n},void 0===(i=n.call(t,r,t,e))||(e.exports=i)}()},251:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<<u)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*c-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+p]=255&a,p+=d,a/=256,u-=8);e[r+p-d]|=128*g}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7244:(e,t,r)=>{"use strict";var n=r(9092)(),i=r(8075)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},9600:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(l=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8184:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(9092)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},4133:(e,t,r)=>{"use strict";var n=r(487),i=r(8452),o=r(3003),a=r(6642),s=r(2464),c=n(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},6642:(e,t,r)=>{"use strict";var n=r(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},2464:(e,t,r)=>{"use strict";var n=r(8452),i=r(6642);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5680:(e,t,r)=>{"use strict";var n=r(5767);e.exports=function(e){return!!n(e)}},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2175:(e,t,r)=>{var n=r(8287).Buffer;e.exports=function(e){return n.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},7432:(e,t,r)=>{var n=r(8287).Buffer,i=r(2951),o=r(4675),a=r(4123),s=r(537),c=r(3519),u=new n(0),f={encode:function(e){return"string"==typeof e?e=new n(e):e},decode:function(e){return n.isBuffer(e)?e:new n(e)},buffer:!0,type:"raw"},l=function(){},h=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var r={},p=t.blockSize||65536,d=t.batch||100,g=new n(p);e.put("\0","ignore",l);var y={},m=function(e,t){if(!(this instanceof m))return new m(e,t);t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),i.call(this)};s.inherits(m,i),m.prototype._init=function(e){this.blockIndex=e/p|0,this.blockOffset=e-this.blockIndex*p,this.blockLength=this.blockOffset},m.prototype._flush=function(t){if(!this.batch.length)return t();var r=this.batch[this.batch.length-1].key,n=this.batch;if(this.batch=[],!this.truncate)return e.batch(n,t);this.truncate=!1,this._truncate(n,r,t)},m.prototype._truncate=function(t,r,n){n=c(n);var i=[],o=e.createKeyStream({start:r,end:this.name+"ÿÿ"});o.on("error",n),o.on("data",(function(e){i.push({type:"del",key:e})})),o.on("end",(function(){i.push.apply(i,t),e.batch(i,n)}))},m.prototype._writeBlock=function(t){var r=1===this.blocks.length?this.blocks[0]:n.concat(this.blocks,this.blockLength-this.blockOffset),i=this.blockIndex,o=this.blockOffset,a=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+h(i),c=function(e,t,r){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:f}),!t&&a.batch.length<d?r():a._flush(r)};return!o&&r.length===p||!o&&!this.append?c(r,!1,t):void function(t,r,i,o,a){var s=function(){--y[t].locks||delete y[t]},c=function(e){if(e.locks++,!e.block&&!r)return e.block=i,void a(null,e.block,s);var t,c,u;e.block||(e.block=new n(p)),e.block.length<r+i.length&&(e.block=(t=e.block,c=r+i.length,u=new n(c),t.copy(u),u)),i.copy(e.block,r),!o&&r+i.length<e.block.length&&(e.block=e.block.slice(0,r+i.length)),a(null,e.block,s)};if(y[t])return c(y[t]);e.get(t,{valueEncoding:f},(function(e,r){if(e&&!e.notFound)return a(e);y[t]||(y[t]={locks:0,block:r}),c(y[t])}))}(s,o,r,this.append,(function(e,r,n){if(e)return t(e);c(r,!0,(function(e){n(),t(e)}))}))},m.prototype._initAppend=function(e,t,n){var i=this;this._shouldInitAppend=!1,r.size(this.name,(function(r,o){if(r)return n(r);i._init(o),i._write(e,t,n)}))},m.prototype._write=function(e,t,r){if(!e.length||this._destroyed)return r();if(this._shouldInitAppend)return this._initAppend(e,t,r);var n,i=this,o=p-this.blockLength,a=function(e){return e?r(e):n?i._write(n,t,r):void r()};if(e.length>o&&(n=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<o)return a();this._writeBlock(a)},m.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,process.nextTick(this.emit.bind(this,"close")))},m.prototype.end=function(e){var t=this,r=arguments;e&&"function"!=typeof e&&(this.write(e),e=u),this.write(u,(function(){t._writeBlock((function(e){if(e)return t.emit("error",e);t._flush((function(e){if(e)return t.emit("error",e);i.prototype.end.apply(t,r)}))}))}))};var b=function(t,r){r||(r={});var n=this,i=r.start||0,a=i/p|0,s=i-a*p,c=t+"ÿ"+h(a);this.name=t,this._missing=("number"==typeof r.end?r.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:c,end:t+"ÿÿ",valueEncoding:f});var u=function(e){return c=t+"ÿ"+h(++a),!(!n._missing||(!s||(e=e.slice(s),s=0,e.length))&&(e.length>n._missing&&(e=e.slice(0,n._missing)),n._missing-=e.length,n._pause(!n.push(e)),!n._missing))};this._reader.on("data",(function(e){for(;e.key>c;)if(!u(g))return;u(e.value)})),this._reader.on("error",(function(e){n.emit("error",e)})),this._reader.on("end",(function(){n.push(null)})),o.call(this)};return s.inherits(b,o),b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),process.nextTick(this.emit.bind(this,"close")))},b.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},b.prototype._read=function(){this._pause(!1)},r.remove=function(t,r){r=c(r||l);var n=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",r),i.on("data",(function(e){n.push({type:"del",key:e})})),i.on("end",(function(){e.batch(n,r)}))},r.size=function(t,r){a.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:f},(function(e,n,i){return e&&"range not found"===e.message?r(null,0):e?r(e):n.slice(0,t.length+1)!==t+"ÿ"?r(null,0):void r(null,parseInt(n.toString().slice(t.length+1),16)*p+i.length)}))},r.write=function(e,t,n,i){if("function"==typeof n)return r.write(e,t,null,n);n||(n={}),i||(i=l);var o=r.createWriteStream(e,n);o.on("error",i),o.on("finish",(function(){i()})),o.write(t),o.end()},r.read=function(e,t,i){if("function"==typeof t)return r.read(e,null,t);t||(t={});var o=r.createReadStream(e,t),a=[];o.on("error",i),o.on("data",(function(e){a.push(e)})),o.on("end",(function(){i(null,1===a.length?a[0]:n.concat(a))}))},r.createReadStream=function(e,t){return new b(e,t)},r.createWriteStream=function(e,t){return new m(e,t)},r}},7295:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(5821),a=r(5405);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},5683:(e,t,r)=>{e.exports=o;var n=r(2545),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5821:(e,t,r)=>{e.exports=l;var n=r(4634),i=r(8287).Buffer;l.ReadableState=f;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);c.inherits=r(6698);var u=r(717);function f(e,t){var n=r(7295),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],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.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(554).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function l(e){if(r(7295),!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,s.call(this)}function h(e,t,r,n,i){var o=function(e,t){var r=null;return c.isBuffer(t)||c.isString(t)||c.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(o)e.emit("error",o);else if(c.isNullOrUndefined(r))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,g(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else t.endEmitted&&i?(a=new Error("stream.unshift() after end event"),e.emit("error",a)):(!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&g(e)),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(u("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u=u&&u.debuglog?u.debuglog("stream"):function(){},c.inherits(l,s),l.prototype.push=function(e,t){var r=this._readableState;return c.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){return a||(a=r(554).I),this._readableState.decoder=new a(e),this._readableState.encoding=e,this};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||c.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?process.nextTick((function(){y(e)})):y(e))}function y(e){u("emit readable"),e.emit("readable"),m(e)}function m(e){var t=e._readableState;if(u("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}function b(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function v(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}l.prototype.read=function(e){u("read",e);var t=this._readableState,r=e;if((!c.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?v(this):g(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&v(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),(t.ended||t.reading)&&u("reading or ended",i=!1),i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),n=e>0?b(e,t):null,c.isNull(n)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&v(this),c.isNull(n)||this.emit("data",n),n},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?l:c;function s(e){u("onunpipe"),e===r&&l()}function c(){u("onend"),e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o.listenerCount(e,"data")&&(t.flowing=!0,m(e))}}(r);function l(){u("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",l),r.removeListener("data",h),!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function h(t){u("ondata"),!1===e.write(t)&&(u("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,r.pause())}function p(t){u("onerror",t),y(),e.removeListener("error",p),0===o.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",g),y()}function g(){u("onfinish"),e.removeListener("close",d),y()}function y(){u("unpipe"),r.unpipe(e)}return e.on("drain",f),r.on("data",h),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(p):e._events.error=[p,e._events.error]:e.on("error",p),e.once("close",d),e.once("finish",g),e.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var n=this._readableState;if(!n.readableListening)if(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading)n.length&&g(this);else{var i=this;process.nextTick((function(){u("readable nexttick read 0"),i.read(0)}))}}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!0,e.reading||(u("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick((function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),m(e),t.flowing&&!t.reading&&e.read(0)}(e,t)})))}(this,e)),this},l.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(u("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){u("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)c.isFunction(e[i])&&c.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(t,r){for(var i=0,o=t.length;i<o;i++)a=t[i],e.on(a,n.emit.bind(n,a));var a}(["error","close","destroy","pause","resume"]),n._read=function(t){u("wrapped _read",t),r&&(r=!1,e.resume())},n},l._fromList=b},2545:(e,t,r)=>{e.exports=a;var n=r(7295),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var o=n.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,i.isNullOrUndefined(r)||e.push(r),o&&o(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",(function(){i.isFunction(this._flush)?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},5405:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var n=r(7295),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){t.pendingcb--,i(n)})):(t.pendingcb--,i(n)),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var o=h(0,r);o||r.corked||r.bufferProcessing||!r.buffer.length||l(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function c(e){var t=r(7295);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),d(e,t)}function l(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var r=[],n=0;n<t.buffer.length;n++)r.push(t.buffer[n].callback);t.pendingcb++,u(e,t,!0,t.length,t.buffer,"",(function(e){for(var n=0;n<r.length;n++)t.pendingcb--,r[n](e)})),t.buffer=[]}else{for(n=0;n<t.buffer.length;n++){var i=t.buffer[n],o=i.chunk,a=i.encoding,s=i.callback,c=t.objectMode?1:o.length;if(u(e,t,!1,c,o,a,s),t.writing){n++;break}}n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}t.bufferProcessing=!1}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function d(e,t){var r=h(0,t);return r&&(0===t.pendingcb?(p(e,t),t.finished=!0,e.emit("finish")):p(e,t)),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,s=!1;return i.isFunction(t)&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),i.isFunction(r)||(r=function(){}),o.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,n){var o=!0;if(!(i.isBuffer(r)||i.isString(r)||i.isNullOrUndefined(r)||t.objectMode)){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){n(a)})),o=!1}return o}(this,o,e,r)&&(o.pendingcb++,s=function(e,t,r,o,s){r=function(e,t,r){return!e.objectMode&&!1!==e.decodeStrings&&i.isString(t)&&(t=new n(t,r)),t}(t,r,o),i.isBuffer(r)&&(o="buffer");var c=t.objectMode?1:r.length;t.length+=c;var f=t.length<t.highWaterMark;return f||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new a(r,o,s)):u(e,t,!1,c,r,o,s),f}(this,o,e,t,r)),s},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||l(this,e))},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype._writev=null,c.prototype.end=function(e,t,r){var n=this._writableState;i.isFunction(e)?(r=e,e=null,t=null):i.isFunction(t)&&(r=t,t=null),i.isNullOrUndefined(e)||this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,d(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},4675:(e,t,r)=>{(t=e.exports=r(5821)).Stream=r(8310),t.Readable=t,t.Writable=r(5405),t.Duplex=r(7295),t.Transform=r(2545),t.PassThrough=r(5683),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},2951:(e,t,r)=>{e.exports=r(5405)},554:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},8571:(e,t,r)=>{var n=r(519);Object.keys(n.code).forEach((function(e){var r=n.code[e];t[e]=function(t){var n=new Error(e+", "+r.description+(t?" '"+t+"'":""));return n.errno=r.errno,n.code=e,n.path=t,n}}))},1891:(e,t,r)=>{var n=r(8287).Buffer,i=r(4837),o=r(5584),a=r(7432),s=r(4123),c=r(3519),u=r(6788),f=r(8571),l=r(5363),h=r(1218),p=function(e,t,r){process.nextTick((function(){e(t,r)}))},d=function(){};e.exports=function(e,t){var r={};e=o(e);var g=a(e.sublevel("blobs"),t),y=l(e.sublevel("stats")),m=e.sublevel("links"),b=h(),v=[],w=Date.now();r.mkdir=function(e,t,n){if("function"==typeof t)return r.mkdir(e,null,t);t||(t=u(777)),n||(n=d),y.follow(e,(function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(i)):void y.put(i,{type:"directory",mode:t,size:4096},b.cb(i,n))}))},r.rmdir=function(e,t){t||(t=d),y.follow(e,(function(e,n,i){if(e)return t(e);r.readdir(i,(function(e,r){return e?t(e):r.length?t(f.ENOTEMPTY(i)):void y.del(i,b.cb(i,t))}))}))},r.readdir=function(e,t){y.follow(e,(function(e,r,n){return e?t(e):r?r.isDirectory()?void y.list(n,t):t(f.ENOTDIR(n)):t(f.ENOENT(n))}))};var _=function(e,t,r){t(e,(function(e,t,n){if(e)return r(e);if(!t.isFile())return r(null,t);var i=t&&t.blob||n;g.size(i,(function(e,n){if(e)return r(e);t.size=n,r(null,t)}))}))};r.stat=function(e,t){_(e,y.follow,t)},r.lstat=function(e,t){_(e,y.get,t)},r.exists=function(e,t){y.follow(e,(function(e){t(!e)}))};var E=function(e,t,r,n){n||(n=d),t(e,(function(e,t,i){if(e)return n(e);y.update(i,{mode:r},b.cb(i,n))}))};r.chmod=function(e,t,r){E(e,y.follow,t,r)},r.lchmod=function(e,t,r){E(e,y.get,t,r)};var k=function(e,t,r,n,i){i||(i=d),t(e,(function(e,t,o){if(e)return i(e);y.update(o,{uid:r,gid:n},b.cb(o,i))}))};return r.chown=function(e,t,r,n){k(e,y.follow,t,r,n)},r.lchown=function(e,t,r,n){k(e,y.get,t,r,n)},r.utimes=function(e,t,r,n){n||(n=d),y.follow(e,(function(e,i,o){if(e)return n(e);var a={};t&&(a.atime=t),r&&(a.mtime=r),y.update(o,a,b.cb(o,n))}))},r.rename=function(e,t,n){n||(n=d),y.follow(e,(function(e,i,o){if(e)return n(e);var a=function(){n=b.cb(t,b.cb(o,n)),y.put(t,i,(function(e){if(e)return n(e);y.del(o,n)}))};y.follow(t,(function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?i.isDirectory()!==t.isDirectory()?n(f.EISDIR(o)):void(t.isDirectory()?r.readdir(s,(function(e,t){return e?n(e):t.length?n(f.ENOTEMPTY(o)):void a()})):a()):a()}))}))},r.realpath=function(e,t,n){if("function"==typeof t)return r.realpath(e,null,t);y.follow(e,(function(e,t,r){if(e)return n(e);n(null,r)}))},r.writeFile=function(e,t,i,o){if("function"==typeof i)return r.writeFile(e,t,null,i);"string"==typeof i&&(i={encoding:i}),i||(i={}),o||(o=d),n.isBuffer(t)||(t=new n(t,i.encoding||"utf-8"));var a=i.flags||"w";i.append="w"!==a[0],y.follow(e,(function(e,r,n){if(e&&"ENOENT"!==e.code)return o(e);if(r&&r.isDirectory())return o(f.EISDIR(n));if(r&&"x"===a[1])return o(f.EEXIST(n));var s=r&&r.blob||n;y.writable(n,(function(e){if(e)return o(e);g.write(s,t,i,(function(e){if(e)return o(e);y.put(n,{ctime:r&&r.ctime,mtime:new Date,mode:i.mode||u(666),type:"file"},b.cb(n,o))}))}))}))},r.appendFile=function(e,t,n,i){if("function"==typeof n)return r.appendFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),n.flags="a",r.writeFile(e,t,n,i)},r.unlink=function(e,t){t||(t=d),y.get(e,(function(e,r,n){if(e)return t(e);if(r.isDirectory())return t(f.EISDIR(n));var i=function(e){s(m,{start:e+"ÿ",end:e+"ÿÿ"},(function(r){if(r)return g.remove(e,t);t()}))};y.del(n,b.cb(n,(function(e){return e?t(e):r.link?(o=r.link.slice(0,r.link.indexOf("ÿ")),void m.del(r.link,(function(e){if(e)return t(e);i(o)}))):void m.del(n+"ÿ",(function(e){if(e)return t(e);i(n)}));var o})))}))},r.readFile=function(e,t,n){if("function"==typeof t)return r.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,y.follow(e,(function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(f.EISDIR(i));var o=r&&r.blob||i;g.read(o,(function(e,r){if(e)return n(e);n(null,t.encoding?r.toString(t.encoding):r)}))}))},r.createReadStream=function(e,t){t||(t={});var r=!1,n=i.readable((function(i){y.follow(e,(function(e,o,a){if(e)return i(e);if(o.isDirectory())return i(f.EISDIR(a));var s=o&&o.blob||a,c=g.createReadStream(s,t);n.emit("open"),c.on("end",(function(){process.nextTick((function(){r||n.emit("close")}))})),i(null,c)}))}));return n.on("close",(function(){r=!0})),n},r.createWriteStream=function(e,t){t||(t={});var r=t.flags||"w",n=!1,o=t.mode||u(666);t.append="a"===r[0];var a=i.writable((function(i){y.follow(e,(function(e,s,c){if(e&&"ENOENT"!==e.code)return i(e);if(s&&s.isDirectory())return i(f.EISDIR(c));if(s&&"x"===r[1])return i(f.EEXIST(c));var u=s&&s.blob||c;y.writable(u,(function(e){if(e)return i(e);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:o,type:"file"};y.put(c,r,(function(e){if(e)return i(e);var o=g.createWriteStream(u,t);a.emit("open"),o.on("finish",(function(){r.mtime=new Date,y.put(c,r,(function(){b.change(c),n||a.emit("close")}))})),i(null,o)}))}))}))}));return a.on("close",(function(){n=!0})),a},r.truncate=function(e,t,r){y.follow(e,(function(e,i,o){if(e)return r(e);var a=i&&i.blob||o;g.size(a,(function(e,i){if(e)return r(e);y.writable(o,(function(e){if(e)return r(e);if(r=c(b.cb(o,r)),!t)return g.remove(a,r);var s=g.createWriteStream(a,{start:i<t?t-1:t});s.on("error",r),s.on("finish",r),i<t&&s.write(new n([0])),s.end()}))}))}))},r.watchFile=function(e,t,n){return"function"==typeof t?r.watchFile(e,null,t):b.watch(y.normalize(e),n)},r.unwatchFile=function(e,t){b.unwatch(y.normalize(e),t)},r.watch=function(e,t,n){return"function"==typeof t?r.watch(e,null,t):b.watcher(y.normalize(e),n)},r.notify=function(e){b.on("change",e)},r.open=function(e,t,n,i){if("function"==typeof n)return r.open(e,t,null,n);y.follow(e,(function(e,r,o){if(e&&"ENOENT"!==e.code)return i(e);var a=t[0],s="+"===t[1]||"+"===t[2],c=r&&r.blob||o,l={key:o,blob:c,mode:n||u(666),readable:"r"===a||("w"===a||"a"===a)&&s,writable:"w"===a||"a"===a||"r"===a&&s,append:"a"===a};return"r"===a&&e?i(e):"x"===t[1]&&r?i(f.EEXIST(o)):r&&r.isDirectory()?i(f.EISDIR(o)):void g.size(c,(function(e,t){if(e)return i(e);l.append&&(l.writePos=t),y.writable(o,(function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=v.indexOf(null);-1===t&&(t=10+v.push(v.length+10)-1),l.fd=t,v[t]=l,b.change(o),i(null,l.fd)},n=function(e){return e?i(e):r?t():void y.put(c,{ctime:r&&r.ctime,type:"file"},t)};if(!l.append&&l.writable)return g.remove(c,n);n()}))}))}))},r.close=function(e,t){var r=v[e];if(!r)return p(t,f.EBADF());v[e]=null,p(b.cb(r.key,t))},r.write=function(e,t,r,n,i,o){var a=v[e];if(o||(o=d),!a||!a.writable)return p(o,f.EBADF());null===i&&(i=a.writePos||0);var s=t.slice(r,r+n);a.writePos=i+s.length,g.write(a.blob,s,{start:i,append:!0},(function(e){if(e)return o(e);o(null,n,t)}))},r.read=function(e,t,n,i,o,a){var s=v[e];if(a||(a=d),!s||!s.readable)return p(a,f.EBADF());null===o&&(o=r.readPos||0),g.read(s.blob,{start:o,end:o+i-1},(function(e,s){if(e)return a(e);var c=s.slice(0,i);c.copy(t,n),r.readPos=o+c.length,a(null,c.length,t)}))},r.fsync=function(e,t){var r=v[e];if(t||(t=d),!r||!r.writable)return p(t,f.EBADF());p(t)},r.ftruncate=function(e,t,n){var i=v[e];if(n||(n=d),!i)return p(n,f.EBADF());r.truncate(i.blob,t,n)},r.fchown=function(e,t,n,i){var o=v[e];if(i||(i=d),!o)return p(i,f.EBADF());r.chown(o.key,t,n,i)},r.fchmod=function(e,t,n){var i=v[e];if(n||(n=d),!i)return p(n,f.EBADF());r.chmod(i.key,t,n)},r.futimes=function(e,t,n,i){var o=v[e];if(i||(i=d),!o)return p(i,f.EBADF());r.utimes(o.key,t,n,i)},r.fstat=function(e,t){var n=v[e];if(!n)return p(t,f.EBADF());r.stat(n.key,t)},r.symlink=function(e,t,r){r||(r=d),y.follow(e,(function(e,n,i){if(e)return r(e);y.get(t,(function(e,n){return e&&"ENOENT"!==e.code?r(e):n?r(f.EEXIST(t)):void y.put(t,{type:"symlink",target:i,mode:u(777)},r)}))}))},r.readlink=function(e,t){y.get(e,(function(r,n){return r?t(r):n.target?void t(null,n.target):t(f.EINVAL(e))}))},r.link=function(e,t,r){r||(r=d),y.follow(e,(function(e,n,i){return e?r(e):n.isFile()?void y.get(t,(function(e,o){if(e&&"ENOENT"!==e.code)return r(e);if(o)return r(f.EEXIST(t));var a=i+"ÿ"+ ++w;m.put(i+"ÿ",i,(function(e){if(e)return r(e);m.put(a,i,(function(e){if(e)return r(e);y.put(t,{type:"file",link:a,blob:i,mode:n.mode},r)}))}))})):r(f.EINVAL(i))}))},r}},5363:(e,t,r)=>{var n=r(7975),i=r(3519),o=r(7520),a=r(6788),s=r(2581),c=r(7970),u=r(8571),f=s({type:"directory",mode:a(777),size:4096}),l=function(e){return e="/"===e[0]?e:"/"+e,"/"===(e=n.normalize(e))?e:"/"===e[e.length-1]?e.slice(0,-1):e},h=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};e.exports=function(e){var t={};return t.normalize=l,t.get=function(t,r){if("/"===(t=l(t)))return process.nextTick(r.bind(null,null,f,"/"));e.get(h(t),{valueEncoding:"json"},(function(e,n){return e&&e.notFound?r(u.ENOENT(t),null,t):e?r(e,null,t):void r(null,s(n),t)}))},t.writable=function(e,r){if("/"===(e=l(e)))return process.nextTick(r.bind(null,u.EPERM(e)));t.follow(n.dirname(e),(function(t,n){return t?r(t):n.isDirectory()?void r(null,e):r(u.ENOTDIR(e))}))},t.list=function(t,r){t=l(t);var n=h("/"===t?t:t+"/"),a=e.createKeyStream({start:n,end:n+"ÿ"});r=i(r),a.on("error",r),a.pipe(o({encoding:"object"},(function(e){e=e.map((function(e){return e.split("/").pop()})),r(null,e)})))},t.follow=function(e,r){!function(e,r){var i="/",o=e.split("/").slice(1),a=function(){t.get(n.join(i,o.shift()),(function(t,n,s){return t?r(t,n,e):(i=n.target||s,o.length?void a():r(null,n,s))}))};a()}(l(e),(function e(n,i,o){return n?r(n,null,o):i.target?t.get(i.target,e):void r(null,s(i),o)}))},t.update=function(e,r,n){t.get(e,(function(e,i,o){return e?n(e):"/"===o?n(u.EPERM(o)):void t.put(o,c(i,r),n)}))},t.put=function(r,n,i){t.writable(r,(function(t,r){if(t)return i(t);e.put(h(r),s(n),{valueEncoding:"json"},i)}))},t.del=function(t,r){if("/"===(t=l(t)))return process.nextTick(r.bind(null,u.EPERM(t)));e.del(h(t),r)},t}},2581:e=>{var t=function(e){return e?"string"==typeof e?new Date(e):e:new Date},r=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=t(e.mtime),this.atime=t(e.atime),this.ctime=t(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};r.prototype.isDirectory=function(){return"directory"===this.type},r.prototype.isFile=function(){return"file"===this.type},r.prototype.isBlockDevice=function(){return!1},r.prototype.isCharacterDevice=function(){return!1},r.prototype.isSymbolicLink=function(){return"symlink"===this.type},r.prototype.isFIFO=function(){return!1},r.prototype.isSocket=function(){return!1},e.exports=function(e){return new r(e)}},1218:(e,t,r)=>{var n=r(7007);e.exports=function(){var e={},t=new n.EventEmitter;return t.watch=function(t,r){return e[t]||(e[t]=new n.EventEmitter,e[t].setMaxListeners(0)),r&&e[t].on("change",r),e[t]},t.watcher=function(e,r){var i=new n.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),r&&i.on("change",r),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,r){e[t]&&(r?e[t].removeListener("change",r):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(r){e[r]&&e[r].emit("change"),t.emit("change",r)},t.cb=function(e,r){return function(n,i){e&&t.change(e),r&&r(n,i)}},t}},2795:e=>{e.exports=function(e){var t=e.reverse,r=e.end,n=e.start,i=[n,r];return null!=n&&null!=r&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},5687:(e,t,r)=>{var n=r(2980);e.exports=function(e){if(!e.hooks){var t=[],r=[];e.hooks={post:function(e,r){r||(r=e,e="");var i={test:n.checker(e),hook:r};return t.push(i),c(t,i)},pre:function(e,t){t||(t=e,e="");var i={test:n.checker(e),hook:t,safe:!1!==e.safe};return r.push(i),c(r,i)},posthooks:t,prehooks:r},e.on("put",(function(e,t){u({type:"put",key:e,value:t})})),e.on("del",(function(e,t){u({type:"del",key:e,value:t})})),e.on("batch",(function(e){e.forEach(u)}));var i=e.put,o=e.del,a=e.batch;e.put=function(e,t,r,n){return f(!1,[{key:e,value:t,type:"put"}],r,n)},e.del=function(e,t,r){return f(!1,[{key:e,type:"del"}],t,r)},e.batch=function(e,t,r){return f(!0,e,t,r)}}function s(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function c(e,t){return function(){var r=e.indexOf(t);return!!~r&&(e.splice(r,1),!0)}}function u(e){e&&e.type&&t.forEach((function(t){t.test(e.key)&&t.hook(e)}))}function f(t,n,c,u){try{n.forEach((function e(t,i){r.forEach((function(r){if(r.test(String(t.key))){var o={add:function(t,o){if(void 0===t)return this;if(!1===t)return delete n[i];var a=s(t.prefix)||s(o)||r.prefix||"";if(a&&(t.prefix=a),t.key=a+t.key,r.safe&&r.test(String(t.key)))throw new Error("prehook cannot insert into own range");var c=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),u=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return c&&(t.keyEncoding=c),u&&(t.valueEncoding=u),n.push(t),e(t,n.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};r.hook.call(o,t,o.add,n)}}))}))}catch(e){return(u||c)(e)}if(1==(n=n.filter((function(e){return e&&e.type}))).length&&!t){var f=n[0];return"put"==f.type?i.call(e,f.key,f.value,c,u):o.call(e,f.key,c,u)}return a.call(e,n,c,u)}}},2963:(e,t,r)=>{var n=r(8287).Buffer;e.exports=l;var i=r(196),o=r(1831).Z$,a=r(537),s=r(1421),c=r(2175),u=r(3476),f=r(4527);function l(e){if(!(this instanceof l))return new l(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(l,o),l.prototype._open=function(e,t){var r=this,n={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){t&&t(null,r.idb)},onError:function(e){t&&t(e)}};u(n,e),this.IDBOptions=n,this.idb=new i(n)},l.prototype._get=function(e,t,r){this.idb.get(e,(function(i){if(void 0===i)return r(new Error("NotFound"));var o=!0;return!1===t.asBuffer&&(o=!1),t.raw&&(o=!1),o&&(i=i instanceof Uint8Array?f(i):new n(String(i))),r(null,i,e)}),r)},l.prototype._del=function(e,t,r){this.idb.remove(e,r,r)},l.prototype._put=function(e,t,r,i){t instanceof ArrayBuffer&&(t=f(new Uint8Array(t)));var o=this.convertEncoding(e,t,r);n.isBuffer(o.value)&&("function"==typeof t.toArrayBuffer?o.value=new Uint8Array(t.toArrayBuffer()):o.value=new Uint8Array(t)),this.idb.put(o.key,o.value,(function(){i()}),i)},l.prototype.convertEncoding=function(e,t,r){if(r.raw)return{key:e,value:t};if(t){var n=t.toString();"NaN"===n&&(t="NaN")}var i=r.valueEncoding,o={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof o.value&&(o.value=n),o},l.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},l.prototype._batch=function(e,t,r){var n,i,o,a,s=[];if(0===e.length)return setTimeout(r,0);for(n=0;n<e.length;n++){o={},a=e[n],s[n]=o;var c=this.convertEncoding(a.key,a.value,t);for(i in a.key=c.key,a.value=c.value,a)"type"===i&&"del"==a[i]?o[i]="remove":o[i]=a[i]}return this.idb.batch(s,(function(){r()}),r)},l.prototype._close=function(e){this.idb.db.close(),e()},l.prototype._approximateSize=function(e,t,r){var n=new Error("Not implemented");if(r)return r(n);throw n},l.prototype._isBuffer=function(e){return n.isBuffer(e)},l.destroy=function(e,t){if("object"==typeof e)var r=e.IDBOptions.storePrefix||"IDBWrapper-",n=e.location;else r="IDBWrapper-",n=e;var i=indexedDB.deleteDatabase(r+n);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},l.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):c(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0}},1421:(e,t,r)=>{var n=r(537),i=r(1831).No,o=r(4602);function a(e,t){t||(t={}),this.options=t,i.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var r=o.lowerBound(t),n=o.upperBound(t);try{this._keyRange=r||n?this.db.makeKeyRange({lower:r,upper:n,excludeLower:o.lowerBoundExclusive(t),excludeUpper:o.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=a,n.inherits(a,i),a.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate((function(){e.onItem.apply(e,arguments)}),{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){console.log("horrible error",e)}})},a.prototype.onItem=function(e,t,r){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var n=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(n=!1),n&&this.callback(!1,t.key,t.value),t&&t.continue()},a.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")}},7969:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n){if(!function(e){var t="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===r.call(e);return t||"undefined"==typeof window||(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),t}(n))throw new TypeError("iterator must be a function");var i,o,a="string"==typeof e,s=e.length,c=arguments.length>2?arguments[2]:null;if(s===+s)for(i=0;i<s;i++)null===c?n(a?e.charAt(i):e[i],i,e):n.call(c,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===c?n(e[o],o,e):n.call(c,e[o],o,e))}},9731:(e,t,r)=>{e.exports=Object.keys||r(7274)},3819:e=>{var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7274:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(7969),a=r(3819),s=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),f=a(e),l=[];if(!t&&!r&&!f)throw new TypeError("Object.keys called on a non-object");if(f)o(e,(function(e){l.push(e)}));else{var h,p=c&&r;for(h in e)p&&"prototype"===h||!n.call(e,h)||l.push(h)}if(s){var d=e.constructor,g=d&&d.prototype===e;o(u,(function(t){g&&"constructor"===t||!n.call(e,t)||l.push(t)}))}return l},e.exports=t}()},7237:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},3476:(e,t,r)=>{var n=r(9731),i=r(7237);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},4123:(e,t,r)=>{var n=r(2795);function i(e,t,r){var n,i,o;t.limit=t.reverse?2:1,n=e.createReadStream(t),i=function(e,n){if(t.reverse&&n&&t.start&&n.key.toString()>t.start)return!1;"error"==e?r(n):"end"==e?r(new Error("range not found"),null,null):r(null,n.key,n.value)},o=[],["data","error","end"].forEach((function(e){function t(t){!1!==i(e,t)&&o.forEach((function(e){e()}))}n.on(e,t),o.push((function(){n.removeListener(e,t)}))}))}(t=e.exports=i).first=function(e,t,r){return r||(r=t,t={}),t.reverse=!1,i(e,n(t),r)},t.last=function(e,t,r){return r||(r=t,t={}),t.start,t.reverse=!0,i(e,n(t),(function(n,o,a){if(n){var s=t.start;t.start=null,i(e,t,(function(e,i,o){if(!i)return r(n,null,null);var a=i.toString();a<=s&&(!t.end||a>=t.end)?r(e,i,o):r(n,null,null)}))}else r(n,o,a)}))}},3152:e=>{function t(e,t,r,n){var i={type:e,key:t,value:r,options:n};return n&&n.prefix&&(i.prefix=n.prefix,delete n.prefix),this._operations.push(i),this}function r(e){this._operations=[],this._sdb=e,this.put=t.bind(this,"put"),this.del=t.bind(this,"del")}var n=r.prototype;n.clear=function(){this._operations=[]},n.write=function(e){this._sdb.batch(this._operations,e)},e.exports=r},5584:(e,t,r)=>{r(7007).EventEmitter,process.nextTick;var n=r(8662),i=r(3152),o=r(7212),a=r(5687);e.exports=function(e,t){function r(){}r.prototype=e;var s=new r;if(s.sublevel)return s;var c=(t=t||{}).sep=t.sep||"ÿ";function u(e){return function(t){return(t=o(t=t||{})).reverse?t.start=t.start||c:t.end=t.end||c,e.call(s,t)}}s._options=t,a(s),s.sublevels={},s.sublevel=function(e,t){return s.sublevels[e]?s.sublevels[e]:new n(s,e,t||this._options)},s.methods={},s.prefix=function(e){return""+(e||"")},s.pre=function(e,t){return t||(t=e,e={max:c}),s.hooks.pre(e,t)},s.post=function(e,t){return t||(t=e,e={max:c}),s.hooks.post(e,t)},s.readStream=s.createReadStream=u(s.createReadStream),s.keyStream=s.createKeyStream=u(s.createKeyStream),s.valuesStream=s.createValueStream=u(s.createValueStream);var f=s.batch;return s.batch=function(e,t,r){if(!Array.isArray(e))return new i(s);e.forEach((function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))})),f.call(s,e,t,r)},s}},2068:e=>{var t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=function(e){return e!=e},o={boolean:1,number:1,string:1,undefined:1},a=e.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,i=n.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(t in e)if(r.call(e,t))return!1;return!0}return"[object String]"===i&&""===e},a.equal=function(e,t){var r,i=n.call(e);if(i!==n.call(t))return!1;if("[object Object]"===i){for(r in e)if(!a.equal(e[r],t[r]))return!1;return!0}if("[object Array]"===i){if((r=e.length)!==t.length)return!1;for(;--r;)if(!a.equal(e[r],t[r]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var r=typeof t[e];return"object"===r?!!t[e]:!o[r]},a.instance=a.instanceof=function(e,t){return e instanceof t},a.null=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===n.call(e),r=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||r},a.array=function(e){return"[object Array]"===n.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&r.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===n.call(e)},a.false=function(e){return a.boolean(e)&&(!1===e||!1===e.valueOf())},a.true=function(e){return a.boolean(e)&&(!0===e||!0===e.valueOf())},a.date=function(e){return"[object Date]"===n.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===n.call(e)},a.fn=a.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===n.call(e)},a.number=function(e){return"[object Number]"===n.call(e)},a.infinite=function(e){return e===1/0||e===-1/0},a.decimal=function(e){return a.number(e)&&!i(e)&&!a.infinite(e)&&e%1!=0},a.divisibleBy=function(e,t){var r=a.infinite(e),n=a.infinite(t),o=a.number(e)&&!i(e)&&a.number(t)&&!i(t)&&0!==t;return r||n||o&&e%t==0},a.int=function(e){return a.number(e)&&!i(e)&&e%1==0},a.maximum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e<t[r])return!1;return!0},a.minimum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e>t[r])return!1;return!0},a.nan=function(e){return!a.number(e)||e!=e},a.even=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2==0},a.odd=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2!=0},a.ge=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<=t},a.lt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<t},a.within=function(e,t,r){if(i(e)||i(t)||i(r))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(r))throw new TypeError("all arguments must be numbers");return a.infinite(e)||a.infinite(t)||a.infinite(r)||e>=t&&e<=r},a.object=function(e){return e&&"[object Object]"===n.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===n.call(e)},a.string=function(e){return"[object String]"===n.call(e)}},7212:(e,t,r)=>{var n=r(1779);e.exports=function(e){var t=(e=n(e)).reverse,r=e.max||e.end,i=e.min||e.start,o=[i,r];return null!=i&&null!=r&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},5346:(e,t,r)=>{e.exports=Object.keys||r(7589)},7589:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=r(2068),o=r(7593),a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,r=[];for(t in e)n.call(e,t)&&r.push(t);return a&&o(s,(function(t){n.call(e,t)&&r.push(t)})),r},e.exports=t}()},7330:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},3685:(e,t,r)=>{var n=r(5346),i=r(7330);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},8662:(e,t,r)=>{var n=r(7007).EventEmitter,i=r(537).inherits,o=r(2980),a=r(7212),s=r(3685),c=r(3152);function u(e,t,r){if("string"==typeof r&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof u))return new u(e,t,r);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(r=r||{}).sep=r.sep||"ÿ",this._parent=e,this._options=r,this.options=r,this._prefix=t,this._root=l(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var n=this;this.hooks={pre:function(){return n.pre.apply(n,arguments)},post:function(){return n.post.apply(n,arguments)}}}i(u,n);var f=u.prototype;function l(e){return e._parent?l(e._parent):e}f._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},f._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:s(e,this._options),cb:t}},f.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new u(this,e,t||this._options)},f.put=function(e,t,r,n){var i=this._getOptsAndCb(r,n);this._root.put(this.prefix(e),t,i.opts,i.cb)},f.get=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.get(this.prefix(e),n.opts,n.cb)},f.del=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.del(this.prefix(e),n.opts,n.cb)},f.batch=function(e,t,r){if(!Array.isArray(e))return new c(this);var n=this,i=this._getOptsAndCb(t,r);e.forEach((function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||n).prefix(e.key),e.prefix&&(e.prefix=null)})),this._root.batch(e,i.opts,i.cb)},f._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},f._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},f.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},f.keyStream=f.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},f.valueStream=f.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},f.readStream=f.createReadStream=function(e){e=e||{};var t=l(this),r=this.prefix(),n=o.prefix(e,r);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach((function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}))}(n,s(e,this._options));var i=t.createReadStream(n);if(!1===n.values){var a;if(a=i.read)i.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(r.length)),t};else{var c=i.emit;i.emit=function(e,t){"data"===e?c.call(this,"data",t.substring(r.length)):c.call(this,e,t)}}return i}return!1===n.keys||((a=i.read)?i.read=function(e){var t=a.call(this,e);return t&&(t.key=t.key.substring(r.length)),t}:i.on("data",(function(e){e.key=e.key.substring(r.length)}))),i},f.writeStream=f.createWriteStream=function(){var e=l(this),t=this.prefix(),r=e.createWriteStream.apply(e,arguments),n=r.write,i=this._options.encoding,o=this._options.valueEncoding,a=this._options.keyEncoding,s=!i&&!o&&!a;return r.write=s?function(e){return e.key=t+e.key,n.call(r,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),o&&void 0===e.valueEncoding&&(e.valueEncoding=o),a&&void 0===e.keyEncoding&&(e.keyEncoding=a),n.call(r,e)},r},f.approximateSize=function(){var e=l(db);return e.approximateSize.apply(e,arguments)},f.pre=function(e,t){t||(t=e,e=null),e=o.prefix(e,this.prefix(),this._options.sep);var r=l(this._parent),n=this.prefix();return r.hooks.pre(a(e),(function(e,r,i){t({key:e.key.substring(n.length),value:e.value,type:e.type},(function(e,t){r(e,e.prefix?t:t||n)}),i)}))},f.post=function(e,t){t||(t=e,e=null);var r=l(this._parent),n=this.prefix();return e=o.prefix(e,n,this._options.sep),r.hooks.post(a(e),(function(e){t({key:e.key.substring(n.length),value:e.value,type:e.type})}))},e.exports=u},3324:(e,t,r)=>{var n=r(2350),i=r(7805).WriteError,o=n.getOptions,a=n.dispatchError;function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}s.prototype.put=function(e,t,r){r=o(this._levelup,r);var a=n.encodeKey(e,r),s=n.encodeValue(t,r);try{this.batch.put(a,s)}catch(e){throw new i(e)}return this.ops.push({type:"put",key:a,value:s}),this},s.prototype.del=function(e,t){t=o(this._levelup,t);var r=n.encodeKey(e,t);try{this.batch.del(r)}catch(e){throw new i(e)}return this.ops.push({type:"del",key:r}),this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new i(e)}return this.ops=[],this},s.prototype.write=function(e){var t=this._levelup,r=this.ops;try{this.batch.write((function(n){if(n)return a(t,new i(n),e);t.emit("batch",r),e&&e()}))}catch(e){throw new i(e)}},e.exports=s},7805:(e,t,r)=>{var n=r(519).create,i=n("LevelUPError"),o=n("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:n("InitializationError",i),OpenError:n("OpenError",i),ReadError:n("ReadError",i),WriteError:n("WriteError",i),NotFoundError:o,EncodingError:n("EncodingError",i)}},9043:(e,t,r)=>{var n=r(7007).EventEmitter,i=r(537).inherits,o=r(3493),a=r(3364),s=r(6841),c=r(7805).WriteError,u=r(7805).ReadError,f=r(7805).NotFoundError,l=r(7805).OpenError,h=r(7805).EncodingError,p=r(7805).InitializationError,d=r(8531),g=r(1068),y=r(2350),m=r(3324),b=y.getOptions,v=y.defaultOptions,w=y.getLevelDOWN,_=y.dispatchError;function E(e,t){return"function"==typeof e?e:t}function k(e,t,r){if(!(this instanceof k))return new k(e,t,r);var i;if(n.call(this),this.setMaxListeners(1/0),"function"==typeof e?((t="object"==typeof t?t:{}).db=e,e=null):"object"==typeof e&&"function"==typeof e.db&&(t=e,e=null),"function"==typeof t&&(r=t,t={}),(!t||"function"!=typeof t.db)&&"string"!=typeof e){if(i=new p("Must provide a location for the database"),r)return process.nextTick((function(){r(i)}));throw i}t=b(this,t),this.options=o(v,t),this._status="new",a(this,"location",e,"e"),this.open(r)}function x(e){return function(t,r){w()[e](t,r||function(){})}}i(k,n),k.prototype.open=function(e){var t,r,n=this;return this.isOpen()?(e&&process.nextTick((function(){e(null,n)})),this):this._isOpening()?e&&this.once("open",(function(){e(null,n)})):(this.emit("opening"),this._status="opening",this.db=new s(this.location),t=this.options.db||w(),void(r=t(this.location)).open(this.options,(function(t){if(t)return _(n,new l(t),e);n.db.setDb(r),n.db=r,n._status="open",e&&e(null,n),n.emit("open"),n.emit("ready")})))},k.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close((function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)})),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return process.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",(function(){t.close(e)}))}},k.prototype.isOpen=function(){return"open"==this._status},k.prototype._isOpening=function(){return"opening"==this._status},k.prototype.isClosed=function(){return/^clos/.test(this._status)},k.prototype.get=function(e,t,r){var n,i=this;return"function"!=typeof(r=E(t,r))?_(this,new u("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=y.getOptions(this,t),n=y.encodeKey(e,t),t.asBuffer=y.isValueAsBuffer(t),void this.db.get(n,t,(function(n,o){if(n)return n=/notfound/i.test(n)?new f("Key not found in database ["+e+"]",n):new u(n),_(i,n,r);if(r){try{o=y.decodeValue(o,t)}catch(e){return r(new h(e))}r(null,o)}}))):_(this,new u("Database is not open"),r)},k.prototype.put=function(e,t,r,n){var i,o,a=this;return n=E(r,n),null==e||null==t?_(this,new c("put() requires key and value arguments"),n):this._isOpening()||this.isOpen()?(r=b(this,r),i=y.encodeKey(e,r),o=y.encodeValue(t,r),void this.db.put(i,o,r,(function(r){if(r)return _(a,new c(r),n);a.emit("put",e,t),n&&n()}))):_(this,new c("Database is not open"),n)},k.prototype.del=function(e,t,r){var n,i=this;return r=E(t,r),null==e?_(this,new c("del() requires a key argument"),r):this._isOpening()||this.isOpen()?(t=b(this,t),n=y.encodeKey(e,t),void this.db.del(n,t,(function(t){if(t)return _(i,new c(t),r);i.emit("del",e),r&&r()}))):_(this,new c("Database is not open"),r)},k.prototype.batch=function(e,t,r){var n,i,o,a=this;return arguments.length?(r=E(t,r),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=b(this,t),n=t.keyEncoding,i=t.valueEncoding,o=e.map((function(e){if(void 0===e.type||void 0===e.key)return{};var r,o=e.keyEncoding||n,a=e.valueEncoding||e.encoding||i;return"utf8"!=o&&"binary"!=o||"utf8"!=a&&"binary"!=a?(r={type:e.type,key:y.encodeKey(e.key,t,e)},void 0!==e.value&&(r.value=y.encodeValue(e.value,t,e)),r):e})),void this.db.batch(o,t,(function(t){if(t)return _(a,new c(t),r);a.emit("batch",e),r&&r()}))):_(this,new c("Database is not open"),r):_(this,new c("batch() requires an array argument"),r)):new m(this)},k.prototype.approximateSize=function(e,t,r){var n,i,o=this;return null==e||null==t||"function"!=typeof r?_(this,new u("approximateSize() requires start, end and callback arguments"),r):(n=y.encodeKey(e,this.options),i=y.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(n,i,(function(e,t){if(e)return _(o,new l(e),r);r&&r(null,t)})):_(this,new c("Database is not open"),r))},k.prototype.readStream=k.prototype.createReadStream=function(e){var t=this;return e=o(this.options,e),new d(e,this,(function(e){return t.db.iterator(e)}))},k.prototype.keyStream=k.prototype.createKeyStream=function(e){return this.createReadStream(o(e,{keys:!0,values:!1}))},k.prototype.valueStream=k.prototype.createValueStream=function(e){return this.createReadStream(o(e,{keys:!1,values:!0}))},k.prototype.writeStream=k.prototype.createWriteStream=function(e){return new g(o(e),this)},k.prototype.toString=function(){return"LevelUP"},e.exports=k,e.exports.copy=y.copy,e.exports.destroy=x("destroy"),e.exports.repair=x("repair")},8531:(e,t,r)=>{var n=r(1963).Readable,i=r(537).inherits,o=r(3493),a=r(7805).EncodingError,s=r(2350),c={keys:!0,values:!0},u=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},f=function(e){return s.decodeKey(e,this._options)},l=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function p(e,t,r){if(!(this instanceof p))return new p(e,t,r);n.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this._db=t,e=this._options=o(c,e),this._keyEncoding=e.keyEncoding||e.encoding,this._valueEncoding=e.valueEncoding||e.encoding,void 0!==this._options.start&&(this._options.start=s.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=s.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=s.isKeyAsBuffer(this._options),this._options.valueAsBuffer=s.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?u:this._options.keys?f:this._options.values?l:h;var i=this;this._db.isOpen()?this._iterator=r(this._options):this._db.once("ready",(function(){i._destroyed||(i._iterator=r(i._options))}))}i(p,n),p.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",(function(){e.call(t)}));t._destroyed||t._iterator.next((function(e,r,n){if(e||void 0===r&&void 0===n)return e||t._destroyed||t.push(null),t._cleanup(e);try{n=t._makeData(r,n)}catch(e){return t._cleanup(new a(e))}t._destroyed||t.push(n)}))},p.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end((function(){t._iterator=null,t.emit("close")})):t.emit("close")}},p.prototype.destroy=function(){this._cleanup()},p.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=p},2350:(e,t,r)=>{var n,i,o=r(8287).Buffer,a=r(3493),s=r(7805).LevelUPError,c=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],u={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},f=function(){function e(e){return null==e||o.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},c.forEach((function(r){t[r]||(t[r]={encode:function(t){return e(t)?t:new o(t,r)},decode:function(e){return process.browser?e.toString(r):e},buffer:!0,type:r})})),t}(),l=(i={},c.forEach((function(e){i[e]={valueEncoding:e}})),i);function h(e,t){var r=t&&t.keyEncoding||e.keyEncoding||"utf8";return f[r]||r}function p(e,t){var r=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return f[r]||r}e.exports={defaultOptions:u,copy:function(e,t,r){e.readStream().pipe(t.writeStream()).on("close",r||function(){}).on("error",r||function(e){throw e})},getOptions:function(e,t){var r="string"==typeof t;return!r&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),a(e&&e.options||{},r?l[t]||l[u.valueEncoding]:t)},getLevelDOWN:function(){if(n)return n;var e,t=r(9435).rh.j9,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=r(6789).version}catch(e){throw new s(i)}if(!r(1534).satisfies(e,t))throw new s("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return n=r(564)}catch(e){throw new s(i)}},dispatchError:function(e,t,r){return"function"==typeof r?r(t):e.emit("error",t)},encodeKey:function(e,t,r){return h(t,r).encode(e)},encodeValue:function(e,t,r){return p(t,r).encode(e)},isValueAsBuffer:function(e,t){return p(e,t).buffer},isKeyAsBuffer:function(e,t){return h(e,t).buffer},decodeValue:function(e,t){return p(t).decode(e)},decodeKey:function(e,t){return h(t).decode(e)}}},1068:(e,t,r)=>{var n=r(8310).Stream,i=r(537).inherits,o=r(3493),a=r(4829),s=r.g.setImmediate||process.nextTick,c=r(2350).getOptions,u={type:"put"};function f(e,t){if(!(this instanceof f))return new f(e,t);n.call(this),this._options=o(u,c(t,e)),this._db=t,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var r=this,i=function(){r.writable&&(r._status="ready",r.emit("ready"),r._process())};t.isOpen()?s(i):t.once("ready",i)}i(f,n),f.prototype.write=function(e){return!(!this.writable||(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength&&(this._writeBlock=!0,1)))},f.prototype.end=function(e){var t=this;e&&this.write(e),s((function(){t._end=!0,t._process()}))},f.prototype.destroy=function(){this.writable=!1,this.end()},f.prototype.destroySoon=function(){this.end()},f.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},f.prototype._processDelayed=function(){var e=this;s((function(){e._process()}))},f.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map((function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}})),(function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}})),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},f.prototype._write=function(e){var t=e.path||e.props.path,r=this;t&&e.pipe(a((function(e,n){if(e)return r.writable=!1,r.emit("error",e);r._options.fstreamRoot&&t.indexOf(r._options.fstreamRoot)>-1&&(t=t.substr(r._options.fstreamRoot.length+1)),r.write({key:t,value:n.slice(0)})})))},f.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=f},3364:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},1511:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(7349),a=r(1445);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},1643:(e,t,r)=>{e.exports=o;var n=r(3497),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},7349:(e,t,r)=>{e.exports=f;var n=r(4634),i=r(8287).Buffer;f.ReadableState=u;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);function u(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(9234).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new u(e,this),this.readable=!0,s.call(this)}function l(e,t,r,n,o){var a=function(e,t){var r=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?d(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(6698),c.inherits(f,s),f.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),l(this,r,e,t,!1)},f.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){a||(a=r(9234).I),this._readableState.decoder=new a(e),this._readableState.encoding=e};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){g(e)})):g(e))}function g(e){e.emit("readable")}function y(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(o.listenerCount(e,"data")>0&&b(e));r.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",(function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&w(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(n,t)),null===(r=e>0?v(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?f:c;function s(e){e===r&&f()}function c(){e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(r);function f(){e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function l(t){d(),e.removeListener("error",l),0===o.listenerCount(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),d()}function p(){e.removeListener("close",h),d()}function d(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(l):e._events.error=[l,e._events.error]:e.on("error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(this.on("readable",m),i.flowing=!0,process.nextTick((function(){y(r)}))),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this):this.read(0))}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){b(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},f._fromList=v},3497:(e,t,r)=>{e.exports=a;var n=r(1511),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},1445:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){i(n)})):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,0,n,t,i);else{var o=l(0,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(u(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(1511);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&h(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var r=l(0,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,i){var o=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){i(a)})),o=!1}return o}(this,i,e,r)&&(o=function(e,t,r,i,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new n(t,r)),t}(t,r,i),n.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new a(r,i,o)):u(e,t,s,r,i,o),c}(this,i,e,t,r)),o},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.ending||n.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},1963:(e,t,r)=>{var n=r(8310);(t=e.exports=r(7349)).Stream=n,t.Readable=t,t.Writable=r(1445),t.Duplex=r(1511),t.Transform=r(3497),t.PassThrough=r(1643),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},9234:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},3493:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},4602:(e,t,r)=>{var n=r(8287).Buffer;function i(e){return void 0!==e&&""!==e}function o(e,t){return Object.hasOwnProperty.call(e,t)}function a(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(e,t){if(n.isBuffer(e)){for(var r=Math.min(e.length,t.length),i=0;i<r;i++){var o=e[i]-t[i];if(o)return o}return e.length-t.length}return e<t?-1:e>t?1:0};var s=t.lowerBoundKey=function(e){return a(e,"gt")||a(e,"gte")||a(e,"min")||(e.reverse?a(e,"end"):a(e,"start"))||void 0},c=t.lowerBound=function(e,t){var r=s(e);return r?e[r]:t},u=t.lowerBoundInclusive=function(e){return!o(e,"gt")},f=t.upperBoundInclusive=function(e){return!o(e,"lt")},l=t.lowerBoundExclusive=function(e){return!u(e)},h=t.upperBoundExclusive=function(e){return!f(e)},p=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},d=t.upperBound=function(e,t){var r=p(e);return r?e[r]:t};function g(e){return e}t.start=function(e,t){return e.reverse?d(e,t):c(e,t)},t.end=function(e,t){return e.reverse?c(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?f(e):u(e)},t.endInclusive=function(e){return e.reverse?u(e):f(e)},t.toLtgt=function(e,r,n,i,a){r=r||{},n=n||g;var s=arguments.length>3,c=t.lowerBoundKey(e),u=t.upperBoundKey(e);return c?"gt"===c?r.gt=n(e.gt,!1):r.gte=n(e[c],!1):s&&(r.gte=n(i,!1)),u?"lt"===u?r.lt=n(e.lt,!0):r.lte=n(e[u],!0):s&&(r.lte=n(a,!0)),null!=e.reverse&&(r.reverse=!!e.reverse),o(r,"max")&&delete r.max,o(r,"min")&&delete r.min,o(r,"start")&&delete r.start,o(r,"end")&&delete r.end,r},t.contains=function(e,r,n){n=n||t.compare;var o=c(e);if(i(o)&&((a=n(r,o))<0||0===a&&l(e)))return!1;var a,s=d(e);return!i(s)||!((a=n(r,s))>0||0===a&&h(e))},t.filter=function(e,r){return function(n){return t.contains(e,n,r)}}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},7653:(e,t,r)=>{"use strict";var n=r(8452),i=r(487),o=r(9211),a=r(9394),s=r(6576),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},9394:(e,t,r)=>{"use strict";var n=r(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},6576:(e,t,r)=>{"use strict";var n=r(9394),i=r(8452);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},h={$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},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(n&&e.length>0)for(var y=0;y<e.length;++y)h.push(String(y));else for(var m in e)d&&"prototype"===m||!i.call(e,m)||h.push(String(m));if(c)for(var b=function(e){if("undefined"==typeof window||!p)return l(e);try{return l(e)}catch(e){return!1}}(e),v=0;v<f.length;++v)b&&"constructor"===f[v]||!i.call(e,f[v])||h.push(f[v]);return h}}e.exports=n},1189:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,a=o?function(e){return o(e)}:r(8875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},8403:(e,t,r)=>{"use strict";var n=r(1189),i=r(1333)(),o=r(8075),a=Object,s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var f=a(arguments[o]),l=n(f),h=i&&(Object.getOwnPropertySymbols||u);if(h)for(var p=h(f),d=0;d<p.length;++d){var g=p[d];c(f,g)&&s(l,g)}for(var y=0;y<l.length;++y){var m=l[y];if(c(f,m)){var b=f[m];r[m]=b}}}return r}},1514:(e,t,r)=>{"use strict";var n=r(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},6788:e=>{e.exports=function(e,t){return parseInt(e.toString(),t||8)}},3519:(e,t,r)=>{var n=r(6587);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},9805:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},3269:e=>{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},9681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},4823:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^r[s])];return~e}},8411:(e,t,r)=>{"use strict";var n,i=r(9805),o=r(3665),a=r(3269),s=r(4823),c=r(4674),u=0,f=0,l=-2,h=2,p=8,d=286,g=30,y=19,m=2*d+1,b=15,v=3,w=258,_=w+v+1,E=42,k=103,x=113,S=666;function O(e,t){return e.msg=c[t],t}function R(e){return(e<<1)-(e>4?9:0)}function A(e){for(var t=e.length;--t>=0;)e[t]=0}function j(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function T(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,j(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,u=e.window,f=e.w_mask,l=e.prev,h=e.strstart+w,p=u[o+a-1],d=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===d&&u[r+a-1]===p&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<h);if(n=w-(h-o),o=h-w,n>a){if(e.match_start=t,a=n,n>=s)break;p=u[o+a-1],d=u[o+a]}}}while((t=l[t&f])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function M(e){var t,r,n,o,c,u,f,l,h,p,d=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-_)){i.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=d?n-d:0}while(--r);t=r=d;do{n=e.prev[--t],e.prev[t]=n>=d?n-d:0}while(--r);o+=d}if(0===e.strm.avail_in)break;if(u=e.strm,f=e.window,l=e.strstart+e.lookahead,h=o,p=void 0,(p=u.avail_in)>h&&(p=h),r=0===p?0:(u.avail_in-=p,i.arraySet(f,u.input,u.next_in,p,l),1===u.state.wrap?u.adler=a(u.adler,f,p,l):2===u.state.wrap&&(u.adler=s(u.adler,f,p,l)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=v)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+v-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<v)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function N(e,t){for(var r,n;;){if(e.lookahead<_){if(M(e),e.lookahead<_&&t===u)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=v&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-_&&(e.match_length=B(e,r)),e.match_length>=v)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<v-1?e.strstart:v-1,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}function P(e,t){for(var r,n,i;;){if(e.lookahead<_){if(M(e),e.lookahead<_&&t===u)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=v&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=v-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-_&&(e.match_length=B(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===v&&e.strstart-e.match_start>4096)&&(e.match_length=v-1)),e.prev_length>=v&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-v,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=v-1,e.strstart++,n&&(T(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&T(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<v-1?e.strstart:v-1,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}function C(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function D(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=p,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*m),this.dyn_dtree=new i.Buf16(2*(2*g+1)),this.bl_tree=new i.Buf16(2*(2*y+1)),A(this.dyn_ltree),A(this.dyn_dtree),A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(b+1),this.heap=new i.Buf16(2*d+1),A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*d+1),A(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:x,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),f):O(e,l)}function F(e){var t,r=U(e);return r===f&&((t=e.state).window_size=2*t.w_size,A(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=v-1,t.match_available=0,t.ins_h=0),r}function z(e,t,r,n,o,a){if(!e)return l;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||r!==p||n<8||n>15||t<0||t>9||a<0||a>4)return O(e,l);8===n&&(n=9);var c=new D;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+v-1)/v),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=r,F(e)}n=[new C(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(M(e),0===e.lookahead&&t===u)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,T(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-_&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(T(e,!1),e.strm.avail_out),1)})),new C(4,4,8,4,N),new C(4,5,16,8,N),new C(4,6,32,32,N),new C(4,4,16,16,P),new C(8,16,32,32,P),new C(8,16,128,128,P),new C(8,32,128,256,P),new C(32,128,258,1024,P),new C(32,258,258,4096,P)],t.deflateInit=function(e,t){return z(e,t,p,15,8,0)},t.deflateInit2=z,t.deflateReset=F,t.deflateResetKeep=U,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,f):l},t.deflate=function(e,t){var r,i,a,c;if(!e||!e.state||t>5||t<0)return e?O(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===S&&4!==t)return O(e,0===e.avail_out?-5:l);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===E)if(2===i.wrap)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),I(i,3),i.status=x);else{var h=p+(i.w_bits-8<<4)<<8;h|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=x,L(i,h),0!==i.strstart&&(L(i,e.adler>>>16),L(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),j(e),a=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),j(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),j(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=k)}else i.status=k;if(i.status===k&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=x)):i.status=x),0!==i.pending){if(j(e),0===e.avail_out)return i.last_flush=-1,f}else if(0===e.avail_in&&R(t)<=R(r)&&4!==t)return O(e,-5);if(i.status===S&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&i.status!==S){var d=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(M(e),0===e.lookahead)){if(t===u)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=w){if(M(e),e.lookahead<=w&&t===u)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=v&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+w;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=w-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=v?(r=o._tr_tally(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==d&&4!==d||(i.status=S),1===d||3===d)return 0===e.avail_out&&(i.last_flush=-1),f;if(2===d&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(A(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(e),0===e.avail_out))return i.last_flush=-1,f}return 4!==t?f:i.wrap<=0?1:(2===i.wrap?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(L(i,e.adler>>>16),L(i,65535&e.adler)),j(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?f:1)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&69!==t&&73!==t&&91!==t&&t!==k&&t!==x&&t!==S?O(e,l):(e.state=null,t===x?O(e,-3):f):l},t.deflateSetDictionary=function(e,t){var r,n,o,s,c,u,h,p,d=t.length;if(!e||!e.state)return l;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==E||r.lookahead)return l;for(1===s&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(A(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,t,d-r.w_size,r.w_size,0),t=p,d=r.w_size),c=e.avail_in,u=e.next_in,h=e.input,e.avail_in=d,e.next_in=0,e.input=t,M(r);r.lookahead>=v;){n=r.strstart,o=r.lookahead-(v-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+v-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=v-1,M(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=v-1,r.match_available=0,e.next_in=u,e.input=h,e.avail_in=c,r.wrap=s,f},t.deflateInfo="pako deflate (from Nodeca project)"},7293:e=>{"use strict";e.exports=function(e,t){var r,n,i,o,a,s,c,u,f,l,h,p,d,g,y,m,b,v,w,_,E,k,x,S,O;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),o=e.next_out,O=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,u=r.wsize,f=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,g=r.lencode,y=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=g[p&m];t:for(;;){if(p>>>=w=v>>>24,d-=w,0==(w=v>>>16&255))O[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}v=g[(65535&v)+(p&(1<<w)-1)];continue t}for(_=65535&v,(w&=15)&&(d<w&&(p+=S[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=y[p&b];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(E=65535&v,d<(w&=15)&&(p+=S[n++]<<d,(d+=8)<w&&(p+=S[n++]<<d,d+=8)),(E+=p&(1<<w)-1)>c){e.msg="invalid distance too far back",r.mode=30;break e}if(p>>>=w,d-=w,E>(w=o-a)){if((w=E-w)>f&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,x=h,0===l){if(k+=u-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}else if(l<w){if(k+=u+l-w,(w-=l)<_){_-=w;do{O[o++]=h[k++]}while(--w);if(k=0,l<_){_-=w=l;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}}else if(k+=l-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}for(;_>2;)O[o++]=x[k++],O[o++]=x[k++],O[o++]=x[k++],_-=3;_&&(O[o++]=x[k++],_>1&&(O[o++]=x[k++]))}else{k=o-E;do{O[o++]=O[k++],O[o++]=O[k++],O[o++]=O[k++],_-=3}while(_>2);_&&(O[o++]=O[k++],_>1&&(O[o++]=O[k++]))}break}if(64&w){e.msg="invalid distance code",r.mode=30;break e}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},1447:(e,t,r)=>{"use strict";var n=r(9805),i=r(3269),o=r(4823),a=r(7293),s=r(1998),c=0,u=-2,f=1,l=12,h=30,p=852,d=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(p),t.distcode=t.distdyn=new n.Buf32(d),t.sane=1,t.back=-1,c):u}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,m(e)):u}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,b(e))):u}function w(e,t){var r,n;return e?(n=new y,e.state=n,n.window=null,(r=v(e,t))!==c&&(e.state=null),r):u}var _,E,k=!0;function x(e){if(k){var t;for(_=new n.Buf32(512),E=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,E,0,e.work,{bits:5}),k=!1}e.lencode=_,e.lenbits=9,e.distcode=E,e.distbits=5}function S(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=b,t.inflateReset2=v,t.inflateResetKeep=m,t.inflateInit=function(e){return w(e,15)},t.inflateInit2=w,t.inflate=function(e,t){var r,p,d,y,m,b,v,w,_,E,k,O,R,A,j,T,I,L,B,M,N,P,C,D,U=0,F=new n.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(r=e.state).mode===l&&(r.mode=13),m=e.next_out,d=e.output,v=e.avail_out,y=e.next_in,p=e.input,b=e.avail_in,w=r.hold,_=r.bits,E=b,k=v,P=c;e:for(;;)switch(r.mode){case f:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(2&r.wrap&&35615===w){r.check=0,F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0),w=0,_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=h;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=h;break}if(_-=4,N=8+(15&(w>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){e.msg="invalid window size",r.mode=h;break}r.dmax=1<<N,e.adler=r.check=1,r.mode=512&w?10:l,w=0,_=0;break;case 2:for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=h;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=h;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0)),w=0,_=0,r.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=o(r.check,F,4,0)),w=0,_=0,r.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0)),w=0,_=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0)),w=0,_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((O=r.length)>b&&(O=b),O&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,p,y,O,N)),512&r.flags&&(r.check=o(r.check,p,O,y)),b-=O,y+=O,r.length-=O),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===b)break e;O=0;do{N=p[y+O++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&O<b);if(512&r.flags&&(r.check=o(r.check,p,O,y)),b-=O,y+=O,N)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===b)break e;O=0;do{N=p[y+O++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&O<b);if(512&r.flags&&(r.check=o(r.check,p,O,y)),b-=O,y+=O,N)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=h;break}w=0,_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=l;break;case 10:for(;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}e.adler=r.check=g(w),w=0,_=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=m,e.avail_out=v,e.next_in=y,e.avail_in=b,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=l;case l:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6===t){w>>>=2,_-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=h}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=h;break}if(r.length=65535&w,w=0,_=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(O=r.length){if(O>b&&(O=b),O>v&&(O=v),0===O)break e;n.arraySet(d,p,y,O,m),b-=O,y+=O,v-=O,m+=O,r.length-=O;break}r.mode=l;break;case 17:for(;_<14;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=h;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.lens[z[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},P=s(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,P){e.msg="invalid code lengths set",r.mode=h;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(U=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(I<16)w>>>=j,_-=j,r.lens[r.have++]=I;else{if(16===I){for(D=j+2;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(w>>>=j,_-=j,0===r.have){e.msg="invalid bit length repeat",r.mode=h;break}N=r.lens[r.have-1],O=3+(3&w),w>>>=2,_-=2}else if(17===I){for(D=j+3;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}_-=j,N=0,O=3+(7&(w>>>=j)),w>>>=3,_-=3}else{for(D=j+7;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}_-=j,N=0,O=11+(127&(w>>>=j)),w>>>=7,_-=7}if(r.have+O>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=h;break}for(;O--;)r.lens[r.have++]=N}}if(r.mode===h)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=h;break}if(r.lenbits=9,C={bits:r.lenbits},P=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,P){e.msg="invalid literal/lengths set",r.mode=h;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},P=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,P){e.msg="invalid distances set",r.mode=h;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(b>=6&&v>=258){e.next_out=m,e.avail_out=v,e.next_in=y,e.avail_in=b,r.hold=w,r.bits=_,a(e,k),m=e.next_out,d=e.output,v=e.avail_out,y=e.next_in,p=e.input,b=e.avail_in,w=r.hold,_=r.bits,r.mode===l&&(r.back=-1);break}for(r.back=0;T=(U=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(T&&!(240&T)){for(L=j,B=T,M=I;T=(U=r.lencode[M+((w&(1<<L+B)-1)>>L)])>>>16&255,I=65535&U,!(L+(j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}w>>>=L,_-=L,r.back+=L}if(w>>>=j,_-=j,r.back+=j,r.length=I,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=l;break}if(64&T){e.msg="invalid literal/length code",r.mode=h;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(D=r.extra;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(U=r.distcode[w&(1<<r.distbits)-1])>>>16&255,I=65535&U,!((j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(!(240&T)){for(L=j,B=T,M=I;T=(U=r.distcode[M+((w&(1<<L+B)-1)>>L)])>>>16&255,I=65535&U,!(L+(j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}w>>>=L,_-=L,r.back+=L}if(w>>>=j,_-=j,r.back+=j,64&T){e.msg="invalid distance code",r.mode=h;break}r.offset=I,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(D=r.extra;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=h;break}r.mode=25;case 25:if(0===v)break e;if(O=k-v,r.offset>O){if((O=r.offset-O)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=h;break}O>r.wnext?(O-=r.wnext,R=r.wsize-O):R=r.wnext-O,O>r.length&&(O=r.length),A=r.window}else A=d,R=m-r.offset,O=r.length;O>v&&(O=v),v-=O,r.length-=O;do{d[m++]=A[R++]}while(--O);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;d[m++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===b)break e;b--,w|=p[y++]<<_,_+=8}if(k-=v,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?o(r.check,d,k,m-k):i(r.check,d,k,m-k)),k=v,(r.flags?w:g(w))!==r.check){e.msg="incorrect data check",r.mode=h;break}w=0,_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=h;break}w=0,_=0}r.mode=29;case 29:P=1;break e;case h:P=-3;break e;case 31:return-4;default:return u}return e.next_out=m,e.avail_out=v,e.next_in=y,e.avail_in=b,r.hold=w,r.bits=_,(r.wsize||k!==e.avail_out&&r.mode<h&&(r.mode<27||4!==t))&&S(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,k-=e.avail_out,e.total_in+=E,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?o(r.check,d,k,e.next_out-k):i(r.check,d,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(r.mode===l?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===k||4===t)&&P===c&&(P=-5),P)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,c},t.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?(r.head=t,t.done=!1,c):u},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?u:11===r.mode&&i(1,t,n,0)!==r.check?-3:S(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,c):u},t.inflateInfo="pako inflate (from Nodeca project)"},1998:(e,t,r)=>{"use strict";var n=r(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,c,u,f,l,h){var p,d,g,y,m,b,v,w,_,E=h.bits,k=0,x=0,S=0,O=0,R=0,A=0,j=0,T=0,I=0,L=0,B=null,M=0,N=new n.Buf16(16),P=new n.Buf16(16),C=null,D=0;for(k=0;k<=15;k++)N[k]=0;for(x=0;x<c;x++)N[t[r+x]]++;for(R=E,O=15;O>=1&&0===N[O];O--);if(R>O&&(R=O),0===O)return u[f++]=20971520,u[f++]=20971520,h.bits=1,0;for(S=1;S<O&&0===N[S];S++);for(R<S&&(R=S),T=1,k=1;k<=15;k++)if(T<<=1,(T-=N[k])<0)return-1;if(T>0&&(0===e||1!==O))return-1;for(P[1]=0,k=1;k<15;k++)P[k+1]=P[k]+N[k];for(x=0;x<c;x++)0!==t[r+x]&&(l[P[t[r+x]]++]=x);if(0===e?(B=C=l,b=19):1===e?(B=i,M-=257,C=o,D-=257,b=256):(B=a,C=s,b=-1),L=0,x=0,k=S,m=f,A=R,j=0,g=-1,y=(I=1<<R)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=k-j,l[x]<b?(w=0,_=l[x]):l[x]>b?(w=C[D+l[x]],_=B[M+l[x]]):(w=96,_=0),p=1<<k-j,S=d=1<<A;do{u[m+(L>>j)+(d-=p)]=v<<24|w<<16|_}while(0!==d);for(p=1<<k-1;L&p;)p>>=1;if(0!==p?(L&=p-1,L+=p):L=0,x++,0==--N[k]){if(k===O)break;k=t[r+l[x]]}if(k>R&&(L&y)!==g){for(0===j&&(j=R),m+=S,T=1<<(A=k-j);A+j<O&&!((T-=N[A+j])<=0);)A++,T<<=1;if(I+=1<<A,1===e&&I>852||2===e&&I>592)return 1;u[g=L&y]=R<<24|A<<16|m-f}}return 0!==L&&(u[m+L]=k-j<<24|64<<16),h.bits=R,0}},4674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3665:(e,t,r)=>{"use strict";var n=r(9805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=256,a=286,s=30,c=15,u=16,f=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);i(d);var g=new Array(60);i(g);var y=new Array(512);i(y);var m=new Array(256);i(m);var b=new Array(29);i(b);var v,w,_,E=new Array(s);function k(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?y[e]:y[256+(e>>>7)]}function O(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function R(e,t,r){e.bi_valid>u-r?(e.bi_buf|=t<<e.bi_valid&65535,O(e,e.bi_buf),e.bi_buf=t>>u-e.bi_valid,e.bi_valid+=r-u):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function A(e,t,r){R(e,r[2*t],r[2*t+1])}function j(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function T(e,t,r){var n,i,o=new Array(c+1),a=0;for(n=1;n<=c;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=j(o[s]++,s))}}function I(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function L(e){e.bi_valid>8?O(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function M(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&B(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!B(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function N(e,t,r){var n,i,a,s,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?A(e,i,t):(A(e,(a=m[i])+o+1,t),0!==(s=f[a])&&R(e,i-=b[a],s),A(e,a=S(--n),r),0!==(s=l[a])&&R(e,n-=E[a],s))}while(c<e.last_lit);A(e,256,t)}function P(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,f=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=f=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=f,r=e.heap_len>>1;r>=1;r--)M(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,M(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,f=t.max_code,l=t.stat_desc.static_tree,h=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,g=t.stat_desc.max_length,y=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>g&&(o=g,y++),u[2*n+1]=o,n>f||(e.bl_count[o]++,a=0,n>=d&&(a=p[n-d]),s=u[2*n],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(l[2*n+1]+a)));if(0!==y){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,y-=2}while(y>0);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>f||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),T(o,f,e.bl_count)}function C(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function D(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)do{A(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(A(e,i,e.bl_tree),s--),A(e,16,e.bl_tree),R(e,s-3,2)):s<=10?(A(e,17,e.bl_tree),R(e,s-3,3)):(A(e,18,e.bl_tree),R(e,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(E);var U=!1;function F(e,t,r,i){R(e,0+(i?1:0),3),function(e,t,r,i){L(e),O(e,r),O(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}t._tr_init=function(e){U||(function(){var e,t,r,n,i,o=new Array(c+1);for(r=0,n=0;n<28;n++)for(b[n]=r,e=0;e<1<<f[n];e++)m[r++]=n;for(m[r-1]=n,i=0,n=0;n<16;n++)for(E[n]=i,e=0;e<1<<l[n];e++)y[i++]=n;for(i>>=7;n<s;n++)for(E[n]=i<<7,e=0;e<1<<l[n]-7;e++)y[256+i++]=n;for(t=0;t<=c;t++)o[t]=0;for(e=0;e<=143;)d[2*e+1]=8,e++,o[8]++;for(;e<=255;)d[2*e+1]=9,e++,o[9]++;for(;e<=279;)d[2*e+1]=7,e++,o[7]++;for(;e<=287;)d[2*e+1]=8,e++,o[8]++;for(T(d,287,o),e=0;e<s;e++)g[2*e+1]=5,g[2*e]=j(e,5);v=new k(d,f,257,a,c),w=new k(g,l,0,s,c),_=new k(new Array(0),h,0,19,7)}(),U=!0),e.l_desc=new x(e.dyn_ltree,v),e.d_desc=new x(e.dyn_dtree,w),e.bl_desc=new x(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,I(e)},t._tr_stored_block=F,t._tr_flush_block=function(e,t,r,n){var i,a,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),s=function(e){var t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*p[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||a===i?(R(e,2+(n?1:0),3),N(e,d,g)):(R(e,4+(n?1:0),3),function(e,t,r,n){var i;for(R(e,t-257,5),R(e,r-1,5),R(e,n-4,4),i=0;i<n;i++)R(e,e.bl_tree[2*p[i]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),N(e,e.dyn_ltree,e.dyn_dtree)),I(e),n&&L(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(m[r]+o+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){R(e,2,3),A(e,256,d),function(e){16===e.bi_valid?(O(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},4442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},7975:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(n=a+"/"+n,i=47===a.charCodeAt(0))}return n=r(n,!i),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var c=r.length-s,u=a<c?a:c,f=-1,l=0;l<=u;++l){if(l===u){if(c>u){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>u&&(47===e.charCodeAt(i+l)?f=l:0===l&&(f=0));break}var h=e.charCodeAt(i+l);if(h!==r.charCodeAt(s+l))break;47===h&&(f=l)}var p="";for(l=i+f+1;l<=o;++l)l!==o&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+f):(s+=f,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!o){n=s+1;break}}return-1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,f=e.length-1,l=0;f>=n;--f)if(47!==(i=e.charCodeAt(f)))-1===c&&(u=!1,c=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!u){s=f+1;break}return-1===a||-1===c||0===l||1===l&&a===c-1&&a===s+1?-1!==c&&(r.base=r.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,c)):(r.name=e.slice(s,a),r.base=e.slice(s,c)),r.ext=e.slice(a,c)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},6578:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},3225:e=>{"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick((function(){e.apply(null,i)}))}}}:e.exports=process},9723:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},1630:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var f,l,h,p,d=e[u].replace(a,"%20"),g=d.indexOf(n);g>=0?(f=d.substr(0,g),l=d.substr(g+1)):(f=d,l=""),h=decodeURIComponent(f),p=decodeURIComponent(l),t(o,h)?Array.isArray(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o}},9106:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},7186:(e,t,r)=>{"use strict";t.decode=t.parse=r(1630),t.encode=t.stringify=r(9106)},6048:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s,c;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var u=("number"!=typeof c&&(c=0),c+1>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");a='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(n(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" 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(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5382:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(5412),o=r(6708);r(6698)(u,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var c=a[s];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||process.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3600:(e,t,r)=>{"use strict";e.exports=i;var n=r(4610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(6698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},5412:(e,t,r)=>{"use strict";var n;e.exports=x,x.ReadableState=k,r(7007).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},a=r(345),s=r(8287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(9838);i=u&&u.debuglog?u.debuglog("stream"):function(){};var f,l,h,p=r(2726),d=r(5896),g=r(5291).getHighWaterMark,y=r(6048).F,m=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(x,a);var _=d.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(5382),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(3141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(5382),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function S(e,t,r,n,o){i("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}}(e,u);else if(o||(a=function(e,t){var r,n;return n=t,s.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),a)_(e,a);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)u.endEmitted?_(e,new w):O(e,u,t,!0);else if(u.ended)_(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?O(e,u,t,!1):I(e,u)):O(e,u,t,!1)}else n||(u.reading=!1,I(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),I(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=d.destroy,x.prototype._undestroy=d.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},x.prototype.unshift=function(e){return S(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){f||(f=r(3141).I);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=1073741824;function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(T,e))}function T(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function I(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function B(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function M(e){i("readable nexttick read 0"),e.read(0)}function N(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U,t,e))}function U(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),null===(n=e>0?C(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){_(this,new v("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?d:s;function s(){i("onend"),e.end()}n.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",(function t(o,a){i("onunpipe"),o===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",l),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",d),r.removeListener("data",f),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,P(e))}}(r);e.on("drain",c);var u=!1;function f(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!u&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function l(t){i("onerror",t),d(),e.removeListener("error",l),0===o(e,"error")&&_(e,t)}function h(){e.removeListener("finish",p),d()}function p(){i("onfinish"),e.removeListener("close",h),d()}function d(){i("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},x.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?j(this):n.reading||process.nextTick(M,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(B,this),r},x.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(B,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(N,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=r(2955)),l(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=C,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===h&&(h=r(5157)),h(x,e,t)})},4610:(e,t,r)=>{"use strict";e.exports=f;var n=r(6048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5382);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(6698)(f,c),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},6708:(e,t,r)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=x,x.WritableState=k;var o,a={deprecate:r(4643)},s=r(345),c=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=r(5896),l=r(5291).getHighWaterMark,h=r(6048).F,p=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,v=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=f.errorOrDestroy;function E(){}function k(e,t,o){i=i||r(5382),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(T,e,t),e._writableState.errorEmitted=!0,_(e,n)):(i(n),e._writableState.errorEmitted=!0,_(e,n),T(e,t))}(e,r,n,t,i);else{var o=A(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||R(e,r),n?process.nextTick(O,e,r,o,i):O(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(i=i||r(5382));if(!t&&!o.call(x,this))return new x(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function O(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function R(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(6698)(x,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===x&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new y)},x.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,a=!i.objectMode&&(n=e,c.isBuffer(n)||n instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=E),i.ending?function(e,t){var r=new v;_(e,r),process.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(_(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,i,a,e,t,r)),o},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new d("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=f.destroy,x.prototype._undestroy=f.undestroy,x.prototype._destroy=function(e,t){t(e)}},2955:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(6238),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function d(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[a]=null,e[s]=null,t(p(r,!1)))}}function g(e){process.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(p(void 0,!0))}))}));var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(void 0,!0)):t[l](r,n)}),n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));r=new Promise(this[l])}return this[f]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(m,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[a]=null,r[s]=null,e(p(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[a]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(p(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},2726:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=r(8287).Buffer,u=r(5340).inspect,f=u&&u.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,r,n,i=c.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,c.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5896:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},6238:(e,t,r)=>{"use strict";var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||f()},u=t._writableState&&t._writableState.finished,f=function(){s=!1,u=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",d),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",f),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",f),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",f),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},5157:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},7758:(e,t,r)=>{"use strict";var n,i=r(6048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var f,l=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(6238)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){f||(f=e),e&&h.forEach(c),o||(h.forEach(c),l(f))}))}));return t.reduce(u)}},5291:(e,t,r)=>{"use strict";var n=r(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},345:(e,t,r)=>{e.exports=r(7007).EventEmitter},8399:(e,t,r)=>{(t=e.exports=r(5412)).Stream=t,t.Readable=t,t.Writable=r(6708),t.Duplex=r(5382),t.Transform=r(4610),t.PassThrough=r(3600),t.finished=r(6238),t.pipeline=r(7758)},2861:(e,t,r)=>{var n=r(8287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6897:(e,t,r)=>{"use strict";var n=r(453),i=r(41),o=r(592)(),a=r(5795),s=r(9675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var f=a(e,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},8310:(e,t,r)=>{e.exports=i;var n=r(7007).EventEmitter;function i(){n.call(this)}r(6698)(i,n),i.Readable=r(5412),i.Writable=r(6708),i.Duplex=r(5382),i.Transform=r(4610),i.PassThrough=r(3600),i.finished=r(6238),i.pipeline=r(7758),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},2980:(e,t)=>{var r=t.range=function(e){return null==e?{}:"string"==typeof r?{min:r,max:r+"ÿ"}:e},n=(t.prefix=function(e,r,n){var i={};return n=n||"ÿ",(e=t.range(e))instanceof RegExp||"function"==typeof e?(i.min=r,i.max=r+n,i.inner=function(t){var n=t.substring(r.length);return e.test?e.test(n):e(n)}):"object"==typeof e&&(i.min=r+(e.min||e.start||""),i.max=r+(e.max||e.end||n||"~"),i.reverse=!!e.reverse),i},t.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var r=e.min||e.start,n=e.max||e.end;return t=String(t),(!r||t>=r)&&(!n||t<=n)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0});t.satisfies=function(e,t){return n(t)(e)}},3141:(e,t,r)=>{"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4527:(e,t,r)=>{var n=r(8287).Buffer;e.exports=function(e){return"function"==typeof n._augment&&n.TYPED_ARRAY_SUPPORT?n._augment(e):new n(e)}},9656:(e,t)=>{var r,n,i,o=void 0,a=(r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return r.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),s=Math.LN2,c=Math.abs,u=Math.floor,f=Math.log,l=Math.min,h=Math.pow,p=Math.round;function d(e){if(g&&i){var t,r=g(e);for(t=0;t<r.length;t+=1)i(e,r[t],{value:e[r[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,r){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,r.get),a.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,r.set),a.HasProperty(r,"value")&&(e[t]=r.value),e};var g=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)a.HasOwnProperty(e,t)&&r.push(t);return r};function y(e,t){var r=32-t;return e<<r>>r}function m(e,t){var r=32-t;return e<<r>>>r}function b(e){return[255&e]}function v(e){return y(e[0],8)}function w(e){return[255&e]}function _(e){return m(e[0],8)}function E(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function x(e){return y(e[0]<<8|e[1],16)}function S(e){return[e>>8&255,255&e]}function O(e){return m(e[0]<<8|e[1],16)}function R(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function j(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function T(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function I(e,t,r){var n,i,o,a,p,d,g,y=(1<<t-1)-1;function m(e){var t=u(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,r-1),n=0):e===1/0||e===-1/0?(i=(1<<t)-1,o=0,n=e<0?1:0):0===e?(i=0,o=0,n=1/e==-1/0?1:0):(n=e<0,(e=c(e))>=h(2,1-y)?(i=l(u(f(e)/s),1023),(o=m(e/h(2,i)*h(2,r)))/h(2,r)>=2&&(i+=1,o=1),i>y?(i=(1<<t)-1,o=0):(i+=y,o-=h(2,r))):(i=0,o=m(e/h(2,1-y-r)))),p=[],a=r;a;a-=1)p.push(o%2?1:0),o=u(o/2);for(a=t;a;a-=1)p.push(i%2?1:0),i=u(i/2);for(p.push(n?1:0),p.reverse(),d=p.join(""),g=[];d.length;)g.push(parseInt(d.substring(0,8),2)),d=d.substring(8);return g}function L(e,t,r){var n,i,o,a,s,c,u,f,l=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)l.push(o%2?1:0),o>>=1;return l.reverse(),a=l.join(""),s=(1<<t-1)-1,c=parseInt(a.substring(0,1),2)?-1:1,u=parseInt(a.substring(1,1+t),2),f=parseInt(a.substring(1+t),2),u===(1<<t)-1?0!==f?NaN:c*(1/0):u>0?c*h(2,u-s)*(1+f/h(2,r)):0!==f?c*h(2,-(s-1))*(f/h(2,r)):c<0?-0:0}function B(e){return L(e,11,52)}function M(e){return I(e,11,52)}function N(e){return L(e,8,23)}function P(e){return I(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};t.Az=t.Az||e;var r=function(){};function n(t,n,s){var c;return c=function(t,r,n){var o,s,u,f;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===c)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,o._getter(u));else if("object"!=typeof arguments[0]||arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)f=s[u],this._setter(u,Number(f));else{if(this.length=a.ToInt32(arguments[0]),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=c,d(this),function(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)r(t)}function r(t){i(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}}(this)},c.prototype=new r,c.prototype.BYTES_PER_ELEMENT=t,c.prototype._pack=n,c.prototype._unpack=s,c.BYTES_PER_ELEMENT=t,c.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var t,r,n=[];for(t=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)},c.prototype.get=c.prototype._getter,c.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var r,n,i=this._pack(t);for(r=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=i[r]},c.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,c,u,f,l,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(i=a.ToUint32(arguments[1]))+r.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(f=this.byteOffset+i*this.BYTES_PER_ELEMENT,l=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(h=[],s=0,c=r.byteOffset;s<l;s+=1,c+=1)h[s]=r.buffer._bytes[c];for(s=0,u=f;s<l;s+=1,u+=1)this.buffer._bytes[u]=h[s]}else for(s=0,c=r.byteOffset,u=f;s<l;s+=1,c+=1,u+=1)this.buffer._bytes[u]=r.buffer._bytes[c]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(n=arguments[0],o=a.ToUint32(n.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)c=n[s],this._setter(i+s,Number(c))}},c.prototype.subarray=function(e,t){function r(e,t,r){return e<t?t:e>r?r:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=r(e,0,this.length);var n=(t=r(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)},c}var s=n(1,b,v),c=n(1,w,_),u=n(1,E,_),f=n(2,k,x),l=n(2,S,O),h=n(4,R,A),p=n(4,j,T),g=n(4,P,N),y=n(8,M,B);t.fo=t.fo||s,t.SE=t.SE||c,t.ER=t.ER||u,t.ss=t.ss||f,t.hR=t.hR||l,t.GM=t.GM||h,t.bt=t.bt||p,t.l6=t.l6||g,t.aQ=t.aQ||y}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var r,n=(r=new t.hR([4660]),18===e(new t.SE(r.buffer),0)),i=function(e,r,n){if(0===arguments.length)e=new t.Az(0);else if(!(e instanceof t.Az||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.Az(0),this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(n),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(r){return function(i,o){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,c=new t.SE(this.buffer,i,r.BYTES_PER_ELEMENT),u=[];for(s=0;s<r.BYTES_PER_ELEMENT;s+=1)u.push(e(c,s));return Boolean(o)===Boolean(n)&&u.reverse(),e(new r(new t.SE(u).buffer),0)}}function s(r){return function(i,o,s){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var c,u=new r([o]),f=new t.SE(u.buffer),l=[];for(c=0;c<r.BYTES_PER_ELEMENT;c+=1)l.push(e(f,c));Boolean(s)===Boolean(n)&&l.reverse(),new t.SE(this.buffer,i,r.BYTES_PER_ELEMENT).set(l)}}i.prototype.getUint8=o(t.SE),i.prototype.getInt8=o(t.fo),i.prototype.getUint16=o(t.hR),i.prototype.getInt16=o(t.ss),i.prototype.getUint32=o(t.bt),i.prototype.getInt32=o(t.GM),i.prototype.getFloat32=o(t.l6),i.prototype.getFloat64=o(t.aQ),i.prototype.setUint8=s(t.SE),i.prototype.setInt8=s(t.fo),i.prototype.setUint16=s(t.hR),i.prototype.setInt16=s(t.ss),i.prototype.setUint32=s(t.bt),i.prototype.setInt32=s(t.GM),i.prototype.setFloat32=s(t.l6),i.prototype.setFloat64=s(t.aQ),t.U$=t.U$||i}()},1270:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,c=36,u=26,f=38,l=700,h=/^xn--/,p=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=c-1,m=Math.floor,b=String.fromCharCode;function v(e){throw new RangeError(g[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function _(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(d,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function k(e){return w(e,(function(e){var t="";return e>65535&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+b(e)})).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var n=0;for(e=r?m(e/l):e>>1,e+=m(e/t);e>y*u>>1;n+=c)e=m(e/y);return m(n+(y+1)*e/(e+f))}function O(e){var t,r,n,i,o,a,f,l,h,p,d,g=[],y=e.length,b=0,w=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=b,a=1,f=c;i>=y&&v("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||l>m((s-b)/a))&&v("overflow"),b+=l*a,!(l<(h=f<=_?1:f>=_+u?u:f-_));f+=c)a>m(s/(p=c-h))&&v("overflow"),a*=p;_=S(b-o,t=g.length+1,0==o),m(b/t)>s-w&&v("overflow"),w+=m(b/t),b%=t,g.splice(b++,0,w)}return k(g)}function R(e){var t,r,n,i,o,a,f,l,h,p,d,g,y,w,_,k=[];for(g=(e=E(e)).length,t=128,r=0,o=72,a=0;a<g;++a)(d=e[a])<128&&k.push(b(d));for(n=i=k.length,i&&k.push("-");n<g;){for(f=s,a=0;a<g;++a)(d=e[a])>=t&&d<f&&(f=d);for(f-t>m((s-r)/(y=n+1))&&v("overflow"),r+=(f-t)*y,t=f,a=0;a<g;++a)if((d=e[a])<t&&++r>s&&v("overflow"),d==t){for(l=r,h=c;!(l<(p=h<=o?1:h>=o+u?u:h-o));h+=c)_=l-p,w=c-p,k.push(b(x(p+_%w,0))),l=m(_/w);k.push(b(x(l,0))),o=S(r,y,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.4.1",ucs2:{decode:E,encode:k},decode:O,encode:R,toASCII:function(e){return _(e,(function(e){return p.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return _(e,(function(e){return h.test(e)?O(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},8835:(e,t,r)=>{"use strict";var n=r(1270);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),f=["%","/","?",";","#"].concat(u),l=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(7186);i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!r&&1===e.split("#").length){var v=s.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(b);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===b.substr(0,2);!E||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(E||w&&!y[w])){for(var k,x,S=-1,O=0;O<l.length;O++)-1!==(R=b.indexOf(l[O]))&&(-1===S||R<S)&&(S=R);for(-1!==(x=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(k=b.slice(0,x),b=b.slice(x+1),this.auth=decodeURIComponent(k)),S=-1,O=0;O<f.length;O++){var R;-1!==(R=b.indexOf(f[O]))&&(-1===S||R<S)&&(S=R)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var j=this.hostname.split(/\./),T=(O=0,j.length);O<T;O++){var I=j[O];if(I&&!I.match(h)){for(var L="",B=0,M=I.length;B<M;B++)I.charCodeAt(B)>127?L+="x":L+=I[B];if(!L.match(h)){var N=j.slice(0,O),P=j.slice(O+1),C=I.match(p);C&&(N.push(C[1]),P.unshift(C[2])),P.length&&(b="/"+P.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+D,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[_])for(O=0,T=u.length;O<T;O++){var F=u[O];if(-1!==b.indexOf(F)){var z=encodeURIComponent(F);z===F&&(z=escape(F)),b=b.split(F).join(z)}}var W=b.indexOf("#");-1!==W&&(this.hash=b.substr(W),b=b.slice(0,W));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=m.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var $=this.search||"";this.path=D+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=m.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),l=0;l<f.length;l++){var h=f[l];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",m=r.search||"";r.path=d+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||b||r.host&&e.pathname,_=w,E=r.pathname&&r.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===E[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search)return k&&(r.host=E.shift(),r.hostname=r.host,(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.hostname=A.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=E.slice(-1)[0],S=(r.host||e.host||E.length>1)&&("."===x||".."===x)||""===x,O=0,R=E.length;R>=0;R--)"."===(x=E[R])?E.splice(R,1):".."===x?(E.splice(R,1),O++):O&&(E.splice(R,1),O--);if(!w&&!_)for(;O--;O)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var A,j=""===E[0]||E[0]&&"/"===E[0].charAt(0);return k&&(r.hostname=j?"":E.length?E.shift():"",r.host=r.hostname,(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.hostname=A.shift(),r.host=r.hostname)),(w=w||r.host&&E.length)&&!j&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.m9=e=>new URL("",e).pathname},4643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032:(e,t,r)=>{"use strict";var n=r(7244),i=r(8184),o=r(5767),a=r(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===f(e)}function b(e){return"[object Set]"===f(e)}function v(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function _(e){return"[object ArrayBuffer]"===f(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===f(e)}function x(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===f(e)}function R(e){return void 0!==S&&(void 0===O.working&&(O.working=O(new S)),O.working?O(e):e instanceof S)}function A(e){return y(e,l)}function j(e){return y(e,h)}function T(e){return y(e,p)}function I(e){return c&&y(e,d)}function L(e){return u&&y(e,g)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=A,t.isStringObject=j,t.isBooleanObject=T,t.isBigIntObject=I,t.isSymbolObject=L,t.isBoxedPrimitive=function(e){return A(e)||j(e)||T(e)||I(e)||L(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},537:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<o;s=n[++r])y(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=l(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var u,f="",_=!1,S=["{","}"];return d(r)&&(_=!0,S=["[","]"]),x(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(f=" "+RegExp.prototype.toString.call(r)),E(r)&&(f=" "+Date.prototype.toUTCString.call(r)),k(r)&&(f=" "+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return p(e,r,n,s,t,_)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,f,S)):S[0]+f+S[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),A(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===S(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===S(e)}function k(e){return _(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.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"},t.types=r(9032),t.isArray=d,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=w,t.types.isRegExp=w,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[O((e=new Date).getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6698),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then((function(e){process.nextTick(o.bind(null,null,e))}),(function(e){process.nextTick(T.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},5767:(e,t,r)=>{"use strict";var n=r(2682),i=r(9209),o=r(487),a=r(8075),s=r(5795),c=a("Object.prototype.toString"),u=r(9092)(),f="undefined"==typeof globalThis?r.g:globalThis,l=i(),h=a("String.prototype.slice"),p=Object.getPrototypeOf,d=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},g={__proto__:null};n(l,u&&s&&p?function(e){var t=new f[e];if(Symbol.toStringTag in t){var r=p(t),n=s(r,Symbol.toStringTag);if(!n){var i=p(r);n=s(i,Symbol.toStringTag)}g["$"+e]=o(n.get)}}:function(e){var t=new f[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=h(c(e),8,-1);return d(l,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(g,(function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return n(g,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}})),t}(e):null}},6587:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},6503:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7970:(e,t,r)=>{var n=r(6503);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(n(r))for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}},6060:()=>{},1224:()=>{},6889:()=>{},993:()=>{},4385:()=>{},717:()=>{},564:()=>{},6789:()=>{},1534:()=>{},5340:()=>{},9838:()=>{},8221:()=>{},3428:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},9209:(e,t,r)=>{"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},9435:e=>{"use strict";e.exports=JSON.parse('{"rh":{"j9":"~0.10.0"}}')}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.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);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};i.r(e),i.d(e,{NIL:()=>z,parse:()=>O,stringify:()=>w,v1:()=>S,v3:()=>N,v4:()=>C,v5:()=>F,validate:()=>m,version:()=>W});var t={};i.r(t),i.d(t,{arrow:()=>ne,bold:()=>Q,classic:()=>re,default:()=>ie,double:()=>J,doubleSingle:()=>te,round:()=>X,single:()=>Y,singleDouble:()=>ee});var r={};i.r(r),i.d(r,{__:()=>Ye,analyzeModule:()=>cr,arrayEqual:()=>Et,assembleApiUrl:()=>Ue,assembleBuffer:()=>tt,assembleUrl:()=>dt,assertArray:()=>At,assertBuffer:()=>Lt,assertDate:()=>Rt,assertEmail:()=>kt,assertFunction:()=>It,assertModule:()=>Tt,assertObject:()=>jt,assertSet:()=>Ot,assertUrl:()=>St,assertUuid:()=>xt,asyncTimeout:()=>yt,base64Decode:()=>je,base64Encode:()=>Ae,base64Pack:()=>Le,base64Unpack:()=>Be,basename:()=>He,byteToHexString:()=>wt,call:()=>ue,checkInterval:()=>Xt,clarify:()=>Ze,clone:()=>Xe,convertBase:()=>Oe,convertFrom16to10:()=>Re,countKeys:()=>fr,deepCleanBigInt:()=>et,distill:()=>Qe,ensureArray:()=>nt,ensureDate:()=>st,ensureInt:()=>it,ensureLines:()=>We,ensureString:()=>at,escapeHtml:()=>nr,exclude:()=>lr,extError:()=>me,extract:()=>vt,fileURLToPath:()=>H.m9,fullLengthLog:()=>Zt,getDateByUnixTimestamp:()=>pe,getFuncParams:()=>sr,getItemFromStringOrArray:()=>ft,getKeyByValue:()=>Bt,getRandomIndexInArray:()=>ct,getRandomInt:()=>ge,getRandomItemInArray:()=>ut,getShortestInArray:()=>_t,getTimeIcon:()=>gr,getType:()=>lt,getUnixTimestampByDate:()=>de,hexDecode:()=>Ie,hexEncode:()=>Te,humanReadableBoolean:()=>Wt,ignoreErrFunc:()=>Qt,inBrowser:()=>hr,insensitiveCompare:()=>Dt,insensitiveHas:()=>Ut,is:()=>_e,isAscii:()=>rr,isModule:()=>ke,isNull:()=>xe,isSet:()=>Se,isUndefined:()=>Ee,lastItem:()=>$e,lineSplit:()=>Gt,locate:()=>Nt,log:()=>Mt,makeStringByLength:()=>Ft,mapKeys:()=>rt,mask:()=>or,matchVersion:()=>$t,mergeAtoB:()=>Ct,need:()=>ur,newError:()=>be,once:()=>ar,parseJson:()=>bt,parseVersion:()=>qt,prettyJson:()=>gt,purgeEmoji:()=>ir,randomArray:()=>ye,range:()=>Jt,renderBox:()=>Yt,renderCode:()=>Vt,renderObject:()=>Ht,renderText:()=>Kt,resolve:()=>De,rotate:()=>zt,shiftTime:()=>ze,split:()=>tr,splitArgs:()=>dr,supportAnsiColor:()=>pr,throwError:()=>ve,timeout:()=>Ne,toExponential:()=>Me,toString:()=>ot,trim:()=>Pe,tryUntil:()=>er,uniqueArray:()=>we,verifyEmail:()=>pt,verifyPhone:()=>Ce,verifyUrl:()=>ht,verifyUuid:()=>m,voidFunc:()=>qe,which:()=>Pt});var n={};i.r(n),i.d(n,{_NEED:()=>wr,aesCreateIv:()=>Nr,aesCreateKey:()=>Mr,aesDecrypt:()=>Dr,aesEncrypt:()=>Cr,defaultAlgorithm:()=>_r,defaultEncryption:()=>Er,digestObject:()=>Ir,getApiKeyCredentials:()=>Br,getSortedQueryString:()=>Rr,hash:()=>Ar,hashFile:()=>jr,hexToBigInt:()=>Lr,md5:()=>xr,random:()=>mr.randomBytes,randomString:()=>Tr,sha256:()=>Ar,sha256File:()=>jr,uniqueString:()=>kr});var o={};i.r(o),i.d(o,{_NEED:()=>un,analyzeFile:()=>ai,assertPath:()=>Gn,blobToBuffer:()=>ii,convert:()=>oi,decodeBase64DataURL:()=>Qn,deleteFileOnCloud:()=>yi,deleteOnCloud:()=>mi,downloadFileFromCloud:()=>hi,downloadFromCloud:()=>pi,encodeBase64DataURL:()=>Xn,exists:()=>ti,existsOnCloud:()=>di,getConfig:()=>Kn,getConfigFilename:()=>Hn,getGcUrlByBucket:()=>ln,getIdByGs:()=>hn,getTempPath:()=>$n,handleError:()=>zn,init:()=>fi,isTextFile:()=>Vn,legalFilename:()=>ei,lsOnCloud:()=>gi,mapFilename:()=>pn,mergeFile:()=>ci,readFile:()=>Dn,readJson:()=>qn,sanitizeFilename:()=>yn,setConfig:()=>Yn,sliceFile:()=>si,touchPath:()=>Jn,tryRm:()=>ui,unzip:()=>ni,uploadToCloud:()=>li,writeFile:()=>Un,writeJson:()=>Fn,writeTempFile:()=>Zn,zip:()=>ri});var a={};i.r(a),i.d(a,{bigIntToUuid:()=>Ei,compactUuid:()=>wi,create:()=>Oi,default:()=>Ti,expandUuid:()=>xi,fakeUuid:()=>ki,getRfcUrlNamespaceUuid:()=>Ri,getTimestampFromUuid:()=>Si,getUuidForCurrentHost:()=>ji,rotateUuid:()=>Ai,uuidRegTxt:()=>vi,uuidToBigInt:()=>_i});var s={};i.r(s),i.d(s,{bulk:()=>Fi,default:()=>Wi,end:()=>zi,list:()=>Bi,load:()=>Ui,loop:()=>Di});var c={};i.r(c),i.d(c,{checkVersion:()=>Sa,default:()=>ja,get:()=>Aa,getCurrentIp:()=>Oa,getCurrentPosition:()=>Ra,getJson:()=>_a,getParsedHtml:()=>Ea,getVersionOnNpm:()=>xa});var u={};i.r(u),i.d(u,{getExchangeRate:()=>Ia});var f={};i.r(f),i.d(f,{_NEED:()=>Na,checkSay:()=>Qa,checkWhisper:()=>es,default:()=>fs,init:()=>Xa,stt:()=>us,sttGoogle:()=>as,sttOpenAI:()=>os,sttWhisper:()=>ss,tts:()=>cs,ttsGoogle:()=>rs,ttsOpenAI:()=>ts,ttsSay:()=>ns});var l=i(8221),h=i.t(l,2);let p;const d=new Uint8Array(16);function g(){if(!p&&(p="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(d)}const y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,m=function(e){return"string"==typeof e&&y.test(e)},b=[];for(let e=0;e<256;++e)b.push((e+256).toString(16).slice(1));function v(e,t=0){return b[e[t+0]]+b[e[t+1]]+b[e[t+2]]+b[e[t+3]]+"-"+b[e[t+4]]+b[e[t+5]]+"-"+b[e[t+6]]+b[e[t+7]]+"-"+b[e[t+8]]+b[e[t+9]]+"-"+b[e[t+10]]+b[e[t+11]]+b[e[t+12]]+b[e[t+13]]+b[e[t+14]]+b[e[t+15]]}const w=function(e,t=0){const r=v(e,t);if(!m(r))throw TypeError("Stringified UUID is invalid");return r};let _,E,k=0,x=0;const S=function(e,t,r){let n=t&&r||0;const i=t||new Array(16);let o=(e=e||{}).node||_,a=void 0!==e.clockseq?e.clockseq:E;if(null==o||null==a){const t=e.random||(e.rng||g)();null==o&&(o=_=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==a&&(a=E=16383&(t[6]<<8|t[7]))}let s=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:x+1;const u=s-k+(c-x)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||s>k)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");k=s,x=c,E=a,s+=122192928e5;const f=(1e4*(268435455&s)+c)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=255&f;const l=s/4294967296*1e4&268435455;i[n++]=l>>>8&255,i[n++]=255&l,i[n++]=l>>>24&15|16,i[n++]=l>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(let e=0;e<6;++e)i[n+e]=o[e];return t||v(i)},O=function(e){if(!m(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function R(e,t,r){function n(e,n,i,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=O(n)),16!==(null===(a=n)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(n),s.set(e,n.length),s=r(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=s[e];return i}return v(s)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function A(e){return 14+(e+64>>>9<<4)+1}function j(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function T(e,t,r,n,i,o){return j((a=j(j(t,e),j(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function I(e,t,r,n,i,o,a){return T(t&r|~t&n,e,t,i,o,a)}function L(e,t,r,n,i,o,a){return T(t&n|r&~n,e,t,i,o,a)}function B(e,t,r,n,i,o,a){return T(t^r^n,e,t,i,o,a)}function M(e,t,r,n,i,o,a){return T(r^(t|~n),e,t,i,o,a)}const N=R("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let i=0;i<r;i+=8){const r=e[i>>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[A(t)-1]=t;let r=1732584193,n=-271733879,i=-1732584194,o=271733878;for(let t=0;t<e.length;t+=16){const a=r,s=n,c=i,u=o;r=I(r,n,i,o,e[t],7,-680876936),o=I(o,r,n,i,e[t+1],12,-389564586),i=I(i,o,r,n,e[t+2],17,606105819),n=I(n,i,o,r,e[t+3],22,-1044525330),r=I(r,n,i,o,e[t+4],7,-176418897),o=I(o,r,n,i,e[t+5],12,1200080426),i=I(i,o,r,n,e[t+6],17,-1473231341),n=I(n,i,o,r,e[t+7],22,-45705983),r=I(r,n,i,o,e[t+8],7,1770035416),o=I(o,r,n,i,e[t+9],12,-1958414417),i=I(i,o,r,n,e[t+10],17,-42063),n=I(n,i,o,r,e[t+11],22,-1990404162),r=I(r,n,i,o,e[t+12],7,1804603682),o=I(o,r,n,i,e[t+13],12,-40341101),i=I(i,o,r,n,e[t+14],17,-1502002290),n=I(n,i,o,r,e[t+15],22,1236535329),r=L(r,n,i,o,e[t+1],5,-165796510),o=L(o,r,n,i,e[t+6],9,-1069501632),i=L(i,o,r,n,e[t+11],14,643717713),n=L(n,i,o,r,e[t],20,-373897302),r=L(r,n,i,o,e[t+5],5,-701558691),o=L(o,r,n,i,e[t+10],9,38016083),i=L(i,o,r,n,e[t+15],14,-660478335),n=L(n,i,o,r,e[t+4],20,-405537848),r=L(r,n,i,o,e[t+9],5,568446438),o=L(o,r,n,i,e[t+14],9,-1019803690),i=L(i,o,r,n,e[t+3],14,-187363961),n=L(n,i,o,r,e[t+8],20,1163531501),r=L(r,n,i,o,e[t+13],5,-1444681467),o=L(o,r,n,i,e[t+2],9,-51403784),i=L(i,o,r,n,e[t+7],14,1735328473),n=L(n,i,o,r,e[t+12],20,-1926607734),r=B(r,n,i,o,e[t+5],4,-378558),o=B(o,r,n,i,e[t+8],11,-2022574463),i=B(i,o,r,n,e[t+11],16,1839030562),n=B(n,i,o,r,e[t+14],23,-35309556),r=B(r,n,i,o,e[t+1],4,-1530992060),o=B(o,r,n,i,e[t+4],11,1272893353),i=B(i,o,r,n,e[t+7],16,-155497632),n=B(n,i,o,r,e[t+10],23,-1094730640),r=B(r,n,i,o,e[t+13],4,681279174),o=B(o,r,n,i,e[t],11,-358537222),i=B(i,o,r,n,e[t+3],16,-722521979),n=B(n,i,o,r,e[t+6],23,76029189),r=B(r,n,i,o,e[t+9],4,-640364487),o=B(o,r,n,i,e[t+12],11,-421815835),i=B(i,o,r,n,e[t+15],16,530742520),n=B(n,i,o,r,e[t+2],23,-995338651),r=M(r,n,i,o,e[t],6,-198630844),o=M(o,r,n,i,e[t+7],10,1126891415),i=M(i,o,r,n,e[t+14],15,-1416354905),n=M(n,i,o,r,e[t+5],21,-57434055),r=M(r,n,i,o,e[t+12],6,1700485571),o=M(o,r,n,i,e[t+3],10,-1894986606),i=M(i,o,r,n,e[t+10],15,-1051523),n=M(n,i,o,r,e[t+1],21,-2054922799),r=M(r,n,i,o,e[t+8],6,1873313359),o=M(o,r,n,i,e[t+15],10,-30611744),i=M(i,o,r,n,e[t+6],15,-1560198380),n=M(n,i,o,r,e[t+13],21,1309151649),r=M(r,n,i,o,e[t+4],6,-145523070),o=M(o,r,n,i,e[t+11],10,-1120210379),i=M(i,o,r,n,e[t+2],15,718787259),n=M(n,i,o,r,e[t+9],21,-343485551),r=j(r,a),n=j(n,s),i=j(i,c),o=j(o,u)}return[r,n,i,o]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(A(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),P={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},C=function(e,t,r){if(P.randomUUID&&!t&&!e)return P.randomUUID();const n=(e=e||{}).random||(e.rng||g)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return v(n)};function D(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function U(e,t){return e<<t|e>>>32-t}const F=R("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const n=e.length/4+2,i=Math.ceil(n/16),o=new Array(i);for(let t=0;t<i;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];o[t]=r}o[i-1][14]=8*(e.length-1)/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=o[e][t];for(let e=16;e<80;++e)n[e]=U(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let i=r[0],a=r[1],s=r[2],c=r[3],u=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),o=U(i,5)+D(r,a,s,c)+u+t[r]+n[e]>>>0;u=c,c=s,s=U(a,30)>>>0,a=i,i=o}r[0]=r[0]+i>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+u>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),z="00000000-0000-0000-0000-000000000000",W=function(e){if(!m(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};var q=i(4148),$=i(8287);Object.values=Object.values||(e=>Object.keys(e).map((t=>e[t]))),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),BigInt.prototype.toJSON=BigInt.prototype.toJSON||function(){return this.toString()};const Z=q||((e,t)=>{if(!e)throw Error.isError(t)?t:new Error(t)});if(!globalThis.assert){globalThis.assert=(e,t,r,n)=>{try{return Z(e,t)}catch(e){throw((e,t=500,r={})=>Object.assign(e,{status:t},r))(e,r,n)}};for(let e in Z||{})assert[e]=Z[e]}globalThis.Buffer=globalThis.Buffer||$.Buffer;const G=(e,t)=>t?.constructor===e;[ArrayBuffer,Boolean,Error,Number,Object,Set,String,BigInt].map((e=>{const t=`is${e.name}`;e[t]=e[t]||(t=>G(e,t))})),Date.isDate=Date.isDate||((e,t)=>!(!G(Date,e)||t&&"invalid date"===e.toTimeString().toLowerCase())),Function.isFunction=Function.isFunction||(e=>{return["Function","AsyncFunction"].includes(void 0===(t=e)?"Undefined":Object.prototype.toString.call(t).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"));var t}),globalThis.print=globalThis.print||console.log;var V=i(7975),H=i(8835),K=i(537);const Y={topLeft:"┌",top:"─",topRight:"┐",right:"│",bottomRight:"┘",bottom:"─",bottomLeft:"└",left:"│"},J={topLeft:"╔",top:"═",topRight:"╗",right:"║",bottomRight:"╝",bottom:"═",bottomLeft:"╚",left:"║"},X={topLeft:"╭",top:"─",topRight:"╮",right:"│",bottomRight:"╯",bottom:"─",bottomLeft:"╰",left:"│"},Q={topLeft:"┏",top:"━",topRight:"┓",right:"┃",bottomRight:"┛",bottom:"━",bottomLeft:"┗",left:"┃"},ee={topLeft:"╓",top:"─",topRight:"╖",right:"║",bottomRight:"╜",bottom:"─",bottomLeft:"╙",left:"║"},te={topLeft:"╒",top:"═",topRight:"╕",right:"│",bottomRight:"╛",bottom:"═",bottomLeft:"╘",left:"│"},re={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},ne={topLeft:"↘",top:"↓",topRight:"↙",right:"←",bottomRight:"↖",bottom:"↑",bottomLeft:"↗",left:"→"},ie=X;var oe=i(3428);const ae={strip:(e,t)=>at(e,t).replace(/\x1B\[\d+m/g,"")};for(let e in oe)ae[e]=(t,r)=>{const[n,i]=pr()?[oe[e].open,oe[e].close]:["",""];return`${n}${at(t,r)}${i}`};const se=ae;var ce=i(8287).Buffer;const ue=(e,...t)=>(0,K.promisify)(Array.isArray(e)?e[0].bind(e[1]):e)(...t),fe="Invalid time.",[le,he]=["Chrome","Edge"],pe=e=>new Date(1e3*~~e),de=e=>Math.round(e.getTime()/1e3),ge=e=>Math.floor(Math.random()*Math.floor(e)),ye=e=>e.sort((()=>.5-Math.random())),me=(e,t,r={})=>Object.assign(e,{status:t},r),be=(e,t,r)=>me(new Error(e),t,r),ve=(e,t,r)=>{throw be(e,t,r)},we=e=>[...new Set(nt(e))],_e=(e,t)=>lt(t)===e,Ee=e=>_e("Undefined",e),ke=e=>_e("Module",e),xe=e=>_e("Null",e),Se=(e,t)=>!(Ee(e)||t&&xe(e)),Oe=(e,t,r)=>parseInt(e||0,t).toString(r),Re=e=>parseInt(Oe(e,16,10)),Ae=(e,t)=>Fe(e,t,"base64"),je=(e,t)=>mt(e,t,"base64"),Te=(e,t)=>Fe(e,t,"hex"),Ie=(e,t)=>mt(e,t,"hex"),Le=e=>Ae(JSON.stringify(e)),Be=e=>JSON.parse(je(e)),Me=(e,t)=>Number.parseFloat(e).toExponential(t),Ne=e=>new Promise((t=>(e?setTimeout:setImmediate)(t,e))),Pe=(e,t)=>at(e,{trim:!0,...t||{}}),Ce=e=>/^\+?[0-9]{4,}$/.test(e),De=async e=>e instanceof Promise?await e:e,Ue=(e,t,r)=>dt(`${e}/${t}`,r),Fe=(e,t,r)=>(t?e:ce.from(e)).toString(r),ze=(e,t)=>new Date((t??new Date).getTime()+e),We=(e,t)=>Array.isArray(e)?e:Gt(e,t),qe=()=>{},$e=e=>e.slice(-1)[0],Ze=e=>e.toLowerCase().split(/[^a-zA-Z0-9]+/).filter((e=>e)),Ge={},Ve=e=>String(e||Je),He=e=>(0,V.basename)(Ve(e)).replace(/\.[^\.]*$/,"").trim(),Ke={"00:00":"🕛","00:30":"🕧","01:00":"🕐","01:30":"🕜","02:00":"🕑","02:30":"🕝","03:00":"🕒","03:30":"🕞","04:00":"🕓","04:30":"🕟","05:00":"🕔","05:30":"🕠","06:00":"🕕","06:30":"🕡","07:00":"🕖","07:30":"🕢","08:00":"🕗","08:30":"🕣","09:00":"🕘","09:30":"🕤","10:00":"🕙","10:30":"🕥","11:00":"🕚","11:30":"🕦","00:00":"🕛"},Ye=(e,t)=>{assert(e,"Invalid URL.",500);const r=(0,H.m9)(e),n=(0,V.dirname)(r);return(t=String(t??""))?(0,V.join)(n,t):{__filename:r,__dirname:n}},{__filename:Je}=Ye("file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs"),Xe=e=>{let t=e;switch(lt(e)){case"Object":t={};for(let r in e)t[r]=Xe(e[r]);break;case"Array":t=[],e.map((e=>{t.push(Xe(e))}))}return t},Qe=(e,t)=>{let[r,n]=[e,null];switch(lt(e)){case"Object":r={};for(let i in e)Se(n=Qe(e[i],t),t)&&(r[i]=n);r=Object.keys(r).length?r:void 0;break;case"Array":r=[],e.map((e=>{Se(e=Qe(e,t),t)&&r.push(e)})),r=r.length?r:void 0}return r},et=(e,t=String)=>{let r=e;switch(lt(e)){case"Object":r={};for(let n in e)r[n]=et(e[n],t);break;case"Array":r=[],e.map((e=>{r.push(et(e,t))}));break;case"BigInt":r=t(e)}return r},tt=e=>{let t=e;switch(lt(e)){case"Object":if("Buffer"===e.type&&Array.isArray(e.data))t=ce.from(e.data);else if("DataURL"===e.type&&String.isString(e.data))t=Qn(e.data)?.buffer;else{t={};for(let r in e)t[r]=tt(e[r])}break;case"Array":t=[],e.map((e=>{t.push(tt(e))}))}return t},rt=(e,t,r,n)=>{let[i,o]=[e,t];switch(Object.isObject(t)&&(o=e=>t[e]),It(o),lt(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],n||[]);assert(!r||a,`Error maping key: '${t}'.`,400),i[a||t]=rt(e[t],o,r,[...n||[],t])}break;case"Array":i=[],e.map(((e,t)=>{i.push(rt(e,o,r,[...n||[],t]))}))}return i},nt=e=>Se(e,!0)?Array.isArray(e)||Set.isSet(e)?[...e]:[e]:[],it=(e,t)=>{t=t||{};let r=parseInt(e);return r=isNaN(r)?0:r,r=Se(t.min,!0)&&r<t.min?t.min:r,r=Se(t.max,!0)&&r>t.max?t.max:r,t.pad>0?String(r).padStart(t.pad,"0"):r},ot=(e,t)=>Object.isObject(e)?JSON.stringify(e):Date.isDate(e)?e.toISOString():Error.isError(e)?t?.trace?e.stack:e.message:String(e??""),at=(e,t)=>{if(e=ot(e,t),t?.case)switch(ot(t?.case).trim().toUpperCase()){case"UP":e=e.toUpperCase();break;case"LOW":e=e.toLowerCase();break;case"CAP":e=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;break;case"CAMEL":e=Ze(e).map(((e,t)=>t?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e)).join("");break;case"SNAKE":e=Ze(e).join("_"),assert(e,"String can not convert to snake case.",500);break;default:ve(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),t?.compact&&(e=e.replace(/\s+/g," ").trim()),t?.limit&&(e=e.trim())&&e.length>t.limit&&(e=`${e.slice(0,t.limit).trim()}...`),e},st=(e,t)=>(e&&Rt(e=new Date(e),t?.message),!e&&t?.required?ve(fe,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?de(e):e:null),ct=(e,t)=>{const r=~~t?.count,n=ye([...e.keys()]).slice(0,r||1);return r?n:n[0]},ut=(e,t)=>{const r=~~t?.count,n=ye(ct(e,{count:r||1}).sort(((e,t)=>t-e)).map((r=>t?.splice?e.splice(r,1)[0]:e[r])));return r?n:n[0]},ft=e=>Array.isArray(e)?ut(e):e,lt=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),ht=e=>{const t=String(e??"").replace(/^magnet:/,"magnet:localhost");return t.length<2083&&new RegExp("^(?:(http://|https://|ftp://|chrome://|mailto:|magnet:))(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t)},pt=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),dt=(e,t)=>{let r=[];for(let e in t||[])nt(t[e]).map((t=>{r.push(`${e}=${encodeURIComponent(t)}`)}));return`${e}${r.length?`?${r.join("&")}`:""}`},gt=(e,t)=>{let r=JSON.stringify(e,t?.replacer??null,~~t?.space||2);return t?.code?r=Vt(r,t):t?.log&&console.log(r),r},yt=async(e,t,r)=>{let n=null,i=Promise.race([e,new Promise(((e,i)=>{n=setTimeout((()=>{i(new Error(r||"Timed out."))}),t)}))]);const o=await i;try{clearTimeout(n)}catch(r){}return o},mt=(e,t,r)=>{const n=ce.from(e,r);return t?n:n.toString("utf8")},bt=(e,t,r)=>{try{return JSON.parse(e,r?.reviver||((e,t)=>t&&"Buffer"===t.type&&Array.isArray(t.data)?ce.from(t.data):t))}catch(e){return Se(t)?t:{}}},vt=(...e)=>{let t=null;return e.map(((e,r)=>t=r?t?.[e]??null:e)),t},wt=e=>Array.from(e,(e=>("0"+(255&e).toString(16)).slice(-2))).join(""),_t=e=>{let[t,r]=[0,-1];for(let n in e)(-1===r||r>e[n].length)&&(t=n,r=e[n].length);return t},Et=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),kt=(e,t,r,n)=>assert(pt(e),t||"Invalid email.",r||400,n),xt=(e,t,r,n)=>assert(m(e),t||"Invalid UUID.",r||400,n),St=(e,t,r,n)=>assert(ht(e),t||"Invalid URL.",r||400,n),Ot=(e,t,r,n)=>assert(Se(e),t||"Undefined value.",r||400,n),Rt=(e,t,r,n)=>assert(Date.isDate(e,!0),t||fe,r||400,n),At=(e,t,r,n)=>assert(Array.isObject(e),t||"Invalid Array.",r||400,n),jt=(e,t,r,n)=>assert(Object.isObject(e),t||"Invalid Object.",r||400,n),Tt=(e,t,r,n)=>assert(ke(e),t||"Invalid Module.",r||400,n),It=(e,t,r,n)=>assert(Function.isFunction(e),t||"Invalid Function.",r||400,n),Lt=(e,t,r,n)=>assert(ce.isBuffer(e)||ArrayBuffer.isArrayBuffer(e),t||"Invalid Buffer.",r||400,n),Bt=(e,t)=>{for(let r in e||{})if(t===e[r])return r},Mt=(e,t,r)=>{const n=Error.isError(e);e=Object.isObject(e)?JSON.stringify(e):e;const i=r?.keepName?Ve(t):He(t).toUpperCase(),o=r?.time?` ${(Date.isDate(r.time,!0)?r.time:new Date).toISOString()}`:"",a=["["+se.red(i)+se.yellow(o)+"]"+(n?"":` ${e}`)];return n&&a.push(e),console.info.apply(null,a)},Nt=async e=>(await Gn(e,"F","R"),globalThis._manifest=e),Pt=async e=>{if(!Object.isObject(e=e||globalThis._manifest)){if(e=(e=e||"file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs").startsWith("file://")?(0,H.m9)(e):e,!e?.endsWith?.(".json")){e=["/",...e.split(V.sep).slice(1)];const t=[];for(let r of e){t.push(r);const n=(0,V.join)(...t,"package.json");try{await Gn(n,"F","R"),e=n;break}catch(e){}}}e=await qn(e)}return e.name=e.name||"",e.versionNormalized=qt(e.version=e.version||""),e.title=`${e.name}${e.version?" v"+e.version:""}`,e.userAgent=`${e.name}${e.version?`/${e.version}`:""}`,e},Ct=(e,t,r)=>{e=e||{},t=t||{};for(let n in e)Ee(e[n])?r?.mergeUndefined&&delete t[n]:t[n]=e[n];return t},Dt=(e,t,r)=>{r={case:"UP",...r||{}};let[n,i]=[e,t].map((e=>(e=Pe(e,r),r.w&&(e=e.replace(/[^\w]*/gi,"")),e)));return n===i},Ut=(e,t,r)=>nt(e).some((e=>Dt(e,t,r))),Ft=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let r="";for(;e&&t&&r.length<t;)r+=e;return r},zt=(e,t,r)=>{let n=!1;switch(lt(e)){case"String":e=at(e,r).split(""),n=!0;break;case"Array":break;default:ve("The object can only be a string or array.",400)}return t=~~t-e.length*Math.floor(~~t/e.length),e.push.apply(e,e.splice(0,t)),n?e.join(""):e},Wt=e=>["✓","1","10-4","AYE","COOL","DO","ENABLE","ENABLED","ENGAGE","ENGAGED","GOOD","GREAT","JA","OK","OKEY","ON","RIGHT","RIGHTO","ROGER","SURE","TRUE","YEP","YEPPERS","YES","YUP","YUPPERS","好","对","對","开","开启","是","開","開啟"].includes(at(e,{case:"UP"})),qt=e=>{e=at(e,{case:"UP"});const[t,r,n]=[{version:[[/^[^\.\d]*([\.\d]+).*$/i,"$1"]],build:[[/^[^\.\d]*[\.\d]+.*\-([0-9a-z]*).*/i,"$1"],[/^[^\.\d]*[\.\d]+.*\(([0-9a-z]*)\).*/i,"$1"]],channel:["INTERNAL","DEV","ALPHA","TESTING","STAGING","BETA","PRODUCTION","STABLE"]},{normalized:0},5];for(let n in t){let i="";for(let r in t[n]){const[o,a]=Array.isArray(t[n][r])?[t[n][r][0],t[n][r][1]]:[new RegExp(`^.*(${t[n][r]}).*$`,"i"),"$1"];if(o.test(e)){i=e.replace(o,a);break}}r[n]=i}if(r.version){const e=r.version.split(".");for(;e.length<n;)e.push(0);for(;e.length;)r.normalized+=Math.pow(10,5*(n-e.length))*e.pop()}return r},$t=(e,t)=>{const[r,n]=[qt(e),qt(t)];return r.normalized>=n.normalized},Zt=(e,t)=>{t=t||{},e=String(e??"");const r=it(t.maxLength)||process.stdout.columns,n=t.padding??"=";if(e.length+4>r){const t=Ft(n,r);console.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((r-e.length)/2),i=r-t-e.length;console.log(`${Ft(n,t)}${e}${Ft(n,i)}`)}return{string:e,maxLength:r}},Gt=(e,t)=>{const r=at(e,t);return r.length?r.split(t?.separator||/\r\n|\n\r|\r|\n/):[]},Vt=(e,t)=>{let r=t?.initLine??1;const n=We(e),i=String(n.length).length,o=t?.separator??"|",a=n.map((e=>`${String(r++).padStart(i,"0")} ${o} ${at(e).replace("```","\\`\\`\\`")}`)),s=t?.asArray?a:a.join("\n");return t?.log&&console.log(s),s},Ht=(e,t)=>{jt(e,"Invalid object");const[r,n]=[Object.keys(e),t?.separator??":"];let i=0;r.map((e=>i=Math.max(i,e.length)));const o=r.map((r=>`${r.padEnd(i," ")} ${n} ${(t?.render||at)(e[r],{...t||{},key:r})}`));return t?.asArray?o:o.join("\n")},Kt=(e,t)=>{const[r,n,i]=[We(e),[],[]];return r.map((e=>{const r=/^```/.test(e);if(r&&!n.length){t?.noCode||i.push(e);const r=e.replace(/^```/,"").trim();n.push(r?`> ${r}`:"")}else if(r&&n.length){if(!t?.noCode){const r=t?.extraCodeBlock&&n[0].length;r||n.shift(),i.push(Vt(n,{...t||{},initLine:r?0:1}),e)}n.length=0}else n.length?n.push(e):i.push(e)})),t?.asArray?i:i.join("\n")},Yt=(e,r)=>{const[n,i,o,a,s]=[10,80,2048,[],t[r?.style||"round"]];let[c,u]=[~~r?.width,r?.title||""];assert(e.length,"Content must not be empty."),assert(s,`Style must be one of ${Object.keys(t).join(", ")}.`),assert(!c||c>=n&&c<=o,`Width must be between ${n} and ${o}.`);const f=(c||(c=i))-2,l=f-2,h=e=>`${e.slice(0,l-3)}...`,p=e=>a.push([s.left,e.padEnd(l," "),s.right].join(" "));u.length>l&&(u=h(u)),u.length&&(u=` ${u} `),a.push(s.topLeft+u+s.top.repeat(f-u.length)+s.topRight),u.length&&p(""),We(e).map((e=>{for(e=e||" ";e.length;)p(r?.noWrap?h(e):e.slice(0,l)),e=r?.noWrap?"":e.slice(l)})),p(""),a.push(s.bottomLeft+s.bottom.repeat(f)+s.bottomRight);const d=r?.asArray?a:a.join("\n");return r?.log&&console.log(d),d},Jt=(e,t,r)=>{(r=r||{}).base=it(r.base,{min:0}),r.step=it(r.step,{min:1}),[e,t]=[it(e),it(t)];const[n,i]=[e<=t?1:-1,[]];for(let o=e;n>0?o<=t:o>=t;o+=r.step*n)(!r.noBoundary||o!==e&&o!==t)&&i.push(r.base+o);return i},Xt=(e,t)=>!((Math.round(Date.now()/1e3)+it(t))%it(e)),Qt=async(e,t)=>{const r=async()=>{try{return await e(...t?.args||[])}catch(e){t?.log&&console.error(e)}};return t?.await?(await Ne(t.await),await r()):t?.wait?setTimeout(r,t.wait):await r()},er=async(e,t)=>{t={interval:1e3,maxTry:1/0,log:!1,error:"Operation failed.",verify:async(e,t)=>!e,...t||{}};let[r,n,i]=[0,null,null];do{try{assert(await t.verify(i=null,n=await e()),t.error)}catch(e){(i=e)&&t?.log&&console.error(e),await Ne(t.interval)}}while(++r<t.maxTry&&i);return i&&ve(i,500),n},tr=(e,t)=>Pe(e,t).split(t?.separator??/[,|;\ \t\n]+/).map((e=>e.trim())).filter((e=>e.length)),rr=e=>{if(String.isString(e))for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0},nr=e=>e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;"),ir=(e,t)=>ot(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t??""),or=(e,t)=>(t=t||{},e=at(e),t.kepp=(t.kepp=~~t.kepp||1)>=e.length?e.length-1:t.kepp,e.replace(/.{1}/g,t.replace||"*").replace(new RegExp(`^.{${t.kepp}}`),e.substr(0,t.kepp))),ar=(e,t)=>{let r;return function(){return e&&(r=e.apply(t||this,arguments),e=null),r}},sr=e=>{const t=e.toString().replace(/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/gm,"");return(t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)||[]).filter((e=>!/\:|\'|\"|\{|\}|^\d+$/gi.test(e)))},cr=e=>{Tt(e);const[t,r]=[Object.getOwnPropertyNames(e),{}];return t.sort().map((t=>r[t]={type:lt(e[t]),...Function.isFunction(e[t])?{params:sr(e[t])}:{value:at(e[t])}})),r},ur=async(e,t)=>(assert(e,`Module \`${e}\` is required.`,500),Ge[e]||(Ge[e]=await i(765)(e)),!t?.raw&&Ge[e].default?Ge[e].default:Ge[e]),fr=e=>Array.isArray(e)?e.length:Object.isObject(e)?Object.keys(e).length:0,lr=(e,t)=>{const r={};return Object.keys(e).filter((e=>!t.includes(e))).map((t=>r[t]=e[t])),r},hr=()=>{const e=["Firefox",[he,"Edg"],le,["MSIE","Trident"],"Safari"].map(nt);try{for(let t of e)for(let e of t)if(navigator.userAgent.includes(e))return t[0];return"object"==typeof window}catch(e){}return!1},pr=()=>{try{if(process.stdout.isTTY&&"dumb"!==process.env.TERM)return"Node.js"}catch(e){}const e=hr();return!![le,he].includes(e)&&e},dr=e=>((e||"").match(/"[^"]+"|'[^']+'|\S+/g)||[]).map((e=>e.replace(/^['"]|['"]$/g,""))),gr=e=>{Rt(e,null,null,{strict:!0});const[t,r]=[e.getHours(),e.getMinutes()],[n,i]=[60*(t>=12?t-12:t)+r,[]];for(const e in Ke){const[t,r]=e.split(":").map((e=>parseInt(e)));i.push([Math.abs(n-(60*t+r)),e,t,r])}return i.sort(((e,t)=>e[0]-t[0])),Ke[i[0][1]]};var yr=i(7713),mr=i(6060),br=i(6889),vr=i(8287).Buffer;const wr=["@google-cloud/speech","@google-cloud/text-to-speech","@google-cloud/vision","google-gax"],_r="sha256",Er="aes-256-gcm",kr=e=>Ar(at(e||(0,br.networkInterfaces)())),xr=e=>Ar(e,"md5"),Sr=(e,t)=>e&&String.isString(e)?e:Ae(t,1),Or=e=>e?vr.isBuffer(e)?e:je(e,1):null,Rr=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map((r=>t.append(r,at(e[r])))),t.toString()},Ar=(e,t=_r)=>(0,mr.createHash)(t).update(e).digest("hex"),jr=(e,t=_r)=>new Promise((r=>{const n=(0,mr.createHash)(t);(0,yr.createReadStream)(e).on("data",(e=>n.update(e))).on("end",(()=>r(n.digest("hex"))))})),Tr=(e=128,t="HEX")=>{let r=Math.ceil(~~e/2);return r=r>0?r:1,(0,mr.randomBytes)(r).toString(t).substring(0,e)},Ir=(e,t)=>Ar(Rr(e),t),Lr=e=>(e=`0x${at(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10)),Br=async e=>{const{GoogleAuth:t,grpc:r}=await ur("google-gax"),n=(new t).fromAPIKey(e?.apiKey);return r.credentials.combineChannelCredentials(r.credentials.createSsl(),r.credentials.createFromGoogleCredential(n))},Mr=e=>{const t=Or(e?.key)||(0,mr.randomBytes)((e?.length||256)/8);return{buffer:t,base64:Sr(e?.key,t)}},Nr=e=>{const t=Or(e?.iv)||(0,mr.randomBytes)(16);return{buffer:t,base64:Sr(e?.iv,t)}},Pr=e=>{const t=Or(e?.authTag);return{buffer:t,base64:Sr(e?.authTag,t)}},Cr=(e,t)=>{assert(e,"Invalid input.",400),e=vr.isBuffer(e)?e:vr.from(e);const[r,n]=[Mr,Nr].map((e=>e(t))),i=(0,mr.createCipheriv)(Er,r.buffer,n.buffer),o=at(t?.expected||"BASE64",{case:"UP"});let a=vr.concat([i.update(e),i.final()]);switch(o){case"":case"BASE64":a=Ae(a);break;case"BUFFER":break;case"HEX":a=Te(a);break;default:throwError("Unsupported output type.",400)}return{key:r.base64,iv:n.base64,encrypted:a,encryption:Er,authTag:Ae(i.getAuthTag(),!0)}},Dr=(e,t)=>{assert(e,"Invalid input.",400),e=vr.isBuffer(e)?e:je(e,!0);const[r,n,i]=[Mr,Nr,Pr].map((e=>e(t))),o=(0,mr.createDecipheriv)(Er,r.buffer,n.buffer),a=at(t?.expected||"TEXT",{case:"UP"});o.setAuthTag(i.buffer);let s=vr.concat([o.update(e),o.final()]);switch(a){case"":case"TEXT":s=s.toString();break;case"BASE64":s=Ae(s);break;case"BUFFER":break;case"HEX":s=Te(s);break;default:throwError("Unsupported output type.",400)}return s};var Ur=i(8559);function Fr(e){return new DataView(e.buffer,e.byteOffset)}i(251);const zr={len:1,get:(e,t)=>Fr(e).getUint8(t),put:(e,t,r)=>(Fr(e).setUint8(t,r),t+1)},Wr={len:2,get:(e,t)=>Fr(e).getUint16(t,!0),put:(e,t,r)=>(Fr(e).setUint16(t,r,!0),t+2)},qr={len:2,get:(e,t)=>Fr(e).getUint16(t),put:(e,t,r)=>(Fr(e).setUint16(t,r),t+2)},$r={len:4,get:(e,t)=>Fr(e).getUint32(t,!0),put:(e,t,r)=>(Fr(e).setUint32(t,r,!0),t+4)},Zr={len:4,get:(e,t)=>Fr(e).getUint32(t),put:(e,t,r)=>(Fr(e).setUint32(t,r),t+4)},Gr={len:4,get:(e,t)=>Fr(e).getInt32(t),put:(e,t,r)=>(Fr(e).setInt32(t,r),t+4)},Vr={len:8,get:(e,t)=>Fr(e).getBigUint64(t,!0),put:(e,t,r)=>(Fr(e).setBigUint64(t,r,!0),t+8)};class Hr{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return $.Buffer.from(e).toString(this.encoding,t,t+this.len)}}class Kr{constructor(e){this.len=e}static decode(e,t,r){let n="";for(let i=t;i<r;++i)n+=Kr.codePointToString(Kr.singleByteDecoder(e[i]));return n}static inRange(e,t,r){return t<=e&&e<=r}static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}static singleByteDecoder(e){if(Kr.inRange(e,0,127))return e;const t=Kr.windows1252[e-128];if(null===t)throw Error("invaliding encoding");return t}get(e,t=0){return Kr.decode(e,t,t+this.len)}}Kr.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255];class Yr extends Error{constructor(){super("End-Of-Stream")}}class Jr{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise(((e,t)=>{this.reject=t,this.resolve=e}))}}class Xr{constructor(e){if(this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(()=>this.reject(new Yr))),this.s.once("error",(e=>this.reject(e))),this.s.once("close",(()=>this.reject(new Error("Stream closed"))))}async peek(e,t,r){const n=await this.read(e,t,r);return this.peekQueue.push(e.subarray(t,t+n)),n}async read(e,t,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new Yr;let n=r,i=0;for(;this.peekQueue.length>0&&n>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const o=Math.min(r.length,n);e.set(r.subarray(0,o),t+i),i+=o,n-=o,o<r.length&&this.peekQueue.push(r.subarray(o))}for(;n>0&&!this.endOfStream;){const r=Math.min(n,1048576),o=await this.readFromStream(e,t+i,r);if(i+=o,o<r)break;n-=o}return i}async readFromStream(e,t,r){const n=this.s.read(r);if(n)return e.set(n,t),n.length;{const n={buffer:e,offset:t,length:r,deferred:new Jr};return this.deferred=n.deferred,this.s.once("readable",(()=>{this.readDeferred(n)})),n.deferred.promise}}readDeferred(e){const t=this.s.read(e.length);t?(e.buffer.set(t,e.offset),e.deferred.resolve(t.length),this.deferred=null):this.s.once("readable",(()=>{this.readDeferred(e)}))}reject(e){this.endOfStream=!0,this.deferred&&(this.deferred.reject(e),this.deferred=null)}}class Qr{constructor(e){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}async readToken(e,t=this.position){const r=$.Buffer.alloc(e.len);if(await this.readBuffer(r,{position:t})<e.len)throw new Yr;return e.get(r,0)}async peekToken(e,t=this.position){const r=$.Buffer.alloc(e.len);if(await this.peekBuffer(r,{position:t})<e.len)throw new Yr;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new Yr;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new Yr;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){}normalizeOptions(e,t){if(t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return t?{mayBeLess:!0===t.mayBeLess,offset:t.offset?t.offset:0,length:t.length?t.length:e.length-(t.offset?t.offset:0),position:t.position?t.position:this.position}:{mayBeLess:!1,offset:0,length:e.length,position:this.position}}}class en extends Qr{constructor(e,t){super(t),this.streamReader=new Xr(e)}async getFileInfo(){return this.fileInfo}async readBuffer(e,t){const r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const i=await this.streamReader.read(e,r.offset,r.length);if(this.position+=i,(!t||!t.mayBeLess)&&i<r.length)throw new Yr;return i}async peekBuffer(e,t){const r=this.normalizeOptions(e,t);let n=0;if(r.position){const t=r.position-this.position;if(t>0){const i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t),r.offset),n-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e,r.offset,r.length)}catch(e){if(t&&t.mayBeLess&&e instanceof Yr)return 0;throw e}if(!r.mayBeLess&&n<r.length)throw new Yr}return n}async ignore(e){const t=Math.min(256e3,e),r=new Uint8Array(t);let n=0;for(;n<e;){const i=e-n,o=await this.readBuffer(r,{length:Math.min(t,i)});if(o<0)return o;n+=o}return n}}class tn extends Qr{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:e.length}async readBuffer(e,t){if(t&&t.position){if(t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=t.position}const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new Yr;return e.set(this.uint8Array.subarray(r.position,r.position+n),r.offset),n}async close(){}}const rn={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},nn=4100;async function on(e){return(new sn).fromBuffer(e)}function an(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}class sn{constructor(e){this.detectors=e?.customDetectors,this.fromTokenizer=this.fromTokenizer.bind(this),this.fromBuffer=this.fromBuffer.bind(this),this.parse=this.parse.bind(this)}async fromTokenizer(e){const t=e.position;for(const r of this.detectors||[]){const n=await r(e);if(n)return n;if(t!==e.position)return}return this.parse(e)}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);if(t?.length>1)return this.fromTokenizer(new tn(t,undefined))}async fromBlob(e){const t=await e.arrayBuffer();return this.fromBuffer(new Uint8Array(t))}async fromStream(e){const t=await function(e,t){return new en(e,t=t||{})}(e);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t={}){const{default:r}=await Promise.resolve().then(i.t.bind(i,8399,19)),{sampleSize:n=nn}=t;return new Promise(((t,i)=>{e.on("error",i),e.once("readable",(()=>{(async()=>{try{const o=new r.PassThrough,a=r.pipeline?r.pipeline(e,o,(()=>{})):e.pipe(o),s=e.read(n)??e.read()??$.Buffer.alloc(0);try{o.fileType=await this.fromBuffer(s)}catch(e){e instanceof Yr?o.fileType=void 0:i(e)}t(a)}catch(e){i(e)}})()}))}))}check(e,t){return an(this.buffer,e,t)}checkString(e,t){return this.check((r=e,[...r].map((e=>e.charCodeAt(0)))),t);var r}async parse(e){if(this.buffer=$.Buffer.alloc(nn),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:12,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.parse(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);const t=await e.readToken(rn);return e.position+t>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(t),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(this.buffer,{length:30});const r={compressedSize:this.buffer.readUInt32LE(18),uncompressedSize:this.buffer.readUInt32LE(22),filenameLength:this.buffer.readUInt16LE(26),extraFieldLength:this.buffer.readUInt16LE(28)};if(r.filename=await e.readToken(new Hr(r.filenameLength,"utf-8")),await e.ignore(r.extraFieldLength),"META-INF/mozilla.rsa"===r.filename)return{ext:"xpi",mime:"application/x-xpinstall"};if(r.filename.endsWith(".rels")||r.filename.endsWith(".xml"))switch(r.filename.split("/")[0]){case"_rels":default:break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}if(r.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(r.filename.startsWith("3D/")&&r.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if("mimetype"===r.filename&&r.compressedSize===r.uncompressedSize){let n=await e.readToken(new Hr(r.compressedSize,"utf-8"));switch(n=n.trim(),n){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}}if(0===r.compressedSize){let i=-1;for(;i<0&&e.position<e.fileInfo.size;)await e.peekBuffer(this.buffer,{mayBeLess:!0}),i=this.buffer.indexOf("504B0304",0,"hex"),await e.ignore(i>=0?i:this.buffer.length)}else await e.ignore(r.compressedSize)}}catch(o){if(!(o instanceof Yr))throw o}return{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);const a=$.Buffer.alloc(8);return await e.readBuffer(a),an(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:an(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:an(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:an(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:an(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:an(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("ftyp",{offset:4})&&96&this.buffer[8]){const s=this.buffer.toString("binary",8,12).replace("\0"," ").trim();switch(s){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return s.startsWith("3g")?s.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF")){try{await e.ignore(1350);const c=10485760,u=$.Buffer.alloc(Math.min(c,e.fileInfo.size));if(await e.readBuffer(u,{mayBeLess:!0}),u.includes($.Buffer.from("AIPrivateData")))return{ext:"ai",mime:"application/postscript"}}catch(f){if(!(f instanceof Yr))throw f}return{ext:"pdf",mime:"application/pdf"}}if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){const l=await this.readTiffHeader(!1);if(l)return l}if(this.check([77,77])){const h=await this.readTiffHeader(!0);if(h)return h}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function p(){const t=await e.peekNumber(zr);let r=128,n=0;for(;!(t&r)&&0!==r;)++n,r>>=1;const i=$.Buffer.alloc(n+1);return await e.readBuffer(i),i}async function d(){const e=await p(),t=await p();t[0]^=128>>t.length-1;const r=Math.min(6,t.length);return{id:e.readUIntBE(0,e.length),len:t.readUIntBE(t.length-r,r)}}async function g(t){for(;t>0;){const r=await d();if(17026===r.id)return(await e.readToken(new Hr(r.len,"utf-8"))).replaceAll(/\00.*$/g,"");await e.ignore(r.len),--t}}const y=await d();switch(await g(y.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(this.check([82,73,70,70])){if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1"))return{ext:"parquet",mime:"application/x-parquet"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(0===this.buffer[6]||1===this.buffer[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){const m=this.buffer.toString("binary",2,6);if(m.match("^d*")&&m>=1e3&&m<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),"debian-binary"===await e.readToken(new Hr(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("**ACE",{offset:7})&&(await e.peekBuffer(this.buffer,{length:14,mayBeLess:!0}),this.checkString("**",{offset:12})))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.check([137,80,78,71,13,10,26,10])){async function b(){return{length:await e.readToken(Gr),type:await e.readToken(new Hr(4,"binary"))}}await e.ignore(8);do{const v=await b();if(v.length<0)return;switch(v.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(v.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function w(){const t=$.Buffer.alloc(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(Vr))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const _=await w();let E=_.size-24;if(an(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const k=$.Buffer.alloc(16);if(E-=await e.readBuffer(k),an(k,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(an(k,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(E)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Hr(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.check([0,60,0,63,0,120,0,109,0,108],{offset:2})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const x=this.buffer.readUInt32LE(12);if(x>12&&this.buffer.length>=x+16)try{const S=this.buffer.slice(16,x+16).toString();if(JSON.parse(S).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),function(e,t=0){const r=Number.parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(r))return!1;let n=256;for(let r=t;r<t+148;r++)n+=e[r];for(let r=t+156;r<t+512;r++)n+=e[r];return r===n}(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254]))return this.check([60,0,63,0,120,0,109,0,108,0],{offset:2})?{ext:"xml",mime:"application/xml"}:this.check([255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0],{offset:2})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:void 0;if(this.checkString("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(this.buffer.length>=2&&this.check([255,224],{offset:0,mask:[255,224]})){if(this.check([16],{offset:1,mask:[22]}))return this.check([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}async readTiffTag(e){const t=await this.tokenizer.readToken(e?qr:Wr);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){const t=await this.tokenizer.readToken(e?qr:Wr);for(let r=0;r<t;++r){const t=await this.readTiffTag(e);if(t)return t}}async readTiffHeader(e){const t=(e?qr:Wr).get(this.buffer,2),r=(e?Zr:$r).get(this.buffer,4);if(42===t){if(r>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r>=8&&(this.check([28,0,254,0],{offset:8})||this.check([31,0,11,0],{offset:8})))return{ext:"nef",mime:"image/x-nikon-nef"}}return await this.tokenizer.ignore(r),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}}new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/x-parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx"]);var cn=i(8287).Buffer;const un=["file-type","mime-types","@google-cloud/storage"],fn={cacheControl:"public, max-age=31536000"},ln=e=>`https://storage.cloud.google.com/${e}`,hn=e=>e.replace(/^gs:\/\/[^/]*\/(.*)$/,"$1"),pn=e=>(0,V.join)(e.substr(0,2),e.substr(2,2)),[dn,gn]=[Ur.deflate,Ur.unzip].map(K.promisify),yn=(e,t)=>e.replace(/[\/?<>\\:*|"]/g,t||"_").trim(),[mn,bn,vn,wn,_n,En,kn,xn,Sn,On,Rn,An,jn,Tn,In]=["NULL","BASE64","BUFFER","FILE","STREAM","TEXT","JSON","utf8","binary","BLOB","DATAURL","0644","0755","text/plain","application/octet-stream"],[Ln,Bn,Mn]=[{encoding:bn},{encoding:Sn},{encoding:mn}];let[Nn,Pn,Cn]=[null,null,null];const Dn=async(e,t)=>await yr.promises.readFile(e,[mn,vn].includes(at(t?.encoding,{case:"UP"}))?null:t?.encoding||xn),Un=async(e,t,r)=>await yr.promises.writeFile(e,t,r?.encoding||xn),Fn=async(e,t,r)=>await Un(e,Wn(t,r),r),zn=(e,t)=>{if(t?.throw)throw e;t?.log&&console.log(e)},Wn=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),qn=async(e,t)=>{let r={};try{r=JSON.parse(await Dn(e,t))}catch(e){zn(e,t)}return r},$n=e=>(0,V.join)((0,br.tmpdir)(),e?.sub||"",e?.seed?Ar(e.seed):""),Zn=async(e,t)=>{let{filename:r,encoding:n,mode:i,prefix:o,suffix:a,hashName:s}=t||{};r=(o||"")+(r?s?Ar(r):r:C())+(a?`.${a}`:""),"JSON"===String(n).toUpperCase()&&(e=Wn(e,t),n=null);const c=$n({sub:r});return await Un(c,e,{encoding:n||xn}),await yr.promises.chmod(c,i||An),c},Gn=async(e,t,r,n,i,o)=>{var[i,a,s,c,u]=[i||500,"Path is not",e=>u=n||e];try{c=await yr.promises.stat(e)}catch(e){ve(n||e.message,i,o)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":c.isFile()||s(`${a} a file: '${e}'.`);break;case"D":c.isDirectory()||s(`${a} a directory: '${e}'.`);break;default:s(`Unsupported path type: '${t}'.`)}assert(!u,u,i,o);try{switch(String(r||"").toUpperCase()){case"*":case"":break;case"R":await yr.promises.access(e,yr.constants.R_OK);break;case"W":await yr.promises.access(e,yr.constants.R_OK|yr.constants.W_OK);break;default:s(`Unsupported access mode: '${r}'.`)}}catch(e){s(e.message)}return assert(!u,u,i,o),c},Vn=async(e,t)=>{const r=cn.isBuffer(e);let[n,i,o]=[r?e:await yr.promises.open(e,"r"),null,!0];for(let e=0;e<(~~t?.length||1e3);e++){let t=cn.alloc(1);if(r?(t[0]=n[e],i=e<n.length?1:0):i=(0,yr.readSync)(n.fd,t,0,1,e),0===i)break;if(1===i&&0===t.toString().charCodeAt()){o=!1;break}}return r||n?.close(),o},Hn=async e=>{const t=(e=e||{}).config||(0,V.join)((0,br.homedir)(),`.${(await Pt(e.pack)).name}.json`);return assert(t,"Error getting config filename.",500),t},Kn=async e=>{const t=await Hn(e);return{filename:t,config:await qn(t)}},Yn=async(e,t)=>{e=e||{},assert(Object.keys(e).length,"Empty config.",400);let[r,n]=[null,{}];if(t?.overwrite)r=await Hn(t);else{const{filename:e,config:i}=await Kn(t);r=e,n=i}return await Fn(r,Ct(e,n,{mergeUndefined:!0}),t),{filename:r,config:n}},Jn=async(e,t)=>(await yr.promises.mkdir(e,{recursive:!0}),await yr.promises.chmod(e,t?.permissions||jn),await yr.promises.stat(e)),Xn=(e,t)=>(assert(e=Pe(e),"MIME type is required.",400),assert(cn.isBuffer(t),"Data buffer is required.",400),`data:${e};${bn},${Ae(t,!0)}`),Qn=e=>{const t=e.split(","),r=t[0].match(/:(.*?);/)[1],n=atob(t[1]),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return{mime:r,buffer:cn.from(i)}},ei=e=>(assert(e=at(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),ti=async e=>{assert(e=at(e),"Path is required.",400);try{return await yr.promises.stat(e)}catch(e){return null}},ri=async(e,t)=>(assert(e,"Invalid input.",400),await oi(await dn(cn.isBuffer(e)?e:cn.from(e),t),t)),ni=async(e,t)=>(assert(e,"Invalid input.",400),await oi(await gn(cn.isBuffer(e)?e:je(e,!0),t),t)),ii=async e=>{const t=new FileReader;return new Promise(((r,n)=>{t.onload=()=>r(cn.from(t.result)),t.onerror=n,t.readAsArrayBuffer(e)}))},oi=async(e,t)=>{assert(e,t?.errorMessage||"Invalid input.",400);const r={};let[n,i]=[cn.isBuffer(e)||ArrayBuffer.isArrayBuffer(e)?vn:t?.input,t?.expected||vn].map((e=>at(e,{case:"UP"}))),[o,a,s,c]=[null,null,In,i];switch(n){case wn:o=e;break;case En:e=cn.from(e),s=Tn,n=vn;break;case On:e=await ii(e),n=vn;break;case Rn:const t=Qn(e);e=t.buffer,s=t.mime,n=vn}switch(i){case _n:c=wn;break;case Rn:case En:case kn:c=vn}if(o&&(a=await Gn(e,"F","R")),n!==c)switch(`${n}-${c}`){case`${bn}-${vn}`:e=je(e,!0);break;case`${bn}-${wn}`:e=je(e,!0);case`${vn}-${wn}`:e=await(async(e,t)=>{const r=t?.encoding||Sn;return t?.file?(await Un(t?.file,e,r),t?.file):await Zn(e,{filename:t?.filename,encoding:r,suffix:t?.suffix})})(e,t);break;case`${vn}-${bn}`:e=Ae(e,!0);break;case`${wn}-${vn}`:e=await Dn(e,Mn);break;case`${wn}-${bn}`:e=await Dn(e,Ln);break;default:ve("Invalid input or expected format.",400)}switch(i){case _n:r.content=(0,yr.createReadStream)(e);break;case En:r.content=e.toString();break;case kn:r.content=JSON.parse(e.toString());break;case Rn:r.content=Xn(t?.mime||s,e);break;default:r.content=e}return o&&c!==wn&&t?.cleanup&&await ui(ori,t),t?.withCleanupFunc&&(r.cleanup=async t=>{i===_n&&await Qt(r.content?.destroy),c===wn&&(t?.force||!o)&&await ui(e,t)}),t?.meta&&(r={...r,mime:s,meta:a}),1===Object.keys(r).length?r.content:r},ai=async(e,t)=>{const{meta:r,content:n}=await oi(e,{meta:1,...t||{}}),i=t?.hashAlgorithm||_r,o=Ar(n,i),a=t?.filename||(r?(0,V.basename)(e):null)||Ar,s=(await Qt((()=>ur("mime-types"))))?.lookup||qe;return{content:n,extname:(0,V.extname)(a).replace(/^\.|\.$/g,""),filename:a,hashAlgorithm:i,hash:o,mime:vt(await on(n),"mime")||s(a)||In,size:n.length}},si=async(e,t)=>{const[r,n,i,o]=[{...await ai(e,t),compressed:null},t?.sliceSize||144e4,[],t?.hashAlgorithm||_r];for(t?.zip&&(r.content=await ri(r.content,t),r.compressed="gzip");n*i.length<r.content.length;){const e=n*i.length;i.push(r.content.slice(e,e+n))}return delete r.content,assert(i.length,"Empty slices.",400),{...r,slices:i.map(((e,t)=>({content:e,hash:Ar(e,o)})))}},ci=async(e,t)=>{assert(e?.slices?.length,"Invalid slices.",400);const[r,n]=[e?.hashAlgorithm||_r,[]];for(let i in e?.slices){const o=await oi(e.slices[i]?.content,{...t||{},expected:vn});e.slices[i]?.hash&&assert(e.slices[i].hash===Ar(o,r),`Invalid hash for slice ${i}.`,400),n.push(o)}let i=cn.concat(n);switch(at(e?.compressed,{case:"UP"})){case"":break;case"GZIP":i=await ni(i,t);break;default:ve("Unsupported compression.",400)}return e?.hash&&assert(e.hash===Ar(i,r),"Invalid file hash.",400),await oi(i,{...t||{},input:vn})},ui=async(e,t)=>await Qt((async()=>{await Gn(e,"F","W"),await yr.promises.unlink(e)}),t),fi=async e=>{if(e)if("GOOGLE"===at(e?.provider,{case:"UP"})){assert(e?.credentials,"Google Cloud credentials are required.",400),assert(Pn=e?.bucket,"Google Cloud Storage bucket is required.",400),Cn=e?.url||ln(Pn),1==~~process.env.FORKED&&Mt(`GOOGLE CLOUD STORAGE: ${Cn}`,"file:///home/runner/work/utilitas/utilitas/lib/storage.mjs");const{Storage:t}=await ur("@google-cloud/storage",{raw:!0});Nn=new t(e).bucket(Pn)}else ve("Invalid cloud storage provider.",500);return assert(Nn,"Cloud storage has not been initialized.",501),{client:Nn,bucket:Pn,url:Cn}},li=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const{content:r,cleanup:n}=await oi(e,{input:t?.input,suffix:t?.suffix,...t||{},expected:wn,withCleanupFunc:!0,errorMessage:"Invalid file."}),i=await Nn.upload(r,{gzip:!1,destination:t?.destination||(0,V.join)(...t?.prefix?[t.prefix]:[],(0,V.basename)(r)),metadata:fn,...t||{}});await n();const o=t?.raw?i:i[0].metadata;var a;return!t?.raw&&o&&(o.gs=(a=o?.id,`gs://${a}`.replace(/[\/][^\/]*$/,""))),o},hi=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const r=await Nn.file(e).download(t);return t?.raw?r:await oi(r[0],{...t||{},input:vn})},pi=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await gi(e,{name:!0}):[e],i=await Promise.all(n.map((e=>hi(e,t))));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o},di=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const r=await Nn.file(e).exists();return t?.raw?r:r[0]?{}:null},gi=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);let r=await Nn.getFiles({prefix:e,...t||{}});return t?.raw||(r=(r[0]||[]).map((e=>e.metadata)),t?.name&&(r=r.map((e=>e.name)))),r},yi=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const r=await Nn.file(e).delete(t);return t?.raw?r:r[0].toJSON()},mi=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await gi(e,{name:!0}):[e],i=await Promise.all(n.map((e=>yi(e,t))));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o},bi={name:"utilitas",description:"Just another common utility for JavaScript.",version:"1995.3.36",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=20.x"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},overrides:{xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"},dependencies:{"file-type":"^19.0.0",mathjs:"^13.0.0",uuid:"^9.0.1"},devDependencies:{"@ffmpeg-installer/ffmpeg":"^1.1.0","@ffprobe-installer/ffprobe":"^2.1.2","@google-cloud/aiplatform":"^3.21.0","@google-cloud/speech":"^6.6.0","@google-cloud/storage":"^7.11.1","@google-cloud/text-to-speech":"^5.3.0","@google-cloud/vertexai":"^1.2.0","@google-cloud/vision":"^4.3.0","@google/generative-ai":"^0.12.0","@mozilla/readability":"^0.5.0","@ngrok/ngrok":"^1.3.0","@sentry/node":"^8.7.0","@sentry/profiling-node":"^8.7.0","acme-client":"^5.3.1","browserify-fs":"^1.0.0",buffer:"^6.0.3","fast-geoip":"^1.1.88","fluent-ffmpeg":"^2.1.3","form-data":"^4.0.0",ioredis:"^5.4.1","js-tiktoken":"^1.0.12",jsdom:"^24.1.0","lorem-ipsum":"^2.0.8","mailgun.js":"^10.2.1",mailparser:"^3.7.1","mime-types":"^2.1.35",mysql2:"^3.10.0","node-mailjet":"^6.0.5","node-polyfill-webpack-plugin":"^4.0.0","office-text-extractor":"^3.0.3",ollama:"^0.5.1",openai:"^4.47.3","pdfjs-dist":"^4.3.136",pg:"^8.11.5",pgvector:"^0.1.8",ping:"^0.4.4",say:"^0.16.0",telegraf:"^4.16.3",telesignsdk:"^3.0.0","tesseract.js":"^5.1.0",twilio:"^5.1.0",url:"github:Leask/node-url","webpack-cli":"^5.1.4","whisper-node":"^1.1.1",wrangler:"^3.58.0",xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz","youtube-transcript":"^1.2.1"}},vi="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",wi=e=>e.replace(/\-/gi,""),_i=e=>Lr(wi(e)),Ei=e=>xi(BigInt(e).toString(16).padStart(32,"0")),ki=e=>xi(xr(e??Tr())),xi=e=>e.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),Si=e=>e?Number((BigInt(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"0x$3$2$1"))-122192928000000000n)/10000n):0,Oi=e=>{(e=Object.assign({file:"file:///home/runner/work/utilitas/utilitas/lib/uoid.mjs",id:C()},e||{})).type=e.type||He(e.file),1==(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${Tr(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},Ri=e=>(St(e=e||bi.homepage),F(e,F.URL)),Ai=(e,t,r)=>(e=zt(e,t,{case:"UP",...r||{}}),assert(e,"Invalid reference.",400),F(e,Ri(r?.url))),ji=e=>F(`info:id/${encodeURIComponent(at(e||kr()))}`,F.URL),Ti=Oi,Ii={},Li=e=>1e3*(isNaN(e=Number(e))?0:e),Bi=()=>Ii;let Mi=null;const Ni=(e,t,r)=>{r=Object.assign({time:!0},r||{}),(!t||!Ii[t]||!Ii[t].silent||r.force||e instanceof Error)&&Mt(e,He("file:///home/runner/work/utilitas/utilitas/lib/event.mjs")+(t?` > ${t}`:""),r)},Pi=(e,t,r)=>Ii[e].lock+r>t?Ii[e].lock:!(Ii[e].lock=t),Ci=async()=>{const e=Date.now();for(let r in Ii)if(Ii[r].lastRun+Ii[r].interval<e){Ii[r].lastRun=e;try{if(Pi(r,e,Ii[r].timeout)){Ni("Locked, skipped.",r);continue}Ni("Emit...",r),await Ii[r].function()}catch(e){Ni(e,r)}Ni("Done.",r),Ii[t=r]&&(Ii[t].lock=0)}var t},Di=async(e,t,r,n,i,o)=>(Mi=Mi||Ni("Initialized.")||setInterval(Ci,1e3),Ni("Scheduled.",i=i||Ti({type:"EVENT"}),{force:!0}),Ii[i]={function:e,interval:Li(t),timeout:Li(r),delay:n,lastRun:Date.now()+Li(n-t),lock:0,silent:!!o?.silent,end:o?.end},Mi),Ui=async(e,t)=>(assert(e&&e.func,"Event function is required.",500),await Di(e.func,e.interval,e.tout,e.delay,e.name,t)),Fi=async(e,t)=>{t=t||{},Ni(`SERVICES: ${e}`);const[r,n]=[((0,yr.readdirSync)(e)||[]).filter((e=>/\.mjs$/i.test(e)&&!e.startsWith("."))),[]];for(let o of r){const r={...await i(765)((0,V.join)(e,o))};r.run&&(r.name=r.name||o.replace(/^(.*)\.mjs$/i,"$1"),n.push(Ui(r,t)))}return await Promise.all(n)},zi=async e=>{if(e&&(delete Ii[e],Object.keys(Ii).length))return;clearInterval(Mi),Mi=null;const t=Date.now();for(let e in Ii){if(Ii[e].end)try{await Ii[e].end()}catch(e){}for(;Pi(e,t,Ii[e].timeout);)Ni("Waiting...",e),await Ne(1e3);Ni("End.",e)}Ni("Terminated.")},Wi=Di,[qi,$i,Zi,Gi,Vi,Hi,Ki,Yi,Ji,Xi,Qi]=["gpt-3.5-turbo","gpt-4o","gemini-1.5-flash-latest","gemini-1.5-flash-preview-0514","embedding-001","textembedding-gecko@001","textembedding-gecko@002","textembedding-gecko-multilingual@001","mistral","text-embedding-3-small","text-embedding-3-large"],[eo,to,ro,no]=[e=>({type:e}),e=>({provider:e}),e=>({messages:e}),e=>({text:e})],[io,oo,ao,so,co,uo]=["Alan","user","system","assistant","model","json_object"],[fo,lo,ho]=["code_interpreter","retrieval","function"].map(eo),[po,go]=["AI engine has not been initialized.","Invalid file data."],[yo,mo,bo]=[!0,"STREAM","You are a helpful assistant."],[vo,wo,_o,Eo]=[100/75,1.1,100,1440],ko={},[xo,So,Oo,Ro,Ao,jo,To,Io,Lo,Bo,Mo,No,Po,Co,Do,Uo,Fo,zo,Wo,qo,$o,Zo,Go,Vo,Ho]=["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","image/gif","image/webp","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp","application/json","text/plain"],[Ko,Yo,Jo,Xo,Qo,ea,ta,ra,na,ia]=["OPENAI","VERTEX","GEMINI","CHATGPT","ASSISTANT","OPENAI_EMBEDDING","GEMINI_EMEDDING","VERTEX_EMEDDING","OPENAI_TRAINING","OLLAMA"],oa={[Qo]:$i,[Xo]:$i,[ta]:Vi,[Jo]:Zi,[ia]:Ji,[ea]:Xi,[na]:qi,[ra]:Yi,[Yo]:Gi};new Map;const aa={[qi]:{contextWindow:16385,maxOutputTokens:4096,requestLimitsRPM:5e3,tokenLimitsTPM:16e4,trainingData:"Sep 2021"},[$i]:{contextWindow:128e3,imageCostTokens:1105,maxOutputTokens:4096,requestLimitsRPM:5e3,tokenLimitsTPD:4e7,tokenLimitsTPM:6e5,trainingData:"Oct 2023",vision:!0,supportedMimeTypes:[xo,So,Mo,No]},[Zi]:{contextWindow:1048576,maxOutputTokens:8192,trainingData:"April 9, 2024"},[Gi]:{contextWindow:1048576,imageCostTokens:258,maxAudioLength:34200,maxAudioPerPrompt:1,maxFileSize:20971520,maxImagePerPrompt:3600,maxImageSize:1/0,maxOutputTokens:8192,maxUrlSize:2147483648,maxVideoLength:3e3,maxVideoLengthWithAudio:3e3,maxVideoLengthWithoutAudio:3600,maxVideoPerPrompt:10,requestLimitsRPM:1e3,tokenLimitsTPM:2e6,trainingData:"May, 2024",vision:!0,supportedMimeTypes:[xo,So,Oo,Ro,Ao,jo,To,Io,Lo,Bo,Po,Co,Do,Uo,Fo,zo,Wo,qo,$o,Zo,Go]},[Ji]:{contextWindow:128e3,requestLimitsRPM:1/0,tokenLimitsTPM:1/0},[Xi]:{contextWindow:8191,embedding:!0,outputDimension:1536,requestLimitsRPM:500,tokenLimitsTPM:1e6,trainingData:"Sep 2021"},[Qi]:{contextWindow:8191,embedding:!0,outputDimension:3072,requestLimitsRPM:500,tokenLimitsTPM:1e6,trainingData:"Sep 2021"},[ta]:{contextWindow:3072,embedding:!0},[ra]:{contextWindow:3072,embedding:!0}};for(const e in aa)aa[e].name=e,aa[e].embedding?aa[e].maxInputTokens=aa[e].contextWindow:(aa[e].supportedMimeTypes=aa[e].supportedMimeTypes||[],aa[e].maxOutputTokens=aa[e].maxOutputTokens||Math.ceil(.4*aa[e].contextWindow),aa[e].maxInputTokens=aa[e].maxInputTokens||aa[e].contextWindow-aa[e].maxOutputTokens,aa[e].tokenLimitsTPD=aa[e].tokenLimitsTPD||aa[e].tokenLimitsTPM*Eo,aa[e].requestLimitsRPD=aa[e].requestLimitsRPD||aa[e].requestLimitsRPM*Eo,aa[e].requestCapacityRPM=Math.ceil(Math.min(aa[e].tokenLimitsTPM/aa[e].maxInputTokens,aa[e].requestLimitsRPM,aa[e].requestLimitsRPD/Eo)));aa[qi].maxInputTokens,aa[$i].imageCostTokens;const sa=async e=>{const t=(e=>((e,t)=>{const r=at(e,{case:"UP"});return assert(r,`${t} is required.`),r})(e?.provider,"AI provider"))(e);switch(t){case Ko:if(e?.apiKey){const r=await ur("openai"),n=new r(e),i=e?.chatGptEndpoint||e?.chatGptApiKey?new r({...e,baseURL:e?.chatGptEndpoint||e?.baseURL,apiKey:e?.chatGptApiKey||e?.apiKey}):n;ko[t]={client:n,clientBeta:n.beta,chatGptClient:i}}break;case Yo:if(e?.credentials){process.env.GOOGLE_APPLICATION_CREDENTIALS=e.credentials;const{VertexAI:r}=await ur("@google-cloud/vertexai"),n=await ur("@google-cloud/aiplatform"),[i,o]=[e?.project,e?.location||"northamerica-northeast1"];ko[t]={project:i,location:o,helpers:n.helpers,generative:new r({project:i,location:o}).preview.getGenerativeModel({model:e?.model||oa[Yo],generation_config:{...e?.generation_config||{}}}),prediction:new n.v1.PredictionServiceClient({apiEndpoint:"us-central1-aiplatform.googleapis.com"})}}break;case Jo:if(e?.apiKey){const{GoogleGenerativeAI:r}=await ur("@google/generative-ai"),n=new r(e.apiKey);ko[t]={generative:n.getGenerativeModel({model:e?.model||oa[Jo]}),embedding:n.getGenerativeModel({model:oa[ta]})}}break;case ia:const r=await ur("ollama");ko[t]={client:r};break;default:ve(`Invalid AI provider: ${e?.provider||"null"}`)}return assert(ko[t],po),ko[t]},[ca,ua,fa,la]=[Ko,Yo,Jo,ia].map((e=>async t=>await sa({...to(e),...t}))),[ha,pa]=["BASE64","BUFFER"];var da=i(1224);const ga="TEXT";var ya=i(8287).Buffer;const ma=process.env.TMPDIR?(0,V.join)(process.env.TMPDIR,"shot"):null,ba=e=>e.toString("utf8"),[va,wa]=["JSON","PARSED"],_a=async(e,t)=>await Aa(e,{encode:va,...t||{}}),Ea=async(e,t)=>await Aa(e,{encode:wa,...t||{}}),ka={redirect:"follow",follow:3,timeout:1e4,headers:{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15"}},xa=async e=>{assert(e,"Package name is required.",400);const t=`https://registry.npmjs.org/-/package/${e}/dist-tags`,r=(await Aa(t,{encode:va}))?.content;return assert(r,"Error fetching package info.",500),assert("Not Found"!==r&&r.latest,"Package not found.",404),qt(r.latest)},Sa=async e=>{const t=await Pt(e),r=t.versionNormalized,n=await xa(t.name);return{name:t.name,curVersion:r,newVersion:n,updateAvailable:n.normalized>r.normalized}},Oa=async e=>{const t=await Aa("https://ifconfig.me/all.json",{encode:va,...e||{}});return assert(t?.content?.ip_addr,"Error detecting IP address.",500),e?.raw?t:t.content.ip_addr},Ra=async()=>{const e=await fetch("https://geolocation-db.com/json/").then((e=>e.json()));return assert(e,"Network is unreachable.",500),assert(e.country_code,"Error detecting geolocation.",500),e},Aa=async(e,t)=>{assert(e,"URL is required.",400),(t=t||{}).encode=at(t.encode,{case:"UP"});const r=hr()?null:Ar(e),n=r?t.cache?.tmp||ma:null,i=n?(0,V.join)(n,pn(r)):null,[o,a]=i?["meta","content"].map((e=>(0,V.join)(i,`${r}.${e}`))):[];if(t?.fuzzy&&await ti(o)&&await ti(a))return{cache:{meta:o,content:a}};const s=t?.refresh||!i?null:await qn(o),c=t?.refresh||!i?null:await Qt((()=>yr.promises.readFile(a))),u=s?.responseHeaders&&c?{"cache-control":"max-age=0","if-modified-since":s.responseHeaders["last-modified"]||"","if-none-match":s.responseHeaders.etag||""}:{};let[f,l,h]=[null,null,{}];const p={...ka,headers:{...ka.headers,...u},...t.fetch||{}};if(t.timeout){const e=new AbortController;p.signal=e.signal,f=setTimeout((()=>e.abort()),t.timeout)}try{l=await fetch(e,p)}catch(e){ve(e.message.includes("aborted")?"Timed out.":e.message,500)}f&&clearTimeout(f),304===l.status&&(l.arrayBuffer=async()=>c);const[d,g]=[l.headers.get("content-type"),ya.from(await l.arrayBuffer())];if(l.headers?.raw)h=l.headers.raw();else for(const[e,t]of l.headers.entries())h[e]=t;const y=await Qt((async()=>{vt(await on(g),"mime")}))||d,m=g.length;let b;if(!t?.fuzzy)switch(t.encode){case"BUFFER":b=g;break;case"BASE64":b=g.toString(t.encode);break;case"BASE64_DATA_URL":b=Xn(y,g);break;case va:b=bt(ba(g),null);break;case wa:b=await(async(e,t)=>{const r=await oi(e,{input:ga,expected:ga}),n=await Promise.all([ur("jsdom"),ur("@mozilla/readability")]),[i,o]=[n[0].JSDOM,n[1].Readability],a=new i(r)?.window?.document;assert(a,"Failed to parse HTML.",500);const s=new o(a).parse();assert(s,"Failed to distill HTML.",500),s.textContent=s.textContent.trim().split("\n").map((e=>e.trim()));for(let e=s.textContent.length-1;e>=0;e--)e<s.textContent.length-1&&""===s.textContent[e]&&""===s.textContent[e+1]&&s.textContent.splice(e,1);return s.textContent=s.textContent.join("\n"),{byline:s.byline,data:{},html:s.html,lang:s.lang,provider:s.siteName,text:s.textContent,thumbnail:null,title:s.title,type:"WEBPAGE"}})(ba(g));break;default:assert(!t.encode,"Invalid encoding.",400);case"TEXT":b=ba(g)}return i&&!c&&m&&200===l.status&&await Qt((async()=>({touch:await Jn(i),content:await yr.promises.writeFile(a,g),meta:await Fn(o,{url:e,requestHeaders:u,responseHeaders:h})}))),{statusCode:l.status,statusText:l.statusText,length:m,mimeType:y,content:b,headers:h,response:l,cache:l.status>=200&&l.status<400?{meta:o,content:a}:null}},ja=Aa,Ta=(e,t)=>{const r=e[at(t||"USD",{case:"UP"})];return Ot(r,`Unsupported currency: '${t}'.`,400),(0,da.bignumber)(r)},Ia=async(e,t,r)=>{const n={};if(((await Aa("https://api.mixin.one/external/fiats",{encode:"JSON"}))?.content?.data||[]).map((e=>n[e.code]=e.rate)),assert(Object.keys(n).length,"Error fetching exchange rates.",500),!e)return n;[e,t]=[Ta(n,e),Ta(n,t)];const i=(0,da.divide)(e,t);return{rate:i,amount:(r=(0,da.multiply)((0,da.bignumber)(r??1),i)).toString()}},La=async e=>{const t=await ur("fluent-ffmpeg");return t.setFfmpegPath((await ur("@ffmpeg-installer/ffmpeg")).path),t.setFfprobePath((await ur("@ffprobe-installer/ffprobe")).path),new t(e)},Ba=async(e,t)=>{assert(e,"Invalid audio input.",400);const r=await La(e),n=t?.output||$n({sub:t?.suffix?`${Ar(JSON.stringify({input:e,options:t}))}.${t.suffix}`:null});return t?.frequency&&r.audioFrequency(t.frequency),t?.channels&&r.audioChannels(t.channels),t?.codec&&r.audioCodec(t?.codec),await new Promise(((e,t)=>{r.on("error",t),r.on("end",e),r.save(n)})),n};var Ma=i(8287).Buffer;const Na=["@google-cloud/speech","@google-cloud/text-to-speech","OpenAI","whisper-node"],Pa="tiny.en",Ca="Invalid audio data.",[Da,Ua,Fa,za,Wa,qa,$a,Za,Ga,Va]=["BUFFER","STREAM","BASE64","FILE",{},"en-US","OGG_OPUS","ogg","SPEAKER",!0],[Ha,Ka]=["tts-1","tts-1-hd"],Ya=Ha,Ja=["tiny",Pa,"base","base.en","small","small.en","medium","medium.en","large-v1","large"],Xa=async e=>{if(e){assert(e?.tts||e?.stt,"At least one of TTS or STT is selected.",500);const t=at(e?.provider,{case:"UP"});switch(t){case"OPENAI":Wa._provider=t;const r=new(await ur("openai"))(e);e?.tts&&(Wa.tts=r.audio.speech),e?.stt&&(Wa.stt=r.audio.transcriptions);break;case"GOOGLE":Wa._provider=t;const n=await Br(e);if(e?.tts){const e=(await ur("@google-cloud/text-to-speech")).default;Wa.tts=new e.TextToSpeechClient({sslCreds:n})}if(e?.stt){const e=(await ur("@google-cloud/speech")).default;Wa.stt=new e.SpeechClient({sslCreds:n})}break;case"":Wa._provider="LOCAL",e?.tts&&await Qa({assert:!0}),e?.stt&&await es({assert:!0});break;default:ve("Invalid speech provider.",500)}}return assert(fr(Wa),"Speech API client has not been initialized.",501),Wa},Qa=async e=>{const t=!!await Qt((async()=>"darwin"===(await Promise.all([ur("node:os"),ur("say"),La()]))[0].platform()));return e?.assert&&assert(t,"Say API is not available.",500),t},es=async e=>{const t=!!await Qt((()=>Promise.all([ur("whisper-node"),La()])));return e?.assert&&assert(t,"Whisper API is not available.",500),t},ts=async(e,t)=>{assert(Wa.tts,"Text-to-Speech API has not been initialized.",500),assert(e,"Text is required.",400);const r=await Wa.tts.create({model:Ya,voice:"nova",response_format:"opus",input:e,...t?.params||{}}),n=Ma.from(await r.arrayBuffer());return await oi(n,{suffix:Za,...t||{}})},rs=async(e,t)=>{assert(Wa.tts,"Text-to-Speech API has not been initialized.",500),assert(e,"Text is required.",400);const[r]=await Wa.tts.synthesizeSpeech({input:{text:e,...t?.input||{}},voice:{languageCode:qa,name:"en-US-Wavenet-F",...t?.voice||{}},audioConfig:{audioEncoding:$a,...t?.audioConfig||{}}});return await oi(r.audioContent,{suffix:Za,...t||{}})},ns=async(e,t)=>{const r=await ur("say");assert(e,"Text is required.",400);let[n,i,o]=[null,null,[e,t?.voice||"Samantha",t?.speed||1]];return t?.expected===Ga?n="speak":(n="export",i=$n({sub:`${Ar(JSON.stringify(o))}.wav`}),o.push(i)),await ue([r[n],r],...o),i&&!t?.raw&&(i=await(a=i,Ba(a,{channels:1,codec:"libopus",frequency:48e3,suffix:"ogg",...{frequency:16e3}||{}})),i=await oi(i,{cleanup:Va,input:za,suffix:Za,...t||{}})),i;var a},is=async e=>(assert(e,"Text is required.",400),speechSynthesis.speak(new SpeechSynthesisUtterance(e))),os=async(e,t)=>{assert(Wa.stt,"Speech-to-Text API has not been initialized.",500);const r=at(t?.input,{case:"UP"}),{content:n,cleanup:i}=await oi(e,{input:t?.input,...t||{},expected:Ua,errorMessage:Ca,suffix:["",Da].includes(r)?Za:null,withCleanupFunc:!0}),o=await Wa.stt.create({content:n,model:"whisper-1",response_format:"text",...t?.params||{}});return await i(),o},as=async(e,t)=>{assert(Wa.stt,"Speech-to-Text API has not been initialized.",500);const r=await oi(e,{input:t?.input,expected:Fa,errorMessage:Ca}),[n]=await Wa.stt.recognize({audio:{content:r,...t?.audio||{}},config:{encoding:$a,sampleRateHertz:48e3,languageCode:qa,...t?.config||{}}});return t?.raw?n:n.results.map((e=>e.alternatives[0].transcript)).join("\n")},ss=async(e,t)=>{const r=(await ur("whisper-node")).whisper,{content:n,cleanup:i}=await oi(e,{input:t?.input,expected:za,errorMessage:Ca,withCleanupFunc:!0}),o=await(a=n,Ba(a,{channels:1,codec:"pcm_s16le",frequency:16e3,suffix:"wav"}));var a;await i();const s=await(async(e,t)=>(e=t?.model||Pa,(await Aa((e=>(assert(Ja.includes(e),"Invalid Whisper model.",400),`https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-${e}.bin`))(e),{fuzzy:!0}))?.cache?.content))(t?.model,t),c=await r(o,{modelPath:s,...t||{}});return assert(c,"Failed to recognize speech.",500),t?.raw?c:c.map((e=>e.speech)).join("").trim()},cs=async(e,t)=>{let r;return hr()?r=is:Wa?.tts&&"OPENAI"===Wa._provider?r=ts:Wa?.tts&&"GOOGLE"===Wa._provider?r=rs:await Qa()?r=ns:ve("Text-to-Speech engine has not been initialized.",500),await r(e,t)},us=async(e,t)=>{let r;return Wa?.stt&&"OPENAI"===Wa._provider?r=os:Wa?.stt&&"GOOGLE"===Wa._provider?r=as:await es()?r=ss:ve("Speech-to-Text engine has not been initialized.",500),await r(e,t)},fs=Xa;hr()&&!globalThis.utilitas&&(globalThis.utilitas={boxes:t,color:se,encryption:n,event:s,manifest:bi,math:h,shekel:u,shot:c,speech:f,storage:o,uoid:a,utilitas:r,uuid:e},(async()=>{Mt(`(${bi.homepage}) is ready!`,`${(await Pt(bi)).title}.*`)})())})()})();
2
+ (()=>{var e,t,r={765:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=765,e.exports=t},2768:e=>{function t(e){this._db=e,this._operations=[],this._written=!1}t.prototype._checkWritten=function(){if(this._written)throw new Error("write() already called on this batch")},t.prototype.put=function(e,t){this._checkWritten();var r=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(r)throw r;if(r=this._db._checkKeyValue(t,"value",this._db._isBuffer))throw r;return this._db._isBuffer(e)||(e=String(e)),this._db._isBuffer(t)||(t=String(t)),"function"==typeof this._put?this._put(e,t):this._operations.push({type:"put",key:e,value:t}),this},t.prototype.del=function(e){this._checkWritten();var t=this._db._checkKeyValue(e,"key",this._db._isBuffer);if(t)throw t;return this._db._isBuffer(e)||(e=String(e)),"function"==typeof this._del?this._del(e):this._operations.push({type:"del",key:e}),this},t.prototype.clear=function(){return this._checkWritten(),this._operations=[],"function"==typeof this._clear&&this._clear(),this},t.prototype.write=function(e,t){if(this._checkWritten(),"function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("write() requires a callback argument");return"object"!=typeof e&&(e={}),this._written=!0,"function"==typeof this._write?this._write(t):"function"==typeof this._db._batch?this._db._batch(this._operations,e,t):void process.nextTick(t)},e.exports=t},4427:e=>{function t(e){this.db=e,this._ended=!1,this._nexting=!1}t.prototype.next=function(e){var t=this;if("function"!=typeof e)throw new Error("next() requires a callback argument");return t._ended?e(new Error("cannot call next() after end()")):t._nexting?e(new Error("cannot call next() before previous next() has completed")):(t._nexting=!0,"function"==typeof t._next?t._next((function(){t._nexting=!1,e.apply(null,arguments)})):void process.nextTick((function(){t._nexting=!1,e()})))},t.prototype.end=function(e){if("function"!=typeof e)throw new Error("end() requires a callback argument");return this._ended?e(new Error("end() already called on iterator")):(this._ended=!0,"function"==typeof this._end?this._end(e):void process.nextTick(e))},e.exports=t},1831:(e,t,r)=>{var n=r(8287).Buffer,i=r(3409),o=r(4427),a=r(2768);function s(e){if(!arguments.length||void 0===e)throw new Error("constructor requires at least a location argument");if("string"!=typeof e)throw new Error("constructor requires a location string argument");this.location=e}s.prototype.open=function(e,t){if("function"==typeof e&&(t=e),"function"!=typeof t)throw new Error("open() requires a callback argument");if("object"!=typeof e&&(e={}),"function"==typeof this._open)return this._open(e,t);process.nextTick(t)},s.prototype.close=function(e){if("function"!=typeof e)throw new Error("close() requires a callback argument");if("function"==typeof this._close)return this._close(e);process.nextTick(e)},s.prototype.get=function(e,t,r){var n;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("get() requires a callback argument");return(n=this._checkKeyValue(e,"key",this._isBuffer))?r(n):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._get?this._get(e,t,r):void process.nextTick((function(){r(new Error("NotFound"))})))},s.prototype.put=function(e,t,r,n){var i;if("function"==typeof r&&(n=r),"function"!=typeof n)throw new Error("put() requires a callback argument");return(i=this._checkKeyValue(e,"key",this._isBuffer))||(i=this._checkKeyValue(t,"value",this._isBuffer))?n(i):(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||process.browser||(t=String(t)),"object"!=typeof r&&(r={}),"function"==typeof this._put?this._put(e,t,r,n):void process.nextTick(n))},s.prototype.del=function(e,t,r){var n;if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("del() requires a callback argument");return(n=this._checkKeyValue(e,"key",this._isBuffer))?r(n):(this._isBuffer(e)||(e=String(e)),"object"!=typeof t&&(t={}),"function"==typeof this._del?this._del(e,t,r):void process.nextTick(r))},s.prototype.batch=function(e,t,r){if(!arguments.length)return this._chainedBatch();if("function"==typeof t&&(r=t),"function"!=typeof r)throw new Error("batch(array) requires a callback argument");if(!Array.isArray(e))return r(new Error("batch(array) requires an array argument"));"object"!=typeof t&&(t={});for(var n,i,o=0,a=e.length;o<a;o++)if("object"==typeof(n=e[o])){if(i=this._checkKeyValue(n.type,"type",this._isBuffer))return r(i);if(i=this._checkKeyValue(n.key,"key",this._isBuffer))return r(i);if("put"==n.type&&(i=this._checkKeyValue(n.value,"value",this._isBuffer)))return r(i)}if("function"==typeof this._batch)return this._batch(e,t,r);process.nextTick(r)},s.prototype.approximateSize=function(e,t,r){if(null==e||null==t||"function"==typeof e||"function"==typeof t)throw new Error("approximateSize() requires valid `start`, `end` and `callback` arguments");if("function"!=typeof r)throw new Error("approximateSize() requires a callback argument");if(this._isBuffer(e)||(e=String(e)),this._isBuffer(t)||(t=String(t)),"function"==typeof this._approximateSize)return this._approximateSize(e,t,r);process.nextTick((function(){r(null,0)}))},s.prototype._setupIteratorOptions=function(e){var t=this;return e=i(e),["start","end","gt","gte","lt","lte"].forEach((function(r){e[r]&&t._isBuffer(e[r])&&0===e[r].length&&delete e[r]})),e.reverse=!!e.reverse,e.reverse&&e.lt&&(e.start=e.lt),e.reverse&&e.lte&&(e.start=e.lte),!e.reverse&&e.gt&&(e.start=e.gt),!e.reverse&&e.gte&&(e.start=e.gte),(e.reverse&&e.lt&&!e.lte||!e.reverse&&e.gt&&!e.gte)&&(e.exclusiveStart=!0),e},s.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),e=this._setupIteratorOptions(e),"function"==typeof this._iterator?this._iterator(e):new o(this)},s.prototype._chainedBatch=function(){return new a(this)},s.prototype._isBuffer=function(e){return n.isBuffer(e)},s.prototype._checkKeyValue=function(e,t){if(null==e)return new Error(t+" cannot be `null` or `undefined`");if(this._isBuffer(e)){if(0===e.length)return new Error(t+" cannot be an empty Buffer")}else if(""===String(e))return new Error(t+" cannot be an empty String")},e.exports.Z$=s,e.exports.No=o},3409:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},4148:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,"string");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===n(o)?o:String(o)),i)}var o}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var a,s,c=r(9597).codes,u=c.ERR_AMBIGUOUS_ARGUMENT,f=c.ERR_INVALID_ARG_TYPE,l=c.ERR_INVALID_ARG_VALUE,h=c.ERR_INVALID_RETURN_VALUE,p=c.ERR_MISSING_ARGS,d=r(3918),g=r(537).inspect,y=r(537).types,m=y.isPromise,b=y.isRegExp,v=r(1514)(),w=r(9394)(),_=r(8075)("RegExp.prototype.test");function E(){var e=r(2299);a=e.isDeepEqual,s=e.isDeepStrictEqual}new Map;var k=!1,x=e.exports=A,S={};function O(e){if(e.message instanceof Error)throw e.message;throw new d(e)}function R(e,t,r,n){if(!r){var i=!1;if(0===t)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function A(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];R.apply(void 0,[A,t.length].concat(t))}x.fail=function e(t,r,n,i,o){var a,s=arguments.length;if(0===s?a="Failed":1===s?(n=t,t=void 0):(!1===k&&(k=!0,(process.emitWarning?process.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(i="!=")),n instanceof Error)throw n;var c={actual:t,expected:r,operator:void 0===i?"fail":i,stackStartFn:o||e};void 0!==n&&(c.message=n);var u=new d(c);throw a&&(u.message=a,u.generatedMessage=!0),u},x.AssertionError=d,x.ok=A,x.equal=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t!=r&&O({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},x.notEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");t==r&&O({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},x.deepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)||O({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},x.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),a(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},x.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)||O({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},x.notDeepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");void 0===a&&E(),s(t,r)&&O({actual:t,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:e})},x.strictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)||O({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},x.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new p("actual","expected");w(t,r)&&O({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var j=o((function e(t,r,n){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.forEach((function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&b(t[e])&&_(t[e],n[e])?i[e]=n[e]:i[e]=t[e])}))}));function T(e,t,r,i){if("function"!=typeof t){if(b(t))return _(t,e);if(2===arguments.length)throw new f("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var o=new d({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:i});throw o.operator=i.name,o}var c=Object.keys(t);if(t instanceof Error)c.push("name","message");else if(0===c.length)throw new l("error",t,"may not be an empty object");return void 0===a&&E(),c.forEach((function(n){"string"==typeof e[n]&&b(t[n])&&_(t[n],e[n])||function(e,t,r,n,i,o){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new j(e,i),c=new j(t,i,e),u=new d({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:o});throw u.actual=e,u.expected=t,u.operator=o.name,u}O({actual:e,expected:t,message:n,operator:o.name,stackStartFn:o})}}(e,t,n,r,c,i)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new f("fn","Function",e);try{e()}catch(e){return e}return S}function L(e){return m(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function B(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!L(t=e()))throw new h("instance of Promise","promiseFn",t)}else{if(!L(e))throw new f("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return S})).catch((function(e){return e}))}))}function M(e,t,r,i){if("string"==typeof r){if(4===arguments.length)throw new f("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new f("error",["Object","Error","Function","RegExp"],r);if(t===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=i?": ".concat(i):".";var a="rejects"===e.name?"rejection":"exception";O({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(r&&!T(t,r,i,e))throw t}function N(e,t,r,n){if(t!==S){if("string"==typeof r&&(n=r,r=void 0),!r||T(t,r)){var i=n?": ".concat(n):".",o="doesNotReject"===e.name?"rejection":"exception";O({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function P(e,t,r,i,o){if(!b(t))throw new f("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||_(t,e)!==a){if(r instanceof Error)throw r;var s=!r;r=r||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(n(e)," (").concat(g(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(g(t),". Input:\n\n").concat(g(e),"\n"));var c=new d({actual:e,expected:t,message:r,operator:o,stackStartFn:i});throw c.generatedMessage=s,c}}function C(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];R.apply(void 0,[C,t.length].concat(t))}x.throws=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];M.apply(void 0,[e,I(t)].concat(n))},x.rejects=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return B(t).then((function(t){return M.apply(void 0,[e,t].concat(n))}))},x.doesNotThrow=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];N.apply(void 0,[e,I(t)].concat(n))},x.doesNotReject=function e(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return B(t).then((function(t){return N.apply(void 0,[e,t].concat(n))}))},x.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=g(t);var i=new d({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var s=i.stack.split("\n"),c=0;c<a.length;c++){var u=s.indexOf(a[c]);if(-1!==u){s=s.slice(0,u);break}}i.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw i}},x.match=function e(t,r,n){P(t,r,n,e,"match")},x.doesNotMatch=function e(t,r,n){P(t,r,n,e,"doesNotMatch")},x.strict=v(C,x,{equal:x.strictEqual,deepEqual:x.deepStrictEqual,notEqual:x.notStrictEqual,notDeepEqual:x.notDeepStrictEqual}),x.strict.strict=x.strict},3918:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){var n,i,o;n=e,i=t,o=r[t],(i=a(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}function s(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return f(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),h(n,e)},u(e)}function f(e,t,r){return f=l()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&h(i,r.prototype),i},f.apply(null,arguments)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var g=r(537).inspect,y=r(9597).codes.ERR_INVALID_ARG_TYPE;function m(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",v="",w="",_="",E={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 k(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){r[t]=e[t]})),Object.defineProperty(r,"message",{value:e.message}),r}function x(e){return g(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var S=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(S,e);var r,n,a,u,f=(r=S,n=l(),function(){var e,t=p(r);if(n){var i=p(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return s(this,e)});function S(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),"object"!==d(e)||null===e)throw new y("options","Object",e);var r=e.message,n=e.operator,i=e.stackStartFn,o=e.actual,a=e.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=f.call(this,String(r));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&1!==process.stderr.getColorDepth()?(b="",v="",_="",w=""):(b="",v="",_="",w="")),"object"===d(o)&&null!==o&&"object"===d(a)&&null!==a&&"stack"in o&&o instanceof Error&&"stack"in a&&a instanceof Error&&(o=k(o),a=k(a)),"deepStrictEqual"===n||"strictEqual"===n)t=f.call(this,function(e,t,r){var n="",i="",o=0,a="",s=!1,c=x(e),u=c.split("\n"),f=x(t).split("\n"),l=0,h="";if("strictEqual"===r&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===u.length&&1===f.length&&u[0]!==f[0]){var p=u[0].length+f[0].length;if(p<=10){if(!("object"===d(e)&&null!==e||"object"===d(t)&&null!==t||0===e&&0===t))return"".concat(E[r],"\n\n")+"".concat(u[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&p<(process.stderr&&process.stderr.isTTY?process.stderr.columns:80)){for(;u[0][l]===f[0][l];)l++;l>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",l),"^"),l=0)}}for(var g=u[u.length-1],y=f[f.length-1];g===y&&(l++<2?a="\n ".concat(g).concat(a):n=g,u.pop(),f.pop(),0!==u.length&&0!==f.length);)g=u[u.length-1],y=f[f.length-1];var k=Math.max(u.length,f.length);if(0===k){var S=c.split("\n");if(S.length>30)for(S[26]="".concat(b,"...").concat(_);S.length>27;)S.pop();return"".concat(E.notIdentical,"\n\n").concat(S.join("\n"),"\n")}l>3&&(a="\n".concat(b,"...").concat(_).concat(a),s=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var O=0,R=E[r]+"\n".concat(v,"+ actual").concat(_," ").concat(w,"- expected").concat(_),A=" ".concat(b,"...").concat(_," Lines skipped");for(l=0;l<k;l++){var j=l-o;if(u.length<l+1)j>1&&l>2&&(j>4?(i+="\n".concat(b,"...").concat(_),s=!0):j>3&&(i+="\n ".concat(f[l-2]),O++),i+="\n ".concat(f[l-1]),O++),o=l,n+="\n".concat(w,"-").concat(_," ").concat(f[l]),O++;else if(f.length<l+1)j>1&&l>2&&(j>4?(i+="\n".concat(b,"...").concat(_),s=!0):j>3&&(i+="\n ".concat(u[l-2]),O++),i+="\n ".concat(u[l-1]),O++),o=l,i+="\n".concat(v,"+").concat(_," ").concat(u[l]),O++;else{var T=f[l],I=u[l],L=I!==T&&(!m(I,",")||I.slice(0,-1)!==T);L&&m(T,",")&&T.slice(0,-1)===I&&(L=!1,I+=","),L?(j>1&&l>2&&(j>4?(i+="\n".concat(b,"...").concat(_),s=!0):j>3&&(i+="\n ".concat(u[l-2]),O++),i+="\n ".concat(u[l-1]),O++),o=l,i+="\n".concat(v,"+").concat(_," ").concat(I),n+="\n".concat(w,"-").concat(_," ").concat(T),O+=2):(i+=n,n="",1!==j&&0!==l||(i+="\n ".concat(I),O++))}if(O>20&&l<k-2)return"".concat(R).concat(A,"\n").concat(i,"\n").concat(b,"...").concat(_).concat(n,"\n")+"".concat(b,"...").concat(_)}return"".concat(R).concat(s?A:"","\n").concat(i).concat(n).concat(a).concat(h)}(o,a,n));else if("notDeepStrictEqual"===n||"notStrictEqual"===n){var l=E[n],h=x(o).split("\n");if("notStrictEqual"===n&&"object"===d(o)&&null!==o&&(l=E.notStrictEqualObject),h.length>30)for(h[26]="".concat(b,"...").concat(_);h.length>27;)h.pop();t=1===h.length?f.call(this,"".concat(l," ").concat(h[0])):f.call(this,"".concat(l,"\n\n").concat(h.join("\n"),"\n"))}else{var p=x(o),g="",O=E[n];"notDeepEqual"===n||"notEqual"===n?(p="".concat(E[n],"\n\n").concat(p)).length>1024&&(p="".concat(p.slice(0,1021),"...")):(g="".concat(x(a)),p.length>512&&(p="".concat(p.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===n||"equal"===n?p="".concat(O,"\n\n").concat(p,"\n\nshould equal\n\n"):g=" ".concat(n," ").concat(g)),t=f.call(this,"".concat(p).concat(g))}return Error.stackTraceLimit=u,t.generatedMessage=!r,Object.defineProperty(c(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=o,t.expected=a,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(c(t),i),t.stack,t.name="AssertionError",s(t)}return a=S,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return g(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&o(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),S}(u(Error),g.custom);e.exports=S},9597:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}var a,s,c={};function u(e,t,r){r||(r=Error);var a=function(r){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(f,r);var a,s,c,u=(s=f,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=o(s);if(c){var r=o(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(r,n,i){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),o=u.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i)),o.code=e,o}return a=f,Object.defineProperty(a,"prototype",{writable:!1}),a}(r);c[e]=a}function f(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,s,c,u,l;if(void 0===a&&(a=r(4148)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var h=("number"!=typeof l&&(l=0),l+1>(u=e).length||-1===u.indexOf(".",l)?"argument":"property");c='The "'.concat(e,'" ').concat(h," ").concat(o," ").concat(f(t,"type"))}return c+". Received type ".concat(n(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=r(537));var i=s.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===a&&(a=r(4148)),a(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},2299:(e,t,r)=>{"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=void 0!==/a/g.flags,s=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},c=function(e){var t=[];return e.forEach((function(e,r){return t.push([r,e])})),t},u=Object.is?Object.is:r(7653),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(4133);function h(e){return e.call.bind(e)}var p=h(Object.prototype.hasOwnProperty),d=h(Object.prototype.propertyIsEnumerable),g=h(Object.prototype.toString),y=r(537).types,m=y.isAnyArrayBuffer,b=y.isArrayBufferView,v=y.isDate,w=y.isMap,_=y.isRegExp,E=y.isSet,k=y.isNativeError,x=y.isBoxedPrimitive,S=y.isNumberObject,O=y.isStringObject,R=y.isBooleanObject,A=y.isBigIntObject,j=y.isSymbolObject,T=y.isFloat32Array,I=y.isFloat64Array;function L(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function B(e){return Object.keys(e).filter(L).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}var N=0,P=1,C=2,D=3;function U(e,t,r,n){if(e===t)return 0!==e||!r||u(e,t);if(r){if("object"!==o(e))return"number"==typeof e&&l(e)&&l(t);if("object"!==o(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==o(e))return(null===t||"object"!==o(t))&&e==t;if(null===t||"object"!==o(t))return!1}var i,s,c,f,h=g(e);if(h!==g(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=B(e),d=B(t);return p.length===d.length&&z(e,t,r,n,P,p)}if("[object Object]"===h&&(!w(e)&&w(t)||!E(e)&&E(t)))return!1;if(v(e)){if(!v(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(_(e)){if(!_(t)||(c=e,f=t,!(a?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(b(e)){if(r||!T(e)&&!I(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e,t))return!1;var y=B(e),L=B(t);return y.length===L.length&&z(e,t,r,n,N,y)}if(E(e))return!(!E(t)||e.size!==t.size)&&z(e,t,r,n,C);if(w(e))return!(!w(t)||e.size!==t.size)&&z(e,t,r,n,D);if(m(e)){if(s=t,(i=e).byteLength!==s.byteLength||0!==M(new Uint8Array(i),new Uint8Array(s)))return!1}else if(x(e)&&!function(e,t){return S(e)?S(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):O(e)?O(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):R(e)?R(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):A(e)?A(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return z(e,t,r,n,N)}function F(e,t){return t.filter((function(t){return d(e,t)}))}function z(e,t,r,i,a,u){if(5===arguments.length){u=Object.keys(e);var l=Object.keys(t);if(u.length!==l.length)return!1}for(var h=0;h<u.length;h++)if(!p(t,u[h]))return!1;if(r&&5===arguments.length){var g=f(e);if(0!==g.length){var y=0;for(h=0;h<g.length;h++){var m=g[h];if(d(e,m)){if(!d(t,m))return!1;u.push(m),y++}else if(d(t,m))return!1}var b=f(t);if(g.length!==b.length&&F(t,b).length!==y)return!1}else{var v=f(t);if(0!==v.length&&0!==F(t,v).length)return!1}}if(0===u.length&&(a===N||a===P&&0===e.length||0===e.size))return!0;if(void 0===i)i={val1:new Map,val2:new Map,position:0};else{var w=i.val1.get(e);if(void 0!==w){var _=i.val2.get(t);if(void 0!==_)return w===_}i.position++}i.val1.set(e,i.position),i.val2.set(t,i.position);var E=function(e,t,r,i,a,u){var f=0;if(u===C){if(!function(e,t,r,n){for(var i=null,a=s(e),c=0;c<a.length;c++){var u=a[c];if("object"===o(u)&&null!==u)null===i&&(i=new Set),i.add(u);else if(!t.has(u)){if(r)return!1;if(!$(e,t,u))return!1;null===i&&(i=new Set),i.add(u)}}if(null!==i){for(var f=s(t),l=0;l<f.length;l++){var h=f[l];if("object"===o(h)&&null!==h){if(!W(i,h,r,n))return!1}else if(!r&&!e.has(h)&&!W(i,h,r,n))return!1}return 0===i.size}return!0}(e,t,r,a))return!1}else if(u===D){if(!function(e,t,r,i){for(var a=null,s=c(e),u=0;u<s.length;u++){var f=n(s[u],2),l=f[0],h=f[1];if("object"===o(l)&&null!==l)null===a&&(a=new Set),a.add(l);else{var p=t.get(l);if(void 0===p&&!t.has(l)||!U(h,p,r,i)){if(r)return!1;if(!Z(e,t,l,h,i))return!1;null===a&&(a=new Set),a.add(l)}}}if(null!==a){for(var d=c(t),g=0;g<d.length;g++){var y=n(d[g],2),m=y[0],b=y[1];if("object"===o(m)&&null!==m){if(!G(a,e,m,b,r,i))return!1}else if(!(r||e.has(m)&&U(e.get(m),b,!1,i)||G(a,e,m,b,!1,i)))return!1}return 0===a.size}return!0}(e,t,r,a))return!1}else if(u===P)for(;f<e.length;f++){if(!p(e,f)){if(p(t,f))return!1;for(var l=Object.keys(e);f<l.length;f++){var h=l[f];if(!p(t,h)||!U(e[h],t[h],r,a))return!1}return l.length===Object.keys(t).length}if(!p(t,f)||!U(e[f],t[f],r,a))return!1}for(f=0;f<i.length;f++){var d=i[f];if(!U(e[d],t[d],r,a))return!1}return!0}(e,t,r,u,i,a);return i.val1.delete(e),i.val2.delete(t),E}function W(e,t,r,n){for(var i=s(e),o=0;o<i.length;o++){var a=i[o];if(U(t,a,r,n))return e.delete(a),!0}return!1}function q(e){switch(o(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(l(e))return!1}return!0}function $(e,t,r){var n=q(r);return null!=n?n:t.has(n)&&!e.has(n)}function Z(e,t,r,n,i){var o=q(r);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!U(n,a,!1,i))&&!e.has(o)&&U(n,a,!1,i)}function G(e,t,r,n,i,o){for(var a=s(e),c=0;c<a.length;c++){var u=a[c];if(U(r,u,i,o)&&U(n,t.get(u),i,o))return e.delete(u),!0}return!1}e.exports={isDeepEqual:function(e,t){return U(e,t,!1)},isDeepStrictEqual:function(e,t){return U(e,t,!0)}}},7526:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,o=s(e),a=o[0],c=o[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,a,c)),f=0,l=c>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===c&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[f++]=255&t),1===c&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(c(e,s,s+a>u?u:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},4829:(e,t,r)=>{var n=r(8287).Buffer,i=r(8320).Duplex;function o(e){if(!(this instanceof o))return new o(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else n.isBuffer(e)?this.append(e):Array.isArray(e)&&e.forEach(function(e){n.isBuffer(e)&&this.append(e)}.bind(this));i.call(this)}r(537).inherits(o,i),o.prototype._offset=function(e){for(var t,r=0,n=0;n<this._bufs.length;n++){if(e<(t=r+this._bufs[n].length))return[n,e-r];r=t}},o.prototype.append=function(e){return this._bufs.push(n.isBuffer(e)?e:new n(e)),this.length+=e.length,this},o.prototype._write=function(e,t,r){this.append(e),r&&r()},o.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},o.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},o.prototype.get=function(e){return this.slice(e,e+1)[0]},o.prototype.slice=function(e,t){return this.copy(null,0,e,t)},o.prototype.copy=function(e,t,r,i){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof i||i>this.length)&&(i=this.length),r>=this.length)return e||new n(0);if(i<=0)return e||new n(0);var o,a,s=!!e,c=this._offset(r),u=i-r,f=u,l=s&&t||0,h=c[1];if(0===r&&i==this.length){if(!s)return n.concat(this._bufs);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,l),l+=this._bufs[a].length;return e}if(f<=this._bufs[c[0]].length-h)return s?this._bufs[c[0]].copy(e,t,h,h+f):this._bufs[c[0]].slice(h,h+f);for(s||(e=new n(u)),a=c[0];a<this._bufs.length;a++){if(!(f>(o=this._bufs[a].length-h))){this._bufs[a].copy(e,l,h,h+f);break}this._bufs[a].copy(e,l,h),l+=o,f-=o,h&&(h=0)}return e},o.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},o.prototype.consume=function(e){for(;this._bufs.length;){if(!(e>this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){for(var e=0,t=new o;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)!function(t){o.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}}(t)}(),e.exports=o},5240:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(1438),a=r(626);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},186:(e,t,r)=>{e.exports=o;var n=r(9816),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},1438:(e,t,r)=>{e.exports=f;var n=r(4634),i=r(8287).Buffer;f.ReadableState=u;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);function u(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(5641).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new u(e,this),this.readable=!0,s.call(this)}function l(e,t,r,n,o){var a=function(e,t){var r=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?d(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(6698),c.inherits(f,s),f.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),l(this,r,e,t,!1)},f.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){a||(a=r(5641).I),this._readableState.decoder=new a(e),this._readableState.encoding=e};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){g(e)})):g(e))}function g(e){e.emit("readable")}function y(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(o.listenerCount(e,"data")>0&&b(e));r.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",(function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&w(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(n,t)),null===(r=e>0?v(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?f:c;function s(e){e===r&&f()}function c(){e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(r);function f(){e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function l(t){d(),e.removeListener("error",l),0===o.listenerCount(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),d()}function p(){e.removeListener("close",h),d()}function d(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(l):e._events.error=[l,e._events.error]:e.on("error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(this.on("readable",m),i.flowing=!0,process.nextTick((function(){y(r)}))),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this):this.read(0))}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){b(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},f._fromList=v},9816:(e,t,r)=>{e.exports=a;var n=r(5240),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},626:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){i(n)})):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,0,n,t,i);else{var o=l(0,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(u(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(5240);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&h(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var r=l(0,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,i){var o=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){i(a)})),o=!1}return o}(this,i,e,r)&&(o=function(e,t,r,i,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new n(t,r)),t}(t,r,i),n.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new a(r,i,o)):u(e,t,s,r,i,o),c}(this,i,e,t,r)),o},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.ending||n.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},8320:(e,t,r)=>{var n=r(8310);(t=e.exports=r(1438)).Stream=n,t.Readable=t,t.Writable=r(626),t.Duplex=r(5240),t.Transform=r(9816),t.PassThrough=r(186),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},5641:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},7713:(e,t,r)=>{var n=r(2963),i=r(9043),o=r(1891),a=i("level-filesystem",{db:n});e.exports=o(a)},5974:(e,t,r)=>{"use strict";var n=r(8287).Buffer,i=r(4148),o=r(4442),a=r(8411),s=r(1447),c=r(9681);for(var u in c)t[u]=c[u];function f(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7,f.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||s.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},f.prototype.write=function(e,t,r,n,i,o,a){return this._write(!0,e,t,r,n,i,o,a)},f.prototype.writeSync=function(e,t,r,n,i,o,a){return this._write(!1,e,t,r,n,i,o,a)},f.prototype._write=function(e,r,o,a,s,c,u,f){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===r,"must provide flush value"),this.write_in_progress=!0,r!==t.Z_NO_FLUSH&&r!==t.Z_PARTIAL_FLUSH&&r!==t.Z_SYNC_FLUSH&&r!==t.Z_FULL_FLUSH&&r!==t.Z_FINISH&&r!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==o&&(o=n.alloc(0),s=0,a=0),this.strm.avail_in=s,this.strm.input=o,this.strm.next_in=a,this.strm.avail_out=f,this.strm.output=c,this.strm.next_out=u,this.flush=r,!e)return this._process(),this._checkError()?this._afterSync():void 0;var l=this;return process.nextTick((function(){l._process(),l._after()})),this},f.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},f.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=s.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=s.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=s.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=s.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},f.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},f.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},f.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},f.prototype.init=function(e,r,n,o,a){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(r>=-1&&r<=9,"invalid compression level"),i(n>=1&&n<=9,"invalid memlevel"),i(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,n,o,a),this._setDictionary()},f.prototype.params=function(){throw new Error("deflateParams Not supported")},f.prototype.reset=function(){this._reset(),this._setDictionary()},f.prototype._init=function(e,r,n,i,c){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=s.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=c,this.write_in_progress=!1,this.init_done=!0},f.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},f.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=a.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=s.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=f},8559:(e,t,r)=>{"use strict";var n=r(8287).Buffer,i=r(8310).Transform,o=r(5974),a=r(537),s=r(4148).ok,c=r(8287).kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+c.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(o),l=0;l<f.length;l++){var h=f[l];h.match(/^Z/)&&Object.defineProperty(t,h,{enumerable:!0,value:o[h],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(p),g=0;g<d.length;g++){var y=d[g];p[p[y]]=y}function m(e,t,r){var i=[],o=0;function a(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",a)}function s(){var t,a=null;o>=c?a=new RangeError(u):t=n.concat(i,o),i=[],e.close(),r(a,t)}e.on("error",(function(t){e.removeListener("end",s),e.removeListener("readable",a),r(t)})),e.on("end",s),e.end(t),a()}function b(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function v(e){if(!(this instanceof v))return new v(e);R.call(this,e,o.DEFLATE)}function w(e){if(!(this instanceof w))return new w(e);R.call(this,e,o.INFLATE)}function _(e){if(!(this instanceof _))return new _(e);R.call(this,e,o.GZIP)}function E(e){if(!(this instanceof E))return new E(e);R.call(this,e,o.GUNZIP)}function k(e){if(!(this instanceof k))return new k(e);R.call(this,e,o.DEFLATERAW)}function x(e){if(!(this instanceof x))return new x(e);R.call(this,e,o.INFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);R.call(this,e,o.UNZIP)}function O(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function R(e,r){var a=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!O(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!O(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var s=this;this._hadError=!1,this._handle.onerror=function(e,r){A(s),s._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],s.emit("error",n)};var c=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(c=e.level);var u=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(u=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,c,e.memLevel||t.Z_DEFAULT_MEMLEVEL,u,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=c,this._strategy=u,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!a._handle},configurable:!0,enumerable:!0})}function A(e,t){t&&process.nextTick(t),e._handle&&(e._handle.close(),e._handle=null)}function j(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),t.Deflate=v,t.Inflate=w,t.Gzip=_,t.Gunzip=E,t.DeflateRaw=k,t.InflateRaw=x,t.Unzip=S,t.createDeflate=function(e){return new v(e)},t.createInflate=function(e){return new w(e)},t.createDeflateRaw=function(e){return new k(e)},t.createInflateRaw=function(e){return new x(e)},t.createGzip=function(e){return new _(e)},t.createGunzip=function(e){return new E(e)},t.createUnzip=function(e){return new S(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new v(t),e,r)},t.deflateSync=function(e,t){return b(new v(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new _(t),e,r)},t.gzipSync=function(e,t){return b(new _(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new k(t),e,r)},t.deflateRawSync=function(e,t){return b(new k(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new S(t),e,r)},t.unzipSync=function(e,t){return b(new S(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new w(t),e,r)},t.inflateSync=function(e,t){return b(new w(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new E(t),e,r)},t.gunzipSync=function(e,t){return b(new E(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),m(new x(t),e,r)},t.inflateRawSync=function(e,t){return b(new x(t),e)},a.inherits(R,i),R.prototype.params=function(e,r,n){if(e<t.Z_MIN_LEVEL||e>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+e);if(r!=t.Z_FILTERED&&r!=t.Z_HUFFMAN_ONLY&&r!=t.Z_RLE&&r!=t.Z_FIXED&&r!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==e||this._strategy!==r){var i=this;this.flush(o.Z_SYNC_FLUSH,(function(){s(i._handle,"zlib binding closed"),i._handle.params(e,r),i._hadError||(i._level=e,i._strategy=r,n&&n())}))}else process.nextTick(n)},R.prototype.reset=function(){return s(this._handle,"zlib binding closed"),this._handle.reset()},R.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},R.prototype.flush=function(e,t){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!t)&&(t=e,e=o.Z_FULL_FLUSH),i.ended?t&&process.nextTick(t):i.ending?t&&this.once("end",t):i.needDrain?t&&this.once("drain",(function(){return r.flush(e,t)})):(this._flushFlag=e,this.write(n.alloc(0),"",t))},R.prototype.close=function(e){A(this,e),process.nextTick(j,this)},R.prototype._transform=function(e,t,r){var i,a=this._writableState,s=(a.ending||a.ended)&&(!e||a.length===e.length);return null===e||n.isBuffer(e)?this._handle?(s?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=a.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},R.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,a=0,f=this,l="function"==typeof r;if(!l){var h,p=[],d=0;this.on("error",(function(e){h=e})),s(this._handle,"zlib binding closed");do{var g=this._handle.writeSync(t,e,a,i,this._buffer,this._offset,o)}while(!this._hadError&&b(g[0],g[1]));if(this._hadError)throw h;if(d>=c)throw A(this),new RangeError(u);var y=n.concat(p,d);return A(this),y}s(this._handle,"zlib binding closed");var m=this._handle.write(t,e,a,i,this._buffer,this._offset,o);function b(c,u){if(this&&(this.buffer=null,this.callback=null),!f._hadError){var h=o-u;if(s(h>=0,"have should not go down"),h>0){var g=f._buffer.slice(f._offset,f._offset+h);f._offset+=h,l?f.push(g):(p.push(g),d+=g.length)}if((0===u||f._offset>=f._chunkSize)&&(o=f._chunkSize,f._offset=0,f._buffer=n.allocUnsafe(f._chunkSize)),0===u){if(a+=i-c,i=c,!l)return!0;var y=f._handle.write(t,e,a,i,f._buffer,f._offset,f._chunkSize);return y.callback=b,void(y.buffer=e)}if(!l)return!1;r()}}m.buffer=e,m.callback=b},a.inherits(v,R),a.inherits(w,R),a.inherits(_,R),a.inherits(E,R),a.inherits(k,R),a.inherits(x,R),a.inherits(S,R)},2746:(e,t,r)=>{var n=r(8287).Buffer,i=Object.prototype.toString,o=void 0!==n&&"function"==typeof n.alloc&&"function"==typeof n.allocUnsafe&&"function"==typeof n.from;e.exports=function(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===i.call(a).slice(8,-1)?function(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===r)r=i;else if((r>>>=0)>i)throw new RangeError("'length' is out of bounds");return o?n.from(e.slice(t,t+r)):new n(new Uint8Array(e.slice(t,t+r)))}(e,t,r):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return o?n.from(e,t):new n(e,t)}(e,t):o?n.from(e):new n(e);var a}},8287:(e,t,r)=>{"use strict";const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=s(r);const i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);const i=function(e){if(c.isBuffer(e)){const t=0|d(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return f(e),s(e<0?0:0|d(e))}function h(e){const t=e.length<0?0:0|d(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function p(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function d(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(i)return n?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function y(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return j(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function b(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){let o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===c)return n*a}else-1!==n&&(o-=o-n),n=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){let r=!0;for(let n=0;n<c;n++)if(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return-1}function w(e,t,r,n){r=Number(r)||0;const i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=t.length;let a;for(n>o/2&&(n=o/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(Y(n))return a;e[r+a]=n}return a}function _(e,t,r,n){return H(G(t,e.length-r),e,r,n)}function E(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return H(V(t),e,r,n)}function x(e,t,r,n){return H(function(e,t){let r,n,i;const o=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function O(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(o=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){const t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=R));return r}(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return f(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let i=0;for(r=0;r<e.length;++r){let t=e[r];if(K(t,Uint8Array))i+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,i){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(o,a),u=this.slice(n,i),f=e.slice(t,r);for(let e=0;e<s;++e)if(u[e]!==f[e]){o=u[e],a=f[e];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return b(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return b(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function j(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=J[e[n]];return i}function I(e,t,r){const n=e.slice(t,r);let i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}function L(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function M(e,t,r,n,i){W(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function N(e,t,r,n,i){W(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function P(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=X((function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||$(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X((function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let i=r-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X((function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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),e.length-t<n-r&&(n=e.length-t+r);const i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{const o=c.isBuffer(e)?e:c.from(e,n),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};const U={};function F(e,t,r){U[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r,n,i,o){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let i;throw i=o>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||$(t,e.length-(r+1))}(n,i,o)}function q(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function $(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function G(e,t){let r;t=t||1/0;const n=e.length;let i=null;const o=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function V(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const J=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},8075:(e,t,r)=>{"use strict";var n=r(453),i=r(487),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},487:(e,t,r)=>{"use strict";var n=r(6743),i=r(453),o=r(6897),a=r(9675),s=i("%Function.prototype.apply%"),c=i("%Function.prototype.call%"),u=i("%Reflect.apply%",!0)||n.call(c,s),f=r(655),l=i("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=u(n,c,arguments);return o(t,1+l(0,e.length-(arguments.length-1)),!0)};var h=function(){return u(n,s,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h},1779:(e,t,r)=>{"use strict";var n=r(8287).Buffer;function i(e){return Object.prototype.toString.call(e)}function o(e,t,r,o){var a=[],s=[],c=void 0!==n;return void 0===t&&(t=!0),void 0===r&&(r=1/0),function e(r,u){if(null===r)return null;if(0==u)return r;var f,l,h,p,d;if("object"!=typeof r)return r;if(d=r,Array.isArray(d)||"object"==typeof d&&"[object Array]"===i(d))f=[];else if("object"==typeof(p=r)&&"[object RegExp]"===i(p))f=new RegExp(r.source,function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}(r)),r.lastIndex&&(f.lastIndex=r.lastIndex);else if("object"==typeof(h=r)&&"[object Date]"===i(h))f=new Date(r.getTime());else{if(c&&n.isBuffer(r))return f=new n(r.length),r.copy(f),f;void 0===o?(l=Object.getPrototypeOf(r),f=Object.create(l)):(f=Object.create(o),l=o)}if(t){var g=a.indexOf(r);if(-1!=g)return s[g];a.push(r),s.push(f)}for(var y in r){var m;l&&(m=Object.getOwnPropertyDescriptor(l,y)),m&&null==m.set||(f[y]=e(r[y],u-1))}return f}(e,r)}e.exports=o,o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t}},7520:(e,t,r)=>{var n=r(8287).Buffer,i=r(3050).Writable,o=r(6698),a=r(2746);if("undefined"==typeof Uint8Array)var s=r(9656).SE;else s=Uint8Array;function c(e,t){if(!(this instanceof c))return new c(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var r=e.encoding,n=!1;r?"u8"!==(r=String(r).toLowerCase())&&"uint8"!==r||(r="uint8array"):n=!0,i.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=n,t&&this.on("finish",(function(){t(this.getBody())})),this.body=[]}function u(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}e.exports=c,o(c,i),c.prototype._write=function(e,t,r){this.body.push(e),r()},c.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return n.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},c.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++)t.push.apply(t,e[r]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];"string"==typeof i||n.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return t=n.isBuffer(e[0])?(t=n.concat(t)).toString("utf8"):t.join("")}(this.body):"buffer"===this.encoding?function(e){for(var t=[],r=0;r<e.length;r++){var i=e[r];n.isBuffer(i)?t.push(i):u(i)?t.push(a(i)):t.push(a(String(i)))}return n.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,r=0;r<e.length;r++)"string"==typeof e[r]&&(e[r]=a(e[r])),t+=e[r].length;for(var n=new s(t),i=(r=0,0);r<e.length;r++)for(var o=e[r],c=0;c<o.length;c++)n[i++]=o[c];return n}(this.body):this.body):[]},Array.isArray},1097:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},4935:(e,t,r)=>{"use strict";var n=r(3225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(5622));o.inherits=r(6698);var a=r(4053),s=r(5509);o.inherits(l,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var f=c[u];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},4507:(e,t,r)=>{"use strict";e.exports=o;var n=r(1657),i=Object.create(r(5622));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},4053:(e,t,r)=>{"use strict";var n=r(3225);e.exports=b;var i,o=r(1097);b.ReadableState=m,r(7007).EventEmitter;var a=function(e,t){return e.listeners(t).length},s=r(8010),c=r(5386).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=Object.create(r(5622));f.inherits=r(6698);var l=r(4385),h=void 0;h=l&&l.debuglog?l.debuglog("stream"):function(){};var p,d=r(3005),g=r(7353);f.inherits(b,s);var y=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var n=t instanceof(i=i||r(4935));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(7650).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(4935),!(this instanceof b))return new b(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function v(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):S(e,a)):w(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),S(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},b.prototype.unshift=function(e){return v(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return p||(p=r(7650).I),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var _=8388608;function E(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),j(e)}function S(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(O,e,t))}function O(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function R(e){h("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function B(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}b.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):k(this),null;if(0===(e=E(e,t))&&t.ended)return 0===t.length&&I(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=E(r,t))),null===(n=e>0?T(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&I(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===process.stdout||e===process.stderr?m:c;function c(){h("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",(function t(n,o){h("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",p),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",u);var f=!1,l=!1;function p(t){h("ondata"),l=!1,!1!==e.write(t)||l||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==B(i.pipes,e))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++,l=!0),r.pause())}function d(t){h("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),m()}function y(){h("onfinish"),e.removeListener("close",g),m()}function m(){h("unpipe"),r.unpipe(e)}return r.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",g),e.once("finish",y),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=B(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},b.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&k(this):n.nextTick(R,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(A,e,t))}(this,e)),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=T},1657:(e,t,r)=>{"use strict";e.exports=a;var n=r(4935),i=Object.create(r(5622));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},5509:(e,t,r)=>{"use strict";var n=r(3225);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=y;var o,a=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;y.WritableState=g;var s=Object.create(r(5622));s.inherits=r(6698);var c,u={deprecate:r(4643)},f=r(8010),l=r(5386).Buffer,h=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=r(7353);function d(){}function g(e,t){o=o||r(4935),e=e||{};var s=t instanceof o;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,u=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(u||0===u)?u:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(E,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),E(e,t))}(e,r,i,t,o);else{var s=w(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?a(b,e,r,s,o):b(e,r,s,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function y(e){if(o=o||r(4935),!(c.call(y,this)||this instanceof o))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function m(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),E(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,m(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(m(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),E(e,t)}))}function E(e,t){var r=w(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}s.inherits(y,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!c.call(this,e)||this===y&&e&&e._writableState instanceof g}})):c=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,l.isBuffer(i)||i instanceof h);return s&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=d),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),n.nextTick(i,a),o=!1),o}(this,o,e,r))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,r)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,E(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}},3005:(e,t,r)=>{"use strict";var n=r(5386).Buffer,i=r(993);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},7353:(e,t,r)=>{"use strict";var n=r(3225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),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)}}},8010:(e,t,r)=>{e.exports=r(7007).EventEmitter},3050:(e,t,r)=>{(t=e.exports=r(4053)).Stream=t,t.Readable=t,t.Writable=r(5509),t.Duplex=r(4935),t.Transform=r(1657),t.PassThrough=r(4507)},5386:(e,t,r)=>{var n=r(8287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},7650:(e,t,r)=>{"use strict";var n=r(5386).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},5622:(e,t,r)=>{function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(8287).Buffer.isBuffer},6841:(e,t,r)=>{var n=r(8287).Buffer,i=r(537),o=r(1831).Z$;function a(e){o.call(this,"string"==typeof e?e:""),this._db=void 0,this._operations=[]}i.inherits(a,o),a.prototype.setDb=function(e){this._db=e,this._operations.forEach((function(t){e[t.method].apply(e,t.args)}))},a.prototype._open=function(e,t){return process.nextTick(t)},a.prototype._operation=function(e,t){if(this._db)return this._db[e].apply(this._db,t);this._operations.push({method:e,args:t})},"put get del batch approximateSize".split(" ").forEach((function(e){a.prototype["_"+e]=function(){this._operation(e,arguments)}})),a.prototype._isBuffer=function(e){return n.isBuffer(e)},a.prototype._iterator=function(){throw new TypeError("not implemented")},e.exports=a},41:(e,t,r)=>{"use strict";var n=r(655),i=r(8068),o=r(9675),a=r(5795);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],l=!!a&&a(e,t);if(n)n(e,t,{configurable:null===u&&l?l.configurable:!u,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===c&&l?l.writable:!c});else{if(!f&&(s||c||u))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},8452:(e,t,r)=>{"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=r(41),c=r(592)(),u=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(i=n)||"[object Function]"!==o.call(i)||!n())return;var i;c?s(e,t,r,!0):s(e,t,r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)u(e,o[s],t[o[s]],r[o[s]])};f.supportsDescriptors=!!c,e.exports=f},2796:(e,t,r)=>{var n=r(9723);function i(e,t,r){t&&"string"!=typeof t&&(t=t.message||t.name),n(this,{type:e,name:e,cause:"string"!=typeof t?t:r,message:t},"ewr")}function o(e,t){Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),i.call(this,"CustomError",e,t)}o.prototype=new Error,e.exports=function(e){var t=function(t,r){return function(e,t,r){var n=function(r,o){i.call(this,t,r,o),"FilesystemError"==t&&(this.code=this.cause.code,this.path=this.cause.path,this.errno=this.cause.errno,this.message=(e.errno[this.cause.errno]?e.errno[this.cause.errno].description:this.cause.message)+(this.cause.path?" ["+this.cause.path+"]":"")),Error.call(this),Error.captureStackTrace&&Error.captureStackTrace(this,n)};return n.prototype=r?new r:new o,n}(e,t,r)};return{CustomError:o,FilesystemError:t("FilesystemError"),createError:t}}},519:(e,t,r)=>{var n=e.exports.all=[{errno:-2,code:"ENOENT",description:"no such file or directory"},{errno:-1,code:"UNKNOWN",description:"unknown error"},{errno:0,code:"OK",description:"success"},{errno:1,code:"EOF",description:"end of file"},{errno:2,code:"EADDRINFO",description:"getaddrinfo error"},{errno:3,code:"EACCES",description:"permission denied"},{errno:4,code:"EAGAIN",description:"resource temporarily unavailable"},{errno:5,code:"EADDRINUSE",description:"address already in use"},{errno:6,code:"EADDRNOTAVAIL",description:"address not available"},{errno:7,code:"EAFNOSUPPORT",description:"address family not supported"},{errno:8,code:"EALREADY",description:"connection already in progress"},{errno:9,code:"EBADF",description:"bad file descriptor"},{errno:10,code:"EBUSY",description:"resource busy or locked"},{errno:11,code:"ECONNABORTED",description:"software caused connection abort"},{errno:12,code:"ECONNREFUSED",description:"connection refused"},{errno:13,code:"ECONNRESET",description:"connection reset by peer"},{errno:14,code:"EDESTADDRREQ",description:"destination address required"},{errno:15,code:"EFAULT",description:"bad address in system call argument"},{errno:16,code:"EHOSTUNREACH",description:"host is unreachable"},{errno:17,code:"EINTR",description:"interrupted system call"},{errno:18,code:"EINVAL",description:"invalid argument"},{errno:19,code:"EISCONN",description:"socket is already connected"},{errno:20,code:"EMFILE",description:"too many open files"},{errno:21,code:"EMSGSIZE",description:"message too long"},{errno:22,code:"ENETDOWN",description:"network is down"},{errno:23,code:"ENETUNREACH",description:"network is unreachable"},{errno:24,code:"ENFILE",description:"file table overflow"},{errno:25,code:"ENOBUFS",description:"no buffer space available"},{errno:26,code:"ENOMEM",description:"not enough memory"},{errno:27,code:"ENOTDIR",description:"not a directory"},{errno:28,code:"EISDIR",description:"illegal operation on a directory"},{errno:29,code:"ENONET",description:"machine is not on the network"},{errno:31,code:"ENOTCONN",description:"socket is not connected"},{errno:32,code:"ENOTSOCK",description:"socket operation on non-socket"},{errno:33,code:"ENOTSUP",description:"operation not supported on socket"},{errno:34,code:"ENOENT",description:"no such file or directory"},{errno:35,code:"ENOSYS",description:"function not implemented"},{errno:36,code:"EPIPE",description:"broken pipe"},{errno:37,code:"EPROTO",description:"protocol error"},{errno:38,code:"EPROTONOSUPPORT",description:"protocol not supported"},{errno:39,code:"EPROTOTYPE",description:"protocol wrong type for socket"},{errno:40,code:"ETIMEDOUT",description:"connection timed out"},{errno:41,code:"ECHARSET",description:"invalid Unicode character"},{errno:42,code:"EAIFAMNOSUPPORT",description:"address family for hostname not supported"},{errno:44,code:"EAISERVICE",description:"servname not supported for ai_socktype"},{errno:45,code:"EAISOCKTYPE",description:"ai_socktype not supported"},{errno:46,code:"ESHUTDOWN",description:"cannot send after transport endpoint shutdown"},{errno:47,code:"EEXIST",description:"file already exists"},{errno:48,code:"ESRCH",description:"no such process"},{errno:49,code:"ENAMETOOLONG",description:"name too long"},{errno:50,code:"EPERM",description:"operation not permitted"},{errno:51,code:"ELOOP",description:"too many symbolic links encountered"},{errno:52,code:"EXDEV",description:"cross-device link not permitted"},{errno:53,code:"ENOTEMPTY",description:"directory not empty"},{errno:54,code:"ENOSPC",description:"no space left on device"},{errno:55,code:"EIO",description:"i/o error"},{errno:56,code:"EROFS",description:"read-only file system"},{errno:57,code:"ENODEV",description:"no such device"},{errno:58,code:"ESPIPE",description:"invalid seek"},{errno:59,code:"ECANCELED",description:"operation canceled"}];e.exports.errno={},e.exports.code={},n.forEach((function(t){e.exports.errno[t.errno]=t,e.exports.code[t.code]=t})),e.exports.custom=r(2796)(e.exports),e.exports.create=e.exports.custom.createError},655:(e,t,r)=>{"use strict";var n=r(453)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},1237:e=>{"use strict";e.exports=EvalError},9383:e=>{"use strict";e.exports=Error},9290:e=>{"use strict";e.exports=RangeError},9538:e=>{"use strict";e.exports=ReferenceError},8068:e=>{"use strict";e.exports=SyntaxError},9675:e=>{"use strict";e.exports=TypeError},5345:e=>{"use strict";e.exports=URIError},7007:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&g(e,"error",t,{once:!0})}(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var i,o,a,u;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=c(e))>0&&a.length>i&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,u=f,console&&console.warn&&console.warn(u)}return e}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(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):d(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,f=d(c,u);for(r=0;r<u;++r)n(f[r],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2682:(e,t,r)=>{"use strict";var n=r(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),"[object Array]"===i.call(e)?function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a):"string"==typeof e?function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)}(e,t,a):function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))}(e,t,a)}},7593:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(i,e[s],s,e)}},9353:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(e,t){for(var r=[],n=1,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r}(arguments),s=r(0,i.length-a.length),c=[],u=0;u<s;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=",");return r}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var t=i.apply(this,n(a,arguments));return Object(t)===t?t:this}return i.apply(e,n(a,arguments))})),i.prototype){var f=function(){};f.prototype=i.prototype,o.prototype=new f,f.prototype=null}return o}},6743:(e,t,r)=>{"use strict";var n=r(9353);e.exports=Function.prototype.bind||n},4837:(e,t,r)=>{var n=r(8287).Buffer,i=r(2602),o=r(3238),a=r(8688),s=new n(0),c=function(){},u=function(e){return"function"==typeof e?e:function(t){t(null,e)}},f=function(e,t){var r=!1,n=!1;return e._read=function(){r=!0},e.destroy=function(){n=!0},t((function(t,i){if(t)return e.emit("error",t);var o=function(){for(var t;null!==(t=i.read());)r=!1,e.push(t)};if(i.on("readable",(function(){r&&o()})),i.on("end",(function(){o(),e.push(null)})),i.on("error",(function(t){e.emit("error",t)})),i.on("close",(function(){o(),process.nextTick((function(){e.emit("close")}))})),e._read=function(){r=!0,o()},e.destroy=function(){n||(n=!0,i.destroy&&i.destroy())},n)return n=!1,void e.destroy();r&&o()})),e},l=function(e,t){var r=c,n=!1;return e._write=function(e,t,n){r=n},e.destroy=function(){n=!0},e.write(s),t((function(t,i){if(t)return e.emit("error",t);i.on("close",(function(){e.emit("close")})),i.on("error",(function(t){e.emit("error",t)})),e._write=function(e,t,r){if(e===s)return r();i.write(e,t,r)};var o=e.emit;if(i.on("finish",(function(){o.call(e,"finish")})),e.destroy=function(){n||(n=!0,i.destroy&&i.destroy())},e.emit=function(t){if("finish"!==t)return o.apply(e,arguments);i.end()},n)return n=!1,void e.destroy();r()})),e};t.readable=function(e,r){return 1===arguments.length?t.readable(null,e):(e||(e={}),f(new o(e),u(r)))},t.writable=function(e,r){return 1===arguments.length?t.writable(null,e):(e||(e={}),l(new i(e),u(r)))},t.duplex=function(e,r,n){if(2===arguments.length)return t.duplex(null,e,r);e||(e={});var i=new a(e);return l(i,u(r)),f(i,u(n)),i}},8688:(e,t,r)=>{e.exports=r(8166)},8166:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(5140),a=r(7684);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},5824:(e,t,r)=>{e.exports=o;var n=r(5778),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5140:(e,t,r)=>{e.exports=f;var n=r(4634),i=r(8287).Buffer;f.ReadableState=u;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);function u(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(5019).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new u(e,this),this.readable=!0,s.call(this)}function l(e,t,r,n,o){var a=function(e,t){var r=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?d(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(6698),c.inherits(f,s),f.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),l(this,r,e,t,!1)},f.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){a||(a=r(5019).I),this._readableState.decoder=new a(e),this._readableState.encoding=e};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){g(e)})):g(e))}function g(e){e.emit("readable")}function y(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(o.listenerCount(e,"data")>0&&b(e));r.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",(function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&w(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(n,t)),null===(r=e>0?v(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?f:c;function s(e){e===r&&f()}function c(){e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(r);function f(){e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function l(t){d(),e.removeListener("error",l),0===o.listenerCount(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),d()}function p(){e.removeListener("close",h),d()}function d(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(l):e._events.error=[l,e._events.error]:e.on("error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(this.on("readable",m),i.flowing=!0,process.nextTick((function(){y(r)}))),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this):this.read(0))}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){b(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},f._fromList=v},5778:(e,t,r)=>{e.exports=a;var n=r(8166),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},7684:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){i(n)})):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,0,n,t,i);else{var o=l(0,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(u(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(8166);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&h(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var r=l(0,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,i){var o=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){i(a)})),o=!1}return o}(this,i,e,r)&&(o=function(e,t,r,i,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new n(t,r)),t}(t,r,i),n.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new a(r,i,o)):u(e,t,s,r,i,o),c}(this,i,e,t,r)),o},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.ending||n.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},3238:(e,t,r)=>{var n=r(8310);(t=e.exports=r(5140)).Stream=n,t.Readable=t,t.Writable=r(7684),t.Duplex=r(8166),t.Transform=r(5778),t.PassThrough=r(5824),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},2602:(e,t,r)=>{e.exports=r(7684)},5019:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},453:(e,t,r)=>{"use strict";var n,i=r(9383),o=r(1237),a=r(9290),s=r(9538),c=r(8068),u=r(9675),f=r(5345),l=Function,h=function(e){try{return l('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}var d=function(){throw new u},g=p?function(){try{return d}catch(e){try{return p(arguments,"callee").get}catch(e){return d}}}():d,y=r(4039)(),m=r(24)(),b=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),v={},w="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,_={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":y&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%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%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&y&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&y&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&b?b(""[Symbol.iterator]()):n,"%Symbol%":y?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":g,"%TypedArray%":w,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(e){var E=b(b(e));_["%Error.prototype%"]=E}var k=function e(t){var r;if("%AsyncFunction%"===t)r=h("async function () {}");else if("%GeneratorFunction%"===t)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=h("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&b&&(r=b(i.prototype))}return _[t]=r,r},x={__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"]},S=r(6743),O=r(9957),R=S.call(Function.call,Array.prototype.concat),A=S.call(Function.apply,Array.prototype.splice),j=S.call(Function.call,String.prototype.replace),T=S.call(Function.call,String.prototype.slice),I=S.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,M=function(e,t){var r,n=e;if(O(x,n)&&(n="%"+(r=x[n])[0]+"%"),O(_,n)){var i=_[n];if(i===v&&(i=k(n)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=T(e,0,1),r=T(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,L,(function(e,t,r,i){n[n.length]=r?j(i,B,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=M("%"+n+"%",t),o=i.name,a=i.value,s=!1,f=i.alias;f&&(n=f[0],A(r,R([0,1],f)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],g=T(d,0,1),y=T(d,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new c("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),O(_,o="%"+(n+="."+d)+"%"))a=_[o];else if(null!=a){if(!(d in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(p&&l+1>=r.length){var m=p(a,d);a=(h=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[d]}else h=O(a,d),a=a[d];h&&!s&&(_[o]=a)}}return a}},5795:(e,t,r)=>{"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},592:(e,t,r)=>{"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},24:e=>{"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof r)}},4039:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9092:(e,t,r)=>{"use strict";var n=r(1333);e.exports=function(){return n()&&!!Symbol.toStringTag}},9957:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(6743);e.exports=o.call(n,i)},196:function(e,t,r){var n,i;!function(o,a,s){"use strict";n=function(){var e=function(e){throw e},t=function(){},r={storeName:"Store",storePrefix:"IDBWrapper-",dbVersion:1,keyPath:"id",autoIncrement:!0,onStoreReady:function(){},onError:e,indexes:[],implementationPreference:["indexedDB","webkitIndexedDB","mozIndexedDB","shimIndexedDB"]},n=function(e,t){for(var n in void 0===t&&"function"==typeof e&&(t=e),"[object Object]"!=Object.prototype.toString.call(e)&&(e={}),r)this[n]=void 0!==e[n]?e[n]:r[n];this.dbName=this.storePrefix+this.storeName,this.dbVersion=parseInt(this.dbVersion,10)||1,t&&(this.onStoreReady=t);var i="object"==typeof window?window:self,o=this.implementationPreference.filter((function(e){return e in i}));this.implementation=o[0],this.idb=i[this.implementation],this.keyRange=i.IDBKeyRange||i.webkitIDBKeyRange||i.mozIDBKeyRange,this.consts={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange",NEXT:"next",NEXT_NO_DUPLICATE:"nextunique",PREV:"prev",PREV_NO_DUPLICATE:"prevunique"},this.openDB()},i={constructor:n,version:"1.7.2",db:null,dbName:null,dbVersion:null,store:null,storeName:null,storePrefix:null,keyPath:null,autoIncrement:null,indexes:null,implementationPreference:null,implementation:"",onStoreReady:null,onError:null,_insertIdCount:0,openDB:function(){var e=this.idb.open(this.dbName,this.dbVersion),t=!1;e.onerror=function(e){if(function(e){return"error"in e.target?"VersionError"==e.target.error.name:"errorCode"in e.target&&12==e.target.errorCode}(e))this.onError(new Error("The version number provided is lower than the existing one."));else{var t;if(e.target.error)t=e.target.error;else{var r="IndexedDB unknown error occurred when opening DB "+this.dbName+" version "+this.dbVersion;"errorCode"in e.target&&(r+=" with error code "+e.target.errorCode),t=new Error(r)}this.onError(t)}}.bind(this),e.onsuccess=function(e){if(!t)if(this.db)this.onStoreReady();else if(this.db=e.target.result,"string"!=typeof this.db.version)if(this.db.objectStoreNames.contains(this.storeName)){var r=this.db.transaction([this.storeName],this.consts.READ_ONLY);this.store=r.objectStore(this.storeName);var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(!r)return t=!0,void this.onError(new Error("Cannot create index: No index name given."));if(this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(t=!0,this.onError(new Error('Cannot modify index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),n.splice(n.indexOf(r),1)}else t=!0,this.onError(new Error('Cannot create new index "'+r+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))}),this),n.length&&(t=!0,this.onError(new Error('Cannot delete index(es) "'+n.toString()+'" for current version. Please bump version number to '+(this.dbVersion+1)+"."))),t||this.onStoreReady()}else this.onError(new Error("Object store couldn't be created."));else this.onError(new Error("The IndexedDB implementation in this browser is outdated. Please upgrade your browser."))}.bind(this),e.onupgradeneeded=function(e){if(this.db=e.target.result,this.db.objectStoreNames.contains(this.storeName))this.store=e.target.transaction.objectStore(this.storeName);else{var r={autoIncrement:this.autoIncrement};null!==this.keyPath&&(r.keyPath=this.keyPath),this.store=this.db.createObjectStore(this.storeName,r)}var n=Array.prototype.slice.call(this.getIndexList());this.indexes.forEach((function(e){var r=e.name;if(r||(t=!0,this.onError(new Error("Cannot create index: No index name given."))),this.normalizeIndexData(e),this.hasIndex(r)){var i=this.store.index(r);this.indexComplies(i,e)||(this.store.deleteIndex(r),this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})),n.splice(n.indexOf(r),1)}else this.store.createIndex(r,e.keyPath,{unique:e.unique,multiEntry:e.multiEntry})}),this),n.length&&n.forEach((function(e){this.store.deleteIndex(e)}),this)}.bind(this)},deleteDatabase:function(e,t){if(this.idb.deleteDatabase){this.db.close();var r=this.idb.deleteDatabase(this.dbName);r.onsuccess=e,r.onerror=t}else t(new Error("Browser does not support IndexedDB deleteDatabase!"))},put:function(r,n,i,o){null!==this.keyPath&&(o=i,i=n,n=r),o||(o=e),i||(i=t);var a,s=!1,c=null,u=this.db.transaction([this.storeName],this.consts.READ_WRITE);return u.oncomplete=function(){(s?i:o)(c)},u.onabort=o,u.onerror=o,null!==this.keyPath?(this._addIdPropertyIfNeeded(n),a=u.objectStore(this.storeName).put(n)):a=u.objectStore(this.storeName).put(n,r),a.onsuccess=function(e){s=!0,c=e.target.result},a.onerror=o,u},get:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).get(r);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},remove:function(r,n,i){i||(i=e),n||(n=t);var o=!1,a=null,s=this.db.transaction([this.storeName],this.consts.READ_WRITE);s.oncomplete=function(){(o?n:i)(a)},s.onabort=i,s.onerror=i;var c=s.objectStore(this.storeName).delete(r);return c.onsuccess=function(e){o=!0,a=e.target.result},c.onerror=i,s},batch:function(r,n,i){if(i||(i=e),n||(n=t),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("dataArray argument must be of type Array."));else if(0===r.length)return n(!0);var o=r.length,a=!1,s=!1,c=this.db.transaction([this.storeName],this.consts.READ_WRITE);c.oncomplete=function(){(s?n:i)(s)},c.onabort=i,c.onerror=i;var u=function(){0!=--o||a||(a=!0,s=!0)};return r.forEach((function(e){var t=e.type,r=e.key,n=e.value,o=function(e){c.abort(),a||(a=!0,i(e,t,r))};if("remove"==t){var s=c.objectStore(this.storeName).delete(r);s.onsuccess=u,s.onerror=o}else if("put"==t){var f;null!==this.keyPath?(this._addIdPropertyIfNeeded(n),f=c.objectStore(this.storeName).put(n)):f=c.objectStore(this.storeName).put(n,r),f.onsuccess=u,f.onerror=o}}),this),c},putBatch:function(e,t,r){var n=e.map((function(e){return{type:"put",value:e}}));return this.batch(n,t,r)},upsertBatch:function(r,n,i,o){"function"==typeof n&&(o=i=n,n={}),o||(o=e),i||(i=t),n||(n={}),"[object Array]"!=Object.prototype.toString.call(r)&&o(new Error("dataArray argument must be of type Array."));var a=n.keyField||this.keyPath,s=r.length,c=!1,u=!1,f=0,l=this.db.transaction([this.storeName],this.consts.READ_WRITE);l.oncomplete=function(){u?i(r):o(!1)},l.onabort=o,l.onerror=o;var h=function(e){r[f++][a]=e.target.result,0!=--s||c||(c=!0,u=!0)};return r.forEach((function(e){var t,r=e.key;null!==this.keyPath?(this._addIdPropertyIfNeeded(e),t=l.objectStore(this.storeName).put(e)):t=l.objectStore(this.storeName).put(e,r),t.onsuccess=h,t.onerror=function(e){l.abort(),c||(c=!0,o(e))}}),this),l},removeBatch:function(e,t,r){var n=e.map((function(e){return{type:"remove",key:e}}));return this.batch(n,t,r)},getBatch:function(r,n,i,o){if(i||(i=e),n||(n=t),o||(o="sparse"),"[object Array]"!=Object.prototype.toString.call(r))i(new Error("keyArray argument must be of type Array."));else if(0===r.length)return n([]);var a=[],s=r.length,c=!1,u=null,f=this.db.transaction([this.storeName],this.consts.READ_ONLY);f.oncomplete=function(){(c?n:i)(u)},f.onabort=i,f.onerror=i;var l=function(e){e.target.result||"dense"==o?a.push(e.target.result):"sparse"==o&&a.length++,0==--s&&(c=!0,u=a)};return r.forEach((function(e){var t=f.objectStore(this.storeName).get(e);t.onsuccess=l,t.onerror=function(e){u=e,i(e),f.abort()}}),this),f},getAll:function(r,n){n||(n=e),r||(r=t);var i=this.db.transaction([this.storeName],this.consts.READ_ONLY),o=i.objectStore(this.storeName);return o.getAll?this._getAllNative(i,o,r,n):this._getAllCursor(i,o,r,n),i},_getAllNative:function(e,t,r,n){var i=!1,o=null;e.oncomplete=function(){(i?r:n)(o)},e.onabort=n,e.onerror=n;var a=t.getAll();a.onsuccess=function(e){i=!0,o=e.target.result},a.onerror=n},_getAllCursor:function(e,t,r,n){var i=[],o=!1,a=null;e.oncomplete=function(){(o?r:n)(a)},e.onabort=n,e.onerror=n;var s=t.openCursor();s.onsuccess=function(e){var t=e.target.result;t?(i.push(t.value),t.continue()):(o=!0,a=i)},s.onError=n},clear:function(r,n){n||(n=e),r||(r=t);var i=!1,o=null,a=this.db.transaction([this.storeName],this.consts.READ_WRITE);a.oncomplete=function(){(i?r:n)(o)},a.onabort=n,a.onerror=n;var s=a.objectStore(this.storeName).clear();return s.onsuccess=function(e){i=!0,o=e.target.result},s.onerror=n,a},_addIdPropertyIfNeeded:function(e){void 0===e[this.keyPath]&&(e[this.keyPath]=this._insertIdCount+++Date.now())},getIndexList:function(){return this.store.indexNames},hasIndex:function(e){return this.store.indexNames.contains(e)},normalizeIndexData:function(e){e.keyPath=e.keyPath||e.name,e.unique=!!e.unique,e.multiEntry=!!e.multiEntry},indexComplies:function(e,t){return["keyPath","unique","multiEntry"].every((function(r){if("multiEntry"==r&&void 0===e[r]&&!1===t[r])return!0;if("keyPath"==r&&"[object Array]"==Object.prototype.toString.call(t[r])){var n=t.keyPath,i=e.keyPath;if("string"==typeof i)return n.toString()==i;if("function"!=typeof i.contains&&"function"!=typeof i.indexOf)return!1;if(i.length!==n.length)return!1;for(var o=0,a=n.length;o<a;o++)if(!(i.contains&&i.contains(n[o])||i.indexOf(-1!==n[o])))return!1;return!0}return t[r]==e[r]}))},iterate:function(t,r){var n="desc"==(r=a({index:null,order:"ASC",autoContinue:!0,filterDuplicates:!1,keyRange:null,writeAccess:!1,onEnd:null,onError:e,limit:1/0,offset:0,allowItemRejection:!1},r||{})).order.toLowerCase()?"PREV":"NEXT";r.filterDuplicates&&(n+="_NO_DUPLICATE");var i=!1,o=this.db.transaction([this.storeName],this.consts[r.writeAccess?"READ_WRITE":"READ_ONLY"]),s=o.objectStore(this.storeName);r.index&&(s=s.index(r.index));var c=0;o.oncomplete=function(){i?r.onEnd?r.onEnd():t(null):r.onError(null)},o.onabort=r.onError,o.onerror=r.onError;var u=s.openCursor(r.keyRange,this.consts[n]);return u.onerror=r.onError,u.onsuccess=function(e){var n=e.target.result;if(n)if(r.offset)n.advance(r.offset),r.offset=0;else{var a=t(n.value,n,o);r.allowItemRejection&&!1===a||c++,r.autoContinue&&(c+r.offset<r.limit?n.continue():i=!0)}else i=!0},o},query:function(e,t){var r=[],n=0;return(t=t||{}).autoContinue=!0,t.writeAccess=!1,t.allowItemRejection=!!t.filter,t.onEnd=function(){e(r,n)},this.iterate((function(e){n++;var i=!t.filter||t.filter(e);return!1!==i&&r.push(e),i}),t)},count:function(t,r){var n=(r=a({index:null,keyRange:null},r||{})).onError||e,i=!1,o=null,s=this.db.transaction([this.storeName],this.consts.READ_ONLY);s.oncomplete=function(){(i?t:n)(o)},s.onabort=n,s.onerror=n;var c=s.objectStore(this.storeName);r.index&&(c=c.index(r.index));var u=c.count(r.keyRange);return u.onsuccess=function(e){i=!0,o=e.target.result},u.onError=n,s},makeKeyRange:function(e){var t,r=void 0!==e.lower,n=void 0!==e.upper;switch(!0){case void 0!==e.only:t=this.keyRange.only(e.only);break;case r&&n:t=this.keyRange.bound(e.lower,e.upper,e.excludeLower,e.excludeUpper);break;case r:t=this.keyRange.lowerBound(e.lower,e.excludeLower);break;case n:t=this.keyRange.upperBound(e.upper,e.excludeUpper);break;default:throw new Error('Cannot create KeyRange. Provide one or both of "lower" or "upper" value, or an "only" value.')}return t}},o={};function a(e,t){var r,n;for(r in t)(n=t[r])!==o[r]&&n!==e[r]&&(e[r]=n);return e}return n.prototype=i,n.version=i.version,n},void 0===(i=n.call(t,r,t,e))||(e.exports=i)}()},251:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,f=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<<u)-1,l=f>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+l>=1?h/c:h*Math.pow(2,1-l))*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*c-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+p]=255&a,p+=d,a/=256,u-=8);e[r+p-d]|=128*g}},6698:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},7244:(e,t,r)=>{"use strict";var n=r(9092)(),i=r(8075)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},9600:e=>{"use strict";var t,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i((function(){throw 42}),null,t)}catch(e){e!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=n.call(e);return o.test(t)}catch(e){return!1}},s=function(e){try{return!a(e)&&(n.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var h=document.all;c.call(h)===c.call(document.all)&&(l=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=i?function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{i(e,null,t)}catch(e){if(e!==r)return!1}return!a(e)&&s(e)}:function(e){if(l(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},8184:(e,t,r)=>{"use strict";var n,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=r(9092)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if(void 0===n){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();n=!!t&&c(t)}return c(e)===n}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},4133:(e,t,r)=>{"use strict";var n=r(487),i=r(8452),o=r(3003),a=r(6642),s=r(2464),c=n(a(),Number);i(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},6642:(e,t,r)=>{"use strict";var n=r(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},2464:(e,t,r)=>{"use strict";var n=r(8452),i=r(6642);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5680:(e,t,r)=>{"use strict";var n=r(5767);e.exports=function(e){return!!n(e)}},4634:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},2175:(e,t,r)=>{var n=r(8287).Buffer;e.exports=function(e){return n.isBuffer(e)||/\[object (.+Array|Array.+)\]/.test(Object.prototype.toString.call(e))}},7432:(e,t,r)=>{var n=r(8287).Buffer,i=r(2951),o=r(4675),a=r(4123),s=r(537),c=r(3519),u=new n(0),f={encode:function(e){return"string"==typeof e?e=new n(e):e},decode:function(e){return n.isBuffer(e)?e:new n(e)},buffer:!0,type:"raw"},l=function(){},h=function(e){return e=e.toString(16),"00000000".slice(0,-e.length)+e};e.exports=function(e,t){t||(t={});var r={},p=t.blockSize||65536,d=t.batch||100,g=new n(p);e.put("\0","ignore",l);var y={},m=function(e,t){if(!(this instanceof m))return new m(e,t);t||(t={}),this.name=e,this.blocks=[],this.batch=[],this.bytesWritten=0,this.truncate=!t.append,this.append=t.append,this._shouldInitAppend=this.append&&void 0===t.start,this._destroyed=!1,this._init(t.start||0),i.call(this)};s.inherits(m,i),m.prototype._init=function(e){this.blockIndex=e/p|0,this.blockOffset=e-this.blockIndex*p,this.blockLength=this.blockOffset},m.prototype._flush=function(t){if(!this.batch.length)return t();var r=this.batch[this.batch.length-1].key,n=this.batch;if(this.batch=[],!this.truncate)return e.batch(n,t);this.truncate=!1,this._truncate(n,r,t)},m.prototype._truncate=function(t,r,n){n=c(n);var i=[],o=e.createKeyStream({start:r,end:this.name+"ÿÿ"});o.on("error",n),o.on("data",(function(e){i.push({type:"del",key:e})})),o.on("end",(function(){i.push.apply(i,t),e.batch(i,n)}))},m.prototype._writeBlock=function(t){var r=1===this.blocks.length?this.blocks[0]:n.concat(this.blocks,this.blockLength-this.blockOffset),i=this.blockIndex,o=this.blockOffset,a=this;this.blockOffset=0,this.blockLength=0,this.blockIndex++,this.blocks=[];var s=this.name+"ÿ"+h(i),c=function(e,t,r){return e.length&&a.batch.push({type:"put",key:s,value:e,valueEncoding:f}),!t&&a.batch.length<d?r():a._flush(r)};return!o&&r.length===p||!o&&!this.append?c(r,!1,t):void function(t,r,i,o,a){var s=function(){--y[t].locks||delete y[t]},c=function(e){if(e.locks++,!e.block&&!r)return e.block=i,void a(null,e.block,s);var t,c,u;e.block||(e.block=new n(p)),e.block.length<r+i.length&&(e.block=(t=e.block,c=r+i.length,u=new n(c),t.copy(u),u)),i.copy(e.block,r),!o&&r+i.length<e.block.length&&(e.block=e.block.slice(0,r+i.length)),a(null,e.block,s)};if(y[t])return c(y[t]);e.get(t,{valueEncoding:f},(function(e,r){if(e&&!e.notFound)return a(e);y[t]||(y[t]={locks:0,block:r}),c(y[t])}))}(s,o,r,this.append,(function(e,r,n){if(e)return t(e);c(r,!0,(function(e){n(),t(e)}))}))},m.prototype._initAppend=function(e,t,n){var i=this;this._shouldInitAppend=!1,r.size(this.name,(function(r,o){if(r)return n(r);i._init(o),i._write(e,t,n)}))},m.prototype._write=function(e,t,r){if(!e.length||this._destroyed)return r();if(this._shouldInitAppend)return this._initAppend(e,t,r);var n,i=this,o=p-this.blockLength,a=function(e){return e?r(e):n?i._write(n,t,r):void r()};if(e.length>o&&(n=e.slice(o),e=e.slice(0,o)),this.bytesWritten+=e.length,this.blockLength+=e.length,this.blocks.push(e),e.length<o)return a();this._writeBlock(a)},m.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,process.nextTick(this.emit.bind(this,"close")))},m.prototype.end=function(e){var t=this,r=arguments;e&&"function"!=typeof e&&(this.write(e),e=u),this.write(u,(function(){t._writeBlock((function(e){if(e)return t.emit("error",e);t._flush((function(e){if(e)return t.emit("error",e);i.prototype.end.apply(t,r)}))}))}))};var b=function(t,r){r||(r={});var n=this,i=r.start||0,a=i/p|0,s=i-a*p,c=t+"ÿ"+h(a);this.name=t,this._missing=("number"==typeof r.end?r.end:1/0)-i+1,this._paused=!1,this._destroyed=!1,this._reader=e.createReadStream({start:c,end:t+"ÿÿ",valueEncoding:f});var u=function(e){return c=t+"ÿ"+h(++a),!(!n._missing||(!s||(e=e.slice(s),s=0,e.length))&&(e.length>n._missing&&(e=e.slice(0,n._missing)),n._missing-=e.length,n._pause(!n.push(e)),!n._missing))};this._reader.on("data",(function(e){for(;e.key>c;)if(!u(g))return;u(e.value)})),this._reader.on("error",(function(e){n.emit("error",e)})),this._reader.on("end",(function(){n.push(null)})),o.call(this)};return s.inherits(b,o),b.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._reader.destroy(),process.nextTick(this.emit.bind(this,"close")))},b.prototype._pause=function(e){this._paused!==e&&(this._paused=e,this._paused?this._reader.pause():this._reader.resume())},b.prototype._read=function(){this._pause(!1)},r.remove=function(t,r){r=c(r||l);var n=[],i=e.createKeyStream({start:t+"ÿ",end:t+"ÿÿ"});i.on("error",r),i.on("data",(function(e){n.push({type:"del",key:e})})),i.on("end",(function(){e.batch(n,r)}))},r.size=function(t,r){a.last(e,{start:t+"ÿ",end:t+"ÿÿ",valueEncoding:f},(function(e,n,i){return e&&"range not found"===e.message?r(null,0):e?r(e):n.slice(0,t.length+1)!==t+"ÿ"?r(null,0):void r(null,parseInt(n.toString().slice(t.length+1),16)*p+i.length)}))},r.write=function(e,t,n,i){if("function"==typeof n)return r.write(e,t,null,n);n||(n={}),i||(i=l);var o=r.createWriteStream(e,n);o.on("error",i),o.on("finish",(function(){i()})),o.write(t),o.end()},r.read=function(e,t,i){if("function"==typeof t)return r.read(e,null,t);t||(t={});var o=r.createReadStream(e,t),a=[];o.on("error",i),o.on("data",(function(e){a.push(e)})),o.on("end",(function(){i(null,1===a.length?a[0]:n.concat(a))}))},r.createReadStream=function(e,t){return new b(e,t)},r.createWriteStream=function(e,t){return new m(e,t)},r}},7295:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(5821),a=r(5405);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},5683:(e,t,r)=>{e.exports=o;var n=r(2545),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},5821:(e,t,r)=>{e.exports=l;var n=r(4634),i=r(8287).Buffer;l.ReadableState=f;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);c.inherits=r(6698);var u=r(717);function f(e,t){var n=r(7295),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.highWaterMark=~~this.highWaterMark,this.buffer=[],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.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(554).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function l(e){if(r(7295),!(this instanceof l))return new l(e);this._readableState=new f(e,this),this.readable=!0,s.call(this)}function h(e,t,r,n,i){var o=function(e,t){var r=null;return c.isBuffer(t)||c.isString(t)||c.isNullOrUndefined(t)||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(o)e.emit("error",o);else if(c.isNullOrUndefined(r))t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,g(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else t.endEmitted&&i?(a=new Error("stream.unshift() after end event"),e.emit("error",a)):(!t.decoder||i||n||(r=t.decoder.write(r)),i||(t.reading=!1),t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&g(e)),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(u("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}u=u&&u.debuglog?u.debuglog("stream"):function(){},c.inherits(l,s),l.prototype.push=function(e,t){var r=this._readableState;return c.isString(e)&&!r.objectMode&&(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),h(this,r,e,t,!1)},l.prototype.unshift=function(e){return h(this,this._readableState,e,"",!0)},l.prototype.setEncoding=function(e){return a||(a=r(554).I),this._readableState.decoder=new a(e),this._readableState.encoding=e,this};var p=8388608;function d(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:isNaN(e)||c.isNull(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=p)e=p;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function g(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?process.nextTick((function(){y(e)})):y(e))}function y(e){u("emit readable"),e.emit("readable"),m(e)}function m(e){var t=e._readableState;if(u("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}function b(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function v(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}l.prototype.read=function(e){u("read",e);var t=this._readableState,r=e;if((!c.isNumber(e)||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?v(this):g(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&v(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&u("length less than watermark",i=!0),(t.ended||t.reading)&&u("reading or ended",i=!1),i&&(u("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=d(r,t)),n=e>0?b(e,t):null,c.isNull(n)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&v(this),c.isNull(n)||this.emit("data",n),n},l.prototype._read=function(e){this.emit("error",new Error("not implemented"))},l.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?l:c;function s(e){u("onunpipe"),e===r&&l()}function c(){u("onend"),e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var f=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o.listenerCount(e,"data")&&(t.flowing=!0,m(e))}}(r);function l(){u("cleanup"),e.removeListener("close",d),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",l),r.removeListener("data",h),!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f()}function h(t){u("ondata"),!1===e.write(t)&&(u("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,r.pause())}function p(t){u("onerror",t),y(),e.removeListener("error",p),0===o.listenerCount(e,"error")&&e.emit("error",t)}function d(){e.removeListener("finish",g),y()}function g(){u("onfinish"),e.removeListener("close",d),y()}function y(){u("unpipe"),r.unpipe(e)}return e.on("drain",f),r.on("data",h),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(p):e._events.error=[p,e._events.error]:e.on("error",p),e.once("close",d),e.once("finish",g),e.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),e},l.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},l.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&this.readable){var n=this._readableState;if(!n.readableListening)if(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading)n.length&&g(this);else{var i=this;process.nextTick((function(){u("readable nexttick read 0"),i.read(0)}))}}return r},l.prototype.addListener=l.prototype.on,l.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!0,e.reading||(u("resume read 0"),this.read(0)),function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick((function(){!function(e,t){t.resumeScheduled=!1,e.emit("resume"),m(e),t.flowing&&!t.reading&&e.read(0)}(e,t)})))}(this,e)),this},l.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this},l.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(u("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){u("wrapped data"),t.decoder&&(i=t.decoder.write(i)),i&&(t.objectMode||i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)c.isFunction(e[i])&&c.isUndefined(this[i])&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return function(t,r){for(var i=0,o=t.length;i<o;i++)a=t[i],e.on(a,n.emit.bind(n,a));var a}(["error","close","destroy","pause","resume"]),n._read=function(t){u("wrapped _read",t),r&&(r=!1,e.resume())},n},l._fromList=b},2545:(e,t,r)=>{e.exports=a;var n=r(7295),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var o=n.writecb;if(!o)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,i.isNullOrUndefined(r)||e.push(r),o&&o(t);var a=e._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&e._read(a.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",(function(){i.isFunction(this._flush)?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;i.isNull(t.writechunk)||!t.writecb||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))}},5405:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var n=r(7295),i=(e=e||{}).highWaterMark,o=e.objectMode?16:16384;this.highWaterMark=i||0===i?i:o,this.objectMode=!!e.objectMode,t instanceof n&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){t.pendingcb--,i(n)})):(t.pendingcb--,i(n)),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var o=h(0,r);o||r.corked||r.bufferProcessing||!r.buffer.length||l(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function c(e){var t=r(7295);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),d(e,t)}function l(e,t){if(t.bufferProcessing=!0,e._writev&&t.buffer.length>1){for(var r=[],n=0;n<t.buffer.length;n++)r.push(t.buffer[n].callback);t.pendingcb++,u(e,t,!0,t.length,t.buffer,"",(function(e){for(var n=0;n<r.length;n++)t.pendingcb--,r[n](e)})),t.buffer=[]}else{for(n=0;n<t.buffer.length;n++){var i=t.buffer[n],o=i.chunk,a=i.encoding,s=i.callback,c=t.objectMode?1:o.length;if(u(e,t,!1,c,o,a,s),t.writing){n++;break}}n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}t.bufferProcessing=!1}function h(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function d(e,t){var r=h(0,t);return r&&(0===t.pendingcb?(p(e,t),t.finished=!0,e.emit("finish")):p(e,t)),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var o=this._writableState,s=!1;return i.isFunction(t)&&(r=t,t=null),i.isBuffer(e)?t="buffer":t||(t=o.defaultEncoding),i.isFunction(r)||(r=function(){}),o.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,n){var o=!0;if(!(i.isBuffer(r)||i.isString(r)||i.isNullOrUndefined(r)||t.objectMode)){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){n(a)})),o=!1}return o}(this,o,e,r)&&(o.pendingcb++,s=function(e,t,r,o,s){r=function(e,t,r){return!e.objectMode&&!1!==e.decodeStrings&&i.isString(t)&&(t=new n(t,r)),t}(t,r,o),i.isBuffer(r)&&(o="buffer");var c=t.objectMode?1:r.length;t.length+=c;var f=t.length<t.highWaterMark;return f||(t.needDrain=!0),t.writing||t.corked?t.buffer.push(new a(r,o,s)):u(e,t,!1,c,r,o,s),f}(this,o,e,t,r)),s},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.buffer.length||l(this,e))},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype._writev=null,c.prototype.end=function(e,t,r){var n=this._writableState;i.isFunction(e)?(r=e,e=null,t=null):i.isFunction(t)&&(r=t,t=null),i.isNullOrUndefined(e)||this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,d(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},4675:(e,t,r)=>{(t=e.exports=r(5821)).Stream=r(8310),t.Readable=t,t.Writable=r(5405),t.Duplex=r(7295),t.Transform=r(2545),t.PassThrough=r(5683),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},2951:(e,t,r)=>{e.exports=r(5405)},554:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},8571:(e,t,r)=>{var n=r(519);Object.keys(n.code).forEach((function(e){var r=n.code[e];t[e]=function(t){var n=new Error(e+", "+r.description+(t?" '"+t+"'":""));return n.errno=r.errno,n.code=e,n.path=t,n}}))},1891:(e,t,r)=>{var n=r(8287).Buffer,i=r(4837),o=r(5584),a=r(7432),s=r(4123),c=r(3519),u=r(6788),f=r(8571),l=r(5363),h=r(1218),p=function(e,t,r){process.nextTick((function(){e(t,r)}))},d=function(){};e.exports=function(e,t){var r={};e=o(e);var g=a(e.sublevel("blobs"),t),y=l(e.sublevel("stats")),m=e.sublevel("links"),b=h(),v=[],w=Date.now();r.mkdir=function(e,t,n){if("function"==typeof t)return r.mkdir(e,null,t);t||(t=u(777)),n||(n=d),y.follow(e,(function(e,r,i){return e&&"ENOENT"!==e.code?n(e):r?n(f.EEXIST(i)):void y.put(i,{type:"directory",mode:t,size:4096},b.cb(i,n))}))},r.rmdir=function(e,t){t||(t=d),y.follow(e,(function(e,n,i){if(e)return t(e);r.readdir(i,(function(e,r){return e?t(e):r.length?t(f.ENOTEMPTY(i)):void y.del(i,b.cb(i,t))}))}))},r.readdir=function(e,t){y.follow(e,(function(e,r,n){return e?t(e):r?r.isDirectory()?void y.list(n,t):t(f.ENOTDIR(n)):t(f.ENOENT(n))}))};var _=function(e,t,r){t(e,(function(e,t,n){if(e)return r(e);if(!t.isFile())return r(null,t);var i=t&&t.blob||n;g.size(i,(function(e,n){if(e)return r(e);t.size=n,r(null,t)}))}))};r.stat=function(e,t){_(e,y.follow,t)},r.lstat=function(e,t){_(e,y.get,t)},r.exists=function(e,t){y.follow(e,(function(e){t(!e)}))};var E=function(e,t,r,n){n||(n=d),t(e,(function(e,t,i){if(e)return n(e);y.update(i,{mode:r},b.cb(i,n))}))};r.chmod=function(e,t,r){E(e,y.follow,t,r)},r.lchmod=function(e,t,r){E(e,y.get,t,r)};var k=function(e,t,r,n,i){i||(i=d),t(e,(function(e,t,o){if(e)return i(e);y.update(o,{uid:r,gid:n},b.cb(o,i))}))};return r.chown=function(e,t,r,n){k(e,y.follow,t,r,n)},r.lchown=function(e,t,r,n){k(e,y.get,t,r,n)},r.utimes=function(e,t,r,n){n||(n=d),y.follow(e,(function(e,i,o){if(e)return n(e);var a={};t&&(a.atime=t),r&&(a.mtime=r),y.update(o,a,b.cb(o,n))}))},r.rename=function(e,t,n){n||(n=d),y.follow(e,(function(e,i,o){if(e)return n(e);var a=function(){n=b.cb(t,b.cb(o,n)),y.put(t,i,(function(e){if(e)return n(e);y.del(o,n)}))};y.follow(t,(function(e,t,s){return e&&"ENOENT"!==e.code?n(e):t?i.isDirectory()!==t.isDirectory()?n(f.EISDIR(o)):void(t.isDirectory()?r.readdir(s,(function(e,t){return e?n(e):t.length?n(f.ENOTEMPTY(o)):void a()})):a()):a()}))}))},r.realpath=function(e,t,n){if("function"==typeof t)return r.realpath(e,null,t);y.follow(e,(function(e,t,r){if(e)return n(e);n(null,r)}))},r.writeFile=function(e,t,i,o){if("function"==typeof i)return r.writeFile(e,t,null,i);"string"==typeof i&&(i={encoding:i}),i||(i={}),o||(o=d),n.isBuffer(t)||(t=new n(t,i.encoding||"utf-8"));var a=i.flags||"w";i.append="w"!==a[0],y.follow(e,(function(e,r,n){if(e&&"ENOENT"!==e.code)return o(e);if(r&&r.isDirectory())return o(f.EISDIR(n));if(r&&"x"===a[1])return o(f.EEXIST(n));var s=r&&r.blob||n;y.writable(n,(function(e){if(e)return o(e);g.write(s,t,i,(function(e){if(e)return o(e);y.put(n,{ctime:r&&r.ctime,mtime:new Date,mode:i.mode||u(666),type:"file"},b.cb(n,o))}))}))}))},r.appendFile=function(e,t,n,i){if("function"==typeof n)return r.appendFile(e,t,null,n);"string"==typeof n&&(n={encoding:n}),n||(n={}),n.flags="a",r.writeFile(e,t,n,i)},r.unlink=function(e,t){t||(t=d),y.get(e,(function(e,r,n){if(e)return t(e);if(r.isDirectory())return t(f.EISDIR(n));var i=function(e){s(m,{start:e+"ÿ",end:e+"ÿÿ"},(function(r){if(r)return g.remove(e,t);t()}))};y.del(n,b.cb(n,(function(e){return e?t(e):r.link?(o=r.link.slice(0,r.link.indexOf("ÿ")),void m.del(r.link,(function(e){if(e)return t(e);i(o)}))):void m.del(n+"ÿ",(function(e){if(e)return t(e);i(n)}));var o})))}))},r.readFile=function(e,t,n){if("function"==typeof t)return r.readFile(e,null,t);"string"==typeof t&&(t={encoding:t}),t||(t={}),t.encoding,t.flag,y.follow(e,(function(e,r,i){if(e)return n(e);if(r.isDirectory())return n(f.EISDIR(i));var o=r&&r.blob||i;g.read(o,(function(e,r){if(e)return n(e);n(null,t.encoding?r.toString(t.encoding):r)}))}))},r.createReadStream=function(e,t){t||(t={});var r=!1,n=i.readable((function(i){y.follow(e,(function(e,o,a){if(e)return i(e);if(o.isDirectory())return i(f.EISDIR(a));var s=o&&o.blob||a,c=g.createReadStream(s,t);n.emit("open"),c.on("end",(function(){process.nextTick((function(){r||n.emit("close")}))})),i(null,c)}))}));return n.on("close",(function(){r=!0})),n},r.createWriteStream=function(e,t){t||(t={});var r=t.flags||"w",n=!1,o=t.mode||u(666);t.append="a"===r[0];var a=i.writable((function(i){y.follow(e,(function(e,s,c){if(e&&"ENOENT"!==e.code)return i(e);if(s&&s.isDirectory())return i(f.EISDIR(c));if(s&&"x"===r[1])return i(f.EEXIST(c));var u=s&&s.blob||c;y.writable(u,(function(e){if(e)return i(e);var r={ctime:s?s.ctime:new Date,mtime:new Date,mode:o,type:"file"};y.put(c,r,(function(e){if(e)return i(e);var o=g.createWriteStream(u,t);a.emit("open"),o.on("finish",(function(){r.mtime=new Date,y.put(c,r,(function(){b.change(c),n||a.emit("close")}))})),i(null,o)}))}))}))}));return a.on("close",(function(){n=!0})),a},r.truncate=function(e,t,r){y.follow(e,(function(e,i,o){if(e)return r(e);var a=i&&i.blob||o;g.size(a,(function(e,i){if(e)return r(e);y.writable(o,(function(e){if(e)return r(e);if(r=c(b.cb(o,r)),!t)return g.remove(a,r);var s=g.createWriteStream(a,{start:i<t?t-1:t});s.on("error",r),s.on("finish",r),i<t&&s.write(new n([0])),s.end()}))}))}))},r.watchFile=function(e,t,n){return"function"==typeof t?r.watchFile(e,null,t):b.watch(y.normalize(e),n)},r.unwatchFile=function(e,t){b.unwatch(y.normalize(e),t)},r.watch=function(e,t,n){return"function"==typeof t?r.watch(e,null,t):b.watcher(y.normalize(e),n)},r.notify=function(e){b.on("change",e)},r.open=function(e,t,n,i){if("function"==typeof n)return r.open(e,t,null,n);y.follow(e,(function(e,r,o){if(e&&"ENOENT"!==e.code)return i(e);var a=t[0],s="+"===t[1]||"+"===t[2],c=r&&r.blob||o,l={key:o,blob:c,mode:n||u(666),readable:"r"===a||("w"===a||"a"===a)&&s,writable:"w"===a||"a"===a||"r"===a&&s,append:"a"===a};return"r"===a&&e?i(e):"x"===t[1]&&r?i(f.EEXIST(o)):r&&r.isDirectory()?i(f.EISDIR(o)):void g.size(c,(function(e,t){if(e)return i(e);l.append&&(l.writePos=t),y.writable(o,(function(e){if(e)return i(e);var t=function(e){if(e)return i(e);var t=v.indexOf(null);-1===t&&(t=10+v.push(v.length+10)-1),l.fd=t,v[t]=l,b.change(o),i(null,l.fd)},n=function(e){return e?i(e):r?t():void y.put(c,{ctime:r&&r.ctime,type:"file"},t)};if(!l.append&&l.writable)return g.remove(c,n);n()}))}))}))},r.close=function(e,t){var r=v[e];if(!r)return p(t,f.EBADF());v[e]=null,p(b.cb(r.key,t))},r.write=function(e,t,r,n,i,o){var a=v[e];if(o||(o=d),!a||!a.writable)return p(o,f.EBADF());null===i&&(i=a.writePos||0);var s=t.slice(r,r+n);a.writePos=i+s.length,g.write(a.blob,s,{start:i,append:!0},(function(e){if(e)return o(e);o(null,n,t)}))},r.read=function(e,t,n,i,o,a){var s=v[e];if(a||(a=d),!s||!s.readable)return p(a,f.EBADF());null===o&&(o=r.readPos||0),g.read(s.blob,{start:o,end:o+i-1},(function(e,s){if(e)return a(e);var c=s.slice(0,i);c.copy(t,n),r.readPos=o+c.length,a(null,c.length,t)}))},r.fsync=function(e,t){var r=v[e];if(t||(t=d),!r||!r.writable)return p(t,f.EBADF());p(t)},r.ftruncate=function(e,t,n){var i=v[e];if(n||(n=d),!i)return p(n,f.EBADF());r.truncate(i.blob,t,n)},r.fchown=function(e,t,n,i){var o=v[e];if(i||(i=d),!o)return p(i,f.EBADF());r.chown(o.key,t,n,i)},r.fchmod=function(e,t,n){var i=v[e];if(n||(n=d),!i)return p(n,f.EBADF());r.chmod(i.key,t,n)},r.futimes=function(e,t,n,i){var o=v[e];if(i||(i=d),!o)return p(i,f.EBADF());r.utimes(o.key,t,n,i)},r.fstat=function(e,t){var n=v[e];if(!n)return p(t,f.EBADF());r.stat(n.key,t)},r.symlink=function(e,t,r){r||(r=d),y.follow(e,(function(e,n,i){if(e)return r(e);y.get(t,(function(e,n){return e&&"ENOENT"!==e.code?r(e):n?r(f.EEXIST(t)):void y.put(t,{type:"symlink",target:i,mode:u(777)},r)}))}))},r.readlink=function(e,t){y.get(e,(function(r,n){return r?t(r):n.target?void t(null,n.target):t(f.EINVAL(e))}))},r.link=function(e,t,r){r||(r=d),y.follow(e,(function(e,n,i){return e?r(e):n.isFile()?void y.get(t,(function(e,o){if(e&&"ENOENT"!==e.code)return r(e);if(o)return r(f.EEXIST(t));var a=i+"ÿ"+ ++w;m.put(i+"ÿ",i,(function(e){if(e)return r(e);m.put(a,i,(function(e){if(e)return r(e);y.put(t,{type:"file",link:a,blob:i,mode:n.mode},r)}))}))})):r(f.EINVAL(i))}))},r}},5363:(e,t,r)=>{var n=r(7975),i=r(3519),o=r(7520),a=r(6788),s=r(2581),c=r(7970),u=r(8571),f=s({type:"directory",mode:a(777),size:4096}),l=function(e){return e="/"===e[0]?e:"/"+e,"/"===(e=n.normalize(e))?e:"/"===e[e.length-1]?e.slice(0,-1):e},h=function(e){var t=e.split("/").length.toString(36);return"0000000000".slice(t.length)+t+e};e.exports=function(e){var t={};return t.normalize=l,t.get=function(t,r){if("/"===(t=l(t)))return process.nextTick(r.bind(null,null,f,"/"));e.get(h(t),{valueEncoding:"json"},(function(e,n){return e&&e.notFound?r(u.ENOENT(t),null,t):e?r(e,null,t):void r(null,s(n),t)}))},t.writable=function(e,r){if("/"===(e=l(e)))return process.nextTick(r.bind(null,u.EPERM(e)));t.follow(n.dirname(e),(function(t,n){return t?r(t):n.isDirectory()?void r(null,e):r(u.ENOTDIR(e))}))},t.list=function(t,r){t=l(t);var n=h("/"===t?t:t+"/"),a=e.createKeyStream({start:n,end:n+"ÿ"});r=i(r),a.on("error",r),a.pipe(o({encoding:"object"},(function(e){e=e.map((function(e){return e.split("/").pop()})),r(null,e)})))},t.follow=function(e,r){!function(e,r){var i="/",o=e.split("/").slice(1),a=function(){t.get(n.join(i,o.shift()),(function(t,n,s){return t?r(t,n,e):(i=n.target||s,o.length?void a():r(null,n,s))}))};a()}(l(e),(function e(n,i,o){return n?r(n,null,o):i.target?t.get(i.target,e):void r(null,s(i),o)}))},t.update=function(e,r,n){t.get(e,(function(e,i,o){return e?n(e):"/"===o?n(u.EPERM(o)):void t.put(o,c(i,r),n)}))},t.put=function(r,n,i){t.writable(r,(function(t,r){if(t)return i(t);e.put(h(r),s(n),{valueEncoding:"json"},i)}))},t.del=function(t,r){if("/"===(t=l(t)))return process.nextTick(r.bind(null,u.EPERM(t)));e.del(h(t),r)},t}},2581:e=>{var t=function(e){return e?"string"==typeof e?new Date(e):e:new Date},r=function(e){this.uid=e.uid||0,this.gid=e.gid||0,this.mode=e.mode||0,this.size=e.size||0,this.mtime=t(e.mtime),this.atime=t(e.atime),this.ctime=t(e.ctime),this.type=e.type,this.target=e.target,this.link=e.link,this.blob=e.blob};r.prototype.isDirectory=function(){return"directory"===this.type},r.prototype.isFile=function(){return"file"===this.type},r.prototype.isBlockDevice=function(){return!1},r.prototype.isCharacterDevice=function(){return!1},r.prototype.isSymbolicLink=function(){return"symlink"===this.type},r.prototype.isFIFO=function(){return!1},r.prototype.isSocket=function(){return!1},e.exports=function(e){return new r(e)}},1218:(e,t,r)=>{var n=r(7007);e.exports=function(){var e={},t=new n.EventEmitter;return t.watch=function(t,r){return e[t]||(e[t]=new n.EventEmitter,e[t].setMaxListeners(0)),r&&e[t].on("change",r),e[t]},t.watcher=function(e,r){var i=new n.EventEmitter,o=function(){i.emit("change","change",e)};return t.watch(e,o),r&&i.on("change",r),i.close=function(){t.unwatch(e,o)},i},t.unwatch=function(t,r){e[t]&&(r?e[t].removeListener("change",r):e[t].removeAllListeners("change"),e[t].listeners("change").length||delete e[t])},t.change=function(r){e[r]&&e[r].emit("change"),t.emit("change",r)},t.cb=function(e,r){return function(n,i){e&&t.change(e),r&&r(n,i)}},t}},2795:e=>{e.exports=function(e){var t=e.reverse,r=e.end,n=e.start,i=[n,r];return null!=n&&null!=r&&i.sort(),t&&(i=i.reverse()),e.start=i[0],e.end=i[1],e}},5687:(e,t,r)=>{var n=r(2980);e.exports=function(e){if(!e.hooks){var t=[],r=[];e.hooks={post:function(e,r){r||(r=e,e="");var i={test:n.checker(e),hook:r};return t.push(i),c(t,i)},pre:function(e,t){t||(t=e,e="");var i={test:n.checker(e),hook:t,safe:!1!==e.safe};return r.push(i),c(r,i)},posthooks:t,prehooks:r},e.on("put",(function(e,t){u({type:"put",key:e,value:t})})),e.on("del",(function(e,t){u({type:"del",key:e,value:t})})),e.on("batch",(function(e){e.forEach(u)}));var i=e.put,o=e.del,a=e.batch;e.put=function(e,t,r,n){return f(!1,[{key:e,value:t,type:"put"}],r,n)},e.del=function(e,t,r){return f(!1,[{key:e,type:"del"}],t,r)},e.batch=function(e,t,r){return f(!0,e,t,r)}}function s(e){return e&&("string"==typeof e?e:"string"==typeof e.prefix?e.prefix:"function"==typeof e.prefix?e.prefix():"")}function c(e,t){return function(){var r=e.indexOf(t);return!!~r&&(e.splice(r,1),!0)}}function u(e){e&&e.type&&t.forEach((function(t){t.test(e.key)&&t.hook(e)}))}function f(t,n,c,u){try{n.forEach((function e(t,i){r.forEach((function(r){if(r.test(String(t.key))){var o={add:function(t,o){if(void 0===t)return this;if(!1===t)return delete n[i];var a=s(t.prefix)||s(o)||r.prefix||"";if(a&&(t.prefix=a),t.key=a+t.key,r.safe&&r.test(String(t.key)))throw new Error("prehook cannot insert into own range");var c=t.keyEncoding||function(e){if(e&&e._getKeyEncoding)return e._getKeyEncoding(e)}(t.prefix),u=t.valueEncoding||function(e){if(e&&e._getValueEncoding)return e._getValueEncoding(e)}(t.prefix);return c&&(t.keyEncoding=c),u&&(t.valueEncoding=u),n.push(t),e(t,n.length-1),this},put:function(e,t){return"object"==typeof e&&(e.type="put"),this.add(e,t)},del:function(e,t){return"object"==typeof e&&(e.type="del"),this.add(e,t)},veto:function(){return this.add(!1)}};r.hook.call(o,t,o.add,n)}}))}))}catch(e){return(u||c)(e)}if(1==(n=n.filter((function(e){return e&&e.type}))).length&&!t){var f=n[0];return"put"==f.type?i.call(e,f.key,f.value,c,u):o.call(e,f.key,c,u)}return a.call(e,n,c,u)}}},2963:(e,t,r)=>{var n=r(8287).Buffer;e.exports=l;var i=r(196),o=r(1831).Z$,a=r(537),s=r(1421),c=r(2175),u=r(3476),f=r(4527);function l(e){if(!(this instanceof l))return new l(e);if(!e)throw new Error("constructor requires at least a location argument");this.IDBOptions={},this.location=e}a.inherits(l,o),l.prototype._open=function(e,t){var r=this,n={storeName:this.location,autoIncrement:!1,keyPath:null,onStoreReady:function(){t&&t(null,r.idb)},onError:function(e){t&&t(e)}};u(n,e),this.IDBOptions=n,this.idb=new i(n)},l.prototype._get=function(e,t,r){this.idb.get(e,(function(i){if(void 0===i)return r(new Error("NotFound"));var o=!0;return!1===t.asBuffer&&(o=!1),t.raw&&(o=!1),o&&(i=i instanceof Uint8Array?f(i):new n(String(i))),r(null,i,e)}),r)},l.prototype._del=function(e,t,r){this.idb.remove(e,r,r)},l.prototype._put=function(e,t,r,i){t instanceof ArrayBuffer&&(t=f(new Uint8Array(t)));var o=this.convertEncoding(e,t,r);n.isBuffer(o.value)&&("function"==typeof t.toArrayBuffer?o.value=new Uint8Array(t.toArrayBuffer()):o.value=new Uint8Array(t)),this.idb.put(o.key,o.value,(function(){i()}),i)},l.prototype.convertEncoding=function(e,t,r){if(r.raw)return{key:e,value:t};if(t){var n=t.toString();"NaN"===n&&(t="NaN")}var i=r.valueEncoding,o={key:e,value:t};return!t||i&&"binary"===i||"object"!=typeof o.value&&(o.value=n),o},l.prototype.iterator=function(e){return"object"!=typeof e&&(e={}),new s(this.idb,e)},l.prototype._batch=function(e,t,r){var n,i,o,a,s=[];if(0===e.length)return setTimeout(r,0);for(n=0;n<e.length;n++){o={},a=e[n],s[n]=o;var c=this.convertEncoding(a.key,a.value,t);for(i in a.key=c.key,a.value=c.value,a)"type"===i&&"del"==a[i]?o[i]="remove":o[i]=a[i]}return this.idb.batch(s,(function(){r()}),r)},l.prototype._close=function(e){this.idb.db.close(),e()},l.prototype._approximateSize=function(e,t,r){var n=new Error("Not implemented");if(r)return r(n);throw n},l.prototype._isBuffer=function(e){return n.isBuffer(e)},l.destroy=function(e,t){if("object"==typeof e)var r=e.IDBOptions.storePrefix||"IDBWrapper-",n=e.location;else r="IDBWrapper-",n=e;var i=indexedDB.deleteDatabase(r+n);i.onsuccess=function(){t()},i.onerror=function(e){t(e)}},l.prototype._checkKeyValue=function(e,t){return null==e||null==e?new Error(t+" cannot be `null` or `undefined`"):c(e)&&0===e.byteLength?new Error(t+" cannot be an empty ArrayBuffer"):""===String(e)?new Error(t+" cannot be an empty String"):0===e.length?new Error(t+" cannot be an empty Array"):void 0}},1421:(e,t,r)=>{var n=r(537),i=r(1831).No,o=r(4602);function a(e,t){t||(t={}),this.options=t,i.call(this,e),this._order=t.reverse?"DESC":"ASC",this._limit=t.limit,this._count=0,this._done=!1;var r=o.lowerBound(t),n=o.upperBound(t);try{this._keyRange=r||n?this.db.makeKeyRange({lower:r,upper:n,excludeLower:o.lowerBoundExclusive(t),excludeUpper:o.upperBoundExclusive(t)}):null}catch(e){this._keyRangeError=!0}this.callback=null}e.exports=a,n.inherits(a,i),a.prototype.createIterator=function(){var e=this;e.iterator=e.db.iterate((function(){e.onItem.apply(e,arguments)}),{keyRange:e._keyRange,autoContinue:!1,order:e._order,onError:function(e){console.log("horrible error",e)}})},a.prototype.onItem=function(e,t,r){if(!t&&this.callback)return this.callback(),void(this.callback=!1);var n=!0;this._limit&&this._limit>0&&this._count++>=this._limit&&(n=!1),n&&this.callback(!1,t.key,t.value),t&&t.continue()},a.prototype._next=function(e){return e?this._keyRangeError?e():(this._started||(this.createIterator(),this._started=!0),void(this.callback=e)):new Error("next() requires a callback argument")}},7969:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n){if(!function(e){var t="function"==typeof e&&!(e instanceof RegExp)||"[object Function]"===r.call(e);return t||"undefined"==typeof window||(t=e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt),t}(n))throw new TypeError("iterator must be a function");var i,o,a="string"==typeof e,s=e.length,c=arguments.length>2?arguments[2]:null;if(s===+s)for(i=0;i<s;i++)null===c?n(a?e.charAt(i):e[i],i,e):n.call(c,a?e.charAt(i):e[i],i,e);else for(o in e)t.call(e,o)&&(null===c?n(e[o],o,e):n.call(c,e[o],o,e))}},9731:(e,t,r)=>{e.exports=Object.keys||r(7274)},3819:e=>{var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},7274:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=r(7969),a=r(3819),s=!{toString:null}.propertyIsEnumerable("toString"),c=function(){}.propertyIsEnumerable("prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),f=a(e),l=[];if(!t&&!r&&!f)throw new TypeError("Object.keys called on a non-object");if(f)o(e,(function(e){l.push(e)}));else{var h,p=c&&r;for(h in e)p&&"prototype"===h||!n.call(e,h)||l.push(h)}if(s){var d=e.constructor,g=d&&d.prototype===e;o(u,(function(t){g&&"constructor"===t||!n.call(e,t)||l.push(t)}))}return l},e.exports=t}()},7237:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},3476:(e,t,r)=>{var n=r(9731),i=r(7237);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},4123:(e,t,r)=>{var n=r(2795);function i(e,t,r){var n,i,o;t.limit=t.reverse?2:1,n=e.createReadStream(t),i=function(e,n){if(t.reverse&&n&&t.start&&n.key.toString()>t.start)return!1;"error"==e?r(n):"end"==e?r(new Error("range not found"),null,null):r(null,n.key,n.value)},o=[],["data","error","end"].forEach((function(e){function t(t){!1!==i(e,t)&&o.forEach((function(e){e()}))}n.on(e,t),o.push((function(){n.removeListener(e,t)}))}))}(t=e.exports=i).first=function(e,t,r){return r||(r=t,t={}),t.reverse=!1,i(e,n(t),r)},t.last=function(e,t,r){return r||(r=t,t={}),t.start,t.reverse=!0,i(e,n(t),(function(n,o,a){if(n){var s=t.start;t.start=null,i(e,t,(function(e,i,o){if(!i)return r(n,null,null);var a=i.toString();a<=s&&(!t.end||a>=t.end)?r(e,i,o):r(n,null,null)}))}else r(n,o,a)}))}},3152:e=>{function t(e,t,r,n){var i={type:e,key:t,value:r,options:n};return n&&n.prefix&&(i.prefix=n.prefix,delete n.prefix),this._operations.push(i),this}function r(e){this._operations=[],this._sdb=e,this.put=t.bind(this,"put"),this.del=t.bind(this,"del")}var n=r.prototype;n.clear=function(){this._operations=[]},n.write=function(e){this._sdb.batch(this._operations,e)},e.exports=r},5584:(e,t,r)=>{r(7007).EventEmitter,process.nextTick;var n=r(8662),i=r(3152),o=r(7212),a=r(5687);e.exports=function(e,t){function r(){}r.prototype=e;var s=new r;if(s.sublevel)return s;var c=(t=t||{}).sep=t.sep||"ÿ";function u(e){return function(t){return(t=o(t=t||{})).reverse?t.start=t.start||c:t.end=t.end||c,e.call(s,t)}}s._options=t,a(s),s.sublevels={},s.sublevel=function(e,t){return s.sublevels[e]?s.sublevels[e]:new n(s,e,t||this._options)},s.methods={},s.prefix=function(e){return""+(e||"")},s.pre=function(e,t){return t||(t=e,e={max:c}),s.hooks.pre(e,t)},s.post=function(e,t){return t||(t=e,e={max:c}),s.hooks.post(e,t)},s.readStream=s.createReadStream=u(s.createReadStream),s.keyStream=s.createKeyStream=u(s.createKeyStream),s.valuesStream=s.createValueStream=u(s.createValueStream);var f=s.batch;return s.batch=function(e,t,r){if(!Array.isArray(e))return new i(s);e.forEach((function(e){e.prefix&&("function"==typeof e.prefix.prefix?e.key=e.prefix.prefix(e.key):"string"==typeof e.prefix&&(e.key=e.prefix+e.key))})),f.call(s,e,t,r)},s}},2068:e=>{var t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=function(e){return e!=e},o={boolean:1,number:1,string:1,undefined:1},a=e.exports={};a.a=a.type=function(e,t){return typeof e===t},a.defined=function(e){return void 0!==e},a.empty=function(e){var t,i=n.call(e);if("[object Array]"===i||"[object Arguments]"===i)return 0===e.length;if("[object Object]"===i){for(t in e)if(r.call(e,t))return!1;return!0}return"[object String]"===i&&""===e},a.equal=function(e,t){var r,i=n.call(e);if(i!==n.call(t))return!1;if("[object Object]"===i){for(r in e)if(!a.equal(e[r],t[r]))return!1;return!0}if("[object Array]"===i){if((r=e.length)!==t.length)return!1;for(;--r;)if(!a.equal(e[r],t[r]))return!1;return!0}return"[object Function]"===i?e.prototype===t.prototype:"[object Date]"===i?e.getTime()===t.getTime():e===t},a.hosted=function(e,t){var r=typeof t[e];return"object"===r?!!t[e]:!o[r]},a.instance=a.instanceof=function(e,t){return e instanceof t},a.null=function(e){return null===e},a.undefined=function(e){return void 0===e},a.arguments=function(e){var t="[object Arguments]"===n.call(e),r=!a.array(e)&&a.arraylike(e)&&a.object(e)&&a.fn(e.callee);return t||r},a.array=function(e){return"[object Array]"===n.call(e)},a.arguments.empty=function(e){return a.arguments(e)&&0===e.length},a.array.empty=function(e){return a.array(e)&&0===e.length},a.arraylike=function(e){return!!e&&!a.boolean(e)&&r.call(e,"length")&&isFinite(e.length)&&a.number(e.length)&&e.length>=0},a.boolean=function(e){return"[object Boolean]"===n.call(e)},a.false=function(e){return a.boolean(e)&&(!1===e||!1===e.valueOf())},a.true=function(e){return a.boolean(e)&&(!0===e||!0===e.valueOf())},a.date=function(e){return"[object Date]"===n.call(e)},a.element=function(e){return void 0!==e&&"undefined"!=typeof HTMLElement&&e instanceof HTMLElement&&1===e.nodeType},a.error=function(e){return"[object Error]"===n.call(e)},a.fn=a.function=function(e){return"undefined"!=typeof window&&e===window.alert||"[object Function]"===n.call(e)},a.number=function(e){return"[object Number]"===n.call(e)},a.infinite=function(e){return e===1/0||e===-1/0},a.decimal=function(e){return a.number(e)&&!i(e)&&!a.infinite(e)&&e%1!=0},a.divisibleBy=function(e,t){var r=a.infinite(e),n=a.infinite(t),o=a.number(e)&&!i(e)&&a.number(t)&&!i(t)&&0!==t;return r||n||o&&e%t==0},a.int=function(e){return a.number(e)&&!i(e)&&e%1==0},a.maximum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e<t[r])return!1;return!0},a.minimum=function(e,t){if(i(e))throw new TypeError("NaN is not a valid value");if(!a.arraylike(t))throw new TypeError("second argument must be array-like");for(var r=t.length;--r>=0;)if(e>t[r])return!1;return!0},a.nan=function(e){return!a.number(e)||e!=e},a.even=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2==0},a.odd=function(e){return a.infinite(e)||a.number(e)&&e==e&&e%2!=0},a.ge=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>=t},a.gt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e>t},a.le=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<=t},a.lt=function(e,t){if(i(e)||i(t))throw new TypeError("NaN is not a valid value");return!a.infinite(e)&&!a.infinite(t)&&e<t},a.within=function(e,t,r){if(i(e)||i(t)||i(r))throw new TypeError("NaN is not a valid value");if(!a.number(e)||!a.number(t)||!a.number(r))throw new TypeError("all arguments must be numbers");return a.infinite(e)||a.infinite(t)||a.infinite(r)||e>=t&&e<=r},a.object=function(e){return e&&"[object Object]"===n.call(e)},a.hash=function(e){return a.object(e)&&e.constructor===Object&&!e.nodeType&&!e.setInterval},a.regexp=function(e){return"[object RegExp]"===n.call(e)},a.string=function(e){return"[object String]"===n.call(e)}},7212:(e,t,r)=>{var n=r(1779);e.exports=function(e){var t=(e=n(e)).reverse,r=e.max||e.end,i=e.min||e.start,o=[i,r];return null!=i&&null!=r&&o.sort(),t&&(o=o.reverse()),e.start=o[0],e.end=o[1],delete e.min,delete e.max,e}},5346:(e,t,r)=>{e.exports=Object.keys||r(7589)},7589:(e,t,r)=>{!function(){"use strict";var t,n=Object.prototype.hasOwnProperty,i=r(2068),o=r(7593),a=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];t=function(e){if(!i.object(e)&&!i.array(e))throw new TypeError("Object.keys called on a non-object");var t,r=[];for(t in e)n.call(e,t)&&r.push(t);return a&&o(s,(function(t){n.call(e,t)&&r.push(t)})),r},e.exports=t}()},7330:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},3685:(e,t,r)=>{var n=r(5346),i=r(7330);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(i(r))for(var o=n(r),a=0;a<o.length;a++){var s=o[a];e[s]=r[s]}}return e}},8662:(e,t,r)=>{var n=r(7007).EventEmitter,i=r(537).inherits,o=r(2980),a=r(7212),s=r(3685),c=r(3152);function u(e,t,r){if("string"==typeof r&&(console.error("db.sublevel(name, seperator<string>) is depreciated"),console.error("use db.sublevel(name, {sep: separator})) if you must"),r={sep:r}),!(this instanceof u))return new u(e,t,r);if(!e)throw new Error("must provide db");if(!t)throw new Error("must provide prefix");(r=r||{}).sep=r.sep||"ÿ",this._parent=e,this._options=r,this.options=r,this._prefix=t,this._root=l(this),e.sublevels[t]=this,this.sublevels={},this.methods={};var n=this;this.hooks={pre:function(){return n.pre.apply(n,arguments)},post:function(){return n.post.apply(n,arguments)}}}i(u,n);var f=u.prototype;function l(e){return e._parent?l(e._parent):e}f._key=function(e){var t=this._options.sep;return t+this._prefix+t+e},f._getOptsAndCb=function(e,t){return"function"==typeof e&&(t=e,e={}),{opts:s(e,this._options),cb:t}},f.sublevel=function(e,t){return this.sublevels[e]?this.sublevels[e]:new u(this,e,t||this._options)},f.put=function(e,t,r,n){var i=this._getOptsAndCb(r,n);this._root.put(this.prefix(e),t,i.opts,i.cb)},f.get=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.get(this.prefix(e),n.opts,n.cb)},f.del=function(e,t,r){var n=this._getOptsAndCb(t,r);this._root.del(this.prefix(e),n.opts,n.cb)},f.batch=function(e,t,r){if(!Array.isArray(e))return new c(this);var n=this,i=this._getOptsAndCb(t,r);e.forEach((function(e){"string"==typeof e.prefix?e.key=e.prefix+e.key:e.key=(e.prefix||n).prefix(e.key),e.prefix&&(e.prefix=null)})),this._root.batch(e,i.opts,i.cb)},f._getKeyEncoding=function(){return this.options.keyEncoding?this.options.keyEncoding:this._parent&&this._parent._getKeyEncoding?this._parent._getKeyEncoding():void 0},f._getValueEncoding=function(){return this.options.valueEncoding?this.options.valueEncoding:this._parent&&this._parent._getValueEncoding?this._parent._getValueEncoding():void 0},f.prefix=function(e){var t=this._options.sep;return this._parent.prefix()+t+this._prefix+t+(e||"")},f.keyStream=f.createKeyStream=function(e){return(e=e||{}).keys=!0,e.values=!1,this.createReadStream(e)},f.valueStream=f.createValueStream=function(e){return(e=e||{}).keys=!1,e.values=!0,e.keys=!1,this.createReadStream(e)},f.readStream=f.createReadStream=function(e){e=e||{};var t=l(this),r=this.prefix(),n=o.prefix(e,r);!function(e,t){["valueEncoding","encoding","keyEncoding","reverse","values","keys","limit","fillCache"].forEach((function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}))}(n,s(e,this._options));var i=t.createReadStream(n);if(!1===n.values){var a;if(a=i.read)i.read=function(e){var t=a.call(this,e);return t&&(t=t.substring(r.length)),t};else{var c=i.emit;i.emit=function(e,t){"data"===e?c.call(this,"data",t.substring(r.length)):c.call(this,e,t)}}return i}return!1===n.keys||((a=i.read)?i.read=function(e){var t=a.call(this,e);return t&&(t.key=t.key.substring(r.length)),t}:i.on("data",(function(e){e.key=e.key.substring(r.length)}))),i},f.writeStream=f.createWriteStream=function(){var e=l(this),t=this.prefix(),r=e.createWriteStream.apply(e,arguments),n=r.write,i=this._options.encoding,o=this._options.valueEncoding,a=this._options.keyEncoding,s=!i&&!o&&!a;return r.write=s?function(e){return e.key=t+e.key,n.call(r,e)}:function(e){return e.key=t+e.key,i&&void 0===e.encoding&&(e.encoding=i),o&&void 0===e.valueEncoding&&(e.valueEncoding=o),a&&void 0===e.keyEncoding&&(e.keyEncoding=a),n.call(r,e)},r},f.approximateSize=function(){var e=l(db);return e.approximateSize.apply(e,arguments)},f.pre=function(e,t){t||(t=e,e=null),e=o.prefix(e,this.prefix(),this._options.sep);var r=l(this._parent),n=this.prefix();return r.hooks.pre(a(e),(function(e,r,i){t({key:e.key.substring(n.length),value:e.value,type:e.type},(function(e,t){r(e,e.prefix?t:t||n)}),i)}))},f.post=function(e,t){t||(t=e,e=null);var r=l(this._parent),n=this.prefix();return e=o.prefix(e,n,this._options.sep),r.hooks.post(a(e),(function(e){t({key:e.key.substring(n.length),value:e.value,type:e.type})}))},e.exports=u},3324:(e,t,r)=>{var n=r(2350),i=r(7805).WriteError,o=n.getOptions,a=n.dispatchError;function s(e){this._levelup=e,this.batch=e.db.batch(),this.ops=[]}s.prototype.put=function(e,t,r){r=o(this._levelup,r);var a=n.encodeKey(e,r),s=n.encodeValue(t,r);try{this.batch.put(a,s)}catch(e){throw new i(e)}return this.ops.push({type:"put",key:a,value:s}),this},s.prototype.del=function(e,t){t=o(this._levelup,t);var r=n.encodeKey(e,t);try{this.batch.del(r)}catch(e){throw new i(e)}return this.ops.push({type:"del",key:r}),this},s.prototype.clear=function(){try{this.batch.clear()}catch(e){throw new i(e)}return this.ops=[],this},s.prototype.write=function(e){var t=this._levelup,r=this.ops;try{this.batch.write((function(n){if(n)return a(t,new i(n),e);t.emit("batch",r),e&&e()}))}catch(e){throw new i(e)}},e.exports=s},7805:(e,t,r)=>{var n=r(519).create,i=n("LevelUPError"),o=n("NotFoundError",i);o.prototype.notFound=!0,o.prototype.status=404,e.exports={LevelUPError:i,InitializationError:n("InitializationError",i),OpenError:n("OpenError",i),ReadError:n("ReadError",i),WriteError:n("WriteError",i),NotFoundError:o,EncodingError:n("EncodingError",i)}},9043:(e,t,r)=>{var n=r(7007).EventEmitter,i=r(537).inherits,o=r(3493),a=r(3364),s=r(6841),c=r(7805).WriteError,u=r(7805).ReadError,f=r(7805).NotFoundError,l=r(7805).OpenError,h=r(7805).EncodingError,p=r(7805).InitializationError,d=r(8531),g=r(1068),y=r(2350),m=r(3324),b=y.getOptions,v=y.defaultOptions,w=y.getLevelDOWN,_=y.dispatchError;function E(e,t){return"function"==typeof e?e:t}function k(e,t,r){if(!(this instanceof k))return new k(e,t,r);var i;if(n.call(this),this.setMaxListeners(1/0),"function"==typeof e?((t="object"==typeof t?t:{}).db=e,e=null):"object"==typeof e&&"function"==typeof e.db&&(t=e,e=null),"function"==typeof t&&(r=t,t={}),(!t||"function"!=typeof t.db)&&"string"!=typeof e){if(i=new p("Must provide a location for the database"),r)return process.nextTick((function(){r(i)}));throw i}t=b(this,t),this.options=o(v,t),this._status="new",a(this,"location",e,"e"),this.open(r)}function x(e){return function(t,r){w()[e](t,r||function(){})}}i(k,n),k.prototype.open=function(e){var t,r,n=this;return this.isOpen()?(e&&process.nextTick((function(){e(null,n)})),this):this._isOpening()?e&&this.once("open",(function(){e(null,n)})):(this.emit("opening"),this._status="opening",this.db=new s(this.location),t=this.options.db||w(),void(r=t(this.location)).open(this.options,(function(t){if(t)return _(n,new l(t),e);n.db.setDb(r),n.db=r,n._status="open",e&&e(null,n),n.emit("open"),n.emit("ready")})))},k.prototype.close=function(e){var t=this;if(this.isOpen())this._status="closing",this.db.close((function(){t._status="closed",t.emit("closed"),e&&e.apply(null,arguments)})),this.emit("closing"),this.db=null;else{if("closed"==this._status&&e)return process.nextTick(e);"closing"==this._status&&e?this.once("closed",e):this._isOpening()&&this.once("open",(function(){t.close(e)}))}},k.prototype.isOpen=function(){return"open"==this._status},k.prototype._isOpening=function(){return"opening"==this._status},k.prototype.isClosed=function(){return/^clos/.test(this._status)},k.prototype.get=function(e,t,r){var n,i=this;return"function"!=typeof(r=E(t,r))?_(this,new u("get() requires key and callback arguments")):this._isOpening()||this.isOpen()?(t=y.getOptions(this,t),n=y.encodeKey(e,t),t.asBuffer=y.isValueAsBuffer(t),void this.db.get(n,t,(function(n,o){if(n)return n=/notfound/i.test(n)?new f("Key not found in database ["+e+"]",n):new u(n),_(i,n,r);if(r){try{o=y.decodeValue(o,t)}catch(e){return r(new h(e))}r(null,o)}}))):_(this,new u("Database is not open"),r)},k.prototype.put=function(e,t,r,n){var i,o,a=this;return n=E(r,n),null==e||null==t?_(this,new c("put() requires key and value arguments"),n):this._isOpening()||this.isOpen()?(r=b(this,r),i=y.encodeKey(e,r),o=y.encodeValue(t,r),void this.db.put(i,o,r,(function(r){if(r)return _(a,new c(r),n);a.emit("put",e,t),n&&n()}))):_(this,new c("Database is not open"),n)},k.prototype.del=function(e,t,r){var n,i=this;return r=E(t,r),null==e?_(this,new c("del() requires a key argument"),r):this._isOpening()||this.isOpen()?(t=b(this,t),n=y.encodeKey(e,t),void this.db.del(n,t,(function(t){if(t)return _(i,new c(t),r);i.emit("del",e),r&&r()}))):_(this,new c("Database is not open"),r)},k.prototype.batch=function(e,t,r){var n,i,o,a=this;return arguments.length?(r=E(t,r),Array.isArray(e)?this._isOpening()||this.isOpen()?(t=b(this,t),n=t.keyEncoding,i=t.valueEncoding,o=e.map((function(e){if(void 0===e.type||void 0===e.key)return{};var r,o=e.keyEncoding||n,a=e.valueEncoding||e.encoding||i;return"utf8"!=o&&"binary"!=o||"utf8"!=a&&"binary"!=a?(r={type:e.type,key:y.encodeKey(e.key,t,e)},void 0!==e.value&&(r.value=y.encodeValue(e.value,t,e)),r):e})),void this.db.batch(o,t,(function(t){if(t)return _(a,new c(t),r);a.emit("batch",e),r&&r()}))):_(this,new c("Database is not open"),r):_(this,new c("batch() requires an array argument"),r)):new m(this)},k.prototype.approximateSize=function(e,t,r){var n,i,o=this;return null==e||null==t||"function"!=typeof r?_(this,new u("approximateSize() requires start, end and callback arguments"),r):(n=y.encodeKey(e,this.options),i=y.encodeKey(t,this.options),this._isOpening()||this.isOpen()?void this.db.approximateSize(n,i,(function(e,t){if(e)return _(o,new l(e),r);r&&r(null,t)})):_(this,new c("Database is not open"),r))},k.prototype.readStream=k.prototype.createReadStream=function(e){var t=this;return e=o(this.options,e),new d(e,this,(function(e){return t.db.iterator(e)}))},k.prototype.keyStream=k.prototype.createKeyStream=function(e){return this.createReadStream(o(e,{keys:!0,values:!1}))},k.prototype.valueStream=k.prototype.createValueStream=function(e){return this.createReadStream(o(e,{keys:!1,values:!0}))},k.prototype.writeStream=k.prototype.createWriteStream=function(e){return new g(o(e),this)},k.prototype.toString=function(){return"LevelUP"},e.exports=k,e.exports.copy=y.copy,e.exports.destroy=x("destroy"),e.exports.repair=x("repair")},8531:(e,t,r)=>{var n=r(1963).Readable,i=r(537).inherits,o=r(3493),a=r(7805).EncodingError,s=r(2350),c={keys:!0,values:!0},u=function(e,t){return{key:s.decodeKey(e,this._options),value:s.decodeValue(t,this._options)}},f=function(e){return s.decodeKey(e,this._options)},l=function(e,t){return s.decodeValue(t,this._options)},h=function(){return null};function p(e,t,r){if(!(this instanceof p))return new p(e,t,r);n.call(this,{objectMode:!0,highWaterMark:e.highWaterMark}),this._db=t,e=this._options=o(c,e),this._keyEncoding=e.keyEncoding||e.encoding,this._valueEncoding=e.valueEncoding||e.encoding,void 0!==this._options.start&&(this._options.start=s.encodeKey(this._options.start,this._options)),void 0!==this._options.end&&(this._options.end=s.encodeKey(this._options.end,this._options)),"number"!=typeof this._options.limit&&(this._options.limit=-1),this._options.keyAsBuffer=s.isKeyAsBuffer(this._options),this._options.valueAsBuffer=s.isValueAsBuffer(this._options),this._makeData=this._options.keys&&this._options.values?u:this._options.keys?f:this._options.values?l:h;var i=this;this._db.isOpen()?this._iterator=r(this._options):this._db.once("ready",(function(){i._destroyed||(i._iterator=r(i._options))}))}i(p,n),p.prototype._read=function e(){var t=this;if(!t._db.isOpen())return t._db.once("ready",(function(){e.call(t)}));t._destroyed||t._iterator.next((function(e,r,n){if(e||void 0===r&&void 0===n)return e||t._destroyed||t.push(null),t._cleanup(e);try{n=t._makeData(r,n)}catch(e){return t._cleanup(new a(e))}t._destroyed||t.push(n)}))},p.prototype._cleanup=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;e&&t.emit("error",e),t._iterator?t._iterator.end((function(){t._iterator=null,t.emit("close")})):t.emit("close")}},p.prototype.destroy=function(){this._cleanup()},p.prototype.toString=function(){return"LevelUP.ReadStream"},e.exports=p},2350:(e,t,r)=>{var n,i,o=r(8287).Buffer,a=r(3493),s=r(7805).LevelUPError,c=["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le"],u={createIfMissing:!0,errorIfExists:!1,keyEncoding:"utf8",valueEncoding:"utf8",compression:!0},f=function(){function e(e){return null==e||o.isBuffer(e)}var t={};return t.utf8=t["utf-8"]={encode:function(t){return e(t)?t:String(t)},decode:function(e){return e},buffer:!1,type:"utf8"},t.json={encode:JSON.stringify,decode:JSON.parse,buffer:!1,type:"json"},c.forEach((function(r){t[r]||(t[r]={encode:function(t){return e(t)?t:new o(t,r)},decode:function(e){return process.browser?e.toString(r):e},buffer:!0,type:r})})),t}(),l=(i={},c.forEach((function(e){i[e]={valueEncoding:e}})),i);function h(e,t){var r=t&&t.keyEncoding||e.keyEncoding||"utf8";return f[r]||r}function p(e,t){var r=t&&(t.valueEncoding||t.encoding)||e.valueEncoding||e.encoding||"utf8";return f[r]||r}e.exports={defaultOptions:u,copy:function(e,t,r){e.readStream().pipe(t.writeStream()).on("close",r||function(){}).on("error",r||function(e){throw e})},getOptions:function(e,t){var r="string"==typeof t;return!r&&t&&t.encoding&&!t.valueEncoding&&(t.valueEncoding=t.encoding),a(e&&e.options||{},r?l[t]||l[u.valueEncoding]:t)},getLevelDOWN:function(){if(n)return n;var e,t=r(9435).rh.j9,i="Could not locate LevelDOWN, try `npm install leveldown`";try{e=r(6789).version}catch(e){throw new s(i)}if(!r(1534).satisfies(e,t))throw new s("Installed version of LevelDOWN ("+e+") does not match required version ("+t+")");try{return n=r(564)}catch(e){throw new s(i)}},dispatchError:function(e,t,r){return"function"==typeof r?r(t):e.emit("error",t)},encodeKey:function(e,t,r){return h(t,r).encode(e)},encodeValue:function(e,t,r){return p(t,r).encode(e)},isValueAsBuffer:function(e,t){return p(e,t).buffer},isKeyAsBuffer:function(e,t){return h(e,t).buffer},decodeValue:function(e,t){return p(t).decode(e)},decodeKey:function(e,t){return h(t).decode(e)}}},1068:(e,t,r)=>{var n=r(8310).Stream,i=r(537).inherits,o=r(3493),a=r(4829),s=r.g.setImmediate||process.nextTick,c=r(2350).getOptions,u={type:"put"};function f(e,t){if(!(this instanceof f))return new f(e,t);n.call(this),this._options=o(u,c(t,e)),this._db=t,this._buffer=[],this._status="init",this._end=!1,this.writable=!0,this.readable=!1;var r=this,i=function(){r.writable&&(r._status="ready",r.emit("ready"),r._process())};t.isOpen()?s(i):t.once("ready",i)}i(f,n),f.prototype.write=function(e){return!(!this.writable||(this._buffer.push(e),"init"!=this._status&&this._processDelayed(),this._options.maxBufferLength&&this._buffer.length>this._options.maxBufferLength&&(this._writeBlock=!0,1)))},f.prototype.end=function(e){var t=this;e&&this.write(e),s((function(){t._end=!0,t._process()}))},f.prototype.destroy=function(){this.writable=!1,this.end()},f.prototype.destroySoon=function(){this.end()},f.prototype.add=function(e){if(e.props)return e.props.Directory?e.pipe(this._db.writeStream(this._options)):(e.props.File||e.File||"File"==e.type)&&this._write(e),!0},f.prototype._processDelayed=function(){var e=this;s((function(){e._process()}))},f.prototype._process=function(){var e,t=this;if("ready"==t._status||!t.writable)return t._buffer.length&&t.writable?(t._status="writing",e=t._buffer,t._buffer=[],t._db.batch(e.map((function(e){return{type:e.type||t._options.type,key:e.key,value:e.value,keyEncoding:e.keyEncoding||t._options.keyEncoding,valueEncoding:e.valueEncoding||e.encoding||t._options.valueEncoding}})),(function(e){if(t.writable){if("closed"!=t._status&&(t._status="ready"),e)return t.writable=!1,t.emit("error",e);t._process()}})),void(t._writeBlock&&(t._writeBlock=!1,t.emit("drain")))):void(t._end&&"closed"!=t._status&&(t._status="closed",t.writable=!1,t.emit("close")));t._buffer.length&&"closed"!=t._status&&t._processDelayed()},f.prototype._write=function(e){var t=e.path||e.props.path,r=this;t&&e.pipe(a((function(e,n){if(e)return r.writable=!1,r.emit("error",e);r._options.fstreamRoot&&t.indexOf(r._options.fstreamRoot)>-1&&(t=t.substr(r._options.fstreamRoot.length+1)),r.write({key:t,value:n.slice(0)})})))},f.prototype.toString=function(){return"LevelUP.WriteStream"},e.exports=f},3364:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},1511:(e,t,r)=>{e.exports=s;var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=r(5622);i.inherits=r(6698);var o=r(7349),a=r(1445);function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}i.inherits(s,o),function(e,t){for(var r=0,n=e.length;r<n;r++)i=e[r],s.prototype[i]||(s.prototype[i]=a.prototype[i]);var i}(n(a.prototype))},1643:(e,t,r)=>{e.exports=o;var n=r(3497),i=r(5622);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(6698),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},7349:(e,t,r)=>{e.exports=f;var n=r(4634),i=r(8287).Buffer;f.ReadableState=u;var o=r(7007).EventEmitter;o.listenerCount||(o.listenerCount=function(e,t){return e.listeners(t).length});var a,s=r(8310),c=r(5622);function u(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(a||(a=r(9234).I),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function f(e){if(!(this instanceof f))return new f(e);this._readableState=new u(e,this),this.readable=!0,s.call(this)}function l(e,t,r,n,o){var a=function(e,t){var r=null;return i.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(t,r);if(a)e.emit("error",a);else if(null==r)t.reading=!1,t.ended||function(e,t){if(t.decoder&&!t.ended){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.length>0?d(e):w(e)}(e,t);else if(t.objectMode||r&&r.length>0)if(t.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else t.endEmitted&&o?(s=new Error("stream.unshift() after end event"),e.emit("error",s)):(!t.decoder||o||n||(r=t.decoder.write(r)),t.length+=t.objectMode?1:r.length,o?t.buffer.unshift(r):(t.reading=!1,t.buffer.push(r)),t.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}(e,t)})))}(e,t));else o||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}c.inherits=r(6698),c.inherits(f,s),f.prototype.push=function(e,t){var r=this._readableState;return"string"!=typeof e||r.objectMode||(t=t||r.defaultEncoding)!==r.encoding&&(e=new i(e,t),t=""),l(this,r,e,t,!1)},f.prototype.unshift=function(e){return l(this,this._readableState,e,"",!0)},f.prototype.setEncoding=function(e){a||(a=r(9234).I),this._readableState.decoder=new a(e),this._readableState.encoding=e};var h=8388608;function p(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=h)e=h;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){g(e)})):g(e))}function g(e){e.emit("readable")}function y(e){var t,r=e._readableState;function n(e,n,i){!1===e.write(t)&&r.awaitDrain++}for(r.awaitDrain=0;r.pipesCount&&null!==(t=e.read());)if(1===r.pipesCount?n(r.pipes):_(r.pipes,n),e.emit("data",t),r.awaitDrain>0)return;if(0===r.pipesCount)return r.flowing=!1,void(o.listenerCount(e,"data")>0&&b(e));r.ranOut=!0}function m(){this._readableState.ranOut&&(this._readableState.ranOut=!1,y(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var r=t||!1,n=!1;e.readable=!0,e.pipe=s.prototype.pipe,e.on=e.addListener=s.prototype.on,e.on("readable",(function(){var t;for(n=!0;!r&&null!==(t=e.read());)e.emit("data",t);null===t&&(n=!1,e._readableState.needReadable=!0)})),e.pause=function(){r=!0,this.emit("pause")},e.resume=function(){r=!1,n?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function v(e,t){var r,n=t.buffer,o=t.length,a=!!t.decoder,s=!!t.objectMode;if(0===n.length)return null;if(0===o)r=null;else if(s)r=n.shift();else if(!e||e>=o)r=a?n.join(""):i.concat(n,o),n.length=0;else if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=a?"":new i(e);for(var c=0,u=0,f=n.length;u<f&&c<e;u++){var l=n[0],h=Math.min(e-c,l.length);a?r+=l.slice(0,h):l.copy(r,c,0,h),h<l.length?n[0]=l.slice(h):n.shift(),c+=h}}return r}function w(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}f.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var r,n=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=p(e,t))&&t.ended)return r=null,t.length>0&&t.decoder&&(r=v(e,t),t.length-=r.length),0===t.length&&w(this),r;var i=t.needReadable;return t.length-e<=t.highWaterMark&&(i=!0),(t.ended||t.reading)&&(i=!1),i&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=p(n,t)),null===(r=e>0?v(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&w(this),r},f.prototype._read=function(e){this.emit("error",new Error("not implemented"))},f.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1;var a=t&&!1===t.end||e===process.stdout||e===process.stderr?f:c;function s(e){e===r&&f()}function c(){e.end()}i.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&y(e)}}(r);function f(){e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",f),e._writableState&&!e._writableState.needDrain||u()}function l(t){d(),e.removeListener("error",l),0===o.listenerCount(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",p),d()}function p(){e.removeListener("close",h),d()}function d(){r.unpipe(e)}return e.on("drain",u),e._events&&e._events.error?n(e._events.error)?e._events.error.unshift(l):e._events.error=[l,e._events.error]:e.on("error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(this.on("readable",m),i.flowing=!0,process.nextTick((function(){y(r)}))),e},f.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",m),t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}return-1===(i=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e))||(t.pipes.splice(i,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},f.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&d(this):this.read(0))}return r},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},f.prototype.pause=function(){b(this,!0),this.emit("pause")},f.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)"function"==typeof e[i]&&void 0===this[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,n.emit.bind(n,t))})),n._read=function(t){r&&(r=!1,e.resume())},n},f._fromList=v},3497:(e,t,r)=>{e.exports=a;var n=r(1511),i=r(5622);function o(e,t){this.afterTransform=function(e,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i&&i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(e,this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){s(t,e)})):s(t)}))}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=(e._readableState,e._transformState);if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=r(6698),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},1445:(e,t,r)=>{e.exports=c;var n=r(8287).Buffer;c.WritableState=s;var i=r(5622);i.inherits=r(6698);var o=r(8310);function a(e,t,r){this.chunk=e,this.encoding=t,this.callback=r}function s(e,t){var r=(e=e||{}).highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=!1===e.decodeStrings;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){r?process.nextTick((function(){i(n)})):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}(e,0,n,t,i);else{var o=l(0,r);o||r.bufferProcessing||!r.buffer.length||function(e,t){t.bufferProcessing=!0;for(var r=0;r<t.buffer.length;r++){var n=t.buffer[r],i=n.chunk,o=n.encoding,a=n.callback;if(u(e,t,t.objectMode?1:i.length,i,o,a),t.writing){r++;break}}t.bufferProcessing=!1,r<t.buffer.length?t.buffer=t.buffer.slice(r):t.buffer.length=0}(e,r),n?process.nextTick((function(){f(e,r,o,i)})):f(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function c(e){var t=r(1511);if(!(this instanceof c||this instanceof t))return new c(e);this._writableState=new s(e,this),this.writable=!0,o.call(this)}function u(e,t,r,n,i,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,e._write(n,i,t.onwrite),t.sync=!1}function f(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),n(),r&&h(e,t)}function l(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function h(e,t){var r=l(0,t);return r&&(t.finished=!0,e.emit("finish")),r}i.inherits(c,o),c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},c.prototype.write=function(e,t,r){var i=this._writableState,o=!1;return"function"==typeof t&&(r=t,t=null),n.isBuffer(e)?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?function(e,t,r){var n=new Error("write after end");e.emit("error",n),process.nextTick((function(){r(n)}))}(this,0,r):function(e,t,r,i){var o=!0;if(!n.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");e.emit("error",a),process.nextTick((function(){i(a)})),o=!1}return o}(this,i,e,r)&&(o=function(e,t,r,i,o){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new n(t,r)),t}(t,r,i),n.isBuffer(r)&&(i="buffer");var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;return c||(t.needDrain=!0),t.writing?t.buffer.push(new a(r,i,o)):u(e,t,s,r,i,o),c}(this,i,e,t,r)),o},c.prototype._write=function(e,t,r){r(new Error("not implemented"))},c.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.ending||n.finished||function(e,t,r){t.ending=!0,h(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0}(this,n,r)}},1963:(e,t,r)=>{var n=r(8310);(t=e.exports=r(7349)).Stream=n,t.Readable=t,t.Writable=r(1445),t.Duplex=r(1511),t.Transform=r(3497),t.PassThrough=r(1643),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=r(8310))},9234:(e,t,r)=>{var n=r(8287).Buffer,i=n.isEncoding||function(e){switch(e&&e.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}},o=t.I=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=c;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function c(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!((n=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n,i=e.length;if(this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),i=(t+=e.toString(this.encoding,0,i)).length-1,(n=t.charCodeAt(i))>=55296&&n<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},3493:e=>{e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}return e}},4602:(e,t,r)=>{var n=r(8287).Buffer;function i(e){return void 0!==e&&""!==e}function o(e,t){return Object.hasOwnProperty.call(e,t)}function a(e,t){return Object.hasOwnProperty.call(e,t)&&t}t.compare=function(e,t){if(n.isBuffer(e)){for(var r=Math.min(e.length,t.length),i=0;i<r;i++){var o=e[i]-t[i];if(o)return o}return e.length-t.length}return e<t?-1:e>t?1:0};var s=t.lowerBoundKey=function(e){return a(e,"gt")||a(e,"gte")||a(e,"min")||(e.reverse?a(e,"end"):a(e,"start"))||void 0},c=t.lowerBound=function(e,t){var r=s(e);return r?e[r]:t},u=t.lowerBoundInclusive=function(e){return!o(e,"gt")},f=t.upperBoundInclusive=function(e){return!o(e,"lt")},l=t.lowerBoundExclusive=function(e){return!u(e)},h=t.upperBoundExclusive=function(e){return!f(e)},p=t.upperBoundKey=function(e){return a(e,"lt")||a(e,"lte")||a(e,"max")||(e.reverse?a(e,"start"):a(e,"end"))||void 0},d=t.upperBound=function(e,t){var r=p(e);return r?e[r]:t};function g(e){return e}t.start=function(e,t){return e.reverse?d(e,t):c(e,t)},t.end=function(e,t){return e.reverse?c(e,t):d(e,t)},t.startInclusive=function(e){return e.reverse?f(e):u(e)},t.endInclusive=function(e){return e.reverse?u(e):f(e)},t.toLtgt=function(e,r,n,i,a){r=r||{},n=n||g;var s=arguments.length>3,c=t.lowerBoundKey(e),u=t.upperBoundKey(e);return c?"gt"===c?r.gt=n(e.gt,!1):r.gte=n(e[c],!1):s&&(r.gte=n(i,!1)),u?"lt"===u?r.lt=n(e.lt,!0):r.lte=n(e[u],!0):s&&(r.lte=n(a,!0)),null!=e.reverse&&(r.reverse=!!e.reverse),o(r,"max")&&delete r.max,o(r,"min")&&delete r.min,o(r,"start")&&delete r.start,o(r,"end")&&delete r.end,r},t.contains=function(e,r,n){n=n||t.compare;var o=c(e);if(i(o)&&((a=n(r,o))<0||0===a&&l(e)))return!1;var a,s=d(e);return!i(s)||!((a=n(r,s))>0||0===a&&h(e))},t.filter=function(e,r){return function(n){return t.contains(e,n,r)}}},9211:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:e===r||!(!t(e)||!t(r))}},7653:(e,t,r)=>{"use strict";var n=r(8452),i=r(487),o=r(9211),a=r(9394),s=r(6576),c=i(a(),Object);n(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},9394:(e,t,r)=>{"use strict";var n=r(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:n}},6576:(e,t,r)=>{"use strict";var n=r(9394),i=r(8452);e.exports=function(){var e=n();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},h={$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},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)h.push(String(g));if(n&&e.length>0)for(var y=0;y<e.length;++y)h.push(String(y));else for(var m in e)d&&"prototype"===m||!i.call(e,m)||h.push(String(m));if(c)for(var b=function(e){if("undefined"==typeof window||!p)return l(e);try{return l(e)}catch(e){return!1}}(e),v=0;v<f.length;++v)b&&"constructor"===f[v]||!i.call(e,f[v])||h.push(f[v]);return h}}e.exports=n},1189:(e,t,r)=>{"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,a=o?function(e){return o(e)}:r(8875),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(n.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},8403:(e,t,r)=>{"use strict";var n=r(1189),i=r(1333)(),o=r(8075),a=Object,s=o("Array.prototype.push"),c=o("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=a(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var f=a(arguments[o]),l=n(f),h=i&&(Object.getOwnPropertySymbols||u);if(h)for(var p=h(f),d=0;d<p.length;++d){var g=p[d];c(f,g)&&s(l,g)}for(var y=0;y<l.length;++y){var m=l[y];if(c(f,m)){var b=f[m];r[m]=b}}}return r}},1514:(e,t,r)=>{"use strict";var n=r(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return e!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?n:Object.assign:n}},6788:e=>{e.exports=function(e,t){return parseInt(e.toString(),t||8)}},3519:(e,t,r)=>{var n=r(6587);function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(i),e.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},9805:(e,t)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var i in r)n(r,i)&&(e[i]=r[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,a;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(a=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},3269:e=>{"use strict";e.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16}},9681:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},4823:e=>{"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,i){var o=t,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^r[s])];return~e}},8411:(e,t,r)=>{"use strict";var n,i=r(9805),o=r(3665),a=r(3269),s=r(4823),c=r(4674),u=0,f=0,l=-2,h=2,p=8,d=286,g=30,y=19,m=2*d+1,b=15,v=3,w=258,_=w+v+1,E=42,k=103,x=113,S=666;function O(e,t){return e.msg=c[t],t}function R(e){return(e<<1)-(e>4?9:0)}function A(e){for(var t=e.length;--t>=0;)e[t]=0}function j(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function T(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,j(e.strm)}function I(e,t){e.pending_buf[e.pending++]=t}function L(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var r,n,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,u=e.window,f=e.w_mask,l=e.prev,h=e.strstart+w,p=u[o+a-1],d=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+a]===d&&u[r+a-1]===p&&u[r]===u[o]&&u[++r]===u[o+1]){o+=2,r++;do{}while(u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&u[++o]===u[++r]&&o<h);if(n=w-(h-o),o=h-w,n>a){if(e.match_start=t,a=n,n>=s)break;p=u[o+a-1],d=u[o+a]}}}while((t=l[t&f])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function M(e){var t,r,n,o,c,u,f,l,h,p,d=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=d+(d-_)){i.arraySet(e.window,e.window,d,d,0),e.match_start-=d,e.strstart-=d,e.block_start-=d,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=d?n-d:0}while(--r);t=r=d;do{n=e.prev[--t],e.prev[t]=n>=d?n-d:0}while(--r);o+=d}if(0===e.strm.avail_in)break;if(u=e.strm,f=e.window,l=e.strstart+e.lookahead,h=o,p=void 0,(p=u.avail_in)>h&&(p=h),r=0===p?0:(u.avail_in-=p,i.arraySet(f,u.input,u.next_in,p,l),1===u.state.wrap?u.adler=a(u.adler,f,p,l):2===u.state.wrap&&(u.adler=s(u.adler,f,p,l)),u.next_in+=p,u.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=v)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+v-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<v)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function N(e,t){for(var r,n;;){if(e.lookahead<_){if(M(e),e.lookahead<_&&t===u)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=v&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-_&&(e.match_length=B(e,r)),e.match_length>=v)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-v),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=v){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<v-1?e.strstart:v-1,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}function P(e,t){for(var r,n,i;;){if(e.lookahead<_){if(M(e),e.lookahead<_&&t===u)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=v&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=v-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-_&&(e.match_length=B(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===v&&e.strstart-e.match_start>4096)&&(e.match_length=v-1)),e.prev_length>=v&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-v,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-v),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+v-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=v-1,e.strstart++,n&&(T(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&T(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<v-1?e.strstart:v-1,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}function C(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function D(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=p,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*m),this.dyn_dtree=new i.Buf16(2*(2*g+1)),this.bl_tree=new i.Buf16(2*(2*y+1)),A(this.dyn_ltree),A(this.dyn_dtree),A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(b+1),this.heap=new i.Buf16(2*d+1),A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*d+1),A(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function U(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:x,e.adler=2===t.wrap?0:1,t.last_flush=u,o._tr_init(t),f):O(e,l)}function F(e){var t,r=U(e);return r===f&&((t=e.state).window_size=2*t.w_size,A(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=v-1,t.match_available=0,t.ins_h=0),r}function z(e,t,r,n,o,a){if(!e)return l;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),o<1||o>9||r!==p||n<8||n>15||t<0||t>9||a<0||a>4)return O(e,l);8===n&&(n=9);var c=new D;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=n,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+v-1)/v),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=r,F(e)}n=[new C(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(M(e),0===e.lookahead&&t===u)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,T(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-_&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(T(e,!1),e.strm.avail_out),1)})),new C(4,4,8,4,N),new C(4,5,16,8,N),new C(4,6,32,32,N),new C(4,4,16,16,P),new C(8,16,32,32,P),new C(8,16,128,128,P),new C(8,32,128,256,P),new C(32,128,258,1024,P),new C(32,258,258,4096,P)],t.deflateInit=function(e,t){return z(e,t,p,15,8,0)},t.deflateInit2=z,t.deflateReset=F,t.deflateResetKeep=U,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?l:(e.state.gzhead=t,f):l},t.deflate=function(e,t){var r,i,a,c;if(!e||!e.state||t>5||t<0)return e?O(e,l):l;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===S&&4!==t)return O(e,0===e.avail_out?-5:l);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===E)if(2===i.wrap)e.adler=0,I(i,31),I(i,139),I(i,8),i.gzhead?(I(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),I(i,255&i.gzhead.time),I(i,i.gzhead.time>>8&255),I(i,i.gzhead.time>>16&255),I(i,i.gzhead.time>>24&255),I(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),I(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(I(i,255&i.gzhead.extra.length),I(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(I(i,0),I(i,0),I(i,0),I(i,0),I(i,0),I(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),I(i,3),i.status=x);else{var h=p+(i.w_bits-8<<4)<<8;h|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(h|=32),h+=31-h%31,i.status=x,L(i,h),0!==i.strstart&&(L(i,e.adler>>>16),L(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),j(e),a=i.pending,i.pending!==i.pending_buf_size));)I(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),j(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),j(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,I(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=k)}else i.status=k;if(i.status===k&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&j(e),i.pending+2<=i.pending_buf_size&&(I(i,255&e.adler),I(i,e.adler>>8&255),e.adler=0,i.status=x)):i.status=x),0!==i.pending){if(j(e),0===e.avail_out)return i.last_flush=-1,f}else if(0===e.avail_in&&R(t)<=R(r)&&4!==t)return O(e,-5);if(i.status===S&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==u&&i.status!==S){var d=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(M(e),0===e.lookahead)){if(t===u)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,a,s=e.window;;){if(e.lookahead<=w){if(M(e),e.lookahead<=w&&t===u)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=v&&e.strstart>0&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){a=e.strstart+w;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<a);e.match_length=w-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=v?(r=o._tr_tally(e,1,e.match_length-v),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(T(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(T(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(T(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==d&&4!==d||(i.status=S),1===d||3===d)return 0===e.avail_out&&(i.last_flush=-1),f;if(2===d&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(A(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),j(e),0===e.avail_out))return i.last_flush=-1,f}return 4!==t?f:i.wrap<=0?1:(2===i.wrap?(I(i,255&e.adler),I(i,e.adler>>8&255),I(i,e.adler>>16&255),I(i,e.adler>>24&255),I(i,255&e.total_in),I(i,e.total_in>>8&255),I(i,e.total_in>>16&255),I(i,e.total_in>>24&255)):(L(i,e.adler>>>16),L(i,65535&e.adler)),j(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?f:1)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&69!==t&&73!==t&&91!==t&&t!==k&&t!==x&&t!==S?O(e,l):(e.state=null,t===x?O(e,-3):f):l},t.deflateSetDictionary=function(e,t){var r,n,o,s,c,u,h,p,d=t.length;if(!e||!e.state)return l;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==E||r.lookahead)return l;for(1===s&&(e.adler=a(e.adler,t,d,0)),r.wrap=0,d>=r.w_size&&(0===s&&(A(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new i.Buf8(r.w_size),i.arraySet(p,t,d-r.w_size,r.w_size,0),t=p,d=r.w_size),c=e.avail_in,u=e.next_in,h=e.input,e.avail_in=d,e.next_in=0,e.input=t,M(r);r.lookahead>=v;){n=r.strstart,o=r.lookahead-(v-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+v-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=v-1,M(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=v-1,r.match_available=0,e.next_in=u,e.input=h,e.avail_in=c,r.wrap=s,f},t.deflateInfo="pako deflate (from Nodeca project)"},7293:e=>{"use strict";e.exports=function(e,t){var r,n,i,o,a,s,c,u,f,l,h,p,d,g,y,m,b,v,w,_,E,k,x,S,O;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),o=e.next_out,O=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=r.dmax,u=r.wsize,f=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,g=r.lencode,y=r.distcode,m=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=g[p&m];t:for(;;){if(p>>>=w=v>>>24,d-=w,0==(w=v>>>16&255))O[o++]=65535&v;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}v=g[(65535&v)+(p&(1<<w)-1)];continue t}for(_=65535&v,(w&=15)&&(d<w&&(p+=S[n++]<<d,d+=8),_+=p&(1<<w)-1,p>>>=w,d-=w),d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),v=y[p&b];;){if(p>>>=w=v>>>24,d-=w,16&(w=v>>>16&255)){if(E=65535&v,d<(w&=15)&&(p+=S[n++]<<d,(d+=8)<w&&(p+=S[n++]<<d,d+=8)),(E+=p&(1<<w)-1)>c){e.msg="invalid distance too far back",r.mode=30;break e}if(p>>>=w,d-=w,E>(w=o-a)){if((w=E-w)>f&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(k=0,x=h,0===l){if(k+=u-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}else if(l<w){if(k+=u+l-w,(w-=l)<_){_-=w;do{O[o++]=h[k++]}while(--w);if(k=0,l<_){_-=w=l;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}}}else if(k+=l-w,w<_){_-=w;do{O[o++]=h[k++]}while(--w);k=o-E,x=O}for(;_>2;)O[o++]=x[k++],O[o++]=x[k++],O[o++]=x[k++],_-=3;_&&(O[o++]=x[k++],_>1&&(O[o++]=x[k++]))}else{k=o-E;do{O[o++]=O[k++],O[o++]=O[k++],O[o++]=O[k++],_-=3}while(_>2);_&&(O[o++]=O[k++],_>1&&(O[o++]=O[k++]))}break}if(64&w){e.msg="invalid distance code",r.mode=30;break e}v=y[(65535&v)+(p&(1<<w)-1)]}}break}}while(n<i&&o<s);n-=_=d>>3,p&=(1<<(d-=_<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=d}},1447:(e,t,r)=>{"use strict";var n=r(9805),i=r(3269),o=r(4823),a=r(7293),s=r(1998),c=0,u=-2,f=1,l=12,h=30,p=852,d=592;function g(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function m(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(p),t.distcode=t.distdyn=new n.Buf32(d),t.sane=1,t.back=-1,c):u}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,m(e)):u}function v(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?u:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,b(e))):u}function w(e,t){var r,n;return e?(n=new y,e.state=n,n.window=null,(r=v(e,t))!==c&&(e.state=null),r):u}var _,E,k=!0;function x(e){if(k){var t;for(_=new n.Buf32(512),E=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,E,0,e.work,{bits:5}),k=!1}e.lencode=_,e.lenbits=9,e.distcode=E,e.distbits=5}function S(e,t,r,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new n.Buf8(a.wsize)),i>=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),n.arraySet(a.window,t,r-i,o,a.wnext),(i-=o)?(n.arraySet(a.window,t,r-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=b,t.inflateReset2=v,t.inflateResetKeep=m,t.inflateInit=function(e){return w(e,15)},t.inflateInit2=w,t.inflate=function(e,t){var r,p,d,y,m,b,v,w,_,E,k,O,R,A,j,T,I,L,B,M,N,P,C,D,U=0,F=new n.Buf8(4),z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return u;(r=e.state).mode===l&&(r.mode=13),m=e.next_out,d=e.output,v=e.avail_out,y=e.next_in,p=e.input,b=e.avail_in,w=r.hold,_=r.bits,E=b,k=v,P=c;e:for(;;)switch(r.mode){case f:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(2&r.wrap&&35615===w){r.check=0,F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0),w=0,_=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=h;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=h;break}if(_-=4,N=8+(15&(w>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){e.msg="invalid window size",r.mode=h;break}r.dmax=1<<N,e.adler=r.check=1,r.mode=512&w?10:l,w=0,_=0;break;case 2:for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=h;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=h;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0)),w=0,_=0,r.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,F[2]=w>>>16&255,F[3]=w>>>24&255,r.check=o(r.check,F,4,0)),w=0,_=0,r.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0)),w=0,_=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(F[0]=255&w,F[1]=w>>>8&255,r.check=o(r.check,F,2,0)),w=0,_=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((O=r.length)>b&&(O=b),O&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,p,y,O,N)),512&r.flags&&(r.check=o(r.check,p,O,y)),b-=O,y+=O,r.length-=O),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===b)break e;O=0;do{N=p[y+O++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N))}while(N&&O<b);if(512&r.flags&&(r.check=o(r.check,p,O,y)),b-=O,y+=O,N)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===b)break e;O=0;do{N=p[y+O++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N))}while(N&&O<b);if(512&r.flags&&(r.check=o(r.check,p,O,y)),b-=O,y+=O,N)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=h;break}w=0,_=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=l;break;case 10:for(;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}e.adler=r.check=g(w),w=0,_=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=m,e.avail_out=v,e.next_in=y,e.avail_in=b,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=l;case l:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6===t){w>>>=2,_-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=h}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=h;break}if(r.length=65535&w,w=0,_=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(O=r.length){if(O>b&&(O=b),O>v&&(O=v),0===O)break e;n.arraySet(d,p,y,O,m),b-=O,y+=O,v-=O,m+=O,r.length-=O;break}r.mode=l;break;case 17:for(;_<14;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=h;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.lens[z[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[z[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},P=s(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,P){e.msg="invalid code lengths set",r.mode=h;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;T=(U=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(I<16)w>>>=j,_-=j,r.lens[r.have++]=I;else{if(16===I){for(D=j+2;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(w>>>=j,_-=j,0===r.have){e.msg="invalid bit length repeat",r.mode=h;break}N=r.lens[r.have-1],O=3+(3&w),w>>>=2,_-=2}else if(17===I){for(D=j+3;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}_-=j,N=0,O=3+(7&(w>>>=j)),w>>>=3,_-=3}else{for(D=j+7;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}_-=j,N=0,O=11+(127&(w>>>=j)),w>>>=7,_-=7}if(r.have+O>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=h;break}for(;O--;)r.lens[r.have++]=N}}if(r.mode===h)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=h;break}if(r.lenbits=9,C={bits:r.lenbits},P=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,P){e.msg="invalid literal/lengths set",r.mode=h;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},P=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,P){e.msg="invalid distances set",r.mode=h;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(b>=6&&v>=258){e.next_out=m,e.avail_out=v,e.next_in=y,e.avail_in=b,r.hold=w,r.bits=_,a(e,k),m=e.next_out,d=e.output,v=e.avail_out,y=e.next_in,p=e.input,b=e.avail_in,w=r.hold,_=r.bits,r.mode===l&&(r.back=-1);break}for(r.back=0;T=(U=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,I=65535&U,!((j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(T&&!(240&T)){for(L=j,B=T,M=I;T=(U=r.lencode[M+((w&(1<<L+B)-1)>>L)])>>>16&255,I=65535&U,!(L+(j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}w>>>=L,_-=L,r.back+=L}if(w>>>=j,_-=j,r.back+=j,r.length=I,0===T){r.mode=26;break}if(32&T){r.back=-1,r.mode=l;break}if(64&T){e.msg="invalid literal/length code",r.mode=h;break}r.extra=15&T,r.mode=22;case 22:if(r.extra){for(D=r.extra;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;T=(U=r.distcode[w&(1<<r.distbits)-1])>>>16&255,I=65535&U,!((j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(!(240&T)){for(L=j,B=T,M=I;T=(U=r.distcode[M+((w&(1<<L+B)-1)>>L)])>>>16&255,I=65535&U,!(L+(j=U>>>24)<=_);){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}w>>>=L,_-=L,r.back+=L}if(w>>>=j,_-=j,r.back+=j,64&T){e.msg="invalid distance code",r.mode=h;break}r.offset=I,r.extra=15&T,r.mode=24;case 24:if(r.extra){for(D=r.extra;_<D;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=h;break}r.mode=25;case 25:if(0===v)break e;if(O=k-v,r.offset>O){if((O=r.offset-O)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=h;break}O>r.wnext?(O-=r.wnext,R=r.wsize-O):R=r.wnext-O,O>r.length&&(O=r.length),A=r.window}else A=d,R=m-r.offset,O=r.length;O>v&&(O=v),v-=O,r.length-=O;do{d[m++]=A[R++]}while(--O);0===r.length&&(r.mode=21);break;case 26:if(0===v)break e;d[m++]=r.length,v--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===b)break e;b--,w|=p[y++]<<_,_+=8}if(k-=v,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?o(r.check,d,k,m-k):i(r.check,d,k,m-k)),k=v,(r.flags?w:g(w))!==r.check){e.msg="incorrect data check",r.mode=h;break}w=0,_=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===b)break e;b--,w+=p[y++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=h;break}w=0,_=0}r.mode=29;case 29:P=1;break e;case h:P=-3;break e;case 31:return-4;default:return u}return e.next_out=m,e.avail_out=v,e.next_in=y,e.avail_in=b,r.hold=w,r.bits=_,(r.wsize||k!==e.avail_out&&r.mode<h&&(r.mode<27||4!==t))&&S(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(E-=e.avail_in,k-=e.avail_out,e.total_in+=E,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?o(r.check,d,k,e.next_out-k):i(r.check,d,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(r.mode===l?128:0)+(20===r.mode||15===r.mode?256:0),(0===E&&0===k||4===t)&&P===c&&(P=-5),P)},t.inflateEnd=function(e){if(!e||!e.state)return u;var t=e.state;return t.window&&(t.window=null),e.state=null,c},t.inflateGetHeader=function(e,t){var r;return e&&e.state&&2&(r=e.state).wrap?(r.head=t,t.done=!1,c):u},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?u:11===r.mode&&i(1,t,n,0)!==r.check?-3:S(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,c):u},t.inflateInfo="pako inflate (from Nodeca project)"},1998:(e,t,r)=>{"use strict";var n=r(9805),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,c,u,f,l,h){var p,d,g,y,m,b,v,w,_,E=h.bits,k=0,x=0,S=0,O=0,R=0,A=0,j=0,T=0,I=0,L=0,B=null,M=0,N=new n.Buf16(16),P=new n.Buf16(16),C=null,D=0;for(k=0;k<=15;k++)N[k]=0;for(x=0;x<c;x++)N[t[r+x]]++;for(R=E,O=15;O>=1&&0===N[O];O--);if(R>O&&(R=O),0===O)return u[f++]=20971520,u[f++]=20971520,h.bits=1,0;for(S=1;S<O&&0===N[S];S++);for(R<S&&(R=S),T=1,k=1;k<=15;k++)if(T<<=1,(T-=N[k])<0)return-1;if(T>0&&(0===e||1!==O))return-1;for(P[1]=0,k=1;k<15;k++)P[k+1]=P[k]+N[k];for(x=0;x<c;x++)0!==t[r+x]&&(l[P[t[r+x]]++]=x);if(0===e?(B=C=l,b=19):1===e?(B=i,M-=257,C=o,D-=257,b=256):(B=a,C=s,b=-1),L=0,x=0,k=S,m=f,A=R,j=0,g=-1,y=(I=1<<R)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){v=k-j,l[x]<b?(w=0,_=l[x]):l[x]>b?(w=C[D+l[x]],_=B[M+l[x]]):(w=96,_=0),p=1<<k-j,S=d=1<<A;do{u[m+(L>>j)+(d-=p)]=v<<24|w<<16|_}while(0!==d);for(p=1<<k-1;L&p;)p>>=1;if(0!==p?(L&=p-1,L+=p):L=0,x++,0==--N[k]){if(k===O)break;k=t[r+l[x]]}if(k>R&&(L&y)!==g){for(0===j&&(j=R),m+=S,T=1<<(A=k-j);A+j<O&&!((T-=N[A+j])<=0);)A++,T<<=1;if(I+=1<<A,1===e&&I>852||2===e&&I>592)return 1;u[g=L&y]=R<<24|A<<16|m-f}}return 0!==L&&(u[m+L]=k-j<<24|64<<16),h.bits=R,0}},4674:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},3665:(e,t,r)=>{"use strict";var n=r(9805);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=256,a=286,s=30,c=15,u=16,f=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],h=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);i(d);var g=new Array(60);i(g);var y=new Array(512);i(y);var m=new Array(256);i(m);var b=new Array(29);i(b);var v,w,_,E=new Array(s);function k(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function S(e){return e<256?y[e]:y[256+(e>>>7)]}function O(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function R(e,t,r){e.bi_valid>u-r?(e.bi_buf|=t<<e.bi_valid&65535,O(e,e.bi_buf),e.bi_buf=t>>u-e.bi_valid,e.bi_valid+=r-u):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function A(e,t,r){R(e,r[2*t],r[2*t+1])}function j(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function T(e,t,r){var n,i,o=new Array(c+1),a=0;for(n=1;n<=c;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=j(o[s]++,s))}}function I(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function L(e){e.bi_valid>8?O(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function B(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function M(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&B(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!B(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function N(e,t,r){var n,i,a,s,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===n?A(e,i,t):(A(e,(a=m[i])+o+1,t),0!==(s=f[a])&&R(e,i-=b[a],s),A(e,a=S(--n),r),0!==(s=l[a])&&R(e,n-=E[a],s))}while(c<e.last_lit);A(e,256,t)}function P(e,t){var r,n,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,u=t.stat_desc.elems,f=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=f=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=f,r=e.heap_len>>1;r>=1;r--)M(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,M(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,a,s,u=t.dyn_tree,f=t.max_code,l=t.stat_desc.static_tree,h=t.stat_desc.has_stree,p=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,g=t.stat_desc.max_length,y=0;for(o=0;o<=c;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>g&&(o=g,y++),u[2*n+1]=o,n>f||(e.bl_count[o]++,a=0,n>=d&&(a=p[n-d]),s=u[2*n],e.opt_len+=s*(o+a),h&&(e.static_len+=s*(l[2*n+1]+a)));if(0!==y){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,y-=2}while(y>0);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>f||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),T(o,f,e.bl_count)}function C(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=t[2*(n+1)+1],++s<c&&i===a||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function D(e,t,r){var n,i,o=-1,a=t[1],s=0,c=7,u=4;for(0===a&&(c=138,u=3),n=0;n<=r;n++)if(i=a,a=t[2*(n+1)+1],!(++s<c&&i===a)){if(s<u)do{A(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(A(e,i,e.bl_tree),s--),A(e,16,e.bl_tree),R(e,s-3,2)):s<=10?(A(e,17,e.bl_tree),R(e,s-3,3)):(A(e,18,e.bl_tree),R(e,s-11,7));s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4)}}i(E);var U=!1;function F(e,t,r,i){R(e,0+(i?1:0),3),function(e,t,r,i){L(e),O(e,r),O(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}t._tr_init=function(e){U||(function(){var e,t,r,n,i,o=new Array(c+1);for(r=0,n=0;n<28;n++)for(b[n]=r,e=0;e<1<<f[n];e++)m[r++]=n;for(m[r-1]=n,i=0,n=0;n<16;n++)for(E[n]=i,e=0;e<1<<l[n];e++)y[i++]=n;for(i>>=7;n<s;n++)for(E[n]=i<<7,e=0;e<1<<l[n]-7;e++)y[256+i++]=n;for(t=0;t<=c;t++)o[t]=0;for(e=0;e<=143;)d[2*e+1]=8,e++,o[8]++;for(;e<=255;)d[2*e+1]=9,e++,o[9]++;for(;e<=279;)d[2*e+1]=7,e++,o[7]++;for(;e<=287;)d[2*e+1]=8,e++,o[8]++;for(T(d,287,o),e=0;e<s;e++)g[2*e+1]=5,g[2*e]=j(e,5);v=new k(d,f,257,a,c),w=new k(g,l,0,s,c),_=new k(new Array(0),h,0,19,7)}(),U=!0),e.l_desc=new x(e.dyn_ltree,v),e.d_desc=new x(e.dyn_dtree,w),e.bl_desc=new x(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,I(e)},t._tr_stored_block=F,t._tr_flush_block=function(e,t,r,n){var i,a,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),s=function(e){var t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*p[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||a===i?(R(e,2+(n?1:0),3),N(e,d,g)):(R(e,4+(n?1:0),3),function(e,t,r,n){var i;for(R(e,t-257,5),R(e,r-1,5),R(e,n-4,4),i=0;i<n;i++)R(e,e.bl_tree[2*p[i]+1],3);D(e,e.dyn_ltree,t-1),D(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),N(e,e.dyn_ltree,e.dyn_dtree)),I(e),n&&L(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(m[r]+o+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){R(e,2,3),A(e,256,d),function(e){16===e.bi_valid?(O(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},4442:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},7975:e=>{"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,o=-1,a=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var n={resolve:function(){for(var e,n="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a;o>=0?a=arguments[o]:(void 0===e&&(e=process.cwd()),a=e),t(a),0!==a.length&&(n=a+"/"+n,i=47===a.charCodeAt(0))}return n=r(n,!i),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,a=o-i,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var c=r.length-s,u=a<c?a:c,f=-1,l=0;l<=u;++l){if(l===u){if(c>u){if(47===r.charCodeAt(s+l))return r.slice(s+l+1);if(0===l)return r.slice(s+l)}else a>u&&(47===e.charCodeAt(i+l)?f=l:0===l&&(f=0));break}var h=e.charCodeAt(i+l);if(h!==r.charCodeAt(s+l))break;47===h&&(f=l)}var p="";for(l=i+f+1;l<=o;++l)l!==o&&47!==e.charCodeAt(l)||(0===p.length?p+="..":p+="/..");return p.length>0?p+r.slice(s+f):(s+=f,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,o=!0,a=e.length-1;a>=1;--a)if(47===(r=e.charCodeAt(a))){if(!o){i=a;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,i=0,o=-1,a=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!a){i=n+1;break}}else-1===c&&(a=!1,c=n+1),s>=0&&(u===r.charCodeAt(s)?-1==--s&&(o=n):(s=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!a){i=n+1;break}}else-1===o&&(a=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,o=!0,a=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(o=!1,i=s+1),46===c?-1===r?r=s:1!==a&&(a=1):-1!==r&&(a=-1);else if(!o){n=s+1;break}}return-1===r||-1===i||0===a||1===a&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),o=47===i;o?(r.root="/",n=1):n=0;for(var a=-1,s=0,c=-1,u=!0,f=e.length-1,l=0;f>=n;--f)if(47!==(i=e.charCodeAt(f)))-1===c&&(u=!1,c=f+1),46===i?-1===a?a=f:1!==l&&(l=1):-1!==a&&(l=-1);else if(!u){s=f+1;break}return-1===a||-1===c||0===l||1===l&&a===c-1&&a===s+1?-1!==c&&(r.base=r.name=0===s&&o?e.slice(1,c):e.slice(s,c)):(0===s&&o?(r.name=e.slice(1,a),r.base=e.slice(1,c)):(r.name=e.slice(s,a),r.base=e.slice(s,c)),r.ext=e.slice(a,c)),s>0?r.dir=e.slice(0,s-1):o&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},6578:e=>{"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},3225:e=>{"use strict";"undefined"==typeof process||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?e.exports={nextTick:function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick((function(){e.call(null,t)}));case 3:return process.nextTick((function(){e.call(null,t,r)}));case 4:return process.nextTick((function(){e.call(null,t,r,n)}));default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick((function(){e.apply(null,i)}))}}}:e.exports=process},9723:function(e){var t;t=function(){var e="function"==typeof Object.defineProperty?function(e,t,r){return Object.defineProperty(e,t,r),e}:function(e,t,r){return e[t]=r.value,e};return function(t,r,n,i){var o;if(i=function(e,t){var r="object"==typeof t,n=!r&&"string"==typeof t,i=function(e){return r?!!t[e]:!!n&&t.indexOf(e[0])>-1};return{enumerable:i("enumerable"),configurable:i("configurable"),writable:i("writable"),value:e}}(n,i),"object"==typeof r){for(o in r)Object.hasOwnProperty.call(r,o)&&(i.value=r[o],e(t,o,i));return t}return e(t,r,i)}},e.exports?e.exports=t():this.prr=t()},1630:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var c=e.length;s>0&&c>s&&(c=s);for(var u=0;u<c;++u){var f,l,h,p,d=e[u].replace(a,"%20"),g=d.indexOf(n);g>=0?(f=d.substr(0,g),l=d.substr(g+1)):(f=d,l=""),h=decodeURIComponent(f),p=decodeURIComponent(l),t(o,h)?Array.isArray(o[h])?o[h].push(p):o[h]=[o[h],p]:o[h]=p}return o}},9106:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(r):o+encodeURIComponent(t(e[i]))})).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},7186:(e,t,r)=>{"use strict";t.decode=t.parse=r(1630),t.encode=t.stringify=r(9106)},6048:e=>{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,o,a,s,c;if("string"==typeof t&&(o="not ",t.substr(0,4)===o)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var u=("number"!=typeof c&&(c=0),c+1>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");a='The "'.concat(e,'" ').concat(u," ").concat(i," ").concat(n(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" 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(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=t},5382:(e,t,r)=>{"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var i=r(5412),o=r(6708);r(6698)(u,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var c=a[s];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||process.nextTick(l,this)}function l(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},3600:(e,t,r)=>{"use strict";e.exports=i;var n=r(4610);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(6698)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},5412:(e,t,r)=>{"use strict";var n;e.exports=x,x.ReadableState=k,r(7007).EventEmitter;var i,o=function(e,t){return e.listeners(t).length},a=r(345),s=r(8287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(9838);i=u&&u.debuglog?u.debuglog("stream"):function(){};var f,l,h,p=r(2726),d=r(5896),g=r(5291).getHighWaterMark,y=r(6048).F,m=y.ERR_INVALID_ARG_TYPE,b=y.ERR_STREAM_PUSH_AFTER_EOF,v=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(x,a);var _=d.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,i){n=n||r(5382),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(3141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function x(e){if(n=n||r(5382),!(this instanceof x))return new x(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function S(e,t,r,n,o){i("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(i("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?j(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}}(e,u);else if(o||(a=function(e,t){var r,n;return n=t,s.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),a)_(e,a);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)u.endEmitted?_(e,new w):O(e,u,t,!0);else if(u.ended)_(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?O(e,u,t,!1):I(e,u)):O(e,u,t,!1)}else n||(u.reading=!1,I(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&j(e)),I(e,t)}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),x.prototype.destroy=d.destroy,x.prototype._undestroy=d.undestroy,x.prototype._destroy=function(e,t){t(e)},x.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},x.prototype.unshift=function(e){return S(this,e,null,!0,!1)},x.prototype.isPaused=function(){return!1===this._readableState.flowing},x.prototype.setEncoding=function(e){f||(f=r(3141).I);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var R=1073741824;function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(T,e))}function T(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function I(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(i("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function B(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function M(e){i("readable nexttick read 0"),e.read(0)}function N(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function C(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function D(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(U,t,e))}function U(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}x.prototype.read=function(e){i("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?D(this):j(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&D(this),null;var n,o=t.needReadable;return i("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&i("length less than watermark",o=!0),t.ended||t.reading?i("reading or ended",o=!1):o&&(i("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),null===(n=e>0?C(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&D(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){_(this,new v("_read()"))},x.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?d:s;function s(){i("onend"),e.end()}n.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",(function t(o,a){i("onunpipe"),o===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,i("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",c),e.removeListener("error",l),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",d),r.removeListener("data",f),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,P(e))}}(r);e.on("drain",c);var u=!1;function f(t){i("ondata");var o=e.write(t);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!u&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function l(t){i("onerror",t),d(),e.removeListener("error",l),0===o(e,"error")&&_(e,t)}function h(){e.removeListener("finish",p),d()}function p(){i("onfinish"),e.removeListener("close",h),d()}function d(){i("unpipe"),r.unpipe(e)}return r.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},x.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?j(this):n.reading||process.nextTick(M,this))),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(B,this),r},x.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(B,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(N,e,t))}(this,e)),e.paused=!1,this},x.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){i("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(x.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=r(2955)),l(this)}),Object.defineProperty(x.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(x.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(x.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),x._fromList=C,Object.defineProperty(x.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(x.from=function(e,t){return void 0===h&&(h=r(5157)),h(x,e,t)})},4610:(e,t,r)=>{"use strict";e.exports=f;var n=r(6048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(5382);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function f(e){if(!(this instanceof f))return new f(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",l)}function l(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(t,r){h(e,t,r)}))}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(6698)(f,c),f.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},f.prototype._transform=function(e,t,r){r(new i("_transform()"))},f.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},f.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},f.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},6708:(e,t,r)=>{"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(undefined),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var i;e.exports=x,x.WritableState=k;var o,a={deprecate:r(4643)},s=r(345),c=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=r(5896),l=r(5291).getHighWaterMark,h=r(6048).F,p=h.ERR_INVALID_ARG_TYPE,d=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,y=h.ERR_STREAM_CANNOT_PIPE,m=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,v=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=f.errorOrDestroy;function E(){}function k(e,t,o){i=i||r(5382),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=l(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(T,e,t),e._writableState.errorEmitted=!0,_(e,n)):(i(n),e._writableState.errorEmitted=!0,_(e,n),T(e,t))}(e,r,n,t,i);else{var o=A(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||R(e,r),n?process.nextTick(O,e,r,o,i):O(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function x(e){var t=this instanceof(i=i||r(5382));if(!t&&!o.call(x,this))return new x(e);this._writableState=new k(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),s.call(this)}function S(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function O(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),T(e,t)}function R(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,o=new Array(i),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,S(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback;if(S(e,t,!1,t.objectMode?1:u.length,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&_(e,r),t.prefinished=!0,e.emit("prefinish"),T(e,t)}))}function T(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(6698)(x,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===x&&e&&e._writableState instanceof k}})):o=function(e){return e instanceof this},x.prototype.pipe=function(){_(this,new y)},x.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,a=!i.objectMode&&(n=e,c.isBuffer(n)||n instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=E),i.ending?function(e,t){var r=new v;_(e,r),process.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i;return null===r?i=new b:"string"==typeof r||t.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i||(_(e,i),process.nextTick(n,i),!1)}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,s,n,i,o);return u}(this,i,a,e,t,r)),o},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new d("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,T(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=f.destroy,x.prototype._undestroy=f.undestroy,x.prototype._destroy=function(e,t){t(e)}},2955:(e,t,r)=>{"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(6238),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),f=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function d(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[f]=null,e[a]=null,e[s]=null,t(p(r,!1)))}}function g(e){process.nextTick(d,e)}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(t,r){process.nextTick((function(){e[c]?r(e[c]):t(p(void 0,!0))}))}));var r,n=this[f];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(p(void 0,!0)):t[l](r,n)}),n)}}(n,this));else{var i=this[h].read();if(null!==i)return Promise.resolve(p(i,!1));r=new Promise(this[l])}return this[f]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[h].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),y);e.exports=function(e){var t,r=Object.create(m,(i(t={},h,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var n=r[h].read();n?(r[f]=null,r[a]=null,r[s]=null,e(p(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[f]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[f]=null,r[a]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[f]=null,r[a]=null,r[s]=null,n(p(void 0,!0))),r[u]=!0})),e.on("readable",g.bind(null,r)),r}},2726:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=r(8287).Buffer,u=r(5340).inspect,f=u&&u.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,r,n,i=c.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,r=i,n=a,c.prototype.copy.call(t,r,n),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},5896:e=>{"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,i){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!i&&e?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(t,o,e)):process.nextTick(t,o,e):i?(process.nextTick(r,o),i(e)):process.nextTick(r,o)})),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},6238:(e,t,r)=>{"use strict";var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||f()},u=t._writableState&&t._writableState.finished,f=function(){s=!1,u=!0,a||o.call(t)},l=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(t)},p=function(e){o.call(t,e)},d=function(){var e;return a&&!l?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},g=function(){t.req.on("finish",f)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",f),t.on("abort",d),t.req?g():t.on("request",g)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",f),!1!==r.error&&t.on("error",p),t.on("close",d),function(){t.removeListener("complete",f),t.removeListener("abort",d),t.removeListener("request",g),t.req&&t.req.removeListener("finish",f),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("end",h),t.removeListener("error",p),t.removeListener("close",d)}}},5157:e=>{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},7758:(e,t,r)=>{"use strict";var n,i=r(6048).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var f,l=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var h=t.map((function(e,i){var o=i<t.length-1;return function(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===n&&(n=r(6238)),n(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}(e,o,i>0,(function(e){f||(f=e),e&&h.forEach(c),o||(h.forEach(c),l(f))}))}));return t.reduce(u)}},5291:(e,t,r)=>{"use strict";var n=r(6048).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},345:(e,t,r)=>{e.exports=r(7007).EventEmitter},8399:(e,t,r)=>{(t=e.exports=r(5412)).Stream=t,t.Readable=t,t.Writable=r(6708),t.Duplex=r(5382),t.Transform=r(4610),t.PassThrough=r(3600),t.finished=r(6238),t.pipeline=r(7758)},2861:(e,t,r)=>{var n=r(8287),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},6897:(e,t,r)=>{"use strict";var n=r(453),i=r(41),o=r(592)(),a=r(5795),s=r(9675),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&a){var f=a(e,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(u=!1)}return(n||u||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},8310:(e,t,r)=>{e.exports=i;var n=r(7007).EventEmitter;function i(){n.call(this)}r(6698)(i,n),i.Readable=r(5412),i.Writable=r(6708),i.Duplex=r(5382),i.Transform=r(4610),i.PassThrough=r(3600),i.finished=r(6238),i.pipeline=r(7758),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},2980:(e,t)=>{var r=t.range=function(e){return null==e?{}:"string"==typeof r?{min:r,max:r+"ÿ"}:e},n=(t.prefix=function(e,r,n){var i={};return n=n||"ÿ",(e=t.range(e))instanceof RegExp||"function"==typeof e?(i.min=r,i.max=r+n,i.inner=function(t){var n=t.substring(r.length);return e.test?e.test(n):e(n)}):"object"==typeof e&&(i.min=r+(e.min||e.start||""),i.max=r+(e.max||e.end||n||"~"),i.reverse=!!e.reverse),i},t.checker=function(e){return e||(e={}),"string"==typeof e?function(t){return 0==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:"object"==typeof e?function(t){var r=e.min||e.start,n=e.max||e.end;return t=String(t),(!r||t>=r)&&(!n||t<=n)&&(!e.inner||(e.inner.test?e.inner.test(t):e.inner(t)))}:"function"==typeof e?e:void 0});t.satisfies=function(e,t){return n(t)(e)}},3141:(e,t,r)=>{"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.I=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},4527:(e,t,r)=>{var n=r(8287).Buffer;e.exports=function(e){return"function"==typeof n._augment&&n.TYPED_ARRAY_SUPPORT?n._augment(e):new n(e)}},9656:(e,t)=>{var r,n,i,o=void 0,a=(r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return r.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),s=Math.LN2,c=Math.abs,u=Math.floor,f=Math.log,l=Math.min,h=Math.pow,p=Math.round;function d(e){if(g&&i){var t,r=g(e);for(t=0;t<r.length;t+=1)i(e,r[t],{value:e[r[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,r){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return a.HasProperty(r,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,r.get),a.HasProperty(r,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,r.set),a.HasProperty(r,"value")&&(e[t]=r.value),e};var g=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)a.HasOwnProperty(e,t)&&r.push(t);return r};function y(e,t){var r=32-t;return e<<r>>r}function m(e,t){var r=32-t;return e<<r>>>r}function b(e){return[255&e]}function v(e){return y(e[0],8)}function w(e){return[255&e]}function _(e){return m(e[0],8)}function E(e){return[(e=p(Number(e)))<0?0:e>255?255:255&e]}function k(e){return[e>>8&255,255&e]}function x(e){return y(e[0]<<8|e[1],16)}function S(e){return[e>>8&255,255&e]}function O(e){return m(e[0]<<8|e[1],16)}function R(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function A(e){return y(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function j(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function T(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function I(e,t,r){var n,i,o,a,p,d,g,y=(1<<t-1)-1;function m(e){var t=u(e),r=e-t;return r<.5?t:r>.5||t%2?t+1:t}for(e!=e?(i=(1<<t)-1,o=h(2,r-1),n=0):e===1/0||e===-1/0?(i=(1<<t)-1,o=0,n=e<0?1:0):0===e?(i=0,o=0,n=1/e==-1/0?1:0):(n=e<0,(e=c(e))>=h(2,1-y)?(i=l(u(f(e)/s),1023),(o=m(e/h(2,i)*h(2,r)))/h(2,r)>=2&&(i+=1,o=1),i>y?(i=(1<<t)-1,o=0):(i+=y,o-=h(2,r))):(i=0,o=m(e/h(2,1-y-r)))),p=[],a=r;a;a-=1)p.push(o%2?1:0),o=u(o/2);for(a=t;a;a-=1)p.push(i%2?1:0),i=u(i/2);for(p.push(n?1:0),p.reverse(),d=p.join(""),g=[];d.length;)g.push(parseInt(d.substring(0,8),2)),d=d.substring(8);return g}function L(e,t,r){var n,i,o,a,s,c,u,f,l=[];for(n=e.length;n;n-=1)for(o=e[n-1],i=8;i;i-=1)l.push(o%2?1:0),o>>=1;return l.reverse(),a=l.join(""),s=(1<<t-1)-1,c=parseInt(a.substring(0,1),2)?-1:1,u=parseInt(a.substring(1,1+t),2),f=parseInt(a.substring(1+t),2),u===(1<<t)-1?0!==f?NaN:c*(1/0):u>0?c*h(2,u-s)*(1+f/h(2,r)):0!==f?c*h(2,-(s-1))*(f/h(2,r)):c<0?-0:0}function B(e){return L(e,11,52)}function M(e){return I(e,11,52)}function N(e){return L(e,8,23)}function P(e){return I(e,8,23)}!function(){var e=function(e){if((e=a.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;d(this)};t.Az=t.Az||e;var r=function(){};function n(t,n,s){var c;return c=function(t,r,n){var o,s,u,f;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===c)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)this._setter(u,o._getter(u));else if("object"!=typeof arguments[0]||arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof e||"ArrayBuffer"===a.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=t,this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=a.ToUint32(n),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(s=arguments[0],this.length=a.ToUint32(s.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0,u=0;u<this.length;u+=1)f=s[u],this._setter(u,Number(f));else{if(this.length=a.ToInt32(arguments[0]),n<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new e(this.byteLength),this.byteOffset=0}this.constructor=c,d(this),function(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)r(t)}function r(t){i(e,t,{get:function(){return e._getter(t)},set:function(r){e._setter(t,r)},enumerable:!0,configurable:!1})}}(this)},c.prototype=new r,c.prototype.BYTES_PER_ELEMENT=t,c.prototype._pack=n,c.prototype._unpack=s,c.BYTES_PER_ELEMENT=t,c.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var t,r,n=[];for(t=0,r=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,r+=1)n.push(this.buffer._bytes[r]);return this._unpack(n)},c.prototype.get=c.prototype._getter,c.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=a.ToUint32(e))>=this.length)return o;var r,n,i=this._pack(t);for(r=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;r<this.BYTES_PER_ELEMENT;r+=1,n+=1)this.buffer._bytes[n]=i[r]},c.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var r,n,i,o,s,c,u,f,l,h;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(r=arguments[0],(i=a.ToUint32(arguments[1]))+r.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(f=this.byteOffset+i*this.BYTES_PER_ELEMENT,l=r.length*this.BYTES_PER_ELEMENT,r.buffer===this.buffer){for(h=[],s=0,c=r.byteOffset;s<l;s+=1,c+=1)h[s]=r.buffer._bytes[c];for(s=0,u=f;s<l;s+=1,u+=1)this.buffer._bytes[u]=h[s]}else for(s=0,c=r.byteOffset,u=f;s<l;s+=1,c+=1,u+=1)this.buffer._bytes[u]=r.buffer._bytes[c]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(n=arguments[0],o=a.ToUint32(n.length),(i=a.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(s=0;s<o;s+=1)c=n[s],this._setter(i+s,Number(c))}},c.prototype.subarray=function(e,t){function r(e,t,r){return e<t?t:e>r?r:e}e=a.ToInt32(e),t=a.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=r(e,0,this.length);var n=(t=r(t,0,this.length))-e;return n<0&&(n=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,n)},c}var s=n(1,b,v),c=n(1,w,_),u=n(1,E,_),f=n(2,k,x),l=n(2,S,O),h=n(4,R,A),p=n(4,j,T),g=n(4,P,N),y=n(8,M,B);t.fo=t.fo||s,t.SE=t.SE||c,t.ER=t.ER||u,t.ss=t.ss||f,t.hR=t.hR||l,t.GM=t.GM||h,t.bt=t.bt||p,t.l6=t.l6||g,t.aQ=t.aQ||y}(),function(){function e(e,t){return a.IsCallable(e.get)?e.get(t):e[t]}var r,n=(r=new t.hR([4660]),18===e(new t.SE(r.buffer),0)),i=function(e,r,n){if(0===arguments.length)e=new t.Az(0);else if(!(e instanceof t.Az||"ArrayBuffer"===a.Class(e)))throw new TypeError("TypeError");if(this.buffer=e||new t.Az(0),this.byteOffset=a.ToUint32(r),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:a.ToUint32(n),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");d(this)};function o(r){return function(i,o){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");i+=this.byteOffset;var s,c=new t.SE(this.buffer,i,r.BYTES_PER_ELEMENT),u=[];for(s=0;s<r.BYTES_PER_ELEMENT;s+=1)u.push(e(c,s));return Boolean(o)===Boolean(n)&&u.reverse(),e(new r(new t.SE(u).buffer),0)}}function s(r){return function(i,o,s){if((i=a.ToUint32(i))+r.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var c,u=new r([o]),f=new t.SE(u.buffer),l=[];for(c=0;c<r.BYTES_PER_ELEMENT;c+=1)l.push(e(f,c));Boolean(s)===Boolean(n)&&l.reverse(),new t.SE(this.buffer,i,r.BYTES_PER_ELEMENT).set(l)}}i.prototype.getUint8=o(t.SE),i.prototype.getInt8=o(t.fo),i.prototype.getUint16=o(t.hR),i.prototype.getInt16=o(t.ss),i.prototype.getUint32=o(t.bt),i.prototype.getInt32=o(t.GM),i.prototype.getFloat32=o(t.l6),i.prototype.getFloat64=o(t.aQ),i.prototype.setUint8=s(t.SE),i.prototype.setInt8=s(t.fo),i.prototype.setUint16=s(t.hR),i.prototype.setInt16=s(t.ss),i.prototype.setUint32=s(t.bt),i.prototype.setInt32=s(t.GM),i.prototype.setFloat32=s(t.l6),i.prototype.setFloat64=s(t.aQ),t.U$=t.U$||i}()},1270:function(e,t,r){var n;e=r.nmd(e),function(i){t&&t.nodeType,e&&e.nodeType;var o="object"==typeof r.g&&r.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,c=36,u=26,f=38,l=700,h=/^xn--/,p=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=c-1,m=Math.floor,b=String.fromCharCode;function v(e){throw new RangeError(g[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function _(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(d,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function k(e){return w(e,(function(e){var t="";return e>65535&&(t+=b((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+b(e)})).join("")}function x(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,r){var n=0;for(e=r?m(e/l):e>>1,e+=m(e/t);e>y*u>>1;n+=c)e=m(e/y);return m(n+(y+1)*e/(e+f))}function O(e){var t,r,n,i,o,a,f,l,h,p,d,g=[],y=e.length,b=0,w=128,_=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=b,a=1,f=c;i>=y&&v("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:c)>=c||l>m((s-b)/a))&&v("overflow"),b+=l*a,!(l<(h=f<=_?1:f>=_+u?u:f-_));f+=c)a>m(s/(p=c-h))&&v("overflow"),a*=p;_=S(b-o,t=g.length+1,0==o),m(b/t)>s-w&&v("overflow"),w+=m(b/t),b%=t,g.splice(b++,0,w)}return k(g)}function R(e){var t,r,n,i,o,a,f,l,h,p,d,g,y,w,_,k=[];for(g=(e=E(e)).length,t=128,r=0,o=72,a=0;a<g;++a)(d=e[a])<128&&k.push(b(d));for(n=i=k.length,i&&k.push("-");n<g;){for(f=s,a=0;a<g;++a)(d=e[a])>=t&&d<f&&(f=d);for(f-t>m((s-r)/(y=n+1))&&v("overflow"),r+=(f-t)*y,t=f,a=0;a<g;++a)if((d=e[a])<t&&++r>s&&v("overflow"),d==t){for(l=r,h=c;!(l<(p=h<=o?1:h>=o+u?u:h-o));h+=c)_=l-p,w=c-p,k.push(b(x(p+_%w,0))),l=m(_/w);k.push(b(x(l,0))),o=S(r,y,n==i),r=0,++n}++r,++t}return k.join("")}a={version:"1.4.1",ucs2:{decode:E,encode:k},decode:O,encode:R,toASCII:function(e){return _(e,(function(e){return p.test(e)?"xn--"+R(e):e}))},toUnicode:function(e){return _(e,(function(e){return h.test(e)?O(e.slice(4).toLowerCase()):e}))}},void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},8835:(e,t,r)=>{"use strict";var n=r(1270);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),f=["%","/","?",";","#"].concat(u),l=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,d={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(7186);i.prototype.parse=function(e,t,r){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),a=-1!==i&&i<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!r&&1===e.split("#").length){var v=s.exec(b);if(v)return this.path=b,this.href=b,this.pathname=v[1],v[2]?(this.search=v[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=o.exec(b);if(w){var _=(w=w[0]).toLowerCase();this.protocol=_,b=b.substr(w.length)}if(r||w||b.match(/^\/\/[^@/]+@[^@/]+/)){var E="//"===b.substr(0,2);!E||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(E||w&&!y[w])){for(var k,x,S=-1,O=0;O<l.length;O++)-1!==(R=b.indexOf(l[O]))&&(-1===S||R<S)&&(S=R);for(-1!==(x=-1===S?b.lastIndexOf("@"):b.lastIndexOf("@",S))&&(k=b.slice(0,x),b=b.slice(x+1),this.auth=decodeURIComponent(k)),S=-1,O=0;O<f.length;O++){var R;-1!==(R=b.indexOf(f[O]))&&(-1===S||R<S)&&(S=R)}-1===S&&(S=b.length),this.host=b.slice(0,S),b=b.slice(S),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var j=this.hostname.split(/\./),T=(O=0,j.length);O<T;O++){var I=j[O];if(I&&!I.match(h)){for(var L="",B=0,M=I.length;B<M;B++)I.charCodeAt(B)>127?L+="x":L+=I[B];if(!L.match(h)){var N=j.slice(0,O),P=j.slice(O+1),C=I.match(p);C&&(N.push(C[1]),P.unshift(C[2])),P.length&&(b="/"+P.join(".")+b),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+D,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!d[_])for(O=0,T=u.length;O<T;O++){var F=u[O];if(-1!==b.indexOf(F)){var z=encodeURIComponent(F);z===F&&(z=escape(F)),b=b.split(F).join(z)}}var W=b.indexOf("#");-1!==W&&(this.hash=b.substr(W),b=b.slice(0,W));var q=b.indexOf("?");if(-1!==q?(this.search=b.substr(q),this.query=b.substr(q+1),t&&(this.query=m.parse(this.query)),b=b.slice(0,q)):t&&(this.search="",this.query={}),b&&(this.pathname=b),y[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var $=this.search||"";this.path=D+$}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(o=m.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(function(e,t,r){if(e&&"object"==typeof e&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"==typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(r[u]=e[u])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),l=0;l<f.length;l++){var h=f[l];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",m=r.search||"";r.path=d+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),v=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=v||b||r.host&&e.pathname,_=w,E=r.pathname&&r.pathname.split("/")||[],k=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(k&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===E[0])),v)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),r.search=e.search,r.query=e.query;else if(null!=e.search)return k&&(r.host=E.shift(),r.hostname=r.host,(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.hostname=A.shift(),r.host=r.hostname)),r.search=e.search,r.query=e.query,null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=E.slice(-1)[0],S=(r.host||e.host||E.length>1)&&("."===x||".."===x)||""===x,O=0,R=E.length;R>=0;R--)"."===(x=E[R])?E.splice(R,1):".."===x?(E.splice(R,1),O++):O&&(E.splice(R,1),O--);if(!w&&!_)for(;O--;O)E.unshift("..");!w||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),S&&"/"!==E.join("/").substr(-1)&&E.push("");var A,j=""===E[0]||E[0]&&"/"===E[0].charAt(0);return k&&(r.hostname=j?"":E.length?E.shift():"",r.host=r.hostname,(A=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=A.shift(),r.hostname=A.shift(),r.host=r.hostname)),(w=w||r.host&&E.length)&&!j&&E.unshift(""),E.length>0?r.pathname=E.join("/"):(r.pathname=null,r.path=null),null===r.pathname&&null===r.search||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.m9=e=>new URL("",e).pathname},4643:(e,t,r)=>{function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032:(e,t,r)=>{"use strict";var n=r(7244),i=r(8184),o=r(5767),a=r(5680);function s(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,u="undefined"!=typeof Symbol,f=s(Object.prototype.toString),l=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(c)var d=s(BigInt.prototype.valueOf);if(u)var g=s(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===f(e)}function b(e){return"[object Set]"===f(e)}function v(e){return"[object WeakMap]"===f(e)}function w(e){return"[object WeakSet]"===f(e)}function _(e){return"[object ArrayBuffer]"===f(e)}function E(e){return"undefined"!=typeof ArrayBuffer&&(_.working?_(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===f(e)}function x(e){return"undefined"!=typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||x(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(v.working?v(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},_.working="undefined"!=typeof ArrayBuffer&&_(new ArrayBuffer),t.isArrayBuffer=E,k.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=x;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function O(e){return"[object SharedArrayBuffer]"===f(e)}function R(e){return void 0!==S&&(void 0===O.working&&(O.working=O(new S)),O.working?O(e):e instanceof S)}function A(e){return y(e,l)}function j(e){return y(e,h)}function T(e){return y(e,p)}function I(e){return c&&y(e,d)}function L(e){return u&&y(e,g)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===f(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===f(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===f(e)},t.isGeneratorObject=function(e){return"[object Generator]"===f(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===f(e)},t.isNumberObject=A,t.isStringObject=j,t.isBooleanObject=T,t.isBigIntObject=I,t.isSymbolObject=L,t.isBoxedPrimitive=function(e){return A(e)||j(e)||T(e)||I(e)||L(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(E(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},537:(e,t,r)=>{var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),s=n[r];r<o;s=n[++r])y(s)||!_(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},a=/^$/;if(process.env.NODE_DEBUG){var s=process.env.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+s+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),l(n,e,n.depth)}function u(e,t){var r=c.styles[t];return r?"["+c.colors[r][0]+"m"+e+"["+c.colors[r][1]+"m":e}function f(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return b(i)||(i=l(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var a=Object.keys(r),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),k(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(r);if(0===a.length){if(x(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(E(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return h(r)}var u,f="",_=!1,S=["{","}"];return d(r)&&(_=!0,S=["[","]"]),x(r)&&(f=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(f=" "+RegExp.prototype.toString.call(r)),E(r)&&(f=" "+Date.prototype.toUTCString.call(r)),k(r)&&(f=" "+h(r)),0!==a.length||_&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=_?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(p(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(e,t,r,n,i,!0))})),o}(e,r,n,s,a):a.map((function(t){return p(e,r,n,s,t,_)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,f,S)):S[0]+f+S[1]}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),A(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=y(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function d(e){return Array.isArray(e)}function g(e){return"boolean"==typeof e}function y(e){return null===e}function m(e){return"number"==typeof e}function b(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===S(e)}function _(e){return"object"==typeof e&&null!==e}function E(e){return _(e)&&"[object Date]"===S(e)}function k(e){return _(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(a.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.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"},t.types=r(9032),t.isArray=d,t.isBoolean=g,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=b,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=w,t.types.isRegExp=w,t.isObject=_,t.isDate=E,t.types.isDate=E,t.isError=k,t.types.isNativeError=k,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(1135);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log("%s - %s",(r=[O((e=new Date).getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],r].join(" ")),t.format.apply(t,arguments))},t.inherits=r(6698),t._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var j="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var t;if("function"!=typeof(t=e[j]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),j&&Object.defineProperty(t,j,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=j,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then((function(e){process.nextTick(o.bind(null,null,e))}),(function(e){process.nextTick(T.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},5767:(e,t,r)=>{"use strict";var n=r(2682),i=r(9209),o=r(487),a=r(8075),s=r(5795),c=a("Object.prototype.toString"),u=r(9092)(),f="undefined"==typeof globalThis?r.g:globalThis,l=i(),h=a("String.prototype.slice"),p=Object.getPrototypeOf,d=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},g={__proto__:null};n(l,u&&s&&p?function(e){var t=new f[e];if(Symbol.toStringTag in t){var r=p(t),n=s(r,Symbol.toStringTag);if(!n){var i=p(r);n=s(i,Symbol.toStringTag)}g["$"+e]=o(n.get)}}:function(e){var t=new f[e],r=t.slice||t.set;r&&(g["$"+e]=o(r))}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!u){var t=h(c(e),8,-1);return d(l,t)>-1?t:"Object"===t&&function(e){var t=!1;return n(g,(function(r,n){if(!t)try{r(e),t=h(n,1)}catch(e){}})),t}(e)}return s?function(e){var t=!1;return n(g,(function(r,n){if(!t)try{"$"+r(e)===n&&(t=h(n,1))}catch(e){}})),t}(e):null}},6587:e=>{e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},6503:e=>{e.exports=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},7970:(e,t,r)=>{var n=r(6503);e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];if(n(r))for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}},6060:()=>{},1224:()=>{},6889:()=>{},993:()=>{},4385:()=>{},717:()=>{},564:()=>{},6789:()=>{},1534:()=>{},5340:()=>{},9838:()=>{},8221:()=>{},3428:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach((function(e){var n=r[e],i=t[e]=[];i.open="["+n[0]+"m",i.close="["+n[1]+"m"}))},9209:(e,t,r)=>{"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;e.exports=function(){for(var e=[],t=0;t<n.length;t++)"function"==typeof i[n[t]]&&(e[e.length]=n[t]);return e}},9435:e=>{"use strict";e.exports=JSON.parse('{"rh":{"j9":"~0.10.0"}}')}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.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);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,i.d(o,a),o},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};i.r(e),i.d(e,{NIL:()=>z,parse:()=>O,stringify:()=>w,v1:()=>S,v3:()=>N,v4:()=>C,v5:()=>F,validate:()=>m,version:()=>W});var t={};i.r(t),i.d(t,{arrow:()=>ne,bold:()=>Q,classic:()=>re,default:()=>ie,double:()=>J,doubleSingle:()=>te,round:()=>X,single:()=>Y,singleDouble:()=>ee});var r={};i.r(r),i.d(r,{__:()=>Ye,analyzeModule:()=>cr,arrayEqual:()=>Et,assembleApiUrl:()=>Ue,assembleBuffer:()=>tt,assembleUrl:()=>dt,assertArray:()=>At,assertBuffer:()=>Lt,assertDate:()=>Rt,assertEmail:()=>kt,assertFunction:()=>It,assertModule:()=>Tt,assertObject:()=>jt,assertSet:()=>Ot,assertUrl:()=>St,assertUuid:()=>xt,asyncTimeout:()=>yt,base64Decode:()=>je,base64Encode:()=>Ae,base64Pack:()=>Le,base64Unpack:()=>Be,basename:()=>He,byteToHexString:()=>wt,call:()=>ue,checkInterval:()=>Xt,clarify:()=>Ze,clone:()=>Xe,convertBase:()=>Oe,convertFrom16to10:()=>Re,countKeys:()=>fr,deepCleanBigInt:()=>et,distill:()=>Qe,ensureArray:()=>nt,ensureDate:()=>st,ensureInt:()=>it,ensureLines:()=>We,ensureString:()=>at,escapeHtml:()=>nr,exclude:()=>lr,extError:()=>me,extract:()=>vt,fileURLToPath:()=>H.m9,fullLengthLog:()=>Zt,getDateByUnixTimestamp:()=>pe,getFuncParams:()=>sr,getItemFromStringOrArray:()=>ft,getKeyByValue:()=>Bt,getRandomIndexInArray:()=>ct,getRandomInt:()=>ge,getRandomItemInArray:()=>ut,getShortestInArray:()=>_t,getTimeIcon:()=>gr,getType:()=>lt,getUnixTimestampByDate:()=>de,hexDecode:()=>Ie,hexEncode:()=>Te,humanReadableBoolean:()=>Wt,ignoreErrFunc:()=>Qt,inBrowser:()=>hr,insensitiveCompare:()=>Dt,insensitiveHas:()=>Ut,is:()=>_e,isAscii:()=>rr,isModule:()=>ke,isNull:()=>xe,isSet:()=>Se,isUndefined:()=>Ee,lastItem:()=>$e,lineSplit:()=>Gt,locate:()=>Nt,log:()=>Mt,makeStringByLength:()=>Ft,mapKeys:()=>rt,mask:()=>or,matchVersion:()=>$t,mergeAtoB:()=>Ct,need:()=>ur,newError:()=>be,once:()=>ar,parseJson:()=>bt,parseVersion:()=>qt,prettyJson:()=>gt,purgeEmoji:()=>ir,randomArray:()=>ye,range:()=>Jt,renderBox:()=>Yt,renderCode:()=>Vt,renderObject:()=>Ht,renderText:()=>Kt,resolve:()=>De,rotate:()=>zt,shiftTime:()=>ze,split:()=>tr,splitArgs:()=>dr,supportAnsiColor:()=>pr,throwError:()=>ve,timeout:()=>Ne,toExponential:()=>Me,toString:()=>ot,trim:()=>Pe,tryUntil:()=>er,uniqueArray:()=>we,verifyEmail:()=>pt,verifyPhone:()=>Ce,verifyUrl:()=>ht,verifyUuid:()=>m,voidFunc:()=>qe,which:()=>Pt});var n={};i.r(n),i.d(n,{_NEED:()=>wr,aesCreateIv:()=>Nr,aesCreateKey:()=>Mr,aesDecrypt:()=>Dr,aesEncrypt:()=>Cr,defaultAlgorithm:()=>_r,defaultEncryption:()=>Er,digestObject:()=>Ir,getApiKeyCredentials:()=>Br,getSortedQueryString:()=>Rr,hash:()=>Ar,hashFile:()=>jr,hexToBigInt:()=>Lr,md5:()=>xr,random:()=>mr.randomBytes,randomString:()=>Tr,sha256:()=>Ar,sha256File:()=>jr,uniqueString:()=>kr});var o={};i.r(o),i.d(o,{_NEED:()=>un,analyzeFile:()=>ai,assertPath:()=>Gn,blobToBuffer:()=>ii,convert:()=>oi,decodeBase64DataURL:()=>Qn,deleteFileOnCloud:()=>yi,deleteOnCloud:()=>mi,downloadFileFromCloud:()=>hi,downloadFromCloud:()=>pi,encodeBase64DataURL:()=>Xn,exists:()=>ti,existsOnCloud:()=>di,getConfig:()=>Kn,getConfigFilename:()=>Hn,getGcUrlByBucket:()=>ln,getIdByGs:()=>hn,getTempPath:()=>$n,handleError:()=>zn,init:()=>fi,isTextFile:()=>Vn,legalFilename:()=>ei,lsOnCloud:()=>gi,mapFilename:()=>pn,mergeFile:()=>ci,readFile:()=>Dn,readJson:()=>qn,sanitizeFilename:()=>yn,setConfig:()=>Yn,sliceFile:()=>si,touchPath:()=>Jn,tryRm:()=>ui,unzip:()=>ni,uploadToCloud:()=>li,writeFile:()=>Un,writeJson:()=>Fn,writeTempFile:()=>Zn,zip:()=>ri});var a={};i.r(a),i.d(a,{bigIntToUuid:()=>Ei,compactUuid:()=>wi,create:()=>Oi,default:()=>Ti,expandUuid:()=>xi,fakeUuid:()=>ki,getRfcUrlNamespaceUuid:()=>Ri,getTimestampFromUuid:()=>Si,getUuidForCurrentHost:()=>ji,rotateUuid:()=>Ai,uuidRegTxt:()=>vi,uuidToBigInt:()=>_i});var s={};i.r(s),i.d(s,{bulk:()=>Fi,default:()=>Wi,end:()=>zi,list:()=>Bi,load:()=>Ui,loop:()=>Di});var c={};i.r(c),i.d(c,{checkVersion:()=>Sa,default:()=>ja,get:()=>Aa,getCurrentIp:()=>Oa,getCurrentPosition:()=>Ra,getJson:()=>_a,getParsedHtml:()=>Ea,getVersionOnNpm:()=>xa});var u={};i.r(u),i.d(u,{getExchangeRate:()=>Ia});var f={};i.r(f),i.d(f,{_NEED:()=>Na,checkSay:()=>Qa,checkWhisper:()=>es,default:()=>fs,init:()=>Xa,stt:()=>us,sttGoogle:()=>as,sttOpenAI:()=>os,sttWhisper:()=>ss,tts:()=>cs,ttsGoogle:()=>rs,ttsOpenAI:()=>ts,ttsSay:()=>ns});var l=i(8221),h=i.t(l,2);let p;const d=new Uint8Array(16);function g(){if(!p&&(p="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(d)}const y=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,m=function(e){return"string"==typeof e&&y.test(e)},b=[];for(let e=0;e<256;++e)b.push((e+256).toString(16).slice(1));function v(e,t=0){return b[e[t+0]]+b[e[t+1]]+b[e[t+2]]+b[e[t+3]]+"-"+b[e[t+4]]+b[e[t+5]]+"-"+b[e[t+6]]+b[e[t+7]]+"-"+b[e[t+8]]+b[e[t+9]]+"-"+b[e[t+10]]+b[e[t+11]]+b[e[t+12]]+b[e[t+13]]+b[e[t+14]]+b[e[t+15]]}const w=function(e,t=0){const r=v(e,t);if(!m(r))throw TypeError("Stringified UUID is invalid");return r};let _,E,k=0,x=0;const S=function(e,t,r){let n=t&&r||0;const i=t||new Array(16);let o=(e=e||{}).node||_,a=void 0!==e.clockseq?e.clockseq:E;if(null==o||null==a){const t=e.random||(e.rng||g)();null==o&&(o=_=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==a&&(a=E=16383&(t[6]<<8|t[7]))}let s=void 0!==e.msecs?e.msecs:Date.now(),c=void 0!==e.nsecs?e.nsecs:x+1;const u=s-k+(c-x)/1e4;if(u<0&&void 0===e.clockseq&&(a=a+1&16383),(u<0||s>k)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");k=s,x=c,E=a,s+=122192928e5;const f=(1e4*(268435455&s)+c)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=255&f;const l=s/4294967296*1e4&268435455;i[n++]=l>>>8&255,i[n++]=255&l,i[n++]=l>>>24&15|16,i[n++]=l>>>16&255,i[n++]=a>>>8|128,i[n++]=255&a;for(let e=0;e<6;++e)i[n+e]=o[e];return t||v(i)},O=function(e){if(!m(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function R(e,t,r){function n(e,n,i,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=O(n)),16!==(null===(a=n)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(n),s.set(e,n.length),s=r(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=s[e];return i}return v(s)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function A(e){return 14+(e+64>>>9<<4)+1}function j(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function T(e,t,r,n,i,o){return j((a=j(j(t,e),j(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function I(e,t,r,n,i,o,a){return T(t&r|~t&n,e,t,i,o,a)}function L(e,t,r,n,i,o,a){return T(t&n|r&~n,e,t,i,o,a)}function B(e,t,r,n,i,o,a){return T(t^r^n,e,t,i,o,a)}function M(e,t,r,n,i,o,a){return T(r^(t|~n),e,t,i,o,a)}const N=R("v3",48,(function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length,n="0123456789abcdef";for(let i=0;i<r;i+=8){const r=e[i>>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[A(t)-1]=t;let r=1732584193,n=-271733879,i=-1732584194,o=271733878;for(let t=0;t<e.length;t+=16){const a=r,s=n,c=i,u=o;r=I(r,n,i,o,e[t],7,-680876936),o=I(o,r,n,i,e[t+1],12,-389564586),i=I(i,o,r,n,e[t+2],17,606105819),n=I(n,i,o,r,e[t+3],22,-1044525330),r=I(r,n,i,o,e[t+4],7,-176418897),o=I(o,r,n,i,e[t+5],12,1200080426),i=I(i,o,r,n,e[t+6],17,-1473231341),n=I(n,i,o,r,e[t+7],22,-45705983),r=I(r,n,i,o,e[t+8],7,1770035416),o=I(o,r,n,i,e[t+9],12,-1958414417),i=I(i,o,r,n,e[t+10],17,-42063),n=I(n,i,o,r,e[t+11],22,-1990404162),r=I(r,n,i,o,e[t+12],7,1804603682),o=I(o,r,n,i,e[t+13],12,-40341101),i=I(i,o,r,n,e[t+14],17,-1502002290),n=I(n,i,o,r,e[t+15],22,1236535329),r=L(r,n,i,o,e[t+1],5,-165796510),o=L(o,r,n,i,e[t+6],9,-1069501632),i=L(i,o,r,n,e[t+11],14,643717713),n=L(n,i,o,r,e[t],20,-373897302),r=L(r,n,i,o,e[t+5],5,-701558691),o=L(o,r,n,i,e[t+10],9,38016083),i=L(i,o,r,n,e[t+15],14,-660478335),n=L(n,i,o,r,e[t+4],20,-405537848),r=L(r,n,i,o,e[t+9],5,568446438),o=L(o,r,n,i,e[t+14],9,-1019803690),i=L(i,o,r,n,e[t+3],14,-187363961),n=L(n,i,o,r,e[t+8],20,1163531501),r=L(r,n,i,o,e[t+13],5,-1444681467),o=L(o,r,n,i,e[t+2],9,-51403784),i=L(i,o,r,n,e[t+7],14,1735328473),n=L(n,i,o,r,e[t+12],20,-1926607734),r=B(r,n,i,o,e[t+5],4,-378558),o=B(o,r,n,i,e[t+8],11,-2022574463),i=B(i,o,r,n,e[t+11],16,1839030562),n=B(n,i,o,r,e[t+14],23,-35309556),r=B(r,n,i,o,e[t+1],4,-1530992060),o=B(o,r,n,i,e[t+4],11,1272893353),i=B(i,o,r,n,e[t+7],16,-155497632),n=B(n,i,o,r,e[t+10],23,-1094730640),r=B(r,n,i,o,e[t+13],4,681279174),o=B(o,r,n,i,e[t],11,-358537222),i=B(i,o,r,n,e[t+3],16,-722521979),n=B(n,i,o,r,e[t+6],23,76029189),r=B(r,n,i,o,e[t+9],4,-640364487),o=B(o,r,n,i,e[t+12],11,-421815835),i=B(i,o,r,n,e[t+15],16,530742520),n=B(n,i,o,r,e[t+2],23,-995338651),r=M(r,n,i,o,e[t],6,-198630844),o=M(o,r,n,i,e[t+7],10,1126891415),i=M(i,o,r,n,e[t+14],15,-1416354905),n=M(n,i,o,r,e[t+5],21,-57434055),r=M(r,n,i,o,e[t+12],6,1700485571),o=M(o,r,n,i,e[t+3],10,-1894986606),i=M(i,o,r,n,e[t+10],15,-1051523),n=M(n,i,o,r,e[t+1],21,-2054922799),r=M(r,n,i,o,e[t+8],6,1873313359),o=M(o,r,n,i,e[t+15],10,-30611744),i=M(i,o,r,n,e[t+6],15,-1560198380),n=M(n,i,o,r,e[t+13],21,1309151649),r=M(r,n,i,o,e[t+4],6,-145523070),o=M(o,r,n,i,e[t+11],10,-1120210379),i=M(i,o,r,n,e[t+2],15,718787259),n=M(n,i,o,r,e[t+9],21,-343485551),r=j(r,a),n=j(n,s),i=j(i,c),o=j(o,u)}return[r,n,i,o]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(A(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))})),P={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},C=function(e,t,r){if(P.randomUUID&&!t&&!e)return P.randomUUID();const n=(e=e||{}).random||(e.rng||g)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return v(n)};function D(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function U(e,t){return e<<t|e>>>32-t}const F=R("v5",80,(function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const n=e.length/4+2,i=Math.ceil(n/16),o=new Array(i);for(let t=0;t<i;++t){const r=new Uint32Array(16);for(let n=0;n<16;++n)r[n]=e[64*t+4*n]<<24|e[64*t+4*n+1]<<16|e[64*t+4*n+2]<<8|e[64*t+4*n+3];o[t]=r}o[i-1][14]=8*(e.length-1)/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<i;++e){const n=new Uint32Array(80);for(let t=0;t<16;++t)n[t]=o[e][t];for(let e=16;e<80;++e)n[e]=U(n[e-3]^n[e-8]^n[e-14]^n[e-16],1);let i=r[0],a=r[1],s=r[2],c=r[3],u=r[4];for(let e=0;e<80;++e){const r=Math.floor(e/20),o=U(i,5)+D(r,a,s,c)+u+t[r]+n[e]>>>0;u=c,c=s,s=U(a,30)>>>0,a=i,i=o}r[0]=r[0]+i>>>0,r[1]=r[1]+a>>>0,r[2]=r[2]+s>>>0,r[3]=r[3]+c>>>0,r[4]=r[4]+u>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),z="00000000-0000-0000-0000-000000000000",W=function(e){if(!m(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};var q=i(4148),$=i(8287);Object.values=Object.values||(e=>Object.keys(e).map((t=>e[t]))),RegExp.escape=RegExp.escape||(e=>String(e).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),BigInt.prototype.toJSON=BigInt.prototype.toJSON||function(){return this.toString()};const Z=q||((e,t)=>{if(!e)throw Error.isError(t)?t:new Error(t)});if(!globalThis.assert){globalThis.assert=(e,t,r,n)=>{try{return Z(e,t)}catch(e){throw((e,t=500,r={})=>Object.assign(e,{status:t},r))(e,r,n)}};for(let e in Z||{})assert[e]=Z[e]}globalThis.Buffer=globalThis.Buffer||$.Buffer;const G=(e,t)=>t?.constructor===e;[ArrayBuffer,Boolean,Error,Number,Object,Set,String,BigInt].map((e=>{const t=`is${e.name}`;e[t]=e[t]||(t=>G(e,t))})),Date.isDate=Date.isDate||((e,t)=>!(!G(Date,e)||t&&"invalid date"===e.toTimeString().toLowerCase())),Function.isFunction=Function.isFunction||(e=>{return["Function","AsyncFunction"].includes(void 0===(t=e)?"Undefined":Object.prototype.toString.call(t).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"));var t}),globalThis.print=globalThis.print||console.log;var V=i(7975),H=i(8835),K=i(537);const Y={topLeft:"┌",top:"─",topRight:"┐",right:"│",bottomRight:"┘",bottom:"─",bottomLeft:"└",left:"│"},J={topLeft:"╔",top:"═",topRight:"╗",right:"║",bottomRight:"╝",bottom:"═",bottomLeft:"╚",left:"║"},X={topLeft:"╭",top:"─",topRight:"╮",right:"│",bottomRight:"╯",bottom:"─",bottomLeft:"╰",left:"│"},Q={topLeft:"┏",top:"━",topRight:"┓",right:"┃",bottomRight:"┛",bottom:"━",bottomLeft:"┗",left:"┃"},ee={topLeft:"╓",top:"─",topRight:"╖",right:"║",bottomRight:"╜",bottom:"─",bottomLeft:"╙",left:"║"},te={topLeft:"╒",top:"═",topRight:"╕",right:"│",bottomRight:"╛",bottom:"═",bottomLeft:"╘",left:"│"},re={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},ne={topLeft:"↘",top:"↓",topRight:"↙",right:"←",bottomRight:"↖",bottom:"↑",bottomLeft:"↗",left:"→"},ie=X;var oe=i(3428);const ae={strip:(e,t)=>at(e,t).replace(/\x1B\[\d+m/g,"")};for(let e in oe)ae[e]=(t,r)=>{const[n,i]=pr()?[oe[e].open,oe[e].close]:["",""];return`${n}${at(t,r)}${i}`};const se=ae;var ce=i(8287).Buffer;const ue=(e,...t)=>(0,K.promisify)(Array.isArray(e)?e[0].bind(e[1]):e)(...t),fe="Invalid time.",[le,he]=["Chrome","Edge"],pe=e=>new Date(1e3*~~e),de=e=>Math.round(e.getTime()/1e3),ge=e=>Math.floor(Math.random()*Math.floor(e)),ye=e=>e.sort((()=>.5-Math.random())),me=(e,t,r={})=>Object.assign(e,{status:t},r),be=(e,t,r)=>me(new Error(e),t,r),ve=(e,t,r)=>{throw be(e,t,r)},we=e=>[...new Set(nt(e))],_e=(e,t)=>lt(t)===e,Ee=e=>_e("Undefined",e),ke=e=>_e("Module",e),xe=e=>_e("Null",e),Se=(e,t)=>!(Ee(e)||t&&xe(e)),Oe=(e,t,r)=>parseInt(e||0,t).toString(r),Re=e=>parseInt(Oe(e,16,10)),Ae=(e,t)=>Fe(e,t,"base64"),je=(e,t)=>mt(e,t,"base64"),Te=(e,t)=>Fe(e,t,"hex"),Ie=(e,t)=>mt(e,t,"hex"),Le=e=>Ae(JSON.stringify(e)),Be=e=>JSON.parse(je(e)),Me=(e,t)=>Number.parseFloat(e).toExponential(t),Ne=e=>new Promise((t=>(e?setTimeout:setImmediate)(t,e))),Pe=(e,t)=>at(e,{trim:!0,...t||{}}),Ce=e=>/^\+?[0-9]{4,}$/.test(e),De=async e=>e instanceof Promise?await e:e,Ue=(e,t,r)=>dt(`${e}/${t}`,r),Fe=(e,t,r)=>(t?e:ce.from(e)).toString(r),ze=(e,t)=>new Date((t??new Date).getTime()+e),We=(e,t)=>Array.isArray(e)?e:Gt(e,t),qe=()=>{},$e=e=>e.slice(-1)[0],Ze=e=>e.toLowerCase().split(/[^a-zA-Z0-9]+/).filter((e=>e)),Ge={},Ve=e=>String(e||Je),He=e=>(0,V.basename)(Ve(e)).replace(/\.[^\.]*$/,"").trim(),Ke={"00:00":"🕛","00:30":"🕧","01:00":"🕐","01:30":"🕜","02:00":"🕑","02:30":"🕝","03:00":"🕒","03:30":"🕞","04:00":"🕓","04:30":"🕟","05:00":"🕔","05:30":"🕠","06:00":"🕕","06:30":"🕡","07:00":"🕖","07:30":"🕢","08:00":"🕗","08:30":"🕣","09:00":"🕘","09:30":"🕤","10:00":"🕙","10:30":"🕥","11:00":"🕚","11:30":"🕦","00:00":"🕛"},Ye=(e,t)=>{assert(e,"Invalid URL.",500);const r=(0,H.m9)(e),n=(0,V.dirname)(r);return(t=String(t??""))?(0,V.join)(n,t):{__filename:r,__dirname:n}},{__filename:Je}=Ye("file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs"),Xe=e=>{let t=e;switch(lt(e)){case"Object":t={};for(let r in e)t[r]=Xe(e[r]);break;case"Array":t=[],e.map((e=>{t.push(Xe(e))}))}return t},Qe=(e,t)=>{let[r,n]=[e,null];switch(lt(e)){case"Object":r={};for(let i in e)Se(n=Qe(e[i],t),t)&&(r[i]=n);r=Object.keys(r).length?r:void 0;break;case"Array":r=[],e.map((e=>{Se(e=Qe(e,t),t)&&r.push(e)})),r=r.length?r:void 0}return r},et=(e,t=String)=>{let r=e;switch(lt(e)){case"Object":r={};for(let n in e)r[n]=et(e[n],t);break;case"Array":r=[],e.map((e=>{r.push(et(e,t))}));break;case"BigInt":r=t(e)}return r},tt=e=>{let t=e;switch(lt(e)){case"Object":if("Buffer"===e.type&&Array.isArray(e.data))t=ce.from(e.data);else if("DataURL"===e.type&&String.isString(e.data))t=Qn(e.data)?.buffer;else{t={};for(let r in e)t[r]=tt(e[r])}break;case"Array":t=[],e.map((e=>{t.push(tt(e))}))}return t},rt=(e,t,r,n)=>{let[i,o]=[e,t];switch(Object.isObject(t)&&(o=e=>t[e]),It(o),lt(e)){case"Object":i={};for(let t in e){const a=o(t,e[t],n||[]);assert(!r||a,`Error maping key: '${t}'.`,400),i[a||t]=rt(e[t],o,r,[...n||[],t])}break;case"Array":i=[],e.map(((e,t)=>{i.push(rt(e,o,r,[...n||[],t]))}))}return i},nt=e=>Se(e,!0)?Array.isArray(e)||Set.isSet(e)?[...e]:[e]:[],it=(e,t)=>{t=t||{};let r=parseInt(e);return r=isNaN(r)?0:r,r=Se(t.min,!0)&&r<t.min?t.min:r,r=Se(t.max,!0)&&r>t.max?t.max:r,t.pad>0?String(r).padStart(t.pad,"0"):r},ot=(e,t)=>Object.isObject(e)?JSON.stringify(e):Date.isDate(e)?e.toISOString():Error.isError(e)?t?.trace?e.stack:e.message:String(e??""),at=(e,t)=>{if(e=ot(e,t),t?.case)switch(ot(t?.case).trim().toUpperCase()){case"UP":e=e.toUpperCase();break;case"LOW":e=e.toLowerCase();break;case"CAP":e=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;break;case"CAMEL":e=Ze(e).map(((e,t)=>t?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e)).join("");break;case"SNAKE":e=Ze(e).join("_"),assert(e,"String can not convert to snake case.",500);break;default:ve(`Invalid case option: '${t?.case}'.`,500)}return t?.trim&&(e=e.trim()),t?.compact&&(e=e.replace(/\s+/g," ").trim()),t?.limit&&(e=e.trim())&&e.length>t.limit&&(e=`${e.slice(0,t.limit).trim()}...`),e},st=(e,t)=>(e&&Rt(e=new Date(e),t?.message),!e&&t?.required?ve(fe,400):e?t?.asTimestamp?e.getTime():t?.asUnixtime?de(e):e:null),ct=(e,t)=>{const r=~~t?.count,n=ye([...e.keys()]).slice(0,r||1);return r?n:n[0]},ut=(e,t)=>{const r=~~t?.count,n=ye(ct(e,{count:r||1}).sort(((e,t)=>t-e)).map((r=>t?.splice?e.splice(r,1)[0]:e[r])));return r?n:n[0]},ft=e=>Array.isArray(e)?ut(e):e,lt=e=>void 0===e?"Undefined":Object.prototype.toString.call(e).replace(/^\[[^\ ]*\ (.*)\]$/,"$1"),ht=e=>{const t=String(e??"").replace(/^magnet:/,"magnet:localhost");return t.length<2083&&new RegExp("^(?:(http://|https://|ftp://|chrome://|mailto:|magnet:))(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i").test(t)},pt=e=>/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$/.test(e),dt=(e,t)=>{let r=[];for(let e in t||[])nt(t[e]).map((t=>{r.push(`${e}=${encodeURIComponent(t)}`)}));return`${e}${r.length?`?${r.join("&")}`:""}`},gt=(e,t)=>{let r=JSON.stringify(e,t?.replacer??null,~~t?.space||2);return t?.code?r=Vt(r,t):t?.log&&console.log(r),r},yt=async(e,t,r)=>{let n=null,i=Promise.race([e,new Promise(((e,i)=>{n=setTimeout((()=>{i(new Error(r||"Timed out."))}),t)}))]);const o=await i;try{clearTimeout(n)}catch(r){}return o},mt=(e,t,r)=>{const n=ce.from(e,r);return t?n:n.toString("utf8")},bt=(e,t,r)=>{try{return JSON.parse(e,r?.reviver||((e,t)=>t&&"Buffer"===t.type&&Array.isArray(t.data)?ce.from(t.data):t))}catch(e){return Se(t)?t:{}}},vt=(...e)=>{let t=null;return e.map(((e,r)=>t=r?t?.[e]??null:e)),t},wt=e=>Array.from(e,(e=>("0"+(255&e).toString(16)).slice(-2))).join(""),_t=e=>{let[t,r]=[0,-1];for(let n in e)(-1===r||r>e[n].length)&&(t=n,r=e[n].length);return t},Et=(e,t)=>!(!Array.isArray(e)||!Array.isArray(t))&&(e.sort(),t.sort(),e.join(",")===t.join(",")),kt=(e,t,r,n)=>assert(pt(e),t||"Invalid email.",r||400,n),xt=(e,t,r,n)=>assert(m(e),t||"Invalid UUID.",r||400,n),St=(e,t,r,n)=>assert(ht(e),t||"Invalid URL.",r||400,n),Ot=(e,t,r,n)=>assert(Se(e),t||"Undefined value.",r||400,n),Rt=(e,t,r,n)=>assert(Date.isDate(e,!0),t||fe,r||400,n),At=(e,t,r,n)=>assert(Array.isObject(e),t||"Invalid Array.",r||400,n),jt=(e,t,r,n)=>assert(Object.isObject(e),t||"Invalid Object.",r||400,n),Tt=(e,t,r,n)=>assert(ke(e),t||"Invalid Module.",r||400,n),It=(e,t,r,n)=>assert(Function.isFunction(e),t||"Invalid Function.",r||400,n),Lt=(e,t,r,n)=>assert(ce.isBuffer(e)||ArrayBuffer.isArrayBuffer(e),t||"Invalid Buffer.",r||400,n),Bt=(e,t)=>{for(let r in e||{})if(t===e[r])return r},Mt=(e,t,r)=>{const n=Error.isError(e);e=Object.isObject(e)?JSON.stringify(e):e;const i=r?.keepName?Ve(t):He(t).toUpperCase(),o=r?.time?` ${(Date.isDate(r.time,!0)?r.time:new Date).toISOString()}`:"",a=["["+se.red(i)+se.yellow(o)+"]"+(n?"":` ${e}`)];return n&&a.push(e),console.info.apply(null,a)},Nt=async e=>(await Gn(e,"F","R"),globalThis._manifest=e),Pt=async e=>{if(!Object.isObject(e=e||globalThis._manifest)){if(e=(e=e||"file:///home/runner/work/utilitas/utilitas/lib/utilitas.mjs").startsWith("file://")?(0,H.m9)(e):e,!e?.endsWith?.(".json")){e=["/",...e.split(V.sep).slice(1)];const t=[];for(let r of e){t.push(r);const n=(0,V.join)(...t,"package.json");try{await Gn(n,"F","R"),e=n;break}catch(e){}}}e=await qn(e)}return e.name=e.name||"",e.versionNormalized=qt(e.version=e.version||""),e.title=`${e.name}${e.version?" v"+e.version:""}`,e.userAgent=`${e.name}${e.version?`/${e.version}`:""}`,e},Ct=(e,t,r)=>{e=e||{},t=t||{};for(let n in e)Ee(e[n])?r?.mergeUndefined&&delete t[n]:t[n]=e[n];return t},Dt=(e,t,r)=>{r={case:"UP",...r||{}};let[n,i]=[e,t].map((e=>(e=Pe(e,r),r.w&&(e=e.replace(/[^\w]*/gi,"")),e)));return n===i},Ut=(e,t,r)=>nt(e).some((e=>Dt(e,t,r))),Ft=(e,t)=>{e=String(e??"")[0]??"",t=parseInt(t)||0;let r="";for(;e&&t&&r.length<t;)r+=e;return r},zt=(e,t,r)=>{let n=!1;switch(lt(e)){case"String":e=at(e,r).split(""),n=!0;break;case"Array":break;default:ve("The object can only be a string or array.",400)}return t=~~t-e.length*Math.floor(~~t/e.length),e.push.apply(e,e.splice(0,t)),n?e.join(""):e},Wt=e=>["✓","1","10-4","AYE","COOL","DO","ENABLE","ENABLED","ENGAGE","ENGAGED","GOOD","GREAT","JA","OK","OKEY","ON","RIGHT","RIGHTO","ROGER","SURE","TRUE","YEP","YEPPERS","YES","YUP","YUPPERS","好","对","對","开","开启","是","開","開啟"].includes(at(e,{case:"UP"})),qt=e=>{e=at(e,{case:"UP"});const[t,r,n]=[{version:[[/^[^\.\d]*([\.\d]+).*$/i,"$1"]],build:[[/^[^\.\d]*[\.\d]+.*\-([0-9a-z]*).*/i,"$1"],[/^[^\.\d]*[\.\d]+.*\(([0-9a-z]*)\).*/i,"$1"]],channel:["INTERNAL","DEV","ALPHA","TESTING","STAGING","BETA","PRODUCTION","STABLE"]},{normalized:0},5];for(let n in t){let i="";for(let r in t[n]){const[o,a]=Array.isArray(t[n][r])?[t[n][r][0],t[n][r][1]]:[new RegExp(`^.*(${t[n][r]}).*$`,"i"),"$1"];if(o.test(e)){i=e.replace(o,a);break}}r[n]=i}if(r.version){const e=r.version.split(".");for(;e.length<n;)e.push(0);for(;e.length;)r.normalized+=Math.pow(10,5*(n-e.length))*e.pop()}return r},$t=(e,t)=>{const[r,n]=[qt(e),qt(t)];return r.normalized>=n.normalized},Zt=(e,t)=>{t=t||{},e=String(e??"");const r=it(t.maxLength)||process.stdout.columns,n=t.padding??"=";if(e.length+4>r){const t=Ft(n,r);console.log(`${t} \n${e} \n${t} `)}else{e=e?` ${e} `:"";const t=Math.floor((r-e.length)/2),i=r-t-e.length;console.log(`${Ft(n,t)}${e}${Ft(n,i)}`)}return{string:e,maxLength:r}},Gt=(e,t)=>{const r=at(e,t);return r.length?r.split(t?.separator||/\r\n|\n\r|\r|\n/):[]},Vt=(e,t)=>{let r=t?.initLine??1;const n=We(e),i=String(n.length).length,o=t?.separator??"|",a=n.map((e=>`${String(r++).padStart(i,"0")} ${o} ${at(e).replace("```","\\`\\`\\`")}`)),s=t?.asArray?a:a.join("\n");return t?.log&&console.log(s),s},Ht=(e,t)=>{jt(e,"Invalid object");const[r,n]=[Object.keys(e),t?.separator??":"];let i=0;r.map((e=>i=Math.max(i,e.length)));const o=r.map((r=>`${r.padEnd(i," ")} ${n} ${(t?.render||at)(e[r],{...t||{},key:r})}`));return t?.asArray?o:o.join("\n")},Kt=(e,t)=>{const[r,n,i]=[We(e),[],[]];return r.map((e=>{const r=/^```/.test(e);if(r&&!n.length){t?.noCode||i.push(e);const r=e.replace(/^```/,"").trim();n.push(r?`> ${r}`:"")}else if(r&&n.length){if(!t?.noCode){const r=t?.extraCodeBlock&&n[0].length;r||n.shift(),i.push(Vt(n,{...t||{},initLine:r?0:1}),e)}n.length=0}else n.length?n.push(e):i.push(e)})),t?.asArray?i:i.join("\n")},Yt=(e,r)=>{const[n,i,o,a,s]=[10,80,2048,[],t[r?.style||"round"]];let[c,u]=[~~r?.width,r?.title||""];assert(e.length,"Content must not be empty."),assert(s,`Style must be one of ${Object.keys(t).join(", ")}.`),assert(!c||c>=n&&c<=o,`Width must be between ${n} and ${o}.`);const f=(c||(c=i))-2,l=f-2,h=e=>`${e.slice(0,l-3)}...`,p=e=>a.push([s.left,e.padEnd(l," "),s.right].join(" "));u.length>l&&(u=h(u)),u.length&&(u=` ${u} `),a.push(s.topLeft+u+s.top.repeat(f-u.length)+s.topRight),u.length&&p(""),We(e).map((e=>{for(e=e||" ";e.length;)p(r?.noWrap?h(e):e.slice(0,l)),e=r?.noWrap?"":e.slice(l)})),p(""),a.push(s.bottomLeft+s.bottom.repeat(f)+s.bottomRight);const d=r?.asArray?a:a.join("\n");return r?.log&&console.log(d),d},Jt=(e,t,r)=>{(r=r||{}).base=it(r.base,{min:0}),r.step=it(r.step,{min:1}),[e,t]=[it(e),it(t)];const[n,i]=[e<=t?1:-1,[]];for(let o=e;n>0?o<=t:o>=t;o+=r.step*n)(!r.noBoundary||o!==e&&o!==t)&&i.push(r.base+o);return i},Xt=(e,t)=>!((Math.round(Date.now()/1e3)+it(t))%it(e)),Qt=async(e,t)=>{const r=async()=>{try{return await e(...t?.args||[])}catch(e){t?.log&&console.error(e)}};return t?.await?(await Ne(t.await),await r()):t?.wait?setTimeout(r,t.wait):await r()},er=async(e,t)=>{t={interval:1e3,maxTry:1/0,log:!1,error:"Operation failed.",verify:async(e,t)=>!e,...t||{}};let[r,n,i]=[0,null,null];do{try{assert(await t.verify(i=null,n=await e()),t.error)}catch(e){(i=e)&&t?.log&&console.error(e),await Ne(t.interval)}}while(++r<t.maxTry&&i);return i&&ve(i,500),n},tr=(e,t)=>Pe(e,t).split(t?.separator??/[,|;\ \t\n]+/).map((e=>e.trim())).filter((e=>e.length)),rr=e=>{if(String.isString(e))for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0},nr=e=>e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;"),ir=(e,t)=>ot(e).replace(/(?!\d)(?!\*)[\p{Emoji_Modifier}\p{Emoji_Component}\p{Extended_Pictographic}]/gu,t??""),or=(e,t)=>(t=t||{},e=at(e),t.kepp=(t.kepp=~~t.kepp||1)>=e.length?e.length-1:t.kepp,e.replace(/.{1}/g,t.replace||"*").replace(new RegExp(`^.{${t.kepp}}`),e.substr(0,t.kepp))),ar=(e,t)=>{let r;return function(){return e&&(r=e.apply(t||this,arguments),e=null),r}},sr=e=>{const t=e.toString().replace(/(\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s*=[^,\)]*(('(?:\\'|[^'\r\n])*')|("(?:\\"|[^"\r\n])*"))|(\s*=[^,\)]*))/gm,"");return(t.slice(t.indexOf("(")+1,t.indexOf(")")).match(/([^\s,]+)/g)||[]).filter((e=>!/\:|\'|\"|\{|\}|^\d+$/gi.test(e)))},cr=e=>{Tt(e);const[t,r]=[Object.getOwnPropertyNames(e),{}];return t.sort().map((t=>r[t]={type:lt(e[t]),...Function.isFunction(e[t])?{params:sr(e[t])}:{value:at(e[t])}})),r},ur=async(e,t)=>(assert(e,`Module \`${e}\` is required.`,500),Ge[e]||(Ge[e]=await i(765)(e)),!t?.raw&&Ge[e].default?Ge[e].default:Ge[e]),fr=e=>Array.isArray(e)?e.length:Object.isObject(e)?Object.keys(e).length:0,lr=(e,t)=>{const r={};return Object.keys(e).filter((e=>!t.includes(e))).map((t=>r[t]=e[t])),r},hr=()=>{const e=["Firefox",[he,"Edg"],le,["MSIE","Trident"],"Safari"].map(nt);try{for(let t of e)for(let e of t)if(navigator.userAgent.includes(e))return t[0];return"object"==typeof window}catch(e){}return!1},pr=()=>{try{if(process.stdout.isTTY&&"dumb"!==process.env.TERM)return"Node.js"}catch(e){}const e=hr();return!![le,he].includes(e)&&e},dr=e=>((e||"").match(/"[^"]+"|'[^']+'|\S+/g)||[]).map((e=>e.replace(/^['"]|['"]$/g,""))),gr=e=>{Rt(e,null,null,{strict:!0});const[t,r]=[e.getHours(),e.getMinutes()],[n,i]=[60*(t>=12?t-12:t)+r,[]];for(const e in Ke){const[t,r]=e.split(":").map((e=>parseInt(e)));i.push([Math.abs(n-(60*t+r)),e,t,r])}return i.sort(((e,t)=>e[0]-t[0])),Ke[i[0][1]]};var yr=i(7713),mr=i(6060),br=i(6889),vr=i(8287).Buffer;const wr=["@google-cloud/speech","@google-cloud/text-to-speech","@google-cloud/vision","google-gax"],_r="sha256",Er="aes-256-gcm",kr=e=>Ar(at(e||(0,br.networkInterfaces)())),xr=e=>Ar(e,"md5"),Sr=(e,t)=>e&&String.isString(e)?e:Ae(t,1),Or=e=>e?vr.isBuffer(e)?e:je(e,1):null,Rr=e=>{const t=new URLSearchParams;return Object.keys(e).sort().map((r=>t.append(r,at(e[r])))),t.toString()},Ar=(e,t=_r)=>(0,mr.createHash)(t).update(e).digest("hex"),jr=(e,t=_r)=>new Promise((r=>{const n=(0,mr.createHash)(t);(0,yr.createReadStream)(e).on("data",(e=>n.update(e))).on("end",(()=>r(n.digest("hex"))))})),Tr=(e=128,t="HEX")=>{let r=Math.ceil(~~e/2);return r=r>0?r:1,(0,mr.randomBytes)(r).toString(t).substring(0,e)},Ir=(e,t)=>Ar(Rr(e),t),Lr=e=>(e=`0x${at(e||"0").replace(/^0x/gi,"")}`,BigInt(e,16).toString(10)),Br=async e=>{const{GoogleAuth:t,grpc:r}=await ur("google-gax"),n=(new t).fromAPIKey(e?.apiKey);return r.credentials.combineChannelCredentials(r.credentials.createSsl(),r.credentials.createFromGoogleCredential(n))},Mr=e=>{const t=Or(e?.key)||(0,mr.randomBytes)((e?.length||256)/8);return{buffer:t,base64:Sr(e?.key,t)}},Nr=e=>{const t=Or(e?.iv)||(0,mr.randomBytes)(16);return{buffer:t,base64:Sr(e?.iv,t)}},Pr=e=>{const t=Or(e?.authTag);return{buffer:t,base64:Sr(e?.authTag,t)}},Cr=(e,t)=>{assert(e,"Invalid input.",400),e=vr.isBuffer(e)?e:vr.from(e);const[r,n]=[Mr,Nr].map((e=>e(t))),i=(0,mr.createCipheriv)(Er,r.buffer,n.buffer),o=at(t?.expected||"BASE64",{case:"UP"});let a=vr.concat([i.update(e),i.final()]);switch(o){case"":case"BASE64":a=Ae(a);break;case"BUFFER":break;case"HEX":a=Te(a);break;default:throwError("Unsupported output type.",400)}return{key:r.base64,iv:n.base64,encrypted:a,encryption:Er,authTag:Ae(i.getAuthTag(),!0)}},Dr=(e,t)=>{assert(e,"Invalid input.",400),e=vr.isBuffer(e)?e:je(e,!0);const[r,n,i]=[Mr,Nr,Pr].map((e=>e(t))),o=(0,mr.createDecipheriv)(Er,r.buffer,n.buffer),a=at(t?.expected||"TEXT",{case:"UP"});o.setAuthTag(i.buffer);let s=vr.concat([o.update(e),o.final()]);switch(a){case"":case"TEXT":s=s.toString();break;case"BASE64":s=Ae(s);break;case"BUFFER":break;case"HEX":s=Te(s);break;default:throwError("Unsupported output type.",400)}return s};var Ur=i(8559);function Fr(e){return new DataView(e.buffer,e.byteOffset)}i(251);const zr={len:1,get:(e,t)=>Fr(e).getUint8(t),put:(e,t,r)=>(Fr(e).setUint8(t,r),t+1)},Wr={len:2,get:(e,t)=>Fr(e).getUint16(t,!0),put:(e,t,r)=>(Fr(e).setUint16(t,r,!0),t+2)},qr={len:2,get:(e,t)=>Fr(e).getUint16(t),put:(e,t,r)=>(Fr(e).setUint16(t,r),t+2)},$r={len:4,get:(e,t)=>Fr(e).getUint32(t,!0),put:(e,t,r)=>(Fr(e).setUint32(t,r,!0),t+4)},Zr={len:4,get:(e,t)=>Fr(e).getUint32(t),put:(e,t,r)=>(Fr(e).setUint32(t,r),t+4)},Gr={len:4,get:(e,t)=>Fr(e).getInt32(t),put:(e,t,r)=>(Fr(e).setInt32(t,r),t+4)},Vr={len:8,get:(e,t)=>Fr(e).getBigUint64(t,!0),put:(e,t,r)=>(Fr(e).setBigUint64(t,r,!0),t+8)};class Hr{constructor(e,t){this.len=e,this.encoding=t}get(e,t){return $.Buffer.from(e).toString(this.encoding,t,t+this.len)}}class Kr{constructor(e){this.len=e}static decode(e,t,r){let n="";for(let i=t;i<r;++i)n+=Kr.codePointToString(Kr.singleByteDecoder(e[i]));return n}static inRange(e,t,r){return t<=e&&e<=r}static codePointToString(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}static singleByteDecoder(e){if(Kr.inRange(e,0,127))return e;const t=Kr.windows1252[e-128];if(null===t)throw Error("invaliding encoding");return t}get(e,t=0){return Kr.decode(e,t,t+this.len)}}Kr.windows1252=[8364,129,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,141,381,143,144,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,157,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255];class Yr extends Error{constructor(){super("End-Of-Stream")}}class Jr{constructor(){this.resolve=()=>null,this.reject=()=>null,this.promise=new Promise(((e,t)=>{this.reject=t,this.resolve=e}))}}class Xr{constructor(e){if(this.s=e,this.deferred=null,this.endOfStream=!1,this.peekQueue=[],!e.read||!e.once)throw new Error("Expected an instance of stream.Readable");this.s.once("end",(()=>this.reject(new Yr))),this.s.once("error",(e=>this.reject(e))),this.s.once("close",(()=>this.reject(new Error("Stream closed"))))}async peek(e,t,r){const n=await this.read(e,t,r);return this.peekQueue.push(e.subarray(t,t+n)),n}async read(e,t,r){if(0===r)return 0;if(0===this.peekQueue.length&&this.endOfStream)throw new Yr;let n=r,i=0;for(;this.peekQueue.length>0&&n>0;){const r=this.peekQueue.pop();if(!r)throw new Error("peekData should be defined");const o=Math.min(r.length,n);e.set(r.subarray(0,o),t+i),i+=o,n-=o,o<r.length&&this.peekQueue.push(r.subarray(o))}for(;n>0&&!this.endOfStream;){const r=Math.min(n,1048576),o=await this.readFromStream(e,t+i,r);if(i+=o,o<r)break;n-=o}return i}async readFromStream(e,t,r){const n=this.s.read(r);if(n)return e.set(n,t),n.length;{const n={buffer:e,offset:t,length:r,deferred:new Jr};return this.deferred=n.deferred,this.s.once("readable",(()=>{this.readDeferred(n)})),n.deferred.promise}}readDeferred(e){const t=this.s.read(e.length);t?(e.buffer.set(t,e.offset),e.deferred.resolve(t.length),this.deferred=null):this.s.once("readable",(()=>{this.readDeferred(e)}))}reject(e){this.endOfStream=!0,this.deferred&&(this.deferred.reject(e),this.deferred=null)}}class Qr{constructor(e){this.position=0,this.numBuffer=new Uint8Array(8),this.fileInfo=e||{}}async readToken(e,t=this.position){const r=$.Buffer.alloc(e.len);if(await this.readBuffer(r,{position:t})<e.len)throw new Yr;return e.get(r,0)}async peekToken(e,t=this.position){const r=$.Buffer.alloc(e.len);if(await this.peekBuffer(r,{position:t})<e.len)throw new Yr;return e.get(r,0)}async readNumber(e){if(await this.readBuffer(this.numBuffer,{length:e.len})<e.len)throw new Yr;return e.get(this.numBuffer,0)}async peekNumber(e){if(await this.peekBuffer(this.numBuffer,{length:e.len})<e.len)throw new Yr;return e.get(this.numBuffer,0)}async ignore(e){if(void 0!==this.fileInfo.size){const t=this.fileInfo.size-this.position;if(e>t)return this.position+=t,t}return this.position+=e,e}async close(){}normalizeOptions(e,t){if(t&&void 0!==t.position&&t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");return t?{mayBeLess:!0===t.mayBeLess,offset:t.offset?t.offset:0,length:t.length?t.length:e.length-(t.offset?t.offset:0),position:t.position?t.position:this.position}:{mayBeLess:!1,offset:0,length:e.length,position:this.position}}}class en extends Qr{constructor(e,t){super(t),this.streamReader=new Xr(e)}async getFileInfo(){return this.fileInfo}async readBuffer(e,t){const r=this.normalizeOptions(e,t),n=r.position-this.position;if(n>0)return await this.ignore(n),this.readBuffer(e,t);if(n<0)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");if(0===r.length)return 0;const i=await this.streamReader.read(e,r.offset,r.length);if(this.position+=i,(!t||!t.mayBeLess)&&i<r.length)throw new Yr;return i}async peekBuffer(e,t){const r=this.normalizeOptions(e,t);let n=0;if(r.position){const t=r.position-this.position;if(t>0){const i=new Uint8Array(r.length+t);return n=await this.peekBuffer(i,{mayBeLess:r.mayBeLess}),e.set(i.subarray(t),r.offset),n-t}if(t<0)throw new Error("Cannot peek from a negative offset in a stream")}if(r.length>0){try{n=await this.streamReader.peek(e,r.offset,r.length)}catch(e){if(t&&t.mayBeLess&&e instanceof Yr)return 0;throw e}if(!r.mayBeLess&&n<r.length)throw new Yr}return n}async ignore(e){const t=Math.min(256e3,e),r=new Uint8Array(t);let n=0;for(;n<e;){const i=e-n,o=await this.readBuffer(r,{length:Math.min(t,i)});if(o<0)return o;n+=o}return n}}class tn extends Qr{constructor(e,t){super(t),this.uint8Array=e,this.fileInfo.size=this.fileInfo.size?this.fileInfo.size:e.length}async readBuffer(e,t){if(t&&t.position){if(t.position<this.position)throw new Error("`options.position` must be equal or greater than `tokenizer.position`");this.position=t.position}const r=await this.peekBuffer(e,t);return this.position+=r,r}async peekBuffer(e,t){const r=this.normalizeOptions(e,t),n=Math.min(this.uint8Array.length-r.position,r.length);if(!r.mayBeLess&&n<r.length)throw new Yr;return e.set(this.uint8Array.subarray(r.position,r.position+n),r.offset),n}async close(){}}const rn={get:(e,t)=>127&e[t+3]|e[t+2]<<7|e[t+1]<<14|e[t]<<21,len:4},nn=4100;async function on(e){return(new sn).fromBuffer(e)}function an(e,t,r){r={offset:0,...r};for(const[n,i]of t.entries())if(r.mask){if(i!==(r.mask[n]&e[n+r.offset]))return!1}else if(i!==e[n+r.offset])return!1;return!0}class sn{constructor(e){this.detectors=e?.customDetectors,this.fromTokenizer=this.fromTokenizer.bind(this),this.fromBuffer=this.fromBuffer.bind(this),this.parse=this.parse.bind(this)}async fromTokenizer(e){const t=e.position;for(const r of this.detectors||[]){const n=await r(e);if(n)return n;if(t!==e.position)return}return this.parse(e)}async fromBuffer(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);if(t?.length>1)return this.fromTokenizer(new tn(t,undefined))}async fromBlob(e){const t=await e.arrayBuffer();return this.fromBuffer(new Uint8Array(t))}async fromStream(e){const t=await function(e,t){return new en(e,t=t||{})}(e);try{return await this.fromTokenizer(t)}finally{await t.close()}}async toDetectionStream(e,t={}){const{default:r}=await Promise.resolve().then(i.t.bind(i,8399,19)),{sampleSize:n=nn}=t;return new Promise(((t,i)=>{e.on("error",i),e.once("readable",(()=>{(async()=>{try{const o=new r.PassThrough,a=r.pipeline?r.pipeline(e,o,(()=>{})):e.pipe(o),s=e.read(n)??e.read()??$.Buffer.alloc(0);try{o.fileType=await this.fromBuffer(s)}catch(e){e instanceof Yr?o.fileType=void 0:i(e)}t(a)}catch(e){i(e)}})()}))}))}check(e,t){return an(this.buffer,e,t)}checkString(e,t){return this.check((r=e,[...r].map((e=>e.charCodeAt(0)))),t);var r}async parse(e){if(this.buffer=$.Buffer.alloc(nn),void 0===e.fileInfo.size&&(e.fileInfo.size=Number.MAX_SAFE_INTEGER),this.tokenizer=e,await e.peekBuffer(this.buffer,{length:12,mayBeLess:!0}),this.check([66,77]))return{ext:"bmp",mime:"image/bmp"};if(this.check([11,119]))return{ext:"ac3",mime:"audio/vnd.dolby.dd-raw"};if(this.check([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(this.check([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if(this.check([37,33]))return await e.peekBuffer(this.buffer,{length:24,mayBeLess:!0}),this.checkString("PS-Adobe-",{offset:2})&&this.checkString(" EPSF-",{offset:14})?{ext:"eps",mime:"application/eps"}:{ext:"ps",mime:"application/postscript"};if(this.check([31,160])||this.check([31,157]))return{ext:"Z",mime:"application/x-compress"};if(this.check([199,113]))return{ext:"cpio",mime:"application/x-cpio"};if(this.check([96,234]))return{ext:"arj",mime:"application/x-arj"};if(this.check([239,187,191]))return this.tokenizer.ignore(3),this.parse(e);if(this.check([71,73,70]))return{ext:"gif",mime:"image/gif"};if(this.check([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(this.check([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(this.check([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(this.checkString("ID3")){await e.ignore(6);const t=await e.readToken(rn);return e.position+t>e.fileInfo.size?{ext:"mp3",mime:"audio/mpeg"}:(await e.ignore(t),this.fromTokenizer(e))}if(this.checkString("MP+"))return{ext:"mpc",mime:"audio/x-musepack"};if((67===this.buffer[0]||70===this.buffer[0])&&this.check([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(this.check([255,216,255]))return this.check([247],{offset:3})?{ext:"jls",mime:"image/jls"}:{ext:"jpg",mime:"image/jpeg"};if(this.check([79,98,106,1]))return{ext:"avro",mime:"application/avro"};if(this.checkString("FLIF"))return{ext:"flif",mime:"image/flif"};if(this.checkString("8BPS"))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(this.checkString("WEBP",{offset:8}))return{ext:"webp",mime:"image/webp"};if(this.checkString("MPCK"))return{ext:"mpc",mime:"audio/x-musepack"};if(this.checkString("FORM"))return{ext:"aif",mime:"audio/aiff"};if(this.checkString("icns",{offset:0}))return{ext:"icns",mime:"image/icns"};if(this.check([80,75,3,4])){try{for(;e.position+30<e.fileInfo.size;){await e.readBuffer(this.buffer,{length:30});const r={compressedSize:this.buffer.readUInt32LE(18),uncompressedSize:this.buffer.readUInt32LE(22),filenameLength:this.buffer.readUInt16LE(26),extraFieldLength:this.buffer.readUInt16LE(28)};if(r.filename=await e.readToken(new Hr(r.filenameLength,"utf-8")),await e.ignore(r.extraFieldLength),"META-INF/mozilla.rsa"===r.filename)return{ext:"xpi",mime:"application/x-xpinstall"};if(r.filename.endsWith(".rels")||r.filename.endsWith(".xml"))switch(r.filename.split("/")[0]){case"_rels":default:break;case"word":return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};case"ppt":return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};case"xl":return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}if(r.filename.startsWith("xl/"))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"};if(r.filename.startsWith("3D/")&&r.filename.endsWith(".model"))return{ext:"3mf",mime:"model/3mf"};if("mimetype"===r.filename&&r.compressedSize===r.uncompressedSize){let n=await e.readToken(new Hr(r.compressedSize,"utf-8"));switch(n=n.trim(),n){case"application/epub+zip":return{ext:"epub",mime:"application/epub+zip"};case"application/vnd.oasis.opendocument.text":return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};case"application/vnd.oasis.opendocument.spreadsheet":return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};case"application/vnd.oasis.opendocument.presentation":return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"}}}if(0===r.compressedSize){let i=-1;for(;i<0&&e.position<e.fileInfo.size;)await e.peekBuffer(this.buffer,{mayBeLess:!0}),i=this.buffer.indexOf("504B0304",0,"hex"),await e.ignore(i>=0?i:this.buffer.length)}else await e.ignore(r.compressedSize)}}catch(o){if(!(o instanceof Yr))throw o}return{ext:"zip",mime:"application/zip"}}if(this.checkString("OggS")){await e.ignore(28);const a=$.Buffer.alloc(8);return await e.readBuffer(a),an(a,[79,112,117,115,72,101,97,100])?{ext:"opus",mime:"audio/opus"}:an(a,[128,116,104,101,111,114,97])?{ext:"ogv",mime:"video/ogg"}:an(a,[1,118,105,100,101,111,0])?{ext:"ogm",mime:"video/ogg"}:an(a,[127,70,76,65,67])?{ext:"oga",mime:"audio/ogg"}:an(a,[83,112,101,101,120,32,32])?{ext:"spx",mime:"audio/ogg"}:an(a,[1,118,111,114,98,105,115])?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"}}if(this.check([80,75])&&(3===this.buffer[2]||5===this.buffer[2]||7===this.buffer[2])&&(4===this.buffer[3]||6===this.buffer[3]||8===this.buffer[3]))return{ext:"zip",mime:"application/zip"};if(this.checkString("ftyp",{offset:4})&&96&this.buffer[8]){const s=this.buffer.toString("binary",8,12).replace("\0"," ").trim();switch(s){case"avif":case"avis":return{ext:"avif",mime:"image/avif"};case"mif1":return{ext:"heic",mime:"image/heif"};case"msf1":return{ext:"heic",mime:"image/heif-sequence"};case"heic":case"heix":return{ext:"heic",mime:"image/heic"};case"hevc":case"hevx":return{ext:"heic",mime:"image/heic-sequence"};case"qt":return{ext:"mov",mime:"video/quicktime"};case"M4V":case"M4VH":case"M4VP":return{ext:"m4v",mime:"video/x-m4v"};case"M4P":return{ext:"m4p",mime:"video/mp4"};case"M4B":return{ext:"m4b",mime:"audio/mp4"};case"M4A":return{ext:"m4a",mime:"audio/x-m4a"};case"F4V":return{ext:"f4v",mime:"video/mp4"};case"F4P":return{ext:"f4p",mime:"video/mp4"};case"F4A":return{ext:"f4a",mime:"audio/mp4"};case"F4B":return{ext:"f4b",mime:"audio/mp4"};case"crx":return{ext:"cr3",mime:"image/x-canon-cr3"};default:return s.startsWith("3g")?s.startsWith("3g2")?{ext:"3g2",mime:"video/3gpp2"}:{ext:"3gp",mime:"video/3gpp"}:{ext:"mp4",mime:"video/mp4"}}}if(this.checkString("MThd"))return{ext:"mid",mime:"audio/midi"};if(this.checkString("wOFF")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff",mime:"font/woff"};if(this.checkString("wOF2")&&(this.check([0,1,0,0],{offset:4})||this.checkString("OTTO",{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(this.check([212,195,178,161])||this.check([161,178,195,212]))return{ext:"pcap",mime:"application/vnd.tcpdump.pcap"};if(this.checkString("DSD "))return{ext:"dsf",mime:"audio/x-dsf"};if(this.checkString("LZIP"))return{ext:"lz",mime:"application/x-lzip"};if(this.checkString("fLaC"))return{ext:"flac",mime:"audio/x-flac"};if(this.check([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(this.checkString("wvpk"))return{ext:"wv",mime:"audio/wavpack"};if(this.checkString("%PDF")){try{await e.ignore(1350);const c=10485760,u=$.Buffer.alloc(Math.min(c,e.fileInfo.size));if(await e.readBuffer(u,{mayBeLess:!0}),u.includes($.Buffer.from("AIPrivateData")))return{ext:"ai",mime:"application/postscript"}}catch(f){if(!(f instanceof Yr))throw f}return{ext:"pdf",mime:"application/pdf"}}if(this.check([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(this.check([73,73])){const l=await this.readTiffHeader(!1);if(l)return l}if(this.check([77,77])){const h=await this.readTiffHeader(!0);if(h)return h}if(this.checkString("MAC "))return{ext:"ape",mime:"audio/ape"};if(this.check([26,69,223,163])){async function p(){const t=await e.peekNumber(zr);let r=128,n=0;for(;!(t&r)&&0!==r;)++n,r>>=1;const i=$.Buffer.alloc(n+1);return await e.readBuffer(i),i}async function d(){const e=await p(),t=await p();t[0]^=128>>t.length-1;const r=Math.min(6,t.length);return{id:e.readUIntBE(0,e.length),len:t.readUIntBE(t.length-r,r)}}async function g(t){for(;t>0;){const r=await d();if(17026===r.id)return(await e.readToken(new Hr(r.len,"utf-8"))).replaceAll(/\00.*$/g,"");await e.ignore(r.len),--t}}const y=await d();switch(await g(y.len)){case"webm":return{ext:"webm",mime:"video/webm"};case"matroska":return{ext:"mkv",mime:"video/x-matroska"};default:return}}if(this.check([82,73,70,70])){if(this.check([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(this.check([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/wav"};if(this.check([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(this.checkString("SQLi"))return{ext:"sqlite",mime:"application/x-sqlite3"};if(this.check([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(this.checkString("Cr24"))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(this.checkString("MSCF")||this.checkString("ISc("))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(this.check([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(this.check([197,208,211,198]))return{ext:"eps",mime:"application/eps"};if(this.check([40,181,47,253]))return{ext:"zst",mime:"application/zstd"};if(this.check([127,69,76,70]))return{ext:"elf",mime:"application/x-elf"};if(this.check([33,66,68,78]))return{ext:"pst",mime:"application/vnd.ms-outlook"};if(this.checkString("PAR1"))return{ext:"parquet",mime:"application/x-parquet"};if(this.check([207,250,237,254]))return{ext:"macho",mime:"application/x-mach-binary"};if(this.check([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(this.checkString("#!AMR"))return{ext:"amr",mime:"audio/amr"};if(this.checkString("{\\rtf"))return{ext:"rtf",mime:"application/rtf"};if(this.check([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(this.checkString("IMPM"))return{ext:"it",mime:"audio/x-it"};if(this.checkString("-lh0-",{offset:2})||this.checkString("-lh1-",{offset:2})||this.checkString("-lh2-",{offset:2})||this.checkString("-lh3-",{offset:2})||this.checkString("-lh4-",{offset:2})||this.checkString("-lh5-",{offset:2})||this.checkString("-lh6-",{offset:2})||this.checkString("-lh7-",{offset:2})||this.checkString("-lzs-",{offset:2})||this.checkString("-lz4-",{offset:2})||this.checkString("-lz5-",{offset:2})||this.checkString("-lhd-",{offset:2}))return{ext:"lzh",mime:"application/x-lzh-compressed"};if(this.check([0,0,1,186])){if(this.check([33],{offset:4,mask:[241]}))return{ext:"mpg",mime:"video/MP1S"};if(this.check([68],{offset:4,mask:[196]}))return{ext:"mpg",mime:"video/MP2P"}}if(this.checkString("ITSF"))return{ext:"chm",mime:"application/vnd.ms-htmlhelp"};if(this.check([202,254,186,190]))return{ext:"class",mime:"application/java-vm"};if(this.check([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(this.checkString("<?xml "))return{ext:"xml",mime:"application/xml"};if(this.check([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(this.check([82,97,114,33,26,7])&&(0===this.buffer[6]||1===this.buffer[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(this.checkString("solid "))return{ext:"stl",mime:"model/stl"};if(this.checkString("AC")){const m=this.buffer.toString("binary",2,6);if(m.match("^d*")&&m>=1e3&&m<=1050)return{ext:"dwg",mime:"image/vnd.dwg"}}if(this.checkString("070707"))return{ext:"cpio",mime:"application/x-cpio"};if(this.checkString("BLENDER"))return{ext:"blend",mime:"application/x-blender"};if(this.checkString("!<arch>"))return await e.ignore(8),"debian-binary"===await e.readToken(new Hr(13,"ascii"))?{ext:"deb",mime:"application/x-deb"}:{ext:"ar",mime:"application/x-unix-archive"};if(this.checkString("**ACE",{offset:7})&&(await e.peekBuffer(this.buffer,{length:14,mayBeLess:!0}),this.checkString("**",{offset:12})))return{ext:"ace",mime:"application/x-ace-compressed"};if(this.check([137,80,78,71,13,10,26,10])){async function b(){return{length:await e.readToken(Gr),type:await e.readToken(new Hr(4,"binary"))}}await e.ignore(8);do{const v=await b();if(v.length<0)return;switch(v.type){case"IDAT":return{ext:"png",mime:"image/png"};case"acTL":return{ext:"apng",mime:"image/apng"};default:await e.ignore(v.length+4)}}while(e.position+8<e.fileInfo.size);return{ext:"png",mime:"image/png"}}if(this.check([65,82,82,79,87,49,0,0]))return{ext:"arrow",mime:"application/x-apache-arrow"};if(this.check([103,108,84,70,2,0,0,0]))return{ext:"glb",mime:"model/gltf-binary"};if(this.check([102,114,101,101],{offset:4})||this.check([109,100,97,116],{offset:4})||this.check([109,111,111,118],{offset:4})||this.check([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(this.check([73,73,82,79,8,0,0,0,24]))return{ext:"orf",mime:"image/x-olympus-orf"};if(this.checkString("gimp xcf "))return{ext:"xcf",mime:"image/x-xcf"};if(this.check([73,73,85,0,24,0,0,0,136,231,116,216]))return{ext:"rw2",mime:"image/x-panasonic-rw2"};if(this.check([48,38,178,117,142,102,207,17,166,217])){async function w(){const t=$.Buffer.alloc(16);return await e.readBuffer(t),{id:t,size:Number(await e.readToken(Vr))}}for(await e.ignore(30);e.position+24<e.fileInfo.size;){const _=await w();let E=_.size-24;if(an(_.id,[145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101])){const k=$.Buffer.alloc(16);if(E-=await e.readBuffer(k),an(k,[64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"audio/x-ms-asf"};if(an(k,[192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43]))return{ext:"asf",mime:"video/x-ms-asf"};break}await e.ignore(E)}return{ext:"asf",mime:"application/vnd.ms-asf"}}if(this.check([171,75,84,88,32,49,49,187,13,10,26,10]))return{ext:"ktx",mime:"image/ktx"};if((this.check([126,16,4])||this.check([126,24,4]))&&this.check([48,77,73,69],{offset:4}))return{ext:"mie",mime:"application/x-mie"};if(this.check([39,10,0,0,0,0,0,0,0,0,0,0],{offset:2}))return{ext:"shp",mime:"application/x-esri-shape"};if(this.check([255,79,255,81]))return{ext:"j2c",mime:"image/j2c"};if(this.check([0,0,0,12,106,80,32,32,13,10,135,10]))switch(await e.ignore(20),await e.readToken(new Hr(4,"ascii"))){case"jp2 ":return{ext:"jp2",mime:"image/jp2"};case"jpx ":return{ext:"jpx",mime:"image/jpx"};case"jpm ":return{ext:"jpm",mime:"image/jpm"};case"mjp2":return{ext:"mj2",mime:"image/mj2"};default:return}if(this.check([255,10])||this.check([0,0,0,12,74,88,76,32,13,10,135,10]))return{ext:"jxl",mime:"image/jxl"};if(this.check([254,255]))return this.check([0,60,0,63,0,120,0,109,0,108],{offset:2})?{ext:"xml",mime:"application/xml"}:void 0;if(this.check([0,0,1,186])||this.check([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(this.check([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(this.check([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(this.check([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(this.check([208,207,17,224,161,177,26,225]))return{ext:"cfb",mime:"application/x-cfb"};if(await e.peekBuffer(this.buffer,{length:Math.min(256,e.fileInfo.size),mayBeLess:!0}),this.check([97,99,115,112],{offset:36}))return{ext:"icc",mime:"application/vnd.iccprofile"};if(this.checkString("BEGIN:")){if(this.checkString("VCARD",{offset:6}))return{ext:"vcf",mime:"text/vcard"};if(this.checkString("VCALENDAR",{offset:6}))return{ext:"ics",mime:"text/calendar"}}if(this.checkString("FUJIFILMCCD-RAW"))return{ext:"raf",mime:"image/x-fujifilm-raf"};if(this.checkString("Extended Module:"))return{ext:"xm",mime:"audio/x-xm"};if(this.checkString("Creative Voice File"))return{ext:"voc",mime:"audio/x-voc"};if(this.check([4,0,0,0])&&this.buffer.length>=16){const x=this.buffer.readUInt32LE(12);if(x>12&&this.buffer.length>=x+16)try{const S=this.buffer.slice(16,x+16).toString();if(JSON.parse(S).files)return{ext:"asar",mime:"application/x-asar"}}catch{}}if(this.check([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(this.checkString("SCRM",{offset:44}))return{ext:"s3m",mime:"audio/x-s3m"};if(this.check([71])&&this.check([71],{offset:188}))return{ext:"mts",mime:"video/mp2t"};if(this.check([71],{offset:4})&&this.check([71],{offset:196}))return{ext:"mts",mime:"video/mp2t"};if(this.check([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(this.check([68,73,67,77],{offset:128}))return{ext:"dcm",mime:"application/dicom"};if(this.check([76,0,0,0,1,20,2,0,0,0,0,0,192,0,0,0,0,0,0,70]))return{ext:"lnk",mime:"application/x.ms.shortcut"};if(this.check([98,111,111,107,0,0,0,0,109,97,114,107,0,0,0,0]))return{ext:"alias",mime:"application/x.apple.alias"};if(this.checkString("Kaydara FBX Binary \0"))return{ext:"fbx",mime:"application/x.autodesk.fbx"};if(this.check([76,80],{offset:34})&&(this.check([0,0,1],{offset:8})||this.check([1,0,2],{offset:8})||this.check([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(this.check([6,6,237,245,216,29,70,229,189,49,239,231,254,116,183,29]))return{ext:"indd",mime:"application/x-indesign"};if(await e.peekBuffer(this.buffer,{length:Math.min(512,e.fileInfo.size),mayBeLess:!0}),function(e,t=0){const r=Number.parseInt(e.toString("utf8",148,154).replace(/\0.*$/,"").trim(),8);if(Number.isNaN(r))return!1;let n=256;for(let r=t;r<t+148;r++)n+=e[r];for(let r=t+156;r<t+512;r++)n+=e[r];return r===n}(this.buffer))return{ext:"tar",mime:"application/x-tar"};if(this.check([255,254]))return this.check([60,0,63,0,120,0,109,0,108,0],{offset:2})?{ext:"xml",mime:"application/xml"}:this.check([255,14,83,0,107,0,101,0,116,0,99,0,104,0,85,0,112,0,32,0,77,0,111,0,100,0,101,0,108,0],{offset:2})?{ext:"skp",mime:"application/vnd.sketchup.skp"}:void 0;if(this.checkString("-----BEGIN PGP MESSAGE-----"))return{ext:"pgp",mime:"application/pgp-encrypted"};if(this.buffer.length>=2&&this.check([255,224],{offset:0,mask:[255,224]})){if(this.check([16],{offset:1,mask:[22]}))return this.check([8],{offset:1,mask:[8]}),{ext:"aac",mime:"audio/aac"};if(this.check([2],{offset:1,mask:[6]}))return{ext:"mp3",mime:"audio/mpeg"};if(this.check([4],{offset:1,mask:[6]}))return{ext:"mp2",mime:"audio/mpeg"};if(this.check([6],{offset:1,mask:[6]}))return{ext:"mp1",mime:"audio/mpeg"}}}async readTiffTag(e){const t=await this.tokenizer.readToken(e?qr:Wr);switch(this.tokenizer.ignore(10),t){case 50341:return{ext:"arw",mime:"image/x-sony-arw"};case 50706:return{ext:"dng",mime:"image/x-adobe-dng"}}}async readTiffIFD(e){const t=await this.tokenizer.readToken(e?qr:Wr);for(let r=0;r<t;++r){const t=await this.readTiffTag(e);if(t)return t}}async readTiffHeader(e){const t=(e?qr:Wr).get(this.buffer,2),r=(e?Zr:$r).get(this.buffer,4);if(42===t){if(r>=6){if(this.checkString("CR",{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r>=8&&(this.check([28,0,254,0],{offset:8})||this.check([31,0,11,0],{offset:8})))return{ext:"nef",mime:"image/x-nikon-nef"}}return await this.tokenizer.ignore(r),await this.readTiffIFD(e)??{ext:"tif",mime:"image/tiff"}}if(43===t)return{ext:"tif",mime:"image/tiff"}}}new Set(["jpg","png","apng","gif","webp","flif","xcf","cr2","cr3","orf","arw","dng","nef","rw2","raf","tif","bmp","icns","jxr","psd","indd","zip","tar","rar","gz","bz2","7z","dmg","mp4","mid","mkv","webm","mov","avi","mpg","mp2","mp3","m4a","oga","ogg","ogv","opus","flac","wav","spx","amr","pdf","epub","elf","macho","exe","swf","rtf","wasm","woff","woff2","eot","ttf","otf","ico","flv","ps","xz","sqlite","nes","crx","xpi","cab","deb","ar","rpm","Z","lz","cfb","mxf","mts","blend","bpg","docx","pptx","xlsx","3gp","3g2","j2c","jp2","jpm","jpx","mj2","aif","qcp","odt","ods","odp","xml","mobi","heic","cur","ktx","ape","wv","dcm","ics","glb","pcap","dsf","lnk","alias","voc","ac3","m4v","m4p","m4b","f4v","f4p","f4b","f4a","mie","asf","ogm","ogx","mpc","arrow","shp","aac","mp1","it","s3m","xm","ai","skp","avif","eps","lzh","pgp","asar","stl","chm","3mf","zst","jxl","vcf","jls","pst","dwg","parquet","class","arj","cpio","ace","avro","icc","fbx"]),new Set(["image/jpeg","image/png","image/gif","image/webp","image/flif","image/x-xcf","image/x-canon-cr2","image/x-canon-cr3","image/tiff","image/bmp","image/vnd.ms-photo","image/vnd.adobe.photoshop","application/x-indesign","application/epub+zip","application/x-xpinstall","application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/zip","application/x-tar","application/x-rar-compressed","application/gzip","application/x-bzip2","application/x-7z-compressed","application/x-apple-diskimage","application/x-apache-arrow","video/mp4","audio/midi","video/x-matroska","video/webm","video/quicktime","video/vnd.avi","audio/wav","audio/qcelp","audio/x-ms-asf","video/x-ms-asf","application/vnd.ms-asf","video/mpeg","video/3gpp","audio/mpeg","audio/mp4","audio/opus","video/ogg","audio/ogg","application/ogg","audio/x-flac","audio/ape","audio/wavpack","audio/amr","application/pdf","application/x-elf","application/x-mach-binary","application/x-msdownload","application/x-shockwave-flash","application/rtf","application/wasm","font/woff","font/woff2","application/vnd.ms-fontobject","font/ttf","font/otf","image/x-icon","video/x-flv","application/postscript","application/eps","application/x-xz","application/x-sqlite3","application/x-nintendo-nes-rom","application/x-google-chrome-extension","application/vnd.ms-cab-compressed","application/x-deb","application/x-unix-archive","application/x-rpm","application/x-compress","application/x-lzip","application/x-cfb","application/x-mie","application/mxf","video/mp2t","application/x-blender","image/bpg","image/j2c","image/jp2","image/jpx","image/jpm","image/mj2","audio/aiff","application/xml","application/x-mobipocket-ebook","image/heif","image/heif-sequence","image/heic","image/heic-sequence","image/icns","image/ktx","application/dicom","audio/x-musepack","text/calendar","text/vcard","model/gltf-binary","application/vnd.tcpdump.pcap","audio/x-dsf","application/x.ms.shortcut","application/x.apple.alias","audio/x-voc","audio/vnd.dolby.dd-raw","audio/x-m4a","image/apng","image/x-olympus-orf","image/x-sony-arw","image/x-adobe-dng","image/x-nikon-nef","image/x-panasonic-rw2","image/x-fujifilm-raf","video/x-m4v","video/3gpp2","application/x-esri-shape","audio/aac","audio/x-it","audio/x-s3m","audio/x-xm","video/MP1S","video/MP2P","application/vnd.sketchup.skp","image/avif","application/x-lzh-compressed","application/pgp-encrypted","application/x-asar","model/stl","application/vnd.ms-htmlhelp","model/3mf","image/jxl","application/zstd","image/jls","application/vnd.ms-outlook","image/vnd.dwg","application/x-parquet","application/java-vm","application/x-arj","application/x-cpio","application/x-ace-compressed","application/avro","application/vnd.iccprofile","application/x.autodesk.fbx"]);var cn=i(8287).Buffer;const un=["file-type","mime-types","@google-cloud/storage"],fn={cacheControl:"public, max-age=31536000"},ln=e=>`https://storage.cloud.google.com/${e}`,hn=e=>e.replace(/^gs:\/\/[^/]*\/(.*)$/,"$1"),pn=e=>(0,V.join)(e.substr(0,2),e.substr(2,2)),[dn,gn]=[Ur.deflate,Ur.unzip].map(K.promisify),yn=(e,t)=>e.replace(/[\/?<>\\:*|"]/g,t||"_").trim(),[mn,bn,vn,wn,_n,En,kn,xn,Sn,On,Rn,An,jn,Tn,In]=["NULL","BASE64","BUFFER","FILE","STREAM","TEXT","JSON","utf8","binary","BLOB","DATAURL","0644","0755","text/plain","application/octet-stream"],[Ln,Bn,Mn]=[{encoding:bn},{encoding:Sn},{encoding:mn}];let[Nn,Pn,Cn]=[null,null,null];const Dn=async(e,t)=>await yr.promises.readFile(e,[mn,vn].includes(at(t?.encoding,{case:"UP"}))?null:t?.encoding||xn),Un=async(e,t,r)=>await yr.promises.writeFile(e,t,r?.encoding||xn),Fn=async(e,t,r)=>await Un(e,Wn(t,r),r),zn=(e,t)=>{if(t?.throw)throw e;t?.log&&console.log(e)},Wn=(e,t)=>JSON.stringify(e||{},t?.replacer||null,t?.space||4),qn=async(e,t)=>{let r={};try{r=JSON.parse(await Dn(e,t))}catch(e){zn(e,t)}return r},$n=e=>(0,V.join)((0,br.tmpdir)(),e?.sub||"",e?.seed?Ar(e.seed):""),Zn=async(e,t)=>{let{filename:r,encoding:n,mode:i,prefix:o,suffix:a,hashName:s}=t||{};r=(o||"")+(r?s?Ar(r):r:C())+(a?`.${a}`:""),"JSON"===String(n).toUpperCase()&&(e=Wn(e,t),n=null);const c=$n({sub:r});return await Un(c,e,{encoding:n||xn}),await yr.promises.chmod(c,i||An),c},Gn=async(e,t,r,n,i,o)=>{var[i,a,s,c,u]=[i||500,"Path is not",e=>u=n||e];try{c=await yr.promises.stat(e)}catch(e){ve(n||e.message,i,o)}switch(String(t||"").toUpperCase()){case"*":case"":break;case"F":c.isFile()||s(`${a} a file: '${e}'.`);break;case"D":c.isDirectory()||s(`${a} a directory: '${e}'.`);break;default:s(`Unsupported path type: '${t}'.`)}assert(!u,u,i,o);try{switch(String(r||"").toUpperCase()){case"*":case"":break;case"R":await yr.promises.access(e,yr.constants.R_OK);break;case"W":await yr.promises.access(e,yr.constants.R_OK|yr.constants.W_OK);break;default:s(`Unsupported access mode: '${r}'.`)}}catch(e){s(e.message)}return assert(!u,u,i,o),c},Vn=async(e,t)=>{const r=cn.isBuffer(e);let[n,i,o]=[r?e:await yr.promises.open(e,"r"),null,!0];for(let e=0;e<(~~t?.length||1e3);e++){let t=cn.alloc(1);if(r?(t[0]=n[e],i=e<n.length?1:0):i=(0,yr.readSync)(n.fd,t,0,1,e),0===i)break;if(1===i&&0===t.toString().charCodeAt()){o=!1;break}}return r||n?.close(),o},Hn=async e=>{const t=(e=e||{}).config||(0,V.join)((0,br.homedir)(),`.${(await Pt(e.pack)).name}.json`);return assert(t,"Error getting config filename.",500),t},Kn=async e=>{const t=await Hn(e);return{filename:t,config:await qn(t)}},Yn=async(e,t)=>{e=e||{},assert(Object.keys(e).length,"Empty config.",400);let[r,n]=[null,{}];if(t?.overwrite)r=await Hn(t);else{const{filename:e,config:i}=await Kn(t);r=e,n=i}return await Fn(r,Ct(e,n,{mergeUndefined:!0}),t),{filename:r,config:n}},Jn=async(e,t)=>(await yr.promises.mkdir(e,{recursive:!0}),await yr.promises.chmod(e,t?.permissions||jn),await yr.promises.stat(e)),Xn=(e,t)=>(assert(e=Pe(e),"MIME type is required.",400),assert(cn.isBuffer(t),"Data buffer is required.",400),`data:${e};${bn},${Ae(t,!0)}`),Qn=e=>{const t=e.split(","),r=t[0].match(/:(.*?);/)[1],n=atob(t[1]),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let e=0;e<n.length;e++)o[e]=n.charCodeAt(e);return{mime:r,buffer:cn.from(i)}},ei=e=>(assert(e=at(e).replace(/(\W+)/gi,"-").replace(/^-*|-*$/g,"").trim(),"Invalid filename.",400),e),ti=async e=>{assert(e=at(e),"Path is required.",400);try{return await yr.promises.stat(e)}catch(e){return null}},ri=async(e,t)=>(assert(e,"Invalid input.",400),await oi(await dn(cn.isBuffer(e)?e:cn.from(e),t),t)),ni=async(e,t)=>(assert(e,"Invalid input.",400),await oi(await gn(cn.isBuffer(e)?e:je(e,!0),t),t)),ii=async e=>{const t=new FileReader;return new Promise(((r,n)=>{t.onload=()=>r(cn.from(t.result)),t.onerror=n,t.readAsArrayBuffer(e)}))},oi=async(e,t)=>{assert(e,t?.errorMessage||"Invalid input.",400);const r={};let[n,i]=[cn.isBuffer(e)||ArrayBuffer.isArrayBuffer(e)?vn:t?.input,t?.expected||vn].map((e=>at(e,{case:"UP"}))),[o,a,s,c]=[null,null,In,i];switch(n){case wn:o=e;break;case En:e=cn.from(e),s=Tn,n=vn;break;case On:e=await ii(e),n=vn;break;case Rn:const t=Qn(e);e=t.buffer,s=t.mime,n=vn}switch(i){case _n:c=wn;break;case Rn:case En:case kn:c=vn}if(o&&(a=await Gn(e,"F","R")),n!==c)switch(`${n}-${c}`){case`${bn}-${vn}`:e=je(e,!0);break;case`${bn}-${wn}`:e=je(e,!0);case`${vn}-${wn}`:e=await(async(e,t)=>{const r=t?.encoding||Sn;return t?.file?(await Un(t?.file,e,r),t?.file):await Zn(e,{filename:t?.filename,encoding:r,suffix:t?.suffix})})(e,t);break;case`${vn}-${bn}`:e=Ae(e,!0);break;case`${wn}-${vn}`:e=await Dn(e,Mn);break;case`${wn}-${bn}`:e=await Dn(e,Ln);break;default:ve("Invalid input or expected format.",400)}switch(i){case _n:r.content=(0,yr.createReadStream)(e);break;case En:r.content=e.toString();break;case kn:r.content=JSON.parse(e.toString());break;case Rn:r.content=Xn(t?.mime||s,e);break;default:r.content=e}return o&&c!==wn&&t?.cleanup&&await ui(ori,t),t?.withCleanupFunc&&(r.cleanup=async t=>{i===_n&&await Qt(r.content?.destroy),c===wn&&(t?.force||!o)&&await ui(e,t)}),t?.meta&&(r={...r,mime:s,meta:a}),1===Object.keys(r).length?r.content:r},ai=async(e,t)=>{const{meta:r,content:n}=await oi(e,{meta:1,...t||{}}),i=t?.hashAlgorithm||_r,o=Ar(n,i),a=t?.filename||(r?(0,V.basename)(e):null)||Ar,s=(await Qt((()=>ur("mime-types"))))?.lookup||qe;return{content:n,extname:(0,V.extname)(a).replace(/^\.|\.$/g,""),filename:a,hashAlgorithm:i,hash:o,mime:vt(await on(n),"mime")||s(a)||In,size:n.length}},si=async(e,t)=>{const[r,n,i,o]=[{...await ai(e,t),compressed:null},t?.sliceSize||144e4,[],t?.hashAlgorithm||_r];for(t?.zip&&(r.content=await ri(r.content,t),r.compressed="gzip");n*i.length<r.content.length;){const e=n*i.length;i.push(r.content.slice(e,e+n))}return delete r.content,assert(i.length,"Empty slices.",400),{...r,slices:i.map(((e,t)=>({content:e,hash:Ar(e,o)})))}},ci=async(e,t)=>{assert(e?.slices?.length,"Invalid slices.",400);const[r,n]=[e?.hashAlgorithm||_r,[]];for(let i in e?.slices){const o=await oi(e.slices[i]?.content,{...t||{},expected:vn});e.slices[i]?.hash&&assert(e.slices[i].hash===Ar(o,r),`Invalid hash for slice ${i}.`,400),n.push(o)}let i=cn.concat(n);switch(at(e?.compressed,{case:"UP"})){case"":break;case"GZIP":i=await ni(i,t);break;default:ve("Unsupported compression.",400)}return e?.hash&&assert(e.hash===Ar(i,r),"Invalid file hash.",400),await oi(i,{...t||{},input:vn})},ui=async(e,t)=>await Qt((async()=>{await Gn(e,"F","W"),await yr.promises.unlink(e)}),t),fi=async e=>{if(e)if("GOOGLE"===at(e?.provider,{case:"UP"})){assert(e?.credentials,"Google Cloud credentials are required.",400),assert(Pn=e?.bucket,"Google Cloud Storage bucket is required.",400),Cn=e?.url||ln(Pn),1==~~process.env.FORKED&&Mt(`GOOGLE CLOUD STORAGE: ${Cn}`,"file:///home/runner/work/utilitas/utilitas/lib/storage.mjs");const{Storage:t}=await ur("@google-cloud/storage",{raw:!0});Nn=new t(e).bucket(Pn)}else ve("Invalid cloud storage provider.",500);return assert(Nn,"Cloud storage has not been initialized.",501),{client:Nn,bucket:Pn,url:Cn}},li=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const{content:r,cleanup:n}=await oi(e,{input:t?.input,suffix:t?.suffix,...t||{},expected:wn,withCleanupFunc:!0,errorMessage:"Invalid file."}),i=await Nn.upload(r,{gzip:!1,destination:t?.destination||(0,V.join)(...t?.prefix?[t.prefix]:[],(0,V.basename)(r)),metadata:fn,...t||{}});await n();const o=t?.raw?i:i[0].metadata;var a;return!t?.raw&&o&&(o.gs=(a=o?.id,`gs://${a}`.replace(/[\/][^\/]*$/,""))),o},hi=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const r=await Nn.file(e).download(t);return t?.raw?r:await oi(r[0],{...t||{},input:vn})},pi=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await gi(e,{name:!0}):[e],i=await Promise.all(n.map((e=>hi(e,t))));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o},di=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const r=await Nn.file(e).exists();return t?.raw?r:r[0]?{}:null},gi=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);let r=await Nn.getFiles({prefix:e,...t||{}});return t?.raw||(r=(r[0]||[]).map((e=>e.metadata)),t?.name&&(r=r.map((e=>e.name)))),r},yi=async(e,t)=>{assert(Nn,"Cloud storage has not been initialized.",500);const r=await Nn.file(e).delete(t);return t?.raw?r:r[0].toJSON()},mi=async(e,t)=>{assert(e,"Path is required.",400);const r=e.endsWith("/"),n=r?await gi(e,{name:!0}):[e],i=await Promise.all(n.map((e=>yi(e,t))));if(!r)return i[0];const o={};for(let e in n)o[n[e]]=i[e];return o},bi={name:"utilitas",description:"Just another common utility for JavaScript.",version:"1995.3.37",private:!1,homepage:"https://github.com/Leask/utilitas",main:"index.mjs",type:"module",engines:{node:">=20.x"},author:"Leask Wong <i@leaskh.com>",license:"MIT",repository:{type:"git",url:"https://github.com/Leask/utilitas.git"},overrides:{xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz"},dependencies:{"file-type":"^19.0.0",mathjs:"^13.0.0",uuid:"^9.0.1"},devDependencies:{"@ffmpeg-installer/ffmpeg":"^1.1.0","@ffprobe-installer/ffprobe":"^2.1.2","@google-cloud/aiplatform":"^3.21.0","@google-cloud/speech":"^6.6.0","@google-cloud/storage":"^7.11.1","@google-cloud/text-to-speech":"^5.3.0","@google-cloud/vertexai":"^1.2.0","@google-cloud/vision":"^4.3.0","@google/generative-ai":"^0.12.0","@mozilla/readability":"^0.5.0","@ngrok/ngrok":"^1.3.0","@sentry/node":"^8.7.0","@sentry/profiling-node":"^8.7.0","acme-client":"^5.3.1","browserify-fs":"^1.0.0",buffer:"^6.0.3","fast-geoip":"^1.1.88","fluent-ffmpeg":"^2.1.3","form-data":"^4.0.0",ioredis:"^5.4.1","js-tiktoken":"^1.0.12",jsdom:"^24.1.0","lorem-ipsum":"^2.0.8","mailgun.js":"^10.2.1",mailparser:"^3.7.1","mime-types":"^2.1.35",mysql2:"^3.10.0","node-mailjet":"^6.0.5","node-polyfill-webpack-plugin":"^4.0.0","office-text-extractor":"^3.0.3",ollama:"^0.5.1",openai:"^4.47.3","pdfjs-dist":"^4.3.136",pg:"^8.11.5",pgvector:"^0.1.8",ping:"^0.4.4",say:"^0.16.0",telegraf:"^4.16.3",telesignsdk:"^3.0.0","tesseract.js":"^5.1.0",twilio:"^5.1.0",url:"github:Leask/node-url","webpack-cli":"^5.1.4","whisper-node":"^1.1.1",wrangler:"^3.58.0",xlsx:"https://cdn.sheetjs.com/xlsx-0.20.1/xlsx-0.20.1.tgz","youtube-transcript":"^1.2.1"}},vi="[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",wi=e=>e.replace(/\-/gi,""),_i=e=>Lr(wi(e)),Ei=e=>xi(BigInt(e).toString(16).padStart(32,"0")),ki=e=>xi(xr(e??Tr())),xi=e=>e.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/,"$1-$2-$3-$4-$5"),Si=e=>e?Number((BigInt(String(e).replace(/^.*(.{8})-(.{4})-.(.{3})-.{4}-.{12}.*$/,"0x$3$2$1"))-122192928000000000n)/10000n):0,Oi=e=>{(e=Object.assign({file:"file:///home/runner/work/utilitas/utilitas/lib/uoid.mjs",id:C()},e||{})).type=e.type||He(e.file),1==(e.security=~~e.security)&&(e.security=128);let t=e.id;return e.security&&(t+=`-${Tr(e.security-t.length-1)}`),`${e.type.toUpperCase()}|${t}`},Ri=e=>(St(e=e||bi.homepage),F(e,F.URL)),Ai=(e,t,r)=>(e=zt(e,t,{case:"UP",...r||{}}),assert(e,"Invalid reference.",400),F(e,Ri(r?.url))),ji=e=>F(`info:id/${encodeURIComponent(at(e||kr()))}`,F.URL),Ti=Oi,Ii={},Li=e=>1e3*(isNaN(e=Number(e))?0:e),Bi=()=>Ii;let Mi=null;const Ni=(e,t,r)=>{r=Object.assign({time:!0},r||{}),(!t||!Ii[t]||!Ii[t].silent||r.force||e instanceof Error)&&Mt(e,He("file:///home/runner/work/utilitas/utilitas/lib/event.mjs")+(t?` > ${t}`:""),r)},Pi=(e,t,r)=>Ii[e].lock+r>t?Ii[e].lock:!(Ii[e].lock=t),Ci=async()=>{const e=Date.now();for(let r in Ii)if(Ii[r].lastRun+Ii[r].interval<e){Ii[r].lastRun=e;try{if(Pi(r,e,Ii[r].timeout)){Ni("Locked, skipped.",r);continue}Ni("Emit...",r),await Ii[r].function()}catch(e){Ni(e,r)}Ni("Done.",r),Ii[t=r]&&(Ii[t].lock=0)}var t},Di=async(e,t,r,n,i,o)=>(Mi=Mi||Ni("Initialized.")||setInterval(Ci,1e3),Ni("Scheduled.",i=i||Ti({type:"EVENT"}),{force:!0}),Ii[i]={function:e,interval:Li(t),timeout:Li(r),delay:n,lastRun:Date.now()+Li(n-t),lock:0,silent:!!o?.silent,end:o?.end},Mi),Ui=async(e,t)=>(assert(e&&e.func,"Event function is required.",500),await Di(e.func,e.interval,e.tout,e.delay,e.name,t)),Fi=async(e,t)=>{t=t||{},Ni(`SERVICES: ${e}`);const[r,n]=[((0,yr.readdirSync)(e)||[]).filter((e=>/\.mjs$/i.test(e)&&!e.startsWith("."))),[]];for(let o of r){const r={...await i(765)((0,V.join)(e,o))};r.run&&(r.name=r.name||o.replace(/^(.*)\.mjs$/i,"$1"),n.push(Ui(r,t)))}return await Promise.all(n)},zi=async e=>{if(e&&(delete Ii[e],Object.keys(Ii).length))return;clearInterval(Mi),Mi=null;const t=Date.now();for(let e in Ii){if(Ii[e].end)try{await Ii[e].end()}catch(e){}for(;Pi(e,t,Ii[e].timeout);)Ni("Waiting...",e),await Ne(1e3);Ni("End.",e)}Ni("Terminated.")},Wi=Di,[qi,$i,Zi,Gi,Vi,Hi,Ki,Yi,Ji,Xi,Qi]=["gpt-3.5-turbo","gpt-4o","gemini-1.5-flash-latest","gemini-1.5-flash-preview-0514","embedding-001","textembedding-gecko@001","textembedding-gecko@002","textembedding-gecko-multilingual@001","mistral","text-embedding-3-small","text-embedding-3-large"],[eo,to,ro,no]=[e=>({type:e}),e=>({provider:e}),e=>({messages:e}),e=>({text:e})],[io,oo,ao,so,co,uo]=["Alan","user","system","assistant","model","json_object"],[fo,lo,ho]=["code_interpreter","retrieval","function"].map(eo),[po,go]=["AI engine has not been initialized.","Invalid file data."],[yo,mo,bo]=[!0,"STREAM","You are a helpful assistant."],[vo,wo,_o,Eo]=[100/75,1.1,100,1440],ko={},[xo,So,Oo,Ro,Ao,jo,To,Io,Lo,Bo,Mo,No,Po,Co,Do,Uo,Fo,zo,Wo,qo,$o,Zo,Go,Vo,Ho]=["image/png","image/jpeg","video/mov","video/mpeg","video/mp4","video/mpg","video/avi","video/wmv","video/mpegps","video/x-flv","image/gif","image/webp","application/pdf","audio/aac","audio/flac","audio/mp3","audio/m4a","audio/mpga","audio/opus","audio/pcm","audio/wav","audio/webm","video/3gpp","application/json","text/plain"],[Ko,Yo,Jo,Xo,Qo,ea,ta,ra,na,ia]=["OPENAI","VERTEX","GEMINI","CHATGPT","ASSISTANT","OPENAI_EMBEDDING","GEMINI_EMEDDING","VERTEX_EMEDDING","OPENAI_TRAINING","OLLAMA"],oa={[Qo]:$i,[Xo]:$i,[ta]:Vi,[Jo]:Zi,[ia]:Ji,[ea]:Xi,[na]:qi,[ra]:Yi,[Yo]:Gi};new Map;const aa={[qi]:{contextWindow:16385,maxOutputTokens:4096,requestLimitsRPM:5e3,tokenLimitsTPM:16e4,trainingData:"Sep 2021"},[$i]:{contextWindow:128e3,imageCostTokens:1105,maxOutputTokens:4096,requestLimitsRPM:5e3,tokenLimitsTPD:4e7,tokenLimitsTPM:6e5,trainingData:"Oct 2023",vision:!0,supportedMimeTypes:[xo,So,Mo,No]},[Zi]:{contextWindow:1048576,maxOutputTokens:8192,trainingData:"April 9, 2024"},[Gi]:{contextWindow:1048576,imageCostTokens:258,maxAudioLength:34200,maxAudioPerPrompt:1,maxFileSize:20971520,maxImagePerPrompt:3600,maxImageSize:1/0,maxOutputTokens:8192,maxUrlSize:2147483648,maxVideoLength:3e3,maxVideoLengthWithAudio:3e3,maxVideoLengthWithoutAudio:3600,maxVideoPerPrompt:10,requestLimitsRPM:1e3,tokenLimitsTPM:2e6,trainingData:"May, 2024",vision:!0,supportedMimeTypes:[xo,So,Oo,Ro,Ao,jo,To,Io,Lo,Bo,Po,Co,Do,Uo,Fo,zo,Wo,qo,$o,Zo,Go]},[Ji]:{contextWindow:128e3,requestLimitsRPM:1/0,tokenLimitsTPM:1/0},[Xi]:{contextWindow:8191,embedding:!0,outputDimension:1536,requestLimitsRPM:500,tokenLimitsTPM:1e6,trainingData:"Sep 2021"},[Qi]:{contextWindow:8191,embedding:!0,outputDimension:3072,requestLimitsRPM:500,tokenLimitsTPM:1e6,trainingData:"Sep 2021"},[ta]:{contextWindow:3072,embedding:!0},[ra]:{contextWindow:3072,embedding:!0}};for(const e in aa)aa[e].name=e,aa[e].embedding?aa[e].maxInputTokens=aa[e].contextWindow:(aa[e].supportedMimeTypes=aa[e].supportedMimeTypes||[],aa[e].maxOutputTokens=aa[e].maxOutputTokens||Math.ceil(.4*aa[e].contextWindow),aa[e].maxInputTokens=aa[e].maxInputTokens||aa[e].contextWindow-aa[e].maxOutputTokens,aa[e].tokenLimitsTPD=aa[e].tokenLimitsTPD||aa[e].tokenLimitsTPM*Eo,aa[e].requestLimitsRPD=aa[e].requestLimitsRPD||aa[e].requestLimitsRPM*Eo,aa[e].requestCapacityRPM=Math.ceil(Math.min(aa[e].tokenLimitsTPM/aa[e].maxInputTokens,aa[e].requestLimitsRPM,aa[e].requestLimitsRPD/Eo)));aa[qi].maxInputTokens,aa[$i].imageCostTokens;const sa=async e=>{const t=(e=>((e,t)=>{const r=at(e,{case:"UP"});return assert(r,`${t} is required.`),r})(e?.provider,"AI provider"))(e);switch(t){case Ko:if(e?.apiKey){const r=await ur("openai"),n=new r(e),i=e?.chatGptEndpoint||e?.chatGptApiKey?new r({...e,baseURL:e?.chatGptEndpoint||e?.baseURL,apiKey:e?.chatGptApiKey||e?.apiKey}):n;ko[t]={client:n,clientBeta:n.beta,chatGptClient:i}}break;case Yo:if(e?.credentials){process.env.GOOGLE_APPLICATION_CREDENTIALS=e.credentials;const{VertexAI:r}=await ur("@google-cloud/vertexai"),n=await ur("@google-cloud/aiplatform"),[i,o]=[e?.project,e?.location||"northamerica-northeast1"];ko[t]={project:i,location:o,helpers:n.helpers,generative:new r({project:i,location:o}).preview.getGenerativeModel({model:e?.model||oa[Yo],generation_config:{...e?.generation_config||{}}}),prediction:new n.v1.PredictionServiceClient({apiEndpoint:"us-central1-aiplatform.googleapis.com"})}}break;case Jo:if(e?.apiKey){const{GoogleGenerativeAI:r}=await ur("@google/generative-ai"),n=new r(e.apiKey);ko[t]={generative:n.getGenerativeModel({model:e?.model||oa[Jo]}),embedding:n.getGenerativeModel({model:oa[ta]})}}break;case ia:const r=await ur("ollama");ko[t]={client:r};break;default:ve(`Invalid AI provider: ${e?.provider||"null"}`)}return assert(ko[t],po),ko[t]},[ca,ua,fa,la]=[Ko,Yo,Jo,ia].map((e=>async t=>await sa({...to(e),...t}))),[ha,pa]=["BASE64","BUFFER"];var da=i(1224);const ga="TEXT";var ya=i(8287).Buffer;const ma=process.env.TMPDIR?(0,V.join)(process.env.TMPDIR,"shot"):null,ba=e=>e.toString("utf8"),[va,wa]=["JSON","PARSED"],_a=async(e,t)=>await Aa(e,{encode:va,...t||{}}),Ea=async(e,t)=>await Aa(e,{encode:wa,...t||{}}),ka={redirect:"follow",follow:3,timeout:1e4,headers:{"user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15"}},xa=async e=>{assert(e,"Package name is required.",400);const t=`https://registry.npmjs.org/-/package/${e}/dist-tags`,r=(await Aa(t,{encode:va}))?.content;return assert(r,"Error fetching package info.",500),assert("Not Found"!==r&&r.latest,"Package not found.",404),qt(r.latest)},Sa=async e=>{const t=await Pt(e),r=t.versionNormalized,n=await xa(t.name);return{name:t.name,curVersion:r,newVersion:n,updateAvailable:n.normalized>r.normalized}},Oa=async e=>{const t=await Aa("https://ifconfig.me/all.json",{encode:va,...e||{}});return assert(t?.content?.ip_addr,"Error detecting IP address.",500),e?.raw?t:t.content.ip_addr},Ra=async()=>{const e=await fetch("https://geolocation-db.com/json/").then((e=>e.json()));return assert(e,"Network is unreachable.",500),assert(e.country_code,"Error detecting geolocation.",500),e},Aa=async(e,t)=>{assert(e,"URL is required.",400),(t=t||{}).encode=at(t.encode,{case:"UP"});const r=hr()?null:Ar(e),n=r?t.cache?.tmp||ma:null,i=n?(0,V.join)(n,pn(r)):null,[o,a]=i?["meta","content"].map((e=>(0,V.join)(i,`${r}.${e}`))):[];if(t?.fuzzy&&await ti(o)&&await ti(a))return{cache:{meta:o,content:a}};const s=t?.refresh||!i?null:await qn(o),c=t?.refresh||!i?null:await Qt((()=>yr.promises.readFile(a))),u=s?.responseHeaders&&c?{"cache-control":"max-age=0","if-modified-since":s.responseHeaders["last-modified"]||"","if-none-match":s.responseHeaders.etag||""}:{};let[f,l,h]=[null,null,{}];const p={...ka,headers:{...ka.headers,...u},...t.fetch||{}};if(t.timeout){const e=new AbortController;p.signal=e.signal,f=setTimeout((()=>e.abort()),t.timeout)}try{l=await fetch(e,p)}catch(e){ve(e.message.includes("aborted")?"Timed out.":e.message,500)}f&&clearTimeout(f),304===l.status&&(l.arrayBuffer=async()=>c);const[d,g]=[l.headers.get("content-type"),ya.from(await l.arrayBuffer())];if(l.headers?.raw)h=l.headers.raw();else for(const[e,t]of l.headers.entries())h[e]=t;const y=await Qt((async()=>{vt(await on(g),"mime")}))||d,m=g.length;let b;if(!t?.fuzzy)switch(t.encode){case"BUFFER":b=g;break;case"BASE64":b=g.toString(t.encode);break;case"BASE64_DATA_URL":b=Xn(y,g);break;case va:b=bt(ba(g),null);break;case wa:b=await(async(e,t)=>{const r=await oi(e,{input:ga,expected:ga}),n=await Promise.all([ur("jsdom"),ur("@mozilla/readability")]),[i,o]=[n[0].JSDOM,n[1].Readability],a=new i(r)?.window?.document;assert(a,"Failed to parse HTML.",500);const s=new o(a).parse();assert(s,"Failed to distill HTML.",500),s.textContent=s.textContent.trim().split("\n").map((e=>e.trim()));for(let e=s.textContent.length-1;e>=0;e--)e<s.textContent.length-1&&""===s.textContent[e]&&""===s.textContent[e+1]&&s.textContent.splice(e,1);return s.textContent=s.textContent.join("\n"),{byline:s.byline,data:{},html:s.html,lang:s.lang,provider:s.siteName,text:s.textContent,thumbnail:null,title:s.title,type:"WEBPAGE"}})(ba(g));break;default:assert(!t.encode,"Invalid encoding.",400);case"TEXT":b=ba(g)}return i&&!c&&m&&200===l.status&&await Qt((async()=>({touch:await Jn(i),content:await yr.promises.writeFile(a,g),meta:await Fn(o,{url:e,requestHeaders:u,responseHeaders:h})}))),{statusCode:l.status,statusText:l.statusText,length:m,mimeType:y,content:b,headers:h,response:l,cache:l.status>=200&&l.status<400?{meta:o,content:a}:null}},ja=Aa,Ta=(e,t)=>{const r=e[at(t||"USD",{case:"UP"})];return Ot(r,`Unsupported currency: '${t}'.`,400),(0,da.bignumber)(r)},Ia=async(e,t,r)=>{const n={};if(((await Aa("https://api.mixin.one/external/fiats",{encode:"JSON"}))?.content?.data||[]).map((e=>n[e.code]=e.rate)),assert(Object.keys(n).length,"Error fetching exchange rates.",500),!e)return n;[e,t]=[Ta(n,e),Ta(n,t)];const i=(0,da.divide)(e,t);return{rate:i,amount:(r=(0,da.multiply)((0,da.bignumber)(r??1),i)).toString()}},La=async e=>{const t=await ur("fluent-ffmpeg");return t.setFfmpegPath((await ur("@ffmpeg-installer/ffmpeg")).path),t.setFfprobePath((await ur("@ffprobe-installer/ffprobe")).path),new t(e)},Ba=async(e,t)=>{assert(e,"Invalid audio input.",400);const r=await La(e),n=t?.output||$n({sub:t?.suffix?`${Ar(JSON.stringify({input:e,options:t}))}.${t.suffix}`:null});return t?.frequency&&r.audioFrequency(t.frequency),t?.channels&&r.audioChannels(t.channels),t?.codec&&r.audioCodec(t?.codec),await new Promise(((e,t)=>{r.on("error",t),r.on("end",e),r.save(n)})),n};var Ma=i(8287).Buffer;const Na=["@google-cloud/speech","@google-cloud/text-to-speech","OpenAI","whisper-node"],Pa="tiny.en",Ca="Invalid audio data.",[Da,Ua,Fa,za,Wa,qa,$a,Za,Ga,Va]=["BUFFER","STREAM","BASE64","FILE",{},"en-US","OGG_OPUS","ogg","SPEAKER",!0],[Ha,Ka]=["tts-1","tts-1-hd"],Ya=Ha,Ja=["tiny",Pa,"base","base.en","small","small.en","medium","medium.en","large-v1","large"],Xa=async e=>{if(e){assert(e?.tts||e?.stt,"At least one of TTS or STT is selected.",500);const t=at(e?.provider,{case:"UP"});switch(t){case"OPENAI":Wa._provider=t;const r=new(await ur("openai"))(e);e?.tts&&(Wa.tts=r.audio.speech),e?.stt&&(Wa.stt=r.audio.transcriptions);break;case"GOOGLE":Wa._provider=t;const n=await Br(e);if(e?.tts){const e=(await ur("@google-cloud/text-to-speech")).default;Wa.tts=new e.TextToSpeechClient({sslCreds:n})}if(e?.stt){const e=(await ur("@google-cloud/speech")).default;Wa.stt=new e.SpeechClient({sslCreds:n})}break;case"":Wa._provider="LOCAL",e?.tts&&await Qa({assert:!0}),e?.stt&&await es({assert:!0});break;default:ve("Invalid speech provider.",500)}}return assert(fr(Wa),"Speech API client has not been initialized.",501),Wa},Qa=async e=>{const t=!!await Qt((async()=>"darwin"===(await Promise.all([ur("node:os"),ur("say"),La()]))[0].platform()));return e?.assert&&assert(t,"Say API is not available.",500),t},es=async e=>{const t=!!await Qt((()=>Promise.all([ur("whisper-node"),La()])));return e?.assert&&assert(t,"Whisper API is not available.",500),t},ts=async(e,t)=>{assert(Wa.tts,"Text-to-Speech API has not been initialized.",500),assert(e,"Text is required.",400);const r=await Wa.tts.create({model:Ya,voice:"nova",response_format:"opus",input:e,...t?.params||{}}),n=Ma.from(await r.arrayBuffer());return await oi(n,{suffix:Za,...t||{}})},rs=async(e,t)=>{assert(Wa.tts,"Text-to-Speech API has not been initialized.",500),assert(e,"Text is required.",400);const[r]=await Wa.tts.synthesizeSpeech({input:{text:e,...t?.input||{}},voice:{languageCode:qa,name:"en-US-Wavenet-F",...t?.voice||{}},audioConfig:{audioEncoding:$a,...t?.audioConfig||{}}});return await oi(r.audioContent,{suffix:Za,...t||{}})},ns=async(e,t)=>{const r=await ur("say");assert(e,"Text is required.",400);let[n,i,o]=[null,null,[e,t?.voice||"Samantha",t?.speed||1]];return t?.expected===Ga?n="speak":(n="export",i=$n({sub:`${Ar(JSON.stringify(o))}.wav`}),o.push(i)),await ue([r[n],r],...o),i&&!t?.raw&&(i=await(a=i,Ba(a,{channels:1,codec:"libopus",frequency:48e3,suffix:"ogg",...{frequency:16e3}||{}})),i=await oi(i,{cleanup:Va,input:za,suffix:Za,...t||{}})),i;var a},is=async e=>(assert(e,"Text is required.",400),speechSynthesis.speak(new SpeechSynthesisUtterance(e))),os=async(e,t)=>{assert(Wa.stt,"Speech-to-Text API has not been initialized.",500);const r=at(t?.input,{case:"UP"}),{content:n,cleanup:i}=await oi(e,{input:t?.input,...t||{},expected:Ua,errorMessage:Ca,suffix:["",Da].includes(r)?Za:null,withCleanupFunc:!0}),o=await Wa.stt.create({content:n,model:"whisper-1",response_format:"text",...t?.params||{}});return await i(),o},as=async(e,t)=>{assert(Wa.stt,"Speech-to-Text API has not been initialized.",500);const r=await oi(e,{input:t?.input,expected:Fa,errorMessage:Ca}),[n]=await Wa.stt.recognize({audio:{content:r,...t?.audio||{}},config:{encoding:$a,sampleRateHertz:48e3,languageCode:qa,...t?.config||{}}});return t?.raw?n:n.results.map((e=>e.alternatives[0].transcript)).join("\n")},ss=async(e,t)=>{const r=(await ur("whisper-node")).whisper,{content:n,cleanup:i}=await oi(e,{input:t?.input,expected:za,errorMessage:Ca,withCleanupFunc:!0}),o=await(a=n,Ba(a,{channels:1,codec:"pcm_s16le",frequency:16e3,suffix:"wav"}));var a;await i();const s=await(async(e,t)=>(e=t?.model||Pa,(await Aa((e=>(assert(Ja.includes(e),"Invalid Whisper model.",400),`https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-${e}.bin`))(e),{fuzzy:!0}))?.cache?.content))(t?.model,t),c=await r(o,{modelPath:s,...t||{}});return assert(c,"Failed to recognize speech.",500),t?.raw?c:c.map((e=>e.speech)).join("").trim()},cs=async(e,t)=>{let r;return hr()?r=is:Wa?.tts&&"OPENAI"===Wa._provider?r=ts:Wa?.tts&&"GOOGLE"===Wa._provider?r=rs:await Qa()?r=ns:ve("Text-to-Speech engine has not been initialized.",500),await r(e,t)},us=async(e,t)=>{let r;return Wa?.stt&&"OPENAI"===Wa._provider?r=os:Wa?.stt&&"GOOGLE"===Wa._provider?r=as:await es()?r=ss:ve("Speech-to-Text engine has not been initialized.",500),await r(e,t)},fs=Xa;hr()&&!globalThis.utilitas&&(globalThis.utilitas={boxes:t,color:se,encryption:n,event:s,manifest:bi,math:h,shekel:u,shot:c,speech:f,storage:o,uoid:a,utilitas:r,uuid:e},(async()=>{Mt(`(${bi.homepage}) is ready!`,`${(await Pt(bi)).title}.*`)})())})()})();
3
3
  //# sourceMappingURL=utilitas.lite.mjs.map