-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathAddressIndexWorker.20a4ba635ef405b075b7.worker.js
More file actions
2 lines (2 loc) · 494 KB
/
AddressIndexWorker.20a4ba635ef405b075b7.worker.js
File metadata and controls
2 lines (2 loc) · 494 KB
1
2
/*! For license information please see AddressIndexWorker.20a4ba635ef405b075b7.worker.js.LICENSE.txt */
(()=>{var t={4(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";function t(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function e(t){return!0===(t&&t.__isLong__)}t.prototype.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=e;var r={},n={};function i(t,e){var i,o,s;return e?(s=0<=(t>>>=0)&&t<256)&&(o=n[t])?o:(i=a(t,(0|t)<0?-1:0,!0),s&&(n[t]=i),i):(s=-128<=(t|=0)&&t<128)&&(o=r[t])?o:(i=a(t,t<0?-1:0,!1),s&&(r[t]=i),i)}function o(t,e){if(isNaN(t)||!isFinite(t))return e?y:d;if(e){if(t<0)return y;if(t>=l)return m}else{if(t<=-h)return w;if(t+1>=h)return v}return t<0?o(-t,e).neg():a(t%c|0,t/c|0,e)}function a(e,r,n){return new t(e,r,n)}t.fromInt=i,t.fromNumber=o,t.fromBits=a;var s=Math.pow;function u(t,e,r){if(0===t.length)throw Error("empty string");if("NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return d;if("number"==typeof e?(r=e,e=!1):e=!!e,(r=r||10)<2||36<r)throw RangeError("radix");var n;if((n=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===n)return u(t.substring(1),e,r).neg();for(var i=o(s(r,8)),a=d,f=0;f<t.length;f+=8){var c=Math.min(8,t.length-f),l=parseInt(t.substring(f,f+c),r);if(c<8){var h=o(s(r,c));a=a.mul(h).add(o(l))}else a=(a=a.mul(i)).add(o(l))}return a.unsigned=e,a}function f(e){return e instanceof t?e:"number"==typeof e?o(e):"string"==typeof e?u(e):a(e.low,e.high,e.unsigned)}t.fromString=u,t.fromValue=f;var c=4294967296,l=c*c,h=l/2,p=i(1<<24),d=i(0);t.ZERO=d;var y=i(0,!0);t.UZERO=y;var _=i(1);t.ONE=_;var g=i(1,!0);t.UONE=g;var b=i(-1);t.NEG_ONE=b;var v=a(-1,2147483647,!1);t.MAX_VALUE=v;var m=a(-1,-1,!0);t.MAX_UNSIGNED_VALUE=m;var w=a(0,-2147483648,!1);t.MIN_VALUE=w;var S=t.prototype;return S.toInt=function(){return this.unsigned?this.low>>>0:this.low},S.toNumber=function(){return this.unsigned?(this.high>>>0)*c+(this.low>>>0):this.high*c+(this.low>>>0)},S.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(w)){var e=o(t),r=this.div(e),n=r.mul(e).sub(this);return r.toString(t)+n.toInt().toString(t)}return"-"+this.neg().toString(t)}for(var i=o(s(t,6),this.unsigned),a=this,u="";;){var f=a.div(i),c=(a.sub(f.mul(i)).toInt()>>>0).toString(t);if((a=f).isZero())return c+u;for(;c.length<6;)c="0"+c;u=""+c+u}},S.getHighBits=function(){return this.high},S.getHighBitsUnsigned=function(){return this.high>>>0},S.getLowBits=function(){return this.low},S.getLowBitsUnsigned=function(){return this.low>>>0},S.getNumBitsAbs=function(){if(this.isNegative())return this.eq(w)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&!(t&1<<e);e--);return 0!=this.high?e+33:e+1},S.isZero=function(){return 0===this.high&&0===this.low},S.isNegative=function(){return!this.unsigned&&this.high<0},S.isPositive=function(){return this.unsigned||this.high>=0},S.isOdd=function(){return!(1&~this.low)},S.isEven=function(){return!(1&this.low)},S.equals=function(t){return e(t)||(t=f(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},S.eq=S.equals,S.notEquals=function(t){return!this.eq(t)},S.neq=S.notEquals,S.lessThan=function(t){return this.comp(t)<0},S.lt=S.lessThan,S.lessThanOrEqual=function(t){return this.comp(t)<=0},S.lte=S.lessThanOrEqual,S.greaterThan=function(t){return this.comp(t)>0},S.gt=S.greaterThan,S.greaterThanOrEqual=function(t){return this.comp(t)>=0},S.gte=S.greaterThanOrEqual,S.compare=function(t){if(e(t)||(t=f(t)),this.eq(t))return 0;var r=this.isNegative(),n=t.isNegative();return r&&!n?-1:!r&&n?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},S.comp=S.compare,S.negate=function(){return!this.unsigned&&this.eq(w)?w:this.not().add(_)},S.neg=S.negate,S.add=function(t){e(t)||(t=f(t));var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,o=65535&this.low,s=t.high>>>16,u=65535&t.high,c=t.low>>>16,l=0,h=0,p=0,d=0;return p+=(d+=o+(65535&t.low))>>>16,h+=(p+=i+c)>>>16,l+=(h+=n+u)>>>16,l+=r+s,a((p&=65535)<<16|(d&=65535),(l&=65535)<<16|(h&=65535),this.unsigned)},S.subtract=function(t){return e(t)||(t=f(t)),this.add(t.neg())},S.sub=S.subtract,S.multiply=function(t){if(this.isZero())return d;if(e(t)||(t=f(t)),t.isZero())return d;if(this.eq(w))return t.isOdd()?w:d;if(t.eq(w))return this.isOdd()?w:d;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(p)&&t.lt(p))return o(this.toNumber()*t.toNumber(),this.unsigned);var r=this.high>>>16,n=65535&this.high,i=this.low>>>16,s=65535&this.low,u=t.high>>>16,c=65535&t.high,l=t.low>>>16,h=65535&t.low,y=0,_=0,g=0,b=0;return g+=(b+=s*h)>>>16,_+=(g+=i*h)>>>16,g&=65535,_+=(g+=s*l)>>>16,y+=(_+=n*h)>>>16,_&=65535,y+=(_+=i*l)>>>16,_&=65535,y+=(_+=s*c)>>>16,y+=r*h+n*l+i*c+s*u,a((g&=65535)<<16|(b&=65535),(y&=65535)<<16|(_&=65535),this.unsigned)},S.mul=S.multiply,S.divide=function(t){if(e(t)||(t=f(t)),t.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?y:d;var r,n,i;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return y;if(t.gt(this.shru(1)))return g;i=y}else{if(this.eq(w))return t.eq(_)||t.eq(b)?w:t.eq(w)?_:(r=this.shr(1).div(t).shl(1)).eq(d)?t.isNegative()?_:b:(n=this.sub(t.mul(r)),i=r.add(n.div(t)));if(t.eq(w))return this.unsigned?y:d;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=d}for(n=this;n.gte(t);){r=Math.max(1,Math.floor(n.toNumber()/t.toNumber()));for(var a=Math.ceil(Math.log(r)/Math.LN2),u=a<=48?1:s(2,a-48),c=o(r),l=c.mul(t);l.isNegative()||l.gt(n);)l=(c=o(r-=u,this.unsigned)).mul(t);c.isZero()&&(c=_),i=i.add(c),n=n.sub(l)}return i},S.div=S.divide,S.modulo=function(t){return e(t)||(t=f(t)),this.sub(this.div(t).mul(t))},S.mod=S.modulo,S.not=function(){return a(~this.low,~this.high,this.unsigned)},S.and=function(t){return e(t)||(t=f(t)),a(this.low&t.low,this.high&t.high,this.unsigned)},S.or=function(t){return e(t)||(t=f(t)),a(this.low|t.low,this.high|t.high,this.unsigned)},S.xor=function(t){return e(t)||(t=f(t)),a(this.low^t.low,this.high^t.high,this.unsigned)},S.shiftLeft=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):a(0,this.low<<t-32,this.unsigned)},S.shl=S.shiftLeft,S.shiftRight=function(t){return e(t)&&(t=t.toInt()),0==(t&=63)?this:t<32?a(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):a(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},S.shr=S.shiftRight,S.shiftRightUnsigned=function(t){if(e(t)&&(t=t.toInt()),0==(t&=63))return this;var r=this.high;return t<32?a(this.low>>>t|r<<32-t,r>>>t,this.unsigned):a(32===t?r:r>>>t-32,0,this.unsigned)},S.shru=S.shiftRightUnsigned,S.toSigned=function(){return this.unsigned?a(this.low,this.high,!1):this},S.toUnsigned=function(){return this.unsigned?this:a(this.low,this.high,!0)},S.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},S.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&t,t>>>8&255,t>>>16&255,t>>>24&255]},S.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24&255,t>>>16&255,t>>>8&255,255&t,e>>>24&255,e>>>16&255,e>>>8&255,255&e]},t})?r.apply(e,[]):r)||(t.exports=n)},9(){},24(t){"use strict";var e={__proto__:null,foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof r)}},41(t,e,r){"use strict";var n=r(655),i=r(8068),o=r(9675),a=r(2663);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],l=!!a&&a(t,e);if(n)n(t,e,{configurable:null===f&&l?l.configurable:!f,enumerable:null===s&&l?l.enumerable:!s,value:r,writable:null===u&&l?l.writable:!u});else{if(!c&&(s||u||f))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},75(t,e,r){"use strict";var n=r(6653);t.exports=Function.prototype.bind||n},76(t){"use strict";t.exports=Function.prototype.call},148(t,e,r){"use strict";var n=r(7381),i=Array.prototype.forEach,o=Object.create;t.exports=function(t){var e=o(null);return i.call(arguments,function(t){n(t)&&function(t,e){var r;for(r in t)e[r]=t[r]}(Object(t),e)}),e}},169(t,e,r){var n=null;"undefined"!=typeof WebSocket?n=WebSocket:"undefined"!=typeof MozWebSocket?n=MozWebSocket:void 0!==r.g?n=r.g.WebSocket||r.g.MozWebSocket:"undefined"!=typeof window?n=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(n=self.WebSocket||self.MozWebSocket),t.exports=n},181(t,e,r){"use strict";var n=r(8175),i={object:!0,function:!0,undefined:!0};t.exports=function(t){return!!n(t)&&hasOwnProperty.call(i,typeof t)}},214(t,e,r){"use strict";t.exports=r(525)()?String.prototype.contains:r(1521)},251(t,e){e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=f}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+p]=255&a,p+=d,a/=256,f-=8);t[r+p-d]|=128*y}},256(t){"use strict";var e,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;n||(e=function(t){return!1});var i=r?Map.prototype.has:null,o=n?Set.prototype.has:null;e||o||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!=typeof t)return!1;try{if(o.call(t),i)try{i.call(t)}catch(t){return!0}return t instanceof n}catch(t){}return!1}},320(t,e,r){var n=r(8276);t.exports=function(t){return(new n).update(t).digest()}},392(t,e,r){"use strict";var n=r(2861).Buffer,i=r(5377);function o(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){t=i(t,e||"utf8");for(var r=this._block,n=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%n,f=Math.min(o-s,n-u),c=0;c<f;c++)r[u+c]=t[s+c];s+=f,(a+=f)%n===0&&this._update(r)}return this._len+=o,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},414(t){"use strict";t.exports=Math.round},453(t,e,r){"use strict";var n,i=SyntaxError,o=Function,a=TypeError,s=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var f=function(){throw new a},c=u?function(){try{return f}catch(t){try{return u(arguments,"callee").get}catch(t){return f}}}():f,l=r(4039)(),h=Object.getPrototypeOf||function(t){return t.__proto__},p={},d="undefined"==typeof Uint8Array?n:h(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?h([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?h(h([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?h((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?h((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?h(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":c,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},_=function t(e){var r;if("%AsyncFunction%"===e)r=s("async function () {}");else if("%GeneratorFunction%"===e)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=s("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=h(i.prototype))}return y[e]=r,r},g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(6743),v=r(9030),m=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,x=function(t,e){var r,n=t;if(v(g,n)&&(n="%"+(r=g[n])[0]+"%"),v(y,n)){var o=y[n];if(o===p&&(o=_(n)),void 0===o&&!e)throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');var r=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(t,A,function(t,e,r,i){n[n.length]=r?S(i,O,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",o=x("%"+n+"%",e),s=o.name,f=o.value,c=!1,l=o.alias;l&&(n=l[0],w(r,m([0,1],l)));for(var h=1,p=!0;h<r.length;h+=1){var d=r[h],_=E(d,0,1),g=E(d,-1);if(('"'===_||"'"===_||"`"===_||'"'===g||"'"===g||"`"===g)&&_!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==d&&p||(c=!0),v(y,s="%"+(n+="."+d)+"%"))f=y[s];else if(null!=f){if(!(d in f)){if(!e)throw new a("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&h+1>=r.length){var b=u(f,d);f=(p=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:f[d]}else p=v(f,d),f=f[d];p&&!c&&(y[s]=f)}}return f}},477(){},487(t,e,r){"use strict";var n=r(6743),i=r(453),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),f=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(f)try{f({},"a",{value:1})}catch(t){f=null}t.exports=function(t){var e=s(n,a,arguments);return u&&f&&u(e,"length").configurable&&f(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};var l=function(){return s(n,o,arguments)};f?f(t.exports,"apply",{value:l}):t.exports.apply=l},506(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=class{constructor(t,e){this.ws_rpc=t,this.api_name=e}init(){var t=this;return this.ws_rpc.call([1,this.api_name,[]]).then(e=>(t.api_id=e,t))}exec(t,e){return this.ws_rpc.call([this.api_id,t,e]).catch(t=>{throw t})}}},525(t){"use strict";var e="razdwatrzy";t.exports=function(){return"function"==typeof e.contains&&!0===e.contains("dwa")&&!1===e.contains("foo")}},592(t,e,r){"use strict";var n=r(655),i=function(){return!!n};i.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},655(t,e,r){"use strict";var n=r(7239)("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(t){n=!1}t.exports=n},675(t,e,r){"use strict";var n=r(8165);t.exports=Function.prototype.bind||n},702(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),s=r(0,i.length-a.length),u=[],f=0;f<s;f++)u[f]="$"+f;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},754(t,e,r){var n,i,o;t.exports=(n=r(9021),o=(i=n).lib.WordArray,i.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var e=t.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var i=0;i<r.length;i++)n[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(e=s)}return function(t,e,r){for(var n=[],i=0,a=0;a<e;a++)if(a%4){var s=r[t.charCodeAt(a-1)]<<a%4*2|r[t.charCodeAt(a)]>>>6-a%4*2;n[i>>>2]|=s<<24-i%4*8,i++}return o.create(n,i)}(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},920(t,e,r){"use strict";var n=r(453),i=r(8075),o=r(1850),a=n("%TypeError%"),s=n("%WeakMap%",!0),u=n("%Map%",!0),f=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),l=i("WeakMap.prototype.has",!0),h=i("Map.prototype.get",!0),p=i("Map.prototype.set",!0),d=i("Map.prototype.has",!0),y=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new a("Side channel does not contain "+o(t))},get:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return f(t,n)}else if(u){if(e)return h(e,n)}else if(r)return function(t,e){var r=y(t,e);return r&&r.value}(r,n)},has:function(n){if(s&&n&&("object"==typeof n||"function"==typeof n)){if(t)return l(t,n)}else if(u){if(e)return d(e,n)}else if(r)return function(t,e){return!!y(t,e)}(r,n);return!1},set:function(n,i){s&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new s),c(t,n,i)):u?(e||(e=new u),p(e,n,i)):(r||(r={key:{},next:null}),function(t,e,r){var n=y(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}}(r,n,i))}};return n}},955(t,e,r){var n;t.exports=(n=r(9021),r(754),r(4636),r(9506),r(7165),function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],u=[],f=[],c=[],l=[],h=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var d=n^n<<1^n<<2^n<<3^n<<4;d=d>>>8^255&d^99,i[r]=d,o[d]=r;var y=t[r],_=t[y],g=t[_],b=257*t[d]^16843008*d;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,u[r]=b<<8|b>>>24,f[r]=b,b=16843009*g^65537*_^257*y^16843008*r,c[d]=b<<24|b>>>8,l[d]=b<<16|b>>>16,h[d]=b<<8|b>>>24,p[d]=b,r?(r=y^t[t[t[g^y]]],n^=t[t[n]]):r=n=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],y=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)a<r?o[a]=e[a]:(f=o[a-1],a%r?r>6&&a%r==4&&(f=i[f>>>24]<<24|i[f>>>16&255]<<16|i[f>>>8&255]<<8|i[255&f]):(f=i[(f=f<<8|f>>>24)>>>24]<<24|i[f>>>16&255]<<16|i[f>>>8&255]<<8|i[255&f],f^=d[a/r|0]<<24),o[a]=o[a-r]^f);for(var s=this._invKeySchedule=[],u=0;u<n;u++){if(a=n-u,u%4)var f=o[a];else f=o[a-4];s[u]=u<4||a<=4?f:c[i[f>>>24]]^l[i[f>>>16&255]]^h[i[f>>>8&255]]^p[i[255&f]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,u,f,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,c,l,h,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,a,s){for(var u=this._nRounds,f=t[e]^r[0],c=t[e+1]^r[1],l=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<u;d++){var y=n[f>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&h]^r[p++],_=n[c>>>24]^i[l>>>16&255]^o[h>>>8&255]^a[255&f]^r[p++],g=n[l>>>24]^i[h>>>16&255]^o[f>>>8&255]^a[255&c]^r[p++],b=n[h>>>24]^i[f>>>16&255]^o[c>>>8&255]^a[255&l]^r[p++];f=y,c=_,l=g,h=b}y=(s[f>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&h])^r[p++],_=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^r[p++],g=(s[l>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&c])^r[p++],b=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^r[p++],t[e]=y,t[e+1]=_,t[e+2]=g,t[e+3]=b},keySize:8});t.AES=e._createHelper(y)}(),n.AES)},957(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5279);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},968(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},972(t,e,r){"use strict";var n=r(6578),i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},978(t,e,r){"use strict";var n,i=r(9612),o=r(9383),a=r(1237),s=r(9290),u=r(9538),f=r(8068),c=r(9675),l=r(5345),h=r(1514),p=r(8968),d=r(6188),y=r(8002),_=r(5880),g=r(414),b=r(3093),v=Function,m=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},w=r(5795),S=r(3290),E=function(){throw new c},A=w?function(){try{return E}catch(t){try{return w(arguments,"callee").get}catch(t){return E}}}():E,O=r(9500)(),x=r(3628),j=r(1064),I=r(8648),k=r(1002),B=r(76),T={},R="undefined"!=typeof Uint8Array&&x?x(Uint8Array):n,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&x?x(x([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&x?x((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&x?x((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&x?x(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":f,"%ThrowTypeError%":A,"%TypedArray%":R,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":B,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":j,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":d,"%Math.min%":y,"%Math.pow%":_,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(x)try{null.error}catch(t){var M=x(x(t));P["%Error.prototype%"]=M}var U=function t(e){var r;if("%AsyncFunction%"===e)r=m("async function () {}");else if("%GeneratorFunction%"===e)r=m("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=m("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&x&&(r=x(i.prototype))}return P[e]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=r(3592),C=r(9957),F=D.call(B,Array.prototype.concat),N=D.call(k,Array.prototype.splice),q=D.call(B,String.prototype.replace),z=D.call(B,String.prototype.slice),W=D.call(B,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,G=function(t,e){var r,n=t;if(C(L,n)&&(n="%"+(r=L[n])[0]+"%"),C(P,n)){var i=P[n];if(i===T&&(i=U(n)),void 0===i&&!e)throw new c("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new f("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new c('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,t))throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=z(t,0,1),r=z(t,-1);if("%"===e&&"%"!==r)throw new f("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new f("invalid intrinsic syntax, expected opening `%`");var n=[];return q(t,V,function(t,e,r,i){n[n.length]=r?q(i,H,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=G("%"+n+"%",e),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],N(r,F([0,1],u)));for(var l=1,h=!0;l<r.length;l+=1){var p=r[l],d=z(p,0,1),y=z(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===y||"'"===y||"`"===y)&&d!==y)throw new f("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),C(P,o="%"+(n+="."+p)+"%"))a=P[o];else if(null!=a){if(!(p in a)){if(!e)throw new c("base intrinsic for "+t+" exists, but the property is not available.");return}if(w&&l+1>=r.length){var _=w(a,p);a=(h=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:a[p]}else h=C(a,p),a=a[p];h&&!s&&(P[o]=a)}}return a}},984(t,e,r){"use strict";var n=r(8452),i=r(9133);t.exports=function(){var t=i();return n(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},991(t,e,r){"use strict";var n=r(3273)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},1002(t){"use strict";t.exports=Function.prototype.apply},1025(t,e,r){var n,i,o;t.exports=(i=(n=r(9021)).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),a=this._iKey=e.clone(),s=i.words,u=a.words,f=0;f<r;f++)s[f]^=1549556828,u[f]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},1064(t,e,r){"use strict";var n=r(9612);t.exports=n.getPrototypeOf||null},1093(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},1181(t,e,r){t.exports=r(7007).EventEmitter},1189(t,e,r){"use strict";var n=Array.prototype.slice,i=r(1093),o=Object.keys,a=o?function(t){return o(t)}:r(8875),s=Object.keys;a.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?s(n.call(t)):s(t)})}else Object.keys=a;return Object.keys||a},t.exports=a},1203(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(5825);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},1237(t){"use strict";t.exports=EvalError},1333(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},1396(t,e,r){t.exports=r(7007).EventEmitter},1451(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},1452(t){"use strict";t.exports=JSON.parse('{"secp128r1":{"p":"fffffffdffffffffffffffffffffffff","a":"fffffffdfffffffffffffffffffffffc","b":"e87579c11079f43dd824993c2cee5ed3","n":"fffffffe0000000075a30d1b9038a115","h":"01","Gx":"161ff7528b899b2d0c28607ca52c5b86","Gy":"cf5ac8395bafeb13c02da292dded7a83"},"secp160k1":{"p":"fffffffffffffffffffffffffffffffeffffac73","a":"00","b":"07","n":"0100000000000000000001b8fa16dfab9aca16b6b3","h":"01","Gx":"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb","Gy":"938cf935318fdced6bc28286531733c3f03c4fee"},"secp160r1":{"p":"ffffffffffffffffffffffffffffffff7fffffff","a":"ffffffffffffffffffffffffffffffff7ffffffc","b":"1c97befc54bd7a8b65acf89f81d4d4adc565fa45","n":"0100000000000000000001f4c8f927aed3ca752257","h":"01","Gx":"4a96b5688ef573284664698968c38bb913cbfc82","Gy":"23a628553168947d59dcc912042351377ac5fb32"},"secp192k1":{"p":"fffffffffffffffffffffffffffffffffffffffeffffee37","a":"00","b":"03","n":"fffffffffffffffffffffffe26f2fc170f69466a74defd8d","h":"01","Gx":"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d","Gy":"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},"secp192r1":{"p":"fffffffffffffffffffffffffffffffeffffffffffffffff","a":"fffffffffffffffffffffffffffffffefffffffffffffffc","b":"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1","n":"ffffffffffffffffffffffff99def836146bc9b1b4d22831","h":"01","Gx":"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012","Gy":"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},"secp256k1":{"p":"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","a":"00","b":"07","n":"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","h":"01","Gx":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","Gy":"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},"secp256r1":{"p":"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff","a":"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc","b":"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b","n":"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551","h":"01","Gx":"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296","Gy":"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}')},1468(t,e,r){"use strict";var n=r(5606).process;function i(t,e){a(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(o,r),e(t)):n.nextTick(o,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},1514(t){"use strict";t.exports=Math.abs},1521(t){"use strict";var e=String.prototype.indexOf;t.exports=function(t){return e.call(this,t,arguments[1])>-1}},1539(t,e,r){"use strict";var n=r(4761),i=r(1703),o=r(5128),a=r(3612),s=r(9803);t.exports=function(t){return null==t||"object"!=typeof t&&"function"!=typeof t?null:n(t)?"String":i(t)?"Number":o(t)?"Boolean":a(t)?"Symbol":s(t)?"BigInt":void 0}},1589(t,e,r){"use strict";var n=r(8452),i=r(487),o=r(7675),a=r(5330),s=r(3984),u=i(a());n(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},1603(t,e,r){(e=t.exports=r(6736)).Stream=e,e.Readable=e,e.Writable=r(2192),e.Duplex=r(2818),e.Transform=r(3054),e.PassThrough=r(5860),e.finished=r(5826),e.pipeline=r(9434)},1635(){},1703(t,e,r){"use strict";var n=Number.prototype.toString,i=Object.prototype.toString,o=r(9092)();t.exports=function(t){return"number"==typeof t||"object"==typeof t&&(o?function(t){try{return n.call(t),!0}catch(t){return!1}}(t):"[object Number]"===i.call(t))}},1766(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(8287).Buffer,s=r(3779).inspect,u=s&&s.custom||"inspect";function f(t,e,r){a.prototype.copy.call(t,e,r)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e=a.allocUnsafe(t>>>0),r=this.head,n=0;r;)f(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},e,{depth:0,customInspect:!1}))}}],r&&o(e.prototype,r),t}()},1800(t,e,r){"use strict";var n=r(6698),i=r(2861).Buffer,o=r(6168),a=i.alloc(128),s=64;function u(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>s?e=t(e):e.length<s&&(e=i.concat([e,a],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),u=0;u<s;u++)r[u]=54^e[u],n[u]=92^e[u];this._hash=[r]}n(u,o),u.prototype._update=function(t){this._hash.push(t)},u.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=u},1850(t,e,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,a=n&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,f=s&&u&&"function"==typeof u.get?u.get:null,c=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,y=Object.prototype.toString,_=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,m=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,x=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,B="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function M(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-x(-t):x(t);if(n!==t){var i=String(n),o=b.call(e,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var U=r(1635).custom,L=U&&N(U)?U:null;function D(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function C(t){return v.call(String(t),/"/g,""")}function F(t){return!("[object Array]"!==W(t)||T&&"object"==typeof t&&T in t)}function N(t){if(B)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,i){var s=r||{};if(z(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!z(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return H(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var m=String(e);return y?M(e,m):m}if("bigint"==typeof e){var S=String(e)+"n";return y?M(e,S):S}var x=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=x&&x>0&&"object"==typeof e)return F(e)?"[Array]":"[Object]";var I,U=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(s,n);if(void 0===i)i=[];else if(V(i,e)>=0)return"[Circular]";function q(e,r,o){if(r&&(i=O.call(i)).push(r),o){var a={depth:s.depth};return z(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,n+1,i)}return t(e,s,n+1,i)}if("function"==typeof e){var G=function(t){if(t.name)return t.name;var e=g.call(_.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),X=Z(e,q);return"[Function"+(G?": "+G:" (anonymous)")+"]"+(X.length>0?" { "+A.call(X,", ")+" }":"")}if(N(e)){var Q=B?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||B?Q:$(Q)}if((I=e)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var tt="<"+w.call(String(e.nodeName)),et=e.attributes||[],rt=0;rt<et.length;rt++)tt+=" "+et[rt].name+"="+D(C(et[rt].value),"double",s);return tt+=">",e.childNodes&&e.childNodes.length&&(tt+="..."),tt+"</"+w.call(String(e.nodeName))+">"}if(F(e)){if(0===e.length)return"[]";var nt=Z(e,q);return U&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(nt)?"["+Y(nt,U)+"]":"[ "+A.call(nt,", ")+" ]"}if(function(t){return!("[object Error]"!==W(t)||T&&"object"==typeof t&&T in t)}(e)){var it=Z(e,q);return"cause"in e&&!R.call(e,"cause")?"{ ["+String(e)+"] "+A.call(E.call("[cause]: "+q(e.cause),it),", ")+" }":0===it.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(it,", ")+" }"}if("object"==typeof e&&u){if(L&&"function"==typeof e[L])return e[L]();if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{f.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ot=[];return a.call(e,function(t,r){ot.push(q(r,e,!0)+" => "+q(t,e))}),J("Map",o.call(e),ot,U)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var at=[];return c.call(e,function(t){at.push(q(t,e))}),J("Set",f.call(e),at,U)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return K("WeakMap");if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return K("WeakSet");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{return p.call(t),!0}catch(t){}return!1}(e))return K("WeakRef");if(function(t){return!("[object Number]"!==W(t)||T&&"object"==typeof t&&T in t)}(e))return $(q(Number(e)));if(function(t){if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(t){}return!1}(e))return $(q(j.call(e)));if(function(t){return!("[object Boolean]"!==W(t)||T&&"object"==typeof t&&T in t)}(e))return $(d.call(e));if(function(t){return!("[object String]"!==W(t)||T&&"object"==typeof t&&T in t)}(e))return $(q(String(e)));if(!function(t){return!("[object Date]"!==W(t)||T&&"object"==typeof t&&T in t)}(e)&&!function(t){return!("[object RegExp]"!==W(t)||T&&"object"==typeof t&&T in t)}(e)){var st=Z(e,q),ut=P?P(e)===Object.prototype:e instanceof Object||e.constructor===Object,ft=e instanceof Object?"":"null prototype",ct=!ut&&T&&Object(e)===e&&T in e?b.call(W(e),8,-1):ft?"Object":"",lt=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ct||ft?"["+A.call(E.call([],ct||[],ft||[]),": ")+"] ":"");return 0===st.length?lt+"{}":U?lt+"{"+Y(st,U)+"}":lt+"{ "+A.call(st,", ")+" }"}return String(e)};var q=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return q.call(t,e)}function W(t){return y.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function H(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return H(b.call(t,0,e.maxStringLength),e)+n}return D(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",e)}function G(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+m.call(e.toString(16))}function $(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function J(t,e,r,n){return t+" ("+e+") {"+(n?Y(r,n):A.call(r,", "))+"}"}function Y(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function Z(t,e){var r=F(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=z(t,i)?e(t[i],t):""}var o,a="function"==typeof I?I(t):[];if(B){o={};for(var s=0;s<a.length;s++)o["$"+a[s]]=a[s]}for(var u in t)z(t,u)&&(r&&String(Number(u))===u&&u<t.length||B&&o["$"+u]instanceof Symbol||(S.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if("function"==typeof I)for(var f=0;f<a.length;f++)R.call(t,a[f])&&n.push("["+e(a[f])+"]: "+e(t[a[f]],t));return n}},1999(t,e,r){"use strict";var n,i=r(5606).process;function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(void 0),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=O,O.WritableState=A;var a,s={deprecate:r(4643)},u=r(1396),f=r(8287).Buffer,c=r.g.Uint8Array||function(){},l=r(4347),h=r(6644).getHighWaterMark,p=r(2463).F,d=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,_=p.ERR_MULTIPLE_CALLBACK,g=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,m=p.ERR_STREAM_WRITE_AFTER_END,w=p.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function E(){}function A(t,e,a){n=n||r(8101),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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,o=r.writecb;if("function"!=typeof o)throw new _;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,o){--e.pendingcb,r?(i.nextTick(o,n),i.nextTick(T,t,e),t._writableState.errorEmitted=!0,S(t,n)):(o(n),t._writableState.errorEmitted=!0,S(t,n),T(t,e))}(t,r,n,e,o);else{var a=k(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),n?i.nextTick(j,t,r,a,o):j(t,r,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(t){var e=this instanceof(n=n||r(8101));if(!e&&!a.call(O,this))return new O(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function j(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),T(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,x(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(x(t,e,!1,e.objectMode?1:f.length,f,c,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function B(t,e){t._final(function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function T(t,e){var r=k(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(B,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(6698)(O,u),A.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===O&&t&&t._writableState instanceof A}})):a=function(t){return t instanceof this},O.prototype.pipe=function(){S(this,new g)},O.prototype.write=function(t,e,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=t,f.isBuffer(n)||n instanceof c);return s&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(t,e){var r=new m;S(t,r),i.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var o;return null===r?o=new v:"string"==typeof r||e.objectMode||(o=new d("chunk",["string","Buffer"],r)),!o||(S(t,o),i.nextTick(n,o),!1)}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,r)),e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,n,i,o);return u}(this,o,s,t,e,r)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},O.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 w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(t,e){e(t)}},2006(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},2093(t,e,r){"use strict";t.exports=r(3380)()?Object.keys:r(4232)},2120(t,e,r){"use strict";var n=Date.prototype.getDay,i=Object.prototype.toString,o=r(9092)();t.exports=function(t){return"object"==typeof t&&null!==t&&(o?function(t){try{return n.call(t),!0}catch(t){return!1}}(t):"[object Date]"===i.call(t))}},2192(t,e,r){"use strict";var n,i=r(5606).process;function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(void 0),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}t.exports=O,O.WritableState=A;var a,s={deprecate:r(4643)},u=r(1181),f=r(8287).Buffer,c=r.g.Uint8Array||function(){},l=r(1468),h=r(8775).getHighWaterMark,p=r(2260).F,d=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,_=p.ERR_MULTIPLE_CALLBACK,g=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,m=p.ERR_STREAM_WRITE_AFTER_END,w=p.ERR_UNKNOWN_ENCODING,S=l.errorOrDestroy;function E(){}function A(t,e,a){n=n||r(2818),t=t||{},"boolean"!=typeof a&&(a=e instanceof n),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,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,o=r.writecb;if("function"!=typeof o)throw new _;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,o){--e.pendingcb,r?(i.nextTick(o,n),i.nextTick(T,t,e),t._writableState.errorEmitted=!0,S(t,n)):(o(n),t._writableState.errorEmitted=!0,S(t,n),T(t,e))}(t,r,n,e,o);else{var a=k(r)||t.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||I(t,r),n?i.nextTick(j,t,r,a,o):j(t,r,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function O(t){var e=this instanceof(n=n||r(2818));if(!e&&!a.call(O,this))return new O(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),u.call(this)}function x(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function j(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),T(t,e)}function I(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),a=e.corkedRequestsFree;a.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,x(t,e,!0,e.length,i,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(x(t,e,!1,e.objectMode?1:f.length,f,c,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function B(t,e){t._final(function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),T(t,e)})}function T(t,e){var r=k(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(B,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(6698)(O,u),A.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===O&&t&&t._writableState instanceof A}})):a=function(t){return t instanceof this},O.prototype.pipe=function(){S(this,new g)},O.prototype.write=function(t,e,r){var n,o=this._writableState,a=!1,s=!o.objectMode&&(n=t,f.isBuffer(n)||n instanceof c);return s&&!f.isBuffer(t)&&(t=function(t){return f.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(t,e){var r=new m;S(t,r),i.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var o;return null===r?o=new v:"string"==typeof r||e.objectMode||(o=new d("chunk",["string","Buffer"],r)),!o||(S(t,o),i.nextTick(n,o),!1)}(this,o,t,r))&&(o.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=f.from(e,r)),e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else x(t,e,!1,s,n,i,o);return u}(this,o,s,t,e,r)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||I(this,t))},O.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 w(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,r){r(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?i.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=l.destroy,O.prototype._undestroy=l.undestroy,O.prototype._destroy=function(t,e){e(t)}},2205(t,e,r){"use strict";var n=r(4742),i=r(1002),o=r(3144);t.exports=function(){return o(n,i,arguments)}},2260(t){"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var i,o,a,s,u;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var f=("number"!=typeof u&&(u=0),u+1>(s=t).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(n(e,"type"))}return a+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},2382(){},2389(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var a=r(8287).Buffer,s=r(8460).inspect,u=s&&s.custom||"inspect";function f(t,e,r){a.prototype.copy.call(t,e,r)}t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e=a.allocUnsafe(t>>>0),r=this.head,n=0;r;)f(r.data,e,n),n+=r.data.length,r=r.next;return e}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){i(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},e,{depth:0,customInspect:!1}))}}],r&&o(e.prototype,r),t}()},2463(t){"use strict";var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(t){return String(t)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var i,o,a,s,u;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var f=("number"!=typeof u&&(u=0),u+1>(s=t).length||-1===s.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(n(e,"type"))}return a+". Received type ".concat(typeof r)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},2648(t,e,r){"use strict";var n=r(453),i=r(8075),o=n("%WeakSet%",!0),a=i("WeakSet.prototype.has",!0);if(a){var s=i("WeakMap.prototype.has",!0);t.exports=function(t){if(!t||"object"!=typeof t)return!1;try{if(a(t,a),s)try{s(t,s)}catch(t){return!0}return t instanceof o}catch(t){}return!1}}else t.exports=function(t){return!1}},2663(t,e,r){"use strict";var n=r(7585)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},2716(t,e,r){"use strict";var n=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=a(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!=o&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}(r(9762));e.a2=void 0,Object.defineProperty(e,"_Y",{enumerable:!0,get:function(){return i.default}}),e.a2=n;o(r(6355));var i=o(r(5851));function o(t){return t&&t.__esModule?t:{default:t}}function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(a=function(t){return t?r:e})(t)}},2802(t,e,r){"use strict";t.exports=function(e){var r=e.toLowerCase(),n=t.exports[r];if(!n)throw new Error(r+" is not supported (we accept pull requests)");return new n},t.exports.sha=r(7816),t.exports.sha1=r(3737),t.exports.sha224=r(6710),t.exports.sha256=r(4107),t.exports.sha384=r(2827),t.exports.sha512=r(2890)},2818(t,e,r){"use strict";var n=r(5606).process,i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=r(6736),a=r(2192);r(6698)(c,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var f=s[u];c.prototype[f]||(c.prototype[f]=a.prototype[f])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},2827(t,e,r){"use strict";var n=r(6698),i=r(2890),o=r(392),a=r(2861).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},2861(t,e,r){var n=r(8287),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function a(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},a.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},2890(t,e,r){"use strict";var n=r(6698),i=r(392),o=r(2861).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function f(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function l(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function _(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0<e>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,v=0|this._hh,m=0|this._al,w=0|this._bl,S=0|this._cl,E=0|this._dl,A=0|this._el,O=0|this._fl,x=0|this._gl,j=0|this._hl,I=0;I<32;I+=2)e[I]=t.readInt32BE(4*I),e[I+1]=t.readInt32BE(4*I+4);for(;I<160;I+=2){var k=e[I-30],B=e[I-30+1],T=p(k,B),R=d(B,k),P=y(k=e[I-4],B=e[I-4+1]),M=_(B,k),U=e[I-14],L=e[I-14+1],D=e[I-32],C=e[I-32+1],F=R+L|0,N=T+U+g(F,R)|0;N=(N=N+P+g(F=F+M|0,M)|0)+D+g(F=F+C|0,C)|0,e[I]=N,e[I+1]=F}for(var q=0;q<160;q+=2){N=e[q],F=e[q+1];var z=c(r,n,i),W=c(m,w,S),V=l(r,m),H=l(m,r),G=h(s,A),$=h(A,s),K=a[q],J=a[q+1],Y=f(s,u,b),Z=f(A,O,x),X=j+$|0,Q=v+G+g(X,j)|0;Q=(Q=(Q=Q+Y+g(X=X+Z|0,Z)|0)+K+g(X=X+J|0,J)|0)+N+g(X=X+F|0,F)|0;var tt=H+W|0,et=V+z+g(tt,H)|0;v=b,j=x,b=u,x=O,u=s,O=A,s=o+Q+g(A=E+X|0,E)|0,o=i,E=S,i=n,S=w,n=r,w=m,r=Q+et+g(m=X+tt|0,X)|0}this._al=this._al+m|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+A|0,this._fl=this._fl+O|0,this._gl=this._gl+x|0,this._hl=this._hl+j|0,this._ah=this._ah+r+g(this._al,m)|0,this._bh=this._bh+n+g(this._bl,w)|0,this._ch=this._ch+i+g(this._cl,S)|0,this._dh=this._dh+o+g(this._dl,E)|0,this._eh=this._eh+s+g(this._el,A)|0,this._fh=this._fh+u+g(this._fl,O)|0,this._gh=this._gh+b+g(this._gl,x)|0,this._hh=this._hh+v+g(this._hl,j)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},3054(t,e,r){"use strict";t.exports=c;var n=r(2260).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(2818);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(e,r){h(t,e,r)})}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(6698)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.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)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},3068(t,e,r){"use strict";var n,i,o,a,s,u,f,c=r(8263),l=r(5499),h=Function.prototype.apply,p=Function.prototype.call,d=Object.create,y=Object.defineProperty,_=Object.defineProperties,g=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};i=function(t,e){var r,i;return l(e),i=this,n.call(this,t,r=function(){o.call(i,t,r),h.call(e,this,arguments)}),r.__eeOnceListener__=e,this},a=function(t){var e,r,n,i,o;if(g.call(this,"__ee__")&&(i=this.__ee__[t]))if("object"==typeof i){for(r=arguments.length,o=new Array(r-1),e=1;e<r;++e)o[e-1]=arguments[e];for(i=i.slice(),e=0;n=i[e];++e)h.call(n,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),e=1;e<r;++e)o[e-1]=arguments[e];h.call(i,this,o)}},s={on:n=function(t,e){var r;return l(e),g.call(this,"__ee__")?r=this.__ee__:(r=b.value=d(null),y(this,"__ee__",b),b.value=null),r[t]?"object"==typeof r[t]?r[t].push(e):r[t]=[r[t],e]:r[t]=e,this},once:i,off:o=function(t,e){var r,n,i,o;if(l(e),!g.call(this,"__ee__"))return this;if(!(r=this.__ee__)[t])return this;if("object"==typeof(n=r[t]))for(o=0;i=n[o];++o)i!==e&&i.__eeOnceListener__!==e||(2===n.length?r[t]=n[o?0:1]:n.splice(o,1));else n!==e&&n.__eeOnceListener__!==e||delete r[t];return this},emit:a},u={on:c(n),once:c(i),off:c(o),emit:c(a)},f=_({},u),t.exports=e=function(t){return null==t?d(f):_(Object(t),u)},e.methods=s},3093(t,e,r){"use strict";var n=r(4459);t.exports=function(t){return n(t)||0===t?t:t<0?-1:1}},3126(t,e,r){"use strict";var n=r(4742),i=r(9675),o=r(76),a=r(3144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new i("a function is required");return a(n,o,t)}},3144(t,e,r){"use strict";var n=r(4742),i=r(1002),o=r(76),a=r(7119);t.exports=a||n.call(o,i)},3145(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},3273(t,e,r){"use strict";var n,i=r(9383),o=r(1237),a=r(9290),s=r(9538),u=r(8068),f=r(9675),c=r(5345),l=Function,h=function(t){try{return l('"use strict"; return ('+t+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(t){p=null}var d=function(){throw new f},y=p?function(){try{return d}catch(t){try{return p(arguments,"callee").get}catch(t){return d}}}():d,_=r(1203)(),g=r(24)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},m="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&b?b(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":y,"%TypedArray%":m,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(t){var S=b(b(t));w["%Error.prototype%"]=S}var E=function t(e){var r;if("%AsyncFunction%"===e)r=h("async function () {}");else if("%GeneratorFunction%"===e)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=h("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&b&&(r=b(i.prototype))}return w[e]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(75),x=r(9957),j=O.call(Function.call,Array.prototype.concat),I=O.call(Function.apply,Array.prototype.splice),k=O.call(Function.call,String.prototype.replace),B=O.call(Function.call,String.prototype.slice),T=O.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,M=function(t,e){var r,n=t;if(x(A,n)&&(n="%"+(r=A[n])[0]+"%"),x(w,n)){var i=w[n];if(i===v&&(i=E(n)),void 0===i&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=B(t,0,1),r=B(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(t,R,function(t,e,r,i){n[n.length]=r?k(i,P,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=M("%"+n+"%",e),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],I(r,j([0,1],c)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],y=B(d,0,1),_=B(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===_||"'"===_||"`"===_)&&y!==_)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),x(w,o="%"+(n+="."+d)+"%"))a=w[o];else if(null!=a){if(!(d in a)){if(!e)throw new f("base intrinsic for "+t+" exists, but the property is not available.");return}if(p&&l+1>=r.length){var g=p(a,d);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else h=x(a,d),a=a[d];h&&!s&&(w[o]=a)}}return a}},3290(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},3380(t){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},3507(t,e,r){"use strict";var n=r(6698),i=r(1800),o=r(6168),a=r(2861).Buffer,s=r(320),u=r(6011),f=r(2802),c=a.alloc(128);function l(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>r?e=("rmd160"===t?new u:f(t)).update(e).digest():e.length<r&&(e=a.concat([e,c],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^e[s],i[s]=92^e[s];this._hash="rmd160"===t?new u:f(t),this._hash.update(n)}n(l,o),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:f(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new l("rmd160",e):"md5"===t?new i(s,e):new l(t,e)}},3516(t,e,r){"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},3592(t,e,r){"use strict";var n=r(8028);t.exports=Function.prototype.bind||n},3595(t,e,r){"use strict";var n=r(2093),i=r(7134),o=Math.max;t.exports=function(t,e){var r,a,s,u=o(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},a=1;a<u;++a)n(e=arguments[a]).forEach(s);if(void 0!==r)throw r;return t}},3612(t,e,r){"use strict";var n=Object.prototype.toString;if(r(4039)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;t.exports=function(t){if("symbol"==typeof t)return!0;if("[object Symbol]"!==n.call(t))return!1;try{return function(t){return"symbol"==typeof t.valueOf()&&o.test(i.call(t))}(t)}catch(t){return!1}}}else t.exports=function(t){return!1}},3628(t,e,r){"use strict";var n=r(8648),i=r(1064),o=r(7176);t.exports=n?function(t){return n(t)}:i?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return i(t)}:o?function(t){return o(t)}:null},3639(t,e,r){"use strict";var n=r(4921);t.exports=Function.prototype.bind||n},3681(t,e,r){"use strict";t.exports=i;var n=r(9083);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(6698)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},3737(t,e,r){"use strict";var n=r(6698),i=r(392),o=r(2861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(t){return t<<1|t>>>31}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=f(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var p=0;p<80;++p){var d=~~(p/20),y=c(r)+h(d,n,i,o)+s+e[p]+a[d]|0;s=o,o=i,i=l(n),n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},3779(){},3802(t){"use strict";var e,r="function"==typeof Map&&Map.prototype?Map:null,n="function"==typeof Set&&Set.prototype?Set:null;r||(e=function(t){return!1});var i=r?Map.prototype.has:null,o=n?Set.prototype.has:null;e||i||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!=typeof t)return!1;try{if(i.call(t),o)try{o.call(t)}catch(t){return!0}return t instanceof r}catch(t){}return!1}},3845(t){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},3908(t,e,r){var n=r(9251);r(8523),t.exports=n},3984(t,e,r){"use strict";var n=r(8452).supportsDescriptors,i=r(5330),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,u=Object.getPrototypeOf,f=/a/;t.exports=function(){if(!n||!u)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=i(),e=u(f),r=o(e,"flags");return r&&r.get===t||a(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},4003(t,e,r){var n,i=r(5606).process,o=r(8287).Buffer;!function(){"use strict";function a(t,e){if(e=e||{type:"Array"},void 0!==i&&"number"==typeof i.pid&&i.versions&&i.versions.node)return function(t,e){var n=r(9).randomBytes(t);switch(e.type){case"Array":return[].slice.call(n);case"Buffer":return n;case"Uint8Array":for(var i=new Uint8Array(t),o=0;o<t;++o)i[o]=n.readUInt8(o);return i;default:throw new Error(e.type+" is unsupported.")}}(t,e);if(!window.crypto&&!window.msCrypto)throw new Error("Your browser does not support window.crypto.");return function(t,e){var r=new Uint8Array(t);switch((window.crypto||window.msCrypto).getRandomValues(r),e.type){case"Array":return[].slice.call(r);case"Buffer":try{new o(1)}catch(t){throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new o(r);case"Uint8Array":return r;default:throw new Error(e.type+" is unsupported.")}}(t,e)}void 0===(n=function(){return a}.apply(e,[]))||(t.exports=n),a.randomArray=function(t){return a(t,{type:"Array"})},a.randomUint8Array=function(t){return a(t,{type:"Uint8Array"})},a.randomBuffer=function(t){return a(t,{type:"Buffer"})}}()},4035(t,e,r){"use strict";var n,i,o,a,s=r(8075),u=r(9092)();if(u){n=s("Object.prototype.hasOwnProperty"),i=s("RegExp.prototype.exec"),o={};var f=function(){throw o};a={toString:f,valueOf:f},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=f)}var c=s("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor;t.exports=u?function(t){if(!t||"object"!=typeof t)return!1;var e=l(t,"lastIndex");if(!e||!n(e,"value"))return!1;try{i(t,a)}catch(t){return t===o}}:function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&"[object RegExp]"===c(t)}},4039(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(1333);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},4080(t,e,r){"use strict";var n=r(9202);t.exports=function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},4107(t,e,r){"use strict";var n=r(6698),i=r(392),o=r(2861).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(t,e,r){return r^t&(e^r)}function c(t,e,r){return t&e|r&(t|e)}function l(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function d(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,y=0|this._g,_=0|this._h,g=0;g<16;++g)e[g]=t.readInt32BE(4*g);for(;g<64;++g)e[g]=d(e[g-2])+e[g-7]+p(e[g-15])+e[g-16]|0;for(var b=0;b<64;++b){var v=_+h(s)+f(s,u,y)+a[b]+e[b]|0,m=l(r)+c(r,n,i)|0;_=y,y=u,u=s,s=o+v|0,o=i,i=n,n=r,r=v+m|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=y+this._g|0,this._h=_+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},4109(t,e,r){var n=r(4529),i=r(2861).Buffer,o=r(3908),a=o.valueOf(3);function s(t,e,r,i){n.notStrictEqual(i,void 0,"Missing Z coordinate"),this.curve=t,this.x=e,this.y=r,this.z=i,this._zInv=null,this.compressed=!0}Object.defineProperty(s.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(s.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(s.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),s.fromAffine=function(t,e,r){return new s(t,e,r,o.ONE)},s.prototype.equals=function(t){return t===this||(this.curve.isInfinity(this)?this.curve.isInfinity(t):this.curve.isInfinity(t)?this.curve.isInfinity(this):0===t.y.multiply(this.z).subtract(this.y.multiply(t.z)).mod(this.curve.p).signum()&&0===t.x.multiply(this.z).subtract(this.x.multiply(t.z)).mod(this.curve.p).signum())},s.prototype.negate=function(){var t=this.curve.p.subtract(this.y);return new s(this.curve,this.x,t,this.z)},s.prototype.add=function(t){if(this.curve.isInfinity(this))return t;if(this.curve.isInfinity(t))return this;var e=this.x,r=this.y,n=t.x,i=t.y.multiply(this.z).subtract(r.multiply(t.z)).mod(this.curve.p),o=n.multiply(this.z).subtract(e.multiply(t.z)).mod(this.curve.p);if(0===o.signum())return 0===i.signum()?this.twice():this.curve.infinity;var u=o.square(),f=u.multiply(o),c=e.multiply(u),l=i.square().multiply(this.z),h=l.subtract(c.shiftLeft(1)).multiply(t.z).subtract(f).multiply(o).mod(this.curve.p),p=c.multiply(a).multiply(i).subtract(r.multiply(f)).subtract(l.multiply(i)).multiply(t.z).add(i.multiply(f)).mod(this.curve.p),d=f.multiply(this.z).multiply(t.z).mod(this.curve.p);return new s(this.curve,h,p,d)},s.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var t=this.x,e=this.y,r=e.multiply(this.z).mod(this.curve.p),n=r.multiply(e).mod(this.curve.p),i=this.curve.a,o=t.square().multiply(a);0!==i.signum()&&(o=o.add(this.z.square().multiply(i)));var u=(o=o.mod(this.curve.p)).square().subtract(t.shiftLeft(3).multiply(n)).shiftLeft(1).multiply(r).mod(this.curve.p),f=o.multiply(a).multiply(t).subtract(n.shiftLeft(1)).shiftLeft(2).multiply(n).subtract(o.pow(3)).mod(this.curve.p),c=r.pow(3).shiftLeft(3).mod(this.curve.p);return new s(this.curve,u,f,c)},s.prototype.multiply=function(t){if(this.curve.isInfinity(this))return this;if(0===t.signum())return this.curve.infinity;for(var e=t,r=e.multiply(a),n=this.negate(),i=this,o=r.bitLength()-2;o>0;--o){var s=r.testBit(o),u=e.testBit(o);i=i.twice(),s!==u&&(i=i.add(s?this:n))}return i},s.prototype.multiplyTwo=function(t,e,r){for(var n=Math.max(t.bitLength(),r.bitLength())-1,i=this.curve.infinity,o=this.add(e);n>=0;){var a=t.testBit(n),s=r.testBit(n);i=i.twice(),a?i=s?i.add(o):i.add(this):s&&(i=i.add(e)),--n}return i},s.prototype.getEncoded=function(t){if(null==t&&(t=this.compressed),this.curve.isInfinity(this))return i.alloc(1,0);var e,r=this.affineX,n=this.affineY,o=this.curve.pLength;return t?(e=i.allocUnsafe(1+o)).writeUInt8(n.isEven()?2:3,0):((e=i.allocUnsafe(1+o+o)).writeUInt8(4,0),n.toBuffer(o).copy(e,1+o)),r.toBuffer(o).copy(e,1),e},s.decodeFrom=function(t,e){var r,i=e.readUInt8(0),a=4!==i,u=Math.floor((t.p.bitLength()+7)/8),f=o.fromBuffer(e.slice(1,1+u));if(a){n.equal(e.length,u+1,"Invalid sequence length"),n(2===i||3===i,"Invalid sequence tag");var c=3===i;r=t.pointFromX(c,f)}else{n.equal(e.length,1+u+u,"Invalid sequence length");var l=o.fromBuffer(e.slice(1+u));r=s.fromAffine(t,f,l)}return r.compressed=a,r},s.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},t.exports=s},4232(t,e,r){"use strict";var n=r(7381),i=Object.keys;t.exports=function(t){return i(n(t)?Object(t):t)}},4257(t,e,r){"use strict";var n=r(2463).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||c()},f=e._writableState&&e._writableState.finished,c=function(){s=!1,f=!0,a||o.call(e)},l=e._readableState&&e._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(e)},p=function(t){o.call(e,t)},d=function(){var t;return a&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!f?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},y=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",d),e.req?y():e.on("request",y)):s&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",c),!1!==r.error&&e.on("error",p),e.on("close",d),function(){e.removeListener("complete",c),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",d)}}},4347(t,e,r){"use strict";var n=r(5606).process;function i(t,e){a(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,t)):n.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted?n.nextTick(o,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,t)):n.nextTick(i,r,t):e?(n.nextTick(o,r),e(t)):n.nextTick(o,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},4372(t,e,r){"use strict";var n=r(9675),i=r(6556)("TypedArray.prototype.buffer",!0),o=r(8769);t.exports=i||function(t){if(!o(t))throw new n("Not a Typed Array");return t.buffer}},4459(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},4529(t,e,r){"use strict";var n=r(5228);function i(t,e){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}function o(t){return r.g.Buffer&&"function"==typeof r.g.Buffer.isBuffer?r.g.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var a=r(4591),s=Object.prototype.hasOwnProperty,u=Array.prototype.slice,f="foo"===function(){}.name;function c(t){return Object.prototype.toString.call(t)}function l(t){return!o(t)&&"function"==typeof r.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer)))}var h=t.exports=b,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(a.isFunction(t)){if(f)return t.name;var e=t.toString().match(p);return e&&e[1]}}function y(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function _(t){if(f||!a.isFunction(t))return a.inspect(t);var e=d(t);return"[Function"+(e?": "+e:"")+"]"}function g(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function b(t,e){t||g(t,!0,e,"==",h.ok)}function v(t,e,r,n){if(t===e)return!0;if(o(t)&&o(e))return 0===i(t,e);if(a.isDate(t)&&a.isDate(e))return t.getTime()===e.getTime();if(a.isRegExp(t)&&a.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(l(t)&&l(e)&&c(t)===c(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(o(t)!==o(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&&s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(a.isPrimitive(t)||a.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=m(t),o=m(e);if(i&&!o||!i&&o)return!1;if(i)return v(t=u.call(t),e=u.call(e),r);var s,f,c=E(t),l=E(e);if(c.length!==l.length)return!1;for(c.sort(),l.sort(),f=c.length-1;f>=0;f--)if(c[f]!==l[f])return!1;for(f=c.length-1;f>=0;f--)if(!v(t[s=c[f]],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function m(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function w(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function S(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&g(i,r,"Missing expected exception"+n);var o="string"==typeof n,s=!t&&i&&!r;if((!t&&a.isError(i)&&o&&w(i,r)||s)&&g(i,r,"Got unwanted exception"+n),t&&i&&r&&!w(i,r)||!t&&i)throw i}h.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return y(_(t.actual),128)+" "+t.operator+" "+y(_(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},a.inherits(h.AssertionError,Error),h.fail=g,h.ok=b,h.equal=function(t,e,r){t!=e&&g(t,e,r,"==",h.equal)},h.notEqual=function(t,e,r){t==e&&g(t,e,r,"!=",h.notEqual)},h.deepEqual=function(t,e,r){v(t,e,!1)||g(t,e,r,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,r){v(t,e,!0)||g(t,e,r,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){v(t,e,!1)&&g(t,e,r,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&g(e,r,n,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,r){t!==e&&g(t,e,r,"===",h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&&g(t,e,r,"!==",h.notStrictEqual)},h.throws=function(t,e,r){S(!0,t,e,r)},h.doesNotThrow=function(t,e,r){S(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n(function t(e,r){e||g(e,!0,r,"==",t)},h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&&e.push(r);return e}},4552(t,e,r){"use strict";var n=r(5606).process,i=r(7244);if(r(4039)()||r(1333)()){var o=Symbol.iterator;t.exports=function(t){return null!=t&&void 0!==t[o]?t[o]():i(t)?Array.prototype[o].call(t):void 0}}else{var a=r(7738),s=r(4761),u=r(453),f=u("%Map%",!0),c=u("%Set%",!0),l=r(8075),h=l("Array.prototype.push"),p=l("String.prototype.charCodeAt"),d=l("String.prototype.slice"),y=function(t){var e=0;return{next:function(){var r,n=e>=t.length;return n||(r=t[e],e+=1),{done:n,value:r}}}},_=function(t,e){if(a(t)||i(t))return y(t);if(s(t)){var r=0;return{next:function(){var e=function(t,e){if(e+1>=t.length)return e+1;var r=p(t,e);if(r<55296||r>56319)return e+1;var n=p(t,e+1);return n<56320||n>57343?e+1:e+2}(t,r),n=d(t,r,e);return r=e,{done:e>t.length,value:n}}}}return e&&void 0!==t["_es6-shim iterator_"]?t["_es6-shim iterator_"]():void 0};if(f||c){var g=r(3802),b=r(256),v=l("Map.prototype.forEach",!0),m=l("Set.prototype.forEach",!0);if(void 0===n||!n.versions||!n.versions.node)var w=l("Map.prototype.iterator",!0),S=l("Set.prototype.iterator",!0),E=function(t){var e=!1;return{next:function(){try{return{done:e,value:e?void 0:t.next()}}catch(t){return e=!0,{done:!0,value:void 0}}}}};var A=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),O=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0);t.exports=function(t){return function(t){if(g(t)){if(w)return E(w(t));if(A)return A(t);if(v){var e=[];return v(t,function(t,r){h(e,[r,t])}),y(e)}}if(b(t)){if(S)return E(S(t));if(O)return O(t);if(m){var r=[];return m(t,function(t){h(r,t)}),y(r)}}}(t)||_(t)}}else t.exports=function(t){if(null!=t)return _(t,!0)}}},4555(t,e,r){var n=r(3908),i=r(1452),o=r(7372);t.exports=function(t){var e=i[t];if(!e)return null;var r=new n(e.p,16),a=new n(e.a,16),s=new n(e.b,16),u=new n(e.n,16),f=new n(e.h,16),c=new n(e.Gx,16),l=new n(e.Gy,16);return new o(r,a,s,c,l,u,f)}},4591(t,e,r){var n=r(5606).process,i=/%[sdj%]/g;e.format=function(t){if(!g(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(t).replace(i,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),u=n[r];r<o;u=n[++r])y(u)||!m(u)?a+=" "+u:a+=" "+s(u);return a},e.deprecate=function(t,i){if(b(r.g.process))return function(){return e.deprecate(t,i).apply(this,arguments)};if(!0===n.noDeprecation)return t;var o=!1;return function(){if(!o){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),o=!0}return t.apply(this,arguments)}};var o,a={};function s(t,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&e._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,t,n.depth)}function u(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function f(t,e){return t}function c(t,r,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return g(i)||(i=c(t,i,n)),i}var o=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(g(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return _(e)?t.stylize(""+e,"number"):d(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(o)return o;var a=Object.keys(r),s=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),S(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return l(r);if(0===a.length){if(E(r)){var u=r.name?": "+r.name:"";return t.stylize("[Function"+u+"]","special")}if(v(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return t.stylize(Date.prototype.toString.call(r),"date");if(S(r))return l(r)}var f,m="",A=!1,O=["{","}"];return p(r)&&(A=!0,O=["[","]"]),E(r)&&(m=" [Function"+(r.name?": "+r.name:"")+"]"),v(r)&&(m=" "+RegExp.prototype.toString.call(r)),w(r)&&(m=" "+Date.prototype.toUTCString.call(r)),S(r)&&(m=" "+l(r)),0!==a.length||A&&0!=r.length?n<0?v(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),f=A?function(t,e,r,n,i){for(var o=[],a=0,s=e.length;a<s;++a)j(e,String(a))?o.push(h(t,e,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(t,e,r,n,i,!0))}),o}(t,r,n,s,a):a.map(function(e){return h(t,r,n,s,e,A)}),t.seen.pop(),function(t,e,r){return t.reduce(function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(f,m,O)):O[0]+m+O[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),j(n,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n")):s=t.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function p(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function y(t){return null===t}function _(t){return"number"==typeof t}function g(t){return"string"==typeof t}function b(t){return void 0===t}function v(t){return m(t)&&"[object RegExp]"===A(t)}function m(t){return"object"==typeof t&&null!==t}function w(t){return m(t)&&"[object Date]"===A(t)}function S(t){return m(t)&&("[object Error]"===A(t)||t instanceof Error)}function E(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(b(o)&&(o={NODE_ENV:"production"}.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var r=n.pid;a[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else a[t]=function(){};return a[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=d,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=_,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=b,e.isRegExp=v,e.isObject=m,e.isDate=w,e.isError=S,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(3845);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[O((t=new Date).getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":"),[t.getDate(),x[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(6100),e._extend=function(t,e){if(!e||!m(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}},4636(t,e,r){var n;t.exports=(n=r(9021),function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],p=t[e+2],d=t[e+3],y=t[e+4],_=t[e+5],g=t[e+6],b=t[e+7],v=t[e+8],m=t[e+9],w=t[e+10],S=t[e+11],E=t[e+12],A=t[e+13],O=t[e+14],x=t[e+15],j=o[0],I=o[1],k=o[2],B=o[3];j=f(j,I,k,B,a,7,s[0]),B=f(B,j,I,k,u,12,s[1]),k=f(k,B,j,I,p,17,s[2]),I=f(I,k,B,j,d,22,s[3]),j=f(j,I,k,B,y,7,s[4]),B=f(B,j,I,k,_,12,s[5]),k=f(k,B,j,I,g,17,s[6]),I=f(I,k,B,j,b,22,s[7]),j=f(j,I,k,B,v,7,s[8]),B=f(B,j,I,k,m,12,s[9]),k=f(k,B,j,I,w,17,s[10]),I=f(I,k,B,j,S,22,s[11]),j=f(j,I,k,B,E,7,s[12]),B=f(B,j,I,k,A,12,s[13]),k=f(k,B,j,I,O,17,s[14]),j=c(j,I=f(I,k,B,j,x,22,s[15]),k,B,u,5,s[16]),B=c(B,j,I,k,g,9,s[17]),k=c(k,B,j,I,S,14,s[18]),I=c(I,k,B,j,a,20,s[19]),j=c(j,I,k,B,_,5,s[20]),B=c(B,j,I,k,w,9,s[21]),k=c(k,B,j,I,x,14,s[22]),I=c(I,k,B,j,y,20,s[23]),j=c(j,I,k,B,m,5,s[24]),B=c(B,j,I,k,O,9,s[25]),k=c(k,B,j,I,d,14,s[26]),I=c(I,k,B,j,v,20,s[27]),j=c(j,I,k,B,A,5,s[28]),B=c(B,j,I,k,p,9,s[29]),k=c(k,B,j,I,b,14,s[30]),j=l(j,I=c(I,k,B,j,E,20,s[31]),k,B,_,4,s[32]),B=l(B,j,I,k,v,11,s[33]),k=l(k,B,j,I,S,16,s[34]),I=l(I,k,B,j,O,23,s[35]),j=l(j,I,k,B,u,4,s[36]),B=l(B,j,I,k,y,11,s[37]),k=l(k,B,j,I,b,16,s[38]),I=l(I,k,B,j,w,23,s[39]),j=l(j,I,k,B,A,4,s[40]),B=l(B,j,I,k,a,11,s[41]),k=l(k,B,j,I,d,16,s[42]),I=l(I,k,B,j,g,23,s[43]),j=l(j,I,k,B,m,4,s[44]),B=l(B,j,I,k,E,11,s[45]),k=l(k,B,j,I,x,16,s[46]),j=h(j,I=l(I,k,B,j,p,23,s[47]),k,B,a,6,s[48]),B=h(B,j,I,k,b,10,s[49]),k=h(k,B,j,I,O,15,s[50]),I=h(I,k,B,j,_,21,s[51]),j=h(j,I,k,B,E,6,s[52]),B=h(B,j,I,k,d,10,s[53]),k=h(k,B,j,I,w,15,s[54]),I=h(I,k,B,j,u,21,s[55]),j=h(j,I,k,B,v,6,s[56]),B=h(B,j,I,k,x,10,s[57]),k=h(k,B,j,I,g,15,s[58]),I=h(I,k,B,j,A,21,s[59]),j=h(j,I,k,B,y,6,s[60]),B=h(B,j,I,k,S,10,s[61]),k=h(k,B,j,I,p,15,s[62]),I=h(I,k,B,j,m,21,s[63]),o[0]=o[0]+j|0,o[1]=o[1]+I|0,o[2]=o[2]+k|0,o[3]=o[3]+B|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,f=0;f<4;f++){var c=u[f];u[f]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function f(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+i+a;return(s<<o|s>>>32-o)+e}function c(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+i+a;return(s<<o|s>>>32-o)+e}function l(t,e,r,n,i,o,a){var s=t+(e^r^n)+i+a;return(s<<o|s>>>32-o)+e}function h(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(u),e.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)},4643(t,e,r){function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}},4729(t,e,r){"use strict";var n=r(2861).Buffer,i=r(1603).Transform;function o(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(6698)(o,i),o.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(t){n=t}r(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t){if(!n.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},4742(t,e,r){"use strict";var n=r(702);t.exports=Function.prototype.bind||n},4743(t,e,r){"use strict";var n,i=r(5606).process;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(5826),s=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(t,e){return{value:t,done:e}}function y(t){var e=t[s];if(null!==e){var r=t[p].read();null!==r&&(t[l]=null,t[s]=null,t[u]=null,e(d(r,!1)))}}function _(t){i.nextTick(y,t)}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(n={get stream(){return this[p]},next:function(){var t=this,e=this[f];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[f]?r(t[f]):e(d(void 0,!0))})});var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then(function(){e[c]?r(d(void 0,!0)):e[h](r,n)},n)}}(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var t=this;return new Promise(function(e,r){t[p].destroy(null,function(t){t?r(t):e(d(void 0,!0))})})}),n),g);t.exports=function(t){var e,r=Object.create(b,(o(e={},p,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,f,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var n=r[p].read();n?(r[l]=null,r[s]=null,r[u]=null,t(d(n,!1))):(r[s]=t,r[u]=e)},writable:!0}),e));return r[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[l]=null,r[s]=null,r[u]=null,e(t)),void(r[f]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[c]=!0}),t.on("readable",_.bind(null,r)),r}},4761(t,e,r){"use strict";var n=String.prototype.valueOf,i=Object.prototype.toString,o=r(9092)();t.exports=function(t){return"string"==typeof t||"object"==typeof t&&(o?function(t){try{return n.call(t),!0}catch(t){return!1}}(t):"[object String]"===i.call(t))}},4775(t){"use strict";var e,r,n=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw r}}),r={},i(function(){throw 42},null,e)}catch(t){t!==r&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=n.call(t);return o.test(e)}catch(t){return!1}},s=function(t){try{return!a(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),l=function(){return!1};if("object"==typeof document){var h=document.all;u.call(h)===u.call(document.all)&&(l=function(t){if((c||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})}t.exports=i?function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{i(t,null,e)}catch(t){if(t!==r)return!1}return!a(t)&&s(t)}:function(t){if(l(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(f)return s(t);if(a(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&s(t)}},4921(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),s=r(0,i.length-a.length),u=[],f=0;f<s;f++)u[f]="$"+f;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},4982(t,e,r){"use strict";var n=r(1189),i=r(7244),o=r(7653),a=r(4035),s=r(1589),u=r(1451),f=r(2120),c=r(1539),l=r(453),h=r(8075),p=r(7638),d=r(4552),y=r(920),_=r(5767),g=r(6525),b=h("Date.prototype.getTime"),v=Object.getPrototypeOf,m=h("Object.prototype.toString"),w=l("%Set%",!0),S=h("Map.prototype.has",!0),E=h("Map.prototype.get",!0),A=h("Map.prototype.size",!0),O=h("Set.prototype.add",!0),x=h("Set.prototype.delete",!0),j=h("Set.prototype.has",!0),I=h("Set.prototype.size",!0);function k(t,e,r,n){for(var i,o=d(t);(i=o.next())&&!i.done;)if(M(e,i.value,r,n))return x(t,i.value),!0;return!1}function B(t){return void 0===t?null:"object"!=typeof t?"symbol"!=typeof t&&("string"!=typeof t&&"number"!=typeof t||+t==+t):void 0}function T(t,e,r,n,i,o){var a=B(r);if(null!=a)return a;var s=E(e,a),u=g({},i,{strict:!1});return!(void 0===s&&!S(e,a)||!M(n,s,u,o))&&!S(t,a)&&M(n,s,u,o)}function R(t,e,r){var n=B(r);return null!=n?n:j(e,n)&&!j(t,n)}function P(t,e,r,n,i,o){for(var a,s,u=d(t);(a=u.next())&&!a.done;)if(M(r,s=a.value,i,o)&&M(n,E(e,s),i,o))return x(t,s),!0;return!1}function M(t,e,r,l){var h=r||{};if(h.strict?o(t,e):t===e)return!0;if(c(t)!==c(e))return!1;if(!t||!e||"object"!=typeof t&&"object"!=typeof e)return h.strict?o(t,e):t==e;var y,x=l.has(t),B=l.has(e);if(x&&B){if(l.get(t)===l.get(e))return!0}else y={};return x||l.set(t,y),B||l.set(e,y),function(t,e,r,o){var c,l;if(typeof t!=typeof e)return!1;if(null==t||null==e)return!1;if(m(t)!==m(e))return!1;if(i(t)!==i(e))return!1;if(u(t)!==u(e))return!1;var h=t instanceof Error,y=e instanceof Error;if(h!==y)return!1;if((h||y)&&(t.name!==e.name||t.message!==e.message))return!1;var x=a(t),B=a(e);if(x!==B)return!1;if((x||B)&&(t.source!==e.source||s(t)!==s(e)))return!1;var L=f(t),D=f(e);if(L!==D)return!1;if((L||D)&&b(t)!==b(e))return!1;if(r.strict&&v&&v(t)!==v(e))return!1;if(_(t)!==_(e))return!1;var C=U(t),F=U(e);if(C!==F)return!1;if(C||F){if(t.length!==e.length)return!1;for(c=0;c<t.length;c++)if(t[c]!==e[c])return!1;return!0}if(typeof t!=typeof e)return!1;var N=n(t),q=n(e);if(N.length!==q.length)return!1;for(N.sort(),q.sort(),c=N.length-1;c>=0;c--)if(N[c]!=q[c])return!1;for(c=N.length-1;c>=0;c--)if(!M(t[l=N[c]],e[l],r,o))return!1;var z=p(t),W=p(e);return z===W&&("Set"===z||"Set"===W?function(t,e,r,n){if(I(t)!==I(e))return!1;for(var i,o,a,s=d(t),u=d(e);(i=s.next())&&!i.done;)if(i.value&&"object"==typeof i.value)a||(a=new w),O(a,i.value);else if(!j(e,i.value)){if(r.strict)return!1;if(!R(t,e,i.value))return!1;a||(a=new w),O(a,i.value)}if(a){for(;(o=u.next())&&!o.done;)if(o.value&&"object"==typeof o.value){if(!k(a,o.value,r.strict,n))return!1}else if(!r.strict&&!j(t,o.value)&&!k(a,o.value,r.strict,n))return!1;return 0===I(a)}return!0}(t,e,r,o):"Map"!==z||function(t,e,r,n){if(A(t)!==A(e))return!1;for(var i,o,a,s,u,f,c=d(t),l=d(e);(i=c.next())&&!i.done;)if(s=i.value[0],u=i.value[1],s&&"object"==typeof s)a||(a=new w),O(a,s);else if(void 0===(f=E(e,s))&&!S(e,s)||!M(u,f,r,n)){if(r.strict)return!1;if(!T(t,e,s,u,r,n))return!1;a||(a=new w),O(a,s)}if(a){for(;(o=l.next())&&!o.done;)if(s=o.value[0],f=o.value[1],s&&"object"==typeof s){if(!P(a,t,s,f,r,n))return!1}else if(!(r.strict||t.has(s)&&M(E(t,s),f,r,n)||P(a,t,s,f,g({},r,{strict:!1}),n)))return!1;return 0===I(a)}return!0}(t,e,r,o))}(t,e,h,l)}function U(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0]||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))}t.exports=function(t,e,r){return M(t,e,r,y())}},5034(t,e,r){"use strict";var n,i=r(5606).process;function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=r(4257),s=Symbol("lastResolve"),u=Symbol("lastReject"),f=Symbol("error"),c=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function d(t,e){return{value:t,done:e}}function y(t){var e=t[s];if(null!==e){var r=t[p].read();null!==r&&(t[l]=null,t[s]=null,t[u]=null,e(d(r,!1)))}}function _(t){i.nextTick(y,t)}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((o(n={get stream(){return this[p]},next:function(){var t=this,e=this[f];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(d(void 0,!0));if(this[p].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[f]?r(t[f]):e(d(void 0,!0))})});var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then(function(){e[c]?r(d(void 0,!0)):e[h](r,n)},n)}}(n,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var t=this;return new Promise(function(e,r){t[p].destroy(null,function(t){t?r(t):e(d(void 0,!0))})})}),n),g);t.exports=function(t){var e,r=Object.create(b,(o(e={},p,{value:t,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,u,{value:null,writable:!0}),o(e,f,{value:null,writable:!0}),o(e,c,{value:t._readableState.endEmitted,writable:!0}),o(e,h,{value:function(t,e){var n=r[p].read();n?(r[l]=null,r[s]=null,r[u]=null,t(d(n,!1))):(r[s]=t,r[u]=e)},writable:!0}),e));return r[l]=null,a(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];return null!==e&&(r[l]=null,r[s]=null,r[u]=null,e(t)),void(r[f]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[u]=null,n(d(void 0,!0))),r[c]=!0}),t.on("readable",_.bind(null,r)),r}},5049(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},5128(t,e,r){"use strict";var n=r(8075),i=n("Boolean.prototype.toString"),o=n("Object.prototype.toString"),a=r(9092)();t.exports=function(t){return"boolean"==typeof t||null!==t&&"object"==typeof t&&(a&&Symbol.toStringTag in t?function(t){try{return i(t),!0}catch(t){return!1}}(t):"[object Boolean]"===o(t))}},5228(t){"use strict";var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var f in o=Object(arguments[u]))r.call(o,f)&&(s[f]=o[f]);if(e){a=e(o);for(var c=0;c<a.length;c++)n.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s}},5267(t,e,r){"use strict";var n,i=r(2463).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t){t()}function f(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var c,l=function(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var h=e.map(function(t,i){var o=i<e.length-1;return function(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",function(){s=!0}),void 0===n&&(n=r(4257)),n(t,{readable:e,writable:i},function(t){if(t)return o(t);s=!0,o()});var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}(t,o,i>0,function(t){c||(c=t),t&&h.forEach(u),o||(h.forEach(u),l(c))})});return e.reduce(f)}},5279(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},5330(t,e,r){"use strict";var n=r(7675),i=r(8452).supportsDescriptors,o=Object.getOwnPropertyDescriptor;t.exports=function(){if(i&&"gim"===/a/gim.flags){var t=o(RegExp.prototype,"flags");if(t&&"function"==typeof t.get&&"boolean"==typeof/a/.dotAll)return t.get}return n}},5339(t){"use strict";t.exports=function(){var t,e=Object.assign;return"function"==typeof e&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")}},5345(t){"use strict";t.exports=URIError},5364(t,e,r){"use strict";var n=r(2861).Buffer;t.exports=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),r=0;r<e.length;r++)e[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),a=o.charCodeAt(0);if(255!==e[a])throw new TypeError(o+" is ambiguous");e[a]=i}var s=t.length,u=t.charAt(0),f=Math.log(s)/Math.log(256),c=Math.log(256)/Math.log(s);function l(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return n.alloc(0);for(var r=0,i=0,o=0;t[r]===u;)i++,r++;for(var a=(t.length-r)*f+1>>>0,c=new Uint8Array(a);r<t.length;){var l=t.charCodeAt(r);if(l>255)return;var h=e[l];if(255===h)return;for(var p=0,d=a-1;(0!==h||p<o)&&-1!==d;d--,p++)h+=s*c[d]>>>0,c[d]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=p,r++}for(var y=a-o;y!==a&&0===c[y];)y++;var _=n.allocUnsafe(i+(a-y));_.fill(0,0,i);for(var g=i;y!==a;)_[g++]=c[y++];return _}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=n.from(e)),!n.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var r=0,i=0,o=0,a=e.length;o!==a&&0===e[o];)o++,r++;for(var f=(a-o)*c+1>>>0,l=new Uint8Array(f);o!==a;){for(var h=e[o],p=0,d=f-1;(0!==h||p<i)&&-1!==d;d--,p++)h+=256*l[d]>>>0,l[d]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");i=p,o++}for(var y=f-i;y!==f&&0===l[y];)y++;for(var _=u.repeat(r);y<f;++y)_+=t.charAt(l[y]);return _},decodeUnsafe:l,decode:function(t){var e=l(t);if(e)return e;throw new Error("Non-base"+s+" character")}}}},5377(t,e,r){"use strict";var n=r(2861).Buffer,i=r(2006),o=r(4372),a=ArrayBuffer.isView||function(t){try{return o(t),!0}catch(t){return!1}},s="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,f=u&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(u&&a(t)){if(0===t.byteLength)return n.alloc(0);if(f){var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),c=n.from(o);if(c.length===t.byteLength)return c}if(s&&t instanceof Uint8Array)return n.from(t);var l=i(t);if(l)for(var h=0;h<t.length;h+=1){var p=t[h];if("number"!=typeof p||p<0||p>255||~~p!==p)throw new RangeError("Array items must be numbers in the range 0-255.")}if(l||n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},5471(t,e,r){var n,i,o,a,s,u,f,c;t.exports=(i=(n=c=r(9021)).lib,o=i.WordArray,a=i.Hasher,s=n.algo,u=[],f=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],f=0;f<80;f++){if(f<16)u[f]=0|t[e+f];else{var c=u[f-3]^u[f-8]^u[f-14]^u[f-16];u[f]=c<<1|c>>>31}var l=(n<<5|n>>>27)+s+u[f];l+=f<20?1518500249+(i&o|~i&a):f<40?1859775393+(i^o^a):f<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),n.SHA1=a._createHelper(f),n.HmacSHA1=a._createHmacHelper(f),c.SHA1)},5499(t){"use strict";t.exports=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t}},5606(t){var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var s,u=[],f=!1,c=-1;function l(){f&&s&&(f=!1,s.length?u=s.concat(u):c=-1,u.length&&h())}function h(){if(!f){var t=a(l);f=!0;for(var e=u.length;e;){for(s=u,u=[];++c<e;)s&&s[c].run();c=-1,e=u.length}s=null,f=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(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];u.push(new p(t,e)),1!==u.length||f||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5680(t,e,r){"use strict";var n=r(7593),i=r(9209),o=r(8075),a=o("Object.prototype.toString"),s=r(9092)(),u="undefined"==typeof globalThis?r.g:globalThis,f=i(),c=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},l=o("String.prototype.slice"),h={},p=r(8957),d=Object.getPrototypeOf;s&&p&&d&&n(f,function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=d(e),n=p(r,Symbol.toStringTag);if(!n){var i=d(r);n=p(i,Symbol.toStringTag)}h[t]=n.get}}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!s||!(Symbol.toStringTag in t)){var e=l(a(t),8,-1);return c(f,e)>-1}return!!p&&function(t){var e=!1;return n(h,function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}}),e}(t)}},5767(t,e,r){"use strict";var n=r(7593),i=r(9209),o=r(8075),a=o("Object.prototype.toString"),s=r(9092)(),u="undefined"==typeof globalThis?r.g:globalThis,f=i(),c=o("String.prototype.slice"),l={},h=r(8957),p=Object.getPrototypeOf;s&&h&&p&&n(f,function(t){if("function"==typeof u[t]){var e=new u[t];if(Symbol.toStringTag in e){var r=p(e),n=h(r,Symbol.toStringTag);if(!n){var i=p(r);n=h(i,Symbol.toStringTag)}l[t]=n.get}}});var d=r(5680);t.exports=function(t){return!!d(t)&&(s&&Symbol.toStringTag in t?function(t){var e=!1;return n(l,function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}}),e}(t):c(a(t),8,-1))}},5795(t,e,r){"use strict";var n=r(6549);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},5825(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},5826(t,e,r){"use strict";var n=r(2260).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&e.readable,s=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||c()},f=e._writableState&&e._writableState.finished,c=function(){s=!1,f=!0,a||o.call(e)},l=e._readableState&&e._readableState.endEmitted,h=function(){a=!1,l=!0,s||o.call(e)},p=function(t){o.call(e,t)},d=function(){var t;return a&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):s&&!f?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},y=function(){e.req.on("finish",c)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",c),e.on("abort",d),e.req?y():e.on("request",y)):s&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",h),e.on("finish",c),!1!==r.error&&e.on("error",p),e.on("close",d),function(){e.removeListener("complete",c),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",h),e.removeListener("error",p),e.removeListener("close",d)}}},5851(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={core_asset:"ABC",address_prefix:"CBA",expire_in_secs:15,expire_in_secs_proposal:86400,review_in_secs_committee:86400,networks:{BitShares:{core_asset:"BTS",address_prefix:"BTS",chain_id:"4018d7844c78f6a6c41c6a552b898022310fc5dec06da467ee7905a8dad512c8"},Test:{core_asset:"TEST",address_prefix:"TEST",chain_id:"39f5e2ede1f8bc1a3a54a7914414e3779e33193f1f5693510e73cb7a87617447"}},setChainId:t=>{let e=Object.entries(r.networks).find(e=>{let[n,i]=e;if(i.chain_id===t)return r.network_name=n,i.address_prefix&&(r.address_prefix=i.address_prefix),!0});return e?{network_name:e[0],network:e[1]}:void console.log("Unknown chain id (this may be a testnet)",t)},reset:()=>{r.core_asset="ABC",r.address_prefix="CBA",r.expire_in_secs=15,r.expire_in_secs_proposal=86400,console.log("Chain config reset")},setPrefix:function(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"CBA";return r.address_prefix=t}},n=r;e.default=n},5860(t,e,r){"use strict";t.exports=i;var n=r(3054);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(6698)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},5880(t){"use strict";t.exports=Math.pow},5963(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(3145);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},6011(t,e,r){"use strict";var n=r(8287).Buffer,i=r(6698),o=r(4729),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(t,e){return t<<e|t>>>32-e}function y(t,e,r,n,i,o,a,s){return d(t+(e^r^n)+o+a|0,s)+i|0}function _(t,e,r,n,i,o,a,s){return d(t+(e&r|~e&n)+o+a|0,s)+i|0}function g(t,e,r,n,i,o,a,s){return d(t+((e|~r)^n)+o+a|0,s)+i|0}function b(t,e,r,n,i,o,a,s){return d(t+(e&n|r&~n)+o+a|0,s)+i|0}function v(t,e,r,n,i,o,a,s){return d(t+(e^(r|~n))+o+a|0,s)+i|0}i(p,o),p.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,m=0|this._a,w=0|this._b,S=0|this._c,E=0|this._d,A=0|this._e,O=0;O<80;O+=1){var x,j;O<16?(x=y(r,n,i,o,p,t[s[O]],l[0],f[O]),j=v(m,w,S,E,A,t[u[O]],h[0],c[O])):O<32?(x=_(r,n,i,o,p,t[s[O]],l[1],f[O]),j=b(m,w,S,E,A,t[u[O]],h[1],c[O])):O<48?(x=g(r,n,i,o,p,t[s[O]],l[2],f[O]),j=g(m,w,S,E,A,t[u[O]],h[2],c[O])):O<64?(x=b(r,n,i,o,p,t[s[O]],l[3],f[O]),j=_(m,w,S,E,A,t[u[O]],h[3],c[O])):(x=v(r,n,i,o,p,t[s[O]],l[4],f[O]),j=y(m,w,S,E,A,t[u[O]],h[4],c[O])),r=p,p=o,o=d(i,10),i=n,n=x,m=A,A=E,E=d(S,10),S=w,w=j}var I=this._b+i+E|0;this._b=this._c+o+A|0,this._c=this._d+p+m|0,this._d=this._e+r+w|0,this._e=this._a+n+S|0,this._a=I},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=p},6056(t,e,r){"use strict";var n=r(6897),i=r(655),o=r(3126),a=r(2205);t.exports=function(t){var e=o(arguments),r=t.length-(arguments.length-1);return n(e,1+(r>0?r:0),!0)},i?i(t.exports,"apply",{value:a}):t.exports.apply=a},6100(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},6168(t,e,r){"use strict";var n=r(2861).Buffer,i=r(8310).Transform,o=r(9579).I;function a(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(6698)(a,i);var s="undefined"!=typeof Uint8Array,u="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&ArrayBuffer.isView&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);a.prototype.update=function(t,e,r){var i=function(t,e){if(t instanceof n)return t;if("string"==typeof t)return n.from(t,e);if(u&&ArrayBuffer.isView(t)){if(0===t.byteLength)return n.alloc(0);var r=n.from(t.buffer,t.byteOffset,t.byteLength);if(r.byteLength===t.byteLength)return r}if(s&&t instanceof Uint8Array)return n.from(t);if(n.isBuffer(t)&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))return n.from(t);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(t,e),o=this._update(i);return this.hashMode?this:(r&&(o=this._toString(o,r)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){n=t}finally{r(n)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can’t switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=a},6188(t){"use strict";t.exports=Math.max},6355(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=a(e);if(r&&r.has(t))return r.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!=o&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=t[o]}return n.default=t,r&&r.set(t,n),n}(r(9762)),o=(n=r(8606))&&n.__esModule?n:{default:n};function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(a=function(t){return t?r:e})(t)}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.default=class{constructor(t){var e=this;let{url:r,urls:n,autoFallback:a,closeCb:u,optionalApis:f,urlChangeCallback:c}=t;s(this,"setCloseCb",t=>{this.closeCb=t}),s(this,"logFailure",(t,e,r)=>{let n=r&&r.message?r.message:"";console.error(t,"Failed to connect to "+e+(n?" Error: "+JSON.stringify(n):""))}),s(this,"_onClose",()=>{this.isConnected=!1,this.closeCb&&(this.closeCb(),this.setCloseCb(null)),this.autoFallback&&this.connectWithFallback()}),s(this,"connect",async function(){let t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e.url;try{let n=await i.instance(r,t,void 0,e.optionalApis,e._onClose).init_promise;return e.url=r,e.isConnected=!0,n}catch(t){throw await i.close(),t}}),s(this,"connectWithFallback",async function(){let t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:e.url,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;if(n>e.urls.length)return o(new Error("Tried "+n+" connections, none of which worked: "+JSON.stringify(e.urls.concat(e.url))));try{return await e.connect(t,r)}catch(r){return e.urlChangeCallback&&e.urlChangeCallback(e.urls[n]),e.connectWithFallback(t,e.urls[n],n+1,i,o)}}),s(this,"checkConnections",async function(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length?arguments[2]:void 0,i=3<arguments.length?arguments[3]:void 0,a={},s=e.urls.concat(e.url).map(async n=>{let i=new o.default(n,()=>{},void 0,!1);a[n]=(new Date).getTime();try{await i.login(t,r);let e={[n]:(new Date).getTime()-a[n]};return await i.close(),e}catch(t){return n===e.url?e.url=e.urls[0]:e.urls=e.urls.filter(t=>t!==n),void await i.close()}});try{let t=await Promise.all(s),e=t.filter(t=>!!t).sort((t,e)=>Object.values(t)[0]-Object.values(e)[0]).reduce((t,e)=>{let r=Object.keys(e)[0];return t[r]=e[r],t},{});return console.log(`Checked ${t.length} connections, ${t.length-Object.keys(e).length} failed`),e}catch(a){return e.checkConnections(t,r,n,i)}}),this.url=r,this.urls=n.filter(t=>t!==r),this.autoFallback=a,this.closeCb=u,this.optionalApis=f||{},this.isConnected=!1,this.urlChangeCallback=c}static close(){return i.close()}}},6389(t,e,r){"use strict";var n=r(8059);t.exports=Function.prototype.bind||n},6524(t,e,r){"use strict";var n=r(6711),i=r(972),o=r(6056),a=r(6556),s=r(5795),u=r(3628),f=a("Object.prototype.toString"),c=r(9011)(),l="undefined"==typeof globalThis?r.g:globalThis,h=i(),p=a("String.prototype.slice"),d=a("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};n(h,c&&s&&u?function(t){var e=new l[t];if(Symbol.toStringTag in e&&u){var r=u(e),n=s(r,Symbol.toStringTag);if(!n&&r){var i=u(r);n=s(i,Symbol.toStringTag)}y["$"+t]=o(n.get)}}:function(t){var e=new l[t],r=e.slice||e.set;r&&(y["$"+t]=o(r))}),t.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!c){var e=p(f(t),8,-1);return d(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return n(y,function(r,n){if(!e)try{r(t),e=p(n,1)}catch(t){}}),e}(t)}return s?function(t){var e=!1;return n(y,function(r,n){if(!e)try{"$"+r(t)===n&&(e=p(n,1))}catch(t){}}),e}(t):null}},6525(t,e,r){"use strict";var n=r(8452),i=r(487),o=r(8403),a=r(9133),s=r(984),u=i.apply(a()),f=function(t,e){return u(Object,arguments)};n(f,{getPolyfill:a,implementation:o,shim:s}),t.exports=f},6549(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},6556(t,e,r){"use strict";var n=r(978),i=r(3126),o=i([n("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i([r]):r}},6576(t,e,r){"use strict";var n=r(9394),i=r(8452);t.exports=function(){var t=n();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},6578(t){"use strict";t.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},6596(t,e,r){"use strict";t.exports=r(5339)()?Object.assign:r(3595)},6644(t,e,r){"use strict";var n=r(2463).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},6653(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),s=r(0,i.length-a.length),u=[],f=0;f<s;f++)u[f]="$"+f;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},6698(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},6710(t,e,r){"use strict";var n=r(6698),i=r(4107),o=r(392),a=r(2861).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},6711(t,e,r){"use strict";var n=r(4775),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){if(!n(e))throw new TypeError("iterator must be a function");var a,s;arguments.length>=3&&(a=r),s=t,"[object Array]"===i.call(s)?function(t,e,r){for(var n=0,i=t.length;n<i;n++)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a):"string"==typeof t?function(t,e,r){for(var n=0,i=t.length;n<i;n++)null==r?e(t.charAt(n),n,t):e.call(r,t.charAt(n),n,t)}(t,e,a):function(t,e,r){for(var n in t)o.call(t,n)&&(null==r?e(t[n],n,t):e.call(r,t[n],n,t))}(t,e,a)}},6736(t,e,r){"use strict";var n,i=r(5606).process;t.exports=O,O.ReadableState=A,r(7007).EventEmitter;var o,a=function(t,e){return t.listeners(e).length},s=r(1181),u=r(8287).Buffer,f=r.g.Uint8Array||function(){},c=r(2382);o=c&&c.debuglog?c.debuglog("stream"):function(){};var l,h,p,d=r(2389),y=r(1468),_=r(8775).getHighWaterMark,g=r(2260).F,b=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,m=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(O,s);var S=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(t,e,i){n=n||r(2818),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_(this,t,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(7137).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function O(t){if(n=n||r(2818),!(this instanceof O))return new O(t);var e=this instanceof n;this._readableState=new A(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function x(t,e,r,n,i){o("readableAddChunk",e);var a,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(o("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T(t)))}}(t,s);else if(i||(a=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],e)),r}(s,e)),a)S(t,a);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)s.endEmitted?S(t,new w):j(t,s,e,!0);else if(s.ended)S(t,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?j(t,s,e,!1):R(t,s)):j(t,s,e,!1)}else n||(s.reading=!1,R(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&B(t)),R(t,e)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(t,e){e(t)},O.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},O.prototype.unshift=function(t){return x(this,t,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(t){l||(l=r(7137).I);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function k(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>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(T,t))}function T(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(t)}function R(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(P,t,e))}function P(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(o("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function M(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function U(t){o("readable nexttick read 0"),t.read(0)}function L(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function F(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(N,e,t))}function N(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function q(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}O.prototype.read=function(t){o("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):B(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&F(this),null;var n,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&o("length less than watermark",i=!0),e.ended||e.reading?o("reading or ended",i=!1):i&&(o("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(r,e))),null===(n=t>0?C(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&F(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(t){S(this,new m("_read()"))},O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,e);var s=e&&!1===e.end||t===i.stdout||t===i.stderr?y:u;function u(){o("onend"),t.end()}n.endEmitted?i.nextTick(s):r.once("end",s),t.on("unpipe",function e(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",f),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",l),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())});var f=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,D(t))}}(r);t.on("drain",f);var c=!1;function l(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!c&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){o("onerror",e),y(),t.removeListener("error",h),0===a(t,"error")&&S(t,e)}function p(){t.removeListener("finish",d),y()}function d(){o("onfinish"),t.removeListener("close",p),y()}function y(){o("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",p),t.once("finish",d),t.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),t},O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},O.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?B(this):n.reading||i.nextTick(U,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(M,this),r},O.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(M,this),e},O.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(L,t,e))}(this,t)),t.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!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));for(var a=0;a<E.length;a++)t.on(E[a],this.emit.bind(this,E[a]));return this._read=function(e){o("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(4743)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),O._fromList=C,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(t,e){return void 0===p&&(p=r(5049)),p(O,t,e)})},6743(t,e,r){"use strict";var n=r(9353);t.exports=Function.prototype.bind||n},6763(t,e,r){var n=r(5364);t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},6873(t,e,r){"use strict";var n=r(4080),i=/^\s*class[\s{/}]/,o=Function.prototype.toString;t.exports=function(t){return!!n(t)&&!i.test(o.call(t))}},6891(t,e,r){"use strict";var n,i=r(5606).process;t.exports=O,O.ReadableState=A,r(7007).EventEmitter;var o,a=function(t,e){return t.listeners(e).length},s=r(1396),u=r(8287).Buffer,f=r.g.Uint8Array||function(){},c=r(7199);o=c&&c.debuglog?c.debuglog("stream"):function(){};var l,h,p,d=r(1766),y=r(4347),_=r(6644).getHighWaterMark,g=r(2463).F,b=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,m=g.ERR_METHOD_NOT_IMPLEMENTED,w=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(O,s);var S=y.errorOrDestroy,E=["error","close","destroy","pause","resume"];function A(t,e,i){n=n||r(8101),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=_(this,t,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(3516).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function O(t){if(n=n||r(8101),!(this instanceof O))return new O(t);var e=this instanceof n;this._readableState=new A(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function x(t,e,r,n,i){o("readableAddChunk",e);var a,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(o("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,T(t)))}}(t,s);else if(i||(a=function(t,e){var r,n;return n=e,u.isBuffer(n)||n instanceof f||"string"==typeof e||void 0===e||t.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],e)),r}(s,e)),a)S(t,a);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),n)s.endEmitted?S(t,new w):j(t,s,e,!0);else if(s.ended)S(t,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(e=s.decoder.write(e),s.objectMode||0!==e.length?j(t,s,e,!1):R(t,s)):j(t,s,e,!1)}else n||(s.reading=!1,R(t,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&B(t)),R(t,e)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(t,e){e(t)},O.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=u.from(t,e),e=""),r=!0),x(this,t,e,!1,r)},O.prototype.unshift=function(t){return x(this,t,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(t){l||(l=r(3516).I);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var I=1073741824;function k(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>=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function B(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(T,t))}function T(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(t)}function R(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(P,t,e))}function P(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(o("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function M(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function U(t){o("readable nexttick read 0"),t.read(0)}function L(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function F(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(N,e,t))}function N(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function q(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}O.prototype.read=function(t){o("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):B(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&F(this),null;var n,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&o("length less than watermark",i=!0),e.ended||e.reading?o("reading or ended",i=!1):i&&(o("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(r,e))),null===(n=t>0?C(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&F(this)),null!==n&&this.emit("data",n),n},O.prototype._read=function(t){S(this,new m("_read()"))},O.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,o("pipe count=%d opts=%j",n.pipesCount,e);var s=e&&!1===e.end||t===i.stdout||t===i.stderr?y:u;function u(){o("onend"),t.end()}n.endEmitted?i.nextTick(s):r.once("end",s),t.on("unpipe",function e(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",p),t.removeListener("finish",d),t.removeListener("drain",f),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",l),c=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||f())});var f=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,D(t))}}(r);t.on("drain",f);var c=!1;function l(e){o("ondata");var i=t.write(e);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==q(n.pipes,t))&&!c&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){o("onerror",e),y(),t.removeListener("error",h),0===a(t,"error")&&S(t,e)}function p(){t.removeListener("finish",d),y()}function d(){o("onfinish"),t.removeListener("close",p),y()}function y(){o("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",p),t.once("finish",d),t.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),t},O.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=q(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},O.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?B(this):n.reading||i.nextTick(U,this))),r},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(M,this),r},O.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(M,this),e},O.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(L,t,e))}(this,t)),t.paused=!1,this},O.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(e.push(i)||(n=!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));for(var a=0;a<E.length;a++)t.on(E[a],this.emit.bind(this,E[a]));return this._read=function(e){o("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(5034)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),O._fromList=C,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(t,e){return void 0===p&&(p=r(968)),p(O,t,e)})},6897(t,e,r){"use strict";var n=r(3273),i=r(41),o=r(592)(),a=r(991),s=r(9675),u=n("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,f=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(f=!1)}return(n||f||!r)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},7007(t){function e(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function n(t){return"object"==typeof t&&null!==t}function i(t){return void 0===t}t.exports=e,e.EventEmitter=e,e.prototype._events=void 0,e.prototype._maxListeners=void 0,e.defaultMaxListeners=10,e.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},e.prototype.emit=function(t){var e,o,a,s,u,f;if(this._events||(this._events={}),"error"===t&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(i(o=this._events[t]))return!1;if(r(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),o.apply(this,s)}else if(n(o))for(s=Array.prototype.slice.call(arguments,1),a=(f=o.slice()).length,u=0;u<a;u++)f[u].apply(this,s);return!0},e.prototype.addListener=function(t,o){var a;if(!r(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(o.listener)?o.listener:o),this._events[t]?n(this._events[t])?this._events[t].push(o):this._events[t]=[this._events[t],o]:this._events[t]=o,n(this._events[t])&&!this._events[t].warned&&(a=i(this._maxListeners)?e.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},e.prototype.on=e.prototype.addListener,e.prototype.once=function(t,e){if(!r(e))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}return i.listener=e,this.on(t,i),this},e.prototype.removeListener=function(t,e){var i,o,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(i=this._events[t]).length,o=-1,i===e||r(i.listener)&&i.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(n(i)){for(s=a;s-- >0;)if(i[s]===e||i[s].listener&&i[s].listener===e){o=s;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},e.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},e.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},e.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},e.listenerCount=function(t,e){return t.listenerCount(e)}},7108(t,e,r){"use strict";var n=r(6698),i=r(8276),o=r(6011),a=r(2802),s=r(6168);function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},7119(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},7134(t,e,r){"use strict";var n=r(7381);t.exports=function(t){if(!n(t))throw new TypeError("Cannot use null or undefined");return t}},7137(t,e,r){"use strict";var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=l,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function c(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function l(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=a(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},7165(t,e,r){var n,i,o,a,s,u,f,c,l,h,p,d,y,_,g,b,v,m,w;t.exports=(n=r(9021),r(9506),void(n.lib.Cipher||(i=n,o=i.lib,a=o.Base,s=o.WordArray,u=o.BufferedBlockAlgorithm,f=i.enc,f.Utf8,c=f.Base64,l=i.algo.EvpKDF,h=o.Cipher=u.extend({cfg:a.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?w:v}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),o.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=i.mode={},d=o.BlockCipherMode=a.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),y=p.CBC=function(){var t=d.extend();function e(t,e,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o<r;o++)t[e+o]^=n[o]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i),n.encryptBlock(t,r),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);n.decryptBlock(t,r),e.call(this,t,r,i),this._prevBlock=o}}),t}(),_=(i.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,i=n<<24|n<<16|n<<8|n,o=[],a=0;a<n;a+=4)o.push(i);var u=s.create(o,n);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=h.extend({cfg:h.cfg.extend({mode:y,padding:_}),reset:function(){var t;h.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),g=o.CipherParams=a.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),b=(i.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?s.create([1398893684,1701076831]).concat(r).concat(e):e).toString(c)},parse:function(t){var e,r=c.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=s.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:e})}},v=o.SerializableCipher=a.extend({cfg:a.extend({format:b}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),a=i.cfg;return g.create({ciphertext:o,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),m=(i.kdf={}).OpenSSL={execute:function(t,e,r,n,i){if(n||(n=s.random(8)),i)o=l.create({keySize:e+r,hasher:i}).compute(t,n);else var o=l.create({keySize:e+r}).compute(t,n);var a=s.create(o.words.slice(e),4*r);return o.sigBytes=4*e,g.create({key:o,iv:a,salt:n})}},w=o.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:m}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize,n.salt,n.hasher);n.iv=i.iv;var o=v.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt,n.hasher);return n.iv=i.iv,v.decrypt.call(this,t,e,i.key,n)}}))))},7176(t,e,r){"use strict";var n,i=r(3126),o=r(5795);try{n=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;t.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(t){return u(null==t?t:s(t))}},7199(){},7239(t,e,r){"use strict";var n,i=r(9383),o=r(1237),a=r(9290),s=r(9538),u=r(8068),f=r(9675),c=r(5345),l=Function,h=function(t){try{return l('"use strict"; return ('+t+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(t){p=null}var d=function(){throw new f},y=p?function(){try{return d}catch(t){try{return p(arguments,"callee").get}catch(t){return d}}}():d,_=r(957)(),g=r(24)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},m="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&b?b(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":y,"%TypedArray%":m,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(t){var S=b(b(t));w["%Error.prototype%"]=S}var E=function t(e){var r;if("%AsyncFunction%"===e)r=h("async function () {}");else if("%GeneratorFunction%"===e)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=h("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&b&&(r=b(i.prototype))}return w[e]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(6389),x=r(9957),j=O.call(Function.call,Array.prototype.concat),I=O.call(Function.apply,Array.prototype.splice),k=O.call(Function.call,String.prototype.replace),B=O.call(Function.call,String.prototype.slice),T=O.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,M=function(t,e){var r,n=t;if(x(A,n)&&(n="%"+(r=A[n])[0]+"%"),x(w,n)){var i=w[n];if(i===v&&(i=E(n)),void 0===i&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=B(t,0,1),r=B(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(t,R,function(t,e,r,i){n[n.length]=r?k(i,P,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=M("%"+n+"%",e),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],I(r,j([0,1],c)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],y=B(d,0,1),_=B(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===_||"'"===_||"`"===_)&&y!==_)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),x(w,o="%"+(n+="."+d)+"%"))a=w[o];else if(null!=a){if(!(d in a)){if(!e)throw new f("base intrinsic for "+t+" exists, but the property is not available.");return}if(p&&l+1>=r.length){var g=p(a,d);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else h=x(a,d),a=a[d];h&&!s&&(w[o]=a)}}return a}},7244(t,e,r){"use strict";var n=r(9092)(),i=r(8075)("Object.prototype.toString"),o=function(t){return!(n&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},a=function(t){return!!o(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},7372(t,e,r){var n=r(4529),i=r(3908),o=r(4109);function a(t,e,r,n,a,s,u){this.p=t,this.a=e,this.b=r,this.G=o.fromAffine(this,n,a),this.n=s,this.h=u,this.infinity=new o(this,null,null,i.ZERO),this.pOverFour=t.add(i.ONE).shiftRight(2),this.pLength=Math.floor((this.p.bitLength()+7)/8)}a.prototype.pointFromX=function(t,e){var r=e.pow(3).add(this.a.multiply(e)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),n=r;return r.isEven()^!t&&(n=this.p.subtract(n)),o.fromAffine(this,e,n)},a.prototype.isInfinity=function(t){return t===this.infinity||0===t.z.signum()&&0!==t.y.signum()},a.prototype.isOnCurve=function(t){if(this.isInfinity(t))return!0;var e=t.affineX,r=t.affineY,n=this.a,i=this.b,o=this.p;if(e.signum()<0||e.compareTo(o)>=0)return!1;if(r.signum()<0||r.compareTo(o)>=0)return!1;var a=r.square().mod(o),s=e.pow(3).add(n.multiply(e)).add(i).mod(o);return a.equals(s)},a.prototype.validate=function(t){n(!this.isInfinity(t),"Point is at infinity"),n(this.isOnCurve(t),"Point is not on the curve");var e=t.multiply(this.n);return n(this.isInfinity(e),"Point is not a scalar multiple of G"),!0},t.exports=a},7381(t,e,r){"use strict";var n=r(8392)();t.exports=function(t){return t!==n&&null!==t}},7526(t,e){"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=s(t),a=o[0],u=o[1],f=new i(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),c=0,l=u>0?a-4:a;for(r=0;r<l;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[c++]=e>>16&255,f[c++]=e>>8&255,f[c++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[c++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[c++]=e>>8&255,f[c++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,u=n-i;s<u;s+=a)o.push(f(t,s,s+a>u?u:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function f(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(u(n));return i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},7585(t,e,r){"use strict";var n,i=r(9383),o=r(1237),a=r(9290),s=r(9538),u=r(8068),f=r(9675),c=r(5345),l=Function,h=function(t){try{return l('"use strict"; return ('+t+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(t){p=null}var d=function(){throw new f},y=p?function(){try{return d}catch(t){try{return p(arguments,"callee").get}catch(t){return d}}}():d,_=r(5963)(),g=r(24)(),b=Object.getPrototypeOf||(g?function(t){return t.__proto__}:null),v={},m="undefined"!=typeof Uint8Array&&b?b(Uint8Array):n,w={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":_&&b?b([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":v,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&b?b(b([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&b?b((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&b?b((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&b?b(""[Symbol.iterator]()):n,"%Symbol%":_?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":y,"%TypedArray%":m,"%TypeError%":f,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(b)try{null.error}catch(t){var S=b(b(t));w["%Error.prototype%"]=S}var E=function t(e){var r;if("%AsyncFunction%"===e)r=h("async function () {}");else if("%GeneratorFunction%"===e)r=h("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=h("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&b&&(r=b(i.prototype))}return w[e]=r,r},A={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=r(675),x=r(9957),j=O.call(Function.call,Array.prototype.concat),I=O.call(Function.apply,Array.prototype.splice),k=O.call(Function.call,String.prototype.replace),B=O.call(Function.call,String.prototype.slice),T=O.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,M=function(t,e){var r,n=t;if(x(A,n)&&(n="%"+(r=A[n])[0]+"%"),x(w,n)){var i=w[n];if(i===v&&(i=E(n)),void 0===i&&!e)throw new f("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new f("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new f('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=B(t,0,1),r=B(t,-1);if("%"===e&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return k(t,R,function(t,e,r,i){n[n.length]=r?k(i,P,"$1"):e||t}),n}(t),n=r.length>0?r[0]:"",i=M("%"+n+"%",e),o=i.name,a=i.value,s=!1,c=i.alias;c&&(n=c[0],I(r,j([0,1],c)));for(var l=1,h=!0;l<r.length;l+=1){var d=r[l],y=B(d,0,1),_=B(d,-1);if(('"'===y||"'"===y||"`"===y||'"'===_||"'"===_||"`"===_)&&y!==_)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&h||(s=!0),x(w,o="%"+(n+="."+d)+"%"))a=w[o];else if(null!=a){if(!(d in a)){if(!e)throw new f("base intrinsic for "+t+" exists, but the property is not available.");return}if(p&&l+1>=r.length){var g=p(a,d);a=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[d]}else h=x(a,d),a=a[d];h&&!s&&(w[o]=a)}}return a}},7593(t){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(t,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var a=0;a<o;a++)n.call(i,t[a],a,t);else for(var s in t)e.call(t,s)&&n.call(i,t[s],s,t)}},7638(t,e,r){"use strict";var n=r(3802),i=r(256),o=r(7842),a=r(2648);t.exports=function(t){if(t&&"object"==typeof t){if(n(t))return"Map";if(i(t))return"Set";if(o(t))return"WeakMap";if(a(t))return"WeakSet"}return!1}},7653(t,e,r){"use strict";var n=r(8452),i=r(487),o=r(9211),a=r(9394),s=r(6576),u=i(a(),Object);n(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},7675(t){"use strict";var e=Object,r=TypeError;t.exports=function(){if(null!=this&&this!==e(this))throw new r("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t}},7738(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},7816(t,e,r){"use strict";var n=r(6698),i=r(392),o=r(2861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function f(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function l(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var h=0;h<80;++h){var p=~~(h/20),d=f(r)+l(p,n,i,o)+s+e[h]+a[p]|0;s=o,o=i,i=c(n),n=r,r=d}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},7842(t){"use strict";var e,r="function"==typeof WeakMap&&WeakMap.prototype?WeakMap:null,n="function"==typeof WeakSet&&WeakSet.prototype?WeakSet:null;r||(e=function(t){return!1});var i=r?r.prototype.has:null,o=n?n.prototype.has:null;e||i||(e=function(t){return!1}),t.exports=e||function(t){if(!t||"object"!=typeof t)return!1;try{if(i.call(t,i),o)try{o.call(t,o)}catch(t){return!0}return t instanceof r}catch(t){}return!1}},8002(t){"use strict";t.exports=Math.min},8028(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),s=r(0,i.length-a.length),u=[],f=0;f<s;f++)u[f]="$"+f;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},8059(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),s=r(0,i.length-a.length),u=[],f=0;f<s;f++)u[f]="$"+f;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},8068(t){"use strict";t.exports=SyntaxError},8075(t,e,r){"use strict";var n=r(453),i=r(487),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},8101(t,e,r){"use strict";var n=r(5606).process,i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=c;var o=r(6891),a=r(1999);r(6698)(c,o);for(var s=i(a.prototype),u=0;u<s.length;u++){var f=s[u];c.prototype[f]||(c.prototype[f]=a.prototype[f])}function c(t){if(!(this instanceof c))return new c(t);o.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||n.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},8165(t){"use strict";var e=Object.prototype.toString,r=Math.max,n=function(t,e){for(var r=[],n=0;n<t.length;n+=1)r[n]=t[n];for(var i=0;i<e.length;i+=1)r[i+t.length]=e[i];return r};t.exports=function(t){var i=this;if("function"!=typeof i||"[object Function]"!==e.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a=function(t){for(var e=[],r=1,n=0;r<t.length;r+=1,n+=1)e[n]=t[r];return e}(arguments),s=r(0,i.length-a.length),u=[],f=0;f<s;f++)u[f]="$"+f;if(o=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(u)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var e=i.apply(this,n(a,arguments));return Object(e)===e?e:this}return i.apply(t,n(a,arguments))}),i.prototype){var c=function(){};c.prototype=i.prototype,o.prototype=new c,c.prototype=null}return o}},8175(t){"use strict";t.exports=function(t){return null!=t}},8263(t,e,r){"use strict";var n=r(8175),i=r(6873),o=r(6596),a=r(148),s=r(214),u=t.exports=function(t,e){var r,i,u,f,c;return arguments.length<2||"string"!=typeof t?(f=e,e=t,t=null):f=arguments[2],n(t)?(r=s.call(t,"c"),i=s.call(t,"e"),u=s.call(t,"w")):(r=u=!0,i=!1),c={value:e,configurable:r,enumerable:i,writable:u},f?o(a(f),c):c};u.gs=function(t,e,r){var u,f,c,l;return"string"!=typeof t?(c=r,r=e,e=t,t=null):c=arguments[3],n(e)?i(e)?n(r)?i(r)||(c=r,r=void 0):r=void 0:(c=e,e=r=void 0):e=void 0,n(t)?(u=s.call(t,"c"),f=s.call(t,"e")):(u=!0,f=!1),l={get:e,set:r,configurable:u,enumerable:f},c?o(a(c),l):l}},8264(t,e,r){var n,i,o;i=[r(4)],n=function(t){"use strict";var e=function(t,r,i){if(void 0===t&&(t=e.DEFAULT_CAPACITY),void 0===r&&(r=e.DEFAULT_ENDIAN),void 0===i&&(i=e.DEFAULT_NOASSERT),!i){if((t|=0)<0)throw RangeError("Illegal capacity");r=!!r,i=!!i}this.buffer=0===t?n:new ArrayBuffer(t),this.view=0===t?null:new Uint8Array(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=t,this.littleEndian=r,this.noAssert=i};e.VERSION="5.0.1",e.LITTLE_ENDIAN=!0,e.BIG_ENDIAN=!1,e.DEFAULT_CAPACITY=16,e.DEFAULT_ENDIAN=e.BIG_ENDIAN,e.DEFAULT_NOASSERT=!1,e.Long=t||null;var r=e.prototype;r.__isByteBuffer__,Object.defineProperty(r,"__isByteBuffer__",{value:!0,enumerable:!1,configurable:!1});var n=new ArrayBuffer(0),i=String.fromCharCode;function o(t){var e=0;return function(){return e<t.length?t.charCodeAt(e++):null}}function a(){var t=[],e=[];return function(){if(0===arguments.length)return e.join("")+i.apply(String,t);t.length+arguments.length>1024&&(e.push(i.apply(String,t)),t.length=0),Array.prototype.push.apply(t,arguments)}}function s(t,e,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,f=u>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+l],l+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=f}return(p?-1:1)*a*Math.pow(2,o-n)}function u(t,e,r,n,i,o){var a,s,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=c?(s=0,a=c):a+l>=1?(s=(e*u-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+p]=255&a,p+=d,a/=256,f-=8);t[r+p-d]|=128*y}e.accessor=function(){return Uint8Array},e.allocate=function(t,r,n){return new e(t,r,n)},e.concat=function(t,r,n,i){"boolean"!=typeof r&&"string"==typeof r||(i=n,n=r,r=void 0);for(var o,a=0,s=0,u=t.length;s<u;++s)e.isByteBuffer(t[s])||(t[s]=e.wrap(t[s],r)),(o=t[s].limit-t[s].offset)>0&&(a+=o);if(0===a)return new e(0,n,i);var f,c=new e(a,n,i);for(s=0;s<u;)(o=(f=t[s++]).limit-f.offset)<=0||(c.view.set(f.view.subarray(f.offset,f.limit),c.offset),c.offset+=o);return c.limit=c.offset,c.offset=0,c},e.isByteBuffer=function(t){return!0===(t&&t.__isByteBuffer__)},e.type=function(){return ArrayBuffer},e.wrap=function(t,n,i,o){if("string"!=typeof n&&(o=i,i=n,n=void 0),"string"==typeof t)switch(void 0===n&&(n="utf8"),n){case"base64":return e.fromBase64(t,i);case"hex":return e.fromHex(t,i);case"binary":return e.fromBinary(t,i);case"utf8":return e.fromUTF8(t,i);case"debug":return e.fromDebug(t,i);default:throw Error("Unsupported encoding: "+n)}if(null===t||"object"!=typeof t)throw TypeError("Illegal buffer");var a;if(e.isByteBuffer(t))return(a=r.clone.call(t)).markedOffset=-1,a;if(t instanceof Uint8Array)a=new e(0,i,o),t.length>0&&(a.buffer=t.buffer,a.offset=t.byteOffset,a.limit=t.byteOffset+t.byteLength,a.view=new Uint8Array(t.buffer));else if(t instanceof ArrayBuffer)a=new e(0,i,o),t.byteLength>0&&(a.buffer=t,a.offset=0,a.limit=t.byteLength,a.view=t.byteLength>0?new Uint8Array(t):null);else{if("[object Array]"!==Object.prototype.toString.call(t))throw TypeError("Illegal buffer");(a=new e(t.length,i,o)).limit=t.length;for(var s=0;s<t.length;++s)a.view[s]=t[s]}return a},r.writeBitSet=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if(!(t instanceof Array))throw TypeError("Illegal BitSet: Not an array");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var n,i=e,o=t.length,a=o>>3,s=0;for(e+=this.writeVarint32(o,e);a--;)n=1&!!t[s++]|(1&!!t[s++])<<1|(1&!!t[s++])<<2|(1&!!t[s++])<<3|(1&!!t[s++])<<4|(1&!!t[s++])<<5|(1&!!t[s++])<<6|(1&!!t[s++])<<7,this.writeByte(n,e++);if(s<o){var u=0;for(n=0;s<o;)n|=(1&!!t[s++])<<u++;this.writeByte(n,e++)}return r?(this.offset=e,this):e-i},r.readBitSet=function(t){var e=void 0===t;e&&(t=this.offset);var r,n=this.readVarint32(t),i=n.value,o=i>>3,a=0,s=[];for(t+=n.length;o--;)r=this.readByte(t++),s[a++]=!!(1&r),s[a++]=!!(2&r),s[a++]=!!(4&r),s[a++]=!!(8&r),s[a++]=!!(16&r),s[a++]=!!(32&r),s[a++]=!!(64&r),s[a++]=!!(128&r);if(a<i){var u=0;for(r=this.readByte(t++);a<i;)s[a++]=!!(r>>u++&1)}return e&&(this.offset=t),s},r.readBytes=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+"+t+") <= "+this.buffer.byteLength)}var n=this.slice(e,e+t);return r&&(this.offset+=t),n},r.writeBytes=r.append,r.writeInt8=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=1;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=1,this.view[e]=t,r&&(this.offset+=1),this},r.writeByte=r.writeInt8,r.readInt8=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=this.view[t];return 128&~r||(r=-(255-r+1)),e&&(this.offset+=1),r},r.readByte=r.readInt8,r.writeUint8=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=1;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=1,this.view[e]=t,r&&(this.offset+=1),this},r.writeUInt8=r.writeUint8,r.readUint8=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r=this.view[t];return e&&(this.offset+=1),r},r.readUInt8=r.readUint8,r.writeInt16=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=2;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=2,this.littleEndian?(this.view[e+1]=(65280&t)>>>8,this.view[e]=255&t):(this.view[e]=(65280&t)>>>8,this.view[e+1]=255&t),r&&(this.offset+=2),this},r.writeShort=r.writeInt16,r.readInt16=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t],r|=this.view[t+1]<<8):(r=this.view[t]<<8,r|=this.view[t+1]),32768&~r||(r=-(65535-r+1)),e&&(this.offset+=2),r},r.readShort=r.readInt16,r.writeUint16=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=2;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=2,this.littleEndian?(this.view[e+1]=(65280&t)>>>8,this.view[e]=255&t):(this.view[e]=(65280&t)>>>8,this.view[e+1]=255&t),r&&(this.offset+=2),this},r.writeUInt16=r.writeUint16,r.readUint16=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+2>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+2) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t],r|=this.view[t+1]<<8):(r=this.view[t]<<8,r|=this.view[t+1]),e&&(this.offset+=2),r},r.readUInt16=r.readUint16,r.writeInt32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=4,this.littleEndian?(this.view[e+3]=t>>>24&255,this.view[e+2]=t>>>16&255,this.view[e+1]=t>>>8&255,this.view[e]=255&t):(this.view[e]=t>>>24&255,this.view[e+1]=t>>>16&255,this.view[e+2]=t>>>8&255,this.view[e+3]=255&t),r&&(this.offset+=4),this},r.writeInt=r.writeInt32,r.readInt32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0),r|=0,e&&(this.offset+=4),r},r.readInt=r.readInt32,r.writeUint32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=4,this.littleEndian?(this.view[e+3]=t>>>24&255,this.view[e+2]=t>>>16&255,this.view[e+1]=t>>>8&255,this.view[e]=255&t):(this.view[e]=t>>>24&255,this.view[e+1]=t>>>16&255,this.view[e+2]=t>>>8&255,this.view[e+3]=255&t),r&&(this.offset+=4),this},r.writeUInt32=r.writeUint32,r.readUint32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=0;return this.littleEndian?(r=this.view[t+2]<<16,r|=this.view[t+1]<<8,r|=this.view[t],r+=this.view[t+3]<<24>>>0):(r=this.view[t+1]<<16,r|=this.view[t+2]<<8,r|=this.view[t+3],r+=this.view[t]<<24>>>0),e&&(this.offset+=4),r},r.readUInt32=r.readUint32,t&&(r.writeInt64=function(e,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e)),r+=8;var i=this.buffer.byteLength;r>i&&this.resize((i*=2)>r?i:r),r-=8;var o=e.low,a=e.high;return this.littleEndian?(this.view[r+3]=o>>>24&255,this.view[r+2]=o>>>16&255,this.view[r+1]=o>>>8&255,this.view[r]=255&o,r+=4,this.view[r+3]=a>>>24&255,this.view[r+2]=a>>>16&255,this.view[r+1]=a>>>8&255,this.view[r]=255&a):(this.view[r]=a>>>24&255,this.view[r+1]=a>>>16&255,this.view[r+2]=a>>>8&255,this.view[r+3]=255&a,r+=4,this.view[r]=o>>>24&255,this.view[r+1]=o>>>16&255,this.view[r+2]=o>>>8&255,this.view[r+3]=255&o),n&&(this.offset+=8),this},r.writeLong=r.writeInt64,r.readInt64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var n=0,i=0;this.littleEndian?(n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0,e+=4,i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0,e+=4,n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0);var o=new t(n,i,!1);return r&&(this.offset+=8),o},r.readLong=r.readInt64,r.writeUint64=function(e,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"==typeof e)e=t.fromNumber(e);else if("string"==typeof e)e=t.fromString(e);else if(!(e&&e instanceof t))throw TypeError("Illegal value: "+e+" (not an integer or Long)");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e)),r+=8;var i=this.buffer.byteLength;r>i&&this.resize((i*=2)>r?i:r),r-=8;var o=e.low,a=e.high;return this.littleEndian?(this.view[r+3]=o>>>24&255,this.view[r+2]=o>>>16&255,this.view[r+1]=o>>>8&255,this.view[r]=255&o,r+=4,this.view[r+3]=a>>>24&255,this.view[r+2]=a>>>16&255,this.view[r+1]=a>>>8&255,this.view[r]=255&a):(this.view[r]=a>>>24&255,this.view[r+1]=a>>>16&255,this.view[r+2]=a>>>8&255,this.view[r+3]=255&a,r+=4,this.view[r]=o>>>24&255,this.view[r+1]=o>>>16&255,this.view[r+2]=o>>>8&255,this.view[r+3]=255&o),n&&(this.offset+=8),this},r.writeUInt64=r.writeUint64,r.readUint64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+8) <= "+this.buffer.byteLength)}var n=0,i=0;this.littleEndian?(n=this.view[e+2]<<16,n|=this.view[e+1]<<8,n|=this.view[e],n+=this.view[e+3]<<24>>>0,e+=4,i=this.view[e+2]<<16,i|=this.view[e+1]<<8,i|=this.view[e],i+=this.view[e+3]<<24>>>0):(i=this.view[e+1]<<16,i|=this.view[e+2]<<8,i|=this.view[e+3],i+=this.view[e]<<24>>>0,e+=4,n=this.view[e+1]<<16,n|=this.view[e+2]<<8,n|=this.view[e+3],n+=this.view[e]<<24>>>0);var o=new t(n,i,!0);return r&&(this.offset+=8),o},r.readUInt64=r.readUint64),r.writeFloat32=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=4;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=4,u(this.view,t,e,this.littleEndian,23,4),r&&(this.offset+=4),this},r.writeFloat=r.writeFloat32,r.readFloat32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var r=s(this.view,t,this.littleEndian,23,4);return e&&(this.offset+=4),r},r.readFloat=r.readFloat32,r.writeFloat64=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof t)throw TypeError("Illegal value: "+t+" (not a number)");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}e+=8;var n=this.buffer.byteLength;return e>n&&this.resize((n*=2)>e?n:e),e-=8,u(this.view,t,e,this.littleEndian,52,8),r&&(this.offset+=8),this},r.writeDouble=r.writeFloat64,r.readFloat64=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+8>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+8) <= "+this.buffer.byteLength)}var r=s(this.view,t,this.littleEndian,52,8);return e&&(this.offset+=8),r},r.readDouble=r.readFloat64,e.MAX_VARINT32_BYTES=5,e.calculateVarint32=function(t){return(t>>>=0)<128?1:t<16384?2:t<1<<21?3:t<1<<28?4:5},e.zigZagEncode32=function(t){return((t|=0)<<1^t>>31)>>>0},e.zigZagDecode32=function(t){return t>>>1^-(1&t)},r.writeVarint32=function(t,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var i,o=e.calculateVarint32(t);r+=o;var a=this.buffer.byteLength;for(r>a&&this.resize((a*=2)>r?a:r),r-=o,t>>>=0;t>=128;)i=127&t|128,this.view[r++]=i,t>>>=7;return this.view[r++]=t,n?(this.offset=r,this):o},r.writeVarint32ZigZag=function(t,r){return this.writeVarint32(e.zigZagEncode32(t),r)},r.readVarint32=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r,n=0,i=0;do{if(!this.noAssert&&t>this.limit){var o=Error("Truncated");throw o.truncated=!0,o}r=this.view[t++],n<5&&(i|=(127&r)<<7*n),++n}while(128&r);return i|=0,e?(this.offset=t,i):{value:i,length:n}},r.readVarint32ZigZag=function(t){var r=this.readVarint32(t);return"object"==typeof r?r.value=e.zigZagDecode32(r.value):r=e.zigZagDecode32(r),r},t&&(e.MAX_VARINT64_BYTES=10,e.calculateVarint64=function(e){"number"==typeof e?e=t.fromNumber(e):"string"==typeof e&&(e=t.fromString(e));var r=e.toInt()>>>0,n=e.shiftRightUnsigned(28).toInt()>>>0,i=e.shiftRightUnsigned(56).toInt()>>>0;return 0==i?0==n?r<16384?r<128?1:2:r<1<<21?3:4:n<16384?n<128?5:6:n<1<<21?7:8:i<128?9:10},e.zigZagEncode64=function(e){return"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftLeft(1).xor(e.shiftRight(63)).toUnsigned()},e.zigZagDecode64=function(e){return"number"==typeof e?e=t.fromNumber(e,!1):"string"==typeof e?e=t.fromString(e,!1):!1!==e.unsigned&&(e=e.toSigned()),e.shiftRightUnsigned(1).xor(e.and(t.ONE).toSigned().negate()).toSigned()},r.writeVarint64=function(r,n){var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"==typeof r)r=t.fromNumber(r);else if("string"==typeof r)r=t.fromString(r);else if(!(r&&r instanceof t))throw TypeError("Illegal value: "+r+" (not an integer or Long)");if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}"number"==typeof r?r=t.fromNumber(r,!1):"string"==typeof r?r=t.fromString(r,!1):!1!==r.unsigned&&(r=r.toSigned());var o=e.calculateVarint64(r),a=r.toInt()>>>0,s=r.shiftRightUnsigned(28).toInt()>>>0,u=r.shiftRightUnsigned(56).toInt()>>>0;n+=o;var f=this.buffer.byteLength;switch(n>f&&this.resize((f*=2)>n?f:n),n-=o,o){case 10:this.view[n+9]=u>>>7&1;case 9:this.view[n+8]=9!==o?128|u:127&u;case 8:this.view[n+7]=8!==o?s>>>21|128:s>>>21&127;case 7:this.view[n+6]=7!==o?s>>>14|128:s>>>14&127;case 6:this.view[n+5]=6!==o?s>>>7|128:s>>>7&127;case 5:this.view[n+4]=5!==o?128|s:127&s;case 4:this.view[n+3]=4!==o?a>>>21|128:a>>>21&127;case 3:this.view[n+2]=3!==o?a>>>14|128:a>>>14&127;case 2:this.view[n+1]=2!==o?a>>>7|128:a>>>7&127;case 1:this.view[n]=1!==o?128|a:127&a}return i?(this.offset+=o,this):o},r.writeVarint64ZigZag=function(t,r){return this.writeVarint64(e.zigZagEncode64(t),r)},r.readVarint64=function(e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=e,i=0,o=0,a=0,s=0;if(i=127&(s=this.view[e++]),128&s&&(i|=(127&(s=this.view[e++]))<<7,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[e++]))<<14,(128&s||this.noAssert&&void 0===s)&&(i|=(127&(s=this.view[e++]))<<21,(128&s||this.noAssert&&void 0===s)&&(o=127&(s=this.view[e++]),(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[e++]))<<7,(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[e++]))<<14,(128&s||this.noAssert&&void 0===s)&&(o|=(127&(s=this.view[e++]))<<21,(128&s||this.noAssert&&void 0===s)&&(a=127&(s=this.view[e++]),(128&s||this.noAssert&&void 0===s)&&(a|=(127&(s=this.view[e++]))<<7,128&s||this.noAssert&&void 0===s))))))))))throw Error("Buffer overrun");var u=t.fromBits(i|o<<28,o>>>4|a<<24,!1);return r?(this.offset=e,u):{value:u,length:e-n}},r.readVarint64ZigZag=function(r){var n=this.readVarint64(r);return n&&n.value instanceof t?n.value=e.zigZagDecode64(n.value):n=e.zigZagDecode64(n),n}),r.writeCString=function(t,e){var r=void 0===e;r&&(e=this.offset);var n,i=t.length;if(!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");for(n=0;n<i;++n)if(0===t.charCodeAt(n))throw RangeError("Illegal str: Contains NULL-characters");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}i=c.calculateUTF16asUTF8(o(t))[1],e+=i+1;var a=this.buffer.byteLength;return e>a&&this.resize((a*=2)>e?a:e),e-=i+1,c.encodeUTF16toUTF8(o(t),function(t){this.view[e++]=t}.bind(this)),this.view[e++]=0,r?(this.offset=e,this):i},r.readCString=function(t){var e=void 0===t;if(e&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var r,n=t,i=-1;return c.decodeUTF8toUTF16(function(){if(0===i)return null;if(t>=this.limit)throw RangeError("Illegal range: Truncated data, "+t+" < "+this.limit);return 0===(i=this.view[t++])?null:i}.bind(this),r=a(),!0),e?(this.offset=t,r()):{string:r(),length:t-n}},r.writeIString=function(t,e){var r=void 0===e;if(r&&(e=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var n,i=e;n=c.calculateUTF16asUTF8(o(t),this.noAssert)[1],e+=4+n;var a=this.buffer.byteLength;if(e>a&&this.resize((a*=2)>e?a:e),e-=4+n,this.littleEndian?(this.view[e+3]=n>>>24&255,this.view[e+2]=n>>>16&255,this.view[e+1]=n>>>8&255,this.view[e]=255&n):(this.view[e]=n>>>24&255,this.view[e+1]=n>>>16&255,this.view[e+2]=n>>>8&255,this.view[e+3]=255&n),e+=4,c.encodeUTF16toUTF8(o(t),function(t){this.view[e++]=t}.bind(this)),e!==i+4+n)throw RangeError("Illegal range: Truncated data, "+e+" == "+(e+4+n));return r?(this.offset=e,this):e-i},r.readIString=function(t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+4>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+4) <= "+this.buffer.byteLength)}var n=t,i=this.readUint32(t),o=this.readUTF8String(i,e.METRICS_BYTES,t+=4);return t+=o.length,r?(this.offset=t,o.string):{string:o.string,length:t-n}},e.METRICS_CHARS="c",e.METRICS_BYTES="b",r.writeUTF8String=function(t,e){var r,n=void 0===e;if(n&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: "+e+" (not an integer)");if((e>>>=0)<0||e+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+0) <= "+this.buffer.byteLength)}var i=e;r=c.calculateUTF16asUTF8(o(t))[1],e+=r;var a=this.buffer.byteLength;return e>a&&this.resize((a*=2)>e?a:e),e-=r,c.encodeUTF16toUTF8(o(t),function(t){this.view[e++]=t}.bind(this)),n?(this.offset=e,this):e-i},r.writeString=r.writeUTF8String,e.calculateUTF8Chars=function(t){return c.calculateUTF16asUTF8(o(t))[0]},e.calculateUTF8Bytes=function(t){return c.calculateUTF16asUTF8(o(t))[1]},e.calculateString=e.calculateUTF8Bytes,r.readUTF8String=function(t,r,n){"number"==typeof r&&(n=r,r=void 0);var i=void 0===n;if(i&&(n=this.offset),void 0===r&&(r=e.METRICS_CHARS),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");if(t|=0,"number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}var o,s=0,u=n;if(r===e.METRICS_CHARS){if(o=a(),c.decodeUTF8(function(){return s<t&&n<this.limit?this.view[n++]:null}.bind(this),function(t){++s,c.UTF8toUTF16(t,o)}),s!==t)throw RangeError("Illegal range: Truncated data, "+s+" == "+t);return i?(this.offset=n,o()):{string:o(),length:n-u}}if(r===e.METRICS_BYTES){if(!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+t>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+"+t+") <= "+this.buffer.byteLength)}var f=n+t;if(c.decodeUTF8toUTF16(function(){return n<f?this.view[n++]:null}.bind(this),o=a(),this.noAssert),n!==f)throw RangeError("Illegal range: Truncated data, "+n+" == "+f);return i?(this.offset=n,o()):{string:o(),length:n-u}}throw TypeError("Unsupported metrics: "+r)},r.readString=r.readUTF8String,r.writeVString=function(t,r){var n=void 0===r;if(n&&(r=this.offset),!this.noAssert){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if("number"!=typeof r||r%1!=0)throw TypeError("Illegal offset: "+r+" (not an integer)");if((r>>>=0)<0||r+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+r+" (+0) <= "+this.buffer.byteLength)}var i,a,s=r;i=c.calculateUTF16asUTF8(o(t),this.noAssert)[1],a=e.calculateVarint32(i),r+=a+i;var u=this.buffer.byteLength;if(r>u&&this.resize((u*=2)>r?u:r),r-=a+i,r+=this.writeVarint32(i,r),c.encodeUTF16toUTF8(o(t),function(t){this.view[r++]=t}.bind(this)),r!==s+i+a)throw RangeError("Illegal range: Truncated data, "+r+" == "+(r+i+a));return n?(this.offset=r,this):r-s},r.readVString=function(t){var r=void 0===t;if(r&&(t=this.offset),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+1) <= "+this.buffer.byteLength)}var n=t,i=this.readVarint32(t),o=this.readUTF8String(i.value,e.METRICS_BYTES,t+=i.length);return t+=o.length,r?(this.offset=t,o.string):{string:o.string,length:t-n}},r.append=function(t,r,n){"number"!=typeof r&&"string"==typeof r||(n=r,r=void 0);var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}t instanceof e||(t=e.wrap(t,r));var o=t.limit-t.offset;if(o<=0)return this;n+=o;var a=this.buffer.byteLength;return n>a&&this.resize((a*=2)>n?a:n),n-=o,this.view.set(t.view.subarray(t.offset,t.limit),n),t.offset+=o,i&&(this.offset+=o),this},r.appendTo=function(t,e){return t.append(this,e),this},r.assert=function(t){return this.noAssert=!t,this},r.capacity=function(){return this.buffer.byteLength},r.clear=function(){return this.offset=0,this.limit=this.buffer.byteLength,this.markedOffset=-1,this},r.clone=function(t){var r=new e(0,this.littleEndian,this.noAssert);return t?(r.buffer=new ArrayBuffer(this.buffer.byteLength),r.view=new Uint8Array(r.buffer)):(r.buffer=this.buffer,r.view=this.view),r.offset=this.offset,r.markedOffset=this.markedOffset,r.limit=this.limit,r},r.compact=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}if(0===t&&e===this.buffer.byteLength)return this;var r=e-t;if(0===r)return this.buffer=n,this.view=null,this.markedOffset>=0&&(this.markedOffset-=t),this.offset=0,this.limit=0,this;var i=new ArrayBuffer(r),o=new Uint8Array(i);return o.set(this.view.subarray(t,e)),this.buffer=i,this.view=o,this.markedOffset>=0&&(this.markedOffset-=t),this.offset=0,this.limit=r,this},r.copy=function(t,r){if(void 0===t&&(t=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,t<0||t>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+r+" <= "+this.buffer.byteLength)}if(t===r)return new e(0,this.littleEndian,this.noAssert);var n=r-t,i=new e(n,this.littleEndian,this.noAssert);return i.offset=0,i.limit=n,i.markedOffset>=0&&(i.markedOffset-=t),this.copyTo(i,0,t,r),i},r.copyTo=function(t,r,n,i){var o,a;if(!this.noAssert&&!e.isByteBuffer(t))throw TypeError("Illegal target: Not a ByteBuffer");if(r=(a=void 0===r)?t.offset:0|r,n=(o=void 0===n)?this.offset:0|n,i=void 0===i?this.limit:0|i,r<0||r>t.buffer.byteLength)throw RangeError("Illegal target range: 0 <= "+r+" <= "+t.buffer.byteLength);if(n<0||i>this.buffer.byteLength)throw RangeError("Illegal source range: 0 <= "+n+" <= "+this.buffer.byteLength);var s=i-n;return 0===s?t:(t.ensureCapacity(r+s),t.view.set(this.view.subarray(n,i),r),o&&(this.offset+=s),a&&(t.offset+=s),this)},r.ensureCapacity=function(t){var e=this.buffer.byteLength;return e<t?this.resize((e*=2)>t?e:t):this},r.fill=function(t,e,r){var n=void 0===e;if(n&&(e=this.offset),"string"==typeof t&&t.length>0&&(t=t.charCodeAt(0)),void 0===e&&(e=this.offset),void 0===r&&(r=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal value: "+t+" (not an integer)");if(t|=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal end: Not an integer");if(r>>>=0,e<0||e>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(e>=r)return this;for(;e<r;)this.view[e++]=t;return n&&(this.offset=e),this},r.flip=function(){return this.limit=this.offset,this.offset=0,this},r.mark=function(t){if(t=void 0===t?this.offset:t,!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal offset: "+t+" (not an integer)");if((t>>>=0)<0||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}return this.markedOffset=t,this},r.order=function(t){if(!this.noAssert&&"boolean"!=typeof t)throw TypeError("Illegal littleEndian: Not a boolean");return this.littleEndian=!!t,this},r.LE=function(t){return this.littleEndian=void 0===t||!!t,this},r.BE=function(t){return this.littleEndian=void 0!==t&&!t,this},r.prepend=function(t,r,n){"number"!=typeof r&&"string"==typeof r||(n=r,r=void 0);var i=void 0===n;if(i&&(n=this.offset),!this.noAssert){if("number"!=typeof n||n%1!=0)throw TypeError("Illegal offset: "+n+" (not an integer)");if((n>>>=0)<0||n+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+n+" (+0) <= "+this.buffer.byteLength)}t instanceof e||(t=e.wrap(t,r));var o=t.limit-t.offset;if(o<=0)return this;var a=o-n;if(a>0){var s=new ArrayBuffer(this.buffer.byteLength+a),u=new Uint8Array(s);u.set(this.view.subarray(n,this.buffer.byteLength),o),this.buffer=s,this.view=u,this.offset+=a,this.markedOffset>=0&&(this.markedOffset+=a),this.limit+=a,n+=a}else new Uint8Array(this.buffer);return this.view.set(t.view.subarray(t.offset,t.limit),n-o),t.offset=t.limit,i&&(this.offset-=o),this},r.prependTo=function(t,e){return t.prepend(this,e),this},r.printDebug=function(t){"function"!=typeof t&&(t=console.log.bind(console)),t(this.toString()+"\n-------------------------------------------------------------------\n"+this.toDebug(!0))},r.remaining=function(){return this.limit-this.offset},r.reset=function(){return this.markedOffset>=0?(this.offset=this.markedOffset,this.markedOffset=-1):this.offset=0,this},r.resize=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal capacity: "+t+" (not an integer)");if((t|=0)<0)throw RangeError("Illegal capacity: 0 <= "+t)}if(this.buffer.byteLength<t){var e=new ArrayBuffer(t),r=new Uint8Array(e);r.set(this.view),this.buffer=e,this.view=r}return this},r.reverse=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}return t===e||Array.prototype.reverse.call(this.view.subarray(t,e)),this},r.skip=function(t){if(!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal length: "+t+" (not an integer)");t|=0}var e=this.offset+t;if(!this.noAssert&&(e<0||e>this.buffer.byteLength))throw RangeError("Illegal length: 0 <= "+this.offset+" + "+t+" <= "+this.buffer.byteLength);return this.offset=e,this},r.slice=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}var r=this.clone();return r.offset=t,r.limit=e,r},r.toBuffer=function(t){var e=this.offset,r=this.limit;if(!this.noAssert){if("number"!=typeof e||e%1!=0)throw TypeError("Illegal offset: Not an integer");if(e>>>=0,"number"!=typeof r||r%1!=0)throw TypeError("Illegal limit: Not an integer");if(r>>>=0,e<0||e>r||r>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+r+" <= "+this.buffer.byteLength)}if(!t&&0===e&&r===this.buffer.byteLength)return this.buffer;if(e===r)return n;var i=new ArrayBuffer(r-e);return new Uint8Array(i).set(new Uint8Array(this.buffer).subarray(e,r),0),i},r.toArrayBuffer=r.toBuffer,r.toString=function(t,e,r){if(void 0===t)return"ByteBufferAB(offset="+this.offset+",markedOffset="+this.markedOffset+",limit="+this.limit+",capacity="+this.capacity()+")";switch("number"==typeof t&&(r=e=t="utf8"),t){case"utf8":return this.toUTF8(e,r);case"base64":return this.toBase64(e,r);case"hex":return this.toHex(e,r);case"binary":return this.toBinary(e,r);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+t)}};var f=function(){for(var t={},e=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],r=[],n=0,i=e.length;n<i;++n)r[e[n]]=n;return t.encode=function(t,r){for(var n,i;null!==(n=t());)r(e[n>>2&63]),i=(3&n)<<4,null!==(n=t())?(r(e[63&((i|=n>>4&15)|n>>4&15)]),i=(15&n)<<2,null!==(n=t())?(r(e[63&(i|n>>6&3)]),r(e[63&n])):(r(e[63&i]),r(61))):(r(e[63&i]),r(61),r(61))},t.decode=function(t,e){var n,i,o;function a(t){throw Error("Illegal character code: "+t)}for(;null!==(n=t());)if(void 0===(i=r[n])&&a(n),null!==(n=t())&&(void 0===(o=r[n])&&a(n),e(i<<2>>>0|(48&o)>>4),null!==(n=t()))){if(void 0===(i=r[n])){if(61===n)break;a(n)}if(e((15&o)<<4>>>0|(60&i)>>2),null!==(n=t())){if(void 0===(o=r[n])){if(61===n)break;a(n)}e((3&i)<<6>>>0|o)}}},t.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)},t}();r.toBase64=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),e|=0,(t|=0)<0||e>this.capacity||t>e)throw RangeError("begin, end");var r;return f.encode(function(){return t<e?this.view[t++]:null}.bind(this),r=a()),r()},e.fromBase64=function(t,r){if("string"!=typeof t)throw TypeError("str");var n=new e(t.length/4*3,r),i=0;return f.decode(o(t),function(t){n.view[i++]=t}),n.limit=i,n},e.btoa=function(t){return e.fromBinary(t).toBase64()},e.atob=function(t){return e.fromBase64(t).toBinary()},r.toBinary=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),e|=0,(t|=0)<0||e>this.capacity()||t>e)throw RangeError("begin, end");if(t===e)return"";for(var r=[],n=[];t<e;)r.push(this.view[t++]),r.length>=1024&&(n.push(String.fromCharCode.apply(String,r)),r=[]);return n.join("")+String.fromCharCode.apply(String,r)},e.fromBinary=function(t,r){if("string"!=typeof t)throw TypeError("str");for(var n,i=0,o=t.length,a=new e(o,r);i<o;){if((n=t.charCodeAt(i))>255)throw RangeError("illegal char code: "+n);a.view[i++]=n}return a.limit=o,a},r.toDebug=function(t){for(var e,r=-1,n=this.buffer.byteLength,i="",o="",a="";r<n;){if(-1!==r&&(i+=(e=this.view[r])<16?"0"+e.toString(16).toUpperCase():e.toString(16).toUpperCase(),t&&(o+=e>32&&e<127?String.fromCharCode(e):".")),++r,t&&r>0&&r%16==0&&r!==n){for(;i.length<51;)i+=" ";a+=i+o+"\n",i=o=""}r===this.offset&&r===this.limit?i+=r===this.markedOffset?"!":"|":r===this.offset?i+=r===this.markedOffset?"[":"<":r===this.limit?i+=r===this.markedOffset?"]":">":i+=r===this.markedOffset?"'":t||0!==r&&r!==n?" ":""}if(t&&" "!==i){for(;i.length<51;)i+=" ";a+=i+o+"\n"}return t?a:i},e.fromDebug=function(t,r,n){for(var i,o,a=t.length,s=new e((a+1)/3|0,r,n),u=0,f=0,c=!1,l=!1,h=!1,p=!1,d=!1;u<a;){switch(i=t.charAt(u++)){case"!":if(!n){if(l||h||p){d=!0;break}l=h=p=!0}s.offset=s.markedOffset=s.limit=f,c=!1;break;case"|":if(!n){if(l||p){d=!0;break}l=p=!0}s.offset=s.limit=f,c=!1;break;case"[":if(!n){if(l||h){d=!0;break}l=h=!0}s.offset=s.markedOffset=f,c=!1;break;case"<":if(!n){if(l){d=!0;break}l=!0}s.offset=f,c=!1;break;case"]":if(!n){if(p||h){d=!0;break}p=h=!0}s.limit=s.markedOffset=f,c=!1;break;case">":if(!n){if(p){d=!0;break}p=!0}s.limit=f,c=!1;break;case"'":if(!n){if(h){d=!0;break}h=!0}s.markedOffset=f,c=!1;break;case" ":c=!1;break;default:if(!n&&c){d=!0;break}if(o=parseInt(i+t.charAt(u++),16),!n&&(isNaN(o)||o<0||o>255))throw TypeError("Illegal str: Not a debug encoded string");s.view[f++]=o,c=!0}if(d)throw TypeError("Illegal str: Invalid symbol at "+u)}if(!n){if(!l||!p)throw TypeError("Illegal str: Missing offset or limit");if(f<s.buffer.byteLength)throw TypeError("Illegal str: Not a debug encoded string (is it hex?) "+f+" < "+a)}return s},r.toHex=function(t,e){if(t=void 0===t?this.offset:t,e=void 0===e?this.limit:e,!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}for(var r,n=new Array(e-t);t<e;)(r=this.view[t++])<16?n.push("0",r.toString(16)):n.push(r.toString(16));return n.join("")},e.fromHex=function(t,r,n){if(!n){if("string"!=typeof t)throw TypeError("Illegal str: Not a string");if(t.length%2!=0)throw TypeError("Illegal str: Length not a multiple of 2")}for(var i,o=t.length,a=new e(o/2|0,r),s=0,u=0;s<o;s+=2){if(i=parseInt(t.substring(s,s+2),16),!n&&(!isFinite(i)||i<0||i>255))throw TypeError("Illegal str: Contains non-hex characters");a.view[u++]=i}return a.limit=u,a};var c=function(){var t={MAX_CODEPOINT:1114111,encodeUTF8:function(t,e){var r=null;for("number"==typeof t&&(r=t,t=function(){return null});null!==r||null!==(r=t());)r<128?e(127&r):r<2048?(e(r>>6&31|192),e(63&r|128)):r<65536?(e(r>>12&15|224),e(r>>6&63|128),e(63&r|128)):(e(r>>18&7|240),e(r>>12&63|128),e(r>>6&63|128),e(63&r|128)),r=null},decodeUTF8:function(t,e){for(var r,n,i,o,a=function(t){t=t.slice(0,t.indexOf(null));var e=Error(t.toString());throw e.name="TruncatedError",e.bytes=t,e};null!==(r=t());)if(128&r)if(192==(224&r))null===(n=t())&&a([r,n]),e((31&r)<<6|63&n);else if(224==(240&r))(null===(n=t())||null===(i=t()))&&a([r,n,i]),e((15&r)<<12|(63&n)<<6|63&i);else{if(240!=(248&r))throw RangeError("Illegal starting byte: "+r);(null===(n=t())||null===(i=t())||null===(o=t()))&&a([r,n,i,o]),e((7&r)<<18|(63&n)<<12|(63&i)<<6|63&o)}else e(r)},UTF16toUTF8:function(t,e){for(var r,n=null;null!==(r=null!==n?n:t());)r>=55296&&r<=57343&&null!==(n=t())&&n>=56320&&n<=57343?(e(1024*(r-55296)+n-56320+65536),n=null):e(r);null!==n&&e(n)},UTF8toUTF16:function(t,e){var r=null;for("number"==typeof t&&(r=t,t=function(){return null});null!==r||null!==(r=t());)r<=65535?e(r):(e(55296+((r-=65536)>>10)),e(r%1024+56320)),r=null},encodeUTF16toUTF8:function(e,r){t.UTF16toUTF8(e,function(e){t.encodeUTF8(e,r)})},decodeUTF8toUTF16:function(e,r){t.decodeUTF8(e,function(e){t.UTF8toUTF16(e,r)})},calculateCodePoint:function(t){return t<128?1:t<2048?2:t<65536?3:4},calculateUTF8:function(t){for(var e,r=0;null!==(e=t());)r+=e<128?1:e<2048?2:e<65536?3:4;return r},calculateUTF16asUTF8:function(e){var r=0,n=0;return t.UTF16toUTF8(e,function(t){++r,n+=t<128?1:t<2048?2:t<65536?3:4}),[r,n]}};return t}();return r.toUTF8=function(t,e){if(void 0===t&&(t=this.offset),void 0===e&&(e=this.limit),!this.noAssert){if("number"!=typeof t||t%1!=0)throw TypeError("Illegal begin: Not an integer");if(t>>>=0,"number"!=typeof e||e%1!=0)throw TypeError("Illegal end: Not an integer");if(e>>>=0,t<0||t>e||e>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+t+" <= "+e+" <= "+this.buffer.byteLength)}var r;try{c.decodeUTF8toUTF16(function(){return t<e?this.view[t++]:null}.bind(this),r=a())}catch(r){if(t!==e)throw RangeError("Illegal range: Truncated data, "+t+" != "+e)}return r()},e.fromUTF8=function(t,r,n){if(!n&&"string"!=typeof t)throw TypeError("Illegal str: Not a string");var i=new e(c.calculateUTF16asUTF8(o(t),!0)[1],r,n),a=0;return c.encodeUTF16toUTF8(o(t),function(t){i.view[a++]=t}),i.limit=a,i},e},void 0===(o=n.apply(e,i))||(t.exports=o)},8276(t,e,r){"use strict";var n=r(6698),i=r(4729),o=r(2861).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function f(t,e,r,n,i,o,a){return u(t+(e&r|~e&n)+i+o|0,a)+e|0}function c(t,e,r,n,i,o,a){return u(t+(e&n|r&~n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return u(t+(e^r^n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return u(t+(r^(e|~n))+i+o|0,a)+e|0}n(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,t[0],3614090360,7),o=f(o,r,n,i,t[1],3905402710,12),i=f(i,o,r,n,t[2],606105819,17),n=f(n,i,o,r,t[3],3250441966,22),r=f(r,n,i,o,t[4],4118548399,7),o=f(o,r,n,i,t[5],1200080426,12),i=f(i,o,r,n,t[6],2821735955,17),n=f(n,i,o,r,t[7],4249261313,22),r=f(r,n,i,o,t[8],1770035416,7),o=f(o,r,n,i,t[9],2336552879,12),i=f(i,o,r,n,t[10],4294925233,17),n=f(n,i,o,r,t[11],2304563134,22),r=f(r,n,i,o,t[12],1804603682,7),o=f(o,r,n,i,t[13],4254626195,12),i=f(i,o,r,n,t[14],2792965006,17),r=c(r,n=f(n,i,o,r,t[15],1236535329,22),i,o,t[1],4129170786,5),o=c(o,r,n,i,t[6],3225465664,9),i=c(i,o,r,n,t[11],643717713,14),n=c(n,i,o,r,t[0],3921069994,20),r=c(r,n,i,o,t[5],3593408605,5),o=c(o,r,n,i,t[10],38016083,9),i=c(i,o,r,n,t[15],3634488961,14),n=c(n,i,o,r,t[4],3889429448,20),r=c(r,n,i,o,t[9],568446438,5),o=c(o,r,n,i,t[14],3275163606,9),i=c(i,o,r,n,t[3],4107603335,14),n=c(n,i,o,r,t[8],1163531501,20),r=c(r,n,i,o,t[13],2850285829,5),o=c(o,r,n,i,t[2],4243563512,9),i=c(i,o,r,n,t[7],1735328473,14),r=l(r,n=c(n,i,o,r,t[12],2368359562,20),i,o,t[5],4294588738,4),o=l(o,r,n,i,t[8],2272392833,11),i=l(i,o,r,n,t[11],1839030562,16),n=l(n,i,o,r,t[14],4259657740,23),r=l(r,n,i,o,t[1],2763975236,4),o=l(o,r,n,i,t[4],1272893353,11),i=l(i,o,r,n,t[7],4139469664,16),n=l(n,i,o,r,t[10],3200236656,23),r=l(r,n,i,o,t[13],681279174,4),o=l(o,r,n,i,t[0],3936430074,11),i=l(i,o,r,n,t[3],3572445317,16),n=l(n,i,o,r,t[6],76029189,23),r=l(r,n,i,o,t[9],3654602809,4),o=l(o,r,n,i,t[12],3873151461,11),i=l(i,o,r,n,t[15],530742520,16),r=h(r,n=l(n,i,o,r,t[2],3299628645,23),i,o,t[0],4096336452,6),o=h(o,r,n,i,t[7],1126891415,10),i=h(i,o,r,n,t[14],2878612391,15),n=h(n,i,o,r,t[5],4237533241,21),r=h(r,n,i,o,t[12],1700485571,6),o=h(o,r,n,i,t[3],2399980690,10),i=h(i,o,r,n,t[10],4293915773,15),n=h(n,i,o,r,t[1],2240044497,21),r=h(r,n,i,o,t[8],1873313359,6),o=h(o,r,n,i,t[15],4264355552,10),i=h(i,o,r,n,t[6],2734768916,15),n=h(n,i,o,r,t[13],1309151649,21),r=h(r,n,i,o,t[4],4149444226,6),o=h(o,r,n,i,t[11],3174756917,10),i=h(i,o,r,n,t[2],718787259,15),n=h(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},8287(t,e,r){"use strict";var n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;var a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(q(t,Uint8Array)){var e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(q(t,ArrayBuffer)||t&&q(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(q(t,SharedArrayBuffer)||t&&q(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);var i=function(t){if(u.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||z(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function p(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function d(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function y(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||q(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(i)return n?-1:C(t).length;e=(""+e).toLowerCase(),i=!0}}function _(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 B(this,e,r);case"utf8":case"utf-8":return x(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return k(this,e,r);case"base64":return O(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(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),z(r=+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=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,i){var o,a=1,s=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;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(f(t,o)===f(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(f(t,o+h)!==f(e,h)){l=!1;break}if(l)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;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(z(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return N(C(e,t.length-r),t,r,n)}function S(t,e,r,n){return N(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function E(t,e,r,n){return N(F(e),t,r,n)}function A(t,e,r,n){return N(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=(r=t.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function O(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function x(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,u,f=t[i],c=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&f)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&f)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=j));return r}(n)}e.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return c(t),t<=0?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)}(t,e,r)},u.allocUnsafe=function(t){return l(t)},u.allocUnsafeSlow=function(t){return l(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),q(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');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},u.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}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(q(o,Uint8Array))i+o.length>n.length?u.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else{if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i)}i+=o.length}return n},u.byteLength=y,u.prototype._isBuffer=!0,u.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)g(this,e,e+1);return this},u.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)g(this,e,e+3),g(this,e+1,e+2);return this},u.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)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},u.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?x(this,0,t):_.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(q(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===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),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),f=this.slice(n,i),c=t.slice(e,r),l=0;l<s;++l)if(f[l]!==c[l]){o=f[l],a=c[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return b(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return b(this,t,e,r,!1)},u.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 w(this,t,e,r);case"ascii":case"latin1":case"binary":return S(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function I(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 k(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 B(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+=W[t[o]];return i}function T(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function R(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 P(t,e,r,n,i,o){if(!u.isBuffer(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 M(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 U(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function L(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||R(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},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||R(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},u.prototype.readInt8=function(t,e){return t>>>=0,e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||R(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||R(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||R(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||R(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||P(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},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||P(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},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);P(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<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("Index out of range");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=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.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),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));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 a=u.isBuffer(t)?t:u.from(t,n),s=a.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var D=/[^+/0-9A-Za-z-_]/g;function C(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+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 F(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function N(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 q(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function z(t){return t!=t}var W=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},8310(t,e,r){t.exports=i;var n=r(7007).EventEmitter;function i(){n.call(this)}r(6698)(i,n),i.Readable=r(6891),i.Writable=r(1999),i.Duplex=r(8101),i.Transform=r(9083),i.PassThrough=r(3681),i.finished=r(4257),i.pipeline=r(5267),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===n.listenerCount(this,"error"))throw t}function c(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",f),t.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",f),t.on("error",f),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},8392(t){"use strict";t.exports=function(){}},8403(t,e,r){"use strict";var n=r(1189),i=r(1333)(),o=r(8075),a=Object,s=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),f=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var r,o,c,l,h,p,d,y=a(t);for(r=1;r<arguments.length;++r){o=a(arguments[r]),l=n(o);var _=i&&(Object.getOwnPropertySymbols||f);if(_)for(h=_(o),c=0;c<h.length;++c)d=h[c],u(o,d)&&s(l,d);for(c=0;c<l.length;++c)p=o[d=l[c]],u(o,d)&&(y[d]=p)}return y}},8452(t,e,r){"use strict";var n=r(1189),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),f=function(t,e,r,n){var i;(!(e in t)||"function"==typeof(i=n)&&"[object Function]"===o.call(i)&&n())&&(u?s(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},c=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)f(t,o[s],e[o[s]],r[o[s]])};c.supportsDescriptors=!!u,t.exports=c},8460(){},8523(t,e,r){var n=r(8287).Buffer,i=r(4529),o=r(9251);o.fromByteArrayUnsigned=function(t){return 128&t[0]?new o([0].concat(t)):new o(t)},o.prototype.toByteArrayUnsigned=function(){var t=this.toByteArray();return 0===t[0]?t.slice(1):t},o.fromDERInteger=function(t){return new o(t)},o.prototype.toDERInteger=o.prototype.toByteArray,o.fromBuffer=function(t){if(128&t[0]){var e=Array.prototype.slice.call(t);return new o([0].concat(e))}return new o(t)},o.fromHex=function(t){return""===t?o.ZERO:(i.equal(t,t.match(/^[A-Fa-f0-9]+/),"Invalid hex string"),i.equal(t.length%2,0,"Incomplete hex"),new o(t,16))},o.prototype.toBuffer=function(t){for(var e=this.toByteArrayUnsigned(),r=[],i=t-e.length;r.length<i;)r.push(0);return new n(r.concat(e))},o.prototype.toHex=function(t){return this.toBuffer(t).toString("hex")}},8606(t,e,r){"use strict";var n,i=(n=r(169))&&n.__esModule?n:{default:n};function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=class{constructor(t,e){let r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:5e3,n=4<arguments.length&&void 0!==arguments[4]?arguments[4]:null;o(this,"connect",(t,e)=>new Promise((r,n)=>{this.current_reject=n,this.current_resolve=r;try{this.ws=new i.default(t)}catch(e){this.ws={readyState:3,close:()=>{}},n(new Error("Invalid url",t," closed"))}this.ws.onopen=this.onOpen,this.ws.onerror=this.onError,this.ws.onmessage=this.onMessage,this.ws.onclose=this.onClose,this.connectionTimeout=setTimeout(()=>{this.current_reject&&(this.current_reject=null,this.close(),n(new Error("Connection attempt timed out after "+e/1e3+"s")))},e)})),o(this,"onOpen",()=>{clearTimeout(this.connectionTimeout),this.statusCb&&this.statusCb("open"),this.on_reconnect&&this.on_reconnect(),this.keepalive_timer=setInterval(()=>(this.recv_life--,0==this.recv_life?(console.error(this.url+" connection is dead, terminating ws"),void this.close()):(this.send_life--,void(0==this.send_life&&(this.keepAliveCb&&this.keepAliveCb(this.closed),this.send_life=5)))),5e3),this.current_reject=null,this.current_resolve()}),o(this,"onError",t=>{this.keepalive_timer&&(clearInterval(this.keepalive_timer),this.keepalive_timer=void 0),clearTimeout(this.connectionTimeout),this.statusCb&&this.statusCb("error"),this.current_reject&&this.current_reject(t)}),o(this,"onMessage",t=>{this.recv_life=10,this.listener(JSON.parse(t.data))}),o(this,"onClose",()=>{this.closed=!0,this.keepalive_timer&&(clearInterval(this.keepalive_timer),this.keepalive_timer=void 0);for(var t=this.responseCbId+1;t<=this.cbId;t+=1)this.cbs[t].reject(new Error("connection closed"));this.statusCb&&this.statusCb("closed"),this._closeCb&&this._closeCb(),this.on_close&&this.on_close()}),o(this,"call",t=>{if(1!==this.ws.readyState)return Promise.reject(new Error("websocket state error:"+this.ws.readyState));let e=t[1];if(this.cbId+=1,["set_subscribe_callback","subscribe_to_market","broadcast_transaction_with_callback","set_pending_transaction_callback","set_block_applied_callback"].includes(e)&&(this.subs[this.cbId]={callback:t[2][0]},t[2][0]=this.cbId),["unsubscribe_from_market","unsubscribe_from_accounts"].includes(e)){if("function"!=typeof t[2][0])throw new Error("First parameter of unsub must be the original callback");let e=t[2].splice(0,1)[0];for(let t in this.subs)if(this.subs[t].callback===e){this.unsub[this.cbId]=t;break}}var r={method:"call",params:t};return r.id=this.cbId,this.send_life=5,new Promise((t,e)=>{this.cbs[this.cbId]={time:new Date,resolve:t,reject:e},this.ws.send(JSON.stringify(r))})}),o(this,"listener",t=>{let e=!1,r=null;"notice"===t.method&&(e=!0,t.id=t.params[0]),e?r=this.subs[t.id].callback:(r=this.cbs[t.id],this.responseCbId=t.id),r&&!e?(t.error?r.reject(t.error):r.resolve(t.result),delete this.cbs[t.id],this.unsub[t.id]&&(delete this.subs[this.unsub[t.id]],delete this.unsub[t.id])):r&&e?r(t.params[1]):console.log("Warning: unknown websocket response: ",t)}),o(this,"login",(t,e)=>this.connect_promise.then(()=>this.call([1,"login",[t,e]]))),o(this,"close",()=>new Promise(t=>(clearInterval(this.keepalive_timer),this.keepalive_timer=void 0,this._closeCb=()=>{t(),this._closeCb=null},this.ws?(this.ws.terminate?this.ws.terminate():this.ws.close(),void(3===this.ws.readyState&&t())):(console.log("Websocket already cleared",this),t())))),this.url=t,this.statusCb=e,this.current_reject=null,this.on_reconnect=null,this.closed=!1,this.send_life=5,this.recv_life=10,this.keepAliveCb=n,this.cbId=0,this.responseCbId=0,this.cbs={},this.subs={},this.unsub={},this.connect_promise=this.connect(t,r)}}},8648(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8750(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},8769(t,e,r){"use strict";var n=r(6524);t.exports=function(t){return!!n(t)}},8775(t,e,r){"use strict";var n=r(2260).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},8875(t,e,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(1093),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),f=s.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{l(window[t])}catch(t){return!0}}catch(t){return!0}return!1}();n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=a(t),s=e&&"[object String]"===o.call(t),h=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=f&&r;if(s&&t.length>0&&!i.call(t,0))for(var y=0;y<t.length;++y)h.push(String(y));if(n&&t.length>0)for(var _=0;_<t.length;++_)h.push(String(_));else for(var g in t)d&&"prototype"===g||!i.call(t,g)||h.push(String(g));if(u)for(var b=function(t){if("undefined"==typeof window||!p)return l(t);try{return l(t)}catch(t){return!1}}(t),v=0;v<c.length;++v)b&&"constructor"===c[v]||!i.call(t,c[v])||h.push(c[v]);return h}}t.exports=n},8911(t,e,r){var n=r(4109),i=r(7372),o=r(4555);t.exports={Curve:i,Point:n,getCurveByName:o}},8957(t,e,r){"use strict";var n=r(453)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(t){n=null}t.exports=n},8968(t){"use strict";t.exports=Math.floor},9011(t,e,r){"use strict";var n=r(9798);t.exports=function(){return n()&&!!Symbol.toStringTag}},9021(t,e,r){var n;t.exports=(n=n||function(t){var e;if("undefined"!=typeof window&&window.crypto&&(e=window.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&"undefined"!=typeof window&&window.msCrypto&&(e=window.msCrypto),!e&&void 0!==r.g&&r.g.crypto&&(e=r.g.crypto),!e)try{e=r(477)}catch(t){}var n=function(){if(e){if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),o={},a=o.lib={},s=a.Base={extend:function(t){var e=i(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=s.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)e[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=s.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new u.init(e,t)}}),f=o.enc={},c=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new u.init(r,e/2)}},l=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new u.init(r,e)}},h=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},p=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),f=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,c=t.min(4*f,o);if(f){for(var l=0;l<f;l+=a)this._doProcessBlock(i,l);r=i.splice(0,f),n.sigBytes-=c}return new u.init(r,c)},clone:function(){var t=s.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(a.Hasher=p.extend({cfg:s.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new d.HMAC.init(t,r).finalize(e)}}}),o.algo={});return o}(Math),n)},9030(t,e,r){"use strict";var n=r(6743);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},9083(t,e,r){"use strict";t.exports=c;var n=r(2463).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(8101);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",l)}function l(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(e,r){h(t,e,r)})}function h(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}r(6698)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,r){r(new i("_transform()"))},c.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)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},9092(t,e,r){"use strict";var n=r(1333);t.exports=function(){return n()&&!!Symbol.toStringTag}},9133(t,e,r){"use strict";var n=r(8403);t.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},n=0;n<e.length;++n)r[e[n]]=e[n];var i=Object.assign({},r),o="";for(var a in i)o+=a;return t!==o}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?n:Object.assign:n}},9202(t,e,r){"use strict";var n=r(181);t.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(t){return!1}}},9209(t,e,r){"use strict";var n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"==typeof globalThis?r.g:globalThis;t.exports=function(){for(var t=[],e=0;e<n.length;e++)"function"==typeof i[n[e]]&&(t[t.length]=n[e]);return t}},9211(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:t===r||!(!e(t)||!e(r))}},9235(t){"use strict";t.exports={rE:"1.4.2"}},9251(t,e,r){function n(t,e,r){if(!(this instanceof n))return new n(t,e,r);null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}var i=n.prototype;i.__bigi=r(9235).rE,n.isBigInteger=function(t,e){return t&&t.__bigi&&(!e||t.__bigi===i.__bigi)},n.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var a=e*this[t++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},n.prototype.DB=26,n.prototype.DM=67108863;var o=n.prototype.DV=1<<26;n.prototype.FV=Math.pow(2,52),n.prototype.F1=26,n.prototype.F2=0;var a,s,u=new Array;for(a="0".charCodeAt(0),s=0;s<=9;++s)u[a++]=s;for(a="a".charCodeAt(0),s=10;s<36;++s)u[a++]=s;for(a="A".charCodeAt(0),s=10;s<36;++s)u[a++]=s;function f(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function c(t,e){var r=u[t.charCodeAt(e)];return null==r?-1:r}function l(t){var e=new n;return e.fromInt(t),e}function h(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function p(t){this.m=t}function d(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function y(t,e){return t&e}function _(t,e){return t|e}function g(t,e){return t^e}function b(t,e){return t&~e}function v(t){if(0==t)return-1;var e=0;return 65535&t||(t>>=16,e+=16),255&t||(t>>=8,e+=8),15&t||(t>>=4,e+=4),3&t||(t>>=2,e+=2),1&t||++e,e}function m(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function w(){}function S(t){return t}function E(t){this.r2=new n,this.q3=new n,n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}p.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},p.prototype.revert=function(t){return t},p.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},p.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},p.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},d.prototype.convert=function(t){var e=new n;return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},d.prototype.revert=function(t){var e=new n;return t.copyTo(e),this.reduce(e),e},d.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},i.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+o:this.t=0},i.fromString=function(t,e){var r,i=this;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void i.fromRadix(t,e);r=2}i.t=0,i.s=0;for(var o=t.length,a=!1,s=0;--o>=0;){var u=8==r?255&t[o]:c(t,o);u<0?"-"==t.charAt(o)&&(a=!0):(a=!1,0==s?i[i.t++]=u:s+r>i.DB?(i[i.t-1]|=(u&(1<<i.DB-s)-1)<<s,i[i.t++]=u>>i.DB-s):i[i.t-1]|=u<<s,(s+=r)>=i.DB&&(s-=i.DB))}8==r&&128&t[0]&&(i.s=-1,s>0&&(i[i.t-1]|=(1<<i.DB-s)-1<<s)),i.clamp(),a&&n.ZERO.subTo(i,i)},i.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},i.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},i.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},i.lShiftTo=function(t,e){var r,n=this,i=t%n.DB,o=n.DB-i,a=(1<<o)-1,s=Math.floor(t/n.DB),u=n.s<<i&n.DM;for(r=n.t-1;r>=0;--r)e[r+s+1]=n[r]>>o|u,u=(n[r]&a)<<i;for(r=s-1;r>=0;--r)e[r]=0;e[s]=u,e.t=n.t+s+1,e.s=n.s,e.clamp()},i.rShiftTo=function(t,e){var r=this;e.s=r.s;var n=Math.floor(t/r.DB);if(n>=r.t)e.t=0;else{var i=t%r.DB,o=r.DB-i,a=(1<<i)-1;e[0]=r[n]>>i;for(var s=n+1;s<r.t;++s)e[s-n-1]|=(r[s]&a)<<o,e[s-n]=r[s]>>i;i>0&&(e[r.t-n-1]|=(r.s&a)<<o),e.t=r.t-n,e.clamp()}},i.subTo=function(t,e){for(var r=this,n=0,i=0,o=Math.min(t.t,r.t);n<o;)i+=r[n]-t[n],e[n++]=i&r.DM,i>>=r.DB;if(t.t<r.t){for(i-=t.s;n<r.t;)i+=r[n],e[n++]=i&r.DM,i>>=r.DB;i+=r.s}else{for(i+=r.s;n<t.t;)i-=t[n],e[n++]=i&r.DM,i>>=r.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=r.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},i.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+r.t]=r.am(0,i[o],e,o,0,r.t);e.s=0,e.clamp(),this.s!=t.s&&n.ZERO.subTo(e,e)},i.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},i.divRemTo=function(t,e,r){var i=this,o=t.abs();if(!(o.t<=0)){var a=i.abs();if(a.t<o.t)return null!=e&&e.fromInt(0),void(null!=r&&i.copyTo(r));null==r&&(r=new n);var s=new n,u=i.s,f=t.s,c=i.DB-h(o[o.t-1]);c>0?(o.lShiftTo(c,s),a.lShiftTo(c,r)):(o.copyTo(s),a.copyTo(r));var l=s.t,p=s[l-1];if(0!=p){var d=p*(1<<i.F1)+(l>1?s[l-2]>>i.F2:0),y=i.FV/d,_=(1<<i.F1)/d,g=1<<i.F2,b=r.t,v=b-l,m=null==e?new n:e;for(s.dlShiftTo(v,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),n.ONE.dlShiftTo(l,m),m.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--v>=0;){var w=r[--b]==p?i.DM:Math.floor(r[b]*y+(r[b-1]+g)*_);if((r[b]+=s.am(0,w,r,v,0,l))<w)for(s.dlShiftTo(v,m),r.subTo(m,r);r[b]<--w;)r.subTo(m,r)}null!=e&&(r.drShiftTo(l,e),u!=f&&n.ZERO.subTo(e,e)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),u<0&&n.ZERO.subTo(r,r)}}},i.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(!(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},i.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var r=new n,i=new n,o=e.convert(this),a=h(t)-1;for(o.copyTo(r);--a>=0;)if(e.sqrTo(r,i),(t&1<<a)>0)e.mulTo(i,o,r);else{var s=r;r=i,i=s}return e.revert(r)},i.toString=function(t){var e,r=this;if(r.s<0)return"-"+r.negate().toString(t);if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return r.toRadix(t);e=2}var n,i=(1<<e)-1,o=!1,a="",s=r.t,u=r.DB-s*r.DB%e;if(s-- >0)for(u<r.DB&&(n=r[s]>>u)>0&&(o=!0,a=f(n));s>=0;)u<e?(n=(r[s]&(1<<u)-1)<<e-u,n|=r[--s]>>(u+=r.DB-e)):(n=r[s]>>(u-=e)&i,u<=0&&(u+=r.DB,--s)),n>0&&(o=!0),o&&(a+=f(n));return o?a:"0"},i.negate=function(){var t=new n;return n.ZERO.subTo(this,t),t},i.abs=function(){return this.s<0?this.negate():this},i.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},i.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},i.byteLength=function(){return this.bitLength()>>3},i.mod=function(t){var e=new n;return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},i.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new p(e):new d(e),this.exp(t,r)},w.prototype.convert=S,w.prototype.revert=S,w.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},w.prototype.sqrTo=function(t,e){t.squareTo(e)},E.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=new n;return t.copyTo(e),this.reduce(e),e},E.prototype.revert=function(t){return t},E.prototype.reduce=function(t){var e=this;for(t.drShiftTo(e.m.t-1,e.r2),t.t>e.m.t+1&&(t.t=e.m.t+1,t.clamp()),e.mu.multiplyUpperTo(e.r2,e.m.t+1,e.q3),e.m.multiplyLowerTo(e.q3,e.m.t+1,e.r2);t.compareTo(e.r2)<0;)t.dAddOffset(1,e.m.t+1);for(t.subTo(e.r2,t);t.compareTo(e.m)>=0;)t.subTo(e.m,t)},E.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},E.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],O=(1<<26)/A[A.length-1];i.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},i.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=l(r),o=new n,a=new n,s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(r+a.intValue()).toString(t).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(t)+s},i.fromRadix=function(t,e){var r=this;r.fromInt(0),null==e&&(e=10);for(var i=r.chunkSize(e),o=Math.pow(e,i),a=!1,s=0,u=0,f=0;f<t.length;++f){var l=c(t,f);l<0?"-"==t.charAt(f)&&0==r.signum()&&(a=!0):(u=e*u+l,++s>=i&&(r.dMultiply(o),r.dAddOffset(u,0),s=0,u=0))}s>0&&(r.dMultiply(Math.pow(e,s)),r.dAddOffset(u,0)),a&&n.ZERO.subTo(r,r)},i.fromNumber=function(t,e,r){var i=this;if("number"==typeof e)if(t<2)i.fromInt(1);else for(i.fromNumber(t,r),i.testBit(t-1)||i.bitwiseTo(n.ONE.shiftLeft(t-1),_,i),i.isEven()&&i.dAddOffset(1,0);!i.isProbablePrime(e);)i.dAddOffset(2,0),i.bitLength()>t&&i.subTo(n.ONE.shiftLeft(t-1),i);else{var o=new Array,a=7&t;o.length=1+(t>>3),e.nextBytes(o),a>0?o[0]&=(1<<a)-1:o[0]=0,i.fromString(o,256)}},i.bitwiseTo=function(t,e,r){var n,i,o=this,a=Math.min(t.t,o.t);for(n=0;n<a;++n)r[n]=e(o[n],t[n]);if(t.t<o.t){for(i=t.s&o.DM,n=a;n<o.t;++n)r[n]=e(o[n],i);r.t=o.t}else{for(i=o.s&o.DM,n=a;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(o.s,t.s),r.clamp()},i.changeBit=function(t,e){var r=n.ONE.shiftLeft(t);return this.bitwiseTo(r,e,r),r},i.addTo=function(t,e){for(var r=this,n=0,i=0,o=Math.min(t.t,r.t);n<o;)i+=r[n]+t[n],e[n++]=i&r.DM,i>>=r.DB;if(t.t<r.t){for(i+=t.s;n<r.t;)i+=r[n],e[n++]=i&r.DM,i>>=r.DB;i+=r.s}else{for(i+=r.s;n<t.t;)i+=t[n],e[n++]=i&r.DM,i>>=r.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=r.DV+i),e.t=n,e.clamp()},i.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},i.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},i.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},i.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},i.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},i.millerRabin=function(t){var e=this.subtract(n.ONE),r=e.getLowestSetBit();if(r<=0)return!1;var i=e.shiftRight(r);(t=t+1>>1)>A.length&&(t=A.length);for(var o=new n(null),a=[],s=0;s<t;++s){for(;f=A[Math.floor(Math.random()*A.length)],-1!=a.indexOf(f););a.push(f),o.fromInt(f);var u=o.modPow(i,this);if(0!=u.compareTo(n.ONE)&&0!=u.compareTo(e)){for(var f=1;f++<r&&0!=u.compareTo(e);)if(0==(u=u.modPowInt(2,this)).compareTo(n.ONE))return!1;if(0!=u.compareTo(e))return!1}}return!0},i.clone=function(){var t=new n;return this.copyTo(t),t},i.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},i.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},i.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},i.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},i.toByteArray=function(){var t=this,e=t.t,r=new Array;r[0]=t.s;var n,i=t.DB-e*t.DB%8,o=0;if(e-- >0)for(i<t.DB&&(n=t[e]>>i)!=(t.s&t.DM)>>i&&(r[o++]=n|t.s<<t.DB-i);e>=0;)i<8?(n=(t[e]&(1<<i)-1)<<8-i,n|=t[--e]>>(i+=t.DB-8)):(n=t[e]>>(i-=8)&255,i<=0&&(i+=t.DB,--e)),128&n&&(n|=-256),0===o&&(128&t.s)!=(128&n)&&++o,(o>0||n!=t.s)&&(r[o++]=n);return r},i.equals=function(t){return 0==this.compareTo(t)},i.min=function(t){return this.compareTo(t)<0?this:t},i.max=function(t){return this.compareTo(t)>0?this:t},i.and=function(t){var e=new n;return this.bitwiseTo(t,y,e),e},i.or=function(t){var e=new n;return this.bitwiseTo(t,_,e),e},i.xor=function(t){var e=new n;return this.bitwiseTo(t,g,e),e},i.andNot=function(t){var e=new n;return this.bitwiseTo(t,b,e),e},i.not=function(){for(var t=new n,e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},i.shiftLeft=function(t){var e=new n;return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},i.shiftRight=function(t){var e=new n;return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},i.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+v(this[t]);return this.s<0?this.t*this.DB:-1},i.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=m(this[r]^e);return t},i.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:!!(this[e]&1<<t%this.DB)},i.setBit=function(t){return this.changeBit(t,_)},i.clearBit=function(t){return this.changeBit(t,b)},i.flipBit=function(t){return this.changeBit(t,g)},i.add=function(t){var e=new n;return this.addTo(t,e),e},i.subtract=function(t){var e=new n;return this.subTo(t,e),e},i.multiply=function(t){var e=new n;return this.multiplyTo(t,e),e},i.divide=function(t){var e=new n;return this.divRemTo(t,e,null),e},i.remainder=function(t){var e=new n;return this.divRemTo(t,null,e),e},i.divideAndRemainder=function(t){var e=new n,r=new n;return this.divRemTo(t,e,r),new Array(e,r)},i.modPow=function(t,e){var r,i,o=t.bitLength(),a=l(1);if(o<=0)return a;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new p(e):e.isEven()?new E(e):new d(e);var s=new Array,u=3,f=r-1,c=(1<<r)-1;if(s[1]=i.convert(this),r>1){var y=new n;for(i.sqrTo(s[1],y);u<=c;)s[u]=new n,i.mulTo(y,s[u-2],s[u]),u+=2}var _,g,b=t.t-1,v=!0,m=new n;for(o=h(t[b])-1;b>=0;){for(o>=f?_=t[b]>>o-f&c:(_=(t[b]&(1<<o+1)-1)<<f-o,b>0&&(_|=t[b-1]>>this.DB+o-f)),u=r;!(1&_);)_>>=1,--u;if((o-=u)<0&&(o+=this.DB,--b),v)s[_].copyTo(a),v=!1;else{for(;u>1;)i.sqrTo(a,m),i.sqrTo(m,a),u-=2;u>0?i.sqrTo(a,m):(g=a,a=m,m=g),i.mulTo(m,s[_],a)}for(;b>=0&&!(t[b]&1<<o);)i.sqrTo(a,m),g=a,a=m,m=g,--o<0&&(o=this.DB-1,--b)}return i.revert(a)},i.modInverse=function(t){var e=t.isEven();if(0===this.signum())throw new Error("division by zero");if(this.isEven()&&e||0==t.signum())return n.ZERO;for(var r=t.clone(),i=this.clone(),o=l(1),a=l(0),s=l(0),u=l(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),e?(o.isEven()&&a.isEven()||(o.addTo(this,o),a.subTo(t,a)),o.rShiftTo(1,o)):a.isEven()||a.subTo(t,a),a.rShiftTo(1,a);for(;i.isEven();)i.rShiftTo(1,i),e?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(t,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),e&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),e&&s.subTo(o,s),u.subTo(a,u))}if(0!=i.compareTo(n.ONE))return n.ZERO;for(;u.compareTo(t)>=0;)u.subTo(t,u);for(;u.signum()<0;)u.addTo(t,u);return u},i.pow=function(t){return this.exp(t,new w)},i.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},i.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=A[A.length-1]){for(e=0;e<A.length;++e)if(r[0]==A[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<A.length;){for(var n=A[e],i=e+1;i<A.length&&n<O;)n*=A[i++];for(n=r.modInt(n);e<i;)if(n%A[e++]==0)return!1}return r.millerRabin(t)},i.square=function(){var t=new n;return this.squareTo(t),t},n.ZERO=l(0),n.ONE=l(1),n.valueOf=l,t.exports=n},9290(t){"use strict";t.exports=RangeError},9353(t){"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,o=e.call(arguments,1),a=Math.max(0,n.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var r=n.apply(this,o.concat(e.call(arguments)));return Object(r)===r?r:this}return n.apply(t,o.concat(e.call(arguments)))}),n.prototype){var f=function(){};f.prototype=n.prototype,i.prototype=new f,f.prototype=null}return i}},9383(t){"use strict";t.exports=Error},9394(t,e,r){"use strict";var n=r(9211);t.exports=function(){return"function"==typeof Object.is?Object.is:n}},9434(t,e,r){"use strict";var n,i=r(2260).F,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t){t()}function f(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var c,l=function(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var h=e.map(function(t,i){var o=i<e.length-1;return function(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",function(){s=!0}),void 0===n&&(n=r(5826)),n(t,{readable:e,writable:i},function(t){if(t)return o(t);s=!0,o()});var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}(t,o,i>0,function(t){c||(c=t),t&&h.forEach(u),o||(h.forEach(u),l(c))})});return e.reduce(f)}},9500(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(8750);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},9506(t,e,r){var n,i,o,a,s,u,f,c;t.exports=(c=r(9021),r(5471),r(1025),o=(i=(n=c).lib).Base,a=i.WordArray,u=(s=n.algo).MD5,f=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:u,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,n=this.cfg,i=n.hasher.create(),o=a.create(),s=o.words,u=n.keySize,f=n.iterations;s.length<u;){r&&i.update(r),r=i.update(t).finalize(e),i.reset();for(var c=1;c<f;c++)r=i.finalize(r),i.reset();o.concat(r)}return o.sigBytes=4*u,o}}),n.EvpKDF=function(t,e,r){return f.create(r).compute(t,e)},c.EvpKDF)},9538(t){"use strict";t.exports=ReferenceError},9579(t,e,r){var n=r(8287).Buffer,i=n.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}},o=e.I=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),function(t){if(t&&!i(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=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(t){return t.toString(this.encoding)}function s(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function u(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}o.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),!((n=(e=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(e.length-1))>=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var n,i=t.length;if(this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),i=(e+=t.toString(this.encoding,0,i)).length-1,(n=e.charCodeAt(i))>=55296&&n<=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,i)}return e},o.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},o.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}},9612(t){"use strict";t.exports=Object},9675(t){"use strict";t.exports=TypeError},9762(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setRpcConnectionStatusCallback=e.setAutoReconnect=e.reset=e.orders=e.network=e.instance=e.history=e.db=e.crypto=e.close=e.chainId=void 0;var n=a(r(8606)),i=a(r(506)),o=a(r(5851));function a(t){return t&&t.__esModule?t:{default:t}}var s=!1,u=null,f=null;e.setRpcConnectionStatusCallback=t=>{f=t,u&&u.setRpcConnectionStatusCallback(t)},e.setAutoReconnect=t=>{s=t},e.reset=function(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8090",e=1<arguments.length?arguments[1]:void 0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:4e3,n=3<arguments.length?arguments[3]:void 0,i=4<arguments.length?arguments[4]:void 0;return l().then(()=>((u=b()).setRpcConnectionStatusCallback(f),u&&e&&u.connect(t,r,n,i),u))};const c=function(){let t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"ws://localhost:8090",e=1<arguments.length?arguments[1]:void 0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:4e3,n=3<arguments.length?arguments[3]:void 0,i=4<arguments.length?arguments[4]:void 0;return u||(u=b()).setRpcConnectionStatusCallback(f),u&&e&&u.connect(t,r,n),i&&(u.closeCb=i),u};e.instance=c,e.chainId=()=>c().chain_id;const l=async()=>{u&&(await u.close(),u=null)};e.close=l;const h=t=>new Proxy([],{get:(e,r)=>function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return u[t].exec(r,[...n])}}),p=h("_db");e.db=p;const d=h("_net");e.network=d;const y=h("_hist");e.history=y;const _=h("_crypt");e.crypto=_;const g=h("_orders");e.orders=g;const b=()=>({connect:function(t,e){let r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{enableCrypto:!1,enableOrders:!1};if(u.url=t,"undefined"!=typeof window&&window.location&&"https:"===window.location.protocol&&0>t.indexOf("wss://"))throw new Error("Secure domains require wss connection");u.ws_rpc&&(u.ws_rpc.statusCb=null,u.ws_rpc.keepAliveCb=null,u.ws_rpc.on_close=null,u.ws_rpc.on_reconnect=null),u.ws_rpc=new n.default(t,u.statusCb,e,s,t=>{u._db&&!t&&u._db.exec("get_objects",[["2.1.0"]]).catch(()=>{})}),u.init_promise=u.ws_rpc.login("","").then(()=>{u._db=new i.default(u.ws_rpc,"database"),u._net=new i.default(u.ws_rpc,"network_broadcast"),u._hist=new i.default(u.ws_rpc,"history"),r.enableOrders&&(u._orders=new i.default(u.ws_rpc,"orders")),r.enableCrypto&&(u._crypt=new i.default(u.ws_rpc,"crypto"));var t=u._db.init().then(()=>u._db.exec("get_chain_id",[]).then(t=>(u.chain_id=t,o.default.setChainId(t))));u.ws_rpc.on_reconnect=()=>{u.ws_rpc&&u.ws_rpc.login("","").then(()=>{u._db.init().then(()=>{u.statusCb&&u.statusCb("reconnect")}),u._net.init(),u._hist.init(),r.enableOrders&&u._orders.init(),r.enableCrypto&&u._crypt.init()})},u.ws_rpc.on_close=()=>{u.close().then(()=>{u.closeCb&&u.closeCb()})};let e=[t,u._net.init(),u._hist.init()];return r.enableOrders&&e.push(u._orders.init()),r.enableCrypto&&e.push(u._crypt.init()),Promise.all(e)}).catch(e=>(console.error(t,"Failed to initialize with error",e&&e.message),u.close().then(()=>{throw e})))},close:async()=>{u.ws_rpc&&1===u.ws_rpc.ws.readyState&&await u.ws_rpc.close(),u.ws_rpc=null},db_api:()=>u._db,network_api:()=>u._net,history_api:()=>u._hist,crypto_api:()=>u._crypt,orders_api:()=>u._orders,setRpcConnectionStatusCallback:t=>u.statusCb=t})},9790(t,e,r){"use strict";var n=r.g.BigInt;t.exports=function(){return"function"==typeof n&&"function"==typeof BigInt&&"bigint"==typeof n(42)&&"bigint"==typeof BigInt(42)}},9798(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9803(t,e,r){"use strict";if(r(9790)()){var n=BigInt.prototype.valueOf;t.exports=function(t){return null!=t&&"boolean"!=typeof t&&"string"!=typeof t&&"number"!=typeof t&&"symbol"!=typeof t&&"function"!=typeof t&&("bigint"==typeof t||function(t){try{return n.call(t),!0}catch(t){}return!1}(t))}}else t.exports=function(t){return!1}},9956(t,e,r){t.exports=r(9021).enc.Hex},9957(t,e,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(3639);t.exports=o.call(n,i)}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};r.r(t),r.d(t,{account_create:()=>Ir,account_create_operation_fee_parameters:()=>Yt,account_name_eq_lit_predicate:()=>vn,account_options:()=>jr,account_transfer:()=>Rr,account_transfer_operation_fee_parameters:()=>te,account_update:()=>kr,account_update_operation_fee_parameters:()=>Zt,account_upgrade:()=>Tr,account_upgrade_operation_fee_parameters:()=>Qt,account_whitelist:()=>Br,account_whitelist_operation_fee_parameters:()=>Xt,assert:()=>En,assert_operation_fee_parameters:()=>je,asset:()=>dr,asset_claim_fees:()=>Pn,asset_claim_fees_operation_fee_parameters:()=>Me,asset_claim_pool:()=>Dn,asset_claim_pool_operation_fee_parameters:()=>Ce,asset_create:()=>Lr,asset_create_operation_fee_parameters:()=>ee,asset_fund_fee_pool:()=>zr,asset_fund_fee_pool_operation_fee_parameters:()=>se,asset_global_settle:()=>Vr,asset_global_settle_operation_fee_parameters:()=>fe,asset_issue:()=>Nr,asset_issue_operation_fee_parameters:()=>oe,asset_options:()=>Mr,asset_publish_feed:()=>Gr,asset_publish_feed_operation_fee_parameters:()=>ce,asset_reserve:()=>qr,asset_reserve_operation_fee_parameters:()=>ae,asset_settle:()=>Wr,asset_settle_cancel:()=>Rn,asset_settle_cancel_operation_fee_parameters:()=>Pe,asset_settle_operation_fee_parameters:()=>ue,asset_symbol_eq_lit_predicate:()=>mn,asset_update:()=>Dr,asset_update_bitasset:()=>Cr,asset_update_bitasset_operation_fee_parameters:()=>ne,asset_update_feed_producers:()=>Fr,asset_update_feed_producers_operation_fee_parameters:()=>ie,asset_update_issuer:()=>Cn,asset_update_issuer_operation_fee_parameters:()=>Fe,asset_update_operation_fee_parameters:()=>re,authority:()=>xr,balance_claim:()=>An,balance_claim_operation_fee_parameters:()=>Ie,bid_collateral:()=>Un,bid_collateral_operation_fee_parameters:()=>Le,bitasset_options:()=>Ur,blind_input:()=>kn,blind_output:()=>jn,blind_transfer:()=>Bn,blind_transfer_operation_fee_parameters:()=>Te,block_header:()=>br,block_id_predicate:()=>wn,burn_worker_initializer:()=>yn,call_order_update:()=>Ar,call_order_update_operation_fee_parameters:()=>Kt,cdd_vesting_policy_initializer:()=>fn,chain_parameters:()=>an,committee_member_create:()=>nn,committee_member_create_operation_fee_parameters:()=>me,committee_member_update:()=>on,committee_member_update_global_parameters:()=>sn,committee_member_update_global_parameters_operation_fee_parameters:()=>Se,committee_member_update_operation_fee_parameters:()=>we,credit_deal_expired:()=>li,credit_deal_expired_operation_fee_parameters:()=>lr,credit_deal_repay:()=>ci,credit_deal_repay_operation_fee_parameters:()=>cr,credit_offer_accept:()=>fi,credit_offer_accept_operation_fee_parameters:()=>fr,credit_offer_create:()=>ai,credit_offer_create_operation_fee_parameters:()=>ar,credit_offer_delete:()=>si,credit_offer_delete_operation_fee_parameters:()=>sr,credit_offer_update:()=>ui,credit_offer_update_operation_fee_parameters:()=>ur,custom:()=>bn,custom_authority_create:()=>Hn,custom_authority_create_operation_fee_parameters:()=>He,custom_authority_delete:()=>$n,custom_authority_delete_operation_fee_parameters:()=>$e,custom_authority_update:()=>Gn,custom_authority_update_operation_fee_parameters:()=>Ge,custom_operation_fee_parameters:()=>xe,default:()=>yi,execute_bid:()=>Ln,execute_bid_operation_fee_parameters:()=>De,fba_distribute:()=>Mn,fba_distribute_operation_fee_parameters:()=>Ue,fee_schedule:()=>hr,fill_order:()=>Or,fill_order_operation_fee_parameters:()=>Jt,htlc_create:()=>Fn,htlc_create_operation_fee_parameters:()=>Ne,htlc_extend:()=>zn,htlc_extend_operation_fee_parameters:()=>We,htlc_redeem:()=>Nn,htlc_redeem_operation_fee_parameters:()=>qe,htlc_redeemed:()=>qn,htlc_redeemed_operation_fee_parameters:()=>ze,htlc_refund:()=>Wn,htlc_refund_operation_fee_parameters:()=>Ve,limit_order_cancel:()=>Er,limit_order_cancel_operation_fee_parameters:()=>$t,limit_order_create:()=>Sr,limit_order_create_operation_fee_parameters:()=>Gt,linear_vesting_policy_initializer:()=>un,liquidity_pool_create:()=>Yn,liquidity_pool_create_operation_fee_parameters:()=>Ye,liquidity_pool_delete:()=>Zn,liquidity_pool_delete_operation_fee_parameters:()=>Ze,liquidity_pool_deposit:()=>Xn,liquidity_pool_deposit_operation_fee_parameters:()=>Xe,liquidity_pool_exchange:()=>ti,liquidity_pool_exchange_operation_fee_parameters:()=>tr,liquidity_pool_withdraw:()=>Qn,liquidity_pool_withdraw_operation_fee_parameters:()=>Qe,memo_data:()=>mr,op_wrapper:()=>Jr,operation:()=>Wt,override_transfer:()=>On,override_transfer_operation_fee_parameters:()=>ke,price:()=>Pr,price_feed:()=>Hr,processed_transaction:()=>_r,proposal_create:()=>Yr,proposal_create_operation_fee_parameters:()=>pe,proposal_delete:()=>Xr,proposal_delete_operation_fee_parameters:()=>ye,proposal_update:()=>Zr,proposal_update_operation_fee_parameters:()=>de,refund_worker_initializer:()=>pn,restriction:()=>Vn,samet_fund_borrow:()=>ii,samet_fund_borrow_operation_fee_parameters:()=>ir,samet_fund_create:()=>ei,samet_fund_create_operation_fee_parameters:()=>er,samet_fund_delete:()=>ri,samet_fund_delete_operation_fee_parameters:()=>rr,samet_fund_repay:()=>oi,samet_fund_repay_operation_fee_parameters:()=>or,samet_fund_update:()=>ni,samet_fund_update_operation_fee_parameters:()=>nr,signed_block:()=>gr,signed_block_header:()=>vr,signed_transaction:()=>pi,stealth_confirmation:()=>xn,stealth_memo_data:()=>di,ticket_create:()=>Kn,ticket_create_operation_fee_parameters:()=>Ke,ticket_update:()=>Jn,ticket_update_operation_fee_parameters:()=>Je,transaction:()=>hi,transfer:()=>wr,transfer_from_blind:()=>Tn,transfer_from_blind_operation_fee_parameters:()=>Re,transfer_operation_fee_parameters:()=>Ht,transfer_to_blind:()=>In,transfer_to_blind_operation_fee_parameters:()=>Be,vesting_balance_create:()=>ln,vesting_balance_create_operation_fee_parameters:()=>Ee,vesting_balance_withdraw:()=>hn,vesting_balance_withdraw_operation_fee_parameters:()=>Ae,vesting_balance_worker_initializer:()=>dn,void_result:()=>pr,withdraw_permission_claim:()=>en,withdraw_permission_claim_operation_fee_parameters:()=>be,withdraw_permission_create:()=>Qr,withdraw_permission_create_operation_fee_parameters:()=>_e,withdraw_permission_delete:()=>rn,withdraw_permission_delete_operation_fee_parameters:()=>ve,withdraw_permission_update:()=>tn,withdraw_permission_update_operation_fee_parameters:()=>ge,witness_create:()=>$r,witness_create_operation_fee_parameters:()=>le,witness_update:()=>Kr,witness_update_operation_fee_parameters:()=>he,worker_create:()=>gn,worker_create_operation_fee_parameters:()=>Oe});var e=r(8264),n=r.n(e);const i=function(){function t(t,e){this.message=t,(null!=e?e.message:void 0)&&(this.message="cause\t"+e.message+"\t"+this.message);var r="";(null!=e?e.stack:void 0)&&(r="caused by\n\t"+e.stack+"\t"+r),this.stack=this.message+"\n"+r}return t.throw=function(t,e){var r=t;throw(null!=e?e.message:void 0)&&(r+="\t cause: "+e.message+" "),(null!=e?e.stack:void 0)&&(r+="\n stack: "+e.stack+" "),new Error(r)},t}();var o=r(2861).Buffer,a={NODE_ENV:"production"}.npm_config__graphene_serializer_hex_dump,s=function(){function t(e,r){this.operation_name=e,this.types=r,this.types&&(this.keys=Object.keys(this.types)),t.printDebug=!0}var e=t.prototype;return e.fromByteBuffer=function(e){var r={},n=null;try{for(var o=this.keys,s=0;s<o.length;s++){n=o[s];var u=this.types[n];try{if(a)if(u.operation_name)console.error(u.operation_name);else{var f=e.offset;u.fromByteBuffer(e);var c=e.offset;e.offset=f;var l=e.copy(f,c);console.error(this.operation_name+"."+n+"\t",l.toHex())}r[n]=u.fromByteBuffer(e)}catch(r){throw t.printDebug&&(console.error("Error reading "+this.operation_name+"."+n+" in data:"),e.printDebug()),r}}}catch(t){i.throw(this.operation_name+"."+n,t)}return r},e.appendByteBuffer=function(t,e){var r=null;try{for(var n=this.keys,o=0;o<n.length;o++)r=n[o],this.types[r].appendByteBuffer(t,e[r])}catch(t){try{i.throw(this.operation_name+"."+r+" = "+JSON.stringify(e[r]),t)}catch(n){i.throw(this.operation_name+"."+r+" = "+e[r],t)}}},e.fromObject=function(t){var e={},r=null;try{for(var n=this.keys,o=0;o<n.length;o++){r=n[o];var a=this.types[r],s=t[r],u=a.fromObject(s);e[r]=u}}catch(t){i.throw(this.operation_name+"."+r,t)}return e},e.toObject=function(t,e){void 0===t&&(t={}),void 0===e&&(e={use_default:!1,annotate:!1});var r={},o=null;try{if(!this.types)return r;for(var s=this.keys,u=0;u<s.length;u++){o=s[u];var f=this.types[o],c=f.toObject(null!=t?t[o]:void 0,e);if(r[o]=c,a){var l=new(n())(n().DEFAULT_CAPACITY,n().LITTLE_ENDIAN);f.appendByteBuffer(l,null!=t?t[o]:void 0),l=l.copy(0,l.offset),console.error(this.operation_name+"."+o,l.toHex())}}}catch(t){i.throw(this.operation_name+"."+o,t)}return r},e.compare=function(t,e){var r,n=this.keys[0],i=this.types[n],a=t[n],s=e[n];if(i.compare)return i.compare(a,s);if("number"==typeof a&&"number"==typeof s)return a-s;o.isBuffer(a)&&o.isBuffer(s)&&(r="hex");var u=a.toString(r),f=s.toString(r);return u>f?1:u<f?-1:0},e.fromHex=function(t){var e=n().fromHex(t,n().LITTLE_ENDIAN);return this.fromByteBuffer(e)},e.fromBuffer=function(t){var e=n().fromBinary(t.toString("binary"),n().LITTLE_ENDIAN);return this.fromByteBuffer(e)},e.toHex=function(t){return this.toByteBuffer(t).toHex()},e.toByteBuffer=function(t){var e=new(n())(n().DEFAULT_CAPACITY,n().LITTLE_ENDIAN);return this.appendByteBuffer(e,t),e.copy(0,e.offset)},e.toBuffer=function(t){return o.from(this.toByteBuffer(t).toBinary(),"binary")},t}();const u=s;var f=r(3908),c=r.n(f),l=r(8911),h=r(6763),p=r(7108),d=r.n(p);function y(t,e){return d()("sha256").update(t).digest(e)}function _(t,e){return d()("sha512").update(t).digest(e)}function g(t){try{return d()("rmd160").update(t).digest()}catch(e){return d()("ripemd160").update(t).digest()}}r(3507);var b=r(2716),v=r(4529),m=r.n(v),w=r(4982),S=r.n(w),E=(0,l.getCurveByName)("secp256k1"),A=r(2861).Buffer,O=E.G,x=E.n,j=function(){function t(t){this.Q=t}t.fromBinary=function(e){return t.fromBuffer(A.from(e,"binary"))},t.fromBuffer=function(e){return"000000000000000000000000000000000000000000000000000000000000000000"===e.toString("hex")?new t(null):new t(l.Point.decodeFrom(E,e))};var e=t.prototype;return e.toBuffer=function(t){return void 0===t&&(t=this.Q?this.Q.compressed:null),null===this.Q?A.from("000000000000000000000000000000000000000000000000000000000000000000","hex"):this.Q.getEncoded(t)},t.fromPoint=function(e){return new t(e)},e.toUncompressed=function(){var e=this.Q.getEncoded(!1),r=l.Point.decodeFrom(E,e);return t.fromPoint(r)},e.toBlockchainAddress=function(){return g(_(this.toBuffer()))},e.toString=function(t){return void 0===t&&(t=b._Y.address_prefix),this.toPublicKeyString(t)},e.toPublicKeyString=function(t){void 0===t&&(t=b._Y.address_prefix);var e=this.toBuffer(),r=g(e),n=A.concat([e,r.slice(0,4)]);return t+(0,h.encode)(n)},t.fromPublicKeyString=function(e,r){void 0===r&&(r=b._Y.address_prefix);try{return t.fromStringOrThrow(e,r)}catch(t){return null}},t.fromStringOrThrow=function(e,r){void 0===r&&(r=b._Y.address_prefix),null===e.Q&&(e=r+"1111111111111111111111111111111114T1Anm");var n=e.slice(0,r.length);m().equal(r,n,"Expecting key to begin with "+r+", instead got "+n),e=e.slice(r.length);var i=(e=A.from((0,h.decode)(e),"binary")).slice(-4),o=g(e=e.slice(0,-4));if(o=o.slice(0,4),!S()(i,o))throw new Error("Checksum did not match");return t.fromBuffer(e)},e.toAddressString=function(t){void 0===t&&(t=b._Y.address_prefix);var e=g(_(this.toBuffer())),r=g(e);return e=A.concat([e,r.slice(0,4)]),t+(0,h.encode)(e)},e.toPtsAddy=function(){var t=g(y(this.toBuffer())),e=y(t=A.concat([A.from([56]),t]));return e=y(e),t=A.concat([t,e.slice(0,4)]),(0,h.encode)(t)},e.child=function(e){m()(A.isBuffer(e),"Buffer required: offset"),m().equal(e.length,32,"offset length"),e=y(e=A.concat([this.toBuffer(),e]));var r=c().fromBuffer(e);if(r.compareTo(x)>=0)throw new Error("Child offset went out of bounds, try again");var n=O.multiply(r),i=this.Q.add(n);if(E.isInfinity(i))throw new Error("Child offset derived to an invalid key, try again");return t.fromPoint(i)},e.toByteBuffer=function(){var t=new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY,ByteBuffer.LITTLE_ENDIAN);return this.appendByteBuffer(t),t.copy(0,t.offset)},t.fromHex=function(e){return t.fromBuffer(A.from(e,"hex"))},e.toHex=function(){return this.toBuffer().toString("hex")},t.fromPublicKeyStringHex=function(e){return t.fromPublicKeyString(A.from(e,"hex"))},t}();const I=j;var k=r(2861).Buffer;const B=function(){function t(){}return t.fixed_data=function(t,e,r){if(t){if(!r){var n=t.copy(t.offset,t.offset+e);return t.skip(e),k.from(n.toBinary(),"binary")}var i=r.slice(0,e).toString("binary");for(t.append(i,"binary");e-- >i.length;)t.writeUint8(0)}},t.public_key=function(e,r){if(e){if(!r)return n=t.fixed_data(e,33),I.fromBuffer(n);var n=r.toBuffer();e.append(n.toString("binary"),"binary")}},t.ripemd160=function(e,r){if(e)return r?void t.fixed_data(e,20,r):t.fixed_data(e,20)},t.time_point_sec=function(t,e){return e?(e=Math.ceil(e/1e3),void t.writeInt32(e)):(e=t.readInt32(),new Date(1e3*e))},t}();const T={reserved_spaces:{relative_protocol_ids:0,protocol_ids:1,implementation_ids:2},object_type:{null:0,base:1,account:2,asset:3,force_settlement:4,committee_member:5,witness:6,limit_order:7,call_order:8,custom:9,proposal:10,operation_history:11,withdraw_permission:12,vesting_balance:13,worker:14,balance:15,htlc:16,custom_active_authorities:17,ticket:18,liquidity_pool:19,samet_fund:20,credit_offer:21,credit_deal:22},impl_object_type:{global_property:0,dynamic_global_property:1,index_meta:2,asset_dynamic_data:3,asset_bitasset_data:4,account_balance:5,account_statistics:6,transaction:7,block_summary:8,account_transaction_history:9,blinded_balance:10,chain_property:11,witness_schedule:12,budget_record:13,special_authority:14,buyback:15,fba_accumulator:16,collateral_bid:17,credit_deal_summary:18},vote_type:{committee:0,witness:1,worker:2},operations:{transfer:0,limit_order_create:1,limit_order_cancel:2,call_order_update:3,fill_order:4,account_create:5,account_update:6,account_whitelist:7,account_upgrade:8,account_transfer:9,asset_create:10,asset_update:11,asset_update_bitasset:12,asset_update_feed_producers:13,asset_issue:14,asset_reserve:15,asset_fund_fee_pool:16,asset_settle:17,asset_global_settle:18,asset_publish_feed:19,witness_create:20,witness_update:21,proposal_create:22,proposal_update:23,proposal_delete:24,withdraw_permission_create:25,withdraw_permission_update:26,withdraw_permission_claim:27,withdraw_permission_delete:28,committee_member_create:29,committee_member_update:30,committee_member_update_global_parameters:31,vesting_balance_create:32,vesting_balance_withdraw:33,worker_create:34,custom:35,assert:36,balance_claim:37,override_transfer:38,transfer_to_blind:39,blind_transfer:40,transfer_from_blind:41,asset_settle_cancel:42,asset_claim_fees:43,fba_distribute:44,bid_collateral:45,execute_bid:46,asset_claim_pool:47,asset_update_issuer:48,htlc_create:49,htlc_redeem:50,htlc_redeemed:51,htlc_extend:52,htlc_refund:53,custom_authority_create:54,custom_authority_update:55,custom_authority_delete:56,ticket_create:57,ticket_update:58,liquidity_pool_create:59,liquidity_pool_delete:60,liquidity_pool_deposit:61,liquidity_pool_withdraw:62,liquidity_pool_exchange:63,samet_fund_create:64,samet_fund_delete:65,samet_fund_update:66,samet_fund_borrow:67,samet_fund_repay:68,credit_offer_create:69,credit_offer_delete:70,credit_offer_update:71,credit_offer_accept:72,credit_deal_repay:73,credit_deal_expired:74},ticket_type:{liquid:0,lock_180_days:1,lock_360_days:2,lock_720_days:3,lock_forever:4}};var R=9007199254740991,P=-9007199254740991,M={is_empty:function(t){return null==t},required:function(t,e){if(void 0===e&&(e=""),this.is_empty(t))throw new Error("value required "+e+" "+t);return t},require_array:function(t,e){if(!(t instanceof Array))throw new Error("array required");return e&&t.forEach(function(t){e(t)}),t},require_long:function(t,r){if(void 0===r&&(r=""),!e.Long.isLong(t))throw new Error("Long value required "+r+" "+t);return t},string:function(t){if(this.is_empty(t))return t;if("string"!=typeof t)throw new Error("string required: "+t);return t},number:function(t){if(this.is_empty(t))return t;if("number"!=typeof t)throw new Error("number required: "+t);return t},whole_number:function(t,e){if(void 0===e&&(e=""),this.is_empty(t))return t;if(/\./.test(t))throw new Error("whole number required "+e+" "+t);return t},unsigned:function(t,e){if(void 0===e&&(e=""),this.is_empty(t))return t;if(/-/.test(t))throw new Error("unsigned required "+e+" "+t);return t},is_digits:function(t){return"numeric"==typeof t||/^[0-9]+$/.test(t)},to_number:function(t,e){return void 0===e&&(e=""),this.is_empty(t)?t:(this.no_overflow53(t,e),"number"==typeof t?t:parseInt(t))},to_long:function(t,r,n){return void 0===r&&(r=""),void 0===n&&(n=!1),this.is_empty(t)||e.Long.isLong(t)?t:(this.no_overflow64(t,r,n),"number"==typeof t&&(t=""+t),e.Long.fromString(t,n))},to_string:function(t,r){if(void 0===r&&(r=""),this.is_empty(t))return t;if("string"==typeof t)return t;if("number"==typeof t)return this.no_overflow53(t,r),""+t;if(e.Long.isLong(t))return t.toString();throw"unsupported type "+r+": ("+typeof t+") "+t},require_test:function(t,e,r){if(void 0===r&&(r=""),this.is_empty(e))return e;if(!t.test(e))throw new Error("unmatched "+t+" "+r+" "+e);return e},require_match:function(t,e,r){if(void 0===r&&(r=""),this.is_empty(e))return e;var n=e.match(t);if(null===n)throw new Error("unmatched "+t+" "+r+" "+e);return n},require_object_id:function(t,e){return require_match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/,t,e)},require_range:function(t,e,r,n){if(void 0===n&&(n=""),this.is_empty(r))return r;if(this.to_number(r),r<t||r>e)throw new Error("out of range "+r+" "+n+" "+r);return r},require_object_type:function(t,e,r,n){if(void 0===t&&(t=1),void 0===n&&(n=""),this.is_empty(r))return r;var i=T.object_type[e];if(!i)throw new Error("Unknown object type "+e+" "+n+" "+r);if(!new RegExp(t+"."+i+".[0-9]+$").test(r))throw new Error("Expecting "+e+" in format "+t+"."+i+".[0-9]+ instead of "+r+" "+n+" "+r);return r},get_instance:function(t,e,r,n){return this.is_empty(r)?r:(this.require_object_type(t,e,r,n),this.to_number(r.split(".")[2]))},require_relative_type:function(t,e,r){return this.require_object_type(0,t,e,r),e},get_relative_instance:function(t,e,r){return this.is_empty(e)?e:(this.require_object_type(0,t,e,r),this.to_number(e.split(".")[2]))},require_protocol_type:function(t,e,r){return this.require_object_type(1,t,e,r),e},get_protocol_instance:function(t,e,r){return this.is_empty(e)?e:(this.require_object_type(1,t,e,r),this.to_number(e.split(".")[2]))},get_protocol_type:function(t,e){if(this.is_empty(t))return t;this.require_object_id(t,e);var r=t.split(".");return this.to_number(r[1])},get_protocol_type_name:function(t,e){if(this.is_empty(t))return t;var r=this.get_protocol_type(t,e);return Object.keys(T.object_type)[r]},require_implementation_type:function(t,e,r){return this.require_object_type(2,t,e,r),e},get_implementation_instance:function(t,e,r){return this.is_empty(e)?e:(this.require_object_type(2,t,e,r),this.to_number(e.split(".")[2]))},no_overflow53:function(t,r){if(void 0===r&&(r=""),"number"!=typeof t){if("string"!=typeof t){if(!e.Long.isLong(t))throw"unsupported type "+r+": ("+typeof t+") "+t;this.no_overflow53(t.toInt(),r)}else if(parseInt(t),t>R||t<P)throw new Error("overflow "+r+" "+t)}else if(t>R||t<P)throw new Error("overflow "+r+" "+t)},no_overflow64:function(t,r,n){if(void 0===r&&(r=""),void 0===n&&(n=!1),!e.Long.isLong(t))if(void 0===t.t||void 0===t.s)if("string"!=typeof t){if("number"!=typeof t)throw"unsupported type "+r+": ("+typeof t+") "+t;if(t>R||t<P)throw new Error("overflow "+r+" "+t)}else{for(t=t.replace(/^0+/,"");/0$/.test(t);)t=t.substring(0,t.length-1);if(/\.$/.test(t)&&(t=t.substring(0,t.length-1)),""===t&&(t="0"),e.Long.fromString(t,n).toString()!==t.trim())throw new Error("overflow "+r+" "+t)}else this.no_overflow64(t.toString(),r,n)}};const U=M;var L=e.Long.fromNumber(Math.pow(2,48)-1);const D=function(){function t(t,e,r){this.space=t,this.type=e,this.instance=r;var n=this.instance.toString(),i=this.space+"."+this.type+"."+n;if(!U.is_digits(n))throw new("Invalid object id "+i)}t.fromString=function(r){if(void 0!==r.space&&void 0!==r.type&&void 0!==r.instance)return r;var n=U.require_match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/,U.required(r,"ObjectId"),"ObjectId");return new t(parseInt(n[1]),parseInt(n[2]),e.Long.fromString(n[3]))},t.fromLong=function(e){return new t(e.shiftRight(56).toInt(),255&e.shiftRight(48).toInt(),e.and(L))},t.fromByteBuffer=function(e){return t.fromLong(e.readUint64())};var r=t.prototype;return r.toLong=function(){return e.Long.fromNumber(this.space).shiftLeft(56).or(e.Long.fromNumber(this.type).shiftLeft(48).or(this.instance))},r.appendByteBuffer=function(t){return t.writeUint64(this.toLong())},r.toString=function(){return this.space+"."+this.type+"."+this.instance.toString()},t}();var C=r(2861).Buffer,F=function(){function t(t){this.addy=t}t.fromBuffer=function(e){return new t(g(_(e)))},t.fromString=function(e,r){void 0===r&&(r=b._Y.address_prefix);var n=e.slice(0,r.length);m().equal(r,n,"Expecting key to begin with "+r+", instead got "+n);var i=e.slice(r.length),o=(i=C.from((0,h.decode)(i),"binary")).slice(-4),a=g(i=i.slice(0,-4));if(a=a.slice(0,4),!S()(o,a))throw new Error("Checksum did not match");return new t(i)},t.fromPublic=function(e,r,n){void 0===r&&(r=!0),void 0===n&&(n=56);var i=g(y(e.toBuffer(r))),o=C.alloc(1);o.writeUInt8(255&n,0);var a=C.concat([o,i]),s=y(a);return s=y(s),new t(g(C.concat([a,s.slice(0,4)])))};var e=t.prototype;return e.toBuffer=function(){return this.addy},e.toString=function(t){void 0===t&&(t=b._Y.address_prefix);var e=g(this.addy),r=C.concat([this.addy,e.slice(0,4)]);return t+(0,h.encode)(r)},t}();const N=F;var q=r(955),z=r.n(q),W=r(9956),V=r.n(W),H=r(754),G=r.n(H),$=r(2861).Buffer,K=function(){function t(t,e){this.iv=t,this.key=e}var e=t.prototype;return e.clear=function(){return this.iv=this.key=void 0},t.fromSeed=function(e){if(void 0===e)throw new Error("seed is required");var r=_(e);return r=r.toString("hex"),t.fromSha512(r)},t.fromSha512=function(e){return m().equal(e.length,128,"A Sha512 in HEX should be 128 characters long, instead got "+e.length),new t(V().parse(e.substring(64,96)),V().parse(e.substring(0,64)))},t.fromBuffer=function(e){return m()($.isBuffer(e),"Expecting Buffer"),m().equal(e.length,64,"A Sha512 Buffer should be 64 characters long, instead got "+e.length),t.fromSha512(e.toString("hex"))},t.decrypt_with_checksum=function(e,r,n,i,o){void 0===o&&(o=!1),null==n&&(n=""),$.isBuffer(i)||(i=$.from(i,"hex"));var a=e.get_shared_secret(r,o),s=t.fromSeed($.concat([$.from(""+n),$.from(a.toString("hex"))])).decrypt(i);if(!(s.length>=4))throw new Error("Invalid key, could not decrypt message(1)");var u=s.slice(0,4),f=s.slice(4),c=y(f);if(c=(c=c.slice(0,4)).toString("hex"),u.toString("hex")!==c)throw new Error("Invalid key, could not decrypt message(2)");return f},t.encrypt_with_checksum=function(e,r,n,i){null==n&&(n=""),$.isBuffer(i)||(i=$.from(i,"binary"));var o=e.get_shared_secret(r),a=t.fromSeed($.concat([$.from(""+n),$.from(o.toString("hex"))])),s=y(i).slice(0,4),u=$.concat([s,i]);return a.encrypt(u)},e._decrypt_word_array=function(t){return z().decrypt({ciphertext:t,salt:null},this.key,{iv:this.iv})},e._encrypt_word_array=function(t){var e=z().encrypt(t,this.key,{iv:this.iv});return G().parse(e.toString())},e.decrypt=function(t){if("string"==typeof t&&(t=$.from(t,"binary")),!$.isBuffer(t))throw new Error("buffer required");m()(t,"Missing cipher text");var e=this.decryptHex(t.toString("hex"));return $.from(e,"hex")},e.encrypt=function(t){if("string"==typeof t&&(t=$.from(t,"binary")),!$.isBuffer(t))throw new Error("buffer required");var e=this.encryptHex(t.toString("hex"));return $.from(e,"hex")},e.encryptToHex=function(t){if("string"==typeof t&&(t=$.from(t,"binary")),!$.isBuffer(t))throw new Error("buffer required");return this.encryptHex(t.toString("hex"))},e.decryptHex=function(t){m()(t,"Missing cipher text");var e=V().parse(t),r=this._decrypt_word_array(e);return V().stringify(r)},e.decryptHexToBuffer=function(t){m()(t,"Missing cipher text");var e=V().parse(t),r=this._decrypt_word_array(e),n=V().stringify(r);return $.from(n,"hex")},e.decryptHexToText=function(t,e){return void 0===e&&(e="binary"),this.decryptHexToBuffer(t).toString(e)},e.encryptHex=function(t){var e=V().parse(t),r=this._encrypt_word_array(e);return V().stringify(r)},t}();const J=K;var Y=(0,l.getCurveByName)("secp256k1"),Z=Y.n,X=r(2861).Buffer,Q=function(){function t(t){this.d=t}t.fromBuffer=function(e){if(!X.isBuffer(e))throw new Error("Expecting paramter to be a Buffer type");if(32!==e.length&&console.log("WARN: Expecting 32 bytes, instead got "+e.length+", stack trace:",(new Error).stack),0===e.length)throw new Error("Empty buffer");return new t(c().fromBuffer(e))},t.fromSeed=function(e){if("string"!=typeof e)throw new Error("seed must be of type string");return t.fromBuffer(y(e))},t.fromWif=function(e){var r=X.from((0,h.decode)(e)),n=r.readUInt8(0);m().equal(128,n,"Expected version 128, instead got "+n);var i=r.slice(0,-4),o=r.slice(-4),a=y(i);if(a=(a=y(a)).slice(0,4),!S()(o,a))throw new Error("Checksum did not match");return i=i.slice(1),t.fromBuffer(i)};var e=t.prototype;return e.toWif=function(){var t=this.toBuffer(),e=y(t=X.concat([X.from([128]),t]));e=(e=y(e)).slice(0,4);var r=X.concat([t,e]);return(0,h.encode)(r)},e.toPublicKeyPoint=function(){return Y.G.multiply(this.d)},e.toPublicKey=function(){return this.public_key?this.public_key:this.public_key=I.fromPoint(this.toPublicKeyPoint())},e.toBuffer=function(){return this.d.toBuffer(32)},e.get_shared_secret=function(t,e){void 0===e&&(e=!1);var r=(t=et(t)).toUncompressed().toBuffer(),n=l.Point.fromAffine(Y,c().fromBuffer(r.slice(1,33)),c().fromBuffer(r.slice(33,65))),i=this.toBuffer(),o=n.multiply(c().fromBuffer(i)).affineX.toBuffer({size:32});if(!e&&o.length<32){var a=X.alloc(32-o.length).fill(0);o=X.concat([a,o])}return _(o)},e.child=function(e){e=y(e=X.concat([this.toPublicKey().toBuffer(),e]));var r=c().fromBuffer(e);if(r.compareTo(Z)>=0)throw new Error("Child offset went out of bounds, try again");var n=this.d.add(r);if(0===n.signum())throw new Error("Child offset derived to an invalid key, try again");return new t(n)},e.toByteBuffer=function(){var t=new ByteBuffer(ByteBuffer.DEFAULT_CAPACITY,ByteBuffer.LITTLE_ENDIAN);return this.appendByteBuffer(t),t.copy(0,t.offset)},t.fromHex=function(e){return t.fromBuffer(X.from(e,"hex"))},e.toHex=function(){return this.toBuffer().toString("hex")},t}();const tt=Q;var et=function(t){return null==t||t.Q?t:I.fromStringOrThrow(t)},rt=r(8287).Buffer;function nt(t,e){switch(t){case"Array":if(Array.isArray(e))return;break;case"Boolean":if("boolean"==typeof e)return;break;case"Buffer":if(rt.isBuffer(e))return;break;case"Number":if("number"==typeof e)return;break;case"String":if("string"==typeof e)return;break;default:if(it(e.constructor)===it(t))return}throw new TypeError("Expected "+(it(t)||t)+", got "+e)}function it(t){var e=t.toString().match(/function (.*?)\(/);return e?e[1]:null}var ot=r(2861).Buffer;function at(t,e){nt(c(),t),nt(c(),e),this.r=t,this.s=e}at.parseCompact=function(t){m().equal(t.length,65,"Invalid signature length");var e=t.readUInt8(0)-27;return m().equal(e,7&e,"Invalid signature parameter"),{compressed:!!(4&e),i:e&=3,signature:new at(c().fromBuffer(t.slice(1,33)),c().fromBuffer(t.slice(33)))}},at.fromDER=function(t){m().equal(t.readUInt8(0),48,"Not a DER sequence"),m().equal(t.readUInt8(1),t.length-2,"Invalid sequence length"),m().equal(t.readUInt8(2),2,"Expected a DER integer");var e=t.readUInt8(3);m()(e>0,"R length is zero");var r=4+e;m().equal(t.readUInt8(r),2,"Expected a DER integer (2)");var n=t.readUInt8(r+1);m()(n>0,"S length is zero");var i=t.slice(4,r),o=t.slice(r+2);r+=2+n,e>1&&0===i.readUInt8(0)&&m()(128&i.readUInt8(1),"R value excessively padded"),n>1&&0===o.readUInt8(0)&&m()(128&o.readUInt8(1),"S value excessively padded"),m().equal(r,t.length,"Invalid DER encoding");var a=c().fromDERInteger(i),s=c().fromDERInteger(o);return m()(a.signum()>=0,"R value is negative"),m()(s.signum()>=0,"S value is negative"),new at(a,s)},at.parseScriptSignature=function(t){var e=t.readUInt8(t.length-1),r=-129&e;return m()(r>0&&r<4,"Invalid hashType"),{signature:at.fromDER(t.slice(0,-1)),hashType:e}},at.prototype.toCompact=function(t,e){e&&(t+=4),t+=27;var r=ot.alloc(65);return r.writeUInt8(t,0),this.r.toBuffer(32).copy(r,1),this.s.toBuffer(32).copy(r,33),r},at.prototype.toDER=function(){var t=this.r.toDERInteger(),e=this.s.toDERInteger(),r=[];return r.push(2,t.length),(r=r.concat(t)).push(2,e.length),(r=r.concat(e)).unshift(48,r.length),ot.from(r)},at.prototype.toScriptSignature=function(t){var e=ot.alloc(1);return e.writeUInt8(t,0),ot.concat([this.toDER(),e])},r(2861).Buffer,(0,l.getCurveByName)("secp256k1"),r(2861).Buffer;var st=r(4003),ut=r.n(st),ft=r(2861).Buffer,ct={aes_checksum:function(t){if("string"!=typeof t)throw new"password string required";for(var e=ut().randomBuffer(4).toString("hex"),r=0,n=e+t,i=Date.now();Date.now()-i<250;)n=y(n),r+=1;var o=y(n),a=[r,e.toString("hex"),o.slice(0,4).toString("hex")].join(",");return{aes_private:J.fromSeed(n),checksum:a}},aes_private:function(t,e){for(var r=e.split(","),n=r[0],i=r[1],o=r[2],a=i+t,s=0;0<n?s<n:s>n;s++)a=y(a);if(y(a).slice(0,4).toString("hex")!==o)throw new Error("wrong password");return J.fromSeed(a)},random32ByteBuffer:function(t){if(void 0===t&&(t=this.browserEntropy()),"string"!=typeof t)throw new Error("string required for entropy");if(t.length<32)throw new Error("expecting at least 32 bytes of entropy");for(var e=Date.now();Date.now()-e<250;)t=y(t);var r=[];return r.push(t),r.push(ut().randomBuffer(32)),y(ft.concat(r))},suggest_brain_key:function(t,e){void 0===t&&(t=","),void 0===e&&(e=this.browserEntropy());var r=this.random32ByteBuffer(e),n=t.split(",");if(49744!==n.length)throw new Error("expecting 49744 but got "+n.length+" dictionary words");for(var i=[],o=0;o<32;o+=2){var a=((r[o]<<8)+r[o+1])/Math.pow(2,16),s=Math.round(n.length*a);i.push(n[s])}return this.normalize_brainKey(i.join(" "))},get_random_key:function(t){return tt.fromBuffer(this.random32ByteBuffer(t))},get_brainPrivateKey:function(t,e){if(void 0===e&&(e=0),e<0)throw new Error("invalid sequence");if(""===t.trim())throw new Error("empty brain key");return t=ct.normalize_brainKey(t),tt.fromBuffer(y(_(t+" "+e)))},normalize_brainKey:function(t){if("string"!=typeof t)throw new Error("string required for brainKey");if(""===(t=t.trim()))throw new Error("empty brain key");return t.split(/[\t\n\v\f\r ]+/).join(" ")},browserEntropy:function(){var t="";try{t=(new Date).toString()+" "+window.screen.height+" "+window.screen.width+" "+window.screen.colorDepth+" "+window.screen.availHeight+" "+window.screen.availWidth+" "+window.screen.pixelDepth+navigator.language+" "+window.location+" "+window.history.length;for(var e,r=0;r<navigator.mimeTypes.length;r++)t+=(e=navigator.mimeTypes[r]).description+" "+e.type+" "+e.suffixes+" ";console.log("INFO\tbrowserEntropy gathered")}catch(e){t=y((new Date).toString())}return t+(ft.from(t).toString("binary")+" ")+(new Date).toString()},addresses:function(t,e){void 0===e&&(e=b._Y.address_prefix);var r=I.fromPublicKeyString(t,e);return[N.fromPublic(r,!1,0).toString(e),N.fromPublic(r,!0,0).toString(e),N.fromPublic(r,!1,56).toString(e),N.fromPublic(r,!0,56).toString(e),r.toAddressString(e)]}};const lt=ct;var ht=r(2861).Buffer,pt={},dt={NODE_ENV:"production"}.npm_config__graphene_serializer_hex_dump;pt.uint8={fromByteBuffer:function(t){return t.readUint8()},appendByteBuffer:function(t,e){U.require_range(0,255,e,"uint8 "+e),t.writeUint8(e)},fromObject:function(t){return U.require_range(0,255,t,"uint8 "+t),t},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?0:(U.require_range(0,255,t,"uint8 "+t),parseInt(t))}},pt.uint16={fromByteBuffer:function(t){return t.readUint16()},appendByteBuffer:function(t,e){U.require_range(0,65535,e,"uint16 "+e),t.writeUint16(e)},fromObject:function(t){return U.require_range(0,65535,t,"uint16 "+t),t},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?0:(U.require_range(0,65535,t,"uint16 "+t),parseInt(t))}},pt.uint32={fromByteBuffer:function(t){return t.readUint32()},appendByteBuffer:function(t,e){U.require_range(0,4294967295,e,"uint32 "+e),t.writeUint32(e)},fromObject:function(t){return U.require_range(0,4294967295,t,"uint32 "+t),t},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?0:(U.require_range(0,4294967295,t,"uint32 "+t),parseInt(t))}};var yt=-1*Math.pow(2,31),_t=Math.pow(2,31)-1;pt.varint32={fromByteBuffer:function(t){return t.readVarint32()},appendByteBuffer:function(t,e){U.require_range(yt,_t,e,"uint32 "+e),t.writeVarint32(e)},fromObject:function(t){return U.require_range(yt,_t,t,"uint32 "+t),t},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?0:(U.require_range(yt,_t,t,"uint32 "+t),parseInt(t))}},pt.int64={fromByteBuffer:function(t){return t.readInt64()},appendByteBuffer:function(t,e){U.required(e),t.writeInt64(U.to_long(e))},fromObject:function(t){return U.required(t),U.to_long(t)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?"0":(U.required(t),U.to_long(t).toString())}},pt.uint64={fromByteBuffer:function(t){return t.readUint64()},appendByteBuffer:function(t,e){t.writeUint64(U.to_long(U.unsigned(e),void 0,!0))},fromObject:function(t){return U.to_long(U.unsigned(t),void 0,!0)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?"0":U.to_long(t,void 0,!0).toString()}},pt.varuint64={fromByteBuffer:function(t){return t.readVarint64()},appendByteBuffer:function(t,e){t.writeVarint64(U.to_long(U.unsigned(e),void 0,!0))},fromObject:function(t){return U.to_long(U.unsigned(t),void 0,!0)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?"0":U.to_long(t,void 0,!0).toString()}},pt.string={fromByteBuffer:function(t){var e,r=t.readVarint32();return e=t.copy(t.offset,t.offset+r),t.skip(r),ht.from(e.toBinary(),"binary")},appendByteBuffer:function(t,e){U.required(e),t.writeVarint32(e.length),t.append(e.toString("binary"),"binary")},fromObject:function(t){return U.required(t),ht.from(t)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?"":t.toString()}},pt.bytes=function(t){return{fromByteBuffer:function(e){if(void 0===t){var r,n=e.readVarint32();return r=e.copy(e.offset,e.offset+n),e.skip(n),ht.from(r.toBinary(),"binary")}return r=e.copy(e.offset,e.offset+t),e.skip(t),ht.from(r.toBinary(),"binary")},appendByteBuffer:function(e,r){U.required(r),"string"==typeof r&&(r=ht.from(r,"hex")),void 0===t&&e.writeVarint32(r.length),e.append(r.toString("binary"),"binary")},fromObject:function(t){return U.required(t),ht.isBuffer(t)?t:ht.from(t,"hex")},toObject:function(e,r){return void 0===r&&(r={}),r.use_default&&void 0===e?new Array(t).join("00"):(U.required(e),e.toString("hex"))}}},pt.bool={fromByteBuffer:function(t){return 1===t.readUint8()},appendByteBuffer:function(t,e){t.writeUint8(JSON.parse(e)?1:0)},fromObject:function(t){return!!JSON.parse(t)},toObject:function(t,e){return void 0===e&&(e={}),!(e.use_default&&void 0===t||!JSON.parse(t))}},pt.void={fromByteBuffer:function(t){throw new Error("(void) undefined type")},appendByteBuffer:function(t,e){throw new Error("(void) undefined type")},fromObject:function(t){throw new Error("(void) undefined type")},toObject:function(t,e){if(void 0===e&&(e={}),!e.use_default||void 0!==t)throw new Error("(void) undefined type")}},pt.array=function(t){return{fromByteBuffer:function(e){var r=e.readVarint32();dt&&console.log("varint32 size = "+r.toString(16));for(var n=[],i=0;0<r?i<r:i>r;i++)n.push(t.fromByteBuffer(e));return vt(n,t)},appendByteBuffer:function(e,r){U.required(r),r=vt(r,t),e.writeVarint32(r.length);for(var n,i=0;i<r.length;i++)n=r[i],t.appendByteBuffer(e,n)},fromObject:function(e){U.required(e),e=vt(e,t);for(var r,n=[],i=0;i<e.length;i++)r=e[i],n.push(t.fromObject(r));return n},toObject:function(e,r){if(void 0===r&&(r={}),r.use_default&&void 0===e)return[t.toObject(e,r)];U.required(e),e=vt(e,t);for(var n,i=[],o=0;o<e.length;o++)n=e[o],i.push(t.toObject(n,r));return i}}},pt.time_point_sec={fromByteBuffer:function(t){return t.readUint32()},appendByteBuffer:function(t,e){"number"!=typeof e&&(e=pt.time_point_sec.fromObject(e)),t.writeUint32(e)},fromObject:function(t){if(U.required(t),"number"==typeof t)return t;if(t.getTime)return Math.floor(t.getTime()/1e3);if("string"!=typeof t)throw new Error("Unknown date type: "+t);return/T[0-2][0-9]:[0-5][0-9]:[0-5][0-9]$/.test(t)&&(t+="Z"),Math.floor(new Date(t).getTime()/1e3)},toObject:function(t,e){if(void 0===e&&(e={}),e.use_default&&void 0===t)return new Date(0).toISOString().split(".")[0];if(U.required(t),"string"==typeof t)return t;if(t.getTime)return t.toISOString().split(".")[0];var r=parseInt(t);return U.require_range(0,4294967295,r,"uint32 "+t),new Date(1e3*r).toISOString().split(".")[0]}},pt.set=function(t){return{validate:function(e){for(var r,n={},i=0;i<e.length;i++)if(r=e[i],["string","number"].indexOf(typeof r)>=0){if(void 0!==n[r])throw new Error("duplicate (set)");n[r]=!0}return vt(e,t)},fromByteBuffer:function(e){var r=e.readVarint32();return dt&&console.log("varint32 size = "+r.toString(16)),this.validate(function(){for(var n=[],i=0;0<r?i<r:i>r;i++)n.push(t.fromByteBuffer(e));return n}())},appendByteBuffer:function(e,r){r||(r=[]),e.writeVarint32(r.length);for(var n,i=this.validate(r),o=0;o<i.length;o++)n=i[o],t.appendByteBuffer(e,n)},fromObject:function(e){return e||(e=[]),this.validate(function(){for(var r,n=[],i=0;i<e.length;i++)r=e[i],n.push(t.fromObject(r));return n}())},toObject:function(e,r){return void 0===r&&(r={}),r.use_default&&void 0===e?[t.toObject(e,r)]:(e||(e=[]),this.validate(function(){for(var n,i=[],o=0;o<e.length;o++)n=e[o],i.push(t.toObject(n,r));return i}()))}}},pt.fixed_array=function(t,e){return{fromByteBuffer:function(r){var n,i,o;for(o=[],n=0,i=t;n<i;n+=1)o.push(e.fromByteBuffer(r));return vt(o,e)},appendByteBuffer:function(r,n){var i,o,a;for(0!==t&&(U.required(n),n=vt(n,e)),i=o=0,a=t;o<a;i=o+=1)e.appendByteBuffer(r,n[i])},fromObject:function(r){var n,i,o,a;for(0!==t&&U.required(r),a=[],n=i=0,o=t;i<o;n=i+=1)a.push(e.fromObject(r[n]));return a},toObject:function(r,n){var i,o,a,s,u,f,c;if(null==n&&(n={}),n.use_default&&void 0===r){for(f=[],i=o=0,s=t;o<s;i=o+=1)f.push(e.toObject(void 0,n));return f}for(0!==t&&U.required(r),c=[],i=a=0,u=t;a<u;i=a+=1)c.push(e.toObject(r[i],n));return c}}},pt.protocol_id_type=function(t){return U.required(t,"name"),function(t,e){return U.required(t,"reserved_spaces"),U.required(e,"object_type"),{fromByteBuffer:function(t){return t.readVarint32()},appendByteBuffer:function(r,n){U.required(n),void 0!==n.resolve&&(n=n.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(n)&&(n=U.get_instance(t,e,n)),r.writeVarint32(U.to_number(n))},fromObject:function(r){return U.required(r),void 0!==r.resolve&&(r=r.resolve),U.is_digits(r)?U.to_number(r):U.get_instance(t,e,r)},toObject:function(r,n){void 0===n&&(n={});var i=T.object_type[e];return n.use_default&&void 0===r?t+"."+i+".0":(U.required(r),void 0!==r.resolve&&(r=r.resolve),/^[0-9]+\.[0-9]+\.[0-9]+$/.test(r)&&(r=U.get_instance(t,e,r)),t+"."+i+"."+r)}}}(T.reserved_spaces.protocol_ids,t)},pt.object_id_type={fromByteBuffer:function(t){return D.fromByteBuffer(t)},appendByteBuffer:function(t,e){U.required(e),void 0!==e.resolve&&(e=e.resolve),(e=D.fromString(e)).appendByteBuffer(t)},fromObject:function(t){return U.required(t),void 0!==t.resolve&&(t=t.resolve),D.fromString(t)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?"0.0.0":(U.required(t),void 0!==t.resolve&&(t=t.resolve),(t=D.fromString(t)).toString())}},pt.vote_id={TYPE:255,ID:4294967040,fromByteBuffer:function(t){var e=t.readUint32();return{type:e&this.TYPE,id:e&this.ID}},appendByteBuffer:function(t,e){U.required(e),"string"===e&&(e=pt.vote_id.fromObject(e));var r=e.id<<8|e.type;t.writeUint32(r)},fromObject:function(t){if(U.required(t,"(type vote_id)"),"object"==typeof t)return U.required(t.type,"type"),U.required(t.id,"id"),t;U.require_test(/^[0-9]+:[0-9]+$/,t,"vote_id format "+t);var e=t.split(":"),r=e[0],n=e[1];return U.require_range(0,255,r,"vote type "+t),U.require_range(0,16777215,n,"vote id "+t),{type:r,id:n}},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?"0:0":(U.required(t),"string"==typeof t&&(t=pt.vote_id.fromObject(t)),t.type+":"+t.id)},compare:function(t,e){return"object"!=typeof t&&(t=pt.vote_id.fromObject(t)),"object"!=typeof e&&(e=pt.vote_id.fromObject(e)),parseInt(t.id)-parseInt(e.id)}},pt.optional=function(t){return U.required(t,"st_operation"),{fromByteBuffer:function(e){if(1===e.readUint8())return t.fromByteBuffer(e)},appendByteBuffer:function(e,r){null!=r?(e.writeUint8(1),t.appendByteBuffer(e,r)):e.writeUint8(0)},fromObject:function(e){if(void 0!==e)return t.fromObject(e)},toObject:function(e,r){void 0===r&&(r={});var n=r.use_default||void 0!==e?t.toObject(e,r):void 0;return r.annotate&&("object"==typeof n?n.__optional="parent is optional":n={__optional:n}),n}}},pt.extension=function(t){return U.require_array(t,function(t){U.string(t.name),U.required(t.type,"st_operation")}),{fromByteBuffer:function(e){var r=e.readVarint32();if(0!==r){var n={};if(r>t.length)throw new Error("two many fields");for(;r>0;){var i=e.readVarint32();if(i>=t.length)throw new Error("index out of range");var o=t[i];n[o.name]=o.type.fromByteBuffer(e),r--}return n}},appendByteBuffer:function(e,r){var i=new(n())(n().DEFAULT_CAPACITY,n().LITTLE_ENDIAN),o=0;r&&t.forEach(function(t,e){void 0!==r[t.name]&&null!==r[t.name]&&(i.writeVarint32(e),t.type.appendByteBuffer(i,r[t.name]),o++)}),e.writeVarint32(o),i.flip(),e.append(i)},fromObject:function(e){if(void 0!==e){var r={};return t.forEach(function(t){void 0!==e[t.name]&&null!==e[t.name]&&(r[t.name]=t.type.fromObject(e[t.name]))}),r}},toObject:function(e,r){void 0===r&&(r={});var n=function(){if(void 0!==e){var n={};return t.forEach(function(t){void 0!==e[t.name]&&null!==e[t.name]&&(n[t.name]=t.type.toObject(e[t.name],r))}),n}}();return r.annotate&&("object"==typeof n?n.__optional="parent is optional":n={__optional:n}),n}}},pt.static_variant=function(t){return{nosort:!0,st_operations:t,fromByteBuffer:function(t){var e=t.readVarint32(),r=this.st_operations[e];return dt&&console.error("static_variant id 0x"+e.toString(16)+" ("+e+")"),U.required(r,"operation "+e),[e,r.fromByteBuffer(t)]},appendByteBuffer:function(t,e){U.required(e);var r=e[0],n=this.st_operations[r];U.required(n,"operation "+r),t.writeVarint32(r),n.appendByteBuffer(t,e[1])},fromObject:function(t){U.required(t);var e=t[0],r=this.st_operations[e];return U.required(r,"operation "+e),[e,r.fromObject(t[1])]},toObject:function(t,e){if(void 0===e&&(e={}),e.use_default&&void 0===t)return[0,this.st_operations[0].toObject(void 0,e)];U.required(t);var r=t[0],n=this.st_operations[r];return U.required(n,"operation "+r),[r,n.toObject(t[1],e)]}}},pt.map=function(t,e){return{validate:function(e){if(!Array.isArray(e))throw new Error("expecting array");for(var r,n={},i=0;i<e.length;i++){var o;if(2!==(r=e[i]).length)throw new Error("expecting two elements");if(o=typeof r[0],["number","string"].indexOf(o)>=0){if(void 0!==n[r[0]])throw new Error("duplicate (map)");n[r[0]]=!0}}return vt(e,t)},fromByteBuffer:function(r){for(var n=[],i=r.readVarint32(),o=0;0<i?o<i:o>i;o++)n.push([t.fromByteBuffer(r),e.fromByteBuffer(r)]);return this.validate(n)},appendByteBuffer:function(r,n){this.validate(n),r.writeVarint32(n.length);for(var i,o=0;o<n.length;o++)i=n[o],t.appendByteBuffer(r,i[0]),e.appendByteBuffer(r,i[1])},fromObject:function(r){U.required(r);for(var n,i=[],o=0;o<r.length;o++)n=r[o],i.push([t.fromObject(n[0]),e.fromObject(n[1])]);return this.validate(i)},toObject:function(r,n){if(void 0===n&&(n={}),n.use_default&&void 0===r)return[[t.toObject(void 0,n),e.toObject(void 0,n)]];U.required(r),r=this.validate(r);for(var i,o=[],a=0;a<r.length;a++)i=r[a],o.push([t.toObject(i[0],n),e.toObject(i[1],n)]);return o}}},pt.public_key={toPublic:function(t){return void 0!==t.resolve&&(t=t.resolve),null==t||t.Q?t:I.fromStringOrThrow(t)},fromByteBuffer:function(t){return B.public_key(t)},appendByteBuffer:function(t,e){U.required(e),B.public_key(t,pt.public_key.toPublic(e))},fromObject:function(t){return U.required(t),t.Q?t:pt.public_key.toPublic(t)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?b._Y.address_prefix+"859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM":(U.required(t),t.toString())},compare:function(t,e){return pt.public_key.fromObject(t).toBlockchainAddress().compare(pt.public_key.fromObject(e).toBlockchainAddress())}},pt.address={_to_address:function(t){return U.required(t),t.addy?t:N.fromString(t)},fromByteBuffer:function(t){return new N(B.ripemd160(t))},appendByteBuffer:function(t,e){B.ripemd160(t,pt.address._to_address(e).toBuffer())},fromObject:function(t){return pt.address._to_address(t)},toObject:function(t,e){return void 0===e&&(e={}),e.use_default&&void 0===t?b._Y.address_prefix+"664KmHxSuQyDsfwo4WEJvWpzg1QKdg67S":pt.address._to_address(t).toString()},compare:function(t,e){return gt(t.toString(),e.toString())}};var gt=function(t,e){return t>e?1:t<e?-1:0},bt=function(t){return Array.isArray(t)?t[0]:t},vt=function(t,e){return e.nosort?t:e.compare?t.sort(function(t,r){return e.compare(bt(t),bt(r))}):t.sort(function(t,e){return"number"==typeof bt(t)&&"number"==typeof bt(e)?bt(t)-bt(e):ht.isBuffer(bt(t))&&ht.isBuffer(bt(e))?gt(bt(t).toString("hex"),bt(e).toString("hex")):gt(bt(t).toString(),bt(e).toString())})};const mt=pt;mt.varint32;var wt=mt.varuint64,St=mt.uint8,Et=mt.uint16,At=mt.uint32,Ot=mt.int64,xt=mt.uint64,jt=mt.string,It=mt.bytes,kt=mt.bool,Bt=mt.array,Tt=mt.protocol_id_type,Rt=mt.object_id_type,Pt=mt.vote_id,Mt=mt.future_extensions,Ut=mt.static_variant,Lt=mt.map,Dt=mt.set,Ct=mt.public_key,Ft=mt.address,Nt=mt.time_point_sec,qt=mt.optional,zt=mt.extension;Mt=mt.void;var Wt=Ut(),Vt=function(t,e){return new u(t,e)},Ht=new Vt("transfer_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),Gt=new Vt("limit_order_create_operation_fee_parameters",{fee:xt}),$t=new Vt("limit_order_cancel_operation_fee_parameters",{fee:xt}),Kt=new Vt("call_order_update_operation_fee_parameters",{fee:xt}),Jt=new Vt("fill_order_operation_fee_parameters"),Yt=new Vt("account_create_operation_fee_parameters",{basic_fee:xt,premium_fee:xt,price_per_kbyte:At}),Zt=new Vt("account_update_operation_fee_parameters",{fee:Ot,price_per_kbyte:At}),Xt=new Vt("account_whitelist_operation_fee_parameters",{fee:Ot}),Qt=new Vt("account_upgrade_operation_fee_parameters",{membership_annual_fee:xt,membership_lifetime_fee:xt}),te=new Vt("account_transfer_operation_fee_parameters",{fee:xt}),ee=new Vt("asset_create_operation_fee_parameters",{symbol3:xt,symbol4:xt,long_symbol:xt,price_per_kbyte:At}),re=new Vt("asset_update_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),ne=new Vt("asset_update_bitasset_operation_fee_parameters",{fee:xt}),ie=new Vt("asset_update_feed_producers_operation_fee_parameters",{fee:xt}),oe=new Vt("asset_issue_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),ae=new Vt("asset_reserve_operation_fee_parameters",{fee:xt}),se=new Vt("asset_fund_fee_pool_operation_fee_parameters",{fee:xt}),ue=new Vt("asset_settle_operation_fee_parameters",{fee:xt}),fe=new Vt("asset_global_settle_operation_fee_parameters",{fee:xt}),ce=new Vt("asset_publish_feed_operation_fee_parameters",{fee:xt}),le=new Vt("witness_create_operation_fee_parameters",{fee:xt}),he=new Vt("witness_update_operation_fee_parameters",{fee:Ot}),pe=new Vt("proposal_create_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),de=new Vt("proposal_update_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),ye=new Vt("proposal_delete_operation_fee_parameters",{fee:xt}),_e=new Vt("withdraw_permission_create_operation_fee_parameters",{fee:xt}),ge=new Vt("withdraw_permission_update_operation_fee_parameters",{fee:xt}),be=new Vt("withdraw_permission_claim_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),ve=new Vt("withdraw_permission_delete_operation_fee_parameters",{fee:xt}),me=new Vt("committee_member_create_operation_fee_parameters",{fee:xt}),we=new Vt("committee_member_update_operation_fee_parameters",{fee:xt}),Se=new Vt("committee_member_update_global_parameters_operation_fee_parameters",{fee:xt}),Ee=new Vt("vesting_balance_create_operation_fee_parameters",{fee:xt}),Ae=new Vt("vesting_balance_withdraw_operation_fee_parameters",{fee:xt}),Oe=new Vt("worker_create_operation_fee_parameters",{fee:xt}),xe=new Vt("custom_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),je=new Vt("assert_operation_fee_parameters",{fee:xt}),Ie=new Vt("balance_claim_operation_fee_parameters"),ke=new Vt("override_transfer_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),Be=new Vt("transfer_to_blind_operation_fee_parameters",{fee:xt,price_per_output:At}),Te=new Vt("blind_transfer_operation_fee_parameters",{fee:xt,price_per_output:At}),Re=new Vt("transfer_from_blind_operation_fee_parameters",{fee:xt}),Pe=new Vt("asset_settle_cancel_operation_fee_parameters"),Me=new Vt("asset_claim_fees_operation_fee_parameters",{fee:xt}),Ue=new Vt("fba_distribute_operation_fee_parameters"),Le=new Vt("bid_collateral_operation_fee_parameters",{fee:xt}),De=new Vt("execute_bid_operation_fee_parameters"),Ce=new Vt("asset_claim_pool_operation_fee_parameters",{fee:xt}),Fe=new Vt("asset_update_issuer_operation_fee_parameters",{fee:xt}),Ne=new Vt("htlc_create_operation_fee_parameters",{fee:xt,fee_per_day:xt}),qe=new Vt("htlc_redeem_operation_fee_parameters",{fee:xt,fee_per_kb:xt}),ze=new Vt("htlc_redeemed_operation_fee_parameters",{}),We=new Vt("htlc_extend_operation_fee_parameters",{fee:xt,fee_per_day:xt}),Ve=new Vt("htlc_refund_operation_fee_parameters",{}),He=new Vt("custom_authority_create_operation_fee_parameters",{basic_fee:xt,price_per_byte:At}),Ge=new Vt("custom_authority_update_operation_fee_parameters",{basic_fee:xt,price_per_byte:At}),$e=new Vt("custom_authority_delete_operation_fee_parameters",{fee:xt}),Ke=new Vt("ticket_create_operation_fee_parameters",{fee:xt}),Je=new Vt("ticket_update_operation_fee_parameters",{fee:xt}),Ye=new Vt("liquidity_pool_create_operation_fee_parameters",{fee:xt}),Ze=new Vt("liquidity_pool_delete_operation_fee_parameters",{fee:xt}),Xe=new Vt("liquidity_pool_deposit_operation_fee_parameters",{fee:xt}),Qe=new Vt("liquidity_pool_withdraw_operation_fee_parameters",{fee:xt}),tr=new Vt("liquidity_pool_exchange_operation_fee_parameters",{fee:xt}),er=new Vt("samet_fund_create_operation_fee_parameters",{fee:xt}),rr=new Vt("samet_fund_delete_operation_fee_parameters",{fee:xt}),nr=new Vt("samet_fund_update_operation_fee_parameters",{fee:xt}),ir=new Vt("samet_fund_borrow_operation_fee_parameters",{fee:xt}),or=new Vt("samet_fund_repay_operation_fee_parameters",{fee:xt}),ar=new Vt("credit_offer_create_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),sr=new Vt("credit_offer_delete_operation_fee_parameters",{fee:xt}),ur=new Vt("credit_offer_update_operation_fee_parameters",{fee:xt,price_per_kbyte:At}),fr=new Vt("credit_offer_accept_operation_fee_parameters",{fee:xt}),cr=new Vt("credit_deal_repay_operation_fee_parameters",{fee:xt}),lr=new Vt("credit_deal_expired_operation_fee_parameters",{}),hr=new Vt("fee_schedule",{parameters:Dt(Ut([Ht,Gt,$t,Kt,Jt,Yt,Zt,Xt,Qt,te,ee,re,ne,ie,oe,ae,se,ue,fe,ce,le,he,pe,de,ye,_e,ge,be,ve,me,we,Se,Ee,Ae,Oe,xe,je,Ie,ke,Be,Te,Re,Pe,Me,Ue,Le,De,Ce,Fe,Ne,qe,ze,We,Ve,He,Ge,$e,Ke,Je,Ye,Ze,Xe,Qe,tr,er,rr,nr,ir,or,ar,sr,ur,fr,cr,lr])),scale:At}),pr=new Vt("void_result"),dr=new Vt("asset",{amount:Ot,asset_id:Tt("asset")}),yr=Ut([pr,Rt,dr]),_r=new Vt("processed_transaction",{ref_block_num:Et,ref_block_prefix:At,expiration:Nt,operations:Bt(Wt),extensions:Dt(Mt),signatures:Bt(It(65)),operation_results:Bt(yr)}),gr=new Vt("signed_block",{previous:It(20),timestamp:Nt,witness:Tt("witness"),transaction_merkle_root:It(20),extensions:Dt(Mt),witness_signature:It(65),transactions:Bt(_r)}),br=new Vt("block_header",{previous:It(20),timestamp:Nt,witness:Tt("witness"),transaction_merkle_root:It(20),extensions:Dt(Mt)}),vr=new Vt("signed_block_header",{previous:It(20),timestamp:Nt,witness:Tt("witness"),transaction_merkle_root:It(20),extensions:Dt(Mt),witness_signature:It(65)}),mr=new Vt("memo_data",{from:Ct,to:Ct,nonce:xt,message:It()}),wr=new Vt("transfer",{fee:dr,from:Tt("account"),to:Tt("account"),amount:dr,memo:qt(mr),extensions:Dt(Mt)}),Sr=new Vt("limit_order_create",{fee:dr,seller:Tt("account"),amount_to_sell:dr,min_to_receive:dr,expiration:Nt,fill_or_kill:kt,extensions:Dt(Mt)}),Er=new Vt("limit_order_cancel",{fee:dr,fee_paying_account:Tt("account"),order:Tt("limit_order"),extensions:Dt(Mt)}),Ar=new Vt("call_order_update",{fee:dr,funding_account:Tt("account"),delta_collateral:dr,delta_debt:dr,extensions:zt([{name:"target_collateral_ratio",type:Et}])}),Or=new Vt("fill_order",{fee:dr,order_id:Rt,account_id:Tt("account"),pays:dr,receives:dr}),xr=new Vt("authority",{weight_threshold:At,account_auths:Lt(Tt("account"),Et),key_auths:Lt(Ct,Et),address_auths:Lt(Ft,Et)}),jr=new Vt("account_options",{memo_key:Ct,voting_account:Tt("account"),num_witness:Et,num_committee:Et,votes:Dt(Pt),extensions:Dt(Mt)}),Ir=new Vt("account_create",{fee:dr,registrar:Tt("account"),referrer:Tt("account"),referrer_percent:Et,name:jt,owner:xr,active:xr,options:jr,extensions:Dt(Mt)}),kr=new Vt("account_update",{fee:dr,account:Tt("account"),owner:qt(xr),active:qt(xr),new_options:qt(jr),extensions:Dt(Mt)}),Br=new Vt("account_whitelist",{fee:dr,authorizing_account:Tt("account"),account_to_list:Tt("account"),new_listing:St,extensions:Dt(Mt)}),Tr=new Vt("account_upgrade",{fee:dr,account_to_upgrade:Tt("account"),upgrade_to_lifetime_member:kt,extensions:Dt(Mt)}),Rr=new Vt("account_transfer",{fee:dr,account_id:Tt("account"),new_owner:Tt("account"),extensions:Dt(Mt)}),Pr=new Vt("price",{base:dr,quote:dr}),Mr=new Vt("asset_options",{max_supply:Ot,market_fee_percent:Et,max_market_fee:Ot,issuer_permissions:Et,flags:Et,core_exchange_rate:Pr,whitelist_authorities:Dt(Tt("account")),blacklist_authorities:Dt(Tt("account")),whitelist_markets:Dt(Tt("asset")),blacklist_markets:Dt(Tt("asset")),description:jt,extensions:zt([{name:"reward_percent",type:Et},{name:"whitelist_market_fee_sharing",type:Dt(Tt("account"))},{name:"taker_fee_percent",type:Et}])}),Ur=new Vt("bitasset_options",{feed_lifetime_sec:At,minimum_feeds:St,force_settlement_delay_sec:At,force_settlement_offset_percent:Et,maximum_force_settlement_volume:Et,short_backing_asset:Tt("asset"),extensions:zt([{name:"initial_collateral_ratio",type:Et},{name:"maintenance_collateral_ratio",type:Et},{name:"maximum_short_squeeze_ratio",type:Et},{name:"margin_call_fee_ratio",type:Et},{name:"force_settle_fee_percent",type:Et},{name:"black_swan_response_method",type:St}])}),Lr=new Vt("asset_create",{fee:dr,issuer:Tt("account"),symbol:jt,precision:St,common_options:Mr,bitasset_opts:qt(Ur),is_prediction_market:kt,extensions:Dt(Mt)}),Dr=new Vt("asset_update",{fee:dr,issuer:Tt("account"),asset_to_update:Tt("asset"),new_issuer:qt(Tt("account")),new_options:Mr,extensions:Dt(Mt)}),Cr=new Vt("asset_update_bitasset",{fee:dr,issuer:Tt("account"),asset_to_update:Tt("asset"),new_options:Ur,extensions:Dt(Mt)}),Fr=new Vt("asset_update_feed_producers",{fee:dr,issuer:Tt("account"),asset_to_update:Tt("asset"),new_feed_producers:Dt(Tt("account")),extensions:Dt(Mt)}),Nr=new Vt("asset_issue",{fee:dr,issuer:Tt("account"),asset_to_issue:dr,issue_to_account:Tt("account"),memo:qt(mr),extensions:Dt(Mt)}),qr=new Vt("asset_reserve",{fee:dr,payer:Tt("account"),amount_to_reserve:dr,extensions:Dt(Mt)}),zr=new Vt("asset_fund_fee_pool",{fee:dr,from_account:Tt("account"),asset_id:Tt("asset"),amount:Ot,extensions:Dt(Mt)}),Wr=new Vt("asset_settle",{fee:dr,account:Tt("account"),amount:dr,extensions:Dt(Mt)}),Vr=new Vt("asset_global_settle",{fee:dr,issuer:Tt("account"),asset_to_settle:Tt("asset"),settle_price:Pr,extensions:Dt(Mt)}),Hr=new Vt("price_feed",{settlement_price:Pr,maintenance_collateral_ratio:Et,maximum_short_squeeze_ratio:Et,core_exchange_rate:Pr}),Gr=new Vt("asset_publish_feed",{fee:dr,publisher:Tt("account"),asset_id:Tt("asset"),feed:Hr,extensions:Dt(Mt)}),$r=new Vt("witness_create",{fee:dr,witness_account:Tt("account"),url:jt,block_signing_key:Ct}),Kr=new Vt("witness_update",{fee:dr,witness:Tt("witness"),witness_account:Tt("account"),new_url:qt(jt),new_signing_key:qt(Ct)}),Jr=new Vt("op_wrapper",{op:Wt}),Yr=new Vt("proposal_create",{fee:dr,fee_paying_account:Tt("account"),expiration_time:Nt,proposed_ops:Bt(Jr),review_period_seconds:qt(At),extensions:Dt(Mt)}),Zr=new Vt("proposal_update",{fee:dr,fee_paying_account:Tt("account"),proposal:Tt("proposal"),active_approvals_to_add:Dt(Tt("account")),active_approvals_to_remove:Dt(Tt("account")),owner_approvals_to_add:Dt(Tt("account")),owner_approvals_to_remove:Dt(Tt("account")),key_approvals_to_add:Dt(Ct),key_approvals_to_remove:Dt(Ct),extensions:Dt(Mt)}),Xr=new Vt("proposal_delete",{fee:dr,fee_paying_account:Tt("account"),using_owner_authority:kt,proposal:Tt("proposal"),extensions:Dt(Mt)}),Qr=new Vt("withdraw_permission_create",{fee:dr,withdraw_from_account:Tt("account"),authorized_account:Tt("account"),withdrawal_limit:dr,withdrawal_period_sec:At,periods_until_expiration:At,period_start_time:Nt}),tn=new Vt("withdraw_permission_update",{fee:dr,withdraw_from_account:Tt("account"),authorized_account:Tt("account"),permission_to_update:Tt("withdraw_permission"),withdrawal_limit:dr,withdrawal_period_sec:At,period_start_time:Nt,periods_until_expiration:At}),en=new Vt("withdraw_permission_claim",{fee:dr,withdraw_permission:Tt("withdraw_permission"),withdraw_from_account:Tt("account"),withdraw_to_account:Tt("account"),amount_to_withdraw:dr,memo:qt(mr)}),rn=new Vt("withdraw_permission_delete",{fee:dr,withdraw_from_account:Tt("account"),authorized_account:Tt("account"),withdrawal_permission:Tt("withdraw_permission")}),nn=new Vt("committee_member_create",{fee:dr,committee_member_account:Tt("account"),url:jt}),on=new Vt("committee_member_update",{fee:dr,committee_member:Tt("committee_member"),committee_member_account:Tt("account"),new_url:qt(jt)}),an=new Vt("chain_parameters",{current_fees:hr,block_interval:St,maintenance_interval:At,maintenance_skip_slots:St,committee_proposal_review_period:At,maximum_transaction_size:At,maximum_block_size:At,maximum_time_until_expiration:At,maximum_proposal_lifetime:At,maximum_asset_whitelist_authorities:St,maximum_asset_feed_publishers:St,maximum_witness_count:Et,maximum_committee_count:Et,maximum_authority_membership:Et,reserve_percent_of_fee:Et,network_percent_of_fee:Et,lifetime_referrer_percent_of_fee:Et,cashback_vesting_period_seconds:At,cashback_vesting_threshold:Ot,count_non_member_votes:kt,allow_non_member_whitelists:kt,witness_pay_per_block:Ot,worker_budget_per_day:Ot,max_predicate_opcode:Et,fee_liquidation_threshold:Ot,accounts_per_fee_scale:Et,account_fee_scale_bitshifts:St,max_authority_depth:St,extensions:Dt(Mt)}),sn=new Vt("committee_member_update_global_parameters",{fee:dr,new_parameters:an}),un=new Vt("linear_vesting_policy_initializer",{begin_timestamp:Nt,vesting_cliff_seconds:At,vesting_duration_seconds:At}),fn=new Vt("cdd_vesting_policy_initializer",{start_claim:Nt,vesting_seconds:At}),cn=Ut([un,fn]),ln=new Vt("vesting_balance_create",{fee:dr,creator:Tt("account"),owner:Tt("account"),amount:dr,policy:cn}),hn=new Vt("vesting_balance_withdraw",{fee:dr,vesting_balance:Tt("vesting_balance"),owner:Tt("account"),amount:dr}),pn=new Vt("refund_worker_initializer"),dn=new Vt("vesting_balance_worker_initializer",{pay_vesting_period_days:Et}),yn=new Vt("burn_worker_initializer"),_n=Ut([pn,dn,yn]),gn=new Vt("worker_create",{fee:dr,owner:Tt("account"),work_begin_date:Nt,work_end_date:Nt,daily_pay:Ot,name:jt,url:jt,initializer:_n}),bn=new Vt("custom",{fee:dr,payer:Tt("account"),required_auths:Dt(Tt("account")),id:Et,data:It()}),vn=new Vt("account_name_eq_lit_predicate",{account_id:Tt("account"),name:jt}),mn=new Vt("asset_symbol_eq_lit_predicate",{asset_id:Tt("asset"),symbol:jt}),wn=new Vt("block_id_predicate",{id:It(20)}),Sn=Ut([vn,mn,wn]),En=new Vt("assert",{fee:dr,fee_paying_account:Tt("account"),predicates:Bt(Sn),required_auths:Dt(Tt("account")),extensions:Dt(Mt)}),An=new Vt("balance_claim",{fee:dr,deposit_to_account:Tt("account"),balance_to_claim:Tt("balance"),balance_owner_key:Ct,total_claimed:dr}),On=new Vt("override_transfer",{fee:dr,issuer:Tt("account"),from:Tt("account"),to:Tt("account"),amount:dr,memo:qt(mr),extensions:Dt(Mt)}),xn=new Vt("stealth_confirmation",{one_time_key:Ct,to:qt(Ct),encrypted_memo:It()}),jn=new Vt("blind_output",{commitment:It(33),range_proof:It(),owner:xr,stealth_memo:qt(xn)}),In=new Vt("transfer_to_blind",{fee:dr,amount:dr,from:Tt("account"),blinding_factor:It(32),outputs:Bt(jn)}),kn=new Vt("blind_input",{commitment:It(33),owner:xr}),Bn=new Vt("blind_transfer",{fee:dr,inputs:Bt(kn),outputs:Bt(jn)}),Tn=new Vt("transfer_from_blind",{fee:dr,amount:dr,to:Tt("account"),blinding_factor:It(32),inputs:Bt(kn)}),Rn=new Vt("asset_settle_cancel",{fee:dr,settlement:Tt("force_settlement"),account:Tt("account"),amount:dr,extensions:Dt(Mt)}),Pn=new Vt("asset_claim_fees",{fee:dr,issuer:Tt("account"),amount_to_claim:dr,extensions:zt([{name:"claim_from_asset_id",type:Tt("asset")}])}),Mn=new Vt("fba_distribute",{fee:dr,account_id:Tt("account"),fba_id:Tt("fba_accumulator"),amount:Ot}),Un=new Vt("bid_collateral",{fee:dr,bidder:Tt("account"),additional_collateral:dr,debt_covered:dr,extensions:Dt(Mt)}),Ln=new Vt("execute_bid",{fee:dr,bidder:Tt("account"),debt:dr,collateral:dr}),Dn=new Vt("asset_claim_pool",{fee:dr,issuer:Tt("account"),asset_id:Tt("asset"),amount_to_claim:dr,extensions:Dt(Mt)}),Cn=new Vt("asset_update_issuer",{fee:dr,issuer:Tt("account"),asset_to_update:Tt("asset"),new_issuer:Tt("account"),extensions:Dt(Mt)}),Fn=new Vt("htlc_create",{fee:dr,from:Tt("account"),to:Tt("account"),amount:dr,preimage_hash:Ut([It(20),It(20),It(32)]),preimage_size:Et,claim_period_seconds:At,extensions:Dt(Mt)}),Nn=new Vt("htlc_redeem",{fee:dr,htlc_id:Tt("htlc"),redeemer:Tt("account"),preimage:It(),extensions:Dt(Mt)}),qn=new Vt("htlc_redeemed",{fee:dr,htlc_id:Tt("htlc"),from:Tt("account"),to:Tt("account"),amount:dr}),zn=new Vt("htlc_extend",{fee:dr,htlc_id:Tt("htlc"),update_issuer:Tt("account"),seconds_to_add:At,extensions:Dt(Mt)}),Wn=new Vt("htlc_refund",{fee:dr,htlc_id:Tt("htlc"),to:Tt("account")}),Vn=new Vt("restriction",{member_index:wt,restriction_type:wt,argument:Ut([pr,kt,Ot,jt,Nt,Ct,It(32),Tt("account"),Tt("asset"),Tt("force_settlement"),Tt("committee_member"),Tt("witness"),Tt("limit_order"),Tt("call_order"),Tt("object"),Tt("proposal"),Tt("withdraw_permission"),Tt("vesting_balance"),Tt("worker"),Tt("balance"),Dt(kt),Dt(Ot),Dt(jt),Dt(Nt),Dt(Ct),Dt(It(32)),Dt(Tt("account")),Dt(Tt("asset")),Dt(Tt("force_settlement")),Dt(Tt("committee_member")),Dt(Tt("witness")),Dt(Tt("limit_order")),Dt(Tt("call_order")),Dt(Tt("object")),Dt(Tt("proposal")),Dt(Tt("withdraw_permission")),Dt(Tt("vesting_balance")),Dt(Tt("worker")),Dt(Tt("balance")),Bt(Vn),Bt(Bt(Vn))]),extensions:Dt(Mt)}),Hn=new Vt("custom_authority_create",{fee:dr,account:Tt("account"),enabled:kt,valid_from:Nt,valid_to:Nt,operation_type:wt,auth:xr,restrictions:Bt(Vn),extensions:Dt(Mt)}),Gn=new Vt("custom_authority_update",{fee:dr,account:Tt("account"),authority_to_update:Tt("object"),new_enabled:qt(kt),new_valid_from:qt(Nt),new_valid_to:qt(Nt),new_auth:qt(xr),restrictions_to_remove:Dt(Et),restrictions_to_add:Bt(Vn),extensions:Dt(Mt)}),$n=new Vt("custom_authority_delete",{fee:dr,account:Tt("account"),authority_to_delete:Tt("object"),extensions:Dt(Mt)}),Kn=new Vt("ticket_create",{fee:dr,account:Tt("account"),target_type:wt,amount:dr,extensions:Dt(Mt)}),Jn=new Vt("ticket_update",{fee:dr,ticket:Tt("ticket"),account:Tt("account"),target_type:wt,amount_for_new_target:qt(dr),extensions:Dt(Mt)}),Yn=new Vt("liquidity_pool_create",{fee:dr,account:Tt("account"),asset_a:Tt("asset"),asset_b:Tt("asset"),share_asset:Tt("asset"),taker_fee_percent:Et,withdrawal_fee_percent:Et,extensions:Dt(Mt)}),Zn=new Vt("liquidity_pool_delete",{fee:dr,account:Tt("account"),pool:Tt("liquidity_pool"),extensions:Dt(Mt)}),Xn=new Vt("liquidity_pool_deposit",{fee:dr,account:Tt("account"),pool:Tt("liquidity_pool"),amount_a:dr,amount_b:dr,extensions:Dt(Mt)}),Qn=new Vt("liquidity_pool_withdraw",{fee:dr,account:Tt("account"),pool:Tt("liquidity_pool"),share_amount:dr,extensions:Dt(Mt)}),ti=new Vt("liquidity_pool_exchange",{fee:dr,account:Tt("account"),pool:Tt("liquidity_pool"),amount_to_sell:dr,min_to_receive:dr,extensions:Dt(Mt)}),ei=new Vt("samet_fund_create",{fee:dr,owner_account:Tt("account"),asset_type:Tt("asset"),balance:Ot,fee_rate:At,extensions:Dt(Mt)}),ri=new Vt("samet_fund_delete",{fee:dr,owner_account:Tt("account"),fund_id:Tt("samet_fund"),extensions:Dt(Mt)}),ni=new Vt("samet_fund_update",{fee:dr,owner_account:Tt("account"),fund_id:Tt("samet_fund"),delta_amount:qt(dr),new_fee_rate:qt(At),extensions:Dt(Mt)}),ii=new Vt("samet_fund_borrow",{fee:dr,borrower:Tt("account"),fund_id:Tt("samet_fund"),borrow_amount:dr,extensions:Dt(Mt)}),oi=new Vt("samet_fund_repay",{fee:dr,account:Tt("account"),fund_id:Tt("samet_fund"),repay_amount:dr,fund_fee:dr,extensions:Dt(Mt)}),ai=new Vt("credit_offer_create",{fee:dr,owner_account:Tt("account"),asset_type:Tt("asset"),balance:Ot,fee_rate:At,max_duration_seconds:At,min_deal_amount:Ot,enabled:kt,auto_disable_time:Nt,acceptable_collateral:Lt(Tt("asset"),Pr),acceptable_borrowers:Lt(Tt("account"),Ot),extensions:Dt(Mt)}),si=new Vt("credit_offer_delete",{fee:dr,owner_account:Tt("account"),offer_id:Tt("credit_offer"),extensions:Dt(Mt)}),ui=new Vt("credit_offer_update",{fee:dr,owner_account:Tt("account"),offer_id:Tt("credit_offer"),delta_amount:qt(dr),fee_rate:qt(At),max_duration_seconds:qt(At),min_deal_amount:qt(Ot),enabled:qt(kt),auto_disable_time:qt(Nt),acceptable_collateral:qt(Lt(Tt("asset"),Pr)),acceptable_borrowers:qt(Lt(Tt("account"),Ot)),extensions:Dt(Mt)}),fi=new Vt("credit_offer_accept",{fee:dr,borrower:Tt("account"),offer_id:Tt("credit_offer"),borrow_amount:dr,collateral:dr,max_fee_rate:At,min_duration_seconds:At,extensions:Dt(Mt)}),ci=new Vt("credit_deal_repay",{fee:dr,account:Tt("account"),deal_id:Tt("credit_deal"),repay_amount:dr,credit_fee:dr,extensions:Dt(Mt)}),li=new Vt("credit_deal_expired",{fee:dr,deal_id:Tt("credit_deal"),offer_id:Tt("credit_offer"),offer_owner:Tt("account"),borrower:Tt("account"),unpaid_amount:dr,collateral:dr,fee_rate:At});Wt.st_operations=[wr,Sr,Er,Ar,Or,Ir,kr,Br,Tr,Rr,Lr,Dr,Cr,Fr,Nr,qr,zr,Wr,Vr,Gr,$r,Kr,Yr,Zr,Xr,Qr,tn,en,rn,nn,on,sn,ln,hn,gn,bn,En,An,On,In,Bn,Tn,Rn,Pn,Mn,Un,Ln,Dn,Cn,Fn,Nn,qn,zn,Wn,Hn,Gn,$n,Kn,Jn,Yn,Zn,Xn,Qn,ti,ei,ri,ni,ii,oi,ai,si,ui,fi,ci,li];var hi=new Vt("transaction",{ref_block_num:Et,ref_block_prefix:At,expiration:Nt,operations:Bt(Wt),extensions:Dt(Mt)}),pi=new Vt("signed_transaction",{ref_block_num:Et,ref_block_prefix:At,expiration:Nt,operations:Bt(Wt),extensions:Dt(Mt),signatures:Bt(It(65))}),di=new Vt("stealth_memo_data",{from:qt(Ct),amount:dr,blinding_factor:It(32),commitment:It(33),check:At});const yi=Wt.st_operations;var _i="delete",gi=32,bi=31,vi={};function mi(t){t&&(t.value=!0)}function wi(){}function Si(t){return void 0===t.size&&(t.size=t.__iterate(Ai)),t.size}function Ei(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?Si(t)+e:e}function Ai(){return!0}function Oi(t,e,r){return(0===t&&!ki(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function xi(t,e){return Ii(t,e,0)}function ji(t,e){return Ii(t,e,e)}function Ii(t,e,r){return void 0===t?r:ki(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function ki(t){return t<0||0===t&&1/t==-1/0}var Bi="@@__IMMUTABLE_ITERABLE__@@";function Ti(t){return Boolean(t&&t[Bi])}var Ri="@@__IMMUTABLE_KEYED__@@";function Pi(t){return Boolean(t&&t[Ri])}var Mi="@@__IMMUTABLE_INDEXED__@@";function Ui(t){return Boolean(t&&t[Mi])}function Li(t){return Pi(t)||Ui(t)}var Di=function(t){return Ti(t)?t:ao(t)},Ci=function(t){function e(t){return Pi(t)?t:so(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Di),Fi=function(t){function e(t){return Ui(t)?t:uo(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Di),Ni=function(t){function e(t){return Ti(t)&&!Li(t)?t:fo(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Di);Di.Keyed=Ci,Di.Indexed=Fi,Di.Set=Ni;var qi="@@__IMMUTABLE_SEQ__@@";function zi(t){return Boolean(t&&t[qi])}var Wi="@@__IMMUTABLE_RECORD__@@";function Vi(t){return Boolean(t&&t[Wi])}function Hi(t){return Ti(t)||Vi(t)}var Gi="@@__IMMUTABLE_ORDERED__@@";function $i(t){return Boolean(t&&t[Gi])}var Ki="function"==typeof Symbol&&Symbol.iterator,Ji="@@iterator",Yi=Ki||Ji,Zi=function(t){this.next=t};function Xi(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function Qi(){return{value:void 0,done:!0}}function to(t){return!!Array.isArray(t)||!!no(t)}function eo(t){return t&&"function"==typeof t.next}function ro(t){var e=no(t);return e&&e.call(t)}function no(t){var e=t&&(Ki&&t[Ki]||t[Ji]);if("function"==typeof e)return e}Zi.prototype.toString=function(){return"[Iterator]"},Zi.KEYS=0,Zi.VALUES=1,Zi.ENTRIES=2,Zi.prototype.inspect=Zi.prototype.toSource=function(){return this.toString()},Zi.prototype[Yi]=function(){return this};var io=Object.prototype.hasOwnProperty;function oo(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var ao=function(t){function e(t){return null==t?yo():Hi(t)?t.toSeq():function(t){var e,r,n=bo(t);if(n)return(r=no(e=t))&&r===e.entries?n.fromEntrySeq():function(t){var e=no(t);return e&&e===t.keys}(t)?n.toSetSeq():n;if("object"==typeof t)return new lo(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new Zi(function(){if(i===n)return{value:void 0,done:!0};var o=r[e?n-++i:i++];return Xi(t,o[0],o[1])})}return this.__iteratorUncached(t,e)},e}(Di),so=function(t){function e(t){return null==t?yo().toKeyedSeq():Ti(t)?Pi(t)?t.toSeq():t.fromEntrySeq():Vi(t)?t.toSeq():_o(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(ao),uo=function(t){function e(t){return null==t?yo():Ti(t)?Pi(t)?t.entrySeq():t.toIndexedSeq():Vi(t)?t.toSeq().entrySeq():go(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(ao),fo=function(t){function e(t){return(Ti(t)&&!Li(t)?t:uo(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(ao);ao.isSeq=zi,ao.Keyed=so,ao.Set=fo,ao.Indexed=uo,ao.prototype[qi]=!0;var co=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[Ei(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(!1===t(r[o],o,this))break}return i},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new Zi(function(){if(i===n)return{value:void 0,done:!0};var o=e?n-++i:i++;return Xi(t,o,r[o])})},e}(uo),lo=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return io.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var a=n[e?i-++o:o++];if(!1===t(r[a],a,this))break}return o},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new Zi(function(){if(o===i)return{value:void 0,done:!0};var a=n[e?i-++o:o++];return Xi(t,a,r[a])})},e}(so);lo.prototype[Gi]=!0;var ho,po=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=ro(this._collection),n=0;if(eo(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=ro(this._collection);if(!eo(r))return new Zi(Qi);var n=0;return new Zi(function(){var e=r.next();return e.done?e:Xi(t,n++,e.value)})},e}(uo);function yo(){return ho||(ho=new co([]))}function _o(t){var e=bo(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new lo(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function go(t){var e=bo(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function bo(t){return oo(t)?new co(t):to(t)?new po(t):void 0}var vo="@@__IMMUTABLE_MAP__@@";function mo(t){return Boolean(t&&t[vo])}function wo(t){return mo(t)&&$i(t)}function So(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function Eo(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(So(t)&&So(e)&&t.equals(e))}var Ao="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function Oo(t){return t>>>1&1073741824|3221225471&t}var xo=Object.prototype.valueOf;function jo(t){if(null==t)return Io(t);if("function"==typeof t.hashCode)return Oo(t.hashCode(t));var e,r,n,i=(e=t).valueOf!==xo&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==i)return Io(i);switch(typeof i){case"boolean":return i?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return Oo(e)}(i);case"string":return i.length>Co?function(t){var e=qo[t];return void 0===e&&(e=ko(t),No===Fo&&(No=0,qo={}),No++,qo[t]=e),e}(i):ko(i);case"object":case"function":return function(t){var e;if(Mo&&void 0!==(e=Po.get(t)))return e;if(void 0!==(e=t[Do]))return e;if(!To){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Do]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=Ro(),Mo)Po.set(t,e);else{if(void 0!==Bo&&!1===Bo(t))throw new Error("Non-extensible objects are not allowed as keys.");if(To)Object.defineProperty(t,Do,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Do]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Do]=e}}return e}(i);case"symbol":return void 0!==(n=Uo[r=i])||(n=Ro(),Uo[r]=n),n;default:if("function"==typeof i.toString)return ko(i.toString());throw new Error("Value type "+typeof i+" cannot be hashed.")}}function Io(t){return null===t?1108378658:1108378659}function ko(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return Oo(e)}var Bo=Object.isExtensible,To=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function Ro(){var t=++Lo;return 1073741824&Lo&&(Lo=0),t}var Po,Mo="function"==typeof WeakMap;Mo&&(Po=new WeakMap);var Uo=Object.create(null),Lo=0,Do="__immutablehash__";"function"==typeof Symbol&&(Do=Symbol(Do));var Co=16,Fo=255,No=0,qo={},zo=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Ko(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=$o(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e,n){return t(e,n,r)},e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(so);zo.prototype[Gi]=!0;var Wo=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&Si(this),this._iter.__iterate(function(i){return t(i,e?r.size-++n:n++,r)},e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(1,e),i=0;return e&&Si(this),new Zi(function(){var o=n.next();return o.done?o:Xi(t,e?r.size-++i:i++,o.value,o)})},e}(uo),Vo=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new Zi(function(){var e=r.next();return e.done?e:Xi(t,e.value,e.value,e)})},e}(fo),Ho=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){ia(e);var n=Ti(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(1,e);return new Zi(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){ia(n);var i=Ti(n);return Xi(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},e}(so);function Go(t){var e=aa(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=sa,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(2===e){var n=t.__iterator(e,r);return new Zi(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(1===e?0:1,r)},e}function $o(t,e,r){var n=aa(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,vi);return o===vi?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,a){return!1!==n(e.call(r,t,i,a),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(2,i);return new Zi(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return Xi(n,s,e.call(r,a[1],s,t),i)})},n}function Ko(t,e){var r=this,n=aa(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Go(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=sa,n.__iterate=function(r,n){var i=this,o=0;return n&&Si(t),t.__iterate(function(t,a){return r(t,e?a:n?i.size-++o:o++,i)},!n)},n.__iterator=function(n,i){var o=0;i&&Si(t);var a=t.__iterator(2,!i);return new Zi(function(){var t=a.next();if(t.done)return t;var s=t.value;return Xi(n,e?s[0]:i?r.size-++o:o++,s[1],t)})},n}function Jo(t,e,r,n){var i=aa(t);return n&&(i.has=function(n){var i=t.get(n,vi);return i!==vi&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,vi);return o!==vi&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(r,t,o,u))return s++,i(t,n?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(2,o),s=0;return new Zi(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,f=u[0],c=u[1];if(e.call(r,c,f,t))return Xi(i,n?f:s++,c,o)}})},i}function Yo(t,e,r,n){var i=t.size;if(Oi(e,r,i))return t;if(void 0===i&&(e<0||r<0))return Yo(t.toSeq().cacheResult(),e,r,n);var o,a=xi(e,i),s=ji(r,i)-a;s==s&&(o=s<0?0:s);var u=aa(t);return u.size=0===o?o:t.size&&o||void 0,!n&&zi(t)&&o>=0&&(u.get=function(e,r){return(e=Ei(this,e))>=0&&e<o?t.get(e+a,r):r}),u.__iterateUncached=function(e,r){var i=this;if(0===o)return 0;if(r)return this.cacheResult().__iterate(e,r);var s=0,u=!0,f=0;return t.__iterate(function(t,r){if(!u||!(u=s++<a))return f++,!1!==e(t,n?r:f-1,i)&&f!==o}),f},u.__iteratorUncached=function(e,r){if(0!==o&&r)return this.cacheResult().__iterator(e,r);if(0===o)return new Zi(Qi);var i=t.__iterator(e,r),s=0,u=0;return new Zi(function(){for(;s++<a;)i.next();if(++u>o)return{value:void 0,done:!0};var t=i.next();return n||1===e||t.done?t:Xi(e,u-1,0===e?void 0:t.value[1],t)})},u}function Zo(t,e,r,n){var i=aa(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,f){if(!s||!(s=e.call(r,t,o,f)))return u++,i(t,n?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),u=!0,f=0;return new Zi(function(){var t,o,c;do{if((t=s.next()).done)return n||1===i?t:Xi(i,f++,0===i?void 0:t.value[1],t);var l=t.value;o=l[0],c=l[1],u&&(u=e.call(r,c,o,a))}while(u);return 2===i?t:Xi(i,o,c,t)})},i}function Xo(t,e,r){var n=aa(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;return function t(u,f){u.__iterate(function(o,u){return(!e||f<e)&&Ti(o)?t(o,f+1):(a++,!1===i(o,r?u:a-1,n)&&(s=!0)),!s},o)}(t,0),a},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),a=[],s=0;return new Zi(function(){for(;o;){var t=o.next();if(!1===t.done){var u=t.value;if(2===n&&(u=u[1]),e&&!(a.length<e)||!Ti(u))return r?t:Xi(n,s++,u,t);a.push(o),o=u.__iterator(n,i)}else o=a.pop()}return{value:void 0,done:!0}})},n}function Qo(t,e,r){e||(e=ua);var n=Pi(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).valueSeq().toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?so(o):Ui(t)?uo(o):fo(o)}function ta(t,e,r){if(e||(e=ua),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return ea(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return ea(e,t,r)?r:t})}function ea(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function ra(t,e,r,n){var i=aa(t),o=new co(r).map(function(t){return t.size});return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(1,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=Di(t),ro(i?t.reverse():t)}),a=0,s=!1;return new Zi(function(){var r;return s||(r=o.map(function(t){return t.next()}),s=n?r.every(function(t){return t.done}):r.some(function(t){return t.done})),s?{value:void 0,done:!0}:Xi(t,a++,e.apply(null,r.map(function(t){return t.value})))})},i}function na(t,e){return t===e?t:zi(t)?e:t.constructor(e)}function ia(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function oa(t){return Pi(t)?Ci:Ui(t)?Fi:Ni}function aa(t){return Object.create((Pi(t)?so:Ui(t)?uo:fo).prototype)}function sa(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ao.prototype.cacheResult.call(this)}function ua(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function fa(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function ca(t,e){if(!t)throw new Error(e)}function la(t){ca(t!==1/0,"Cannot perform this action with an infinite size.")}function ha(t){if(oo(t)&&"string"!=typeof t)return t;if($i(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}Wo.prototype.cacheResult=zo.prototype.cacheResult=Vo.prototype.cacheResult=Ho.prototype.cacheResult=sa;var pa=Object.prototype.toString;function da(t){if(!t||"object"!=typeof t||"[object Object]"!==pa.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function ya(t){return"object"==typeof t&&(Hi(t)||Array.isArray(t)||da(t))}function _a(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function ga(t,e){return Hi(t)?t.has(e):ya(t)&&io.call(t,e)}function ba(t,e,r){return Hi(t)?t.get(e,r):ga(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function va(t){return"string"==typeof t&&("__proto__"===t||"constructor"===t)}function ma(t){if(Array.isArray(t))return fa(t);var e={};for(var r in t)va(r)||io.call(t,r)&&(e[r]=t[r]);return e}function wa(t,e){if(!ya(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(Hi(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!io.call(t,e))return t;var r=ma(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function Sa(t,e,r){if(va(e))return t;if(!ya(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(Hi(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(io.call(t,e)&&r===t[e])return t;var n=ma(t);return n[e]=r,n}function Ea(t,e,r,n){n||(n=r,r=void 0);var i=Aa(Hi(t),t,ha(e),0,r,n);return i===vi?r:i}function Aa(t,e,r,n,i,o){var a=e===vi;if(n===r.length){var s=a?i:e,u=o(s);return u===s?e:u}if(!a&&!ya(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(_a)+"]: "+e);var f=r[n],c=a?vi:ba(e,f,vi),l=Aa(c===vi?t:Hi(c),c,r,n+1,i,o);return l===c?e:l===vi?wa(e,f):Sa(a?t?ns():{}:e,f,l)}function Oa(t,e,r){return Ea(t,e,vi,function(){return r})}function xa(t,e){return Oa(this,t,e)}function ja(t,e){return Ea(t,e,function(){return vi})}function Ia(t){return ja(this,t)}function ka(t,e,r,n){return Ea(t,[e],r,n)}function Ba(t,e,r){return 1===arguments.length?t(this):ka(this,t,e,r)}function Ta(t,e,r){return Ea(this,t,e,r)}function Ra(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ma(this,t)}function Pa(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return Ma(this,e,t)}function Ma(t,e,r){for(var n=[],i=0;i<e.length;i++){var o=Ci(e[i]);0!==o.size&&n.push(o)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations(function(t){for(var e=r?function(e,n){ka(t,n,vi,function(t){return t===vi?e:r(t,e,n)})}:function(e,r){t.set(r,e)},i=0;i<n.length;i++)n[i].forEach(e)}):t.constructor(n[0])}function Ua(t,e,r){return La(t,e,function(t){return function e(r,n,i){return ya(r)&&ya(n)&&(o=n,a=ao(r),s=ao(o),Ui(a)===Ui(s)&&Pi(a)===Pi(s))?La(r,[n],e):t?t(r,n,i):n;var o,a,s}}(r))}function La(t,e,r){if(!ya(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(Hi(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?Fi:Ci,a=n?function(e){i===t&&(i=ma(i)),i.push(e)}:function(e,n){if(!va(n)){var o=io.call(i,n),a=o&&r?r(i[n],e,n):e;o&&a===i[n]||(i===t&&(i=ma(i)),i[n]=a)}},s=0;s<e.length;s++)o(e[s]).forEach(a);return i}function Da(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ua(this,t)}function Ca(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ua(this,e,t)}function Fa(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ea(this,t,ns(),function(t){return La(t,e)})}function Na(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ea(this,t,ns(),function(t){return Ua(t,e)})}function qa(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function za(){return this.__ownerID?this:this.__ensureOwner(new wi)}function Wa(){return this.__ensureOwner()}function Va(){return this.__altered}var Ha=function(t){function e(e){return null==e?ns():mo(e)&&!$i(e)?e:ns().withMutations(function(r){var n=t(e);la(n.size),n.forEach(function(t,e){return r.set(e,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return ns().withMutations(function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}})},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return is(this,t,e)},e.prototype.remove=function(t){return is(this,t,vi)},e.prototype.deleteAll=function(t){var e=Di(t);return 0===e.size?this:this.withMutations(function(t){e.forEach(function(e){return t.remove(e)})})},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ns()},e.prototype.sort=function(t){return ks(Qo(this,t))},e.prototype.sortBy=function(t,e){return ks(Qo(this,e,t))},e.prototype.map=function(t,e){var r=this;return this.withMutations(function(n){n.forEach(function(i,o){n.set(o,t.call(e,i,o,r))})})},e.prototype.__iterator=function(t,e){return new Qa(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?rs(this.size,this._root,t,this.__hash):0===this.size?ns():(this.__ownerID=t,this.__altered=!1,this)},e}(Ci);Ha.isMap=mo;var Ga=Ha.prototype;Ga[vo]=!0,Ga[_i]=Ga.remove,Ga.removeAll=Ga.deleteAll,Ga.setIn=xa,Ga.removeIn=Ga.deleteIn=Ia,Ga.update=Ba,Ga.updateIn=Ta,Ga.merge=Ga.concat=Ra,Ga.mergeWith=Pa,Ga.mergeDeep=Da,Ga.mergeDeepWith=Ca,Ga.mergeIn=Fa,Ga.mergeDeepIn=Na,Ga.withMutations=qa,Ga.wasAltered=Va,Ga.asImmutable=Wa,Ga["@@transducer/init"]=Ga.asMutable=za,Ga["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},Ga["@@transducer/result"]=function(t){return t.asImmutable()};var $a=function(t,e){this.ownerID=t,this.entries=e};$a.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(Eo(r,i[o][0]))return i[o][1];return n},$a.prototype.update=function(t,e,r,n,i,o,a){for(var s=i===vi,u=this.entries,f=0,c=u.length;f<c&&!Eo(n,u[f][0]);f++);var l=f<c;if(l?u[f][1]===i:s)return this;if(mi(a),(s||!l)&&mi(o),!s||1!==u.length){if(!l&&!s&&u.length>=cs)return function(t,e,r,n){t||(t=new wi);for(var i=new Za(t,jo(r),[r,n]),o=0;o<e.length;o++){var a=e[o];i=i.update(t,0,void 0,a[0],a[1])}return i}(t,u,n,i);var h=t&&t===this.ownerID,p=h?u:fa(u);return l?s?f===c-1?p.pop():p[f]=p.pop():p[f]=[n,i]:p.push([n,i]),h?(this.entries=p,this):new $a(t,p)}};var Ka=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};Ka.prototype.get=function(t,e,r,n){void 0===e&&(e=jo(r));var i=1<<((0===t?e:e>>>t)&bi),o=this.bitmap;return 0===(o&i)?n:this.nodes[us(o&i-1)].get(t+5,e,r,n)},Ka.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=jo(n));var s=(0===e?r:r>>>e)&bi,u=1<<s,f=this.bitmap,c=0!==(f&u);if(!c&&i===vi)return this;var l=us(f&u-1),h=this.nodes,p=c?h[l]:void 0,d=os(p,t,e+5,r,n,i,o,a);if(d===p)return this;if(!c&&d&&h.length>=ls)return function(t,e,r,n,i){for(var o=0,a=new Array(gi),s=0;0!==r;s++,r>>>=1)a[s]=1&r?e[o++]:void 0;return a[n]=i,new Ja(t,o+1,a)}(t,h,f,s,d);if(c&&!d&&2===h.length&&as(h[1^l]))return h[1^l];if(c&&d&&1===h.length&&as(d))return d;var y=t&&t===this.ownerID,_=c?d?f:f^u:f|u,g=c?d?fs(h,l,d,y):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,a=0;a<n;a++)a===e&&(o=1),i[a]=t[a+o];return i}(h,l,y):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),a=0,s=0;s<i;s++)s===e?(o[s]=r,a=-1):o[s]=t[s+a];return o}(h,l,d,y);return y?(this.bitmap=_,this.nodes=g,this):new Ka(t,_,g)};var Ja=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Ja.prototype.get=function(t,e,r,n){void 0===e&&(e=jo(r));var i=(0===t?e:e>>>t)&bi,o=this.nodes[i];return o?o.get(t+5,e,r,n):n},Ja.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=jo(n));var s=(0===e?r:r>>>e)&bi,u=i===vi,f=this.nodes,c=f[s];if(u&&!c)return this;var l=os(c,t,e+5,r,n,i,o,a);if(l===c)return this;var h=this.count;if(c){if(!l&&--h<hs)return function(t,e,r,n){for(var i=0,o=0,a=new Array(r),s=0,u=1,f=e.length;s<f;s++,u<<=1){var c=e[s];void 0!==c&&s!==n&&(i|=u,a[o++]=c)}return new Ka(t,i,a)}(t,f,h,s)}else h++;var p=t&&t===this.ownerID,d=fs(f,s,l,p);return p?(this.count=h,this.nodes=d,this):new Ja(t,h,d)};var Ya=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Ya.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,a=i.length;o<a;o++)if(Eo(r,i[o][0]))return i[o][1];return n},Ya.prototype.update=function(t,e,r,n,i,o,a){void 0===r&&(r=jo(n));var s=i===vi;if(r!==this.keyHash)return s?this:(mi(a),mi(o),ss(this,t,e,r,[n,i]));for(var u=this.entries,f=0,c=u.length;f<c&&!Eo(n,u[f][0]);f++);var l=f<c;if(l?u[f][1]===i:s)return this;if(mi(a),(s||!l)&&mi(o),s&&2===c)return new Za(t,this.keyHash,u[1^f]);var h=t&&t===this.ownerID,p=h?u:fa(u);return l?s?f===c-1?p.pop():p[f]=p.pop():p[f]=[n,i]:p.push([n,i]),h?(this.entries=p,this):new Ya(t,this.keyHash,p)};var Za=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};Za.prototype.get=function(t,e,r,n){return Eo(r,this.entry[0])?this.entry[1]:n},Za.prototype.update=function(t,e,r,n,i,o,a){var s=i===vi,u=Eo(n,this.entry[0]);return(u?i===this.entry[1]:s)?this:(mi(a),s?void mi(o):u?t&&t===this.ownerID?(this.entry[1]=i,this):new Za(t,this.keyHash,[n,i]):(mi(o),ss(this,t,e,jo(n),[n,i])))},$a.prototype.iterate=Ya.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},Ka.prototype.iterate=Ja.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},Za.prototype.iterate=function(t,e){return t(this.entry)};var Xa,Qa=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&es(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,i=void 0;if(r.entry){if(0===n)return ts(t,r.entry)}else if(r.entries){if(n<=(i=r.entries.length-1))return ts(t,r.entries[this._reverse?i-n:n])}else if(n<=(i=r.nodes.length-1)){var o=r.nodes[this._reverse?i-n:n];if(o){if(o.entry)return ts(t,o.entry);e=this._stack=es(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(Zi);function ts(t,e){return Xi(t,e[0],e[1])}function es(t,e){return{node:t,index:0,__prev:e}}function rs(t,e,r,n){var i=Object.create(Ga);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function ns(){return Xa||(Xa=rs(0))}function is(t,e,r){var n,i;if(t._root){var o={value:!1},a={value:!1};if(n=os(t._root,t.__ownerID,0,void 0,e,r,o,a),!a.value)return t;i=t.size+(o.value?r===vi?-1:1:0)}else{if(r===vi)return t;i=1,n=new $a(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?rs(i,n):ns()}function os(t,e,r,n,i,o,a,s){return t?t.update(e,r,n,i,o,a,s):o===vi?t:(mi(s),mi(a),new Za(e,n,[i,o]))}function as(t){return t.constructor===Za||t.constructor===Ya}function ss(t,e,r,n,i){if(t.keyHash===n)return new Ya(e,n,[t.entry,i]);var o,a=(0===r?t.keyHash:t.keyHash>>>r)&bi,s=(0===r?n:n>>>r)&bi,u=a===s?[ss(t,e,r+5,n,i)]:(o=new Za(e,n,i),a<s?[t,o]:[o,t]);return new Ka(e,1<<a|1<<s,u)}function us(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function fs(t,e,r,n){var i=n?t:fa(t);return i[e]=r,i}var cs=8,ls=16,hs=8,ps="@@__IMMUTABLE_LIST__@@";function ds(t){return Boolean(t&&t[ps])}var ys=function(t){function e(e){var r=Ss();if(null==e)return r;if(ds(e))return e;var n=t(e),i=n.size;return 0===i?r:(la(i),i>0&&i<gi?ws(0,i,5,null,new gs(n.toArray())):r.withMutations(function(t){t.setSize(i),n.forEach(function(e,r){return t.set(r,e)})}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=Ei(this,t))>=0&&t<this.size){var r=Os(this,t+=this._origin);return r&&r.array[t&bi]}return e},e.prototype.set=function(t,e){return function(t,e,r){if((e=Ei(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?xs(t,e).set(0,r):xs(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o={value:!1};return e>=js(t._capacity)?n=Es(n,t.__ownerID,0,e,r,o):i=Es(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):ws(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Ss()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){xs(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},e.prototype.pop=function(){return xs(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){xs(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},e.prototype.shift=function(){return xs(this,1)},e.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var i=e[n],o=t("string"!=typeof i&&to(i)?i:[i]);0!==o.size&&r.push(o)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations(function(t){r.forEach(function(e){return e.forEach(function(e){return t.push(e)})})}):this.constructor(r[0])},e.prototype.setSize=function(t){return xs(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations(function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,r))})},e.prototype.slice=function(t,e){var r=this.size;return Oi(t,e,r)?this:xs(this,xi(t,r),ji(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=ms(this,e);return new Zi(function(){var i=n();return i===vs?{value:void 0,done:!0}:Xi(t,e?--r:r++,i)})},e.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,i=ms(this,e);(r=i())!==vs&&!1!==t(r,e?--n:n++,this););return n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?ws(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?Ss():(this.__ownerID=t,this.__altered=!1,this)},e}(Fi);ys.isList=ds;var _s=ys.prototype;_s[ps]=!0,_s[_i]=_s.remove,_s.merge=_s.concat,_s.setIn=xa,_s.deleteIn=_s.removeIn=Ia,_s.update=Ba,_s.updateIn=Ta,_s.mergeIn=Fa,_s.mergeDeepIn=Na,_s.withMutations=qa,_s.wasAltered=Va,_s.asImmutable=Wa,_s["@@transducer/init"]=_s.asMutable=za,_s["@@transducer/step"]=function(t,e){return t.push(e)},_s["@@transducer/result"]=function(t){return t.asImmutable()};var gs=function(t,e){this.array=t,this.ownerID=e};gs.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&bi;if(n>=this.array.length)return new gs([],t);var i,o=0===n;if(e>0){var a=this.array[n];if((i=a&&a.removeBefore(t,e-5,r))===a&&o)return this}if(o&&!i)return this;var s=As(this,t);if(!o)for(var u=0;u<n;u++)s.array[u]=void 0;return i&&(s.array[n]=i),s},gs.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n,i=r-1>>>e&bi;if(i>=this.array.length)return this;if(e>0){var o=this.array[i];if((n=o&&o.removeAfter(t,e-5,r))===o&&i===this.array.length-1)return this}var a=As(this,t);return a.array.splice(i+1),n&&(a.array[i]=n),a};var bs,vs={};function ms(t,e){var r=t._origin,n=t._capacity,i=js(n),o=t._tail;return function t(a,s,u){return 0===s?function(t,a){var s=a===i?o&&o.array:t&&t.array,u=a>r?0:r-a,f=n-a;return f>gi&&(f=gi),function(){if(u===f)return vs;var t=e?--f:u++;return s&&s[t]}}(a,u):function(i,o,a){var s,u=i&&i.array,f=a>r?0:r-a>>o,c=1+(n-a>>o);return c>gi&&(c=gi),function(){for(;;){if(s){var r=s();if(r!==vs)return r;s=null}if(f===c)return vs;var n=e?--c:f++;s=t(u&&u[n],o-5,a+(n<<o))}}}(a,s,u)}(t._root,t._level,0)}function ws(t,e,r,n,i,o,a){var s=Object.create(_s);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}function Ss(){return bs||(bs=ws(0,0,5))}function Es(t,e,r,n,i,o){var a,s=n>>>r&bi,u=t&&s<t.array.length;if(!u&&void 0===i)return t;if(r>0){var f=t&&t.array[s],c=Es(f,e,r-5,n,i,o);return c===f?t:((a=As(t,e)).array[s]=c,a)}return u&&t.array[s]===i?t:(o&&mi(o),a=As(t,e),void 0===i&&s===a.array.length-1?a.array.pop():a.array[s]=i,a)}function As(t,e){return e&&t&&e===t.ownerID?t:new gs(t?t.array.slice():[],e)}function Os(t,e){if(e>=js(t._capacity))return t._tail;if(e<1<<t._level+5){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&bi],n-=5;return r}}function xs(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new wi,i=t._origin,o=t._capacity,a=i+e,s=void 0===r?o:r<0?o+r:i+r;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,f=t._root,c=0;a+c<0;)f=new gs(f&&f.array.length?[void 0,f]:[],n),c+=1<<(u+=5);c&&(a+=c,i+=c,s+=c,o+=c);for(var l=js(o),h=js(s);h>=1<<u+5;)f=new gs(f&&f.array.length?[f]:[],n),u+=5;var p=t._tail,d=h<l?Os(t,s-1):h>l?new gs([],n):p;if(p&&h>l&&a<o&&p.array.length){for(var y=f=As(f,n),_=u;_>5;_-=5){var g=l>>>_&bi;y=y.array[g]=As(y.array[g],n)}y.array[l>>>5&bi]=p}if(s<o&&(d=d&&d.removeAfter(n,0,s)),a>=h)a-=h,s-=h,u=5,f=null,d=d&&d.removeBefore(n,0,a);else if(a>i||h<l){for(c=0;f;){var b=a>>>u&bi;if(b!==h>>>u&bi)break;b&&(c+=(1<<u)*b),u-=5,f=f.array[b]}f&&a>i&&(f=f.removeBefore(n,u,a-c)),f&&h<l&&(f=f.removeAfter(n,u,h-c)),c&&(a-=c,s-=c)}return t.__ownerID?(t.size=s-a,t._origin=a,t._capacity=s,t._level=u,t._root=f,t._tail=d,t.__hash=void 0,t.__altered=!0,t):ws(a,s,u,f,d)}function js(t){return t<gi?0:t-1>>>5<<5}var Is,ks=function(t){function e(t){return null==t?Ts():wo(t)?t:Ts().withMutations(function(e){var r=Ci(t);la(r.size),r.forEach(function(t,r){return e.set(r,t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Ts()},e.prototype.set=function(t,e){return Rs(this,t,e)},e.prototype.remove=function(t){return Rs(this,t,vi)},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Bs(e,r,t,this.__hash):0===this.size?Ts():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},e}(Ha);function Bs(t,e,r,n){var i=Object.create(ks.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Ts(){return Is||(Is=Bs(ns(),Ss()))}function Rs(t,e,r){var n,i,o=t._map,a=t._list,s=o.get(e),u=void 0!==s;if(r===vi){if(!u)return t;a.size>=gi&&a.size>=2*o.size?(n=(i=a.filter(function(t,e){return void 0!==t&&s!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(r===a.get(s)[1])return t;n=o,i=a.set(s,[e,r])}else n=o.set(e,a.size),i=a.set(a.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t.__altered=!0,t):Bs(n,i)}ks.isOrderedMap=wo,ks.prototype[Gi]=!0,ks.prototype[_i]=ks.prototype.remove;var Ps="@@__IMMUTABLE_STACK__@@";function Ms(t){return Boolean(t&&t[Ps])}var Us=function(t){function e(t){return null==t?Fs():Ms(t)?t:Fs().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=Ei(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Cs(e,r)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Ms(e))return e;la(e.size);var r=this.size,n=this._head;return e.__iterate(function(t){r++,n={value:t,next:n}},!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Cs(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Fs()},e.prototype.slice=function(e,r){if(Oi(e,r,this.size))return this;var n=xi(e,this.size);if(ji(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cs(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Cs(this.size,this._head,t,this.__hash):0===this.size?Fs():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new co(this.toArray()).__iterate(function(e,n){return t(e,n,r)},e);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},e.prototype.__iterator=function(t,e){if(e)return new co(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new Zi(function(){if(n){var e=n.value;return n=n.next,Xi(t,r++,e)}return{value:void 0,done:!0}})},e}(Fi);Us.isStack=Ms;var Ls,Ds=Us.prototype;function Cs(t,e,r,n){var i=Object.create(Ds);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Fs(){return Ls||(Ls=Cs(0))}Ds[Ps]=!0,Ds.shift=Ds.pop,Ds.unshift=Ds.push,Ds.unshiftAll=Ds.pushAll,Ds.withMutations=qa,Ds.wasAltered=Va,Ds.asImmutable=Wa,Ds["@@transducer/init"]=Ds.asMutable=za,Ds["@@transducer/step"]=function(t,e){return t.unshift(e)},Ds["@@transducer/result"]=function(t){return t.asImmutable()};var Ns="@@__IMMUTABLE_SET__@@";function qs(t){return Boolean(t&&t[Ns])}function zs(t){return qs(t)&&$i(t)}function Ws(t,e){if(t===e)return!0;if(!Ti(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||Pi(t)!==Pi(e)||Ui(t)!==Ui(e)||$i(t)!==$i(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!Li(t);if($i(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&Eo(i[1],t)&&(r||Eo(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var o=t;t=e,e=o}var a=!0,s=e.__iterate(function(e,n){if(r?!t.has(e):i?!Eo(e,t.get(n,vi)):!Eo(t.get(n,vi),e))return a=!1,!1});return a&&t.size===s}function Vs(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Hs(t){if(!t||"object"!=typeof t)return t;if(!Ti(t)){if(!ya(t))return t;t=ao(t)}if(Pi(t)){var e={};return t.__iterate(function(t,r){va(r)||(e[r]=Hs(t))}),e}var r=[];return t.__iterate(function(t){r.push(Hs(t))}),r}var Gs=function(t){function e(e){return null==e?Zs():qs(e)&&!$i(e)?e:Zs().withMutations(function(r){var n=t(e);la(n.size),n.forEach(function(t){return r.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Ci(t).keySeq())},e.intersect=function(t){return(t=Di(t).toArray()).length?Ks.intersect.apply(e(t.pop()),t):Zs()},e.union=function(t){return(t=Di(t).toArray()).length?Ks.union.apply(e(t.pop()),t):Zs()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Js(this,this._map.set(t,t))},e.prototype.remove=function(t){return Js(this,this._map.remove(t))},e.prototype.clear=function(){return Js(this,this._map.clear())},e.prototype.map=function(t,e){var r=this,n=!1,i=Js(this,this._map.mapEntries(function(i){var o=i[1],a=t.call(e,o,o,r);return a!==o&&(n=!0),[a,a]},e));return n?i:this},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return 0===(e=e.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations(function(r){for(var n=0;n<e.length;n++)"string"==typeof e[n]?r.add(e[n]):t(e[n]).forEach(function(t){return r.add(t)})}):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.every(function(e){return e.includes(t)})||n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map(function(e){return t(e)});var n=[];return this.forEach(function(t){e.some(function(e){return e.includes(t)})&&n.push(t)}),this.withMutations(function(t){n.forEach(function(e){t.remove(e)})})},e.prototype.sort=function(t){return _u(Qo(this,t))},e.prototype.sortBy=function(t,e){return _u(Qo(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e){return t(e,e,r)},e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(Ni);Gs.isSet=qs;var $s,Ks=Gs.prototype;function Js(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Ys(t,e){var r=Object.create(Ks);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Zs(){return $s||($s=Ys(ns()))}Ks[Ns]=!0,Ks[_i]=Ks.remove,Ks.merge=Ks.concat=Ks.union,Ks.withMutations=qa,Ks.asImmutable=Wa,Ks["@@transducer/init"]=Ks.asMutable=za,Ks["@@transducer/step"]=function(t,e){return t.add(e)},Ks["@@transducer/result"]=function(t){return t.asImmutable()},Ks.__empty=Zs,Ks.__make=Ys;var Xs,Qs=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(ca(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,this.size=Math.max(0,Math.ceil((r-t)/n-1)+1),0===this.size){if(Xs)return Xs;Xs=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+Ei(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return Oi(t,r,this.size)?this:(t=xi(t,this.size),(r=ji(r,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step===0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;o!==r&&!1!==t(i,e?r-++o:o++,this);)i+=e?-n:n;return o},e.prototype.__iterator=function(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new Zi(function(){if(o===r)return{value:void 0,done:!0};var a=i;return i+=e?-n:n,Xi(t,e?r-++o:o++,a)})},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:Ws(this,t)},e}(uo);function tu(t,e,r){for(var n=ha(e),i=0;i!==n.length;)if((t=ba(t,n[i++],vi))===vi)return r;return t}function eu(t,e){return tu(this,t,e)}function ru(t,e){return tu(t,e,vi)!==vi}function nu(){la(this.size);var t={};return this.__iterate(function(e,r){va(r)||(t[r]=e)}),t}Di.isIterable=Ti,Di.isKeyed=Pi,Di.isIndexed=Ui,Di.isAssociative=Li,Di.isOrdered=$i,Di.Iterator=Zi,Vs(Di,{toArray:function(){la(this.size);var t=new Array(this.size||0),e=Pi(this),r=0;return this.__iterate(function(n,i){t[r++]=e?[i,n]:n}),t},toIndexedSeq:function(){return new Wo(this)},toJS:function(){return Hs(this)},toKeyedSeq:function(){return new zo(this,!0)},toMap:function(){return Ha(this.toKeyedSeq())},toObject:nu,toOrderedMap:function(){return ks(this.toKeyedSeq())},toOrderedSet:function(){return _u(Pi(this)?this.valueSeq():this)},toSet:function(){return Gs(Pi(this)?this.valueSeq():this)},toSetSeq:function(){return new Vo(this)},toSeq:function(){return Ui(this)?this.toIndexedSeq():Pi(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Us(Pi(this)?this.valueSeq():this)},toList:function(){return ys(Pi(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return na(this,function(t,e){var r=Pi(t),n=[t].concat(e).map(function(t){return Ti(t)?r&&(t=Ci(t)):t=r?_o(t):go(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&Pi(i)||Ui(t)&&Ui(i))return i}var o=new co(n);return r?o=o.toKeyedSeq():Ui(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),o}(this,t))},includes:function(t){return this.some(function(e){return Eo(e,t)})},entries:function(){return this.__iterator(2)},every:function(t,e){la(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return na(this,Jo(this,t,e,!0))},partition:function(t,e){return function(t,e,r){var n=Pi(t),i=[[],[]];t.__iterate(function(o,a){i[e.call(r,o,a,t)?1:0].push(n?[a,o]:o)});var o=oa(t);return i.map(function(e){return na(t,o(e))})}(this,t,e)},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return la(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){la(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""}),e},keys:function(){return this.__iterator(0)},map:function(t,e){return na(this,$o(this,t,e))},reduce:function(t,e,r){return uu(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return uu(this,t,e,r,arguments.length<2,!0)},reverse:function(){return na(this,Ko(this,!0))},slice:function(t,e){return na(this,Yo(this,t,e,!0))},some:function(t,e){la(this.size);var r=!1;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=!0,!1}),r},sort:function(t){return na(this,Qo(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return Si(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Ha().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}(this,t,e)},equals:function(t){return Ws(this,t)},entrySeq:function(){var t=this;if(t._cache)return new co(t._cache);var e=t.toSeq().map(cu).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(lu(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate(function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1}),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(Ai,null,t)},flatMap:function(t,e){return na(this,function(t,e,r){var n=oa(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}(this,t,e))},flatten:function(t){return na(this,Xo(this,t,!0))},fromEntrySeq:function(){return new Ho(this)},get:function(t,e){return this.find(function(e,r){return Eo(r,t)},void 0,e)},getIn:eu,groupBy:function(t,e){return function(t,e,r){var n=Pi(t),i=($i(t)?ks():Ha()).asMutable();t.__iterate(function(o,a){i.update(e.call(r,o,a,t),function(t){return(t=t||[]).push(n?[a,o]:o),t})});var o=oa(t);return i.map(function(e){return na(t,o(e))}).asImmutable()}(this,t,e)},has:function(t){return this.get(t,vi)!==vi},hasIn:function(t){return ru(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:Di(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:Di(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return Eo(e,t)})},keySeq:function(){return this.toSeq().map(fu).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return ta(this,t)},maxBy:function(t,e){return ta(this,e,t)},min:function(t){return ta(this,t?hu(t):du)},minBy:function(t,e){return ta(this,e?hu(e):du,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return na(this,Zo(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(lu(t),e)},sortBy:function(t,e){return na(this,Qo(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return na(this,function(t,e,r){var n=aa(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var a=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++a&&n(t,i,o)}),a},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var a=t.__iterator(2,i),s=!0;return new Zi(function(){if(!s)return{value:void 0,done:!0};var t=a.next();if(t.done)return t;var i=t.value,u=i[0],f=i[1];return e.call(r,f,u,o)?2===n?t:Xi(n,u,f,t):(s=!1,{value:void 0,done:!0})})},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(lu(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=$i(t),r=Pi(t),n=e?1:0;return function(t,e){return e=Ao(e,3432918353),e=Ao(e<<15|e>>>-15,461845907),e=Ao(e<<13|e>>>-13,5),e=Ao((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=Oo((e=Ao(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+yu(jo(t),jo(e))|0}:function(t,e){n=n+yu(jo(t),jo(e))|0}:e?function(t){n=31*n+jo(t)|0}:function(t){n=n+jo(t)|0}),n)}(this))}});var iu=Di.prototype;iu[Bi]=!0,iu[Yi]=iu.values,iu.toJSON=iu.toArray,iu.__toStringMapper=_a,iu.inspect=iu.toSource=function(){return this.toString()},iu.chain=iu.flatMap,iu.contains=iu.includes,Vs(Ci,{flip:function(){return na(this,Go(this))},mapEntries:function(t,e){var r=this,n=0;return na(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return na(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var ou=Ci.prototype;ou[Ri]=!0,ou[Yi]=iu.entries,ou.toJSON=nu,ou.__toStringMapper=function(t,e){return _a(e)+": "+_a(t)},Vs(Fi,{toKeyedSeq:function(){return new zo(this,!1)},filter:function(t,e){return na(this,Jo(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return na(this,Ko(this,!1))},slice:function(t,e){return na(this,Yo(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=xi(t,t<0?this.count():this.size);var n=this.slice(0,t);return na(this,1===r?n:n.concat(fa(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return na(this,Xo(this,t,!1))},get:function(t,e){return(t=Ei(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=Ei(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return na(this,function(t,e){var r=aa(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(1,n),a=0;return new Zi(function(){return(!i||a%2)&&(i=o.next()).done?i:a%2?Xi(r,a++,e):Xi(r,a++,i.value,i)})},r}(this,t))},interleave:function(){var t=[this].concat(fa(arguments)),e=ra(this.toSeq(),uo.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),na(this,r)},keySeq:function(){return Qs(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return na(this,Zo(this,t,e,!1))},zip:function(){return na(this,ra(this,pu,[this].concat(fa(arguments))))},zipAll:function(){return na(this,ra(this,pu,[this].concat(fa(arguments)),!0))},zipWith:function(t){var e=fa(arguments);return e[0]=this,na(this,ra(this,t,e))}});var au=Fi.prototype;au[Mi]=!0,au[Gi]=!0,Vs(Ni,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var su=Ni.prototype;function uu(t,e,r,n,i,o){return la(t.size),t.__iterate(function(t,o,a){i?(i=!1,r=t):r=e.call(n,r,t,o,a)},o),r}function fu(t,e){return e}function cu(t,e){return[e,t]}function lu(t){return function(){return!t.apply(this,arguments)}}function hu(t){return function(){return-t.apply(this,arguments)}}function pu(){return fa(arguments)}function du(t,e){return t<e?1:t>e?-1:0}function yu(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}su.has=iu.includes,su.contains=su.includes,su.keys=su.values,Vs(so,ou),Vs(uo,au),Vs(fo,su);var _u=function(t){function e(t){return null==t?mu():zs(t)?t:mu().withMutations(function(e){var r=Ni(t);la(r.size),r.forEach(function(t){return e.add(t)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(Ci(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Gs);_u.isOrderedSet=zs;var gu,bu=_u.prototype;function vu(t,e){var r=Object.create(bu);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function mu(){return gu||(gu=vu(Ts()))}bu[Gi]=!0,bu.zip=au.zip,bu.zipWith=au.zipWith,bu.zipAll=au.zipAll,bu.__empty=mu,bu.__make=vu;var wu=function(t,e){var r;!function(t){if(Vi(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Hi(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var n=function(o){var a=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var s=Object.keys(t),u=i._indices={};i._name=e,i._keys=s,i._defaultValues=t;for(var f=0;f<s.length;f++){var c=s[f];u[c]=f,i[c]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+Au(this)+' with property "'+c+'" since that property name is part of the Record API.'):xu(i,c)}}return this.__ownerID=void 0,this._values=ys().withMutations(function(t){t.setSize(a._keys.length),Ci(o).forEach(function(e,r){t.set(a._indices[r],e===a._defaultValues[r]?void 0:e)})}),this},i=n.prototype=Object.create(Su);return i.constructor=n,e&&(n.displayName=e),n};wu.prototype.toString=function(){for(var t,e=Au(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)e+=(n?", ":"")+(t=r[n])+": "+_a(this.get(t));return e+" }"},wu.prototype.equals=function(t){return this===t||Vi(t)&&Ou(this).equals(Ou(t))},wu.prototype.hashCode=function(){return Ou(this).hashCode()},wu.prototype.has=function(t){return this._indices.hasOwnProperty(t)},wu.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},wu.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return Eu(this,r)}return this},wu.prototype.remove=function(t){return this.set(t)},wu.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:Eu(this,t)},wu.prototype.wasAltered=function(){return this._values.wasAltered()},wu.prototype.toSeq=function(){return Ou(this)},wu.prototype.toJS=function(){return Hs(this)},wu.prototype.entries=function(){return this.__iterator(2)},wu.prototype.__iterator=function(t,e){return Ou(this).__iterator(t,e)},wu.prototype.__iterate=function(t,e){return Ou(this).__iterate(t,e)},wu.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?Eu(this,e,t):(this.__ownerID=t,this._values=e,this)},wu.isRecord=Vi,wu.getDescriptiveName=Au;var Su=wu.prototype;function Eu(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function Au(t){return t.constructor.displayName||t.constructor.name||"Record"}function Ou(t){return _o(t._keys.map(function(e){return[e,t.get(e)]}))}function xu(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){ca(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}Su[Wi]=!0,Su[_i]=Su.remove,Su.deleteIn=Su.removeIn=Ia,Su.getIn=eu,Su.hasIn=iu.hasIn,Su.merge=Ra,Su.mergeWith=Pa,Su.mergeIn=Fa,Su.mergeDeep=Da,Su.mergeDeepWith=Ca,Su.mergeDeepIn=Na,Su.setIn=xa,Su.update=Ba,Su.updateIn=Ta,Su.withMutations=qa,Su.asMutable=za,Su.asImmutable=Wa,Su[Yi]=Su.entries,Su.toJSON=Su.toObject=iu.toObject,Su.inspect=Su.toSource=function(){return this.toString()};var ju,Iu=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(ju)return ju;ju=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return Eo(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return Oi(t,r,n)?this:new e(this._value,ji(r,n)-xi(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return Eo(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return Eo(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},e.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new Zi(function(){return i===n?{value:void 0,done:!0}:Xi(t,e?n-++i:i++,r._value)})},e.prototype.equals=function(t){return t instanceof e?Eo(this._value,t._value):Ws(this,t)},e}(uo);function ku(t,e,r,n,i,o){if("string"!=typeof r&&!Hi(r)&&(oo(r)||to(r)||da(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==n&&i.push(n);var a=e.call(o,n,ao(r).map(function(n,o){return ku(t,e,n,o,i,r)}),i&&i.slice());return t.pop(),i&&i.pop(),a}return r}function Bu(t,e){return Ui(e)?e.toList():Pi(e)?e.toMap():e.toSet()}const Tu={version:"4.3.8",Collection:Di,Iterable:Di,Seq:ao,Map:Ha,OrderedMap:ks,List:ys,Stack:Us,Set:Gs,OrderedSet:_u,PairSorting:{LeftThenRight:-1,RightThenLeft:1},Record:wu,Range:Qs,Repeat:Iu,is:Eo,fromJS:function(t,e){return ku([],e||Bu,t,"",e&&e.length>2?[]:void 0,{"":t})},hash:jo,isImmutable:Hi,isCollection:Ti,isKeyed:Pi,isIndexed:Ui,isAssociative:Li,isOrdered:$i,isValueObject:So,isPlainObject:da,isSeq:zi,isList:ds,isMap:mo,isOrderedMap:wo,isStack:Ms,isSet:qs,isOrderedSet:zs,isRecord:Vi,get:ba,getIn:tu,has:ga,hasIn:ru,merge:function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return La(t,e)},mergeDeep:function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ua(t,e)},mergeWith:function(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return La(e,r,t)},mergeDeepWith:function(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Ua(e,r,t)},remove:wa,removeIn:ja,set:Sa,setIn:Oa,update:ka,updateIn:Ea};var Ru=/\b\d+\.\d+\.(\d+)\b/;const Pu={is_account_name:function(t,e){var r,n,i,o,a;if(void 0===e&&(e=!1),this.is_empty(t))return!1;if(o=t.length,!e&&o<3||o>63)return!1;for(r=0,i=(a=t.split(".")).length;r<i;r++)if(n=a[r],!/^[a-z][a-z0-9-]*$/.test(n)||/--/.test(n)||!/[a-z0-9]$/.test(n))return!1;return!0},is_object_id:function(t){return"string"==typeof t&&null!==Ru.exec(t)&&3===t.split(".").length},is_empty:function(t){return null==t||0===t.length},is_account_name_error:function(t,e){var r,n,i,o,a,s;if(null==e&&(e=!1),s="Account name should ",this.is_empty(t))return s+"not be empty.";if(o=t.length,!e&&o<3)return s+"be longer.";if(o>63)return s+"be shorter.";for(/\./.test(t)&&(s="Each account segment should "),r=0,i=(a=t.split(".")).length;r<i;r++){if(n=a[r],!/^[~a-z]/.test(n))return s+"start with a letter.";if(!/^[~a-z0-9-]*$/.test(n))return s+"have only letters, digits, or dashes.";if(/--/.test(n))return s+"have only one dash in a row.";if(!/[a-z0-9]$/.test(n))return s+"end with a letter or digit.";if(!(n.length>=3))return s+"be longer"}return null},is_cheap_name:function(t){return/[0-9-]/.test(t)||!/[aeiouy]/.test(t)},is_empty_user_input:function(t){return!!this.is_empty(t)||""===(t+"").trim()},required:function(t,e){if(void 0===e&&(e=""),this.is_empty(t))throw new Error("value required for "+e+": "+t);return t},is_valid_symbol_error:function(t){var e="Asset name should ";return this.is_empty(t)?e+"not be empty.":t.split(".").length>2?e+"have only one dot.":t.length<3?e+"be longer.":t.length>16?e+"be shorter.":/^[A-Z]/.test(t)?/[A-Z0-9]$/.test(t)?/^[A-Z0-9\.]$/.test(t)?e+"contain only letters numbers and perhaps a dot.":null:e+"end with a letter or number":e+"start with a letter"}};var Mu,Uu=r(3068),Lu=T.object_type,Du=T.impl_object_type,Cu=(Mu||(Mu=r.n(Uu)()({})),Mu),Fu=parseInt(Lu.operation_history,10),Nu=parseInt(Lu.witness,10),qu=parseInt(Lu.committee_member,10),zu=parseInt(Lu.account,10),Wu="1."+Nu+".",Vu="1."+qu+".",Hu="1."+zu+".",Gu=JSON.parse({NODE_ENV:"production"}.npm_config__graphene_chain_chain_debug||!1),$u=Object.keys(Lu),Ku=Object.keys(Du),Ju=!0;function Yu(t){var e=t.split("."),r=e[0],n=e[1];switch(n=parseInt(n,10),r){case"0":return"unknown";case"1":return $u[n];case"2":return Ku[n];case"5":return"market"}}var Zu=function(){function t(){this.subscribers=new Set,this.subscribed=!1,this.clearCache(),this.chain_time_offset=[],this.dispatchFrequency=40}var e=t.prototype;return e.clearCache=function(){this.subbed_accounts=new Set,this.subbed_witnesses=new Set,this.subbed_committee=new Set,this.objects_by_id=new Map,this.accounts_by_name=new Map,this.assets_by_symbol=new Map,this.account_ids_by_key=Tu.Map(),this.account_ids_by_account=Tu.Map(),this.balance_objects_by_address=new Map,this.get_account_refs_of_keys_calls=new Set,this.get_account_refs_of_accounts_calls=new Set,this.account_history_requests=new Map,this.witness_by_account_id=new Map,this.workers=new Set,this.committee_by_account_id=new Map,this.objects_by_vote_id=new Map,this.fetching_get_full_accounts=new Map,this.get_full_accounts_subscriptions=new Map,clearTimeout(this.timeout),this.dispatched=!1},e.resetCache=function(t){return this.subscribed=!1,this.subError=null,this.clearCache(),this.head_block_time_string=null,this.init(t).catch(function(t){throw t})},e.setDispatchFrequency=function(t){this.dispatchFrequency=t},e.init=function(t){var e=this;void 0===t&&(t=!0);var r=0,n=function n(i,o){if(e.subscribed)return i();var a=b.a2.instance().db_api();return a?a.exec("get_objects",[["2.1.0"]]).then(function(a){for(var s=0;s<a.length;s++){var u=a[s];if(u){var f=new Date(u.time+"+00:00").getTime();if(e.head_block_time_string=u.time,e.chain_time_offset.push((new Date).getTime()-Qu(u.time).getTime()),((new Date).getTime()-f)/1e3<60)b.a2.instance().db_api().exec("set_subscribe_callback",[e.onUpdate.bind(e),t]).then(function(){console.log("synced and subscribed, chainstore ready"),e.subscribed=!0,e.subError=null,e.notifySubscribers(),i()}).catch(function(t){e.subscribed=!1,e.subError=t,e.notifySubscribers(),o(t),console.log("Error: ",t)});else{if(console.log("not yet synced, retrying in 1s"),e.subscribed=!1,r++,e.notifySubscribers(),r>5)return e.subError=new Error("ChainStore sync error, please check your system clock"),o(e.subError);setTimeout(n.bind(e,i,o),1e3)}}else setTimeout(n.bind(e,i,o),1e3)}}).catch(function(t){console.log("!!! Chain API error",t),e.objects_by_id.delete("2.1.0"),o(t)}):o(new Error("Api not found, please initialize the api instance before calling the ChainStore"))};return new Promise(function(t,e){return n(t,e)})},e._subTo=function(t,e){var r="subbed_"+t;this[r].has(e)||this[r].add(e)},e.unSubFrom=function(t,e){this["subbed_"+t].delete(e),this.objects_by_id.delete(e)},e._isSubbedTo=function(t,e){return this["subbed_"+t].has(e)},e.onUpdate=function(t){for(var e=this,r=[],n=[],i=0;i<t.length;++i)for(var o=function(o){var a=t[i][o];if(Pu.is_object_id(a)){var s=e.objects_by_id.get(a);switch(Yu(a)){case"limit_order":if(r.push(a),s){var u=e.objects_by_id.get(s.get("seller"));if(u&&u.has("orders")){var f=u.get("orders");u.get("orders").has(a)&&(u=u.set("orders",f.delete(a)),e.objects_by_id.set(u.get("id"),u))}}break;case"call_order":if(n.push(a),s){var c=e.objects_by_id.get(s.get("borrower"));if(c&&c.has("call_orders")){var l=c.get("call_orders");c.get("call_orders").has(a)&&(c=c.set("call_orders",l.delete(a)),e.objects_by_id.set(c.get("id"),c))}}break;case"proposal":e.subbed_accounts.forEach(function(t){var r=e.objects_by_id.get(t);if(r){var n=r.get("proposals",Tu.Set());n.includes(a)&&(n=n.delete(a),r=r.set("proposals",n),e.objects_by_id.set(r.get("id"),r))}})}s&&e.objects_by_id.set(a,null)}else e._updateObject(a)},a=0;a<t[i].length;++a)o(a);r.length&&Cu.emit("cancel-order",r),n.length&&Cu.emit("close-call",n),this.notifySubscribers()},e.notifySubscribers=function(){var t=this;this.dispatched||(this.dispatched=!0,this.timeout=setTimeout(function(){t.dispatched=!1,t.subscribers.forEach(function(t){t()})},this.dispatchFrequency))},e.subscribe=function(t){if(this.subscribers.has(t))return console.error("Subscribe callback already exists",t);this.subscribers.add(t)},e.unsubscribe=function(t){if(!this.subscribers.has(t))return console.error("Unsubscribe callback does not exists",t);this.subscribers.delete(t)},e.clearObjectCache=function(t){this.objects_by_id.delete(t)},e.getObject=function(t,e,r,n){if(void 0===e&&(e=!1),void 0===r&&(r=null),void 0===n&&(n=!1),null==r&&(r=Ju),!Pu.is_object_id(t))throw Error("argument is not an object id: "+JSON.stringify(t));var i=this.objects_by_id.get(t),o=t.substring(0,Hu.length)==Hu&&!this.get_full_accounts_subscriptions.get(t,!1)&&r;return null!==i||e?void 0===i||e||o?this.fetchObject(t,e,r,n):!0!==i?i:void 0:i},e.getAsset=function(t){var e=this;if(!t)return null;if(Pu.is_object_id(t)){var r=this.getObject(t);if(r&&r.get("bitasset")&&!r.getIn(["bitasset","current_feed"]))return;return r}var n=this.assets_by_symbol.get(t);if(Pu.is_object_id(n)){var i=this.getObject(n);if(i&&i.get("bitasset")&&!i.getIn(["bitasset","current_feed"]))return;return i}if(null===n)return null;!0!==n&&b.a2.instance().db_api().exec("lookup_asset_symbols",[[t]]).then(function(r){r.length&&r[0]?e._updateObject(r[0],!0):(e.assets_by_symbol.set(t,null),e.notifySubscribers())}).catch(function(r){console.log("Error: ",r),e.assets_by_symbol.delete(t)})},e.getAccountRefsOfKey=function(t){var e=this;return this.get_account_refs_of_keys_calls.has(t)?this.account_ids_by_key.get(t):(this.get_account_refs_of_keys_calls.add(t),void b.a2.instance().db_api().exec("get_key_references",[[t]]).then(function(r){var n=Tu.Set();r=r[0],n=n.withMutations(function(t){for(var e=0;e<r.length;++e)t.add(r[e])}),e.account_ids_by_key=e.account_ids_by_key.set(t,n),e.notifySubscribers()}).catch(function(r){console.error("get_key_references",r),e.account_ids_by_key=e.account_ids_by_key.delete(t),e.get_account_refs_of_keys_calls.delete(t)}))},e.getAccountRefsOfAccount=function(t){var e=this;return this.get_account_refs_of_accounts_calls.has(t)?this.account_ids_by_account.get(t):(this.get_account_refs_of_accounts_calls.add(t),void b.a2.instance().db_api().exec("get_account_references",[t]).then(function(r){var n=Tu.Set();n=n.withMutations(function(t){for(var e=0;e<r.length;++e)t.add(r[e])}),e.account_ids_by_account=e.account_ids_by_account.set(t,n),e.notifySubscribers()}).catch(function(r){console.error("get_account_references",r),e.account_ids_by_account=e.account_ids_by_account.delete(t),e.get_account_refs_of_accounts_calls.delete(t)}))},e.getBalanceObjects=function(t){var e=this;return void 0===this.balance_objects_by_address.get(t)&&(this.balance_objects_by_address.set(t,Tu.Set()),b.a2.instance().db_api().exec("get_balance_objects",[[t]]).then(function(r){for(var n=new Set,i=0;i<r.length;++i)e._updateObject(r[i]),n.add(r[i].id);e.balance_objects_by_address.set(t,Tu.Set(n)),e.notifySubscribers()},function(){e.balance_objects_by_address.delete(t)})),this.balance_objects_by_address.get(t)},e.fetchObject=function(t,e,r,n){var i=this;if(void 0===e&&(e=!1),void 0===r&&(r=null),void 0===n&&(n=!1),null==r&&(r=Ju),"string"!=typeof t){for(var o=[],a=0;a<t.length;++a)o.push(this.fetchObject(t[a],e,r));return o}if(Gu&&console.log("!!! fetchObject: ",t,this.subscribed,!this.subscribed&&!e),this.subscribed||e){if(Gu&&console.log("maybe fetch object: ",t),!Pu.is_object_id(t))throw Error("argument is not an object id: "+t);if(0===t.search("1.2.")&&!n)return this.fetchFullAccount(t,r);0===t.search(Wu)&&this._subTo("witnesses",t),0===t.search(Vu)&&this._subTo("committee",t);var s=this.objects_by_id.get(t);if(void 0===s){if(Gu&&console.log("fetching object: ",t),this.objects_by_id.set(t,!0),!b.a2.instance().db_api())return null;b.a2.instance().db_api().exec("get_objects",[[t]]).then(function(e){for(var r=0;r<e.length;r++){var n=e[r];n?i._updateObject(n,!0):(i.objects_by_id.set(t,null),i.notifySubscribers())}}).catch(function(e){console.log("!!! Chain API error",e),i.objects_by_id.delete(t)})}else if(!0===s)return;return s}},e.getAccount=function(t,e){if(void 0===e&&(e=null),null==e&&(e=Ju),!t)return null;if("object"==typeof t)return t.id?this.getAccount(t.id,e):t.get?this.getAccount(t.get("id"),e):void 0;if(Pu.is_object_id(t)){var r=this.getObject(t,!1,e);return null===r?null:!this.get_full_accounts_subscriptions.get(t,!1)&&e||void 0===r||void 0===r.get("name")?this.fetchFullAccount(t,e):r}if(Pu.is_account_name(t,!0)){var n=this.accounts_by_name.get(t);return null===n?null:void 0===n?this.fetchFullAccount(t,e):this.getObject(n,!1,e)}return null},e.getAccountName=function(t){var e=this.objects_by_id.get(t);if(!0!==e){if(e)return e.get("name");this.getObject(t,!1,!1,!0)}},e.getWitnessById=function(t){var e=this.witness_by_account_id.get(t);if(void 0!==e)return e&&this._subTo("witnesses",e),e?this.getObject(e):null;this.fetchWitnessByAccount(t)},e.getCommitteeMemberById=function(t){var e=this.committee_by_account_id.get(t);if(void 0!==e)return e&&this._subTo("committee",e),e?this.getObject(e):null;this.fetchCommitteeMemberByAccount(t)},e.fetchAllWorkers=function(){var t=this;return new Promise(function(e,r){b.a2.instance().db_api().exec("get_all_workers",[]).then(function(r){r&&r.length?(r.forEach(function(e){t._updateObject(e,!1)}),e(r),t.notifySubscribers()):e([])},r)})},e.fetchWitnessByAccount=function(t){var e=this;return new Promise(function(r,n){b.a2.instance().db_api().exec("get_witness_by_account",[t]).then(function(n){if(n){e._subTo("witnesses",n.id),e.witness_by_account_id=e.witness_by_account_id.set(n.witness_account,n.id);var i=e._updateObject(n,!0);r(i)}else e.witness_by_account_id=e.witness_by_account_id.set(t,null),e.notifySubscribers(),r(null)},n)})},e.fetchCommitteeMemberByAccount=function(t){var e=this;return new Promise(function(r,n){b.a2.instance().db_api().exec("get_committee_member_by_account",[t]).then(function(n){if(n){e._subTo("committee",n.id),e.committee_by_account_id=e.committee_by_account_id.set(n.committee_member_account,n.id);var i=e._updateObject(n,!0);r(i)}else e.committee_by_account_id=e.committee_by_account_id.set(t,null),e.notifySubscribers(),r(null)},n)})},e.requestAllDataForAccount=function(t,e){var r=this.objects_by_id.get(t);r.toJS().more_data_available.balances&&"balance"==e&&(b.a2.instance().db_api().exec("get_account_balances",[t,[]]).then(function(t){r.balances=t}),this._updateObject(r))},e.fetchFullAccount=function(t,e){var r=this;void 0===e&&(e=null),null==e&&(e=Ju),Gu&&console.log("Fetch full account: ",t);var n=this.get_full_accounts_subscriptions.has(t)&&!1===this.get_full_accounts_subscriptions.get(t)&&e,i=Pu.is_object_id(t),o=!i&&Pu.is_account_name(t,!0);if(i&&!n){var a=this.objects_by_id.get(t);if(void 0!==a&&a&&a.get&&a.get("name")&&a.has("balances"))return a}else if(!n){if(!o)throw Error("argument is not an account name: "+t);var s=this.accounts_by_name.get(t);if(Pu.is_object_id(s))return this.getAccount(s,e)}(n||!this.fetching_get_full_accounts.has(t)||Date.now()-this.fetching_get_full_accounts.get(t)>5e3)&&(this.fetching_get_full_accounts.set(t,Date.now()),b.a2.instance().db_api().exec("get_full_accounts",[[t],e]).then(function(n){if(0!==n.length){var a=n[0][1];r.get_full_accounts_subscriptions.set(a.account.name,e),r.get_full_accounts_subscriptions.set(a.account.id,e),Gu&&console.log("full_account: ",a),r._subTo("accounts",a.account.id);var s=a.account,u=a.assets,f=a.vesting_balances,c=a.statistics,l=a.call_orders,h=a.settle_orders,p=a.more_data_available,d=a.limit_orders,y=a.referrer_name,_=a.registrar_name,g=a.lifetime_referrer_name,v=a.votes,m=a.proposals,w=a.htlcs_from,S=a.htlcs_to;w||(w=[]),S||(S=[]),h||(h=[]),p||(p=[]),r.accounts_by_name.set(s.name,s.id),s.assets=new Tu.List(u||[]),s.referrer_name=y,s.lifetime_referrer_name=g,s.registrar_name=_,s.balances={},s.more_data_available=p,s.orders=new Tu.Set,s.vesting_balances=new Tu.Set,s.balances=new Tu.Map,s.call_orders=new Tu.Set,s.settle_orders=new Tu.Set,s.proposals=new Tu.Set,s.htlcs_to=new Tu.Set,s.htlcs_from=new Tu.Set,s.vesting_balances=s.vesting_balances.withMutations(function(t){f.forEach(function(e){r._updateObject(e),t.add(e.id)})});var E=[];v.forEach(function(t){return r._updateObject(t)}),s.balances=s.balances.withMutations(function(t){a.balances.forEach(function(n){r._updateObject(n),t.set(n.asset_type,n.id),e&&E.push(n.id)})}),s.orders=s.orders.withMutations(function(t){d.forEach(function(n){r._updateObject(n),t.add(n.id),e&&E.push(n.id)})}),s.call_orders=s.call_orders.withMutations(function(t){l.forEach(function(n){r._updateObject(n),t.add(n.id),e&&E.push(n.id)})}),s.settle_orders=s.settle_orders.withMutations(function(t){h.forEach(function(n){r._updateObject(n),t.add(n.id),e&&E.push(n.id)})}),s.htlcs_to=s.htlcs_to.withMutations(function(t){S.forEach(function(n){r._updateObject(n),t.add(n.id),e&&E.push(n.id)})}),s.htlcs_from=s.htlcs_from.withMutations(function(t){w.forEach(function(n){r._updateObject(n),t.add(n.id),e&&E.push(n.id)})}),s.proposals=s.proposals.withMutations(function(t){m.forEach(function(n){r._updateObject(n),t.add(n.id),e&&E.push(n.id)})}),E.length&&b.a2.instance().db_api().exec("get_objects",[E]),r._updateObject(c);var A=r._updateObject(s);r.fetchRecentHistory(A),r.notifySubscribers()}else i?(r.objects_by_id.set(t,null),r.notifySubscribers()):o&&(r.accounts_by_name.set(t,null),r.notifySubscribers())}).catch(function(e){e&&"Assert Exception: account: no such account"===e.message?i?(r.objects_by_id.set(t,null),r.notifySubscribers()):o&&(r.accounts_by_name.set(t,null),r.notifySubscribers()):i?r.objects_by_id.delete(t):r.accounts_by_name.delete(t)}))},e.getAccountMemberStatus=function(t){if(void 0!==t)return null===t?"unknown":t.get("lifetime_referrer")==t.get("id")?"lifetime":new Date(t.get("membership_expiration_date")).getTime()<(new Date).getTime()?"basic":"annual"},e.getAccountBalance=function(t,e){var r=t.get("balances");if(!r)return 0;var n=r.get(e);if(n){var i=this.objects_by_id.get(n);if(i)return i.get("balance")}return 0},e.fetchRecentHistory=function(t,e){var r=this;void 0===e&&(e=100);var n=t;if(!Pu.is_object_id(n)&&t.toJS&&(n=t.get("id")),Pu.is_object_id(n)&&(t=this.objects_by_id.get(n))&&!0!==t){var i=this.account_history_requests.get(n);if(i)return i.requests++,i.promise;i={requests:0};var o="1."+Fu+".0",a=t.get("history");a&&a.size&&(o=a.first().get("id"));var s="1."+Fu+".0";return i.promise=new Promise(function(t,i){b.a2.instance().history_api().exec("get_account_history",[n,o,e,s]).then(function(o){var a=r.objects_by_id.get(n);if(a){var s=a.get("history");s||(s=Tu.List());var u=Tu.fromJS(o);u=u.withMutations(function(t){for(var e=0;e<s.size;++e)t.push(s.get(e))});var f=a.set("history",u);r.objects_by_id.set(n,f);var c=r.account_history_requests.get(n);r.account_history_requests.delete(n),c.requests>0?r.fetchRecentHistory(f,e).then(t,i):t(f)}})}),this.account_history_requests.set(n,i),i.promise}},e._updateObject=function(t,e,r){if(void 0===e&&(e=!1),void 0===r&&(r=!0),!("id"in t))return console.log("object with no id:",t),void("balance"in t&&"owner"in t&&"settlement_date"in t&&Cu.emit("settle-order-update",t));var n=Yu(t.id);switch(n){case"transaction":case"operation_history":case"block_summary":case"unknown":case"market":return;case"account_transaction_history":case"limit_order":case"call_order":case"account_balance":case"account_stats":if(!this._isSubbedTo("accounts",t.account||t.seller||t.borrower||t.owner))return;break;case"witness":if(!this._isSubbedTo("witnesses",t.id))return;break;case"committee_member":if(!this._isSubbedTo("committee",t.id))return}"2.1.0"==t.id&&(t.participation=c()(t.recent_slots_filled).bitCount()/128*100,this.head_block_time_string=t.time,this.chain_time_offset.push(Date.now()-Qu(t.time).getTime()),this.chain_time_offset.length>10&&this.chain_time_offset.shift());var i=this.objects_by_id.get(t.id);i||(i=Tu.Map());var o=i;if(void 0===i||!0===i)this.objects_by_id.set(t.id,i=Tu.fromJS(t));else switch(n){case"account":this.objects_by_id.set(t.id,i=i.mergeDeep(Tu.fromJS(t)));break;case"asset":case"asset_bitasset_data":this.objects_by_id.set(t.id,i=i.merge(Tu.fromJS(t)));break;default:this.objects_by_id.set(t.id,i=Tu.fromJS(t))}switch(n){case"account_balance":var a=this.objects_by_id.get(t.owner);if(null==a||!0===a)return;a.get("balances")||(a=a.set("balances",Tu.Map())),a=a.setIn(["balances",t.asset_type],t.id),this.objects_by_id.set(t.owner,a);break;case"account_statistics":try{o.get("most_recent_op","2.9.0")!=t.most_recent_op&&this.fetchRecentHistory(t.owner)}catch(e){console.log("object:",t,"prior",o,"err:",e)}break;case"witness":if(!this._isSubbedTo("witnesses",t.id))return;this.witness_by_account_id.set(t.witness_account,t.id),this.objects_by_vote_id.set(t.vote_id,t.id);break;case"committee_member":if(!this._isSubbedTo("committee",t.id))return;this.committee_by_account_id.set(t.committee_member_account,t.id),this.objects_by_vote_id.set(t.vote_id,t.id);break;case"worker":this.objects_by_vote_id.set(t.vote_for,t.id),this.objects_by_vote_id.set(t.vote_against,t.id),this.workers.has(t.id)||this.workers.add(t.id);break;case"account":i=(i=(i=(i=(i=(i=(i=i.set("active",Tu.fromJS(t.active))).set("owner",Tu.fromJS(t.owner))).set("options",Tu.fromJS(t.options))).set("whitelisting_accounts",Tu.fromJS(t.whitelisting_accounts))).set("blacklisting_accounts",Tu.fromJS(t.blacklisting_accounts))).set("whitelisted_accounts",Tu.fromJS(t.whitelisted_accounts))).set("blacklisted_accounts",Tu.fromJS(t.blacklisted_accounts)),this.objects_by_id.set(t.id,i),this.accounts_by_name.set(t.name,t.id);break;case"asset":if(this.assets_by_symbol.set(t.symbol,t.id),!i.get("bitasset")&&"bitasset_data_id"in t){var s=this.getObject(t.bitasset_data_id,!0);s||(s=Tu.Map()),s.get("asset_id")||(s=s.set("asset_id",t.id)),this.objects_by_id.set(t.bitasset_data_id,s),i=i.set("bitasset",s),this.objects_by_id.set(t.id,i)}break;case"asset_bitasset_data":var u=i.get("asset_id");if(u){var f=this.getObject(u);f&&(f=f.set("bitasset",i),Cu.emit("bitasset-update",f),this.objects_by_id.set(u,f))}break;case"call_order":r&&Cu.emit("call-order-update",t);var l=this.objects_by_id.get(t.borrower);if(l&&!0!==l){l.has("call_orders")||(l=l.set("call_orders",new Tu.Set));var h=l.get("call_orders");h.has(t.id)||(l=l.set("call_orders",h.add(t.id)),this.objects_by_id.set(l.get("id"),l),b.a2.instance().db_api().exec("get_objects",[[t.id]]))}break;case"limit_order":var p=this.objects_by_id.get(t.seller);if(p&&!0!==p){p.has("orders")||(p=p.set("orders",new Tu.Set));var d=p.get("orders");d.has(t.id)||(p=p.set("orders",d.add(t.id)),this.objects_by_id.set(p.get("id"),p),b.a2.instance().db_api().exec("get_objects",[[t.id]]))}break;case"proposal":e=(e=e||this.addProposalData(t.required_active_approvals,t.id))||this.addProposalData(t.required_owner_approvals,t.id)}return e&&this.notifySubscribers(),i},e.getObjectsByVoteIds=function(t){for(var e=this,r=[],n=[],i=0;i<t.length;++i){var o=this.objects_by_vote_id.get(t[i]);o?r.push(this.getObject(o)):(r.push(null),n.push(t[i]))}return n.length&&b.a2.instance().db_api().exec("lookup_vote_ids",[n]).then(function(t){for(var r=0;r<t.length;++r)if(t[r]){var n=t[r].id.substring(0,Wu.length)==Wu;e._subTo(n?"witnesses":"committee",t[r].id),e._updateObject(t[r])}}).catch(function(t){console.log("Error looking up vote ids: ",t)}),r},e.getObjectByVoteID=function(t){var e=this.objects_by_vote_id.get(t);if(e)return this.getObject(e)},e.getHeadBlockDate=function(){return Qu(this.head_block_time_string)},e.getEstimatedChainTimeOffset=function(){return 0===this.chain_time_offset.length?0:Tu.List(this.chain_time_offset).sort().get(Math.floor((this.chain_time_offset.length-1)/2))},e.addProposalData=function(t,e){var r=this,n=!1;return t.forEach(function(t){var i=r.objects_by_id.get(t);if(i&&!0!==i){n=!0;var o=i.get("proposals",Tu.Set());o.includes(e)||(o=o.add(e),i=i.set("proposals",o),r.objects_by_id.set(i.get("id"),i))}}),n},e.getLiquidityPoolsByAssets=function(t,e,r,n,i){var o=this;if(void 0===t&&(t="asset_a"),void 0===n&&(n=101),-1===["asset_a","asset_b","both"].indexOf(t))throw Error("asset type is unexpected");var a={asset_a:"get_liquidity_pools_by_asset_a",asset_b:"get_liquidity_pools_by_asset_b",both:"get_liquidity_pools_by_both_assets"}[t],s=[];switch(t){case"asset_a":s=[e,n,i];break;case"asset_b":s=[r,n,i];break;case"both":s=[e,r,n,i]}return b.a2.instance().db_api().exec(a,s).then(function(t){if(t.length>0){var e=[];return t.forEach(function(t){t.asset_a=o.getAsset(t.asset_a),t.asset_b=o.getAsset(t.asset_b),t.share_asset=o.getAsset(t.share_asset),t.dynamic_share_asset=o.getObject(t.share_asset.get("dynamic_asset_data_id")),e.push(t)}),Tu.fromJS(e)}return Tu.fromJS([])}).catch(function(t){console.error("get_liquidity_pools_by_assets error:",t)})},e.getLiquidityPoolsByShareAsset=function(t,e){var r=this;return void 0===e&&(e=!1),b.a2.instance().db_api().exec("get_liquidity_pools_by_share_asset",[t,e]).then(function(t){if(t.length>0){var e=[];return t.forEach(function(t){t.asset_a=r.getAsset(t.asset_a),t.asset_b=r.getAsset(t.asset_b),t.share_asset=r.getAsset(t.share_asset),t.dynamic_share_asset=r.getObject(t.share_asset.get("dynamic_asset_data_id")),e.push(t)}),Tu.fromJS(e)}return Tu.fromJS([])}).catch(function(t){console.error("get_liquidity_pools_by_share_asset error:",t)})},t}(),Xu=new Zu;function Qu(t){return t?(/Z$/.test(t)||(t+="Z"),new Date(t)):new Date("1970-01-01T00:00:00.000Z")}Xu.FetchChainObjects=function(t,e,r,n){var i=t.bind(Xu);return new Promise(function(o,a){var s=null;function u(r){void 0===r&&(r=!1);var a=e.map(function(e){return"getAccount"===t.name?i(e,n[e]):"getObject"===t.name?i(e,!1,n[e]):i(e)});return-1===a.findIndex(function(t){return void 0===t})&&(s&&clearTimeout(s),r||Xu.unsubscribe(u),o(a),!0)}var f=u(!0);f||Xu.subscribe(u),r&&!f&&(s=setTimeout(function(){Xu.unsubscribe(u),a(t.name+" request timed out after "+r+"ms with object ids: "+JSON.stringify(e))},r))})},Xu.FetchChain=function(t,e,r,n){void 0===r&&(r=3e3),void 0===n&&(n={});var i=Xu[t];if(!i)throw new Error("ChainStore does not have method "+t);var o=Array.isArray(e);return o||(e=[e]),Xu.FetchChainObjects(i,Tu.List(e),r,n).then(function(t){return o?t:t.get(0)})};const tf=Xu;r(2861).Buffer;var ef={},rf={},nf=function(){function t(){var t={loggedIn:!1,roles:["active","owner","memo"]};this.get=function(t){return function(e){return t[e]||""}}(t),this.set=function(t){return function(e,r){return t[e]=r,this}}(t),this.subs={}}var e=t.prototype;return e.addSubscription=function(t){this.subs[t]=t},e.setRoles=function(t){this.set("roles",t)},e.generateKeys=function(t,e,r,n){if((new Date).getTime(),!t||!e)throw new Error("Account name or password required");if(e.length<12)throw new Error("Password must have at least 12 characters");var i={},o={};return(r||this.get("roles")).forEach(function(r){var a=t+r+e,s=ef[a]?ef[a]:tt.fromSeed(lt.normalize_brainKey(a));ef[a]=s,i[r]=s,o[r]=rf[a]?rf[a]:s.toPublicKey().toString(n),rf[a]=o[r]}),{privKeys:i,pubKeys:o}},e.checkKeys=function(t){var e=this,r=t.accountName,n=t.password,i=t.auths;if(!r||!n||!i)throw new Error("checkKeys: Missing inputs");var o=!1,a=function(t){var a=e.generateKeys(r,n,[t]),s=a.privKeys,u=a.pubKeys;i[t].forEach(function(r){r[0]===u[t]&&(o=!0,e.set(t,{priv:s[t],pub:u[t]}))})};for(var s in i)a(s);return o&&this.set("name",r),this.set("loggedIn",o),o},e.signTransaction=function(t){var e=this,r=!1;if(this.get("roles").forEach(function(n){var i=e.get(n);i&&(r=!0,console.log("adding signer:",i.pub),t.add_signer(i.priv,i.pub))}),!r)throw new Error("You do not have any private keys to sign this transaction")},t}();new nf,tf.FetchChainObjects,tf.FetchChain,onmessage=function(t){try{console.log("AddressIndexWorker start");let{pubkeys:e,address_prefix:r}=t.data,n=[];for(let t of e)n.push(lt.addresses(t,r));postMessage(n),console.log("AddressIndexWorker done")}catch(t){console.error("AddressIndexWorker",t)}}})()})();