/* Counter block mode compatible with Dr Brian Gladman fileenc.c derived from CryptoJS.mode.CTR Jan Hruby jhruby.web@gmail.com (c) 2012 by C?dric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The buffer module from node.js, for the browser. @author Feross Aboukhadijeh @license MIT The buffer module from node.js, for the browser. @author Feross Aboukhadijeh @license MIT Determine if an object is a Buffer @author Feross Aboukhadijeh @license MIT safe-buffer. MIT License. Feross Aboukhadijeh MIT License (c) copyright 2010-2014 original author or authors */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(r){var H=0;return function(){return H=q}},"es6","es3");$jscomp.polyfill("Math.imul",function(r){return r?r:function(H,A){H=Number(H);A=Number(A);var h=H&65535,n=A&65535;return h*n+((H>>>16&65535)*n+h*(A>>>16&65535)<<16>>>0)|0}},"es6","es3"); $jscomp.polyfill("Math.trunc",function(r){return r?r:function(H){H=Number(H);if(isNaN(H)||Infinity===H||-Infinity===H||0===H)return H;var A=Math.floor(Math.abs(H));return 0>H?-A:A}},"es6","es3");$jscomp.polyfill("Number.isNaN",function(r){return r?r:function(H){return"number"===typeof H&&isNaN(H)}},"es6","es3"); $jscomp.polyfill("Array.prototype.fill",function(r){return r?r:function(H,A,h){var n=this.length||0;0>A&&(A=Math.max(0,n+A));if(null==h||h>n)h=n;h=Number(h);0>h&&(h=Math.max(0,n+h));for(A=Number(A||0);Ae;++e)seed=q.randomBytes(q.sign.seedLength),localStorage.setItem(m,k.btoa(seed)),localStorage.setItem(m,""),localStorage.setItem(m,null)};A.sign_challenge=h;A.public_key=n;A.create_connection=function(m){var e=m.url,b=m.realm,d=m.authid,f=m.pkey,p=m.activation_code,u=m.request_new_activation_code,y=m.serializers;m.debug&&(console.log(e),console.log(b),console.log(d),console.log(f),console.log(p),console.log(u),console.log(y));authextra={pubkey:n(f),trustroot:null,challenge:null, channel_binding:null,activation_code:p,request_new_activation_code:u};return new g.Connection({url:e,realm:b,authid:d,authmethods:["cryptosign"],onchallenge:function(D,z,G){if("cryptosign"==z)return h(f,G);throw"don't know how to authenticate using '"+z+"'";},authextra:authextra,serializers:m.serializers})}},{"../connection.js":6,"../log.js":7,"../util.js":20,tweetnacl:257}],3:[function(r,H,A){A.auth=function(h,n,q){var k=h.defer();navigator.id.watch({loggedInUser:n,onlogin:function(a){k.resolve(a)}, onlogout:function(){h.leave("wamp.close.logout")}});return k.promise.then?k.promise:k}},{}],4:[function(r,H,A){var h="undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{};r("./polyfill.js");H=r("../package.json");try{var n=r("when");var q=!0}catch(y){q=!1}var k=r("msgpack5"),a=r("cbor"),g=r("tweetnacl");"AUTOBAHN_DEBUG"in h&&AUTOBAHN_DEBUG&&(r("when/monitor/console"),"console"in h&&console.log("AutobahnJS debug enabled"));h=r("./util.js");var m=r("./log.js"), e=r("./session.js"),b=r("./connection.js"),d=r("./configure.js"),f=r("./serializer.js"),p=r("./auth/persona.js"),u=r("./auth/cra.js");r=r("./auth/cryptosign.js");A.version=H.version;A.transports=d.transports;A.Connection=b.Connection;A.Session=e.Session;A.Invocation=e.Invocation;A.Event=e.Event;A.Result=e.Result;A.Error=e.Error;A.Subscription=e.Subscription;A.Registration=e.Registration;A.Publication=e.Publication;A.serializer=f;A.auth_persona=p.auth;A.auth_cra=u;A.auth_cryptosign=r;q&&(A.when=n); A.msgpack=k;A.cbor=a;A.nacl=g;A.util=h;A.log=m},{"../package.json":285,"./auth/cra.js":1,"./auth/cryptosign.js":2,"./auth/persona.js":3,"./configure.js":5,"./connection.js":6,"./log.js":7,"./polyfill.js":8,"./serializer.js":16,"./session.js":17,"./util.js":20,cbor:44,msgpack5:201,tweetnacl:257,when:284,"when/monitor/console":282}],5:[function(r,H,A){function h(){this._repository={}}h.prototype.register=function(q,k){this._repository[q]=k};h.prototype.isRegistered=function(q){return this._repository[q]? !0:!1};h.prototype.get=function(q){if(void 0!==this._repository[q])return this._repository[q];throw"no such transport: "+q;};h.prototype.list=function(){var q=[],k;for(k in this._repository)q.push(k);return q};H=new h;var n=r("./transport/websocket.js");H.register("websocket",n.Factory);n=r("./transport/longpoll.js");H.register("longpoll",n.Factory);r=r("./transport/rawsocket.js");H.register("rawsocket",r.Factory);A.transports=H},{"./transport/longpoll.js":18,"./transport/rawsocket.js":44,"./transport/websocket.js":19}], 6:[function(r,H,A){var h=r("./session.js"),n=r("./util.js"),q=r("./log.js"),k=r("./autobahn.js");r=function(a){this._options=a;this._defer=n.deferred_factory(a);this._options.transports||(this._options.transports=[{type:"websocket",url:this._options.url,tlsConfiguration:this._options.tlsConfiguration}]);this._transport_factories=[];this._init_transport_factories();this._session_close_message=this._session_close_reason=this._session=null;this._retry_if_unreachable=void 0!==this._options.retry_if_unreachable? this._options.retry_if_unreachable:!0;this._max_retries="undefined"!==typeof this._options.max_retries?this._options.max_retries:15;this._initial_retry_delay="undefined"!==typeof this._options.initial_retry_delay?this._options.initial_retry_delay:1.5;this._max_retry_delay=this._options.max_retry_delay||300;this._retry_delay_growth=this._options.retry_delay_growth||1.5;this._retry_delay_jitter=this._options.retry_delay_jitter||.1;this._connect_successes=0;this._retry=!1;this._retry_count=0;this._retry_delay= this._initial_retry_delay;this._is_retrying=!1;this._retry_timer=null};r.prototype._create_transport=function(){for(var a=0;athis._max_retry_delay&&(this._retry_delay=this._max_retry_delay);this._retry_count+=1;var a=this._retry&&(-1===this._max_retries||this._retry_count<=this._max_retries)?{count:this._retry_count,delay:this._retry_delay,will_retry:!0}:{count:null,delay:null,will_retry:!1};this._retry_delay_growth&&(this._retry_delay*=this._retry_delay_growth);return a};r.prototype.open=function(){function a(){try{g._transport=g._create_transport()}catch(m){n.handle_error(g._options.on_internal_error, m)}if(g._transport)g._session=new h.Session(g._transport,g._defer,g._options.onchallenge,g._options.on_user_error,g._options.on_internal_error),g._session_close_reason=null,g._session_close_message=null,g._transport.onopen=function(){g._autoreconnect_reset();g._connect_successes+=1;g._session.join(g._options.realm,g._options.authmethods,g._options.authid,g._options.authextra)},g._session.onjoin=function(m){if(g.onopen)try{m.transport=g._transport.info,g.onopen(g._session,m)}catch(e){n.handle_error(g._options.on_user_error, e,"Exception raised from app code while firing Connection.onopen()")}},g._session.onleave=function(m,e){g._session_close_reason=m;g._session_close_message=e.message||"";g._retry=!1;g._transport.close()},g._transport.onclose=function(m){g._autoreconnect_reset_timer();g._transport=null;0===g._connect_successes?(m="unreachable",g._retry_if_unreachable||(g._retry=!1)):m=m.wasClean?"closed":"lost";var e=g._autoreconnect_advance(),b={reason:g._session_close_reason,message:g._session_close_message,retry_delay:e.delay, retry_count:e.count,will_retry:e.will_retry};q.warn("connection closed",m,b);if(g.onclose)try{var d=g.onclose(m,b)}catch(f){n.handle_error(g._options.on_user_error,f,"Exception raised from app code while firing Connection.onclose()")}g._session&&(g._session._id=null,g._session=null,g._session_close_reason=null,g._session_close_message=null);g._retry&&!d?e.will_retry?(g._is_retrying=!0,q.warn("auto-reconnecting in "+e.delay+"s .."),g._retry_timer=setTimeout(a,1E3*e.delay)):q.warn("giving up trying to auto-reconnect!"): q.warn("auto-reconnect disabled!",g._retry,d)};else if(g._retry=!1,g.onclose)g.onclose("unsupported",{reason:null,message:null,retry_delay:null,retry_count:null,will_retry:!1})}var g=this;if(g._transport)throw"connection already open (or opening)";g._autoreconnect_reset();g._retry=!0;a()};r.prototype.close=function(a,g){if(!this._transport&&!this._is_retrying)throw"connection already closed";this._retry=!1;this._session&&this._session.isOpen?this._session.leave(a,g):this._transport&&this._transport.close()}; Object.defineProperty(r.prototype,"defer",{get:function(){return this._defer}});Object.defineProperty(r.prototype,"session",{get:function(){return this._session}});Object.defineProperty(r.prototype,"isOpen",{get:function(){return this._session&&this._session.isOpen?!0:!1}});Object.defineProperty(r.prototype,"isConnected",{get:function(){return this._transport?!0:!1}});Object.defineProperty(r.prototype,"transport",{get:function(){return this._transport?this._transport:{info:{type:"none",url:null,protocol:null}}}}); Object.defineProperty(r.prototype,"isRetrying",{get:function(){return this._is_retrying}});A.Connection=r},{"./autobahn.js":4,"./log.js":7,"./session.js":17,"./util.js":20}],7:[function(r,H,A){(function(h){var n=function(){};"AUTOBAHN_DEBUG"in h&&AUTOBAHN_DEBUG&&"console"in h&&(n=function(){console.log.apply(console,arguments)});h=console.warn.bind(console);A.debug=n;A.warn=h}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}], 8:[function(r,H,A){r("./polyfill/object.js");r("./polyfill/array.js");r("./polyfill/string.js");r("./polyfill/function.js");r("./polyfill/console.js");r("./polyfill/typedarray.js");r("./polyfill/json.js")},{"./polyfill/array.js":9,"./polyfill/console.js":10,"./polyfill/function.js":11,"./polyfill/json.js":12,"./polyfill/object.js":13,"./polyfill/string.js":14,"./polyfill/typedarray.js":15}],9:[function(r,H,A){"function"!==typeof Array.prototype.reduce&&(Array.prototype.reduce=function(h){if(null=== this||"undefined"===typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof h)throw new TypeError(h+" is not a function");var n=Object(this);var q=n.length>>>0;var k=0;if(2<=arguments.length)var a=arguments[1];else{for(;k=q)throw new TypeError("Reduce of empty array with no initial value");a=n[k++]}for(;kn&&(n+=this.length);0>n&&(n=0);for(var q=this.length;nn&&(n+=this.length);n>this.length-1&&(n=this.length-1);for(n++;0>>0)-1;if(2<=arguments.length)var k=arguments[1];else{for(;0<=q&&!q in n;)q--;if(0>q)throw new TypeError("Reduce of empty array with no initial value"); k=n[q--]}for(;0<=q;q--)q in n&&(k=h(k,n[q],q,n));return k})},{}],10:[function(r,H,A){(function(h){h||(h=window.console={log:function(n,q,k,a,g){},info:function(n,q,k,a,g){},warn:function(n,q,k,a,g){},error:function(n,q,k,a,g){},assert:function(n,q){}});"object"===typeof h.log&&(h.log=Function.prototype.call.bind(h.log,h),h.info=Function.prototype.call.bind(h.info,h),h.warn=Function.prototype.call.bind(h.warn,h),h.error=Function.prototype.call.bind(h.error,h),h.debug=Function.prototype.call.bind(h.info, h));"group"in h||(h.group=function(n){h.info("\n--- "+n+" ---\n")});"groupEnd"in h||(h.groupEnd=function(){h.log("\n")});"assert"in h||(h.assert=function(n,q){if(!n)try{throw Error("assertion failed: "+q);}catch(k){setTimeout(function(){throw k;},0)}});"time"in h||function(){var n={};h.time=function(q){n[q]=(new Date).getTime()};h.timeEnd=function(q){var k=(new Date).getTime();h.info(q+": "+(q in n?k-n[q]:0)+"ms")}}()})("undefined"!==typeof console?console:void 0)},{}],11:[function(r,H,A){Function.prototype.bind|| (Function.prototype.bind=function(h){var n=this,q=Array.prototype.slice.call(arguments,1);return function(){return n.apply(h,Array.prototype.concat.apply(q,arguments))}})},{}],12:[function(r,H,A){"object"!==typeof JSON&&(JSON={});(function(){function h(d){return 10>d?"0"+d:d}function n(d){m.lastIndex=0;return m.test(d)?'"'+d.replace(m,function(f){var p=e[f];return"string"===typeof p?p:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+d+'"'}function q(d,f){var p=k,u=f[d];u&&"object"=== typeof u&&"function"===typeof u.toJSON&&(u=u.toJSON(d));"function"===typeof g&&(u=g.call(f,d,u));switch(typeof u){case "string":return n(u);case "number":return isFinite(u)?String(u):"null";case "boolean":case "null":return String(u);case "object":if(!u)return"null";k+=a;var y=[];if("[object Array]"===Object.prototype.toString.apply(u)){var D=u.length;for(d=0;d>ea}function b(Y,ea){ea=32-ea;return Y<>>ea}function d(Y){return[Y&255]}function f(Y){return e(Y[0],8)}function p(Y){return[Y&255]}function u(Y){return b(Y[0],8)}function y(Y){Y=ba(Number(Y));return[0>Y?0:255>8&255,Y&255]}function z(Y){return e(Y[0]<<8|Y[1],16)}function G(Y){return[Y>>8&255,Y&255]}function C(Y){return b(Y[0]<<8|Y[1],16)}function N(Y){return[Y>>24&255,Y>>16&255,Y>>8&255,Y&255]}function M(Y){return e(Y[0]<<24|Y[1]<<16|Y[2]<<8|Y[3],32)}function T(Y){return[Y>> 24&255,Y>>16&255,Y>>8&255,Y&255]}function Q(Y){return b(Y[0]<<24|Y[1]<<16|Y[2]<<8|Y[3],32)}function l(Y,ea,L){function R(sa){var va=x(sa);sa-=va;return.5>sa?va:.5Y?1:0):0===Y?(ka=ca=0,ma=-Infinity===1/Y?1:0):(ma=0>Y,Y=w(Y),Y>=aa(2,1-Z)?(ca=X(x(I(Y)/v),1023),ka=R(Y/aa(2,ca)*aa(2,L)),2<=ka/aa(2,L)&&(ca+=1,ka=1),ca>Z?(ca=(1<>=1}R.reverse();ca=R.join("");Y=(1<R?-0:0}function c(Y){return B(Y,11,52)}function t(Y){return l(Y,11,52)}function F(Y){return B(Y,8,23)}function J(Y){return l(Y,8,23)}var v=Math.LN2,w=Math.abs,x=Math.floor,I=Math.log,S=Math.max,X=Math.min,aa=Math.pow,ba=Math.round;(function(){var Y=Object.defineProperty;try{var ea=Object.defineProperty({},"x",{})}catch(L){ea=!1}Y&&ea||(Object.defineProperty=function(L,R,Z){if(Y)try{return Y(L, R,Z)}catch(ca){}if(L!==Object(L))throw TypeError("Object.defineProperty called on non-object");Object.prototype.__defineGetter__&&"get"in Z&&Object.prototype.__defineGetter__.call(L,R,Z.get);Object.prototype.__defineSetter__&&"set"in Z&&Object.prototype.__defineSetter__.call(L,R,Z.set);"value"in Z&&(L[R]=Z.value);return L})})();(function(){function Y(ja){ja>>=0;if(0>ja)throw RangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:ja}); Object.defineProperty(this,"_bytes",{value:Array(ja)});for(var da=0;da>=0;if(0>ja)throw RangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:ja});Object.defineProperty(this,"byteLength",{value:ja*this.BYTES_PER_ELEMENT});Object.defineProperty(this,"buffer",{value:new Y(this.byteLength)});Object.defineProperty(this,"byteOffset",{value:0})}.apply(this, arguments);if(1<=arguments.length&&"object"===q(arguments[0])&&arguments[0]instanceof ea)return function(ja){if(this.constructor!==ja.constructor)throw TypeError();var da=ja.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:new Y(da)});Object.defineProperty(this,"byteLength",{value:da});Object.defineProperty(this,"byteOffset",{value:0});Object.defineProperty(this,"length",{value:ja.length});for(da=0;da>>=0;if(da>ja.byteLength)throw RangeError("byteOffset out of range");if(da%this.BYTES_PER_ELEMENT)throw RangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(void 0===ha){var ia=ja.byteLength-da;if(ia%this.BYTES_PER_ELEMENT)throw RangeError("length of buffer minus byteOffset not a multiple of the element size");ha=ia/this.BYTES_PER_ELEMENT}else ha>>>= 0,ia=ha*this.BYTES_PER_ELEMENT;if(da+ia>ja.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:ja});Object.defineProperty(this,"byteLength",{value:ia});Object.defineProperty(this,"byteOffset",{value:da});Object.defineProperty(this,"length",{value:ha})}.apply(this,arguments);throw TypeError();}function L(ja,da,ha){var ia=function(){Object.defineProperty(this,"constructor",{value:ia});ea.apply(this,arguments); m(this)};"__proto__"in ia?ia.__proto__=ea:(ia.from=ea.from,ia.of=ea.of);ia.BYTES_PER_ELEMENT=ja;var fa=function(){};fa.prototype=R;ia.prototype=new fa;Object.defineProperty(ia.prototype,"BYTES_PER_ELEMENT",{value:ja});Object.defineProperty(ia.prototype,"_pack",{value:da});Object.defineProperty(ia.prototype,"_unpack",{value:ha});return ia}h.ArrayBuffer=h.ArrayBuffer||Y;Object.defineProperty(ea,"from",{value:function(ja){return new this(ja)}});Object.defineProperty(ea,"of",{value:function(){return new this(arguments)}}); var R={};ea.prototype=R;Object.defineProperty(ea.prototype,"_getter",{value:function(ja){if(1>arguments.length)throw SyntaxError("Not enough arguments");ja>>>=0;if(!(ja>=this.length)){var da=[],ha;var ia=0;for(ha=this.byteOffset+ja*this.BYTES_PER_ELEMENT;iaarguments.length)throw SyntaxError("Not enough arguments"); ja>>>=0;if(!(ja>=this.length)){var ha=this._pack(da),ia;var fa=0;for(ia=this.byteOffset+ja*this.BYTES_PER_ELEMENT;fa>>0;fa=S(fa,0);ja>>=0;ja=0>ja?S(fa+ja,0):X(ja,fa);da>>=0;da=0>da?S(fa+da,0):X(da,fa);ha=void 0===ha?fa:ha>>0;ha=0>ha?S(fa+ha,0):X(ha,fa);fa=X(ha-da,fa-ja); from>>0;if(!a(ja))throw TypeError();for(var fa=0;fa>>0;fa=S(fa,0); da>>=0;da=0>da?S(fa+da,0):X(da,fa);ha=void 0===ha?fa:ha>>0;for(fa=0>ha?S(fa+ha,0):X(ha,fa);da>>0;if(!a(ja))throw TypeError();for(var fa=[],za=0;za>>0;if(!a(ja))throw TypeError();for(var ia=1>>0;if(!a(ja))throw TypeError();for(var ia=1>>0;if(!a(ja))throw TypeError();for(var fa=0;fa>>0;if(0===ha)return-1;var ia=0;if(0=ha)return-1;for(ia= 0<=ia?ia:S(ha-w(ia),0);ia>>0,ia=Array(ha),fa=0;fa>>0;if(0===ha)return-1;var ia=ha; 1>>0;if(!a(ja))throw TypeError();var fa=[];fa.length=ia;for(var za=0;za>>0;if(!a(ja))throw TypeError();if(0===ha&&1===arguments.length)throw TypeError();var ia=0,fa;for(fa=2<=arguments.length?arguments[1]:da._getter(ia++);ia>>0;if(!a(ja))throw TypeError();if(0===ha&&1===arguments.length)throw TypeError();--ha;var ia;for(ia=2<=arguments.length?arguments[1]:da._getter(ha--);0<=ha;)ia=ja.call(void 0,ia,da._getter(ha),ha,da),ha--;return ia}});Object.defineProperty(ea.prototype,"reverse",{value:function(){if(void 0===this||null===this)throw TypeError();var ja=Object(this),da=ja.length>>>0,ha=x(da/2),ia=0;for(--da;iaarguments.length)throw SyntaxError("Not enough arguments");var ha;if("object"===typeof arguments[0]&&arguments[0].constructor===this.constructor){var ia=arguments[0];var fa=arguments[1]>>>0;if(fa+ia.length>this.length)throw RangeError("Offset plus length of array is out of range");var za=this.byteOffset+fa*this.BYTES_PER_ELEMENT;fa=ia.length*this.BYTES_PER_ELEMENT;if(ia.buffer===this.buffer){var Ea=[];var wa=0;for(ha=ia.byteOffset;wa< fa;wa+=1,ha+=1)Ea[wa]=ia.buffer._bytes[ha];for(wa=0;wa>>0;fa=arguments[1]>>>0;if(fa+Ea>this.length)throw RangeError("Offset plus length of array is out of range");for(wa=0;wa>>0;ja>>=0;ja=0>ja?S(ia+ja,0):X(ja,ia);da=void 0===da?ia:da>>0;ia=0>da?S(ia+da,0):X(da,ia);da=new ha.constructor(ia-ja);for(var fa=0;ja>>0;if(!a(ja))throw TypeError();for(var fa=0;fa>>0,ia=Array(ha),fa=0;fa>=0;da>>=0;1>arguments.length&&(ja=0);2>arguments.length&&(da=this.length);0>ja&&(ja=this.length+ja);0>da&& (da=this.length+da);var ha=this.length;ja=0>ja?0:ja>ha?ha:ja;ha=this.length;ha=(0>da?0:da>ha?ha:da)-ja;0>ha&&(ha=0);return new this.constructor(this.buffer,this.byteOffset+ja*this.BYTES_PER_ELEMENT,ha)}});var Z=L(1,d,f),ca=L(1,p,u),ka=L(1,y,u),ma=L(2,D,z),sa=L(2,G,C),va=L(4,N,M),oa=L(4,T,Q),Ba=L(4,J,F),Aa=L(8,t,c);h.Int8Array=n.Int8Array=h.Int8Array||Z;h.Uint8Array=n.Uint8Array=h.Uint8Array||ca;h.Uint8ClampedArray=n.Uint8ClampedArray=h.Uint8ClampedArray||ka;h.Int16Array=n.Int16Array=h.Int16Array|| ma;h.Uint16Array=n.Uint16Array=h.Uint16Array||sa;h.Int32Array=n.Int32Array=h.Int32Array||va;h.Uint32Array=n.Uint32Array=h.Uint32Array||oa;h.Float32Array=n.Float32Array=h.Float32Array||Ba;h.Float64Array=n.Float64Array=h.Float64Array||Aa})();(function(){function Y(ca,ka){return a(ca.get)?ca.get(ka):ca[ka]}function ea(ca,ka,ma){if(!(ca instanceof ArrayBuffer||"ArrayBuffer"===k(ca)))throw TypeError();ka>>>=0;if(ka>ca.byteLength)throw RangeError("byteOffset out of range");ma=void 0===ma?ca.byteLength- ka:ma>>>0;if(ka+ma>ca.byteLength)throw RangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:ca});Object.defineProperty(this,"byteLength",{value:ma});Object.defineProperty(this,"byteOffset",{value:ka})}function L(ca){return function(ka,ma){ka>>>=0;if(ka+ca.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");ka+=this.byteOffset;ka=new h.Uint8Array(this.buffer,ka,ca.BYTES_PER_ELEMENT);for(var sa=[],va= 0;va>>=0;if(ka+ca.BYTES_PER_ELEMENT>this.byteLength)throw RangeError("Array index out of range");ma=new ca([ma]);ma=new h.Uint8Array(ma.buffer);var va=[],oa;for(oa=0;oaN?N+1:1};C._process_SUBSCRIBED=function(M){var T=M[1];M=M[2];if(T in C._subscribe_reqs){var Q=C._subscribe_reqs[T],l=Q[0],B=Q[1],c=Q[2];Q=Q[3]; M in C._subscriptions||(C._subscriptions[M]=[]);B=new b(B,c,Q,C,M);C._subscriptions[M].push(B);l.resolve(B);delete C._subscribe_reqs[T]}else C._protocol_violation("SUBSCRIBED received for non-pending request ID "+T)};C._MESSAGE_MAP[33]=C._process_SUBSCRIBED;C._process_SUBSCRIBE_ERROR=function(M){var T=M[2];T in C._subscribe_reqs?(M=new e(M[4],M[5],M[6]),C._subscribe_reqs[T][0].reject(M),delete C._subscribe_reqs[T]):C._protocol_violation("SUBSCRIBE-ERROR received for non-pending request ID "+T)};C._MESSAGE_MAP[8][32]= C._process_SUBSCRIBE_ERROR;C._process_UNSUBSCRIBED=function(M){var T=M[1];if(T in C._unsubscribe_reqs){M=C._unsubscribe_reqs[T];var Q=M[0];M=M[1];if(M in C._subscriptions){for(var l=C._subscriptions[M],B=0;B must be a string");q.assert(!y||Array.isArray(y),"Session.join: must be an array []");q.assert(!D||"string"===typeof D,"Session.join: must be a string");if(this.isOpen)throw"session already open";this._goodbye_sent=!1;this._realm=u;var G={};G.roles=k;y&&(G.authmethods=y);D&&(G.authid=D);z&&(G.authextra=z);this._send_wamp([1,u,G])}; p.prototype.leave=function(u,y){q.assert(!u||"string"===typeof u,"Session.leave: must be a string");q.assert(!y||"string"===typeof y,"Session.leave: must be a string");if(!this.isOpen)throw"session not open";u||(u="wamp.close.normal");var D={};y&&(D.message=y);this._send_wamp([6,D,u]);this._goodbye_sent=!0};p.prototype.call=function(u,y,D,z){q.assert("string"===typeof u,"Session.call: must be a string");q.assert(!y||Array.isArray(y),"Session.call: must be an array []"); q.assert(!D||q.is_object(D),"Session.call: must be an object {}");q.assert(!z||q.is_object(z),"Session.call: must be an object {}");var G=this;if(!G.isOpen)throw"session not open";z=z||{};void 0===z.disclose_me&&G._caller_disclose_me&&(z.disclose_me=!0);var C=G._defer(),N=G._new_request_id();G._call_reqs[N]=[C,z];u=[48,N,z,G.resolve(u)];y?(u.push(y),D&&u.push(D)):D&&(u.push([]),u.push(D));G._send_wamp(u);y=C.promise.then?C.promise:C;y.cancel=function(M){G._send_wamp([49,N,M||{}]); !(N in G._call_reqs)||M&&M.mode&&"kill"===M.mode||(G._call_reqs[N][0].reject(new e("Cancelled")),delete G._call_reqs[N])};return y};p.prototype.publish=function(u,y,D,z){q.assert("string"===typeof u,"Session.publish: must be a string");q.assert(!y||Array.isArray(y),"Session.publish: must be an array []");q.assert(!D||q.is_object(D),"Session.publish: must be an object {}");q.assert(!z||q.is_object(z),"Session.publish: must be an object {}");if(!this.isOpen)throw"session not open"; z=z||{};void 0===z.disclose_me&&this._publisher_disclose_me&&(z.disclose_me=!0);var G=null,C=this._new_request_id();z.acknowledge&&(G=this._defer(),this._publish_reqs[C]=[G,z]);u=[16,C,z,this.resolve(u)];y?(u.push(y),D&&u.push(D)):D&&(u.push([]),u.push(D));this._send_wamp(u);if(G)return G.promise.then?G.promise:G};p.prototype.subscribe=function(u,y,D){q.assert("string"===typeof u,"Session.subscribe: must be a string");q.assert("function"===typeof y,"Session.subscribe: must be a function"); q.assert(!D||q.is_object(D),"Session.subscribe: must be an object {}");if(!this.isOpen)throw"session not open";var z=this._new_request_id(),G=this._defer();this._subscribe_reqs[z]=[G,u,y,D];y=[32,z];D?y.push(D):y.push({});y.push(this.resolve(u));this._send_wamp(y);return G.promise.then?G.promise:G};p.prototype.register=function(u,y,D){q.assert("string"===typeof u,"Session.register: must be a string");q.assert("function"===typeof y,"Session.register: must be a function"); q.assert(!D||q.is_object(D),"Session.register: must be an object {}");if(!this.isOpen)throw"session not open";var z=this._new_request_id(),G=this._defer();this._register_reqs[z]=[G,u,y,D];y=[64,z];D?y.push(D):y.push({});y.push(this.resolve(u));this._send_wamp(y);return G.promise.then?G.promise:G};p.prototype.unsubscribe=function(u){q.assert(u instanceof b,"Session.unsubscribe: must be an instance of class autobahn.Subscription");var y=this._subscriptions[u.id],D=y.indexOf(u); if(!this.isOpen)throw-1!==D&&(y.splice(D,1),u.active=!1),"session not open";if(!(u.active&&u.id in this._subscriptions))throw-1!==D&&(y.splice(D,1),u.active=!1),"subscription not active";if(-1===D)throw"subscription not active";y.splice(D,1);u.active=!1;D=this._defer();y.length?D.resolve(!1):(y=this._new_request_id(),this._unsubscribe_reqs[y]=[D,u.id],this._send_wamp([34,y,u.id]));return D.promise.then?D.promise:D};p.prototype.unregister=function(u){q.assert(u instanceof d,"Session.unregister: must be an instance of class autobahn.Registration"); if(!this.isOpen)throw"session not open";if(!(u.active&&u.id in this._registrations))throw"registration not active";var y=this._new_request_id(),D=this._defer();this._unregister_reqs[y]=[D,u];this._send_wamp([66,y,u.id]);return D.promise.then?D.promise:D};p.prototype.prefix=function(u,y){q.assert("string"===typeof u,"Session.prefix: must be a string");q.assert(!y||"string"===typeof y,"Session.prefix: must be a string or falsy");y?this._prefixes[u]=y:u in this._prefixes&&delete this._prefixes[u]}; p.prototype.resolve=function(u){q.assert("string"===typeof u,"Session.resolve: must be a string");var y=u.indexOf(":");if(0<=y){var D=u.substring(0,y);return D in this._prefixes?this._prefixes[D]+"."+u.substring(y+1):u}return u};A.Session=p;A.Invocation=a;A.Event=g;A.Result=m;A.Error=e;A.Subscription=b;A.Registration=d;A.Publication=f}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./log.js":7,"./util.js":20}],18:[function(r, H,A){function h(a){n.assert(void 0!==a.url,"options.url missing");n.assert("string"===typeof a.url,"options.url must be a string");this._options=a}var n=r("../util.js"),q=r("../log.js"),k=r("../serializer.js");h.prototype.type="longpoll";h.prototype.create=function(){var a=this;q.debug("longpoll.Factory.create");var g={protocol:void 0};g.serializer=new k.JSONSerializer;g.send=void 0;g.close=void 0;g.onmessage=function(){};g.onopen=function(){};g.onclose=function(){};g.info={type:"longpoll",url:null, protocol:"wamp.2.json"};g._run=function(){var m=null,e=!1,b=a._options.request_timeout||12E3;n.http_post(a._options.url+"/open",JSON.stringify({protocols:["wamp.2.json"]}),b).then(function(d){function f(){q.debug("longpoll.Transport: polling for message ...");n.http_post(p+"/receive",null,b).then(function(u){u&&(u=JSON.parse(u),q.debug("longpoll.Transport: message received",u),g.onmessage(u));e||f()},function(u){q.debug("longpoll.Transport: could not receive message",u.code,u.text);e=!0;g.onclose({code:1001, reason:"transport receive failure (HTTP/POST status "+u.code+" - '"+u.text+"')",wasClean:!1})})}m=JSON.parse(d);var p=a._options.url+"/"+m.transport;g.info.url=p;q.debug("longpoll.Transport: open",m);g.close=function(u,y){if(e)throw"transport is already closing";e=!0;n.http_post(p+"/close",null,b).then(function(){q.debug("longpoll.Transport: transport closed");g.onclose({code:1E3,reason:"transport closed",wasClean:!0})},function(D){q.debug("longpoll.Transport: could not close transport",D.code,D.text)})}; g.send=function(u){if(e)throw"transport is closing or closed already";q.debug("longpoll.Transport: sending message ...",u);u=JSON.stringify(u);n.http_post(p+"/send",u,b).then(function(){q.debug("longpoll.Transport: message sent")},function(y){q.debug("longpoll.Transport: could not send message",y.code,y.text);e=!0;g.onclose({code:1001,reason:"transport send failure (HTTP/POST status "+y.code+" - '"+y.text+"')",wasClean:!1})})};f();g.onopen()},function(d){q.debug("longpoll.Transport: could not open transport", d.code,d.text);e=!0;g.onclose({code:1001,reason:"transport open failure (HTTP/POST status "+d.code+" - '"+d.text+"')",wasClean:!1})})};g._run();return g};A.Factory=h},{"../log.js":7,"../serializer.js":16,"../util.js":20}],19:[function(r,H,A){(function(h){function n(g){q.assert(void 0!==g.url,"options.url missing");q.assert("string"===typeof g.url,"options.url must be a string");g.serializers?q.assert(Array.isArray(g.serializers),"options.serializers must be an array"):(g.serializers=[new a.JSONSerializer], a.MsgpackSerializer&&g.serializers.push(new a.MsgpackSerializer));g.protocols?q.assert(Array.isArray(g.protocols),"options.protocols must be an array"):(g.protocols=[],g.serializers.forEach(function(m){g.protocols.push("wamp.2."+m.SERIALIZER_ID)}));g.autoping_interval?(q.assert(0=g.autoping_size,"options.autoping_size must be between 4 and 125"):g.autoping_size=4;this._options=g}var q=r("../util.js"),k=r("../log.js"),a=r("../serializer.js");n.prototype.type="websocket";n.prototype.create=function(){var g=this,m={protocol:void 0,serializer:void 0,send:void 0,close:void 0,onmessage:function(){},onopen:function(){},onclose:function(){}};m.info={type:"websocket",url:g._options.url, protocol:null};"WebSocket"in h?function(){var e=g._options.protocols?new h.WebSocket(g._options.url,g._options.protocols):new h.WebSocket(g._options.url);e.binaryType="arraybuffer";e.onmessage=function(b){k.debug("WebSocket transport receive",b.data);b=m.serializer.unserialize(b.data);m.onmessage(b)};e.onopen=function(){var b=e.protocol.split(".")[2],d;for(d in g._options.serializers){var f=g._options.serializers[d];if(f.SERIALIZER_ID==b){m.serializer=f;break}}m.info.protocol=e.protocol;m.onopen()}; e.onclose=function(b){m.onclose({code:b.code,reason:b.message,wasClean:b.wasClean})};m.send=function(b){b=m.serializer.serialize(b);k.debug("WebSocket transport send",b);e.send(b)};m.close=function(b,d){e.close(b,d)}}():function(){var e=r("ws"),b=r("tweetnacl").randomBytes,d={agent:g._options.agent,headers:g._options.headers};if(g._options.protocols){var f=g._options.protocols;Array.isArray(f)&&(f=f.join(","));d.protocol=f}g._options.url.startsWith("wss://")&&g._options.tlsConfiguration?g._options.tlsConfiguration.ca&& g._options.tlsConfiguration.cert&&g._options.tlsConfiguration.key?(k.debug("Using TLS Client Authentication."),d.ca=g._options.tlsConfiguration.ca,d.cert=g._options.tlsConfiguration.cert,d.key=g._options.tlsConfiguration.key,d.rejectUnauthorized=!1):k.debug("Not using TLS Client Authentication. tlsConfiguration should include 'ca' 'cert' and 'key' parameters."):k.debug("Not using TLS Client Authentication.");var p=new e(g._options.url,f,d);m.send=function(D){D=m.serializer.serialize(D);p.send(D,{binary:m.serializer.BINARY})}; m.close=function(D,z){p.close()};var u,y;p.on("open",function(){y=new Date;var D=p.protocol.split(".")[2],z;for(z in g._options.serializers){var G=g._options.serializers[z];if(G.SERIALIZER_ID==D){m.serializer=G;break}}m.info.protocol=p.protocol;p.isAlive=!0;u=setInterval(function(){if(!1===p.isAlive)return clearInterval(u),p.terminate();new Date-y=a))return g.error("non-byte EncoderBuffer value");this.value=a;this.length=1}else if("string"===typeof a)this.value=a,this.length=k.byteLength(a);else if(k.isBuffer(a))this.value=a,this.length=a.length;else return g.error("Unsupported type: "+typeof a)}H=r("inherits");var q=r("../base/reporter").Reporter,k=r("safer-buffer").Buffer; H(h,q);A.DecoderBuffer=h;h.isDecoderBuffer=function(a){return a instanceof h?!0:"object"===typeof a&&k.isBuffer(a.base)&&"DecoderBuffer"===a.constructor.name&&"number"===typeof a.offset&&"number"===typeof a.length&&"function"===typeof a.save&&"function"===typeof a.restore&&"function"===typeof a.isEmpty&&"function"===typeof a.readUInt8&&"function"===typeof a.skip&&"function"===typeof a.raw};h.prototype.save=function(){return{offset:this.offset,reporter:q.prototype.save.call(this)}};h.prototype.restore= function(a){var g=new h(this.base);g.offset=a.offset;g.length=this.offset;this.offset=a.offset;q.prototype.restore.call(this,a.reporter);return g};h.prototype.isEmpty=function(){return this.offset===this.length};h.prototype.readUInt8=function(a){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(a||"DecoderBuffer overrun")};h.prototype.skip=function(a,g){if(!(this.offset+a<=this.length))return this.error(g||"DecoderBuffer overrun");g=new h(this.base);g._reporterState= this._reporterState;g.offset=this.offset;g.length=this.offset+a;this.offset+=a;return g};h.prototype.raw=function(a){return this.base.slice(a?a.offset:this.offset,this.length)};A.EncoderBuffer=n;n.isEncoderBuffer=function(a){return a instanceof n?!0:"object"===typeof a&&"EncoderBuffer"===a.constructor.name&&"number"===typeof a.length&&"function"===typeof a.join};n.prototype.join=function(a,g){a||(a=k.alloc(this.length));g||(g=0);if(0===this.length)return a;Array.isArray(this.value)?this.value.forEach(function(m){m.join(a, g);g+=m.length}):("number"===typeof this.value?a[g]=this.value:"string"===typeof this.value?a.write(this.value,g):k.isBuffer(this.value)&&this.value.copy(a,g),g+=this.length);return a}},{"../base/reporter":26,inherits:193,"safer-buffer":244}],24:[function(r,H,A){A.Reporter=r("./reporter").Reporter;A.DecoderBuffer=r("./buffer").DecoderBuffer;A.EncoderBuffer=r("./buffer").EncoderBuffer;A.Node=r("./node")},{"./buffer":23,"./node":25,"./reporter":26}],25:[function(r,H,A){function h(e,b,d){var f={};this._baseState= f;f.name=d;f.enc=e;f.parent=b||null;f.children=null;f.tag=null;f.args=null;f.reverseArgs=null;f.choice=null;f.optional=!1;f.any=!1;f.obj=!1;f.use=null;f.useDecoder=null;f.key=null;f["default"]=null;f.explicit=null;f.implicit=null;f.contains=null;f.parent||(f.children=[],this._wrap())}var n=r("../base/reporter").Reporter,q=r("../base/buffer").EncoderBuffer,k=r("../base/buffer").DecoderBuffer,a=r("minimalistic-assert");r="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" "); var g="key obj use optional explicit implicit def choice any contains".split(" ").concat(r);H.exports=h;var m="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit contains".split(" ");h.prototype.clone=function(){var e=this._baseState,b={};m.forEach(function(f){b[f]=e[f]});var d=new this.constructor(b.parent);d._baseState=b;return d};h.prototype._wrap=function(){var e=this._baseState;g.forEach(function(b){this[b]=function(){var d=new this.constructor(this); e.children.push(d);return d[b].apply(d,arguments)}},this)};h.prototype._init=function(e){var b=this._baseState;a(null===b.parent);e.call(this);b.children=b.children.filter(function(d){return d._baseState.parent===this},this);a.equal(b.children.length,1,"Root node can have only one child")};h.prototype._useArgs=function(e){var b=this._baseState,d=e.filter(function(f){return f instanceof this.constructor},this);e=e.filter(function(f){return!(f instanceof this.constructor)},this);0!==d.length&&(a(null=== b.children),b.children=d,d.forEach(function(f){f._baseState.parent=this},this));0!==e.length&&(a(null===b.args),b.args=e,b.reverseArgs=e.map(function(f){if("object"!==typeof f||f.constructor!==Object)return f;var p={};Object.keys(f).forEach(function(u){u==(u|0)&&(u|=0);p[f[u]]=u});return p}))};"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach(function(e){h.prototype[e]= function(){throw Error(e+" not implemented for encoding: "+this._baseState.enc);}});r.forEach(function(e){h.prototype[e]=function(){var b=this._baseState,d=Array.prototype.slice.call(arguments);a(null===b.tag);b.tag=e;this._useArgs(d);return this}});h.prototype.use=function(e){a(e);var b=this._baseState;a(null===b.use);b.use=e;return this};h.prototype.optional=function(){this._baseState.optional=!0;return this};h.prototype.def=function(e){var b=this._baseState;a(null===b["default"]);b["default"]= e;b.optional=!0;return this};h.prototype.explicit=function(e){var b=this._baseState;a(null===b.explicit&&null===b.implicit);b.explicit=e;return this};h.prototype.implicit=function(e){var b=this._baseState;a(null===b.explicit&&null===b.implicit);b.implicit=e;return this};h.prototype.obj=function(){var e=this._baseState,b=Array.prototype.slice.call(arguments);e.obj=!0;0!==b.length&&this._useArgs(b);return this};h.prototype.key=function(e){var b=this._baseState;a(null===b.key);b.key=e;return this};h.prototype.any= function(){this._baseState.any=!0;return this};h.prototype.choice=function(e){var b=this._baseState;a(null===b.choice);b.choice=e;this._useArgs(Object.keys(e).map(function(d){return e[d]}));return this};h.prototype.contains=function(e){var b=this._baseState;a(null===b.use);b.contains=e;return this};h.prototype._decode=function(e,b){var d=this._baseState;if(null===d.parent)return e.wrapResult(d.children[0]._decode(e,b));var f=d["default"],p=!0,u=null;null!==d.key&&(u=e.enterKey(d.key));if(d.optional){var y= null;null!==d.explicit?y=d.explicit:null!==d.implicit?y=d.implicit:null!==d.tag&&(y=d.tag);if(null!==y||d.any){if(p=this._peekTag(e,y,d.any),e.isError(p))return p}else{y=e.save();try{null===d.choice?this._decodeGeneric(d.tag,e,b):this._decodeChoice(e,b),p=!0}catch(C){p=!1}e.restore(y)}}var D;d.obj&&p&&(D=e.enterObject());if(p){if(null!==d.explicit){y=this._decodeTag(e,d.explicit);if(e.isError(y))return y;e=y}y=e.offset;if(null===d.use&&null===d.choice){var z;d.any&&(z=e.save());var G=this._decodeTag(e, null!==d.implicit?d.implicit:d.tag,d.any);if(e.isError(G))return G;d.any?f=e.raw(z):e=G}b&&b.track&&null!==d.tag&&b.track(e.path(),y,e.length,"tagged");b&&b.track&&null!==d.tag&&b.track(e.path(),e.offset,e.length,"content");d.any||(f=null===d.choice?this._decodeGeneric(d.tag,e,b):this._decodeChoice(e,b));if(e.isError(f))return f;d.any||null!==d.choice||null===d.children||d.children.forEach(function(C){C._decode(e,b)});!d.contains||"octstr"!==d.tag&&"bitstr"!==d.tag||(f=new k(f),f=this._getUse(d.contains, e._reporterState.obj)._decode(f,b))}d.obj&&p&&(f=e.leaveObject(D));null===d.key||null===f&&!0!==p?null!==u&&e.exitKey(u):e.leaveKey(u,d.key,f);return f};h.prototype._decodeGeneric=function(e,b,d){var f=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(b,e,f.args[0],d):/str$/.test(e)?this._decodeStr(b,e,d):"objid"===e&&f.args?this._decodeObjid(b,f.args[0],f.args[1],d):"objid"===e?this._decodeObjid(b,null,null,d):"gentime"===e||"utctime"===e?this._decodeTime(b, e,d):"null_"===e?this._decodeNull(b,d):"bool"===e?this._decodeBool(b,d):"objDesc"===e?this._decodeStr(b,e,d):"int"===e||"enum"===e?this._decodeInt(b,f.args&&f.args[0],d):null!==f.use?this._getUse(f.use,b._reporterState.obj)._decode(b,d):b.error("unknown tag: "+e)};h.prototype._getUse=function(e,b){var d=this._baseState;d.useDecoder=this._use(e,b);a(null===d.useDecoder._baseState.parent);d.useDecoder=d.useDecoder._baseState.children[0];d.implicit!==d.useDecoder._baseState.implicit&&(d.useDecoder=d.useDecoder.clone(), d.useDecoder._baseState.implicit=d.implicit);return d.useDecoder};h.prototype._decodeChoice=function(e,b){var d=this._baseState,f=null,p=!1;Object.keys(d.choice).some(function(u){var y=e.save(),D=d.choice[u];try{var z=D._decode(e,b);if(e.isError(z))return!1;f={type:u,value:z};p=!0}catch(G){return e.restore(y),!1}return!0},this);return p?f:e.error("Choice not matched")};h.prototype._createEncoderBuffer=function(e){return new q(e,this.reporter)};h.prototype._encode=function(e,b,d){var f=this._baseState; if(null===f["default"]||f["default"]!==e)if(e=this._encodeValue(e,b,d),void 0!==e&&!this._skipDefault(e,b,d))return e};h.prototype._encodeValue=function(e,b,d){var f=this._baseState;if(null===f.parent)return f.children[0]._encode(e,b||new n);var p=null;this.reporter=b;if(f.optional&&void 0===e)if(null!==f["default"])e=f["default"];else return;var u=null,y=!1;if(f.any)p=this._createEncoderBuffer(e);else if(f.choice)p=this._encodeChoice(e,b);else if(f.contains)u=this._getUse(f.contains,d)._encode(e, b),y=!0;else if(f.children)u=f.children.map(function(z){if("null_"===z._baseState.tag)return z._encode(null,b,e);if(null===z._baseState.key)return b.error("Child should have a key");var G=b.enterKey(z._baseState.key);if("object"!==typeof e)return b.error("Child expected, but input is not object");z=z._encode(e[z._baseState.key],b,e);b.leaveKey(G);return z},this).filter(function(z){return z}),u=this._createEncoderBuffer(u);else if("seqof"===f.tag||"setof"===f.tag){if(!f.args||1!==f.args.length)return b.error("Too many args for : "+ f.tag);if(!Array.isArray(e))return b.error("seqof/setof, but data is not Array");u=this.clone();u._baseState.implicit=null;u=this._createEncoderBuffer(e.map(function(z){return this._getUse(this._baseState.args[0],e)._encode(z,b)},u))}else null!==f.use?p=this._getUse(f.use,d)._encode(e,b):(u=this._encodePrimitive(f.tag,e),y=!0);if(!f.any&&null===f.choice){d=null!==f.implicit?f.implicit:f.tag;var D=null===f.implicit?"universal":"context";null===d?null===f.use&&b.error("Tag could be omitted only for .use()"): null===f.use&&(p=this._encodeComposite(d,y,D,u))}null!==f.explicit&&(p=this._encodeComposite(f.explicit,!1,"context",p));return p};h.prototype._encodeChoice=function(e,b){var d=this._baseState,f=d.choice[e.type];f||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(d.choice)));return f._encode(e.value,b)};h.prototype._encodePrimitive=function(e,b){var d=this._baseState;if(/str$/.test(e))return this._encodeStr(b,e);if("objid"===e&&d.args)return this._encodeObjid(b,d.reverseArgs[0],d.args[1]); if("objid"===e)return this._encodeObjid(b,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(b,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(b,d.args&&d.reverseArgs[0]);if("bool"===e)return this._encodeBool(b);if("objDesc"===e)return this._encodeStr(b,e);throw Error("Unsupported tag: "+e);};h.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};h.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":23, "../base/reporter":26,"minimalistic-assert":199}],26:[function(r,H,A){function h(q){this._reporterState={obj:null,path:[],options:q||{},errors:[]}}function n(q,k){this.path=q;this.rethrow(k)}r=r("inherits");A.Reporter=h;h.prototype.isError=function(q){return q instanceof n};h.prototype.save=function(){var q=this._reporterState;return{obj:q.obj,pathLen:q.path.length}};h.prototype.restore=function(q){var k=this._reporterState;k.obj=q.obj;k.path=k.path.slice(0,q.pathLen)};h.prototype.enterKey=function(q){return this._reporterState.path.push(q)}; h.prototype.exitKey=function(q){var k=this._reporterState;k.path=k.path.slice(0,q-1)};h.prototype.leaveKey=function(q,k,a){var g=this._reporterState;this.exitKey(q);null!==g.obj&&(g.obj[k]=a)};h.prototype.path=function(){return this._reporterState.path.join("/")};h.prototype.enterObject=function(){var q=this._reporterState,k=q.obj;q.obj={};return k};h.prototype.leaveObject=function(q){var k=this._reporterState,a=k.obj;k.obj=q;return a};h.prototype.error=function(q){var k=this._reporterState,a=q instanceof n;q=a?q:new n(k.path.map(function(g){return"["+JSON.stringify(g)+"]"}).join(""),q.message||q,q.stack);if(!k.options.partial)throw q;a||k.errors.push(q);return q};h.prototype.wrapResult=function(q){var k=this._reporterState;return k.options.partial?{result:this.isError(q)?null:q,errors:k.errors}:q};r(n,Error);n.prototype.rethrow=function(q){this.message=q+" at: "+(this.path||"(shallow)");Error.captureStackTrace&&Error.captureStackTrace(this,n);if(!this.stack)try{throw Error(this.message);}catch(k){this.stack= k.stack}return this}},{inherits:193}],27:[function(r,H,A){function h(n){var q={};Object.keys(n).forEach(function(k){(k|0)==k&&(k|=0);q[n[k]]=k});return q}A.tagClass={0:"universal",1:"application",2:"context",3:"private"};A.tagClassByName=h(A.tagClass);A.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime", 24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};A.tagByName=h(A.tag)},{}],28:[function(r,H,A){A._reverse=function(h){var n={};Object.keys(h).forEach(function(q){(q|0)==q&&(q|=0);n[h[q]]=q});return n};A.der=r("./der")},{"./der":27}],29:[function(r,H,A){function h(b){this.enc="der";this.name=b.name;this.entity=b;this.tree=new n;this.tree._init(b.body)}function n(b){m.call(this,"der",b)}function q(b,d){var f=b.readUInt8(d);if(b.isError(f))return f;var p=e.tagClass[f>> 6],u=0===(f&32);if(31===(f&31)){var y=f;for(f=0;128===(y&128);){y=b.readUInt8(d);if(b.isError(y))return y;f<<=7;f|=y&127}}else f&=31;return{cls:p,primitive:u,tag:f,tagStr:e.tag[f]}}function k(b,d,f){var p=b.readUInt8(f);if(b.isError(p))return p;if(!d&&128===p)return null;if(0===(p&128))return p;d=p&127;if(4b?2E3+b:1900+b;else return b.error("Decoding "+d+" time is not supported yet");return Date.UTC(b,d-1,p,u,y,f,0)};n.prototype._decodeNull=function(){return null};n.prototype._decodeBool=function(b){var d=b.readUInt8();return b.isError(d)?d:0!==d};n.prototype._decodeInt=function(b,d){b=b.raw();b=new a(b);d&&(b=d[b.toString(10)]||b);return b};n.prototype._use=function(b,d){"function"===typeof b&&(b=b(d));return b._getDecoder("der").tree}}, {"../base/buffer":23,"../base/node":25,"../constants/der":27,"bn.js":35,inherits:193}],30:[function(r,H,A){A.der=r("./der");A.pem=r("./pem")},{"./der":29,"./pem":31}],31:[function(r,H,A){function h(k){q.call(this,k);this.enc="pem"}A=r("inherits");var n=r("safer-buffer").Buffer,q=r("./der");A(h,q);H.exports=h;h.prototype.decode=function(k,a){k=k.toString().split(/[\r\n]+/g);for(var g=a.label.toUpperCase(),m=/^-----(BEGIN|END) ([^-]+)-----$/,e=-1,b=-1,d=0;dm? "0"+m:m}A=r("inherits");var k=r("safer-buffer").Buffer,a=r("../base/node"),g=r("../constants/der");H.exports=h;h.prototype.encode=function(m,e){return this.tree._encode(m,e).join()};A(n,a);n.prototype._encodeComposite=function(m,e,b,d){a:{var f=m;m=this.reporter;"seqof"===f?f="seq":"setof"===f&&(f="set");if(g.tagByName.hasOwnProperty(f))f=g.tagByName[f];else if("number"!==typeof f||(f|0)!==f){e=m.error("Unknown tag: "+f);break a}31<=f?e=m.error("Multi-octet tag encoding unsupported"):(e||(f|=32), e=f|=g.tagClassByName[b||"universal"]<<6)}if(128>d.length)return b=k.alloc(2),b[0]=e,b[1]=d.length,this._createEncoderBuffer([b,d]);m=1;for(b=d.length;256<=b;b>>=8)m++;b=k.alloc(2+m);b[0]=e;b[1]=128|m;e=1+m;for(m=d.length;0>=8)b[e]=m&255;return this._createEncoderBuffer([b,d])};n.prototype._encodeStr=function(m,e){if("bitstr"===e)return this._createEncoderBuffer([m.unused|0,m.data]);if("bmpstr"===e){e=k.alloc(2*m.length);for(var b=0;b>=7)b++}b=k.alloc(b);e=b.length-1;for(d=m.length-1;0<=d;d--){var f=m[d];for(b[e--]=f&127;0<(f>>=7);)b[e--]=128|f&127}return this._createEncoderBuffer(b)};n.prototype._encodeTime=function(m,e){var b;m=new Date(m);"gentime"===e?b=[q(m.getUTCFullYear()),q(m.getUTCMonth()+1),q(m.getUTCDate()),q(m.getUTCHours()),q(m.getUTCMinutes()), q(m.getUTCSeconds()),"Z"].join(""):"utctime"===e?b=[q(m.getUTCFullYear()%100),q(m.getUTCMonth()+1),q(m.getUTCDate()),q(m.getUTCHours()),q(m.getUTCMinutes()),q(m.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet");return this._encodeStr(b,"octstr")};n.prototype._encodeNull=function(){return this._createEncoderBuffer("")};n.prototype._encodeInt=function(m,e){if("string"===typeof m){if(!e)return this.reporter.error("String int or enum given, but no values map"); if(!e.hasOwnProperty(m))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(m));m=e[m]}"number"===typeof m||k.isBuffer(m)||(e=m.toArray(),!m.sign&&e[0]&128&&e.unshift(0),m=k.from(e));if(k.isBuffer(m))return e=m.length,0===m.length&&e++,e=k.alloc(e),m.copy(e),0===m.length&&(e[0]=0),this._createEncoderBuffer(e);if(128>m)return this._createEncoderBuffer(m);if(256>m)return this._createEncoderBuffer([0,m]);e=1;for(var b=m;256<=b;b>>=8)e++;e=Array(e);for(b=e.length-1;0<=b;b--)e[b]= m&255,m>>=8;e[0]&128&&e.unshift(0);return this._createEncoderBuffer(k.from(e))};n.prototype._encodeBool=function(m){return this._createEncoderBuffer(m?255:0)};n.prototype._use=function(m,e){"function"===typeof m&&(m=m(e));return m._getEncoder("der").tree};n.prototype._skipDefault=function(m,e,b){var d=this._baseState;if(null===d["default"])return!1;m=m.join();void 0===d.defaultBuffer&&(d.defaultBuffer=this._encodeValue(d["default"],e,b).join());if(m.length!==d.defaultBuffer.length)return!1;for(e= 0;e=F?t|F-49+10:17<=F&&22>=F?t|F-17+10:t|F&15}return t}function m(l,B,c,t){var F=0;for(c=Math.min(l.length,c);B>>26,I=v&67108863;v= Math.min(w,B.length-1);for(var S=Math.max(0,w-l.length+1);S<=v;S++)F=l.words[w-S|0]|0,J=B.words[S]|0,F=F*J+I,x+=F/67108864|0,I=F&67108863;c.words[w]=I|0;v=x|0}0!==v?c.words[w]=v|0:c.length--;return c.strip()}function b(l,B){this.x=l;this.y=B}function d(l,B){this.name=l;this.p=new a(B,16);this.n=this.p.bitLength();this.k=(new a(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function f(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function p(){d.call(this, "p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function u(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function y(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function D(l){"string"===typeof l?(l=a._prime(l),this.m=l.p,this.prime=l):(q(l.gtn(1),"modulus must be greater than 1"),this.m=l,this.prime=null)}function z(l){D.call(this,l);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+= 26-this.shift%26);this.r=(new a(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof h?h.exports=a:n.BN=a;a.BN=a;a.wordSize=26;try{var G=r("buffer").Buffer}catch(l){}a.isBN=function(l){return l instanceof a?!0:null!==l&&"object"===typeof l&&l.constructor.wordSize===a.wordSize&&Array.isArray(l.words)};a.max=function(l,B){return 0< l.cmp(B)?l:B};a.min=function(l,B){return 0>l.cmp(B)?l:B};a.prototype._init=function(l,B,c){if("number"===typeof l)return this._initNumber(l,B,c);if("object"===typeof l)return this._initArray(l,B,c);"hex"===B&&(B=16);q(B===(B|0)&&2<=B&&36>=B);l=l.toString().replace(/\s+/g,"");var t=0;"-"===l[0]&&t++;16===B?this._parseHex(l,t):this._parseBase(l,B,t);"-"===l[0]&&(this.negative=1);this.strip();"le"===c&&this._initArray(this.toArray(),B,c)};a.prototype._initNumber=function(l,B,c){0>l&&(this.negative=1, l=-l);67108864>l?(this.words=[l&67108863],this.length=1):4503599627370496>l?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(q(9007199254740992>l),this.words=[l&67108863,l/67108864&67108863,1],this.length=3);"le"===c&&this._initArray(this.toArray(),B,c)};a.prototype._initArray=function(l,B,c){q("number"===typeof l.length);if(0>=l.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3);this.words=Array(this.length);for(B=0;B>>26-t&67108863;t+=24;26<=t&&(t-=26,c++)}else if("le"===c)for(c=B=0;B>>26-t&67108863,t+=24,26<=t&&(t-=26,c++);return this.strip()};a.prototype._parseHex=function(l,B){this.length=Math.ceil((l.length-B)/6);this.words=Array(this.length);for(var c=0;c=B;c-=6){var J=g(l,c,c+6);this.words[t]|=J<>>26-F&4194303;F+=24;26<=F&&(F-=26,t++)}c+6!==B&&(J=g(l,B,c+6),this.words[t]|=J<>>26-F&4194303);this.strip()};a.prototype._parseBase=function(l,B,c){this.words=[0];this.length=1;for(var t=0,F=1;67108863>=F;F*=B)t++;t--;F=F/B|0;var J=l.length-c,v=J%t;J=Math.min(J,J-v)+c;for(var w=c;wthis.words[0]+c?this.words[0]+=c:this._iaddn(c); if(0!==v){t=1;c=m(l,w,l.length,B);for(w=0;wthis.words[0]+c?this.words[0]+=c:this._iaddn(c)}};a.prototype.copy=function(l){l.words=Array(this.length);for(var B=0;B"};var C=" 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000 00000000000 000000000000 0000000000000 00000000000000 000000000000000 0000000000000000 00000000000000000 000000000000000000 0000000000000000000 00000000000000000000 000000000000000000000 0000000000000000000000 00000000000000000000000 000000000000000000000000 0000000000000000000000000".split(" "), N=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1E7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64E6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243E5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(l,B){l=l||10;B=B|0||1;if(16===l||"hex"===l){var c="";for(var t=l=0,F=0;F>>24-l&16777215;c=0!==t||F!==this.length-1?C[6-v.length]+v+c:v+c;l+=2;26<=l&&(l-=26,F--)}for(0!==t&&(c=t.toString(16)+c);0!==c.length%B;)c="0"+c;0!==this.negative&&(c="-"+c);return c}if(l===(l|0)&&2<=l&&36>=l){t=N[l];F=M[l];c="";J=this.clone();for(J.negative=0;!J.isZero();)v=J.modn(F).toString(l),J=J.idivn(F),c=J.isZero()?v+c:C[t-v.length]+v+c;for(this.isZero()&&(c="0"+c);0!==c.length%B;)c="0"+c;0!==this.negative&&(c="-"+c);return c}q(!1,"Base should be between 2 and 36")}; a.prototype.toNumber=function(){var l=this.words[0];2===this.length?l+=67108864*this.words[1]:3===this.length&&1===this.words[2]?l+=4503599627370496+67108864*this.words[1]:2>>=13);64<= l&&(B+=7,l>>>=7);8<=l&&(B+=4,l>>>=4);2<=l&&(B+=2,l>>>=2);return B+l};a.prototype._zeroBits=function(l){if(0===l)return 26;var B=0;0===(l&8191)&&(B+=13,l>>>=13);0===(l&127)&&(B+=7,l>>>=7);0===(l&15)&&(B+=4,l>>>=4);0===(l&3)&&(B+=2,l>>>=2);0===(l&1)&&B++;return B};a.prototype.bitLength=function(){var l=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+l};a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,B=0;Bl.length?this.clone().ior(l):l.clone().ior(this)};a.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)};a.prototype.iuand=function(l){var B=this.length>l.length?l:this;for(var c=0;cl.length?this.clone().iand(l):l.clone().iand(this)};a.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)};a.prototype.iuxor=function(l){if(this.length>l.length)var B=this;else B=l,l=this;for(var c=0;cl.length?this.clone().ixor(l):l.clone().ixor(this)};a.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)};a.prototype.inotn=function(l){q("number"===typeof l&&0<=l);var B=Math.ceil(l/26)|0;l%=26;this._expand(B);0>26-l);return this.strip()};a.prototype.notn=function(l){return this.clone().inotn(l)};a.prototype.setn=function(l,B){q("number"===typeof l&&0<=l);var c=l/26|0;l%=26;this._expand(c+1);this.words[c]=B?this.words[c]|1<l.length)var c=this;else c=l,l=this;for(var t=B=0;t>>=26;for(;0!==B&&t>>=26;this.length=c.length;if(0!==B)this.words[this.length]=B,this.length++;else if(c!==this)for(;tl.length?this.clone().iadd(l):l.clone().iadd(this)};a.prototype.isub=function(l){if(0!==l.negative){l.negative=0;var B=this.iadd(l);l.negative=1;return B._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();B=this.cmp(l);if(0===B)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[F]=B&67108863;for(;0!==t&&F>26,this.words[F]=B&67108863;if(0===t&&F>>13,S=t[1]| 0;w=S&8191;var X=S>>>13,aa=t[2]|0;S=aa&8191;var ba=aa>>>13,Y=t[3]|0;aa=Y&8191;var ea=Y>>>13,L=t[4]|0;Y=L&8191;var R=L>>>13,Z=t[5]|0;L=Z&8191;var ca=Z>>>13,ka=t[6]|0;Z=ka&8191;var ma=ka>>>13,sa=t[7]|0;ka=sa&8191;var va=sa>>>13,oa=t[8]|0;sa=oa&8191;oa>>>=13;var Ba=t[9]|0;t=Ba&8191;Ba>>>=13;var Aa=F[0]|0,ja=Aa&8191,da=Aa>>>13,ha=F[1]|0;Aa=ha&8191;var ia=ha>>>13,fa=F[2]|0;ha=fa&8191;var za=fa>>>13,Ea=F[3]|0;fa=Ea&8191;var wa=Ea>>>13,Pa=F[4]|0;Ea=Pa&8191;var Ma=Pa>>>13,Ha=F[5]|0;Pa=Ha&8191;var Sa=Ha>>> 13,Oa=F[6]|0;Ha=Oa&8191;var O=Oa>>>13,K=F[7]|0;Oa=K&8191;var E=K>>>13,U=F[8]|0;K=U&8191;U>>>=13;var W=F[9]|0;F=W&8191;W>>>=13;c.negative=l.negative^B.negative;c.length=19;var P=Math.imul(x,ja);l=Math.imul(x,da);l=l+Math.imul(I,ja)|0;B=Math.imul(I,da);var la=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(la>>>26)|0;la&=67108863;P=Math.imul(w,ja);l=Math.imul(w,da);l=l+Math.imul(X,ja)|0;B=Math.imul(X,da);P=P+Math.imul(x,Aa)|0;l=l+Math.imul(x,ia)|0;l=l+Math.imul(I,Aa)|0;B=B+Math.imul(I,ia)|0;var V=(v+P|0)+ ((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(V>>>26)|0;V&=67108863;P=Math.imul(S,ja);l=Math.imul(S,da);l=l+Math.imul(ba,ja)|0;B=Math.imul(ba,da);P=P+Math.imul(w,Aa)|0;l=l+Math.imul(w,ia)|0;l=l+Math.imul(X,Aa)|0;B=B+Math.imul(X,ia)|0;P=P+Math.imul(x,ha)|0;l=l+Math.imul(x,za)|0;l=l+Math.imul(I,ha)|0;B=B+Math.imul(I,za)|0;var pa=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(pa>>>26)|0;pa&=67108863;P=Math.imul(aa,ja);l=Math.imul(aa,da);l=l+Math.imul(ea,ja)|0;B=Math.imul(ea,da);P=P+Math.imul(S,Aa)|0;l=l+Math.imul(S, ia)|0;l=l+Math.imul(ba,Aa)|0;B=B+Math.imul(ba,ia)|0;P=P+Math.imul(w,ha)|0;l=l+Math.imul(w,za)|0;l=l+Math.imul(X,ha)|0;B=B+Math.imul(X,za)|0;P=P+Math.imul(x,fa)|0;l=l+Math.imul(x,wa)|0;l=l+Math.imul(I,fa)|0;B=B+Math.imul(I,wa)|0;var ra=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(ra>>>26)|0;ra&=67108863;P=Math.imul(Y,ja);l=Math.imul(Y,da);l=l+Math.imul(R,ja)|0;B=Math.imul(R,da);P=P+Math.imul(aa,Aa)|0;l=l+Math.imul(aa,ia)|0;l=l+Math.imul(ea,Aa)|0;B=B+Math.imul(ea,ia)|0;P=P+Math.imul(S,ha)|0;l=l+Math.imul(S, za)|0;l=l+Math.imul(ba,ha)|0;B=B+Math.imul(ba,za)|0;P=P+Math.imul(w,fa)|0;l=l+Math.imul(w,wa)|0;l=l+Math.imul(X,fa)|0;B=B+Math.imul(X,wa)|0;P=P+Math.imul(x,Ea)|0;l=l+Math.imul(x,Ma)|0;l=l+Math.imul(I,Ea)|0;B=B+Math.imul(I,Ma)|0;var ya=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(ya>>>26)|0;ya&=67108863;P=Math.imul(L,ja);l=Math.imul(L,da);l=l+Math.imul(ca,ja)|0;B=Math.imul(ca,da);P=P+Math.imul(Y,Aa)|0;l=l+Math.imul(Y,ia)|0;l=l+Math.imul(R,Aa)|0;B=B+Math.imul(R,ia)|0;P=P+Math.imul(aa,ha)|0;l=l+Math.imul(aa, za)|0;l=l+Math.imul(ea,ha)|0;B=B+Math.imul(ea,za)|0;P=P+Math.imul(S,fa)|0;l=l+Math.imul(S,wa)|0;l=l+Math.imul(ba,fa)|0;B=B+Math.imul(ba,wa)|0;P=P+Math.imul(w,Ea)|0;l=l+Math.imul(w,Ma)|0;l=l+Math.imul(X,Ea)|0;B=B+Math.imul(X,Ma)|0;P=P+Math.imul(x,Pa)|0;l=l+Math.imul(x,Sa)|0;l=l+Math.imul(I,Pa)|0;B=B+Math.imul(I,Sa)|0;var xa=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(xa>>>26)|0;xa&=67108863;P=Math.imul(Z,ja);l=Math.imul(Z,da);l=l+Math.imul(ma,ja)|0;B=Math.imul(ma,da);P=P+Math.imul(L,Aa)|0;l=l+Math.imul(L, ia)|0;l=l+Math.imul(ca,Aa)|0;B=B+Math.imul(ca,ia)|0;P=P+Math.imul(Y,ha)|0;l=l+Math.imul(Y,za)|0;l=l+Math.imul(R,ha)|0;B=B+Math.imul(R,za)|0;P=P+Math.imul(aa,fa)|0;l=l+Math.imul(aa,wa)|0;l=l+Math.imul(ea,fa)|0;B=B+Math.imul(ea,wa)|0;P=P+Math.imul(S,Ea)|0;l=l+Math.imul(S,Ma)|0;l=l+Math.imul(ba,Ea)|0;B=B+Math.imul(ba,Ma)|0;P=P+Math.imul(w,Pa)|0;l=l+Math.imul(w,Sa)|0;l=l+Math.imul(X,Pa)|0;B=B+Math.imul(X,Sa)|0;P=P+Math.imul(x,Ha)|0;l=l+Math.imul(x,O)|0;l=l+Math.imul(I,Ha)|0;B=B+Math.imul(I,O)|0;var Fa= (v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;P=Math.imul(ka,ja);l=Math.imul(ka,da);l=l+Math.imul(va,ja)|0;B=Math.imul(va,da);P=P+Math.imul(Z,Aa)|0;l=l+Math.imul(Z,ia)|0;l=l+Math.imul(ma,Aa)|0;B=B+Math.imul(ma,ia)|0;P=P+Math.imul(L,ha)|0;l=l+Math.imul(L,za)|0;l=l+Math.imul(ca,ha)|0;B=B+Math.imul(ca,za)|0;P=P+Math.imul(Y,fa)|0;l=l+Math.imul(Y,wa)|0;l=l+Math.imul(R,fa)|0;B=B+Math.imul(R,wa)|0;P=P+Math.imul(aa,Ea)|0;l=l+Math.imul(aa,Ma)|0;l=l+Math.imul(ea,Ea)|0;B=B+Math.imul(ea, Ma)|0;P=P+Math.imul(S,Pa)|0;l=l+Math.imul(S,Sa)|0;l=l+Math.imul(ba,Pa)|0;B=B+Math.imul(ba,Sa)|0;P=P+Math.imul(w,Ha)|0;l=l+Math.imul(w,O)|0;l=l+Math.imul(X,Ha)|0;B=B+Math.imul(X,O)|0;P=P+Math.imul(x,Oa)|0;l=l+Math.imul(x,E)|0;l=l+Math.imul(I,Oa)|0;B=B+Math.imul(I,E)|0;var Ga=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;P=Math.imul(sa,ja);l=Math.imul(sa,da);l=l+Math.imul(oa,ja)|0;B=Math.imul(oa,da);P=P+Math.imul(ka,Aa)|0;l=l+Math.imul(ka,ia)|0;l=l+Math.imul(va,Aa)|0;B=B+Math.imul(va, ia)|0;P=P+Math.imul(Z,ha)|0;l=l+Math.imul(Z,za)|0;l=l+Math.imul(ma,ha)|0;B=B+Math.imul(ma,za)|0;P=P+Math.imul(L,fa)|0;l=l+Math.imul(L,wa)|0;l=l+Math.imul(ca,fa)|0;B=B+Math.imul(ca,wa)|0;P=P+Math.imul(Y,Ea)|0;l=l+Math.imul(Y,Ma)|0;l=l+Math.imul(R,Ea)|0;B=B+Math.imul(R,Ma)|0;P=P+Math.imul(aa,Pa)|0;l=l+Math.imul(aa,Sa)|0;l=l+Math.imul(ea,Pa)|0;B=B+Math.imul(ea,Sa)|0;P=P+Math.imul(S,Ha)|0;l=l+Math.imul(S,O)|0;l=l+Math.imul(ba,Ha)|0;B=B+Math.imul(ba,O)|0;P=P+Math.imul(w,Oa)|0;l=l+Math.imul(w,E)|0;l=l+ Math.imul(X,Oa)|0;B=B+Math.imul(X,E)|0;P=P+Math.imul(x,K)|0;l=l+Math.imul(x,U)|0;l=l+Math.imul(I,K)|0;B=B+Math.imul(I,U)|0;var La=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(La>>>26)|0;La&=67108863;P=Math.imul(t,ja);l=Math.imul(t,da);l=l+Math.imul(Ba,ja)|0;B=Math.imul(Ba,da);P=P+Math.imul(sa,Aa)|0;l=l+Math.imul(sa,ia)|0;l=l+Math.imul(oa,Aa)|0;B=B+Math.imul(oa,ia)|0;P=P+Math.imul(ka,ha)|0;l=l+Math.imul(ka,za)|0;l=l+Math.imul(va,ha)|0;B=B+Math.imul(va,za)|0;P=P+Math.imul(Z,fa)|0;l=l+Math.imul(Z,wa)| 0;l=l+Math.imul(ma,fa)|0;B=B+Math.imul(ma,wa)|0;P=P+Math.imul(L,Ea)|0;l=l+Math.imul(L,Ma)|0;l=l+Math.imul(ca,Ea)|0;B=B+Math.imul(ca,Ma)|0;P=P+Math.imul(Y,Pa)|0;l=l+Math.imul(Y,Sa)|0;l=l+Math.imul(R,Pa)|0;B=B+Math.imul(R,Sa)|0;P=P+Math.imul(aa,Ha)|0;l=l+Math.imul(aa,O)|0;l=l+Math.imul(ea,Ha)|0;B=B+Math.imul(ea,O)|0;P=P+Math.imul(S,Oa)|0;l=l+Math.imul(S,E)|0;l=l+Math.imul(ba,Oa)|0;B=B+Math.imul(ba,E)|0;P=P+Math.imul(w,K)|0;l=l+Math.imul(w,U)|0;l=l+Math.imul(X,K)|0;B=B+Math.imul(X,U)|0;P=P+Math.imul(x, F)|0;l=l+Math.imul(x,W)|0;l=l+Math.imul(I,F)|0;B=B+Math.imul(I,W)|0;x=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(x>>>26)|0;x&=67108863;P=Math.imul(t,Aa);l=Math.imul(t,ia);l=l+Math.imul(Ba,Aa)|0;B=Math.imul(Ba,ia);P=P+Math.imul(sa,ha)|0;l=l+Math.imul(sa,za)|0;l=l+Math.imul(oa,ha)|0;B=B+Math.imul(oa,za)|0;P=P+Math.imul(ka,fa)|0;l=l+Math.imul(ka,wa)|0;l=l+Math.imul(va,fa)|0;B=B+Math.imul(va,wa)|0;P=P+Math.imul(Z,Ea)|0;l=l+Math.imul(Z,Ma)|0;l=l+Math.imul(ma,Ea)|0;B=B+Math.imul(ma,Ma)|0;P=P+Math.imul(L, Pa)|0;l=l+Math.imul(L,Sa)|0;l=l+Math.imul(ca,Pa)|0;B=B+Math.imul(ca,Sa)|0;P=P+Math.imul(Y,Ha)|0;l=l+Math.imul(Y,O)|0;l=l+Math.imul(R,Ha)|0;B=B+Math.imul(R,O)|0;P=P+Math.imul(aa,Oa)|0;l=l+Math.imul(aa,E)|0;l=l+Math.imul(ea,Oa)|0;B=B+Math.imul(ea,E)|0;P=P+Math.imul(S,K)|0;l=l+Math.imul(S,U)|0;l=l+Math.imul(ba,K)|0;B=B+Math.imul(ba,U)|0;P=P+Math.imul(w,F)|0;l=l+Math.imul(w,W)|0;l=l+Math.imul(X,F)|0;B=B+Math.imul(X,W)|0;w=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(w>>>26)|0;w&=67108863;P=Math.imul(t, ha);l=Math.imul(t,za);l=l+Math.imul(Ba,ha)|0;B=Math.imul(Ba,za);P=P+Math.imul(sa,fa)|0;l=l+Math.imul(sa,wa)|0;l=l+Math.imul(oa,fa)|0;B=B+Math.imul(oa,wa)|0;P=P+Math.imul(ka,Ea)|0;l=l+Math.imul(ka,Ma)|0;l=l+Math.imul(va,Ea)|0;B=B+Math.imul(va,Ma)|0;P=P+Math.imul(Z,Pa)|0;l=l+Math.imul(Z,Sa)|0;l=l+Math.imul(ma,Pa)|0;B=B+Math.imul(ma,Sa)|0;P=P+Math.imul(L,Ha)|0;l=l+Math.imul(L,O)|0;l=l+Math.imul(ca,Ha)|0;B=B+Math.imul(ca,O)|0;P=P+Math.imul(Y,Oa)|0;l=l+Math.imul(Y,E)|0;l=l+Math.imul(R,Oa)|0;B=B+Math.imul(R, E)|0;P=P+Math.imul(aa,K)|0;l=l+Math.imul(aa,U)|0;l=l+Math.imul(ea,K)|0;B=B+Math.imul(ea,U)|0;P=P+Math.imul(S,F)|0;l=l+Math.imul(S,W)|0;l=l+Math.imul(ba,F)|0;B=B+Math.imul(ba,W)|0;S=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(S>>>26)|0;S&=67108863;P=Math.imul(t,fa);l=Math.imul(t,wa);l=l+Math.imul(Ba,fa)|0;B=Math.imul(Ba,wa);P=P+Math.imul(sa,Ea)|0;l=l+Math.imul(sa,Ma)|0;l=l+Math.imul(oa,Ea)|0;B=B+Math.imul(oa,Ma)|0;P=P+Math.imul(ka,Pa)|0;l=l+Math.imul(ka,Sa)|0;l=l+Math.imul(va,Pa)|0;B=B+Math.imul(va, Sa)|0;P=P+Math.imul(Z,Ha)|0;l=l+Math.imul(Z,O)|0;l=l+Math.imul(ma,Ha)|0;B=B+Math.imul(ma,O)|0;P=P+Math.imul(L,Oa)|0;l=l+Math.imul(L,E)|0;l=l+Math.imul(ca,Oa)|0;B=B+Math.imul(ca,E)|0;P=P+Math.imul(Y,K)|0;l=l+Math.imul(Y,U)|0;l=l+Math.imul(R,K)|0;B=B+Math.imul(R,U)|0;P=P+Math.imul(aa,F)|0;l=l+Math.imul(aa,W)|0;l=l+Math.imul(ea,F)|0;B=B+Math.imul(ea,W)|0;aa=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(aa>>>26)|0;aa&=67108863;P=Math.imul(t,Ea);l=Math.imul(t,Ma);l=l+Math.imul(Ba,Ea)|0;B=Math.imul(Ba,Ma); P=P+Math.imul(sa,Pa)|0;l=l+Math.imul(sa,Sa)|0;l=l+Math.imul(oa,Pa)|0;B=B+Math.imul(oa,Sa)|0;P=P+Math.imul(ka,Ha)|0;l=l+Math.imul(ka,O)|0;l=l+Math.imul(va,Ha)|0;B=B+Math.imul(va,O)|0;P=P+Math.imul(Z,Oa)|0;l=l+Math.imul(Z,E)|0;l=l+Math.imul(ma,Oa)|0;B=B+Math.imul(ma,E)|0;P=P+Math.imul(L,K)|0;l=l+Math.imul(L,U)|0;l=l+Math.imul(ca,K)|0;B=B+Math.imul(ca,U)|0;P=P+Math.imul(Y,F)|0;l=l+Math.imul(Y,W)|0;l=l+Math.imul(R,F)|0;B=B+Math.imul(R,W)|0;Y=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(Y>>>26)|0;Y&=67108863; P=Math.imul(t,Pa);l=Math.imul(t,Sa);l=l+Math.imul(Ba,Pa)|0;B=Math.imul(Ba,Sa);P=P+Math.imul(sa,Ha)|0;l=l+Math.imul(sa,O)|0;l=l+Math.imul(oa,Ha)|0;B=B+Math.imul(oa,O)|0;P=P+Math.imul(ka,Oa)|0;l=l+Math.imul(ka,E)|0;l=l+Math.imul(va,Oa)|0;B=B+Math.imul(va,E)|0;P=P+Math.imul(Z,K)|0;l=l+Math.imul(Z,U)|0;l=l+Math.imul(ma,K)|0;B=B+Math.imul(ma,U)|0;P=P+Math.imul(L,F)|0;l=l+Math.imul(L,W)|0;l=l+Math.imul(ca,F)|0;B=B+Math.imul(ca,W)|0;L=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(L>>>26)|0;L&=67108863;P=Math.imul(t, Ha);l=Math.imul(t,O);l=l+Math.imul(Ba,Ha)|0;B=Math.imul(Ba,O);P=P+Math.imul(sa,Oa)|0;l=l+Math.imul(sa,E)|0;l=l+Math.imul(oa,Oa)|0;B=B+Math.imul(oa,E)|0;P=P+Math.imul(ka,K)|0;l=l+Math.imul(ka,U)|0;l=l+Math.imul(va,K)|0;B=B+Math.imul(va,U)|0;P=P+Math.imul(Z,F)|0;l=l+Math.imul(Z,W)|0;l=l+Math.imul(ma,F)|0;B=B+Math.imul(ma,W)|0;Z=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(Z>>>26)|0;Z&=67108863;P=Math.imul(t,Oa);l=Math.imul(t,E);l=l+Math.imul(Ba,Oa)|0;B=Math.imul(Ba,E);P=P+Math.imul(sa,K)|0;l=l+Math.imul(sa, U)|0;l=l+Math.imul(oa,K)|0;B=B+Math.imul(oa,U)|0;P=P+Math.imul(ka,F)|0;l=l+Math.imul(ka,W)|0;l=l+Math.imul(va,F)|0;B=B+Math.imul(va,W)|0;ka=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(ka>>>26)|0;ka&=67108863;P=Math.imul(t,K);l=Math.imul(t,U);l=l+Math.imul(Ba,K)|0;B=Math.imul(Ba,U);P=P+Math.imul(sa,F)|0;l=l+Math.imul(sa,W)|0;l=l+Math.imul(oa,F)|0;B=B+Math.imul(oa,W)|0;sa=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(sa>>>26)|0;sa&=67108863;P=Math.imul(t,F);l=Math.imul(t,W);l=l+Math.imul(Ba,F)|0;B=Math.imul(Ba, W);I=(v+P|0)+((l&8191)<<13)|0;v=(B+(l>>>13)|0)+(I>>>26)|0;J[0]=la;J[1]=V;J[2]=pa;J[3]=ra;J[4]=ya;J[5]=xa;J[6]=Fa;J[7]=Ga;J[8]=La;J[9]=x;J[10]=w;J[11]=S;J[12]=aa;J[13]=Y;J[14]=L;J[15]=Z;J[16]=ka;J[17]=sa;J[18]=I&67108863;0!==v&&(J[19]=v,c.length++);return c};Math.imul||(T=e);a.prototype.mulTo=function(l,B){var c=this.length+l.length;if(10===this.length&&10===l.length)l=T(this,l,B);else if(63>c)l=e(this,l,B);else if(1024>c){B.negative=l.negative^this.negative;B.length=this.length+l.length;for(var t= 0,F=c=0;F>>26)|0;c+=J>>>26;J&=67108863}B.words[F]=t;t=J}0!==t?B.words[F]=t:B.length--;l=B.strip()}else l=(new b).mulp(this,l,B);return l};b.prototype.makeRBT=function(l){for(var B=Array(l),c=a.prototype._countBits(l)-1,t=0;t>=1;return c};b.prototype.permute=function(l,B,c,t,F,J){for(var v=0;v>>=1)c++;return 1<=c))for(var t=0;tc?0:c/67108864|0;return l};b.prototype.convert13b=function(l, B,c,t){for(var F=0,J=0;J>>=13,c[2*J+1]=F&8191,F>>>=13;for(J=2*B;Jl);for(var B=0,c=0;c>=26;B+=t/67108864|0;B+=F>>>26;this.words[c]=F&67108863}0!==B&&(this.words[c]=B,this.length++);return this};a.prototype.muln=function(l){return this.clone().imuln(l)};a.prototype.sqr=function(){return this.mul(this)};a.prototype.isqr=function(){return this.imul(this.clone())};a.prototype.pow= function(l){for(var B=Array(l.bitLength()),c=0;c>>t}if(0===B.length)return new a(1);l=this;for(c=0;c>>26-B<<26-B,t;if(0!==B){var F=0;for(t=0;t>> 26-B}F&&(this.words[t]=F,this.length++)}if(0!==l){for(t=this.length-1;0<=t;t--)this.words[t+l]=this.words[t];for(t=0;t>>t< F)for(this.length-=F,J=0;J=B);J--){var v=this.words[J]|0;this.words[J]=F<<26-t|v>>>t;F=v&l}c&&0!==F&&(c.words[c.length++]=F);0===this.length&&(this.words[0]=0,this.length=1);return this.strip()};a.prototype.ishrn=function(l,B,c){q(0===this.negative);return this.iushrn(l,B,c)};a.prototype.shln=function(l){return this.clone().ishln(l)};a.prototype.ushln=function(l){return this.clone().iushln(l)}; a.prototype.shrn=function(l){return this.clone().ishrn(l)};a.prototype.ushrn=function(l){return this.clone().iushrn(l)};a.prototype.testn=function(l){q("number"===typeof l&&0<=l);var B=l%26;l=(l-B)/26;return this.length<=l?!1:!!(this.words[l]&1<>>B<l);if(0>l)return this.isubn(-l);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)l);if(0>l)return this.iaddn(-l);if(0!==this.negative)return this.negative=0,this.iaddn(l),this.negative=1,this;this.words[0]-=l;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(l=0;lthis.words[l];l++)this.words[l]+=67108864,--this.words[l+1];return this.strip()};a.prototype.addn= function(l){return this.clone().iaddn(l)};a.prototype.subn=function(l){return this.clone().isubn(l)};a.prototype.iabs=function(){this.negative=0;return this};a.prototype.abs=function(){return this.clone().iabs()};a.prototype._ishlnsubmul=function(l,B,c){var t;this._expand(l.length+c);var F=0;for(t=0;t>26)-(F/67108864|0);this.words[t+c]=J&67108863}for(;t>26,this.words[t+c]= J&67108863;if(0===F)return this.strip();q(-1===F);for(t=F=0;t>26,this.words[t]=J&67108863;this.negative=1;return this.strip()};a.prototype._wordDiv=function(l,B){var c=this.clone(),t=l,F=t.words[t.length-1]|0;l=26-this._countBits(F);0!==l&&(t=t.ushln(l),c.iushln(l),F=t.words[t.length-1]|0);var J=c.length-t.length;if("mod"!==B){var v=new a(null);v.length=J+1;v.words=Array(v.length);for(var w=0;wthis.length||0>this.cmp(l)?{div:new a(0),mod:this}:1===l.length?"div"===B?{div:this.divn(l.words[0]),mod:null}:"mod"===B?{div:null, mod:new a(this.modn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new a(this.modn(l.words[0]))}:this._wordDiv(l,B)};a.prototype.div=function(l){return this.divmod(l,"div",!1).div};a.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod};a.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod};a.prototype.divRound=function(l){var B=this.divmod(l);if(B.mod.isZero())return B.div;var c=0!==B.div.negative?B.mod.isub(l):B.mod,t=l.ushrn(1);l=l.andln(1);c=c.cmp(t);return 0>c||1===l&&0===c?B.div: 0!==B.div.negative?B.div.isubn(1):B.div.iaddn(1)};a.prototype.modn=function(l){q(67108863>=l);for(var B=67108864%l,c=0,t=this.length-1;0<=t;t--)c=(B*c+(this.words[t]|0))%l;return c};a.prototype.idivn=function(l){q(67108863>=l);for(var B=0,c=this.length-1;0<=c;c--)B=(this.words[c]|0)+67108864*B,this.words[c]=B/l|0,B%=l;return this.strip()};a.prototype.divn=function(l){return this.clone().idivn(l)};a.prototype.egcd=function(l){q(0===l.negative);q(!l.isZero());var B=this,c=l.clone();B=0!==B.negative? B.umod(l):B.clone();l=new a(1);for(var t=new a(0),F=new a(0),J=new a(1),v=0;B.isEven()&&c.isEven();)B.iushrn(1),c.iushrn(1),++v;for(var w=c.clone(),x=B.clone();!B.isZero();){for(var I=0,S=1;0===(B.words[0]&S)&&26>I;++I,S<<=1);if(0I;++I,S<<=1);if(0v;++v,w<<=1);if(0v;++v,w<<=1);if(0B.cmpn(0)&&B.iadd(l);return B};a.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var B=this.clone();l=l.clone();B.negative=0;for(var c=l.negative=0;B.isEven()&&l.isEven();c++)B.iushrn(1),l.iushrn(1);do{for(;B.isEven();)B.iushrn(1);for(;l.isEven();)l.iushrn(1);var t=B.cmp(l);if(0>t)t=B,B=l,l=t;else if(0===t||0===l.cmpn(1))break;B.isub(l)}while(1);return l.iushln(c)};a.prototype.invm=function(l){return this.egcd(l).a.umod(l)}; a.prototype.isEven=function(){return 0===(this.words[0]&1)};a.prototype.isOdd=function(){return 1===(this.words[0]&1)};a.prototype.andln=function(l){return this.words[0]&l};a.prototype.bincn=function(l){q("number"===typeof l);var B=l%26;l=(l-B)/26;B=1<>>26;c&=67108863;this.words[l]=c}0!==B&&(this.words[l]=B,this.length++);return this};a.prototype.isZero=function(){return 1=== this.length&&0===this.words[0]};a.prototype.cmpn=function(l){var B=0>l;if(0!==this.negative&&!B)return-1;if(0===this.negative&&B)return 1;this.strip();1=l,"Number is too big"),B=this.words[0]|0,l=B===l?0:Bl.length)return 1; if(this.lengthF&&(B=1);break}}return B};a.prototype.gtn=function(l){return 1===this.cmpn(l)};a.prototype.gt=function(l){return 1===this.cmp(l)};a.prototype.gten=function(l){return 0<=this.cmpn(l)};a.prototype.gte=function(l){return 0<=this.cmp(l)};a.prototype.ltn=function(l){return-1===this.cmpn(l)};a.prototype.lt=function(l){return-1===this.cmp(l)};a.prototype.lten=function(l){return 0>= this.cmpn(l)};a.prototype.lte=function(l){return 0>=this.cmp(l)};a.prototype.eqn=function(l){return 0===this.cmpn(l)};a.prototype.eq=function(l){return 0===this.cmp(l)};a.red=function(l){return new D(l)};a.prototype.toRed=function(l){q(!this.red,"Already a number in reduction context");q(0===this.negative,"red works only with positives");return l.convertTo(this)._forceRed(l)};a.prototype.fromRed=function(){q(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)}; a.prototype._forceRed=function(l){this.red=l;return this};a.prototype.forceRed=function(l){q(!this.red,"Already a number in reduction context");return this._forceRed(l)};a.prototype.redAdd=function(l){q(this.red,"redAdd works only with red numbers");return this.red.add(this,l)};a.prototype.redIAdd=function(l){q(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,l)};a.prototype.redSub=function(l){q(this.red,"redSub works only with red numbers");return this.red.sub(this,l)};a.prototype.redISub= function(l){q(this.red,"redISub works only with red numbers");return this.red.isub(this,l)};a.prototype.redShl=function(l){q(this.red,"redShl works only with red numbers");return this.red.shl(this,l)};a.prototype.redMul=function(l){q(this.red,"redMul works only with red numbers");this.red._verify2(this,l);return this.red.mul(this,l)};a.prototype.redIMul=function(l){q(this.red,"redMul works only with red numbers");this.red._verify2(this,l);return this.red.imul(this,l)};a.prototype.redSqr=function(){q(this.red, "redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};a.prototype.redISqr=function(){q(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};a.prototype.redSqrt=function(){q(this.red,"redSqrt works only with red numbers");this.red._verify1(this);return this.red.sqrt(this)};a.prototype.redInvm=function(){q(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};a.prototype.redNeg= function(){q(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};a.prototype.redPow=function(l){q(this.red&&!l.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,l)};var Q={k256:null,p224:null,p192:null,p25519:null};d.prototype._tmp=function(){var l=new a(null);l.words=Array(Math.ceil(this.n/13));return l};d.prototype.ireduce=function(l){do{this.split(l,this.tmp);l=this.imulK(l);l=l.iadd(this.tmp);var B=l.bitLength()}while(B>this.n); B=B=l.length)l.words[0]=0,l.length=1;else{c=l.words[9];B.words[B.length++]=c&4194303;for(t=10;t>>22,c=B;c>>>=22;l.words[t-10]=c;l.length=0===c&&10>>=26;l.words[c]= t}0!==B&&(l.words[l.length++]=B);return l};a._prime=function(l){if(Q[l])return Q[l];if("k256"===l)var B=new f;else if("p224"===l)B=new p;else if("p192"===l)B=new u;else if("p25519"===l)B=new y;else throw Error("Unknown prime "+l);return Q[l]=B};D.prototype._verify1=function(l){q(0===l.negative,"red works only with positives");q(l.red,"red works only with red numbers")};D.prototype._verify2=function(l,B){q(0===(l.negative|B.negative),"red works only with positives");q(l.red&&l.red===B.red,"red works only with red numbers")}; D.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):l.umod(this.m)._forceRed(this)};D.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)};D.prototype.add=function(l,B){this._verify2(l,B);l=l.add(B);0<=l.cmp(this.m)&&l.isub(this.m);return l._forceRed(this)};D.prototype.iadd=function(l,B){this._verify2(l,B);l=l.iadd(B);0<=l.cmp(this.m)&&l.isub(this.m);return l};D.prototype.sub=function(l,B){this._verify2(l,B);l=l.sub(B);0>l.cmpn(0)&& l.iadd(this.m);return l._forceRed(this)};D.prototype.isub=function(l,B){this._verify2(l,B);l=l.isub(B);0>l.cmpn(0)&&l.iadd(this.m);return l};D.prototype.shl=function(l,B){this._verify1(l);return this.imod(l.ushln(B))};D.prototype.imul=function(l,B){this._verify2(l,B);return this.imod(l.imul(B))};D.prototype.mul=function(l,B){this._verify2(l,B);return this.imod(l.mul(B))};D.prototype.isqr=function(l){return this.imul(l,l.clone())};D.prototype.sqr=function(l){return this.mul(l,l)};D.prototype.sqrt= function(l){if(l.isZero())return l.clone();var B=this.m.andln(3);q(1===B%2);if(3===B)return B=this.m.add(new a(1)).iushrn(2),this.pow(l,B);for(var c=this.m.subn(1),t=0;!c.isZero()&&0===c.andln(1);)t++,c.iushrn(1);q(!c.isZero());B=(new a(1)).toRed(this);var F=B.redNeg(),J=this.m.subn(1).iushrn(1),v=this.m.bitLength();for(v=(new a(2*v*v)).toRed(this);0!==this.pow(v,J).cmp(F);)v.redIAdd(F);J=this.pow(v,c);F=this.pow(l,c.addn(1).iushrn(1));l=this.pow(l,c);for(c=t;0!==l.cmp(B);){v=l;for(t=0;0!==v.cmp(B);t++)v= v.redSqr();q(t>v&1;l!==c[0]&&(l=this.sqr(l));if(0===x&&0===F)J=0;else if(F<<=1,F|=x,J++,4===J||0===t&&0===v)l=this.mul(l,c[F]),F=J=0}v=26}return l};D.prototype.convertTo=function(l){var B=l.umod(this.m);return B===l?B.clone():B};D.prototype.convertFrom=function(l){l=l.clone();l.red=null;return l};a.mont=function(l){return new z(l)};k(z,D);z.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))};z.prototype.convertFrom=function(l){l=this.imod(l.mul(this.rinv)); l.red=null;return l};z.prototype.imul=function(l,B){if(l.isZero()||B.isZero())return l.words[0]=0,l.length=1,l;l=l.imul(B);B=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);B=l=l.isub(B).iushrn(this.shift);0<=l.cmp(this.m)?B=l.isub(this.m):0>l.cmpn(0)&&(B=l.iadd(this.m));return B._forceRed(this)};z.prototype.mul=function(l,B){if(l.isZero()||B.isZero())return(new a(0))._forceRed(this);l=l.mul(B);B=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);B=l=l.isub(B).iushrn(this.shift); 0<=l.cmp(this.m)?B=l.isub(this.m):0>l.cmpn(0)&&(B=l.iadd(this.m));return B._forceRed(this)};z.prototype.invm=function(l){return this.imod(l._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof H||H,this)},{buffer:44}],36:[function(r,H,A){(function(h){function n(c,t){if(c===t)return 0;for(var F=c.length,J=t.length,v=0,w=Math.min(F,J);vx)return C(w)?v.stylize(RegExp.prototype.toString.call(w),"regexp"):v.stylize("[Object]","special");v.seen.push(w);S=aa?d(v,w,x,X,S):S.map(function(Y){return f(v,w,x,X,Y,aa)});v.seen.pop();return p(S,I,ba)}function e(v,w){if(G(w))return v.stylize("undefined","undefined");if(z(w))return w= "'"+JSON.stringify(w).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",v.stylize(w,"string");if(D(w))return v.stylize(""+w,"number");if(y(w))return v.stylize(""+w,"boolean");if(null===w)return v.stylize("null","null")}function b(v){return"["+Error.prototype.toString.call(v)+"]"}function d(v,w,x,I,S){for(var X=[],aa=0,ba=w.length;aav.seen.indexOf(w.value)?(ba=null===x?m(v,w.value,null):m(v,w.value,x-1),-1v?"0"+v.toString(10):v.toString(10)}function B(){var v=new Date,w=[l(v.getHours()),l(v.getMinutes()),l(v.getSeconds())].join(":");return[v.getDate(),J[v.getMonth()],w].join(" ")}var c=/%[sdj%]/g;A.format=function(v){if(!z(v)){for(var w=[],x=0;x=S)return aa;switch(aa){case "%s":return String(I[x++]);case "%d":return Number(I[x++]);case "%j":try{return JSON.stringify(I[x++])}catch(ba){return"[Circular]"}default:return aa}});for(var X=I[x];x>18&63]+q[m>>12&63]+q[m>>6&63]+q[m&63]);return b.join("")}A.byteLength=function(g){g=h(g);var m=g[1];return 3*(g[0]+m)/4-m};A.toByteArray= function(g){var m=h(g);var e=m[0];m=m[1];var b=new a(3*(e+m)/4-m),d=0,f=0>16&255,b[d++]=e>>8&255,b[d++]=e&255;2===m&&(e=k[g.charCodeAt(p)]<<2|k[g.charCodeAt(p+1)]>>4,b[d++]=e&255);1===m&&(e=k[g.charCodeAt(p)]<<10|k[g.charCodeAt(p+1)]<<4|k[g.charCodeAt(p+2)]>>2,b[d++]=e>>8&255,b[d++]=e&255);return b};A.fromByteArray=function(g){for(var m=g.length,e=m%3,b=[],d=0,f=m-e;d< f;d+=16383)b.push(n(g,d,d+16383>f?f:d+16383));1===e?(g=g[m-1],b.push(q[g>>2]+q[g<<4&63]+"==")):2===e&&(g=(g[m-2]<<8)+g[m-1],b.push(q[g>>10]+q[g>>4&63]+q[g<<2&63]+"="));return b.join("")};var q=[],k=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array;for(r=0;64>r;++r)q[r]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[r],k["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(r)]=r;k[45]=62;k[95]=63},{}],41:[function(r,H,A){function h(k){if(!(this instanceof h))return new h(k);this._bufs=[];this.length=0;if("function"==typeof k){this._callback=k;var a=function(g){this._callback&&(this._callback(g),this._callback=null)}.bind(this);this.on("pipe",function(g){g.on("error",a)});this.on("unpipe",function(g){g.removeListener("error",a)})}else this.append(k);n.call(this)}var n=r("readable-stream").Duplex;A=r("util");var q=r("safe-buffer").Buffer;A.inherits(h,n);h.prototype._offset=function(k){var a=0,g=0;if(0===k)return[0,0];for(;gthis.length||0>k))return k=this._offset(k),this._bufs[k[0]][k[1]]}; h.prototype.slice=function(k,a){"number"==typeof k&&0>k&&(k+=this.length);"number"==typeof a&&0>a&&(a+=this.length);return this.copy(null,0,k,a)};h.prototype.copy=function(k,a,g,m){if("number"!=typeof g||0>g)g=0;if("number"!=typeof m||m>this.length)m=this.length;if(g>=this.length||0>=m)return k||q.alloc(0);var e=!!k,b=this._offset(g),d=m-g,f=d,p=e&&a||0,u=b[1];if(0===g&&m==this.length){if(!e)return 1===this._bufs.length?this._bufs[0]:q.concat(this._bufs,this.length);for(g=0;ga)this._bufs[g].copy(k,p,u),p+=a;else{this._bufs[g].copy(k,p,u,u+f);p+=a;break}f-=a;u&&(u=0)}return k.length>p?k.slice(0,p):k};h.prototype.shallowSlice=function(k,a){k=k||0;a="number"!==typeof a?this.length:a;0>k&&(k+=this.length);0>a&&(a+=this.length);if(k===a)return new h; k=this._offset(k);a=this._offset(a);var g=this._bufs.slice(k[0],a[0]+1);0==a[1]?g.pop():g[g.length-1]=g[g.length-1].slice(0,a[1]);0!=k[1]&&(g[0]=g[0].slice(k[1]));return new h(g)};h.prototype.toString=function(k,a,g){return this.slice(a,g).toString(k)};h.prototype.consume=function(k){k=Math.trunc(k);if(Number.isNaN(k)||0>=k)return this;for(;this._bufs.length;)if(k>=this._bufs[0].length)k-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(k); this.length-=k;break}return this};h.prototype.duplicate=function(){for(var k=0,a=new h;ka&&(a=this.length+a);0>a&&(a=0);if(0===k.length)return a>this.length?this.length:a;g=this._offset(a);a=g[0];var m=g[1];for(a;a=k.length){m=g.indexOf(k,m);if(-1!==m)return this._reverseOffset([a,m]);m=g.length-k.length+1}else{var e=this._reverseOffset([a,m]);if(this._match(e,k))return e;m++}m=0}return-1};h.prototype._match= function(k,a){if(this.length-k=w?w-49+10:17<=w&&22>=w?w-17+10:w;J|=w;v|=w}q(!(v&240),"Invalid character in "+c);return J}function m(c,t,F,J){var v=0;F=Math.min(c.length,F);for(var w=t;w"}function d(c, t,F){F.negative=t.negative^c.negative;var J=c.length+t.length|0;F.length=J;J=J-1|0;var v=c.words[0]|0,w=t.words[0]|0;v*=w;var x=v/67108864|0;F.words[0]=v&67108863;for(var I=1;I>>26,X=x&67108863;x=Math.min(I,t.length-1);for(var aa=Math.max(0,I-c.length+1);aa<=x;aa++)v=c.words[I-aa|0]|0,w=t.words[aa]|0,v=v*w+X,S+=v/67108864|0,X=v&67108863;F.words[I]=X|0;x=S|0}0!==x?F.words[I]=x|0:F.length--;return F._strip()}function f(c,t,F){F.negative=t.negative^c.negative;F.length=c.length+t.length; for(var J=0,v=0,w=0;w>>26)|0;v+=x>>>26;x&=67108863}F.words[w]=J;J=x}0!==J?F.words[w]=J:F.length--;return F._strip()}function p(c,t){this.name=c;this.p=new a(t,16);this.n=this.p.bitLength();this.k=(new a(1)).iushln(this.n).isub(this.p);this.tmp=this._tmp()}function u(){p.call(this,"k256", "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){p.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function D(){p.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function z(){p.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function G(c){"string"===typeof c?(c=a._prime(c),this.m=c.p,this.prime=c):(q(c.gtn(1),"modulus must be greater than 1"),this.m=c,this.prime= null)}function C(c){G.call(this,c);this.shift=this.m.bitLength();0!==this.shift%26&&(this.shift+=26-this.shift%26);this.r=(new a(1)).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv)}"object"===typeof h?h.exports=a:n.BN=a;a.BN=a;a.wordSize=26;try{var N=r("buffer").Buffer}catch(c){}a.isBN=function(c){return c instanceof a?!0:null!==c&&"object"===typeof c&& c.constructor.wordSize===a.wordSize&&Array.isArray(c.words)};a.max=function(c,t){return 0c.cmp(t)?c:t};a.prototype._init=function(c,t,F){if("number"===typeof c)return this._initNumber(c,t,F);if("object"===typeof c)return this._initArray(c,t,F);"hex"===t&&(t=16);q(t===(t|0)&&2<=t&&36>=t);c=c.toString().replace(/\s+/g,"");var J=0;"-"===c[0]&&J++;16===t?this._parseHex(c,J):this._parseBase(c,t,J);"-"===c[0]&&(this.negative=1);this._strip();"le"===F&&this._initArray(this.toArray(), t,F)};a.prototype._initNumber=function(c,t,F){0>c&&(this.negative=1,c=-c);67108864>c?(this.words=[c&67108863],this.length=1):4503599627370496>c?(this.words=[c&67108863,c/67108864&67108863],this.length=2):(q(9007199254740992>c),this.words=[c&67108863,c/67108864&67108863,1],this.length=3);"le"===F&&this._initArray(this.toArray(),t,F)};a.prototype._initArray=function(c,t,F){q("number"===typeof c.length);if(0>=c.length)return this.words=[0],this.length=1,this;this.length=Math.ceil(c.length/3);this.words= Array(this.length);for(t=0;t>>26-J&67108863;J+=24;26<=J&&(J-=26,F++)}else if("le"===F)for(F=t=0;t>>26-J&67108863,J+=24,26<=J&&(J-=26,F++);return this._strip()};a.prototype._parseHex=function(c,t){this.length=Math.ceil((c.length-t)/6);this.words=Array(this.length); for(var F=0;F=t;F-=6){var w=g(c,F,F+6);this.words[J]|=w<>>26-v&4194303;v+=24;26<=v&&(v-=26,J++)}F+6!==t&&(w=g(c,t,F+6),this.words[J]|=w<>>26-v&4194303);this._strip()};a.prototype._parseBase=function(c,t,F){this.words=[0];this.length=1;for(var J=0,v=1;67108863>=v;v*=t)J++;J--;v=v/t|0;var w=c.length-F,x=w%J;w=Math.min(w,w-x)+F;for(var I=F;Ithis.words[0]+F?this.words[0]+=F:this._iaddn(F);if(0!==x){J=1;F=m(c,I,c.length,t);for(I=0;Ithis.words[0]+F?this.words[0]+=F:this._iaddn(F)}};a.prototype.copy=function(c){c.words=Array(this.length);for(var t=0;t>>24-c&16777215;F=0!==J||v!==this.length-1?M[6-x.length]+x+F:x+F;c+=2;26<=c&&(c-=26,v--)}for(0!==J&&(F=J.toString(16)+F);0!==F.length%t;)F="0"+F;0!==this.negative&&(F="-"+F);return F}if(c===(c|0)&&2<=c&&36>=c){J=T[c];v=Q[c];F="";w=this.clone();for(w.negative=0;!w.isZero();)x=w.modrn(v).toString(c),w=w.idivn(v),F=w.isZero()?x+F:M[J-x.length]+x+F;for(this.isZero()&&(F="0"+F);0!==F.length%t;)F="0"+F;0!==this.negative&&(F="-"+F);return F}q(!1,"Base should be between 2 and 36")}; a.prototype.toNumber=function(){var c=this.words[0];2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:2>8&255),t>16&255),6===v?(t>24&255),v=F=0):(F>>>=24,v+=2);if(t>8&255),0<=t&&(c[t--]=F>>16&255),6===v?(0<=t&&(c[t--]=F>>24&255),v=F=0):(F>>>=24,v+=2);if(0<=t)for(c[t--]=F;0<=t;)c[t--]=0};a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var t=0;4096<=c&&(t+=13,c>>>=13);64<=c&&(t+=7,c>>>=7);8<=c&&(t+=4,c>>>=4);2<=c&&(t+=2,c>>>=2);return t+c};a.prototype._zeroBits=function(c){if(0=== c)return 26;var t=0;0===(c&8191)&&(t+=13,c>>>=13);0===(c&127)&&(t+=7,c>>>=7);0===(c&15)&&(t+=4,c>>>=4);0===(c&3)&&(t+=2,c>>>=2);0===(c&1)&&t++;return t};a.prototype.bitLength=function(){var c=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+c};a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,t=0;tc.length?this.clone().ior(c):c.clone().ior(this)};a.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)};a.prototype.iuand=function(c){var t=this.length>c.length?c:this;for(var F=0;Fc.length?this.clone().iand(c):c.clone().iand(this)};a.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)};a.prototype.iuxor=function(c){if(this.length>c.length)var t=this;else t=c,c=this;for(var F=0;Fc.length?this.clone().ixor(c):c.clone().ixor(this)};a.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)};a.prototype.inotn=function(c){q("number"===typeof c&&0<=c);var t=Math.ceil(c/26)|0;c%=26;this._expand(t);0>26-c);return this._strip()};a.prototype.notn= function(c){return this.clone().inotn(c)};a.prototype.setn=function(c,t){q("number"===typeof c&&0<=c);var F=c/26|0;c%=26;this._expand(F+1);this.words[F]=t?this.words[F]|1<c.length)var F=this;else F=c, c=this;for(var J=t=0;J>>=26;for(;0!==t&&J>>=26;this.length=F.length;if(0!==t)this.words[this.length]=t,this.length++;else if(F!==this)for(;Jc.length?this.clone().iadd(c):c.clone().iadd(this)};a.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var t=this.iadd(c);c.negative=1;return t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();t=this.cmp(c);if(0===t)return this.negative=0,this.length=1,this.words[0]=0,this;if(0>26,this.words[v]= t&67108863;for(;0!==J&&v>26,this.words[v]=t&67108863;if(0===J&&v>>13,aa=J[1]|0;I=aa&8191;var ba=aa>>>13,Y=J[2]|0;aa=Y&8191;var ea=Y>>>13,L=J[3]|0;Y=L&8191;var R=L>>>13,Z=J[4]| 0;L=Z&8191;var ca=Z>>>13,ka=J[5]|0;Z=ka&8191;var ma=ka>>>13,sa=J[6]|0;ka=sa&8191;var va=sa>>>13,oa=J[7]|0;sa=oa&8191;var Ba=oa>>>13,Aa=J[8]|0;oa=Aa&8191;Aa>>>=13;var ja=J[9]|0;J=ja&8191;ja>>>=13;var da=v[0]|0,ha=da&8191,ia=da>>>13,fa=v[1]|0;da=fa&8191;var za=fa>>>13,Ea=v[2]|0;fa=Ea&8191;var wa=Ea>>>13,Pa=v[3]|0;Ea=Pa&8191;var Ma=Pa>>>13,Ha=v[4]|0;Pa=Ha&8191;var Sa=Ha>>>13,Oa=v[5]|0;Ha=Oa&8191;var O=Oa>>>13,K=v[6]|0;Oa=K&8191;var E=K>>>13,U=v[7]|0;K=U&8191;var W=U>>>13,P=v[8]|0;U=P&8191;P>>>=13;var la= v[9]|0;v=la&8191;la>>>=13;F.negative=c.negative^t.negative;F.length=19;var V=Math.imul(S,ha);c=Math.imul(S,ia);c=c+Math.imul(X,ha)|0;t=Math.imul(X,ia);var pa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(pa>>>26)|0;pa&=67108863;V=Math.imul(I,ha);c=Math.imul(I,ia);c=c+Math.imul(ba,ha)|0;t=Math.imul(ba,ia);V=V+Math.imul(S,da)|0;c=c+Math.imul(S,za)|0;c=c+Math.imul(X,da)|0;t=t+Math.imul(X,za)|0;var ra=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(ra>>>26)|0;ra&=67108863;V=Math.imul(aa,ha);c=Math.imul(aa,ia); c=c+Math.imul(ea,ha)|0;t=Math.imul(ea,ia);V=V+Math.imul(I,da)|0;c=c+Math.imul(I,za)|0;c=c+Math.imul(ba,da)|0;t=t+Math.imul(ba,za)|0;V=V+Math.imul(S,fa)|0;c=c+Math.imul(S,wa)|0;c=c+Math.imul(X,fa)|0;t=t+Math.imul(X,wa)|0;var ya=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(ya>>>26)|0;ya&=67108863;V=Math.imul(Y,ha);c=Math.imul(Y,ia);c=c+Math.imul(R,ha)|0;t=Math.imul(R,ia);V=V+Math.imul(aa,da)|0;c=c+Math.imul(aa,za)|0;c=c+Math.imul(ea,da)|0;t=t+Math.imul(ea,za)|0;V=V+Math.imul(I,fa)|0;c=c+Math.imul(I,wa)| 0;c=c+Math.imul(ba,fa)|0;t=t+Math.imul(ba,wa)|0;V=V+Math.imul(S,Ea)|0;c=c+Math.imul(S,Ma)|0;c=c+Math.imul(X,Ea)|0;t=t+Math.imul(X,Ma)|0;var xa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(xa>>>26)|0;xa&=67108863;V=Math.imul(L,ha);c=Math.imul(L,ia);c=c+Math.imul(ca,ha)|0;t=Math.imul(ca,ia);V=V+Math.imul(Y,da)|0;c=c+Math.imul(Y,za)|0;c=c+Math.imul(R,da)|0;t=t+Math.imul(R,za)|0;V=V+Math.imul(aa,fa)|0;c=c+Math.imul(aa,wa)|0;c=c+Math.imul(ea,fa)|0;t=t+Math.imul(ea,wa)|0;V=V+Math.imul(I,Ea)|0;c=c+Math.imul(I, Ma)|0;c=c+Math.imul(ba,Ea)|0;t=t+Math.imul(ba,Ma)|0;V=V+Math.imul(S,Pa)|0;c=c+Math.imul(S,Sa)|0;c=c+Math.imul(X,Pa)|0;t=t+Math.imul(X,Sa)|0;var Fa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(Fa>>>26)|0;Fa&=67108863;V=Math.imul(Z,ha);c=Math.imul(Z,ia);c=c+Math.imul(ma,ha)|0;t=Math.imul(ma,ia);V=V+Math.imul(L,da)|0;c=c+Math.imul(L,za)|0;c=c+Math.imul(ca,da)|0;t=t+Math.imul(ca,za)|0;V=V+Math.imul(Y,fa)|0;c=c+Math.imul(Y,wa)|0;c=c+Math.imul(R,fa)|0;t=t+Math.imul(R,wa)|0;V=V+Math.imul(aa,Ea)|0;c=c+Math.imul(aa, Ma)|0;c=c+Math.imul(ea,Ea)|0;t=t+Math.imul(ea,Ma)|0;V=V+Math.imul(I,Pa)|0;c=c+Math.imul(I,Sa)|0;c=c+Math.imul(ba,Pa)|0;t=t+Math.imul(ba,Sa)|0;V=V+Math.imul(S,Ha)|0;c=c+Math.imul(S,O)|0;c=c+Math.imul(X,Ha)|0;t=t+Math.imul(X,O)|0;var Ga=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(Ga>>>26)|0;Ga&=67108863;V=Math.imul(ka,ha);c=Math.imul(ka,ia);c=c+Math.imul(va,ha)|0;t=Math.imul(va,ia);V=V+Math.imul(Z,da)|0;c=c+Math.imul(Z,za)|0;c=c+Math.imul(ma,da)|0;t=t+Math.imul(ma,za)|0;V=V+Math.imul(L,fa)|0;c=c+Math.imul(L, wa)|0;c=c+Math.imul(ca,fa)|0;t=t+Math.imul(ca,wa)|0;V=V+Math.imul(Y,Ea)|0;c=c+Math.imul(Y,Ma)|0;c=c+Math.imul(R,Ea)|0;t=t+Math.imul(R,Ma)|0;V=V+Math.imul(aa,Pa)|0;c=c+Math.imul(aa,Sa)|0;c=c+Math.imul(ea,Pa)|0;t=t+Math.imul(ea,Sa)|0;V=V+Math.imul(I,Ha)|0;c=c+Math.imul(I,O)|0;c=c+Math.imul(ba,Ha)|0;t=t+Math.imul(ba,O)|0;V=V+Math.imul(S,Oa)|0;c=c+Math.imul(S,E)|0;c=c+Math.imul(X,Oa)|0;t=t+Math.imul(X,E)|0;var La=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(La>>>26)|0;La&=67108863;V=Math.imul(sa,ha);c= Math.imul(sa,ia);c=c+Math.imul(Ba,ha)|0;t=Math.imul(Ba,ia);V=V+Math.imul(ka,da)|0;c=c+Math.imul(ka,za)|0;c=c+Math.imul(va,da)|0;t=t+Math.imul(va,za)|0;V=V+Math.imul(Z,fa)|0;c=c+Math.imul(Z,wa)|0;c=c+Math.imul(ma,fa)|0;t=t+Math.imul(ma,wa)|0;V=V+Math.imul(L,Ea)|0;c=c+Math.imul(L,Ma)|0;c=c+Math.imul(ca,Ea)|0;t=t+Math.imul(ca,Ma)|0;V=V+Math.imul(Y,Pa)|0;c=c+Math.imul(Y,Sa)|0;c=c+Math.imul(R,Pa)|0;t=t+Math.imul(R,Sa)|0;V=V+Math.imul(aa,Ha)|0;c=c+Math.imul(aa,O)|0;c=c+Math.imul(ea,Ha)|0;t=t+Math.imul(ea, O)|0;V=V+Math.imul(I,Oa)|0;c=c+Math.imul(I,E)|0;c=c+Math.imul(ba,Oa)|0;t=t+Math.imul(ba,E)|0;V=V+Math.imul(S,K)|0;c=c+Math.imul(S,W)|0;c=c+Math.imul(X,K)|0;t=t+Math.imul(X,W)|0;var Na=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(Na>>>26)|0;Na&=67108863;V=Math.imul(oa,ha);c=Math.imul(oa,ia);c=c+Math.imul(Aa,ha)|0;t=Math.imul(Aa,ia);V=V+Math.imul(sa,da)|0;c=c+Math.imul(sa,za)|0;c=c+Math.imul(Ba,da)|0;t=t+Math.imul(Ba,za)|0;V=V+Math.imul(ka,fa)|0;c=c+Math.imul(ka,wa)|0;c=c+Math.imul(va,fa)|0;t=t+Math.imul(va, wa)|0;V=V+Math.imul(Z,Ea)|0;c=c+Math.imul(Z,Ma)|0;c=c+Math.imul(ma,Ea)|0;t=t+Math.imul(ma,Ma)|0;V=V+Math.imul(L,Pa)|0;c=c+Math.imul(L,Sa)|0;c=c+Math.imul(ca,Pa)|0;t=t+Math.imul(ca,Sa)|0;V=V+Math.imul(Y,Ha)|0;c=c+Math.imul(Y,O)|0;c=c+Math.imul(R,Ha)|0;t=t+Math.imul(R,O)|0;V=V+Math.imul(aa,Oa)|0;c=c+Math.imul(aa,E)|0;c=c+Math.imul(ea,Oa)|0;t=t+Math.imul(ea,E)|0;V=V+Math.imul(I,K)|0;c=c+Math.imul(I,W)|0;c=c+Math.imul(ba,K)|0;t=t+Math.imul(ba,W)|0;V=V+Math.imul(S,U)|0;c=c+Math.imul(S,P)|0;c=c+Math.imul(X, U)|0;t=t+Math.imul(X,P)|0;var Qa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(Qa>>>26)|0;Qa&=67108863;V=Math.imul(J,ha);c=Math.imul(J,ia);c=c+Math.imul(ja,ha)|0;t=Math.imul(ja,ia);V=V+Math.imul(oa,da)|0;c=c+Math.imul(oa,za)|0;c=c+Math.imul(Aa,da)|0;t=t+Math.imul(Aa,za)|0;V=V+Math.imul(sa,fa)|0;c=c+Math.imul(sa,wa)|0;c=c+Math.imul(Ba,fa)|0;t=t+Math.imul(Ba,wa)|0;V=V+Math.imul(ka,Ea)|0;c=c+Math.imul(ka,Ma)|0;c=c+Math.imul(va,Ea)|0;t=t+Math.imul(va,Ma)|0;V=V+Math.imul(Z,Pa)|0;c=c+Math.imul(Z,Sa)|0;c=c+ Math.imul(ma,Pa)|0;t=t+Math.imul(ma,Sa)|0;V=V+Math.imul(L,Ha)|0;c=c+Math.imul(L,O)|0;c=c+Math.imul(ca,Ha)|0;t=t+Math.imul(ca,O)|0;V=V+Math.imul(Y,Oa)|0;c=c+Math.imul(Y,E)|0;c=c+Math.imul(R,Oa)|0;t=t+Math.imul(R,E)|0;V=V+Math.imul(aa,K)|0;c=c+Math.imul(aa,W)|0;c=c+Math.imul(ea,K)|0;t=t+Math.imul(ea,W)|0;V=V+Math.imul(I,U)|0;c=c+Math.imul(I,P)|0;c=c+Math.imul(ba,U)|0;t=t+Math.imul(ba,P)|0;V=V+Math.imul(S,v)|0;c=c+Math.imul(S,la)|0;c=c+Math.imul(X,v)|0;t=t+Math.imul(X,la)|0;S=(x+V|0)+((c&8191)<<13)| 0;x=(t+(c>>>13)|0)+(S>>>26)|0;S&=67108863;V=Math.imul(J,da);c=Math.imul(J,za);c=c+Math.imul(ja,da)|0;t=Math.imul(ja,za);V=V+Math.imul(oa,fa)|0;c=c+Math.imul(oa,wa)|0;c=c+Math.imul(Aa,fa)|0;t=t+Math.imul(Aa,wa)|0;V=V+Math.imul(sa,Ea)|0;c=c+Math.imul(sa,Ma)|0;c=c+Math.imul(Ba,Ea)|0;t=t+Math.imul(Ba,Ma)|0;V=V+Math.imul(ka,Pa)|0;c=c+Math.imul(ka,Sa)|0;c=c+Math.imul(va,Pa)|0;t=t+Math.imul(va,Sa)|0;V=V+Math.imul(Z,Ha)|0;c=c+Math.imul(Z,O)|0;c=c+Math.imul(ma,Ha)|0;t=t+Math.imul(ma,O)|0;V=V+Math.imul(L,Oa)| 0;c=c+Math.imul(L,E)|0;c=c+Math.imul(ca,Oa)|0;t=t+Math.imul(ca,E)|0;V=V+Math.imul(Y,K)|0;c=c+Math.imul(Y,W)|0;c=c+Math.imul(R,K)|0;t=t+Math.imul(R,W)|0;V=V+Math.imul(aa,U)|0;c=c+Math.imul(aa,P)|0;c=c+Math.imul(ea,U)|0;t=t+Math.imul(ea,P)|0;V=V+Math.imul(I,v)|0;c=c+Math.imul(I,la)|0;c=c+Math.imul(ba,v)|0;t=t+Math.imul(ba,la)|0;I=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(I>>>26)|0;I&=67108863;V=Math.imul(J,fa);c=Math.imul(J,wa);c=c+Math.imul(ja,fa)|0;t=Math.imul(ja,wa);V=V+Math.imul(oa,Ea)|0;c=c+Math.imul(oa, Ma)|0;c=c+Math.imul(Aa,Ea)|0;t=t+Math.imul(Aa,Ma)|0;V=V+Math.imul(sa,Pa)|0;c=c+Math.imul(sa,Sa)|0;c=c+Math.imul(Ba,Pa)|0;t=t+Math.imul(Ba,Sa)|0;V=V+Math.imul(ka,Ha)|0;c=c+Math.imul(ka,O)|0;c=c+Math.imul(va,Ha)|0;t=t+Math.imul(va,O)|0;V=V+Math.imul(Z,Oa)|0;c=c+Math.imul(Z,E)|0;c=c+Math.imul(ma,Oa)|0;t=t+Math.imul(ma,E)|0;V=V+Math.imul(L,K)|0;c=c+Math.imul(L,W)|0;c=c+Math.imul(ca,K)|0;t=t+Math.imul(ca,W)|0;V=V+Math.imul(Y,U)|0;c=c+Math.imul(Y,P)|0;c=c+Math.imul(R,U)|0;t=t+Math.imul(R,P)|0;V=V+Math.imul(aa, v)|0;c=c+Math.imul(aa,la)|0;c=c+Math.imul(ea,v)|0;t=t+Math.imul(ea,la)|0;aa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(aa>>>26)|0;aa&=67108863;V=Math.imul(J,Ea);c=Math.imul(J,Ma);c=c+Math.imul(ja,Ea)|0;t=Math.imul(ja,Ma);V=V+Math.imul(oa,Pa)|0;c=c+Math.imul(oa,Sa)|0;c=c+Math.imul(Aa,Pa)|0;t=t+Math.imul(Aa,Sa)|0;V=V+Math.imul(sa,Ha)|0;c=c+Math.imul(sa,O)|0;c=c+Math.imul(Ba,Ha)|0;t=t+Math.imul(Ba,O)|0;V=V+Math.imul(ka,Oa)|0;c=c+Math.imul(ka,E)|0;c=c+Math.imul(va,Oa)|0;t=t+Math.imul(va,E)|0;V=V+Math.imul(Z, K)|0;c=c+Math.imul(Z,W)|0;c=c+Math.imul(ma,K)|0;t=t+Math.imul(ma,W)|0;V=V+Math.imul(L,U)|0;c=c+Math.imul(L,P)|0;c=c+Math.imul(ca,U)|0;t=t+Math.imul(ca,P)|0;V=V+Math.imul(Y,v)|0;c=c+Math.imul(Y,la)|0;c=c+Math.imul(R,v)|0;t=t+Math.imul(R,la)|0;Y=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(Y>>>26)|0;Y&=67108863;V=Math.imul(J,Pa);c=Math.imul(J,Sa);c=c+Math.imul(ja,Pa)|0;t=Math.imul(ja,Sa);V=V+Math.imul(oa,Ha)|0;c=c+Math.imul(oa,O)|0;c=c+Math.imul(Aa,Ha)|0;t=t+Math.imul(Aa,O)|0;V=V+Math.imul(sa,Oa)|0;c= c+Math.imul(sa,E)|0;c=c+Math.imul(Ba,Oa)|0;t=t+Math.imul(Ba,E)|0;V=V+Math.imul(ka,K)|0;c=c+Math.imul(ka,W)|0;c=c+Math.imul(va,K)|0;t=t+Math.imul(va,W)|0;V=V+Math.imul(Z,U)|0;c=c+Math.imul(Z,P)|0;c=c+Math.imul(ma,U)|0;t=t+Math.imul(ma,P)|0;V=V+Math.imul(L,v)|0;c=c+Math.imul(L,la)|0;c=c+Math.imul(ca,v)|0;t=t+Math.imul(ca,la)|0;L=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(L>>>26)|0;L&=67108863;V=Math.imul(J,Ha);c=Math.imul(J,O);c=c+Math.imul(ja,Ha)|0;t=Math.imul(ja,O);V=V+Math.imul(oa,Oa)|0;c=c+Math.imul(oa, E)|0;c=c+Math.imul(Aa,Oa)|0;t=t+Math.imul(Aa,E)|0;V=V+Math.imul(sa,K)|0;c=c+Math.imul(sa,W)|0;c=c+Math.imul(Ba,K)|0;t=t+Math.imul(Ba,W)|0;V=V+Math.imul(ka,U)|0;c=c+Math.imul(ka,P)|0;c=c+Math.imul(va,U)|0;t=t+Math.imul(va,P)|0;V=V+Math.imul(Z,v)|0;c=c+Math.imul(Z,la)|0;c=c+Math.imul(ma,v)|0;t=t+Math.imul(ma,la)|0;Z=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(Z>>>26)|0;Z&=67108863;V=Math.imul(J,Oa);c=Math.imul(J,E);c=c+Math.imul(ja,Oa)|0;t=Math.imul(ja,E);V=V+Math.imul(oa,K)|0;c=c+Math.imul(oa,W)|0; c=c+Math.imul(Aa,K)|0;t=t+Math.imul(Aa,W)|0;V=V+Math.imul(sa,U)|0;c=c+Math.imul(sa,P)|0;c=c+Math.imul(Ba,U)|0;t=t+Math.imul(Ba,P)|0;V=V+Math.imul(ka,v)|0;c=c+Math.imul(ka,la)|0;c=c+Math.imul(va,v)|0;t=t+Math.imul(va,la)|0;ka=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(ka>>>26)|0;ka&=67108863;V=Math.imul(J,K);c=Math.imul(J,W);c=c+Math.imul(ja,K)|0;t=Math.imul(ja,W);V=V+Math.imul(oa,U)|0;c=c+Math.imul(oa,P)|0;c=c+Math.imul(Aa,U)|0;t=t+Math.imul(Aa,P)|0;V=V+Math.imul(sa,v)|0;c=c+Math.imul(sa,la)|0;c= c+Math.imul(Ba,v)|0;t=t+Math.imul(Ba,la)|0;sa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(sa>>>26)|0;sa&=67108863;V=Math.imul(J,U);c=Math.imul(J,P);c=c+Math.imul(ja,U)|0;t=Math.imul(ja,P);V=V+Math.imul(oa,v)|0;c=c+Math.imul(oa,la)|0;c=c+Math.imul(Aa,v)|0;t=t+Math.imul(Aa,la)|0;oa=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(oa>>>26)|0;oa&=67108863;V=Math.imul(J,v);c=Math.imul(J,la);c=c+Math.imul(ja,v)|0;t=Math.imul(ja,la);X=(x+V|0)+((c&8191)<<13)|0;x=(t+(c>>>13)|0)+(X>>>26)|0;w[0]=pa;w[1]=ra;w[2]=ya; w[3]=xa;w[4]=Fa;w[5]=Ga;w[6]=La;w[7]=Na;w[8]=Qa;w[9]=S;w[10]=I;w[11]=aa;w[12]=Y;w[13]=L;w[14]=Z;w[15]=ka;w[16]=sa;w[17]=oa;w[18]=X&67108863;0!==x&&(w[19]=x,F.length++);return F};Math.imul||(l=d);a.prototype.mulTo=function(c,t){var F=this.length+c.length;return 10===this.length&&10===c.length?l(this,c,t):63>F?d(this,c,t):f(this,c,t)};a.prototype.mul=function(c){var t=new a(null);t.words=Array(this.length+c.length);return this.mulTo(c,t)};a.prototype.mulf=function(c){var t=new a(null);t.words=Array(this.length+ c.length);return f(this,c,t)};a.prototype.imul=function(c){return this.clone().mulTo(c,this)};a.prototype.imuln=function(c){var t=0>c;t&&(c=-c);q("number"===typeof c);q(67108864>c);for(var F=0,J=0;J>=26;F+=v/67108864|0;F+=w>>>26;this.words[J]=w&67108863}0!==F&&(this.words[J]=F,this.length++);return t?this.ineg():this};a.prototype.muln=function(c){return this.clone().imuln(c)};a.prototype.sqr=function(){return this.mul(this)}; a.prototype.isqr=function(){return this.imul(this.clone())};a.prototype.pow=function(c){for(var t=Array(c.bitLength()),F=0;F>>F%26&1;if(0===t.length)return new a(1);c=this;for(F=0;F>>26-t<<26-t,J;if(0!==t){var v=0;for(J=0;J>>26-t}v&&(this.words[J]=v,this.length++)}if(0!==c){for(J=this.length-1;0<=J;J--)this.words[J+c]=this.words[J];for(J=0;J>>J<v)for(this.length-=v,w=0;w=t);w--){var x=this.words[w]|0;this.words[w]=v<<26-J|x>>>J;v=x&c}F&&0!==v&&(F.words[F.length++]=v);0===this.length&&(this.words[0]=0,this.length=1);return this._strip()};a.prototype.ishrn=function(c,t,F){q(0===this.negative);return this.iushrn(c,t,F)};a.prototype.shln=function(c){return this.clone().ishln(c)}; a.prototype.ushln=function(c){return this.clone().iushln(c)};a.prototype.shrn=function(c){return this.clone().ishrn(c)};a.prototype.ushrn=function(c){return this.clone().iushrn(c)};a.prototype.testn=function(c){q("number"===typeof c&&0<=c);var t=c%26;c=(c-t)/26;return this.length<=c?!1:!!(this.words[c]&1<>>t<c);if(0>c)return this.isubn(-c);if(0!==this.negative){if(1===this.length&&(this.words[0]|0)<=c)return this.words[0]=c-(this.words[0]|0),this.negative=0,this;this.negative=0;this.isubn(c);this.negative=1;return this}return this._iaddn(c)};a.prototype._iaddn=function(c){this.words[0]+= c;for(c=0;cc);if(0>c)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;this.words[0]-=c;if(1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(c=0;cthis.words[c];c++)this.words[c]+= 67108864,--this.words[c+1];return this._strip()};a.prototype.addn=function(c){return this.clone().iaddn(c)};a.prototype.subn=function(c){return this.clone().isubn(c)};a.prototype.iabs=function(){this.negative=0;return this};a.prototype.abs=function(){return this.clone().iabs()};a.prototype._ishlnsubmul=function(c,t,F){var J;this._expand(c.length+F);var v=0;for(J=0;J>26)-(v/67108864|0);this.words[J+F]=w&67108863}for(;J< this.length-F;J++)w=(this.words[J+F]|0)+v,v=w>>26,this.words[J+F]=w&67108863;if(0===v)return this._strip();q(-1===v);for(J=v=0;J>26,this.words[J]=w&67108863;this.negative=1;return this._strip()};a.prototype._wordDiv=function(c,t){var F=this.clone(),J=c,v=J.words[J.length-1]|0;c=26-this._countBits(v);0!==c&&(J=J.ushln(c),F.iushln(c),v=J.words[J.length-1]|0);var w=F.length-J.length;if("mod"!==t){var x=new a(null);x.length=w+1;x.words=Array(x.length);for(var I= 0;Ithis.length||0>this.cmp(c)?{div:new a(0),mod:this}: 1===c.length?"div"===t?{div:this.divn(c.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new a(this.modrn(c.words[0]))}:this._wordDiv(c,t)};a.prototype.div=function(c){return this.divmod(c,"div",!1).div};a.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod};a.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod};a.prototype.divRound=function(c){var t=this.divmod(c);if(t.mod.isZero())return t.div;var F=0!==t.div.negative?t.mod.isub(c): t.mod,J=c.ushrn(1);c=c.andln(1);F=F.cmp(J);return 0>F||1===c&&0===F?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)};a.prototype.modrn=function(c){var t=0>c;t&&(c=-c);q(67108863>=c);for(var F=67108864%c,J=0,v=this.length-1;0<=v;v--)J=(F*J+(this.words[v]|0))%c;return t?-J:J};a.prototype.modn=function(c){return this.modrn(c)};a.prototype.idivn=function(c){var t=0>c;t&&(c=-c);q(67108863>=c);for(var F=0,J=this.length-1;0<=J;J--)F=(this.words[J]|0)+67108864*F,this.words[J]=F/c|0,F%=c;this._strip(); return t?this.ineg():this};a.prototype.divn=function(c){return this.clone().idivn(c)};a.prototype.egcd=function(c){q(0===c.negative);q(!c.isZero());var t=this,F=c.clone();t=0!==t.negative?t.umod(c):t.clone();c=new a(1);for(var J=new a(0),v=new a(0),w=new a(1),x=0;t.isEven()&&F.isEven();)t.iushrn(1),F.iushrn(1),++x;for(var I=F.clone(),S=t.clone();!t.isZero();){for(var X=0,aa=1;0===(t.words[0]&aa)&&26>X;++X,aa<<=1);if(0X;++X,aa<<=1);if(0 x;++x,I<<=1);if(0x;++x,I<<=1);if(0t.cmpn(0)&&t.iadd(c);return t};a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var t=this.clone();c=c.clone();t.negative=0;for(var F=c.negative=0;t.isEven()&&c.isEven();F++)t.iushrn(1),c.iushrn(1); do{for(;t.isEven();)t.iushrn(1);for(;c.isEven();)c.iushrn(1);var J=t.cmp(c);if(0>J)J=t,t=c,c=J;else if(0===J||0===c.cmpn(1))break;t.isub(c)}while(1);return c.iushln(F)};a.prototype.invm=function(c){return this.egcd(c).a.umod(c)};a.prototype.isEven=function(){return 0===(this.words[0]&1)};a.prototype.isOdd=function(){return 1===(this.words[0]&1)};a.prototype.andln=function(c){return this.words[0]&c};a.prototype.bincn=function(c){q("number"===typeof c);var t=c%26;c=(c-t)/26;t=1<>>26;F&=67108863;this.words[c]=F}0!==t&&(this.words[c]=t,this.length++);return this};a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]};a.prototype.cmpn=function(c){var t=0>c;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this._strip();1=c,"Number is too big"),t=this.words[0]|0,c=t===c?0:tc.length)return 1;if(this.lengthv&&(t=1);break}}return t};a.prototype.gtn=function(c){return 1===this.cmpn(c)};a.prototype.gt=function(c){return 1===this.cmp(c)};a.prototype.gten=function(c){return 0<= this.cmpn(c)};a.prototype.gte=function(c){return 0<=this.cmp(c)};a.prototype.ltn=function(c){return-1===this.cmpn(c)};a.prototype.lt=function(c){return-1===this.cmp(c)};a.prototype.lten=function(c){return 0>=this.cmpn(c)};a.prototype.lte=function(c){return 0>=this.cmp(c)};a.prototype.eqn=function(c){return 0===this.cmpn(c)};a.prototype.eq=function(c){return 0===this.cmp(c)};a.red=function(c){return new G(c)};a.prototype.toRed=function(c){q(!this.red,"Already a number in reduction context");q(0=== this.negative,"red works only with positives");return c.convertTo(this)._forceRed(c)};a.prototype.fromRed=function(){q(this.red,"fromRed works only with numbers in reduction context");return this.red.convertFrom(this)};a.prototype._forceRed=function(c){this.red=c;return this};a.prototype.forceRed=function(c){q(!this.red,"Already a number in reduction context");return this._forceRed(c)};a.prototype.redAdd=function(c){q(this.red,"redAdd works only with red numbers");return this.red.add(this,c)};a.prototype.redIAdd= function(c){q(this.red,"redIAdd works only with red numbers");return this.red.iadd(this,c)};a.prototype.redSub=function(c){q(this.red,"redSub works only with red numbers");return this.red.sub(this,c)};a.prototype.redISub=function(c){q(this.red,"redISub works only with red numbers");return this.red.isub(this,c)};a.prototype.redShl=function(c){q(this.red,"redShl works only with red numbers");return this.red.shl(this,c)};a.prototype.redMul=function(c){q(this.red,"redMul works only with red numbers"); this.red._verify2(this,c);return this.red.mul(this,c)};a.prototype.redIMul=function(c){q(this.red,"redMul works only with red numbers");this.red._verify2(this,c);return this.red.imul(this,c)};a.prototype.redSqr=function(){q(this.red,"redSqr works only with red numbers");this.red._verify1(this);return this.red.sqr(this)};a.prototype.redISqr=function(){q(this.red,"redISqr works only with red numbers");this.red._verify1(this);return this.red.isqr(this)};a.prototype.redSqrt=function(){q(this.red,"redSqrt works only with red numbers"); this.red._verify1(this);return this.red.sqrt(this)};a.prototype.redInvm=function(){q(this.red,"redInvm works only with red numbers");this.red._verify1(this);return this.red.invm(this)};a.prototype.redNeg=function(){q(this.red,"redNeg works only with red numbers");this.red._verify1(this);return this.red.neg(this)};a.prototype.redPow=function(c){q(this.red&&!c.red,"redPow(normalNum)");this.red._verify1(this);return this.red.pow(this,c)};var B={k256:null,p224:null,p192:null,p25519:null};p.prototype._tmp= function(){var c=new a(null);c.words=Array(Math.ceil(this.n/13));return c};p.prototype.ireduce=function(c){do{this.split(c,this.tmp);c=this.imulK(c);c=c.iadd(this.tmp);var t=c.bitLength()}while(t>this.n);t=t=c.length)c.words[0]=0,c.length=1;else{F=c.words[9];t.words[t.length++]=F&4194303;for(J=10;J>>22,F=t;F>>>=22;c.words[J-10]=F;c.length=0===F&&10>>=26;c.words[F]=J}0!==t&&(c.words[c.length++]=t);return c};a._prime=function(c){if(B[c])return B[c];if("k256"===c)var t=new u;else if("p224"===c)t=new y;else if("p192"===c)t=new D;else if("p25519"===c)t=new z;else throw Error("Unknown prime "+c);return B[c]=t};G.prototype._verify1=function(c){q(0===c.negative,"red works only with positives"); q(c.red,"red works only with red numbers")};G.prototype._verify2=function(c,t){q(0===(c.negative|t.negative),"red works only with positives");q(c.red&&c.red===t.red,"red works only with red numbers")};G.prototype.imod=function(c){if(this.prime)return this.prime.ireduce(c)._forceRed(this);e(c,c.umod(this.m)._forceRed(this));return c};G.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)};G.prototype.add=function(c,t){this._verify2(c,t);c=c.add(t);0<=c.cmp(this.m)&&c.isub(this.m); return c._forceRed(this)};G.prototype.iadd=function(c,t){this._verify2(c,t);c=c.iadd(t);0<=c.cmp(this.m)&&c.isub(this.m);return c};G.prototype.sub=function(c,t){this._verify2(c,t);c=c.sub(t);0>c.cmpn(0)&&c.iadd(this.m);return c._forceRed(this)};G.prototype.isub=function(c,t){this._verify2(c,t);c=c.isub(t);0>c.cmpn(0)&&c.iadd(this.m);return c};G.prototype.shl=function(c,t){this._verify1(c);return this.imod(c.ushln(t))};G.prototype.imul=function(c,t){this._verify2(c,t);return this.imod(c.imul(t))}; G.prototype.mul=function(c,t){this._verify2(c,t);return this.imod(c.mul(t))};G.prototype.isqr=function(c){return this.imul(c,c.clone())};G.prototype.sqr=function(c){return this.mul(c,c)};G.prototype.sqrt=function(c){if(c.isZero())return c.clone();var t=this.m.andln(3);q(1===t%2);if(3===t)return t=this.m.add(new a(1)).iushrn(2),this.pow(c,t);for(var F=this.m.subn(1),J=0;!F.isZero()&&0===F.andln(1);)J++,F.iushrn(1);q(!F.isZero());t=(new a(1)).toRed(this);var v=t.redNeg(),w=this.m.subn(1).iushrn(1), x=this.m.bitLength();for(x=(new a(2*x*x)).toRed(this);0!==this.pow(x,w).cmp(v);)x.redIAdd(v);w=this.pow(x,F);v=this.pow(c,F.addn(1).iushrn(1));c=this.pow(c,F);for(F=J;0!==c.cmp(t);){x=c;for(J=0;0!==x.cmp(t);J++)x=x.redSqr();q(J>x&1;c!==F[0]&&(c=this.sqr(c));if(0===S&&0===v)w=0;else if(v<<=1,v|=S,w++,4===w||0===J&&0===x)c=this.mul(c,F[v]),v=w=0}x=26}return c};G.prototype.convertTo=function(c){var t=c.umod(this.m);return t===c?t.clone():t};G.prototype.convertFrom=function(c){c= c.clone();c.red=null;return c};a.mont=function(c){return new C(c)};k(C,G);C.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))};C.prototype.convertFrom=function(c){c=this.imod(c.mul(this.rinv));c.red=null;return c};C.prototype.imul=function(c,t){if(c.isZero()||t.isZero())return c.words[0]=0,c.length=1,c;c=c.imul(t);t=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);t=c=c.isub(t).iushrn(this.shift);0<=c.cmp(this.m)?t=c.isub(this.m):0>c.cmpn(0)&&(t=c.iadd(this.m)); return t._forceRed(this)};C.prototype.mul=function(c,t){if(c.isZero()||t.isZero())return(new a(0))._forceRed(this);c=c.mul(t);t=c.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);t=c=c.isub(t).iushrn(this.shift);0<=c.cmp(this.m)?t=c.isub(this.m):0>c.cmpn(0)&&(t=c.iadd(this.m));return t._forceRed(this)};C.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}})("undefined"===typeof H||H,this)},{buffer:44}],43:[function(r,H,A){function h(k){this.rand= k}var n;H.exports=function(k){n||(n=new h(null));return n.generate(k)};H.exports.Rand=h;h.prototype.generate=function(k){return this._rand(k)};h.prototype._rand=function(k){if(this.rand.getBytes)return this.rand.getBytes(k);k=new Uint8Array(k);for(var a=0;a>>24]^y[G>>>16&255]^D[C>>>8&255]^d[N&255]^b[Q++],M=u[G>>>24]^y[C>>>16&255]^D[N>>>8&255]^d[z&255]^b[Q++],T=u[C>>>24]^y[N>>>16&255]^D[z>>>8&255]^d[G&255]^b[Q++],N=u[N>>>24]^y[z>>>16&255]^D[G>>>8&255]^d[C&255]^b[Q++],z=e,G=M,C=T;e=(f[z>>>24]<<24|f[G>>>16&255]<<16|f[C>>>8&255]<<8|f[N&255])^b[Q++];M=(f[G>>>24]<<24|f[C>>> 16&255]<<16|f[N>>>8&255]<<8|f[z&255])^b[Q++];T=(f[C>>>24]<<24|f[N>>>16&255]<<16|f[z>>>8&255]<<8|f[G&255])^b[Q++];N=(f[N>>>24]<<24|f[z>>>16&255]<<16|f[G>>>8&255]<<8|f[C&255])^b[Q++];return[e>>>0,M>>>0,T>>>0,N>>>0]}function k(e){this._key=h(e);this._reset()}var a=r("safe-buffer").Buffer,g=[0,1,2,4,8,16,32,64,128,27,54],m=function(){for(var e=Array(256),b=0;256>b;b++)e[b]=128>b?b<<1:b<<1^283;b=[];for(var d=[],f=[[],[],[],[]],p=[[],[],[],[]],u=0,y=0,D=0;256>D;++D){var z=y^y<<1^y<<2^y<<3^y<<4;z=z>>>8^ z&255^99;b[u]=z;d[z]=u;var G=e[u],C=e[G],N=e[C],M=257*e[z]^16843008*z;f[0][u]=M<<24|M>>>8;f[1][u]=M<<16|M>>>16;f[2][u]=M<<8|M>>>24;f[3][u]=M;M=16843009*N^65537*C^257*G^16843008*u;p[0][z]=M<<24|M>>>8;p[1][z]=M<<16|M>>>16;p[2][z]=M<<8|M>>>24;p[3][z]=M;0===u?u=y=1:(u=G^e[e[e[N^G]]],y^=e[e[y]])}return{SBOX:b,INV_SBOX:d,SUB_MIX:f,INV_SUB_MIX:p}}();k.blockSize=16;k.keySize=32;k.prototype.blockSize=k.blockSize;k.prototype.keySize=k.keySize;k.prototype._reset=function(){for(var e=this._key,b=e.length,d=b+ 6,f=4*(d+1),p=[],u=0;u>>24,e=m.SBOX[e>>>24]<<24|m.SBOX[e>>>16&255]<<16|m.SBOX[e>>>8&255]<<8|m.SBOX[e&255],e^=g[u/b|0]<<24):6>>24]<<24|m.SBOX[e>>>16&255]<<16|m.SBOX[e>>>8&255]<<8|m.SBOX[e&255]),p[u]=p[u-b]^e;b=[];for(u=0;uu||4>=e?y:m.INV_SUB_MIX[0][m.SBOX[y>>>24]]^m.INV_SUB_MIX[1][m.SBOX[y>>>16&255]]^m.INV_SUB_MIX[2][m.SBOX[y>>>8&255]]^m.INV_SUB_MIX[3][m.SBOX[y&255]]}this._nRounds= d;this._keySchedule=p;this._invKeySchedule=b};k.prototype.encryptBlockRaw=function(e){e=h(e);return q(e,this._keySchedule,m.SUB_MIX,m.SBOX,this._nRounds)};k.prototype.encryptBlock=function(e){e=this.encryptBlockRaw(e);var b=a.allocUnsafe(16);b.writeUInt32BE(e[0],0);b.writeUInt32BE(e[1],4);b.writeUInt32BE(e[2],8);b.writeUInt32BE(e[3],12);return b};k.prototype.decryptBlock=function(e){e=h(e);var b=e[1];e[1]=e[3];e[3]=b;e=q(e,this._invKeySchedule,m.INV_SUB_MIX,m.INV_SBOX,this._nRounds);b=a.allocUnsafe(16); b.writeUInt32BE(e[0],0);b.writeUInt32BE(e[3],4);b.writeUInt32BE(e[2],8);b.writeUInt32BE(e[1],12);return b};k.prototype.scrub=function(){n(this._keySchedule);n(this._invKeySchedule);n(this._key)};H.exports.AES=k},{"safe-buffer":243}],46:[function(r,H,A){function h(e,b,d,f){k.call(this);var p=q.alloc(4,0);this._cipher=new n.AES(b);p=this._cipher.encryptBlock(p);this._ghash=new a(p);b=d;if(12===b.length)this._finID=q.concat([b,q.from([0,0,0,1])]),d=q.concat([b,q.from([0,0,0,2])]);else{d=new a(p);p=b.length; var u=p%16;d.update(b);u&&d.update(q.alloc(16-u,0));d.update(q.alloc(8,0));b=8*p;p=q.alloc(8);p.writeUIntBE(b,0,8);d.update(p);this._finID=d.state;d=q.from(this._finID);m(d)}this._prev=q.from(d);this._cache=q.allocUnsafe(0);this._secCache=q.allocUnsafe(0);this._decrypt=f;this._len=this._alen=0;this._mode=e;this._authTag=null;this._called=!1}var n=r("./aes"),q=r("safe-buffer").Buffer,k=r("cipher-base");A=r("inherits");var a=r("./ghash"),g=r("buffer-xor"),m=r("./incr32");A(h,k);h.prototype._update= function(e){if(!this._called&&this._alen){var b=16-this._alen%16;16>b&&(b=q.alloc(b,0),this._ghash.update(b))}this._called=!0;b=this._mode.encrypt(this,e);this._decrypt?this._ghash.update(e):this._ghash.update(b);this._len+=e.length;return b};h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var e=g(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID)),b;if(b=this._decrypt){b=this._authTag;var d= 0;e.length!==b.length&&d++;for(var f=Math.min(e.length,b.length),p=0;pp||16>> 0,0);g.writeUInt32BE(a[1]>>>0,4);g.writeUInt32BE(a[2]>>>0,8);g.writeUInt32BE(a[3]>>>0,12);return g}function n(a){this.h=a;this.state=q.alloc(16,0);this.cache=q.allocUnsafe(0)}var q=r("safe-buffer").Buffer,k=q.alloc(16,0);n.prototype.ghash=function(a){for(var g=-1;++g++b;){if(m=0!==(this.state[~~(b/ 8)]&1<<7-b%8))g[0]^=a[0],g[1]^=a[1],g[2]^=a[2],g[3]^=a[3];e=0!==(a[3]&1);for(m=3;0>>1|(a[m-1]&1)<<31;a[0]>>>=1;e&&(a[0]^=-520093696)}this.state=h(g)};n.prototype.update=function(a){for(this.cache=q.concat([this.cache,a]);16<=this.cache.length;)a=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(a)};n.prototype.final=function(a,g){this.cache.length&&this.ghash(q.concat([this.cache,k],16));this.ghash(h([0,a,0,g]));return this.state};H.exports=n},{"safe-buffer":243}], 51:[function(r,H,A){H.exports=function(h){for(var n=h.length,q;n--;)if(q=h.readUInt8(n),255===q)h.writeUInt8(0,n);else{q++;h.writeUInt8(q,n);break}}},{}],52:[function(r,H,A){var h=r("buffer-xor");A.encrypt=function(n,q){q=h(q,n._prev);n._prev=n._cipher.encryptBlock(q);return n._prev};A.decrypt=function(n,q){var k=n._prev;n._prev=q;n=n._cipher.decryptBlock(q);return h(n,k)}},{"buffer-xor":88}],53:[function(r,H,A){function h(k,a,g){var m=a.length,e=q(a,k._cache);k._cache=k._cache.slice(m);k._prev=n.concat([k._prev, g?a:e]);return e}var n=r("safe-buffer").Buffer,q=r("buffer-xor");A.encrypt=function(k,a,g){for(var m=n.allocUnsafe(0),e;a.length;)if(0===k._cache.length&&(k._cache=k._cipher.encryptBlock(k._prev),k._prev=n.allocUnsafe(0)),k._cache.length<=a.length)e=k._cache.length,m=n.concat([m,h(k,a.slice(0,e),g)]),a=a.slice(e);else{m=n.concat([m,h(k,a,g)]);break}return m}},{"buffer-xor":88,"safe-buffer":243}],54:[function(r,H,A){var h=r("safe-buffer").Buffer;A.encrypt=function(n,q,k){for(var a=q.length,g=h.allocUnsafe(a), m=-1;++m++D;){f=p._cipher.encryptBlock(p._prev);d=u&1<<7-D?128:0;b=f[0]^d;z+=(b&128)>>D%8;f=p;var G=p._prev;d=y?d:b;b=G.length;var C=-1,N=h.allocUnsafe(G.length);for(G=h.concat([G,h.from([d])]);++C>7;f._prev=N}g[e]=z}return g}},{"safe-buffer":243}],55:[function(r,H,A){var h=r("safe-buffer").Buffer;A.encrypt=function(n,q,k){for(var a=q.length,g=h.allocUnsafe(a),m=-1;++m=m.cmpn(0))throw Error("invalid sig");if(m.cmp(e)>=e)throw Error("invalid sig");}var n=r("safe-buffer").Buffer,q=r("bn.js"),k=r("elliptic").ec,a=r("parse-asn1"),g=r("./curves.json");H.exports=function(m,e,b,d,f){b=a(b);if("ec"===b.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw Error("wrong public key type");d=g[b.data.algorithm.curve.join(".")];if(!d)throw Error("unknown curve "+b.data.algorithm.curve.join(".")); return(new k(d)).verify(e,m,b.data.subjectPrivateKey.data)}if("dsa"===b.type){if("dsa"!==d)throw Error("wrong public key type");d=b.data.p;f=b.data.q;var p=b.data.g;b=b.data.pub_key;var u=a.signature.decode(m,"der");m=u.s;u=u.r;h(m,f);h(u,f);var y=q.mont(d);m=m.invm(f);return 0===p.toRed(y).redPow((new q(e)).mul(m).mod(f)).fromRed().mul(b.toRed(y).redPow(u.mul(m).mod(f)).fromRed()).mod(d).mod(f).cmp(u)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw Error("wrong public key type");e=n.concat([f,e]);f=b.modulus.byteLength(); d=[1];for(p=0;e.length+d.length+2p?1:0;f=Math.min(m.length,d.length);m.length!==d.length&&(b=1);for(u=-1;++ua.length)b=a.length;" argument"===a.substring(b-9,b)?a="The ".concat(a," ").concat(e," ").concat(q(g,"type")):(b=void 0,"number"!==typeof b&&(b=0),b=b+1>a.length?!1:-1!==a.indexOf(".", b),b=b?"property":"argument",a='The "'.concat(a,'" ').concat(b," ").concat(e," ").concat(q(g,"type")));return a+=". Received type ".concat(typeof m)},TypeError);n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");n("ERR_METHOD_NOT_IMPLEMENTED",function(a){return"The "+a+" method is not implemented"});n("ERR_STREAM_PREMATURE_CLOSE","Premature close");n("ERR_STREAM_DESTROYED",function(a){return"Cannot call "+a+" after a stream was destroyed"});n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"); n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");n("ERR_STREAM_WRITE_AFTER_END","write after end");n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);n("ERR_UNKNOWN_ENCODING",function(a){return"Unknown encoding: "+a},TypeError);n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");H.exports.codes=k},{}],74:[function(r,H,A){(function(h){function n(d){if(!(this instanceof n))return new n(d);g.call(this,d);m.call(this,d);this.allowHalfOpen=!0;d&&(!1=== d.readable&&(this.readable=!1),!1===d.writable&&(this.writable=!1),!1===d.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",q)))}function q(){this._writableState.ended||h.nextTick(k,this)}function k(d){d.end()}var a=Object.keys||function(d){var f=[],p;for(p in d)f.push(p);return f};H.exports=n;var g=r("./_stream_readable"),m=r("./_stream_writable");r("inherits")(n,g);a=a(m.prototype);for(var e=0;e=L||0===R.length&&R.ended)return 0;if(R.objectMode)return 1; if(L!==L)return R.flowing&&R.length?R.buffer.head.data.length:R.length;if(L>R.highWaterMark){var Z=L;1073741824<=Z?Z=1073741824:(Z--,Z|=Z>>>1,Z|=Z>>>2,Z|=Z>>>4,Z|=Z>>>8,Z|=Z>>>16,Z++);R.highWaterMark=Z}return L<=R.length?L:R.ended?R.length:(R.needReadable=!0,0)}function b(L){var R=L._readableState;t("emitReadable",R.needReadable,R.emittedReadable);R.needReadable=!1;R.emittedReadable||(t("emitReadable",R.flowing),R.emittedReadable=!0,h.nextTick(d,L))}function d(L){var R=L._readableState;t("emitReadable_", R.destroyed,R.length,R.ended);R.destroyed||!R.length&&!R.ended||(L.emit("readable"),R.emittedReadable=!1);R.needReadable=!R.flowing&&!R.ended&&R.length<=R.highWaterMark;G(L)}function f(L,R){R.readingMore||(R.readingMore=!0,h.nextTick(p,L,R))}function p(L,R){for(;!R.reading&&!R.ended&&(R.length=R.length?(L=R.decoder?R.buffer.join(""):1===R.buffer.length?R.buffer.first():R.buffer.concat(R.length),R.buffer.clear()):L=R.buffer.consume(L,R.decoder);return L}function N(L){var R=L._readableState;t("endReadable",R.endEmitted);R.endEmitted||(R.ended=!0,h.nextTick(M,R,L))}function M(L,R){t("endReadableNT",L.endEmitted,L.length);L.endEmitted||0!==L.length||(L.endEmitted=!0,R.readable= !1,R.emit("end"),L.autoDestroy&&(L=R._writableState,(!L||L.autoDestroy&&L.finished)&&R.destroy()))}function T(L,R){for(var Z=0,ca=L.length;Z=R.highWaterMark:0>>0);for(var d=this.head,f=0;d;)a.prototype.copy.call(d.data,b,f),f+=d.data.length,d=d.next;return b}},{key:"consume",value:function(b,d){bu.length?u.length:b;p=y===u.length?p+u:p+u.slice(0,b);b-=y;if(0===b){y===u.length?(++f,this.head=d.next?d.next:this.tail=null):(this.head=d,d.data=u.slice(y));break}++f}this.length-=f;return p}},{key:"_getBuffer",value:function(b){var d=a.allocUnsafe(b),f=this.head,p=1;f.data.copy(d);for(b-=f.data.length;f=f.next;){var u=f.data,y=b>u.length?u.length:b;u.copy(d,d.length-b,0,y);b-=y;if(0===b){y===u.length?(++p,this.head=f.next?f.next: this.tail=null):(this.head=f,f.data=u.slice(y));break}++p}this.length-=p;return d}},{key:m,value:function(b,d){return g(this,n({},d,{depth:0,customInspect:!1}))}}]);return e}()},{buffer:89,util:44}],81:[function(r,H,A){(function(h){function n(a,g){k(a,g);q(a)}function q(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function k(a,g){a.emit("error",g)}H.exports={destroy:function(a,g){var m=this,e=this._writableState&&this._writableState.destroyed; if(this._readableState&&this._readableState.destroyed||e)return g?g(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,h.nextTick(k,this,a)):h.nextTick(k,this,a)),this;this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(a||null,function(b){!g&&b?m._writableState?m._writableState.errorEmitted?h.nextTick(q,m):(m._writableState.errorEmitted=!0,h.nextTick(n,m,b)):h.nextTick(n,m,b): g?(h.nextTick(q,m),g(b)):h.nextTick(q,m)});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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(a, g){var m=a._readableState,e=a._writableState;m&&m.autoDestroy||e&&e.autoDestroy?a.destroy(g):a.emit("error",g)}}}).call(this,r("_process"))},{_process:218}],82:[function(r,H,A){function h(a){var g=!1;return function(){if(!g){g=!0;for(var m=arguments.length,e=Array(m),b=0;bd.length)throw new m("streams"); var u,y=d.map(function(D,z){var G=zq)throw new h(a?k:"highWaterMark",q);return Math.floor(q)}return n.objectMode?16:16384}}}, {"../../../errors":73}],86:[function(r,H,A){H.exports=r("events").EventEmitter},{events:161}],87:[function(r,H,A){A=H.exports=r("./lib/_stream_readable.js");A.Stream=A;A.Readable=A;A.Writable=r("./lib/_stream_writable.js");A.Duplex=r("./lib/_stream_duplex.js");A.Transform=r("./lib/_stream_transform.js");A.PassThrough=r("./lib/_stream_passthrough.js");A.finished=r("./lib/internal/streams/end-of-stream.js");A.pipeline=r("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":74,"./lib/_stream_passthrough.js":75, "./lib/_stream_readable.js":76,"./lib/_stream_transform.js":77,"./lib/_stream_writable.js":78,"./lib/internal/streams/end-of-stream.js":82,"./lib/internal/streams/pipeline.js":84}],88:[function(r,H,A){(function(h){H.exports=function(n,q){for(var k=Math.min(n.length,q.length),a=new h(k),g=0;gw||v.byteLengthv)throw new RangeError('The value "'+v+'" is invalid for option "size"');}function a(v){k(v);return n(0>v?0:e(v)|0)}function g(v){for(var w=0>v.length?0:e(v.length)|0,x=n(w),I=0;I>>1;case "base64":return c.toByteArray(M(v)).length;default:if(S)return I?-1:T(v).length;w=(""+w).toLowerCase();S=!0}}function d(v,w,x){var I=!1;if(void 0===w||0>w)w=0;if(w>this.length)return"";if(void 0===x||x>this.length)x=this.length;if(0>=x)return"";x>>>=0; w>>>=0;if(x<=w)return"";for(v||(v="utf8");;)switch(v){case "hex":v=w;w=x;x=this.length;if(!v||0>v)v=0;if(!w||0>w||w>x)w=x;I="";for(x=v;xI?"0"+I.toString(16):I.toString(16),I=v+I;return I;case "utf8":case "utf-8":return y(this,w,x);case "ascii":v="";for(x=Math.min(this.length,x);wx&&(x=-2147483648);x=+x;x!==x&&(x= S?0:v.length-1);0>x&&(x=v.length+x);if(x>=v.length){if(S)return-1;x=v.length-1}else if(0>x)if(S)x=0;else return-1;"string"===typeof w&&(w=h.from(w,I));if(h.isBuffer(w))return 0===w.length?-1:u(v,w,x,I,S);if("number"===typeof w)return w&=255,"function"===typeof Uint8Array.prototype.indexOf?S?Uint8Array.prototype.indexOf.call(v,w,x):Uint8Array.prototype.lastIndexOf.call(v,w,x):u(v,[w],x,I,S);throw new TypeError("val must be string, number or Buffer");}function u(v,w,x,I,S){function X(ea,L){return 1=== aa?ea[L]:ea.readUInt16BE(L*aa)}var aa=1,ba=v.length,Y=w.length;if(void 0!==I&&(I=String(I).toLowerCase(),"ucs2"===I||"ucs-2"===I||"utf16le"===I||"utf-16le"===I)){if(2>v.length||2>w.length)return-1;aa=2;ba/=2;Y/=2;x/=2}if(S)for(I=-1;xba&&(x=ba-Y);0<=x;x--){ba=!0;for(I=0;IS&&(X=S);break;case 2:var ba=v[w+1];128===(ba&192)&&(S=(S&31)<<6|ba&63,127S||57343S&&(X=S))}null===X?(X=65533,aa=1):65535>>10&1023|55296),X=56320|X&1023);I.push(X);w+=aa}v=I.length;if(v<=F)I=String.fromCharCode.apply(String,I);else{x="";for(w=0;wv)throw new RangeError("offset is not uint");if(v+w>x)throw new RangeError("Trying to access beyond buffer length");}function z(v,w,x,I,S,X){if(!h.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>S||wv.length)throw new RangeError("Index out of range");}function G(v,w,x,I,S,X){if(x+I>v.length)throw new RangeError("Index out of range");if(0>x)throw new RangeError("Index out of range");}function C(v,w,x,I,S){w=+w;x>>>=0;S||G(v,w,x,4,3.4028234663852886E38,-3.4028234663852886E38);t.write(v,w,x,I,23,4);return x+4}function N(v,w,x,I,S){w=+w;x>>>=0;S||G(v,w,x,8,1.7976931348623157E308,-1.7976931348623157E308);t.write(v,w,x,I,52,8);return x+8}function M(v){v=v.split("=")[0];v=v.trim().replace(J, "");if(2>v.length)return"";for(;0!==v.length%4;)v+="=";return v}function T(v,w){w=w||Infinity;for(var x,I=v.length,S=null,X=[],aa=0;aax){if(!S){if(56319x){-1<(w-=3)&&X.push(239,191,189);S=x;continue}x=(S-55296<<10|x-56320)+65536}else S&&-1<(w-=3)&&X.push(239,191,189);S=null;if(128>x){if(0>--w)break;X.push(x)}else if(2048>x){if(0> (w-=2))break;X.push(x>>6|192,x&63|128)}else if(65536>x){if(0>(w-=3))break;X.push(x>>12|224,x>>6&63|128,x&63|128)}else if(1114112>x){if(0>(w-=4))break;X.push(x>>18|240,x>>12&63|128,x>>6&63|128,x&63|128)}else throw Error("Invalid code point");}return X}function Q(v){for(var w=[],x=0;x=w.length||S>=v.length);++S)w[S+x]=v[S];return S}function B(v,w){return v instanceof w||null!=v&&null!=v.constructor&&null!= v.constructor.name&&v.constructor.name===w.name}var c=r("base64-js"),t=r("ieee754");A.Buffer=h;A.SlowBuffer=function(v){+v!=v&&(v=0);return h.alloc(+v)};A.INSPECT_MAX_BYTES=50;A.kMaxLength=2147483647;h.TYPED_ARRAY_SUPPORT=function(){try{var v=new Uint8Array(1);v.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===v.foo()}catch(w){return!1}}();h.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(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}});"undefined"!==typeof Symbol&&null!=Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1});h.poolSize=8192;h.from=function(v,w,x){return q(v,w,x)};h.prototype.__proto__=Uint8Array.prototype; h.__proto__=Uint8Array;h.alloc=function(v,w,x){k(v);v=0>=v?n(v):void 0!==w?"string"===typeof x?n(v).fill(w,x):n(v).fill(w):n(v);return v};h.allocUnsafe=function(v){return a(v)};h.allocUnsafeSlow=function(v){return a(v)};h.isBuffer=function(v){return null!=v&&!0===v._isBuffer&&v!==h.prototype};h.compare=function(v,w){B(v,Uint8Array)&&(v=h.from(v,v.offset,v.byteLength));B(w,Uint8Array)&&(w=h.from(w,w.offset,w.byteLength));if(!h.isBuffer(v)||!h.isBuffer(w))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); if(v===w)return 0;for(var x=v.length,I=w.length,S=0,X=Math.min(x,I);Sv&&(w+=" ... ");return""};h.prototype.compare=function(v,w,x,I,S){B(v,Uint8Array)&&(v=h.from(v,v.offset,v.byteLength));if(!h.isBuffer(v))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+ typeof v);void 0===w&&(w=0);void 0===x&&(x=v?v.length:0);void 0===I&&(I=0);void 0===S&&(S=this.length);if(0>w||x>v.length||0>I||S>this.length)throw new RangeError("out of range index");if(I>=S&&w>=x)return 0;if(I>=S)return-1;if(w>=x)return 1;w>>>=0;x>>>=0;I>>>=0;S>>>=0;if(this===v)return 0;var X=S-I,aa=x-w,ba=Math.min(X,aa);I=this.slice(I,S);v=v.slice(w,x);for(w=0;w>>=0,isFinite(x)?(x>>>=0,void 0===I&&(I="utf8")):(I=x,x=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var S=this.length-w;if(void 0===x||x>S)x=S;if(0x||0>w)||w>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");for(S=!1;;)switch(I){case "hex":a:{w=Number(w)||0;I=this.length-w;x?(x=Number(x),x>I&&(x=I)):x=I;I=v.length;x>I/2&&(x=I/2);for(I=0;I(S-=2));++aa){var ba=I.charCodeAt(aa);v=ba>>8;ba%=256;X.push(ba);X.push(v)}return l(X,this,w,x);default:if(S)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase();S=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;h.prototype.slice=function(v,w){var x=this.length;v=~~v;w=void 0===w?x:~~w;0>v?(v+= x,0>v&&(v=0)):v>x&&(v=x);0>w?(w+=x,0>w&&(w=0)):w>x&&(w=x);w>>=0;w>>>=0;x||D(v,w,this.length);x=this[v];for(var I=1,S=0;++S>>=0;w>>>=0;x||D(v,w,this.length);x=this[v+--w];for(var I=1;0>>=0;w||D(v,1,this.length);return this[v]};h.prototype.readUInt16LE= function(v,w){v>>>=0;w||D(v,2,this.length);return this[v]|this[v+1]<<8};h.prototype.readUInt16BE=function(v,w){v>>>=0;w||D(v,2,this.length);return this[v]<<8|this[v+1]};h.prototype.readUInt32LE=function(v,w){v>>>=0;w||D(v,4,this.length);return(this[v]|this[v+1]<<8|this[v+2]<<16)+16777216*this[v+3]};h.prototype.readUInt32BE=function(v,w){v>>>=0;w||D(v,4,this.length);return 16777216*this[v]+(this[v+1]<<16|this[v+2]<<8|this[v+3])};h.prototype.readIntLE=function(v,w,x){v>>>=0;w>>>=0;x||D(v,w,this.length); x=this[v];for(var I=1,S=0;++S=128*I&&(x-=Math.pow(2,8*w));return x};h.prototype.readIntBE=function(v,w,x){v>>>=0;w>>>=0;x||D(v,w,this.length);x=w;for(var I=1,S=this[v+--x];0=128*I&&(S-=Math.pow(2,8*w));return S};h.prototype.readInt8=function(v,w){v>>>=0;w||D(v,1,this.length);return this[v]&128?-1*(255-this[v]+1):this[v]};h.prototype.readInt16LE=function(v,w){v>>>=0;w||D(v,2,this.length);v=this[v]|this[v+1]<<8;return v&32768?v|4294901760: v};h.prototype.readInt16BE=function(v,w){v>>>=0;w||D(v,2,this.length);v=this[v+1]|this[v]<<8;return v&32768?v|4294901760:v};h.prototype.readInt32LE=function(v,w){v>>>=0;w||D(v,4,this.length);return this[v]|this[v+1]<<8|this[v+2]<<16|this[v+3]<<24};h.prototype.readInt32BE=function(v,w){v>>>=0;w||D(v,4,this.length);return this[v]<<24|this[v+1]<<16|this[v+2]<<8|this[v+3]};h.prototype.readFloatLE=function(v,w){v>>>=0;w||D(v,4,this.length);return t.read(this,v,!0,23,4)};h.prototype.readFloatBE=function(v, w){v>>>=0;w||D(v,4,this.length);return t.read(this,v,!1,23,4)};h.prototype.readDoubleLE=function(v,w){v>>>=0;w||D(v,8,this.length);return t.read(this,v,!0,52,8)};h.prototype.readDoubleBE=function(v,w){v>>>=0;w||D(v,8,this.length);return t.read(this,v,!1,52,8)};h.prototype.writeUIntLE=function(v,w,x,I){v=+v;w>>>=0;x>>>=0;I||z(this,v,w,x,Math.pow(2,8*x)-1,0);I=1;var S=0;for(this[w]=v&255;++S>>=0;x>>>=0;I||z(this, v,w,x,Math.pow(2,8*x)-1,0);I=x-1;var S=1;for(this[w+I]=v&255;0<=--I&&(S*=256);)this[w+I]=v/S&255;return w+x};h.prototype.writeUInt8=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,1,255,0);this[w]=v&255;return w+1};h.prototype.writeUInt16LE=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,2,65535,0);this[w]=v&255;this[w+1]=v>>>8;return w+2};h.prototype.writeUInt16BE=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,2,65535,0);this[w]=v>>>8;this[w+1]=v&255;return w+2};h.prototype.writeUInt32LE=function(v,w,x){v=+v;w>>>= 0;x||z(this,v,w,4,4294967295,0);this[w+3]=v>>>24;this[w+2]=v>>>16;this[w+1]=v>>>8;this[w]=v&255;return w+4};h.prototype.writeUInt32BE=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,4,4294967295,0);this[w]=v>>>24;this[w+1]=v>>>16;this[w+2]=v>>>8;this[w+3]=v&255;return w+4};h.prototype.writeIntLE=function(v,w,x,I){v=+v;w>>>=0;I||(I=Math.pow(2,8*x-1),z(this,v,w,x,I-1,-I));I=0;var S=1,X=0;for(this[w]=v&255;++Iv&&0===X&&0!==this[w+I-1]&&(X=1),this[w+I]=(v/S>>0)-X&255;return w+x};h.prototype.writeIntBE= function(v,w,x,I){v=+v;w>>>=0;I||(I=Math.pow(2,8*x-1),z(this,v,w,x,I-1,-I));I=x-1;var S=1,X=0;for(this[w+I]=v&255;0<=--I&&(S*=256);)0>v&&0===X&&0!==this[w+I+1]&&(X=1),this[w+I]=(v/S>>0)-X&255;return w+x};h.prototype.writeInt8=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,1,127,-128);0>v&&(v=255+v+1);this[w]=v&255;return w+1};h.prototype.writeInt16LE=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,2,32767,-32768);this[w]=v&255;this[w+1]=v>>>8;return w+2};h.prototype.writeInt16BE=function(v,w,x){v=+v;w>>>=0; x||z(this,v,w,2,32767,-32768);this[w]=v>>>8;this[w+1]=v&255;return w+2};h.prototype.writeInt32LE=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,4,2147483647,-2147483648);this[w]=v&255;this[w+1]=v>>>8;this[w+2]=v>>>16;this[w+3]=v>>>24;return w+4};h.prototype.writeInt32BE=function(v,w,x){v=+v;w>>>=0;x||z(this,v,w,4,2147483647,-2147483648);0>v&&(v=4294967295+v+1);this[w]=v>>>24;this[w+1]=v>>>16;this[w+2]=v>>>8;this[w+3]=v&255;return w+4};h.prototype.writeFloatLE=function(v,w,x){return C(this,v,w,!0,x)};h.prototype.writeFloatBE= function(v,w,x){return C(this,v,w,!1,x)};h.prototype.writeDoubleLE=function(v,w,x){return N(this,v,w,!0,x)};h.prototype.writeDoubleBE=function(v,w,x){return N(this,v,w,!1,x)};h.prototype.copy=function(v,w,x,I){if(!h.isBuffer(v))throw new TypeError("argument should be a Buffer");x||(x=0);I||0===I||(I=this.length);w>=v.length&&(w=v.length);w||(w=0);0w)throw new RangeError("targetStart out of bounds");if(0>x||x>=this.length)throw new RangeError("Index out of range"); if(0>I)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length);v.length-wS||"latin1"===I)v=S}}else"number"===typeof v&&(v&=255);if(0>w||this.length>>=0;x=void 0===x?this.length:x>>>0;v||(v=0);if("number"===typeof v)for(I=w;If?d=("rmd160"===b?new g:m(b)).update(d).digest():d.lengthg.length&&(g=n.concat([g,k],64));a=this._ipad=n.allocUnsafe(64);for(var m=this._opad=n.allocUnsafe(64),e=0;64>e;e++)a[e]=g[e]^54,m[e]=g[e]^92;this._hash=[a]}A=r("inherits");var n=r("safe-buffer").Buffer,q=r("cipher-base"),k=n.alloc(128);A(h,q);h.prototype._update=function(a){this._hash.push(a)};h.prototype._final=function(){var a=this._alg(n.concat(this._hash)); return this._alg(n.concat([this._opad,a]))};H.exports=h},{"cipher-base":90,inherits:193,"safe-buffer":243}],98:[function(r,H,A){A.randomBytes=A.rng=A.pseudoRandomBytes=A.prng=r("randombytes");A.createHash=A.Hash=r("create-hash");A.createHmac=A.Hmac=r("create-hmac");H=r("browserify-sign/algos");H=Object.keys(H);var h="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(H);A.getHashes=function(){return h};H=r("pbkdf2");A.pbkdf2=H.pbkdf2;A.pbkdf2Sync=H.pbkdf2Sync;H=r("browserify-cipher"); A.Cipher=H.Cipher;A.createCipher=H.createCipher;A.Cipheriv=H.Cipheriv;A.createCipheriv=H.createCipheriv;A.Decipher=H.Decipher;A.createDecipher=H.createDecipher;A.Decipheriv=H.Decipheriv;A.createDecipheriv=H.createDecipheriv;A.getCiphers=H.getCiphers;A.listCiphers=H.listCiphers;H=r("diffie-hellman");A.DiffieHellmanGroup=H.DiffieHellmanGroup;A.createDiffieHellmanGroup=H.createDiffieHellmanGroup;A.getDiffieHellman=H.getDiffieHellman;A.createDiffieHellman=H.createDiffieHellman;A.DiffieHellman=H.DiffieHellman; H=r("browserify-sign");A.createSign=H.createSign;A.Sign=H.Sign;A.createVerify=H.createVerify;A.Verify=H.Verify;A.createECDH=r("create-ecdh");H=r("public-encrypt");A.publicEncrypt=H.publicEncrypt;A.privateEncrypt=H.privateEncrypt;A.publicDecrypt=H.publicDecrypt;A.privateDecrypt=H.privateDecrypt;r=r("randomfill");A.randomFill=r.randomFill;A.randomFillSync=r.randomFillSync;A.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify"); };A.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":62,"browserify-sign":70,"browserify-sign/algos":67,"create-ecdh":92,"create-hash":94,"create-hmac":96,"diffie-hellman":139, pbkdf2:211,"public-encrypt":219,randombytes:226,randomfill:227}],99:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./enc-base64"),r("./md5"),r("./evpkdf"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){(function(){var n=h.lib.BlockCipher,q=h.algo,k=[],a=[],g=[],m=[],e=[],b=[],d=[],f=[],p=[],u=[];(function(){for(var D=[],z=0;256>z;z++)D[z]=128>z?z<<1:z<<1^283;var G=0,C=0;for(z=0;256>z;z++){var N=C^C<<1^C<<2^C<<3^C<<4;N=N>>>8^N&255^99;k[G]=N;a[N]=G;var M=D[G], T=D[M],Q=D[T],l=257*D[N]^16843008*N;g[G]=l<<24|l>>>8;m[G]=l<<16|l>>>16;e[G]=l<<8|l>>>24;b[G]=l;l=16843009*Q^65537*T^257*M^16843008*G;d[N]=l<<24|l>>>8;f[N]=l<<16|l>>>16;p[N]=l<<8|l>>>24;u[N]=l;G?(G=M^D[D[D[Q^M]]],C^=D[D[C]]):G=C=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54];q=q.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){var D=this._keyPriorReset=this._key;for(var z=D.words,G=D.sigBytes/4,C=4*((this._nRounds=G+6)+1),N=this._keySchedule=[],M=0;M>>24]<<24|k[D>>>16&255]<<16|k[D>>>8&255]<<8|k[D&255]):(D=D<<8|D>>>24,D=k[D>>>24]<<24|k[D>>>16&255]<<16|k[D>>>8&255]<<8|k[D&255],D^=y[M/G|0]<<24),N[M]=N[M-G]^D);z=this._invKeySchedule=[];for(G=0;GG||4>=M?D:d[k[D>>>24]]^f[k[D>>>16&255]]^p[k[D>>>8&255]]^u[k[D&255]]}},encryptBlock:function(D,z){this._doCryptBlock(D,z,this._keySchedule,g,m,e,b,k)},decryptBlock:function(D,z){var G=D[z+1];D[z+1]=D[z+3];D[z+3]=G;this._doCryptBlock(D, z,this._invKeySchedule,d,f,p,u,a);G=D[z+1];D[z+1]=D[z+3];D[z+3]=G},_doCryptBlock:function(D,z,G,C,N,M,T,Q){for(var l=this._nRounds,B=D[z]^G[0],c=D[z+1]^G[1],t=D[z+2]^G[2],F=D[z+3]^G[3],J=4,v=1;v>>24]^N[c>>>16&255]^M[t>>>8&255]^T[F&255]^G[J++],x=C[c>>>24]^N[t>>>16&255]^M[F>>>8&255]^T[B&255]^G[J++],I=C[t>>>24]^N[F>>>16&255]^M[B>>>8&255]^T[c&255]^G[J++];F=C[F>>>24]^N[B>>>16&255]^M[c>>>8&255]^T[t&255]^G[J++];B=w;c=x;t=I}w=(Q[B>>>24]<<24|Q[c>>>16&255]<<16|Q[t>>>8&255]<<8|Q[F&255])^G[J++]; x=(Q[c>>>24]<<24|Q[t>>>16&255]<<16|Q[F>>>8&255]<<8|Q[B&255])^G[J++];I=(Q[t>>>24]<<24|Q[F>>>16&255]<<16|Q[B>>>8&255]<<8|Q[c&255])^G[J++];F=(Q[F>>>24]<<24|Q[B>>>16&255]<<16|Q[c>>>8&255]<<8|Q[t&255])^G[J++];D[z]=w;D[z+1]=x;D[z+2]=I;D[z+3]=F},keySize:8});h.AES=n._createHelper(q)})();return h.AES})},{"./cipher-core":100,"./core":101,"./enc-base64":102,"./evpkdf":104,"./md5":109}],100:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./evpkdf")):n(h.CryptoJS)})(this,function(h){h.lib.Cipher|| function(n){var q=h.lib,k=q.Base,a=q.WordArray,g=q.BufferedBlockAlgorithm,m=h.enc.Base64,e=h.algo.EvpKDF,b=q.Cipher=g.extend({cfg:k.extend(),createEncryptor:function(z,G){return this.create(this._ENC_XFORM_MODE,z,G)},createDecryptor:function(z,G){return this.create(this._DEC_XFORM_MODE,z,G)},init:function(z,G,C){this.cfg=this.cfg.extend(C);this._xformMode=z;this._key=G;this.reset()},reset:function(){g.reset.call(this);this._doReset()},process:function(z){this._append(z);return this._process()},finalize:function(z){z&& this._append(z);return this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){return function(z){return{encrypt:function(G,C,N){return("string"==typeof C?D:y).encrypt(z,G,C,N)},decrypt:function(G,C,N){return("string"==typeof C?D:y).decrypt(z,G,C,N)}}}}()});q.StreamCipher=b.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=h.mode={},f=q.BlockCipherMode=k.extend({createEncryptor:function(z,G){return this.Encryptor.create(z,G)}, createDecryptor:function(z,G){return this.Decryptor.create(z,G)},init:function(z,G){this._cipher=z;this._iv=G}});d=d.CBC=function(){function z(C,N,M){var T;(T=this._iv)?this._iv=n:T=this._prevBlock;for(var Q=0;Q>>2]&255}};q.BlockCipher=b.extend({cfg:b.cfg.extend({mode:d,padding:p}),reset:function(){b.reset.call(this);var z=this.cfg;var G=z.iv,C=z.mode;this._xformMode==this._ENC_XFORM_MODE?z=C.createEncryptor:(z=C.createDecryptor,this._minBufferSize= 1);this._mode&&this._mode.__creator==z?this._mode.init(this,G&&G.words):(this._mode=z.call(C,this,G&&G.words),this._mode.__creator=z)},_doProcessBlock:function(z,G){this._mode.processBlock(z,G)},_doFinalize:function(){var z=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){z.pad(this._data,this.blockSize);var G=this._process(!0)}else G=this._process(!0),z.unpad(G);return G},blockSize:4});var u=q.CipherParams=k.extend({init:function(z){this.mixIn(z)},toString:function(z){return(z||this.formatter).stringify(this)}}); d=(h.format={}).OpenSSL={stringify:function(z){var G=z.ciphertext;z=z.salt;return(z?a.create([1398893684,1701076831]).concat(z).concat(G):G).toString(m)},parse:function(z){z=m.parse(z);var G=z.words;if(1398893684==G[0]&&1701076831==G[1]){var C=a.create(G.slice(2,4));G.splice(0,4);z.sigBytes-=16}return u.create({ciphertext:z,salt:C})}};var y=q.SerializableCipher=k.extend({cfg:k.extend({format:d}),encrypt:function(z,G,C,N){N=this.cfg.extend(N);var M=z.createEncryptor(C,N);G=M.finalize(G);M=M.cfg;return u.create({ciphertext:G, key:C,iv:M.iv,algorithm:z,mode:M.mode,padding:M.padding,blockSize:z.blockSize,formatter:N.format})},decrypt:function(z,G,C,N){N=this.cfg.extend(N);G=this._parse(G,N.format);return z.createDecryptor(C,N).finalize(G.ciphertext)},_parse:function(z,G){return"string"==typeof z?G.parse(z,this):z}});k=(h.kdf={}).OpenSSL={execute:function(z,G,C,N){N||(N=a.random(8));z=e.create({keySize:G+C}).compute(z,N);C=a.create(z.words.slice(G),4*C);z.sigBytes=4*G;return u.create({key:z,iv:C,salt:N})}};var D=q.PasswordBasedCipher= y.extend({cfg:y.cfg.extend({kdf:k}),encrypt:function(z,G,C,N){N=this.cfg.extend(N);C=N.kdf.execute(C,z.keySize,z.ivSize);N.iv=C.iv;z=y.encrypt.call(this,z,G,C.key,N);z.mixIn(C);return z},decrypt:function(z,G,C,N){N=this.cfg.extend(N);G=this._parse(G,N.format);C=N.kdf.execute(C,z.keySize,z.ivSize,G.salt);N.iv=C.iv;return y.decrypt.call(this,z,G,C.key,N)}})}()})},{"./core":101,"./evpkdf":104}],101:[function(r,H,A){(function(h){(function(n,q){"object"===typeof A?H.exports=A=q():n.CryptoJS=q()})(this, function(){var n=n||function(q,k){if("undefined"!==typeof window&&window.crypto)var a=window.crypto;!a&&"undefined"!==typeof window&&window.msCrypto&&(a=window.msCrypto);!a&&"undefined"!==typeof h&&h.crypto&&(a=h.crypto);if(!a&&"function"===typeof r)try{a=r("crypto")}catch(C){}var g=function(){if(a){if("function"===typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(C){}if("function"===typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(C){}}throw Error("Native crypto module could not be used to get secure random number."); },m=Object.create||function(){function C(){}return function(N){C.prototype=N;N=new C;C.prototype=null;return N}}(),e={},b=e.lib={},d=b.Base=function(){return{extend:function(C){var N=m(this);C&&N.mixIn(C);N.hasOwnProperty("init")&&this.init!==N.init||(N.init=function(){N.$super.init.apply(this,arguments)});N.init.prototype=N;N.$super=this;return N},create:function(){var C=this.extend();C.init.apply(C,arguments);return C},init:function(){},mixIn:function(C){for(var N in C)C.hasOwnProperty(N)&&(this[N]= C[N]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=b.WordArray=d.extend({init:function(C,N){C=this.words=C||[];this.sigBytes=N!=k?N:4*C.length},toString:function(C){return(C||u).stringify(this)},concat:function(C){var N=this.words,M=C.words,T=this.sigBytes;C=C.sigBytes;this.clamp();if(T%4)for(var Q=0;Q>>2]|=(M[Q>>>2]>>>24-Q%4*8&255)<<24-(T+Q)%4*8;else for(Q=0;Q>>2]=M[Q>>>2];this.sigBytes+=C;return this}, clamp:function(){var C=this.words,N=this.sigBytes;C[N>>>2]&=4294967295<<32-N%4*8;C.length=q.ceil(N/4)},clone:function(){var C=d.clone.call(this);C.words=this.words.slice(0);return C},random:function(C){for(var N=[],M=0;M>>2]>>>24-T%4*8&255;M.push((Q>>>4).toString(16));M.push((Q&15).toString(16))}return M.join("")},parse:function(C){for(var N=C.length, M=[],T=0;T>>3]|=parseInt(C.substr(T,2),16)<<24-T%8*4;return new f.init(M,N/2)}},y=p.Latin1={stringify:function(C){var N=C.words;C=C.sigBytes;for(var M=[],T=0;T>>2]>>>24-T%4*8&255));return M.join("")},parse:function(C){for(var N=C.length,M=[],T=0;T>>2]|=(C.charCodeAt(T)&255)<<24-T%4*8;return new f.init(M,N)}},D=p.Utf8={stringify:function(C){try{return decodeURIComponent(escape(y.stringify(C)))}catch(N){throw Error("Malformed UTF-8 data"); }},parse:function(C){return y.parse(unescape(encodeURIComponent(C)))}},z=b.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new f.init;this._nDataBytes=0},_append:function(C){"string"==typeof C&&(C=D.parse(C));this._data.concat(C);this._nDataBytes+=C.sigBytes},_process:function(C){var N,M=this._data,T=M.words,Q=M.sigBytes,l=this.blockSize,B=Q/(4*l);B=C?q.ceil(B):q.max((B|0)-this._minBufferSize,0);C=B*l;Q=q.min(4*C,Q);if(C){for(N=0;N>>2]>>> 24-m%4*8&255)<<16|(k[m+1>>>2]>>>24-(m+1)%4*8&255)<<8|k[m+2>>>2]>>>24-(m+2)%4*8&255,b=0;4>b&&m+.75*b>>6*(3-b)&63));if(k=g.charAt(64))for(;q.length%4;)q.push(k);return q.join("")},parse:function(q){var k=q.length,a=this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m>>6-e%4*2;a[m>>>2]|= (b|d)<<24-m%4*8;m++}return n.create(a,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();return h.enc.Base64})},{"./core":101}],103:[function(r,H,A){(function(h,n){"object"===typeof A?H.exports=A=n(r("./core")):n(h.CryptoJS)})(this,function(h){(function(){function n(a){return a<<8&4278255360|a>>>8&16711935}var q=h.lib.WordArray,k=h.enc;k.Utf16=k.Utf16BE={stringify:function(a){var g=a.words;a=a.sigBytes;for(var m=[],e=0;e>>2]>>> 16-e%4*8&65535));return m.join("")},parse:function(a){for(var g=a.length,m=[],e=0;e>>1]|=a.charCodeAt(e)<<16-e%2*16;return q.create(m,2*g)}};k.Utf16LE={stringify:function(a){var g=a.words;a=a.sigBytes;for(var m=[],e=0;e>>2]>>>16-e%4*8&65535);m.push(String.fromCharCode(b))}return m.join("")},parse:function(a){for(var g=a.length,m=[],e=0;e>>1]|=n(a.charCodeAt(e)<<16-e%2*16);return q.create(m,2*g)}}})();return h.enc.Utf16})},{"./core":101}],104:[function(r, H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./sha1"),r("./hmac")):n(h.CryptoJS)})(this,function(h){(function(){var n=h.lib,q=n.Base,k=n.WordArray;n=h.algo;var a=n.EvpKDF=q.extend({cfg:q.extend({keySize:4,hasher:n.MD5,iterations:1}),init:function(g){this.cfg=this.cfg.extend(g)},compute:function(g,m){var e=this.cfg,b=e.hasher.create(),d=k.create(),f=d.words,p=e.keySize;for(e=e.iterations;f.lengthg&&(k=q.finalize(k));k.clamp();q=this._oKey=k.clone();k=this._iKey=k.clone();for(var m=q.words,e=k.words,b=0;b>>2]|=k[m]<<24-m%4*8;q.call(this,g,a)}else q.apply(this,arguments)}).prototype=n}})();return h.lib.WordArray})},{"./core":101}],109:[function(r,H,A){(function(h,n){"object"===typeof A?H.exports=A=n(r("./core")):n(h.CryptoJS)})(this,function(h){(function(n){function q(f,p,u,y,D,z,G){f=f+(p&u|~p&y)+D+G;return(f<>>32-z)+p}function k(f,p,u,y,D,z,G){f=f+(p&y|u& ~y)+D+G;return(f<>>32-z)+p}function a(f,p,u,y,D,z,G){f=f+(p^u^y)+D+G;return(f<>>32-z)+p}function g(f,p,u,y,D,z,G){f=f+(u^(p|~y))+D+G;return(f<>>32-z)+p}var m=h.lib,e=m.WordArray,b=m.Hasher;m=h.algo;var d=[];(function(){for(var f=0;64>f;f++)d[f]=4294967296*n.abs(n.sin(f+1))|0})();m=m.MD5=b.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,p){for(var u=0;16>u;u++){var y=p+u,D=f[y];f[y]=(D<<8|D>>>24)&16711935|(D<< 24|D>>>8)&4278255360}u=this._hash.words;y=f[p+0];D=f[p+1];var z=f[p+2],G=f[p+3],C=f[p+4],N=f[p+5],M=f[p+6],T=f[p+7],Q=f[p+8],l=f[p+9],B=f[p+10],c=f[p+11],t=f[p+12],F=f[p+13],J=f[p+14];f=f[p+15];p=u[0];var v=u[1],w=u[2],x=u[3];p=q(p,v,w,x,y,7,d[0]);x=q(x,p,v,w,D,12,d[1]);w=q(w,x,p,v,z,17,d[2]);v=q(v,w,x,p,G,22,d[3]);p=q(p,v,w,x,C,7,d[4]);x=q(x,p,v,w,N,12,d[5]);w=q(w,x,p,v,M,17,d[6]);v=q(v,w,x,p,T,22,d[7]);p=q(p,v,w,x,Q,7,d[8]);x=q(x,p,v,w,l,12,d[9]);w=q(w,x,p,v,B,17,d[10]);v=q(v,w,x,p,c,22,d[11]); p=q(p,v,w,x,t,7,d[12]);x=q(x,p,v,w,F,12,d[13]);w=q(w,x,p,v,J,17,d[14]);v=q(v,w,x,p,f,22,d[15]);p=k(p,v,w,x,D,5,d[16]);x=k(x,p,v,w,M,9,d[17]);w=k(w,x,p,v,c,14,d[18]);v=k(v,w,x,p,y,20,d[19]);p=k(p,v,w,x,N,5,d[20]);x=k(x,p,v,w,B,9,d[21]);w=k(w,x,p,v,f,14,d[22]);v=k(v,w,x,p,C,20,d[23]);p=k(p,v,w,x,l,5,d[24]);x=k(x,p,v,w,J,9,d[25]);w=k(w,x,p,v,G,14,d[26]);v=k(v,w,x,p,Q,20,d[27]);p=k(p,v,w,x,F,5,d[28]);x=k(x,p,v,w,z,9,d[29]);w=k(w,x,p,v,T,14,d[30]);v=k(v,w,x,p,t,20,d[31]);p=a(p,v,w,x,N,4,d[32]);x=a(x,p, v,w,Q,11,d[33]);w=a(w,x,p,v,c,16,d[34]);v=a(v,w,x,p,J,23,d[35]);p=a(p,v,w,x,D,4,d[36]);x=a(x,p,v,w,C,11,d[37]);w=a(w,x,p,v,T,16,d[38]);v=a(v,w,x,p,B,23,d[39]);p=a(p,v,w,x,F,4,d[40]);x=a(x,p,v,w,y,11,d[41]);w=a(w,x,p,v,G,16,d[42]);v=a(v,w,x,p,M,23,d[43]);p=a(p,v,w,x,l,4,d[44]);x=a(x,p,v,w,t,11,d[45]);w=a(w,x,p,v,f,16,d[46]);v=a(v,w,x,p,z,23,d[47]);p=g(p,v,w,x,y,6,d[48]);x=g(x,p,v,w,T,10,d[49]);w=g(w,x,p,v,J,15,d[50]);v=g(v,w,x,p,N,21,d[51]);p=g(p,v,w,x,t,6,d[52]);x=g(x,p,v,w,G,10,d[53]);w=g(w,x,p, v,B,15,d[54]);v=g(v,w,x,p,D,21,d[55]);p=g(p,v,w,x,Q,6,d[56]);x=g(x,p,v,w,f,10,d[57]);w=g(w,x,p,v,M,15,d[58]);v=g(v,w,x,p,F,21,d[59]);p=g(p,v,w,x,C,6,d[60]);x=g(x,p,v,w,c,10,d[61]);w=g(w,x,p,v,z,15,d[62]);v=g(v,w,x,p,l,21,d[63]);u[0]=u[0]+p|0;u[1]=u[1]+v|0;u[2]=u[2]+w|0;u[3]=u[3]+x|0},_doFinalize:function(){var f=this._data,p=f.words,u=8*this._nDataBytes,y=8*f.sigBytes;p[y>>>5]|=128<<24-y%32;var D=n.floor(u/4294967296);p[(y+64>>>9<<4)+15]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;p[(y+64>>>9<< 4)+14]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360;f.sigBytes=4*(p.length+1);this._process();f=this._hash;p=f.words;for(u=0;4>u;u++)y=p[u],p[u]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;return f},clone:function(){var f=b.clone.call(this);f._hash=this._hash.clone();return f}});h.MD5=b._createHelper(m);h.HmacMD5=b._createHmacHelper(m)})(Math);return h.MD5})},{"./core":101}],110:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./cipher-core")):n(h.CryptoJS)})(this, function(h){h.mode.CFB=function(){function n(k,a,g,m){var e;(e=this._iv)?(e=e.slice(0),this._iv=void 0):e=this._prevBlock;m.encryptBlock(e,0);for(m=0;m>24&255)){var g=a>>16&255,m=a>>8&255;a&=255;255===g?(g=0,255===m?(m=0,255===a?a=0:++a):++m):++g;a=(g<<16)+(m<<8)+a}else a+=16777216;return a}var q=h.lib.BlockCipherMode.extend(),k=q.Encryptor=q.extend({processBlock:function(a,g){var m=this._cipher,e=m.blockSize,b=this._iv, d=this._counter;b&&(d=this._counter=b.slice(0),this._iv=void 0);b=d;0===(b[0]=n(b[0]))&&(b[1]=n(b[1]));d=d.slice(0);m.encryptBlock(d,0);for(m=0;m>>2]|=q<<24-k%4*8;n.sigBytes+=q},unpad:function(n){n.sigBytes-=n.words[n.sigBytes-1>>>2]&255}}; return h.pad.Ansix923})},{"./cipher-core":100,"./core":101}],116:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){h.pad.Iso10126={pad:function(n,q){q*=4;q-=n.sigBytes%q;n.concat(h.lib.WordArray.random(q-1)).concat(h.lib.WordArray.create([q<<24],1))},unpad:function(n){n.sigBytes-=n.words[n.sigBytes-1>>>2]&255}};return h.pad.Iso10126})},{"./cipher-core":100,"./core":101}],117:[function(r,H,A){(function(h,n,q){"object"=== typeof A?H.exports=A=n(r("./core"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){h.pad.Iso97971={pad:function(n,q){n.concat(h.lib.WordArray.create([2147483648],1));h.pad.ZeroPadding.pad(n,q)},unpad:function(n){h.pad.ZeroPadding.unpad(n);n.sigBytes--}};return h.pad.Iso97971})},{"./cipher-core":100,"./core":101}],118:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){h.pad.NoPadding={pad:function(){},unpad:function(){}}; return h.pad.NoPadding})},{"./cipher-core":100,"./core":101}],119:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){h.pad.ZeroPadding={pad:function(n,q){q*=4;n.clamp();n.sigBytes+=q-(n.sigBytes%q||q)},unpad:function(n){var q=n.words,k;for(k=n.sigBytes-1;0<=k;k--)if(q[k>>>2]>>>24-k%4*8&255){n.sigBytes=k+1;break}}};return h.pad.ZeroPadding})},{"./cipher-core":100,"./core":101}],120:[function(r,H,A){(function(h,n,q){"object"=== typeof A?H.exports=A=n(r("./core"),r("./sha1"),r("./hmac")):n(h.CryptoJS)})(this,function(h){(function(){var n=h.lib,q=n.Base,k=n.WordArray;n=h.algo;var a=n.HMAC,g=n.PBKDF2=q.extend({cfg:q.extend({keySize:4,hasher:n.SHA1,iterations:1}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,e){var b=this.cfg;m=a.create(b.hasher,m);var d=k.create(),f=k.create([1]),p=d.words,u=f.words,y=b.keySize;for(b=b.iterations;p.lengthd;d++)a[d]= b[d];b[0]=b[0]+1295307597+this._b|0;b[1]=b[1]+3545052371+(b[0]>>>0>>0?1:0)|0;b[2]=b[2]+886263092+(b[1]>>>0>>0?1:0)|0;b[3]=b[3]+1295307597+(b[2]>>>0>>0?1:0)|0;b[4]=b[4]+3545052371+(b[3]>>>0>>0?1:0)|0;b[5]=b[5]+886263092+(b[4]>>>0>>0?1:0)|0;b[6]=b[6]+1295307597+(b[5]>>>0>>0?1:0)|0;b[7]=b[7]+3545052371+(b[6]>>>0>>0?1:0)|0;this._b=b[7]>>>0>>0?1:0;for(d=0;8>d;d++){var f=e[d]+b[d],p=f&65535,u=f>>>16;g[d]=((p*p>>>17)+p*u>>>15)+u*u^((f&4294901760)*f|0)+((f& 65535)*f|0)}e[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0;e[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0;e[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0;e[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0;e[4]=g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0;e[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0;e[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0;e[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}var q=h.lib.StreamCipher,k=[],a=[],g=[],m=h.algo.RabbitLegacy=q.extend({_doReset:function(){var e=this._key.words,b=this.cfg.iv, d=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];e=this._C=[e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];for(var f=this._b=0;4>f;f++)n.call(this);for(f=0;8>f;f++)e[f]^=d[f+4&7];if(b){d=b.words;b=d[0];d=d[1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360; f=b>>>16|d&4294901760;var p=d<<16|b&65535;e[0]^=b;e[1]^=f;e[2]^=d;e[3]^=p;e[4]^=b;e[5]^=f;e[6]^=d;e[7]^=p;for(f=0;4>f;f++)n.call(this)}},_doProcessBlock:function(e,b){var d=this._X;n.call(this);k[0]=d[0]^d[5]>>>16^d[3]<<16;k[1]=d[2]^d[7]>>>16^d[5]<<16;k[2]=d[4]^d[1]>>>16^d[7]<<16;k[3]=d[6]^d[3]>>>16^d[1]<<16;for(d=0;4>d;d++)k[d]=(k[d]<<8|k[d]>>>24)&16711935|(k[d]<<24|k[d]>>>8)&4278255360,e[b+d]^=k[d]},blockSize:4,ivSize:2});h.RabbitLegacy=q._createHelper(m)})();return h.RabbitLegacy})},{"./cipher-core":100, "./core":101,"./enc-base64":102,"./evpkdf":104,"./md5":109}],122:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./enc-base64"),r("./md5"),r("./evpkdf"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){(function(){function n(){for(var e=this._X,b=this._C,d=0;8>d;d++)a[d]=b[d];b[0]=b[0]+1295307597+this._b|0;b[1]=b[1]+3545052371+(b[0]>>>0>>0?1:0)|0;b[2]=b[2]+886263092+(b[1]>>>0>>0?1:0)|0;b[3]=b[3]+1295307597+(b[2]>>>0>>0?1:0)|0;b[4]=b[4]+3545052371+ (b[3]>>>0>>0?1:0)|0;b[5]=b[5]+886263092+(b[4]>>>0>>0?1:0)|0;b[6]=b[6]+1295307597+(b[5]>>>0>>0?1:0)|0;b[7]=b[7]+3545052371+(b[6]>>>0>>0?1:0)|0;this._b=b[7]>>>0>>0?1:0;for(d=0;8>d;d++){var f=e[d]+b[d],p=f&65535,u=f>>>16;g[d]=((p*p>>>17)+p*u>>>15)+u*u^((f&4294901760)*f|0)+((f&65535)*f|0)}e[0]=g[0]+(g[7]<<16|g[7]>>>16)+(g[6]<<16|g[6]>>>16)|0;e[1]=g[1]+(g[0]<<8|g[0]>>>24)+g[7]|0;e[2]=g[2]+(g[1]<<16|g[1]>>>16)+(g[0]<<16|g[0]>>>16)|0;e[3]=g[3]+(g[2]<<8|g[2]>>>24)+g[1]|0;e[4]= g[4]+(g[3]<<16|g[3]>>>16)+(g[2]<<16|g[2]>>>16)|0;e[5]=g[5]+(g[4]<<8|g[4]>>>24)+g[3]|0;e[6]=g[6]+(g[5]<<16|g[5]>>>16)+(g[4]<<16|g[4]>>>16)|0;e[7]=g[7]+(g[6]<<8|g[6]>>>24)+g[5]|0}var q=h.lib.StreamCipher,k=[],a=[],g=[],m=h.algo.Rabbit=q.extend({_doReset:function(){for(var e=this._key.words,b=this.cfg.iv,d=0;4>d;d++)e[d]=(e[d]<<8|e[d]>>>24)&16711935|(e[d]<<24|e[d]>>>8)&4278255360;var f=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];e=this._C= [e[2]<<16|e[2]>>>16,e[0]&4294901760|e[1]&65535,e[3]<<16|e[3]>>>16,e[1]&4294901760|e[2]&65535,e[0]<<16|e[0]>>>16,e[2]&4294901760|e[3]&65535,e[1]<<16|e[1]>>>16,e[3]&4294901760|e[0]&65535];for(d=this._b=0;4>d;d++)n.call(this);for(d=0;8>d;d++)e[d]^=f[d+4&7];if(b){d=b.words;b=d[0];d=d[1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360;d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;f=b>>>16|d&4294901760;var p=d<<16|b&65535;e[0]^=b;e[1]^=f;e[2]^=d;e[3]^=p;e[4]^=b;e[5]^=f;e[6]^=d;e[7]^=p;for(d=0;4>d;d++)n.call(this)}}, _doProcessBlock:function(e,b){var d=this._X;n.call(this);k[0]=d[0]^d[5]>>>16^d[3]<<16;k[1]=d[2]^d[7]>>>16^d[5]<<16;k[2]=d[4]^d[1]>>>16^d[7]<<16;k[3]=d[6]^d[3]>>>16^d[1]<<16;for(d=0;4>d;d++)k[d]=(k[d]<<8|k[d]>>>24)&16711935|(k[d]<<24|k[d]>>>8)&4278255360,e[b+d]^=k[d]},blockSize:4,ivSize:2});h.Rabbit=q._createHelper(m)})();return h.Rabbit})},{"./cipher-core":100,"./core":101,"./enc-base64":102,"./evpkdf":104,"./md5":109}],123:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"), r("./enc-base64"),r("./md5"),r("./evpkdf"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){(function(){function n(){for(var g=this._S,m=this._i,e=this._j,b=0,d=0;4>d;d++){m=(m+1)%256;e=(e+g[m])%256;var f=g[m];g[m]=g[e];g[e]=f;b|=g[(g[m]+g[e])%256]<<24-8*d}this._i=m;this._j=e;return b}var q=h.lib.StreamCipher,k=h.algo,a=k.RC4=q.extend({_doReset:function(){var g=this._key,m=g.words;g=g.sigBytes;for(var e=this._S=[],b=0;256>b;b++)e[b]=b;for(var d=b=0;256>b;b++){var f=b%g;d=(d+e[b]+(m[f>>>2]>>>24- f%4*8&255))%256;f=e[b];e[b]=e[d];e[d]=f}this._i=this._j=0},_doProcessBlock:function(g,m){g[m]^=n.call(this)},keySize:8,ivSize:0});h.RC4=q._createHelper(a);k=k.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var g=this.cfg.drop;0>>32-u}n=h.lib;var k=n.WordArray,a=n.Hasher;n=h.algo;var g=k.create([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=k.create([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]),e=k.create([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]),b=k.create([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]),d=k.create([0,1518500249,1859775393, 2400959708,2840853838]),f=k.create([1352829926,1548603684,1836072691,2053994217,0]);n=n.RIPEMD160=a.extend({_doReset:function(){this._hash=k.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(p,u){for(var y=0;16>y;y++){var D=u+y,z=p[D];p[D]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}D=this._hash.words;z=d.words;var G=f.words,C=g.words,N=m.words,M=e.words,T=b.words,Q,l,B,c,t;var F=Q=D[0];var J=l=D[1];var v=B=D[2];var w=c=D[3];var x=t=D[4];for(y=0;80>y;y+= 1){var I=Q+p[u+C[y]]|0;I=16>y?I+((l^B^c)+z[0]):32>y?I+((l&B|~l&c)+z[1]):48>y?I+(((l|~B)^c)+z[2]):64>y?I+((l&c|B&~c)+z[3]):I+((l^(B|~c))+z[4]);I|=0;I=q(I,M[y]);I=I+t|0;Q=t;t=c;c=q(B,10);B=l;l=I;I=F+p[u+N[y]]|0;I=16>y?I+((J^(v|~w))+G[0]):32>y?I+((J&w|v&~w)+G[1]):48>y?I+(((J|~v)^w)+G[2]):64>y?I+((J&v|~J&w)+G[3]):I+((J^v^w)+G[4]);I|=0;I=q(I,T[y]);I=I+x|0;F=x;x=w;w=q(v,10);v=J;J=I}I=D[1]+B+w|0;D[1]=D[2]+c+x|0;D[2]=D[3]+t+F|0;D[3]=D[4]+Q+J|0;D[4]=D[0]+l+v|0;D[0]=I},_doFinalize:function(){var p=this._data, u=p.words,y=8*this._nDataBytes,D=8*p.sigBytes;u[D>>>5]|=128<<24-D%32;u[(D+64>>>9<<4)+14]=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360;p.sigBytes=4*(u.length+1);this._process();p=this._hash;u=p.words;for(y=0;5>y;y++)D=u[y],u[y]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;return p},clone:function(){var p=a.clone.call(this);p._hash=this._hash.clone();return p}});h.RIPEMD160=a._createHelper(n);h.HmacRIPEMD160=a._createHmacHelper(n)})(Math);return h.RIPEMD160})},{"./core":101}],125:[function(r, H,A){(function(h,n){"object"===typeof A?H.exports=A=n(r("./core")):n(h.CryptoJS)})(this,function(h){(function(){var n=h.lib,q=n.WordArray,k=n.Hasher,a=[];n=h.algo.SHA1=k.extend({_doReset:function(){this._hash=new q.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(g,m){for(var e=this._hash.words,b=e[0],d=e[1],f=e[2],p=e[3],u=e[4],y=0;80>y;y++){if(16>y)a[y]=g[m+y]|0;else{var D=a[y-3]^a[y-8]^a[y-14]^a[y-16];a[y]=D<<1|D>>>31}D=(b<<5|b>>>27)+u+a[y];D=20>y?D+((d&f| ~d&p)+1518500249):40>y?D+((d^f^p)+1859775393):60>y?D+((d&f|d&p|f&p)-1894007588):D+((d^f^p)-899497514);u=p;p=f;f=d<<30|d>>>2;d=b;b=D}e[0]=e[0]+b|0;e[1]=e[1]+d|0;e[2]=e[2]+f|0;e[3]=e[3]+p|0;e[4]=e[4]+u|0},_doFinalize:function(){var g=this._data,m=g.words,e=8*this._nDataBytes,b=8*g.sigBytes;m[b>>>5]|=128<<24-b%32;m[(b+64>>>9<<4)+14]=Math.floor(e/4294967296);m[(b+64>>>9<<4)+15]=e;g.sigBytes=4*m.length;this._process();return this._hash},clone:function(){var g=k.clone.call(this);g._hash=this._hash.clone(); return g}});h.SHA1=k._createHelper(n);h.HmacSHA1=k._createHmacHelper(n)})();return h.SHA1})},{"./core":101}],126:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./sha256")):n(h.CryptoJS)})(this,function(h){(function(){var n=h.lib.WordArray,q=h.algo,k=q.SHA256;q=q.SHA224=k.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=k._doFinalize.call(this); a.sigBytes-=4;return a}});h.SHA224=k._createHelper(q);h.HmacSHA224=k._createHmacHelper(q)})();return h.SHA224})},{"./core":101,"./sha256":127}],127:[function(r,H,A){(function(h,n){"object"===typeof A?H.exports=A=n(r("./core")):n(h.CryptoJS)})(this,function(h){(function(n){var q=h.lib,k=q.WordArray,a=q.Hasher;q=h.algo;var g=[],m=[];(function(){function b(u){for(var y=n.sqrt(u),D=2;D<=y;D++)if(!(u%D))return!1;return!0}function d(u){return 4294967296*(u-(u|0))|0}for(var f=2,p=0;64>p;)b(f)&&(8>p&&(g[p]= d(n.pow(f,.5))),m[p]=d(n.pow(f,1/3)),p++),f++})();var e=[];q=q.SHA256=a.extend({_doReset:function(){this._hash=new k.init(g.slice(0))},_doProcessBlock:function(b,d){for(var f=this._hash.words,p=f[0],u=f[1],y=f[2],D=f[3],z=f[4],G=f[5],C=f[6],N=f[7],M=0;64>M;M++){if(16>M)e[M]=b[d+M]|0;else{var T=e[M-15],Q=e[M-2];e[M]=((T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3)+e[M-7]+((Q<<15|Q>>>17)^(Q<<13|Q>>>19)^Q>>>10)+e[M-16]}T=N+((z<<26|z>>>6)^(z<<21|z>>>11)^(z<<7|z>>>25))+(z&G^~z&C)+m[M]+e[M];Q=((p<<30|p>>>2)^(p<<19| p>>>13)^(p<<10|p>>>22))+(p&u^p&y^u&y);N=C;C=G;G=z;z=D+T|0;D=y;y=u;u=p;p=T+Q|0}f[0]=f[0]+p|0;f[1]=f[1]+u|0;f[2]=f[2]+y|0;f[3]=f[3]+D|0;f[4]=f[4]+z|0;f[5]=f[5]+G|0;f[6]=f[6]+C|0;f[7]=f[7]+N|0},_doFinalize:function(){var b=this._data,d=b.words,f=8*this._nDataBytes,p=8*b.sigBytes;d[p>>>5]|=128<<24-p%32;d[(p+64>>>9<<4)+14]=n.floor(f/4294967296);d[(p+64>>>9<<4)+15]=f;b.sigBytes=4*d.length;this._process();return this._hash},clone:function(){var b=a.clone.call(this);b._hash=this._hash.clone();return b}}); h.SHA256=a._createHelper(q);h.HmacSHA256=a._createHmacHelper(q)})(Math);return h.SHA256})},{"./core":101}],128:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./x64-core")):n(h.CryptoJS)})(this,function(h){(function(n){var q=h.lib,k=q.WordArray,a=q.Hasher,g=h.x64.Word;q=h.algo;var m=[],e=[],b=[];(function(){for(var f=1,p=0,u=0;24>u;u++){m[f+5*p]=(u+1)*(u+2)/2%64;var y=(2*f+3*p)%5;f=p%5;p=y}for(f=0;5>f;f++)for(p=0;5>p;p++)e[f+5*p]=p+(2*f+3*p)%5*5;f=1;for(p=0;24>p;p++){for(var D= y=u=0;7>D;D++){if(f&1){var z=(1<z?y^=1<f;f++)d[f]=g.create()})();q=q.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var f=this._state=[],p=0;25>p;p++)f[p]=new g.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(f,p){for(var u=this._state,y=this.blockSize/2,D=0;D>>24)&16711935|(z<<24|z>>>8)& 4278255360;G=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360;var C=u[D];C.high^=G;C.low^=z}for(f=0;24>f;f++){for(p=0;5>p;p++){for(z=G=y=0;5>z;z++)C=u[p+5*z],y^=C.high,G^=C.low;C=d[p];C.high=y;C.low=G}for(p=0;5>p;p++)for(C=d[(p+4)%5],y=d[(p+1)%5],D=y.high,z=y.low,y=C.high^(D<<1|z>>>31),G=C.low^(z<<1|D>>>31),z=0;5>z;z++)C=u[p+5*z],C.high^=y,C.low^=G;for(D=1;25>D;D++)C=u[D],p=C.high,C=C.low,z=m[D],32>z?(y=p<>>32-z,G=C<>>32-z):(y=C<>>64-z,G=p<>>64-z),C=d[e[D]],C.high=y,C.low= G;C=d[0];p=u[0];C.high=p.high;C.low=p.low;for(p=0;5>p;p++)for(z=0;5>z;z++)D=p+5*z,C=u[D],y=d[D],D=d[(p+1)%5+5*z],G=d[(p+2)%5+5*z],C.high=y.high^~D.high&G.high,C.low=y.low^~D.low&G.low;C=u[0];p=b[f];C.high^=p.high;C.low^=p.low}},_doFinalize:function(){var f=this._data,p=f.words,u=8*f.sigBytes,y=32*this.blockSize;p[u>>>5]|=1<<24-u%32;p[(n.ceil((u+1)/y)*y>>>5)-1]|=128;f.sigBytes=4*p.length;this._process();f=this._state;p=this.cfg.outputLength/8;u=p/8;y=[];for(var D=0;D>>24)&16711935|(G<<24|G>>>8)&4278255360;z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360;y.push(z);y.push(G)}return new k.init(y,p)},clone:function(){for(var f=a.clone.call(this),p=f._state=this._state.slice(0),u=0;25>u;u++)p[u]=p[u].clone();return f}});h.SHA3=a._createHelper(q);h.HmacSHA3=a._createHmacHelper(q)})(Math);return h.SHA3})},{"./core":101,"./x64-core":132}],129:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./x64-core"),r("./sha512")):n(h.CryptoJS)})(this, function(h){(function(){var n=h.x64,q=n.Word,k=n.WordArray;n=h.algo;var a=n.SHA512;n=n.SHA384=a.extend({_doReset:function(){this._hash=new k.init([new q.init(3418070365,3238371032),new q.init(1654270250,914150663),new q.init(2438529370,812702999),new q.init(355462360,4144912697),new q.init(1731405415,4290775857),new q.init(2394180231,1750603025),new q.init(3675008525,1694076839),new q.init(1203062813,3204075428)])},_doFinalize:function(){var g=a._doFinalize.call(this);g.sigBytes-=16;return g}});h.SHA384= a._createHelper(n);h.HmacSHA384=a._createHmacHelper(n)})();return h.SHA384})},{"./core":101,"./sha512":130,"./x64-core":132}],130:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./x64-core")):n(h.CryptoJS)})(this,function(h){(function(){function n(){return a.create.apply(a,arguments)}var q=h.lib.Hasher,k=h.x64,a=k.Word,g=k.WordArray;k=h.algo;var m=[n(1116352408,3609767458),n(1899447441,602891725),n(3049323471,3964484399),n(3921009573,2173295548),n(961987163,4081628472), n(1508970993,3053834265),n(2453635748,2937671579),n(2870763221,3664609560),n(3624381080,2734883394),n(310598401,1164996542),n(607225278,1323610764),n(1426881987,3590304994),n(1925078388,4068182383),n(2162078206,991336113),n(2614888103,633803317),n(3248222580,3479774868),n(3835390401,2666613458),n(4022224774,944711139),n(264347078,2341262773),n(604807628,2007800933),n(770255983,1495990901),n(1249150122,1856431235),n(1555081692,3175218132),n(1996064986,2198950837),n(2554220882,3999719339),n(2821834349, 766784016),n(2952996808,2566594879),n(3210313671,3203337956),n(3336571891,1034457026),n(3584528711,2466948901),n(113926993,3758326383),n(338241895,168717936),n(666307205,1188179964),n(773529912,1546045734),n(1294757372,1522805485),n(1396182291,2643833823),n(1695183700,2343527390),n(1986661051,1014477480),n(2177026350,1206759142),n(2456956037,344077627),n(2730485921,1290863460),n(2820302411,3158454273),n(3259730800,3505952657),n(3345764771,106217008),n(3516065817,3606008344),n(3600352804,1432725776), n(4094571909,1467031594),n(275423344,851169720),n(430227734,3100823752),n(506948616,1363258195),n(659060556,3750685593),n(883997877,3785050280),n(958139571,3318307427),n(1322822218,3812723403),n(1537002063,2003034995),n(1747873779,3602036899),n(1955562222,1575990012),n(2024104815,1125592928),n(2227730452,2716904306),n(2361852424,442776044),n(2428436474,593698344),n(2756734187,3733110249),n(3204031479,2999351573),n(3329325298,3815920427),n(3391569614,3928383900),n(3515267271,566280711),n(3940187606, 3454069534),n(4118630271,4000239992),n(116418474,1914138554),n(174292421,2731055270),n(289380356,3203993006),n(460393269,320620315),n(685471733,587496836),n(852142971,1086792851),n(1017036298,365543100),n(1126000580,2618297676),n(1288033470,3409855158),n(1501505948,4234509866),n(1607167915,987167468),n(1816402316,1246189591)],e=[];(function(){for(var b=0;80>b;b++)e[b]=n()})();k=k.SHA512=q.extend({_doReset:function(){this._hash=new g.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595), new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(b,d){var f=this._hash.words,p=f[0],u=f[1],y=f[2],D=f[3],z=f[4],G=f[5],C=f[6];f=f[7];for(var N=p.high,M=p.low,T=u.high,Q=u.low,l=y.high,B=y.low,c=D.high,t=D.low,F=z.high,J=z.low,v=G.high,w=G.low,x=C.high,I=C.low,S=f.high,X=f.low,aa=N,ba=M,Y=T,ea=Q,L=l,R=B,Z=c,ca=t,ka=F,ma= J,sa=v,va=w,oa=x,Ba=I,Aa=S,ja=X,da=0;80>da;da++){var ha=e[da];if(16>da){var ia=ha.high=b[d+2*da]|0;var fa=ha.low=b[d+2*da+1]|0}else{ia=e[da-15];fa=ia.high;var za=ia.low;ia=(fa>>>1|za<<31)^(fa>>>8|za<<24)^fa>>>7;za=(za>>>1|fa<<31)^(za>>>8|fa<<24)^(za>>>7|fa<<25);var Ea=e[da-2];fa=Ea.high;var wa=Ea.low;Ea=(fa>>>19|wa<<13)^(fa<<3|wa>>>29)^fa>>>6;wa=(wa>>>19|fa<<13)^(wa<<3|fa>>>29)^(wa>>>6|fa<<26);fa=e[da-7];var Pa=fa.high,Ma=e[da-16],Ha=Ma.high;Ma=Ma.low;fa=za+fa.low;ia=ia+Pa+(fa>>>0>>0?1:0);fa+= wa;ia=ia+Ea+(fa>>>0>>0?1:0);fa+=Ma;ia=ia+Ha+(fa>>>0>>0?1:0);ha.high=ia;ha.low=fa}Pa=ka&sa^~ka&oa;Ma=ma&va^~ma&Ba;ha=aa&Y^aa&L^Y&L;var Sa=ba&ea^ba&R^ea&R;za=(aa>>>28|ba<<4)^(aa<<30|ba>>>2)^(aa<<25|ba>>>7);Ea=(ba>>>28|aa<<4)^(ba<<30|aa>>>2)^(ba<<25|aa>>>7);wa=m[da];var Oa=wa.high,O=wa.low;wa=ja+((ma>>>14|ka<<18)^(ma>>>18|ka<<14)^(ma<<23|ka>>>9));Ha=Aa+((ka>>>14|ma<<18)^(ka>>>18|ma<<14)^(ka<<23|ma>>>9))+(wa>>>0>>0?1:0);wa+=Ma;Ha=Ha+Pa+(wa>>>0>>0?1:0);wa+=O;Ha=Ha+Oa+(wa>>>0>>0?1:0); wa+=fa;Ha=Ha+ia+(wa>>>0>>0?1:0);fa=Ea+Sa;ia=za+ha+(fa>>>0>>0?1:0);Aa=oa;ja=Ba;oa=sa;Ba=va;sa=ka;va=ma;ma=ca+wa|0;ka=Z+Ha+(ma>>>0>>0?1:0)|0;Z=L;ca=R;L=Y;R=ea;Y=aa;ea=ba;ba=wa+fa|0;aa=Ha+ia+(ba>>>0>>0?1:0)|0}M=p.low=M+ba;p.high=N+aa+(M>>>0>>0?1:0);Q=u.low=Q+ea;u.high=T+Y+(Q>>>0>>0?1:0);B=y.low=B+R;y.high=l+L+(B>>>0>>0?1:0);t=D.low=t+ca;D.high=c+Z+(t>>>0>>0?1:0);J=z.low=J+ma;z.high=F+ka+(J>>>0>>0?1:0);w=G.low=w+va;G.high=v+sa+(w>>>0>>0?1:0);I=C.low=I+Ba;C.high= x+oa+(I>>>0>>0?1:0);X=f.low=X+ja;f.high=S+Aa+(X>>>0>>0?1:0)},_doFinalize:function(){var b=this._data,d=b.words,f=8*this._nDataBytes,p=8*b.sigBytes;d[p>>>5]|=128<<24-p%32;d[(p+128>>>10<<5)+30]=Math.floor(f/4294967296);d[(p+128>>>10<<5)+31]=f;b.sigBytes=4*d.length;this._process();return this._hash.toX32()},clone:function(){var b=q.clone.call(this);b._hash=this._hash.clone();return b},blockSize:32});h.SHA512=q._createHelper(k);h.HmacSHA512=q._createHmacHelper(k)})();return h.SHA512})},{"./core":101, "./x64-core":132}],131:[function(r,H,A){(function(h,n,q){"object"===typeof A?H.exports=A=n(r("./core"),r("./enc-base64"),r("./md5"),r("./evpkdf"),r("./cipher-core")):n(h.CryptoJS)})(this,function(h){(function(){function n(u,y){y&=this._lBlock>>>u^this._rBlock;this._rBlock^=y;this._lBlock^=y<>>u^this._lBlock;this._lBlock^=y;this._rBlock^=y<D;D++){var z=m[D]-1;y[D]=u[z>>>5]>>>31-z%32& 1}u=this._subKeys=[];for(z=0;16>z;z++){var G=u[z]=[],C=b[z];for(D=0;24>D;D++)G[D/6|0]|=y[(e[D]-1+C)%28]<<31-D%6,G[4+(D/6|0)]|=y[28+(e[D+24]-1+C)%28]<<31-D%6;G[0]=G[0]<<1|G[0]>>>31;for(D=1;7>D;D++)G[D]>>>=4*(D-1)+3;G[7]=G[7]<<5|G[7]>>>27}y=this._invSubKeys=[];for(D=0;16>D;D++)y[D]=u[15-D]},encryptBlock:function(u,y){this._doCryptBlock(u,y,this._subKeys)},decryptBlock:function(u,y){this._doCryptBlock(u,y,this._invSubKeys)},_doCryptBlock:function(u,y,D){this._lBlock=u[y];this._rBlock=u[y+1];n.call(this, 4,252645135);n.call(this,16,65535);q.call(this,2,858993459);q.call(this,8,16711935);n.call(this,1,1431655765);for(var z=0;16>z;z++){for(var G=D[z],C=this._lBlock,N=this._rBlock,M=0,T=0;8>T;T++)M|=d[T][((N^G[T])&f[T])>>>0];this._lBlock=N;this._rBlock=C^M}D=this._lBlock;this._lBlock=this._rBlock;this._rBlock=D;n.call(this,1,1431655765);q.call(this,8,16711935);q.call(this,2,858993459);n.call(this,16,65535);n.call(this,4,252645135);u[y]=this._lBlock;u[y+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2}); h.DES=k._createHelper(p);g=g.TripleDES=k.extend({_doReset:function(){var u=this._key.words;if(2!==u.length&&4!==u.length&&6>u.length)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var y=u.slice(0,2),D=4>u.length?u.slice(0,2):u.slice(2,4);u=6>u.length?u.slice(0,2):u.slice(4,6);this._des1=p.createEncryptor(a.create(y));this._des2=p.createEncryptor(a.create(D));this._des3=p.createEncryptor(a.create(u))},encryptBlock:function(u,y){this._des1.encryptBlock(u, y);this._des2.decryptBlock(u,y);this._des3.encryptBlock(u,y)},decryptBlock:function(u,y){this._des3.decryptBlock(u,y);this._des2.encryptBlock(u,y);this._des1.decryptBlock(u,y)},keySize:6,ivSize:2,blockSize:2});h.TripleDES=k._createHelper(g)})();return h.TripleDES})},{"./cipher-core":100,"./core":101,"./enc-base64":102,"./evpkdf":104,"./md5":109}],132:[function(r,H,A){(function(h,n){"object"===typeof A?H.exports=A=n(r("./core")):n(h.CryptoJS)})(this,function(h){(function(n){var q=h.lib,k=q.Base,a= q.WordArray;q=h.x64={};q.Word=k.extend({init:function(g,m){this.high=g;this.low=m}});q.WordArray=k.extend({init:function(g,m){g=this.words=g||[];this.sigBytes=m!=n?m:8*g.length},toX32:function(){for(var g=this.words,m=g.length,e=[],b=0;b>>1];b=k.r28shl(b,f);e=k.r28shl(e,f);k.pc2(b,e,m.keys,d)}};n.prototype._update=function(m, e,b,d){var f=this._desState,p=k.readUInt32BE(m,e);m=k.readUInt32BE(m,e+4);k.ip(p,m,f.tmp,0);p=f.tmp[0];m=f.tmp[1];"encrypt"===this.type?this._encrypt(f,p,m,f.tmp,0):this._decrypt(f,p,m,f.tmp,0);p=f.tmp[0];m=f.tmp[1];k.writeUInt32BE(b,p,d);k.writeUInt32BE(b,m,d+4)};n.prototype._pad=function(m,e){for(var b=m.length-e;e>>0;e=y}k.rip(b,e,d,f)};n.prototype._decrypt=function(m,e,b,d,f){for(var p=m.keys.length-2;0<=p;p-=2){var u=m.keys[p],y=m.keys[p+1];k.expand(b,m.tmp,0);u^=m.tmp[0];y^=m.tmp[1];u=k.substitute(u,y);u=k.permute(u);y=b;b=(e^u)>>>0;e=y}k.rip(b,e,d,f)}},{"./cipher":135,"./utils":138,inherits:193,"minimalistic-assert":199}],137:[function(r,H, A){function h(g,m){q.equal(m.length,24,"Invalid key length");var e=m.slice(0,8),b=m.slice(8,16);m=m.slice(16,24);this.ciphers="encrypt"===g?[a.create({type:"encrypt",key:e}),a.create({type:"decrypt",key:b}),a.create({type:"encrypt",key:m})]:[a.create({type:"decrypt",key:m}),a.create({type:"encrypt",key:b}),a.create({type:"decrypt",key:e})]}function n(g){k.call(this,g);this._edeState=new h(this.type,this.options.key)}var q=r("minimalistic-assert");A=r("inherits");var k=r("./cipher"),a=r("./des");A(n, k);H.exports=n;n.create=function(g){return new n(g)};n.prototype._update=function(g,m,e,b){var d=this._edeState;d.ciphers[0]._update(g,m,e,b);d.ciphers[1]._update(e,b,e,b);d.ciphers[2]._update(e,b,e,b)};n.prototype._pad=a.prototype._pad;n.prototype._unpad=a.prototype._unpad},{"./cipher":135,"./des":136,inherits:193,"minimalistic-assert":199}],138:[function(r,H,A){A.readUInt32BE=function(k,a){return(k[0+a]<<24|k[1+a]<<16|k[2+a]<<8|k[3+a])>>>0};A.writeUInt32BE=function(k,a,g){k[0+g]=a>>>24;k[1+g]=a>>> 16&255;k[2+g]=a>>>8&255;k[3+g]=a&255};A.ip=function(k,a,g,m){for(var e=0,b=0,d=6;0<=d;d-=2){for(var f=0;24>=f;f+=8)e<<=1,e|=a>>>f+d&1;for(f=0;24>=f;f+=8)e<<=1,e|=k>>>f+d&1}for(d=6;0<=d;d-=2){for(f=1;25>=f;f+=8)b<<=1,b|=a>>>f+d&1;for(f=1;25>=f;f+=8)b<<=1,b|=k>>>f+d&1}g[m+0]=e>>>0;g[m+1]=b>>>0};A.rip=function(k,a,g,m){for(var e=0,b=0,d=0;4>d;d++)for(var f=24;0<=f;f-=8)e<<=1,e|=a>>>f+d&1,e<<=1,e|=k>>>f+d&1;for(d=4;8>d;d++)for(f=24;0<=f;f-=8)b<<=1,b|=a>>>f+d&1,b<<=1,b|=k>>>f+d&1;g[m+0]=e>>>0;g[m+1]=b>>> 0};A.pc1=function(k,a,g,m){for(var e=0,b=0,d=7;5<=d;d--){for(var f=0;24>=f;f+=8)e<<=1,e|=a>>f+d&1;for(f=0;24>=f;f+=8)e<<=1,e|=k>>f+d&1}for(f=0;24>=f;f+=8)e<<=1,e|=a>>f+d&1;for(d=1;3>=d;d++){for(f=0;24>=f;f+=8)b<<=1,b|=a>>f+d&1;for(f=0;24>=f;f+=8)b<<=1,b|=k>>f+d&1}for(f=0;24>=f;f+=8)b<<=1,b|=k>>f+d&1;g[m+0]=e>>>0;g[m+1]=b>>>0};A.r28shl=function(k,a){return k<>>28-a};var h=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10, 14,6,20,27,24];A.pc2=function(k,a,g,m){for(var e=0,b=0,d=h.length>>>1,f=0;f>>h[f]&1;for(f=d;f>>h[f]&1;g[m+0]=e>>>0;g[m+1]=b>>>0};A.expand=function(k,a,g){var m=0;var e=(k&1)<<5|k>>>27;for(var b=23;15<=b;b-=4)e<<=6,e|=k>>>b&63;for(b=11;3<=b;b-=4)m|=k>>>b&63,m<<=6;a[g+0]=e>>>0;a[g+1]=(m|(k&31)<<1|k>>>31)>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0, 5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6, 1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11, 1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];A.substitute=function(k,a){for(var g=0,m=0;4>m;m++){var e=k>>>18-6*m&63;e=n[64*m+e];g<<=4;g|=e}for(m=0;4>m;m++)e=a>>>18-6*m&63,e=n[256+64*m+e],g<<=4,g|=e;return g>>>0};var q=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];A.permute=function(k){for(var a=0,g=0;g>>q[g]&1;return a>>>0};A.padSplit=function(k,a,g){for(k=k.toString(2);k.lengthN;N+=2){for(var M=Math.ceil(Math.sqrt(N)),T=0;Tz)return 2===G||5===G?new a([140,123]):new a([140,39]);G=new a(G);for(var C,N;;){for(C=new a(k(Math.ceil(z/8)));C.bitLength()>z;)C.ishrn(1);C.isEven()&&C.iadd(e);C.testn(1)||C.iadd(b);if(!G.cmp(b))for(;C.mod(g).cmp(u);)C.iadd(y);else if(!G.cmp(d))for(;C.mod(f).cmp(p);)C.iadd(y);N=C.shrn(1);if(h(N)&&h(C)&&n(N)&&n(C)&&m.test(N)&&m.test(C))return C}}var k=r("randombytes"); H.exports=q;q.simpleSieve=h;q.fermatTest=n;var a=r("bn.js"),g=new a(24),m=new (r("miller-rabin")),e=new a(1),b=new a(2),d=new a(5);new a(16);new a(8);var f=new a(10),p=new a(3);new a(7);var u=new a(11),y=new a(4);new a(12);var D=null},{"bn.js":143,"miller-rabin":197,randombytes:226}],142:[function(r,H,A){H.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"}, modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"}, modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"}, modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"}, modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"}, modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"}, modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}, {}],143:[function(r,H,A){arguments[4][35][0].apply(A,arguments)},{buffer:44,dup:35}],144:[function(r,H,A){A.version=r("../package.json").version;A.utils=r("./elliptic/utils");A.rand=r("brorand");A.curve=r("./elliptic/curve");A.curves=r("./elliptic/curves");A.ec=r("./elliptic/ec");A.eddsa=r("./elliptic/eddsa")},{"../package.json":160,"./elliptic/curve":147,"./elliptic/curves":150,"./elliptic/ec":151,"./elliptic/eddsa":154,"./elliptic/utils":158,brorand:43}],145:[function(r,H,A){function h(e,b){this.type= e;this.p=new q(b.p,16);this.red=b.prime?q.red(b.prime):q.mont(this.p);this.zero=(new q(0)).toRed(this.red);this.one=(new q(1)).toRed(this.red);this.two=(new q(2)).toRed(this.red);this.n=b.n&&new q(b.n,16);this.g=b.g&&this.pointFromJSON(b.g,b.gRed);this._wnafT1=Array(4);this._wnafT2=Array(4);this._wnafT3=Array(4);this._wnafT4=Array(4);this._bitLength=this.n?this.n.bitLength():0;e=this.n&&this.p.div(this.n);!e||0=u;b--)y=(y<<1)+d[b];p.push(y)}b=this.jpoint(null, null,null);for(d=this.jpoint(null,null,null);0u)break;b=d[u];m(0!==b);p="affine"===e.type?0>1]):p.mixedAdd(f[-b-1>>1].neg()): 0>1]):p.add(f[-b-1>>1].neg())}return"affine"===e.type?p.toP():p};h.prototype._wnafMulAdd=function(e,b,d,f,p){for(var u=this._wnafT1,y=this._wnafT2,D=this._wnafT3,z=0,G=0;GG)break;for(e=0;e>1]:0>z&&(C=y[e][-z-1>>1].neg()),b="affine"===C.type?b.mixedAdd(C):b.add(C))}for(G=0;G=Math.ceil((e.bitLength()+1)/b.step):!1};n.prototype._getDoubles=function(e,b){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles; for(var d=[this],f=this,p=0;p": ""};n.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))};n.prototype._extDbl=function(){var m=this.x.redSqr(),e=this.y.redSqr(),b=this.z.redSqr();b=b.redIAdd(b);var d=this.curve._mulA(m),f=this.x.redAdd(this.y).redSqr().redISub(m).redISub(e);m=d.redAdd(e);b=m.redSub(b);var p=d.redSub(e);e=f.redMul(b); d=m.redMul(p);f=f.redMul(p);m=b.redMul(m);return this.curve.point(e,d,m,f)};n.prototype._projDbl=function(){var m=this.x.redAdd(this.y).redSqr(),e=this.x.redSqr(),b=this.y.redSqr();if(this.curve.twisted){var d=this.curve._mulA(e);var f=d.redAdd(b);if(this.zOne)m=m.redSub(e).redSub(b).redMul(f.redSub(this.curve.two)),e=f.redMul(d.redSub(b)),d=f.redSqr().redSub(f).redSub(f);else{var p=this.z.redSqr();p=f.redSub(p).redISub(p);m=m.redSub(e).redISub(b).redMul(p);e=f.redMul(d.redSub(b));d=f.redMul(p)}}else d= e.redAdd(b),p=this.curve._mulC(this.z).redSqr(),p=d.redSub(p).redSub(p),m=this.curve._mulC(m.redISub(d)).redMul(p),e=this.curve._mulC(d).redMul(e.redISub(b)),d=d.redMul(p);return this.curve.point(m,e,d)};n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};n.prototype._extAdd=function(m){var e=this.y.redSub(this.x).redMul(m.y.redSub(m.x)),b=this.y.redAdd(this.x).redMul(m.y.redAdd(m.x)),d=this.t.redMul(this.curve.dd).redMul(m.t),f=this.z.redMul(m.z.redAdd(m.z)), p=b.redSub(e);m=f.redSub(d);d=f.redAdd(d);f=b.redAdd(e);e=p.redMul(m);b=d.redMul(f);p=p.redMul(f);m=m.redMul(d);return this.curve.point(e,b,m,p)};n.prototype._projAdd=function(m){var e=this.z.redMul(m.z),b=e.redSqr(),d=this.x.redMul(m.x),f=this.y.redMul(m.y),p=this.curve.d.redMul(d).redMul(f),u=b.redSub(p);b=b.redAdd(p);m=this.x.redAdd(this.y).redMul(m.x.redAdd(m.y)).redISub(d).redISub(f);m=e.redMul(u).redMul(m);this.curve.twisted?(e=e.redMul(b).redMul(f.redSub(this.curve._mulA(d))),u=u.redMul(b)): (e=e.redMul(b).redMul(f.redSub(d)),u=this.curve._mulC(u).redMul(b));return this.curve.point(m,e,u)};n.prototype.add=function(m){return this.isInfinity()?m:m.isInfinity()?this:this.curve.extended?this._extAdd(m):this._projAdd(m)};n.prototype.mul=function(m){return this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve._wnafMul(this,m)};n.prototype.mulAdd=function(m,e,b){return this.curve._wnafMulAdd(1,[this,e],[m,b],2,!1)};n.prototype.jmulAdd=function(m,e,b){return this.curve._wnafMulAdd(1, [this,e],[m,b],2,!0)};n.prototype.normalize=function(){if(this.zOne)return this;var m=this.z.redInvm();this.x=this.x.redMul(m);this.y=this.y.redMul(m);this.t&&(this.t=this.t.redMul(m));this.z=this.curve.one;this.zOne=!0;return this};n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};n.prototype.getX=function(){this.normalize();return this.x.fromRed()};n.prototype.getY=function(){this.normalize();return this.y.fromRed()};n.prototype.eq=function(m){return this=== m||0===this.getX().cmp(m.getX())&&0===this.getY().cmp(m.getY())};n.prototype.eqXToP=function(m){var e=m.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;m=m.clone();for(var b=this.curve.redN.redMul(this.z);;){m.iadd(this.curve.n);if(0<=m.cmp(this.curve.p))return!1;e.redIAdd(b);if(0===this.x.cmp(e))return!0}};n.prototype.toP=n.prototype.normalize;n.prototype.mixedAdd=n.prototype.add},{"../utils":158,"./base":145,"bn.js":159,inherits:193}],147:[function(r,H,A){A.base=r("./base");A.short= r("./short");A.mont=r("./mont");A.edwards=r("./edwards")},{"./base":145,"./edwards":146,"./mont":148,"./short":149}],148:[function(r,H,A){function h(g){k.call(this,"mont",g);this.a=(new q(g.a,16)).toRed(this.red);this.b=(new q(g.b,16)).toRed(this.red);this.i4=(new q(4)).toRed(this.red).redInvm();this.two=(new q(2)).toRed(this.red);this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(g,m,e){k.BasePoint.call(this,g,"projective");null===m&&null===e?(this.x=this.curve.one,this.z=this.curve.zero): (this.x=new q(m,16),this.z=new q(e,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var q=r("bn.js");A=r("inherits");var k=r("./base"),a=r("../utils");A(h,k);H.exports=h;h.prototype.validate=function(g){g=g.normalize().x;var m=g.redSqr();g=m.redMul(g).redAdd(m.redMul(this.a)).redAdd(g);return 0===g.redSqrt().redSqr().cmp(g)};A(n,k.BasePoint);h.prototype.decodePoint=function(g,m){return this.point(a.toArray(g,m),1)};h.prototype.point=function(g, m){return new n(this,g,m)};h.prototype.pointFromJSON=function(g){return n.fromJSON(this,g)};n.prototype.precompute=function(){};n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};n.fromJSON=function(g,m){return new n(g,m[0],m[1]||g.one)};n.prototype.inspect=function(){return this.isInfinity()?"":""};n.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}; n.prototype.dbl=function(){var g=this.x.redAdd(this.z).redSqr(),m=this.x.redSub(this.z).redSqr(),e=g.redSub(m);g=g.redMul(m);m=e.redMul(m.redAdd(this.curve.a24.redMul(e)));return this.curve.point(g,m)};n.prototype.add=function(){throw Error("Not supported on Montgomery curve");};n.prototype.diffAdd=function(g,m){var e=this.x.redAdd(this.z),b=this.x.redSub(this.z),d=g.x.redAdd(g.z);g=g.x.redSub(g.z).redMul(e);d=d.redMul(b);b=m.z.redMul(g.redAdd(d).redSqr());m=m.x.redMul(g.redISub(d).redSqr());return this.curve.point(b, m)};n.prototype.mul=function(g){var m=g.clone();g=this;for(var e=this.curve.point(null,null),b=[];0!==m.cmpn(0);m.iushrn(1))b.push(m.andln(1));for(m=b.length-1;0<=m;m--)0===b[m]?(g=g.diffAdd(e,this),e=e.dbl()):(e=g.diffAdd(e,this),g=g.dbl());return e};n.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve");};n.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve");};n.prototype.eq=function(g){return 0===this.getX().cmp(g.getX())};n.prototype.normalize= function(){this.x=this.x.redMul(this.z.redInvm());this.z=this.curve.one;return this};n.prototype.getX=function(){this.normalize();return this.x.fromRed()}},{"../utils":158,"./base":145,"bn.js":159,inherits:193}],149:[function(r,H,A){function h(e){g.call(this,"short",e);this.a=(new k(e.a,16)).toRed(this.red);this.b=(new k(e.b,16)).toRed(this.red);this.tinv=this.two.redInvm();this.zeroA=0===this.a.fromRed().cmpn(0);this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3);this.endo=this._getEndomorphism(e); this._endoWnafT1=Array(4);this._endoWnafT2=Array(4)}function n(e,b,d,f){g.BasePoint.call(this,e,"affine");null===b&&null===d?(this.y=this.x=null,this.inf=!0):(this.x=new k(b,16),this.y=new k(d,16),f&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function q(e,b,d,f){g.BasePoint.call(this,e,"jacobian");null===b&&null===d&&null===f?(this.y=this.x=this.curve.one,this.z= new k(0)):(this.x=new k(b,16),this.y=new k(d,16),this.z=new k(f,16));this.x.red||(this.x=this.x.toRed(this.curve.red));this.y.red||(this.y=this.y.toRed(this.curve.red));this.z.red||(this.z=this.z.toRed(this.curve.red));this.zOne=this.z===this.curve.one}A=r("../utils");var k=r("bn.js"),a=r("inherits"),g=r("./base"),m=A.assert;a(h,g);H.exports=h;h.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)var b=(new k(e.beta,16)).toRed(this.red);else b=this._getEndoRoots(this.p), b=0>b[0].cmp(b[1])?b[0]:b[1],b=b.toRed(this.red);if(e.lambda)var d=new k(e.lambda,16);else d=this._getEndoRoots(this.n),0===this.g.mul(d[0]).x.cmp(this.g.x.redMul(b))?d=d[0]:(d=d[1],m(0===this.g.mul(d).x.cmp(this.g.x.redMul(b))));e=e.basis?e.basis.map(function(f){return{a:new k(f.a,16),b:new k(f.b,16)}}):this._getEndoBasis(d);return{beta:b,lambda:d,basis:e}}};h.prototype._getEndoRoots=function(e){var b=e===this.p?this.red:k.mont(e),d=(new k(2)).toRed(b).redInvm();e=d.redNeg();d=(new k(3)).toRed(b).redNeg().redSqrt().redMul(d); b=e.redAdd(d).fromRed();e=e.redSub(d).fromRed();return[b,e]};h.prototype._getEndoBasis=function(e){for(var b=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=this.n.clone(),f=new k(1),p=new k(0),u=new k(0),y=new k(1),D,z,G,C,N,M,T=0,Q;0!==e.cmpn(0);){var l=d.div(e);Q=d.sub(l.mul(e));N=u.sub(l.mul(f));l=y.sub(l.mul(p));if(!G&&0>Q.cmp(b))D=M.neg(),z=f,G=Q.neg(),C=N;else if(G&&2===++T)break;M=Q;d=e;e=Q;u=f;f=N;y=p;p=l}b=Q.neg();M=G.sqr().add(C.sqr());0<=b.sqr().add(N.sqr()).cmp(M)&&(b=D,N=z);G.negative&& (G=G.neg(),C=C.neg());b.negative&&(b=b.neg(),N=N.neg());return[{a:G,b:C},{a:b,b:N}]};h.prototype._endoSplit=function(e){var b=this.endo.basis,d=b[0],f=b[1],p=f.b.mul(e).divRound(this.n),u=d.b.neg().mul(e).divRound(this.n);b=p.mul(d.a);var y=u.mul(f.a);d=p.mul(d.b);f=u.mul(f.b);e=e.sub(b).sub(y);b=d.add(f).neg();return{k1:e,k2:b}};h.prototype.pointFromX=function(e,b){e=new k(e,16);e.red||(e=e.toRed(this.red));var d=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),f=d.redSqrt();if(0!== f.redSqr().redSub(d).cmp(this.zero))throw Error("invalid point");d=f.fromRed().isOdd();if(b&&!d||!b&&d)f=f.redNeg();return this.point(e,f)};h.prototype.validate=function(e){if(e.inf)return!0;var b=e.x;e=e.y;var d=this.a.redMul(b);b=b.redSqr().redMul(b).redIAdd(d).redIAdd(this.b);return 0===e.redSqr().redISub(b).cmpn(0)};h.prototype._endoWnafMulAdd=function(e,b,d){for(var f=this._endoWnafT1,p=this._endoWnafT2,u=0;u":""};n.prototype.isInfinity=function(){return this.inf};n.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var b=this.y.redSub(e.y);0!==b.cmpn(0)&&(b=b.redMul(this.x.redSub(e.x).redInvm()));e=b.redSqr().redISub(this.x).redISub(e.x);b=b.redMul(this.x.redSub(e)).redISub(this.y);return this.curve.point(e, b)};n.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var b=this.curve.a,d=this.x.redSqr();e=e.redInvm();d=d.redAdd(d).redIAdd(d).redIAdd(b).redMul(e);b=d.redSqr().redISub(this.x.redAdd(this.x));d=d.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,d)};n.prototype.getX=function(){return this.x.fromRed()};n.prototype.getY=function(){return this.y.fromRed()};n.prototype.mul=function(e){e=new k(e,16);return this.isInfinity()? this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};n.prototype.mulAdd=function(e,b,d){b=[this,b];e=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(b,e):this.curve._wnafMulAdd(1,b,e,2)};n.prototype.jmulAdd=function(e,b,d){b=[this,b];e=[e,d];return this.curve.endo?this.curve._endoWnafMulAdd(b,e,!0):this.curve._wnafMulAdd(1,b,e,2,!0)};n.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf|| 0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))};n.prototype.neg=function(e){if(this.inf)return this;var b=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){e=this.precomputed;var d=function(f){return f.neg()};b.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(d)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(d)}}}return b};n.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)};a(q, g.BasePoint);h.prototype.jpoint=function(e,b,d){return new q(this,e,b,d)};q.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),b=e.redSqr(),d=this.x.redMul(b);e=this.y.redMul(b).redMul(e);return this.curve.point(d,e)};q.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};q.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var b=e.z.redSqr(),d=this.z.redSqr(),f=this.x.redMul(b),p= e.x.redMul(d);b=this.y.redMul(b.redMul(e.z));d=e.y.redMul(d.redMul(this.z));p=f.redSub(p);d=b.redSub(d);if(0===p.cmpn(0))return 0!==d.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=p.redSqr(),y=u.redMul(p);u=f.redMul(u);f=d.redSqr().redIAdd(y).redISub(u).redISub(u);b=d.redMul(u.redISub(f)).redISub(b.redMul(y));e=this.z.redMul(e.z).redMul(p);return this.curve.jpoint(f,b,e)};q.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var b=this.z.redSqr(), d=this.x,f=e.x.redMul(b),p=this.y;e=e.y.redMul(b).redMul(this.z);f=d.redSub(f);e=p.redSub(e);if(0===f.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=f.redSqr();b=u.redMul(f);u=d.redMul(u);d=e.redSqr().redIAdd(b).redISub(u).redISub(u);p=e.redMul(u.redISub(d)).redISub(p.redMul(b));f=this.z.redMul(f);return this.curve.jpoint(d,p,f)};q.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var b= this,d=0;d":""};q.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":158,"./base":145,"bn.js":159,inherits:193}], 150:[function(r,H,A){function h(m){this.curve="short"===m.type?new k.short(m):"edwards"===m.type?new k.edwards(m):new k.mont(m);this.g=this.curve.g;this.n=this.curve.n;this.hash=m.hash;a(this.g.validate(),"Invalid curve");a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(m,e){Object.defineProperty(q,m,{configurable:!0,enumerable:!0,get:function(){var b=new h(e);Object.defineProperty(q,m,{configurable:!0,enumerable:!0,value:b});return b}})}var q=A;H=r("hash.js");var k=r("./curve"), a=r("./utils").assert;q.PresetCurve=h;n("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:H.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});n("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001", a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:H.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});n("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc", b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:H.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});n("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc", b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:H.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});n("p521",{type:"short",prime:null, p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409", hash:H.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed", hash:H.sha256,gRed:!1,g:["9"]});n("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:H.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{var g=r("./precomputed/secp256k1")}catch(m){g= void 0}n("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:H.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8", b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",g]})},{"./curve":147,"./precomputed/secp256k1":157,"./utils":158,"hash.js":179}],151:[function(r,H,A){function h(b){if(!(this instanceof h))return new h(b);"string"===typeof b&&(g(k.hasOwnProperty(b),"Unknown curve "+b),b=k[b]);b instanceof k.PresetCurve&&(b={curve:b});this.curve=b.curve.curve;this.n=this.curve.n;this.nh= this.n.ushrn(1);this.g=this.curve.g;this.g=b.curve.g;this.g.precompute(b.curve.n.bitLength()+1);this.hash=b.hash||b.curve.hash}var n=r("bn.js"),q=r("hmac-drbg");A=r("../utils");var k=r("../curves"),a=r("brorand"),g=A.assert,m=r("./key"),e=r("./signature");H.exports=h;h.prototype.keyPair=function(b){return new m(this,b)};h.prototype.keyFromPrivate=function(b,d){return m.fromPrivate(this,b,d)};h.prototype.keyFromPublic=function(b,d){return m.fromPublic(this,b,d)};h.prototype.genKeyPair=function(b){b|| (b={});b=new q({hash:this.hash,pers:b.pers,persEnc:b.persEnc||"utf8",entropy:b.entropy||a(this.hash.hmacStrength),entropyEnc:b.entropy&&b.entropyEnc||"utf8",nonce:this.n.toArray()});var d=this.n.byteLength(),f=this.n.sub(new n(2));do{var p=new n(b.generate(d));if(!(0=z.cmpn(1)||0<=z.cmp(y))){var G=this.g.mul(z);if(!G.isInfinity()){var C=G.getX();f=C.umod(this.n);if(0!== f.cmpn(0)&&(z=z.invm(this.n).mul(f.mul(d.getPrivate()).iadd(b)),z=z.umod(this.n),0!==z.cmpn(0)))return b=(G.getY().isOdd()?1:0)|(0!==C.cmp(f)?2:0),p.canonical&&0p.cmpn(1)||0<=p.cmp(this.n)||0>d.cmpn(1)||0<=d.cmp(this.n))return!1;d=d.invm(this.n);b=d.mul(b).umod(this.n);d=d.mul(p).umod(this.n); if(!this.curve._maxwellTrick)return f=this.g.mulAdd(b,f.getPublic(),d),f.isInfinity()?!1:0===f.getX().umod(this.n).cmp(p);f=this.g.jmulAdd(b,f.getPublic(),d);return f.isInfinity()?!1:f.eqXToP(p)};h.prototype.recoverPubKey=function(b,d,f,p){g((3&f)===f,"The recovery param is more than two bits");d=new e(d,p);p=this.n;var u=new n(b);b=d.r;var y=d.s,D=f&1;f>>=1;if(0<=b.cmp(this.curve.p.umod(this.curve.n))&&f)throw Error("Unable to find sencond key candinate");b=f?this.curve.pointFromX(b.add(this.curve.n), D):this.curve.pointFromX(b,D);d=d.r.invm(p);f=p.sub(u).mul(d).umod(p);p=y.mul(d).umod(p);return this.g.mulAdd(f,b,p)};h.prototype.getKeyRecoveryParam=function(b,d,f,p){d=new e(d,p);if(null!==d.recoveryParam)return d.recoveryParam;for(p=0;4>p;p++){try{var u=this.recoverPubKey(b,d,p)}catch(y){continue}if(u.eq(f))return p}throw Error("Unable to find valid recovery factor");}},{"../curves":150,"../utils":158,"./key":152,"./signature":153,"bn.js":159,brorand:43,"hmac-drbg":191}],152:[function(r,H,A){function h(k, a){this.ec=k;this.pub=this.priv=null;a.priv&&this._importPrivate(a.priv,a.privEnc);a.pub&&this._importPublic(a.pub,a.pubEnc)}var n=r("bn.js"),q=r("../utils").assert;H.exports=h;h.fromPublic=function(k,a,g){return a instanceof h?a:new h(k,{pub:a,pubEnc:g})};h.fromPrivate=function(k,a,g){return a instanceof h?a:new h(k,{priv:a,privEnc:g})};h.prototype.validate=function(){var k=this.getPublic();return k.isInfinity()?{result:!1,reason:"Invalid public key"}:k.validate()?k.mul(this.ec.curve.n).isInfinity()? {result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};h.prototype.getPublic=function(k,a){"string"===typeof k&&(a=k,k=null);this.pub||(this.pub=this.ec.g.mul(this.priv));return a?this.pub.encode(a,k):this.pub};h.prototype.getPrivate=function(k){return"hex"===k?this.priv.toString(16,2):this.priv};h.prototype._importPrivate=function(k,a){this.priv=new n(k,a||16);this.priv=this.priv.umod(this.ec.curve.n)};h.prototype._importPublic=function(k, a){k.x||k.y?("mont"===this.ec.curve.type?q(k.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&q(k.x&&k.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(k.x,k.y)):this.pub=this.ec.curve.decodePoint(k,a)};h.prototype.derive=function(k){return k.mul(this.priv).getX()};h.prototype.sign=function(k,a,g){return this.ec.sign(k,this,a,g)};h.prototype.verify=function(k,a){return this.ec.verify(k,a,this)};h.prototype.inspect=function(){return""}},{"../utils":158,"bn.js":159}],153:[function(r,H,A){function h(b,d){if(b instanceof h)return b;this._importDER(b,d)||(e(b.r&&b.s,"Signature without r or s"),this.r=new g(b.r,16),this.s=new g(b.s,16),this.recoveryParam=void 0===b.recoveryParam?null:b.recoveryParam)}function n(){this.place=0}function q(b,d){var f=b[d.place++];if(!(f&128))return f;f&=15;if(0===f||4>>=0;if(127>=p)return!1;d.place=y;return p}function k(b){for(var d=0,f=b.length-1;!(b[d]||b[d+1]&128)&&dd)){var f=1+(Math.log(d)/Math.LN2>>>3);for(b.push(f|128);--f;)b.push(d>>>(f<<3)&255)}b.push(d)}var g=r("bn.js"),m=r("../utils"),e=m.assert;H.exports=h;h.prototype._importDER=function(b,d){b=m.toArray(b,d);d=new n;if(48!==b[d.place++])return!1;var f=q(b,d);if(!1===f||f+d.place!==b.length||2!==b[d.place++])return!1;var p=q(b,d); if(!1===p)return!1;f=b.slice(d.place,p+d.place);d.place+=p;if(2!==b[d.place++])return!1;p=q(b,d);if(!1===p||b.length!==p+d.place)return!1;b=b.slice(d.place,p+d.place);if(0===f[0])if(f[1]&128)f=f.slice(1);else return!1;if(0===b[0])if(b[1]&128)b=b.slice(1);else return!1;this.r=new g(f);this.s=new g(b);this.recoveryParam=null;return!0};h.prototype.toDER=function(b){var d=this.r.toArray(),f=this.s.toArray();d[0]&128&&(d=[0].concat(d));f[0]&128&&(f=[0].concat(f));d=k(d);for(f=k(f);!(f[0]||f[1]&128);)f= f.slice(1);var p=[2];a(p,d.length);p=p.concat(d);p.push(2);a(p,f.length);d=p.concat(f);f=[48];a(f,d.length);f=f.concat(d);return m.encode(f,b)}},{"../utils":158,"bn.js":159}],154:[function(r,H,A){function h(b){a("ed25519"===b,"only tested with ed25519 so far");if(!(this instanceof h))return new h(b);this.curve=b=q[b].curve;this.g=b.g;this.g.precompute(b.n.bitLength()+1);this.pointClass=b.point().constructor;this.encodingLength=Math.ceil(b.n.bitLength()/8);this.hash=n.sha512}var n=r("hash.js"),q=r("../curves"), k=r("../utils"),a=k.assert,g=k.parseBytes,m=r("./key"),e=r("./signature");H.exports=h;h.prototype.sign=function(b,d){b=g(b);var f=this.keyFromSecret(d),p=this.hashInt(f.messagePrefix(),b);d=this.g.mul(p);var u=this.encodePoint(d);b=this.hashInt(u,f.pubBytes(),b).mul(f.priv());b=p.add(b).umod(this.curve.n);return this.makeSignature({R:d,S:b,Rencoded:u})};h.prototype.verify=function(b,d,f){b=g(b);d=this.makeSignature(d);f=this.keyFromPublic(f);b=this.hashInt(d.Rencoded(),f.pubBytes(),b);var p=this.g.mul(d.S()); return d.R().add(f.pub().mul(b)).eq(p)};h.prototype.hashInt=function(){for(var b=this.hash(),d=0;d(q>>1)-1?(q>>1)-g:g,n.isubn(g)):g=0;k[a]=g;n.iushrn(1)}return k};A.getJSF=function(n,q){var k=[[],[]];n=n.clone();q=q.clone();for(var a=0,g=0;0C&&(T.warned=!0,C=Error("Possible EventEmitter memory leak detected. "+ T.length+' "'+String(G)+'" listeners added. Use emitter.setMaxListeners() to increase limit.'),C.name="MaxListenersExceededWarning",C.emitter=z,C.type=G,C.count=T.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",C.name,C.message))):(M[G]=C,++z._eventsCount);return z}function q(){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 z=Array(arguments.length),G=0;Gz||z!==z)throw new TypeError('"defaultMaxListeners" must be a positive number');y=z}}):h.defaultMaxListeners= y;h.prototype.setMaxListeners=function(z){if("number"!==typeof z||0>z||isNaN(z))throw new TypeError('"n" argument must be a positive number');this._maxListeners=z;return this};h.prototype.getMaxListeners=function(){return void 0===this._maxListeners?h.defaultMaxListeners:this._maxListeners};h.prototype.emit=function(z){var G,C,N;var M="error"===z;if(N=this._events)M=M&&null==N.error;else if(!M)return!1;if(M){1T)return this;if(0===T)M.shift();else{C=T+1;for(var l=M.length;C=this._blockSize;){for(var m=this._blockOffset;mk;++k)this._length[k]=0;return a};h.prototype._digest=function(){throw Error("_digest is not implemented");};H.exports=h},{inherits:193,"readable-stream":178,"safe-buffer":243}],164:[function(r,H,A){arguments[4][73][0].apply(A,arguments)},{dup:73}],165:[function(r,H,A){arguments[4][74][0].apply(A,arguments)},{"./_stream_readable":167,"./_stream_writable":169,_process:218,dup:74,inherits:193}],166:[function(r, H,A){arguments[4][75][0].apply(A,arguments)},{"./_stream_transform":168,dup:75,inherits:193}],167:[function(r,H,A){arguments[4][76][0].apply(A,arguments)},{"../errors":164,"./_stream_duplex":165,"./internal/streams/async_iterator":170,"./internal/streams/buffer_list":171,"./internal/streams/destroy":172,"./internal/streams/from":174,"./internal/streams/state":176,"./internal/streams/stream":177,_process:218,buffer:89,dup:76,events:161,inherits:193,"string_decoder/":254,util:44}],168:[function(r,H, A){arguments[4][77][0].apply(A,arguments)},{"../errors":164,"./_stream_duplex":165,dup:77,inherits:193}],169:[function(r,H,A){arguments[4][78][0].apply(A,arguments)},{"../errors":164,"./_stream_duplex":165,"./internal/streams/destroy":172,"./internal/streams/state":176,"./internal/streams/stream":177,_process:218,buffer:89,dup:78,inherits:193,"util-deprecate":258}],170:[function(r,H,A){arguments[4][79][0].apply(A,arguments)},{"./end-of-stream":173,_process:218,dup:79}],171:[function(r,H,A){arguments[4][80][0].apply(A, arguments)},{buffer:89,dup:80,util:44}],172:[function(r,H,A){arguments[4][81][0].apply(A,arguments)},{_process:218,dup:81}],173:[function(r,H,A){arguments[4][82][0].apply(A,arguments)},{"../../../errors":164,dup:82}],174:[function(r,H,A){arguments[4][83][0].apply(A,arguments)},{dup:83}],175:[function(r,H,A){arguments[4][84][0].apply(A,arguments)},{"../../../errors":164,"./end-of-stream":173,dup:84}],176:[function(r,H,A){arguments[4][85][0].apply(A,arguments)},{"../../../errors":164,dup:85}],177:[function(r, H,A){arguments[4][86][0].apply(A,arguments)},{dup:86,events:161}],178:[function(r,H,A){arguments[4][87][0].apply(A,arguments)},{"./lib/_stream_duplex.js":165,"./lib/_stream_passthrough.js":166,"./lib/_stream_readable.js":167,"./lib/_stream_transform.js":168,"./lib/_stream_writable.js":169,"./lib/internal/streams/end-of-stream.js":173,"./lib/internal/streams/pipeline.js":175,dup:87}],179:[function(r,H,A){A.utils=r("./hash/utils");A.common=r("./hash/common");A.sha=r("./hash/sha");A.ripemd=r("./hash/ripemd"); A.hmac=r("./hash/hmac");A.sha1=A.sha.sha1;A.sha256=A.sha.sha256;A.sha224=A.sha.sha224;A.sha384=A.sha.sha384;A.sha512=A.sha.sha512;A.ripemd160=A.ripemd.ripemd160},{"./hash/common":180,"./hash/hmac":181,"./hash/ripemd":182,"./hash/sha":183,"./hash/utils":190}],180:[function(r,H,A){function h(){this.pending=null;this.pendingTotal=0;this.blockSize=this.constructor.blockSize;this.outSize=this.constructor.outSize;this.hmacStrength=this.constructor.hmacStrength;this.padLength=this.constructor.padLength/ 8;this.endian="big";this._delta8=this.blockSize/8;this._delta32=this.blockSize/32}var n=r("./utils"),q=r("minimalistic-assert");A.BlockHash=h;h.prototype.update=function(k,a){k=n.toArray(k,a);this.pending=this.pending?this.pending.concat(k):k;this.pendingTotal+=k.length;if(this.pending.length>=this._delta8)for(k=this.pending,a=k.length%this._delta8,this.pending=k.slice(k.length-a,k.length),0===this.pending.length&&(this.pending=null),k=n.join32(k,0,k.length-a,this.endian),a=0;a>>24&255;a[m++]=k>>>16&255;a[m++]=k>>>8&255;a[m++]=k&255}else for(a[m++]=k&255,a[m++]=k>>>8&255,a[m++]= k>>>16&255,a[m++]=k>>>24&255,a[m++]=0,a[m++]=0,a[m++]=0,a[m++]=0,g=8;gthis.blockSize&&(k=(new this.Hash).update(k).digest()); q(k.length<=this.blockSize);for(var a=k.length;a=u?y^D^z:31>=u?y&D|~y&z:47>=u?(y|~D)^z:63>=u?y&z|D&~z:y^(D|~z)}var q=r("./utils");r=r("./common");var k=q.rotl32,a=q.sum32,g=q.sum32_3,m=q.sum32_4,e=r.BlockHash;q.inherits(h,e);A.ripemd160=h;h.blockSize=512;h.outSize=160;h.hmacStrength=192;h.padLength=64;h.prototype._update=function(u,y){for(var D=this.h[0],z=this.h[1],G=this.h[2],C=this.h[3],N=this.h[4],M=D,T=z,Q=G,l=C,B= N,c=0;80>c;c++){var t=a(k(m(D,n(c,z,G,C),u[b[c]+y],15>=c?0:31>=c?1518500249:47>=c?1859775393:63>=c?2400959708:2840853838),f[c]),N);D=N;N=C;C=k(G,10);G=z;z=t;t=a(k(m(M,n(79-c,T,Q,l),u[d[c]+y],15>=c?1352829926:31>=c?1548603684:47>=c?1836072691:63>=c?2053994217:0),p[c]),B);M=B;B=l;l=k(Q,10);Q=T;T=t}t=g(this.h[1],G,l);this.h[1]=g(this.h[2],C,B);this.h[2]=g(this.h[3],N,M);this.h[3]=g(this.h[4],D,T);this.h[4]=g(this.h[0],z,Q);this.h[0]=t};h.prototype._digest=function(u){return"hex"===u?q.toHex32(this.h, "little"):q.split32(this.h,"little")};var 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],d=[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],p=[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]},{"./common":180,"./utils":190}],183:[function(r,H,A){A.sha1=r("./sha/1");A.sha224=r("./sha/224");A.sha256=r("./sha/256");A.sha384=r("./sha/384");A.sha512=r("./sha/512")}, {"./sha/1":184,"./sha/224":185,"./sha/256":186,"./sha/384":187,"./sha/512":188}],184:[function(r,H,A){function h(){if(!(this instanceof h))return new h;m.call(this);this.h=[1732584193,4023233417,2562383102,271733878,3285377520];this.W=Array(80)}var n=r("../utils");A=r("../common");r=r("./common");var q=n.rotl32,k=n.sum32,a=n.sum32_5,g=r.ft_1,m=A.BlockHash,e=[1518500249,1859775393,2400959708,3395469782];n.inherits(h,m);H.exports=h;h.blockSize=512;h.outSize=160;h.hmacStrength=80;h.padLength=64;h.prototype._update= function(b,d){for(var f=this.W,p=0;16>p;p++)f[p]=b[d+p];for(;pN;N++)C[N]=z[G+N];for(;NM;M++)N[M]=G[C+M];for(;MG&&(G+=4294967296);Q=N[M-4];var l=N[M-3];C=a(Q,l,19);T=a(l,Q,29); Q=m(Q,l,6);C=C^T^Q;0>C&&(C+=4294967296);T=N[M-14];Q=N[M-13];var B=N[M-30],c=N[M-29];l=k(B,c,1);var t=k(B,c,8);B=g(B,c,7);l=l^t^B;0>l&&(l+=4294967296);c=N[M-30];var F=N[M-29];t=a(c,F,1);B=a(c,F,8);c=m(c,F,7);t=t^B^c;0>t&&(t+=4294967296);B=N[M-32];c=N[M-31];N[M]=f(G,C,T,Q,l,t,B,c);N[M+1]=p(G,C,T,Q,l,t,B,c)}};h.prototype._update=function(G,C){this._prepareBlock(G,C);G=this.W;C=this.h[0];var N=this.h[1],M=this.h[2],T=this.h[3],Q=this.h[4],l=this.h[5],B=this.h[6],c=this.h[7],t=this.h[8],F=this.h[9],J= this.h[10],v=this.h[11],w=this.h[12],x=this.h[13],I=this.h[14],S=this.h[15];q(this.k.length===G.length);for(var X=0;XY&&(Y+=4294967296);aa=Y;ba=t;var L=F;Y=a(ba,L,14);ea=a(ba,L,18);ba=a(L,ba,9);Y=Y^ea^ba;0>Y&&(Y+=4294967296);ba=Y;Y=t&J^~t&w;0>Y&&(Y+=4294967296);ea=Y;Y=F&v^~F&x;0>Y&&(Y+=4294967296);L=Y;var R=this.k[X],Z=this.k[X+1],ca=G[X],ka=G[X+1];Y=u(I,S,aa,ba,ea,L,R,Z,ca,ka);ea=y(I,S,aa,ba,ea,L,R,Z,ca,ka); aa=C;ba=N;I=k(aa,ba,28);S=k(ba,aa,2);aa=k(ba,aa,7);I=I^S^aa;0>I&&(I+=4294967296);ba=C;L=N;S=a(ba,L,28);aa=a(L,ba,2);ba=a(L,ba,7);S=S^aa^ba;0>S&&(S+=4294967296);aa=C&M^C&Q^M&Q;0>aa&&(aa+=4294967296);ba=N&T^N&l^T&l;0>ba&&(ba+=4294967296);L=b(I,S,aa,ba);aa=d(I,S,aa,ba);I=w;S=x;w=J;x=v;J=t;v=F;t=b(B,c,Y,ea);F=d(c,c,Y,ea);B=Q;c=l;Q=M;l=T;M=C;T=N;C=b(Y,ea,L,aa);N=d(Y,ea,L,aa)}e(this.h,0,C,N);e(this.h,2,M,T);e(this.h,4,Q,l);e(this.h,6,B,c);e(this.h,8,t,F);e(this.h,10,J,v);e(this.h,12,w,x);e(this.h,14,I, S)};h.prototype._digest=function(G){return"hex"===G?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":180,"../utils":190,"minimalistic-assert":199}],189:[function(r,H,A){function h(q,k,a){return q&k^q&a^k&a}var n=r("../utils").rotr32;A.ft_1=function(q,k,a,g){if(0===q)return k&a^~k&g;if(1===q||3===q)return k^a^g;if(2===q)return h(k,a,g)};A.ch32=function(q,k,a){return q&k^~q&a};A.maj32=h;A.p32=function(q,k,a){return q^k^a};A.s0_256=function(q){return n(q,2)^n(q,13)^n(q,22)};A.s1_256=function(q){return n(q, 6)^n(q,11)^n(q,25)};A.g0_256=function(q){return n(q,7)^n(q,18)^q>>>3};A.g1_256=function(q){return n(q,17)^n(q,19)^q>>>10}},{"../utils":190}],190:[function(r,H,A){function h(a){return(a>>>24|a>>>8&65280|a<<8&16711680|(a&255)<<24)>>>0}function n(a){return 1===a.length?"0"+a:a}function q(a){return 7===a.length?"0"+a:6===a.length?"00"+a:5===a.length?"000"+a:4===a.length?"0000"+a:3===a.length?"00000"+a:2===a.length?"000000"+a:1===a.length?"0000000"+a:a}var k=r("minimalistic-assert");r=r("inherits");A.inherits= r;A.toArray=function(a,g){if(Array.isArray(a))return a.slice();if(!a)return[];var m=[];if("string"===typeof a)if(!g)for(var e=g=0;eb)m[g++]=b;else{if(2048>b)m[g++]=b>>6|192;else{var d=a;var f=e;d=55296!==(d.charCodeAt(f)&64512)?!1:0>f||f+1>=d.length?!1:56320===(d.charCodeAt(f+1)&64512);d?(b=65536+((b&1023)<<10)+(a.charCodeAt(++e)&1023),m[g++]=b>>18|240,m[g++]=b>>12&63|128):m[g++]=b>>12|224;m[g++]=b>>6&63|128}m[g++]=b&63|128}}else{if("hex"===g)for(a=a.replace(/[^a-z0-9]+/ig, ""),0!==a.length%2&&(a="0"+a),e=0;e>>0;return m};A.split32=function(a,g){for(var m=Array(4*a.length),e=0,b=0;e>>24,m[b+1]=d>>>16&255,m[b+2]=d>>>8&255,m[b+3]=d&255):(m[b+3]=d>>>24,m[b+2]=d>>>16&255,m[b+1]=d>>>8&255,m[b]=d&255)}return m};A.rotr32=function(a,g){return a>>>g|a<<32-g};A.rotl32=function(a,g){return a<>>32-g};A.sum32=function(a,g){return a+g>>>0};A.sum32_3=function(a,g,m){return a+g+m>>>0};A.sum32_4=function(a,g,m,e){return a+ g+m+e>>>0};A.sum32_5=function(a,g,m,e,b){return a+g+m+e+b>>>0};A.sum64=function(a,g,m,e){var b=e+a[g+1]>>>0;a[g]=(b>>0;a[g+1]=b};A.sum64_hi=function(a,g,m,e){return(g+e>>>0>>0};A.sum64_lo=function(a,g,m,e){return g+e>>>0};A.sum64_4_hi=function(a,g,m,e,b,d,f,p){e=g+e>>>0;g=e>>0;g+=e>>0>>0};A.sum64_4_lo=function(a,g,m,e,b,d,f,p){return g+e+d+p>>>0};A.sum64_5_hi=function(a,g,m,e,b,d,f,p,u,y){e=g+e>>>0;g=e>>0; g+=e>>0;g+=e>>0>>0};A.sum64_5_lo=function(a,g,m,e,b,d,f,p,u,y){return g+e+d+p+y>>>0};A.rotr64_hi=function(a,g,m){return(g<<32-m|a>>>m)>>>0};A.rotr64_lo=function(a,g,m){return(a<<32-m|g>>>m)>>>0};A.shr64_hi=function(a,g,m){return a>>>m};A.shr64_lo=function(a,g,m){return(a<<32-m|g>>>m)>>>0}},{inherits:193,"minimalistic-assert":199}],191:[function(r,H,A){function h(a){if(!(this instanceof h))return new h(a);this.hash=a.hash;this.predResist=!!a.predResist; this.outLen=this.hash.outSize;this.minEntropy=a.minEntropy||this.hash.hmacStrength;this.V=this.K=this.reseedInterval=this._reseed=null;var g=q.toArray(a.entropy,a.entropyEnc||"hex"),m=q.toArray(a.nonce,a.nonceEnc||"hex");a=q.toArray(a.pers,a.persEnc||"hex");k(g.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._init(g,m,a)}var n=r("hash.js"),q=r("minimalistic-crypto-utils"),k=r("minimalistic-assert");H.exports=h;h.prototype._init=function(a,g,m){a=a.concat(g).concat(m); this.K=Array(this.outLen/8);this.V=Array(this.outLen/8);for(g=0;g=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits");this._update(a.concat(m||[]));this._reseed=1};h.prototype.generate=function(a,g,m,e){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!==typeof g&&(e=m,m=g,g=null);m&&(m=q.toArray(m,e||"hex"),this._update(m));for(e=[];e.length>1,b=-7;a=q?a-1:0;var d=q?-1:1,f=h[n+a];a+=d;q=f&(1<<-b)-1;f>>=-b;for(b+=g;0>=-b;for(b+=k;0>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0;g=k?0:g-1;var p=k?1:-1,u=0>n||0===n&&0>1/n?1:0;n=Math.abs(n);isNaN(n)||Infinity===n?(n=isNaN(n)?1:0,k=b):(k=Math.floor(Math.log(n)/Math.LN2),1>n*(m=Math.pow(2,-k))&&(k--,m*=2),n=1<=k+d?n+f/m:n+f*Math.pow(2,1-d),2<=n*m&&(k++,m/=2),k+d>=b?(n=0,k=b):1<=k+d?(n=(n*m-1)*Math.pow(2,a),k+=d):(n=n*Math.pow(2,d-1)*Math.pow(2,a),k=0));for(;8<=a;h[q+g]=n&255,g+=p,n/=256,a-=8);k=k<< a|n;for(e+=a;0>>32-f}function q(d,f,p,u,y,D,z){return n(d+(f&p|~f&u)+y+D|0,z)+f|0}function k(d,f, p,u,y,D,z){return n(d+(f&u|p&~u)+y+D|0,z)+f|0}function a(d,f,p,u,y,D,z){return n(d+(f^p^u)+y+D|0,z)+f|0}function g(d,f,p,u,y,D,z){return n(d+(p^(f|~u))+y+D|0,z)+f|0}A=r("inherits");var m=r("hash-base"),e=r("safe-buffer").Buffer,b=Array(16);A(h,m);h.prototype._update=function(){for(var d=0;16>d;++d)b[d]=this._block.readInt32LE(4*d);d=this._a;var f=this._b,p=this._c,u=this._d;d=q(d,f,p,u,b[0],3614090360,7);u=q(u,d,f,p,b[1],3905402710,12);p=q(p,u,d,f,b[2],606105819,17);f=q(f,p,u,d,b[3],3250441966,22); d=q(d,f,p,u,b[4],4118548399,7);u=q(u,d,f,p,b[5],1200080426,12);p=q(p,u,d,f,b[6],2821735955,17);f=q(f,p,u,d,b[7],4249261313,22);d=q(d,f,p,u,b[8],1770035416,7);u=q(u,d,f,p,b[9],2336552879,12);p=q(p,u,d,f,b[10],4294925233,17);f=q(f,p,u,d,b[11],2304563134,22);d=q(d,f,p,u,b[12],1804603682,7);u=q(u,d,f,p,b[13],4254626195,12);p=q(p,u,d,f,b[14],2792965006,17);f=q(f,p,u,d,b[15],1236535329,22);d=k(d,f,p,u,b[1],4129170786,5);u=k(u,d,f,p,b[6],3225465664,9);p=k(p,u,d,f,b[11],643717713,14);f=k(f,p,u,d,b[0],3921069994, 20);d=k(d,f,p,u,b[5],3593408605,5);u=k(u,d,f,p,b[10],38016083,9);p=k(p,u,d,f,b[15],3634488961,14);f=k(f,p,u,d,b[4],3889429448,20);d=k(d,f,p,u,b[9],568446438,5);u=k(u,d,f,p,b[14],3275163606,9);p=k(p,u,d,f,b[3],4107603335,14);f=k(f,p,u,d,b[8],1163531501,20);d=k(d,f,p,u,b[13],2850285829,5);u=k(u,d,f,p,b[2],4243563512,9);p=k(p,u,d,f,b[7],1735328473,14);f=k(f,p,u,d,b[12],2368359562,20);d=a(d,f,p,u,b[5],4294588738,4);u=a(u,d,f,p,b[8],2272392833,11);p=a(p,u,d,f,b[11],1839030562,16);f=a(f,p,u,d,b[14],4259657740, 23);d=a(d,f,p,u,b[1],2763975236,4);u=a(u,d,f,p,b[4],1272893353,11);p=a(p,u,d,f,b[7],4139469664,16);f=a(f,p,u,d,b[10],3200236656,23);d=a(d,f,p,u,b[13],681279174,4);u=a(u,d,f,p,b[0],3936430074,11);p=a(p,u,d,f,b[3],3572445317,16);f=a(f,p,u,d,b[6],76029189,23);d=a(d,f,p,u,b[9],3654602809,4);u=a(u,d,f,p,b[12],3873151461,11);p=a(p,u,d,f,b[15],530742520,16);f=a(f,p,u,d,b[2],3299628645,23);d=g(d,f,p,u,b[0],4096336452,6);u=g(u,d,f,p,b[7],1126891415,10);p=g(p,u,d,f,b[14],2878612391,15);f=g(f,p,u,d,b[5],4237533241, 21);d=g(d,f,p,u,b[12],1700485571,6);u=g(u,d,f,p,b[3],2399980690,10);p=g(p,u,d,f,b[10],4293915773,15);f=g(f,p,u,d,b[1],2240044497,21);d=g(d,f,p,u,b[8],1873313359,6);u=g(u,d,f,p,b[15],4264355552,10);p=g(p,u,d,f,b[6],2734768916,15);f=g(f,p,u,d,b[13],1309151649,21);d=g(d,f,p,u,b[4],4149444226,6);u=g(u,d,f,p,b[11],3174756917,10);p=g(p,u,d,f,b[2],718787259,15);f=g(f,p,u,d,b[9],3951481745,21);this._a=this._a+d|0;this._b=this._b+f|0;this._c=this._c+p|0;this._d=this._d+u|0};h.prototype._digest=function(){this._block[this._blockOffset++]= 128;56>8;g&=255;m?a.push(m,g):a.push(g)}return a}; A.zero2=h;A.toHex=n;A.encode=function(q,k){return"hex"===k?n(q):q}},{}],201:[function(r,H,A){var h=r("safe-buffer").Buffer,n=r("assert"),q=r("bl"),k=r("./lib/streams"),a=r("./lib/decoder"),g=r("./lib/encoder");H.exports=function(m){var e=[],b=[];m=m||{forceFloat64:!1,compatibilityMode:!1,disableTimestampEncoding:!1};return{encode:g(e,m.forceFloat64,m.compatibilityMode,m.disableTimestampEncoding),decode:a(b),register:function(d,f,p,u){n(f,"must have a constructor");n(p,"must have an encode function"); n(0<=d,"must have a non-negative type");n(u,"must have a decode function");this.registerEncoder(function(y){return y instanceof f},function(y){var D=q(),z=h.allocUnsafe(1);z.writeInt8(d,0);D.append(z);D.append(p(y));return D});this.registerDecoder(d,u);return this},registerEncoder:function(d,f){n(d,"must have an encode function");n(f,"must have an encode function");e.push({check:d,encode:f});return this},registerDecoder:function(d,f){n(0<=d,"must have a non-negative type");n(f,"must have a decode function"); b.push({type:d,decode:f});return this},encoder:k.encoder,decoder:k.decoder,buffer:!0,type:"msgpack5",IncompleteBufferError:a.IncompleteBufferError}}},{"./lib/decoder":202,"./lib/encoder":203,"./lib/streams":204,assert:36,bl:41,"safe-buffer":243}],202:[function(r,H,A){function h(q){Error.call(this);Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor);this.name=this.constructor.name;this.message=q||"unable to decode"}var n=r("bl");r("util").inherits(h,Error);H.exports=function(q){function k(f){switch(f){case 196:return 2; case 197:return 3;case 198:return 5;case 199:return 3;case 200:return 4;case 201:return 6;case 202:return 5;case 203:return 9;case 204:return 2;case 205:return 3;case 206:return 5;case 207:return 9;case 208:return 2;case 209:return 3;case 210:return 5;case 211:return 9;case 212:return 3;case 213:return 4;case 214:return 6;case 215:return 10;case 216:return 18;case 217:return 2;case 218:return 3;case 219:return 5;case 222:return 3;default:return-1}}function a(f,p){return{value:f,bytesConsumed:p}}function g(f, p){p=void 0===p?0:p;var u=f.length-p;if(0>=u)return null;var y=f.readUInt8(p),D=0;var z=k(y);if(-1!==z&&u>=8;u=p.readUInt32BE(0);p=p.readUInt32BE(4);return a((4294967296*u+p)*(f?-1:1),9);case 202:return D=f.readFloatBE(p+1),a(D,5);case 203:return D=f.readDoubleBE(p+1),a(D,9);case 217:y=f.readUInt8(p+1);if(!(u>=2+y))return null;D=f.toString("utf8",p+2,p+2+y);return a(D,2+y);case 218:y=f.readUInt16BE(p+1);if(!(u>=3+y))return null;D=f.toString("utf8",p+3,p+3+y);return a(D, 3+y);case 219:y=f.readUInt32BE(p+1);if(!(u>=5+y))return null;D=f.toString("utf8",p+5,p+5+y);return a(D,5+y);case 196:y=f.readUInt8(p+1);if(!(u>=2+y))return null;D=f.slice(p+2,p+2+y);return a(D,2+y);case 197:y=f.readUInt16BE(p+1);if(!(u>=3+y))return null;D=f.slice(p+3,p+3+y);return a(D,3+y);case 198:y=f.readUInt32BE(p+1);if(!(u>=5+y))return null;D=f.slice(p+5,p+5+y);return a(D,5+y);case 220:if(3>u)return null;y=f.readUInt16BE(p+1);return m(f,p,y,3);case 221:if(5>u)return null;y=f.readUInt32BE(p+1); return m(f,p,y,5);case 222:return y=f.readUInt16BE(p+1),e(f,p,y,3);case 223:return y=f.readUInt32BE(p+1),e(f,p,y,5);case 212:return b(f,p,1);case 213:return b(f,p,2);case 214:return b(f,p,4);case 215:return b(f,p,8);case 216:return b(f,p,16);case 199:return y=f.readUInt8(p+1),D=f.readUInt8(p+2),u>=3+y?d(f,p,D,y,3):null;case 200:return y=f.readUInt16BE(p+1),D=f.readUInt8(p+3),u>=4+y?d(f,p,D,y,4):null;case 201:return y=f.readUInt32BE(p+1),D=f.readUInt8(p+5),u>=6+y?d(f,p,D,y,6):null}if(144===(y&240))return m(f, p,y&15,1);if(128===(y&240))return e(f,p,y&15,1);if(160===(y&224))return y&=31,u>=1+y?(D=f.toString("utf8",p+1,p+y+1),a(D,y+1)):null;if(224<=y)return a(y-256,1);if(128>y)return a(y,1);throw Error("not implemented yet");}function m(f,p,u,y){var D=[],z,G=0;p+=y;for(z=0;zu)switch(u){case -1:p=f=f.slice(p,p+y);f=0;switch(y){case 4:var z=p.readUInt32BE(0);break;case 8:z=p.readUInt32BE(0);p=p.readUInt32BE(4);f=z/4;z=(z&3)*Math.pow(2,32)+p;break;case 12:throw Error("timestamp 96 is not yet implemented");}return a(new Date(1E3*z+Math.round(f/1E6)),y+D)}for(z= 0;ze;b&&(e=Math.abs(e));var d=e%4294967296;g.writeUInt32BE(Math.floor(e/4294967296),m+0);g.writeUInt32BE(d, m+4);if(b)for(b=1,e=m+7;e>=m;e--)b=(g[e]^255)+b,g[e]=b&255,b>>=8}function q(g,m){var e=!0;Math.fround&&(e=Math.fround(g)!==g);m&&(e=!0);e?(m=k.allocUnsafe(9),m[0]=203,m.writeDoubleBE(g,1)):(m=k.allocUnsafe(5),m[0]=202,m.writeFloatBE(g,1));return m}var k=r("safe-buffer").Buffer,a=r("bl");H.exports=function(g,m,e,b){function d(y,D){if(void 0===y)throw Error("undefined is not encodable in msgpack!");if(y!==y&&"number"===typeof y)throw Error("NaN is not encodable in msgpack!");if(null===y){var z=k.allocUnsafe(1); z[0]=192}else if(!0===y)z=k.allocUnsafe(1),z[0]=195;else if(!1===y)z=k.allocUnsafe(1),z[0]=194;else if("string"===typeof y){var G=k.byteLength(y);32>G?(z=k.allocUnsafe(1+G),z[0]=160|G,0=G&&!e?(z=k.allocUnsafe(2+G),z[0]=217,z[1]=G,z.write(y,2)):65535>=G?(z=k.allocUnsafe(3+G),z[0]=218,z.writeUInt16BE(G,1),z.write(y,3)):(z=k.allocUnsafe(5+G),z[0]=219,z.writeUInt32BE(G,1),z.write(y,5))}else if(y&&(y.readUInt32LE||y instanceof Uint8Array))y instanceof Uint8Array&&(y=k.from(y)),255>= y.length?(z=k.allocUnsafe(2),z[0]=196,z[1]=y.length):65535>=y.length?(z=k.allocUnsafe(3),z[0]=197,z.writeUInt16BE(y.length,1)):(z=k.allocUnsafe(5),z[0]=198,z.writeUInt32BE(y.length,1)),z=a([z,y]);else if(Array.isArray(y))16>y.length?(z=k.allocUnsafe(1),z[0]=144|y.length):65536>y.length?(z=k.allocUnsafe(3),z[0]=220,z.writeUInt16BE(y.length,1)):(z=k.allocUnsafe(5),z[0]=221,z.writeUInt32BE(y.length,1)),z=y.reduce(function(C,N){C.append(d(N,!0));return C},a().append(z));else{if(!b&&"function"===typeof y.getDate)return f(y); if("object"===typeof y)z=p(y)||u(y);else if("number"===typeof y){if(0!==y%1)return q(y,m);if(0<=y)if(128>y)z=k.allocUnsafe(1),z[0]=y;else if(256>y)z=k.allocUnsafe(2),z[0]=204,z[1]=y;else if(65536>y)z=k.allocUnsafe(3),z[0]=205,z.writeUInt16BE(y,1);else if(4294967295>=y)z=k.allocUnsafe(5),z[0]=206,z.writeUInt32BE(y,1);else if(9007199254740991>=y)z=k.allocUnsafe(9),z[0]=207,h(z,y);else return q(y,!0);else if(-32<=y)z=k.allocUnsafe(1),z[0]=256+y;else if(-128<=y)z=k.allocUnsafe(2),z[0]=208,z.writeInt8(y, 1);else if(-32768<=y)z=k.allocUnsafe(3),z[0]=209,z.writeInt16BE(y,1);else if(-214748365y?(z.push(199),z.push(y)):(65536>y?(z.push(200),z.push(y>>8)):(z.push(201),z.push(y>>24),z.push(y>>16&255),z.push(y>>8&255)),z.push(y&255));return a().append(k.from(z)).append(G)}function u(y){var D=[],z=0, G;for(G in y)y.hasOwnProperty(G)&&void 0!==y[G]&&"function"!==typeof y[G]&&(++z,D.push(d(G,!0)),D.push(d(y[G],!0)));16>z?(y=k.allocUnsafe(1),y[0]=128|z):65535>z?(y=k.allocUnsafe(3),y[0]=222,y.writeUInt16BE(z,1)):(y=k.allocUnsafe(5),y[0]=223,y.writeUInt32BE(z,1));D.unshift(y);return D.reduce(function(C,N){return C.append(N)},a())}return d}},{bl:41,"safe-buffer":243}],204:[function(r,H,A){function h(g){g=g||{};g.objectMode=!0;g.highWaterMark=16;k.call(this,g);this._msgpack=g.msgpack}function n(g){if(!(this instanceof n))return g=g||{},g.msgpack=this,new n(g);h.call(this,g);this._wrap="wrap"in g&&g.wrap}function q(g){if(!(this instanceof q))return g=g||{},g.msgpack=this,new q(g);h.call(this,g);this._chunks=a();this._wrap="wrap"in g&&g.wrap}var k=r("readable-stream").Transform;A=r("inherits");var a=r("bl");A(h,k);A(n,h);n.prototype._transform=function(g,m,e){m=null;try{m=this._msgpack.encode(this._wrap?g.value:g).slice(0)}catch(b){return this.emit("error",b),e()}this.push(m);e()};A(q,h);q.prototype._transform=function(g, m,e){g&&this._chunks.append(g);try{var b=this._msgpack.decode(this._chunks);this._wrap&&(b={value:b});this.push(b)}catch(d){d instanceof this._msgpack.IncompleteBufferError?e():this.emit("error",d);return}0k;k++)a["_"+String.fromCharCode(k)]=k;if("0123456789"!==Object.getOwnPropertyNames(a).map(function(m){return a[m]}).join(""))return!1;var g={};"abcdefghijklmnopqrst".split("").forEach(function(m){g[m]=m});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},g)).join("")?!1:!0}catch(m){return!1}}()?Object.assign:function(k,a){if(null===k||void 0===k)throw new TypeError("Object.assign cannot be called with null or undefined"); var g=Object(k);for(var m,e=1;en)throw new TypeError("Bad iterations");if("number"!==typeof q)throw new TypeError("Key length not a number");if(0>q||q>h||q!==q)throw new TypeError("Bad key length");}},{}],215:[function(r,H,A){function h(p,u,y){var D=n(p),z="sha512"===p||"sha384"===p?128:64;u.length>z?u=D(u):u.lengthu||0<=(new k(d)).cmp(b.modulus))throw Error("decryption error");d=f?m(new k(d),b):a(d,b);var y=e.alloc(u-d.length);d=e.concat([y,d],u);if(4===p){u=d;p=b.modulus.byteLength();b=g("sha1").update(e.alloc(0)).digest();f=b.length;if(0!==u[0])throw Error("decryption error"); d=u.slice(1,f+1);u=u.slice(f+1);d=q(d,n(u,f));p=q(u,n(d,p-f-1));u=p.slice(0,f);b=e.from(b);u=e.from(u);d=0;y=b.length;b.length!==u.length&&(d++,y=Math.min(b.length,u.length));for(var D=-1;++D=p.length){d++;break}y=p.slice(2,u-1);("0002"!==b.toString("hex")&&!f||"0001"!==b.toString("hex")&&f)&&d++;8>y.length&& d++;if(d)throw Error("decryption error");return p.slice(u)}if(3===p)return d;throw Error("unknown padding");}},{"./mgf":220,"./withPublic":224,"./xor":225,"bn.js":221,"browserify-rsa":65,"create-hash":94,"parse-asn1":210,"safe-buffer":243}],223:[function(r,H,A){var h=r("parse-asn1"),n=r("randombytes"),q=r("create-hash"),k=r("./mgf"),a=r("./xor"),g=r("bn.js"),m=r("./withPublic"),e=r("browserify-rsa"),b=r("safe-buffer").Buffer;H.exports=function(d,f,p){var u=d.padding?d.padding:p?1:4;d=h(d);if(4=== u){u=d.modulus.byteLength();var y=f.length,D=q("sha1").update(b.alloc(0)).digest(),z=D.length,G=2*z;if(y>u-G-2)throw Error("message too long");G=b.alloc(u-y-G-2);var C=u-z-1;y=n(z);f=a(b.concat([D,G,b.alloc(1,1),f],C),k(y,C));z=a(y,k(f,z));f=new g(b.concat([b.alloc(1),z,f],u))}else if(1===u){z=f.length;u=d.modulus.byteLength();if(z>u-11)throw Error("message too long");if(p)z=b.alloc(u-z-3,255);else{z=u-z-3;D=b.allocUnsafe(z);y=0;G=n(2*z);C=0;for(var N;yy||0>D)throw new TypeError("offset must be a uint32");if(D>p||D>z)throw new RangeError("offset out of range");}function a(D,z,G){if("number"!==typeof D||D!==D)throw new TypeError("size must be a number");if(D>y||0>D)throw new TypeError("size must be a uint32");if(D+z>G||D>p)throw new RangeError("buffer too small");}function g(D,z,G,C){if(!(f.isBuffer(D)||D instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array'); if("function"===typeof z)C=z,z=0,G=D.length;else if("function"===typeof G)C=G,G=D.length-z;else if("function"!==typeof C)throw new TypeError('"cb" argument must be a function');k(z,D.length);a(G,z,D.length);return m(D,z,G,C)}function m(D,z,G,C){if(h.browser){G=new Uint8Array(D.buffer,z,G);u.getRandomValues(G);if(C){h.nextTick(function(){C(null,D)});return}return D}if(C)d(G,function(N,M){if(N)return C(N);M.copy(D,z);C(null,D)});else return d(G).copy(D,z),D}function e(D,z,G){"undefined"===typeof z&& (z=0);if(!(f.isBuffer(D)||D instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');k(z,D.length);void 0===G&&(G=D.length-z);a(G,z,D.length);return m(D,z,G)}var b=r("safe-buffer"),d=r("randombytes"),f=b.Buffer,p=b.kMaxLength,u=n.crypto||n.msCrypto,y=Math.pow(2,32)-1;u&&u.getRandomValues||!h.browser?(A.randomFill=g,A.randomFillSync=e):(A.randomFill=q,A.randomFillSync=q)}).call(this,r("_process"),"undefined"!==typeof global?global:"undefined"!==typeof self?self: "undefined"!==typeof window?window:{})},{_process:218,randombytes:226,"safe-buffer":243}],228:[function(r,H,A){H.exports=r("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":229}],229:[function(r,H,A){function h(m){if(!(this instanceof h))return new h(m);a.call(this,m);g.call(this,m);m&&!1===m.readable&&(this.readable=!1);m&&!1===m.writable&&(this.writable=!1);this.allowHalfOpen=!0;m&&!1===m.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended|| k.nextTick(q,this)}function q(m){m.end()}var k=r("process-nextick-args");A=Object.keys||function(m){var e=[],b;for(b in m)e.push(b);return e};H.exports=h;H=Object.create(r("core-util-is"));H.inherits=r("inherits");var a=r("./_stream_readable"),g=r("./_stream_writable");H.inherits(h,a);r=A(g.prototype);for(H=0;H=x||0===I.length&&I.ended)return 0;if(I.objectMode)return 1;if(x!==x)return I.flowing&&I.length?I.buffer.head.data.length:I.length;if(x>I.highWaterMark){var S=x;8388608<=S?S=8388608:(S--,S|=S>>>1,S|=S>>>2,S|=S>>>4,S|=S>>>8,S|=S>>>16,S++);I.highWaterMark= S}return x<=I.length?x:I.ended?I.length:(I.needReadable=!0,0)}function b(x){var I=x._readableState;I.needReadable=!1;I.emittedReadable||(F("emitReadable",I.flowing),I.emittedReadable=!0,I.sync?M.nextTick(d,x):d(x))}function d(x){F("emit readable");x.emit("readable");D(x)}function f(x,I){for(var S=I.length;!I.reading&&!I.flowing&&!I.ended&&I.length=I.length)S=I.decoder?I.buffer.join(""):1===I.buffer.length?I.buffer.head.data:I.buffer.concat(I.length),I.buffer.clear();else{S=I.buffer;I=I.decoder;if(xba.length?ba.length:x;aa=Y===ba.length?aa+ba:aa+ba.slice(0,x);x-=Y;if(0===x){Y===ba.length?(++X,S.head=I.next?I.next:S.tail=null): (S.head=I,I.data=ba.slice(Y));break}++X}S.length-=X;S=aa}else{I=B.allocUnsafe(x);X=S.head;aa=1;X.data.copy(I);for(x-=X.data.length;X=X.next;){ba=X.data;Y=x>ba.length?ba.length:x;ba.copy(I,I.length-x,0,Y);x-=Y;if(0===x){Y===ba.length?(++aa,S.head=X.next?X.next:S.tail=null):(S.head=X,X.data=ba.slice(Y));break}++aa}S.length-=aa;S=I}I=S}S=I}return S}function G(x){var I=x._readableState;if(0=I.highWaterMark||I.ended))return F("read: emitReadable",I.length,I.ended),0===I.length&&I.ended?G(this):b(this),null;x=e(x,I);if(0===x&&I.ended)return 0===I.length&&G(this),null;var X=I.needReadable;F("need readable",X);if(0===I.length||I.length-x>>0);for(var a=this.head,g=0;a;)a.data.copy(k,g),g+=a.data.length,a=a.next;return k};return q}();n&&n.inspect&&n.inspect.custom&&(H.exports.prototype[n.inspect.custom]=function(){var q=n.inspect({length:this.length});return this.constructor.name+" "+q})},{"safe-buffer":237,util:44}],235:[function(r,H,A){function h(q,k){q.emit("error",k)}var n=r("process-nextick-args");H.exports={destroy:function(q,k){var a=this,g=this._writableState&&this._writableState.destroyed;if(this._readableState&& this._readableState.destroyed||g)return k?k(q):!q||this._writableState&&this._writableState.errorEmitted||n.nextTick(h,this,q),this;this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);this._destroy(q||null,function(m){!k&&m?(n.nextTick(h,a,m),a._writableState&&(a._writableState.errorEmitted=!0)):k&&k(m)});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":217}],236:[function(r,H,A){arguments[4][86][0].apply(A,arguments)},{dup:86,events:161}],237:[function(r,H,A){function h(a,g){for(var m in a)g[m]=a[m]}function n(a,g,m){return k(a,g,m)}var q=r("buffer"),k=q.Buffer;k.from&&k.alloc&&k.allocUnsafe&&k.allocUnsafeSlow? H.exports=q:(h(q,A),A.Buffer=n);h(k,n);n.from=function(a,g,m){if("number"===typeof a)throw new TypeError("Argument must not be a number");return k(a,g,m)};n.alloc=function(a,g,m){if("number"!==typeof a)throw new TypeError("Argument must be a number");a=k(a);void 0!==g?"string"===typeof m?a.fill(g,m):a.fill(g):a.fill(0);return a};n.allocUnsafe=function(a){if("number"!==typeof a)throw new TypeError("Argument must be a number");return k(a)};n.allocUnsafeSlow=function(a){if("number"!==typeof a)throw new TypeError("Argument must be a number"); return q.SlowBuffer(a)}},{buffer:89}],238:[function(r,H,A){H.exports=r("./readable").PassThrough},{"./readable":239}],239:[function(r,H,A){A=H.exports=r("./lib/_stream_readable.js");A.Stream=A;A.Readable=A;A.Writable=r("./lib/_stream_writable.js");A.Duplex=r("./lib/_stream_duplex.js");A.Transform=r("./lib/_stream_transform.js");A.PassThrough=r("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":229,"./lib/_stream_passthrough.js":230,"./lib/_stream_readable.js":231,"./lib/_stream_transform.js":232, "./lib/_stream_writable.js":233}],240:[function(r,H,A){H.exports=r("./readable").Transform},{"./readable":239}],241:[function(r,H,A){H.exports=r("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":233}],242:[function(r,H,A){function h(){k.call(this,64);this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520}function n(p,u){return p<>>32-u}var q=r("buffer").Buffer;A=r("inherits");var k=r("hash-base"),a=Array(16),g=[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],e=[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],b=[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],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];A(h,k);h.prototype._update=function(){for(var p=0;16>p;++p)a[p]=this._block.readInt32LE(4*p);var u=this._a|0;p=this._b|0;for(var y=this._c|0,D=this._d| 0,z=this._e|0,G=this._a|0,C=this._b|0,N=this._c|0,M=this._d|0,T=this._e|0,Q=0;80>Q;Q+=1){if(16>Q){var l=z;l=n(u+(p^y^D)+a[g[Q]]+d[0]|0,e[Q])+l|0;u=T;var B=n(G+(C^(N|~M))+a[m[Q]]+f[0]|0,b[Q])+u|0}else 32>Q?(l=z,l=n(u+(p&y|~p&D)+a[g[Q]]+d[1]|0,e[Q])+l|0,u=T,B=n(G+(C&M|N&~M)+a[m[Q]]+f[1]|0,b[Q])+u|0):48>Q?(l=z,l=n(u+((p|~y)^D)+a[g[Q]]+d[2]|0,e[Q])+l|0,u=T,B=n(G+((C|~N)^M)+a[m[Q]]+f[2]|0,b[Q])+u|0):64>Q?(l=z,l=n(u+(p&D|y&~D)+a[g[Q]]+d[3]|0,e[Q])+l|0,u=T,B=n(G+(C&N|~C&M)+a[m[Q]]+f[3]|0,b[Q])+u|0):(l=z, l=n(u+(p^(y|~D))+a[g[Q]]+d[4]|0,e[Q])+l|0,u=T,B=n(G+(C^N^M)+a[m[Q]]+f[4]|0,b[Q])+u|0);u=z;z=D;D=n(y,10);y=p;p=l;G=T;T=M;M=n(N,10);N=C;C=B}y=this._b+y+M|0;this._b=this._c+D+T|0;this._c=this._d+z+G|0;this._d=this._e+u+C|0;this._e=this._a+p+N|0;this._a=y};h.prototype._digest=function(){this._block[this._blockOffset++]=128;56g||2147483648<=g)throw new RangeError('The value "'+g+'" is invalid for option "size"');g=q(g);m&&0!==m.length?"string"===typeof e?g.fill(m,e):g.fill(m):g.fill(0);return g}); if(!k.kStringMaxLength)try{k.kStringMaxLength=h.binding("buffer").kStringMaxLength}catch(g){}k.constants||(k.constants={MAX_LENGTH:k.kMaxLength},k.kStringMaxLength&&(k.constants.MAX_STRING_LENGTH=k.kStringMaxLength));H.exports=k}).call(this,r("_process"))},{_process:218,buffer:89}],245:[function(r,H,A){function h(q,k){this._block=n.alloc(q);this._finalSize=k;this._blockSize=q;this._len=0}var n=r("safe-buffer").Buffer;h.prototype.update=function(q,k){"string"===typeof q&&(q=n.from(q,k||"utf8"));k= this._block;for(var a=this._blockSize,g=q.length,m=this._len,e=0;e=this._finalSize&&(this._update(this._block),this._block.fill(0));k=8*this._len;if(4294967295>=k)this._block.writeUInt32BE(k,this._blockSize-4);else{var a=(k&4294967295)>>>0;this._block.writeUInt32BE((k- a)/4294967296,this._blockSize-8);this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);k=this._hash();return q?k.toString(q):k};h.prototype._update=function(){throw Error("_update must be implemented by subclass");};H.exports=h},{"safe-buffer":243}],246:[function(r,H,A){A=H.exports=function(h){h=h.toLowerCase();var n=A[h];if(!n)throw Error(h+" is not supported (we accept pull requests)");return new n};A.sha=r("./sha");A.sha1=r("./sha1");A.sha224=r("./sha224");A.sha256=r("./sha256"); A.sha384=r("./sha384");A.sha512=r("./sha512")},{"./sha":247,"./sha1":248,"./sha224":249,"./sha256":250,"./sha384":251,"./sha512":252}],247:[function(r,H,A){function h(){this.init();this._w=a;n.call(this,64,56)}A=r("inherits");var n=r("./hash"),q=r("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);A(h,n);h.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};h.prototype._update=function(g){for(var m= this._w,e=this._a|0,b=this._b|0,d=this._c|0,f=this._d|0,p=this._e|0,u=0;16>u;++u)m[u]=g.readInt32BE(4*u);for(;80>u;++u)m[u]=m[u-3]^m[u-8]^m[u-14]^m[u-16];for(g=0;80>g;++g){u=~~(g/20);var y=e<<5|e>>>27;var D=0===u?b&d|~b&f:2===u?b&d|b&f|d&f:b^d^f;u=y+D+p+m[g]+k[u]|0;p=f;f=d;d=b<<30|b>>>2;b=e;e=u}this._a=e+this._a|0;this._b=b+this._b|0;this._c=d+this._c|0;this._d=f+this._d|0;this._e=p+this._e|0};h.prototype._hash=function(){var g=q.allocUnsafe(20);g.writeInt32BE(this._a|0,0);g.writeInt32BE(this._b| 0,4);g.writeInt32BE(this._c|0,8);g.writeInt32BE(this._d|0,12);g.writeInt32BE(this._e|0,16);return g};H.exports=h},{"./hash":245,inherits:193,"safe-buffer":243}],248:[function(r,H,A){function h(){this.init();this._w=a;n.call(this,64,56)}A=r("inherits");var n=r("./hash"),q=r("safe-buffer").Buffer,k=[1518500249,1859775393,-1894007588,-899497514],a=Array(80);A(h,n);h.prototype.init=function(){this._a=1732584193;this._b=4023233417;this._c=2562383102;this._d=271733878;this._e=3285377520;return this};h.prototype._update= function(g){for(var m=this._w,e=this._a|0,b=this._b|0,d=this._c|0,f=this._d|0,p=this._e|0,u=0;16>u;++u)m[u]=g.readInt32BE(4*u);for(;80>u;++u)g=m[u-3]^m[u-8]^m[u-14]^m[u-16],m[u]=g<<1|g>>>31;for(u=0;80>u;++u){g=~~(u/20);var y=e<<5|e>>>27;var D=0===g?b&d|~b&f:2===g?b&d|b&f|d&f:b^d^f;g=y+D+p+m[u]+k[g]|0;p=f;f=d;d=b<<30|b>>>2;b=e;e=g}this._a=e+this._a|0;this._b=b+this._b|0;this._c=d+this._c|0;this._d=f+this._d|0;this._e=p+this._e|0};h.prototype._hash=function(){var g=q.allocUnsafe(20);g.writeInt32BE(this._a| 0,0);g.writeInt32BE(this._b|0,4);g.writeInt32BE(this._c|0,8);g.writeInt32BE(this._d|0,12);g.writeInt32BE(this._e|0,16);return g};H.exports=h},{"./hash":245,inherits:193,"safe-buffer":243}],249:[function(r,H,A){function h(){this.init();this._w=a;q.call(this,64,56)}A=r("inherits");var n=r("./sha256"),q=r("./hash"),k=r("safe-buffer").Buffer,a=Array(64);A(h,n);h.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};h.prototype._hash=function(){var g=k.allocUnsafe(28);g.writeInt32BE(this._a,0);g.writeInt32BE(this._b,4);g.writeInt32BE(this._c,8);g.writeInt32BE(this._d,12);g.writeInt32BE(this._e,16);g.writeInt32BE(this._f,20);g.writeInt32BE(this._g,24);return g};H.exports=h},{"./hash":245,"./sha256":250,inherits:193,"safe-buffer":243}],250:[function(r,H,A){function h(){this.init();this._w=a;n.call(this,64,56)}A=r("inherits");var n=r("./hash"),q=r("safe-buffer").Buffer, k=[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);A(h,n);h.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};h.prototype._update=function(g){for(var m=this._w,e=this._a|0,b=this._b|0,d=this._c|0,f=this._d|0,p=this._e| 0,u=this._f|0,y=this._g|0,D=this._h|0,z=0;16>z;++z)m[z]=g.readInt32BE(4*z);for(;64>z;++z){g=m[z-2];var G=m[z-15];m[z]=((g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10)+m[z-7]+((G>>>7|G<<25)^(G>>>18|G<<14)^G>>>3)+m[z-16]|0}for(z=0;64>z;++z)g=D+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(y^p&(u^y))+k[z]+m[z]|0,G=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&b|d&(e|b))|0,D=y,y=u,u=p,p=f+g|0,f=d,d=b,b=e,e=g+G|0;this._a=e+this._a|0;this._b=b+this._b|0;this._c=d+this._c|0;this._d=f+this._d|0;this._e=p+this._e| 0;this._f=u+this._f|0;this._g=y+this._g|0;this._h=D+this._h|0};h.prototype._hash=function(){var g=q.allocUnsafe(32);g.writeInt32BE(this._a,0);g.writeInt32BE(this._b,4);g.writeInt32BE(this._c,8);g.writeInt32BE(this._d,12);g.writeInt32BE(this._e,16);g.writeInt32BE(this._f,20);g.writeInt32BE(this._g,24);g.writeInt32BE(this._h,28);return g};H.exports=h},{"./hash":245,inherits:193,"safe-buffer":243}],251:[function(r,H,A){function h(){this.init();this._w=a;q.call(this,128,112)}A=r("inherits");var n=r("./sha512"), q=r("./hash"),k=r("safe-buffer").Buffer,a=Array(160);A(h,n);h.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};h.prototype._hash=function(){function g(e,b,d){m.writeInt32BE(e,d);m.writeInt32BE(b, d+4)}var m=k.allocUnsafe(48);g(this._ah,this._al,0);g(this._bh,this._bl,8);g(this._ch,this._cl,16);g(this._dh,this._dl,24);g(this._eh,this._el,32);g(this._fh,this._fl,40);return m};H.exports=h},{"./hash":245,"./sha512":252,inherits:193,"safe-buffer":243}],252:[function(r,H,A){function h(){this.init();this._w=g;q.call(this,128,112)}function n(m,e){return m>>>0>>0?1:0}A=r("inherits");var q=r("./hash"),k=r("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],g=Array(160);A(h,q);h.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}; h.prototype._update=function(m){for(var e=this._w,b=this._ah|0,d=this._bh|0,f=this._ch|0,p=this._dh|0,u=this._eh|0,y=this._fh|0,D=this._gh|0,z=this._hh|0,G=this._al|0,C=this._bl|0,N=this._cl|0,M=this._dl|0,T=this._el|0,Q=this._fl|0,l=this._gl|0,B=this._hl|0,c=0;32>c;c+=2)e[c]=m.readInt32BE(4*c),e[c+1]=m.readInt32BE(4*c+4);for(;160>c;c+=2){m=e[c-30];var t=e[c-30+1],F=(m>>>1|t<<31)^(m>>>8|t<<24)^m>>>7,J=(t>>>1|m<<31)^(t>>>8|m<<24)^(t>>>7|m<<25);m=e[c-4];t=e[c-4+1];var v=(m>>>19|t<<13)^(t>>>29|m<<3)^ m>>>6;t=(t>>>19|m<<13)^(m>>>29|t<<3)^(t>>>6|m<<26);var w=e[c-32],x=e[c-32+1];m=J+e[c-14+1]|0;F=F+e[c-14]+n(m,J)|0;m=m+t|0;F=F+v+n(m,t)|0;m=m+x|0;F=F+w+n(m,x)|0;e[c]=F;e[c+1]=m}for(c=0;160>c;c+=2){F=e[c];m=e[c+1];t=b&d|f&(b|d);var I=G&C|N&(G|C);w=(b>>>28|G<<4)^(G>>>2|b<<30)^(G>>>7|b<<25);x=(G>>>28|b<<4)^(b>>>2|G<<30)^(b>>>7|G<<25);var S=a[c],X=a[c+1],aa=D^u&(y^D),ba=l^T&(Q^l);v=B+((T>>>14|u<<18)^(T>>>18|u<<14)^(u>>>9|T<<23))|0;J=z+((u>>>14|T<<18)^(u>>>18|T<<14)^(T>>>9|u<<23))+n(v,B)|0;v=v+ba|0;J=J+ aa+n(v,ba)|0;v=v+X|0;J=J+S+n(v,X)|0;v=v+m|0;J=J+F+n(v,m)|0;m=x+I|0;F=w+t+n(m,x)|0;z=D;B=l;D=y;l=Q;y=u;Q=T;T=M+v|0;u=p+J+n(T,M)|0;p=f;M=N;f=d;N=C;d=b;C=G;G=v+m|0;b=J+F+n(G,v)|0}this._al=this._al+G|0;this._bl=this._bl+C|0;this._cl=this._cl+N|0;this._dl=this._dl+M|0;this._el=this._el+T|0;this._fl=this._fl+Q|0;this._gl=this._gl+l|0;this._hl=this._hl+B|0;this._ah=this._ah+b+n(this._al,G)|0;this._bh=this._bh+d+n(this._bl,C)|0;this._ch=this._ch+f+n(this._cl,N)|0;this._dh=this._dh+p+n(this._dl,M)|0;this._eh= this._eh+u+n(this._el,T)|0;this._fh=this._fh+y+n(this._fl,Q)|0;this._gh=this._gh+D+n(this._gl,l)|0;this._hh=this._hh+z+n(this._hl,B)|0};h.prototype._hash=function(){function m(b,d,f){e.writeInt32BE(b,f);e.writeInt32BE(d,f+4)}var e=k.allocUnsafe(64);m(this._ah,this._al,0);m(this._bh,this._bl,8);m(this._ch,this._cl,16);m(this._dh,this._dl,24);m(this._eh,this._el,32);m(this._fh,this._fl,40);m(this._gh,this._gl,48);m(this._hh,this._hl,56);return e};H.exports=h},{"./hash":245,inherits:193,"safe-buffer":243}], 253:[function(r,H,A){function h(){n.call(this)}H.exports=h;var n=r("events").EventEmitter;r("inherits")(h,n);h.Readable=r("readable-stream/readable.js");h.Writable=r("readable-stream/writable.js");h.Duplex=r("readable-stream/duplex.js");h.Transform=r("readable-stream/transform.js");h.PassThrough=r("readable-stream/passthrough.js");h.Stream=h;h.prototype.pipe=function(q,k){function a(u){q.writable&&!1===q.write(u)&&f.pause&&f.pause()}function g(){f.readable&&f.resume&&f.resume()}function m(){p||(p= !0,q.end())}function e(){p||(p=!0,"function"===typeof q.destroy&&q.destroy())}function b(u){d();if(0===n.listenerCount(this,"error"))throw u;}function d(){f.removeListener("data",a);q.removeListener("drain",g);f.removeListener("end",m);f.removeListener("close",e);f.removeListener("error",b);q.removeListener("error",b);f.removeListener("end",d);f.removeListener("close",d);q.removeListener("close",d)}var f=this;f.on("data",a);q.on("drain",g);q._isStdio||k&&!1===k.end||(f.on("end",m),f.on("close",e)); var p=!1;f.on("error",b);q.on("error",b);f.on("end",d);f.on("close",d);q.on("close",d);q.emit("pipe",f);return q}},{events:161,inherits:193,"readable-stream/duplex.js":228,"readable-stream/passthrough.js":238,"readable-stream/readable.js":239,"readable-stream/transform.js":240,"readable-stream/writable.js":241}],254:[function(r,H,A){function h(y){if(!y)return"utf8";for(var D;;)switch(y){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 y;default:if(D)return;y=(""+y).toLowerCase();D=!0}}function n(y){var D=h(y);if("string"!==typeof D&&(p.isEncoding===u||!u(y)))throw Error("Unknown encoding: "+y);this.encoding=D||y;switch(this.encoding){case "utf16le":this.text=g;this.end=m;y=4;break;case "utf8":this.fillLast=a;y=4;break;case "base64":this.text=e;this.end=b;y=3;break;default:this.write=d;this.end=f;return}this.lastTotal=this.lastNeed=0;this.lastChar=p.allocUnsafe(y)}function q(y){return 127>= y?0:6===y>>5?2:14===y>>4?3:30===y>>3?4:2===y>>6?-1:-2}function k(y,D,z){var G=D.length-1;if(G=z)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=y[y.length- 2],this.lastChar[1]=y[y.length-1],D.slice(0,-1)}return D}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=y[y.length-1];return y.toString("utf16le",D,y.length-1)}function m(y){y=y&&y.length?this.write(y):"";return this.lastNeed?y+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):y}function e(y,D){var z=(y.length-D)%3;if(0===z)return y.toString("base64",D);this.lastNeed=3-z;this.lastTotal=3;1===z?this.lastChar[0]=y[y.length-1]:(this.lastChar[0]=y[y.length-2],this.lastChar[1]=y[y.length- 1]);return y.toString("base64",D,y.length-z)}function b(y){y=y&&y.length?this.write(y):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function d(y){return y.toString(this.encoding)}function f(y){return y&&y.length?this.write(y):""}var p=r("safe-buffer").Buffer,u=p.isEncoding||function(y){y=""+y;switch(y&&y.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}};A.StringDecoder=n;n.prototype.write=function(y){if(0===y.length)return"";if(this.lastNeed){var D=this.fillLast(y);if(void 0===D)return"";var z=this.lastNeed;this.lastNeed=0}else z=0;return zarguments.length?!1:g.call(arguments,1);m[d]=!0;k(function(){m[d]&&(f?b.apply(null,f):b.call(null),A.clearImmediate(d))});return d};A.clearImmediate="function"===typeof n?n:function(b){delete m[b]}}).call(this, r("timers").setImmediate,r("timers").clearImmediate)},{"process/browser.js":218,timers:256}],257:[function(r,H,A){(function(h){function n(O,K,E,U){O[K]=E>>24&255;O[K+1]=E>>16&255;O[K+2]=E>>8&255;O[K+3]=E&255;O[K+4]=U>>24&255;O[K+5]=U>>16&255;O[K+6]=U>>8&255;O[K+7]=U&255}function q(O,K,E,U,W){var P,la=0;for(P=0;P>>8)-1}function k(O,K,E,U){return q(O,K,E,U,16)}function a(O,K,E,U){return q(O,K,E,U,32)}function g(O,K,E,U){var W=U[0]&255|(U[1]&255)<<8|(U[2]&255)<< 16|(U[3]&255)<<24,P=E[0]&255|(E[1]&255)<<8|(E[2]&255)<<16|(E[3]&255)<<24,la=E[4]&255|(E[5]&255)<<8|(E[6]&255)<<16|(E[7]&255)<<24,V=E[8]&255|(E[9]&255)<<8|(E[10]&255)<<16|(E[11]&255)<<24,pa=E[12]&255|(E[13]&255)<<8|(E[14]&255)<<16|(E[15]&255)<<24,ra=U[4]&255|(U[5]&255)<<8|(U[6]&255)<<16|(U[7]&255)<<24,ya=K[0]&255|(K[1]&255)<<8|(K[2]&255)<<16|(K[3]&255)<<24,xa=K[4]&255|(K[5]&255)<<8|(K[6]&255)<<16|(K[7]&255)<<24,Fa=K[8]&255|(K[9]&255)<<8|(K[10]&255)<<16|(K[11]&255)<<24;K=K[12]&255|(K[13]&255)<<8|(K[14]& 255)<<16|(K[15]&255)<<24;var Ga=U[8]&255|(U[9]&255)<<8|(U[10]&255)<<16|(U[11]&255)<<24,La=E[16]&255|(E[17]&255)<<8|(E[18]&255)<<16|(E[19]&255)<<24,Na=E[20]&255|(E[21]&255)<<8|(E[22]&255)<<16|(E[23]&255)<<24,Qa=E[24]&255|(E[25]&255)<<8|(E[26]&255)<<16|(E[27]&255)<<24;E=E[28]&255|(E[29]&255)<<8|(E[30]&255)<<16|(E[31]&255)<<24;U=U[12]&255|(U[13]&255)<<8|(U[14]&255)<<16|(U[15]&255)<<24;for(var na=W,Ra=P,Ta=la,bb=V,Za=pa,$a=ra,cb=ya,Ja=xa,eb=Fa,db=K,Xa=Ga,ab=La,Ya=Na,Wa=Qa,Va=E,Ua=U,qa,fb=0;20>fb;fb+= 2)qa=na+Ya|0,Za^=qa<<7|qa>>>25,qa=Za+na|0,eb^=qa<<9|qa>>>23,qa=eb+Za|0,Ya^=qa<<13|qa>>>19,qa=Ya+eb|0,na^=qa<<18|qa>>>14,qa=$a+Ra|0,db^=qa<<7|qa>>>25,qa=db+$a|0,Wa^=qa<<9|qa>>>23,qa=Wa+db|0,Ra^=qa<<13|qa>>>19,qa=Ra+Wa|0,$a^=qa<<18|qa>>>14,qa=Xa+cb|0,Va^=qa<<7|qa>>>25,qa=Va+Xa|0,Ta^=qa<<9|qa>>>23,qa=Ta+Va|0,cb^=qa<<13|qa>>>19,qa=cb+Ta|0,Xa^=qa<<18|qa>>>14,qa=Ua+ab|0,bb^=qa<<7|qa>>>25,qa=bb+Ua|0,Ja^=qa<<9|qa>>>23,qa=Ja+bb|0,ab^=qa<<13|qa>>>19,qa=ab+Ja|0,Ua^=qa<<18|qa>>>14,qa=na+bb|0,Ra^=qa<<7|qa>>>25, qa=Ra+na|0,Ta^=qa<<9|qa>>>23,qa=Ta+Ra|0,bb^=qa<<13|qa>>>19,qa=bb+Ta|0,na^=qa<<18|qa>>>14,qa=$a+Za|0,cb^=qa<<7|qa>>>25,qa=cb+$a|0,Ja^=qa<<9|qa>>>23,qa=Ja+cb|0,Za^=qa<<13|qa>>>19,qa=Za+Ja|0,$a^=qa<<18|qa>>>14,qa=Xa+db|0,ab^=qa<<7|qa>>>25,qa=ab+Xa|0,eb^=qa<<9|qa>>>23,qa=eb+ab|0,db^=qa<<13|qa>>>19,qa=db+eb|0,Xa^=qa<<18|qa>>>14,qa=Ua+Va|0,Ya^=qa<<7|qa>>>25,qa=Ya+Ua|0,Wa^=qa<<9|qa>>>23,qa=Wa+Ya|0,Va^=qa<<13|qa>>>19,qa=Va+Wa|0,Ua^=qa<<18|qa>>>14;na=na+W|0;Ra=Ra+P|0;Ta=Ta+la|0;bb=bb+V|0;Za=Za+pa|0;$a=$a+ ra|0;cb=cb+ya|0;Ja=Ja+xa|0;eb=eb+Fa|0;db=db+K|0;Xa=Xa+Ga|0;ab=ab+La|0;Ya=Ya+Na|0;Wa=Wa+Qa|0;Va=Va+E|0;Ua=Ua+U|0;O[0]=na>>>0&255;O[1]=na>>>8&255;O[2]=na>>>16&255;O[3]=na>>>24&255;O[4]=Ra>>>0&255;O[5]=Ra>>>8&255;O[6]=Ra>>>16&255;O[7]=Ra>>>24&255;O[8]=Ta>>>0&255;O[9]=Ta>>>8&255;O[10]=Ta>>>16&255;O[11]=Ta>>>24&255;O[12]=bb>>>0&255;O[13]=bb>>>8&255;O[14]=bb>>>16&255;O[15]=bb>>>24&255;O[16]=Za>>>0&255;O[17]=Za>>>8&255;O[18]=Za>>>16&255;O[19]=Za>>>24&255;O[20]=$a>>>0&255;O[21]=$a>>>8&255;O[22]=$a>>>16&255; O[23]=$a>>>24&255;O[24]=cb>>>0&255;O[25]=cb>>>8&255;O[26]=cb>>>16&255;O[27]=cb>>>24&255;O[28]=Ja>>>0&255;O[29]=Ja>>>8&255;O[30]=Ja>>>16&255;O[31]=Ja>>>24&255;O[32]=eb>>>0&255;O[33]=eb>>>8&255;O[34]=eb>>>16&255;O[35]=eb>>>24&255;O[36]=db>>>0&255;O[37]=db>>>8&255;O[38]=db>>>16&255;O[39]=db>>>24&255;O[40]=Xa>>>0&255;O[41]=Xa>>>8&255;O[42]=Xa>>>16&255;O[43]=Xa>>>24&255;O[44]=ab>>>0&255;O[45]=ab>>>8&255;O[46]=ab>>>16&255;O[47]=ab>>>24&255;O[48]=Ya>>>0&255;O[49]=Ya>>>8&255;O[50]=Ya>>>16&255;O[51]=Ya>>> 24&255;O[52]=Wa>>>0&255;O[53]=Wa>>>8&255;O[54]=Wa>>>16&255;O[55]=Wa>>>24&255;O[56]=Va>>>0&255;O[57]=Va>>>8&255;O[58]=Va>>>16&255;O[59]=Va>>>24&255;O[60]=Ua>>>0&255;O[61]=Ua>>>8&255;O[62]=Ua>>>16&255;O[63]=Ua>>>24&255}function m(O,K,E,U){var W=U[0]&255|(U[1]&255)<<8|(U[2]&255)<<16|(U[3]&255)<<24,P=E[0]&255|(E[1]&255)<<8|(E[2]&255)<<16|(E[3]&255)<<24,la=E[4]&255|(E[5]&255)<<8|(E[6]&255)<<16|(E[7]&255)<<24,V=E[8]&255|(E[9]&255)<<8|(E[10]&255)<<16|(E[11]&255)<<24,pa=E[12]&255|(E[13]&255)<<8|(E[14]&255)<< 16|(E[15]&255)<<24,ra=U[4]&255|(U[5]&255)<<8|(U[6]&255)<<16|(U[7]&255)<<24,ya=K[0]&255|(K[1]&255)<<8|(K[2]&255)<<16|(K[3]&255)<<24,xa=K[4]&255|(K[5]&255)<<8|(K[6]&255)<<16|(K[7]&255)<<24,Fa=K[8]&255|(K[9]&255)<<8|(K[10]&255)<<16|(K[11]&255)<<24;K=K[12]&255|(K[13]&255)<<8|(K[14]&255)<<16|(K[15]&255)<<24;var Ga=U[8]&255|(U[9]&255)<<8|(U[10]&255)<<16|(U[11]&255)<<24,La=E[16]&255|(E[17]&255)<<8|(E[18]&255)<<16|(E[19]&255)<<24,Na=E[20]&255|(E[21]&255)<<8|(E[22]&255)<<16|(E[23]&255)<<24,Qa=E[24]&255|(E[25]& 255)<<8|(E[26]&255)<<16|(E[27]&255)<<24;E=E[28]&255|(E[29]&255)<<8|(E[30]&255)<<16|(E[31]&255)<<24;U=U[12]&255|(U[13]&255)<<8|(U[14]&255)<<16|(U[15]&255)<<24;for(var na,Ra=0;20>Ra;Ra+=2)na=W+Na|0,pa^=na<<7|na>>>25,na=pa+W|0,Fa^=na<<9|na>>>23,na=Fa+pa|0,Na^=na<<13|na>>>19,na=Na+Fa|0,W^=na<<18|na>>>14,na=ra+P|0,K^=na<<7|na>>>25,na=K+ra|0,Qa^=na<<9|na>>>23,na=Qa+K|0,P^=na<<13|na>>>19,na=P+Qa|0,ra^=na<<18|na>>>14,na=Ga+ya|0,E^=na<<7|na>>>25,na=E+Ga|0,la^=na<<9|na>>>23,na=la+E|0,ya^=na<<13|na>>>19,na= ya+la|0,Ga^=na<<18|na>>>14,na=U+La|0,V^=na<<7|na>>>25,na=V+U|0,xa^=na<<9|na>>>23,na=xa+V|0,La^=na<<13|na>>>19,na=La+xa|0,U^=na<<18|na>>>14,na=W+V|0,P^=na<<7|na>>>25,na=P+W|0,la^=na<<9|na>>>23,na=la+P|0,V^=na<<13|na>>>19,na=V+la|0,W^=na<<18|na>>>14,na=ra+pa|0,ya^=na<<7|na>>>25,na=ya+ra|0,xa^=na<<9|na>>>23,na=xa+ya|0,pa^=na<<13|na>>>19,na=pa+xa|0,ra^=na<<18|na>>>14,na=Ga+K|0,La^=na<<7|na>>>25,na=La+Ga|0,Fa^=na<<9|na>>>23,na=Fa+La|0,K^=na<<13|na>>>19,na=K+Fa|0,Ga^=na<<18|na>>>14,na=U+E|0,Na^=na<<7|na>>> 25,na=Na+U|0,Qa^=na<<9|na>>>23,na=Qa+Na|0,E^=na<<13|na>>>19,na=E+Qa|0,U^=na<<18|na>>>14;O[0]=W>>>0&255;O[1]=W>>>8&255;O[2]=W>>>16&255;O[3]=W>>>24&255;O[4]=ra>>>0&255;O[5]=ra>>>8&255;O[6]=ra>>>16&255;O[7]=ra>>>24&255;O[8]=Ga>>>0&255;O[9]=Ga>>>8&255;O[10]=Ga>>>16&255;O[11]=Ga>>>24&255;O[12]=U>>>0&255;O[13]=U>>>8&255;O[14]=U>>>16&255;O[15]=U>>>24&255;O[16]=ya>>>0&255;O[17]=ya>>>8&255;O[18]=ya>>>16&255;O[19]=ya>>>24&255;O[20]=xa>>>0&255;O[21]=xa>>>8&255;O[22]=xa>>>16&255;O[23]=xa>>>24&255;O[24]=Fa>>> 0&255;O[25]=Fa>>>8&255;O[26]=Fa>>>16&255;O[27]=Fa>>>24&255;O[28]=K>>>0&255;O[29]=K>>>8&255;O[30]=K>>>16&255;O[31]=K>>>24&255}function e(O,K,E,U,W,P,la){var V=new Uint8Array(16),pa=new Uint8Array(64),ra;for(ra=0;16>ra;ra++)V[ra]=0;for(ra=0;8>ra;ra++)V[ra]=P[ra];for(;64<=W;){g(pa,V,la,Ma);for(ra=0;64>ra;ra++)O[K+ra]=E[U+ra]^pa[ra];P=1;for(ra=8;16>ra;ra++)P=P+(V[ra]&255)|0,V[ra]=P&255,P>>>=8;W-=64;K+=64;U+=64}if(0V;V++)P[V]=0;for(V=0;8>V;V++)P[V]=U[V];for(;64<=E;){g(la,P,W,Ma);for(V=0;64>V;V++)O[K+V]=la[V];U=1;for(V=8;16>V;V++)U=U+(P[V]&255)|0,P[V]=U&255,U>>>=8;E-=64;K+=64}if(0la;la++)W[la]=U[la+16];return b(O,K,E,W,P)}function f(O,K,E,U,W,P,la){var V=new Uint8Array(32);m(V,P,la,Ma);la=new Uint8Array(8); for(var pa=0;8>pa;pa++)la[pa]=P[pa+16];return e(O,K,E,U,W,la,V)}function p(O,K,E,U,W,P){P=new Ha(P);P.update(E,U,W);P.finish(O,K);return 0}function u(O,K,E,U,W,P){var la=new Uint8Array(16);p(la,0,E,U,W,P);return k(O,K,la,0)}function y(O,K,E,U,W){if(32>E)return-1;f(O,0,K,0,E,U,W);p(O,16,O,32,E-32,O);for(K=0;16>K;K++)O[K]=0;return 0}function D(O,K,E,U,W){var P=new Uint8Array(32);if(32>E)return-1;d(P,0,32,U,W);if(0!==u(K,16,K,32,E-32,P))return-1;f(O,0,K,0,E,U,W);for(K=0;32>K;K++)O[K]=0;return 0}function z(O, K){var E;for(E=0;16>E;E++)O[E]=K[E]|0}function G(O){var K,E=1;for(K=0;16>K;K++){var U=O[K]+E+65535;E=Math.floor(U/65536);O[K]=U-65536*E}O[0]+=E-1+37*(E-1)}function C(O,K,E){for(var U=~(E-1),W=0;16>W;W++)E=U&(O[W]^K[W]),O[W]^=E,K[W]^=E}function N(O,K){var E,U=oa(),W=oa();for(E=0;16>E;E++)W[E]=K[E];G(W);G(W);G(W);for(K=0;2>K;K++){U[0]=W[0]-65517;for(E=1;15>E;E++)U[E]=W[E]-65535-(U[E-1]>>16&1),U[E-1]&=65535;U[15]=W[15]-32767-(U[14]>>16&1);E=U[15]>>16&1;U[14]&=65535;C(W,U,1-E)}for(E=0;16>E;E++)O[2*E]= W[E]&255,O[2*E+1]=W[E]>>8}function M(O,K){var E=new Uint8Array(32),U=new Uint8Array(32);N(E,O);N(U,K);return a(E,0,U,0)}function T(O){var K=new Uint8Array(32);N(K,O);return K[0]&1}function Q(O,K){var E;for(E=0;16>E;E++)O[E]=K[2*E]+(K[2*E+1]<<8);O[15]&=32767}function l(O,K,E){for(var U=0;16>U;U++)O[U]=K[U]+E[U]}function B(O,K,E){for(var U=0;16>U;U++)O[U]=K[U]-E[U]}function c(O,K,E){var U=E[0],W=E[1],P=E[2],la=E[3],V=E[4],pa=E[5],ra=E[6],ya=E[7],xa=E[8],Fa=E[9],Ga=E[10],La=E[11],Na=E[12],Qa=E[13],na= E[14],Ra=E[15];E=K[0];var Ta=E*U;var bb=E*W;var Za=E*P;var $a=E*la;var cb=E*V;var Ja=E*pa;var eb=E*ra;var db=E*ya;var Xa=E*xa;var ab=E*Fa;var Ya=E*Ga;var Wa=E*La;var Va=E*Na;var Ua=E*Qa;var qa=E*na;var fb=E*Ra;E=K[1];bb+=E*U;Za+=E*W;$a+=E*P;cb+=E*la;Ja+=E*V;eb+=E*pa;db+=E*ra;Xa+=E*ya;ab+=E*xa;Ya+=E*Fa;Wa+=E*Ga;Va+=E*La;Ua+=E*Na;qa+=E*Qa;fb+=E*na;var ib=E*Ra;E=K[2];Za+=E*U;$a+=E*W;cb+=E*P;Ja+=E*la;eb+=E*V;db+=E*pa;Xa+=E*ra;ab+=E*ya;Ya+=E*xa;Wa+=E*Fa;Va+=E*Ga;Ua+=E*La;qa+=E*Na;fb+=E*Qa;ib+=E*na;var jb= E*Ra;E=K[3];$a+=E*U;cb+=E*W;Ja+=E*P;eb+=E*la;db+=E*V;Xa+=E*pa;ab+=E*ra;Ya+=E*ya;Wa+=E*xa;Va+=E*Fa;Ua+=E*Ga;qa+=E*La;fb+=E*Na;ib+=E*Qa;jb+=E*na;var kb=E*Ra;E=K[4];cb+=E*U;Ja+=E*W;eb+=E*P;db+=E*la;Xa+=E*V;ab+=E*pa;Ya+=E*ra;Wa+=E*ya;Va+=E*xa;Ua+=E*Fa;qa+=E*Ga;fb+=E*La;ib+=E*Na;jb+=E*Qa;kb+=E*na;var ta=E*Ra;E=K[5];Ja+=E*U;eb+=E*W;db+=E*P;Xa+=E*la;ab+=E*V;Ya+=E*pa;Wa+=E*ra;Va+=E*ya;Ua+=E*xa;qa+=E*Fa;fb+=E*Ga;ib+=E*La;jb+=E*Na;kb+=E*Qa;ta+=E*na;var ua=E*Ra;E=K[6];eb+=E*U;db+=E*W;Xa+=E*P;ab+=E*la;Ya+=E* V;Wa+=E*pa;Va+=E*ra;Ua+=E*ya;qa+=E*xa;fb+=E*Fa;ib+=E*Ga;jb+=E*La;kb+=E*Na;ta+=E*Qa;ua+=E*na;var Ia=E*Ra;E=K[7];db+=E*U;Xa+=E*W;ab+=E*P;Ya+=E*la;Wa+=E*V;Va+=E*pa;Ua+=E*ra;qa+=E*ya;fb+=E*xa;ib+=E*Fa;jb+=E*Ga;kb+=E*La;ta+=E*Na;ua+=E*Qa;Ia+=E*na;var Ca=E*Ra;E=K[8];Xa+=E*U;ab+=E*W;Ya+=E*P;Wa+=E*la;Va+=E*V;Ua+=E*pa;qa+=E*ra;fb+=E*ya;ib+=E*xa;jb+=E*Fa;kb+=E*Ga;ta+=E*La;ua+=E*Na;Ia+=E*Qa;Ca+=E*na;var Da=E*Ra;E=K[9];ab+=E*U;Ya+=E*W;Wa+=E*P;Va+=E*la;Ua+=E*V;qa+=E*pa;fb+=E*ra;ib+=E*ya;jb+=E*xa;kb+=E*Fa;ta+= E*Ga;ua+=E*La;Ia+=E*Na;Ca+=E*Qa;Da+=E*na;var Ka=E*Ra;E=K[10];Ya+=E*U;Wa+=E*W;Va+=E*P;Ua+=E*la;qa+=E*V;fb+=E*pa;ib+=E*ra;jb+=E*ya;kb+=E*xa;ta+=E*Fa;ua+=E*Ga;Ia+=E*La;Ca+=E*Na;Da+=E*Qa;Ka+=E*na;var gb=E*Ra;E=K[11];Wa+=E*U;Va+=E*W;Ua+=E*P;qa+=E*la;fb+=E*V;ib+=E*pa;jb+=E*ra;kb+=E*ya;ta+=E*xa;ua+=E*Fa;Ia+=E*Ga;Ca+=E*La;Da+=E*Na;Ka+=E*Qa;gb+=E*na;var hb=E*Ra;E=K[12];Va+=E*U;Ua+=E*W;qa+=E*P;fb+=E*la;ib+=E*V;jb+=E*pa;kb+=E*ra;ta+=E*ya;ua+=E*xa;Ia+=E*Fa;Ca+=E*Ga;Da+=E*La;Ka+=E*Na;gb+=E*Qa;hb+=E*na;var lb= E*Ra;E=K[13];Ua+=E*U;qa+=E*W;fb+=E*P;ib+=E*la;jb+=E*V;kb+=E*pa;ta+=E*ra;ua+=E*ya;Ia+=E*xa;Ca+=E*Fa;Da+=E*Ga;Ka+=E*La;gb+=E*Na;hb+=E*Qa;lb+=E*na;var mb=E*Ra;E=K[14];qa+=E*U;fb+=E*W;ib+=E*P;jb+=E*la;kb+=E*V;ta+=E*pa;ua+=E*ra;Ia+=E*ya;Ca+=E*xa;Da+=E*Fa;Ka+=E*Ga;gb+=E*La;hb+=E*Na;lb+=E*Qa;mb+=E*na;var nb=E*Ra;E=K[15];fb+=E*U;bb+=38*(jb+E*P);Za+=38*(kb+E*la);$a+=38*(ta+E*V);cb+=38*(ua+E*pa);Ja+=38*(Ia+E*ra);eb+=38*(Ca+E*ya);db+=38*(Da+E*xa);Xa+=38*(Ka+E*Fa);ab+=38*(gb+E*Ga);Ya+=38*(hb+E*La);Wa+=38*(lb+ E*Na);Va+=38*(mb+E*Qa);Ua+=38*(nb+E*na);qa+=38*E*Ra;E=Ta+38*(ib+E*W)+1+65535;K=Math.floor(E/65536);Ta=E-65536*K;E=bb+K+65535;K=Math.floor(E/65536);bb=E-65536*K;E=Za+K+65535;K=Math.floor(E/65536);Za=E-65536*K;E=$a+K+65535;K=Math.floor(E/65536);$a=E-65536*K;E=cb+K+65535;K=Math.floor(E/65536);cb=E-65536*K;E=Ja+K+65535;K=Math.floor(E/65536);Ja=E-65536*K;E=eb+K+65535;K=Math.floor(E/65536);eb=E-65536*K;E=db+K+65535;K=Math.floor(E/65536);db=E-65536*K;E=Xa+K+65535;K=Math.floor(E/65536);Xa=E-65536*K;E=ab+ K+65535;K=Math.floor(E/65536);ab=E-65536*K;E=Ya+K+65535;K=Math.floor(E/65536);Ya=E-65536*K;E=Wa+K+65535;K=Math.floor(E/65536);Wa=E-65536*K;E=Va+K+65535;K=Math.floor(E/65536);Va=E-65536*K;E=Ua+K+65535;K=Math.floor(E/65536);Ua=E-65536*K;E=qa+K+65535;K=Math.floor(E/65536);qa=E-65536*K;E=fb+K+65535;K=Math.floor(E/65536);fb=E-65536*K;Ta+=K-1+37*(K-1);E=Ta+1+65535;K=Math.floor(E/65536);Ta=E-65536*K;E=bb+K+65535;K=Math.floor(E/65536);bb=E-65536*K;E=Za+K+65535;K=Math.floor(E/65536);Za=E-65536*K;E=$a+K+65535; K=Math.floor(E/65536);$a=E-65536*K;E=cb+K+65535;K=Math.floor(E/65536);cb=E-65536*K;E=Ja+K+65535;K=Math.floor(E/65536);Ja=E-65536*K;E=eb+K+65535;K=Math.floor(E/65536);eb=E-65536*K;E=db+K+65535;K=Math.floor(E/65536);db=E-65536*K;E=Xa+K+65535;K=Math.floor(E/65536);Xa=E-65536*K;E=ab+K+65535;K=Math.floor(E/65536);ab=E-65536*K;E=Ya+K+65535;K=Math.floor(E/65536);Ya=E-65536*K;E=Wa+K+65535;K=Math.floor(E/65536);Wa=E-65536*K;E=Va+K+65535;K=Math.floor(E/65536);Va=E-65536*K;E=Ua+K+65535;K=Math.floor(E/65536); Ua=E-65536*K;E=qa+K+65535;K=Math.floor(E/65536);qa=E-65536*K;E=fb+K+65535;K=Math.floor(E/65536);O[0]=Ta+(K-1+37*(K-1));O[1]=bb;O[2]=Za;O[3]=$a;O[4]=cb;O[5]=Ja;O[6]=eb;O[7]=db;O[8]=Xa;O[9]=ab;O[10]=Ya;O[11]=Wa;O[12]=Va;O[13]=Ua;O[14]=qa;O[15]=E-65536*K}function t(O,K){c(O,K,K)}function F(O,K){var E=oa(),U;for(U=0;16>U;U++)E[U]=K[U];for(U=253;0<=U;U--)t(E,E),2!==U&&4!==U&&c(E,E,K);for(U=0;16>U;U++)O[U]=E[U]}function J(O,K){var E=oa(),U;for(U=0;16>U;U++)E[U]=K[U];for(U=250;0<=U;U--)t(E,E),1!==U&&c(E, E,K);for(U=0;16>U;U++)O[U]=E[U]}function v(O,K,E){var U=new Uint8Array(32),W=new Float64Array(80),P,la=oa(),V=oa(),pa=oa(),ra=oa(),ya=oa(),xa=oa();for(P=0;31>P;P++)U[P]=K[P];U[31]=K[31]&127|64;U[0]&=248;Q(W,E);for(P=0;16>P;P++)V[P]=W[P],ra[P]=la[P]=pa[P]=0;la[0]=ra[0]=1;for(P=254;0<=P;--P)K=U[P>>>3]>>>(P&7)&1,C(la,V,K),C(pa,ra,K),l(ya,la,pa),B(la,la,pa),l(pa,V,ra),B(V,V,ra),t(ra,ya),t(xa,la),c(la,pa,la),c(pa,V,ya),l(ya,la,pa),B(la,la,pa),t(V,la),B(pa,ra,xa),c(la,pa,ia),l(la,la,ra),c(pa,pa,la),c(la, ra,xa),c(ra,V,W),t(V,ya),C(la,V,K),C(pa,ra,K);for(P=0;16>P;P++)W[P+16]=la[P],W[P+32]=pa[P],W[P+48]=V[P],W[P+64]=ra[P];U=W.subarray(32);W=W.subarray(16);F(U,U);c(W,W,U);N(O,W);return 0}function w(O,K){return v(O,K,ja)}function x(O,K){Ba(K,32);return w(O,K)}function I(O,K,E){var U=new Uint8Array(32);v(U,E,K);m(O,Aa,U,Ma)}function S(O,K,E,U){var W=new Int32Array(16),P=new Int32Array(16),la;var V=O[0];var pa=O[1],ra=O[2],ya=O[3],xa=O[4],Fa=O[5],Ga=O[6],La=O[7];var Na=K[0];for(var Qa=K[1],na=K[2],Ra=K[3], Ta=K[4],bb=K[5],Za=K[6],$a=K[7],cb=0;128<=U;){for(la=0;16>la;la++){var Ja=8*la+cb;W[la]=E[Ja+0]<<24|E[Ja+1]<<16|E[Ja+2]<<8|E[Ja+3];P[la]=E[Ja+4]<<24|E[Ja+5]<<16|E[Ja+6]<<8|E[Ja+7]}for(la=0;80>la;la++){Ja=V;var eb=pa;var db=ra;var Xa=ya;var ab=xa;var Ya=Fa;var Wa=Ga;var Va=Na;var Ua=Qa;var qa=na;var fb=Ra;var ib=Ta;var jb=bb;var kb=Za;var ta=La;var ua=$a;var Ia=ua&65535;var Ca=ua>>>16;var Da=ta&65535;var Ka=ta>>>16;ta=(xa>>>14|Ta<<18)^(xa>>>18|Ta<<14)^(Ta>>>9|xa<<23);ua=(Ta>>>14|xa<<18)^(Ta>>>18|xa<< 14)^(xa>>>9|Ta<<23);Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;ta=xa&Fa^~xa&Ga;ua=Ta&bb^~Ta&Za;Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;ta=Sa[2*la];ua=Sa[2*la+1];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;ta=W[la%16];ua=P[la%16];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;var gb=Da&65535|Ka<<16;var hb=Ia&65535|Ca<<16;ta=gb;ua=hb;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=(V>>>28|Na<<4)^(Na>>>2|V<<30)^(Na>>>7|V<<25);ua=(Na>>>28| V<<4)^(V>>>2|Na<<30)^(V>>>7|Na<<25);Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;ta=V&pa^V&ra^pa&ra;ua=Na&Qa^Na&na^Qa&na;Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;V=Da&65535|Ka<<16;Na=Ia&65535|Ca<<16;ta=Xa;ua=fb;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=gb;ua=hb;Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;Xa=Da&65535|Ka<<16;fb=Ia&65535|Ca<<16;pa=Ja;ra=eb;ya=db;xa=Xa;Fa=ab;Ga=Ya;La=Wa;Qa=Va;na=Ua;Ra=qa; Ta=fb;bb=ib;Za=jb;$a=kb;if(15===la%16)for(Ja=0;16>Ja;Ja++)ta=W[Ja],ua=P[Ja],Ia=ua&65535,Ca=ua>>>16,Da=ta&65535,Ka=ta>>>16,ta=W[(Ja+9)%16],ua=P[(Ja+9)%16],Ia+=ua&65535,Ca+=ua>>>16,Da+=ta&65535,Ka+=ta>>>16,gb=W[(Ja+1)%16],hb=P[(Ja+1)%16],ta=(gb>>>1|hb<<31)^(gb>>>8|hb<<24)^gb>>>7,ua=(hb>>>1|gb<<31)^(hb>>>8|gb<<24)^(hb>>>7|gb<<25),Ia+=ua&65535,Ca+=ua>>>16,Da+=ta&65535,Ka+=ta>>>16,gb=W[(Ja+14)%16],hb=P[(Ja+14)%16],ta=(gb>>>19|hb<<13)^(hb>>>29|gb<<3)^gb>>>6,ua=(hb>>>19|gb<<13)^(gb>>>29|hb<<3)^(hb>>>6|gb<< 26),Ia+=ua&65535,Ca+=ua>>>16,Da+=ta&65535,Ka+=ta>>>16,Ca+=Ia>>>16,Da+=Ca>>>16,Ka+=Da>>>16,W[Ja]=Da&65535|Ka<<16,P[Ja]=Ia&65535|Ca<<16}ta=V;ua=Na;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[0];ua=K[0];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[0]=V=Da&65535|Ka<<16;K[0]=Na=Ia&65535|Ca<<16;ta=pa;ua=Qa;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[1];ua=K[1];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[1]= pa=Da&65535|Ka<<16;K[1]=Qa=Ia&65535|Ca<<16;ta=ra;ua=na;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[2];ua=K[2];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[2]=ra=Da&65535|Ka<<16;K[2]=na=Ia&65535|Ca<<16;ta=ya;ua=Ra;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[3];ua=K[3];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[3]=ya=Da&65535|Ka<<16;K[3]=Ra=Ia&65535|Ca<<16;ta=xa;ua=Ta;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535; Ka=ta>>>16;ta=O[4];ua=K[4];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[4]=xa=Da&65535|Ka<<16;K[4]=Ta=Ia&65535|Ca<<16;ta=Fa;ua=bb;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[5];ua=K[5];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[5]=Fa=Da&65535|Ka<<16;K[5]=bb=Ia&65535|Ca<<16;ta=Ga;ua=Za;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[6];ua=K[6];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>> 16;Da+=Ca>>>16;Ka+=Da>>>16;O[6]=Ga=Da&65535|Ka<<16;K[6]=Za=Ia&65535|Ca<<16;ta=La;ua=$a;Ia=ua&65535;Ca=ua>>>16;Da=ta&65535;Ka=ta>>>16;ta=O[7];ua=K[7];Ia+=ua&65535;Ca+=ua>>>16;Da+=ta&65535;Ka+=ta>>>16;Ca+=Ia>>>16;Da+=Ca>>>16;Ka+=Da>>>16;O[7]=La=Da&65535|Ka<<16;K[7]=$a=Ia&65535|Ca<<16;cb+=128;U-=128}return U}function X(O,K,E){var U=new Int32Array(8),W=new Int32Array(8),P=new Uint8Array(256),la,V=E;U[0]=1779033703;U[1]=3144134277;U[2]=1013904242;U[3]=2773480762;U[4]=1359893119;U[5]=2600822924;U[6]=528734635; U[7]=1541459225;W[0]=4089235720;W[1]=2227873595;W[2]=4271175723;W[3]=1595750129;W[4]=2917565137;W[5]=725511199;W[6]=4215389547;W[7]=327033209;S(U,W,K,E);E%=128;for(la=0;laE?1:0);P[E-9]=0;n(P,E-8,V/536870912|0,V<<3);S(U,W,P,E);for(la=0;8>la;la++)n(O,8*la,U[la],W[la]);return 0}function aa(O,K){var E=oa(),U=oa(),W=oa(),P=oa(),la=oa(),V=oa(),pa=oa(),ra=oa(),ya=oa();B(E,O[1],O[0]);B(ya,K[1],K[0]);c(E,E,ya);l(U,O[0],O[1]);l(ya,K[0],K[1]);c(U,U,ya);c(W,O[3], K[3]);c(W,W,za);c(P,O[2],K[2]);l(P,P,P);B(la,U,E);B(V,P,W);l(pa,P,W);l(ra,U,E);c(O[0],la,V);c(O[1],ra,pa);c(O[2],pa,V);c(O[3],la,ra)}function ba(O,K){var E=oa(),U=oa(),W=oa();F(W,K[2]);c(E,K[0],W);c(U,K[1],W);N(O,U);O[31]^=T(E)<<7}function Y(O,K,E){var U;z(O[0],da);z(O[1],ha);z(O[2],ha);z(O[3],da);for(U=255;0<=U;--U){var W=E[U/8|0]>>(U&7)&1;var P,la=O,V=K,pa=W;for(P=0;4>P;P++)C(la[P],V[P],pa);aa(K,O);aa(O,O);P=O;la=K;V=W;for(W=0;4>W;W++)C(P[W],la[W],V)}}function ea(O,K){var E=[oa(),oa(),oa(),oa()]; z(E[0],Ea);z(E[1],wa);z(E[2],ha);c(E[3],Ea,wa);Y(O,E,K)}function L(O,K,E){var U=new Uint8Array(64),W=[oa(),oa(),oa(),oa()];E||Ba(K,32);X(U,K,32);U[0]&=248;U[31]&=127;U[31]|=64;ea(W,U);ba(O,W);for(E=0;32>E;E++)K[E+32]=O[E];return 0}function R(O,K){var E,U;for(E=63;32<=E;--E){var W=0;var P=E-32;for(U=E-12;PP;P++)K[P]+=W-(K[31]>>4)*Oa[P],W=K[P]>>8,K[P]&=255;for(P=0;32>P;P++)K[P]-=W*Oa[P];for(E=0;32> E;E++)K[E+1]+=K[E]>>8,O[E]=K[E]&255}function Z(O){var K=new Float64Array(64),E;for(E=0;64>E;E++)K[E]=O[E];for(E=0;64>E;E++)O[E]=0;R(O,K)}function ca(O,K,E,U){var W=new Uint8Array(64),P=new Uint8Array(64),la=new Uint8Array(64),V,pa=new Float64Array(64),ra=[oa(),oa(),oa(),oa()];X(W,U,32);W[0]&=248;W[31]&=127;W[31]|=64;var ya=E+64;for(V=0;VV;V++)O[32+V]=W[32+V];X(la,O.subarray(32),E+32);Z(la);ea(ra,la);ba(O,ra);for(V=32;64>V;V++)O[V]=U[V];X(P,O,E+64);Z(P);for(V=0;64>V;V++)pa[V]= 0;for(V=0;32>V;V++)pa[V]=la[V];for(V=0;32>V;V++)for(K=0;32>K;K++)pa[V+K]+=P[V]*W[K];R(O.subarray(32),pa);return ya}function ka(O,K,E,U){var W=new Uint8Array(32),P=new Uint8Array(64),la=[oa(),oa(),oa(),oa()],V=[oa(),oa(),oa(),oa()];if(64>E)return-1;var pa=oa();var ra=oa(),ya=oa(),xa=oa(),Fa=oa(),Ga=oa(),La=oa();z(V[2],ha);Q(V[1],U);t(ya,V[1]);c(xa,ya,fa);B(ya,ya,V[2]);l(xa,V[2],xa);t(Fa,xa);t(Ga,Fa);c(La,Ga,Fa);c(pa,La,ya);c(pa,pa,xa);J(pa,pa);c(pa,pa,ya);c(pa,pa,xa);c(pa,pa,xa);c(V[0],pa,xa);t(ra, V[0]);c(ra,ra,xa);M(ra,ya)&&c(V[0],V[0],Pa);t(ra,V[0]);c(ra,ra,xa);M(ra,ya)?pa=-1:(T(V[0])===U[31]>>7&&B(V[0],da,V[0]),c(V[3],V[0],V[1]),pa=0);if(pa)return-1;for(pa=0;papa;pa++)O[pa+32]=U[pa];X(P,O,E);Z(P);Y(la,V,P);ea(V,K.subarray(32));aa(la,V);ba(W,la);E-=64;if(a(K,0,W,0)){for(pa=0;pa>>13|E<<3)&8191;K=O[4]&255|(O[5]&255)<<8;this.r[2]=(E>>>10|K<<6)&7939;E=O[6]&255|(O[7]&255)<<8;this.r[3]=(K>>>7|E<<9)&8191;K=O[8]&255|(O[9]&255)<<8;this.r[4]=(E>>>4|K<<12)&255;this.r[5]=K>>>1&8190;E=O[10]&255|(O[11]&255)<<8;this.r[6]=(K>>>14|E<<2)&8191;K=O[12]&255|(O[13]&255)<<8;this.r[7]= (E>>>11|K<<5)&8065;E=O[14]&255|(O[15]&255)<<8;this.r[8]=(K>>>8|E<<8)&8191;this.r[9]=E>>>5&127;this.pad[0]=O[16]&255|(O[17]&255)<<8;this.pad[1]=O[18]&255|(O[19]&255)<<8;this.pad[2]=O[20]&255|(O[21]&255)<<8;this.pad[3]=O[22]&255|(O[23]&255)<<8;this.pad[4]=O[24]&255|(O[25]&255)<<8;this.pad[5]=O[26]&255|(O[27]&255)<<8;this.pad[6]=O[28]&255|(O[29]&255)<<8;this.pad[7]=O[30]&255|(O[31]&255)<<8};Ha.prototype.blocks=function(O,K,E){for(var U=this.fin?0:2048,W,P,la,V,pa,ra,ya,xa,Fa,Ga,La,Na=this.h[0],Qa=this.h[1], na=this.h[2],Ra=this.h[3],Ta=this.h[4],bb=this.h[5],Za=this.h[6],$a=this.h[7],cb=this.h[8],Ja=this.h[9],eb=this.r[0],db=this.r[1],Xa=this.r[2],ab=this.r[3],Ya=this.r[4],Wa=this.r[5],Va=this.r[6],Ua=this.r[7],qa=this.r[8],fb=this.r[9];16<=E;)W=O[K+0]&255|(O[K+1]&255)<<8,Na+=W&8191,P=O[K+2]&255|(O[K+3]&255)<<8,Qa+=(W>>>13|P<<3)&8191,W=O[K+4]&255|(O[K+5]&255)<<8,na+=(P>>>10|W<<6)&8191,P=O[K+6]&255|(O[K+7]&255)<<8,Ra+=(W>>>7|P<<9)&8191,W=O[K+8]&255|(O[K+9]&255)<<8,Ta+=(P>>>4|W<<12)&8191,bb+=W>>>1&8191, P=O[K+10]&255|(O[K+11]&255)<<8,Za+=(W>>>14|P<<2)&8191,W=O[K+12]&255|(O[K+13]&255)<<8,$a+=(P>>>11|W<<5)&8191,P=O[K+14]&255|(O[K+15]&255)<<8,cb+=(W>>>8|P<<8)&8191,Ja+=P>>>5|U,W=P=0,W+=Na*eb,W+=5*Qa*fb,W+=5*na*qa,W+=5*Ra*Ua,W+=5*Ta*Va,P=W>>>13,W&=8191,W+=5*bb*Wa,W+=5*Za*Ya,W+=5*$a*ab,W+=5*cb*Xa,W+=5*Ja*db,P+=W>>>13,W&=8191,la=P,la+=Na*db,la+=Qa*eb,la+=5*na*fb,la+=5*Ra*qa,la+=5*Ta*Ua,P=la>>>13,la&=8191,la+=5*bb*Va,la+=5*Za*Wa,la+=5*$a*Ya,la+=5*cb*ab,la+=5*Ja*Xa,P+=la>>>13,la&=8191,V=P,V+=Na*Xa,V+=Qa* db,V+=na*eb,V+=5*Ra*fb,V+=5*Ta*qa,P=V>>>13,V&=8191,V+=5*bb*Ua,V+=5*Za*Va,V+=5*$a*Wa,V+=5*cb*Ya,V+=5*Ja*ab,P+=V>>>13,V&=8191,pa=P,pa+=Na*ab,pa+=Qa*Xa,pa+=na*db,pa+=Ra*eb,pa+=5*Ta*fb,P=pa>>>13,pa&=8191,pa+=5*bb*qa,pa+=5*Za*Ua,pa+=5*$a*Va,pa+=5*cb*Wa,pa+=5*Ja*Ya,P+=pa>>>13,pa&=8191,ra=P,ra+=Na*Ya,ra+=Qa*ab,ra+=na*Xa,ra+=Ra*db,ra+=Ta*eb,P=ra>>>13,ra&=8191,ra+=5*bb*fb,ra+=5*Za*qa,ra+=5*$a*Ua,ra+=5*cb*Va,ra+=5*Ja*Wa,P+=ra>>>13,ra&=8191,ya=P,ya+=Na*Wa,ya+=Qa*Ya,ya+=na*ab,ya+=Ra*Xa,ya+=Ta*db,P=ya>>>13,ya&= 8191,ya+=bb*eb,ya+=5*Za*fb,ya+=5*$a*qa,ya+=5*cb*Ua,ya+=5*Ja*Va,P+=ya>>>13,ya&=8191,xa=P,xa+=Na*Va,xa+=Qa*Wa,xa+=na*Ya,xa+=Ra*ab,xa+=Ta*Xa,P=xa>>>13,xa&=8191,xa+=bb*db,xa+=Za*eb,xa+=5*$a*fb,xa+=5*cb*qa,xa+=5*Ja*Ua,P+=xa>>>13,xa&=8191,Fa=P,Fa+=Na*Ua,Fa+=Qa*Va,Fa+=na*Wa,Fa+=Ra*Ya,Fa+=Ta*ab,P=Fa>>>13,Fa&=8191,Fa+=bb*Xa,Fa+=Za*db,Fa+=$a*eb,Fa+=5*cb*fb,Fa+=5*Ja*qa,P+=Fa>>>13,Fa&=8191,Ga=P,Ga+=Na*qa,Ga+=Qa*Ua,Ga+=na*Va,Ga+=Ra*Wa,Ga+=Ta*Ya,P=Ga>>>13,Ga&=8191,Ga+=bb*ab,Ga+=Za*Xa,Ga+=$a*db,Ga+=cb*eb,Ga+=5* Ja*fb,P+=Ga>>>13,Ga&=8191,La=P,La+=Na*fb,La+=Qa*qa,La+=na*Ua,La+=Ra*Va,La+=Ta*Wa,P=La>>>13,La&=8191,La+=bb*Ya,La+=Za*ab,La+=$a*Xa,La+=cb*db,La+=Ja*eb,P+=La>>>13,La&=8191,P=(P<<2)+P|0,P=P+W|0,W=P&8191,P>>>=13,la+=P,Na=W,Qa=la,na=V,Ra=pa,Ta=ra,bb=ya,Za=xa,$a=Fa,cb=Ga,Ja=La,K+=16,E-=16;this.h[0]=Na;this.h[1]=Qa;this.h[2]=na;this.h[3]=Ra;this.h[4]=Ta;this.h[5]=bb;this.h[6]=Za;this.h[7]=$a;this.h[8]=cb;this.h[9]=Ja};Ha.prototype.finish=function(O,K){var E=new Uint16Array(10);if(this.leftover){var U=this.leftover; for(this.buffer[U++]=1;16>U;U++)this.buffer[U]=0;this.fin=1;this.blocks(this.buffer,0,16)}var W=this.h[1]>>>13;this.h[1]&=8191;for(U=2;10>U;U++)this.h[U]+=W,W=this.h[U]>>>13,this.h[U]&=8191;this.h[0]+=5*W;W=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=W;W=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=W;E[0]=this.h[0]+5;W=E[0]>>>13;E[0]&=8191;for(U=1;10>U;U++)E[U]=this.h[U]+W,W=E[U]>>>13,E[U]&=8191;E[9]-=8192;W=(W^1)-1;for(U=0;10>U;U++)E[U]&=W;W=~W;for(U=0;10>U;U++)this.h[U]=this.h[U]&W|E[U];this.h[0]=(this.h[0]| this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;E=this.h[0]+this.pad[0];this.h[0]=E&65535;for(U=1;8>U;U++)E=(this.h[U]+this.pad[U]|0)+(E>>>16)|0,this.h[U]=E&65535;O[K+0]=this.h[0]>>>0&255;O[K+1]=this.h[0]>>> 8&255;O[K+2]=this.h[1]>>>0&255;O[K+3]=this.h[1]>>>8&255;O[K+4]=this.h[2]>>>0&255;O[K+5]=this.h[2]>>>8&255;O[K+6]=this.h[3]>>>0&255;O[K+7]=this.h[3]>>>8&255;O[K+8]=this.h[4]>>>0&255;O[K+9]=this.h[4]>>>8&255;O[K+10]=this.h[5]>>>0&255;O[K+11]=this.h[5]>>>8&255;O[K+12]=this.h[6]>>>0&255;O[K+13]=this.h[6]>>>8&255;O[K+14]=this.h[7]>>>0&255;O[K+15]=this.h[7]>>>8&255};Ha.prototype.update=function(O,K,E){var U;if(this.leftover){var W=16-this.leftover;W>E&&(W=E);for(U=0;Uthis.leftover)return;this.blocks(this.buffer,0,16);this.leftover=0}16<=E&&(W=E-E%16,this.blocks(O,K,W),K+=W,E-=W);if(E){for(U=0;UU.length||0!==D(W,U,U.length,K,E)?null:W.subarray(32)};h.secretbox.keyLength=32;h.secretbox.nonceLength=24;h.secretbox.overheadLength=16;h.scalarMult=function(O,K){sa(O,K);if(32!==O.length)throw Error("bad n size");if(32!==K.length)throw Error("bad p size");var E=new Uint8Array(32);v(E,O,K);return E};h.scalarMult.base= function(O){sa(O);if(32!==O.length)throw Error("bad n size");var K=new Uint8Array(32);w(K,O);return K};h.scalarMult.scalarLength=32;h.scalarMult.groupElementLength=32;h.box=function(O,K,E,U){E=h.box.before(E,U);return h.secretbox(O,K,E)};h.box.before=function(O,K){sa(O,K);if(32!==O.length)throw Error("bad public key size");if(32!==K.length)throw Error("bad secret key size");var E=new Uint8Array(32);I(E,O,K);return E};h.box.after=h.secretbox;h.box.open=function(O,K,E,U){E=h.box.before(E,U);return h.secretbox.open(O, K,E)};h.box.open.after=h.secretbox.open;h.box.keyPair=function(){var O=new Uint8Array(32),K=new Uint8Array(32);x(O,K);return{publicKey:O,secretKey:K}};h.box.keyPair.fromSecretKey=function(O){sa(O);if(32!==O.length)throw Error("bad secret key size");var K=new Uint8Array(32);w(K,O);return{publicKey:K,secretKey:new Uint8Array(O)}};h.box.publicKeyLength=32;h.box.secretKeyLength=32;h.box.sharedKeyLength=32;h.box.nonceLength=24;h.box.overheadLength=h.secretbox.overheadLength;h.sign=function(O,K){sa(O,K); if(64!==K.length)throw Error("bad secret key size");var E=new Uint8Array(64+O.length);ca(E,O,O.length,K);return E};h.sign.open=function(O,K){sa(O,K);if(32!==K.length)throw Error("bad public key size");var E=new Uint8Array(O.length);O=ka(E,O,O.length,K);if(0>O)return null;O=new Uint8Array(O);for(K=0;KP;P++)U[P]=K[P];for(P=0;PU;U++)E[U]=O[U];L(K,E,!0);return{publicKey:K,secretKey:E}};h.sign.publicKeyLength=32;h.sign.secretKeyLength=64;h.sign.seedLength=32;h.sign.signatureLength=64;h.hash=function(O){sa(O);var K=new Uint8Array(64);X(K,O,O.length);return K};h.hash.hashLength=64;h.verify=function(O,K){sa(O,K);return 0===O.length|| 0===K.length||O.length!==K.length?!1:0===q(O,0,K,0,O.length)?!0:!1};h.setPRNG=function(O){Ba=O};(function(){var O="undefined"!==typeof self?self.crypto||self.msCrypto:null;O&&O.getRandomValues?h.setPRNG(function(K,E){var U,W=new Uint8Array(E);for(U=0;Ue.i)return a(e.f,e.thisArg,e.params,b);k._handler(e.args[e.i]).fold(m,e,void 0,b)}function m(e,b,d){e.params[e.i]=b;--e.i;g(e,d)}2>arguments.length&&(a=q);return function(e,b,d){var f=k._defer(),p=d.length;g({f:e,thisArg:b,args:d,params:Array(p),i:p-1,call:a},f._handler);return f}}function q(k,a,g,m){try{m.resolve(k.apply(a,g))}catch(e){m.reject(e)}} n.tryCatchResolve=q;return n})})(function(h){H.exports=h()})},{}],266:[function(r,H,A){(function(h){h(function(n){var q=n("../state"),k=n("../apply");return function(a){function g(y){var D;y instanceof a&&(D=y._handler.join());if(D&&0===D.state()||!D)return b(y).then(q.fulfilled,q.rejected);D._unreport();return q.inspect(D)}function m(y){return function(D,z,G){return e(y,void 0,[D,z,G])}}var e=k(a),b=a.resolve,d=a.all,f=Array.prototype.reduce,p=Array.prototype.reduceRight,u=Array.prototype.slice; a.any=function(y){function D(B){T=null;this.resolve(B)}function z(B){this.resolved||(T.push(B),0===--M&&this.reject(T))}for(var G=a._defer(),C=G._handler,N=y.length>>>0,M=N,T=[],Q,l=0;l>>0,l=0,B;for(B=0;Bl?N.reject(new RangeError("some(): array must contain at least "+D+" item(s), but had "+l)):0===l&&N.resolve(M);for(B=0;Barguments.length?d.call(this,f):"function"!==typeof f?this.ensure(n):d.call(this,a(arguments[1],f))};k.prototype["finally"]=k.prototype.ensure=function(f){return"function"!==typeof f?this:this.then(function(p){return g(f,this,q,p)},function(p){return g(f,this,b,p)})};k.prototype["else"]=k.prototype.orElse=function(f){return this.then(void 0, function(){return f})};k.prototype.yield=function(f){return this.then(function(){return f})};k.prototype.tap=function(f){return this.then(f).yield(this)};return k}})})(function(h){H.exports=h()})},{}],268:[function(r,H,A){(function(h){h(function(){return function(n){n.prototype.fold=function(q,k){var a=this._beget();this._handler.fold(function(g,m,e){n._handler(g).fold(function(b,d,f){f.resolve(q.call(this,d,b))},m,this,e)},k,a._handler.receiver,a._handler);return a};return n}})})(function(h){H.exports= h()})},{}],269:[function(r,H,A){(function(h){h(function(n){var q=n("../state").inspect;return function(k){k.prototype.inspect=function(){return q(k._handler(this))};return k}})})(function(h){H.exports=h(r)})},{"../state":278}],270:[function(r,H,A){(function(h){h(function(){return function(n){function q(a,g,m,e){function b(d,f){return k(m(d)).then(function(){return q(a,g,m,f)})}return k(e).then(function(d){return k(g(d)).then(function(f){return f?d:k(a(d)).spread(b)})})}var k=n.resolve;n.iterate=function(a, g,m,e){return q(function(b){return[b,a(b)]},g,m,e)};n.unfold=q;return n}})})(function(h){H.exports=h()})},{}],271:[function(r,H,A){(function(h){h(function(){return function(n){n.prototype.progress=function(q){return this.then(void 0,void 0,q)};return n}})})(function(h){H.exports=h()})},{}],272:[function(r,H,A){(function(h){h(function(n){function q(g,m,e,b){return k.setTimer(function(){g(e,b,m)},m)}var k=n("../env"),a=n("../TimeoutError");return function(g){function m(d,f,p){q(e,d,f,p)}function e(d, f){f.resolve(d)}function b(d,f,p){d="undefined"===typeof d?new a("timed out after "+p+"ms"):d;f.reject(d)}g.prototype.delay=function(d){var f=this._beget();this._handler.fold(m,d,void 0,f._handler);return f};g.prototype.timeout=function(d,f){var p=this._beget(),u=p._handler,y=q(b,d,f,p._handler);this._handler.visit(u,function(D){k.clearTimer(y);this.resolve(D)},function(D){k.clearTimer(y);this.reject(D)},u.notify);return p};return g}})})(function(h){H.exports=h(r)})},{"../TimeoutError":264,"../env":275}], 273:[function(r,H,A){(function(h){h(function(n){function q(m){throw m;}function k(){}var a=n("../env").setTimer,g=n("../format");return function(m){function e(C){C.handled||(z.push(C),p("Potentially unhandled rejection ["+C.id+"] "+g.formatError(C.value)))}function b(C){var N=z.indexOf(C);0<=N&&(z.splice(N,1),u("Handled previous rejection ["+C.id+"] "+g.formatObject(C.value)))}function d(C,N){D.push(C,N);null===G&&(G=a(f,0))}function f(){for(G=null;0>>0,oa=Array(va), Ba=0,Aa;Baka&&ca._unreport()}}}function f(L){return L instanceof k?L._handler.join():F(L)?p(L):new C(L)}function p(L){try{var R=L.then;return"function"===typeof R?new G(R,L):new C(L)}catch(Z){return new N(Z)}}function u(){}function y(){}function D(L,R){k.createContext(this,R);this.consumers=void 0;this.receiver=L;this.handler=void 0;this.resolved=!1}function z(L){this.handler=L}function G(L,R){D.call(this);S.enqueue(new B(L,R,this))}function C(L){k.createContext(this);this.value=L}function N(L){k.createContext(this);this.id=++Y;this.value=L;this.reported=this.handled= !1;this._report()}function M(L,R){this.rejection=L;this.context=R}function T(L){this.rejection=L}function Q(L,R){this.continuation=L;this.handler=R}function l(L,R){this.handler=R;this.value=L}function B(L,R,Z){this._then=L;this.thenable=R;this.resolver=Z}function c(L,R,Z,ca,ka){try{L.call(R,Z,ca,ka)}catch(ma){ca(ma)}}function t(L,R,Z,ca){this.f=L;this.z=R;this.c=Z;this.to=ca;this.resolver=ba;this.receiver=this}function F(L){return("object"===typeof L||"function"===typeof L)&&null!==L}function J(L, R,Z,ca){if("function"!==typeof L)return ca.become(R);k.enterContext(R);try{ca.become(f(L.call(Z,R.value)))}catch(ka){ca.become(new N(ka))}k.exitContext()}function v(L,R,Z){try{return L(R,Z)}catch(ca){return m(ca)}}function w(L,R){R.prototype=aa(L.prototype);R.prototype.constructor=R}function x(L,R){return R}function I(){}var S=q.scheduler,X=function(){if("undefined"!==typeof h&&null!==h&&"function"===typeof h.emit)var L=function(R,Z){return"unhandledRejection"===R?h.emit(R,Z.value,Z):h.emit(R,Z)}; else{if(L="undefined"!==typeof self)a:{if("function"===typeof CustomEvent)try{L=new CustomEvent("unhandledRejection")instanceof CustomEvent;break a}catch(R){}L=!1}if(L)L=function(R,Z){return function(ca,ka){ca=new Z(ca,{detail:{reason:ka.value,key:ka},bubbles:!1,cancelable:!0});return!R.dispatchEvent(ca)}}(self,CustomEvent);else{if(L="undefined"!==typeof self)a:{if("undefined"!==typeof document&&"function"===typeof document.createEvent)try{document.createEvent("CustomEvent").initCustomEvent("eventType", !1,!0,{});L=!0;break a}catch(R){}L=!1}L=L?function(R,Z){return function(ca,ka){var ma=Z.createEvent("CustomEvent");ma.initCustomEvent(ca,!1,!0,{reason:ka.value,key:ka});return!R.dispatchEvent(ma)}}(self,document):I}}return L}(),aa=Object.create||function(L){function R(){}R.prototype=L;return new R};k.resolve=g;k.reject=m;k.never=function(){return ea};k._defer=function(){return new k(u,new D)};k._handler=f;k.prototype.then=function(L,R,Z){var ca=this._handler,ka=ca.join().state();if("function"!==typeof L&& 0ka)return new this.constructor(u,ca);ka=this._beget();ca.chain(ka._handler,ca.receiver,L,R,Z);return ka};k.prototype["catch"]=function(L){return this.then(void 0,L)};k.prototype._beget=function(){var L=this._handler,R=this.constructor;L=new D(L.receiver,L.join().context);return new R(u,L)};k.all=function(L){return e(x,null,L)};k.race=function(L){if("object"!==typeof L||null===L)return m(new TypeError("non-iterable passed to race()"));if(0===L.length)L=ea;else if(1=== L.length)L=g(L[0]);else{var R=new D,Z;for(Z=0;Zarguments.length?l:l.then(M,T,Q)}function k(N){return function(){for(var M=0,T=arguments.length,Q=Array(T);M= 7.10.1"},dependencies:{cbor:">= 3.0.0","crypto-js":">=3.1.8",msgpack5:">= 3.6.0",tweetnacl:">= 0.14.3",ws:">= 1.1.4"},optionalDependencies:{bufferutil:">= 1.2.1","utf-8-validate":">= 1.2.1",when:">= 3.7.7"},devDependencies:{browserify:">= 13.1.1","deep-equal":">= 1.0.1","google-closure-compiler":">= 20170218.0.0",nodeunit:">= 0.11.3", "random-bytes-seed":">=1.0.3"},browser:{cbor:!1,ws:!1,"./lib/transport/rawsocket.js":!1},repository:{type:"git",url:"git://github.com/crossbario/autobahn-js.git"},keywords:"WAMP WebSocket RPC PubSub ethereum solidity xbr crossbar autobahn wamp data-service data-monetization".split(" "),author:"Crossbar.io Technologies GmbH",license:"MIT"}},{}]},{},[4])(4)});