!function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=279)}([function(e,t,i){var r=i(4),n=i(28),o=i(17),a=i(18),s=i(29),f=function(e,t,i){var h,l,u,c,_=e&f.F,m=e&f.G,d=e&f.S,g=e&f.P,p=e&f.B,b=m?r:d?r[t]||(r[t]={}):(r[t]||{}).prototype,v=m?n:n[t]||(n[t]={}),w=v.prototype||(v.prototype={});for(h in m&&(i=t),i)u=((l=!_&&b&&void 0!==b[h])?b:i)[h],c=p&&l?s(u,r):g&&"function"==typeof u?s(Function.call,u):u,b&&a(b,h,u,e&f.U),v[h]!=u&&o(v,h,c),g&&w[h]!=u&&(w[h]=u)};r.core=n,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},function(e,t,i){var r=i(6);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,i){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var r=i(14),n=r.Buffer;function o(e,t){for(var i in e)t[i]=e[i]}function a(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(n.prototype),o(n,a),a.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){var r=i(73)("wks"),n=i(49),o=i(4).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:n)("Symbol."+e))}).store=r},function(e,t,i){var r=i(31),n=Math.min;e.exports=function(e){return e>0?n(r(e),9007199254740991):0}},function(e,t,i){e.exports=!i(5)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,i){var r=i(2),n=i(167),o=i(33),a=Object.defineProperty;t.f=i(10)?Object.defineProperty:function(e,t,i){if(r(e),t=o(t,!0),r(i),n)try{return a(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t){var i,r,n=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var f,h=[],l=!1,u=-1;function c(){l&&f&&(l=!1,f.length?h=f.concat(h):u=-1,h.length&&_())}function _(){if(!l){var e=s(c);l=!0;for(var t=h.length;t;){for(f=h,h=[];++u1)for(var i=1;i * @license MIT */ var r=i(576),n=i(577),o=i(226);function a(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return H(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function d(e,t,i){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return x(this,t,i);case"utf8":case"utf-8":return k(this,t,i);case"ascii":return R(this,t,i);case"latin1":case"binary":return T(this,t,i);case"base64":return A(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function p(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:b(e,t,i,r,n);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,r,n){var o,a=1,s=e.length,f=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,f/=2,i/=2}function h(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var l=-1;for(o=i;os&&(i=s-f),o=i;o>=0;o--){for(var u=!0,c=0;cn&&(r=n):r=n;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,n=i%256,o.push(n),o.push(r);return o}(t,e.length-i),e,i,r)}function A(e,t,i){return 0===t&&i===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,i))}function k(e,t,i){i=Math.min(e.length,i);for(var r=[],n=t;n239?4:h>223?3:h>191?2:1;if(n+u<=i)switch(u){case 1:h<128&&(l=h);break;case 2:128==(192&(o=e[n+1]))&&(f=(31&h)<<6|63&o)>127&&(l=f);break;case 3:o=e[n+1],a=e[n+2],128==(192&o)&&128==(192&a)&&(f=(15&h)<<12|(63&o)<<6|63&a)>2047&&(f<55296||f>57343)&&(l=f);break;case 4:o=e[n+1],a=e[n+2],s=e[n+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(f=(15&h)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&f<1114112&&(l=f)}null===l?(l=65533,u=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),n+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var i="",r=0;for(;r0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),""},f.prototype.compare=function(e,t,i,r,n){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;for(var o=(n>>>=0)-(r>>>=0),a=(i>>>=0)-(t>>>=0),s=Math.min(o,a),h=this.slice(r,n),l=e.slice(t,i),u=0;un)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,i);case"utf8":case"utf-8":return w(this,e,t,i);case"ascii":return y(this,e,t,i);case"latin1":case"binary":return M(this,e,t,i);case"base64":return E(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,i);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(e,t,i){var r="";i=Math.min(e.length,i);for(var n=t;nr)&&(i=r);for(var n="",o=t;oi)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,i,r,n,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw new RangeError("Index out of range")}function L(e,t,i,r){t<0&&(t=65535+t+1);for(var n=0,o=Math.min(e.length-i,2);n>>8*(r?n:1-n)}function N(e,t,i,r){t<0&&(t=4294967295+t+1);for(var n=0,o=Math.min(e.length-i,4);n>>8*(r?n:3-n)&255}function C(e,t,i,r,n,o){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function B(e,t,i,r,o){return o||C(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function D(e,t,i,r,o){return o||C(e,0,i,8),n.write(e,t,i,r,52,8),i+8}f.prototype.slice=function(e,t){var i,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(n*=256);)r+=this[e+--t]*n;return r},f.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||O(e,t,this.length);for(var r=this[e],n=1,o=0;++o=(n*=128)&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||O(e,t,this.length);for(var r=t,n=1,o=this[e+--r];r>0&&(n*=256);)o+=this[e+--r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},f.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},f.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),n.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),n.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),n.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),n.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,i,r){(e=+e,t|=0,i|=0,r)||j(this,e,t,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+n]=e/o&255;return t+i},f.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);j(this,e,t,i,n-1,-n)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+i},f.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t|=0,!r){var n=Math.pow(2,8*i-1);j(this,e,t,i,n-1,-n)}var o=i-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+i},f.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,i){return B(this,e,t,!0,i)},f.prototype.writeFloatBE=function(e,t,i){return B(this,e,t,!1,i)},f.prototype.writeDoubleLE=function(e,t,i){return D(this,e,t,!0,i)},f.prototype.writeDoubleBE=function(e,t,i){return D(this,e,t,!1,i)},f.prototype.copy=function(e,t,i,r){if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--n)e[n+t]=this[n+i];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&o.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;o.push(i)}else if(i<2048){if((t-=2)<0)break;o.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,i,r){for(var n=0;n=t.length||n>=e.length);++n)t[n+i]=e[n];return n}}).call(this,i(7))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){"use strict";var r=Array.prototype.forEach,n=Object.prototype.hasOwnProperty;e.exports=function(e){return r.call(arguments,(function(t,i){if(0!==i)for(var r in t)n.call(t,r)&&(e[r]=t[r])})),e}},function(e,t,i){var r=i(11),n=i(48);e.exports=i(10)?function(e,t,i){return r.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var r=i(4),n=i(17),o=i(22),a=i(49)("src"),s=i(292),f=(""+s).split("toString");i(28).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,i,s){var h="function"==typeof i;h&&(o(i,"name")||n(i,"name",t)),e[t]!==i&&(h&&(o(i,a)||n(i,a,e[t]?""+e[t]:f.join(String(t)))),e===r?e[t]=i:s?e[t]?e[t]=i:n(e,t,i):(delete e[t],n(e,t,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t,i){var r=i(0),n=i(5),o=i(34),a=/"/g,s=function(e,t,i,r){var n=String(o(e)),s="<"+t;return""!==i&&(s+=" "+i+'="'+String(r).replace(a,""")+'"'),s+">"+n+""};e.exports=function(e,t){var i={};i[e]=t(s),r(r.P+r.F*n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",i)}},function(e,t,i){"use strict";var r=i(16);e.exports=function(e,t){"function"!=typeof e&&(t=e,e=Object);var i=function(){return this.initialize&&this.initialize.apply(this,arguments)||this},n=function(){};return n.prototype=e.prototype,i.prototype=new n,r(i.prototype,t),i}},function(e,t,i){"use strict";var r=i(211),n=Object.prototype.toString;function o(e){return"[object Array]"===n.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function f(e){return"[object Function]"===n.call(e)}function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var i=0,r=e.length;i(n>>1)-1?(n>>1)-f:f,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var r,n=0,o=0;e.cmpn(-n)>0||t.cmpn(-o)>0;){var a,s,f=e.andln(3)+n&3,h=t.andln(3)+o&3;3===f&&(f=-1),3===h&&(h=-1),a=0==(1&f)?0:3!==(r=e.andln(7)+n&7)&&5!==r||2!==h?f:-f,i[0].push(a),s=0==(1&h)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==f?h:-h,i[1].push(s),2*n===a+1&&(n=1-n),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return i},r.cachedProperty=function(e,t,i){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new n(e,"hex","le")}},function(e,t){var i=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i)},function(e,t,i){var r=i(15);e.exports=function(e,t,i){if(r(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,r){return e.call(t,i,r)};case 3:return function(i,r,n){return e.call(t,i,r,n)}}return function(){return e.apply(t,arguments)}}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t){var i=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:i)(e)}},function(e,t,i){"use strict";var r=i(5);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){var r=i(6);e.exports=function(e,t){if(!r(e))return e;var i,n;if(t&&"function"==typeof(i=e.toString)&&!r(n=i.call(e)))return n;if("function"==typeof(i=e.valueOf)&&!r(n=i.call(e)))return n;if(!t&&"function"==typeof(i=e.toString)&&!r(n=i.call(e)))return n;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var r=i(0),n=i(28),o=i(5);e.exports=function(e,t){var i=(n.Object||{})[e]||Object[e],a={};a[e]=t(i),r(r.S+r.F*o((function(){i(1)})),"Object",a)}},function(e,t,i){var r=i(29),n=i(74),o=i(13),a=i(9),s=i(128);e.exports=function(e,t){var i=1==e,f=2==e,h=3==e,l=4==e,u=6==e,c=5==e||u,_=t||s;return function(t,s,m){for(var d,g,p=o(t),b=n(p),v=r(s,m,3),w=a(b.length),y=0,M=i?_(t,w):f?_(t,0):void 0;w>y;y++)if((c||y in b)&&(g=v(d=b[y],y,p),e))if(i)M[y]=g;else if(g)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:M.push(d)}else if(l)return!1;return u?-1:h||l?l:M}}},function(e,t,i){"use strict";var r=i(26),n=i(1);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function f(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=n,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>6|192,i[r++]=63&a|128):o(e,n)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++n)),i[r++]=a>>18|240,i[r++]=a>>12&63|128,i[r++]=a>>6&63|128,i[r++]=63&a|128):(i[r++]=a>>12|224,i[r++]=a>>6&63|128,i[r++]=63&a|128)}else for(n=0;n>>0}return a},t.split32=function(e,t){for(var i=new Array(4*e.length),r=0,n=0;r>>24,i[n+1]=o>>>16&255,i[n+2]=o>>>8&255,i[n+3]=255&o):(i[n+3]=o>>>24,i[n+2]=o>>>16&255,i[n+1]=o>>>8&255,i[n]=255&o)}return i},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,i){return e+t+i>>>0},t.sum32_4=function(e,t,i,r){return e+t+i+r>>>0},t.sum32_5=function(e,t,i,r,n){return e+t+i+r+n>>>0},t.sum64=function(e,t,i,r){var n=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,i,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,i,r){return t+r>>>0},t.sum64_4_hi=function(e,t,i,r,n,o,a,s){var f=0,h=t;return f+=(h=h+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,i,r,n,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,i,r,n,o,a,s,f,h){var l=0,u=t;return l+=(u=u+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,i,r,n,o,a,s,f,h){return t+r+o+s+h>>>0},t.rotr64_hi=function(e,t,i){return(t<<32-i|e>>>i)>>>0},t.rotr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0},t.shr64_hi=function(e,t,i){return e>>>i},t.shr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0}},function(e,t,i){"use strict";if(i(10)){var r=i(43),n=i(4),o=i(5),a=i(0),s=i(98),f=i(136),h=i(29),l=i(55),u=i(48),c=i(17),_=i(57),m=i(31),d=i(9),g=i(195),p=i(51),b=i(33),v=i(22),w=i(62),y=i(6),M=i(13),E=i(125),S=i(52),A=i(25),k=i(53).f,R=i(127),T=i(49),x=i(8),I=i(36),O=i(88),j=i(77),L=i(130),N=i(64),C=i(93),B=i(54),D=i(129),P=i(184),U=i(11),F=i(24),H=U.f,G=F.f,q=n.RangeError,W=n.TypeError,Y=n.Uint8Array,z=Array.prototype,K=f.ArrayBuffer,V=f.DataView,Z=I(0),$=I(2),X=I(3),J=I(4),Q=I(5),ee=I(6),te=O(!0),ie=O(!1),re=L.values,ne=L.keys,oe=L.entries,ae=z.lastIndexOf,se=z.reduce,fe=z.reduceRight,he=z.join,le=z.sort,ue=z.slice,ce=z.toString,_e=z.toLocaleString,me=x("iterator"),de=x("toStringTag"),ge=T("typed_constructor"),pe=T("def_constructor"),be=s.CONSTR,ve=s.TYPED,we=s.VIEW,ye=I(1,(function(e,t){return ke(j(e,e[pe]),t)})),Me=o((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),Ee=!!Y&&!!Y.prototype.set&&o((function(){new Y(1).set({})})),Se=function(e,t){var i=m(e);if(i<0||i%t)throw q("Wrong offset!");return i},Ae=function(e){if(y(e)&&ve in e)return e;throw W(e+" is not a typed array!")},ke=function(e,t){if(!y(e)||!(ge in e))throw W("It is not a typed array constructor!");return new e(t)},Re=function(e,t){return Te(j(e,e[pe]),t)},Te=function(e,t){for(var i=0,r=t.length,n=ke(e,r);r>i;)n[i]=t[i++];return n},xe=function(e,t,i){H(e,t,{get:function(){return this._d[i]}})},Ie=function(e){var t,i,r,n,o,a,s=M(e),f=arguments.length,l=f>1?arguments[1]:void 0,u=void 0!==l,c=R(s);if(null!=c&&!E(c)){for(a=c.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(u&&f>2&&(l=h(l,arguments[2],2)),t=0,i=d(s.length),n=ke(this,i);i>t;t++)n[t]=u?l(s[t],t):s[t];return n},Oe=function(){for(var e=0,t=arguments.length,i=ke(this,t);t>e;)i[e]=arguments[e++];return i},je=!!Y&&o((function(){_e.call(new Y(1))})),Le=function(){return _e.apply(je?ue.call(Ae(this)):Ae(this),arguments)},Ne={copyWithin:function(e,t){return P.call(Ae(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Ae(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return D.apply(Ae(this),arguments)},filter:function(e){return Re(this,$(Ae(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Ae(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ae(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Z(Ae(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ie(Ae(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ae(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Ae(this),arguments)},lastIndexOf:function(e){return ae.apply(Ae(this),arguments)},map:function(e){return ye(Ae(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ae(this),arguments)},reduceRight:function(e){return fe.apply(Ae(this),arguments)},reverse:function(){for(var e,t=Ae(this).length,i=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return le.call(Ae(this),e)},subarray:function(e,t){var i=Ae(this),r=i.length,n=p(e,r);return new(j(i,i[pe]))(i.buffer,i.byteOffset+n*i.BYTES_PER_ELEMENT,d((void 0===t?r:p(t,r))-n))}},Ce=function(e,t){return Re(this,ue.call(Ae(this),e,t))},Be=function(e){Ae(this);var t=Se(arguments[1],1),i=this.length,r=M(e),n=d(r.length),o=0;if(n+t>i)throw q("Wrong length!");for(;o255?255:255&r),n.v[_](i*t+n.o,r,Me)}(this,i,e)},enumerable:!0})};v?(m=i((function(e,i,r,n){l(e,m,h,"_d");var o,a,s,f,u=0,_=0;if(y(i)){if(!(i instanceof K||"ArrayBuffer"==(f=w(i))||"SharedArrayBuffer"==f))return ve in i?Te(m,i):Ie.call(m,i);o=i,_=Se(r,t);var p=i.byteLength;if(void 0===n){if(p%t)throw q("Wrong length!");if((a=p-_)<0)throw q("Wrong length!")}else if((a=d(n)*t)+_>p)throw q("Wrong length!");s=a/t}else s=g(i),o=new K(a=s*t);for(c(e,"_d",{b:o,o:_,l:a,e:s,v:new V(o)});u0&&a.length>n&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,s=f,console&&console.warn&&console.warn(s)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,i){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},n=c.bind(r);return n.listener=i,r.wrapFn=n,n}function m(e,t,i){var r=e._events;if(void 0===r)return[];var n=r[t];return void 0===n?[]:"function"==typeof n?i?[n.listener||n]:[n]:i?function(e){for(var t=new Array(e.length),i=0;i0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var f=n[e];if(void 0===f)return!1;if("function"==typeof f)o(f,this,t);else{var h=f.length,l=g(f,h);for(i=0;i=0;o--)if(i[o]===t||i[o].listener===t){a=i[o].listener,n=o;break}if(n<0)return this;0===n?i.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,i){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(639).Buffer}catch(e){}function s(e,t){var i=e.charCodeAt(t);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function f(e,t,i){var r=s(e,i);return i-1>=t&&(r|=s(e,i-1)<<4),r}function h(e,t,i,r){for(var n=0,o=Math.min(e.length,i),a=t;a=49?s-49+10:s>=17?s-17+10:s}return n}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===i)for(n=0,o=0;n>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)n=f(e,t,r)<=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var o=e.length-i,a=o%r,s=Math.min(o,o-a)+i,f=0,l=i;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l=["","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"],u=[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],c=[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];function _(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],o=0|t.words[0],a=n*o,s=67108863&a,f=a/67108864|0;i.words[0]=s;for(var h=1;h>>26,u=67108863&f,c=Math.min(h,t.length-1),_=Math.max(0,h-e.length+1);_<=c;_++){var m=h-_|0;l+=(a=(n=0|e.words[m])*(o=0|t.words[_])+u)/67108864|0,u=67108863&a}i.words[h]=0|u,f=0|l}return 0!==f?i.words[h]=0|f:i.length--,i.strip()}o.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,o=0,a=0;a>>24-n&16777215)||a!==this.length-1?l[6-f.length]+f+i:f+i,(n+=2)>=26&&(n-=26,a--)}for(0!==o&&(i=o.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],_=c[e];i="";var m=this.clone();for(m.negative=0;!m.isZero();){var d=m.modn(_).toString(e);i=(m=m.idivn(_)).isZero()?d+i:l[h-d.length]+d+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),o=i||Math.max(1,n);r(n<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,f="le"===t,h=new e(o),l=this.clone();if(f){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),h[s]=a;for(;s=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;ie.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<e.length?(i=this,r=e):(i=e,r=this);for(var n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=e):(i=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,_=0|a[1],m=8191&_,d=_>>>13,g=0|a[2],p=8191&g,b=g>>>13,v=0|a[3],w=8191&v,y=v>>>13,M=0|a[4],E=8191&M,S=M>>>13,A=0|a[5],k=8191&A,R=A>>>13,T=0|a[6],x=8191&T,I=T>>>13,O=0|a[7],j=8191&O,L=O>>>13,N=0|a[8],C=8191&N,B=N>>>13,D=0|a[9],P=8191&D,U=D>>>13,F=0|s[0],H=8191&F,G=F>>>13,q=0|s[1],W=8191&q,Y=q>>>13,z=0|s[2],K=8191&z,V=z>>>13,Z=0|s[3],$=8191&Z,X=Z>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],ie=8191&te,re=te>>>13,ne=0|s[6],oe=8191&ne,ae=ne>>>13,se=0|s[7],fe=8191&se,he=se>>>13,le=0|s[8],ue=8191&le,ce=le>>>13,_e=0|s[9],me=8191&_e,de=_e>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(h+(r=Math.imul(u,H))|0)+((8191&(n=(n=Math.imul(u,G))+Math.imul(c,H)|0))<<13)|0;h=((o=Math.imul(c,G))+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(m,H),n=(n=Math.imul(m,G))+Math.imul(d,H)|0,o=Math.imul(d,G);var pe=(h+(r=r+Math.imul(u,W)|0)|0)+((8191&(n=(n=n+Math.imul(u,Y)|0)+Math.imul(c,W)|0))<<13)|0;h=((o=o+Math.imul(c,Y)|0)+(n>>>13)|0)+(pe>>>26)|0,pe&=67108863,r=Math.imul(p,H),n=(n=Math.imul(p,G))+Math.imul(b,H)|0,o=Math.imul(b,G),r=r+Math.imul(m,W)|0,n=(n=n+Math.imul(m,Y)|0)+Math.imul(d,W)|0,o=o+Math.imul(d,Y)|0;var be=(h+(r=r+Math.imul(u,K)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(c,K)|0))<<13)|0;h=((o=o+Math.imul(c,V)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(w,H),n=(n=Math.imul(w,G))+Math.imul(y,H)|0,o=Math.imul(y,G),r=r+Math.imul(p,W)|0,n=(n=n+Math.imul(p,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(m,K)|0,n=(n=n+Math.imul(m,V)|0)+Math.imul(d,K)|0,o=o+Math.imul(d,V)|0;var ve=(h+(r=r+Math.imul(u,$)|0)|0)+((8191&(n=(n=n+Math.imul(u,X)|0)+Math.imul(c,$)|0))<<13)|0;h=((o=o+Math.imul(c,X)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(E,H),n=(n=Math.imul(E,G))+Math.imul(S,H)|0,o=Math.imul(S,G),r=r+Math.imul(w,W)|0,n=(n=n+Math.imul(w,Y)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,K)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0,r=r+Math.imul(m,$)|0,n=(n=n+Math.imul(m,X)|0)+Math.imul(d,$)|0,o=o+Math.imul(d,X)|0;var we=(h+(r=r+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(c,Q)|0))<<13)|0;h=((o=o+Math.imul(c,ee)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(k,H),n=(n=Math.imul(k,G))+Math.imul(R,H)|0,o=Math.imul(R,G),r=r+Math.imul(E,W)|0,n=(n=n+Math.imul(E,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,K)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,V)|0,r=r+Math.imul(p,$)|0,n=(n=n+Math.imul(p,X)|0)+Math.imul(b,$)|0,o=o+Math.imul(b,X)|0,r=r+Math.imul(m,Q)|0,n=(n=n+Math.imul(m,ee)|0)+Math.imul(d,Q)|0,o=o+Math.imul(d,ee)|0;var ye=(h+(r=r+Math.imul(u,ie)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(c,ie)|0))<<13)|0;h=((o=o+Math.imul(c,re)|0)+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(x,H),n=(n=Math.imul(x,G))+Math.imul(I,H)|0,o=Math.imul(I,G),r=r+Math.imul(k,W)|0,n=(n=n+Math.imul(k,Y)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,K)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(w,$)|0,n=(n=n+Math.imul(w,X)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,X)|0,r=r+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(m,ie)|0,n=(n=n+Math.imul(m,re)|0)+Math.imul(d,ie)|0,o=o+Math.imul(d,re)|0;var Me=(h+(r=r+Math.imul(u,oe)|0)|0)+((8191&(n=(n=n+Math.imul(u,ae)|0)+Math.imul(c,oe)|0))<<13)|0;h=((o=o+Math.imul(c,ae)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(j,H),n=(n=Math.imul(j,G))+Math.imul(L,H)|0,o=Math.imul(L,G),r=r+Math.imul(x,W)|0,n=(n=n+Math.imul(x,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(k,K)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,V)|0,r=r+Math.imul(E,$)|0,n=(n=n+Math.imul(E,X)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(y,Q)|0,o=o+Math.imul(y,ee)|0,r=r+Math.imul(p,ie)|0,n=(n=n+Math.imul(p,re)|0)+Math.imul(b,ie)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(m,oe)|0,n=(n=n+Math.imul(m,ae)|0)+Math.imul(d,oe)|0,o=o+Math.imul(d,ae)|0;var Ee=(h+(r=r+Math.imul(u,fe)|0)|0)+((8191&(n=(n=n+Math.imul(u,he)|0)+Math.imul(c,fe)|0))<<13)|0;h=((o=o+Math.imul(c,he)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(C,H),n=(n=Math.imul(C,G))+Math.imul(B,H)|0,o=Math.imul(B,G),r=r+Math.imul(j,W)|0,n=(n=n+Math.imul(j,Y)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(x,K)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,V)|0,r=r+Math.imul(k,$)|0,n=(n=n+Math.imul(k,X)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,X)|0,r=r+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ie)|0,n=(n=n+Math.imul(w,re)|0)+Math.imul(y,ie)|0,o=o+Math.imul(y,re)|0,r=r+Math.imul(p,oe)|0,n=(n=n+Math.imul(p,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(m,fe)|0,n=(n=n+Math.imul(m,he)|0)+Math.imul(d,fe)|0,o=o+Math.imul(d,he)|0;var Se=(h+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,ce)|0)+Math.imul(c,ue)|0))<<13)|0;h=((o=o+Math.imul(c,ce)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,H),n=(n=Math.imul(P,G))+Math.imul(U,H)|0,o=Math.imul(U,G),r=r+Math.imul(C,W)|0,n=(n=n+Math.imul(C,Y)|0)+Math.imul(B,W)|0,o=o+Math.imul(B,Y)|0,r=r+Math.imul(j,K)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,V)|0,r=r+Math.imul(x,$)|0,n=(n=n+Math.imul(x,X)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,X)|0,r=r+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(E,ie)|0,n=(n=n+Math.imul(E,re)|0)+Math.imul(S,ie)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,n=(n=n+Math.imul(w,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,r=r+Math.imul(p,fe)|0,n=(n=n+Math.imul(p,he)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,he)|0,r=r+Math.imul(m,ue)|0,n=(n=n+Math.imul(m,ce)|0)+Math.imul(d,ue)|0,o=o+Math.imul(d,ce)|0;var Ae=(h+(r=r+Math.imul(u,me)|0)|0)+((8191&(n=(n=n+Math.imul(u,de)|0)+Math.imul(c,me)|0))<<13)|0;h=((o=o+Math.imul(c,de)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(P,W),n=(n=Math.imul(P,Y))+Math.imul(U,W)|0,o=Math.imul(U,Y),r=r+Math.imul(C,K)|0,n=(n=n+Math.imul(C,V)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,V)|0,r=r+Math.imul(j,$)|0,n=(n=n+Math.imul(j,X)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,X)|0,r=r+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(k,ie)|0,n=(n=n+Math.imul(k,re)|0)+Math.imul(R,ie)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(E,oe)|0,n=(n=n+Math.imul(E,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,fe)|0,n=(n=n+Math.imul(w,he)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,he)|0,r=r+Math.imul(p,ue)|0,n=(n=n+Math.imul(p,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0;var ke=(h+(r=r+Math.imul(m,me)|0)|0)+((8191&(n=(n=n+Math.imul(m,de)|0)+Math.imul(d,me)|0))<<13)|0;h=((o=o+Math.imul(d,de)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(P,K),n=(n=Math.imul(P,V))+Math.imul(U,K)|0,o=Math.imul(U,V),r=r+Math.imul(C,$)|0,n=(n=n+Math.imul(C,X)|0)+Math.imul(B,$)|0,o=o+Math.imul(B,X)|0,r=r+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(x,ie)|0,n=(n=n+Math.imul(x,re)|0)+Math.imul(I,ie)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(k,oe)|0,n=(n=n+Math.imul(k,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,r=r+Math.imul(E,fe)|0,n=(n=n+Math.imul(E,he)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,he)|0,r=r+Math.imul(w,ue)|0,n=(n=n+Math.imul(w,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0;var Re=(h+(r=r+Math.imul(p,me)|0)|0)+((8191&(n=(n=n+Math.imul(p,de)|0)+Math.imul(b,me)|0))<<13)|0;h=((o=o+Math.imul(b,de)|0)+(n>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(P,$),n=(n=Math.imul(P,X))+Math.imul(U,$)|0,o=Math.imul(U,X),r=r+Math.imul(C,Q)|0,n=(n=n+Math.imul(C,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(j,ie)|0,n=(n=n+Math.imul(j,re)|0)+Math.imul(L,ie)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(x,oe)|0,n=(n=n+Math.imul(x,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(k,fe)|0,n=(n=n+Math.imul(k,he)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,he)|0,r=r+Math.imul(E,ue)|0,n=(n=n+Math.imul(E,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0;var Te=(h+(r=r+Math.imul(w,me)|0)|0)+((8191&(n=(n=n+Math.imul(w,de)|0)+Math.imul(y,me)|0))<<13)|0;h=((o=o+Math.imul(y,de)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(P,Q),n=(n=Math.imul(P,ee))+Math.imul(U,Q)|0,o=Math.imul(U,ee),r=r+Math.imul(C,ie)|0,n=(n=n+Math.imul(C,re)|0)+Math.imul(B,ie)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(j,oe)|0,n=(n=n+Math.imul(j,ae)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,r=r+Math.imul(x,fe)|0,n=(n=n+Math.imul(x,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0,r=r+Math.imul(k,ue)|0,n=(n=n+Math.imul(k,ce)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,ce)|0;var xe=(h+(r=r+Math.imul(E,me)|0)|0)+((8191&(n=(n=n+Math.imul(E,de)|0)+Math.imul(S,me)|0))<<13)|0;h=((o=o+Math.imul(S,de)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(P,ie),n=(n=Math.imul(P,re))+Math.imul(U,ie)|0,o=Math.imul(U,re),r=r+Math.imul(C,oe)|0,n=(n=n+Math.imul(C,ae)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,r=r+Math.imul(j,fe)|0,n=(n=n+Math.imul(j,he)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,he)|0,r=r+Math.imul(x,ue)|0,n=(n=n+Math.imul(x,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0;var Ie=(h+(r=r+Math.imul(k,me)|0)|0)+((8191&(n=(n=n+Math.imul(k,de)|0)+Math.imul(R,me)|0))<<13)|0;h=((o=o+Math.imul(R,de)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(P,oe),n=(n=Math.imul(P,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(C,fe)|0,n=(n=n+Math.imul(C,he)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,he)|0,r=r+Math.imul(j,ue)|0,n=(n=n+Math.imul(j,ce)|0)+Math.imul(L,ue)|0,o=o+Math.imul(L,ce)|0;var Oe=(h+(r=r+Math.imul(x,me)|0)|0)+((8191&(n=(n=n+Math.imul(x,de)|0)+Math.imul(I,me)|0))<<13)|0;h=((o=o+Math.imul(I,de)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(P,fe),n=(n=Math.imul(P,he))+Math.imul(U,fe)|0,o=Math.imul(U,he),r=r+Math.imul(C,ue)|0,n=(n=n+Math.imul(C,ce)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,ce)|0;var je=(h+(r=r+Math.imul(j,me)|0)|0)+((8191&(n=(n=n+Math.imul(j,de)|0)+Math.imul(L,me)|0))<<13)|0;h=((o=o+Math.imul(L,de)|0)+(n>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(P,ue),n=(n=Math.imul(P,ce))+Math.imul(U,ue)|0,o=Math.imul(U,ce);var Le=(h+(r=r+Math.imul(C,me)|0)|0)+((8191&(n=(n=n+Math.imul(C,de)|0)+Math.imul(B,me)|0))<<13)|0;h=((o=o+Math.imul(B,de)|0)+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863;var Ne=(h+(r=Math.imul(P,me))|0)+((8191&(n=(n=Math.imul(P,de))+Math.imul(U,me)|0))<<13)|0;return h=((o=Math.imul(U,de))+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,f[0]=ge,f[1]=pe,f[2]=be,f[3]=ve,f[4]=we,f[5]=ye,f[6]=Me,f[7]=Ee,f[8]=Se,f[9]=Ae,f[10]=ke,f[11]=Re,f[12]=Te,f[13]=xe,f[14]=Ie,f[15]=Oe,f[16]=je,f[17]=Le,f[18]=Ne,0!==h&&(f[19]=h,i.length++),i};function d(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=_),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):i<63?_(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,a&=67108863}i.words[o]=s,r=a,a=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}(this,e,t):d(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,i,r,n,o){for(var a=0;a>>=1)n++;return 1<>>=13,i[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=n/67108864|0,t+=o>>>26,this.words[i]=67108863&o}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i>>n}return t}(e);if(0===t.length)return new o(1);for(var i=this,r=0;r=0);var t,i=e%26,n=(e-i)/26,o=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,h=0;h=0&&(0!==l||h>=n);h--){var u=0|this.words[h];this.words[h]=l<<26-o|u>>>o,l=u&s}return f&&0!==l&&(f.words[f.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<=0);var t=e%26,i=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(f/67108864|0),this.words[n+i]=67108863&o}for(;n>26,this.words[n+i]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,n=0;n>26,this.words[n]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,a=0|n.words[n.length-1];0!==(i=26-this._countBits(a))&&(n=n.ushln(i),r.iushln(i),a=0|n.words[n.length-1]);var s,f=r.length-n.length;if("mod"!==t){(s=new o(null)).length=f+1,s.words=new Array(s.length);for(var h=0;h=0;u--){var c=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(c=Math.min(c/a|0,67108863),r._ishlnsubmul(n,c,u);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);s&&(s.words[u]=c)}return s&&s.strip(),r.strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,i){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),i&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),o=i.cmp(r);return o<0||1===n&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(0|this.words[n]))%e;return i},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),a=new o(0),s=new o(0),f=new o(1),h=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++h;for(var l=i.clone(),u=t.clone();!t.isZero();){for(var c=0,_=1;0==(t.words[0]&_)&&c<26;++c,_<<=1);if(c>0)for(t.iushrn(c);c-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(l),a.isub(u)),n.iushrn(1),a.iushrn(1);for(var m=0,d=1;0==(i.words[0]&d)&&m<26;++m,d<<=1);if(m>0)for(i.iushrn(m);m-- >0;)(s.isOdd()||f.isOdd())&&(s.iadd(l),f.isub(u)),s.iushrn(1),f.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(s),a.isub(f)):(i.isub(t),s.isub(n),f.isub(a))}return{a:s,b:f,gcd:i.iushln(h)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new o(1),s=new o(0),f=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var h=0,l=1;0==(t.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(t.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);for(var u=0,c=1;0==(i.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(i.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),a.isub(s)):(i.isub(t),s.isub(a))}return(n=0===t.cmpn(1)?a:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var o=t;t=i,i=o}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){rn&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new E(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var p={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function y(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},n(v,b),v.prototype.split=function(e,t){for(var i=Math.min(e.length,9),r=0;r>>22,n=o}n>>>=22,e.words[r-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(p[e])return p[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new M}return p[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},E.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);r(!n.isZero());var s=new o(1).toRed(this),f=s.redNeg(),h=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,h).cmp(f);)l.redIAdd(f);for(var u=this.pow(l,n),c=this.pow(e,n.addn(1).iushrn(1)),_=this.pow(e,n),m=a;0!==_.cmp(s);){for(var d=_,g=0;0!==d.cmp(s);g++)d=d.redSqr();r(g=0;r--){for(var h=t.words[r],l=f-1;l>=0;l--){var u=h>>l&1;n!==i[0]&&(n=this.sqr(n)),0!==u||0!==a?(a<<=1,a|=u,(4===++s||0===r&&0===l)&&(n=this.mul(n,i[a]),s=0,a=0)):s=0}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},n(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,i(41)(e))},function(e,t){e.exports=!1},function(e,t,i){var r=i(49)("meta"),n=i(6),o=i(22),a=i(11).f,s=0,f=Object.isExtensible||function(){return!0},h=!i(5)((function(){return f(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},u=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!f(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!f(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return h&&u.NEED&&f(e)&&!o(e,r)&&l(e),e}}},function(e,t,i){var r=i(8)("unscopables"),n=Array.prototype;null==n[r]&&i(17)(n,r,{}),e.exports=function(e){n[r][e]=!0}},function(e,t,i){var r=i(219),n="object"==typeof self&&self&&self.Object===Object&&self,o=r||n||Function("return this")();e.exports=o},function(e,t,i){var r=i(3).Buffer,n=i(591).Transform,o=i(59).StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(1)(a,n),a.prototype.update=function(e,t,i){"string"==typeof e&&(e=r.from(e,t));var n=this._update(e);return this.hashMode?this:(i&&(n=this._toString(n,i)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,i){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{i(r)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return i&&(r+=this._decoder.end()),r},e.exports=a},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var i=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+r).toString(36))}},function(e,t,i){var r=i(169),n=i(113);e.exports=Object.keys||function(e){return r(e,n)}},function(e,t,i){var r=i(31),n=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?n(e+t,0):o(e,t)}},function(e,t,i){var r=i(2),n=i(170),o=i(113),a=i(112)("IE_PROTO"),s=function(){},f=function(){var e,t=i(110)("iframe"),r=o.length;for(t.style.display="none",i(114).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("