1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[179],{130:function(t,r,e){var n=e(36).Buffer,o=e(707).Transform,h=e(182).StringDecoder;function l(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e(33)(l,o),l.prototype.update=function(data,t,r){"string"==typeof data&&(data=n.from(data,t));var e=this._update(data);return this.hashMode?this:(r&&(e=this._toString(e,r)),e)},l.prototype.setAutoPadding=function(){},l.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},l.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},l.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},l.prototype._transform=function(data,t,r){var e;try{this.hashMode?this._update(data):this.push(this._update(data))}catch(t){e=t}finally{r(e)}},l.prototype._flush=function(t){var r;try{this.push(this.__final())}catch(t){r=t}t(r)},l.prototype._finalOrDigest=function(t){var r=this.__final()||n.alloc(0);return t&&(r=this._toString(r,t,!0)),r},l.prototype._toString=function(t,r,e){if(this._decoder||(this._decoder=new h(r),this._encoding=r),this._encoding!==r)throw new Error("can't switch encodings");var n=this._decoder.write(t);return e&&(n+=this._decoder.end()),n},t.exports=l},180:function(t,r,e){"use strict";var n=e(33),o=e(288),h=e(290),l=e(291),f=e(130);function m(t){f.call(this,"digest"),this._hash=t}n(m,f),m.prototype._update=function(data){this._hash.update(data)},m.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new h:new m(l(t))}},183:function(t,r,e){(function(t){function e(t){return Object.prototype.toString.call(t)}r.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},r.isBoolean=function(t){return"boolean"==typeof t},r.isNull=function(t){return null===t},r.isNullOrUndefined=function(t){return null==t},r.isNumber=function(t){return"number"==typeof t},r.isString=function(t){return"string"==typeof t},r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=function(t){return void 0===t},r.isRegExp=function(t){return"[object RegExp]"===e(t)},r.isObject=function(t){return"object"==typeof t&&null!==t},r.isDate=function(t){return"[object Date]"===e(t)},r.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},r.isFunction=function(t){return"function"==typeof t},r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=t.isBuffer}).call(this,e(73).Buffer)},184:function(t,r,e){(function(r){t.exports=function(a,b){for(var t=Math.min(a.length,b.length),e=new r(t),i=0;i<t;++i)e[i]=a[i]^b[i];return e}}).call(this,e(73).Buffer)},26:function(t,r,e){"use strict";t.exports=function(t){var r=[];return r.toString=function(){return this.map((function(r){var content=function(t,r){var content=t[1]||"",e=t[3];if(!e)return content;if(r&&"function"==typeof btoa){var n=(h=e,l=btoa(unescape(encodeURIComponent(JSON.stringify(h)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(data," */")),o=e.sources.map((function(source){return"/*# sourceURL=".concat(e.sourceRoot||"").concat(source," */")}));return[content].concat(o).concat([n]).join("\n")}var h,l,data;return[content].join("\n")}(r,t);return r[2]?"@media ".concat(r[2]," {").concat(content,"}"):content})).join("")},r.i=function(t,e,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i<this.length;i++){var h=this[i][0];null!=h&&(o[h]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&o[f[0]]||(e&&(f[2]?f[2]="".concat(e," and ").concat(f[2]):f[2]=e),r.push(f))}},r}},416:function(t,r,e){"use strict";var n=e(33),o=e(716),h=e(130),l=e(36).Buffer,f=e(417),m=e(290),d=e(291),c=l.alloc(128);function v(t,r){h.call(this,"digest"),"string"==typeof r&&(r=l.from(r));var e="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=r,r.length>e)?r=("rmd160"===t?new m:d(t)).update(r).digest():r.length<e&&(r=l.concat([r,c],e));for(var n=this._ipad=l.allocUnsafe(e),o=this._opad=l.allocUnsafe(e),i=0;i<e;i++)n[i]=54^r[i],o[i]=92^r[i];this._hash="rmd160"===t?new m:d(t),this._hash.update(n)}n(v,h),v.prototype._update=function(data){this._hash.update(data)},v.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new m:d(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,r){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new v("rmd160",r):"md5"===t?new o(f,r):new v(t,r)}},417:function(t,r,e){var n=e(288);t.exports=function(t){return(new n).update(t).digest()}},470:function(t,r){t.exports=function(t){function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var e={};return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},r.p="",r(r.s=0)}([function(t,r,e){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=e(1);t.exports=function(r,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":n(document))&&"string"==typeof document.cookie,s="object"===(void 0===r?"undefined":n(r))&&"object"===(void 0===e?"undefined":n(e))&&void 0!==t,u=!a&&!s||a&&s,h=function(t){if(s){var n=r.headers.cookie||"";return t&&(n=(n=e.getHeaders())["set-cookie"]?n["set-cookie"].map((function(t){return t.split(";")[0]})).join(";"):""),n}if(a)return document.cookie||""},l=function(){var t=e.getHeader("Set-Cookie");return(t="string"==typeof t?[t]:t)||[]},p=function(t){return e.setHeader("Set-Cookie",t)},f=function(t,r){if(!r)return t;try{return JSON.parse(t)}catch(r){return t}},m={parseJSON:i,set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(r="object"===(void 0===r?"undefined":n(r))?JSON.stringify(r):r,s){var i=l();i.push(o.serialize(t,r,e)),p(i)}else document.cookie=o.serialize(t,r,e)},setAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(t)&&t.forEach((function(t){var r=t.name,e=void 0===r?"":r,n=t.value,o=void 0===n?"":n,i=t.opts,a=void 0===i?{path:"/"}:i;m.set(e,o,a)}))},get:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:m.parseJSON};if(u)return"";var e=o.parse(h(r.fromRes)),n=e[t];return f(n,r.parseJSON)},getAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:m.parseJSON};if(u)return{};var r=o.parse(h(t.fromRes));for(var e in r)r[e]=f(r[e],t.parseJSON);return r},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};if(!u){var e=m.get(t);r.expires=new Date(0),void 0!==e&&m.set(t,"",r)}},removeAll:function(){if(!u){var t=o.parse(h());for(var r in t)m.remove(r)}},nodeCookie:o};return m}},function(t,r,e){"use strict";function i(t,r){try{return r(t)}catch(r){return t}}r.parse=function(t,r){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var e={},n=r||{},o=t.split(u),s=n.decode||a,h=0;h<o.length;h++){var l=o[h],p=l.indexOf("=");if(!(p<0)){var f=l.substr(0,p).trim(),m=l.substr(++p,l.length).trim();'"'==m[0]&&(m=m.slice(1,-1)),null==e[f]&&(e[f]=i(m,s))}}return e},r.serialize=function(t,r,e){var o=e||{},h=o.encode||s;if("function"!=typeof h)throw new TypeError("option encode is invali
2d");if(!n.test(t))throw new TypeError("argument name is invalid");var i=h(r);if(i&&!n.test(i))throw new TypeError("argument val is invalid");var a=t+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},616:function(t,r,e){"use strict";t.exports=function(t,r){return r||(r={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),r.hash&&(t+=r.hash),/["'() \t\n]/.test(t)||r.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},694:function(t,r,e){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e(149),r.createHash=r.Hash=e(180),r.createHmac=r.Hmac=e(416);var n=e(717),o=Object.keys(n),h=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);r.getHashes=function(){return h};var p=e(419);
vendor: 4,094 bytes, line 2
2r.pbkdf2=p.pbkdf2,r.pbkdf2Sync=p.pbkdf2Sync;var l=e(719);r.Cipher=l.Cipher,r.createCipher=l.createCipher,r.Cipheriv=l.Cipheriv,r.createCipheriv=l.createCipheriv,r.Decipher=l.Decipher,r.createDecipher=l.createDecipher,r.Decipheriv=l.Decipheriv,r.createDecipheriv=l.createDecipheriv,r.getCiphers=l.getCiphers,r.listCiphers=l.listCiphers;var f=e(734);r.DiffieHellmanGroup=f.DiffieHellmanGroup,r.createDiffieHellmanGroup=f.createDiffieHellmanGroup,r.getDiffieHellman=f.getDiffieHellman,r.createDiffieHellman=f.createDiffieHellman,r.DiffieHellman=f.DiffieHellman;var m=e(741);r.createSign=m.createSign,r.Sign=m.Sign,r.createVerify=m.createVerify,r.Verify=m.Verify,r.createECDH=e(774);var d=e(777);r.publicEncrypt=d.publicEncrypt,r.privateEncrypt=d.privateEncrypt,r.publicDecrypt=d.publicDecrypt,r.privateDecrypt=d.privateDecrypt;var c=e(781);r.randomFill=c.randomFill,r.randomFillSync=c.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.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}},716:function(t,r,e){"use strict";var n=e(33),o=e(36).Buffer,h=e(130),l=o.alloc(128),f=64;function m(t,r){h.call(this,"digest"),"string"==typeof r&&(r=o.from(r)),this._alg=t,this._key=r,r.length>f?r=t(r):r.length<f&&(r=o.concat([r,l],f));for(var e=this._ipad=o.allocUnsafe(f),n=this._opad=o.allocUnsafe(f),i=0;i<f;i++)e[i]=54^r[i],n[i]=92^r[i];this._hash=[e]}n(m,h),m.prototype._update=function(data){this._hash.push(data)},m.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=m},774:function(t,r,e){(function(r){var n=e(301),o=e(775);t.exports=function(t){return new l(t)};var h={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function l(t){this.curveType=h[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function f(t,e,n){Array.isArray(t)||(t=t.toArray());var o=new r(t);if(n&&o.length<n){var h=new r(n-o.length);h.fill(0),o=r.concat([h,o])}return e?o.toString(e):o}h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,l.prototype.generateKeys=function(t,r){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,r)},l.prototype.computeSecret=function(t,e,n){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),f(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},l.prototype.getPublicKey=function(t,r){var e=this.keys.getPublic("compressed"===r,!0);return"hybrid"===r&&(e[e.length-1]%2?e[0]=7:e[0]=6),f(e,t)},l.prototype.getPrivateKey=function(t){return f(this.keys.getPrivate(),t)},l.prototype.setPublicKey=function(t,e){return e=e||"utf8",r.isBuffer(t)||(t=new r(t,e)),this.keys._importPublic(t),this},l.prototype.setPrivateKey=function(t,e){e=e||"utf8",r.isBuffer(t)||(t=new r(t,e));var n=new o(t);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,e(73).Buffer)},775:function(t,r,e){(function(t){!function(t,r){"use strict";function n(t,r){if(!t)throw new Error(r||"Assertion failed")}function o(t,r){t.super_=r;var e=function(){};e.prototype=r.prototype,t.prototype=new e,t.prototype.constructor=t}function h(t,base,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==base&&"be"!==base||(r=base,base=10),this._init(t||0,base||10,r||"be"))}var l;
vendor: 43,059 bytes, line 2
2"object"==typeof t?t.exports=h:r.BN=h,h.BN=h,h.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e(776).Buffer}catch(t){}function f(t,r){var e=t.charCodeAt(r);return e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:e-48&15}function m(t,r,e){var n=f(t,e);return e-1>=r&&(n|=f(t,e-1)<<4),n}function d(t,r,e,n){for(var o=0,h=Math.min(t.length,e),i=r;i<h;i++){var l=t.charCodeAt(i)-48;o*=n,o+=l>=49?l-49+10:l>=17?l-17+10:l}return o}h.isBN=function(t){return t instanceof h||null!==t&&"object"==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,r){return t.cmp(r)>0?t:r},h.min=function(t,r){return t.cmp(r)<0?t:r},h.prototype._init=function(t,base,r){if("number"==typeof t)return this._initNumber(t,base,r);if("object"==typeof t)return this._initArray(t,base,r);"hex"===base&&(base=16),n(base===(0|base)&&base>=2&&base<=36);var e=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(e++,this.negative=1),e<t.length&&(16===base?this._parseHex(t,e,r):(this._parseBase(t,base,e),"le"===r&&this._initArray(this.toArray(),base,r)))},h.prototype._initNumber=function(t,base,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),base,r)},h.prototype._initArray=function(t,base,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var e,o,h=0;if("be"===r)for(i=t.length-1,e=0;i>=0;i-=3)o=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[e]|=o<<h&67108863,this.words[e+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,e++);else if("le"===r)for(i=0,e=0;i<t.length;i+=3)o=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[e]|=o<<h&67108863,this.words[e+1]=o>>>26-h&67108863,(h+=24)>=26&&(h-=26,e++);return this.strip()},h.prototype._parseHex=function(t,r,e){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,o=0,h=0;if("be"===e)for(i=t.length-1;i>=r;i-=2)n=m(t,r,i)<<o,this.words[h]|=67108863&n,o>=18?(o-=18,h+=1,this.words[h]|=n>>>26):o+=8;else for(i=(t.length-r)%2==0?r+1:r;i<t.length;i+=2)n=m(t,r,i)<<o,this.words[h]|=67108863&n,o>=18?(o-=18,h+=1,this.words[h]|=n>>>26):o+=8;this.strip()},h.prototype._parseBase=function(t,base,r){this.words=[0],this.length=1;for(var e=0,n=1;n<=67108863;n*=base)e++;e--,n=n/base|0;for(var o=t.length-r,h=o%e,l=Math.min(o,o-h)+r,f=0,i=r;i<l;i+=e)f=d(t,i,i+e,base),this.imuln(n),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==h){var m=1;for(f=d(t,i,t.length,base),i=0;i<h;i++)m*=base;this.imuln(m),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}this.strip()},h.prototype.copy=function(t){t.words=new Array(this.length);for(var i=0;i<this.length;i++)t.words[i]=this.words[i];t.length=this.length,t.negative=this.negative,t.red=this.red},h.prototype.clone=function(){var t=new h(null);return this.copy(t),t},h.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},h.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};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"],v=[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];function y(t,r,e){e.negative=r.negative^t.negative;var n=t.length+r.length|0;e.length=n,n=n-1|0;var a=0|t.words[0],b=0|r.words[0],o=a*b,h=67108863&o,l=o/67108864|0;e.words[0]=h;for(var f=1;f<n;f++){for(var m=l>>>26,d=67108863&l,c=Math.min(f,r.length-1),v=Math.max(0,f-t.length+1);v<=c;v++){var i=f-v|0;m+=(o=(a=0|t.words[i])*(b=0|r.words[v])+d)/67108864|0,d=67108863&o}e.words[f]=0|d,l=0|m}return 0!==l?e.words[f]=0|l:e.length--,e.strip()}h.prototype.toString=function(base,t){var r;if(t=0|t||1,16===(base=base||10)||"hex"===base){r="";for(var e=0,o=0,i=0;i<this.length;i++){var h=this.words[i],l=(16777215&(h<<e|o)).toString(16);r=0!==(o=h>>>24-e&16777215)||i!==this.length-1?c[6-l.length]+l+r:l+r,(e+=2)>=26&&(e-=26,i--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(base===(0|base)&&base>=2&&base<=36){var f=v[base],m=M[base];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var y=d.modn(m).toString(base);r=(d=d.idivn(m)).isZero()?y+r:c[f-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,r){return n(void 0!==l),this.toArrayLike(l,t,r)},h.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},h.prototype.toArrayLike=function(t,r,e){var o=this.byteLength(),h=e||Math.max(1,o);n(o<=h,"byte array longer than desired length"),n(h>0,"Requested array length <= 0"),this.strip();var b,i,l="le"===r,f=new t(h),q=this.clone();if(l){for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[i]=b;for(;i<h;i++)f[i]=0}else{for(i=0;i<h-o;i++)f[i]=0;for(i=0;!q.isZero();i++)b=q.andln(255),q.iushrn(8),f[h-i-1]=b}return f},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var r=t,e=0;return r>=4096&&(e+=13,r>>>=13),r>=64&&(e+=7,r>>>=7),r>=8&&(e+=4,r>>>=4),r>=2&&(e+=2,r>>>=2),e+r},h.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,e=0;return 0==(8191&r)&&(e+=13,r>>>=13),0==(127&r)&&(e+=7,r>>>=7),0==(15&r)&&(e+=4,r>>>=4),0==(3&r)&&(e+=2,r>>>=2),0==(1&r)&&e++,e},h.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return 26*(this.length-1)+r},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(t+=b,26!==b)break}return t},h.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},h.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},h.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},h.prototype.isNeg=function(){return 0!==this.negative},h.prototype.neg=function(){return this.clone().ineg()},h.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},h.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]|t.words[i];return this.strip()},h.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},h.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var b;b=this.length>t.length?t:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&t.words[i];return this.length=b.length,this.strip()},h.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},h.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var a,b;this.length>t.length?(a=this,b=t):(a=t,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this.strip()},h.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},h.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),e=t%26;this._expand(r),e>0&&r--;for(var i=0;i<r;i++)this.words[i]=67108863&~this.words[i];return e>0&&(this.words[i]=~this.words[i]&67108863>>26-e),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,r){n("number"==typeof t&&t>=0);var e=t/26|0,o=t%26;return this._expand(e+1),this.words[e]=r?this.words[e]|1<<o:this.words[e]&~(1<<o),this.strip()},h.prototype.iadd=function(t){var r,a,b;if(0!==this.negative&&0===t.negative)return this.negative=0,r=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,r=this.isub(t),t.negative=1,r._normSign();this.length>t.length?(a=this,b=t):(a=t,b=this);for(var e=0,i=0;i<b.length;i++)r=(0|a.words[i])+(0|b.words[i])+e,this.words[i]=67108863&r,e=r>>>26;for(;0!==e&&i<a.length;i++)r=(0|a.words[i])+e,this.words[i]=67108863&r,e=r>>>26;if(this.length=a.length,0!==e)this.words[this.length]=e,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},h.prototype.add=function(t){var r;return 0!==t.negative&&0===this.negative?(t.negative=0,r=this.sub(t),t.negative^=1,r):0===t.negative&&0!==this.negative?(this.negative=0,r=t.sub(this),this.negative=1,r):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var a,b,e=this.cmp(t);if(0===e)return this.negative=0,this.length=1,this.words[0]=0,this;e>0?(a=this,b=t):(a=t,b=this);for(var n=0,i=0;i<b.length;i++)n=(r=(0|a.words[i])-(0|b.words[i])+n)>>26,this.words[i]=67108863&r;for(;0!==n&&i<a.length;i++)n=(r=(0|a.words[i])+n)>>26,this.words[i]=67108863&r;if(0===n&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this.strip()},h.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,r,e){var n,o,h,a=t.words,b=r.words,l=e.words,f=0,m=0|a[0],d=8191&m,c=m>>>13,v=0|a[1],M=8191&v,y=v>>>13,w=0|a[2],_=8191&w,S=w>>>13,A=0|a[3],k=8191&A,N=A>>>13,x=0|a[4],E=8191&x,R=x>>>13,D=0|a[5],O=8191&D,P=D>>>13,B=0|a[6],C=8191&B,T=B>>>13,L=0|a[7],I=8191&L,H=L>>>13,j=0|a[8],Z=8191&j,K=j>>>13,U=0|a[9],z=8191&U,J=U>>>13,G=0|b[0],F=8191&G,V=G>>>13,X=0|b[1],$=8191&X,Q=X>>>13,Y=0|b[2],W=8191&Y,tt=Y>>>13,it=0|b[3],et=8191&it,nt=it>>>13,ot=0|b[4],ht=8191&ot,st=ot>>>13,ut=0|b[5],at=8191&ut,lt=ut>>>13,ft=0|b[6],mt=8191&ft,pt=ft>>>13,ct=0|b[7],vt=8191&ct,gt=ct>>>13,Mt=0|b[8],yt=8191&Mt,wt=Mt>>>13,bt=0|b[9],_t=8191&bt,St=bt>>>13;e.negative=t.negative^r.negative,e.length=19;var At=(f+(n=Math.imul(d,F))|0)+((8191&(o=(o=Math.imul(d,V))+Math.imul(c,F)|0))<<13)|0;f=((h=Math.imul(c,V))+(o>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(M,F),o=(o=Math.imul(M,V))+Math.imul(y,F)|0,h=Math.imul(y,V);var kt=(f+(n=n+Math.imul(d,$)|0)|0)+((8191&(o=(o=o+Math.imul(d,Q)|0)+Math.imul(c,$)|0))<<13)|0;f=((h=h+Math.imul(c,Q)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(_,F),o=(o=Math.imul(_,V))+Math.imul(S,F)|0,h=Math.imul(S,V),n=n+Math.imul(M,$)|0,o=(o=o+Math.imul(M,Q)|0)+Math.imul(y,$)|0,h=h+Math.imul(y,Q)|0;var Nt=(f+(n=n+Math.imul(d,W)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(c,W)|0))<<13)|0;f=((h=h+Math.imul(c,tt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(k,F),o=(o=Math.imul(k,V))+Math.imul(N,F)|0,h=Math.imul(N,V),n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(S,$)|0,h=h+Math.imul(S,Q)|0,n=n+Math.imul(M,W)|0,o=(o=o+Math.imul(M,tt)|0)+Math.imul(y,W)|0,h=h+Math.imul(y,tt)|0;var xt=(f+(n=n+Math.imul(d,et)|0)|0)+((8191&(o=(o=o+Math.imul(d,nt)|0)+Math.imul(c,et)|0))<<13)|0;f=((h=h+Math.imul(c,nt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(E,F),o=(o=Math.imul(E,V))+Math.imul(R,F)|0,h=Math.imul(R,V),n=n+Math.imul(k,$)|0,o=(o=o+Math.imul(k,Q)|0)+Math.imul(N,$)|0,h=h+Math.imul(N,Q)|0,n=n+Math.imul(_,W)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(S,W)|0,h=h+Math.imul(S,tt)|0,n=n+Math.imul(M,et)|0,o=(o=o+Math.imul(M,nt)|0)+Math.imul(y,et)|0,h=h+Math.imul(y,nt)|0;var Et=(f+(n=n+Math.imul(d,ht)|0)|0)+((8191&(o=(o=o+Math.imul(d,st)|0)+Math.imul(c,ht)|0))<<13)|0;f=((h=h+Math.imul(c,st)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(O,F),o=(o=Math.imul(O,V))+Math.imul(P,F)|0,h=Math.imul(P,V),n=n+Math.imul(E,$)|0,o=(o=o+Math.imul(E,Q)|0)+Math.imul(R,$)|0,h=h+Math.imul(R,Q)|0,n=n+Math.imul(k,W)|0,o=(o=o+Math.imul(k,tt)|0)+Math.imul(N,W)|0,h=h+Math.imul(N,tt)|0,n=n+Math.imul(_,et)|0,o=(o=o+Math.imul(_,nt)|0)+Math.imul(S,et)|0,h=h+Math.imul(S,nt)|0,n=n+Math.imul(M,ht)|0,o=(o=o+Math.imul(M,st)|0)+Math.imul(y,ht)|0,h=h+Math.imul(y,st)|0;var Rt=(f+(n=n+Math.imul(d,at)|0)|0)+((8191&(o=(o=o+Math.imul(d,lt)|0)+Math.imul(c,at)|0))<<13)|0;f=((h=h+Math.imul(c,lt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(C,F),o=(o=Math.imul(C,V))+Math.imul(T,F)|0,h=Math.imul(T,V),n=n+Math.imul(O,$)|0,o=(o=o+Math.imul(O,Q)|0)+Math.imul(P,$)|0,h=h+Math.imul(P,Q)|0,n=n+Math.imul(E,W)|0,o=(o=o+Math.imul(E,tt)|0)+Math.imul(R,W)|0,h=h+Math.imul(R,tt)|0,n=n+Math.imul(k,et)|0,o=(o=o+Math.imul(k,nt)|0)+Math.imul(N,et)|0,h=h+Math.imul(N,nt)|0,n=n+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(S,ht)|0,h=h+Math.imul(S,st)|0,n=n+Math.imul(M,at)|0,o=(o=o+Math.imul(M,lt)|0)+Math.imul(y,at)|0,h=h+Math.imul(y,lt)|0;var Dt=(f+(n=n+Math.imul(d,mt)|0)|0)+((8191&(o=(o=o+Math.imul(d,pt)|0)+Math.imul(c,mt)|0))<<13)|0;f=((h=h+Math.imul(c,pt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,n=Math.imul(I,F),o=(o=Math.imul(I,V))+Math.imul(H,F)|0,h=Math.imul(H,V),n=n+Math.imul(C,$)|0,o=(o=o+Math.imul(C,Q)|0)+Math.imul(T,$)|0,h=h+Math.imul(T,Q)|0,n=n+Math.imul(O,W)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(P,W)|0,h=h+Math.imul(P,tt)|0,n=n+Math.imul(E,et)|0,o=(o=o+Math.imul(E,nt)|0)+Math.imul(R,et)|0,h=h+Math.imul(R,nt)|0,n=n+Math.imul(k,ht)|0,o=(o=o+Math.imul(k,st)|0)+Math.imul(N,ht)|0,h=h+Math.imul(N,st)|0,n=n+Math.imul(_,at)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(S,at)|0,h=h+Math.imul(S,lt)|0,n=n+Math.imul(M,mt)|0,o=(o=o+Math.imul(M,pt)|0)+Math.imul(y,mt)|0,h=h+Math.imul(y,pt)|0;var Ot=(f+(n=n+Math.imul(d,vt)|0)|0)+((8191&(o=(o=o+Math.imul(d,gt)|0)+Math.imul(c,vt)|0))<<13)|0;f=((h=h+Math.imul(c,gt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(Z,F),o=(o=Math.imul(Z,V))+Math.imul(K,F)|0,h=Math.imul(K,V),n=n+Math.imul(I,$)|0,o=(o=o+Math.imul(I,Q)|0)+Math.imul(H,$)|0,h=h+Math.imul(H,Q)|0,n=n+Math.imul(C,W)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(T,W)|0,h=h+Math.imul(T,tt)|0,n=n+Math.imul(O,et)|0,o=(o=o+Math.imul(O,nt)|0)+Math.imul(P,et)|0,h=h+Math.imul(P,nt)|0,n=n+Math.imul(E,ht)|0,o=(o=o+Math.imul(E,st)|0)+Math.imul(R,ht)|0,h=h+Math.imul(R,st)|0,n=n+Math.imul(k,at)|0,o=(o=o+Math.imul(k,lt)|0)+Math.imul(N,at)|0,h=h+Math.imul(N,lt)|0,n=n+Math.imul(_,mt)|0,o=(o=o+Math.imul(_,pt)|0)+Math.imul(S,mt)|0,h=h+Math.imul(S,pt)|0,n=n+Math.imul(M,vt)|0,o=(o=o+Math.imul(M,gt)|0)+Math.imul(y,vt)|0,h=h+Math.imul(y,gt)|0;var Pt=(f+(n=n+Math.imul(d,yt)|0)|0)+((8191&(o=(o=o+Math.imul(d,wt)|0)+Math.imul(c,yt)|0))<<13)|0;f=((h=h+Math.imul(c,wt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(z,F),o=(o=Math.imul(z,V))+Math.imul(J,F)|0,h=Math.imul(J,V),n=n+Math.imul(Z,$)|0,o=(o=o+Math.imul(Z,Q)|0)+Math.imul(K,$)|0,h=h+Math.imul(K,Q)|0,n=n+Math.imul(I,W)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(H,W)|0,h=h+Math.imul(H,tt)|0,n=n+Math.imul(C,et)|0,o=(o=o+Math.imul(C,nt)|0)+Math.imul(T,et)|0,h=h+Math.imul(T,nt)|0,n=n+Math.imul(O,ht)|0,o=(o=o+Math.imul(O,st)|0)+Math.imul(P,ht)|0,h=h+Math.imul(P,st)|0,n=n+Math.imul(E,at)|0,o=(o=o+Math.imul(E,lt)|0)+Math.imul(R,at)|0,h=h+Math.imul(R,lt)|0,n=n+Math.imul(k,mt)|0,o=(o=o+Math.imul(k,pt)|0)+Math.imul(N,mt)|0,h=h+Math.imul(N,pt)|0,n=n+Math.imul(_,vt)|0,o=(o=o+Math.imul(_,gt)|0)+Math.imul(S,vt)|0,h=h+Math.imul(S,gt)|0,n=n+Math.imul(M,yt)|0,o=(o=o+Math.imul(M,wt)|0)+Math.imul(y,yt)|0,h=h+Math.imul(y,wt)|0;var Bt=(f+(n=n+Math.imul(d,_t)|0)|0)+((8191&(o=(o=o+Math.imul(d,St)|0)+Math.imul(c,_t)|0))<<13)|0;f=((h=h+Math.imul(c,St)|0)+(o>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(z,$),o=(o=Math.imul(z,Q))+Math.imul(J,$)|0,h=Math.imul(J,Q),n=n+Math.imul(Z,W)|0,o=(o=o+Math.imul(Z,tt)|0)+Math.imul(K,W)|0,h=h+Math.imul(K,tt)|0,n=n+Math.imul(I,et)|0,o=(o=o+Math.imul(I,nt)|0)+Math.imul(H,et)|0,h=h+Math.imul(H,nt)|0,n=n+Math.imul(C,ht)|0,o=(o=o+Math.imul(C,st)|0)+Math.imul(T,ht)|0,h=h+Math.imul(T,st)|0,n=n+Math.imul(O,at)|0,o=(o=o+Math.imul(O,lt)|0)+Math.imul(P,at)|0,h=h+Math.imul(P,lt)|0,n=n+Math.imul(E,mt)|0,o=(o=o+Math.imul(E,pt)|0)+Math.imul(R,mt)|0,h=h+Math.imul(R,pt)|0,n=n+Math.imul(k,vt)|0,o=(o=o+Math.imul(k,gt)|0)+Math.imul(N,vt)|0,h=h+Math.imul(N,gt)|0,n=n+Math.imul(_,yt)|0,o=(o=o+Math.imul(_,wt)|0)+Math.imul(S,yt)|0,h=h+Math.imul(S,wt)|0;var Ct=(f+(n=n+Math.imul(M,_t)|0)|0)+((8191&(o=(o=o+Math.imul(M,St)|0)+Math.imul(y,_t)|0))<<13)|0;f=((h=h+Math.imul(y,St)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(z,W),o=(o=Math.imul(z,tt))+Math.imul(J,W)|0,h=Math.imul(J,tt),n=n+Math.imul(Z,et)|0,o=(o=o+Math.imul(Z,nt)|0)+Math.imul(K,et)|0,h=h+Math.imul(K,nt)|0,n=n+Math.imul(I,ht)|0,o=(o=o+Math.imul(I,st)|0)+Math.imul(H,ht)|0,h=h+Math.imul(H,st)|0,n=n+Math.imul(C,at)|0,o=(o=o+Math.imul(C,lt)|0)+Math.imul(T,at)|0,h=h+Math.imul(T,lt)|0,n=n+Math.imul(O,mt)|0,o=(o=o+Math.imul(O,pt)|0)+Math.imul(P,mt)|0,h=h+Math.imul(P,pt)|0,n=n+Math.imul(E,vt)|0,o=(o=o+Math.imul(E,gt)|0)+Math.imul(R,vt)|0,h=h+Math.imul(R,gt)|0,n=n+Math.imul(k,yt)|0,o=(o=o+Math.imul(k,wt)|0)+Math.imul(N,yt)|0,h=h+Math.imul(N,wt)|0;var Tt=(f+(n=n+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,St)|0)+Math.imul(S,_t)|0))<<13)|0;f=((h=h+Math.imul(S,St)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(z,et),o=(o=Math.imul(z,nt))+Math.imul(J,et)|0,h=Math.imul(J,nt),n=n+Math.imul(Z,ht)|0,o=(o=o+Math.imul(Z,st)|0)+Math.imul(K,ht)|0,h=h+Math.imul(K,st)|0,n=n+Math.imul(I,at)|0,o=(o=o+Math.imul(I,lt)|0)+Math.imul(H,at)|0,h=h+Math.imul(H,lt)|0,n=n+Math.imul(C,mt)|0,o=(o=o+Math.imul(C,pt)|0)+Math.imul(T,mt)|0,h=h+Math.imul(T,pt)|0,n=n+Math.imul(O,vt)|0,o=(o=o+Math.imul(O,gt)|0)+Math.imul(P,vt)|0,h=h+Math.imul(P,gt)|0,n=n+Math.imul(E,yt)|0,o=(o=o+Math.imul(E,wt)|0)+Math.imul(R,yt)|0,h=h+Math.imul(R,wt)|0;var Lt=(f+(n=n+Math.imul(k,_t)|0)|0)+((8191&(o=(o=o+Math.imul(k,St)|0)+Math.imul(N,_t)|0))<<13)|0;f=((h=h+Math.imul(N,St)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(z,ht),o=(o=Math.imul(z,st))+Math.imul(J,ht)|0,h=Math.imul(J,st),n=n+Math.imul(Z,at)|0,o=(o=o+Math.imul(Z,lt)|0)+Math.imul(K,at)|0,h=h+Math.imul(K,lt)|0,n=n+Math.imul(I,mt)|0,o=(o=o+Math.imul(I,pt)|0)+Math.imul(H,mt)|0,h=h+Math.imul(H,pt)|0,n=n+Math.imul(C,vt)|0,o=(o=o+Math.imul(C,gt)|0)+Math.imul(T,vt)|0,h=h+Math.imul(T,gt)|0,n=n+Math.imul(O,yt)|0,o=(o=o+Math.imul(O,wt)|0)+Math.imul(P,yt)|0,h=h+Math.imul(P,wt)|0;var It=(f+(n=n+Math.imul(E,_t)|0)|0)+((8191&(o=(o=o+Math.imul(E,St)|0)+Math.imul(R,_t)|0))<<13)|0;f=((h=h+Math.imul(R,St)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(z,at),o=(o=Math.imul(z,lt))+Math.imul(J,at)|0,h=Math.imul(J,lt),n=n+Math.imul(Z,mt)|0,o=(o=o+Math.imul(Z,pt)|0)+Math.imul(K,mt)|0,h=h+Math.imul(K,pt)|0,n=n+Math.imul(I,vt)|0,o=(o=o+Math.imul(I,gt)|0)+Math.imul(H,vt)|0,h=h+Math.imul(H,gt)|0,n=n+Math.imul(C,yt)|0,o=(o=o+Math.imul(C,wt)|0)+Math.imul(T,yt)|0,h=h+Math.imul(T,wt)|0;var Ht=(f+(n=n+Math.imul(O,_t)|0)|0)+((8191&(o=(o=o+Math.imul(O,St)|0)+Math.imul(P,_t)|0))<<13)|0;f=((h=h+Math.imul(P,St)|0)+(o>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,n=Math.imul(z,mt),o=(o=Math.imul(z,pt))+Math.imul(J,mt)|0,h=Math.imul(J,pt),n=n+Math.imul(Z,vt)|0,o=(o=o+Math.imul(Z,gt)|0)+Math.imul(K,vt)|0,h=h+Math.imul(K,gt)|0,n=n+Math.imul(I,yt)|0,o=(o=o+Math.imul(I,wt)|0)+Math.imul(H,yt)|0,h=h+Math.imul(H,wt)|0;var jt=(f+(n=n+Math.imul(C,_t)|0)|0)+((8191&(o=(o=o+Math.imul(C,St)|0)+Math.imul(T,_t)|0))<<13)|0;f=((h=h+Math.imul(T,St)|0)+(o>>>13)|0)+(jt>>>26)|0,jt&=67108863,n=Math.imul(z,vt),o=(o=Math.imul(z,gt))+Math.imul(J,vt)|0,h=Math.imul(J,gt),n=n+Math.imul(Z,yt)|0,o=(o=o+Math.imul(Z,wt)|0)+Math.imul(K,yt)|0,h=h+Math.imul(K,wt)|0;var Zt=(f+(n=n+Math.imul(I,_t)|0)|0)+((8191&(o=(o=o+Math.imul(I,St)|0)+Math.imul(H,_t)|0))<<13)|0;f=((h=h+Math.imul(H,St)|0)+(o>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(z,yt),o=(o=Math.imul(z,wt))+Math.imul(J,yt)|0,h=Math.imul(J,wt);var qt=(f+(n=n+Math.imul(Z,_t)|0)|0)+((8191&(o=(o=o+Math.imul(Z,St)|0)+Math.imul(K,_t)|0))<<13)|0;f=((h=h+Math.imul(K,St)|0)+(o>>>13)|0)+(qt>>>26)|0,qt&=67108863;var Kt=(f+(n=Math.imul(z,_t))|0)+((8191&(o=(o=Math.imul(z,St))+Math.imul(J,_t)|0))<<13)|0;return f=((h=Math.imul(J,St))+(o>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,l[0]=At,l[1]=kt,l[2]=Nt,l[3]=xt,l[4]=Et,l[5]=Rt,l[6]=Dt,l[7]=Ot,l[8]=Pt,l[9]=Bt,l[10]=Ct,l[11]=Tt,l[12]=Lt,l[13]=It,l[14]=Ht,l[15]=jt,l[16]=Zt,l[17]=qt,l[18]=Kt,0!==f&&(l[19]=f,e.length++),e};function _(t,r,e){return(new S).mulp(t,r,e)}function S(t,r){this.x=t,this.y=r}Math.imul||(w=y),h.prototype.mulTo=function(t,r){var e=this.length+t.length;return 10===this.length&&10===t.length?w(this,t,r):e<63?y(this,t,r):e<1024?function(t,r,e){e.negative=r.negative^t.negative,e.length=t.length+r.length;for(var n=0,o=0,h=0;h<e.length-1;h++){var l=o;o=0;for(var f=67108863&n,m=Math.min(h,r.length-1),d=Math.max(0,h-t.length+1);d<=m;d++){var i=h-d,c=(0|t.words[i])*(0|r.words[d]),v=67108863&c;f=67108863&(v=v+f|0),o+=(l=(l=l+(c/67108864|0)|0)+(v>>>26)|0)>>>26,l&=67108863}e.words[h]=f,n=l,l=o}return 0!==n?e.words[h]=n:e.length--,e.strip()}(this,t,r):_(this,t,r)},S.prototype.makeRBT=function(t){for(var r=new Array(t),e=h.prototype._countBits(t)-1,i=0;i<t;i++)r[i]=this.revBin(i,e,t);return r},S.prototype.revBin=function(t,r,e){if(0===t||t===e-1)return t;for(var n=0,i=0;i<r;i++)n|=(1&t)<<r-i-1,t>>=1;return n},S.prototype.permute=function(t,r,e,n,o,h){for(var i=0;i<h;i++)n[i]=r[t[i]],o[i]=e[t[i]]},S.prototype.transform=function(t,r,e,n,o,h){this.permute(h,t,r,e,n,o);for(var s=1;s<o;s<<=1)for(var l=s<<1,f=Math.cos(2*Math.PI/l),m=Math.sin(2*Math.PI/l),p=0;p<o;p+=l)for(var d=f,c=m,v=0;v<s;v++){var M=e[p+v],y=n[p+v],w=e[p+v+s],_=n[p+v+s],S=d*w-c*_;_=d*_+c*w,w=S,e[p+v]=M+w,n[p+v]=y+_,e[p+v+s]=M-w,n[p+v+s]=y-_,v!==l&&(S=f*d-m*c,c=f*c+m*d,d=S)}},S.prototype.guessLen13b=function(t,r){var e=1|Math.max(r,t),n=1&e,i=0;for(e=e/2|0;e;e>>>=1)i++;return 1<<i+1+n},S.prototype.conjugate=function(t,r,e){if(!(e<=1))for(var i=0;i<e/2;i++){var n=t[i];t[i]=t[e-i-1],t[e-i-1]=n,n=r[i],r[i]=-r[e-i-1],r[e-i-1]=-n}},S.prototype.normalize13b=function(t,r){for(var e=0,i=0;i<r/2;i++){var n=8192*Math.round(t[2*i+1]/r)+Math.round(t[2*i]/r)+e;t[i]=67108863&n,e=n<67108864?0:n/67108864|0}return t},S.prototype.convert13b=function(t,r,e,o){for(var h=0,i=0;i<r;i++)h+=0|t[i],e[2*i]=8191&h,h>>>=13,e[2*i+1]=8191&h,h>>>=13;for(i=2*r;i<o;++i)e[i]=0;n(0===h),n(0==(-8192&h))},S.prototype.stub=function(t){for(var r=new Array(t),i=0;i<t;i++)r[i]=0;return r},S.prototype.mulp=function(t,r,e){var n=2*this.guessLen13b(t.length,r.length),o=this.makeRBT(n),h=this.stub(n),l=new Array(n),f=new Array(n),m=new Array(n),d=new Array(n),c=new Array(n),v=new Array(n),M=e.words;M.length=n,this.convert13b(t.words,t.length,l,n),this.convert13b(r.words,r.length,d,n),this.transform(l,h,f,m,n,o),this.transform(d,h,c,v,n,o);for(var i=0;i<n;i++){var y=f[i]*c[i]-m[i]*v[i];m[i]=f[i]*v[i]+m[i]*c[i],f[i]=y}return this.conjugate(f,m,n),this.transform(f,m,M,h,n,o),this.conjugate(M,h,n),this.normalize13b(M,n),e.negative=t.negative^r.negative,e.length=t.length+r.length,e.strip()},h.prototype.mul=function(t){var r=new h(null);return r.words=new Array(this.length+t.length),this.mulTo(t,r)},h.prototype.mulf=function(t){var r=new h(null);return r.words=new Array(this.length+t.length),_(this,t,r)},h.prototype.imul=function(t){return this.clone().mulTo(t,this)},h.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i<this.length;i++){var e=(0|this.words[i])*t,o=(67108863&e)+(67108863&r);r>>=26,r+=e/67108864|0,r+=o>>>26,this.words[i]=67108863&o}return 0!==r&&(this.words[i]=r,this.length++),this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var r=function(t){for(var r=new Array(t.bitLength()),e=0;e<r.length;e++){var n=e/26|0,o=e%26;r[e]=(t.words[n]&1<<o)>>>o}return r}(t);if(0===r.length)return new h(1);for(var e=this,i=0;i<r.length&&0===r[i];i++,e=e.sqr());if(++i<r.length)for(var q=e.sqr();i<r.length;i++,q=q.sqr())0!==r[i]&&(e=e.mul(q));return e},h.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var i,r=t%26,s=(t-r)/26,e=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(i=0;i<this.length;i++){var h=this.words[i]&e,l=(0|this.words[i])-h<<r;this.words[i]=l|o,o=h>>>26-r}o&&(this.words[i]=o,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this.strip()},h.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},h.prototype.iushrn=function(t,r,e){var o;n("number"==typeof t&&t>=0),o=r?(r-r%26)/26:0;var h=t%26,s=Math.min((t-h)/26,this.length),mask=67108863^67108863>>>h<<h,l=e;if(o-=s,o=Math.max(0,o),l){for(var i=0;i<s;i++)l.words[i]=this.words[i];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var f=0;for(i=this.length-1;i>=0&&(0!==f||i>=o);i--){var m=0|this.words[i];this.words[i]=f<<26-h|m>>>h,f=m&mask}return l&&0!==f&&(l.words[l.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,r,e){return n(0===this.negative),this.iushrn(t,r,e)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){n("number"==typeof t&&t>=0);var r=t%26,s=(t-r)/26,q=1<<r;return!(this.length<=s)&&!!(this.words[s]&q)},h.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var r=t%26,s=(t-r)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==r&&s++,this.length=Math.min(s,this.length),0!==r){var mask=67108863^67108863>>>r<<r;this.words[this.length-1]&=mask}return this.strip()},h.prototype.maskn=function(t){return this.clone().imaskn(t)},h.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},h.prototype._iaddn=function(t){this.words[0]+=t;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this.strip()},h.prototype.addn=function(t){return this.clone().iaddn(t)},h.prototype.subn=function(t){return this.clone().isubn(t)},h.prototype.iabs=function(){return this.negative=0,this},h.prototype.abs=function(){return this.clone().iabs()},h.prototype._ishlnsubmul=function(t,r,e){var i,o,h=t.length+e;this._expand(h);var l=0;for(i=0;i<t.length;i++){o=(0|this.words[i+e])+l;var f=(0|t.words[i])*r;l=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+e]=67108863&o}for(;i<this.length-e;i++)l=(o=(0|this.words[i+e])+l)>>26,this.words[i+e]=67108863&o;if(0===l)return this.strip();for(n(-1===l),l=0,i=0;i<this.length;i++)l=(o=-(0|this.words[i])+l)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,r){var e=(this.length,t.length),a=this.clone(),b=t,n=0|b.words[b.length-1];0!==(e=26-this._countBits(n))&&(b=b.ushln(e),a.iushln(e),n=0|b.words[b.length-1]);var q,o=a.length-b.length;if("mod"!==r){(q=new h(null)).length=o+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var l=a.clone()._ishlnsubmul(b,1,o);0===l.negative&&(a=l,q&&(q.words[o]=1));for(var f=o-1;f>=0;f--){var m=67108864*(0|a.words[b.length+f])+(0|a.words[b.length+f-1]);for(m=Math.min(m/n|0,67108863),a._ishlnsubmul(b,m,f);0!==a.negative;)m--,a.negative=0,a._ishlnsubmul(b,1,f),a.isZero()||(a.negative^=1);q&&(q.words[f]=m)}return q&&q.strip(),a.strip(),"div"!==r&&0!==e&&a.iushrn(e),{div:q||null,mod:a}},h.prototype.divmod=function(t,r,e){return n(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(l=this.neg().divmod(t,r),"mod"!==r&&(div=l.div.neg()),"div"!==r&&(o=l.mod.neg(),e&&0!==o.negative&&o.iadd(t)),{div:div,mod:o}):0===this.negative&&0!==t.negative?(l=this.divmod(t.neg(),r),"mod"!==r&&(div=l.div.neg()),{div:div,mod:l.mod}):0!=(this.negative&t.negative)?(l=this.neg().divmod(t.neg(),r),"div"!==r&&(o=l.mod.neg(),e&&0!==o.negative&&o.isub(t)),{div:l.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,r);var div,o,l},h.prototype.div=function(t){return this.divmod(t,"div",!1).div},h.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},h.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},h.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var e=0!==r.div.negative?r.mod.isub(t):r.mod,n=t.ushrn(1),o=t.andln(1),h=e.cmp(n);return h<0||1===o&&0===h?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},h.prototype.modn=function(t){n(t<=67108863);for(var p=(1<<26)%t,r=0,i=this.length-1;i>=0;i--)r=(p*r+(0|this.words[i]))%t;return r},h.prototype.idivn=function(t){n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var e=(0|this.words[i])+67108864*r;this.words[i]=e/t|0,r=e%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(p){n(0===p.negative),n(!p.isZero());var t=this,r=p.clone();t=0!==t.negative?t.umod(p):t.clone();for(var e=new h(1),o=new h(0),l=new h(0),f=new h(1),g=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++g;for(var m=r.clone(),d=t.clone();!t.isZero();){for(var i=0,c=1;0==(t.words[0]&c)&&i<26;++i,c<<=1);if(i>0)for(t.iushrn(i);i-- >0;)(e.isOdd()||o.isOdd())&&(e.iadd(m),o.isub(d)),e.iushrn(1),o.iushrn(1);for(var v=0,M=1;0==(r.words[0]&M)&&v<26;++v,M<<=1);if(v>0)for(r.iushrn(v);v-- >0;)(l.isOdd()||f.isOdd())&&(l.iadd(m),f.isub(d)),l.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),e.isub(l),o.isub(f)):(r.isub(t),l.isub(e),f.isub(o))}return{a:l,b:f,gcd:r.iushln(g)}},h.prototype._invmp=function(p){n(0===p.negative),n(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var t,r=new h(1),e=new h(0),o=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,l=1;0==(a.words[0]&l)&&i<26;++i,l<<=1);if(i>0)for(a.iushrn(i);i-- >0;)r.isOdd()&&r.iadd(o),r.iushrn(1);for(var f=0,m=1;0==(b.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(b.iushrn(f);f-- >0;)e.isOdd()&&e.iadd(o),e.iushrn(1);a.cmp(b)>=0?(a.isub(b),r.isub(e)):(b.isub(a),e.isub(r))}return(t=0===a.cmpn(1)?r:e).cmpn(0)<0&&t.iadd(p),t},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var a=this.clone(),b=t.clone();a.negative=0,b.negative=0;for(var r=0;a.isEven()&&b.isEven();r++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var e=a.cmp(b);if(e<0){var n=a;a=b,b=n}else if(0===e||0===b.cmpn(1))break;a.isub(b)}return b.iushln(r)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return 0==(1&this.words[0])},h.prototype.isOdd=function(){return 1==(1&this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){n("number"==typeof t);var r=t%26,s=(t-r)/26,q=1<<r;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var e=q,i=s;0!==e&&i<this.length;i++){var o=0|this.words[i];e=(o+=e)>>>26,o&=67108863,this.words[i]=o}return 0!==e&&(this.words[i]=e,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var r,e=t<0;if(0!==this.negative&&!e)return-1;if(0===this.negative&&e)return 1;if(this.strip(),this.length>1)r=1;else{e&&(t=-t),n(t<=67108863,"Number is too big");var o=0|this.words[0];r=o===t?0:o<t?-1:1}return 0!==this.negative?0|-r:r},h.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var r=this.ucmp(t);return 0!==this.negative?0|-r:r},h.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|t.words[i];if(a!==b){a<b?r=-1:a>b&&(r=1);break}}return r},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new D(t)},h.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},h.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},h.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},h.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},h.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},h.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},h.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};function k(t,p){this.name=t,this.p=new h(p,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function N(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function R(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function D(t){if("string"==typeof t){var r=h._prime(t);this.m=r.p,this.prime=r}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function O(t){D.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(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)}k.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var r,e=t;do{this.split(e,this.tmp),r=(e=(e=this.imulK(e)).iadd(this.tmp)).bitLength()}while(r>this.n);var n=r<this.n?-1:e.ucmp(this.p);return 0===n?(e.words[0]=0,e.length=1):n>0?e.isub(this.p):void 0!==e.strip?e.strip():e._strip(),e},k.prototype.split=function(input,t){input.iushrn(this.n,0,t)},k.prototype.imulK=function(t){return t.imul(this.k)},o(N,k),N.prototype.split=function(input,output){for(var mask=4194303,t=Math.min(input.length,9),i=0;i<t;i++)output.words[i]=input.words[i];if(output.length=t,input.length<=9)return input.words[0]=0,void(input.length=1);var r=input.words[9];for(output.words[output.length++]=r&mask,i=10;i<input.length;i++){var e=0|input.words[i];input.words[i-10]=(e&mask)<<4|r>>>22,r=e}r>>>=22,input.words[i-10]=r,0===r&&input.length>10?input.length-=10:input.length-=9},N.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,i=0;i<t.length;i++){var e=0|t.words[i];r+=977*e,t.words[i]=67108863&r,r=64*e+(r/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(x,k),o(E,k),o(R,k),R.prototype.imulK=function(t){for(var r=0,i=0;i<t.length;i++){var e=19*(0|t.words[i])+r,n=67108863&e;e>>>=26,t.words[i]=n,r=e}return 0!==r&&(t.words[t.length++]=r),t},h._prime=function(t){if(A[t])return A[t];var r;if("k256"===t)r=new N;else if("p224"===t)r=new x;else if("p192"===t)r=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new R}return A[t]=r,r},D.prototype._verify1=function(a){n(0===a.negative,"red works only with positives"),n(a.red,"red works only with red numbers")},D.prototype._verify2=function(a,b){n(0==(a.negative|b.negative),"red works only with positives"),n(a.red&&a.red===b.red,"red works only with red numbers")},D.prototype.imod=function(a){return this.prime?this.prime.ireduce(a)._forceRed(this):a.umod(this.m)._forceRed(this)},D.prototype.neg=function(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},D.prototype.add=function(a,b){this._verify2(a,b);var t=a.add(b);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},D.prototype.iadd=function(a,b){this._verify2(a,b);var t=a.iadd(b);return t.cmp(this.m)>=0&&t.isub(this.m),t},D.prototype.sub=function(a,b){this._verify2(a,b);var t=a.sub(b);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},D.prototype.isub=function(a,b){this._verify2(a,b);var t=a.isub(b);return t.cmpn(0)<0&&t.iadd(this.m),t},D.prototype.shl=function(a,t){return this._verify1(a),this.imod(a.ushln(t))},D.prototype.imul=function(a,b){return this._verify2(a,b),this.imod(a.imul(b))},D.prototype.mul=function(a,b){return this._verify2(a,b),this.imod(a.mul(b))},D.prototype.isqr=function(a){return this.imul(a,a.clone())},D.prototype.sqr=function(a){return this.mul(a,a)},D.prototype.sqrt=function(a){if(a.isZero())return a.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new h(1)).iushrn(2);return this.pow(a,r)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);n(!q.isZero());var e=new h(1).toRed(this),o=e.redNeg(),l=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new h(2*f*f).toRed(this);0!==this.pow(f,l).cmp(o);)f.redIAdd(o);for(var m=this.pow(f,q),d=this.pow(a,q.addn(1).iushrn(1)),c=this.pow(a,q),v=s;0!==c.cmp(e);){for(var M=c,i=0;0!==M.cmp(e);i++)M=M.redSqr();n(i<v);var b=this.pow(m,new h(1).iushln(v-i-1));d=d.redMul(b),m=b.redSqr(),c=c.redMul(m),v=i}return d},D.prototype.invm=function(a){var t=a._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},D.prototype.pow=function(a,t){if(t.isZero())return new h(1).toRed(this);if(0===t.cmpn(1))return a.clone();var r=new Array(16);r[0]=new h(1).toRed(this),r[1]=a;for(var i=2;i<r.length;i++)r[i]=this.mul(r[i-1],a);var e=r[0],n=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),i=t.length-1;i>=0;i--){for(var f=t.words[i],m=l-1;m>=0;m--){var d=f>>m&1;e!==r[0]&&(e=this.sqr(e)),0!==d||0!==n?(n<<=1,n|=d,(4===++o||0===i&&0===m)&&(e=this.mul(e,r[n]),o=0,n=0)):o=0}l=26}return e},D.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},D.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},h.mont=function(t){return new O(t)},o(O,D),O.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},O.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},O.prototype.imul=function(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),r=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(r).iushrn(this.shift),e=u;return u.cmp(this.m)>=0?e=u.isub(this.m):u.cmpn(0)<0&&(e=u.iadd(this.m)),e._forceRed(this)},O.prototype.mul=function(a,b){if(a.isZero()||b.isZero())return new h(0)._forceRed(this);var t=a.mul(b),r=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(r).iushrn(this.shift),e=u;return u.cmp(this.m)>=0?e=u.isub(this.m):u.cmpn(0)<0&&(e=u.iadd(this.m)),e._forceRed(this)},O.prototype.invm=function(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,e(138)(t))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.