/* The buffer module from node.js, for the browser. @author Feross Aboukhadijeh @license MIT Determine if an object is a Buffer @author Feross Aboukhadijeh @license MIT */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(f){var k=0;return function(){return k>18&63]+c[d>>12&63]+c[d>>6&63]+c[d&63]);return b.join("")}h.byteLength=function(a){a=d(a);var b=a[1];return 3*(a[0]+b)/4-b};h.toByteArray=function(b){var c=d(b);var e=c[0];c=c[1];for(var t=new a(3*(e+c)/4-c),n=0,q=0>16&255,t[n++]=e>>8&255,t[n++]=e&255;2===c&&(e=g[b.charCodeAt(f)]<<2|g[b.charCodeAt(f+1)]>>4,t[n++]=e&255);1===c&&(e=g[b.charCodeAt(f)]<<10|g[b.charCodeAt(f+1)]<<4|g[b.charCodeAt(f+2)]>>2,t[n++]=e>>8&255,t[n++]=e&255);return t};h.fromByteArray=function(a){for(var b=a.length,d=b%3,g=[],n=0,q=b-d;nq?q:n+16383));1===d?(a=a[b-1],g.push(c[a>>2]+c[a<<4&63]+"==")):2===d&&(a=(a[b-2]<<8)+a[b-1],g.push(c[a>>10]+c[a>>4&63]+c[a<<2&63]+"="));return g.join("")};var c=[],g=[], a="undefined"!==typeof Uint8Array?Uint8Array:Array;for(f=0;64>f;++f)c[f]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f],g["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(f)]=f;g[45]=62;g[95]=63},{}],2:[function(f,k,h){},{}],3:[function(f,k,h){function d(a){if(a>J)throw new RangeError("Invalid typed array length");a=new Uint8Array(a);a.__proto__=e.prototype;return a}function e(w,b,l){if("number"===typeof w){if("string"===typeof b)throw Error("If encoding is specified then the first argument must be a string"); return a(w)}return c(w,b,l)}function c(a,b,l){if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if(K(a)||a&&K(a.buffer)){if(0>b||a.byteLengtha)throw new RangeError('"size" argument must not be negative');}function a(a){g(a);return d(0>a?0:p(a)|0)}function b(a){for(var w=0>a.length?0:p(a.length)|0,l=d(w),b=0;b=J)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+J.toString(16)+" bytes");return a|0}function t(a, b){if(e.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||K(a))return a.byteLength;"string"!==typeof a&&(a=""+a);var l=a.length;if(0===l)return 0;for(var w=!1;;)switch(b){case "ascii":case "latin1":case "binary":return l;case "utf8":case "utf-8":case void 0:return C(a).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*l;case "hex":return l>>>1;case "base64":return D.toByteArray(G(a)).length;default:if(w)return C(a).length;b=(""+b).toLowerCase();w=!0}}function n(a,b,l){var c= !1;if(void 0===b||0>b)b=0;if(b>this.length)return"";if(void 0===l||l>this.length)l=this.length;if(0>=l)return"";l>>>=0;b>>>=0;if(l<=b)return"";for(a||(a="utf8");;)switch(a){case "hex":a=b;b=l;l=this.length;if(!a||0>a)a=0;if(!b||0>b||b>l)b=l;c="";for(l=a;lc?"0"+c.toString(16):c.toString(16),c=a+c;return c;case "utf8":case "utf-8":return v(this,b,l);case "ascii":a="";for(l=Math.min(this.length,l);bl&&(l=-2147483648);l=+l;l!==l&&(l=d?0:a.length-1);0>l&&(l=a.length+l);if(l>=a.length){if(d)return-1;l=a.length-1}else if(0>l)if(d)l=0;else return-1;"string"===typeof b&&(b=e.from(b,c));if(e.isBuffer(b))return 0===b.length?-1:N(a,b,l,c,d);if("number"===typeof b)return b&=255,"function"===typeof Uint8Array.prototype.indexOf?d?Uint8Array.prototype.indexOf.call(a,b,l):Uint8Array.prototype.lastIndexOf.call(a,b,l):N(a,[b],l,c,d);throw new TypeError("val must be string, number or Buffer"); }function N(a,b,l,c,d){function w(a,b){return 1===e?a[b]:a.readUInt16BE(b*e)}var e=1,g=a.length,m=b.length;if(void 0!==c&&(c=String(c).toLowerCase(),"ucs2"===c||"ucs-2"===c||"utf16le"===c||"utf-16le"===c)){if(2>a.length||2>b.length)return-1;e=2;g/=2;m/=2;l/=2}if(d)for(c=-1;lg&&(l=g-m);0<=l;l--){g=!0;for(c=0;cd&&(e=d);break;case 2:var g=a[b+1];128===(g&192)&&(d=(d&31)<<6|g&63,127d||57343d&&(e=d))}null===e?(e= 65533,w=1):65535>>10&1023|55296),e=56320|e&1023);c.push(e);b+=w}a=c.length;if(a<=y)c=String.fromCharCode.apply(String,c);else{l="";for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>l)throw new RangeError("Trying to access beyond buffer length");}function z(a,b,l,c,d,g){if(!e.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>d||b< g)throw new RangeError('"value" argument is out of bounds');if(l+c>a.length)throw new RangeError("Index out of range");}function x(a,b,l,c,d,e){if(l+c>a.length)throw new RangeError("Index out of range");if(0>l)throw new RangeError("Index out of range");}function H(a,b,l,c,d){b=+b;l>>>=0;d||x(a,b,l,4,3.4028234663852886E38,-3.4028234663852886E38);I.write(a,b,l,c,23,4);return l+4}function F(a,b,l,c,d){b=+b;l>>>=0;d||x(a,b,l,8,1.7976931348623157E308,-1.7976931348623157E308);I.write(a,b,l,c,52,8);return l+ 8}function G(a){a=a.split("=")[0];a=a.trim().replace(L,"");if(2>a.length)return"";for(;0!==a.length%4;)a+="=";return a}function C(a,b){b=b||Infinity;for(var l,c=a.length,d=null,e=[],g=0;gl){if(!d){if(56319l){-1<(b-=3)&&e.push(239,191,189);d=l;continue}l=(d-55296<<10|l-56320)+65536}else d&&-1<(b-=3)&&e.push(239,191,189);d=null;if(128> l){if(0>--b)break;e.push(l)}else if(2048>l){if(0>(b-=2))break;e.push(l>>6|192,l&63|128)}else if(65536>l){if(0>(b-=3))break;e.push(l>>12|224,l>>6&63|128,l&63|128)}else if(1114112>l){if(0>(b-=4))break;e.push(l>>18|240,l>>12&63|128,l>>6&63|128,l&63|128)}else throw Error("Invalid code point");}return e}function A(a){for(var b=[],l=0;l=b.length||d>=a.length);++d)b[d+l]=a[d];return d}function K(a){return a instanceof ArrayBuffer||null!=a&&null!=a.constructor&&"ArrayBuffer"===a.constructor.name&&"number"===typeof a.byteLength}var D=f("base64-js"),I=f("ieee754");h.Buffer=e;h.SlowBuffer=function(a){+a!=a&&(a=0);return e.alloc(+a)};h.INSPECT_MAX_BYTES=50;var J=2147483647;h.kMaxLength=J;e.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1);a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===a.foo()}catch(M){return!1}}();e.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(e.prototype,"parent",{get:function(){if(this instanceof e)return this.buffer}});Object.defineProperty(e.prototype,"offset",{get:function(){if(this instanceof e)return this.byteOffset}});$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();"undefined"!==typeof Symbol&&Symbol.species&&e[Symbol.species]=== e&&($jscomp.initSymbol(),Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));e.poolSize=8192;e.from=function(a,b,l){return c(a,b,l)};e.prototype.__proto__=Uint8Array.prototype;e.__proto__=Uint8Array;e.alloc=function(a,b,l){g(a);a=0>=a?d(a):void 0!==b?"string"===typeof l?d(a).fill(b,l):d(a).fill(b):d(a);return a};e.allocUnsafe=function(b){return a(b)};e.allocUnsafeSlow=function(b){return a(b)};e.isBuffer=function(a){return null!=a&&!0===a._isBuffer};e.compare= function(a,b){if(!e.isBuffer(a)||!e.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var l=a.length,c=b.length,d=0,g=Math.min(l,c);db&&(a+=" ... "));return""};e.prototype.compare=function(a,b,c,d,g){if(!e.isBuffer(a))throw new TypeError("Argument must be a Buffer"); void 0===b&&(b=0);void 0===c&&(c=a?a.length:0);void 0===d&&(d=0);void 0===g&&(g=this.length);if(0>b||c>a.length||0>d||g>this.length)throw new RangeError("out of range index");if(d>=g&&b>=c)return 0;if(d>=g)return-1;if(b>=c)return 1;b>>>=0;c>>>=0;d>>>=0;g>>>=0;if(this===a)return 0;var l=g-d,m=c-b,p=Math.min(l,m);d=this.slice(d,g);a=a.slice(b,c);for(b=0;b>>=0,isFinite(c)?(c>>>=0,void 0===d&&(d="utf8")):(d=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-b;if(void 0===c||c>l)c=l;if(0c||0>b)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds"); d||(d="utf8");for(l=!1;;)switch(d){case "hex":a:{b=Number(b)||0;d=this.length-b;c?(c=Number(c),c>d&&(c=d)):c=d;d=a.length;c>d/2&&(c=d/2);for(d=0;d(l-=2));++g){var m=d.charCodeAt(g);a=m>>8;m%=256;e.push(m);e.push(a)}return E(e,this,b,c);default:if(l)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase();l=!0}};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var y=4096;e.prototype.slice=function(a,b){var c=this.length;a=~~a;b=void 0===b?c:~~b;0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c);0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c);b>>=0;b>>>=0;c||B(a,b,this.length);c=this[a];for(var d=1,l=0;++l>>=0;b>>>=0;c||B(a,b,this.length);c=this[a+--b];for(var d=1;0>>=0;b||B(a,1,this.length);return this[a]};e.prototype.readUInt16LE=function(a,b){a>>>=0;b||B(a,2,this.length);return this[a]|this[a+1]<<8};e.prototype.readUInt16BE= function(a,b){a>>>=0;b||B(a,2,this.length);return this[a]<<8|this[a+1]};e.prototype.readUInt32LE=function(a,b){a>>>=0;b||B(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]};e.prototype.readUInt32BE=function(a,b){a>>>=0;b||B(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};e.prototype.readIntLE=function(a,b,c){a>>>=0;b>>>=0;c||B(a,b,this.length);c=this[a];for(var d=1,l=0;++l=128*d&&(c-=Math.pow(2,8*b));return c}; e.prototype.readIntBE=function(a,b,c){a>>>=0;b>>>=0;c||B(a,b,this.length);c=b;for(var d=1,l=this[a+--c];0=128*d&&(l-=Math.pow(2,8*b));return l};e.prototype.readInt8=function(a,b){a>>>=0;b||B(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){a>>>=0;b||B(a,2,this.length);var c=this[a]|this[a+1]<<8;return c&32768?c|4294901760:c};e.prototype.readInt16BE=function(a,b){a>>>=0;b||B(a,2,this.length);var c=this[a+1]|this[a]<< 8;return c&32768?c|4294901760:c};e.prototype.readInt32LE=function(a,b){a>>>=0;b||B(a,4,this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};e.prototype.readInt32BE=function(a,b){a>>>=0;b||B(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};e.prototype.readFloatLE=function(a,b){a>>>=0;b||B(a,4,this.length);return I.read(this,a,!0,23,4)};e.prototype.readFloatBE=function(a,b){a>>>=0;b||B(a,4,this.length);return I.read(this,a,!1,23,4)};e.prototype.readDoubleLE= function(a,b){a>>>=0;b||B(a,8,this.length);return I.read(this,a,!0,52,8)};e.prototype.readDoubleBE=function(a,b){a>>>=0;b||B(a,8,this.length);return I.read(this,a,!1,52,8)};e.prototype.writeUIntLE=function(a,b,c,d){a=+a;b>>>=0;c>>>=0;d||z(this,a,b,c,Math.pow(2,8*c)-1,0);d=1;var e=0;for(this[b]=a&255;++e>>=0;c>>>=0;d||z(this,a,b,c,Math.pow(2,8*c)-1,0);d=c-1;var e=1;for(this[b+d]=a&255;0<=--d&&(e*=256);)this[b+ d]=a/e&255;return b+c};e.prototype.writeUInt8=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,1,255,0);this[b]=a&255;return b+1};e.prototype.writeUInt16LE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,2,65535,0);this[b]=a&255;this[b+1]=a>>>8;return b+2};e.prototype.writeUInt16BE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,2,65535,0);this[b]=a>>>8;this[b+1]=a&255;return b+2};e.prototype.writeUInt32LE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,4,4294967295,0);this[b+3]=a>>>24;this[b+2]=a>>>16;this[b+1]=a>>>8;this[b]= a&255;return b+4};e.prototype.writeUInt32BE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,4,4294967295,0);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};e.prototype.writeIntLE=function(a,b,c,d){a=+a;b>>>=0;d||(d=Math.pow(2,8*c-1),z(this,a,b,c,d-1,-d));d=0;var e=1,g=0;for(this[b]=a&255;++da&&0===g&&0!==this[b+d-1]&&(g=1),this[b+d]=(a/e>>0)-g&255;return b+c};e.prototype.writeIntBE=function(a,b,c,d){a=+a;b>>>=0;d||(d=Math.pow(2,8*c-1),z(this,a,b,c,d-1,-d));d= c-1;var e=1,g=0;for(this[b+d]=a&255;0<=--d&&(e*=256);)0>a&&0===g&&0!==this[b+d+1]&&(g=1),this[b+d]=(a/e>>0)-g&255;return b+c};e.prototype.writeInt8=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,1,127,-128);0>a&&(a=255+a+1);this[b]=a&255;return b+1};e.prototype.writeInt16LE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,2,32767,-32768);this[b]=a&255;this[b+1]=a>>>8;return b+2};e.prototype.writeInt16BE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,2,32767,-32768);this[b]=a>>>8;this[b+1]=a&255;return b+2};e.prototype.writeInt32LE= function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,4,2147483647,-2147483648);this[b]=a&255;this[b+1]=a>>>8;this[b+2]=a>>>16;this[b+3]=a>>>24;return b+4};e.prototype.writeInt32BE=function(a,b,c){a=+a;b>>>=0;c||z(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};e.prototype.writeFloatLE=function(a,b,c){return H(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){return H(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a, b,c){return F(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){return F(this,a,b,!1,c)};e.prototype.copy=function(a,b,c,d){if(!e.isBuffer(a))throw new TypeError("argument should be a Buffer");c||(c=0);d||0===d||(d=this.length);b>=a.length&&(b=a.length);b||(b=0);0b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("Index out of range");if(0>d)throw new RangeError("sourceEnd out of bounds"); d>this.length&&(d=this.length);a.length-bg||"latin1"===d)a=g}}else"number"===typeof a&&(a&=255);if(0>b||this.length>>=0;c=void 0===c?this.length:c>>>0;a||(a=0);if("number"===typeof a)for(d=b;dc&&(m.warned=!0,c=Error("Possible EventEmitter memory leak detected. "+m.length+' "'+String(b)+'" listeners added. Use emitter.setMaxListeners() to increase limit.'),c.name="MaxListenersExceededWarning",c.emitter=a,c.type=b, c.count=m.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",c.name,c.message))):(e[b]=c,++a._eventsCount);return a}function c(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]); default:for(var a=Array(arguments.length),b=0;ba||a!==a)throw new TypeError('"defaultMaxListeners" must be a positive number');v=a}}):d.defaultMaxListeners=v;d.prototype.setMaxListeners=function(a){if("number"!==typeof a||0>a||isNaN(a))throw new TypeError('"n" argument must be a positive number');this._maxListeners= a;return this};d.prototype.getMaxListeners=function(){return void 0===this._maxListeners?d.defaultMaxListeners:this._maxListeners};d.prototype.emit=function(a){var b,c,d;var g="error"===a;if(d=this._events)g=g&&null==d.error;else if(!g)return!1;if(g){1e)return this;if(0===e)g.shift();else{c=e+1;for(var p=g.length;c>1,t=-7;a=c?a-1:0;var n=c?-1:1,q=d[e+a];a+=n;c=q&(1<<-t)-1;q>>=-t;for(t+=b;0>=-t;for(t+=g;0>1,q=23===a?Math.pow(2,-24)-Math.pow(2,-77):0;b=g?0:b-1;var f=g?1:-1,N=0>e||0===e&&0>1/e?1:0;e=Math.abs(e);isNaN(e)||Infinity===e?(e=isNaN(e)?1:0,g=t):(g=Math.floor(Math.log(e)/Math.LN2),1>e*(m=Math.pow(2,-g))&&(g--,m*=2),e=1<=g+n?e+q/m:e+q*Math.pow(2,1-n),2<=e*m&&(g++,m/=2),g+n>=t?(e=0,g=t):1<=g+n?(e=(e*m-1)*Math.pow(2,a),g+=n):(e=e*Math.pow(2,n-1)*Math.pow(2,a),g=0));for(;8<=a;d[c+b]=e&255,b+=f,e/=256,a-=8);g=g<=a||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!==a)return b.flowing&&b.length?b.buffer.head.data.length:b.length;if(a>b.highWaterMark){var c=a;8388608<=c?c=8388608:(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++);b.highWaterMark=c}return a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)}function t(a){var b=a._readableState;b.needReadable=!1;b.emittedReadable|| (y("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?G.nextTick(n,a):n(a))}function n(a){y("emit readable");a.emit("readable");h(a)}function q(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length)c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear();else{c=b.buffer;var d=b.decoder; if(ap.length?p.length:d;m=l===p.length?m+p:m+p.slice(0,d);d-=l;if(0===d){l===p.length?(++e,c.head=g.next?g.next:c.tail=null):(c.head=g,g.data=p.slice(l));break}++e}c.length-=e;c=m}else{d=a;g=K.allocUnsafe(d);e=c.head;m=1;e.data.copy(g);for(d-=e.data.length;e=e.next;){p=e.data;l=d>p.length?p.length: d;p.copy(g,g.length-d,0,l);d-=l;if(0===d){l===p.length?(++m,c.head=e.next?e.next:c.tail=null):(c.head=e,e.data=p.slice(l));break}++m}c.length-=m;c=g}d=c}c=d}return c}function x(a){var b=a._readableState;if(0=b.highWaterMark||b.ended))return y("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?x(this):t(this), null;a=p(a,b);if(0===a&&b.ended)return 0===b.length&&x(this),null;var d=b.needReadable;y("need readable",d);if(0===b.length||b.length-a>>0);for(var a=this.head,b=0;a;)a.data.copy(c,b),b+=a.data.length,a=a.next;return c};return c}();e&&e.inspect&&e.inspect.custom&& (k.exports.prototype[e.inspect.custom]=function(){var c=e.inspect({length:this.length});return this.constructor.name+" "+c})},{"safe-buffer":25,util:2}],19:[function(f,k,h){function d(c,d){c.emit("error",d)}var e=f("process-nextick-args");k.exports={destroy:function(c,g){var a=this,b=this._writableState&&this._writableState.destroyed;if(this._readableState&&this._readableState.destroyed||b)return g?g(c):!c||this._writableState&&this._writableState.errorEmitted||e.nextTick(d,this,c),this;this._readableState&& (this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(c||null,function(b){!g&&b?(e.nextTick(d,a,b),a._writableState&&(a._writableState.errorEmitted=!0)):g&&g(b)});return 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.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":10}],20:[function(f,k,h){k.exports=f("events").EventEmitter},{events:5}],21:[function(f,k,h){k.exports=f("./readable").PassThrough},{"./readable":22}],22:[function(f,k,h){h=k.exports=f("./lib/_stream_readable.js");h.Stream=h;h.Readable=h;h.Writable=f("./lib/_stream_writable.js");h.Duplex=f("./lib/_stream_duplex.js");h.Transform=f("./lib/_stream_transform.js");h.PassThrough=f("./lib/_stream_passthrough.js")}, {"./lib/_stream_duplex.js":13,"./lib/_stream_passthrough.js":14,"./lib/_stream_readable.js":15,"./lib/_stream_transform.js":16,"./lib/_stream_writable.js":17}],23:[function(f,k,h){k.exports=f("./readable").Transform},{"./readable":22}],24:[function(f,k,h){k.exports=f("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":17}],25:[function(f,k,h){function d(a,b){for(var c in a)b[c]=a[c]}function e(a,b,c){return g(a,b,c)}var c=f("buffer"),g=c.Buffer;g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow? k.exports=c:(d(c,h),h.Buffer=e);d(g,e);e.from=function(a,b,c){if("number"===typeof a)throw new TypeError("Argument must not be a number");return g(a,b,c)};e.alloc=function(a,b,c){if("number"!==typeof a)throw new TypeError("Argument must be a number");a=g(a);void 0!==b?"string"===typeof c?a.fill(b,c):a.fill(b):a.fill(0);return a};e.allocUnsafe=function(a){if("number"!==typeof a)throw new TypeError("Argument must be a number");return g(a)};e.allocUnsafeSlow=function(a){if("number"!==typeof a)throw new TypeError("Argument must be a number"); return c.SlowBuffer(a)}},{buffer:3}],26:[function(f,k,h){function d(){e.call(this)}k.exports=d;var e=f("events").EventEmitter;f("inherits")(d,e);d.Readable=f("readable-stream/readable.js");d.Writable=f("readable-stream/writable.js");d.Duplex=f("readable-stream/duplex.js");d.Transform=f("readable-stream/transform.js");d.PassThrough=f("readable-stream/passthrough.js");d.Stream=d;d.prototype.pipe=function(c,d){function a(a){c.writable&&!1===c.write(a)&&q.pause&&q.pause()}function b(){q.readable&&q.resume&& q.resume()}function g(){f||(f=!0,c.end())}function p(){f||(f=!0,"function"===typeof c.destroy&&c.destroy())}function t(a){n();if(0===e.listenerCount(this,"error"))throw a;}function n(){q.removeListener("data",a);c.removeListener("drain",b);q.removeListener("end",g);q.removeListener("close",p);q.removeListener("error",t);c.removeListener("error",t);q.removeListener("end",n);q.removeListener("close",n);c.removeListener("close",n)}var q=this;q.on("data",a);c.on("drain",b);c._isStdio||d&&!1===d.end|| (q.on("end",g),q.on("close",p));var f=!1;q.on("error",t);c.on("error",t);q.on("end",n);q.on("close",n);c.on("close",n);c.emit("pipe",q);return c}},{events:5,inherits:7,"readable-stream/duplex.js":12,"readable-stream/passthrough.js":21,"readable-stream/readable.js":22,"readable-stream/transform.js":23,"readable-stream/writable.js":24}],27:[function(f,k,h){function d(a){if(!a)return"utf8";for(var b;;)switch(a){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 a;default:if(b)return;a=(""+a).toLowerCase();b=!0}}function e(c){var g=d(c);if("string"!==typeof g&&(Q.isEncoding===N||!N(c)))throw Error("Unknown encoding: "+c);this.encoding=g||c;switch(this.encoding){case "utf16le":this.text=b;this.end=m;c=4;break;case "utf8":this.fillLast=a;c=4;break;case "base64":this.text=p;this.end=t;c=3;break;default:this.write=n;this.end=q;return}this.lastTotal=this.lastNeed=0;this.lastChar= Q.allocUnsafe(c)}function c(a){return 127>=a?0:6===a>>5?2:14===a>>4?3:30===a>>3?4:2===a>>6?-1:-2}function g(a,b,d){var g=b.length-1;if(g=d)return this.lastNeed= 2,this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=a[a.length-1];return a.toString("utf16le",b,a.length-1)}function m(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):a}function p(a,b){var c=(a.length-b)%3;if(0===c)return a.toString("base64",b);this.lastNeed=3-c;this.lastTotal=3;1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]= a[a.length-2],this.lastChar[1]=a[a.length-1]);return a.toString("base64",b,a.length-c)}function t(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function n(a){return a.toString(this.encoding)}function q(a){return a&&a.length?this.write(a):""}var Q=f("safe-buffer").Buffer,N=Q.isEncoding||function(a){a=""+a;switch(a&&a.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}};h.StringDecoder=e;e.prototype.write=function(a){if(0===a.length)return"";if(this.lastNeed){var b=this.fillLast(a);if(void 0===b)return"";var c=this.lastNeed;this.lastNeed=0}else c=0;return carguments.length?!1:b.call(arguments,1);m[c]=!0;g(function(){m[c]&&(d?a.apply(null,d):a.call(null),h.clearImmediate(c))});return c};h.clearImmediate="function"===typeof e?e:function(a){delete m[a]}}).call(this,f("timers").setImmediate,f("timers").clearImmediate)},{"process/browser.js":11, timers:28}],29:[function(f,k,h){(function(d){function e(c){try{if(!d.localStorage)return!1}catch(g){return!1}c=d.localStorage[c];return null==c?!1:"true"===String(c).toLowerCase()}k.exports=function(c,d){if(e("noDeprecation"))return c;var a=!1;return function(){if(!a){if(e("throwDeprecation"))throw Error(d);e("traceDeprecation")?console.trace(d):console.warn(d);a=!0}return c.apply(this,arguments)}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window? window:{})},{}],30:[function(f,k,h){window.SignLib=f("secp256k1/lib/js");window.Buffer=f("safe-buffer").Buffer},{"safe-buffer":42,"secp256k1/lib/js":48}],31:[function(f,k,h){function d(a){c.call(this);(this.hashMode="string"===typeof a)?this[a]=this._finalOrDigest:this["final"]=this._finalOrDigest;this._final&&(this.__final=this._final,this._final=null);this._encoding=this._decoder=null}var e=f("safe-buffer").Buffer,c=f("stream").Transform,g=f("string_decoder").StringDecoder;f("inherits")(d,c);d.prototype.update= function(a,b,c){"string"===typeof a&&(a=e.from(a,b));a=this._update(a);if(this.hashMode)return this;c&&(a=this._toString(a,c));return a};d.prototype.setAutoPadding=function(){};d.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state");};d.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state");};d.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state");};d.prototype._transform=function(a,b,c){try{this.hashMode? this._update(a):this.push(this._update(a))}catch(t){var d=t}finally{c(d)}};d.prototype._flush=function(a){try{this.push(this.__final())}catch(m){var b=m}a(b)};d.prototype._finalOrDigest=function(a){var b=this.__final()||e.alloc(0);a&&(b=this._toString(b,a,!0));return b};d.prototype._toString=function(a,b,c){this._decoder||(this._decoder=new g(b),this._encoding=b);if(this._encoding!==b)throw Error("can't switch encodings");a=this._decoder.write(a);c&&(a+=this._decoder.end());return a};k.exports=d}, {inherits:39,"safe-buffer":42,stream:26,string_decoder:27}],32:[function(f,k,h){function d(b){a.call(this,"digest");this._hash=b}h=f("inherits");var e=f("md5.js"),c=f("ripemd160"),g=f("sha.js"),a=f("cipher-base");h(d,a);d.prototype._update=function(a){this._hash.update(a)};d.prototype._final=function(){return this._hash.digest()};k.exports=function(a){a=a.toLowerCase();return"md5"===a?new e:"rmd160"===a||"ripemd160"===a?new c:new d(g(a))}},{"cipher-base":31,inherits:39,"md5.js":40,ripemd160:41,"sha.js":51}], 33:[function(f,k,h){var d=f("md5.js");k.exports=function(e){return(new d).update(e).digest()}},{"md5.js":40}],34:[function(f,k,h){function d(a,d){c.call(this,"digest");"string"===typeof d&&(d=g.from(d));var e="sha512"===a||"sha384"===a?128:64;this._alg=a;this._key=d;d.length>e?d=("rmd160"===a?new b:m(a)).update(d).digest():d.lengthb.length&&(b=e.concat([b,g],64));for(var d=this._ipad=e.allocUnsafe(64),p=this._opad=e.allocUnsafe(64),f=0;64>f;f++)d[f]=b[f]^54,p[f]=b[f]^92;this._hash=[d]}h=f("inherits");var e=f("safe-buffer").Buffer,c=f("cipher-base"),g=e.alloc(128);h(d,c);d.prototype._update=function(a){this._hash.push(a)}; d.prototype._final=function(){var a=this._alg(e.concat(this._hash));return this._alg(e.concat([this._opad,a]))};k.exports=d},{"cipher-base":31,inherits:39,"safe-buffer":42}],36:[function(f,k,h){(function(d){function e(a,b,c,d){var e=g[a];if(void 0===e)throw Error("hash "+a+" is not supported");this._algo=a;this._securityStrength=e.securityStrength/8;this._outlen=e.outlen/8;this._reseedInterval=281474976710656;this._init(b,c,d)}var c=f("create-hmac"),g=f("./lib/hash-info.json"),a=new d(0),b=new d([0]), m=new d([1]);e.prototype._update=function(a){var d=c(this._algo,this._K).update(this._V).update(b);a&&d.update(a);this._K=d.digest();this._V=c(this._algo,this._K).update(this._V).digest();a&&(this._K=c(this._algo,this._K).update(this._V).update(m).update(a).digest(),this._V=c(this._algo,this._K).update(this._V).digest())};e.prototype._init=function(b,c,g){if(b.lengththis._reseedInterval)throw Error("Reseed is required");b&&0===b.length&&(b=void 0);b&&this._update(b);for(var g=new d(0);g.length=this._blockSize;){for(var g=this._blockOffset;gc;++c)this._length[c]=0;return a};d.prototype._digest=function(){throw Error("_digest is not implemented");};k.exports=d},{inherits:39,"safe-buffer":42,stream:26}],39:[function(f,k,h){arguments[4][7][0].apply(h,arguments)},{dup:7}],40:[function(f,k,h){(function(d){function e(){t.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878}function c(a,b){return a<< b|a>>>32-b}function g(a,b,d,e,g,m,f){return c(a+(b&d|~b&e)+g+m|0,f)+b|0}function a(a,b,d,e,g,m,f){return c(a+(b&e|d&~e)+g+m|0,f)+b|0}function b(a,b,d,e,g,m,f){return c(a+(b^d^e)+g+m|0,f)+b|0}function m(a,b,d,e,g,m,f){return c(a+(d^(b|~e))+g+m|0,f)+b|0}var p=f("inherits"),t=f("hash-base"),n=Array(16);p(e,t);e.prototype._update=function(){for(var c=0;16>c;++c)n[c]=this._block.readInt32LE(4*c);c=this._a;var d=this._b,e=this._c,f=this._d;c=g(c,d,e,f,n[0],3614090360,7);f=g(f,c,d,e,n[1],3905402710,12); e=g(e,f,c,d,n[2],606105819,17);d=g(d,e,f,c,n[3],3250441966,22);c=g(c,d,e,f,n[4],4118548399,7);f=g(f,c,d,e,n[5],1200080426,12);e=g(e,f,c,d,n[6],2821735955,17);d=g(d,e,f,c,n[7],4249261313,22);c=g(c,d,e,f,n[8],1770035416,7);f=g(f,c,d,e,n[9],2336552879,12);e=g(e,f,c,d,n[10],4294925233,17);d=g(d,e,f,c,n[11],2304563134,22);c=g(c,d,e,f,n[12],1804603682,7);f=g(f,c,d,e,n[13],4254626195,12);e=g(e,f,c,d,n[14],2792965006,17);d=g(d,e,f,c,n[15],1236535329,22);c=a(c,d,e,f,n[1],4129170786,5);f=a(f,c,d,e,n[6],3225465664, 9);e=a(e,f,c,d,n[11],643717713,14);d=a(d,e,f,c,n[0],3921069994,20);c=a(c,d,e,f,n[5],3593408605,5);f=a(f,c,d,e,n[10],38016083,9);e=a(e,f,c,d,n[15],3634488961,14);d=a(d,e,f,c,n[4],3889429448,20);c=a(c,d,e,f,n[9],568446438,5);f=a(f,c,d,e,n[14],3275163606,9);e=a(e,f,c,d,n[3],4107603335,14);d=a(d,e,f,c,n[8],1163531501,20);c=a(c,d,e,f,n[13],2850285829,5);f=a(f,c,d,e,n[2],4243563512,9);e=a(e,f,c,d,n[7],1735328473,14);d=a(d,e,f,c,n[12],2368359562,20);c=b(c,d,e,f,n[5],4294588738,4);f=b(f,c,d,e,n[8],2272392833, 11);e=b(e,f,c,d,n[11],1839030562,16);d=b(d,e,f,c,n[14],4259657740,23);c=b(c,d,e,f,n[1],2763975236,4);f=b(f,c,d,e,n[4],1272893353,11);e=b(e,f,c,d,n[7],4139469664,16);d=b(d,e,f,c,n[10],3200236656,23);c=b(c,d,e,f,n[13],681279174,4);f=b(f,c,d,e,n[0],3936430074,11);e=b(e,f,c,d,n[3],3572445317,16);d=b(d,e,f,c,n[6],76029189,23);c=b(c,d,e,f,n[9],3654602809,4);f=b(f,c,d,e,n[12],3873151461,11);e=b(e,f,c,d,n[15],530742520,16);d=b(d,e,f,c,n[2],3299628645,23);c=m(c,d,e,f,n[0],4096336452,6);f=m(f,c,d,e,n[7],1126891415, 10);e=m(e,f,c,d,n[14],2878612391,15);d=m(d,e,f,c,n[5],4237533241,21);c=m(c,d,e,f,n[12],1700485571,6);f=m(f,c,d,e,n[3],2399980690,10);e=m(e,f,c,d,n[10],4293915773,15);d=m(d,e,f,c,n[1],2240044497,21);c=m(c,d,e,f,n[8],1873313359,6);f=m(f,c,d,e,n[15],4264355552,10);e=m(e,f,c,d,n[6],2734768916,15);d=m(d,e,f,c,n[13],1309151649,21);c=m(c,d,e,f,n[4],4149444226,6);f=m(f,c,d,e,n[11],3174756917,10);e=m(e,f,c,d,n[2],718787259,15);d=m(d,e,f,c,n[9],3951481745,21);this._a=this._a+c|0;this._b=this._b+d|0;this._c= this._c+e|0;this._d=this._d+f|0};e.prototype._digest=function(){this._block[this._blockOffset++]=128;56>>32-b}var c=f("buffer").Buffer;h=f("inherits");var g=f("hash-base"),a=Array(16),b=[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],m=[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],p=[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],t=[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],n=[0,1518500249,1859775393,2400959708,2840853838],q=[1352829926,1548603684,1836072691,2053994217,0];h(d,g);d.prototype._update=function(){for(var c=0;16>c;++c)a[c]=this._block.readInt32LE(4*c);var d=this._a|0;c=this._b|0;for(var g=this._c|0,f=this._d|0,h=this._e|0,k=this._a|0,H=this._b|0,F=this._c|0,G=this._d|0,C=this._e|0,A=0;80>A;A+=1){if(16>A){var E=h;E=e(d+(c^g^f)+a[b[A]]+n[0]|0,p[A])+E| 0;d=C;var K=e(k+(H^(F|~G))+a[m[A]]+q[0]|0,t[A])+d|0}else 32>A?(E=h,E=e(d+(c&g|~c&f)+a[b[A]]+n[1]|0,p[A])+E|0,d=C,K=e(k+(H&G|F&~G)+a[m[A]]+q[1]|0,t[A])+d|0):48>A?(E=h,E=e(d+((c|~g)^f)+a[b[A]]+n[2]|0,p[A])+E|0,d=C,K=e(k+((H|~F)^G)+a[m[A]]+q[2]|0,t[A])+d|0):64>A?(E=h,E=e(d+(c&f|g&~f)+a[b[A]]+n[3]|0,p[A])+E|0,d=C,K=e(k+(H&F|~H&G)+a[m[A]]+q[3]|0,t[A])+d|0):(E=h,E=e(d+(c^(g|~f))+a[b[A]]+n[4]|0,p[A])+E|0,d=C,K=e(k+(H^F^G)+a[m[A]]+q[4]|0,t[A])+d|0);d=h;h=f;f=e(g,10);g=c;c=E;k=C;C=G;G=e(F,10);F=H;H=K}g=this._b+ g+G|0;this._b=this._c+f+C|0;this._c=this._d+h+k|0;this._d=this._e+d+H|0;this._e=this._a+c+F|0;this._a=g};d.prototype._digest=function(){this._block[this._blockOffset++]=128;56>>2;e.words[2]=(c[22]&63)<<20|c[23]<<12|c[24]<<4|c[25]>>>4;e.words[3]=(c[19]&255)<<18|c[20]<<10|c[21]<<2|c[22]>>>6;e.words[4]=(c[15]&3)<<24|c[16]<<16|c[17]<<8|c[18];e.words[5]=(c[12]&15)<<22|c[13]<<14|c[14]<<6|c[15]>>>2;e.words[6]=(c[9]&63)<<20|c[10]<<12|c[11]<<4|c[12]>>>4;e.words[7]=(c[6]&255)<<18|c[7]<<10|c[8]<<2|c[9]>>>6;e.words[8]=(c[2]&3)<<24|c[3]<<16|c[4]<<8|c[5];e.words[9]=c[0]<<14|c[1]<<6|c[2]>>>2;e.length= 10;return e.strip()};d.prototype.toBuffer=function(){for(var c=this.words,d=this.length;10>d;++d)c[d]=0;return e.from([c[9]>>>14&255,c[9]>>>6&255,(c[9]&63)<<2|c[8]>>>24&3,c[8]>>>16&255,c[8]>>>8&255,c[8]&255,c[7]>>>18&255,c[7]>>>10&255,c[7]>>>2&255,(c[7]&3)<<6|c[6]>>>20&63,c[6]>>>12&255,c[6]>>>4&255,(c[6]&15)<<4|c[5]>>>22&15,c[5]>>>14&255,c[5]>>>6&255,(c[5]&63)<<2|c[4]>>>24&3,c[4]>>>16&255,c[4]>>>8&255,c[4]&255,c[3]>>>18&255,c[3]>>>10&255,c[3]>>>2&255,(c[3]&3)<<6|c[2]>>>20&63,c[2]>>>12&255,c[2]>>> 4&255,(c[2]&15)<<4|c[1]>>>22&15,c[1]>>>14&255,c[1]>>>6&255,(c[1]&63)<<2|c[0]>>>24&3,c[0]>>>16&255,c[0]>>>8&255,c[0]&255])};d.prototype.clone=function(){var c=new d;c.words=Array(this.length);for(var e=0;ec.length?1:-1;for(var d=this.length-1;0<=d;--d)if(this.words[d]!==c.words[d])return this.words[d]>c.words[d]?1:-1;return 0};d.prototype.gtOne=function(){return 1c.length)var d=this;else d=c,c=this;for(var a=0,b=0;a>>=26;for(;0!==b&&a>>=26;this.length=d.length;if(0!==b)this.words[this.length++]=b;else if(d!==this)for(;a>26;this.words[a]=e&67108863}for(;0!==b&&a>26,this.words[a]=e&67108863;if(0===b&&a>>26,n=e&67108863;e=Math.max(0,b-c.length+1);for(var q=Math.min(b,d.length-1);e<=q;e++)n=c.words[b-e]*d.words[e]+n,f+=n/67108864|0,n&=67108863;a.words[b]=n;e=f}0!==e&&(a.words[a.length++]=e);return a.strip()}; d.umulTo10x10=Math.imul?f.umulTo10x10:d.umulTo;d.umulnTo=function(c,d,a){if(0===d)return a.words=[0],a.length=1,a;for(var b=0,e=0;b=this.length)return this.words[0]=0,this.length=1,this;var a=this.words[9];c.words[c.length++]=a&4194303;for(d=10;d>>22,a=c;a>>>=22;this.words[d-10]=a;this.length=0===a&&10>>c;e=f&d}1t;++t,n<<=1);c.ishrn(t);e.ishrn(t)}t=e.clone();for(n=c.clone();!c.isZero();){for(var q=0,h=1;0===(c.words[0]&h)&&26>q;++q,h<<=1);if(0q;++q,h<<=1);if(0 e;++e)b=b.redSqr().redSqr().redSqr().redSqr().redMul(a);b=b.redSqr().redSqr().redSqr().redSqr().redMul(c);for(e=0;5>e;++e)b=b.redSqr().redSqr().redSqr().redSqr().redMul(a);b=b.redSqr().redSqr().redSqr().redSqr().redMul(d);b=b.redSqr().redSqr().redSqr().redSqr().redSqr().redSqr().redMul(d);return 0===b.redSqr().ucmp(this)?b:null};d.prototype.redInvm=function(){for(var c=this.clone(),e=d.p.clone(),a=d.fromNumber(1),b=d.fromNumber(0);c.gtOne()&&e.gtOne();){for(var f=0,p=1;0===(c.words[0]&p)&&26>f;++f, p<<=1);if(0f;++f,p<<=1);if(0>=1;for(var e=this.clone();!e.isZero();){for(var f=0,t=1;0===(e.words[0]& t)&&26>f;++f,t<<=1)d.push(0);if(0!==f)e.ishrn(f);else if(f=e.words[0]&b,f>=a)d.push(a-f),e.iuaddn(f-a).ishrn(1);else if(d.push(f),e.words[0]-=f,!e.isZero()){for(f=c-1;0>>13,t=g[1]|0;b=t&8191;var n=t>>>13,q=g[2]|0;t=q&8191;var h=q>>>13,k=g[3]|0;q=k&8191;var v=k>>>13,B=g[4]|0;k=B&8191;var z=B>>>13,x=g[5]|0;B=x&8191;var H= x>>>13,F=g[6]|0;x=F&8191;var G=F>>>13,C=g[7]|0;F=C&8191;var A=C>>>13,E=g[8]|0;C=E&8191;E>>>=13;var K=g[9]|0;g=K&8191;K>>>=13;var D=a[0]|0,I=D&8191,J=D>>>13,y=a[1]|0;D=y&8191;var L=y>>>13,w=a[2]|0;y=w&8191;var M=w>>>13,l=a[3]|0;w=l&8191;var T=l>>>13,O=a[4]|0;l=O&8191;var U=O>>>13,P=a[5]|0;O=P&8191;var W=P>>>13,S=a[6]|0;P=S&8191;var V=S>>>13,R=a[7]|0;S=R&8191;var X=R>>>13;var r=a[8]|0;R=r&8191;var aa=r>>>13;a=a[9]|0;var Y=a&8191,Z=a>>>13;c.length=19;var u=Math.imul(f,I);a=Math.imul(f,J);a+=Math.imul(p, I);r=Math.imul(p,J);var ba=d+u+((a&8191)<<13);d=r+(a>>>13)+(ba>>>26);ba&=67108863;u=Math.imul(b,I);a=Math.imul(b,J);a+=Math.imul(n,I);r=Math.imul(n,J);u+=Math.imul(f,D);a+=Math.imul(f,L);a+=Math.imul(p,D);r+=Math.imul(p,L);var ca=d+u+((a&8191)<<13);d=r+(a>>>13)+(ca>>>26);ca&=67108863;u=Math.imul(t,I);a=Math.imul(t,J);a+=Math.imul(h,I);r=Math.imul(h,J);u+=Math.imul(b,D);a+=Math.imul(b,L);a+=Math.imul(n,D);r+=Math.imul(n,L);u+=Math.imul(f,y);a+=Math.imul(f,M);a+=Math.imul(p,y);r+=Math.imul(p,M);var da= d+u+((a&8191)<<13);d=r+(a>>>13)+(da>>>26);da&=67108863;u=Math.imul(q,I);a=Math.imul(q,J);a+=Math.imul(v,I);r=Math.imul(v,J);u+=Math.imul(t,D);a+=Math.imul(t,L);a+=Math.imul(h,D);r+=Math.imul(h,L);u+=Math.imul(b,y);a+=Math.imul(b,M);a+=Math.imul(n,y);r+=Math.imul(n,M);u+=Math.imul(f,w);a+=Math.imul(f,T);a+=Math.imul(p,w);r+=Math.imul(p,T);var ea=d+u+((a&8191)<<13);d=r+(a>>>13)+(ea>>>26);ea&=67108863;u=Math.imul(k,I);a=Math.imul(k,J);a+=Math.imul(z,I);r=Math.imul(z,J);u+=Math.imul(q,D);a+=Math.imul(q, L);a+=Math.imul(v,D);r+=Math.imul(v,L);u+=Math.imul(t,y);a+=Math.imul(t,M);a+=Math.imul(h,y);r+=Math.imul(h,M);u+=Math.imul(b,w);a+=Math.imul(b,T);a+=Math.imul(n,w);r+=Math.imul(n,T);u+=Math.imul(f,l);a+=Math.imul(f,U);a+=Math.imul(p,l);r+=Math.imul(p,U);var fa=d+u+((a&8191)<<13);d=r+(a>>>13)+(fa>>>26);fa&=67108863;u=Math.imul(B,I);a=Math.imul(B,J);a+=Math.imul(H,I);r=Math.imul(H,J);u+=Math.imul(k,D);a+=Math.imul(k,L);a+=Math.imul(z,D);r+=Math.imul(z,L);u+=Math.imul(q,y);a+=Math.imul(q,M);a+=Math.imul(v, y);r+=Math.imul(v,M);u+=Math.imul(t,w);a+=Math.imul(t,T);a+=Math.imul(h,w);r+=Math.imul(h,T);u+=Math.imul(b,l);a+=Math.imul(b,U);a+=Math.imul(n,l);r+=Math.imul(n,U);u+=Math.imul(f,O);a+=Math.imul(f,W);a+=Math.imul(p,O);r+=Math.imul(p,W);var ha=d+u+((a&8191)<<13);d=r+(a>>>13)+(ha>>>26);ha&=67108863;u=Math.imul(x,I);a=Math.imul(x,J);a+=Math.imul(G,I);r=Math.imul(G,J);u+=Math.imul(B,D);a+=Math.imul(B,L);a+=Math.imul(H,D);r+=Math.imul(H,L);u+=Math.imul(k,y);a+=Math.imul(k,M);a+=Math.imul(z,y);r+=Math.imul(z, M);u+=Math.imul(q,w);a+=Math.imul(q,T);a+=Math.imul(v,w);r+=Math.imul(v,T);u+=Math.imul(t,l);a+=Math.imul(t,U);a+=Math.imul(h,l);r+=Math.imul(h,U);u+=Math.imul(b,O);a+=Math.imul(b,W);a+=Math.imul(n,O);r+=Math.imul(n,W);u+=Math.imul(f,P);a+=Math.imul(f,V);a+=Math.imul(p,P);r+=Math.imul(p,V);var ia=d+u+((a&8191)<<13);d=r+(a>>>13)+(ia>>>26);ia&=67108863;u=Math.imul(F,I);a=Math.imul(F,J);a+=Math.imul(A,I);r=Math.imul(A,J);u+=Math.imul(x,D);a+=Math.imul(x,L);a+=Math.imul(G,D);r+=Math.imul(G,L);u+=Math.imul(B, y);a+=Math.imul(B,M);a+=Math.imul(H,y);r+=Math.imul(H,M);u+=Math.imul(k,w);a+=Math.imul(k,T);a+=Math.imul(z,w);r+=Math.imul(z,T);u+=Math.imul(q,l);a+=Math.imul(q,U);a+=Math.imul(v,l);r+=Math.imul(v,U);u+=Math.imul(t,O);a+=Math.imul(t,W);a+=Math.imul(h,O);r+=Math.imul(h,W);u+=Math.imul(b,P);a+=Math.imul(b,V);a+=Math.imul(n,P);r+=Math.imul(n,V);u+=Math.imul(f,S);a+=Math.imul(f,X);a+=Math.imul(p,S);r+=Math.imul(p,X);var ja=d+u+((a&8191)<<13);d=r+(a>>>13)+(ja>>>26);ja&=67108863;u=Math.imul(C,I);a=Math.imul(C, J);a+=Math.imul(E,I);r=Math.imul(E,J);u+=Math.imul(F,D);a+=Math.imul(F,L);a+=Math.imul(A,D);r+=Math.imul(A,L);u+=Math.imul(x,y);a+=Math.imul(x,M);a+=Math.imul(G,y);r+=Math.imul(G,M);u+=Math.imul(B,w);a+=Math.imul(B,T);a+=Math.imul(H,w);r+=Math.imul(H,T);u+=Math.imul(k,l);a+=Math.imul(k,U);a+=Math.imul(z,l);r+=Math.imul(z,U);u+=Math.imul(q,O);a+=Math.imul(q,W);a+=Math.imul(v,O);r+=Math.imul(v,W);u+=Math.imul(t,P);a+=Math.imul(t,V);a+=Math.imul(h,P);r+=Math.imul(h,V);u+=Math.imul(b,S);a+=Math.imul(b, X);a+=Math.imul(n,S);r+=Math.imul(n,X);u+=Math.imul(f,R);a+=Math.imul(f,aa);a+=Math.imul(p,R);r+=Math.imul(p,aa);var ka=d+u+((a&8191)<<13);d=r+(a>>>13)+(ka>>>26);ka&=67108863;u=Math.imul(g,I);a=Math.imul(g,J);a+=Math.imul(K,I);r=Math.imul(K,J);u+=Math.imul(C,D);a+=Math.imul(C,L);a+=Math.imul(E,D);r+=Math.imul(E,L);u+=Math.imul(F,y);a+=Math.imul(F,M);a+=Math.imul(A,y);r+=Math.imul(A,M);u+=Math.imul(x,w);a+=Math.imul(x,T);a+=Math.imul(G,w);r+=Math.imul(G,T);u+=Math.imul(B,l);a+=Math.imul(B,U);a+=Math.imul(H, l);r+=Math.imul(H,U);u+=Math.imul(k,O);a+=Math.imul(k,W);a+=Math.imul(z,O);r+=Math.imul(z,W);u+=Math.imul(q,P);a+=Math.imul(q,V);a+=Math.imul(v,P);r+=Math.imul(v,V);u+=Math.imul(t,S);a+=Math.imul(t,X);a+=Math.imul(h,S);r+=Math.imul(h,X);u+=Math.imul(b,R);a+=Math.imul(b,aa);a+=Math.imul(n,R);r+=Math.imul(n,aa);u+=Math.imul(f,Y);a+=Math.imul(f,Z);a+=Math.imul(p,Y);r+=Math.imul(p,Z);f=d+u+((a&8191)<<13);d=r+(a>>>13)+(f>>>26);f&=67108863;u=Math.imul(g,D);a=Math.imul(g,L);a+=Math.imul(K,D);r=Math.imul(K, L);u+=Math.imul(C,y);a+=Math.imul(C,M);a+=Math.imul(E,y);r+=Math.imul(E,M);u+=Math.imul(F,w);a+=Math.imul(F,T);a+=Math.imul(A,w);r+=Math.imul(A,T);u+=Math.imul(x,l);a+=Math.imul(x,U);a+=Math.imul(G,l);r+=Math.imul(G,U);u+=Math.imul(B,O);a+=Math.imul(B,W);a+=Math.imul(H,O);r+=Math.imul(H,W);u+=Math.imul(k,P);a+=Math.imul(k,V);a+=Math.imul(z,P);r+=Math.imul(z,V);u+=Math.imul(q,S);a+=Math.imul(q,X);a+=Math.imul(v,S);r+=Math.imul(v,X);u+=Math.imul(t,R);a+=Math.imul(t,aa);a+=Math.imul(h,R);r+=Math.imul(h, aa);u+=Math.imul(b,Y);a+=Math.imul(b,Z);a+=Math.imul(n,Y);r+=Math.imul(n,Z);b=d+u+((a&8191)<<13);d=r+(a>>>13)+(b>>>26);b&=67108863;u=Math.imul(g,y);a=Math.imul(g,M);a+=Math.imul(K,y);r=Math.imul(K,M);u+=Math.imul(C,w);a+=Math.imul(C,T);a+=Math.imul(E,w);r+=Math.imul(E,T);u+=Math.imul(F,l);a+=Math.imul(F,U);a+=Math.imul(A,l);r+=Math.imul(A,U);u+=Math.imul(x,O);a+=Math.imul(x,W);a+=Math.imul(G,O);r+=Math.imul(G,W);u+=Math.imul(B,P);a+=Math.imul(B,V);a+=Math.imul(H,P);r+=Math.imul(H,V);u+=Math.imul(k, S);a+=Math.imul(k,X);a+=Math.imul(z,S);r+=Math.imul(z,X);u+=Math.imul(q,R);a+=Math.imul(q,aa);a+=Math.imul(v,R);r+=Math.imul(v,aa);u+=Math.imul(t,Y);a+=Math.imul(t,Z);a+=Math.imul(h,Y);r+=Math.imul(h,Z);t=d+u+((a&8191)<<13);d=r+(a>>>13)+(t>>>26);t&=67108863;u=Math.imul(g,w);a=Math.imul(g,T);a+=Math.imul(K,w);r=Math.imul(K,T);u+=Math.imul(C,l);a+=Math.imul(C,U);a+=Math.imul(E,l);r+=Math.imul(E,U);u+=Math.imul(F,O);a+=Math.imul(F,W);a+=Math.imul(A,O);r+=Math.imul(A,W);u+=Math.imul(x,P);a+=Math.imul(x, V);a+=Math.imul(G,P);r+=Math.imul(G,V);u+=Math.imul(B,S);a+=Math.imul(B,X);a+=Math.imul(H,S);r+=Math.imul(H,X);u+=Math.imul(k,R);a+=Math.imul(k,aa);a+=Math.imul(z,R);r+=Math.imul(z,aa);u+=Math.imul(q,Y);a+=Math.imul(q,Z);a+=Math.imul(v,Y);r+=Math.imul(v,Z);q=d+u+((a&8191)<<13);d=r+(a>>>13)+(q>>>26);q&=67108863;u=Math.imul(g,l);a=Math.imul(g,U);a+=Math.imul(K,l);r=Math.imul(K,U);u+=Math.imul(C,O);a+=Math.imul(C,W);a+=Math.imul(E,O);r+=Math.imul(E,W);u+=Math.imul(F,P);a+=Math.imul(F,V);a+=Math.imul(A, P);r+=Math.imul(A,V);u+=Math.imul(x,S);a+=Math.imul(x,X);a+=Math.imul(G,S);r+=Math.imul(G,X);u+=Math.imul(B,R);a+=Math.imul(B,aa);a+=Math.imul(H,R);r+=Math.imul(H,aa);u+=Math.imul(k,Y);a+=Math.imul(k,Z);a+=Math.imul(z,Y);r+=Math.imul(z,Z);k=d+u+((a&8191)<<13);d=r+(a>>>13)+(k>>>26);k&=67108863;u=Math.imul(g,O);a=Math.imul(g,W);a+=Math.imul(K,O);r=Math.imul(K,W);u+=Math.imul(C,P);a+=Math.imul(C,V);a+=Math.imul(E,P);r+=Math.imul(E,V);u+=Math.imul(F,S);a+=Math.imul(F,X);a+=Math.imul(A,S);r+=Math.imul(A, X);u+=Math.imul(x,R);a+=Math.imul(x,aa);a+=Math.imul(G,R);r+=Math.imul(G,aa);u+=Math.imul(B,Y);a+=Math.imul(B,Z);a+=Math.imul(H,Y);r+=Math.imul(H,Z);B=d+u+((a&8191)<<13);d=r+(a>>>13)+(B>>>26);B&=67108863;u=Math.imul(g,P);a=Math.imul(g,V);a+=Math.imul(K,P);r=Math.imul(K,V);u+=Math.imul(C,S);a+=Math.imul(C,X);a+=Math.imul(E,S);r+=Math.imul(E,X);u+=Math.imul(F,R);a+=Math.imul(F,aa);a+=Math.imul(A,R);r+=Math.imul(A,aa);u+=Math.imul(x,Y);a+=Math.imul(x,Z);a+=Math.imul(G,Y);r+=Math.imul(G,Z);x=d+u+((a& 8191)<<13);d=r+(a>>>13)+(x>>>26);x&=67108863;u=Math.imul(g,S);a=Math.imul(g,X);a+=Math.imul(K,S);r=Math.imul(K,X);u+=Math.imul(C,R);a+=Math.imul(C,aa);a+=Math.imul(E,R);r+=Math.imul(E,aa);u+=Math.imul(F,Y);a+=Math.imul(F,Z);a+=Math.imul(A,Y);r+=Math.imul(A,Z);F=d+u+((a&8191)<<13);d=r+(a>>>13)+(F>>>26);F&=67108863;u=Math.imul(g,R);a=Math.imul(g,aa);a+=Math.imul(K,R);r=Math.imul(K,aa);u+=Math.imul(C,Y);a+=Math.imul(C,Z);a+=Math.imul(E,Y);r+=Math.imul(E,Z);C=d+u+((a&8191)<<13);d=r+(a>>>13)+(C>>>26); C&=67108863;u=Math.imul(g,Y);a=Math.imul(g,Z);a+=Math.imul(K,Y);r=Math.imul(K,Z);p=d+u+((a&8191)<<13);d=r+(a>>>13)+(p>>>26);e[0]=ba;e[1]=ca;e[2]=da;e[3]=ea;e[4]=fa;e[5]=ha;e[6]=ia;e[7]=ja;e[8]=ka;e[9]=f;e[10]=b;e[11]=t;e[12]=q;e[13]=k;e[14]=B;e[15]=x;e[16]=F;e[17]=C;e[18]=p&67108863;0!==d&&(e[19]=d,c.length++);return c}},{}],45:[function(f,k,h){function d(e,c,f){null===e&&null===c&&null===f?(this.y=this.x=d.one,this.z=d.zero):(this.x=e,this.y=c,this.z=f);this.zOne=this.z===d.one}f=f("./bn");d.zero= f.fromNumber(0);d.one=f.fromNumber(1);d.prototype.neg=function(){return this.inf?this:new d(this.x,this.y.redNeg(),this.z)};d.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;var c=e.z.redSqr(),f=this.z.redSqr(),a=this.x.redMul(c),b=e.x.redMul(f);c=this.y.redMul(c).redMul(e.z);f=e.y.redMul(f).redMul(this.z);b=a.redSub(b);f=c.redSub(f);if(b.isZero())return f.isZero()?this.dbl():new d(null,null,null);var m=b.redSqr(),p=a.redMul(m);m=m.redMul(b);a=f.redSqr().redIAdd(m).redISub(p).redISub(p); c=f.redMul(p.redISub(a)).redISub(c.redMul(m));e=this.z.redMul(e.z).redMul(b);return new d(a,c,e)};d.prototype.mixedAdd=function(e){if(this.inf)return e.toECJPoint();if(e.inf)return this;var c=this.z.redSqr(),f=this.x,a=e.x.redMul(c),b=this.y;e=e.y.redMul(c).redMul(this.z);a=f.redSub(a);e=b.redSub(e);if(a.isZero())return e.isZero()?this.dbl():new d(null,null,null);var m=a.redSqr();c=f.redMul(m);m=m.redMul(a);f=e.redSqr().redIAdd(m).redISub(c).redISub(c);b=e.redMul(c.redISub(f)).redISub(b.redMul(m)); a=this.z.redMul(a);return new d(f,b,a)};d.prototype.dbl=function(){if(this.inf)return this;if(this.zOne){var e=this.x.redSqr();var c=this.y.redSqr();var f=c.redSqr();c=this.x.redAdd(c).redSqr().redISub(e).redISub(f);c=c.redIAdd(c);e=e.redAdd(e).redIAdd(e);var a=e.redSqr().redISub(c).redISub(c),b=f.redIAdd(f).redIAdd(f).redIAdd(f);f=a;c=e.redMul(c.redISub(a)).redISub(b);e=this.y.redAdd(this.y)}else e=this.x.redSqr(),c=this.y.redSqr(),f=c.redSqr(),c=this.x.redAdd(c).redSqr().redISub(e).redISub(f),c= c.redIAdd(c),e=e.redAdd(e).redIAdd(e),a=e.redSqr(),b=f.redIAdd(f).redIAdd(f).redIAdd(f),f=a.redISub(c).redISub(c),c=e.redMul(c.redISub(f)).redISub(b),e=this.y.redMul(this.z),e=e.redIAdd(e);return new d(f,c,e)};d.prototype.dblp=function(d){if(0===d||this.inf)return this;for(var c=this,e=0;ee)break;f=a[e];b=0>1]):b.mixedAdd(c[-f- 1>>1].neg())}return d.fromECJPoint(b)};d.prototype._getNAFPoints1=function(){return{wnd:1,points:[this]}};d.prototype._getNAFPoints=function(a){var b=Array((1<f;f++)d=d.dbl();c[e]=d}this.precomputed={naf:a._getNAFPoints(7),doubles:{step:4,points:c,negpoints:c.map(function(a){return a.neg()})}}};d.prototype.mul=function(b){var c=this.precomputed.doubles.step,d=this.precomputed.doubles.points,e=this.precomputed.doubles.negpoints, f=b.getNAF(1),h=((1<=k;v--)N=(N<<1)+f[v];b.push(N)}c=new a(null,null,null);for(f=new a(null,null,null);0f)break;for(g=0;2>g;g++){var m=e[g],p;0!==m&&(0>1]:0>m&&(p=c[g][-m>>1].neg()),d=void 0===p.z?d.mixedAdd(p):d.add(p))}}return d};k.exports=new d},{"./bn":43,"./ecjpoint":45,"./ecpoint":46,"safe-buffer":42}],48:[function(f,k,h){var d=f("safe-buffer").Buffer,e=f("create-hash"),c=f("drbg.js/hmac"),g=f("../messages.json"),a=f("./bn"),b=f("./ecpoint"),m=f("./ecpointg"); h.privateKeyVerify=function(b){b=a.fromBuffer(b);return!(b.isOverflow()||b.isZero())};h.privateKeyExport=function(b,c){var d=a.fromBuffer(b);if(d.isOverflow()||d.isZero())throw Error(g.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return m.mul(d).toPublicKey(c)};h.privateKeyNegate=function(b){b=a.fromBuffer(b);if(b.isZero())return d.alloc(32);0>1){if(0<=p.ucmp(a.psn))break; p=n.add(a.n)}p=d.concat([d.from([2+(f&1)]),p.toBuffer()]);p=b.fromPublicKey(p);if(null!==p)return f=n.uinvm(),c=a.n.sub(a.fromBuffer(c)).umul(f).ureduce(),e=e.umul(f).ureduce(),b.fromECJPoint(m.mulAdd(c,p,e)).toPublicKey(h)}while(0);throw Error(g.ECDSA_RECOVER_FAIL);};h.ecdh=function(a,b){var c=h.ecdhUnsafe(a,b,!0);return e("sha256").update(c).digest()};h.ecdhUnsafe=function(c,d,e){c=b.fromPublicKey(c);if(null===c)throw Error(g.EC_PUBLIC_KEY_PARSE_FAIL);d=a.fromBuffer(d);if(d.isOverflow()||d.isZero())throw Error(g.ECDH_FAIL); return c.mul(d).toPublicKey(e)}},{"../messages.json":49,"./bn":43,"./ecpoint":46,"./ecpointg":47,"create-hash":32,"drbg.js/hmac":36,"safe-buffer":42}],49:[function(f,k,h){k.exports={COMPRESSED_TYPE_INVALID:"compressed should be a boolean",EC_PRIVATE_KEY_TYPE_INVALID:"private key should be a Buffer",EC_PRIVATE_KEY_LENGTH_INVALID:"private key length is invalid",EC_PRIVATE_KEY_RANGE_INVALID:"private key range is invalid",EC_PRIVATE_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting private key is invalid", EC_PRIVATE_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PRIVATE_KEY_EXPORT_DER_FAIL:"couldn't export to DER format",EC_PRIVATE_KEY_IMPORT_DER_FAIL:"couldn't import from DER format",EC_PUBLIC_KEYS_TYPE_INVALID:"public keys should be an Array",EC_PUBLIC_KEYS_LENGTH_INVALID:"public keys Array should have at least 1 element",EC_PUBLIC_KEY_TYPE_INVALID:"public key should be a Buffer",EC_PUBLIC_KEY_LENGTH_INVALID:"public key length is invalid",EC_PUBLIC_KEY_PARSE_FAIL:"the public key could not be parsed or is invalid", EC_PUBLIC_KEY_CREATE_FAIL:"private was invalid, try again",EC_PUBLIC_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting public key is invalid",EC_PUBLIC_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PUBLIC_KEY_COMBINE_FAIL:"the sum of the public keys is not valid",ECDH_FAIL:"scalar was invalid (zero or overflow)",ECDSA_SIGNATURE_TYPE_INVALID:"signature should be a Buffer",ECDSA_SIGNATURE_LENGTH_INVALID:"signature length is invalid",ECDSA_SIGNATURE_PARSE_FAIL:"couldn't parse signature",ECDSA_SIGNATURE_PARSE_DER_FAIL:"couldn't parse DER signature", ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:"couldn't serialize signature to DER format",ECDSA_SIGN_FAIL:"nonce generation function failed or private key is invalid",ECDSA_RECOVER_FAIL:"couldn't recover public key from signature",MSG32_TYPE_INVALID:"message should be a Buffer",MSG32_LENGTH_INVALID:"message length is invalid",OPTIONS_TYPE_INVALID:"options should be an Object",OPTIONS_DATA_TYPE_INVALID:"options.data should be a Buffer",OPTIONS_DATA_LENGTH_INVALID:"options.data length is invalid",OPTIONS_NONCEFN_TYPE_INVALID:"options.noncefn should be a Function", RECOVERY_ID_TYPE_INVALID:"recovery should be a Number",RECOVERY_ID_VALUE_INVALID:"recovery should have value between -1 and 4",TWEAK_TYPE_INVALID:"tweak should be a Buffer",TWEAK_LENGTH_INVALID:"tweak length is invalid"}},{}],50:[function(f,k,h){function d(c,d){this._block=e.alloc(c);this._finalSize=d;this._blockSize=c;this._len=0}var e=f("safe-buffer").Buffer;d.prototype.update=function(c,d){"string"===typeof c&&(c=e.from(c,d||"utf8"));for(var a=this._block,b=this._blockSize,f=c.length,g=this._len, h=0;h=this._finalSize&&(this._update(this._block),this._block.fill(0));d=8*this._len;if(4294967295>=d)this._block.writeUInt32BE(d,this._blockSize-4);else{var a=(d&4294967295)>>>0;this._block.writeUInt32BE((d-a)/4294967296,this._blockSize-8);this._block.writeUInt32BE(a, this._blockSize-4)}this._update(this._block);d=this._hash();return c?d.toString(c):d};d.prototype._update=function(){throw Error("_update must be implemented by subclass");};k.exports=d},{"safe-buffer":42}],51:[function(f,k,h){h=k.exports=function(d){d=d.toLowerCase();var e=h[d];if(!e)throw Error(d+" is not supported (we accept pull requests)");return new e};h.sha=f("./sha");h.sha1=f("./sha1");h.sha224=f("./sha224");h.sha256=f("./sha256");h.sha384=f("./sha384");h.sha512=f("./sha512")},{"./sha":52, "./sha1":53,"./sha224":54,"./sha256":55,"./sha384":56,"./sha512":57}],52:[function(f,k,h){function d(){this.init();this._w=a;e.call(this,64,56)}h=f("inherits");var e=f("./hash"),c=f("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);h(d,e);d.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};d.prototype._update=function(a){for(var b=this._w,c=this._a|0,d=this._b|0,e=this._c|0,f=this._d| 0,h=this._e|0,k=0;16>k;++k)b[k]=a.readInt32BE(4*k);for(;80>k;++k)b[k]=b[k-3]^b[k-8]^b[k-14]^b[k-16];for(a=0;80>a;++a){k=~~(a/20);var v=c<<5|c>>>27;var B=0===k?d&e|~d&f:2===k?d&e|d&f|e&f:d^e^f;k=v+B+h+b[a]+g[k]|0;h=f;f=e;e=d<<30|d>>>2;d=c;c=k}this._a=c+this._a|0;this._b=d+this._b|0;this._c=e+this._c|0;this._d=f+this._d|0;this._e=h+this._e|0};d.prototype._hash=function(){var a=c.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c|0,8);a.writeInt32BE(this._d| 0,12);a.writeInt32BE(this._e|0,16);return a};k.exports=d},{"./hash":50,inherits:39,"safe-buffer":42}],53:[function(f,k,h){function d(){this.init();this._w=a;e.call(this,64,56)}h=f("inherits");var e=f("./hash"),c=f("safe-buffer").Buffer,g=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);h(d,e);d.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};d.prototype._update=function(a){for(var b=this._w,c=this._a|0, d=this._b|0,e=this._c|0,f=this._d|0,h=this._e|0,k=0;16>k;++k)b[k]=a.readInt32BE(4*k);for(;80>k;++k)a=b[k-3]^b[k-8]^b[k-14]^b[k-16],b[k]=a<<1|a>>>31;for(k=0;80>k;++k){a=~~(k/20);var v=c<<5|c>>>27;var B=0===a?d&e|~d&f:2===a?d&e|d&f|e&f:d^e^f;a=v+B+h+b[k]+g[a]|0;h=f;f=e;e=d<<30|d>>>2;d=c;c=a}this._a=c+this._a|0;this._b=d+this._b|0;this._c=e+this._c|0;this._d=f+this._d|0;this._e=h+this._e|0};d.prototype._hash=function(){var a=c.allocUnsafe(20);a.writeInt32BE(this._a|0,0);a.writeInt32BE(this._b|0,4);a.writeInt32BE(this._c| 0,8);a.writeInt32BE(this._d|0,12);a.writeInt32BE(this._e|0,16);return a};k.exports=d},{"./hash":50,inherits:39,"safe-buffer":42}],54:[function(f,k,h){function d(){this.init();this._w=a;c.call(this,64,56)}h=f("inherits");var e=f("./sha256"),c=f("./hash"),g=f("safe-buffer").Buffer,a=Array(64);h(d,e);d.prototype.init=function(){this._a=3238371032;this._b=914150663;this._c=812702999;this._d=4144912697;this._e=4290775857;this._f=1750603025;this._g=1694076839;this._h=3204075428;return this};d.prototype._hash= function(){var a=g.allocUnsafe(28);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);return a};k.exports=d},{"./hash":50,"./sha256":55,inherits:39,"safe-buffer":42}],55:[function(f,k,h){function d(){this.init();this._w=a;e.call(this,64,56)}h=f("inherits");var e=f("./hash"),c=f("safe-buffer").Buffer,g=[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],a=Array(64);h(d,e);d.prototype.init=function(){this._a=1779033703;this._b=3144134277;this._c=1013904242;this._d=2773480762;this._e=1359893119;this._f=2600822924;this._g=528734635;this._h=1541459225;return this};d.prototype._update=function(a){for(var b=this._w,c=this._a|0,d=this._b|0,e=this._c|0,f=this._d|0,h=this._e|0,k=this._f|0,v=this._g|0,B=this._h|0,z=0;16>z;++z)b[z]=a.readInt32BE(4* z);for(;64>z;++z){a=b[z-2];var x=b[z-15];b[z]=((a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10)+b[z-7]+((x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3)+b[z-16]|0}for(z=0;64>z;++z)a=B+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(v^h&(k^v))+g[z]+b[z]|0,x=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&d|e&(c|d))|0,B=v,v=k,k=h,h=f+a|0,f=e,e=d,d=c,c=a+x|0;this._a=c+this._a|0;this._b=d+this._b|0;this._c=e+this._c|0;this._d=f+this._d|0;this._e=h+this._e|0;this._f=k+this._f|0;this._g=v+this._g|0;this._h=B+this._h|0};d.prototype._hash= function(){var a=c.allocUnsafe(32);a.writeInt32BE(this._a,0);a.writeInt32BE(this._b,4);a.writeInt32BE(this._c,8);a.writeInt32BE(this._d,12);a.writeInt32BE(this._e,16);a.writeInt32BE(this._f,20);a.writeInt32BE(this._g,24);a.writeInt32BE(this._h,28);return a};k.exports=d},{"./hash":50,inherits:39,"safe-buffer":42}],56:[function(f,k,h){function d(){this.init();this._w=a;c.call(this,128,112)}h=f("inherits");var e=f("./sha512"),c=f("./hash"),g=f("safe-buffer").Buffer,a=Array(160);h(d,e);d.prototype.init= function(){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;return this};d.prototype._hash=function(){function a(a,b,d){c.writeInt32BE(a,d);c.writeInt32BE(b,d+4)}var c=g.allocUnsafe(48);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch, this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);return c};k.exports=d},{"./hash":50,"./sha512":57,inherits:39,"safe-buffer":42}],57:[function(f,k,h){function d(){this.init();this._w=b;c.call(this,128,112)}function e(a,b){return a>>>0>>0?1:0}h=f("inherits");var c=f("./hash"),g=f("safe-buffer").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],b=Array(160);h(d,c);d.prototype.init=function(){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;return this};d.prototype._update=function(b){for(var c=this._w,d=this._ah|0,f=this._bh|0,g=this._ch| 0,h=this._dh|0,k=this._eh|0,m=this._fh|0,B=this._gh|0,z=this._hh|0,x=this._al|0,H=this._bl|0,F=this._cl|0,G=this._dl|0,C=this._el|0,A=this._fl|0,E=this._gl|0,K=this._hl|0,D=0;32>D;D+=2)c[D]=b.readInt32BE(4*D),c[D+1]=b.readInt32BE(4*D+4);for(;160>D;D+=2){b=c[D-30];var I=c[D-30+1],J=(b>>>1|I<<31)^(b>>>8|I<<24)^b>>>7,y=(I>>>1|b<<31)^(I>>>8|b<<24)^(I>>>7|b<<25);b=c[D-4];I=c[D-4+1];var L=(b>>>19|I<<13)^(I>>>29|b<<3)^b>>>6;I=(I>>>19|b<<13)^(b>>>29|I<<3)^(I>>>6|b<<26);var w=c[D-32],M=c[D-32+1];b=y+c[D-14+ 1]|0;J=J+c[D-14]+e(b,y)|0;b=b+I|0;J=J+L+e(b,I)|0;b=b+M|0;J=J+w+e(b,M)|0;c[D]=J;c[D+1]=b}for(D=0;160>D;D+=2){J=c[D];b=c[D+1];I=d&f|g&(d|f);var l=x&H|F&(x|H);w=(d>>>28|x<<4)^(x>>>2|d<<30)^(x>>>7|d<<25);M=(x>>>28|d<<4)^(d>>>2|x<<30)^(d>>>7|x<<25);var T=a[D],O=a[D+1],U=B^k&(m^B),P=E^C&(A^E);L=K+((C>>>14|k<<18)^(C>>>18|k<<14)^(k>>>9|C<<23))|0;y=z+((k>>>14|C<<18)^(k>>>18|C<<14)^(C>>>9|k<<23))+e(L,K)|0;L=L+P|0;y=y+U+e(L,P)|0;L=L+O|0;y=y+T+e(L,O)|0;L=L+b|0;y=y+J+e(L,b)|0;b=M+l|0;J=w+I+e(b,M)|0;z=B;K=E;B= m;E=A;m=k;A=C;C=G+L|0;k=h+y+e(C,G)|0;h=g;G=F;g=f;F=H;f=d;H=x;x=L+b|0;d=y+J+e(x,L)|0}this._al=this._al+x|0;this._bl=this._bl+H|0;this._cl=this._cl+F|0;this._dl=this._dl+G|0;this._el=this._el+C|0;this._fl=this._fl+A|0;this._gl=this._gl+E|0;this._hl=this._hl+K|0;this._ah=this._ah+d+e(this._al,x)|0;this._bh=this._bh+f+e(this._bl,H)|0;this._ch=this._ch+g+e(this._cl,F)|0;this._dh=this._dh+h+e(this._dl,G)|0;this._eh=this._eh+k+e(this._el,C)|0;this._fh=this._fh+m+e(this._fl,A)|0;this._gh=this._gh+B+e(this._gl, E)|0;this._hh=this._hh+z+e(this._hl,K)|0};d.prototype._hash=function(){function a(a,c,d){b.writeInt32BE(a,d);b.writeInt32BE(c,d+4)}var b=g.allocUnsafe(64);a(this._ah,this._al,0);a(this._bh,this._bl,8);a(this._ch,this._cl,16);a(this._dh,this._dl,24);a(this._eh,this._el,32);a(this._fh,this._fl,40);a(this._gh,this._gl,48);a(this._hh,this._hl,56);return b};k.exports=d},{"./hash":50,inherits:39,"safe-buffer":42}]},{},[30]);