w-json-stream 1.0.18 → 1.0.20
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.
- package/.eslintrc.js +1 -0
- package/.github/workflows/ci-test.yml +1 -1
- package/README.md +3 -2
- package/dist/into-stream.umd.js +1 -1
- package/dist/json-stream-stringify.umd.js +1 -1
- package/dist/through.umd.js +1 -1
- package/dist/w-json-stream.umd.js +2 -2
- package/dist/w-json-stream.umd.js.map +1 -1
- package/dist/w-json-stream.wk.umd.js +1 -1
- package/docs/WJsonStream.mjs.html +3 -3
- package/docs/examples/ex-large-webworker.html +2 -2
- package/docs/examples/ex-large.html +2 -2
- package/docs/examples/ex-small-stream.html +2 -2
- package/docs/examples/ex-small.html +2 -2
- package/docs/examples/ex-stream-createParseStream.html +2 -2
- package/docs/examples/ex-stream-createParseStreamWithFilter.html +3 -3
- package/docs/examples/ex-stream-createStringifyStream.html +2 -2
- package/docs/global.html +1 -1
- package/docs/index.html +1 -1
- package/package.json +4 -4
- package/src/WJsonStream.mjs +2 -2
- package/toolg/gDistRollup.mjs +1 -1
- package/toolg/gDocsExams.mjs +1 -1
package/.eslintrc.js
CHANGED
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ A tool for JSON parse and stringify by stream and web worker.
|
|
|
6
6
|
[](https://npmjs.org/package/w-json-stream)
|
|
7
7
|
[](https://github.com/yuda-lyu/w-json-stream)
|
|
8
8
|
[](https://npmjs.org/package/w-json-stream)
|
|
9
|
+
[](https://npmjs.org/package/w-json-stream)
|
|
9
10
|
[](https://www.jsdelivr.com/package/npm/w-json-stream)
|
|
10
11
|
|
|
11
12
|
## Documentation
|
|
@@ -442,10 +443,10 @@ testStream()
|
|
|
442
443
|
```alias
|
|
443
444
|
|
|
444
445
|
<!-- for basic -->
|
|
445
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
446
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.20/dist/w-json-stream.umd.js"></script>
|
|
446
447
|
|
|
447
448
|
<!-- for web workers -->
|
|
448
|
-
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.
|
|
449
|
+
<script src="https://cdn.jsdelivr.net/npm/w-json-stream@1.0.20/dist/w-json-stream.wk.umd.js"></script>
|
|
449
450
|
|
|
450
451
|
```
|
|
451
452
|
|
package/dist/into-stream.umd.js
CHANGED
package/dist/through.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* w-json-stream v1.0.
|
|
2
|
+
* w-json-stream v1.0.20
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-json-stream"]=e()}(this,(function(){"use strict";function t(){}function e(){e.init.call(this)}function r(t){return void 0===t._maxListeners?e.defaultMaxListeners:t._maxListeners}function n(e,n,i,o){var s,a,u,h;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",n,i.listener?i.listener:i),a=e._events),u=a[n]):(a=e._events=new t,e._eventsCount=0),u){if("function"==typeof u?u=a[n]=o?[i,u]:[u,i]:o?u.unshift(i):u.push(i),!u.warned&&(s=r(e))&&s>0&&u.length>s){u.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=n,f.count=u.length,h=f,"function"==typeof console.warn?console.warn(h):console.log(h)}}else u=a[n]=i,++e._eventsCount;return e}function i(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function o(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function s(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}t.prototype=Object.create(null),e.EventEmitter=e,e.usingDomains=!1,e.prototype.domain=void 0,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.init=function(){this.domain=null,e.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new t,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},e.prototype.getMaxListeners=function(){return r(this)},e.prototype.emit=function(t){var e,r,n,i,o,a,u,h="error"===t;if(a=this._events)h=h&&null==a.error;else if(!h)return!1;if(u=this.domain,h){if(e=arguments[1],!u){if(e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=a[t]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=s(t,n),o=0;o<n;++o)i[o].call(r)}(r,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=s(t,i),a=0;a<i;++a)o[a].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=s(t,o),u=0;u<o;++u)a[u].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,u=s(t,a),h=0;h<a;++h)u[h].call(r,n,i,o)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=s(t,i),a=0;a<i;++a)o[a].apply(r,n)}(r,c,this,i)}return!0},e.prototype.addListener=function(t,e){return n(this,t,e,!1)},e.prototype.on=e.prototype.addListener,e.prototype.prependListener=function(t,e){return n(this,t,e,!0)},e.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,i(this,t,e)),this},e.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,i(this,t,e)),this},e.prototype.removeListener=function(e,r){var n,i,o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===r||n.listener&&n.listener===r)0==--this._eventsCount?this._events=new t:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if("function"!=typeof n){for(o=-1,s=n.length;s-- >0;)if(n[s]===r||n[s].listener&&n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new t,this;delete i[e]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(n,o);i.removeListener&&this.emit("removeListener",e,a||r)}return this},e.prototype.removeAllListeners=function(e){var r,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new t,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new t:delete n[e]),this;if(0===arguments.length){for(var i,o=Object.keys(n),s=0;s<o.length;++s)"removeListener"!==(i=o[s])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new t,this._eventsCount=0,this}if("function"==typeof(r=n[e]))this.removeListener(e,r);else if(r)do{this.removeListener(e,r[r.length-1])}while(r[0]);return this},e.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},e.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):o.call(t,e)},e.prototype.listenerCount=o,e.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var a="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=[],h=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,c=!1;function l(){c=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)u[e]=t[e],h[t.charCodeAt(e)]=e;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63}function p(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(u[(i=n)>>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}function d(t){var e;c||l();for(var r=t.length,n=r%3,i="",o=[],s=16383,a=0,h=r-n;a<h;a+=s)o.push(p(t,a,a+s>h?h:a+s));return 1===n?(e=t[r-1],i+=u[e>>2],i+=u[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=u[e>>10],i+=u[e>>4&63],i+=u[e<<2&63],i+="="),o.push(i),o.join("")}function g(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,f=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,o=p&(1<<-f)-1,p>>=-f,f+=a;f>0;o=256*o+t[e+c],c+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+t[e+c],c+=l,f-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=h}return(p?-1:1)*s*Math.pow(2,o-n)}function y(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,f=(1<<h)-1,c=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?l/u:l*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=f?(a=0,s=f):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+p]=255&s,p+=d,s/=256,h-=8);t[r+p-d]|=128*g}var v={}.toString,b=Array.isArray||function(t){return"[object Array]"==v.call(t)};function m(){return _.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(t,e){if(m()<e)throw new RangeError("Invalid typed array length");return _.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=_.prototype:(null===t&&(t=new _(e)),t.length=e),t}function _(t,e,r){if(!(_.TYPED_ARRAY_SUPPORT||this instanceof _))return new _(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return k(this,t)}return S(this,t,e,r)}function S(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);_.TYPED_ARRAY_SUPPORT?(t=e).__proto__=_.prototype:t=R(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!_.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|O(e,r);t=w(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(T(e)){var r=0|A(e.length);return 0===(t=w(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?w(t,0):R(t,e);if("Buffer"===e.type&&b(e.data))return R(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function E(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function k(t,e){if(E(e),t=w(t,e<0?0:0|A(e)),!_.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function R(t,e){var r=e.length<0?0:0|A(e.length);t=w(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function A(t){if(t>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|t}function T(t){return!(null==t||!t._isBuffer)}function O(t,e){if(T(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return et(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return rt(t).length;default:if(n)return et(t).length;e=(""+e).toLowerCase(),n=!0}}function j(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return W(this,e,r);case"utf8":case"utf-8":return F(this,e,r);case"ascii":return q(this,e,r);case"latin1":case"binary":return Y(this,e,r);case"base64":return N(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function L(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function C(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=_.from(e,n)),T(e))return 0===e.length?-1:P(t,e,r,n,i);if("number"==typeof e)return e&=255,_.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):P(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function P(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var f=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,l=0;l<u;l++)if(h(t,o+l)!==h(e,l)){c=!1;break}if(c)return o}return-1}function M(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function B(t,e,r,n){return nt(et(e,t.length-r),t,r,n)}function x(t,e,r,n){return nt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function U(t,e,r,n){return x(t,e,r,n)}function I(t,e,r,n){return nt(rt(e),t,r,n)}function D(t,e,r,n){return nt(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function N(t,e,r){return 0===e&&r===t.length?d(t):d(t.slice(e,r))}function F(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,h=t[i],f=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(f=h);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&h)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}return function(t){var e=t.length;if(e<=z)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=z));return r}(n)}_.TYPED_ARRAY_SUPPORT=void 0===a.TYPED_ARRAY_SUPPORT||a.TYPED_ARRAY_SUPPORT,m(),_.poolSize=8192,_._augment=function(t){return t.__proto__=_.prototype,t},_.from=function(t,e,r){return S(null,t,e,r)},_.TYPED_ARRAY_SUPPORT&&(_.prototype.__proto__=Uint8Array.prototype,_.__proto__=Uint8Array),_.alloc=function(t,e,r){return function(t,e,r,n){return E(e),e<=0?w(t,e):void 0!==r?"string"==typeof n?w(t,e).fill(r,n):w(t,e).fill(r):w(t,e)}(null,t,e,r)},_.allocUnsafe=function(t){return k(null,t)},_.allocUnsafeSlow=function(t){return k(null,t)},_.isBuffer=function(t){return null!=t&&(!!t._isBuffer||it(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&it(t.slice(0,0))}(t))},_.compare=function(t,e){if(!T(t)||!T(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},_.isEncoding=function(t){switch(String(t).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}},_.concat=function(t,e){if(!b(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return _.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=_.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},_.byteLength=O,_.prototype._isBuffer=!0,_.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)L(this,e,e+1);return this},_.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this},_.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this},_.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?F(this,0,t):j.apply(this,arguments)},_.prototype.equals=function(t){if(!T(t))throw new TypeError("Argument must be a Buffer");return this===t||0===_.compare(this,t)},_.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},_.prototype.compare=function(t,e,r,n,i){if(!T(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(n,i),h=t.slice(e,r),f=0;f<a;++f)if(u[f]!==h[f]){o=u[f],s=h[f];break}return o<s?-1:s<o?1:0},_.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},_.prototype.indexOf=function(t,e,r){return C(this,t,e,r,!0)},_.prototype.lastIndexOf=function(t,e,r){return C(this,t,e,r,!1)},_.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,t,e,r);case"utf8":case"utf-8":return B(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return I(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function q(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function Y(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function W(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=tt(t[o]);return i}function $(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function G(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function J(t,e,r,n,i,o){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function H(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function V(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function K(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Z(t,e,r,n,i){return i||K(t,0,r,4),y(t,e,r,n,23,4),r+4}function Q(t,e,r,n,i){return i||K(t,0,r,8),y(t,e,r,n,52,8),r+8}_.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),_.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=_.prototype;else{var i=e-t;r=new _(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},_.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},_.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},_.prototype.readUInt8=function(t,e){return e||G(t,1,this.length),this[t]},_.prototype.readUInt16LE=function(t,e){return e||G(t,2,this.length),this[t]|this[t+1]<<8},_.prototype.readUInt16BE=function(t,e){return e||G(t,2,this.length),this[t]<<8|this[t+1]},_.prototype.readUInt32LE=function(t,e){return e||G(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},_.prototype.readUInt32BE=function(t,e){return e||G(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},_.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},_.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},_.prototype.readInt8=function(t,e){return e||G(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},_.prototype.readInt16LE=function(t,e){e||G(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},_.prototype.readInt16BE=function(t,e){e||G(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},_.prototype.readInt32LE=function(t,e){return e||G(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},_.prototype.readInt32BE=function(t,e){return e||G(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},_.prototype.readFloatLE=function(t,e){return e||G(t,4,this.length),g(this,t,!0,23,4)},_.prototype.readFloatBE=function(t,e){return e||G(t,4,this.length),g(this,t,!1,23,4)},_.prototype.readDoubleLE=function(t,e){return e||G(t,8,this.length),g(this,t,!0,52,8)},_.prototype.readDoubleBE=function(t,e){return e||G(t,8,this.length),g(this,t,!1,52,8)},_.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||J(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},_.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||J(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},_.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,1,255,0),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},_.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):H(this,t,e,!0),e+2},_.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):H(this,t,e,!1),e+2},_.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},_.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},_.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);J(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},_.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);J(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},_.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,1,127,-128),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},_.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):H(this,t,e,!0),e+2},_.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):H(this,t,e,!1),e+2},_.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,2147483647,-2147483648),_.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},_.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},_.prototype.writeFloatLE=function(t,e,r){return Z(this,t,e,!0,r)},_.prototype.writeFloatBE=function(t,e,r){return Z(this,t,e,!1,r)},_.prototype.writeDoubleLE=function(t,e,r){return Q(this,t,e,!0,r)},_.prototype.writeDoubleBE=function(t,e,r){return Q(this,t,e,!1,r)},_.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!_.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},_.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!_.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=T(t)?t:et(new _(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function tt(t){return t<16?"0"+t.toString(16):t.toString(16)}function et(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=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((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function rt(t){return function(t){var e,r,n,i,o,s;c||l();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new f(3*a/4-o),n=o>0?a-4:a;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=h[t.charCodeAt(e)]<<18|h[t.charCodeAt(e+1)]<<12|h[t.charCodeAt(e+2)]<<6|h[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=h[t.charCodeAt(e)]<<2|h[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=h[t.charCodeAt(e)]<<10|h[t.charCodeAt(e+1)]<<4|h[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(X,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function nt(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function it(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function ot(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}var at=ot,ut=st;function ht(t){if(at===setTimeout)return setTimeout(t,0);if((at===ot||!at)&&setTimeout)return at=setTimeout,setTimeout(t,0);try{return at(t,0)}catch(e){try{return at.call(null,t,0)}catch(e){return at.call(this,t,0)}}}"function"==typeof a.setTimeout&&(at=setTimeout),"function"==typeof a.clearTimeout&&(ut=clearTimeout);var ft,ct=[],lt=!1,pt=-1;function dt(){lt&&ft&&(lt=!1,ft.length?ct=ft.concat(ct):pt=-1,ct.length&>())}function gt(){if(!lt){var t=ht(dt);lt=!0;for(var e=ct.length;e;){for(ft=ct,ct=[];++pt<e;)ft&&ft[pt].run();pt=-1,e=ct.length}ft=null,lt=!1,function(t){if(ut===clearTimeout)return clearTimeout(t);if((ut===st||!ut)&&clearTimeout)return ut=clearTimeout,clearTimeout(t);try{return ut(t)}catch(e){try{return ut.call(null,t)}catch(e){return ut.call(this,t)}}}(t)}}function yt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ct.push(new vt(t,e)),1!==ct.length||lt||ht(gt)}function vt(t,e){this.fun=t,this.array=e}vt.prototype.run=function(){this.fun.apply(null,this.array)};function bt(){}var mt=bt,wt=bt,_t=bt,St=bt,Et=bt,kt=bt,Rt=bt;var At=a.performance||{},Tt=At.now||At.mozNow||At.msNow||At.oNow||At.webkitNow||function(){return(new Date).getTime()};var Ot=new Date;var jt,Lt={nextTick:yt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:mt,addListener:wt,once:_t,off:St,removeListener:Et,removeAllListeners:kt,emit:Rt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Tt.call(At),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ot)/1e3}};jt="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t};var Ct=jt,Pt=/%[sdj%]/g;function Mt(t){if(!$t(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(It(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(Pt,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])Wt(s)||!Ht(s)?o+=" "+s:o+=" "+It(s);return o}function Bt(t,e){if(Gt(a.process))return function(){return Bt(t,e).apply(this,arguments)};if(!0===Lt.noDeprecation)return t;var r=!1;return function(){if(!r){if(Lt.throwDeprecation)throw new Error(e);Lt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var xt,Ut={};function It(t,e){var r={seen:[],stylize:Nt};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Yt(e)?r.showHidden=e:e&&function(t,e){if(!e||!Ht(e))return t;var r=Object.keys(e),n=r.length;for(;n--;)t[r[n]]=e[r[n]]}(r,e),Gt(r.showHidden)&&(r.showHidden=!1),Gt(r.depth)&&(r.depth=2),Gt(r.colors)&&(r.colors=!1),Gt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Dt),Ft(r,t,r.depth)}function Dt(t,e){var r=It.styles[e];return r?"["+It.colors[r][0]+"m"+t+"["+It.colors[r][1]+"m":t}function Nt(t,e){return t}function Ft(t,e,r){if(t.customInspect&&e&&Zt(e.inspect)&&e.inspect!==It&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return $t(n)||(n=Ft(t,n,r)),n}var i=function(t,e){if(Gt(e))return t.stylize("undefined","undefined");if($t(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(n=e,"number"==typeof n)return t.stylize(""+e,"number");var n;if(Yt(e))return t.stylize(""+e,"boolean");if(Wt(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),Kt(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return zt(e);if(0===o.length){if(Zt(e)){var a=e.name?": "+e.name:"";return t.stylize("[Function"+a+"]","special")}if(Jt(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Vt(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Kt(e))return zt(e)}var u,h,f="",c=!1,l=["{","}"];(u=e,Array.isArray(u)&&(c=!0,l=["[","]"]),Zt(e))&&(f=" [Function"+(e.name?": "+e.name:"")+"]");return Jt(e)&&(f=" "+RegExp.prototype.toString.call(e)),Vt(e)&&(f=" "+Date.prototype.toUTCString.call(e)),Kt(e)&&(f=" "+zt(e)),0!==o.length||c&&0!=e.length?r<0?Jt(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),h=c?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)Xt(e,String(s))?o.push(qt(t,e,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(qt(t,e,r,n,i,!0))})),o}(t,e,r,s,o):o.map((function(n){return qt(t,e,r,s,n,c)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(h,f,l)):l[0]+f+l[1]}function zt(t){return"["+Error.prototype.toString.call(t)+"]"}function qt(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),Xt(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=Wt(r)?Ft(t,u.value,null):Ft(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),Gt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function Yt(t){return"boolean"==typeof t}function Wt(t){return null===t}function $t(t){return"string"==typeof t}function Gt(t){return void 0===t}function Jt(t){return Ht(t)&&"[object RegExp]"===Qt(t)}function Ht(t){return"object"==typeof t&&null!==t}function Vt(t){return Ht(t)&&"[object Date]"===Qt(t)}function Kt(t){return Ht(t)&&("[object Error]"===Qt(t)||t instanceof Error)}function Zt(t){return"function"==typeof t}function Qt(t){return Object.prototype.toString.call(t)}function Xt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function te(){this.head=null,this.tail=null,this.length=0}It.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]},It.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},te.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},te.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},te.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},te.prototype.clear=function(){this.head=this.tail=null,this.length=0},te.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},te.prototype.concat=function(t){if(0===this.length)return _.alloc(0);if(1===this.length)return this.head.data;for(var e=_.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var ee=_.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function re(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!ee(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ie;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=oe;break;default:return void(this.write=ne)}this.charBuffer=new _(6),this.charReceived=0,this.charLength=0}function ne(t){return t.toString(this.encoding)}function ie(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function oe(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}re.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,n)}return e},re.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},re.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},ue.ReadableState=ae;var se=function(t){if(Gt(xt)&&(xt=Lt.env.NODE_DEBUG||""),t=t.toUpperCase(),!Ut[t])if(new RegExp("\\b"+t+"\\b","i").test(xt)){Ut[t]=function(){var e=Mt.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else Ut[t]=function(){};return Ut[t]}("stream");function ae(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof Ue&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new te,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.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new re(t.encoding),this.encoding=t.encoding)}function ue(t){if(!(this instanceof ue))return new ue(t);this._readableState=new ae(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),e.call(this)}function he(t,e,r,n,i){var o=function(t,e){var r=null;_.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(o)t.emit("error",o);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,le(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&i){var a=new Error("stream.unshift() after end event");t.emit("error",a)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&le(t))),function(t,e){e.readingMore||(e.readingMore=!0,yt(de,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}Ct(ue,e),ue.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=_.from(t,e),e=""),he(this,r,t,e,!1)},ue.prototype.unshift=function(t){return he(this,this._readableState,t,"",!0)},ue.prototype.isPaused=function(){return!1===this._readableState.flowing},ue.prototype.setEncoding=function(t){return this._readableState.decoder=new re(t),this._readableState.encoding=t,this};var fe=8388608;function ce(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=fe?t=fe:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function le(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(se("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?yt(pe,t):pe(t))}function pe(t){se("emit readable"),t.emit("readable"),ve(t)}function de(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(se("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function ge(t){se("readable nexttick read 0"),t.read(0)}function ye(t,e){e.reading||(se("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ve(t),e.flowing&&!e.reading&&t.read(0)}function ve(t){var e=t._readableState;for(se("flow",e.flowing);e.flowing&&null!==t.read(););}function be(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=_.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),0===(t-=s)){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function me(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,yt(we,e,t))}function we(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function _e(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Se(){}function Ee(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function ke(t,e){Object.defineProperty(this,"buffer",{get:Bt((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof Ue&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?yt(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var o=je(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||Oe(t,r),n?yt(Te,t,r,o,i):Te(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pe(this)}function Re(t){if(!(this instanceof Re||this instanceof Ue))return new Re(t);this._writableState=new ke(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),e.call(this)}function Ae(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Te(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),Ce(t,e)}function Oe(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0;r;)i[s]=r,r=r.next,s+=1;Ae(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Pe(e)}else{for(;r;){var a=r.chunk,u=r.encoding,h=r.callback;if(Ae(t,e,!1,e.objectMode?1:a.length,a,u,h),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function je(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function Le(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function Ce(t,e){var r=je(e);return r&&(0===e.pendingcb?(Le(t,e),e.finished=!0,t.emit("finish")):Le(t,e)),r}function Pe(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}ue.prototype.read=function(t){se("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return se("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?me(this):le(this),null;if(0===(t=ce(t,e))&&e.ended)return 0===e.length&&me(this),null;var n,i=e.needReadable;return se("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&se("length less than watermark",i=!0),e.ended||e.reading?se("reading or ended",i=!1):i&&(se("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ce(r,e))),null===(n=t>0?be(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&me(this)),null!==n&&this.emit("data",n),n},ue.prototype._read=function(t){this.emit("error",new Error("not implemented"))},ue.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,se("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?s:h;function o(t){se("onunpipe"),t===r&&h()}function s(){se("onend"),t.end()}n.endEmitted?yt(i):r.once("end",i),t.on("unpipe",o);var a=function(t){return function(){var e=t._readableState;se("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,ve(t))}}(r);t.on("drain",a);var u=!1;function h(){se("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",a),t.removeListener("error",l),t.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",h),r.removeListener("data",c),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||a()}var f=!1;function c(e){se("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==_e(n.pipes,t))&&!u&&(se("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function l(e){var r;se("onerror",e),g(),t.removeListener("error",l),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function p(){t.removeListener("finish",d),g()}function d(){se("onfinish"),t.removeListener("close",p),g()}function g(){se("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",l),t.once("close",p),t.once("finish",d),t.emit("pipe",r),n.flowing||(se("pipe resume"),r.resume()),t},ue.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=_e(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},ue.prototype.on=function(t,r){var n=e.prototype.on.call(this,t,r);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&le(this):yt(ge,this))}return n},ue.prototype.addListener=ue.prototype.on,ue.prototype.resume=function(){var t=this._readableState;return t.flowing||(se("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,yt(ye,t,e))}(this,t)),this},ue.prototype.pause=function(){return se("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(se("pause"),this._readableState.flowing=!1,this.emit("pause")),this},ue.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(se("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(se("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){se("wrapped _read",e),r&&(r=!1,t.resume())},n},ue._fromList=be,Re.WritableState=ke,Ct(Re,e),ke.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Re.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),_.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=Se),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),yt(e,r)}(this,r):function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):_.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),yt(n,o),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=_.from(e,r));return e}(e,r,n),_.isBuffer(r)&&(n="buffer");var o=e.objectMode?1:r.length;e.length+=o;var s=e.length<e.highWaterMark;s||(e.needDrain=!0);if(e.writing||e.corked){var a=e.lastBufferedRequest;e.lastBufferedRequest=new Ee(r,n,i),a?a.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ae(t,e,!1,o,r,n,i);return s}(this,n,t,e,r)),i},Re.prototype.cork=function(){this._writableState.corked++},Re.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||Oe(this,t))},Re.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Re.prototype._write=function(t,e,r){r(new Error("not implemented"))},Re.prototype._writev=null,Re.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,Ce(t,e),r&&(e.finished?yt(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Ct(Ue,ue);for(var Me=Object.keys(Re.prototype),Be=0;Be<Me.length;Be++){var xe=Me[Be];Ue.prototype[xe]||(Ue.prototype[xe]=Re.prototype[xe])}function Ue(t){if(!(this instanceof Ue))return new Ue(t);ue.call(this,t),Re.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Ie)}function Ie(){this.allowHalfOpen||this._writableState.ended||yt(De,this)}function De(t){t.end()}function Ne(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Fe(t){if(!(this instanceof Fe))return new Fe(t);Ue.call(this,t),this._transformState=new Ne(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){ze(e,t)})):ze(e)}))}function ze(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._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 t.push(null)}function qe(t){if(!(this instanceof qe))return new qe(t);Fe.call(this,t)}function Ye(){e.call(this)}Ct(Fe,Ue),Fe.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ue.prototype.push.call(this,t,e)},Fe.prototype._transform=function(t,e,r){throw new Error("Not implemented")},Fe.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Fe.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},Ct(qe,Fe),qe.prototype._transform=function(t,e,r){r(null,t)},Ct(Ye,e),Ye.Readable=ue,Ye.Writable=Re,Ye.Duplex=Ue,Ye.Transform=Fe,Ye.PassThrough=qe,Ye.Stream=Ye,Ye.prototype.pipe=function(t,r){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||r&&!1===r.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(f(),0===e.listenerCount(this,"error"))throw t}function f(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",h),t.removeListener("error",h),n.removeListener("end",f),n.removeListener("close",f),t.removeListener("close",f)}return n.on("error",h),t.on("error",h),n.on("end",f),n.on("close",f),t.on("close",f),t.emit("pipe",n),t};var We="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},$e={},Ge={get exports(){return $e},set exports(t){$e=t}};"function"==typeof Object.create?Ge.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Ge.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};let Je=Ve();function He(t,e){("object"!=typeof t||Array.isArray(t))&&(e=t,t={});let r=new Je(t);var n;return r._from=Array.isArray(e)?(n=(n=e).slice(),function(t,e){let r=null,i=n.length?n.shift():null;i instanceof Error&&(r=i,i=null),e(r,i)}):e||Ke,r}function Ve(t,e){function r(e){if(!(this instanceof r))return new r(e);this._reading=!1,this._callback=function(t,e){if(n.destroyed)return;if(t)return n.destroy(t);if(null===e)return n.push(null);n._reading=!1,n.push(e)&&n._read(i)},this.destroyed=!1,ue.call(this,e||t);let n=this,i=this._readableState.highWaterMark}return"function"==typeof t&&(e=t,t={}),t=Ze(t),$e(r,ue),r.prototype._from=e||Ke,r.prototype._read=function(t){this._reading||this.destroyed||(this._reading=!0,this._from(t,this._callback))},r.prototype.destroy=function(t){if(this.destroyed)return;this.destroyed=!0;let e=this;process.nextTick((function(){t&&e.emit("error",t),e.emit("close")}))},r}function Ke(){}function Ze(t){return t=t||{}}He.ctor=Ve,He.obj=function(t,e){return("function"==typeof t||Array.isArray(t))&&(e=t,t={}),(t=Ze(t)).objectMode=!0,t.highWaterMark=16,He(t,e)};var Qe,Xe=1,tr={},er=!1,rr=a.document;function nr(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return tr[Xe]=n,Qe(Xe),Xe++}function ir(t){if(er)setTimeout(ir,0,t);else{var e=tr[t];if(e){er=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{!function(t){delete tr[t]}(t),er=!1}}}}var or,sr,ar,ur,hr=Object.getPrototypeOf&&Object.getPrototypeOf(a);function fr(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}function cr(t){let e,r,n;function i(i){((t=i)instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!_.isBuffer(t))&&(t=_.from(t)),e=fr(t)?t:null;const o=!e&&t[Symbol.iterator]&&"string"!=typeof t&&!_.isBuffer(t);r=o?t[Symbol.iterator]():null;const s=!e&&t[Symbol.asyncIterator];n=s?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),i(t),He((function o(s,a){if(e)return void(async()=>{try{await i(await e),o.call(this,s,a)}catch(t){a(t)}})();if(r){const t=r.next();return void nr(a,null,t.done?null:t.value)}if(n)return void(async()=>{try{const t=await n.next();nr(a,null,t.done?null:t.value)}catch(t){nr(a,t)}})();if(0===t.length)return void nr(a,null,null);const u=t.slice(0,s);t=t.slice(s),nr(a,null,u)}))}hr=hr&&hr.setTimeout?hr:a,"[object process]"==={}.toString.call(a.process)?Qe=function(t){Lt.nextTick((function(){ir(t)}))}:!function(){if(a.postMessage&&!a.importScripts){var t=!0,e=a.onmessage;return a.onmessage=function(){t=!1},a.postMessage("","*"),a.onmessage=e,t}}()?a.MessageChannel?((sr=new MessageChannel).port1.onmessage=function(t){ir(t.data)},Qe=function(t){sr.port2.postMessage(t)}):rr&&"onreadystatechange"in rr.createElement("script")?(or=rr.documentElement,Qe=function(t){var e=rr.createElement("script");e.onreadystatechange=function(){ir(t),e.onreadystatechange=null,or.removeChild(e),e=null},or.appendChild(e)}):Qe=function(t){setTimeout(ir,0,t)}:(ar="setImmediate$"+Math.random()+"$",ur=function(t){t.source===a&&"string"==typeof t.data&&0===t.data.indexOf(ar)&&ir(+t.data.slice(ar.length))},a.addEventListener?a.addEventListener("message",ur,!1):a.attachEvent("onmessage",ur),Qe=function(t){a.postMessage(ar+t,"*")}),cr.object=t=>{let e,r,n;function i(i){e=fr(t=i)?t:null,r=!e&&t[Symbol.iterator]?t[Symbol.iterator]():null,n=!e&&t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),i(t),He.obj((function o(s,a){if(e)(async()=>{try{await i(await e),o.call(this,s,a)}catch(t){a(t)}})();else if(r){const t=r.next();nr(a,null,t.done?null:t.value)}else n?(async()=>{try{const t=await n.next();nr(a,null,t.done?null:t.value)}catch(t){nr(a,t)}})():(this.push(t),nr(a,null,null))}))};var lr={},pr=lr.LEFT_BRACE=1,dr=lr.RIGHT_BRACE=2,gr=lr.LEFT_BRACKET=3,yr=lr.RIGHT_BRACKET=4,vr=lr.COLON=5,br=lr.COMMA=6,mr=lr.TRUE=7,wr=lr.FALSE=8,_r=lr.NULL=9,Sr=lr.STRING=10,Er=lr.NUMBER=11,kr=lr.START=17,Rr=lr.STOP=18,Ar=lr.TRUE1=33,Tr=lr.TRUE2=34,Or=lr.TRUE3=35,jr=lr.FALSE1=49,Lr=lr.FALSE2=50,Cr=lr.FALSE3=51,Pr=lr.FALSE4=52,Mr=lr.NULL1=65,Br=lr.NULL2=66,xr=lr.NULL3=67,Ur=lr.NUMBER1=81,Ir=lr.NUMBER3=83,Dr=lr.STRING1=97,Nr=lr.STRING2=98,Fr=lr.STRING3=99,zr=lr.STRING4=100,qr=lr.STRING5=101,Yr=lr.STRING6=102,Wr=lr.VALUE=113,$r=lr.KEY=114,Gr=lr.OBJECT=129,Jr=lr.ARRAY=130,Hr="\\".charCodeAt(0),Vr="/".charCodeAt(0),Kr="\b".charCodeAt(0),Zr="\f".charCodeAt(0),Qr="\n".charCodeAt(0),Xr="\r".charCodeAt(0),tn="\t".charCodeAt(0),en=65536;function rn(){this.tState=kr,this.value=void 0,this.string=void 0,this.stringBuffer=_.alloc?_.alloc(en):new _(en),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Wr,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new _(2),3:new _(3),4:new _(4)},this.offset=-1}rn.toknam=function(t){for(var e=Object.keys(lr),r=0,n=e.length;r<n;r++){var i=e[r];if(lr[i]===t)return i}return t&&"0x"+t.toString(16)};var nn=rn.prototype;nn.onError=function(t){throw t},nn.charError=function(t,e){this.tState=Rr,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[e]))+" at position "+e+" in state "+rn.toknam(this.tState)))},nn.appendStringChar=function(t){this.stringBufferOffset>=en&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},nn.appendStringBuf=function(t,e,r){var n=t.length;"number"==typeof e&&(n="number"==typeof r?r<0?t.length-e+r:r-e:t.length-e),n<0&&(n=0),this.stringBufferOffset+n>en&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n},nn.write=function(t){var e;"string"==typeof t&&(t=new _(t));for(var r=0,n=t.length;r<n;r++)if(this.tState===kr){if(e=t[r],this.offset++,123===e)this.onToken(pr,"{");else if(125===e)this.onToken(dr,"}");else if(91===e)this.onToken(gr,"[");else if(93===e)this.onToken(yr,"]");else if(58===e)this.onToken(vr,":");else if(44===e)this.onToken(br,",");else if(116===e)this.tState=Ar;else if(102===e)this.tState=jr;else if(110===e)this.tState=Mr;else if(34===e)this.string="",this.stringBufferOffset=0,this.tState=Dr;else if(45===e)this.string="-",this.tState=Ur;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=Ir;else if(32!==e&&9!==e&&10!==e&&13!==e)return this.charError(t,r)}else if(this.tState===Dr)if(e=t[r],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=t[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,r=r+i-1}else if(0===this.bytes_remaining&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+rn.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var o=0;o<=t.length-1-r;o++)this.temp_buffs[this.bytes_in_sequence][o]=t[r+o];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(34===e)this.tState=kr,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(Sr,this.string),this.offset+=_.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===e)this.tState=Nr;else{if(!(e>=32))return this.charError(t,r);this.appendStringChar(e)}else if(this.tState===Nr)if(34===(e=t[r]))this.appendStringChar(e),this.tState=Dr;else if(92===e)this.appendStringChar(Hr),this.tState=Dr;else if(47===e)this.appendStringChar(Vr),this.tState=Dr;else if(98===e)this.appendStringChar(Kr),this.tState=Dr;else if(102===e)this.appendStringChar(Zr),this.tState=Dr;else if(110===e)this.appendStringChar(Qr),this.tState=Dr;else if(114===e)this.appendStringChar(Xr),this.tState=Dr;else if(116===e)this.appendStringChar(tn),this.tState=Dr;else{if(117!==e)return this.charError(t,r);this.unicode="",this.tState=Fr}else if(this.tState===Fr||this.tState===zr||this.tState===qr||this.tState===Yr){if(!((e=t[r])>=48&&e<64||e>64&&e<=70||e>96&&e<=102))return this.charError(t,r);if(this.unicode+=String.fromCharCode(e),this.tState++===Yr){var s=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&s>=56320&&s<57344?(this.appendStringBuf(new _(String.fromCharCode(this.highSurrogate,s))),this.highSurrogate=void 0):void 0===this.highSurrogate&&s>=55296&&s<56320?this.highSurrogate=s:(void 0!==this.highSurrogate&&(this.appendStringBuf(new _(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new _(String.fromCharCode(s)))),this.tState=Dr}}else if(this.tState===Ur||this.tState===Ir)switch(e=t[r]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=Ir;break;default:this.tState=kr;var a=Number(this.string);if(isNaN(a))return this.charError(t,r);this.string.match(/[0-9]+/)==this.string&&a.toString()!=this.string?this.onToken(Sr,this.string):this.onToken(Er,a),this.offset+=this.string.length-1,this.string=void 0,r--}else if(this.tState===Ar){if(114!==t[r])return this.charError(t,r);this.tState=Tr}else if(this.tState===Tr){if(117!==t[r])return this.charError(t,r);this.tState=Or}else if(this.tState===Or){if(101!==t[r])return this.charError(t,r);this.tState=kr,this.onToken(mr,!0),this.offset+=3}else if(this.tState===jr){if(97!==t[r])return this.charError(t,r);this.tState=Lr}else if(this.tState===Lr){if(108!==t[r])return this.charError(t,r);this.tState=Cr}else if(this.tState===Cr){if(115!==t[r])return this.charError(t,r);this.tState=Pr}else if(this.tState===Pr){if(101!==t[r])return this.charError(t,r);this.tState=kr,this.onToken(wr,!1),this.offset+=4}else if(this.tState===Mr){if(117!==t[r])return this.charError(t,r);this.tState=Br}else if(this.tState===Br){if(108!==t[r])return this.charError(t,r);this.tState=xr}else if(this.tState===xr){if(108!==t[r])return this.charError(t,r);this.tState=kr,this.onToken(_r,null),this.offset+=3}},nn.onToken=function(t,e){},nn.parseError=function(t,e){this.tState=Rr,this.onError(new Error("Unexpected "+rn.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+rn.toknam(this.state)))},nn.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},nn.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=Wr)},nn.emit=function(t){this.mode&&(this.state=br),this.onValue(t)},nn.onValue=function(t){},nn.onToken=function(t,e){if(this.state===Wr)if(t===Sr||t===Er||t===mr||t===wr||t===_r)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===pr)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=$r,this.mode=Gr;else if(t===gr)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Jr,this.state=Wr;else if(t===dr){if(this.mode!==Gr)return this.parseError(t,e);this.pop()}else{if(t!==yr)return this.parseError(t,e);if(this.mode!==Jr)return this.parseError(t,e);this.pop()}else if(this.state===$r)if(t===Sr)this.key=e,this.state=vr;else{if(t!==dr)return this.parseError(t,e);this.pop()}else if(this.state===vr){if(t!==vr)return this.parseError(t,e);this.state=Wr}else{if(this.state!==br)return this.parseError(t,e);if(t===br)this.mode===Jr?(this.key++,this.state=Wr):this.mode===Gr&&(this.state=$r);else{if(!(t===yr&&this.mode===Jr||t===dr&&this.mode===Gr))return this.parseError(t,e);this.pop()}}},rn.C=lr;var on=rn;function sn(t,e,r){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};let n=!1,i=!1,o=[],s=!1,a=new Ye;function u(){for(;o.length&&!a.paused;){let t=o.shift();if(null===t)return a.emit("end");a.emit("data",t)}}return a.readable=a.writable=!0,a.paused=!1,a.autoDestroy=!(r&&!1===r.autoDestroy),a.write=function(e){return t.call(this,e),!a.paused},a.queue=a.push=function(t){return s||(null===t&&(s=!0),o.push(t),u()),a},a.on("end",(function(){a.readable=!1,!a.writable&&a.autoDestroy&&Lt.nextTick((function(){a.destroy()}))})),a.end=function(t){if(!n)return n=!0,arguments.length&&a.write(t),a.writable=!1,e.call(a),!a.readable&&a.autoDestroy&&a.destroy(),a},a.destroy=function(){if(!i)return i=!0,n=!0,o.length=0,a.writable=a.readable=!1,a.emit("close"),a},a.pause=function(){if(!a.paused)return a.paused=!0,a},a.resume=function(){return a.paused&&(a.paused=!1,a.emit("resume")),u(),a.paused||a.emit("drain"),a},a}sn.through=sn;let an={parse:function(t,e){let r,n;function i(t,e){return"string"==typeof t?e===t:t&&"function"==typeof t.exec?t.exec(e):"boolean"==typeof t||"object"==typeof t?t:"function"==typeof t&&t(e)}let o=new on,s=sn((function(t){"string"==typeof t&&(t=_.from(t)),o.write(t)}),(function(t){t&&s.write(t),r&&s.emit("header",r),n&&s.emit("footer",n),s.queue(null)}));function a(t,e){!1!==r&&(r=r||{},r[t]=e),!1!==n&&!1===r&&(n=n||{},n[t]=e)}return"string"==typeof t&&(t=t.split(".").map((function(t){return"$*"===t?{emitKey:!0}:"*"===t||(""===t?{recurse:!0}:t)}))),t&&t.length||(t=null),o.onValue=function(n){if(this.root||(s.root=n),!t)return;let o=0,u=0,h=!1,f=!1;for(;o<t.length;){let e,r=t[o];if(u++,r&&!r.recurse){if(e=u===this.stack.length?this:this.stack[u],!e)return;if(!i(r,e.key))return void a(e.key,n);h=!!r.emitKey,f=!!r.emitPath,o++}else{o++;let r=t[o];if(!r)return;for(;;){if(e=u===this.stack.length?this:this.stack[u],!e)return;if(i(r,e.key)){o++,Object.isFrozen(this.stack[u])||(this.stack[u].value=null);break}a(e.key,n),u++}}}if(r&&(s.emit("header",r),r=!1),u!==this.stack.length)return;let c=this.stack.slice(1).map((function(t){return t.key})).concat([this.key]),l=n;null!=l&&null!=(l=e?e(l,c):l)&&((h||f)&&(l={value:l},h&&(l.key=this.key),f&&(l.path=c)),s.queue(l)),this.value&&delete this.value[this.key];for(let t in this.stack)Object.isFrozen(this.stack[t])||(this.stack[t].value=null)},o._onToken=o.onToken,o.onToken=function(e,r){o._onToken(e,r),0===this.stack.length&&s.root&&(t||s.queue(s.root),s.root=null)},o.onError=function(t){t.message.indexOf("at position")>-1&&(t.message="Invalid JSON ("+t.message+")"),s.emit("error",t)},s}},un=function(t,e){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},un(t,e)};let hn,fn=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,cn={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function ln(t){return t?"function"==typeof t.then?hn.Promise:function(t){return"function"==typeof t.read&&"function"==typeof t.pause&&"function"==typeof t.resume&&"function"==typeof t.pipe&&"function"==typeof t.once&&"function"==typeof t.removeListener}(t)?t._readableState.objectMode?hn.ReadableObject:hn.ReadableString:Array.isArray(t)?hn.Array:"object"==typeof t||t instanceof Object?hn.Object:hn.Primitive:hn.Primitive}!function(t){t[t.Array=0]="Array",t[t.Object=1]="Object",t[t.ReadableString=2]="ReadableString",t[t.ReadableObject=3]="ReadableObject",t[t.Primitive=4]="Primitive",t[t.Promise=5]="Promise"}(hn||(hn={}));let pn=[];pn[hn.Array]="[",pn[hn.Object]="{",pn[hn.ReadableString]='"',pn[hn.ReadableObject]="[";let dn=[];dn[hn.Array]="]",dn[hn.Object]="}",dn[hn.ReadableString]='"',dn[hn.ReadableObject]="]";let gn=[];for(let t=0,e=Object.entries(hn);t<e.length;t++){let r=e[t],n=r[0],i=r[1];"number"==typeof i&&(gn[i]="process"+n)}function yn(t){return t.replace(fn,(function(t){let e=cn[t];return"string"==typeof e?e:"\\u"+t.charCodeAt(0).toString(16).padStart(4,"0")}))}function vn(t){return'"'+yn(t)+'"'}function bn(t,e){let r=t.read(e);return null===r?new Promise((function(e,r){let n=function(){return e(null)};t.once("end",n),t.once("error",r),t.once("readable",(function(){t.removeListener("end",n),t.removeListener("error",r),e(t.read())}))})):Promise.resolve(r)}function mn(t){return t.then((function(t){return ln(t)===hn.Promise?mn(t):t}))}let wn=function(t){function e(e,r,n,i){void 0===i&&(i=!1);let o=t.call(this)||this;o.cycle=i,o.stack=[],o.depth=0,o.pushCalled=!1,o.end=!1,o.isReading=!1,o.readMore=!1;let s=typeof n;return"string"!==s&&"number"!==s||(o.gap=Number.isFinite(n)?" ".repeat(n):n),Object.assign(o,{visited:i?new WeakMap:new WeakSet,replacerFunction:r instanceof Function&&r,replacerArray:Array.isArray(r)&&r}),r instanceof Function&&(o.replacerFunction=r),Array.isArray(r)&&(o.replacerArray=r),o.addToStack(e),o}return function(t,e){function r(){this.constructor=t}un(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.cycler=function(t,e){let r=this.visited.get(e);if(r)return{$ref:r};let n=this.path();return void 0!==t&&n.push(t),n=n.map((function(t){return"["+(Number.isInteger(t)?t:vn(t))+"]"})),this.visited.set(e,n.length?"$"+n.join(""):"$"),e},e.prototype.addToStack=function(t,e,r,n){let i,o,s=this,a=t;this.replacerFunction&&(a=this.replacerFunction(e||r,a,this)),a&&a.toJSON instanceof Function&&(a=a.toJSON()),(a instanceof Function||"symbol"==typeof t)&&(a=void 0),void 0!==e&&this.replacerArray&&(this.replacerArray.includes(e)||(a=void 0));let u=ln(a);if((n&&n.type===hn.Array||void 0!==a)&&u!==hn.Promise&&(n&&!n.first&&this._push(","),n&&(n.first=!1)),void 0!==a&&u!==hn.Promise&&e&&(this.gap?this._push("\n"+this.gap.repeat(this.depth)+'"'+yn(e)+'": '):this._push('"'+yn(e)+'":')),u!==hn.Primitive)if(this.cycle)a=this.cycler(e||r,a),u=ln(a);else{if(this.visited.has(a))throw Object.assign(new Error("Converting circular structure to JSON"),{realValue:a,key:e||r});this.visited.add(a)}!e&&r>-1&&this.depth&&this.gap&&this._push("\n"+this.gap.repeat(this.depth));let h=pn[u];h&&this._push(h);let f={key:e,index:r,type:u,parent:n,value:a,first:!0};return u===hn.Object?(this.depth+=1,f.unread=Object.keys(a),f.isEmpty=!f.unread.length):u===hn.Array?(this.depth+=1,f.unread=a.length,f.arrayLength=f.unread,f.isEmpty=!f.unread):u!==hn.ReadableString&&u!==hn.ReadableObject||(this.depth+=1,a.readableEnded||(null===(i=a._readableState)||void 0===i?void 0:i.endEmitted)?this.emit("error",new Error("Readable Stream has ended before it was serialized. All stream data have been lost"),a,e||r):(a.readableFlowing||(null===(o=a._readableState)||void 0===o?void 0:o.flowing))&&(a.pause(),this.emit("error",new Error("Readable Stream is in flowing mode, data may have been lost. Trying to pause stream."),a,e||r)),f.readCount=0,a.once("end",(function(){f.end=!0,s.__read()})),a.once("error",(function(t){s.error=!0,s.emit("error",t)}))),this.stack.unshift(f),f},e.prototype.removeFromStack=function(t){let e=t.type,r=e===hn.Object||e===hn.Array||e===hn.ReadableString||e===hn.ReadableObject;e!==hn.Primitive&&(this.cycle||this.visited.delete(t.value),r&&(this.depth-=1));let n=dn[e];r&&!t.isEmpty&&this.gap&&this._push("\n"+this.gap.repeat(this.depth)),n&&this._push(n);let i=this.stack.indexOf(t);this.stack.splice(i,1)},e.prototype._push=function(t){this.pushCalled=!0,this.push(t)},e.prototype.processReadableObject=function(t,e){let r=this;if(!t.end)return bn(t.value,e).then((function(e){null!==e&&(t.first||r._push(","),t.first=!1,r.addToStack(e,void 0,t.readCount),t.readCount+=1)}));this.removeFromStack(t)},e.prototype.processObject=function(t){if(!t.unread.length)return void this.removeFromStack(t);let e=t.unread.shift(),r=t.value[e];this.addToStack(r,e,void 0,t)},e.prototype.processArray=function(t){let e=t.unread;if(!e)return void this.removeFromStack(t);let r=t.arrayLength-e,n=t.value[r];t.unread-=1,this.addToStack(n,void 0,r,t)},e.prototype.processPrimitive=function(t){if(void 0!==t.value){let e,r=typeof t.value;switch(r){case"string":e=vn(t.value);break;case"number":e=Number.isFinite(t.value)?String(t.value):"null";break;case"boolean":e=String(t.value);break;case"object":t.value||(e="null");break;default:throw Object.assign(new Error('Unknown type "'+r+'". Please file an issue!'),{value:t.value})}this._push(e)}else!this.stack[1]||this.stack[1].type!==hn.Array&&this.stack[1].type!==hn.ReadableObject?t.addSeparatorAfterEnd=!1:this._push("null");this.removeFromStack(t)},e.prototype.processReadableString=function(t,e){let r=this;if(!t.end)return bn(t.value,e).then((function(t){t&&r._push(yn(t.toString()))}));this.removeFromStack(t)},e.prototype.processPromise=function(t){let e=this;return mn(t.value).then((function(r){e.removeFromStack(t),e.addToStack(r,t.key,t.index,t.parent)}))},e.prototype.processStackTopItem=function(t){let e,r=this,n=this.stack[0];if(!n||this.error)return Promise.resolve();try{e=this[gn[n.type]](n,t)}catch(t){return Promise.reject(t)}return Promise.resolve(e).then((function(){0===r.stack.length&&(r.end=!0,r._push(null))}))},e.prototype.__read=function(t){let e=this;if(!this.isReading&&!this.error)return this.isReading=!0,this.readMore=!1,this.processStackTopItem(t).then((function(){!e.end&&!e.error&&(e.readMore||!e.pushCalled)?nr((function(){e.isReading=!1,e.__read()})):e.isReading=!1})).catch((function(t){e.error=!0,e.emit("error",t)}));this.readMore=!0},e.prototype._read=function(t){this.pushCalled=!1,this.__read(t)},e.prototype.path=function(){return this.stack.map((function(t){let e=t.key,r=t.index;return e||r})).filter((function(t){return t||t>-1})).reverse()},e}(ue);var _n=Array.isArray,Sn="object"==typeof We&&We&&We.Object===Object&&We,En="object"==typeof self&&self&&self.Object===Object&&self,kn=Sn||En||Function("return this")(),Rn=kn.Symbol,An=Rn,Tn=Object.prototype,On=Tn.hasOwnProperty,jn=Tn.toString,Ln=An?An.toStringTag:void 0;var Cn=function(t){var e=On.call(t,Ln),r=t[Ln];try{t[Ln]=void 0;var n=!0}catch(t){}var i=jn.call(t);return n&&(e?t[Ln]=r:delete t[Ln]),i},Pn=Object.prototype.toString;var Mn=Cn,Bn=function(t){return Pn.call(t)},xn=Rn?Rn.toStringTag:void 0;var Un=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":xn&&xn in Object(t)?Mn(t):Bn(t)};var In=function(t){return null!=t&&"object"==typeof t},Dn=Un,Nn=In;var Fn=function(t){return"symbol"==typeof t||Nn(t)&&"[object Symbol]"==Dn(t)},zn=_n,qn=Fn,Yn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wn=/^\w*$/;var $n=function(t,e){if(zn(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!qn(t))||(Wn.test(t)||!Yn.test(t)||null!=e&&t in Object(e))};var Gn=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Jn=Un,Hn=Gn;var Vn,Kn=function(t){if(!Hn(t))return!1;var e=Jn(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Zn=kn["__core-js_shared__"],Qn=(Vn=/[^.]+$/.exec(Zn&&Zn.keys&&Zn.keys.IE_PROTO||""))?"Symbol(src)_1."+Vn:"";var Xn=function(t){return!!Qn&&Qn in t},ti=Function.prototype.toString;var ei=Kn,ri=Xn,ni=Gn,ii=function(t){if(null!=t){try{return ti.call(t)}catch(t){}try{return t+""}catch(t){}}return""},oi=/^\[object .+?Constructor\]$/,si=Function.prototype,ai=Object.prototype,ui=si.toString,hi=ai.hasOwnProperty,fi=RegExp("^"+ui.call(hi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ci=function(t){return!(!ni(t)||ri(t))&&(ei(t)?fi:oi).test(ii(t))},li=function(t,e){return null==t?void 0:t[e]};var pi=function(t,e){var r=li(t,e);return ci(r)?r:void 0},di=pi(Object,"create"),gi=di;var yi=function(){this.__data__=gi?gi(null):{},this.size=0};var vi=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bi=di,mi=Object.prototype.hasOwnProperty;var wi=function(t){var e=this.__data__;if(bi){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return mi.call(e,t)?e[t]:void 0},_i=di,Si=Object.prototype.hasOwnProperty;var Ei=di;var ki=yi,Ri=vi,Ai=wi,Ti=function(t){var e=this.__data__;return _i?void 0!==e[t]:Si.call(e,t)},Oi=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Ei&&void 0===e?"__lodash_hash_undefined__":e,this};function ji(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ji.prototype.clear=ki,ji.prototype.delete=Ri,ji.prototype.get=Ai,ji.prototype.has=Ti,ji.prototype.set=Oi;var Li=ji;var Ci=function(){this.__data__=[],this.size=0};var Pi=function(t,e){return t===e||t!=t&&e!=e};var Mi=function(t,e){for(var r=t.length;r--;)if(Pi(t[r][0],e))return r;return-1},Bi=Mi,xi=Array.prototype.splice;var Ui=Mi;var Ii=Mi;var Di=Mi;var Ni=Ci,Fi=function(t){var e=this.__data__,r=Bi(e,t);return!(r<0)&&(r==e.length-1?e.pop():xi.call(e,r,1),--this.size,!0)},zi=function(t){var e=this.__data__,r=Ui(e,t);return r<0?void 0:e[r][1]},qi=function(t){return Ii(this.__data__,t)>-1},Yi=function(t,e){var r=this.__data__,n=Di(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Wi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Wi.prototype.clear=Ni,Wi.prototype.delete=Fi,Wi.prototype.get=zi,Wi.prototype.has=qi,Wi.prototype.set=Yi;var $i=Wi,Gi=pi(kn,"Map"),Ji=Li,Hi=$i,Vi=Gi;var Ki=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Zi=function(t,e){var r=t.__data__;return Ki(e)?r["string"==typeof e?"string":"hash"]:r.map},Qi=Zi;var Xi=Zi;var to=Zi;var eo=Zi;var ro=function(){this.size=0,this.__data__={hash:new Ji,map:new(Vi||Hi),string:new Ji}},no=function(t){var e=Qi(this,t).delete(t);return this.size-=e?1:0,e},io=function(t){return Xi(this,t).get(t)},oo=function(t){return to(this,t).has(t)},so=function(t,e){var r=eo(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ao(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ao.prototype.clear=ro,ao.prototype.delete=no,ao.prototype.get=io,ao.prototype.has=oo,ao.prototype.set=so;var uo=ao;function ho(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(ho.Cache||uo),r}ho.Cache=uo;var fo=ho;var co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lo=/\\(\\)?/g,po=function(t){var e=fo(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(co,(function(t,r,n,i){e.push(n?i.replace(lo,"$1"):r||t)})),e}));var go=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},yo=_n,vo=Fn,bo=Rn?Rn.prototype:void 0,mo=bo?bo.toString:void 0;var wo=function t(e){if("string"==typeof e)return e;if(yo(e))return go(e,t)+"";if(vo(e))return mo?mo.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},_o=wo;var So=_n,Eo=$n,ko=po,Ro=function(t){return null==t?"":_o(t)};var Ao=Fn;var To=function(t,e){return So(t)?t:Eo(t,e)?[t]:ko(Ro(t))},Oo=function(t){if("string"==typeof t||Ao(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};var jo=function(t,e){for(var r=0,n=(e=To(e,t)).length;null!=t&&r<n;)t=t[Oo(e[r++])];return r&&r==n?t:void 0};var Lo=function(t,e,r){var n=null==t?void 0:jo(t,e);return void 0===n?r:n},Co=Un,Po=In;var Mo=function(t){return"number"==typeof t||Po(t)&&"[object Number]"==Co(t)};function Bo(t){return"[object String]"===Object.prototype.toString.call(t)}function xo(t){return!(!Bo(t)||""===t)}function Uo(t){return"[object Array]"===Object.prototype.toString.call(t)}function Io(t){return"[object Undefined]"===Object.prototype.toString.call(t)}function Do(t){return"[object Object]"===Object.prototype.toString.call(t)}function No(t){return!(!Bo(t)||""!==t)}function Fo(t){return!!Io(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!function(t){if(Do(t)){for(let e in t)return!1;return!0}return!1}(t)||(!!No(t)||!!function(t){return!!Uo(t)&&0===t.length}(t))))}function zo(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}let qo={parse:async function(t){if(!xo(t))return{};let e={};try{e=JSON.parse(t)}catch(t){e={}}return e},parseByStream:function(t){let e={};if("null"===t)return null;if(""===t)return{};let r="__system__",n=`{"${r}":${t}}`,i=zo(),o=cr(n),s=an.parse("$*");return s.on("data",(function(t){e[t.key]=t.value})),s.on("end",(function(){let t=Lo(e,r);i.resolve(t)})),s.on("error",(function(t){i.reject(t)})),o.pipe(s),i},createParseStream:function(t){return xo(t)||function(t){return!(!Uo(t)||0===t.length||1===t.length&&Fo(t[0]))}(t)||(t="$*"),an.parse(t)},stringify:async function(t){if(Io(t))return"";let e="";try{e=JSON.stringify(t)}catch(t){e=""}return e},stringifyByStream:function(t){let e="";if(Io(t))return"";if(null===t)return"null";if(No(t))return'""';if(Mo(t))return`${t}`;if(Bo(t))return`"${t}"`;let r=zo(),n=new wn(t,null,null,!1);return n.on("data",(function(t){e+=t})),n.on("end",(function(){r.resolve(e)})),n.on("error",(function(t){r.reject(t)})),r},createStringifyStream:function(t){if(!Do(t)&&!Uo(t))throw new Error("data is not object or array");return new wn(t,null,null,!1)}};return qo}));
|
|
6
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self)["w-json-stream"]=e()}(this,(function(){"use strict";function t(){}function e(){e.init.call(this)}function r(t){return void 0===t._maxListeners?e.defaultMaxListeners:t._maxListeners}function n(e,n,i,o){var s,a,u,h;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",n,i.listener?i.listener:i),a=e._events),u=a[n]):(a=e._events=new t,e._eventsCount=0),u){if("function"==typeof u?u=a[n]=o?[i,u]:[u,i]:o?u.unshift(i):u.push(i),!u.warned&&(s=r(e))&&s>0&&u.length>s){u.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+n+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=n,f.count=u.length,h=f,"function"==typeof console.warn?console.warn(h):console.log(h)}}else u=a[n]=i,++e._eventsCount;return e}function i(t,e,r){var n=!1;function i(){t.removeListener(e,i),n||(n=!0,r.apply(t,arguments))}return i.listener=r,i}function o(t){var e=this._events;if(e){var r=e[t];if("function"==typeof r)return 1;if(r)return r.length}return 0}function s(t,e){for(var r=new Array(e);e--;)r[e]=t[e];return r}t.prototype=Object.create(null),e.EventEmitter=e,e.usingDomains=!1,e.prototype.domain=void 0,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.init=function(){this.domain=null,e.usingDomains&&undefined.active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new t,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=t,this},e.prototype.getMaxListeners=function(){return r(this)},e.prototype.emit=function(t){var e,r,n,i,o,a,u,h="error"===t;if(a=this._events)h=h&&null==a.error;else if(!h)return!1;if(u=this.domain,h){if(e=arguments[1],!u){if(e instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}return e||(e=new Error('Uncaught, unspecified "error" event')),e.domainEmitter=this,e.domain=u,e.domainThrown=!1,u.emit("error",e),!1}if(!(r=a[t]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:!function(t,e,r){if(e)t.call(r);else for(var n=t.length,i=s(t,n),o=0;o<n;++o)i[o].call(r)}(r,c,this);break;case 2:!function(t,e,r,n){if(e)t.call(r,n);else for(var i=t.length,o=s(t,i),a=0;a<i;++a)o[a].call(r,n)}(r,c,this,arguments[1]);break;case 3:!function(t,e,r,n,i){if(e)t.call(r,n,i);else for(var o=t.length,a=s(t,o),u=0;u<o;++u)a[u].call(r,n,i)}(r,c,this,arguments[1],arguments[2]);break;case 4:!function(t,e,r,n,i,o){if(e)t.call(r,n,i,o);else for(var a=t.length,u=s(t,a),h=0;h<a;++h)u[h].call(r,n,i,o)}(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];!function(t,e,r,n){if(e)t.apply(r,n);else for(var i=t.length,o=s(t,i),a=0;a<i;++a)o[a].apply(r,n)}(r,c,this,i)}return!0},e.prototype.addListener=function(t,e){return n(this,t,e,!1)},e.prototype.on=e.prototype.addListener,e.prototype.prependListener=function(t,e){return n(this,t,e,!0)},e.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.on(t,i(this,t,e)),this},e.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('"listener" argument must be a function');return this.prependListener(t,i(this,t,e)),this},e.prototype.removeListener=function(e,r){var n,i,o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(n=i[e]))return this;if(n===r||n.listener&&n.listener===r)0==--this._eventsCount?this._events=new t:(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if("function"!=typeof n){for(o=-1,s=n.length;s-- >0;)if(n[s]===r||n[s].listener&&n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;if(1===n.length){if(n[0]=void 0,0==--this._eventsCount)return this._events=new t,this;delete i[e]}else!function(t,e){for(var r=e,n=r+1,i=t.length;n<i;r+=1,n+=1)t[r]=t[n];t.pop()}(n,o);i.removeListener&&this.emit("removeListener",e,a||r)}return this},e.prototype.removeAllListeners=function(e){var r,n;if(!(n=this._events))return this;if(!n.removeListener)return 0===arguments.length?(this._events=new t,this._eventsCount=0):n[e]&&(0==--this._eventsCount?this._events=new t:delete n[e]),this;if(0===arguments.length){for(var i,o=Object.keys(n),s=0;s<o.length;++s)"removeListener"!==(i=o[s])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=new t,this._eventsCount=0,this}if("function"==typeof(r=n[e]))this.removeListener(e,r);else if(r)do{this.removeListener(e,r[r.length-1])}while(r[0]);return this},e.prototype.listeners=function(t){var e,r=this._events;return r&&(e=r[t])?"function"==typeof e?[e.listener||e]:function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(e):[]},e.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):o.call(t,e)},e.prototype.listenerCount=o,e.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var a="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=[],h=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,c=!1;function l(){c=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e<r;++e)u[e]=t[e],h[t.charCodeAt(e)]=e;h["-".charCodeAt(0)]=62,h["_".charCodeAt(0)]=63}function p(t,e,r){for(var n,i,o=[],s=e;s<r;s+=3)n=(t[s]<<16)+(t[s+1]<<8)+t[s+2],o.push(u[(i=n)>>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}function d(t){var e;c||l();for(var r=t.length,n=r%3,i="",o=[],s=16383,a=0,h=r-n;a<h;a+=s)o.push(p(t,a,a+s>h?h:a+s));return 1===n?(e=t[r-1],i+=u[e>>2],i+=u[e<<4&63],i+="=="):2===n&&(e=(t[r-2]<<8)+t[r-1],i+=u[e>>10],i+=u[e>>4&63],i+=u[e<<2&63],i+="="),o.push(i),o.join("")}function g(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,h=u>>1,f=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,o=p&(1<<-f)-1,p>>=-f,f+=a;f>0;o=256*o+t[e+c],c+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=256*s+t[e+c],c+=l,f-=8);if(0===o)o=1-h;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=h}return(p?-1:1)*s*Math.pow(2,o-n)}function y(t,e,r,n,i,o){var s,a,u,h=8*o-i-1,f=(1<<h)-1,c=f>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+c>=1?l/u:l*Math.pow(2,1-c))*u>=2&&(s++,u/=2),s+c>=f?(a=0,s=f):s+c>=1?(a=(e*u-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,h+=i;h>0;t[r+p]=255&s,p+=d,s/=256,h-=8);t[r+p-d]|=128*g}var v={}.toString,b=Array.isArray||function(t){return"[object Array]"==v.call(t)};function m(){return _.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function w(t,e){if(m()<e)throw new RangeError("Invalid typed array length");return _.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=_.prototype:(null===t&&(t=new _(e)),t.length=e),t}function _(t,e,r){if(!(_.TYPED_ARRAY_SUPPORT||this instanceof _))return new _(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return k(this,t)}return S(this,t,e,r)}function S(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n);_.TYPED_ARRAY_SUPPORT?(t=e).__proto__=_.prototype:t=R(t,e);return t}(t,e,r,n):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!_.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|O(e,r);t=w(t,n);var i=t.write(e,r);i!==n&&(t=t.slice(0,i));return t}(t,e,r):function(t,e){if(T(e)){var r=0|A(e.length);return 0===(t=w(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?w(t,0):R(t,e);if("Buffer"===e.type&&b(e.data))return R(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function E(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function k(t,e){if(E(e),t=w(t,e<0?0:0|A(e)),!_.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function R(t,e){var r=e.length<0?0:0|A(e.length);t=w(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function A(t){if(t>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|t}function T(t){return!(null==t||!t._isBuffer)}function O(t,e){if(T(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return et(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return rt(t).length;default:if(n)return et(t).length;e=(""+e).toLowerCase(),n=!0}}function j(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return W(this,e,r);case"utf8":case"utf-8":return F(this,e,r);case"ascii":return q(this,e,r);case"latin1":case"binary":return Y(this,e,r);case"base64":return N(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function L(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function C(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=_.from(e,n)),T(e))return 0===e.length?-1:P(t,e,r,n,i);if("number"==typeof e)return e&=255,_.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):P(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function P(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var f=-1;for(o=r;o<a;o++)if(h(t,o)===h(e,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*s}else-1!==f&&(o-=o-f),f=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var c=!0,l=0;l<u;l++)if(h(t,o+l)!==h(e,l)){c=!1;break}if(c)return o}return-1}function M(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function B(t,e,r,n){return nt(et(e,t.length-r),t,r,n)}function x(t,e,r,n){return nt(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function U(t,e,r,n){return x(t,e,r,n)}function I(t,e,r,n){return nt(rt(e),t,r,n)}function D(t,e,r,n){return nt(function(t,e){for(var r,n,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=(r=t.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function N(t,e,r){return 0===e&&r===t.length?d(t):d(t.slice(e,r))}function F(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,h=t[i],f=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=r)switch(c){case 1:h<128&&(f=h);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&h)<<6|63&o)>127&&(f=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(u=(15&h)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&h)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=c}return function(t){var e=t.length;if(e<=z)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=z));return r}(n)}_.TYPED_ARRAY_SUPPORT=void 0===a.TYPED_ARRAY_SUPPORT||a.TYPED_ARRAY_SUPPORT,m(),_.poolSize=8192,_._augment=function(t){return t.__proto__=_.prototype,t},_.from=function(t,e,r){return S(null,t,e,r)},_.TYPED_ARRAY_SUPPORT&&(_.prototype.__proto__=Uint8Array.prototype,_.__proto__=Uint8Array),_.alloc=function(t,e,r){return function(t,e,r,n){return E(e),e<=0?w(t,e):void 0!==r?"string"==typeof n?w(t,e).fill(r,n):w(t,e).fill(r):w(t,e)}(null,t,e,r)},_.allocUnsafe=function(t){return k(null,t)},_.allocUnsafeSlow=function(t){return k(null,t)},_.isBuffer=function(t){return null!=t&&(!!t._isBuffer||it(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&it(t.slice(0,0))}(t))},_.compare=function(t,e){if(!T(t)||!T(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},_.isEncoding=function(t){switch(String(t).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}},_.concat=function(t,e){if(!b(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return _.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=_.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(!T(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},_.byteLength=O,_.prototype._isBuffer=!0,_.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)L(this,e,e+1);return this},_.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)L(this,e,e+3),L(this,e+1,e+2);return this},_.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)L(this,e,e+7),L(this,e+1,e+6),L(this,e+2,e+5),L(this,e+3,e+4);return this},_.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?F(this,0,t):j.apply(this,arguments)},_.prototype.equals=function(t){if(!T(t))throw new TypeError("Argument must be a Buffer");return this===t||0===_.compare(this,t)},_.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},_.prototype.compare=function(t,e,r,n,i){if(!T(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(n,i),h=t.slice(e,r),f=0;f<a;++f)if(u[f]!==h[f]){o=u[f],s=h[f];break}return o<s?-1:s<o?1:0},_.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},_.prototype.indexOf=function(t,e,r){return C(this,t,e,r,!0)},_.prototype.lastIndexOf=function(t,e,r){return C(this,t,e,r,!1)},_.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return M(this,t,e,r);case"utf8":case"utf-8":return B(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return U(this,t,e,r);case"base64":return I(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},_.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;function q(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function Y(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function W(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=tt(t[o]);return i}function $(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function G(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function J(t,e,r,n,i,o){if(!T(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function H(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function V(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function K(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Z(t,e,r,n,i){return i||K(t,0,r,4),y(t,e,r,n,23,4),r+4}function Q(t,e,r,n,i){return i||K(t,0,r,8),y(t,e,r,n,52,8),r+8}_.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),_.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=_.prototype;else{var i=e-t;r=new _(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},_.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},_.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},_.prototype.readUInt8=function(t,e){return e||G(t,1,this.length),this[t]},_.prototype.readUInt16LE=function(t,e){return e||G(t,2,this.length),this[t]|this[t+1]<<8},_.prototype.readUInt16BE=function(t,e){return e||G(t,2,this.length),this[t]<<8|this[t+1]},_.prototype.readUInt32LE=function(t,e){return e||G(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},_.prototype.readUInt32BE=function(t,e){return e||G(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},_.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},_.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||G(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},_.prototype.readInt8=function(t,e){return e||G(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},_.prototype.readInt16LE=function(t,e){e||G(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},_.prototype.readInt16BE=function(t,e){e||G(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},_.prototype.readInt32LE=function(t,e){return e||G(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},_.prototype.readInt32BE=function(t,e){return e||G(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},_.prototype.readFloatLE=function(t,e){return e||G(t,4,this.length),g(this,t,!0,23,4)},_.prototype.readFloatBE=function(t,e){return e||G(t,4,this.length),g(this,t,!1,23,4)},_.prototype.readDoubleLE=function(t,e){return e||G(t,8,this.length),g(this,t,!0,52,8)},_.prototype.readDoubleBE=function(t,e){return e||G(t,8,this.length),g(this,t,!1,52,8)},_.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||J(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},_.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||J(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},_.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,1,255,0),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},_.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):H(this,t,e,!0),e+2},_.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,65535,0),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):H(this,t,e,!1),e+2},_.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},_.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,4294967295,0),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},_.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);J(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},_.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);J(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},_.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,1,127,-128),_.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},_.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):H(this,t,e,!0),e+2},_.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,2,32767,-32768),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):H(this,t,e,!1),e+2},_.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,2147483647,-2147483648),_.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},_.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||J(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),_.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},_.prototype.writeFloatLE=function(t,e,r){return Z(this,t,e,!0,r)},_.prototype.writeFloatBE=function(t,e,r){return Z(this,t,e,!1,r)},_.prototype.writeDoubleLE=function(t,e,r){return Q(this,t,e,!0,r)},_.prototype.writeDoubleBE=function(t,e,r){return Q(this,t,e,!1,r)},_.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!_.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},_.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!_.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=T(t)?t:et(new _(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function tt(t){return t<16?"0"+t.toString(16):t.toString(16)}function et(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=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((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function rt(t){return function(t){var e,r,n,i,o,s;c||l();var a=t.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[a-2]?2:"="===t[a-1]?1:0,s=new f(3*a/4-o),n=o>0?a-4:a;var u=0;for(e=0,r=0;e<n;e+=4,r+=3)i=h[t.charCodeAt(e)]<<18|h[t.charCodeAt(e+1)]<<12|h[t.charCodeAt(e+2)]<<6|h[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=h[t.charCodeAt(e)]<<2|h[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=h[t.charCodeAt(e)]<<10|h[t.charCodeAt(e+1)]<<4|h[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(X,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function nt(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function it(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function ot(){throw new Error("setTimeout has not been defined")}function st(){throw new Error("clearTimeout has not been defined")}var at=ot,ut=st;function ht(t){if(at===setTimeout)return setTimeout(t,0);if((at===ot||!at)&&setTimeout)return at=setTimeout,setTimeout(t,0);try{return at(t,0)}catch(e){try{return at.call(null,t,0)}catch(e){return at.call(this,t,0)}}}"function"==typeof a.setTimeout&&(at=setTimeout),"function"==typeof a.clearTimeout&&(ut=clearTimeout);var ft,ct=[],lt=!1,pt=-1;function dt(){lt&&ft&&(lt=!1,ft.length?ct=ft.concat(ct):pt=-1,ct.length&>())}function gt(){if(!lt){var t=ht(dt);lt=!0;for(var e=ct.length;e;){for(ft=ct,ct=[];++pt<e;)ft&&ft[pt].run();pt=-1,e=ct.length}ft=null,lt=!1,function(t){if(ut===clearTimeout)return clearTimeout(t);if((ut===st||!ut)&&clearTimeout)return ut=clearTimeout,clearTimeout(t);try{return ut(t)}catch(e){try{return ut.call(null,t)}catch(e){return ut.call(this,t)}}}(t)}}function yt(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];ct.push(new vt(t,e)),1!==ct.length||lt||ht(gt)}function vt(t,e){this.fun=t,this.array=e}vt.prototype.run=function(){this.fun.apply(null,this.array)};function bt(){}var mt=bt,wt=bt,_t=bt,St=bt,Et=bt,kt=bt,Rt=bt;var At=a.performance||{},Tt=At.now||At.mozNow||At.msNow||At.oNow||At.webkitNow||function(){return(new Date).getTime()};var Ot=new Date;var jt,Lt={nextTick:yt,title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:mt,addListener:wt,once:_t,off:St,removeListener:Et,removeAllListeners:kt,emit:Rt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*Tt.call(At),r=Math.floor(e),n=Math.floor(e%1*1e9);return t&&(r-=t[0],(n-=t[1])<0&&(r--,n+=1e9)),[r,n]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-Ot)/1e3}};jt="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t};var Ct=jt,Pt=/%[sdj%]/g;function Mt(t){if(!$t(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(It(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,i=n.length,o=String(t).replace(Pt,(function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),s=n[r];r<i;s=n[++r])Wt(s)||!Ht(s)?o+=" "+s:o+=" "+It(s);return o}function Bt(t,e){if(Gt(a.process))return function(){return Bt(t,e).apply(this,arguments)};if(!0===Lt.noDeprecation)return t;var r=!1;return function(){if(!r){if(Lt.throwDeprecation)throw new Error(e);Lt.traceDeprecation?console.trace(e):console.error(e),r=!0}return t.apply(this,arguments)}}var xt,Ut={};function It(t,e){var r={seen:[],stylize:Nt};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Yt(e)?r.showHidden=e:e&&function(t,e){if(!e||!Ht(e))return t;var r=Object.keys(e),n=r.length;for(;n--;)t[r[n]]=e[r[n]]}(r,e),Gt(r.showHidden)&&(r.showHidden=!1),Gt(r.depth)&&(r.depth=2),Gt(r.colors)&&(r.colors=!1),Gt(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=Dt),Ft(r,t,r.depth)}function Dt(t,e){var r=It.styles[e];return r?"["+It.colors[r][0]+"m"+t+"["+It.colors[r][1]+"m":t}function Nt(t,e){return t}function Ft(t,e,r){if(t.customInspect&&e&&Zt(e.inspect)&&e.inspect!==It&&(!e.constructor||e.constructor.prototype!==e)){var n=e.inspect(r,t);return $t(n)||(n=Ft(t,n,r)),n}var i=function(t,e){if(Gt(e))return t.stylize("undefined","undefined");if($t(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(n=e,"number"==typeof n)return t.stylize(""+e,"number");var n;if(Yt(e))return t.stylize(""+e,"boolean");if(Wt(e))return t.stylize("null","null")}(t,e);if(i)return i;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(e)),Kt(e)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return zt(e);if(0===o.length){if(Zt(e)){var a=e.name?": "+e.name:"";return t.stylize("[Function"+a+"]","special")}if(Jt(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Vt(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Kt(e))return zt(e)}var u,h,f="",c=!1,l=["{","}"];(u=e,Array.isArray(u)&&(c=!0,l=["[","]"]),Zt(e))&&(f=" [Function"+(e.name?": "+e.name:"")+"]");return Jt(e)&&(f=" "+RegExp.prototype.toString.call(e)),Vt(e)&&(f=" "+Date.prototype.toUTCString.call(e)),Kt(e)&&(f=" "+zt(e)),0!==o.length||c&&0!=e.length?r<0?Jt(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),h=c?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)Xt(e,String(s))?o.push(qt(t,e,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(qt(t,e,r,n,i,!0))})),o}(t,e,r,s,o):o.map((function(n){return qt(t,e,r,s,n,c)})),t.seen.pop(),function(t,e,r){var n=t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(h,f,l)):l[0]+f+l[1]}function zt(t){return"["+Error.prototype.toString.call(t)+"]"}function qt(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),Xt(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=Wt(r)?Ft(t,u.value,null):Ft(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),Gt(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function Yt(t){return"boolean"==typeof t}function Wt(t){return null===t}function $t(t){return"string"==typeof t}function Gt(t){return void 0===t}function Jt(t){return Ht(t)&&"[object RegExp]"===Qt(t)}function Ht(t){return"object"==typeof t&&null!==t}function Vt(t){return Ht(t)&&"[object Date]"===Qt(t)}function Kt(t){return Ht(t)&&("[object Error]"===Qt(t)||t instanceof Error)}function Zt(t){return"function"==typeof t}function Qt(t){return Object.prototype.toString.call(t)}function Xt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function te(){this.head=null,this.tail=null,this.length=0}It.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]},It.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},te.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},te.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},te.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},te.prototype.clear=function(){this.head=this.tail=null,this.length=0},te.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},te.prototype.concat=function(t){if(0===this.length)return _.alloc(0);if(1===this.length)return this.head.data;for(var e=_.allocUnsafe(t>>>0),r=this.head,n=0;r;)r.data.copy(e,n),n+=r.data.length,r=r.next;return e};var ee=_.isEncoding||function(t){switch(t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function re(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!ee(t))throw new Error("Unknown encoding: "+t)}(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=ie;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=oe;break;default:return void(this.write=ne)}this.charBuffer=new _(6),this.charReceived=0,this.charLength=0}function ne(t){return t.toString(this.encoding)}function ie(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function oe(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}re.prototype.write=function(t){for(var e="";this.charLength;){var r=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(t=t.slice(r,t.length),!((i=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,n),n-=this.charReceived);var i;n=(e+=t.toString(this.encoding,0,n)).length-1;if((i=e.charCodeAt(n))>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,n)}return e},re.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&r>>5==6){this.charLength=2;break}if(e<=2&&r>>4==14){this.charLength=3;break}if(e<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=e},re.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e},ue.ReadableState=ae;var se=function(t){if(Gt(xt)&&(xt=Lt.env.NODE_DEBUG||""),t=t.toUpperCase(),!Ut[t])if(new RegExp("\\b"+t+"\\b","i").test(xt)){Ut[t]=function(){var e=Mt.apply(null,arguments);console.error("%s %d: %s",t,0,e)}}else Ut[t]=function(){};return Ut[t]}("stream");function ae(t,e){t=t||{},this.objectMode=!!t.objectMode,e instanceof Ue&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=new te,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.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(this.decoder=new re(t.encoding),this.encoding=t.encoding)}function ue(t){if(!(this instanceof ue))return new ue(t);this._readableState=new ae(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),e.call(this)}function he(t,e,r,n,i){var o=function(t,e){var r=null;_.isBuffer(e)||"string"==typeof e||null==e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(e,r);if(o)t.emit("error",o);else if(null===r)e.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,le(t)}(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&i){var a=new Error("stream.unshift() after end event");t.emit("error",a)}else{var u;!e.decoder||i||n||(r=e.decoder.write(r),u=!e.objectMode&&0===r.length),i||(e.reading=!1),u||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&le(t))),function(t,e){e.readingMore||(e.readingMore=!0,yt(de,t,e))}(t,e)}else i||(e.reading=!1);return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(e)}Ct(ue,e),ue.prototype.push=function(t,e){var r=this._readableState;return r.objectMode||"string"!=typeof t||(e=e||r.defaultEncoding)!==r.encoding&&(t=_.from(t,e),e=""),he(this,r,t,e,!1)},ue.prototype.unshift=function(t){return he(this,this._readableState,t,"",!0)},ue.prototype.isPaused=function(){return!1===this._readableState.flowing},ue.prototype.setEncoding=function(t){return this._readableState.decoder=new re(t),this._readableState.encoding=t,this};var fe=8388608;function ce(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=fe?t=fe:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function le(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(se("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?yt(pe,t):pe(t))}function pe(t){se("emit readable"),t.emit("readable"),ve(t)}function de(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(se("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function ge(t){se("readable nexttick read 0"),t.read(0)}function ye(t,e){e.reading||(se("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),ve(t),e.flowing&&!e.reading&&t.read(0)}function ve(t){var e=t._readableState;for(se("flow",e.flowing);e.flowing&&null!==t.read(););}function be(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?function(t,e){var r=e.head,n=1,i=r.data;t-=i.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=_.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,s),0===(t-=s)){s===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function me(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,yt(we,e,t))}function we(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function _e(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Se(){}function Ee(t,e,r){this.chunk=t,this.encoding=e,this.callback=r,this.next=null}function ke(t,e){Object.defineProperty(this,"buffer",{get:Bt((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")}),t=t||{},this.objectMode=!!t.objectMode,e instanceof Ue&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===t.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?yt(i,n):i(n);t._writableState.errorEmitted=!0,t.emit("error",n)}(t,r,n,e,i);else{var o=je(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||Oe(t,r),n?yt(Te,t,r,o,i):Te(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pe(this)}function Re(t){if(!(this instanceof Re||this instanceof Ue))return new Re(t);this._writableState=new ke(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),e.call(this)}function Ae(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function Te(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),Ce(t,e)}function Oe(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0;r;)i[s]=r,r=r.next,s+=1;Ae(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new Pe(e)}else{for(;r;){var a=r.chunk,u=r.encoding,h=r.callback;if(Ae(t,e,!1,e.objectMode?1:a.length,a,u,h),r=r.next,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=r,e.bufferProcessing=!1}function je(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function Le(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function Ce(t,e){var r=je(e);return r&&(0===e.pendingcb?(Le(t,e),e.finished=!0,t.emit("finish")):Le(t,e)),r}function Pe(t){var e=this;this.next=null,this.entry=null,this.finish=function(r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}ue.prototype.read=function(t){se("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return se("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?me(this):le(this),null;if(0===(t=ce(t,e))&&e.ended)return 0===e.length&&me(this),null;var n,i=e.needReadable;return se("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&se("length less than watermark",i=!0),e.ended||e.reading?se("reading or ended",i=!1):i&&(se("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=ce(r,e))),null===(n=t>0?be(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&me(this)),null!==n&&this.emit("data",n),n},ue.prototype._read=function(t){this.emit("error",new Error("not implemented"))},ue.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,se("pipe count=%d opts=%j",n.pipesCount,e);var i=!e||!1!==e.end?s:h;function o(t){se("onunpipe"),t===r&&h()}function s(){se("onend"),t.end()}n.endEmitted?yt(i):r.once("end",i),t.on("unpipe",o);var a=function(t){return function(){var e=t._readableState;se("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,ve(t))}}(r);t.on("drain",a);var u=!1;function h(){se("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",a),t.removeListener("error",l),t.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",h),r.removeListener("data",c),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||a()}var f=!1;function c(e){se("ondata"),f=!1,!1!==t.write(e)||f||((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==_e(n.pipes,t))&&!u&&(se("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function l(e){var r;se("onerror",e),g(),t.removeListener("error",l),0===(r="error",t.listeners(r).length)&&t.emit("error",e)}function p(){t.removeListener("finish",d),g()}function d(){se("onfinish"),t.removeListener("close",p),g()}function g(){se("unpipe"),r.unpipe(t)}return r.on("data",c),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",l),t.once("close",p),t.once("finish",d),t.emit("pipe",r),n.flowing||(se("pipe resume"),r.resume()),t},ue.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this)),this;if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=_e(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this)),this},ue.prototype.on=function(t,r){var n=e.prototype.on.call(this,t,r);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&le(this):yt(ge,this))}return n},ue.prototype.addListener=ue.prototype.on,ue.prototype.resume=function(){var t=this._readableState;return t.flowing||(se("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,yt(ye,t,e))}(this,t)),this},ue.prototype.pause=function(){return se("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(se("pause"),this._readableState.flowing=!1,this.emit("pause")),this},ue.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;for(var i in t.on("end",(function(){if(se("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)})),t.on("data",(function(i){(se("wrapped data"),e.decoder&&(i=e.decoder.write(i)),e.objectMode&&null==i)||(e.objectMode||i&&i.length)&&(n.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));return function(t,e){for(var r=0,n=t.length;r<n;r++)e(t[r],r)}(["error","close","destroy","pause","resume"],(function(e){t.on(e,n.emit.bind(n,e))})),n._read=function(e){se("wrapped _read",e),r&&(r=!1,t.resume())},n},ue._fromList=be,Re.WritableState=ke,Ct(Re,e),ke.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},Re.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},Re.prototype.write=function(t,e,r){var n=this._writableState,i=!1;return"function"==typeof e&&(r=e,e=null),_.isBuffer(t)?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof r&&(r=Se),n.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),yt(e,r)}(this,r):function(t,e,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):_.isBuffer(r)||"string"==typeof r||void 0===r||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),yt(n,o),i=!1),i}(this,n,t,r)&&(n.pendingcb++,i=function(t,e,r,n,i){r=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=_.from(e,r));return e}(e,r,n),_.isBuffer(r)&&(n="buffer");var o=e.objectMode?1:r.length;e.length+=o;var s=e.length<e.highWaterMark;s||(e.needDrain=!0);if(e.writing||e.corked){var a=e.lastBufferedRequest;e.lastBufferedRequest=new Ee(r,n,i),a?a.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else Ae(t,e,!1,o,r,n,i);return s}(this,n,t,e,r)),i},Re.prototype.cork=function(){this._writableState.corked++},Re.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||Oe(this,t))},Re.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Re.prototype._write=function(t,e,r){r(new Error("not implemented"))},Re.prototype._writev=null,Re.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,Ce(t,e),r&&(e.finished?yt(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Ct(Ue,ue);for(var Me=Object.keys(Re.prototype),Be=0;Be<Me.length;Be++){var xe=Me[Be];Ue.prototype[xe]||(Ue.prototype[xe]=Re.prototype[xe])}function Ue(t){if(!(this instanceof Ue))return new Ue(t);ue.call(this,t),Re.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",Ie)}function Ie(){this.allowHalfOpen||this._writableState.ended||yt(De,this)}function De(t){t.end()}function Ne(t){this.afterTransform=function(e,r){return function(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!=r&&t.push(r);i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}(t,e,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function Fe(t){if(!(this instanceof Fe))return new Fe(t);Ue.call(this,t),this._transformState=new Ne(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(t){ze(e,t)})):ze(e)}))}function ze(t,e){if(e)return t.emit("error",e);var r=t._writableState,n=t._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 t.push(null)}function qe(t){if(!(this instanceof qe))return new qe(t);Fe.call(this,t)}function Ye(){e.call(this)}Ct(Fe,Ue),Fe.prototype.push=function(t,e){return this._transformState.needTransform=!1,Ue.prototype.push.call(this,t,e)},Fe.prototype._transform=function(t,e,r){throw new Error("Not implemented")},Fe.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},Fe.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},Ct(qe,Fe),qe.prototype._transform=function(t,e,r){r(null,t)},Ct(Ye,e),Ye.Readable=ue,Ye.Writable=Re,Ye.Duplex=Ue,Ye.Transform=Fe,Ye.PassThrough=qe,Ye.Stream=Ye,Ye.prototype.pipe=function(t,r){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||r&&!1===r.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(f(),0===e.listenerCount(this,"error"))throw t}function f(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",h),t.removeListener("error",h),n.removeListener("end",f),n.removeListener("close",f),t.removeListener("close",f)}return n.on("error",h),t.on("error",h),n.on("end",f),n.on("close",f),t.on("close",f),t.emit("pipe",n),t};var We={},$e={get exports(){return We},set exports(t){We=t}};"function"==typeof Object.create?$e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:$e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}};let Ge=He();function Je(t,e){("object"!=typeof t||Array.isArray(t))&&(e=t,t={});let r=new Ge(t);var n;return r._from=Array.isArray(e)?(n=(n=e).slice(),function(t,e){let r=null,i=n.length?n.shift():null;i instanceof Error&&(r=i,i=null),e(r,i)}):e||Ve,r}function He(t,e){function r(e){if(!(this instanceof r))return new r(e);this._reading=!1,this._callback=function(t,e){if(n.destroyed)return;if(t)return n.destroy(t);if(null===e)return n.push(null);n._reading=!1,n.push(e)&&n._read(i)},this.destroyed=!1,ue.call(this,e||t);let n=this,i=this._readableState.highWaterMark}return"function"==typeof t&&(e=t,t={}),t=Ke(t),We(r,ue),r.prototype._from=e||Ve,r.prototype._read=function(t){this._reading||this.destroyed||(this._reading=!0,this._from(t,this._callback))},r.prototype.destroy=function(t){if(this.destroyed)return;this.destroyed=!0;let e=this;process.nextTick((function(){t&&e.emit("error",t),e.emit("close")}))},r}function Ve(){}function Ke(t){return t=t||{}}Je.ctor=He,Je.obj=function(t,e){return("function"==typeof t||Array.isArray(t))&&(e=t,t={}),(t=Ke(t)).objectMode=!0,t.highWaterMark=16,Je(t,e)};var Ze,Qe=1,Xe={},tr=!1,er=a.document;function rr(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r<e.length;r++)e[r]=arguments[r+1];var n={callback:t,args:e};return Xe[Qe]=n,Ze(Qe),Qe++}function nr(t){if(tr)setTimeout(nr,0,t);else{var e=Xe[t];if(e){tr=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(void 0,r)}}(e)}finally{!function(t){delete Xe[t]}(t),tr=!1}}}}var ir,or,sr,ar,ur=Object.getPrototypeOf&&Object.getPrototypeOf(a);function hr(t){let e,r=Object.prototype.toString.call(t);if(e="[object Promise]"===r,e)return!0;if("[object Function]"!==r)return!1;try{e="function"!=typeof t.subscribe&&"function"==typeof t.then}catch(t){}return e}function fr(t){let e,r,n;function i(i){((t=i)instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!_.isBuffer(t))&&(t=_.from(t)),e=hr(t)?t:null;const o=!e&&t[Symbol.iterator]&&"string"!=typeof t&&!_.isBuffer(t);r=o?t[Symbol.iterator]():null;const s=!e&&t[Symbol.asyncIterator];n=s?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),i(t),Je((function o(s,a){if(e)return void(async()=>{try{await i(await e),o.call(this,s,a)}catch(t){a(t)}})();if(r){const t=r.next();return void rr(a,null,t.done?null:t.value)}if(n)return void(async()=>{try{const t=await n.next();rr(a,null,t.done?null:t.value)}catch(t){rr(a,t)}})();if(0===t.length)return void rr(a,null,null);const u=t.slice(0,s);t=t.slice(s),rr(a,null,u)}))}ur=ur&&ur.setTimeout?ur:a,"[object process]"==={}.toString.call(a.process)?Ze=function(t){Lt.nextTick((function(){nr(t)}))}:!function(){if(a.postMessage&&!a.importScripts){var t=!0,e=a.onmessage;return a.onmessage=function(){t=!1},a.postMessage("","*"),a.onmessage=e,t}}()?a.MessageChannel?((or=new MessageChannel).port1.onmessage=function(t){nr(t.data)},Ze=function(t){or.port2.postMessage(t)}):er&&"onreadystatechange"in er.createElement("script")?(ir=er.documentElement,Ze=function(t){var e=er.createElement("script");e.onreadystatechange=function(){nr(t),e.onreadystatechange=null,ir.removeChild(e),e=null},ir.appendChild(e)}):Ze=function(t){setTimeout(nr,0,t)}:(sr="setImmediate$"+Math.random()+"$",ar=function(t){t.source===a&&"string"==typeof t.data&&0===t.data.indexOf(sr)&&nr(+t.data.slice(sr.length))},a.addEventListener?a.addEventListener("message",ar,!1):a.attachEvent("onmessage",ar),Ze=function(t){a.postMessage(sr+t,"*")}),fr.object=t=>{let e,r,n;function i(i){e=hr(t=i)?t:null,r=!e&&t[Symbol.iterator]?t[Symbol.iterator]():null,n=!e&&t[Symbol.asyncIterator]?t[Symbol.asyncIterator]():null}return Array.isArray(t)&&(t=t.slice()),i(t),Je.obj((function o(s,a){if(e)(async()=>{try{await i(await e),o.call(this,s,a)}catch(t){a(t)}})();else if(r){const t=r.next();rr(a,null,t.done?null:t.value)}else n?(async()=>{try{const t=await n.next();rr(a,null,t.done?null:t.value)}catch(t){rr(a,t)}})():(this.push(t),rr(a,null,null))}))};var cr={},lr=cr.LEFT_BRACE=1,pr=cr.RIGHT_BRACE=2,dr=cr.LEFT_BRACKET=3,gr=cr.RIGHT_BRACKET=4,yr=cr.COLON=5,vr=cr.COMMA=6,br=cr.TRUE=7,mr=cr.FALSE=8,wr=cr.NULL=9,_r=cr.STRING=10,Sr=cr.NUMBER=11,Er=cr.START=17,kr=cr.STOP=18,Rr=cr.TRUE1=33,Ar=cr.TRUE2=34,Tr=cr.TRUE3=35,Or=cr.FALSE1=49,jr=cr.FALSE2=50,Lr=cr.FALSE3=51,Cr=cr.FALSE4=52,Pr=cr.NULL1=65,Mr=cr.NULL2=66,Br=cr.NULL3=67,xr=cr.NUMBER1=81,Ur=cr.NUMBER3=83,Ir=cr.STRING1=97,Dr=cr.STRING2=98,Nr=cr.STRING3=99,Fr=cr.STRING4=100,zr=cr.STRING5=101,qr=cr.STRING6=102,Yr=cr.VALUE=113,Wr=cr.KEY=114,$r=cr.OBJECT=129,Gr=cr.ARRAY=130,Jr="\\".charCodeAt(0),Hr="/".charCodeAt(0),Vr="\b".charCodeAt(0),Kr="\f".charCodeAt(0),Zr="\n".charCodeAt(0),Qr="\r".charCodeAt(0),Xr="\t".charCodeAt(0),tn=65536;function en(){this.tState=Er,this.value=void 0,this.string=void 0,this.stringBuffer=_.alloc?_.alloc(tn):new _(tn),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Yr,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new _(2),3:new _(3),4:new _(4)},this.offset=-1}en.toknam=function(t){for(var e=Object.keys(cr),r=0,n=e.length;r<n;r++){var i=e[r];if(cr[i]===t)return i}return t&&"0x"+t.toString(16)};var rn=en.prototype;rn.onError=function(t){throw t},rn.charError=function(t,e){this.tState=kr,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(t[e]))+" at position "+e+" in state "+en.toknam(this.tState)))},rn.appendStringChar=function(t){this.stringBufferOffset>=tn&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=t},rn.appendStringBuf=function(t,e,r){var n=t.length;"number"==typeof e&&(n="number"==typeof r?r<0?t.length-e+r:r-e:t.length-e),n<0&&(n=0),this.stringBufferOffset+n>tn&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),t.copy(this.stringBuffer,this.stringBufferOffset,e,r),this.stringBufferOffset+=n},rn.write=function(t){var e;"string"==typeof t&&(t=new _(t));for(var r=0,n=t.length;r<n;r++)if(this.tState===Er){if(e=t[r],this.offset++,123===e)this.onToken(lr,"{");else if(125===e)this.onToken(pr,"}");else if(91===e)this.onToken(dr,"[");else if(93===e)this.onToken(gr,"]");else if(58===e)this.onToken(yr,":");else if(44===e)this.onToken(vr,",");else if(116===e)this.tState=Rr;else if(102===e)this.tState=Or;else if(110===e)this.tState=Pr;else if(34===e)this.string="",this.stringBufferOffset=0,this.tState=Ir;else if(45===e)this.string="-",this.tState=xr;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=Ur;else if(32!==e&&9!==e&&10!==e&&13!==e)return this.charError(t,r)}else if(this.tState===Ir)if(e=t[r],this.bytes_remaining>0){for(var i=0;i<this.bytes_remaining;i++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+i]=t[i];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,r=r+i-1}else if(0===this.bytes_remaining&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+r+" in state "+en.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+r>t.length){for(var o=0;o<=t.length-1-r;o++)this.temp_buffs[this.bytes_in_sequence][o]=t[r+o];this.bytes_remaining=r+this.bytes_in_sequence-t.length,r=t.length-1}else this.appendStringBuf(t,r,r+this.bytes_in_sequence),r=r+this.bytes_in_sequence-1}else if(34===e)this.tState=Er,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(_r,this.string),this.offset+=_.byteLength(this.string,"utf8")+1,this.string=void 0;else if(92===e)this.tState=Dr;else{if(!(e>=32))return this.charError(t,r);this.appendStringChar(e)}else if(this.tState===Dr)if(34===(e=t[r]))this.appendStringChar(e),this.tState=Ir;else if(92===e)this.appendStringChar(Jr),this.tState=Ir;else if(47===e)this.appendStringChar(Hr),this.tState=Ir;else if(98===e)this.appendStringChar(Vr),this.tState=Ir;else if(102===e)this.appendStringChar(Kr),this.tState=Ir;else if(110===e)this.appendStringChar(Zr),this.tState=Ir;else if(114===e)this.appendStringChar(Qr),this.tState=Ir;else if(116===e)this.appendStringChar(Xr),this.tState=Ir;else{if(117!==e)return this.charError(t,r);this.unicode="",this.tState=Nr}else if(this.tState===Nr||this.tState===Fr||this.tState===zr||this.tState===qr){if(!((e=t[r])>=48&&e<64||e>64&&e<=70||e>96&&e<=102))return this.charError(t,r);if(this.unicode+=String.fromCharCode(e),this.tState++===qr){var s=parseInt(this.unicode,16);this.unicode=void 0,void 0!==this.highSurrogate&&s>=56320&&s<57344?(this.appendStringBuf(new _(String.fromCharCode(this.highSurrogate,s))),this.highSurrogate=void 0):void 0===this.highSurrogate&&s>=55296&&s<56320?this.highSurrogate=s:(void 0!==this.highSurrogate&&(this.appendStringBuf(new _(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new _(String.fromCharCode(s)))),this.tState=Ir}}else if(this.tState===xr||this.tState===Ur)switch(e=t[r]){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=Ur;break;default:this.tState=Er;var a=Number(this.string);if(isNaN(a))return this.charError(t,r);this.string.match(/[0-9]+/)==this.string&&a.toString()!=this.string?this.onToken(_r,this.string):this.onToken(Sr,a),this.offset+=this.string.length-1,this.string=void 0,r--}else if(this.tState===Rr){if(114!==t[r])return this.charError(t,r);this.tState=Ar}else if(this.tState===Ar){if(117!==t[r])return this.charError(t,r);this.tState=Tr}else if(this.tState===Tr){if(101!==t[r])return this.charError(t,r);this.tState=Er,this.onToken(br,!0),this.offset+=3}else if(this.tState===Or){if(97!==t[r])return this.charError(t,r);this.tState=jr}else if(this.tState===jr){if(108!==t[r])return this.charError(t,r);this.tState=Lr}else if(this.tState===Lr){if(115!==t[r])return this.charError(t,r);this.tState=Cr}else if(this.tState===Cr){if(101!==t[r])return this.charError(t,r);this.tState=Er,this.onToken(mr,!1),this.offset+=4}else if(this.tState===Pr){if(117!==t[r])return this.charError(t,r);this.tState=Mr}else if(this.tState===Mr){if(108!==t[r])return this.charError(t,r);this.tState=Br}else if(this.tState===Br){if(108!==t[r])return this.charError(t,r);this.tState=Er,this.onToken(wr,null),this.offset+=3}},rn.onToken=function(t,e){},rn.parseError=function(t,e){this.tState=kr,this.onError(new Error("Unexpected "+en.toknam(t)+(e?"("+JSON.stringify(e)+")":"")+" in state "+en.toknam(this.state)))},rn.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},rn.pop=function(){var t=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(t),this.mode||(this.state=Yr)},rn.emit=function(t){this.mode&&(this.state=vr),this.onValue(t)},rn.onValue=function(t){},rn.onToken=function(t,e){if(this.state===Yr)if(t===_r||t===Sr||t===br||t===mr||t===wr)this.value&&(this.value[this.key]=e),this.emit(e);else if(t===lr)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Wr,this.mode=$r;else if(t===dr)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Gr,this.state=Yr;else if(t===pr){if(this.mode!==$r)return this.parseError(t,e);this.pop()}else{if(t!==gr)return this.parseError(t,e);if(this.mode!==Gr)return this.parseError(t,e);this.pop()}else if(this.state===Wr)if(t===_r)this.key=e,this.state=yr;else{if(t!==pr)return this.parseError(t,e);this.pop()}else if(this.state===yr){if(t!==yr)return this.parseError(t,e);this.state=Yr}else{if(this.state!==vr)return this.parseError(t,e);if(t===vr)this.mode===Gr?(this.key++,this.state=Yr):this.mode===$r&&(this.state=Wr);else{if(!(t===gr&&this.mode===Gr||t===pr&&this.mode===$r))return this.parseError(t,e);this.pop()}}},en.C=cr;var nn=en;function on(t,e,r){t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};let n=!1,i=!1,o=[],s=!1,a=new Ye;function u(){for(;o.length&&!a.paused;){let t=o.shift();if(null===t)return a.emit("end");a.emit("data",t)}}return a.readable=a.writable=!0,a.paused=!1,a.autoDestroy=!(r&&!1===r.autoDestroy),a.write=function(e){return t.call(this,e),!a.paused},a.queue=a.push=function(t){return s||(null===t&&(s=!0),o.push(t),u()),a},a.on("end",(function(){a.readable=!1,!a.writable&&a.autoDestroy&&Lt.nextTick((function(){a.destroy()}))})),a.end=function(t){if(!n)return n=!0,arguments.length&&a.write(t),a.writable=!1,e.call(a),!a.readable&&a.autoDestroy&&a.destroy(),a},a.destroy=function(){if(!i)return i=!0,n=!0,o.length=0,a.writable=a.readable=!1,a.emit("close"),a},a.pause=function(){if(!a.paused)return a.paused=!0,a},a.resume=function(){return a.paused&&(a.paused=!1,a.emit("resume")),u(),a.paused||a.emit("drain"),a},a}on.through=on;let sn={parse:function(t,e){let r,n;function i(t,e){return"string"==typeof t?e===t:t&&"function"==typeof t.exec?t.exec(e):"boolean"==typeof t||"object"==typeof t?t:"function"==typeof t&&t(e)}let o=new nn,s=on((function(t){"string"==typeof t&&(t=_.from(t)),o.write(t)}),(function(t){t&&s.write(t),r&&s.emit("header",r),n&&s.emit("footer",n),s.queue(null)}));function a(t,e){!1!==r&&(r=r||{},r[t]=e),!1!==n&&!1===r&&(n=n||{},n[t]=e)}return"string"==typeof t&&(t=t.split(".").map((function(t){return"$*"===t?{emitKey:!0}:"*"===t||(""===t?{recurse:!0}:t)}))),t&&t.length||(t=null),o.onValue=function(n){if(this.root||(s.root=n),!t)return;let o=0,u=0,h=!1,f=!1;for(;o<t.length;){let e,r=t[o];if(u++,r&&!r.recurse){if(e=u===this.stack.length?this:this.stack[u],!e)return;if(!i(r,e.key))return void a(e.key,n);h=!!r.emitKey,f=!!r.emitPath,o++}else{o++;let r=t[o];if(!r)return;for(;;){if(e=u===this.stack.length?this:this.stack[u],!e)return;if(i(r,e.key)){o++,Object.isFrozen(this.stack[u])||(this.stack[u].value=null);break}a(e.key,n),u++}}}if(r&&(s.emit("header",r),r=!1),u!==this.stack.length)return;let c=this.stack.slice(1).map((function(t){return t.key})).concat([this.key]),l=n;null!=l&&null!=(l=e?e(l,c):l)&&((h||f)&&(l={value:l},h&&(l.key=this.key),f&&(l.path=c)),s.queue(l)),this.value&&delete this.value[this.key];for(let t in this.stack)Object.isFrozen(this.stack[t])||(this.stack[t].value=null)},o._onToken=o.onToken,o.onToken=function(e,r){o._onToken(e,r),0===this.stack.length&&s.root&&(t||s.queue(s.root),s.root=null)},o.onError=function(t){t.message.indexOf("at position")>-1&&(t.message="Invalid JSON ("+t.message+")"),s.emit("error",t)},s}},an=function(t,e){return an=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},an(t,e)};let un,hn=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,fn={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function cn(t){return t?"function"==typeof t.then?un.Promise:function(t){return"function"==typeof t.read&&"function"==typeof t.pause&&"function"==typeof t.resume&&"function"==typeof t.pipe&&"function"==typeof t.once&&"function"==typeof t.removeListener}(t)?t._readableState.objectMode?un.ReadableObject:un.ReadableString:Array.isArray(t)?un.Array:"object"==typeof t||t instanceof Object?un.Object:un.Primitive:un.Primitive}!function(t){t[t.Array=0]="Array",t[t.Object=1]="Object",t[t.ReadableString=2]="ReadableString",t[t.ReadableObject=3]="ReadableObject",t[t.Primitive=4]="Primitive",t[t.Promise=5]="Promise"}(un||(un={}));let ln=[];ln[un.Array]="[",ln[un.Object]="{",ln[un.ReadableString]='"',ln[un.ReadableObject]="[";let pn=[];pn[un.Array]="]",pn[un.Object]="}",pn[un.ReadableString]='"',pn[un.ReadableObject]="]";let dn=[];for(let t=0,e=Object.entries(un);t<e.length;t++){let r=e[t],n=r[0],i=r[1];"number"==typeof i&&(dn[i]="process"+n)}function gn(t){return t.replace(hn,(function(t){let e=fn[t];return"string"==typeof e?e:"\\u"+t.charCodeAt(0).toString(16).padStart(4,"0")}))}function yn(t){return'"'+gn(t)+'"'}function vn(t,e){let r=t.read(e);return null===r?new Promise((function(e,r){let n=function(){return e(null)};t.once("end",n),t.once("error",r),t.once("readable",(function(){t.removeListener("end",n),t.removeListener("error",r),e(t.read())}))})):Promise.resolve(r)}function bn(t){return t.then((function(t){return cn(t)===un.Promise?bn(t):t}))}let mn=function(t){function e(e,r,n,i){void 0===i&&(i=!1);let o=t.call(this)||this;o.cycle=i,o.stack=[],o.depth=0,o.pushCalled=!1,o.end=!1,o.isReading=!1,o.readMore=!1;let s=typeof n;return"string"!==s&&"number"!==s||(o.gap=Number.isFinite(n)?" ".repeat(n):n),Object.assign(o,{visited:i?new WeakMap:new WeakSet,replacerFunction:r instanceof Function&&r,replacerArray:Array.isArray(r)&&r}),r instanceof Function&&(o.replacerFunction=r),Array.isArray(r)&&(o.replacerArray=r),o.addToStack(e),o}return function(t,e){function r(){this.constructor=t}an(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.cycler=function(t,e){let r=this.visited.get(e);if(r)return{$ref:r};let n=this.path();return void 0!==t&&n.push(t),n=n.map((function(t){return"["+(Number.isInteger(t)?t:yn(t))+"]"})),this.visited.set(e,n.length?"$"+n.join(""):"$"),e},e.prototype.addToStack=function(t,e,r,n){let i,o,s=this,a=t;this.replacerFunction&&(a=this.replacerFunction(e||r,a,this)),a&&a.toJSON instanceof Function&&(a=a.toJSON()),(a instanceof Function||"symbol"==typeof t)&&(a=void 0),void 0!==e&&this.replacerArray&&(this.replacerArray.includes(e)||(a=void 0));let u=cn(a);if((n&&n.type===un.Array||void 0!==a)&&u!==un.Promise&&(n&&!n.first&&this._push(","),n&&(n.first=!1)),void 0!==a&&u!==un.Promise&&e&&(this.gap?this._push("\n"+this.gap.repeat(this.depth)+'"'+gn(e)+'": '):this._push('"'+gn(e)+'":')),u!==un.Primitive)if(this.cycle)a=this.cycler(e||r,a),u=cn(a);else{if(this.visited.has(a))throw Object.assign(new Error("Converting circular structure to JSON"),{realValue:a,key:e||r});this.visited.add(a)}!e&&r>-1&&this.depth&&this.gap&&this._push("\n"+this.gap.repeat(this.depth));let h=ln[u];h&&this._push(h);let f={key:e,index:r,type:u,parent:n,value:a,first:!0};return u===un.Object?(this.depth+=1,f.unread=Object.keys(a),f.isEmpty=!f.unread.length):u===un.Array?(this.depth+=1,f.unread=a.length,f.arrayLength=f.unread,f.isEmpty=!f.unread):u!==un.ReadableString&&u!==un.ReadableObject||(this.depth+=1,a.readableEnded||(null===(i=a._readableState)||void 0===i?void 0:i.endEmitted)?this.emit("error",new Error("Readable Stream has ended before it was serialized. All stream data have been lost"),a,e||r):(a.readableFlowing||(null===(o=a._readableState)||void 0===o?void 0:o.flowing))&&(a.pause(),this.emit("error",new Error("Readable Stream is in flowing mode, data may have been lost. Trying to pause stream."),a,e||r)),f.readCount=0,a.once("end",(function(){f.end=!0,s.__read()})),a.once("error",(function(t){s.error=!0,s.emit("error",t)}))),this.stack.unshift(f),f},e.prototype.removeFromStack=function(t){let e=t.type,r=e===un.Object||e===un.Array||e===un.ReadableString||e===un.ReadableObject;e!==un.Primitive&&(this.cycle||this.visited.delete(t.value),r&&(this.depth-=1));let n=pn[e];r&&!t.isEmpty&&this.gap&&this._push("\n"+this.gap.repeat(this.depth)),n&&this._push(n);let i=this.stack.indexOf(t);this.stack.splice(i,1)},e.prototype._push=function(t){this.pushCalled=!0,this.push(t)},e.prototype.processReadableObject=function(t,e){let r=this;if(!t.end)return vn(t.value,e).then((function(e){null!==e&&(t.first||r._push(","),t.first=!1,r.addToStack(e,void 0,t.readCount),t.readCount+=1)}));this.removeFromStack(t)},e.prototype.processObject=function(t){if(!t.unread.length)return void this.removeFromStack(t);let e=t.unread.shift(),r=t.value[e];this.addToStack(r,e,void 0,t)},e.prototype.processArray=function(t){let e=t.unread;if(!e)return void this.removeFromStack(t);let r=t.arrayLength-e,n=t.value[r];t.unread-=1,this.addToStack(n,void 0,r,t)},e.prototype.processPrimitive=function(t){if(void 0!==t.value){let e,r=typeof t.value;switch(r){case"string":e=yn(t.value);break;case"number":e=Number.isFinite(t.value)?String(t.value):"null";break;case"boolean":e=String(t.value);break;case"object":t.value||(e="null");break;default:throw Object.assign(new Error('Unknown type "'+r+'". Please file an issue!'),{value:t.value})}this._push(e)}else!this.stack[1]||this.stack[1].type!==un.Array&&this.stack[1].type!==un.ReadableObject?t.addSeparatorAfterEnd=!1:this._push("null");this.removeFromStack(t)},e.prototype.processReadableString=function(t,e){let r=this;if(!t.end)return vn(t.value,e).then((function(t){t&&r._push(gn(t.toString()))}));this.removeFromStack(t)},e.prototype.processPromise=function(t){let e=this;return bn(t.value).then((function(r){e.removeFromStack(t),e.addToStack(r,t.key,t.index,t.parent)}))},e.prototype.processStackTopItem=function(t){let e,r=this,n=this.stack[0];if(!n||this.error)return Promise.resolve();try{e=this[dn[n.type]](n,t)}catch(t){return Promise.reject(t)}return Promise.resolve(e).then((function(){0===r.stack.length&&(r.end=!0,r._push(null))}))},e.prototype.__read=function(t){let e=this;if(!this.isReading&&!this.error)return this.isReading=!0,this.readMore=!1,this.processStackTopItem(t).then((function(){!e.end&&!e.error&&(e.readMore||!e.pushCalled)?rr((function(){e.isReading=!1,e.__read()})):e.isReading=!1})).catch((function(t){e.error=!0,e.emit("error",t)}));this.readMore=!0},e.prototype._read=function(t){this.pushCalled=!1,this.__read(t)},e.prototype.path=function(){return this.stack.map((function(t){let e=t.key,r=t.index;return e||r})).filter((function(t){return t||t>-1})).reverse()},e}(ue);var wn=Array.isArray,_n="object"==typeof a&&a&&a.Object===Object&&a,Sn="object"==typeof self&&self&&self.Object===Object&&self,En=_n||Sn||Function("return this")(),kn=En.Symbol,Rn=Object.prototype,An=Rn.hasOwnProperty,Tn=Rn.toString,On=kn?kn.toStringTag:void 0;var jn=Object.prototype.toString;var Ln="[object Null]",Cn="[object Undefined]",Pn=kn?kn.toStringTag:void 0;function Mn(t){return null==t?void 0===t?Cn:Ln:Pn&&Pn in Object(t)?function(t){var e=An.call(t,On),r=t[On];try{t[On]=void 0;var n=!0}catch(t){}var i=Tn.call(t);return n&&(e?t[On]=r:delete t[On]),i}(t):function(t){return jn.call(t)}(t)}function Bn(t){return null!=t&&"object"==typeof t}var xn="[object Symbol]";function Un(t){return"symbol"==typeof t||Bn(t)&&Mn(t)==xn}var In=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/;function Nn(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Fn="[object AsyncFunction]",zn="[object Function]",qn="[object GeneratorFunction]",Yn="[object Proxy]";var Wn,$n=En["__core-js_shared__"],Gn=(Wn=/[^.]+$/.exec($n&&$n.keys&&$n.keys.IE_PROTO||""))?"Symbol(src)_1."+Wn:"";var Jn=Function.prototype.toString;var Hn=/^\[object .+?Constructor\]$/,Vn=Function.prototype,Kn=Object.prototype,Zn=Vn.toString,Qn=Kn.hasOwnProperty,Xn=RegExp("^"+Zn.call(Qn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ti(t){if(!Nn(t)||(e=t,Gn&&Gn in e))return!1;var e,r=function(t){if(!Nn(t))return!1;var e=Mn(t);return e==zn||e==qn||e==Fn||e==Yn}(t)?Xn:Hn;return r.test(function(t){if(null!=t){try{return Jn.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function ei(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return ti(r)?r:void 0}var ri=ei(Object,"create");var ni=Object.prototype.hasOwnProperty;var ii=Object.prototype.hasOwnProperty;function oi(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function si(t,e){for(var r,n,i=t.length;i--;)if((r=t[i][0])===(n=e)||r!=r&&n!=n)return i;return-1}oi.prototype.clear=function(){this.__data__=ri?ri(null):{},this.size=0},oi.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},oi.prototype.get=function(t){var e=this.__data__;if(ri){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ni.call(e,t)?e[t]:void 0},oi.prototype.has=function(t){var e=this.__data__;return ri?void 0!==e[t]:ii.call(e,t)},oi.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ri&&void 0===e?"__lodash_hash_undefined__":e,this};var ai=Array.prototype.splice;function ui(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ui.prototype.clear=function(){this.__data__=[],this.size=0},ui.prototype.delete=function(t){var e=this.__data__,r=si(e,t);return!(r<0)&&(r==e.length-1?e.pop():ai.call(e,r,1),--this.size,!0)},ui.prototype.get=function(t){var e=this.__data__,r=si(e,t);return r<0?void 0:e[r][1]},ui.prototype.has=function(t){return si(this.__data__,t)>-1},ui.prototype.set=function(t,e){var r=this.__data__,n=si(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var hi=ei(En,"Map");function fi(t,e){var r,n,i=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof e?"string":"hash"]:i.map}function ci(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ci.prototype.clear=function(){this.size=0,this.__data__={hash:new oi,map:new(hi||ui),string:new oi}},ci.prototype.delete=function(t){var e=fi(this,t).delete(t);return this.size-=e?1:0,e},ci.prototype.get=function(t){return fi(this,t).get(t)},ci.prototype.has=function(t){return fi(this,t).has(t)},ci.prototype.set=function(t,e){var r=fi(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var li="Expected a function";function pi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(li);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=t.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(pi.Cache||ci),r}pi.Cache=ci;var di,gi,yi,vi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/\\(\\)?/g,mi=(di=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(vi,(function(t,r,n,i){e.push(n?i.replace(bi,"$1"):r||t)})),e},gi=pi(di,(function(t){return 500===yi.size&&yi.clear(),t})),yi=gi.cache,gi),wi=mi;var _i=1/0,Si=kn?kn.prototype:void 0,Ei=Si?Si.toString:void 0;function ki(t){if("string"==typeof t)return t;if(wn(t))return function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}(t,ki)+"";if(Un(t))return Ei?Ei.call(t):"";var e=t+"";return"0"==e&&1/t==-_i?"-0":e}function Ri(t,e){return wn(t)?t:function(t,e){if(wn(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Un(t))||Dn.test(t)||!In.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:wi(function(t){return null==t?"":ki(t)}(t))}var Ai=1/0;function Ti(t){if("string"==typeof t||Un(t))return t;var e=t+"";return"0"==e&&1/t==-Ai?"-0":e}function Oi(t,e,r){var n=null==t?void 0:function(t,e){for(var r=0,n=(e=Ri(e,t)).length;null!=t&&r<n;)t=t[Ti(e[r++])];return r&&r==n?t:void 0}(t,e);return void 0===n?r:n}var ji="[object Number]";function Li(t){return"[object String]"===Object.prototype.toString.call(t)}function Ci(t){return!(!Li(t)||""===t)}function Pi(t){return"[object Array]"===Object.prototype.toString.call(t)}function Mi(t){return"[object Undefined]"===Object.prototype.toString.call(t)}function Bi(t){return"[object Object]"===Object.prototype.toString.call(t)}function xi(t){return!(!Li(t)||""!==t)}function Ui(t){return!!Mi(t)||(!!function(t){return"[object Null]"===Object.prototype.toString.call(t)}(t)||(!!function(t){if(Bi(t)){for(let e in t)return!1;return!0}return!1}(t)||(!!xi(t)||(!!function(t){return!!Pi(t)&&0===t.length}(t)||!!function(t){return t!=t}(t)))))}function Ii(){let t,e,r=new Promise((function(){t=arguments[0],e=arguments[1]}));return r.resolve=t,r.reject=e,r}let Di={parse:async function(t){if(!Ci(t))return{};let e={};try{e=JSON.parse(t)}catch(t){e={}}return e},parseByStream:function(t){let e={};if("null"===t)return null;if(""===t)return{};let r="__system__",n=`{"${r}":${t}}`,i=Ii(),o=fr(n),s=sn.parse("$*");return s.on("data",(function(t){e[t.key]=t.value})),s.on("end",(function(){let t=Oi(e,r);i.resolve(t)})),s.on("error",(function(t){i.reject(t)})),o.pipe(s),i},createParseStream:function(t){return Ci(t)||function(t){return!(!Pi(t)||0===t.length||1===t.length&&Ui(t[0]))}(t)||(t="$*"),sn.parse(t)},stringify:async function(t){if(Mi(t))return"";let e="";try{e=JSON.stringify(t)}catch(t){e=""}return e},stringifyByStream:function(t){let e="";if(Mi(t))return"";if(null===t)return"null";if(xi(t))return'""';if("number"==typeof(r=t)||Bn(r)&&Mn(r)==ji)return`${t}`;var r;if(Li(t))return`"${t}"`;let n=Ii(),i=new mn(t,null,null,!1);return i.on("data",(function(t){e+=t})),i.on("end",(function(){n.resolve(e)})),i.on("error",(function(t){n.reject(t)})),n},createStringifyStream:function(t){if(!Bi(t)&&!Pi(t))throw new Error("data is not object or array");return new mn(t,null,null,!1)}};return Di}));
|
|
7
7
|
//# sourceMappingURL=w-json-stream.umd.js.map
|