UNPKG

scratch-storage

Version:

Load and store project and asset files for Scratch 3.0

7 lines 1.34 MB
!function(n){function l(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,l),u.l=!0,u.exports}var t={};l.m=n,l.c=t,l.i=function(n){return n},l.d=function(n,t,e){l.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},l.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return l.d(t,"a",t),t},l.o=function(n,l){return Object.prototype.hasOwnProperty.call(n,l)},l.p="",l(l.s=606)}([function(n,l,t){var e=t(4),u=t(32),r=t(15),i=t(16),o=t(33),a="prototype",s=function(n,l,t){var f,c,h,d,p=n&s.F,b=n&s.G,v=n&s.S,m=n&s.P,y=n&s.B,g=b?e:v?e[l]||(e[l]={}):(e[l]||{})[a],w=b?u:u[l]||(u[l]={}),_=w[a]||(w[a]={});b&&(t=l);for(f in t)c=!p&&g&&void 0!==g[f],h=(c?g:t)[f],d=y&&c?o(h,e):m&&"function"==typeof h?o(Function.call,h):h,g&&i(g,f,h,n&s.U),w[f]!=h&&r(w,f,d),m&&_[f]!=h&&(_[f]=h)};e.core=u,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,n.exports=s},function(n,l,t){"use strict";(function(n){function e(){try{var n=new Uint8Array(1);return n.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===n.foo()&&"function"==typeof n.subarray&&0===n.subarray(1,1).byteLength}catch(n){return!1}}function u(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(n,l){if(u()<l)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(l),n.__proto__=i.prototype):(null===n&&(n=new i(l)),n.length=l),n}function i(n,l,t){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(n,l,t);if("number"==typeof n){if("string"==typeof l)throw new Error("If encoding is specified then the first argument must be a string");return f(this,n)}return o(this,n,l,t)}function o(n,l,t,e){if("number"==typeof l)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&l instanceof ArrayBuffer?d(n,l,t,e):"string"==typeof l?c(n,l,t):p(n,l)}function a(n){if("number"!=typeof n)throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function s(n,l,t,e){return a(l),l<=0?r(n,l):void 0!==t?"string"==typeof e?r(n,l).fill(t,e):r(n,l).fill(t):r(n,l)}function f(n,l){if(a(l),n=r(n,l<0?0:0|b(l)),!i.TYPED_ARRAY_SUPPORT)for(var t=0;t<l;++t)n[t]=0;return n}function c(n,l,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var e=0|m(l,t);n=r(n,e);var u=n.write(l,t);return u!==e&&(n=n.slice(0,u)),n}function h(n,l){var t=l.length<0?0:0|b(l.length);n=r(n,t);for(var e=0;e<t;e+=1)n[e]=255&l[e];return n}function d(n,l,t,e){if(l.byteLength,t<0||l.byteLength<t)throw new RangeError("'offset' is out of bounds");if(l.byteLength<t+(e||0))throw new RangeError("'length' is out of bounds");return l=void 0===t&&void 0===e?new Uint8Array(l):void 0===e?new Uint8Array(l,t):new Uint8Array(l,t,e),i.TYPED_ARRAY_SUPPORT?(n=l,n.__proto__=i.prototype):n=h(n,l),n}function p(n,l){if(i.isBuffer(l)){var t=0|b(l.length);return n=r(n,t),0===n.length?n:(l.copy(n,0,0,t),n)}if(l){if("undefined"!=typeof ArrayBuffer&&l.buffer instanceof ArrayBuffer||"length"in l)return"number"!=typeof l.length||Z(l.length)?r(n,0):h(n,l);if("Buffer"===l.type&&Q(l.data))return h(n,l.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(n){if(n>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|n}function v(n){return+n!=n&&(n=0),i.alloc(+n)}function m(n,l){if(i.isBuffer(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var t=n.length;if(0===t)return 0;for(var e=!1;;)switch(l){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return X(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return G(n).length;default:if(e)return X(n).length;l=(""+l).toLowerCase(),e=!0}}function y(n,l,t){var e=!1;if((void 0===l||l<0)&&(l=0),l>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if(t>>>=0,l>>>=0,t<=l)return"";for(n||(n="utf8");;)switch(n){case"hex":return D(this,l,t);case"utf8":case"utf-8":return I(this,l,t);case"ascii":return R(this,l,t);case"latin1":case"binary":return j(this,l,t);case"base64":return B(this,l,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,l,t);default:if(e)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),e=!0}}function g(n,l,t){var e=n[l];n[l]=n[t],n[t]=e}function w(n,l,t,e,u){if(0===n.length)return-1;if("string"==typeof t?(e=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=u?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(u)return-1;t=n.length-1}else if(t<0){if(!u)return-1;t=0}if("string"==typeof l&&(l=i.from(l,e)),i.isBuffer(l))return 0===l.length?-1:_(n,l,t,e,u);if("number"==typeof l)return l&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?u?Uint8Array.prototype.indexOf.call(n,l,t):Uint8Array.prototype.lastIndexOf.call(n,l,t):_(n,[l],t,e,u);throw new TypeError("val must be string, number or Buffer")}function _(n,l,t,e,u){function r(n,l){return 1===i?n[l]:n.readUInt16BE(l*i)}var i=1,o=n.length,a=l.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(n.length<2||l.length<2)return-1;i=2,o/=2,a/=2,t/=2}var s;if(u){var f=-1;for(s=t;s<o;s++)if(r(n,s)===r(l,-1===f?0:s-f)){if(-1===f&&(f=s),s-f+1===a)return f*i}else-1!==f&&(s-=s-f),f=-1}else for(t+a>o&&(t=o-a),s=t;s>=0;s--){for(var c=!0,h=0;h<a;h++)if(r(n,s+h)!==r(l,h)){c=!1;break}if(c)return s}return-1}function M(n,l,t,e){t=Number(t)||0;var u=n.length-t;e?(e=Number(e))>u&&(e=u):e=u;var r=l.length;if(r%2!=0)throw new TypeError("Invalid hex string");e>r/2&&(e=r/2);for(var i=0;i<e;++i){var o=parseInt(l.substr(2*i,2),16);if(isNaN(o))return i;n[t+i]=o}return i}function S(n,l,t,e){return Y(X(l,n.length-t),n,t,e)}function A(n,l,t,e){return Y(V(l),n,t,e)}function E(n,l,t,e){return A(n,l,t,e)}function x(n,l,t,e){return Y(G(l),n,t,e)}function k(n,l,t,e){return Y(W(l,n.length-t),n,t,e)}function B(n,l,t){return 0===l&&t===n.length?J.fromByteArray(n):J.fromByteArray(n.slice(l,t))}function I(n,l,t){t=Math.min(n.length,t);for(var e=[],u=l;u<t;){var r=n[u],i=null,o=r>239?4:r>223?3:r>191?2:1;if(u+o<=t){var a,s,f,c;switch(o){case 1:r<128&&(i=r);break;case 2:a=n[u+1],128==(192&a)&&(c=(31&r)<<6|63&a)>127&&(i=c);break;case 3:a=n[u+1],s=n[u+2],128==(192&a)&&128==(192&s)&&(c=(15&r)<<12|(63&a)<<6|63&s)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:a=n[u+1],s=n[u+2],f=n[u+3],128==(192&a)&&128==(192&s)&&128==(192&f)&&(c=(15&r)<<18|(63&a)<<12|(63&s)<<6|63&f)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,o=1):i>65535&&(i-=65536,e.push(i>>>10&1023|55296),i=56320|1023&i),e.push(i),u+=o}return C(e)}function C(n){var l=n.length;if(l<=nn)return String.fromCharCode.apply(String,n);for(var t="",e=0;e<l;)t+=String.fromCharCode.apply(String,n.slice(e,e+=nn));return t}function R(n,l,t){var e="";t=Math.min(n.length,t);for(var u=l;u<t;++u)e+=String.fromCharCode(127&n[u]);return e}function j(n,l,t){var e="";t=Math.min(n.length,t);for(var u=l;u<t;++u)e+=String.fromCharCode(n[u]);return e}function D(n,l,t){var e=n.length;(!l||l<0)&&(l=0),(!t||t<0||t>e)&&(t=e);for(var u="",r=l;r<t;++r)u+=H(n[r]);return u}function O(n,l,t){for(var e=n.slice(l,t),u="",r=0;r<e.length;r+=2)u+=String.fromCharCode(e[r]+256*e[r+1]);return u}function F(n,l,t){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+l>t)throw new RangeError("Trying to access beyond buffer length")}function T(n,l,t,e,u,r){if(!i.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>u||l<r)throw new RangeError('"value" argument is out of bounds');if(t+e>n.length)throw new RangeError("Index out of range")}function P(n,l,t,e){l<0&&(l=65535+l+1);for(var u=0,r=Math.min(n.length-t,2);u<r;++u)n[t+u]=(l&255<<8*(e?u:1-u))>>>8*(e?u:1-u)}function N(n,l,t,e){l<0&&(l=4294967295+l+1);for(var u=0,r=Math.min(n.length-t,4);u<r;++u)n[t+u]=l>>>8*(e?u:3-u)&255}function L(n,l,t,e,u,r){if(t+e>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function q(n,l,t,e,u){return u||L(n,l,t,4,3.4028234663852886e38,-3.4028234663852886e38),$.write(n,l,t,e,23,4),t+4}function U(n,l,t,e,u){return u||L(n,l,t,8,1.7976931348623157e308,-1.7976931348623157e308),$.write(n,l,t,e,52,8),t+8}function z(n){if(n=K(n).replace(ln,""),n.length<2)return"";for(;n.length%4!=0;)n+="=";return n}function K(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function H(n){return n<16?"0"+n.toString(16):n.toString(16)}function X(n,l){l=l||1/0;for(var t,e=n.length,u=null,r=[],i=0;i<e;++i){if((t=n.charCodeAt(i))>55295&&t<57344){if(!u){if(t>56319){(l-=3)>-1&&r.push(239,191,189);continue}if(i+1===e){(l-=3)>-1&&r.push(239,191,189);continue}u=t;continue}if(t<56320){(l-=3)>-1&&r.push(239,191,189),u=t;continue}t=65536+(u-55296<<10|t-56320)}else u&&(l-=3)>-1&&r.push(239,191,189);if(u=null,t<128){if((l-=1)<0)break;r.push(t)}else if(t<2048){if((l-=2)<0)break;r.push(t>>6|192,63&t|128)}else if(t<65536){if((l-=3)<0)break;r.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((l-=4)<0)break;r.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return r}function V(n){for(var l=[],t=0;t<n.length;++t)l.push(255&n.charCodeAt(t));return l}function W(n,l){for(var t,e,u,r=[],i=0;i<n.length&&!((l-=2)<0);++i)t=n.charCodeAt(i),e=t>>8,u=t%256,r.push(u),r.push(e);return r}function G(n){return J.toByteArray(z(n))}function Y(n,l,t,e){for(var u=0;u<e&&!(u+t>=l.length||u>=n.length);++u)l[u+t]=n[u];return u}function Z(n){return n!==n}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ var J=t(464),$=t(465),Q=t(466);l.Buffer=i,l.SlowBuffer=v,l.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:e(),l.kMaxLength=u(),i.poolSize=8192,i._augment=function(n){return n.__proto__=i.prototype,n},i.from=function(n,l,t){return o(null,n,l,t)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(n,l,t){return s(null,n,l,t)},i.allocUnsafe=function(n){return f(null,n)},i.allocUnsafeSlow=function(n){return f(null,n)},i.isBuffer=function(n){return!(null==n||!n._isBuffer)},i.compare=function(n,l){if(!i.isBuffer(n)||!i.isBuffer(l))throw new TypeError("Arguments must be Buffers");if(n===l)return 0;for(var t=n.length,e=l.length,u=0,r=Math.min(t,e);u<r;++u)if(n[u]!==l[u]){t=n[u],e=l[u];break}return t<e?-1:e<t?1:0},i.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(n,l){if(!Q(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return i.alloc(0);var t;if(void 0===l)for(l=0,t=0;t<n.length;++t)l+=n[t].length;var e=i.allocUnsafe(l),u=0;for(t=0;t<n.length;++t){var r=n[t];if(!i.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(e,u),u+=r.length}return e},i.byteLength=m,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var l=0;l<n;l+=2)g(this,l,l+1);return this},i.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var l=0;l<n;l+=4)g(this,l,l+3),g(this,l+1,l+2);return this},i.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var l=0;l<n;l+=8)g(this,l,l+7),g(this,l+1,l+6),g(this,l+2,l+5),g(this,l+3,l+4);return this},i.prototype.toString=function(){var n=0|this.length;return 0===n?"":0===arguments.length?I(this,0,n):y.apply(this,arguments)},i.prototype.equals=function(n){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===i.compare(this,n)},i.prototype.inspect=function(){var n="",t=l.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(n+=" ... ")),"<Buffer "+n+">"},i.prototype.compare=function(n,l,t,e,u){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===l&&(l=0),void 0===t&&(t=n?n.length:0),void 0===e&&(e=0),void 0===u&&(u=this.length),l<0||t>n.length||e<0||u>this.length)throw new RangeError("out of range index");if(e>=u&&l>=t)return 0;if(e>=u)return-1;if(l>=t)return 1;if(l>>>=0,t>>>=0,e>>>=0,u>>>=0,this===n)return 0;for(var r=u-e,o=t-l,a=Math.min(r,o),s=this.slice(e,u),f=n.slice(l,t),c=0;c<a;++c)if(s[c]!==f[c]){r=s[c],o=f[c];break}return r<o?-1:o<r?1:0},i.prototype.includes=function(n,l,t){return-1!==this.indexOf(n,l,t)},i.prototype.indexOf=function(n,l,t){return w(this,n,l,t,!0)},i.prototype.lastIndexOf=function(n,l,t){return w(this,n,l,t,!1)},i.prototype.write=function(n,l,t,e){if(void 0===l)e="utf8",t=this.length,l=0;else if(void 0===t&&"string"==typeof l)e=l,t=this.length,l=0;else{if(!isFinite(l))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");l|=0,isFinite(t)?(t|=0,void 0===e&&(e="utf8")):(e=t,t=void 0)}var u=this.length-l;if((void 0===t||t>u)&&(t=u),n.length>0&&(t<0||l<0)||l>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var r=!1;;)switch(e){case"hex":return M(this,n,l,t);case"utf8":case"utf-8":return S(this,n,l,t);case"ascii":return A(this,n,l,t);case"latin1":case"binary":return E(this,n,l,t);case"base64":return x(this,n,l,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,n,l,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),r=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var nn=4096;i.prototype.slice=function(n,l){var t=this.length;n=~~n,l=void 0===l?t:~~l,n<0?(n+=t)<0&&(n=0):n>t&&(n=t),l<0?(l+=t)<0&&(l=0):l>t&&(l=t),l<n&&(l=n);var e;if(i.TYPED_ARRAY_SUPPORT)e=this.subarray(n,l),e.__proto__=i.prototype;else{var u=l-n;e=new i(u,void 0);for(var r=0;r<u;++r)e[r]=this[r+n]}return e},i.prototype.readUIntLE=function(n,l,t){n|=0,l|=0,t||F(n,l,this.length);for(var e=this[n],u=1,r=0;++r<l&&(u*=256);)e+=this[n+r]*u;return e},i.prototype.readUIntBE=function(n,l,t){n|=0,l|=0,t||F(n,l,this.length);for(var e=this[n+--l],u=1;l>0&&(u*=256);)e+=this[n+--l]*u;return e},i.prototype.readUInt8=function(n,l){return l||F(n,1,this.length),this[n]},i.prototype.readUInt16LE=function(n,l){return l||F(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUInt16BE=function(n,l){return l||F(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUInt32LE=function(n,l){return l||F(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},i.prototype.readUInt32BE=function(n,l){return l||F(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,l,t){n|=0,l|=0,t||F(n,l,this.length);for(var e=this[n],u=1,r=0;++r<l&&(u*=256);)e+=this[n+r]*u;return u*=128,e>=u&&(e-=Math.pow(2,8*l)),e},i.prototype.readIntBE=function(n,l,t){n|=0,l|=0,t||F(n,l,this.length);for(var e=l,u=1,r=this[n+--e];e>0&&(u*=256);)r+=this[n+--e]*u;return u*=128,r>=u&&(r-=Math.pow(2,8*l)),r},i.prototype.readInt8=function(n,l){return l||F(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},i.prototype.readInt16LE=function(n,l){l||F(n,2,this.length);var t=this[n]|this[n+1]<<8;return 32768&t?4294901760|t:t},i.prototype.readInt16BE=function(n,l){l||F(n,2,this.length);var t=this[n+1]|this[n]<<8;return 32768&t?4294901760|t:t},i.prototype.readInt32LE=function(n,l){return l||F(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,l){return l||F(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,l){return l||F(n,4,this.length),$.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,l){return l||F(n,4,this.length),$.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,l){return l||F(n,8,this.length),$.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,l){return l||F(n,8,this.length),$.read(this,n,!1,52,8)},i.prototype.writeUIntLE=function(n,l,t,e){if(n=+n,l|=0,t|=0,!e){T(this,n,l,t,Math.pow(2,8*t)-1,0)}var u=1,r=0;for(this[l]=255&n;++r<t&&(u*=256);)this[l+r]=n/u&255;return l+t},i.prototype.writeUIntBE=function(n,l,t,e){if(n=+n,l|=0,t|=0,!e){T(this,n,l,t,Math.pow(2,8*t)-1,0)}var u=t-1,r=1;for(this[l+u]=255&n;--u>=0&&(r*=256);)this[l+u]=n/r&255;return l+t},i.prototype.writeUInt8=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,1,255,0),i.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[l]=255&n,l+1},i.prototype.writeUInt16LE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[l]=255&n,this[l+1]=n>>>8):P(this,n,l,!0),l+2},i.prototype.writeUInt16BE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[l]=n>>>8,this[l+1]=255&n):P(this,n,l,!1),l+2},i.prototype.writeUInt32LE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[l+3]=n>>>24,this[l+2]=n>>>16,this[l+1]=n>>>8,this[l]=255&n):N(this,n,l,!0),l+4},i.prototype.writeUInt32BE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[l]=n>>>24,this[l+1]=n>>>16,this[l+2]=n>>>8,this[l+3]=255&n):N(this,n,l,!1),l+4},i.prototype.writeIntLE=function(n,l,t,e){if(n=+n,l|=0,!e){var u=Math.pow(2,8*t-1);T(this,n,l,t,u-1,-u)}var r=0,i=1,o=0;for(this[l]=255&n;++r<t&&(i*=256);)n<0&&0===o&&0!==this[l+r-1]&&(o=1),this[l+r]=(n/i>>0)-o&255;return l+t},i.prototype.writeIntBE=function(n,l,t,e){if(n=+n,l|=0,!e){var u=Math.pow(2,8*t-1);T(this,n,l,t,u-1,-u)}var r=t-1,i=1,o=0;for(this[l+r]=255&n;--r>=0&&(i*=256);)n<0&&0===o&&0!==this[l+r+1]&&(o=1),this[l+r]=(n/i>>0)-o&255;return l+t},i.prototype.writeInt8=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,1,127,-128),i.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[l]=255&n,l+1},i.prototype.writeInt16LE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[l]=255&n,this[l+1]=n>>>8):P(this,n,l,!0),l+2},i.prototype.writeInt16BE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[l]=n>>>8,this[l+1]=255&n):P(this,n,l,!1),l+2},i.prototype.writeInt32LE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[l]=255&n,this[l+1]=n>>>8,this[l+2]=n>>>16,this[l+3]=n>>>24):N(this,n,l,!0),l+4},i.prototype.writeInt32BE=function(n,l,t){return n=+n,l|=0,t||T(this,n,l,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),i.TYPED_ARRAY_SUPPORT?(this[l]=n>>>24,this[l+1]=n>>>16,this[l+2]=n>>>8,this[l+3]=255&n):N(this,n,l,!1),l+4},i.prototype.writeFloatLE=function(n,l,t){return q(this,n,l,!0,t)},i.prototype.writeFloatBE=function(n,l,t){return q(this,n,l,!1,t)},i.prototype.writeDoubleLE=function(n,l,t){return U(this,n,l,!0,t)},i.prototype.writeDoubleBE=function(n,l,t){return U(this,n,l,!1,t)},i.prototype.copy=function(n,l,t,e){if(t||(t=0),e||0===e||(e=this.length),l>=n.length&&(l=n.length),l||(l=0),e>0&&e<t&&(e=t),e===t)return 0;if(0===n.length||0===this.length)return 0;if(l<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),n.length-l<e-t&&(e=n.length-l+t);var u,r=e-t;if(this===n&&t<l&&l<e)for(u=r-1;u>=0;--u)n[u+l]=this[u+t];else if(r<1e3||!i.TYPED_ARRAY_SUPPORT)for(u=0;u<r;++u)n[u+l]=this[u+t];else Uint8Array.prototype.set.call(n,this.subarray(t,t+r),l);return r},i.prototype.fill=function(n,l,t,e){if("string"==typeof n){if("string"==typeof l?(e=l,l=0,t=this.length):"string"==typeof t&&(e=t,t=this.length),1===n.length){var u=n.charCodeAt(0);u<256&&(n=u)}if(void 0!==e&&"string"!=typeof e)throw new TypeError("encoding must be a string");if("string"==typeof e&&!i.isEncoding(e))throw new TypeError("Unknown encoding: "+e)}else"number"==typeof n&&(n&=255);if(l<0||this.length<l||this.length<t)throw new RangeError("Out of range index");if(t<=l)return this;l>>>=0,t=void 0===t?this.length:t>>>0,n||(n=0);var r;if("number"==typeof n)for(r=l;r<t;++r)this[r]=n;else{var o=i.isBuffer(n)?n:X(new i(n,e).toString()),a=o.length;for(r=0;r<t-l;++r)this[r+l]=o[r%a]}return this};var ln=/[^+\/0-9A-Za-z-_]/g}).call(l,t(11))},function(n,l){"function"==typeof Object.create?n.exports=function(n,l){n.super_=l,n.prototype=Object.create(l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(n,l){n.super_=l;var t=function(){};t.prototype=l.prototype,n.prototype=new t,n.prototype.constructor=n}},function(n,l,t){var e=t(6);n.exports=function(n){if(!e(n))throw TypeError(n+" is not an object!");return n}},function(n,l){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n,l){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,l){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n,l,t){var e=t(90)("wks"),u=t(48),r=t(4).Symbol,i="function"==typeof r;(n.exports=function(n){return e[n]||(e[n]=i&&r[n]||(i?r:u)("Symbol."+n))}).store=e},function(n,l,t){n.exports=!t(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(n,l,t){var e=t(3),u=t(160),r=t(30),i=Object.defineProperty;l.f=t(8)?Object.defineProperty:function(n,l,t){if(e(n),l=r(l,!0),e(t),u)try{return i(n,l,t)}catch(n){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(n[l]=t.value),n}},function(n,l,t){var e=t(39),u=Math.min;n.exports=function(n){return n>0?u(e(n),9007199254740991):0}},function(n,l){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,l,t){var e=t(26);n.exports=function(n){return Object(e(n))}},function(n,l){var t={}.hasOwnProperty;n.exports=function(n,l){return t.call(n,l)}},function(n,l){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,l,t){var e=t(9),u=t(38);n.exports=t(8)?function(n,l,t){return e.f(n,l,u(1,t))}:function(n,l,t){return n[l]=t,n}},function(n,l,t){var e=t(4),u=t(15),r=t(13),i=t(48)("src"),o="toString",a=Function[o],s=(""+a).split(o);t(32).inspectSource=function(n){return a.call(n)},(n.exports=function(n,l,t,o){var a="function"==typeof t;a&&(r(t,"name")||u(t,"name",l)),n[l]!==t&&(a&&(r(t,i)||u(t,i,n[l]?""+n[l]:s.join(String(l)))),n===e?n[l]=t:o?n[l]?n[l]=t:u(n,l,t):(delete n[l],u(n,l,t)))})(Function.prototype,o,function(){return"function"==typeof this&&this[i]||a.call(this)})},function(n,l,t){var e=t(0),u=t(5),r=t(26),i=/"/g,o=function(n,l,t,e){var u=String(r(n)),o="<"+l;return""!==t&&(o+=" "+t+'="'+String(e).replace(i,"&quot;")+'"'),o+">"+u+"</"+l+">"};n.exports=function(n,l){var t={};t[n]=l(o),e(e.P+e.F*u(function(){var l=""[n]('"');return l!==l.toLowerCase()||l.split('"').length>3}),"String",t)}},function(n,l,t){var e=t(64),u=t(26);n.exports=function(n){return e(u(n))}},function(n,l,t){(function(n){!function(n,l){"use strict";function e(n,l){if(!n)throw new Error(l||"Assertion failed")}function u(n,l){n.super_=l;var t=function(){};t.prototype=l.prototype,n.prototype=new t,n.prototype.constructor=n}function r(n,l,t){if(r.isBN(n))return n;this.negative=0,this.words=null,this.length=0,this.red=null,null!==n&&("le"!==l&&"be"!==l||(t=l,l=10),this._init(n||0,l||10,t||"be"))}function i(n,l,t){for(var e=0,u=Math.min(n.length,t),r=l;r<u;r++){var i=n.charCodeAt(r)-48;e<<=4,e|=i>=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return e}function o(n,l,t,e){for(var u=0,r=Math.min(n.length,t),i=l;i<r;i++){var o=n.charCodeAt(i)-48;u*=e,u+=o>=49?o-49+10:o>=17?o-17+10:o}return u}function a(n){for(var l=new Array(n.bitLength()),t=0;t<l.length;t++){var e=t/26|0,u=t%26;l[t]=(n.words[e]&1<<u)>>>u}return l}function s(n,l,t){t.negative=l.negative^n.negative;var e=n.length+l.length|0;t.length=e,e=e-1|0;var u=0|n.words[0],r=0|l.words[0],i=u*r,o=67108863&i,a=i/67108864|0;t.words[0]=o;for(var s=1;s<e;s++){for(var f=a>>>26,c=67108863&a,h=Math.min(s,l.length-1),d=Math.max(0,s-n.length+1);d<=h;d++){var p=s-d|0;u=0|n.words[p],r=0|l.words[d],i=u*r+c,f+=i/67108864|0,c=67108863&i}t.words[s]=0|c,a=0|f}return 0!==a?t.words[s]=0|a:t.length--,t.strip()}function f(n,l,t){t.negative=l.negative^n.negative,t.length=n.length+l.length;for(var e=0,u=0,r=0;r<t.length-1;r++){var i=u;u=0;for(var o=67108863&e,a=Math.min(r,l.length-1),s=Math.max(0,r-n.length+1);s<=a;s++){var f=r-s,c=0|n.words[f],h=0|l.words[s],d=c*h,p=67108863&d;i=i+(d/67108864|0)|0,p=p+o|0,o=67108863&p,i=i+(p>>>26)|0,u+=i>>>26,i&=67108863}t.words[r]=o,e=i,i=u}return 0!==e?t.words[r]=e:t.length--,t.strip()}function c(n,l,t){return(new h).mulp(n,l,t)}function h(n,l){this.x=n,this.y=l}function d(n,l){this.name=n,this.p=new r(l,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){d.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function b(){d.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){d.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function m(){d.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(n){if("string"==typeof n){var l=r._prime(n);this.m=l.p,this.prime=l}else e(n.gtn(1),"modulus must be greater than 1"),this.m=n,this.prime=null}function g(n){y.call(this,n),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof n?n.exports=r:l.BN=r,r.BN=r,r.wordSize=26;var w;try{w=t(1).Buffer}catch(n){}r.isBN=function(n){return n instanceof r||null!==n&&"object"==typeof n&&n.constructor.wordSize===r.wordSize&&Array.isArray(n.words)},r.max=function(n,l){return n.cmp(l)>0?n:l},r.min=function(n,l){return n.cmp(l)<0?n:l},r.prototype._init=function(n,l,t){if("number"==typeof n)return this._initNumber(n,l,t);if("object"==typeof n)return this._initArray(n,l,t);"hex"===l&&(l=16),e(l===(0|l)&&l>=2&&l<=36),n=n.toString().replace(/\s+/g,"");var u=0;"-"===n[0]&&u++,16===l?this._parseHex(n,u):this._parseBase(n,l,u),"-"===n[0]&&(this.negative=1),this.strip(),"le"===t&&this._initArray(this.toArray(),l,t)},r.prototype._initNumber=function(n,l,t){n<0&&(this.negative=1,n=-n),n<67108864?(this.words=[67108863&n],this.length=1):n<4503599627370496?(this.words=[67108863&n,n/67108864&67108863],this.length=2):(e(n<9007199254740992),this.words=[67108863&n,n/67108864&67108863,1],this.length=3),"le"===t&&this._initArray(this.toArray(),l,t)},r.prototype._initArray=function(n,l,t){if(e("number"==typeof n.length),n.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(n.length/3),this.words=new Array(this.length);for(var u=0;u<this.length;u++)this.words[u]=0;var r,i,o=0;if("be"===t)for(u=n.length-1,r=0;u>=0;u-=3)i=n[u]|n[u-1]<<8|n[u-2]<<16,this.words[r]|=i<<o&67108863,this.words[r+1]=i>>>26-o&67108863,(o+=24)>=26&&(o-=26,r++);else if("le"===t)for(u=0,r=0;u<n.length;u+=3)i=n[u]|n[u+1]<<8|n[u+2]<<16,this.words[r]|=i<<o&67108863,this.words[r+1]=i>>>26-o&67108863,(o+=24)>=26&&(o-=26,r++);return this.strip()},r.prototype._parseHex=function(n,l){this.length=Math.ceil((n.length-l)/6),this.words=new Array(this.length);for(var t=0;t<this.length;t++)this.words[t]=0;var e,u,r=0;for(t=n.length-6,e=0;t>=l;t-=6)u=i(n,t,t+6),this.words[e]|=u<<r&67108863,this.words[e+1]|=u>>>26-r&4194303,(r+=24)>=26&&(r-=26,e++);t+6!==l&&(u=i(n,l,t+6),this.words[e]|=u<<r&67108863,this.words[e+1]|=u>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(n,l,t){this.words=[0],this.length=1;for(var e=0,u=1;u<=67108863;u*=l)e++;e--,u=u/l|0;for(var r=n.length-t,i=r%e,a=Math.min(r,r-i)+t,s=0,f=t;f<a;f+=e)s=o(n,f,f+e,l),this.imuln(u),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==i){var c=1;for(s=o(n,f,n.length,l),f=0;f<i;f++)c*=l;this.imuln(c),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}},r.prototype.copy=function(n){n.words=new Array(this.length);for(var l=0;l<this.length;l++)n.words[l]=this.words[l];n.length=this.length,n.negative=this.negative,n.red=this.red},r.prototype.clone=function(){var n=new r(null);return this.copy(n),n},r.prototype._expand=function(n){for(;this.length<n;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var _=["","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"],M=[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],S=[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];r.prototype.toString=function(n,l){n=n||10,l=0|l||1;var t;if(16===n||"hex"===n){t="";for(var u=0,r=0,i=0;i<this.length;i++){var o=this.words[i],a=(16777215&(o<<u|r)).toString(16);r=o>>>24-u&16777215,t=0!==r||i!==this.length-1?_[6-a.length]+a+t:a+t,u+=2,u>=26&&(u-=26,i--)}for(0!==r&&(t=r.toString(16)+t);t.length%l!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}if(n===(0|n)&&n>=2&&n<=36){var s=M[n],f=S[n];t="";var c=this.clone();for(c.negative=0;!c.isZero();){var h=c.modn(f).toString(n);c=c.idivn(f),t=c.isZero()?h+t:_[s-h.length]+h+t}for(this.isZero()&&(t="0"+t);t.length%l!=0;)t="0"+t;return 0!==this.negative&&(t="-"+t),t}e(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var n=this.words[0];return 2===this.length?n+=67108864*this.words[1]:3===this.length&&1===this.words[2]?n+=4503599627370496+67108864*this.words[1]:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-n:n},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(n,l){return e(void 0!==w),this.toArrayLike(w,n,l)},r.prototype.toArray=function(n,l){return this.toArrayLike(Array,n,l)},r.prototype.toArrayLike=function(n,l,t){var u=this.byteLength(),r=t||Math.max(1,u);e(u<=r,"byte array longer than desired length"),e(r>0,"Requested array length <= 0"),this.strip();var i,o,a="le"===l,s=new n(r),f=this.clone();if(a){for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),s[o]=i;for(;o<r;o++)s[o]=0}else{for(o=0;o<r-u;o++)s[o]=0;for(o=0;!f.isZero();o++)i=f.andln(255),f.iushrn(8),s[r-o-1]=i}return s},Math.clz32?r.prototype._countBits=function(n){return 32-Math.clz32(n)}:r.prototype._countBits=function(n){var l=n,t=0;return l>=4096&&(t+=13,l>>>=13),l>=64&&(t+=7,l>>>=7),l>=8&&(t+=4,l>>>=4),l>=2&&(t+=2,l>>>=2),t+l},r.prototype._zeroBits=function(n){if(0===n)return 26;var l=n,t=0;return 0==(8191&l)&&(t+=13,l>>>=13),0==(127&l)&&(t+=7,l>>>=7),0==(15&l)&&(t+=4,l>>>=4),0==(3&l)&&(t+=2,l>>>=2),0==(1&l)&&t++,t},r.prototype.bitLength=function(){var n=this.words[this.length-1],l=this._countBits(n);return 26*(this.length-1)+l},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var n=0,l=0;l<this.length;l++){var t=this._zeroBits(this.words[l]);if(n+=t,26!==t)break}return n},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(n){return 0!==this.negative?this.abs().inotn(n).iaddn(1):this.clone()},r.prototype.fromTwos=function(n){return this.testn(n-1)?this.notn(n).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(n){for(;this.length<n.length;)this.words[this.length++]=0;for(var l=0;l<n.length;l++)this.words[l]=this.words[l]|n.words[l];return this.strip()},r.prototype.ior=function(n){return e(0==(this.negative|n.negative)),this.iuor(n)},r.prototype.or=function(n){return this.length>n.length?this.clone().ior(n):n.clone().ior(this)},r.prototype.uor=function(n){return this.length>n.length?this.clone().iuor(n):n.clone().iuor(this)},r.prototype.iuand=function(n){var l;l=this.length>n.length?n:this;for(var t=0;t<l.length;t++)this.words[t]=this.words[t]&n.words[t];return this.length=l.length,this.strip()},r.prototype.iand=function(n){return e(0==(this.negative|n.negative)),this.iuand(n)},r.prototype.and=function(n){return this.length>n.length?this.clone().iand(n):n.clone().iand(this)},r.prototype.uand=function(n){return this.length>n.length?this.clone().iuand(n):n.clone().iuand(this)},r.prototype.iuxor=function(n){var l,t;this.length>n.length?(l=this,t=n):(l=n,t=this);for(var e=0;e<t.length;e++)this.words[e]=l.words[e]^t.words[e];if(this!==l)for(;e<l.length;e++)this.words[e]=l.words[e];return this.length=l.length,this.strip()},r.prototype.ixor=function(n){return e(0==(this.negative|n.negative)),this.iuxor(n)},r.prototype.xor=function(n){return this.length>n.length?this.clone().ixor(n):n.clone().ixor(this)},r.prototype.uxor=function(n){return this.length>n.length?this.clone().iuxor(n):n.clone().iuxor(this)},r.prototype.inotn=function(n){e("number"==typeof n&&n>=0);var l=0|Math.ceil(n/26),t=n%26;this._expand(l),t>0&&l--;for(var u=0;u<l;u++)this.words[u]=67108863&~this.words[u];return t>0&&(this.words[u]=~this.words[u]&67108863>>26-t),this.strip()},r.prototype.notn=function(n){return this.clone().inotn(n)},r.prototype.setn=function(n,l){e("number"==typeof n&&n>=0);var t=n/26|0,u=n%26;return this._expand(t+1),this.words[t]=l?this.words[t]|1<<u:this.words[t]&~(1<<u),this.strip()},r.prototype.iadd=function(n){var l;if(0!==this.negative&&0===n.negative)return this.negative=0,l=this.isub(n),this.negative^=1,this._normSign();if(0===this.negative&&0!==n.negative)return n.negative=0,l=this.isub(n),n.negative=1,l._normSign();var t,e;this.length>n.length?(t=this,e=n):(t=n,e=this);for(var u=0,r=0;r<e.length;r++)l=(0|t.words[r])+(0|e.words[r])+u,this.words[r]=67108863&l,u=l>>>26;for(;0!==u&&r<t.length;r++)l=(0|t.words[r])+u,this.words[r]=67108863&l,u=l>>>26;if(this.length=t.length,0!==u)this.words[this.length]=u,this.length++;else if(t!==this)for(;r<t.length;r++)this.words[r]=t.words[r];return this},r.prototype.add=function(n){var l;return 0!==n.negative&&0===this.negative?(n.negative=0,l=this.sub(n),n.negative^=1,l):0===n.negative&&0!==this.negative?(this.negative=0,l=n.sub(this),this.negative=1,l):this.length>n.length?this.clone().iadd(n):n.clone().iadd(this)},r.prototype.isub=function(n){if(0!==n.negative){n.negative=0;var l=this.iadd(n);return n.negative=1,l._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(n),this.negative=1,this._normSign();var t=this.cmp(n);if(0===t)return this.negative=0,this.length=1,this.words[0]=0,this;var e,u;t>0?(e=this,u=n):(e=n,u=this);for(var r=0,i=0;i<u.length;i++)l=(0|e.words[i])-(0|u.words[i])+r,r=l>>26,this.words[i]=67108863&l;for(;0!==r&&i<e.length;i++)l=(0|e.words[i])+r,r=l>>26,this.words[i]=67108863&l;if(0===r&&i<e.length&&e!==this)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=Math.max(this.length,i),e!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(n){return this.clone().isub(n)};var A=function(n,l,t){var e,u,r,i=n.words,o=l.words,a=t.words,s=0,f=0|i[0],c=8191&f,h=f>>>13,d=0|i[1],p=8191&d,b=d>>>13,v=0|i[2],m=8191&v,y=v>>>13,g=0|i[3],w=8191&g,_=g>>>13,M=0|i[4],S=8191&M,A=M>>>13,E=0|i[5],x=8191&E,k=E>>>13,B=0|i[6],I=8191&B,C=B>>>13,R=0|i[7],j=8191&R,D=R>>>13,O=0|i[8],F=8191&O,T=O>>>13,P=0|i[9],N=8191&P,L=P>>>13,q=0|o[0],U=8191&q,z=q>>>13,K=0|o[1],H=8191&K,X=K>>>13,V=0|o[2],W=8191&V,G=V>>>13,Y=0|o[3],Z=8191&Y,J=Y>>>13,$=0|o[4],Q=8191&$,nn=$>>>13,ln=0|o[5],tn=8191&ln,en=ln>>>13,un=0|o[6],rn=8191&un,on=un>>>13,an=0|o[7],sn=8191&an,fn=an>>>13,cn=0|o[8],hn=8191&cn,dn=cn>>>13,pn=0|o[9],bn=8191&pn,vn=pn>>>13;t.negative=n.negative^l.negative,t.length=19,e=Math.imul(c,U),u=Math.imul(c,z),u=u+Math.imul(h,U)|0,r=Math.imul(h,z);var mn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(mn>>>26)|0,mn&=67108863,e=Math.imul(p,U),u=Math.imul(p,z),u=u+Math.imul(b,U)|0,r=Math.imul(b,z),e=e+Math.imul(c,H)|0,u=u+Math.imul(c,X)|0,u=u+Math.imul(h,H)|0,r=r+Math.imul(h,X)|0;var yn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(yn>>>26)|0,yn&=67108863,e=Math.imul(m,U),u=Math.imul(m,z),u=u+Math.imul(y,U)|0,r=Math.imul(y,z),e=e+Math.imul(p,H)|0,u=u+Math.imul(p,X)|0,u=u+Math.imul(b,H)|0,r=r+Math.imul(b,X)|0,e=e+Math.imul(c,W)|0,u=u+Math.imul(c,G)|0,u=u+Math.imul(h,W)|0,r=r+Math.imul(h,G)|0;var gn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(gn>>>26)|0,gn&=67108863,e=Math.imul(w,U),u=Math.imul(w,z),u=u+Math.imul(_,U)|0,r=Math.imul(_,z),e=e+Math.imul(m,H)|0,u=u+Math.imul(m,X)|0,u=u+Math.imul(y,H)|0,r=r+Math.imul(y,X)|0,e=e+Math.imul(p,W)|0,u=u+Math.imul(p,G)|0,u=u+Math.imul(b,W)|0,r=r+Math.imul(b,G)|0,e=e+Math.imul(c,Z)|0,u=u+Math.imul(c,J)|0,u=u+Math.imul(h,Z)|0,r=r+Math.imul(h,J)|0;var wn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(wn>>>26)|0,wn&=67108863,e=Math.imul(S,U),u=Math.imul(S,z),u=u+Math.imul(A,U)|0,r=Math.imul(A,z),e=e+Math.imul(w,H)|0,u=u+Math.imul(w,X)|0,u=u+Math.imul(_,H)|0,r=r+Math.imul(_,X)|0,e=e+Math.imul(m,W)|0,u=u+Math.imul(m,G)|0,u=u+Math.imul(y,W)|0,r=r+Math.imul(y,G)|0,e=e+Math.imul(p,Z)|0,u=u+Math.imul(p,J)|0,u=u+Math.imul(b,Z)|0,r=r+Math.imul(b,J)|0,e=e+Math.imul(c,Q)|0,u=u+Math.imul(c,nn)|0,u=u+Math.imul(h,Q)|0,r=r+Math.imul(h,nn)|0;var _n=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(_n>>>26)|0,_n&=67108863,e=Math.imul(x,U),u=Math.imul(x,z),u=u+Math.imul(k,U)|0,r=Math.imul(k,z),e=e+Math.imul(S,H)|0,u=u+Math.imul(S,X)|0,u=u+Math.imul(A,H)|0,r=r+Math.imul(A,X)|0,e=e+Math.imul(w,W)|0,u=u+Math.imul(w,G)|0,u=u+Math.imul(_,W)|0,r=r+Math.imul(_,G)|0,e=e+Math.imul(m,Z)|0,u=u+Math.imul(m,J)|0,u=u+Math.imul(y,Z)|0,r=r+Math.imul(y,J)|0,e=e+Math.imul(p,Q)|0,u=u+Math.imul(p,nn)|0,u=u+Math.imul(b,Q)|0,r=r+Math.imul(b,nn)|0,e=e+Math.imul(c,tn)|0,u=u+Math.imul(c,en)|0,u=u+Math.imul(h,tn)|0,r=r+Math.imul(h,en)|0;var Mn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,e=Math.imul(I,U),u=Math.imul(I,z),u=u+Math.imul(C,U)|0,r=Math.imul(C,z),e=e+Math.imul(x,H)|0,u=u+Math.imul(x,X)|0,u=u+Math.imul(k,H)|0,r=r+Math.imul(k,X)|0,e=e+Math.imul(S,W)|0,u=u+Math.imul(S,G)|0,u=u+Math.imul(A,W)|0,r=r+Math.imul(A,G)|0,e=e+Math.imul(w,Z)|0,u=u+Math.imul(w,J)|0,u=u+Math.imul(_,Z)|0,r=r+Math.imul(_,J)|0,e=e+Math.imul(m,Q)|0,u=u+Math.imul(m,nn)|0,u=u+Math.imul(y,Q)|0,r=r+Math.imul(y,nn)|0,e=e+Math.imul(p,tn)|0,u=u+Math.imul(p,en)|0,u=u+Math.imul(b,tn)|0,r=r+Math.imul(b,en)|0,e=e+Math.imul(c,rn)|0,u=u+Math.imul(c,on)|0,u=u+Math.imul(h,rn)|0,r=r+Math.imul(h,on)|0;var Sn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(Sn>>>26)|0,Sn&=67108863,e=Math.imul(j,U),u=Math.imul(j,z),u=u+Math.imul(D,U)|0,r=Math.imul(D,z),e=e+Math.imul(I,H)|0,u=u+Math.imul(I,X)|0,u=u+Math.imul(C,H)|0,r=r+Math.imul(C,X)|0,e=e+Math.imul(x,W)|0,u=u+Math.imul(x,G)|0,u=u+Math.imul(k,W)|0,r=r+Math.imul(k,G)|0,e=e+Math.imul(S,Z)|0,u=u+Math.imul(S,J)|0,u=u+Math.imul(A,Z)|0,r=r+Math.imul(A,J)|0,e=e+Math.imul(w,Q)|0,u=u+Math.imul(w,nn)|0,u=u+Math.imul(_,Q)|0,r=r+Math.imul(_,nn)|0,e=e+Math.imul(m,tn)|0,u=u+Math.imul(m,en)|0,u=u+Math.imul(y,tn)|0,r=r+Math.imul(y,en)|0,e=e+Math.imul(p,rn)|0,u=u+Math.imul(p,on)|0,u=u+Math.imul(b,rn)|0,r=r+Math.imul(b,on)|0,e=e+Math.imul(c,sn)|0,u=u+Math.imul(c,fn)|0,u=u+Math.imul(h,sn)|0,r=r+Math.imul(h,fn)|0;var An=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(An>>>26)|0,An&=67108863,e=Math.imul(F,U),u=Math.imul(F,z),u=u+Math.imul(T,U)|0,r=Math.imul(T,z),e=e+Math.imul(j,H)|0,u=u+Math.imul(j,X)|0,u=u+Math.imul(D,H)|0,r=r+Math.imul(D,X)|0,e=e+Math.imul(I,W)|0,u=u+Math.imul(I,G)|0,u=u+Math.imul(C,W)|0,r=r+Math.imul(C,G)|0,e=e+Math.imul(x,Z)|0,u=u+Math.imul(x,J)|0,u=u+Math.imul(k,Z)|0,r=r+Math.imul(k,J)|0,e=e+Math.imul(S,Q)|0,u=u+Math.imul(S,nn)|0,u=u+Math.imul(A,Q)|0,r=r+Math.imul(A,nn)|0,e=e+Math.imul(w,tn)|0,u=u+Math.imul(w,en)|0,u=u+Math.imul(_,tn)|0,r=r+Math.imul(_,en)|0,e=e+Math.imul(m,rn)|0,u=u+Math.imul(m,on)|0,u=u+Math.imul(y,rn)|0,r=r+Math.imul(y,on)|0,e=e+Math.imul(p,sn)|0,u=u+Math.imul(p,fn)|0,u=u+Math.imul(b,sn)|0,r=r+Math.imul(b,fn)|0,e=e+Math.imul(c,hn)|0,u=u+Math.imul(c,dn)|0,u=u+Math.imul(h,hn)|0,r=r+Math.imul(h,dn)|0;var En=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(En>>>26)|0,En&=67108863,e=Math.imul(N,U),u=Math.imul(N,z),u=u+Math.imul(L,U)|0,r=Math.imul(L,z),e=e+Math.imul(F,H)|0,u=u+Math.imul(F,X)|0,u=u+Math.imul(T,H)|0,r=r+Math.imul(T,X)|0,e=e+Math.imul(j,W)|0,u=u+Math.imul(j,G)|0,u=u+Math.imul(D,W)|0,r=r+Math.imul(D,G)|0,e=e+Math.imul(I,Z)|0,u=u+Math.imul(I,J)|0,u=u+Math.imul(C,Z)|0,r=r+Math.imul(C,J)|0,e=e+Math.imul(x,Q)|0,u=u+Math.imul(x,nn)|0,u=u+Math.imul(k,Q)|0,r=r+Math.imul(k,nn)|0,e=e+Math.imul(S,tn)|0,u=u+Math.imul(S,en)|0,u=u+Math.imul(A,tn)|0,r=r+Math.imul(A,en)|0,e=e+Math.imul(w,rn)|0,u=u+Math.imul(w,on)|0,u=u+Math.imul(_,rn)|0,r=r+Math.imul(_,on)|0,e=e+Math.imul(m,sn)|0,u=u+Math.imul(m,fn)|0,u=u+Math.imul(y,sn)|0,r=r+Math.imul(y,fn)|0,e=e+Math.imul(p,hn)|0,u=u+Math.imul(p,dn)|0,u=u+Math.imul(b,hn)|0,r=r+Math.imul(b,dn)|0,e=e+Math.imul(c,bn)|0,u=u+Math.imul(c,vn)|0,u=u+Math.imul(h,bn)|0,r=r+Math.imul(h,vn)|0;var xn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(xn>>>26)|0,xn&=67108863,e=Math.imul(N,H),u=Math.imul(N,X),u=u+Math.imul(L,H)|0,r=Math.imul(L,X),e=e+Math.imul(F,W)|0,u=u+Math.imul(F,G)|0,u=u+Math.imul(T,W)|0,r=r+Math.imul(T,G)|0,e=e+Math.imul(j,Z)|0,u=u+Math.imul(j,J)|0,u=u+Math.imul(D,Z)|0,r=r+Math.imul(D,J)|0,e=e+Math.imul(I,Q)|0,u=u+Math.imul(I,nn)|0,u=u+Math.imul(C,Q)|0,r=r+Math.imul(C,nn)|0,e=e+Math.imul(x,tn)|0,u=u+Math.imul(x,en)|0,u=u+Math.imul(k,tn)|0,r=r+Math.imul(k,en)|0,e=e+Math.imul(S,rn)|0,u=u+Math.imul(S,on)|0,u=u+Math.imul(A,rn)|0,r=r+Math.imul(A,on)|0,e=e+Math.imul(w,sn)|0,u=u+Math.imul(w,fn)|0,u=u+Math.imul(_,sn)|0,r=r+Math.imul(_,fn)|0,e=e+Math.imul(m,hn)|0,u=u+Math.imul(m,dn)|0,u=u+Math.imul(y,hn)|0,r=r+Math.imul(y,dn)|0,e=e+Math.imul(p,bn)|0,u=u+Math.imul(p,vn)|0,u=u+Math.imul(b,bn)|0,r=r+Math.imul(b,vn)|0;var kn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(kn>>>26)|0,kn&=67108863,e=Math.imul(N,W),u=Math.imul(N,G),u=u+Math.imul(L,W)|0,r=Math.imul(L,G),e=e+Math.imul(F,Z)|0,u=u+Math.imul(F,J)|0,u=u+Math.imul(T,Z)|0,r=r+Math.imul(T,J)|0,e=e+Math.imul(j,Q)|0,u=u+Math.imul(j,nn)|0,u=u+Math.imul(D,Q)|0,r=r+Math.imul(D,nn)|0,e=e+Math.imul(I,tn)|0,u=u+Math.imul(I,en)|0,u=u+Math.imul(C,tn)|0,r=r+Math.imul(C,en)|0,e=e+Math.imul(x,rn)|0,u=u+Math.imul(x,on)|0,u=u+Math.imul(k,rn)|0,r=r+Math.imul(k,on)|0,e=e+Math.imul(S,sn)|0,u=u+Math.imul(S,fn)|0,u=u+Math.imul(A,sn)|0,r=r+Math.imul(A,fn)|0,e=e+Math.imul(w,hn)|0,u=u+Math.imul(w,dn)|0,u=u+Math.imul(_,hn)|0,r=r+Math.imul(_,dn)|0,e=e+Math.imul(m,bn)|0,u=u+Math.imul(m,vn)|0,u=u+Math.imul(y,bn)|0,r=r+Math.imul(y,vn)|0;var Bn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,e=Math.imul(N,Z),u=Math.imul(N,J),u=u+Math.imul(L,Z)|0,r=Math.imul(L,J),e=e+Math.imul(F,Q)|0,u=u+Math.imul(F,nn)|0,u=u+Math.imul(T,Q)|0,r=r+Math.imul(T,nn)|0,e=e+Math.imul(j,tn)|0,u=u+Math.imul(j,en)|0,u=u+Math.imul(D,tn)|0,r=r+Math.imul(D,en)|0,e=e+Math.imul(I,rn)|0,u=u+Math.imul(I,on)|0,u=u+Math.imul(C,rn)|0,r=r+Math.imul(C,on)|0,e=e+Math.imul(x,sn)|0,u=u+Math.imul(x,fn)|0,u=u+Math.imul(k,sn)|0,r=r+Math.imul(k,fn)|0,e=e+Math.imul(S,hn)|0,u=u+Math.imul(S,dn)|0,u=u+Math.imul(A,hn)|0,r=r+Math.imul(A,dn)|0,e=e+Math.imul(w,bn)|0,u=u+Math.imul(w,vn)|0,u=u+Math.imul(_,bn)|0,r=r+Math.imul(_,vn)|0;var In=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(In>>>26)|0,In&=67108863,e=Math.imul(N,Q),u=Math.imul(N,nn),u=u+Math.imul(L,Q)|0,r=Math.imul(L,nn),e=e+Math.imul(F,tn)|0,u=u+Math.imul(F,en)|0,u=u+Math.imul(T,tn)|0,r=r+Math.imul(T,en)|0,e=e+Math.imul(j,rn)|0,u=u+Math.imul(j,on)|0,u=u+Math.imul(D,rn)|0,r=r+Math.imul(D,on)|0,e=e+Math.imul(I,sn)|0,u=u+Math.imul(I,fn)|0,u=u+Math.imul(C,sn)|0,r=r+Math.imul(C,fn)|0,e=e+Math.imul(x,hn)|0,u=u+Math.imul(x,dn)|0,u=u+Math.imul(k,hn)|0,r=r+Math.imul(k,dn)|0,e=e+Math.imul(S,bn)|0,u=u+Math.imul(S,vn)|0,u=u+Math.imul(A,bn)|0,r=r+Math.imul(A,vn)|0;var Cn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,e=Math.imul(N,tn),u=Math.imul(N,en),u=u+Math.imul(L,tn)|0,r=Math.imul(L,en),e=e+Math.imul(F,rn)|0,u=u+Math.imul(F,on)|0,u=u+Math.imul(T,rn)|0,r=r+Math.imul(T,on)|0,e=e+Math.imul(j,sn)|0,u=u+Math.imul(j,fn)|0,u=u+Math.imul(D,sn)|0,r=r+Math.imul(D,fn)|0,e=e+Math.imul(I,hn)|0,u=u+Math.imul(I,dn)|0,u=u+Math.imul(C,hn)|0,r=r+Math.imul(C,dn)|0,e=e+Math.imul(x,bn)|0,u=u+Math.imul(x,vn)|0,u=u+Math.imul(k,bn)|0,r=r+Math.imul(k,vn)|0;var Rn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,e=Math.imul(N,rn),u=Math.imul(N,on),u=u+Math.imul(L,rn)|0,r=Math.imul(L,on),e=e+Math.imul(F,sn)|0,u=u+Math.imul(F,fn)|0,u=u+Math.imul(T,sn)|0,r=r+Math.imul(T,fn)|0,e=e+Math.imul(j,hn)|0,u=u+Math.imul(j,dn)|0,u=u+Math.imul(D,hn)|0,r=r+Math.imul(D,dn)|0,e=e+Math.imul(I,bn)|0,u=u+Math.imul(I,vn)|0,u=u+Math.imul(C,bn)|0,r=r+Math.imul(C,vn)|0;var jn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(jn>>>26)|0,jn&=67108863,e=Math.imul(N,sn),u=Math.imul(N,fn),u=u+Math.imul(L,sn)|0,r=Math.imul(L,fn),e=e+Math.imul(F,hn)|0,u=u+Math.imul(F,dn)|0,u=u+Math.imul(T,hn)|0,r=r+Math.imul(T,dn)|0,e=e+Math.imul(j,bn)|0,u=u+Math.imul(j,vn)|0,u=u+Math.imul(D,bn)|0,r=r+Math.imul(D,vn)|0;var Dn=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,e=Math.imul(N,hn),u=Math.imul(N,dn),u=u+Math.imul(L,hn)|0,r=Math.imul(L,dn),e=e+Math.imul(F,bn)|0,u=u+Math.imul(F,vn)|0,u=u+Math.imul(T,bn)|0,r=r+Math.imul(T,vn)|0;var On=(s+e|0)+((8191&u)<<13)|0;s=(r+(u>>>13)|0)+(On>>>26)|0,On&=67108863,e=Math.imul(N,bn),u=Math.imul(N,vn),u=u+Math.imul(L,bn)|0,r=Math.imul(L,vn);var Fn=(s+e|0)+((8191&u)<<13)|0;return s=(r+(u>>>13)|0)+(Fn>>>26)|0,Fn&=67108863,a[0]=mn,a[1]=yn,a[2]=gn,a[3]=wn,a[4]=_n,a[5]=Mn,a[6]=Sn,a[7]=An,a[8]=En,a[9]=xn,a[10]=kn,a[11]=Bn,a[12]=In,a[13]=Cn,a[14]=Rn,a[15]=jn,a[16]=Dn,a[17]=On,a[18]=Fn,0!==s&&(a[19]=s,t.length++),t};Math.imul||(A=s),r.prototype.mulTo=function(n,l){var t=this.length+n.length;return 10===this.length&&10===n.length?A(this,n,l):t<63?s(this,n,l):t<1024?f(this,n,l):c(this,n,l)},h.prototype.makeRBT=function(n){for(var l=new Array(n),t=r.prototype._countBits(n)-1,e=0;e<n;e++)l[e]=this.revBin(e,t,n);return l},h.prototype.revBin=function(n,l,t){if(0===n||n===t-1)return n;for(var e=0,u=0;u<l;u++)e|=(1&n)<<l-u-1,n>>=1;return e},h.prototype.permute=function(n,l,t,e,u,r){for(var i=0;i<r;i++)e[i]=l[n[i]],u[i]=t[n[i]]},h.prototype.transform=function(n,l,t,e,u,r){this.permute(r,n,l,t,e,u);for(var i=1;i<u;i<<=1)for(var o=i<<1,a=Math.cos(2*Math.PI/o),s=Math.sin(2*Math.PI/o),f=0;f<u;f+=o)for(var c=a,h=s,d=0;d<i;d++){var p=t[f+d],b=e[f+d],v=t[f+d+i],m=e[f+d+i],y=c*v-h*m;m=c*m+h*v,v=y,t[f+d]=p+v,e[f+d]=b+m,t[f+d+i]=p-v,e[f+d+i]=b-m,d!==o&&(y=a*c-s*h,h=a*h+s*c,c=y)}},h.prototype.guessLen13b=function(n,l){var t=1|Math.max(l,n),e=1&t,u=0;for(t=t/2|0;t;t>>>=1)u++;return 1<<u+1+e},h.prototype.conjugate=function(n,l,t){if(!(t<=1))for(var e=0;e<t/2;e++){var u=n[e];n[e]=n[t-e-1],n[t-e-1]=u,u=l[e],l[e]=-l[t-e-1],l[t-e-1]=-u}},h.prototype.normalize13b=function(n,l){for(var t=0,e=0;e<l/2;e++){var u=8192*Math.round(n[2*e+1]/l)+Math.round(n[2*e]/l)+t;n[e]=67108863&u,t=u<67108864?0:u/67108864|0}return n},h.prototype.convert13b=function(n,l,t,u){for(var r=0,i=0;i<l;i++)r+=0|n[i],t[2*i]=8191&r,r>>>=13,t[2*i+1]=8191&r,r>>>=13;for(i=2*l;i<u;++i)t[i]=0;e(0===r),e(0==(-8192&r))},h.prototype.stub=function(n){for(var l=new Array(n),t=0;t<n;t++)l[t]=0;return l},h.prototype.mulp=function(n,l,t){var e=2*this.guessLen13b(n.length,l.length),u=this.makeRBT(e),r=this.stub(e),i=new Array(e),o=new Array(e),a=new Array(e),s=new Array(e),f=new Array(e),c=new Array(e),h=t.words;h.length=e,this.convert13b(n.words,n.length,i,e),this.convert13b(l.words,l.length,s,e),this.transform(i,r,o,a,e,u),this.transform(s,r,f,c,e,u);for(var d=0;d<e;d++){var p=o[d]*f[d]-a[d]*c[d];a[d]=o[d]*c[d]+a[d]*f[d],o[d]=p}return this.conjugate(o,a,e),this.transform(o,a,h,r,e,u),this.conjugate(h,r,e),this.normalize13b(h,e),t.negative=n.negative^l.negative,t.length=n.length+l.length,t.strip()},r.prototype.mul=function(n){var l=new r(null);return l.words=new Array(this.length+n.length),this.mulTo(n,l)},r.prototype.mulf=function(n){var l=new r(null);return l.words=new Array(this.length+n.length),c(this,n,l)},r.prototype.imul=function(n){return this.clone().mulTo(n,this)},r.prototype.imuln=function(n){e("number"==typeof n),e(n<67108864);for(var l=0,t=0;t<this.length;t++){var u=(0|this.words[t])*n,r=(67108863&u)+(67108863&l);l>>=26,l+=u/67108864|0,l+=r>>>26,this.words[t]=67108863&r}r