text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(t,e,n){"use strict";t.exports=n(96)},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(49)("wks"),i=n(35),o=n(2).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,e,n){"use strict";var r=n(60),i=n(109),o=Object.prototype.toString;function u(t){return"[object Array]"===o.call(t)}function a(t){return null!==t&&"object"===typeof t}function s(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),u(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:u,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:i,isFormData:function(t){return"undefined"!==typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"===typeof t},isNumber:function(t){return"number"===typeof t},isObject:a,isUndefined:function(t){return"undefined"===typeof t},isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return a(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!==typeof window&&"undefined"!==typeof document},forEach:l,merge:function t(){var e={};function n(n,r){"object"===typeof e[r]&&"object"===typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";(function(t){var r=n(176),i=n(177),o=n(178);function u(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(u()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=s.prototype:(null===t&&(t=new s(e)),t.length=e),t}function s(t,e,n){if(!s.TYPED_ARRAY_SUPPORT&&!(this instanceof s))return new s(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=c(t,e);return t}(t,e,n,r):"string"===typeof e?function(t,e,n){"string"===typeof n&&""!==n||(n="utf8");if(!s.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=a(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(s.isBuffer(e)){var n=0|d(e.length);return 0===(t=a(t,n)).length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||(r=e.length)!==r?a(t,0):c(t,e);if("Buffer"===e.type&&o(e.data))return c(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(h(e),t=a(t,e<0?0:0|d(e)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function c(t,e){var n=e.length<0?0:0|d(e.length);t=a(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|t}function p(t,e){if(s.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return z(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if("number"===typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,i){var o,u=1,a=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;u=2,a/=2,s/=2,n/=2}function l(t,e){return 1===u?t[e]:t.readUInt16BE(e*u)}if(i){var h=-1;for(o=n;o<a;o++)if(l(t,o)===l(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===s)return h*u}else-1!==h&&(o-=o-h),h=-1}else for(n+s>a&&(n=a-s),o=n;o>=0;o--){for(var f=!0,c=0;c<s;c++)if(l(t,o+c)!==l(e,c)){f=!1;break}if(f)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var u=0;u<r;++u){var a=parseInt(e.substr(2*u,2),16);if(isNaN(a))return u;t[n+u]=a}return u}function w(t,e,n,r){return U(z(e,t.length-n),t,n,r)}function M(t,e,n,r){return U(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function b(t,e,n,r){return M(t,e,n,r)}function x(t,e,n,r){return U(q(e),t,n,r)}function _(t,e,n,r){return U(function(t,e){for(var n,r,i,o=[],u=0;u<t.length&&!((e-=2)<0);++u)n=t.charCodeAt(u),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function k(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,u,a,s,l=t[i],h=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(h=l);break;case 2:128===(192&(o=t[i+1]))&&(s=(31&l)<<6|63&o)>127&&(h=s);break;case 3:o=t[i+1],u=t[i+2],128===(192&o)&&128===(192&u)&&(s=(15&l)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:o=t[i+1],u=t[i+2],a=t[i+3],128===(192&o)&&128===(192&u)&&128===(192&a)&&(s=(15&l)<<18|(63&o)<<12|(63&u)<<6|63&a)>65535&&s<1114112&&(h=s)}null===h?(h=65533,f=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),i+=f}return function(t){var e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}e.Buffer=s,e.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},e.INSPECT_MAX_BYTES=50,s.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=u(),s.poolSize=8192,s._augment=function(t){return t.__proto__=s.prototype,t},s.from=function(t,e,n){return l(null,t,e,n)},s.TYPED_ARRAY_SUPPORT&&(s.prototype.__proto__=Uint8Array.prototype,s.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&s[Symbol.species]===s&&Object.defineProperty(s,Symbol.species,{value:null,configurable:!0})),s.alloc=function(t,e,n){return function(t,e,n,r){return h(e),e<=0?a(t,e):void 0!==n?"string"===typeof r?a(t,e).fill(n,r):a(t,e).fill(n):a(t,e)}(null,t,e,n)},s.allocUnsafe=function(t){return f(null,t)},s.allocUnsafeSlow=function(t){return f(null,t)},s.isBuffer=function(t){return!(null==t||!t._isBuffer)},s.compare=function(t,e){if(!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(t){switch(String(t).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}},s.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=s.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var u=t[n];if(!s.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(r,i),i+=u.length}return r},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},s.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},s.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},s.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):function(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},s.prototype.compare=function(t,e,n,r,i){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),u=(n>>>=0)-(e>>>=0),a=Math.min(o,u),l=this.slice(r,i),h=t.slice(e,n),f=0;f<a;++f)if(l[f]!==h[f]){o=l[f],u=h[f];break}return o<u?-1:u<o?1:0},s.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},s.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},s.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return M(this,t,e,n);case"latin1":case"binary":return b(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function P(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=F(t[o]);return i}function C(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function O(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function N(t,e,n,r,i,o){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function B(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,e,n,r,o){return o||B(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function D(t,e,n,r,o){return o||B(t,0,n,8),i.write(t,e,n,r,52,8),n+8}s.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),s.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=s.prototype;else{var i=e-t;n=new s(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},s.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},s.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},s.prototype.readUInt8=function(t,e){return e||O(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||O(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||O(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||O(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||O(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||O(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},s.prototype.readInt8=function(t,e){return e||O(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||O(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){e||O(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return e||O(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||O(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||O(t,4,this.length),i.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||O(t,8,this.length),i.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},s.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||N(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=0,u=1,a=0;for(this[e]=255&t;++o<n&&(u*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/u>>0)-a&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);N(this,t,e,n,i-1,-i)}var o=n-1,u=1,a=0;for(this[e+o]=255&t;--o>=0&&(u*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/u>>0)-a&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,n){return I(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return I(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return D(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return D(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!s.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},s.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var u=s.isBuffer(t)?t:z(new s(t,r).toString()),a=u.length;for(o=0;o<n-e;++o)this[o+e]=u[o%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function F(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],u=0;u<r;++u){if((n=t.charCodeAt(u))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(u+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(L,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function U(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(38))},function(t,e,n){var r=n(2),i=n(1),o=n(22),u=n(13),a=n(14),s=function t(e,n,s){var l,h,f,c=e&t.F,d=e&t.G,p=e&t.S,m=e&t.P,v=e&t.B,g=e&t.W,y=d?i:i[n]||(i[n]={}),w=y.prototype,M=d?r:p?r[n]:(r[n]||{}).prototype;for(l in d&&(s=n),s)(h=!c&&M&&void 0!==M[l])&&a(y,l)||(f=h?M[l]:s[l],y[l]=d&&"function"!=typeof M[l]?s[l]:v&&h?o(f,r):g&&M[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((y.virtual||(y.virtual={}))[l]=f,e&t.R&&w&&!w[l]&&u(w,l,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",function(){return r})},function(t,e,n){var r=n(7),i=n(65),o=n(45),u=Object.defineProperty;e.f=n(8)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return u(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(171);e.default={get:r.get,set:r.set,serialize:r.serialize},t.exports=e.default},function(t,e,n){var r=n(10),i=n(34);t.exports=n(8)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(67),i=n(46);t.exports=function(t){return r(i(t))}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t){return(i="function"===typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}var o=n(21);function u(t,e){return!e||"object"!==i(e)&&"function"!==typeof e?Object(o.a)(t):e}n.d(e,"a",function(){return u})},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}n.d(e,"a",function(){return i})},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",function(){return r})},function(t,e,n){var r=n(33);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(66),i=n(50);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=!0},function(t,e,n){var r=n(46);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(202),i=n(39);t.exports=function(t){if("string"===typeof t||"number"===typeof t){var e=new r(1),n=String(t).toLowerCase().trim(),o="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),u=i(n);if("-"===u.substr(0,1)&&(u=i(u.slice(1)),e=new r(-1,10)),!(u=""===u?"0":u).match(/^-?[0-9]+$/)&&u.match(/^[0-9A-Fa-f]+$/)||u.match(/^[a-fA-F]+$/)||!0===o&&u.match(/^[0-9A-Fa-f]+$/))return new r(u,16).mul(e);if((u.match(/^-?[0-9]+$/)||""===u)&&!1===o)return new r(u,10).mul(e)}else if("object"===typeof t&&t.toString&&!t.pop&&!t.push&&t.toString(10).match(/^-?[0-9]+$/)&&(t.mul||t.dividedToIntegerBy))return new r(t.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(t)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(e,n){!function(r){"use strict";"object"==typeof e&&e.versions&&e.versions.node&&(r=n);for(var i=!r.JS_SHA3_TEST&&"object"==typeof t&&t.exports,o="0123456789abcdef".split(""),u=[0,8,16,24],a=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],s=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],h=function(t,e,n){return function(r){return new w(t,e,t).update(r)[n]()}},f=function(t,e,n){return function(r,i){return new w(t,e,i).update(r)[n]()}},c=function(t,e){var n=h(t,e,"hex");n.create=function(){return new w(t,e,t)},n.update=function(t){return n.create().update(t)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=h(t,e,i)}return n},d=[{name:"keccak",padding:[1,256,65536,16777216],bits:s,createMethod:c},{name:"sha3",padding:[6,1536,393216,100663296],bits:s,createMethod:c},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(t,e){var n=f(t,e,"hex");n.create=function(n){return new w(t,e,n)},n.update=function(t,e){return n.create(e).update(t)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=f(t,e,i)}return n}}],p={},m=0;m<d.length;++m)for(var v=d[m],g=v.bits,y=0;y<g.length;++y)p[v.name+"_"+g[y]]=v.createMethod(g[y],v.padding);function w(t,e,n){this.blocks=[],this.s=[],this.padding=e,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}w.prototype.update=function(t){var e="string"!=typeof t;e&&t.constructor==r.ArrayBuffer&&(t=new Uint8Array(t));for(var n,i,o=t.length,a=this.blocks,s=this.byteCount,l=this.blockCount,h=0,f=this.s;h<o;){if(this.reset)for(this.reset=!1,a[0]=this.block,n=1;n<l+1;++n)a[n]=0;if(e)for(n=this.start;h<o&&n<s;++h)a[n>>2]|=t[h]<<u[3&n++];else for(n=this.start;h<o&&n<s;++h)(i=t.charCodeAt(h))<128?a[n>>2]|=i<<u[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<u[3&n++],a[n>>2]|=(128|63&i)<<u[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<u[3&n++],a[n>>2]|=(128|i>>6&63)<<u[3&n++],a[n>>2]|=(128|63&i)<<u[3&n++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++h)),a[n>>2]|=(240|i>>18)<<u[3&n++],a[n>>2]|=(128|i>>12&63)<<u[3&n++],a[n>>2]|=(128|i>>6&63)<<u[3&n++],a[n>>2]|=(128|63&i)<<u[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=a[l],n=0;n<l;++n)f[n]^=a[n];M(f),this.reset=!0}else this.start=n}return this},w.prototype.finalize=function(){var t=this.blocks,e=this.lastByteIndex,n=this.blockCount,r=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex==this.byteCount)for(t[0]=t[n],e=1;e<n+1;++e)t[e]=0;for(t[n-1]|=2147483648,e=0;e<n;++e)r[e]^=t[e];M(r)},w.prototype.toString=w.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,u=0,a=0,s="";a<r;){for(u=0;u<e&&a<r;++u,++a)t=n[u],s+=o[t>>4&15]+o[15&t]+o[t>>12&15]+o[t>>8&15]+o[t>>20&15]+o[t>>16&15]+o[t>>28&15]+o[t>>24&15];a%e==0&&(M(n),u=0)}return i&&(t=n[u],i>0&&(s+=o[t>>4&15]+o[15&t]),i>1&&(s+=o[t>>12&15]+o[t>>8&15]),i>2&&(s+=o[t>>20&15]+o[t>>16&15])),s},w.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,u=0,a=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(a);for(var s=new Uint32Array(t);u<r;){for(o=0;o<e&&u<r;++o,++u)s[u]=n[o];u%e==0&&M(n)}return i&&(s[o]=n[o],t=t.slice(0,a)),t},w.prototype.buffer=w.prototype.arrayBuffer,w.prototype.digest=w.prototype.array=function(){this.finalize();for(var t,e,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,u=0,a=0,s=[];a<i;){for(u=0;u<n&&a<i;++u,++a)t=a<<2,e=r[u],s[t]=255&e,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255;a%n==0&&M(r)}return o&&(t=a<<2,e=r[u],o>0&&(s[t]=255&e),o>1&&(s[t+1]=e>>8&255),o>2&&(s[t+2]=e>>16&255)),s};var M=function(t){var e,n,r,i,o,u,s,l,h,f,c,d,p,m,v,g,y,w,M,b,x,_,k,S,E,T,A,P,C,O,N,R,j,B,I,D,L,F,z,q,U,Q,Z,H,V,K,W,$,Y,J,G,X,tt,et,nt,rt,it,ot,ut,at,st,lt,ht;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],u=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],l=t[4]^t[14]^t[24]^t[34]^t[44],h=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],e=(d=t[8]^t[18]^t[28]^t[38]^t[48])^(u<<1|s>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|u>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(l<<1|h>>>31),n=o^(h<<1|l>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=u^(f<<1|c>>>31),n=s^(c<<1|f>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=l^(d<<1|p>>>31),n=h^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=f^(i<<1|o>>>31),n=c^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],v=t[1],K=t[11]<<4|t[10]>>>28,W=t[10]<<4|t[11]>>>28,P=t[20]<<3|t[21]>>>29,C=t[21]<<3|t[20]>>>29,at=t[31]<<9|t[30]>>>23,st=t[30]<<9|t[31]>>>23,Q=t[40]<<18|t[41]>>>14,Z=t[41]<<18|t[40]>>>14,B=t[2]<<1|t[3]>>>31,I=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,$=t[22]<<10|t[23]>>>22,Y=t[23]<<10|t[22]>>>22,O=t[33]<<13|t[32]>>>19,N=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ht=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,L=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,M=t[24]<<11|t[25]>>>21,J=t[34]<<15|t[35]>>>17,G=t[35]<<15|t[34]>>>17,R=t[45]<<29|t[44]>>>3,j=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,b=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,V=t[9]<<27|t[8]>>>5,T=t[18]<<20|t[19]>>>12,A=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,ut=t[28]<<7|t[29]>>>25,q=t[38]<<8|t[39]>>>24,U=t[39]<<8|t[38]>>>24,_=t[48]<<14|t[49]>>>18,k=t[49]<<14|t[48]>>>18,t[0]=m^~g&w,t[1]=v^~y&M,t[10]=S^~T&P,t[11]=E^~A&C,t[20]=B^~D&F,t[21]=I^~L&z,t[30]=H^~K&$,t[31]=V^~W&Y,t[40]=et^~rt&ot,t[41]=nt^~it&ut,t[2]=g^~w&b,t[3]=y^~M&x,t[12]=T^~P&O,t[13]=A^~C&N,t[22]=D^~F&q,t[23]=L^~z&U,t[32]=K^~$&J,t[33]=W^~Y&G,t[42]=rt^~ot&at,t[43]=it^~ut&st,t[4]=w^~b&_,t[5]=M^~x&k,t[14]=P^~O&R,t[15]=C^~N&j,t[24]=F^~q&Q,t[25]=z^~U&Z,t[34]=$^~J&X,t[35]=Y^~G&tt,t[44]=ot^~at&lt,t[45]=ut^~st&ht,t[6]=b^~_&m,t[7]=x^~k&v,t[16]=O^~R&S,t[17]=N^~j&E,t[26]=q^~Q&B,t[27]=U^~Z&I,t[36]=J^~X&H,t[37]=G^~tt&V,t[46]=at^~lt&et,t[47]=st^~ht&nt,t[8]=_^~m&g,t[9]=k^~v&y,t[18]=R^~S&T,t[19]=j^~E&A,t[28]=Q^~B&D,t[29]=Z^~I&L,t[38]=X^~H&K,t[39]=tt^~V&W,t[48]=lt^~et&rt,t[49]=ht^~nt&it,t[0]^=a[r],t[1]^=a[r+1]};if(i)t.exports=p;else if(r)for(var b in p)r[b]=p[b]}(this)}).call(this,n(43),n(38))},function(t,e,n){"use strict";(function(e){var r=n(179),i=n(208),o=n(209),u=n(213),a=n(215),s=n(218),l=n(30).keccak_256,h=n(28),f=n(220),c=n(59),d=n(221);function p(t,e){if(!(this instanceof p))throw new Error('[vapjs] the Vap object requires you construct it with the "new" flag (i.e. `const vap = new Vap(...);`).');var n=this;n.options=e||{};var u=new r(t,n.options.query);Object.keys(Object.getPrototypeOf(u)).forEach(function(t){n[t]=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return u[t].apply(u,n)}}),n.filter=new i(u,n.options.query),n.contract=new o(u,n.options.query),n.currentProvider=u.rpc.currentProvider,n.setProvider=u.setProvider,n.getTransactionSuccess=d(n)}t.exports=p,p.BN=f,p.isAddress=function(t){return c.isHexString(t,20)},p.keccak256=function(t){return"0x"+l(t)},p.Buffer=e,p.isHexString=c.isHexString,p.fromWei=s.fromWei,p.toWei=s.toWei,p.toBN=h,p.abi=a,p.fromAscii=c.fromAscii,p.toAscii=c.toAscii,p.fromUtf8=c.fromUtf8,p.toUtf8=c.toUtf8,p.HttpProvider=u}).call(this,n(5).Buffer)},function(t,e,n){t.exports={default:n(127),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(10).f,i=n(14),o=n(3)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(57);t.exports=function(t){return"string"!==typeof t?t:r(t)?t.slice(2):t}},function(t,e,n){t.exports=n(108)},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,u,a=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))i.call(n,l)&&(a[l]=n[l]);if(r){u=r(n);for(var h=0;h<u.length;h++)o.call(n,u[h])&&(a[u[h]]=n[u[h]])}}return a}},function(t,e,n){"use strict";(function(e){var r=n(4),i=n(111),o={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var a,s={adapter:("undefined"!==typeof XMLHttpRequest?a=n(61):"undefined"!==typeof e&&(a=n(61)),a),transformRequest:[function(t,e){return i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(u(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(t){s.headers[t]={}}),r.forEach(["post","put","patch"],function(t){s.headers[t]=r.merge(o)}),t.exports=s}).call(this,n(43))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:u}catch(t){r=u}}();var s,l=[],h=!1,f=-1;function c(){h&&s&&(h=!1,s.length?l=s.concat(l):f=-1,l.length&&d())}function d(){if(!h){var t=a(c);h=!0;for(var e=l.length;e;){for(s=l,l=[];++f<e;)s&&s[f].run();f=-1,e=l.length}s=null,h=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||h||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=n(11),i=n(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(49)("keys"),i=n(35);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(1),i=n(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(25)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(7),i=n(144),o=n(50),u=n(48)("IE_PROTO"),a=function(){},s=function(){var t,e=n(44)("iframe"),r=o.length;for(e.style.display="none",n(76).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[o[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n=s(),void 0===e?n:i(n,e)}},function(t,e,n){e.f=n(3)},function(t,e,n){var r=n(2),i=n(1),o=n(25),u=n(53),a=n(10).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e,n){t.exports={default:n(169),__esModule:!0}},function(t,e,n){"use strict";var r=n(33);function i(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}t.exports.f=function(t){return new i(t)}},function(t,e){t.exports=function(t){if("string"!==typeof t)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},function(t,e,n){"use strict";var r=n(204),i=n(205);t.exports=function(t){if(!r(t.then))throw new TypeError("Expected a promise");return function(e){t.then(function(t){i(e,null,t)},function(t){i(e,t)})}}},function(t,e,n){"use strict";(function(e){var r=n(57),i=n(39);function o(t){var e=t;if("string"!==typeof e)throw new Error("[vapjs-util] while padding to even, value must be string, is currently "+typeof e+", while padToEven.");return e.length%2&&(e="0"+e),e}function u(t){return"0x"+o(t.toString(16))}t.exports={arrayContainsArray:function(t,e,n){if(!0!==Array.isArray(t))throw new Error("[vapjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof t+"'");if(!0!==Array.isArray(e))throw new Error("[vapjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof e+"'");return e[Boolean(n)?"some":"every"](function(e){return t.indexOf(e)>=0})},intToBuffer:function(t){var n=u(t);return e.from(n.slice(2),"hex")},getBinarySize:function(t){if("string"!==typeof t)throw new Error("[vapjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof t+"'.");return e.byteLength(t,"utf8")},isHexPrefixed:r,stripHexPrefix:i,padToEven:o,intToHex:u,fromAscii:function(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n).toString(16);e+=r.length<2?"0"+r:r}return"0x"+e},fromUtf8:function(t){return"0x"+o(new e(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(t){var e="",n=0,r=t.length;for("0x"===t.substring(0,2)&&(n=2);n<r;n+=2){var i=parseInt(t.substr(n,2),16);e+=String.fromCharCode(i)}return e},toUtf8:function(t){return new e(o(i(t).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(t,e,n){if(!Array.isArray(t))throw new Error("[vapjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof t+"'");if("string"!==typeof e)throw new Error("[vapjs-util] method getKeys expecting type String for input 'key' got '"+typeof e+"'.");for(var r=[],i=0;i<t.length;i++){var o=t[i][e];if(n&&!o)o="";else if("string"!==typeof o)throw new Error("invalid abi");r.push(o)}return r},isHexString:function(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}}}).call(this,n(5).Buffer)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(4),i=n(112),o=n(114),u=n(115),a=n(116),s=n(62),l="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||n(117);t.exports=function(t){return new Promise(function(e,h){var f=t.data,c=t.headers;r.isFormData(f)&&delete c["Content-Type"];var d=new XMLHttpRequest,p="onreadystatechange",m=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in d||a(t.url)||(d=new window.XDomainRequest,p="onload",m=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var v=t.auth.username||"",g=t.auth.password||"";c.Authorization="Basic "+l(v+":"+g)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[p]=function(){if(d&&(4===d.readyState||m)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:t,request:d};i(e,h,r),d=null}},d.onerror=function(){h(s("Network Error",t,null,d)),d=null},d.ontimeout=function(){h(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var y=n(118),w=(t.withCredentials||a(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;w&&(c[t.xsrfHeaderName]=w)}if("setRequestHeader"in d&&r.forEach(c,function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete c[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(M){if("json"!==t.responseType)throw M}"function"===typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),h(t),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(t,e,n){"use strict";var r=n(113);t.exports=function(t,e,n,i,o){var u=new Error(t);return r(u,e,n,i,o)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){t.exports=!n(8)&&!n(15)(function(){return 7!=Object.defineProperty(n(44)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(14),i=n(16),o=n(130)(!1),u=n(48)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),s=0,l=[];for(n in a)n!=u&&r(a,n)&&l.push(n);for(;e.length>s;)r(a,n=e[s++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(47),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(14),i=n(26),o=n(48)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(6),i=n(1),o=n(15);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",u)}},function(t,e,n){t.exports={default:n(137),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(140)),i=u(n(148)),o="function"===typeof i.default&&"symbol"===typeof r.default?function(t){return typeof t}:function(t){return t&&"function"===typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof i.default&&"symbol"===o(r.default)?function(t){return"undefined"===typeof t?"undefined":o(t)}:function(t){return t&&"function"===typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":"undefined"===typeof t?"undefined":o(t)}},function(t,e,n){"use strict";var r=n(142)(!0);n(74)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var r=n(25),i=n(6),o=n(75),u=n(13),a=n(27),s=n(143),l=n(37),h=n(69),f=n(3)("iterator"),c=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,m,v,g){s(n,e,p);var y,w,M,b=function(t){if(!c&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",_="values"==m,k=!1,S=t.prototype,E=S[f]||S["@@iterator"]||m&&S[m],T=E||b(m),A=m?_?b("entries"):T:void 0,P="Array"==e&&S.entries||E;if(P&&(M=h(P.call(new t)))!==Object.prototype&&M.next&&(l(M,x,!0),r||"function"==typeof M[f]||u(M,f,d)),_&&E&&"values"!==E.name&&(k=!0,T=function(){return E.call(this)}),r&&!g||!c&&!k&&S[f]||u(S,f,T),a[e]=T,a[x]=d,m)if(y={values:_?T:b("values"),keys:v?T:b("keys"),entries:A},g)for(w in y)w in S||o(S,w,y[w]);else i(i.P+i.F*(c||k),e,y);return y}},function(t,e,n){t.exports=n(13)},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){n(145);for(var r=n(2),i=n(13),o=n(27),u=n(3)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<a.length;s++){var l=a[s],h=r[l],f=h&&h.prototype;f&&!f[u]&&i(f,u,l),o[l]=o.Array}},function(t,e,n){var r=n(66),i=n(50).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(36),i=n(34),o=n(16),u=n(45),a=n(14),s=n(65),l=Object.getOwnPropertyDescriptor;e.f=n(8)?l:function(t,e){if(t=o(t),e=u(e,!0),s)try{return l(t,e)}catch(n){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){t.exports=n(180)},function(t,e,n){t.exports={default:n(182),__esModule:!0}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(183),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){return function r(i,u){try{var a=e[i](u),s=a.value}catch(l){return void n(l)}if(!a.done)return o.default.resolve(s).then(function(t){r("next",t)},function(t){r("throw",t)});t(s)}("next")})}}},function(t,e,n){var r=n(24),i=n(3)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(n){}}(e=Object(t),i))?n:o?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(7),i=n(33),o=n(3)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[o])?e:i(n)}},function(t,e,n){var r,i,o,u=n(22),a=n(191),s=n(76),l=n(44),h=n(2),f=h.process,c=h.setImmediate,d=h.clearImmediate,p=h.MessageChannel,m=h.Dispatch,v=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},w=function(t){y.call(t.data)};c&&d||(c=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){a("function"==typeof t?t:Function(t),e)},r(v),v},d=function(t){delete g[t]},"process"==n(24)(f)?r=function(t){f.nextTick(u(y,t,1))}:m&&m.now?r=function(t){m.now(u(y,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=w,r=u(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(r=function(t){h.postMessage(t+"","*")},h.addEventListener("message",w,!1)):r="onreadystatechange"in l("script")?function(t){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(u(y,t,1),0)}),t.exports={set:c,clear:d}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},function(t,e,n){var r=n(7),i=n(11),o=n(56);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";(function(e){var r=n(210),i=r.uint256Coder,o=(r.coderBoolean,r.coderFixedBytes,r.coderAddress,r.coderDynamicBytes,r.coderString,r.coderArray,r.paramTypePart,r.getParamCoder);function u(){}function a(t,n){if(t.length!==n.length)throw new Error("[vapjs-abi] while encoding params, types/values mismatch, Your contract requires "+t.length+" types (arguments), and you passed in "+n.length);var r=[];function u(t){return parseInt(32*Math.ceil(t/32))}t.forEach(function(t,e){var i=o(t);r.push({dynamic:i.dynamic,value:i.encode(n[e])})});var a=0,s=0;r.forEach(function(t){t.dynamic?(a+=32,s+=u(t.value.length)):a+=u(t.value.length)});var l=0,h=a,f=new e(a+s);return r.forEach(function(t,e){t.dynamic?(i.encode(h).copy(f,l),l+=32,t.value.copy(f,h),h+=u(t.value.length)):(t.value.copy(f,l),l+=u(t.value.length))}),"0x"+f.toString("hex")}function s(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(n=e,e=t,t=[]),n=r.hexOrBuffer(n);var s=new u,l=0;return e.forEach(function(e,r){var u=o(e);if(u.dynamic){var h=i.decode(n,l),f=u.decode(n,h.value.toNumber());l+=h.consumed}else{f=u.decode(n,l);l+=f.consumed}a&&(s[r]=f.value),t[r]&&(s[t[r]]=f.value)}),s}function l(t,n){var i=t.name+"("+r.getKeys(t.inputs,"type").join(",")+")";return""+("0x"+new e(r.keccak256(i),"hex").slice(0,4).toString("hex"))+a(r.getKeys(t.inputs,"type"),n).substring(2)}function h(t){var e=t.name+"("+r.getKeys(t.inputs,"type").join(",")+")";return"0x"+r.keccak256(e)}function f(t,n,i){var u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=t.inputs.filter(function(t){return!t.indexed}),l=s(r.getKeys(a,"name",!0),r.getKeys(a,"type"),r.hexOrBuffer(n),u),h=t.anonymous?0:1;return t.inputs.filter(function(t){return t.indexed}).map(function(t,n){var r=new e(i[n+h].slice(2),"hex"),u=o(t.type);l[t.name]=u.decode(r,0).value}),l._eventName=t.name,l}function c(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e.topics[0]===h(t))return f(t,e.data,e.topics,n)}t.exports={encodeParams:a,decodeParams:s,encodeMethod:l,decodeMethod:function(t,e){return s(r.getKeys(t.outputs,"name",!0),r.getKeys(t.outputs,"type"),r.hexOrBuffer(e))},encodeEvent:function(t,e){return l(t,e)},decodeEvent:f,decodeLogItem:c,logDecoder:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t.filter(function(t){return"event"===t.type}).map(function(t){n[h(t)]=t}),function(t){return t.map(function(t){return c(n[t.topics[0]],t,e)}).filter(function(t){return t})}},eventSignature:h}}).call(this,n(5).Buffer)},function(t,e,n){"use strict";function r(t,e){function n(t){var n=this;n.filterId=null,n.options=Object.assign({delay:300,decoder:function(t){return t},defaultFilterObject:{}},t||{}),n.watchers={},n.interval=setInterval(function(){null!==n.filterId&&Object.keys(n.watchers).length>0&&e.getFilterChanges(n.filterId,function(t,e){var r=[],i=null;if(!t)try{e.forEach(function(t,i){r[i]=e[i],"object"===typeof e[i]&&(r[i].data=n.options.decoder(r[i].data))})}catch(o){i=new Error("[vapjs-filter] while decoding filter change event data from RPC '"+JSON.stringify(r)+"': "+o)}Object.keys(n.watchers).forEach(function(o){var u=n.watchers[o];!0!==u.stop?i?u.callback(i,null):t?u.callback(t,null):Array.isArray(r)&&e.length>0&&u.callback(t,r):delete n.watchers[o]})})},n.options.delay)}return n.prototype.at=function(t){this.filterId=t},n.prototype.watch=function(t){var e=t||function(){},n=this,r=Math.random().toString(36).substring(7);return n.watchers[r]={callback:e,stop:!1,stopWatching:function(){n.watchers[r].stop=!0}},n.watchers[r]},n.prototype.uninstall=function(t){var n=this,r=t||null;n.watchers=Object.assign({}),clearInterval(n.interval);var i=new Promise(function(t,r){e.uninstallFilter(n.filterId,function(e,n){e?r(e):t(n)})});return r&&i.then(function(t){return r(null,t)}).catch(function(t){return r(t,null)}),r?null:i},n.prototype.new=function(){var n=null,r=this,i=[],o=[].slice.call(arguments);"function"===typeof o[o.length-1]&&(n=o.pop()),"Filter"===t&&i.push(Object.assign(r.options.defaultFilterObject,o[o.length-1]||{}));var u=new Promise(function(n,o){i.push(function(t,e){t?o(t):(r.filterId=e,n(e))}),e["new"+t].apply(e,i)});return n&&u.then(function(t){return n(null,t)}).catch(function(t){return n(t,null)}),n?null:u},n}t.exports=function t(e){if(!(this instanceof t))throw new Error("the VapFilter object must be instantiated with `new` flag.. (e.g. `const filters = new VapFilter(query);`)");if("object"!==typeof e)throw new Error("the VapFilter object must be instantiated with an VapQuery instance (e.g. `const filters = new VapFilter(new VapQuery(provider));`). See github.com/vapjs/vapjs-query for more details..");this.Filter=r("Filter",e),this.BlockFilter=r("BlockFilter",e),this.PendingTransactionFilter=r("PendingTransactionFilter",e)}},function(t,e,n){"use strict";var r,i=n(55),o=(r=i)&&r.__esModule?r:{default:r};var u=["from","to","data","value","gasPrice","gas"];t.exports=function(t){if(!Array.isArray(t)||0===t.length)return!1;var e=t[t.length-1];if(!e)return!1;if("object"!==typeof e)return!1;if(0===(0,o.default)(e).length)return!0;var n=(0,o.default)(e);if(u.some(function(t){return n.includes(t)}))return!0;return!1}},function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}(),t.exports=n(97)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=c(n(126)),i=c(n(132)),o=c(n(135)),u=c(n(136)),a=c(n(139)),s=c(n(157)),l=c(n(165)),h=c(n(0)),f=n(168);function c(t){return t&&t.__esModule?t:{default:t}}var d={thousandSeparator:l.default.oneOfType([l.default.string,l.default.oneOf([!0])]),decimalSeparator:l.default.string,decimalScale:l.default.number,fixedDecimalScale:l.default.bool,displayType:l.default.oneOf(["input","text"]),prefix:l.default.string,suffix:l.default.string,format:l.default.oneOfType([l.default.string,l.default.func]),removeFormatting:l.default.func,mask:l.default.oneOfType([l.default.string,l.default.arrayOf(l.default.string)]),value:l.default.oneOfType([l.default.number,l.default.string]),isNumericString:l.default.bool,customInput:l.default.func,allowNegative:l.default.bool,allowEmptyFormatting:l.default.bool,onValueChange:l.default.func,onKeyDown:l.default.func,onMouseUp:l.default.func,onChange:l.default.func,onFocus:l.default.func,onBlur:l.default.func,type:l.default.oneOf(["text","tel"]),isAllowed:l.default.func,renderText:l.default.func,getInputRef:l.default.func},p={displayType:"input",decimalSeparator:".",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,isNumericString:!1,type:"text",onValueChange:f.noop,onChange:f.noop,onKeyDown:f.noop,onMouseUp:f.noop,onFocus:f.noop,onBlur:f.noop,isAllowed:f.returnTrue,getInputRef:f.noop},m=function(t){function e(t){(0,o.default)(this,e);var n=(0,a.default)(this,(e.__proto__||(0,i.default)(e)).call(this,t));n.validateProps();var r=n.formatValueProp();return n.state={value:r,numAsString:n.removeFormatting(r)},n.selectionBeforeInput={selectionStart:0,selectionEnd:0},n.onChange=n.onChange.bind(n),n.onKeyDown=n.onKeyDown.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.onFocus=n.onFocus.bind(n),n.onBlur=n.onBlur.bind(n),n}return(0,s.default)(e,t),(0,u.default)(e,[{key:"componentDidUpdate",value:function(t){this.updateValueIfRequired(t)}},{key:"updateValueIfRequired",value:function(t){var e=this.props,n=this.state;if(t!==e){this.validateProps();var r=n.value,i=n.numAsString||"",o=this.formatNumString(i),u=void 0===e.value?o:this.formatValueProp(),a=this.removeFormatting(u),s=parseFloat(a),l=parseFloat(i);(isNaN(s)&&isNaN(l)||s===l)&&o===r||this.setState({value:u,numAsString:a})}}},{key:"getFloatString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.props.decimalScale,n=this.getSeparators().decimalSeparator,r=this.getNumberRegex(!0),i="-"===t[0];i&&(t=t.replace("-","")),n&&0===e&&(t=t.split(n)[0]);var o=(t=(t.match(r)||[]).join("").replace(n,".")).indexOf(".");return-1!==o&&(t=t.substring(0,o)+"."+t.substring(o+1,t.length).replace(new RegExp((0,f.escapeRegExp)(n),"g"),"")),i&&(t="-"+t),t}},{key:"getNumberRegex",value:function(t,e){var n=this.props,r=n.format,i=n.decimalScale,o=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!o||0===i||e||r?"":"|"+(0,f.escapeRegExp)(o)),t?"g":void 0)}},{key:"getSeparators",value:function(){var t=this.props.decimalSeparator,e=this.props.thousandSeparator;return!0===e&&(e=","),{decimalSeparator:t,thousandSeparator:e}}},{key:"getMaskAtIndex",value:function(t){var e=this.props.mask,n=void 0===e?" ":e;return"string"===typeof n?n:n[t]||" "}},{key:"getValueObject",value:function(t,e){var n=parseFloat(e);return{formattedValue:t,value:e,floatValue:isNaN(n)?void 0:n}}},{key:"validateProps",value:function(){var t=this.props.mask,e=this.getSeparators(),n=e.decimalSeparator,r=e.thousandSeparator;if(n===r)throw new Error("\n          Decimal separator can't be same as thousand separator.\n\n          thousandSeparator: "+r+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n          decimalSeparator: '+n+" (default value for decimalSeparator is .)\n       ");if(t&&("string"===t?t:t.toString()).match(/\d/g))throw new Error("\n          Mask "+t+" should not contain numeric character;\n        ")}},{key:"setPatchedCaretPosition",value:function(t,e,n){(0,f.setCaretPosition)(t,e),setTimeout(function(){t.value===n&&(0,f.setCaretPosition)(t,e)},0)}},{key:"correctCaretPosition",value:function(t,e,n){var r=this.props,i=r.prefix,o=r.suffix,u=r.format;if(""===t)return 0;if(e=(0,f.clamp)(e,0,t.length),!u){var a="-"===t[0];return(0,f.clamp)(e,i.length+(a?1:0),t.length-o.length)}if("function"===typeof u)return e;if("#"===u[e]&&(0,f.charIsNumber)(t[e]))return e;if("#"===u[e-1]&&(0,f.charIsNumber)(t[e-1]))return e;var s=u.indexOf("#"),l=u.lastIndexOf("#");e=(0,f.clamp)(e,s,l+1);for(var h=u.substring(e,u.length).indexOf("#"),c=e,d=e+(-1===h?0:h);c>s&&("#"!==u[c]||!(0,f.charIsNumber)(t[c]));)c-=1;return!(0,f.charIsNumber)(t[d])||"left"===n&&e!==s||e-c<d-e?(0,f.charIsNumber)(t[c])?c+1:c:d}},{key:"getCaretPosition",value:function(t,e,n){var r=this.props.format,i=this.state.value,o=this.getNumberRegex(!0),u=(t.match(o)||[]).join(""),a=(e.match(o)||[]).join(""),s=void 0,l=void 0;for(s=0,l=0;l<n;l++){var h=t[l]||"",f=e[s]||"";if((h.match(o)||h===f)&&("0"!==h||!f.match(o)||"0"===f||u.length===a.length)){for(;h!==e[s]&&s<e.length;)s++;s++}}return"string"!==typeof r||i||(s=e.length),s=this.correctCaretPosition(e,s)}},{key:"removePrefixAndSuffix",value:function(t){var e=this.props,n=e.format,r=e.prefix,i=e.suffix;if(!n&&t){var o="-"===t[0];o&&(t=t.substring(1,t.length));var u=(t=r&&0===t.indexOf(r)?t.substring(r.length,t.length):t).lastIndexOf(i);t=i&&-1!==u&&u===t.length-i.length?t.substring(0,u):t,o&&(t="-"+t)}return t}},{key:"removePatternFormatting",value:function(t){for(var e=this.props.format.split("#").filter(function(t){return""!==t}),n=0,r="",i=0,o=e.length;i<=o;i++){var u=e[i]||"",a=i===o?t.length:t.indexOf(u,n);if(-1===a){r=t;break}r+=t.substring(n,a),n=a+u.length}return(r.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(t){var e=this.props,n=e.format,r=e.removeFormatting;return t?(n?t="string"===typeof n?this.removePatternFormatting(t):"function"===typeof r?r(t):(t.match(/\d/g)||[]).join(""):(t=this.removePrefixAndSuffix(t),t=this.getFloatString(t)),t):t}},{key:"formatWithPattern",value:function(t){for(var e=this.props.format,n=0,r=e.split(""),i=0,o=e.length;i<o;i++)"#"===e[i]&&(r[i]=t[n]||this.getMaskAtIndex(n),n+=1);return r.join("")}},{key:"formatAsNumber",value:function(t){var e=this.props,n=e.decimalScale,r=e.fixedDecimalScale,i=e.prefix,o=e.suffix,u=e.allowNegative,a=this.getSeparators(),s=a.thousandSeparator,l=a.decimalSeparator,h=-1!==t.indexOf(".")||n&&r,c=(0,f.splitDecimal)(t,u),d=c.beforeDecimal,p=c.afterDecimal,m=c.addNegation;return void 0!==n&&(p=(0,f.limitToScale)(p,n,r)),s&&(d=d.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+s)),i&&(d=i+d),o&&(p+=o),m&&(d="-"+d),t=d+(h&&l||"")+p}},{key:"formatNumString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.props,n=e.format,r=e.allowEmptyFormatting,i=t;return""!==t||r?"-"!==t||n?i="string"===typeof n?this.formatWithPattern(i):"function"===typeof n?n(i):this.formatAsNumber(i):(i="-",t=""):i="",i}},{key:"formatValueProp",value:function(){var t=this.props,e=t.format,n=t.decimalScale,r=t.fixedDecimalScale,i=t.allowEmptyFormatting,o=this.props,u=o.value,a=o.isNumericString,s=!u&&0!==u;return s&&i&&(u=""),s&&!i?"":("number"===typeof u&&(u=u.toString(),a=!0),a&&!e&&"number"===typeof n&&(u=(0,f.roundToPrecision)(u,n,r)),a?this.formatNumString(u):this.formatInput(u))}},{key:"formatNegation",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.props.allowNegative,n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),i=n.test(t),o=r.test(t);return t=t.replace(/-/g,""),i&&!o&&e&&(t="-"+t),t}},{key:"formatInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.props.format||(t=this.formatNegation(t)),t=this.removeFormatting(t),this.formatNumString(t)}},{key:"isCharacterAFormat",value:function(t,e){var n=this.props,r=n.format,i=n.prefix,o=n.suffix,u=n.decimalScale,a=n.fixedDecimalScale,s=this.getSeparators().decimalSeparator;return"string"===typeof r&&"#"!==r[t]||!(r||!(t<i.length||t>=e.length-o.length||u&&a&&e[t]===s))}},{key:"checkIfFormatGotDeleted",value:function(t,e,n){for(var r=t;r<e;r++)if(this.isCharacterAFormat(r,n))return!0;return!1}},{key:"correctInputValue",value:function(t,e,n){var r=this.props,i=r.format,o=r.decimalSeparator,u=r.allowNegative,a=this.state.numAsString||"",s=this.selectionBeforeInput,l=s.selectionStart,h=s.selectionEnd,c=(0,f.findChangedIndex)(e,n),d=c.start,p=c.end;if(n.length>e.length||!n.length||d===p||0===d&&p===e.length||0===l&&h===e.length)return n;if(this.checkIfFormatGotDeleted(d,p,e)&&(n=e),!i){var m=this.removeFormatting(n),v=(0,f.splitDecimal)(m,u),g=v.beforeDecimal,y=v.afterDecimal,w=v.addNegation,M=t<n.indexOf(o)+1;if(m.length<a.length&&M&&""===g&&!parseFloat(y))return w?"-":""}return n}},{key:"onChange",value:function(t){t.persist();var e=t.target,n=e.value,r=this.state,i=this.props,o=i.isAllowed,u=r.value||"",a=Math.max(e.selectionStart,e.selectionEnd);n=this.correctInputValue(a,u,n);var s=this.formatInput(n)||"",l=this.removeFormatting(s),h=this.getValueObject(s,l);o(h)||(s=u),e.value=s;var f=this.getCaretPosition(n,s,a);this.setPatchedCaretPosition(e,f,s),s!==u?this.setState({value:s,numAsString:l},function(){i.onValueChange(h,t),i.onChange(t)}):i.onChange(t)}},{key:"onBlur",value:function(t){var e=this,n=this.props,r=this.state,i=n.format,o=n.onBlur,u=r.numAsString,a=r.value;if(!i){u=(0,f.fixLeadingZero)(u);var s=this.formatNumString(u);if(s!==a)return t.persist(),void this.setState({value:s,numAsString:u},function(){var r=e.getValueObject(s,u);n.onValueChange(r,t),o(t)})}o(t)}},{key:"onKeyDown",value:function(t){var e=this,n=t.target,r=t.key,i=n.selectionStart,o=n.selectionEnd,u=n.value,a=void 0===u?"":u,s=void 0,l=this.props,h=l.decimalScale,f=l.fixedDecimalScale,c=l.prefix,d=l.suffix,p=l.format,m=l.onKeyDown,v=l.onValueChange,g=void 0!==h&&f,y=this.getNumberRegex(!1,g),w=new RegExp("-"),M="string"===typeof p;if(this.selectionBeforeInput={selectionStart:i,selectionEnd:o},"ArrowLeft"===r||"Backspace"===r?s=i-1:"ArrowRight"===r?s=i+1:"Delete"===r&&(s=i),void 0!==s&&i===o){var b=s,x=M?p.indexOf("#"):c.length,_=M?p.lastIndexOf("#")+1:a.length-d.length;if("ArrowLeft"===r||"ArrowRight"===r){var k="ArrowLeft"===r?"left":"right";b=this.correctCaretPosition(a,s,k)}else if("Delete"!==r||y.test(a[s])||w.test(a[s])){if("Backspace"===r&&!y.test(a[s]))if(i<=x+1&&"-"===a[0]&&"undefined"===typeof p){var S=a.substring(1),E=this.removeFormatting(S),T=this.getValueObject(S,E);t.persist(),this.setState({value:S,numAsString:E},function(){e.setPatchedCaretPosition(n,b,S),v(T,t)})}else if(!w.test(a[s])){for(;!y.test(a[b-1])&&b>x;)b--;b=this.correctCaretPosition(a,b,"left")}}else for(;!y.test(a[b])&&b<_;)b++;(b!==s||s<x||s>_)&&(t.preventDefault(),this.setPatchedCaretPosition(n,b,a)),t.isUnitTestRun&&this.setPatchedCaretPosition(n,b,a),this.props.onKeyDown(t)}else m(t)}},{key:"onMouseUp",value:function(t){var e=t.target,n=e.selectionStart,r=e.selectionEnd,i=e.value,o=void 0===i?"":i;if(n===r){var u=this.correctCaretPosition(o,n);u!==n&&this.setPatchedCaretPosition(e,u,o)}this.props.onMouseUp(t)}},{key:"onFocus",value:function(t){var e=this;t.persist(),setTimeout(function(){var n=t.target,r=n.selectionStart,i=n.value,o=void 0===i?"":i,u=e.correctCaretPosition(o,r);u!==r&&e.setPatchedCaretPosition(n,u,o),e.props.onFocus(t)},0)}},{key:"render",value:function(){var t=this.props,e=t.type,n=t.displayType,i=t.customInput,o=t.renderText,u=t.getInputRef,a=this.state.value,s=(0,f.omit)(this.props,d),l=(0,r.default)({},s,{type:e,value:a,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===n)return o?o(a)||null:h.default.createElement("span",(0,r.default)({},s,{ref:u}),a);if(i){var c=i;return h.default.createElement(c,l)}return h.default.createElement("input",(0,r.default)({},l,{ref:u}))}}]),e}(h.default.Component);m.propTypes=d,m.defaultProps=p,e.default=m,t.exports=e.default},function(t,e){var n=/^(\d+):(\d+):(\d+):(\d+)(\.\d+)?/,r=/^(\d+):(\d+):(\d+)(\.\d+)?/,i=e.TimeSpan=function(t,e,n,r,i){this.msecs=0,a(i)&&(this.msecs+=864e5*i),a(r)&&(this.msecs+=36e5*r),a(n)&&(this.msecs+=6e4*n),a(e)&&(this.msecs+=1e3*e),a(t)&&(this.msecs+=t)};e.fromMilliseconds=function(t){if(a(t))return new i(t,0,0,0,0)},e.fromSeconds=function(t){if(a(t))return new i(0,t,0,0,0)},e.fromMinutes=function(t){if(a(t))return new i(0,0,t,0,0)},e.fromHours=function(t){if(a(t))return new i(0,0,0,t,0)},e.fromDays=function(t){if(a(t))return new i(0,0,0,0,t)},e.parse=function(t){var e;function o(t){return t?1e3*parseFloat("0"+t):0}return(e=t.match(n))?new i(o(e[5]),e[4],e[3],e[2],e[1]):(e=t.match(r))?new i(o(e[4]),e[3],e[2],e[1],0):null};var o={milliseconds:{exp:/(\d+)milli(?:second)?[s]?/i,compute:function(t,e){return s(t,e,{current:"milliseconds",next:"seconds",max:1e3})}},seconds:{exp:/(\d+)second[s]?/i,compute:function(t,e){return s(t,e,{current:"seconds",next:"minutes",max:60})}},minutes:{exp:/(\d+)minute[s]?/i,compute:function(t,e){return s(t,e,{current:"minutes",next:"hours",max:60})}},hours:{exp:/(\d+)hour[s]?/i,compute:function(t,e){return s(t,e,{current:"hours",next:"days",max:24})}},days:{exp:/(\d+)day[s]?/i,compute:function(t,e){var n=h(e.months,e.years),r=t>=0?1:-1,i=t>=0?-1:1,o=0;function u(t){return t<0?(e.years-=1,11):t>11?(e.years+=1,0):t}if(t){for(;Math.abs(t)>=n;)e.months+=1*r,e.months=u(e.months),t+=i*n,n=h(e.months,e.years);e.days+=i*t}return e.days<0?o=-1:e.days>l[e.months]&&(o=1),-1!==o&&1!==o||(e.months+=o,e.months=u(e.months),e.days=l[e.months]+e.days),e}},months:{exp:/(\d+)month[s]?/i,compute:function(t,e){var n=t>0?Math.floor:Math.ceil;return t&&(e.years+=n.call(null,t/12),e.months+=t%12),e.months>11&&(e.years+=Math.floor((e.months+1)/12),e.months=(e.months+1)%12-1),e}},years:{exp:/(\d+)year[s]?/i,compute:function(t,e){return t&&(e.years+=t),e}}},u=Object.keys(o);function a(t){return t&&!isNaN(parseFloat(t))&&isFinite(t)}function s(t,e,n){var r=n.current,i=n.next,o=n.max,u=t>0?Math.floor:Math.ceil;return t&&(e[i]+=u.call(null,t/o),e[r]+=t%o),Math.abs(e[r])>=o&&(e[i]+=u.call(null,e[r]/o),e[r]=e[r]%o),e}e.parseDate=function(t){var e,n,r=Date.parse(t),i="Z([\\+|\\-])?",a={};if(!isNaN(r))return new Date(r);if(u.forEach(function(t){i+="(\\d+[a-zA-Z]+)?"}),/^NOW/i.test(t)?(r=Date.now(),i=i.replace(/Z/,"NOW")):/^\-/.test(t)||/^\+/.test(t)?(r=Date.now(),i=i.replace(/Z/,"")):(r=t.match(new RegExp("^([^Z]+)","i")),r=Date.parse(r[1])),!r||!(e=t.match(new RegExp(i,"i"))))return null;r=new Date(r),n="+"===e[1]?1:-1;var s={milliseconds:r.getMilliseconds(),seconds:r.getSeconds(),minutes:r.getMinutes(),hours:r.getHours(),days:r.getDate(),months:r.getMonth(),years:r.getFullYear()};return e.slice(2).filter(Boolean).forEach(function(t){u.forEach(function(e){var r;(r=t.match(o[e].exp))&&(a[e]=n*parseInt(r[1],10))})}),u.forEach(function(t){s=o[t].compute(a[t],s)}),new Date(s.years,s.months,s.days,s.hours,s.minutes,s.seconds,s.milliseconds)},e.fromDates=function(t,n,r){if("string"===typeof t&&(t=e.parseDate(t)),"string"===typeof n&&(n=e.parseDate(n)),!(t instanceof Date&&n instanceof Date))return null;var o=n.valueOf()-t.valueOf();return r&&(o=Math.abs(o)),new i(o,0,0,0,0)},e.test=function(t){return n.test(t)||r.test(t)},e.instanceOf=function(t){return t instanceof i},e.clone=function(t){if(t instanceof i)return e.fromMilliseconds(t.totalMilliseconds())},i.prototype.add=function(t){t instanceof i&&(this.msecs+=t.totalMilliseconds())},i.prototype.addMilliseconds=function(t){a(t)&&(this.msecs+=t)},i.prototype.addSeconds=function(t){a(t)&&(this.msecs+=1e3*t)},i.prototype.addMinutes=function(t){a(t)&&(this.msecs+=6e4*t)},i.prototype.addHours=function(t){a(t)&&(this.msecs+=36e5*t)},i.prototype.addDays=function(t){a(t)&&(this.msecs+=864e5*t)},i.prototype.subtract=function(t){t instanceof i&&(this.msecs-=t.totalMilliseconds())},i.prototype.subtractMilliseconds=function(t){a(t)&&(this.msecs-=t)},i.prototype.subtractSeconds=function(t){a(t)&&(this.msecs-=1e3*t)},i.prototype.subtractMinutes=function(t){a(t)&&(this.msecs-=6e4*t)},i.prototype.subtractHours=function(t){a(t)&&(this.msecs-=36e5*t)},i.prototype.subtractDays=function(t){a(t)&&(this.msecs-=864e5*t)},i.prototype.totalMilliseconds=function(t){var e=this.msecs;return!0===t&&(e=Math.floor(e)),e},i.prototype.totalSeconds=function(t){var e=this.msecs/1e3;return!0===t&&(e=Math.floor(e)),e},i.prototype.totalMinutes=function(t){var e=this.msecs/6e4;return!0===t&&(e=Math.floor(e)),e},i.prototype.totalHours=function(t){var e=this.msecs/36e5;return!0===t&&(e=Math.floor(e)),e},i.prototype.totalDays=function(t){var e=this.msecs/864e5;return!0===t&&(e=Math.floor(e)),e},i.prototype.__defineGetter__("milliseconds",function(){return this.msecs%1e3}),i.prototype.__defineGetter__("seconds",function(){return Math.floor(this.msecs/1e3)%60}),i.prototype.__defineGetter__("minutes",function(){return Math.floor(this.msecs/6e4)%60}),i.prototype.__defineGetter__("hours",function(){return Math.floor(this.msecs/36e5)%24}),i.prototype.__defineGetter__("days",function(){return Math.floor(this.msecs/864e5)}),i.prototype.equals=function(t){if(t instanceof i)return this.msecs===t.totalMilliseconds()},i.prototype.toString=function(){return this.format?this.format(this):this._format()},i.prototype._format=function(){return[this.days,this.hours,this.minutes,this.seconds+"."+this.milliseconds].join(":")};var l=[31,28,31,30,31,30,31,31,30,31,30,31];function h(t,e){return(e%100!==0&&e%4===0||e%400===0)&&1===t?29:l[t]}},,function(t,e,n){"use strict";var r=n(41),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,u=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,h=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,c=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function M(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||y}function b(){}function x(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||y}M.prototype.isReactComponent={},M.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(g(85));this.updater.enqueueSetState(this,t,e,"setState")},M.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},b.prototype=M.prototype;var _=x.prototype=new b;_.constructor=x,r(_,M.prototype),_.isPureReactComponent=!0;var k={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var r,i={},u=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(u=""+e.key),e)S.call(e,r)&&!E.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),h=0;h<s;h++)l[h]=arguments[h+2];i.children=l}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:o,type:t,key:u,ref:a,props:i,_owner:k.current}}function A(t){return"object"===typeof t&&null!==t&&t.$$typeof===o}var P=/\/+/g,C=[];function O(t,e,n,r){if(C.length){var i=C.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function N(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>C.length&&C.push(t)}function R(t,e,n){return null==t?0:function t(e,n,r,i){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var s=!1;if(null===e)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case u:s=!0}}if(s)return r(i,e,""===n?"."+j(e,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var h=n+j(a=e[l],l);s+=t(a,h,r,i)}else if(h=null===e||"object"!==typeof e?null:"function"===typeof(h=v&&e[v]||e["@@iterator"])?h:null,"function"===typeof h)for(e=h.call(e),l=0;!(a=e.next()).done;)s+=t(a=a.value,h=n+j(a,l++),r,i);else if("object"===a)throw r=""+e,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return s}(t,"",e,n)}function j(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}(t.key):e.toString(36)}function B(t,e){t.func.call(t.context,e,t.count++)}function I(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?D(t,r,n,function(t){return t}):null!=t&&(A(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(P,"$&/")+"/")+n)),r.push(t))}function D(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(P,"$&/")+"/"),R(t,I,e=O(e,o,r,i)),N(e)}var L={current:null};function F(){var t=L.current;if(null===t)throw Error(g(321));return t}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return D(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;R(t,B,e=O(null,null,e,n)),N(e)},count:function(t){return R(t,function(){return null},null)},toArray:function(t){var e=[];return D(t,e,null,function(t){return t}),e},only:function(t){if(!A(t))throw Error(g(143));return t}},e.Component=M,e.Fragment=a,e.Profiler=l,e.PureComponent=x,e.StrictMode=s,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(g(267,t));var i=r({},t.props),u=t.key,a=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,s=k.current),void 0!==e.key&&(u=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(h in e)S.call(e,h)&&!E.hasOwnProperty(h)&&(i[h]=void 0===e[h]&&void 0!==l?l[h]:e[h])}var h=arguments.length-2;if(1===h)i.children=n;else if(1<h){l=Array(h);for(var f=0;f<h;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:u,ref:a,props:i,_owner:s}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:h,_context:t},t.Consumer=t},e.createElement=T,e.createFactory=function(t){var e=T.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:c,render:t}},e.isValidElement=A,e.lazy=function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:p,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return F().useCallback(t,e)},e.useContext=function(t,e){return F().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return F().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return F().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return F().useLayoutEffect(t,e)},e.useMemo=function(t,e){return F().useMemo(t,e)},e.useReducer=function(t,e,n){return F().useReducer(t,e,n)},e.useRef=function(t){return F().useRef(t)},e.useState=function(t){return F().useState(t)},e.version="16.14.0"},function(t,e,n){"use strict";var r=n(0),i=n(41),o=n(98);function u(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(u(227));var a=!1,s=null,l=!1,h=null,f={onError:function(t){a=!0,s=t}};function c(t,e,n,r,i,o,u,l,h){a=!1,s=null,function(t,e,n,r,i,o,u,a,s){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(h){this.onError(h)}}.apply(f,arguments)}var d=null,p=null,m=null;function v(t,e,n){var r=t.type||"unknown-event";t.currentTarget=m(n),function(t,e,n,r,i,o,f,d,p){if(c.apply(this,arguments),a){if(!a)throw Error(u(198));var m=s;a=!1,s=null,l||(l=!0,h=m)}}(r,e,void 0,t),t.currentTarget=null}var g=null,y={};function w(){if(g)for(var t in y){var e=y[t],n=g.indexOf(t);if(!(-1<n))throw Error(u(96,t));if(!b[n]){if(!e.extractEvents)throw Error(u(97,t));for(var r in b[n]=e,n=e.eventTypes){var i=void 0,o=n[r],a=e,s=r;if(x.hasOwnProperty(s))throw Error(u(99,s));x[s]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&M(l[i],a,s);i=!0}else o.registrationName?(M(o.registrationName,a,s),i=!0):i=!1;if(!i)throw Error(u(98,r,t))}}}}function M(t,e,n){if(_[t])throw Error(u(100,t));_[t]=e,k[t]=e.eventTypes[n].dependencies}var b=[],x={},_={},k={};function S(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!y.hasOwnProperty(e)||y[e]!==r){if(y[e])throw Error(u(102,e));y[e]=r,n=!0}}n&&w()}var E=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),T=null,A=null,P=null;function C(t){if(t=p(t)){if("function"!==typeof T)throw Error(u(280));var e=t.stateNode;e&&(e=d(e),T(t.stateNode,t.type,e))}}function O(t){A?P?P.push(t):P=[t]:A=t}function N(){if(A){var t=A,e=P;if(P=A=null,C(t),e)for(t=0;t<e.length;t++)C(e[t])}}function R(t,e){return t(e)}function j(t,e,n,r,i){return t(e,n,r,i)}function B(){}var I=R,D=!1,L=!1;function F(){null===A&&null===P||(B(),N())}function z(t,e,n){if(L)return t(e,n);L=!0;try{return I(t,e,n)}finally{L=!1,F()}}var q=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,Q={},Z={};function H(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){V[t]=new H(t,0,!1,t,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];V[e]=new H(e,1,!1,t[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){V[t]=new H(t,2,!1,t.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){V[t]=new H(t,2,!1,t,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){V[t]=new H(t,3,!1,t.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(t){V[t]=new H(t,3,!0,t,null,!1)}),["capture","download"].forEach(function(t){V[t]=new H(t,4,!1,t,null,!1)}),["cols","rows","size","span"].forEach(function(t){V[t]=new H(t,6,!1,t,null,!1)}),["rowSpan","start"].forEach(function(t){V[t]=new H(t,5,!1,t.toLowerCase(),null,!1)});var K=/[\-:]([a-z])/g;function W(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(K,W);V[e]=new H(e,1,!1,t,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(K,W);V[e]=new H(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(K,W);V[e]=new H(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(t){V[t]=new H(t,1,!1,t.toLowerCase(),null,!1)}),V.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(t){V[t]=new H(t,1,!1,t.toLowerCase(),null,!0)});var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(t,e,n,r){var i=V.hasOwnProperty(e)?V[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null===e||"undefined"===typeof e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!U.call(Z,t)||!U.call(Q,t)&&(q.test(t)?Z[t]=!0:(Q[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}$.hasOwnProperty("ReactCurrentDispatcher")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty("ReactCurrentBatchConfig")||($.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,G="function"===typeof Symbol&&Symbol.for,X=G?Symbol.for("react.element"):60103,tt=G?Symbol.for("react.portal"):60106,et=G?Symbol.for("react.fragment"):60107,nt=G?Symbol.for("react.strict_mode"):60108,rt=G?Symbol.for("react.profiler"):60114,it=G?Symbol.for("react.provider"):60109,ot=G?Symbol.for("react.context"):60110,ut=G?Symbol.for("react.concurrent_mode"):60111,at=G?Symbol.for("react.forward_ref"):60112,st=G?Symbol.for("react.suspense"):60113,lt=G?Symbol.for("react.suspense_list"):60120,ht=G?Symbol.for("react.memo"):60115,ft=G?Symbol.for("react.lazy"):60116,ct=G?Symbol.for("react.block"):60121,dt="function"===typeof Symbol&&Symbol.iterator;function pt(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=dt&&t[dt]||t["@@iterator"])?t:null}function mt(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case et:return"Fragment";case tt:return"Portal";case rt:return"Profiler";case nt:return"StrictMode";case st:return"Suspense";case lt:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case ot:return"Context.Consumer";case it:return"Context.Provider";case at:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ht:return mt(t.type);case ct:return mt(t.render);case ft:if(t=1===t._status?t._result:null)return mt(t)}return null}function vt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=mt(t.type);n=null,r&&(n=mt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function gt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function yt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function wt(t){t._valueTracker||(t._valueTracker=function(t){var e=yt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Mt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=yt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function bt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function xt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=gt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function _t(t,e){null!=(e=e.checked)&&Y(t,"checked",e,!1)}function kt(t,e){_t(t,e);var n=gt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Et(t,e.type,n):e.hasOwnProperty("defaultValue")&&Et(t,e.type,gt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function St(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Et(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Tt(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,function(t){null!=t&&(e+=t)}),e}(e.children))&&(t.children=e),t}function At(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+gt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Pt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(u(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ct(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(u(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(u(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:gt(n)}}function Ot(t,e){var n=gt(e.value),r=gt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Nt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Rt="http://www.w3.org/1999/xhtml",jt="http://www.w3.org/2000/svg";function Bt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function It(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Bt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Dt,Lt,Ft=(Lt=function(t,e){if(t.namespaceURI!==jt||"innerHTML"in t)t.innerHTML=e;else{for((Dt=Dt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Dt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction(function(){return Lt(t,e)})}:Lt);function zt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function qt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ut={animationend:qt("Animation","AnimationEnd"),animationiteration:qt("Animation","AnimationIteration"),animationstart:qt("Animation","AnimationStart"),transitionend:qt("Transition","TransitionEnd")},Qt={},Zt={};function Ht(t){if(Qt[t])return Qt[t];if(!Ut[t])return t;var e,n=Ut[t];for(e in n)if(n.hasOwnProperty(e)&&e in Zt)return Qt[t]=n[e];return t}E&&(Zt=document.createElement("div").style,"AnimationEvent"in window||(delete Ut.animationend.animation,delete Ut.animationiteration.animation,delete Ut.animationstart.animation),"TransitionEvent"in window||delete Ut.transitionend.transition);var Vt=Ht("animationend"),Kt=Ht("animationiteration"),Wt=Ht("animationstart"),$t=Ht("transitionend"),Yt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jt=new("function"===typeof WeakMap?WeakMap:Map);function Gt(t){var e=Jt.get(t);return void 0===e&&(e=new Map,Jt.set(t,e)),e}function Xt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Xt(t)!==t)throw Error(u(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Xt(t)))throw Error(u(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ee(i),t;if(o===r)return ee(i),e;o=o.sibling}throw Error(u(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(u(189))}}if(n.alternate!==r)throw Error(u(190))}if(3!==n.tag)throw Error(u(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function re(t,e){if(null==e)throw Error(u(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function ie(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var oe=null;function ue(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)v(t,e[r],n[r]);else e&&v(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function ae(t){if(null!==t&&(oe=re(oe,t)),t=oe,oe=null,t){if(ie(t,ue),oe)throw Error(u(95));if(l)throw t=h,l=!1,h=null,t}}function se(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function le(t){if(!E)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"===typeof e[t]),e}var he=[];function fe(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>he.length&&he.push(t)}function ce(t,e,n,r){if(he.length){var i=he.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function de(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Pn(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=se(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,u=t.eventSystemFlags;0===n&&(u|=64);for(var a=null,s=0;s<b.length;s++){var l=b[s];l&&(l=l.extractEvents(r,e,o,i,u))&&(a=re(a,l))}ae(a)}}function pe(t,e,n){if(!n.has(t)){switch(t){case"scroll":We(e,"scroll",!0);break;case"focus":case"blur":We(e,"focus",!0),We(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":le(t)&&We(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Yt.indexOf(t)&&Ke(t,e)}n.set(t,null)}}var me,ve,ge,ye=!1,we=[],Me=null,be=null,xe=null,_e=new Map,ke=new Map,Se=[],Ee="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Te="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ae(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Pe(t,e){switch(t){case"focus":case"blur":Me=null;break;case"dragenter":case"dragleave":be=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":_e.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ke.delete(e.pointerId)}}function Ce(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Ae(e,n,r,i,o),null!==e&&(null!==(e=Cn(e))&&ve(e)),t):(t.eventSystemFlags|=r,t)}function Oe(t){var e=Pn(t.target);if(null!==e){var n=Xt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,function(){ge(n)})}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Ne(t){if(null!==t.blockedOn)return!1;var e=Ye(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=Cn(e);return null!==n&&ve(n),t.blockedOn=e,!1}return!0}function Re(t,e,n){Ne(t)&&n.delete(e)}function je(){for(ye=!1;0<we.length;){var t=we[0];if(null!==t.blockedOn){null!==(t=Cn(t.blockedOn))&&me(t);break}var e=Ye(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:we.shift()}null!==Me&&Ne(Me)&&(Me=null),null!==be&&Ne(be)&&(be=null),null!==xe&&Ne(xe)&&(xe=null),_e.forEach(Re),ke.forEach(Re)}function Be(t,e){t.blockedOn===e&&(t.blockedOn=null,ye||(ye=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,je)))}function Ie(t){function e(e){return Be(e,t)}if(0<we.length){Be(we[0],t);for(var n=1;n<we.length;n++){var r=we[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==Me&&Be(Me,t),null!==be&&Be(be,t),null!==xe&&Be(xe,t),_e.forEach(e),ke.forEach(e),n=0;n<Se.length;n++)(r=Se[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Se.length&&null===(n=Se[0]).blockedOn;)Oe(n),null===n.blockedOn&&Se.shift()}var De={},Le=new Map,Fe=new Map,ze=["abort","abort",Vt,"animationEnd",Kt,"animationIteration",Wt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$t,"transitionEnd","waiting","waiting"];function qe(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},Fe.set(r,e),Le.set(r,o),De[i]=o}}qe("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qe("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qe(ze,2);for(var Ue="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Qe=0;Qe<Ue.length;Qe++)Fe.set(Ue[Qe],0);var Ze=o.unstable_UserBlockingPriority,He=o.unstable_runWithPriority,Ve=!0;function Ke(t,e){We(e,t,!1)}function We(t,e,n){var r=Fe.get(e);switch(void 0===r?2:r){case 0:r=function(t,e,n,r){D||B();var i=$e,o=D;D=!0;try{j(i,t,e,n,r)}finally{(D=o)||F()}}.bind(null,e,1,t);break;case 1:r=function(t,e,n,r){He(Ze,$e.bind(null,t,e,n,r))}.bind(null,e,1,t);break;default:r=$e.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function $e(t,e,n,r){if(Ve)if(0<we.length&&-1<Ee.indexOf(t))t=Ae(null,t,e,n,r),we.push(t);else{var i=Ye(t,e,n,r);if(null===i)Pe(t,r);else if(-1<Ee.indexOf(t))t=Ae(i,t,e,n,r),we.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return Me=Ce(Me,t,e,n,r,i),!0;case"dragenter":return be=Ce(be,t,e,n,r,i),!0;case"mouseover":return xe=Ce(xe,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return _e.set(o,Ce(_e.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ke.set(o,Ce(ke.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Pe(t,r),t=ce(t,r,null,e);try{z(de,t)}finally{fe(t)}}}}function Ye(t,e,n,r){if(null!==(n=Pn(n=se(r)))){var i=Xt(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=te(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=ce(t,r,n,e);try{z(de,t)}finally{fe(t)}return null}var Je={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ge=["Webkit","ms","Moz","O"];function Xe(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||Je.hasOwnProperty(t)&&Je[t]?(""+e).trim():e+"px"}function tn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Xe(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(Je).forEach(function(t){Ge.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Je[e]=Je[t]})});var en=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nn(t,e){if(e){if(en[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(u(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(u(60));if(!("object"===typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML))throw Error(u(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(u(62,""))}}function rn(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=Rt;function un(t,e){var n=Gt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=k[e];for(var r=0;r<e.length;r++)pe(e[r],t,n)}function an(){}function sn(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function ln(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hn(t,e){var n,r=ln(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=ln(r)}}function fn(){for(var t=window,e=sn();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=sn((t=e.contentWindow).document)}return e}function cn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var dn="$",pn="/$",mn="$?",vn="$!",gn=null,yn=null;function wn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Mn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var bn="function"===typeof setTimeout?setTimeout:void 0,xn="function"===typeof clearTimeout?clearTimeout:void 0;function _n(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function kn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if(n===dn||n===vn||n===mn){if(0===e)return t;e--}else n===pn&&e++}t=t.previousSibling}return null}var Sn=Math.random().toString(36).slice(2),En="__reactInternalInstance$"+Sn,Tn="__reactEventHandlers$"+Sn,An="__reactContainere$"+Sn;function Pn(t){var e=t[En];if(e)return e;for(var n=t.parentNode;n;){if(e=n[An]||n[En]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=kn(t);null!==t;){if(n=t[En])return n;t=kn(t)}return e}n=(t=n).parentNode}return null}function Cn(t){return!(t=t[En]||t[An])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function On(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(u(33))}function Nn(t){return t[Tn]||null}function Rn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function jn(t,e){var n=t.stateNode;if(!n)return null;var r=d(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(u(231,e,typeof n));return n}function Bn(t,e,n){(e=jn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function In(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Rn(e);for(e=n.length;0<e--;)Bn(n[e],"captured",t);for(e=0;e<n.length;e++)Bn(n[e],"bubbled",t)}}function Dn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=jn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Ln(t){t&&t.dispatchConfig.registrationName&&Dn(t._targetInst,null,t)}function Fn(t){ie(t,In)}var zn=null,qn=null,Un=null;function Qn(){if(Un)return Un;var t,e,n=qn,r=n.length,i="value"in zn?zn.value:zn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var u=r-t;for(e=1;e<=u&&n[r-e]===i[o-e];e++);return Un=i.slice(t,1<e?1-e:void 0)}function Zn(){return!0}function Hn(){return!1}function Vn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Zn:Hn,this.isPropagationStopped=Hn,this}function Kn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Wn(t){if(!(t instanceof this))throw Error(u(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function $n(t){t.eventPool=[],t.getPooled=Kn,t.release=Wn}i(Vn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Zn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Zn)},persist:function(){this.isPersistent=Zn},isPersistent:Hn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Hn,this._dispatchInstances=this._dispatchListeners=null}}),Vn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Vn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,$n(n),n},$n(Vn);var Yn=Vn.extend({data:null}),Jn=Vn.extend({data:null}),Gn=[9,13,27,32],Xn=E&&"CompositionEvent"in window,tr=null;E&&"documentMode"in document&&(tr=document.documentMode);var er=E&&"TextEvent"in window&&!tr,nr=E&&(!Xn||tr&&8<tr&&11>=tr),rr=String.fromCharCode(32),ir={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},or=!1;function ur(t,e){switch(t){case"keyup":return-1!==Gn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ar(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var sr=!1;var lr={eventTypes:ir,extractEvents:function(t,e,n,r){var i;if(Xn)t:{switch(t){case"compositionstart":var o=ir.compositionStart;break t;case"compositionend":o=ir.compositionEnd;break t;case"compositionupdate":o=ir.compositionUpdate;break t}o=void 0}else sr?ur(t,n)&&(o=ir.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=ir.compositionStart);return o?(nr&&"ko"!==n.locale&&(sr||o!==ir.compositionStart?o===ir.compositionEnd&&sr&&(i=Qn()):(qn="value"in(zn=r)?zn.value:zn.textContent,sr=!0)),o=Yn.getPooled(o,e,n,r),i?o.data=i:null!==(i=ar(n))&&(o.data=i),Fn(o),i=o):i=null,(t=er?function(t,e){switch(t){case"compositionend":return ar(e);case"keypress":return 32!==e.which?null:(or=!0,rr);case"textInput":return(t=e.data)===rr&&or?null:t;default:return null}}(t,n):function(t,e){if(sr)return"compositionend"===t||!Xn&&ur(t,e)?(t=Qn(),Un=qn=zn=null,sr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return nr&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=Jn.getPooled(ir.beforeInput,e,n,r)).data=t,Fn(e)):e=null,null===i?e:null===e?i:[i,e]}},hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!hr[t.type]:"textarea"===e}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function dr(t,e,n){return(t=Vn.getPooled(cr.change,t,e,n)).type="change",O(n),Fn(t),t}var pr=null,mr=null;function vr(t){ae(t)}function gr(t){if(Mt(On(t)))return t}function yr(t,e){if("change"===t)return e}var wr=!1;function Mr(){pr&&(pr.detachEvent("onpropertychange",br),mr=pr=null)}function br(t){if("value"===t.propertyName&&gr(mr))if(t=dr(mr,t,se(t)),D)ae(t);else{D=!0;try{R(vr,t)}finally{D=!1,F()}}}function xr(t,e,n){"focus"===t?(Mr(),mr=n,(pr=e).attachEvent("onpropertychange",br)):"blur"===t&&Mr()}function _r(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return gr(mr)}function kr(t,e){if("click"===t)return gr(e)}function Sr(t,e){if("input"===t||"change"===t)return gr(e)}E&&(wr=le("input")&&(!document.documentMode||9<document.documentMode));var Er={eventTypes:cr,_isInputEventSupported:wr,extractEvents:function(t,e,n,r){var i=e?On(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var u=yr;else if(fr(i))if(wr)u=Sr;else{u=_r;var a=xr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(u=kr);if(u&&(u=u(t,e)))return dr(u,n,r);a&&a(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Et(i,"number",i.value)}},Tr=Vn.extend({view:null,detail:null}),Ar={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Ar[t])&&!!e[t]}function Cr(){return Pr}var Or=0,Nr=0,Rr=!1,jr=!1,Br=Tr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Cr,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Or;return Or=t.screenX,Rr?"mousemove"===t.type?t.screenX-e:0:(Rr=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Nr;return Nr=t.screenY,jr?"mousemove"===t.type?t.screenY-e:0:(jr=!0,0)}}),Ir=Br.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Dr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,u="mouseout"===t||"pointerout"===t;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!u&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,u)?(u=e,null!==(e=(e=n.relatedTarget||n.toElement)?Pn(e):null)&&(e!==Xt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):u=null;if(u===e)return null;if("mouseout"===t||"mouseover"===t)var a=Br,s=Dr.mouseLeave,l=Dr.mouseEnter,h="mouse";else"pointerout"!==t&&"pointerover"!==t||(a=Ir,s=Dr.pointerLeave,l=Dr.pointerEnter,h="pointer");if(t=null==u?o:On(u),o=null==e?o:On(e),(s=a.getPooled(s,u,n,r)).type=h+"leave",s.target=t,s.relatedTarget=o,(n=a.getPooled(l,e,n,r)).type=h+"enter",n.target=o,n.relatedTarget=t,h=e,(r=u)&&h)t:{for(l=h,u=0,t=a=r;t;t=Rn(t))u++;for(t=0,e=l;e;e=Rn(e))t++;for(;0<u-t;)a=Rn(a),u--;for(;0<t-u;)l=Rn(l),t--;for(;u--;){if(a===l||a===l.alternate)break t;a=Rn(a),l=Rn(l)}a=null}else a=null;for(l=a,a=[];r&&r!==l&&(null===(u=r.alternate)||u!==l);)a.push(r),r=Rn(r);for(r=[];h&&h!==l&&(null===(u=h.alternate)||u!==l);)r.push(h),h=Rn(h);for(h=0;h<a.length;h++)Dn(a[h],"bubbled",s);for(h=r.length;0<h--;)Dn(r[h],"captured",n);return 0===(64&i)?[s]:[s,n]}};var Fr="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},zr=Object.prototype.hasOwnProperty;function qr(t,e){if(Fr(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!zr.call(e,n[r])||!Fr(t[n[r]],e[n[r]]))return!1;return!0}var Ur=E&&"documentMode"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zr=null,Hr=null,Vr=null,Kr=!1;function Wr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Kr||null==Zr||Zr!==sn(n)?null:("selectionStart"in(n=Zr)&&cn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Vr&&qr(Vr,n)?null:(Vr=n,(t=Vn.getPooled(Qr.select,Hr,t,e)).type="select",t.target=Zr,Fn(t),t))}var $r={eventTypes:Qr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Gt(i),o=k.onSelect;for(var u=0;u<o.length;u++)if(!i.has(o[u])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?On(e):window,t){case"focus":(fr(i)||"true"===i.contentEditable)&&(Zr=i,Hr=e,Vr=null);break;case"blur":Vr=Hr=Zr=null;break;case"mousedown":Kr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Kr=!1,Wr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Wr(n,r)}return null}},Yr=Vn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Vn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Gr=Tr.extend({relatedTarget:null});function Xr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var ti={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ei={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ni=Tr.extend({key:function(t){if(t.key){var e=ti[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Xr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?ei[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Cr,charCode:function(t){return"keypress"===t.type?Xr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Xr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ri=Br.extend({dataTransfer:null}),ii=Tr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Cr}),oi=Vn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ui=Br.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),ai={eventTypes:De,extractEvents:function(t,e,n,r){var i=Le.get(t);if(!i)return null;switch(t){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":t=ni;break;case"blur":case"focus":t=Gr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Br;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=ri;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ii;break;case Vt:case Kt:case Wt:t=Yr;break;case $t:t=oi;break;case"scroll":t=Tr;break;case"wheel":t=ui;break;case"copy":case"cut":case"paste":t=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Ir;break;default:t=Vn}return Fn(e=t.getPooled(i,e,n,r)),e}};if(g)throw Error(u(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),d=Nn,p=Cn,m=On,S({SimpleEventPlugin:ai,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:Er,SelectEventPlugin:$r,BeforeInputEventPlugin:lr});var si=[],li=-1;function hi(t){0>li||(t.current=si[li],si[li]=null,li--)}function fi(t,e){si[++li]=t.current,t.current=e}var ci={},di={current:ci},pi={current:!1},mi=ci;function vi(t,e){var n=t.type.contextTypes;if(!n)return ci;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function gi(t){return null!==(t=t.childContextTypes)&&void 0!==t}function yi(){hi(pi),hi(di)}function wi(t,e,n){if(di.current!==ci)throw Error(u(168));fi(di,e),fi(pi,n)}function Mi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(u(108,mt(e)||"Unknown",o));return i({},n,{},r)}function bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ci,mi=di.current,fi(di,t),fi(pi,pi.current),!0}function xi(t,e,n){var r=t.stateNode;if(!r)throw Error(u(169));n?(t=Mi(t,e,mi),r.__reactInternalMemoizedMergedChildContext=t,hi(pi),hi(di),fi(di,t)):hi(pi),fi(pi,n)}var _i=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ei=o.unstable_requestPaint,Ti=o.unstable_now,Ai=o.unstable_getCurrentPriorityLevel,Pi=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Oi=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ri=o.unstable_IdlePriority,ji={},Bi=o.unstable_shouldYield,Ii=void 0!==Ei?Ei:function(){},Di=null,Li=null,Fi=!1,zi=Ti(),qi=1e4>zi?Ti:function(){return Ti()-zi};function Ui(){switch(Ai()){case Pi:return 99;case Ci:return 98;case Oi:return 97;case Ni:return 96;case Ri:return 95;default:throw Error(u(332))}}function Qi(t){switch(t){case 99:return Pi;case 98:return Ci;case 97:return Oi;case 96:return Ni;case 95:return Ri;default:throw Error(u(332))}}function Zi(t,e){return t=Qi(t),_i(t,e)}function Hi(t,e,n){return t=Qi(t),ki(t,e,n)}function Vi(t){return null===Di?(Di=[t],Li=ki(Pi,Wi)):Di.push(t),ji}function Ki(){if(null!==Li){var t=Li;Li=null,Si(t)}Wi()}function Wi(){if(!Fi&&null!==Di){Fi=!0;var t=0;try{var e=Di;Zi(99,function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}}),Di=null}catch(n){throw null!==Di&&(Di=Di.slice(t+1)),ki(Pi,Ki),n}finally{Fi=!1}}}function $i(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Yi(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Ji={current:null},Gi=null,Xi=null,to=null;function eo(){to=Xi=Gi=null}function no(t){var e=Ji.current;hi(Ji),t.type._context._currentValue=e}function ro(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function io(t,e){Gi=t,to=Xi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Nu=!0),t.firstContext=null)}function oo(t,e){if(to!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(to=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Xi){if(null===Gi)throw Error(u(308));Xi=e,Gi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Xi=Xi.next=e;return t._currentValue}var uo=!1;function ao(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function so(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function lo(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function ho(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function fo(t,e){var n=t.alternate;null!==n&&so(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function co(t,e,n,r){var o=t.updateQueue;uo=!1;var u=o.baseQueue,a=o.shared.pending;if(null!==a){if(null!==u){var s=u.next;u.next=a.next,a.next=s}u=a,o.shared.pending=null,null!==(s=t.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=a))}if(null!==u){s=u.next;var l=o.baseState,h=0,f=null,c=null,d=null;if(null!==s)for(var p=s;;){if((a=p.expirationTime)<r){var m={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(c=d=m,f=l):d=d.next=m,a>h&&(h=a)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),ms(a,p.suspenseConfig);t:{var v=t,g=p;switch(a=e,m=n,g.tag){case 1:if("function"===typeof(v=g.payload)){l=v.call(m,l,a);break t}l=v;break t;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(a="function"===typeof(v=g.payload)?v.call(m,l,a):v)||void 0===a)break t;l=i({},l,a);break t;case 2:uo=!0}}null!==p.callback&&(t.effectTag|=32,null===(a=o.effects)?o.effects=[p]:a.push(p))}if(null===(p=p.next)||p===s){if(null===(a=o.shared.pending))break;p=u.next=a.next,a.next=s,o.baseQueue=u=a,o.shared.pending=null}}null===d?f=l:d.next=c,o.baseState=f,o.baseQueue=d,vs(h),t.expirationTime=h,t.memoizedState=l}}function po(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(u(191,r));r.call(i)}}}var mo=$.ReactCurrentBatchConfig,vo=(new r.Component).refs;function go(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var yo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Xt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=rs(),i=mo.suspense;(i=lo(r=is(r,t,i),i)).payload=e,void 0!==n&&null!==n&&(i.callback=n),ho(t,i),os(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=rs(),i=mo.suspense;(i=lo(r=is(r,t,i),i)).tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),ho(t,i),os(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=rs(),r=mo.suspense;(r=lo(n=is(n,t,r),r)).tag=2,void 0!==e&&null!==e&&(r.callback=e),ho(t,r),os(t,n)}};function wo(t,e,n,r,i,o,u){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,u):!e.prototype||!e.prototype.isPureReactComponent||(!qr(n,r)||!qr(i,o))}function Mo(t,e,n){var r=!1,i=ci,o=e.contextType;return"object"===typeof o&&null!==o?o=oo(o):(i=gi(e)?mi:di.current,o=(r=null!==(r=e.contextTypes)&&void 0!==r)?vi(t,i):ci),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=yo,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function bo(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&yo.enqueueReplaceState(e,e.state,null)}function xo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=vo,ao(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=oo(o):(o=gi(e)?mi:di.current,i.context=vi(t,o)),co(t,n,i,r),i.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(go(t,e,o,n),i.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(e=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&yo.enqueueReplaceState(i,i.state,null),co(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.effectTag|=4)}var _o=Array.isArray;function ko(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(u(309));var r=n.stateNode}if(!r)throw Error(u(147,t));var i=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===vo&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!==typeof t)throw Error(u(284));if(!n._owner)throw Error(u(290,t))}return t}function So(t,e){if("textarea"!==t.type)throw Error(u(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function Eo(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=js(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function a(e){return t&&null===e.alternate&&(e.effectTag=2),e}function s(t,e,n,r){return null===e||6!==e.tag?((e=Ds(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=ko(t,e,n),r.return=t,r):((r=Bs(n.type,n.key,n.props,null,t.mode,r)).ref=ko(t,e,n),r.return=t,r)}function h(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Ls(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=Is(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function c(t,e,n){if("string"===typeof e||"number"===typeof e)return(e=Ds(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case X:return(n=Bs(e.type,e.key,e.props,null,t.mode,n)).ref=ko(t,null,e),n.return=t,n;case tt:return(e=Ls(e,t.mode,n)).return=t,e}if(_o(e)||pt(e))return(e=Is(e,t.mode,n,null)).return=t,e;So(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:s(t,e,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case X:return n.key===i?n.type===et?f(t,e,n.props.children,r,i):l(t,e,n,r):null;case tt:return n.key===i?h(t,e,n,r):null}if(_o(n)||pt(n))return null!==i?null:f(t,e,n,r,null);So(t,n)}return null}function p(t,e,n,r,i){if("string"===typeof r||"number"===typeof r)return s(e,t=t.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case X:return t=t.get(null===r.key?n:r.key)||null,r.type===et?f(e,t,r.props.children,i,r.key):l(e,t,r,i);case tt:return h(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||pt(r))return f(e,t=t.get(n)||null,r,i,null);So(e,r)}return null}function m(i,u,a,s){for(var l=null,h=null,f=u,m=u=0,v=null;null!==f&&m<a.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=d(i,f,a[m],s);if(null===g){null===f&&(f=v);break}t&&f&&null===g.alternate&&e(i,f),u=o(g,u,m),null===h?l=g:h.sibling=g,h=g,f=v}if(m===a.length)return n(i,f),l;if(null===f){for(;m<a.length;m++)null!==(f=c(i,a[m],s))&&(u=o(f,u,m),null===h?l=f:h.sibling=f,h=f);return l}for(f=r(i,f);m<a.length;m++)null!==(v=p(f,i,m,a[m],s))&&(t&&null!==v.alternate&&f.delete(null===v.key?m:v.key),u=o(v,u,m),null===h?l=v:h.sibling=v,h=v);return t&&f.forEach(function(t){return e(i,t)}),l}function v(i,a,s,l){var h=pt(s);if("function"!==typeof h)throw Error(u(150));if(null==(s=h.call(s)))throw Error(u(151));for(var f=h=null,m=a,v=a=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var w=d(i,m,y.value,l);if(null===w){null===m&&(m=g);break}t&&m&&null===w.alternate&&e(i,m),a=o(w,a,v),null===f?h=w:f.sibling=w,f=w,m=g}if(y.done)return n(i,m),h;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=c(i,y.value,l))&&(a=o(y,a,v),null===f?h=y:f.sibling=y,f=y);return h}for(m=r(i,m);!y.done;v++,y=s.next())null!==(y=p(m,i,v,y.value,l))&&(t&&null!==y.alternate&&m.delete(null===y.key?v:y.key),a=o(y,a,v),null===f?h=y:f.sibling=y,f=y);return t&&m.forEach(function(t){return e(i,t)}),h}return function(t,r,o,s){var l="object"===typeof o&&null!==o&&o.type===et&&null===o.key;l&&(o=o.props.children);var h="object"===typeof o&&null!==o;if(h)switch(o.$$typeof){case X:t:{for(h=o.key,l=r;null!==l;){if(l.key===h){switch(l.tag){case 7:if(o.type===et){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}break;default:if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=ko(t,l,o),r.return=t,t=r;break t}}n(t,l);break}e(t,l),l=l.sibling}o.type===et?((r=Is(o.props.children,t.mode,s,o.key)).return=t,t=r):((s=Bs(o.type,o.key,o.props,null,t.mode,s)).ref=ko(t,r,o),s.return=t,t=s)}return a(t);case tt:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Ls(o,t.mode,s)).return=t,t=r}return a(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Ds(o,t.mode,s)).return=t,t=r),a(t);if(_o(o))return m(t,r,o,s);if(pt(o))return v(t,r,o,s);if(h&&So(t,o),"undefined"===typeof o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(u(152,t.displayName||t.name||"Component"))}return n(t,r)}}var To=Eo(!0),Ao=Eo(!1),Po={},Co={current:Po},Oo={current:Po},No={current:Po};function Ro(t){if(t===Po)throw Error(u(174));return t}function jo(t,e){switch(fi(No,e),fi(Oo,t),fi(Co,Po),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:It(null,"");break;default:e=It(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}hi(Co),fi(Co,e)}function Bo(){hi(Co),hi(Oo),hi(No)}function Io(t){Ro(No.current);var e=Ro(Co.current),n=It(e,t.type);e!==n&&(fi(Oo,t),fi(Co,n))}function Do(t){Oo.current===t&&(hi(Co),hi(Oo))}var Lo={current:0};function Fo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===vn))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function zo(t,e){return{responder:t,props:e}}var qo=$.ReactCurrentDispatcher,Uo=$.ReactCurrentBatchConfig,Qo=0,Zo=null,Ho=null,Vo=null,Ko=!1;function Wo(){throw Error(u(321))}function $o(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Fr(t[n],e[n]))return!1;return!0}function Yo(t,e,n,r,i,o){if(Qo=o,Zo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,qo.current=null===t||null===t.memoizedState?wu:Mu,t=n(r,i),e.expirationTime===Qo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(u(301));o+=1,Vo=Ho=null,e.updateQueue=null,qo.current=bu,t=n(r,i)}while(e.expirationTime===Qo)}if(qo.current=yu,e=null!==Ho&&null!==Ho.next,Qo=0,Vo=Ho=Zo=null,Ko=!1,e)throw Error(u(300));return t}function Jo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Vo?Zo.memoizedState=Vo=t:Vo=Vo.next=t,Vo}function Go(){if(null===Ho){var t=Zo.alternate;t=null!==t?t.memoizedState:null}else t=Ho.next;var e=null===Vo?Zo.memoizedState:Vo.next;if(null!==e)Vo=e,Ho=t;else{if(null===t)throw Error(u(310));t={memoizedState:(Ho=t).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Vo?Zo.memoizedState=Vo=t:Vo=Vo.next=t}return Vo}function Xo(t,e){return"function"===typeof e?e(t):e}function tu(t){var e=Go(),n=e.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=t;var r=Ho,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=a=o=null,l=i;do{var h=l.expirationTime;if(h<Qo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(a=s=f,o=r):s=s.next=f,h>Zo.expirationTime&&(Zo.expirationTime=h,vs(h))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ms(h,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=a,Fr(r,e.memoizedState)||(Nu=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=s,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function eu(t){var e=Go(),n=e.queue;if(null===n)throw Error(u(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=t(o,a.action),a=a.next}while(a!==i);Fr(o,e.memoizedState)||(Nu=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function nu(t){var e=Jo();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t}).dispatch=gu.bind(null,Zo,t),[e.memoizedState,t]}function ru(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Zo.updateQueue)?(e={lastEffect:null},Zo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function iu(){return Go().memoizedState}function ou(t,e,n,r){var i=Jo();Zo.effectTag|=t,i.memoizedState=ru(1|e,n,void 0,void 0===r?null:r)}function uu(t,e,n,r){var i=Go();r=void 0===r?null:r;var o=void 0;if(null!==Ho){var u=Ho.memoizedState;if(o=u.destroy,null!==r&&$o(r,u.deps))return void ru(e,n,o,r)}Zo.effectTag|=t,i.memoizedState=ru(1|e,n,o,r)}function au(t,e){return ou(516,4,t,e)}function su(t,e){return uu(516,4,t,e)}function lu(t,e){return uu(4,2,t,e)}function hu(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function fu(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,uu(4,2,hu.bind(null,e,t),n)}function cu(){}function du(t,e){return Jo().memoizedState=[t,void 0===e?null:e],t}function pu(t,e){var n=Go();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&$o(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function mu(t,e){var n=Go();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&$o(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function vu(t,e,n){var r=Ui();Zi(98>r?98:r,function(){t(!0)}),Zi(97<r?97:r,function(){var r=Uo.suspense;Uo.suspense=void 0===e?null:e;try{t(!1),n()}finally{Uo.suspense=r}})}function gu(t,e,n){var r=rs(),i=mo.suspense;i={expirationTime:r=is(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===Zo||null!==o&&o===Zo)Ko=!0,i.expirationTime=Qo,Zo.expirationTime=Qo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var u=e.lastRenderedState,a=o(u,n);if(i.eagerReducer=o,i.eagerState=a,Fr(a,u))return}catch(s){}os(t,r)}}var yu={readContext:oo,useCallback:Wo,useContext:Wo,useEffect:Wo,useImperativeHandle:Wo,useLayoutEffect:Wo,useMemo:Wo,useReducer:Wo,useRef:Wo,useState:Wo,useDebugValue:Wo,useResponder:Wo,useDeferredValue:Wo,useTransition:Wo},wu={readContext:oo,useCallback:du,useContext:oo,useEffect:au,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ou(4,2,hu.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ou(4,2,t,e)},useMemo:function(t,e){var n=Jo();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Jo();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=gu.bind(null,Zo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Jo().memoizedState=t},useState:nu,useDebugValue:cu,useResponder:zo,useDeferredValue:function(t,e){var n=nu(t),r=n[0],i=n[1];return au(function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}},[t,e]),r},useTransition:function(t){var e=nu(!1),n=e[0];return e=e[1],[du(vu.bind(null,e,t),[e,t]),n]}},Mu={readContext:oo,useCallback:pu,useContext:oo,useEffect:su,useImperativeHandle:fu,useLayoutEffect:lu,useMemo:mu,useReducer:tu,useRef:iu,useState:function(){return tu(Xo)},useDebugValue:cu,useResponder:zo,useDeferredValue:function(t,e){var n=tu(Xo),r=n[0],i=n[1];return su(function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}},[t,e]),r},useTransition:function(t){var e=tu(Xo),n=e[0];return e=e[1],[pu(vu.bind(null,e,t),[e,t]),n]}},bu={readContext:oo,useCallback:pu,useContext:oo,useEffect:su,useImperativeHandle:fu,useLayoutEffect:lu,useMemo:mu,useReducer:eu,useRef:iu,useState:function(){return eu(Xo)},useDebugValue:cu,useResponder:zo,useDeferredValue:function(t,e){var n=eu(Xo),r=n[0],i=n[1];return su(function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}},[t,e]),r},useTransition:function(t){var e=eu(Xo),n=e[0];return e=e[1],[pu(vu.bind(null,e,t),[e,t]),n]}},xu=null,_u=null,ku=!1;function Su(t,e){var n=Ns(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Eu(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function Tu(t){if(ku){var e=_u;if(e){var n=e;if(!Eu(t,e)){if(!(e=_n(n.nextSibling))||!Eu(t,e))return t.effectTag=-1025&t.effectTag|2,ku=!1,void(xu=t);Su(xu,n)}xu=t,_u=_n(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,ku=!1,xu=t}}function Au(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;xu=t}function Pu(t){if(t!==xu)return!1;if(!ku)return Au(t),ku=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Mn(e,t.memoizedProps))for(e=_u;e;)Su(t,e),e=_n(e.nextSibling);if(Au(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(u(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if(n===pn){if(0===e){_u=_n(t.nextSibling);break t}e--}else n!==dn&&n!==vn&&n!==mn||e++}t=t.nextSibling}_u=null}}else _u=xu?_n(t.stateNode.nextSibling):null;return!0}function Cu(){_u=xu=null,ku=!1}var Ou=$.ReactCurrentOwner,Nu=!1;function Ru(t,e,n,r){e.child=null===t?Ao(e,null,n,r):To(e,t.child,n,r)}function ju(t,e,n,r,i){n=n.render;var o=e.ref;return io(e,i),r=Yo(t,e,n,r,o,i),null===t||Nu?(e.effectTag|=1,Ru(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ju(t,e,i))}function Bu(t,e,n,r,i,o){if(null===t){var u=n.type;return"function"!==typeof u||Rs(u)||void 0!==u.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Bs(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=u,Iu(t,e,u,r,i,o))}return u=t.child,i<o&&(i=u.memoizedProps,(n=null!==(n=n.compare)?n:qr)(i,r)&&t.ref===e.ref)?Ju(t,e,o):(e.effectTag|=1,(t=js(u,r)).ref=e.ref,t.return=e,e.child=t)}function Iu(t,e,n,r,i,o){return null!==t&&qr(t.memoizedProps,r)&&t.ref===e.ref&&(Nu=!1,i<o)?(e.expirationTime=t.expirationTime,Ju(t,e,o)):Lu(t,e,n,r,o)}function Du(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Lu(t,e,n,r,i){var o=gi(n)?mi:di.current;return o=vi(e,o),io(e,i),n=Yo(t,e,n,r,o,i),null===t||Nu?(e.effectTag|=1,Ru(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ju(t,e,i))}function Fu(t,e,n,r,i){if(gi(n)){var o=!0;bi(e)}else o=!1;if(io(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Mo(e,n,r),xo(e,n,r,i),r=!0;else if(null===t){var u=e.stateNode,a=e.memoizedProps;u.props=a;var s=u.context,l=n.contextType;"object"===typeof l&&null!==l?l=oo(l):l=vi(e,l=gi(n)?mi:di.current);var h=n.getDerivedStateFromProps,f="function"===typeof h||"function"===typeof u.getSnapshotBeforeUpdate;f||"function"!==typeof u.UNSAFE_componentWillReceiveProps&&"function"!==typeof u.componentWillReceiveProps||(a!==r||s!==l)&&bo(e,u,r,l),uo=!1;var c=e.memoizedState;u.state=c,co(e,r,u,i),s=e.memoizedState,a!==r||c!==s||pi.current||uo?("function"===typeof h&&(go(e,n,h,r),s=e.memoizedState),(a=uo||wo(e,n,a,r,c,s,l))?(f||"function"!==typeof u.UNSAFE_componentWillMount&&"function"!==typeof u.componentWillMount||("function"===typeof u.componentWillMount&&u.componentWillMount(),"function"===typeof u.UNSAFE_componentWillMount&&u.UNSAFE_componentWillMount()),"function"===typeof u.componentDidMount&&(e.effectTag|=4)):("function"===typeof u.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=s),u.props=r,u.state=s,u.context=l,r=a):("function"===typeof u.componentDidMount&&(e.effectTag|=4),r=!1)}else u=e.stateNode,so(t,e),a=e.memoizedProps,u.props=e.type===e.elementType?a:Yi(e.type,a),s=u.context,"object"===typeof(l=n.contextType)&&null!==l?l=oo(l):l=vi(e,l=gi(n)?mi:di.current),(f="function"===typeof(h=n.getDerivedStateFromProps)||"function"===typeof u.getSnapshotBeforeUpdate)||"function"!==typeof u.UNSAFE_componentWillReceiveProps&&"function"!==typeof u.componentWillReceiveProps||(a!==r||s!==l)&&bo(e,u,r,l),uo=!1,s=e.memoizedState,u.state=s,co(e,r,u,i),c=e.memoizedState,a!==r||s!==c||pi.current||uo?("function"===typeof h&&(go(e,n,h,r),c=e.memoizedState),(h=uo||wo(e,n,a,r,s,c,l))?(f||"function"!==typeof u.UNSAFE_componentWillUpdate&&"function"!==typeof u.componentWillUpdate||("function"===typeof u.componentWillUpdate&&u.componentWillUpdate(r,c,l),"function"===typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(r,c,l)),"function"===typeof u.componentDidUpdate&&(e.effectTag|=4),"function"===typeof u.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!==typeof u.componentDidUpdate||a===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=4),"function"!==typeof u.getSnapshotBeforeUpdate||a===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=c),u.props=r,u.state=c,u.context=l,r=h):("function"!==typeof u.componentDidUpdate||a===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=4),"function"!==typeof u.getSnapshotBeforeUpdate||a===t.memoizedProps&&s===t.memoizedState||(e.effectTag|=256),r=!1);return zu(t,e,n,r,o,i)}function zu(t,e,n,r,i,o){Du(t,e);var u=0!==(64&e.effectTag);if(!r&&!u)return i&&xi(e,n,!1),Ju(t,e,o);r=e.stateNode,Ou.current=e;var a=u&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&u?(e.child=To(e,t.child,null,o),e.child=To(e,null,a,o)):Ru(t,e,a,o),e.memoizedState=r.state,i&&xi(e,n,!0),e.child}function qu(t){var e=t.stateNode;e.pendingContext?wi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&wi(0,e.context,!1),jo(t,e.containerInfo)}var Uu,Qu,Zu,Hu,Vu={dehydrated:null,retryTime:0};function Ku(t,e,n){var r,i=e.mode,o=e.pendingProps,u=Lo.current,a=!1;if((r=0!==(64&e.effectTag))||(r=0!==(2&u)&&(null===t||null!==t.memoizedState)),r?(a=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(u|=1),fi(Lo,1&u),null===t){if(void 0!==o.fallback&&Tu(e),a){if(a=o.fallback,(o=Is(null,i,0,null)).return=e,0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Is(a,i,n,null)).return=e,o.sibling=n,e.memoizedState=Vu,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=Ao(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,a){if(o=o.fallback,(n=js(t,t.pendingProps)).return=e,0===(2&e.mode)&&(a=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=a;null!==a;)a.return=n,a=a.sibling;return(i=js(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Vu,e.child=n,i}return n=To(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,a){if(a=o.fallback,(o=Is(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Is(a,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Vu,e.child=o,n}return e.memoizedState=null,e.child=To(e,t,o.children,n)}function Wu(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),ro(t.return,e)}function $u(t,e,n,r,i,o){var u=t.memoizedState;null===u?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailExpiration=0,u.tailMode=i,u.lastEffect=o)}function Yu(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ru(t,e,r.children,n),0!==(2&(r=Lo.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!==(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Wu(t,n);else if(19===t.tag)Wu(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(fi(Lo,r),0===(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Fo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),$u(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Fo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}$u(e,!0,n,null,o,e.lastEffect);break;case"together":$u(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ju(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&vs(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(u(153));if(null!==e.child){for(n=js(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=js(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Gu(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Xu(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return gi(e.type)&&yi(),null;case 3:return Bo(),hi(pi),hi(di),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Pu(e)||(e.effectTag|=4),Qu(e),null;case 5:Do(e),n=Ro(No.current);var o=e.type;if(null!==t&&null!=e.stateNode)Zu(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(u(166));return null}if(t=Ro(Co.current),Pu(e)){r=e.stateNode,o=e.type;var a=e.memoizedProps;switch(r[En]=e,r[Tn]=a,o){case"iframe":case"object":case"embed":Ke("load",r);break;case"video":case"audio":for(t=0;t<Yt.length;t++)Ke(Yt[t],r);break;case"source":Ke("error",r);break;case"img":case"image":case"link":Ke("error",r),Ke("load",r);break;case"form":Ke("reset",r),Ke("submit",r);break;case"details":Ke("toggle",r);break;case"input":xt(r,a),Ke("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ke("invalid",r),un(n,"onChange");break;case"textarea":Ct(r,a),Ke("invalid",r),un(n,"onChange")}for(var s in nn(o,a),t=null,a)if(a.hasOwnProperty(s)){var l=a[s];"children"===s?"string"===typeof l?r.textContent!==l&&(t=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(t=["children",""+l]):_.hasOwnProperty(s)&&null!=l&&un(n,s)}switch(o){case"input":wt(r),St(r,a,!0);break;case"textarea":wt(r),Nt(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=an)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,t===on&&(t=Bt(o)),t===on?"script"===o?((t=s.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=s.createElement(o,{is:r.is}):(t=s.createElement(o),"select"===o&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,o),t[En]=e,t[Tn]=r,Uu(t,e,!1,!1),e.stateNode=t,s=rn(o,r),o){case"iframe":case"object":case"embed":Ke("load",t),l=r;break;case"video":case"audio":for(l=0;l<Yt.length;l++)Ke(Yt[l],t);l=r;break;case"source":Ke("error",t),l=r;break;case"img":case"image":case"link":Ke("error",t),Ke("load",t),l=r;break;case"form":Ke("reset",t),Ke("submit",t),l=r;break;case"details":Ke("toggle",t),l=r;break;case"input":xt(t,r),l=bt(t,r),Ke("invalid",t),un(n,"onChange");break;case"option":l=Tt(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Ke("invalid",t),un(n,"onChange");break;case"textarea":Ct(t,r),l=Pt(t,r),Ke("invalid",t),un(n,"onChange");break;default:l=r}nn(o,l);var h=l;for(a in h)if(h.hasOwnProperty(a)){var f=h[a];"style"===a?tn(t,f):"dangerouslySetInnerHTML"===a?null!=(f=f?f.__html:void 0)&&Ft(t,f):"children"===a?"string"===typeof f?("textarea"!==o||""!==f)&&zt(t,f):"number"===typeof f&&zt(t,""+f):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(_.hasOwnProperty(a)?null!=f&&un(n,a):null!=f&&Y(t,a,f,s))}switch(o){case"input":wt(t),St(t,r,!1);break;case"textarea":wt(t),Nt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+gt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?At(t,!!r.multiple,n,!1):null!=r.defaultValue&&At(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(t.onclick=an)}wn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Hu(t,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(u(166));n=Ro(No.current),Ro(Co.current),Pu(e)?(n=e.stateNode,r=e.memoizedProps,n[En]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[En]=e,e.stateNode=n)}return null;case 13:return hi(Lo),r=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Pu(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(a=e.firstEffect)?(e.firstEffect=o,o.nextEffect=a):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Lo.current)?Da===Ta&&(Da=Ca):(Da!==Ta&&Da!==Ca||(Da=Oa),0!==Ua&&null!==ja&&(qs(ja,Ia),Us(ja,Ua)))),(n||r)&&(e.effectTag|=4),null);case 4:return Bo(),Qu(e),null;case 10:return no(e),null;case 17:return gi(e.type)&&yi(),null;case 19:if(hi(Lo),null===(r=e.memoizedState))return null;if(o=0!==(64&e.effectTag),null===(a=r.rendering)){if(o)Gu(r,!1);else if(Da!==Ta||null!==t&&0!==(64&t.effectTag))for(a=e.child;null!==a;){if(null!==(t=Fo(a))){for(e.effectTag|=64,Gu(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)a=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=a,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,a=t.dependencies,o.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),r=r.sibling;return fi(Lo,1&Lo.current|2),e.child}a=a.sibling}}else{if(!o)if(null!==(t=Fo(a))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),Gu(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*qi()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,Gu(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(a.sibling=e.child,e.child=a):(null!==(n=r.last)?n.sibling=a:e.child=a,r.last=a)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=qi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=qi(),n.sibling=null,e=Lo.current,fi(Lo,o?1&e|2:1&e),n):null}throw Error(u(156,e.tag))}function ta(t){switch(t.tag){case 1:gi(t.type)&&yi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Bo(),hi(pi),hi(di),0!==(64&(e=t.effectTag)))throw Error(u(285));return t.effectTag=-4097&e|64,t;case 5:return Do(t),null;case 13:return hi(Lo),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return hi(Lo),null;case 4:return Bo(),null;case 10:return no(t),null;default:return null}}function ea(t,e){return{value:t,source:e,stack:vt(e)}}Uu=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qu=function(){},Zu=function(t,e,n,r,o){var u=t.memoizedProps;if(u!==r){var a,s,l=e.stateNode;switch(Ro(Co.current),t=null,n){case"input":u=bt(l,u),r=bt(l,r),t=[];break;case"option":u=Tt(l,u),r=Tt(l,r),t=[];break;case"select":u=i({},u,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":u=Pt(l,u),r=Pt(l,r),t=[];break;default:"function"!==typeof u.onClick&&"function"===typeof r.onClick&&(l.onclick=an)}for(a in nn(n,r),n=null,u)if(!r.hasOwnProperty(a)&&u.hasOwnProperty(a)&&null!=u[a])if("style"===a)for(s in l=u[a])l.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(_.hasOwnProperty(a)?t||(t=[]):(t=t||[]).push(a,null));for(a in r){var h=r[a];if(l=null!=u?u[a]:void 0,r.hasOwnProperty(a)&&h!==l&&(null!=h||null!=l))if("style"===a)if(l){for(s in l)!l.hasOwnProperty(s)||h&&h.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in h)h.hasOwnProperty(s)&&l[s]!==h[s]&&(n||(n={}),n[s]=h[s])}else n||(t||(t=[]),t.push(a,n)),n=h;else"dangerouslySetInnerHTML"===a?(h=h?h.__html:void 0,l=l?l.__html:void 0,null!=h&&l!==h&&(t=t||[]).push(a,h)):"children"===a?l===h||"string"!==typeof h&&"number"!==typeof h||(t=t||[]).push(a,""+h):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(_.hasOwnProperty(a)?(null!=h&&un(o,a),t||l===h||(t=[])):(t=t||[]).push(a,h))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},Hu=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var na="function"===typeof WeakSet?WeakSet:Set;function ra(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=vt(n)),null!==n&&mt(n.type),e=e.value,null!==t&&1===t.tag&&mt(t.type);try{console.error(e)}catch(i){setTimeout(function(){throw i})}}function ia(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){Ts(t,n)}else e.current=null}function oa(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Yi(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(u(163))}function ua(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function aa(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function sa(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void aa(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:Yi(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&po(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}po(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&wn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ie(n)))));case 19:case 17:case 20:case 21:return}throw Error(u(163))}function la(t,e,n){switch("function"===typeof Cs&&Cs(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;Zi(97<n?97:n,function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(o){Ts(i,o)}}t=t.next}while(t!==r)})}break;case 1:ia(e),"function"===typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(n){Ts(t,n)}}(e,n);break;case 5:ia(e);break;case 4:da(t,e,n)}}function ha(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&ha(e)}function fa(t){return 5===t.tag||3===t.tag||4===t.tag}function ca(t){t:{for(var e=t.return;null!==e;){if(fa(e)){var n=e;break t}e=e.return}throw Error(u(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(u(161))}16&n.effectTag&&(zt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||fa(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(8===r.nodeType?(n=r.parentNode,n.insertBefore(e,r)):(n=r,n.appendChild(e)),r=r._reactRootContainer,null!==r&&void 0!==r||null!==n.onclick||(n.onclick=an));else if(4!==i&&(e=e.child,null!==e))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e):function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(4!==i&&(e=e.child,null!==e))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e)}function da(t,e,n){for(var r,i,o=e,a=!1;;){if(!a){a=o.return;t:for(;;){if(null===a)throw Error(u(160));switch(r=a.stateNode,a.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}a=a.return}a=!0}if(5===o.tag||6===o.tag){t:for(var s=t,l=o,h=n,f=l;;)if(la(s,f,h),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break t;for(;null===f.sibling;){if(null===f.return||f.return===l)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(s=r,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(la(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function pa(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void ua(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[Tn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&_t(n,r),rn(t,i),e=rn(t,r),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];"style"===a?tn(n,s):"dangerouslySetInnerHTML"===a?Ft(n,s):"children"===a?zt(n,s):Y(n,a,s,e)}switch(t){case"input":kt(n,r);break;case"textarea":Ot(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?At(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?At(n,!!r.multiple,r.defaultValue,!0):At(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(u(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Ie(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Za=qi()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=void 0!==(i=t.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=Xe("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void ma(e);case 19:return void ma(e);case 17:return}throw Error(u(163))}function ma(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new na),e.forEach(function(e){var r=function(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=is(e=rs(),t,null)),null!==(t=us(t,e))&&ss(t)}.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))})}}var va="function"===typeof WeakMap?WeakMap:Map;function ga(t,e,n){(n=lo(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ka||(Ka=!0,Wa=r),ra(t,e)},n}function ya(t,e,n){(n=lo(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return ra(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===$a?$a=new Set([this]):$a.add(this),ra(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var wa,Ma=Math.ceil,ba=$.ReactCurrentDispatcher,xa=$.ReactCurrentOwner,_a=0,ka=8,Sa=16,Ea=32,Ta=0,Aa=1,Pa=2,Ca=3,Oa=4,Na=5,Ra=_a,ja=null,Ba=null,Ia=0,Da=Ta,La=null,Fa=1073741823,za=1073741823,qa=null,Ua=0,Qa=!1,Za=0,Ha=500,Va=null,Ka=!1,Wa=null,$a=null,Ya=!1,Ja=null,Ga=90,Xa=null,ts=0,es=null,ns=0;function rs(){return(Ra&(Sa|Ea))!==_a?1073741821-(qi()/10|0):0!==ns?ns:ns=1073741821-(qi()/10|0)}function is(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=Ui();if(0===(4&e))return 99===r?1073741823:1073741822;if((Ra&Sa)!==_a)return Ia;if(null!==n)t=$i(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=$i(t,150,100);break;case 97:case 96:t=$i(t,5e3,250);break;case 95:t=2;break;default:throw Error(u(326))}return null!==ja&&t===Ia&&--t,t}function os(t,e){if(50<ts)throw ts=0,es=null,Error(u(185));if(null!==(t=us(t,e))){var n=Ui();1073741823===e?(Ra&ka)!==_a&&(Ra&(Sa|Ea))===_a?ls(t):(ss(t),Ra===_a&&Ki()):ss(t),(4&Ra)===_a||98!==n&&99!==n||(null===Xa?Xa=new Map([[t,e]]):(void 0===(n=Xa.get(t))||n>e)&&Xa.set(t,e))}}function us(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(ja===i&&(vs(e),Da===Oa&&qs(i,Ia)),Us(i,e)),i}function as(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!zs(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function ss(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Vi(ls.bind(null,t));else{var e=as(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=rs();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==ji&&Si(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Vi(ls.bind(null,t)):Hi(r,function t(e,n){ns=0;if(n)return n=rs(),Qs(e,n),ss(e),null;var r=as(e);if(0!==r){if(n=e.callbackNode,(Ra&(Sa|Ea))!==_a)throw Error(u(327));if(ks(),e===ja&&r===Ia||cs(e,r),null!==Ba){var i=Ra;Ra|=Sa;for(var o=ps();;)try{ys();break}catch(l){ds(e,l)}if(eo(),Ra=i,ba.current=o,Da===Aa)throw n=La,cs(e,r),qs(e,r),ss(e),n;if(null===Ba)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,i=Da,ja=null,i){case Ta:case Aa:throw Error(u(345));case Pa:Qs(e,2<r?2:r);break;case Ca:if(qs(e,r),i=e.lastSuspendedTime,r===i&&(e.nextKnownPendingLevel=bs(o)),1073741823===Fa&&10<(o=Za+Ha-qi())){if(Qa){var a=e.lastPingedTime;if(0===a||a>=r){e.lastPingedTime=r,cs(e,r);break}}if(0!==(a=as(e))&&a!==r)break;if(0!==i&&i!==r){e.lastPingedTime=i;break}e.timeoutHandle=bn(xs.bind(null,e),o);break}xs(e);break;case Oa:if(qs(e,r),i=e.lastSuspendedTime,r===i&&(e.nextKnownPendingLevel=bs(o)),Qa&&(0===(o=e.lastPingedTime)||o>=r)){e.lastPingedTime=r,cs(e,r);break}if(0!==(o=as(e))&&o!==r)break;if(0!==i&&i!==r){e.lastPingedTime=i;break}if(1073741823!==za?i=10*(1073741821-za)-qi():1073741823===Fa?i=0:(i=10*(1073741821-Fa)-5e3,o=qi(),r=10*(1073741821-r)-o,0>(i=o-i)&&(i=0),i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Ma(i/1960))-i,r<i&&(i=r)),10<i){e.timeoutHandle=bn(xs.bind(null,e),i);break}xs(e);break;case Na:if(1073741823!==Fa&&null!==qa){a=Fa;var s=qa;if(0>=(i=0|s.busyMinDurationMs)?i=0:(o=0|s.busyDelayMs,a=qi()-(10*(1073741821-a)-(0|s.timeoutMs||5e3)),i=a<=o?0:o+i-a),10<i){qs(e,r),e.timeoutHandle=bn(xs.bind(null,e),i);break}}xs(e);break;default:throw Error(u(329))}if(ss(e),e.callbackNode===n)return t.bind(null,e)}}return null}.bind(null,t),{timeout:10*(1073741821-e)-qi()}),t.callbackNode=e}}}function ls(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,(Ra&(Sa|Ea))!==_a)throw Error(u(327));if(ks(),t===ja&&e===Ia||cs(t,e),null!==Ba){var n=Ra;Ra|=Sa;for(var r=ps();;)try{gs();break}catch(i){ds(t,i)}if(eo(),Ra=n,ba.current=r,Da===Aa)throw n=La,cs(t,e),qs(t,e),ss(t),n;if(null!==Ba)throw Error(u(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,ja=null,xs(t),ss(t)}return null}function hs(t,e){var n=Ra;Ra|=1;try{return t(e)}finally{(Ra=n)===_a&&Ki()}}function fs(t,e){var n=Ra;Ra&=-2,Ra|=ka;try{return t(e)}finally{(Ra=n)===_a&&Ki()}}function cs(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,xn(n)),null!==Ba)for(n=Ba.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Bo(),hi(pi),hi(di);break;case 5:Do(r);break;case 4:Bo();break;case 13:case 19:hi(Lo);break;case 10:no(r)}n=n.return}ja=t,Ba=js(t.current,null),Ia=e,Da=Ta,La=null,za=Fa=1073741823,qa=null,Ua=0,Qa=!1}function ds(t,e){for(;;){try{if(eo(),qo.current=yu,Ko)for(var n=Zo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Qo=0,Vo=Ho=Zo=null,Ko=!1,null===Ba||null===Ba.return)return Da=Aa,La=e,Ba=null;t:{var i=t,o=Ba.return,u=Ba,a=e;if(e=Ia,u.effectTag|=2048,u.firstEffect=u.lastEffect=null,null!==a&&"object"===typeof a&&"function"===typeof a.then){var s=a;if(0===(2&u.mode)){var l=u.alternate;l?(u.updateQueue=l.updateQueue,u.memoizedState=l.memoizedState,u.expirationTime=l.expirationTime):(u.updateQueue=null,u.memoizedState=null)}var h=0!==(1&Lo.current),f=o;do{var c;if(c=13===f.tag){var d=f.memoizedState;if(null!==d)c=null!==d.dehydrated;else{var p=f.memoizedProps;c=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!h)}}if(c){var m=f.updateQueue;if(null===m){var v=new Set;v.add(s),f.updateQueue=v}else m.add(s);if(0===(2&f.mode)){if(f.effectTag|=64,u.effectTag&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=lo(1073741823,null);g.tag=2,ho(u,g)}u.expirationTime=1073741823;break t}a=void 0,u=e;var y=i.pingCache;if(null===y?(y=i.pingCache=new va,a=new Set,y.set(s,a)):void 0===(a=y.get(s))&&(a=new Set,y.set(s,a)),!a.has(u)){a.add(u);var w=As.bind(null,i,s,u);s.then(w,w)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);a=Error((mt(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+vt(u))}Da!==Na&&(Da=Pa),a=ea(a,u),f=o;do{switch(f.tag){case 3:s=a,f.effectTag|=4096,f.expirationTime=e,fo(f,ga(f,s,e));break t;case 1:s=a;var M=f.type,b=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof M.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===$a||!$a.has(b)))){f.effectTag|=4096,f.expirationTime=e,fo(f,ya(f,s,e));break t}}f=f.return}while(null!==f)}Ba=Ms(Ba)}catch(x){e=x;continue}break}}function ps(){var t=ba.current;return ba.current=yu,null===t?yu:t}function ms(t,e){t<Fa&&2<t&&(Fa=t),null!==e&&t<za&&2<t&&(za=t,qa=e)}function vs(t){t>Ua&&(Ua=t)}function gs(){for(;null!==Ba;)Ba=ws(Ba)}function ys(){for(;null!==Ba&&!Bi();)Ba=ws(Ba)}function ws(t){var e=wa(t.alternate,t,Ia);return t.memoizedProps=t.pendingProps,null===e&&(e=Ms(t)),xa.current=null,e}function Ms(t){Ba=t;do{var e=Ba.alternate;if(t=Ba.return,0===(2048&Ba.effectTag)){if(e=Xu(e,Ba,Ia),1===Ia||1!==Ba.childExpirationTime){for(var n=0,r=Ba.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ba.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Ba.firstEffect),null!==Ba.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Ba.firstEffect),t.lastEffect=Ba.lastEffect),1<Ba.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Ba:t.firstEffect=Ba,t.lastEffect=Ba))}else{if(null!==(e=ta(Ba)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Ba.sibling))return e;Ba=t}while(null!==Ba);return Da===Ta&&(Da=Na),null}function bs(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function xs(t){var e=Ui();return Zi(99,function(t,e){do{ks()}while(null!==Ja);if((Ra&(Sa|Ea))!==_a)throw Error(u(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(u(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=bs(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===ja&&(Ba=ja=null,Ia=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Ra;Ra|=Ea,xa.current=null,gn=Ve;var a=fn();if(cn(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else t:{var l=(s=(s=a.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(l&&0!==l.rangeCount){s=l.anchorNode;var h=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{s.nodeType,f.nodeType}catch(E){s=null;break t}var c=0,d=-1,p=-1,m=0,v=0,g=a,y=null;e:for(;;){for(var w;g!==s||0!==h&&3!==g.nodeType||(d=c+h),g!==f||0!==l&&3!==g.nodeType||(p=c+l),3===g.nodeType&&(c+=g.nodeValue.length),null!==(w=g.firstChild);)y=g,g=w;for(;;){if(g===a)break e;if(y===s&&++m===h&&(d=c),y===f&&++v===l&&(p=c),null!==(w=g.nextSibling))break;y=(g=y).parentNode}g=w}s=-1===d||-1===p?null:{start:d,end:p}}else s=null}s=s||{start:0,end:0}}else s=null;yn={activeElementDetached:null,focusedElem:a,selectionRange:s},Ve=!1,Va=i;do{try{_s()}catch(E){if(null===Va)throw Error(u(330));Ts(Va,E),Va=Va.nextEffect}}while(null!==Va);Va=i;do{try{for(a=t,s=e;null!==Va;){var M=Va.effectTag;if(16&M&&zt(Va.stateNode,""),128&M){var b=Va.alternate;if(null!==b){var x=b.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&M){case 2:ca(Va),Va.effectTag&=-3;break;case 6:ca(Va),Va.effectTag&=-3,pa(Va.alternate,Va);break;case 1024:Va.effectTag&=-1025;break;case 1028:Va.effectTag&=-1025,pa(Va.alternate,Va);break;case 4:pa(Va.alternate,Va);break;case 8:da(a,h=Va,s),ha(h)}Va=Va.nextEffect}}catch(E){if(null===Va)throw Error(u(330));Ts(Va,E),Va=Va.nextEffect}}while(null!==Va);if(x=yn,b=fn(),M=x.focusedElem,s=x.selectionRange,b!==M&&M&&M.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(M.ownerDocument.documentElement,M)){null!==s&&cn(M)&&(b=s.start,void 0===(x=s.end)&&(x=b),"selectionStart"in M?(M.selectionStart=b,M.selectionEnd=Math.min(x,M.value.length)):(x=(b=M.ownerDocument||document)&&b.defaultView||window).getSelection&&(x=x.getSelection(),h=M.textContent.length,a=Math.min(s.start,h),s=void 0===s.end?a:Math.min(s.end,h),!x.extend&&a>s&&(h=s,s=a,a=h),h=hn(M,a),f=hn(M,s),h&&f&&(1!==x.rangeCount||x.anchorNode!==h.node||x.anchorOffset!==h.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((b=b.createRange()).setStart(h.node,h.offset),x.removeAllRanges(),a>s?(x.addRange(b),x.extend(f.node,f.offset)):(b.setEnd(f.node,f.offset),x.addRange(b))))),b=[];for(x=M;x=x.parentNode;)1===x.nodeType&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof M.focus&&M.focus(),M=0;M<b.length;M++)(x=b[M]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Ve=!!gn,yn=gn=null,t.current=n,Va=i;do{try{for(M=t;null!==Va;){var _=Va.effectTag;if(36&_&&sa(M,Va.alternate,Va),128&_){b=void 0;var k=Va.ref;if(null!==k){var S=Va.stateNode;switch(Va.tag){case 5:b=S;break;default:b=S}"function"===typeof k?k(b):k.current=b}}Va=Va.nextEffect}}catch(E){if(null===Va)throw Error(u(330));Ts(Va,E),Va=Va.nextEffect}}while(null!==Va);Va=null,Ii(),Ra=o}else t.current=n;if(Ya)Ya=!1,Ja=t,Ga=e;else for(Va=i;null!==Va;)e=Va.nextEffect,Va.nextEffect=null,Va=e;if(0===(e=t.firstPendingTime)&&($a=null),1073741823===e?t===es?ts++:(ts=0,es=t):ts=0,"function"===typeof Ps&&Ps(n.stateNode,r),ss(t),Ka)throw Ka=!1,t=Wa,Wa=null,t;return(Ra&ka)!==_a?null:(Ki(),null)}.bind(null,t,e)),null}function _s(){for(;null!==Va;){var t=Va.effectTag;0!==(256&t)&&oa(Va.alternate,Va),0===(512&t)||Ya||(Ya=!0,Hi(97,function(){return ks(),null})),Va=Va.nextEffect}}function ks(){if(90!==Ga){var t=97<Ga?97:Ga;return Ga=90,Zi(t,Ss)}}function Ss(){if(null===Ja)return!1;var t=Ja;if(Ja=null,(Ra&(Sa|Ea))!==_a)throw Error(u(331));var e=Ra;for(Ra|=Ea,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ua(5,n),aa(5,n)}}catch(r){if(null===t)throw Error(u(330));Ts(t,r)}n=t.nextEffect,t.nextEffect=null,t=n}return Ra=e,Ki(),!0}function Es(t,e,n){ho(t,e=ga(t,e=ea(n,e),1073741823)),null!==(t=us(t,1073741823))&&ss(t)}function Ts(t,e){if(3===t.tag)Es(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Es(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===$a||!$a.has(r))){ho(n,t=ya(n,t=ea(e,t),1073741823)),null!==(n=us(n,1073741823))&&ss(n);break}}n=n.return}}function As(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),ja===t&&Ia===n?Da===Oa||Da===Ca&&1073741823===Fa&&qi()-Za<Ha?cs(t,Ia):Qa=!0:zs(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,ss(t)))}wa=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||pi.current)Nu=!0;else{if(r<n){switch(Nu=!1,e.tag){case 3:qu(e),Cu();break;case 5:if(Io(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:gi(e.type)&&bi(e);break;case 4:jo(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,fi(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Ku(t,e,n):(fi(Lo,1&Lo.current),null!==(e=Ju(t,e,n))?e.sibling:null);fi(Lo,1&Lo.current);break;case 19:if(r=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(r)return Yu(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),fi(Lo,Lo.current),!r)return null}return Ju(t,e,n)}Nu=!1}}else Nu=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=vi(e,di.current),io(e,n),i=Yo(null,e,r,t,i,n),e.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,gi(r)){var o=!0;bi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ao(e);var a=r.getDerivedStateFromProps;"function"===typeof a&&go(e,r,a,t),i.updater=yo,e.stateNode=i,i._reactInternalFiber=e,xo(e,r,t,n),e=zu(null,e,r,!0,o,n)}else e.tag=0,Ru(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"===typeof t)return Rs(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===at)return 11;if(t===ht)return 14}return 2}(i),t=Yi(i,t),o){case 0:e=Lu(null,e,i,t,n);break t;case 1:e=Fu(null,e,i,t,n);break t;case 11:e=ju(null,e,i,t,n);break t;case 14:e=Bu(null,e,i,Yi(i.type,t),r,n);break t}throw Error(u(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,Lu(t,e,r,i=e.elementType===r?i:Yi(r,i),n);case 1:return r=e.type,i=e.pendingProps,Fu(t,e,r,i=e.elementType===r?i:Yi(r,i),n);case 3:if(qu(e),r=e.updateQueue,null===t||null===r)throw Error(u(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,so(t,e),co(e,r,null,n),(r=e.memoizedState.element)===i)Cu(),e=Ju(t,e,n);else{if((i=e.stateNode.hydrate)&&(_u=_n(e.stateNode.containerInfo.firstChild),xu=e,i=ku=!0),i)for(n=Ao(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ru(t,e,r,n),Cu();e=e.child}return e;case 5:return Io(e),null===t&&Tu(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,a=i.children,Mn(r,i)?a=null:null!==o&&Mn(r,o)&&(e.effectTag|=16),Du(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ru(t,e,a,n),e=e.child),e;case 6:return null===t&&Tu(e),null;case 13:return Ku(t,e,n);case 4:return jo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=To(e,null,r,n):Ru(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,ju(t,e,r,i=e.elementType===r?i:Yi(r,i),n);case 7:return Ru(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ru(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value;var s=e.type._context;if(fi(Ji,s._currentValue),s._currentValue=o,null!==a)if(s=a.value,0===(o=Fr(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(a.children===i.children&&!pi.current){e=Ju(t,e,n);break t}}else for(null!==(s=e.child)&&(s.return=e);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var h=l.firstContext;null!==h;){if(h.context===r&&0!==(h.observedBits&o)){1===s.tag&&((h=lo(n,null)).tag=2,ho(s,h)),s.expirationTime<n&&(s.expirationTime=n),null!==(h=s.alternate)&&h.expirationTime<n&&(h.expirationTime=n),ro(s.return,n),l.expirationTime<n&&(l.expirationTime=n);break}h=h.next}}else a=10===s.tag&&s.type===e.type?null:s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===e){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}Ru(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,io(e,n),r=r(i=oo(i,o.unstable_observedBits)),e.effectTag|=1,Ru(t,e,r,n),e.child;case 14:return o=Yi(i=e.type,e.pendingProps),Bu(t,e,i,o=Yi(i.type,o),r,n);case 15:return Iu(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Yi(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,gi(r)?(t=!0,bi(e)):t=!1,io(e,n),Mo(e,r,i),xo(e,r,i,n),zu(null,e,r,!0,t,n);case 19:return Yu(t,e,n)}throw Error(u(156,e.tag))};var Ps=null,Cs=null;function Os(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ns(t,e,n,r){return new Os(t,e,n,r)}function Rs(t){return!(!(t=t.prototype)||!t.isReactComponent)}function js(t,e){var n=t.alternate;return null===n?((n=Ns(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Bs(t,e,n,r,i,o){var a=2;if(r=t,"function"===typeof t)Rs(t)&&(a=1);else if("string"===typeof t)a=5;else t:switch(t){case et:return Is(n.children,i,o,e);case ut:a=8,i|=7;break;case nt:a=8,i|=1;break;case rt:return(t=Ns(12,n,e,8|i)).elementType=rt,t.type=rt,t.expirationTime=o,t;case st:return(t=Ns(13,n,e,i)).type=st,t.elementType=st,t.expirationTime=o,t;case lt:return(t=Ns(19,n,e,i)).elementType=lt,t.expirationTime=o,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case it:a=10;break t;case ot:a=9;break t;case at:a=11;break t;case ht:a=14;break t;case ft:a=16,r=null;break t;case ct:a=22;break t}throw Error(u(130,null==t?t:typeof t,""))}return(e=Ns(a,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Is(t,e,n,r){return(t=Ns(7,t,r,e)).expirationTime=n,t}function Ds(t,e,n){return(t=Ns(6,t,null,e)).expirationTime=n,t}function Ls(t,e,n){return(e=Ns(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Fs(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function zs(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function qs(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Us(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Qs(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Zs(t,e,n,r){var i=e.current,o=rs(),a=mo.suspense;o=is(o,i,a);t:if(n){e:{if(Xt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(u(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(gi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(null!==s);throw Error(u(171))}if(1===n.tag){var l=n.type;if(gi(l)){n=Mi(n,l,s);break t}}n=s}else n=ci;return null===e.context?e.context=n:e.pendingContext=n,(e=lo(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),ho(i,e),os(i,o),o}function Hs(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Vs(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Ks(t,e){Vs(t,e),(t=t.alternate)&&Vs(t,e)}function Ws(t,e,n){var r=new Fs(t,e,n=null!=n&&!0===n.hydrate),i=Ns(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,ao(i),t[An]=r.current,n&&0!==e&&function(t,e){var n=Gt(e);Ee.forEach(function(t){pe(t,e,n)}),Te.forEach(function(t){pe(t,e,n)})}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function $s(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Ys(t,e,n,r,i){var o=n._reactRootContainer;if(o){var u=o._internalRoot;if("function"===typeof i){var a=i;i=function(){var t=Hs(u);a.call(t)}}Zs(e,u,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Ws(t,0,e?{hydrate:!0}:void 0)}(n,r),u=o._internalRoot,"function"===typeof i){var s=i;i=function(){var t=Hs(u);s.call(t)}}fs(function(){Zs(e,u,t,i)})}return Hs(u)}function Js(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$s(e))throw Error(u(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:tt,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}Ws.prototype.render=function(t){Zs(t,this._internalRoot,null,null)},Ws.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Zs(null,t,null,function(){e[An]=null})},me=function(t){if(13===t.tag){var e=$i(rs(),150,100);os(t,e),Ks(t,e)}},ve=function(t){13===t.tag&&(os(t,3),Ks(t,3))},ge=function(t){if(13===t.tag){var e=rs();os(t,e=is(e,t,null)),Ks(t,e)}},T=function(t,e,n){switch(e){case"input":if(kt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Nn(r);if(!i)throw Error(u(90));Mt(r),kt(r,i)}}}break;case"textarea":Ot(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},R=hs,j=function(t,e,n,r,i){var o=Ra;Ra|=4;try{return Zi(98,t.bind(null,e,n,r,i))}finally{(Ra=o)===_a&&Ki()}},B=function(){(Ra&(1|Sa|Ea))===_a&&(function(){if(null!==Xa){var t=Xa;Xa=null,t.forEach(function(t,e){Qs(e,t),ss(e)}),Ki()}}(),ks())},I=function(t,e){var n=Ra;Ra|=2;try{return t(e)}finally{(Ra=n)===_a&&Ki()}};var Gs={Events:[Cn,On,Nn,S,x,Fn,function(t){ie(t,Ln)},O,N,$e,ae,ks,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Ps=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(r){}},Cs=function(t){try{e.onCommitFiberUnmount(n,t)}catch(r){}}}catch(r){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ne(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Pn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gs,e.createPortal=Js,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(u(188));throw Error(u(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if((Ra&(Sa|Ea))!==_a)throw Error(u(187));var n=Ra;Ra|=1;try{return Zi(99,t.bind(null,e))}finally{Ra=n,Ki()}},e.hydrate=function(t,e,n){if(!$s(e))throw Error(u(200));return Ys(null,t,e,!0,n)},e.render=function(t,e,n){if(!$s(e))throw Error(u(200));return Ys(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!$s(t))throw Error(u(40));return!!t._reactRootContainer&&(fs(function(){Ys(null,null,t,!1,function(){t._reactRootContainer=null,t[An]=null})}),!0)},e.unstable_batchedUpdates=hs,e.unstable_createPortal=function(t,e){return Js(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!$s(n))throw Error(u(200));if(null==t||void 0===t._reactInternalFiber)throw Error(u(38));return Ys(t,e,n,!1,r)},e.version="16.14.0"},function(t,e,n){"use strict";t.exports=n(99)},function(t,e,n){"use strict";var r,i,o,u,a;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,l=null,h=function t(){if(null!==s)try{var n=e.unstable_now();s(!0,n),s=null}catch(r){throw setTimeout(t,0),r}},f=Date.now();e.unstable_now=function(){return Date.now()-f},r=function(t){null!==s?setTimeout(r,0,t):(s=t,setTimeout(h,0))},i=function(t,e){l=setTimeout(t,e)},o=function(){clearTimeout(l)},u=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var c=window.performance,d=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof c&&"function"===typeof c.now)e.unstable_now=function(){return c.now()};else{var g=d.now();e.unstable_now=function(){return d.now()-g}}var y=!1,w=null,M=-1,b=5,x=0;u=function(){return e.unstable_now()>=x},a=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<t?Math.floor(1e3/t):5};var _=new MessageChannel,k=_.port2;_.port1.onmessage=function(){if(null!==w){var t=e.unstable_now();x=t+b;try{w(!0,t)?k.postMessage(null):(y=!1,w=null)}catch(n){throw k.postMessage(null),n}}else y=!1},r=function(t){w=t,y||(y=!0,k.postMessage(null))},i=function(t,n){M=p(function(){t(e.unstable_now())},n)},o=function(){m(M),M=-1}}function S(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<A(i,e)))break t;t[r]=e,t[n]=i,n=r}}function E(t){return void 0===(t=t[0])?null:t}function T(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,u=t[o],a=o+1,s=t[a];if(void 0!==u&&0>A(u,n))void 0!==s&&0>A(s,u)?(t[r]=s,t[a]=n,r=a):(t[r]=u,t[o]=n,r=o);else{if(!(void 0!==s&&0>A(s,n)))break t;t[r]=s,t[a]=n,r=a}}}return e}return null}function A(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var P=[],C=[],O=1,N=null,R=3,j=!1,B=!1,I=!1;function D(t){for(var e=E(C);null!==e;){if(null===e.callback)T(C);else{if(!(e.startTime<=t))break;T(C),e.sortIndex=e.expirationTime,S(P,e)}e=E(C)}}function L(t){if(I=!1,D(t),!B)if(null!==E(P))B=!0,r(F);else{var e=E(C);null!==e&&i(L,e.startTime-t)}}function F(t,n){B=!1,I&&(I=!1,o()),j=!0;var r=R;try{for(D(n),N=E(P);null!==N&&(!(N.expirationTime>n)||t&&!u());){var a=N.callback;if(null!==a){N.callback=null,R=N.priorityLevel;var s=a(N.expirationTime<=n);n=e.unstable_now(),"function"===typeof s?N.callback=s:N===E(P)&&T(P),D(n)}else T(P);N=E(P)}if(null!==N)var l=!0;else{var h=E(C);null!==h&&i(L,h.startTime-n),l=!1}return l}finally{N=null,R=r,j=!1}}function z(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){B||j||(B=!0,r(F))},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_getFirstCallbackNode=function(){return E(P)},e.unstable_next=function(t){switch(R){case 1:case 2:case 3:var e=3;break;default:e=R}var n=R;R=e;try{return t()}finally{R=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=q,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=R;R=t;try{return e()}finally{R=n}},e.unstable_scheduleCallback=function(t,n,u){var a=e.unstable_now();if("object"===typeof u&&null!==u){var s=u.delay;s="number"===typeof s&&0<s?a+s:a,u="number"===typeof u.timeout?u.timeout:z(t)}else u=z(t),s=a;return t={id:O++,callback:n,priorityLevel:t,startTime:s,expirationTime:u=s+u,sortIndex:-1},s>a?(t.sortIndex=s,S(C,t),null===E(P)&&t===E(C)&&(I?o():I=!0,i(L,s-a))):(t.sortIndex=u,S(P,t),B||j||(B=!0,r(F))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();D(t);var n=E(P);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<N.expirationTime||u()},e.unstable_wrapCallback=function(t){var e=R;return function(){var n=R;R=e;try{return t.apply(this,arguments)}finally{R=n}}}},,,function(t,e,n){},,,,,,function(t,e,n){"use strict";var r=n(4),i=n(60),o=n(110),u=n(42);function a(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var s=a(u);s.Axios=o,s.create=function(t){return a(r.merge(u,t))},s.Cancel=n(64),s.CancelToken=n(124),s.isCancel=n(63),s.all=function(t){return Promise.all(t)},s.spread=n(125),t.exports=s,t.exports.default=s},function(t,e){function n(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";var r=n(42),i=n(4),o=n(119),u=n(120);function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),(t=i.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},i.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,n,r){return this.request(i.merge(r||{},{method:t,url:e,data:n}))}}),t.exports=a},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";var r=n(62);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t}},function(t,e,n){"use strict";var r=n(4);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var u=[];r.forEach(e,function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),u.push(i(e)+"="+i(t))}))}),o=u.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,n){"use strict";var r=n(4),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,u={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(u[e]&&i.indexOf(e)>=0)return;u[e]="set-cookie"===e?(u[e]?u[e]:[]).concat([n]):u[e]?u[e]+", "+n:n}}),u):u}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,o=String(t),u="",a=0,s=r;o.charAt(0|a)||(s="=",a%1);u+=s.charAt(63&e>>8-a%1*8)){if((n=o.charCodeAt(a+=.75))>255)throw new i;e=e<<8|n}return u}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,u){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),!0===u&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(4);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";var r=n(4),i=n(121),o=n(63),u=n(42),a=n(122),s=n(123);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return l(t),t.baseURL&&!a(t.url)&&(t.url=s(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return l(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(l(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(64);function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(32),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){n(128),t.exports=n(1).Object.assign},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(129)})},function(t,e,n){"use strict";var r=n(8),i=n(23),o=n(51),u=n(36),a=n(26),s=n(67),l=Object.assign;t.exports=!l||n(15)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){for(var n=a(t),l=arguments.length,h=1,f=o.f,c=u.f;l>h;)for(var d,p=s(arguments[h++]),m=f?i(p).concat(f(p)):i(p),v=m.length,g=0;v>g;)d=m[g++],r&&!c.call(p,d)||(n[d]=p[d]);return n}:l},function(t,e,n){var r=n(16),i=n(68),o=n(131);t.exports=function(t){return function(e,n,u){var a,s=r(e),l=i(s.length),h=o(u,l);if(t&&n!=n){for(;l>h;)if((a=s[h++])!=a)return!0}else for(;l>h;h++)if((t||h in s)&&s[h]===n)return t||h||0;return!t&&-1}}},function(t,e,n){var r=n(47),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){t.exports={default:n(133),__esModule:!0}},function(t,e,n){n(134),t.exports=n(1).Object.getPrototypeOf},function(t,e,n){var r=n(26),i=n(69);n(70)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(71),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){n(138);var r=n(1).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(6);r(r.S+r.F*!n(8),"Object",{defineProperty:n(10).f})},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(72),o=(r=i)&&r.__esModule?r:{default:r};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"===typeof e?"undefined":(0,o.default)(e))&&"function"!==typeof e?t:e}},function(t,e,n){t.exports={default:n(141),__esModule:!0}},function(t,e,n){n(73),n(77),t.exports=n(53).f("iterator")},function(t,e,n){var r=n(47),i=n(46);t.exports=function(t){return function(e,n){var o,u,a=String(i(e)),s=r(n),l=a.length;return s<0||s>=l?t?"":void 0:(o=a.charCodeAt(s))<55296||o>56319||s+1===l||(u=a.charCodeAt(s+1))<56320||u>57343?t?a.charAt(s):o:t?a.slice(s,s+2):u-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var r=n(52),i=n(34),o=n(37),u={};n(13)(u,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(10),i=n(7),o=n(23);t.exports=n(8)?Object.defineProperties:function(t,e){i(t);for(var n,u=o(e),a=u.length,s=0;a>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){"use strict";var r=n(146),i=n(147),o=n(27),u=n(16);t.exports=n(74)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(149),__esModule:!0}},function(t,e,n){n(150),n(80),n(155),n(156),t.exports=n(1).Symbol},function(t,e,n){"use strict";var r=n(2),i=n(14),o=n(8),u=n(6),a=n(75),s=n(151).KEY,l=n(15),h=n(49),f=n(37),c=n(35),d=n(3),p=n(53),m=n(54),v=n(152),g=n(153),y=n(7),w=n(11),M=n(26),b=n(16),x=n(45),_=n(34),k=n(52),S=n(154),E=n(79),T=n(51),A=n(10),P=n(23),C=E.f,O=A.f,N=S.f,R=r.Symbol,j=r.JSON,B=j&&j.stringify,I=d("_hidden"),D=d("toPrimitive"),L={}.propertyIsEnumerable,F=h("symbol-registry"),z=h("symbols"),q=h("op-symbols"),U=Object.prototype,Q="function"==typeof R&&!!T.f,Z=r.QObject,H=!Z||!Z.prototype||!Z.prototype.findChild,V=o&&l(function(){return 7!=k(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=C(U,e);r&&delete U[e],O(t,e,n),r&&t!==U&&O(U,e,r)}:O,K=function(t){var e=z[t]=k(R.prototype);return e._k=t,e},W=Q&&"symbol"==typeof R.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof R},$=function(t,e,n){return t===U&&$(q,e,n),y(t),e=x(e,!0),y(n),i(z,e)?(n.enumerable?(i(t,I)&&t[I][e]&&(t[I][e]=!1),n=k(n,{enumerable:_(0,!1)})):(i(t,I)||O(t,I,_(1,{})),t[I][e]=!0),V(t,e,n)):O(t,e,n)},Y=function(t,e){y(t);for(var n,r=v(e=b(e)),i=0,o=r.length;o>i;)$(t,n=r[i++],e[n]);return t},J=function(t){var e=L.call(this,t=x(t,!0));return!(this===U&&i(z,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(z,t)||i(this,I)&&this[I][t])||e)},G=function(t,e){if(t=b(t),e=x(e,!0),t!==U||!i(z,e)||i(q,e)){var n=C(t,e);return!n||!i(z,e)||i(t,I)&&t[I][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=N(b(t)),r=[],o=0;n.length>o;)i(z,e=n[o++])||e==I||e==s||r.push(e);return r},tt=function(t){for(var e,n=t===U,r=N(n?q:b(t)),o=[],u=0;r.length>u;)!i(z,e=r[u++])||n&&!i(U,e)||o.push(z[e]);return o};Q||(a((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var t=c(arguments.length>0?arguments[0]:void 0);return o&&H&&V(U,t,{configurable:!0,set:function e(n){this===U&&e.call(q,n),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),V(this,t,_(1,n))}}),K(t)}).prototype,"toString",function(){return this._k}),E.f=G,A.f=$,n(78).f=S.f=X,n(36).f=J,T.f=tt,o&&!n(25)&&a(U,"propertyIsEnumerable",J,!0),p.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!Q,{Symbol:R});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var rt=P(d.store),it=0;rt.length>it;)m(rt[it++]);u(u.S+u.F*!Q,"Symbol",{for:function(t){return i(F,t+="")?F[t]:F[t]=R(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in F)if(F[e]===t)return e},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!Q,"Object",{create:function(t,e){return void 0===e?k(t):Y(k(t),e)},defineProperty:$,defineProperties:Y,getOwnPropertyDescriptor:G,getOwnPropertyNames:X,getOwnPropertySymbols:tt});var ot=l(function(){T.f(1)});u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return T.f(M(t))}}),j&&u(u.S+u.F*(!Q||l(function(){var t=R();return"[null]"!=B([t])||"{}"!=B({a:t})||"{}"!=B(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(w(e)||void 0!==t)&&!W(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,B.apply(j,r)}}),R.prototype[D]||n(13)(R.prototype,D,R.prototype.valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(35)("meta"),i=n(11),o=n(14),u=n(10).f,a=0,s=Object.isExtensible||function(){return!0},l=!n(15)(function(){return s(Object.preventExtensions({}))}),h=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},f=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!s(t))return"F";if(!e)return"E";h(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!s(t))return!0;if(!e)return!1;h(t)}return t[r].w},onFreeze:function(t){return l&&f.NEED&&s(t)&&!o(t,r)&&h(t),t}}},function(t,e,n){var r=n(23),i=n(51),o=n(36);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var u,a=n(t),s=o.f,l=0;a.length>l;)s.call(t,u=a[l++])&&e.push(u);return e}},function(t,e,n){var r=n(24);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(16),i=n(78).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(e){return u.slice()}}(t):i(r(t))}},function(t,e,n){n(54)("asyncIterator")},function(t,e,n){n(54)("observable")},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(158)),i=u(n(162)),o=u(n(72));function u(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof e?"undefined":(0,o.default)(e)));t.prototype=(0,i.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.default?(0,r.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(159),__esModule:!0}},function(t,e,n){n(160),t.exports=n(1).Object.setPrototypeOf},function(t,e,n){var r=n(6);r(r.S,"Object",{setPrototypeOf:n(161).set})},function(t,e,n){var r=n(11),i=n(7),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(22)(Function.call,n(79).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(163),__esModule:!0}},function(t,e,n){n(164);var r=n(1).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(6);r(r.S,"Object",{create:n(52)})},function(t,e,n){t.exports=n(166)()},function(t,e,n){"use strict";var r=n(167);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,u){if(u!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(55),o=(r=i)&&r.__esModule?r:{default:r};function u(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="-"===t[0],r=n&&e,i=(t=t.replace("-","")).split(".");return{beforeDecimal:i[0],afterDecimal:i[1]||"",hasNagation:n,addNegation:r}}function a(t,e,n){for(var r="",i=n?"0":"",o=0;o<=e-1;o++)r+=t[o]||i;return r}e.noop=function(){},e.returnTrue=function(){return!0},e.charIsNumber=function(t){return!!(t||"").match(/\d/)},e.escapeRegExp=function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},e.splitDecimal=u,e.fixLeadingZero=function(t){if(!t)return t;var e="-"===t[0];e&&(t=t.substring(1,t.length));var n=t.split("."),r=n[0].replace(/^0+/,"")||"0",i=n[1]||"";return(e?"-":"")+r+(i?"."+i:"")},e.limitToScale=a,e.roundToPrecision=function(t,e,n){if(-1!==["","-"].indexOf(t))return t;var r=-1!==t.indexOf(".")&&e,i=u(t),o=i.beforeDecimal,s=i.afterDecimal,l=i.hasNagation,h=parseFloat("0."+(s||"0")).toFixed(e).split("."),f=o.split("").reverse().reduce(function(t,e,n){return t.length>n?(Number(t[0])+Number(e)).toString()+t.substring(1,t.length):e+t},h[0]),c=a(h[1]||"",Math.min(e,s.length),n);return(l?"-":"")+f+(r?".":"")+c},e.omit=function(t,e){var n={};return(0,o.default)(t).forEach(function(r){e[r]||(n[r]=t[r])}),n},e.setCaretPosition=function(t,e){if(t.value=t.value,null!==t){if(t.createTextRange){var n=t.createTextRange();return n.move("character",e),n.select(),!0}return t.selectionStart||0===t.selectionStart?(t.focus(),t.setSelectionRange(e,e),!0):(t.focus(),!1)}},e.findChangedIndex=function(t,e){var n=0,r=0,i=t.length,o=e.length;for(;t[n]===e[n]&&n<i;)n++;for(;t[i-1-r]===e[o-1-r]&&o-r>n&&i-r>n;)r++;return{start:n,end:i-r}},e.clamp=function(t,e,n){return Math.min(Math.max(t,e),n)}},function(t,e,n){n(170),t.exports=n(1).Object.keys},function(t,e,n){var r=n(26),i=n(23);n(70)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.set=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(a&&!1!==s.freeze)throw new Error("react-global-configuration - Configuration is already set, the initial call should have 'freeze' set to false to allow for this behaviour (e.g. in testing");if(e)for(var n in e){if(-1===l.indexOf(n))throw new Error("react-global-configuration - Unrecognised option '"+n+"' passed to set");var r=e[n];if("boolean"!==typeof r)throw new Error("react-global-configuration - Unexpected value type for "+n+" : "+typeof r+", boolean expected");-1!==h.indexOf(n)&&(s[n]=r)}a=e.assign?(0,i.default)(a,t):t;!1!==s.freeze&&Object.freeze&&Object.getOwnPropertyNames?a=(0,o.default)(a):Object.freeze&&Object.getOwnPropertyNames||f("react-global-configuration - Could not call freeze as native functions arent't available")},e.get=function(t,e){a||f("react-global-configuration - Configuration has not been set.");void 0===e&&(e=null);var n=function(t,e){var n=!0;for(;n;){var r=t,i=e;if(n=!1,i=void 0!==i?i:"","undefined"===typeof r)return;var o=i.indexOf(".");if(!(o>-1))return r[i];t=r[i.substring(0,o)],e=i.substr(o+1),n=!0,o=void 0}}(a,t);if(void 0!==n)return n;void 0!==t?n=e:(f("react-global-configuration - There is no value with the key: "+t),n=a);return n},e.serialize=function(){return(0,u.default)(a)};var i=r(n(41)),o=r(n(172)),u=r(n(173)),a=null,s={},l=["freeze","assign"],h=["freeze"];function f(t){0}},function(t,e){t.exports=function t(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(n){!e.hasOwnProperty(n)||null===e[n]||"object"!==typeof e[n]&&"function"!==typeof e[n]||Object.isFrozen(e[n])||t(e[n])}),e}},function(t,e,n){"use strict";var r=Math.floor(1099511627776*Math.random()).toString(16),i=new RegExp('"@__(F|R|D|M|S)-'+r+'-(\\d+)__@"',"g"),o=/\{\s*\[native code\]\s*\}/g,u=/function.*?\(/,a=/.*?=>.*?/,s=/[<>\/\u2028\u2029]/g,l=["*","async"],h={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\u2028":"\\u2028","\u2029":"\\u2029"};function f(t){return h[t]}t.exports=function t(e,n){n||(n={}),"number"!==typeof n&&"string"!==typeof n||(n={space:n});var h,c=[],d=[],p=[],m=[],v=[];return"string"!==typeof(h=n.isJSON&&!n.space?JSON.stringify(e):JSON.stringify(e,n.isJSON?null:function(t,e){if(!e)return e;var n=this[t],i=typeof n;if("object"===i){if(n instanceof RegExp)return"@__R-"+r+"-"+(d.push(n)-1)+"__@";if(n instanceof Date)return"@__D-"+r+"-"+(p.push(n)-1)+"__@";if(n instanceof Map)return"@__M-"+r+"-"+(m.push(n)-1)+"__@";if(n instanceof Set)return"@__S-"+r+"-"+(v.push(n)-1)+"__@"}return"function"===i?"@__F-"+r+"-"+(c.push(n)-1)+"__@":e},n.space))?String(h):(!0!==n.unsafe&&(h=h.replace(s,f)),0===c.length&&0===d.length&&0===p.length&&0===m.length&&0===v.length?h:h.replace(i,function(e,r,i){return"D"===r?'new Date("'+p[i].toISOString()+'")':"R"===r?d[i].toString():"M"===r?"new Map("+t(Array.from(m[i].entries()),n)+")":"S"===r?"new Set("+t(Array.from(v[i].values()),n)+")":function(t){var e=t.toString();if(o.test(e))throw new TypeError("Serializing native function: "+t.name);if(u.test(e))return e;if(a.test(e))return e;var n=e.indexOf("("),r=e.substr(0,n).trim().split(" ").filter(function(t){return t.length>0});return r.filter(function(t){return-1===l.indexOf(t)}).length>0?(r.indexOf("async")>-1?"async ":"")+"function"+(r.join("").indexOf("*")>-1?"*":"")+e.substr(n):e}(c[i])}))}},,,function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),u=r[0],a=r[1],s=new o(function(t,e,n){return 3*(e+n)/4-n}(0,u,a)),h=0,f=a>0?u-4:u;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],s[h++]=e>>16&255,s[h++]=e>>8&255,s[h++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,s[h++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,s[h++]=e>>8&255,s[h++]=255&e);return s},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],u=0,a=n-i;u<a;u+=16383)o.push(h(t,u,u+16383>a?a:u+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=u.length;a<s;++a)r[a]=u[a],i[u.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function h(t,e,n){for(var i,o,u=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),u.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return u.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,u,a=8*i-r-1,s=(1<<a)-1,l=s>>1,h=-7,f=n?i-1:0,c=n?-1:1,d=t[e+f];for(f+=c,o=d&(1<<-h)-1,d>>=-h,h+=a;h>0;o=256*o+t[e+f],f+=c,h-=8);for(u=o&(1<<-h)-1,o>>=-h,h+=r;h>0;u=256*u+t[e+f],f+=c,h-=8);if(0===o)o=1-l;else{if(o===s)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,r),o-=l}return(d?-1:1)*u*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var u,a,s,l=8*o-i-1,h=(1<<l)-1,f=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,u=h):(u=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-u))<1&&(u--,s*=2),(e+=u+f>=1?c/s:c*Math.pow(2,1-f))*s>=2&&(u++,s/=2),u+f>=h?(a=0,u=h):u+f>=1?(a=(e*s-1)*Math.pow(2,i),u+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;t[n+d]=255&a,d+=p,a/=256,i-=8);for(u=u<<i|a,l+=i;l>0;t[n+d]=255&u,d+=p,u/=256,l-=8);t[n+d-p]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r=l(n(81)),i=l(n(82)),o=l(n(83)),u=l(n(71)),a=l(n(55)),s=l(n(32));function l(t){return t&&t.__esModule?t:{default:t}}var h=n(199),f=n(203),c=n(58);function d(t,e){var n=e||{};if(!(this instanceof d))throw new Error('[vapjs-query] the Vap object requires the "new" flag in order to function normally (i.e. `const vap = new Vap(provider);`).');if("object"!==typeof t)throw new Error("[vapjs-query] the Vap object requires that the first input 'provider' must be an object, got '"+typeof t+"' (i.e. 'const vap = new Vap(provider);')");this.options=(0,s.default)({debug:n.debug||!1,logger:n.logger||console,jsonSpace:n.jsonSpace||0}),this.rpc=new f(t),this.setProvider=this.rpc.setProvider}function p(t,e){return function(){var n,u=(n=(0,o.default)(r.default.mark(function n(){var o,u;return r.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(f.length<e[2])){n.next=2;break}throw new Error("[vapjs-query] method '"+d+"' requires at least "+e[2]+" input (format type "+e[0][0]+"), "+f.length+" provided. For more information visit: https://github.com/vaporyco/wiki/wiki/JSON-RPC#"+t.toLowerCase());case 2:if(!(f.length>e[0].length)){n.next=4;break}throw new Error("[vapjs-query] method '"+d+"' requires at most "+e[0].length+" params, "+f.length+" provided '"+(0,i.default)(f,null,l.options.jsonSpace)+"'. For more information visit: https://github.com/vaporyco/wiki/wiki/JSON-RPC#"+t.toLowerCase());case 4:e[3]&&f.length<e[3]&&f.push("latest"),this.log("attempting method formatting for '"+d+"' with inputs "+(0,i.default)(f,null,this.options.jsonSpace)),n.prev=6,s=h.formatInputs(t,f),this.log("method formatting success for '"+d+"' with formatted result: "+(0,i.default)(s,null,this.options.jsonSpace)),n.next=14;break;case 11:throw n.prev=11,n.t0=n.catch(6),new Error("[vapjs-query] while formatting inputs '"+(0,i.default)(f,null,this.options.jsonSpace)+"' for method '"+d+"' error: "+n.t0);case 14:return n.next=16,this.rpc.sendAsync({method:t,params:s});case 16:return o=n.sent,n.prev=17,this.log("attempting method formatting for '"+d+"' with raw outputs: "+(0,i.default)(o,null,this.options.jsonSpace)),u=h.formatOutputs(t,o),this.log("method formatting success for '"+d+"' formatted result: "+(0,i.default)(u,null,this.options.jsonSpace)),n.abrupt("return",u);case 24:throw n.prev=24,n.t1=n.catch(17),new Error("[vapjs-query] while formatting outputs from RPC '"+(0,i.default)(o,null,this.options.jsonSpace)+"' for method '"+d+"' "+n.t1);case 28:case"end":return n.stop()}},n,this,[[6,11],[17,24]])})),function(){return n.apply(this,arguments)}),a=null,s=null,l=this,f=[].slice.call(arguments),d=t.replace("vap_","");f.length>0&&"function"===typeof f[f.length-1]&&(a=f.pop());var p=u.call(this);return a?c(p)(a):p}}t.exports=d,d.prototype.log=function(t){this.options.debug&&this.options.logger.log("[vapjs-query log] "+t)},(0,a.default)(h.schema.methods).forEach(function(t){(0,u.default)(d.prototype,t.replace("vap_",""),{enumerable:!0,value:p(t,h.schema.methods[t])})})},function(t,e,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(181),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(u){r.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag",l="object"===typeof t,h=e.regeneratorRuntime;if(h)l&&(t.exports=h);else{(h=e.regeneratorRuntime=l?t.exports:{}).wrap=M;var f="suspendedStart",c="suspendedYield",d="executing",p="completed",m={},v={};v[u]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(O([])));y&&y!==r&&i.call(y,u)&&(v=y);var w=k.prototype=x.prototype=Object.create(v);_.prototype=w.constructor=k,k.constructor=_,k[s]=_.displayName="GeneratorFunction",h.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},h.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,k):(t.__proto__=k,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(w),t},h.awrap=function(t){return{__await:t}},S(E.prototype),E.prototype[a]=function(){return this},h.AsyncIterator=E,h.async=function(t,e,n,r){var i=new E(M(t,e,n,r));return h.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(w),w[s]="Generator",w[u]=function(){return this},w.toString=function(){return"[object Generator]"},h.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},h.values=O,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return a.type="throw",a.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var s=i.call(u,"catchLoc"),l=i.call(u,"finallyLoc");if(s&&l){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(s){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}}}function M(t,e,n,r){var i=e&&e.prototype instanceof x?e:x,o=Object.create(i.prototype),u=new C(r||[]);return o._invoke=function(t,e,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return N()}for(n.method=i,n.arg=o;;){var u=n.delegate;if(u){var a=T(u,n);if(a){if(a===m)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=b(t,e,n);if("normal"===s.type){if(r=n.done?p:c,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(t,n,u),o}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function x(){}function _(){}function k(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function E(t){var e;this._invoke=function(n,r){function o(){return new Promise(function(e,o){!function e(n,r,o,u){var a=b(t[n],t,r);if("throw"!==a.type){var s=a.arg,l=s.value;return l&&"object"===typeof l&&i.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,u)},function(t){e("throw",t,o,u)}):Promise.resolve(l).then(function(t){s.value=t,o(s)},u)}u(a.arg)}(n,r,e,o)})}return e=e?e.then(o,o):o()}}function T(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,T(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=b(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(t){if(t){var e=t[u];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:N}}function N(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},function(t,e,n){var r=n(1),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){t.exports={default:n(184),__esModule:!0}},function(t,e,n){n(80),n(73),n(77),n(185),n(197),n(198),t.exports=n(1).Promise},function(t,e,n){"use strict";var r,i,o,u,a=n(25),s=n(2),l=n(22),h=n(84),f=n(6),c=n(11),d=n(33),p=n(186),m=n(187),v=n(85),g=n(86).set,y=n(192)(),w=n(56),M=n(87),b=n(193),x=n(88),_=s.TypeError,k=s.process,S=k&&k.versions,E=S&&S.v8||"",T=s.Promise,A="process"==h(k),P=function(){},C=i=w.f,O=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[n(3)("species")]=function(t){t(P,P)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==E.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(r){}}(),N=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},R=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0,u=function(e){var n,o,u,a=i?e.ok:e.fail,s=e.resolve,l=e.reject,h=e.domain;try{a?(i||(2==t._h&&I(t),t._h=1),!0===a?n=r:(h&&h.enter(),n=a(r),h&&(h.exit(),u=!0)),n===e.promise?l(_("Promise-chain cycle")):(o=N(n))?o.call(n,s,l):s(n)):l(r)}catch(f){h&&!u&&h.exit(),l(f)}};n.length>o;)u(n[o++]);t._c=[],t._n=!1,e&&!t._h&&j(t)})}},j=function(t){g.call(s,function(){var e,n,r,i=t._v,o=B(t);if(o&&(e=M(function(){A?k.emit("unhandledRejection",i,t):(n=s.onunhandledrejection)?n({promise:t,reason:i}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=A||B(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},B=function(t){return 1!==t._h&&0===(t._a||t._c).length},I=function(t){g.call(s,function(){var e;A?k.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},D=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),R(e,!0))},L=function t(e){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw _("Promise can't be resolved itself");(n=N(e))?y(function(){var i={_w:r,_d:!1};try{n.call(e,l(t,i,1),l(D,i,1))}catch(o){D.call(i,o)}}):(r._v=e,r._s=1,R(r,!1))}catch(i){D.call({_w:r,_d:!1},i)}}};O||(T=function(t){p(this,T,"Promise","_h"),d(t),r.call(this);try{t(l(L,this,1),l(D,this,1))}catch(e){D.call(this,e)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(194)(T.prototype,{then:function(t,e){var n=C(v(this,T));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=A?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=l(L,t,1),this.reject=l(D,t,1)},w.f=C=function(t){return t===T||t===u?new o(t):i(t)}),f(f.G+f.W+f.F*!O,{Promise:T}),n(37)(T,"Promise"),n(195)("Promise"),u=n(1).Promise,f(f.S+f.F*!O,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(a||!O),"Promise",{resolve:function(t){return x(a&&this===u?T:this,t)}}),f(f.S+f.F*!(O&&n(196)(function(t){T.all(t).catch(P)})),"Promise",{all:function(t){var e=this,n=C(e),r=n.resolve,i=n.reject,o=M(function(){var n=[],o=0,u=1;m(t,!1,function(t){var a=o++,s=!1;n.push(void 0),u++,e.resolve(t).then(function(t){s||(s=!0,n[a]=t,--u||r(n))},i)}),--u||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=C(e),r=n.reject,i=M(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(22),i=n(188),o=n(189),u=n(7),a=n(68),s=n(190),l={},h={};(e=t.exports=function(t,e,n,f,c){var d,p,m,v,g=c?function(){return t}:s(t),y=r(n,f,e?2:1),w=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=a(t.length);d>w;w++)if((v=e?y(u(p=t[w])[0],p[1]):y(t[w]))===l||v===h)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=i(m,y,p.value,e))===l||v===h)return v}).BREAK=l,e.RETURN=h},function(t,e,n){var r=n(7);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(u){var o=t.return;throw void 0!==o&&r(o.call(t)),u}}},function(t,e,n){var r=n(27),i=n(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(84),i=n(3)("iterator"),o=n(27);t.exports=n(1).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(2),i=n(86).set,o=r.MutationObserver||r.WebKitMutationObserver,u=r.process,a=r.Promise,s="process"==n(24)(u);t.exports=function(){var t,e,n,l=function(){var r,i;for(s&&(r=u.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(o){throw t?n():e=void 0,o}}e=void 0,r&&r.enter()};if(s)n=function(){u.nextTick(l)};else if(!o||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var h=a.resolve(void 0);n=function(){h.then(l)}}else n=function(){i.call(r,l)};else{var f=!0,c=document.createTextNode("");new o(l).observe(c,{characterData:!0}),n=function(){c.data=f=!f}}return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(2).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(13);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(10),u=n(8),a=n(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];u&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(3)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(u){}return n}},function(t,e,n){"use strict";var r=n(6),i=n(1),o=n(2),u=n(85),a=n(88);r(r.P+r.R,"Promise",{finally:function(t){var e=u(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return a(e,t()).then(function(){return n})}:t,n?function(n){return a(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(6),i=n(56),o=n(87);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";var r=n(200),i=n(201),o=n(28),u=n(39),a=i.padToEven,s=i.arrayContainsArray,l=i.getBinarySize;function h(t,e,n){if(-1===["string","number","object"].indexOf(typeof t)||null===t)return t;var r=o(t),i=n&&r.toString(16).length%2?"0":"";if(o(t).isNeg())throw new Error("[vapjs-format] while formatting quantity '"+r.toString(10)+"', invalid negative number. Number must be positive or zero.");return e?"0x"+i+r.toString(16):r}function f(t,e){var n=t;return-1===r.tags.indexOf(t)&&(n=h(t,e)),n}function c(t,e){var n=t,r=0;if("string"===typeof t&&(n="0x"+a(u(t)),r=l(n)),"0x00"===n&&(n="0x0"),"number"===typeof e&&null!==t&&"0x"!==n&&"0x0"!==n&&(!/^[0-9A-Fa-f]+$/.test(u(n))||r!==2+2*e))throw new Error("[vapjs-format] hex string '"+n+"' must be an alphanumeric "+(2+2*e)+" utf8 byte hex (chars: a-fA-F) string, is "+r+" bytes");return n}function d(t,e,n){var i=Object.assign({},e),o=null;if("string"===typeof t&&(o="Boolean|VapSyncing"===t?Object.assign({},r.objects.VapSyncing):"DATA|Transaction"===t?Object.assign({},r.objects.Transaction):Object.assign({},r.objects[t])),!s(Object.keys(e),o.__required))throw new Error("[vapjs-format] object "+JSON.stringify(e)+" must contain properties: "+o.__required.join(", "));return Object.keys(o).forEach(function(t){"__required"!==t&&"undefined"!==typeof e[t]&&(i[t]=m(o[t],e[t],n))}),i}function p(t,e,n,r){var i=e.slice(),o=t;if("Array|DATA"===t&&(o=["D"]),"FilterChange"===t&&"string"===typeof e[0]&&(o=["D32"]),!0===n&&"number"===typeof r&&e.length<r)throw new Error("array "+JSON.stringify(e)+" must contain at least "+r+" params, but only contains "+e.length+".");return o=o.slice(),e.forEach(function(t,e){var r=0;o.length>1&&(r=e),i[e]=m(o[r],t,n)}),i}function m(t,e,n,r){var i=e;return"Q"===t?i=h(e,n):"QP"===t?i=h(e,n,!0):"Q|T"===t?i=f(e,n):"D"===t?i=c(e):"D20"===t?i=c(e,20):"D32"===t?i=c(e,32):"object"===typeof e&&null!==e&&!1===Array.isArray(e)?i=d(t,e,n):Array.isArray(e)&&(i=p(t,e,n,r)),i}t.exports={schema:r,formatQuantity:h,formatQuantityOrTag:f,formatObject:d,formatArray:p,format:m,formatInputs:function(t,e){return m(r.methods[t][0],e,!0,r.methods[t][2])},formatOutputs:function(t,e){return m(r.methods[t][1],e,!1)}}},function(t){t.exports={methods:{web3_clientVersion:[[],"S"],web3_sha3:[["S"],"D",1],net_version:[[],"S"],net_peerCount:[[],"Q"],net_listening:[[],"B"],personal_sign:[["D","D20","S"],"D",2],personal_ecRecover:[["D","D"],"D20",2],vap_protocolVersion:[[],"S"],vap_syncing:[[],"B|VapSyncing"],vap_coinbase:[[],"D20"],vap_mining:[[],"B"],vap_hashrate:[[],"Q"],vap_gasPrice:[[],"Q"],vap_accounts:[[],["D20"]],vap_blockNumber:[[],"Q"],vap_getBalance:[["D20","Q|T"],"Q",1,2],vap_getStorageAt:[["D20","Q","Q|T"],"D",2,2],vap_getTransactionCount:[["D20","Q|T"],"Q",1,2],vap_getBlockTransactionCountByHash:[["D32"],"Q",1],vap_getBlockTransactionCountByNumber:[["Q|T"],"Q",1],vap_getUncleCountByBlockHash:[["D32"],"Q",1],vap_getUncleCountByBlockNumber:[["Q"],"Q",1],vap_getCode:[["D20","Q|T"],"D",1,2],vap_sign:[["D20","D"],"D",2],vap_signTypedData:[["Array|DATA","D20"],"D",1],vap_sendTransaction:[["SendTransaction"],"D",1],vap_sendRawTransaction:[["D"],"D32",1],vap_call:[["CallTransaction","Q|T"],"D",1,2],vap_estimateGas:[["EstimateTransaction","Q|T"],"Q",1],vap_getBlockByHash:[["D32","B"],"Block",2],vap_getBlockByNumber:[["Q|T","B"],"Block",2],vap_getTransactionByHash:[["D32"],"Transaction",1],vap_getTransactionByBlockHashAndIndex:[["D32","Q"],"Transaction",2],vap_getTransactionByBlockNumberAndIndex:[["Q|T","Q"],"Transaction",2],vap_getTransactionReceipt:[["D32"],"Receipt",1],vap_getUncleByBlockHashAndIndex:[["D32","Q"],"Block",1],vap_getUncleByBlockNumberAndIndex:[["Q|T","Q"],"Block",2],vap_getCompilers:[[],["S"]],vap_compileLLL:[["S"],"D",1],vap_compileSolidity:[["S"],"D",1],vap_compileSerpent:[["S"],"D",1],vap_newFilter:[["Filter"],"Q",1],vap_newBlockFilter:[[],"Q"],vap_newPendingTransactionFilter:[[],"Q"],vap_uninstallFilter:[["QP"],"B",1],vap_getFilterChanges:[["QP"],["FilterChange"],1],vap_getFilterLogs:[["QP"],["FilterChange"],1],vap_getLogs:[["Filter"],["FilterChange"],1],vap_getWork:[[],["D"]],vap_submitWork:[["D","D32","D32"],"B",3],vap_submitHashrate:[["D","D"],"B",2],db_putString:[["S","S","S"],"B",2],db_getString:[["S","S"],"S",2],db_putHex:[["S","S","D"],"B",2],db_getHex:[["S","S"],"D",2],shh_post:[["SHHPost"],"B",1],shh_version:[[],"S"],shh_newIdentity:[[],"D"],shh_hasIdentity:[["D"],"B"],shh_newGroup:[[],"D"],shh_addToGroup:[["D"],"B",1],shh_newFilter:[["SHHFilter"],"Q",1],shh_uninstallFilter:[["Q"],"B",1],shh_getFilterChanges:[["Q"],["SHHFilterChange"],1],shh_getMessages:[["Q"],["SHHFilterChange"],1]},tags:["latest","earliest","pending"],objects:{VapSyncing:{__required:[],startingBlock:"Q",currentBlock:"Q",highestBlock:"Q"},SendTransaction:{__required:["from","data"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},EstimateTransaction:{__required:[],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},CallTransaction:{__required:["to"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},Block:{__required:[],number:"Q",hash:"D32",parentHash:"D32",nonce:"D",sha3Uncles:"D",logsBloom:"D",transactionsRoot:"D",stateRoot:"D",receiptsRoot:"D",miner:"D",difficulty:"Q",totalDifficulty:"Q",extraData:"D",size:"Q",gasLimit:"Q",gasUsed:"Q",timestamp:"Q",transactions:["DATA|Transaction"],uncles:["D"]},Transaction:{__required:[],hash:"D32",nonce:"Q",blockHash:"D32",blockNumber:"Q",transactionIndex:"Q",from:"D20",to:"D20",value:"Q",gasPrice:"Q",gas:"Q",input:"D"},Receipt:{__required:[],transactionHash:"D32",transactionIndex:"Q",blockHash:"D32",blockNumber:"Q",cumulativeGasUsed:"Q",gasUsed:"Q",contractAddress:"D20",logs:["FilterChange"]},Filter:{__required:[],fromBlock:"Q|T",toBlock:"Q|T",address:"D20",topics:["D"]},FilterChange:{__required:[],removed:"B",logIndex:"Q",transactionIndex:"Q",transactionHash:"D32",blockHash:"D32",blockNumber:"Q",address:"D20",data:"Array|DATA",topics:["D"]},SHHPost:{__required:["topics","payload","priority","ttl"],from:"D",to:"D",topics:["D"],payload:"D",priority:"Q",ttl:"Q"},SHHFilter:{__required:["topics"],to:"D",topics:["D"]},SHHFilterChange:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"},SHHMessage:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"}}}},function(t,e,n){(function(e){var r=n(57),i=n(39);function o(t){var e=t;if("string"!==typeof e)throw new Error("[vapjs-util] while padding to even, value must be string, is currently ".concat(typeof e,", while padToEven."));return e.length%2&&(e="0".concat(e)),e}function u(t){var e=t.toString(16);return"0x".concat(o(e))}t.exports={arrayContainsArray:function(t,e,n){if(!0!==Array.isArray(t))throw new Error("[vapjs-util] method arrayContainsArray requires input 'superset' to be an array got type '".concat(typeof t,"'"));if(!0!==Array.isArray(e))throw new Error("[vapjs-util] method arrayContainsArray requires input 'subset' to be an array got type '".concat(typeof e,"'"));return e[Boolean(n)?"some":"every"](function(e){return t.indexOf(e)>=0})},intToBuffer:function(t){var n=u(t);return e.from(n.slice(2),"hex")},getBinarySize:function(t){if("string"!==typeof t)throw new Error("[vapjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '".concat(typeof t,"'."));return e.byteLength(t,"utf8")},isHexPrefixed:r,stripHexPrefix:i,padToEven:o,intToHex:u,fromAscii:function(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n).toString(16);e+=r.length<2?"0".concat(r):r}return"0x".concat(e)},fromUtf8:function(t){var n=new e(t,"utf8");return"0x".concat(o(n.toString("hex")).replace(/^0+|0+$/g,""))},toAscii:function(t){var e="",n=0,r=t.length;for("0x"===t.substring(0,2)&&(n=2);n<r;n+=2){var i=parseInt(t.substr(n,2),16);e+=String.fromCharCode(i)}return e},toUtf8:function(t){return new e(o(i(t).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(t,e,n){if(!Array.isArray(t))throw new Error("[vapjs-util] method getKeys expecting type Array as 'params' input, got '".concat(typeof t,"'"));if("string"!==typeof e)throw new Error("[vapjs-util] method getKeys expecting type String for input 'key' got '".concat(typeof e,"'."));for(var r=[],i=0;i<t.length;i++){var o=t[i][e];if(n&&!o)o="";else if("string"!==typeof o)throw new Error("invalid abi");r.push(o)}return r},isHexString:function(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}}}).call(this,n(5).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var u;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{u=n(5).Buffer}catch(k){}function a(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var u=t.charCodeAt(o)-48;r<<=4,r|=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),u=e;u<o;u++){var a=t.charCodeAt(u)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("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 o,u,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)u=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)u=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=a(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=a(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,u=o%r,a=Math.min(o,o-u)+n,l=0,h=n;h<a;h+=r)l=s(t,h,h+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==u){var f=1;for(l=s(t,h,t.length,e),h=0;h<u;h++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],f=[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 c(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],u=i*o,a=67108863&u,s=u/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var h=s>>>26,f=67108863&s,c=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=c;d++){var p=l-d|0;h+=(u=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&u}n.words[l]=0|f,s=0|h}return 0!==s?n.words[l]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,u=0;u<this.length;u++){var a=this.words[u],s=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||u!==this.length-1?l[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,u--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:l[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof u),this.toArrayLike(u,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var u,a,s="le"===e,l=new t(o),h=this.clone();if(s){for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[a]=u;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[o-a-1]=u}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,u=0;u<r.length;u++)o=(e=(0|n.words[u])-(0|r.words[u])+o)>>26,this.words[u]=67108863&e;for(;0!==o&&u<n.length;u++)o=(e=(0|n.words[u])+o)>>26,this.words[u]=67108863&e;if(0===o&&u<n.length&&n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this.length=Math.max(this.length,u),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var r,i,o,u=t.words,a=e.words,s=n.words,l=0,h=0|u[0],f=8191&h,c=h>>>13,d=0|u[1],p=8191&d,m=d>>>13,v=0|u[2],g=8191&v,y=v>>>13,w=0|u[3],M=8191&w,b=w>>>13,x=0|u[4],_=8191&x,k=x>>>13,S=0|u[5],E=8191&S,T=S>>>13,A=0|u[6],P=8191&A,C=A>>>13,O=0|u[7],N=8191&O,R=O>>>13,j=0|u[8],B=8191&j,I=j>>>13,D=0|u[9],L=8191&D,F=D>>>13,z=0|a[0],q=8191&z,U=z>>>13,Q=0|a[1],Z=8191&Q,H=Q>>>13,V=0|a[2],K=8191&V,W=V>>>13,$=0|a[3],Y=8191&$,J=$>>>13,G=0|a[4],X=8191&G,tt=G>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,ut=it>>>13,at=0|a[7],st=8191&at,lt=at>>>13,ht=0|a[8],ft=8191&ht,ct=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(c,q)|0))<<13)|0;l=((o=Math.imul(c,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,U))+Math.imul(m,q)|0,o=Math.imul(m,U);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(c,Z)|0))<<13)|0;l=((o=o+Math.imul(c,H)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,U))+Math.imul(y,q)|0,o=Math.imul(y,U),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,H)|0;var yt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(c,K)|0))<<13)|0;l=((o=o+Math.imul(c,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,U))+Math.imul(b,q)|0,o=Math.imul(b,U),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0;var wt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(c,Y)|0))<<13)|0;l=((o=o+Math.imul(c,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(_,q),i=(i=Math.imul(_,U))+Math.imul(k,q)|0,o=Math.imul(k,U),r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,H)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var Mt=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(c,X)|0))<<13)|0;l=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,U))+Math.imul(T,q)|0,o=Math.imul(T,U),r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,H)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var bt=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(c,nt)|0))<<13)|0;l=((o=o+Math.imul(c,rt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(P,q),i=(i=Math.imul(P,U))+Math.imul(C,q)|0,o=Math.imul(C,U),r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,ut)|0)+Math.imul(c,ot)|0))<<13)|0;l=((o=o+Math.imul(c,ut)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,q),i=(i=Math.imul(N,U))+Math.imul(R,q)|0,o=Math.imul(R,U),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,ut)|0;var _t=(l+(r=r+Math.imul(f,st)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(c,st)|0))<<13)|0;l=((o=o+Math.imul(c,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,U))+Math.imul(I,q)|0,o=Math.imul(I,U),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,ut)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,st)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,lt)|0;var kt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(c,ft)|0))<<13)|0;l=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,U))+Math.imul(F,q)|0,o=Math.imul(F,U),r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,ut)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(g,st)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ct)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(c,pt)|0))<<13)|0;l=((o=o+Math.imul(c,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,H))+Math.imul(F,Z)|0,o=Math.imul(F,H),r=r+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,ut)|0,r=r+Math.imul(M,st)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(b,st)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ct)|0;var Et=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul(F,K)|0,o=Math.imul(F,W),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(_,st)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ct)|0;var Tt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(y,pt)|0))<<13)|0;l=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,J))+Math.imul(F,Y)|0,o=Math.imul(F,J),r=r+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(E,st)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,lt)|0,r=r+Math.imul(_,ft)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(k,ft)|0,o=o+Math.imul(k,ct)|0;var At=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,ut)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,st)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(C,st)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ct)|0;var Pt=(l+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(k,pt)|0))<<13)|0;l=((o=o+Math.imul(k,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,ut)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ut)|0,r=r+Math.imul(N,st)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(R,st)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ct)|0;var Ct=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,ut))+Math.imul(F,ot)|0,o=Math.imul(F,ut),r=r+Math.imul(B,st)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(N,ft)|0,i=(i=i+Math.imul(N,ct)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,ct)|0;var Ot=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(L,st),i=(i=Math.imul(L,lt))+Math.imul(F,st)|0,o=Math.imul(F,lt),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ct)|0;var Nt=(l+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(L,ft),i=(i=Math.imul(L,ct))+Math.imul(F,ft)|0,o=Math.imul(F,ct);var Rt=(l+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return l=((o=Math.imul(F,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,s[0]=vt,s[1]=gt,s[2]=yt,s[3]=wt,s[4]=Mt,s[5]=bt,s[6]=xt,s[7]=_t,s[8]=kt,s[9]=St,s[10]=Et,s[11]=Tt,s[12]=At,s[13]=Pt,s[14]=Ct,s[15]=Ot,s[16]=Nt,s[17]=Rt,s[18]=jt,0!==l&&(s[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(d=c),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?c(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var u=i;i=0;for(var a=67108863&r,s=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=s;l++){var h=o-l,f=(0|t.words[h])*(0|e.words[l]),c=67108863&f;a=67108863&(c=c+a|0),i+=(u=(u=u+(f/67108864|0)|0)+(c>>>26)|0)>>>26,u&=67108863}n.words[o]=a,r=u,u=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var u=0;u<o;u++)r[u]=e[t[u]],i[u]=n[t[u]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var u=1;u<i;u<<=1)for(var a=u<<1,s=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<i;h+=a)for(var f=s,c=l,d=0;d<u;d++){var p=n[h+d],m=r[h+d],v=n[h+d+u],g=r[h+d+u],y=f*v-c*g;g=f*g+c*v,v=y,n[h+d]=p+v,r[h+d]=m+g,n[h+d+u]=p-v,r[h+d+u]=m-g,d!==a&&(y=s*f-l*c,c=s*c+l*f,f=y)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,u=0;u<e;u++)o+=0|t[u],n[2*u]=8191&o,o>>>=13,n[2*u+1]=8191&o,o>>>=13;for(u=2*e;u<i;++u)n[u]=0;r(0===o),r(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),u=new Array(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),f=new Array(r),c=n.words;c.length=r,this.convert13b(t.words,t.length,u,r),this.convert13b(e.words,e.length,l,r),this.transform(u,o,a,s,r,i),this.transform(l,o,h,f,r,i);for(var d=0;d<r;d++){var p=a[d]*h[d]-s[d]*f[d];s[d]=a[d]*f[d]+s[d]*h[d],a[d]=p}return this.conjugate(a,s,r),this.transform(a,s,c,o,r,i),this.conjugate(c,o,r),this.normalize13b(c,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var u=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,s=(0|this.words[e])-a<<n;this.words[e]=s|u,u=a>>>26-n}u&&(this.words[e]=u,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,u=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,s=n;if(i-=u,i=Math.max(0,i),s){for(var l=0;l<u;l++)s.words[l]=this.words[l];s.length=u}if(0===u);else if(this.length>u)for(this.length-=u,l=0;l<this.length;l++)this.words[l]=this.words[l+u];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=i);l--){var f=0|this.words[l];this.words[l]=h<<26-o|f>>>o,h=f&a}return s&&0!==h&&(s.words[s.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,u=t.length+n;this._expand(u);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var s=(0|t.words[i])*e;a=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,u=0|i.words[i.length-1];0!==(n=26-this._countBits(u))&&(i=i.ushln(n),r.iushln(n),u=0|i.words[i.length-1]);var a,s=r.length-i.length;if("mod"!==e){(a=new o(null)).length=s+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=r.clone()._ishlnsubmul(i,1,s);0===h.negative&&(r=h,a&&(a.words[s]=1));for(var f=s-1;f>=0;f--){var c=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(c=Math.min(c/u|0,67108863),r._ishlnsubmul(i,c,f);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=c)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.iadd(t)),{div:i,mod:u}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.isub(t)),{div:a.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,u,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),u=new o(0),a=new o(0),s=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),f=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||u.isOdd())&&(i.iadd(h),u.isub(f)),i.iushrn(1),u.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(h),s.isub(f)),a.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),u.isub(s)):(n.isub(e),a.isub(i),s.isub(u))}return{a:a,b:s,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,u=new o(1),a=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0===(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);for(var f=0,c=1;0===(n.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(n.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),u.isub(a)):(n.isub(e),a.isub(u))}return(i=0===e.cmpn(1)?u:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,u=n;0!==o&&u<this.length;u++){var a=0|this.words[u];o=(a+=o)>>>26,a&=67108863,this.words[u]=a}return 0!==o&&(this.words[u]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(y,g),y.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(b,g),b.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new b}return v[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),u=0;!i.isZero()&&0===i.andln(1);)u++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),s=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,l).cmp(s);)h.redIAdd(s);for(var f=this.pow(h,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=u;0!==d.cmp(a);){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));c=c.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return c},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],u=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],h=s-1;h>=0;h--){var f=l>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==u?(u<<=1,u|=f,(4===++a||0===r&&0===h)&&(i=this.mul(i,n[u]),a=0,u=0)):a=0}s=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(this,n(29)(t))},function(t,e,n){"use strict";var r=n(58);function i(t,e){var n=this,r=e||{};if(!(this instanceof i))throw new Error('[vapjs-rpc] the VapRPC object requires the "new" flag in order to function normally (i.e. `const vap = new VapRPC(provider);`).');n.options=Object.assign({jsonSpace:r.jsonSpace||0,max:r.max||9999999999999}),n.idCounter=Math.floor(Math.random()*n.options.max),n.setProvider=function(t){if("object"!==typeof t)throw new Error("[vapjs-rpc] the VapRPC object requires that the first input 'provider' must be an object, got '"+typeof t+"' (i.e. 'const vap = new VapRPC(provider);')");n.currentProvider=t},n.setProvider(t)}t.exports=i,i.prototype.sendAsync=function(t,e){var n=this;n.idCounter=n.idCounter%n.options.max;var i,o,u=(i=t,o=n.idCounter++,Object.assign({},{id:o,jsonrpc:"2.0",params:[]},i)),a=new Promise(function(t,e){n.currentProvider.sendAsync(u,function(r,i){var o=i||{};if(r||o.error){var a="[vapjs-rpc] "+(o.error?"rpc":"")+" error with payload "+JSON.stringify(u,null,n.options.jsonSpace)+" "+(r?String(r):JSON.stringify(o.error,null,n.options.jsonSpace)),s=new Error(a);return s.value=r||o.error,void e(s)}t(o.result)})});return e?r(a)(e):a}},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){return"[object Function]"===r.call(t)}},function(t,e,n){"use strict";(function(e){t.exports="function"===typeof e?e:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}}).call(this,n(206).setImmediate)},function(t,e,n){(function(t){var r="undefined"!==typeof t&&t||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(207),e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(38))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,u,a,s=1,l={},h=!1,f=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(u="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"===typeof e.data&&0===e.data.indexOf(u)&&p(+e.data.slice(u.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(u+e,"*")}),c.setImmediate=function(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[s]=i,r(s),s++},c.clearImmediate=d}function d(t){delete l[t]}function p(t){if(h)setTimeout(p,0,t);else{var e=l[t];if(e){h=!0;try{!function(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}(e)}finally{d(t),h=!1}}}}}("undefined"===typeof self?"undefined"===typeof t?this:t:self)}).call(this,n(38),n(43))},function(t,e,n){"use strict";function r(t,e){function n(t){var n=this;n.filterId=null,n.options=Object.assign({delay:300,decoder:function(t){return t},defaultFilterObject:{}},t||{}),n.watchers={},n.interval=setInterval(function(){null!==n.filterId&&Object.keys(n.watchers).length>0&&e.getFilterChanges(n.filterId,function(t,e){var r=[],i=null;if(!t)try{e.forEach(function(t,i){r[i]=e[i],"object"===typeof e[i]&&(r[i].data=n.options.decoder(r[i].data))})}catch(o){i=new Error("[vapjs-filter] while decoding filter change event data from RPC '"+JSON.stringify(r)+"': "+o)}Object.keys(n.watchers).forEach(function(o){var u=n.watchers[o];!0!==u.stop?i?(u.reject(i),u.callback(i,null)):(t?u.reject(t):Array.isArray(r)&&e.length>0&&u.resolve(r),u.callback(t,r)):delete n.watchers[o]})})},n.options.delay)}return n.prototype.at=function(t){this.filterId=t},n.prototype.watch=function(t){var e=t||function(){},n=this,r=Math.random().toString(36).substring(7),i=new Promise(function(t,i){n.watchers[r]={resolve:t,reject:i,callback:e,stop:!1}});return i.stopWatching=function(){n.watchers[r].stop=!0},i},n.prototype.uninstall=function(t){var n=this,r=t||function(){};return n.watchers=Object.assign({}),clearInterval(n.interval),new Promise(function(t,i){e.uninstallFilter(n.filterId,function(e,n){e?i(e):t(n),r(e,n)})})},n.prototype.new=function(){var n=function(){},r=this,i=[],o=[].slice.call(arguments);return"function"===typeof o[o.length-1]&&(n=o.pop()),"Filter"===t&&i.push(Object.assign(r.options.defaultFilterObject,o[o.length-1]||{})),new Promise(function(o,u){i.push(function(t,e){t?u(t):(r.filterId=e,o(e)),n(t,e)}),e["new"+t].apply(e,i)})},n}t.exports=function t(e){if(!(this instanceof t))throw new Error("the VapFilter object must be instantiated with `new` flag.. (e.g. `const filters = new VapFilter(query);`)");if("object"!==typeof e)throw new Error("the VapFilter object must be instantiated with an VapQuery instance (e.g. `const filters = new VapFilter(new VapQuery(provider));`). See github.com/vapjs/vapjs-query for more details..");this.Filter=r("Filter",e),this.BlockFilter=r("BlockFilter",e),this.PendingTransactionFilter=r("PendingTransactionFilter",e)}},function(t,e,n){"use strict";var r,i=n(32),o=(r=i)&&r.__esModule?r:{default:r};var u=n(89),a=(n(30).keccak_256,n(90),n(59).getKeys),s=n(212),l=n(91);t.exports=function(t){return function(e,n,r){if(!Array.isArray(e))throw new Error("[vapjs-contract] Contract ABI must be type Array, got type "+typeof e);if("undefined"!==typeof n&&"string"!==typeof n)throw new Error("[vapjs-contract] Contract bytecode must be type String, got type "+typeof n);if("undefined"!==typeof r&&"object"!==typeof r)throw new Error("[vapjs-contract] Contract default tx object must be type Object, got type "+typeof e);var i={at:function(i){return new s({address:i,query:t,contractBytecode:n,contractDefaultTxObject:r,contractABI:e})},new:function(){var i={},s=null,h=[].slice.call(arguments);"function"===typeof h[h.length-1]&&(s=h.pop()),l(h)&&(i=h.pop());var f=function(t){return t.filter(function(t){return"constructor"===t.type})[0]}(e),c=(0,o.default)({},r,i);if(n&&(c.data=n),f){var d=u.encodeParams(a(f.inputs,"type"),h).substring(2);c.data=""+c.data+d}return s?t.sendTransaction(c,s):t.sendTransaction(c)}};return i}}},function(t,e,n){"use strict";(function(e){var r=n(211),i=n(28),o=n(30).keccak_256;function u(t){for(var e=t,n=e[0];e.length>0&&"0"===n.toString();)n=(e=e.slice(1))[0];return e}function a(t){var n=t.toString(16);return n.length%2&&(n="0"+n),u(new e(n,"hex"))}function s(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function l(t,n){var r=t;if(!e.isBuffer(r)){if(!s(r)){var i=new Error(n?"[vapjs-abi] invalid "+n:"[vapjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[vapjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=r,i}(r=r.substring(2)).length%2&&(r="0"+r),r=new e(r,"hex")}return r}function h(t,n){return{encode:function(r){var o=r;return"object"===typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!==typeof o&&"number"!==typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*t).maskn(8*t),n&&(o=o.fromTwos(8*t).toTwos(256)),o.toArrayLike(e,"be",32)},decode:function(e,i){var o=32-t,u=new r(e.slice(i+o,i+32));return u=n?u.fromTwos(8*t):u.maskn(8*t),{consumed:32,value:new r(u.toString(10))}}}}var f=h(32,!1),c={encode:function(t){return f.encode(t?1:0)},decode:function(t,e){var n=f.decode(t,e);return{consumed:n.consumed,value:!n.value.isZero()}}};function d(t){return{encode:function(t){var n=t;if(32===(n=l(n)).length)return n;var r=new e(32);return r.fill(0),n.copy(r),r},decode:function(e,n){if(0!==e.length&&e.length<n+32)throw new Error("[vapjs-abi] while decoding fixed bytes, invalid bytes data length: "+t);return{consumed:32,value:"0x"+e.slice(n,n+t).toString("hex")}}}}var p={encode:function(t){var n=t,r=new e(32);if(!s(n,20))throw new Error("[vapjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return n=l(n),r.fill(0),n.copy(r,12),r},decode:function(t,e){if(0===t.length)return{consumed:32,value:"0x"};if(0!==t.length&&t.length<e+32)throw new Error("[vapjs-abi] while decoding address data, invalid address data, invalid byte length "+t.length);return{consumed:32,value:"0x"+t.slice(e+12,e+32).toString("hex")}}};function m(t){var n=parseInt(32*Math.ceil(t.length/32)),r=new e(n-t.length);return r.fill(0),e.concat([f.encode(t.length),t,r])}function v(t,e){if(0!==t.length&&t.length<e+32)throw new Error("[vapjs-abi] while decoding dynamic bytes data, invalid bytes length: "+t.length+" should be less than "+(e+32));var n=f.decode(t,e).value;if(n=n.toNumber(),0!==t.length&&t.length<e+32+n)throw new Error("[vapjs-abi] while decoding dynamic bytes data, invalid bytes length: "+t.length+" should be less than "+(e+32+n));return{consumed:parseInt(32+32*Math.ceil(n/32),10),value:t.slice(e+32,e+32+n)}}var g={encode:function(t){return m(l(t))},decode:function(t,e){var n=v(t,e);return n.value="0x"+n.value.toString("hex"),n},dynamic:!0},y={encode:function(t){return m(new e(t,"utf8"))},decode:function(t,e){var n=v(t,e);return n.value=n.value.toString("utf8"),n},dynamic:!0};function w(t,n){return{encode:function(r){var i=new e(0),o=n;if(!Array.isArray(r))throw new Error("[vapjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=r.length,i=f.encode(o)),o!==r.length)throw new Error("[vapjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+r.length);return r.forEach(function(n){i=e.concat([i,t.encode(n)])}),i},decode:function(e,r){var i,o=n,u=r,a=0;-1===o&&(o=(i=f.decode(e,u)).value.toNumber(),a+=i.consumed,u+=i.consumed);for(var s=[],l=0;l<o;l++){var h=t.decode(e,u);a+=h.consumed,u+=h.consumed,s.push(h.value)}return{consumed:a,value:s}},dynamic:-1===n}}var M=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:r,bnToBuffer:a,isHexString:s,hexOrBuffer:l,hexlify:function(t){return"number"===typeof t?"0x"+a(new r(t)).toString("hex"):t.mod||t.modulo?"0x"+a(t).toString("hex"):"0x"+l(t).toString("hex")},stripZeros:u,keccak256:o,getKeys:function(t,e,n){var r=[];if(!Array.isArray(t))throw new Error("[vapjs-abi] while getting keys, invalid params value "+JSON.stringify(t));for(var i=0;i<t.length;i++){var o=t[i][e];if(n&&!o)o="";else if("string"!==typeof o)throw new Error("[vapjs-abi] while getKeys found invalid ABI data structure, type value not string");r.push(o)}return r},numberToBN:i,coderNumber:h,uint256Coder:f,coderBoolean:c,coderFixedBytes:d,coderAddress:p,coderDynamicBytes:g,coderString:y,coderArray:w,paramTypePart:M,getParamCoder:function(t){for(var e=t,n=null,r="[vapjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(e)+" is either invalid or unsupported by vapjs-abi.";e;){var i=e.match(M);if(!i)throw new Error(r);e=e.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(n)throw new Error(r);var u=parseInt(i[3]||256);if(0===u||u>256||u%8!==0)throw new Error("[vapjs-abi] while getting param coder for type "+e+", invalid "+o+"<N> width: "+e);n=h(u/8,"int"===o);break;case"bool":if(n)throw new Error(r);n=c;break;case"string":if(n)throw new Error(r);n=y;break;case"bytes":if(n)throw new Error(r);if(i[3]){var a=parseInt(i[3]);if(0===a||a>32)throw new Error("[vapjs-abi] while getting param coder for prefix bytes, invalid type "+e+", size "+a+" should be 0 or greater than 32");n=d(a)}else n=g;break;case"address":if(n)throw new Error(r);n=p;break;case"[]":if(!n||n.dynamic)throw new Error(r);n=w(n,-1);break;default:if(!n||n.dynamic)throw new Error(r);n=w(n,parseInt(i[6]))}}if(!n)throw new Error(r);return n}}}).call(this,n(5).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var u;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{u=n(5).Buffer}catch(k){}function a(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var u=t.charCodeAt(o)-48;r<<=4,r|=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),u=e;u<o;u++){var a=t.charCodeAt(u)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("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 o,u,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)u=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)u=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=a(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=a(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,u=o%r,a=Math.min(o,o-u)+n,l=0,h=n;h<a;h+=r)l=s(t,h,h+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==u){var f=1;for(l=s(t,h,t.length,e),h=0;h<u;h++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],f=[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 c(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],u=i*o,a=67108863&u,s=u/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var h=s>>>26,f=67108863&s,c=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=c;d++){var p=l-d|0;h+=(u=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&u}n.words[l]=0|f,s=0|h}return 0!==s?n.words[l]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,u=0;u<this.length;u++){var a=this.words[u],s=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||u!==this.length-1?l[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,u--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:l[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof u),this.toArrayLike(u,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var u,a,s="le"===e,l=new t(o),h=this.clone();if(s){for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[a]=u;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[o-a-1]=u}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,u=0;u<r.length;u++)o=(e=(0|n.words[u])-(0|r.words[u])+o)>>26,this.words[u]=67108863&e;for(;0!==o&&u<n.length;u++)o=(e=(0|n.words[u])+o)>>26,this.words[u]=67108863&e;if(0===o&&u<n.length&&n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this.length=Math.max(this.length,u),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var r,i,o,u=t.words,a=e.words,s=n.words,l=0,h=0|u[0],f=8191&h,c=h>>>13,d=0|u[1],p=8191&d,m=d>>>13,v=0|u[2],g=8191&v,y=v>>>13,w=0|u[3],M=8191&w,b=w>>>13,x=0|u[4],_=8191&x,k=x>>>13,S=0|u[5],E=8191&S,T=S>>>13,A=0|u[6],P=8191&A,C=A>>>13,O=0|u[7],N=8191&O,R=O>>>13,j=0|u[8],B=8191&j,I=j>>>13,D=0|u[9],L=8191&D,F=D>>>13,z=0|a[0],q=8191&z,U=z>>>13,Q=0|a[1],Z=8191&Q,H=Q>>>13,V=0|a[2],K=8191&V,W=V>>>13,$=0|a[3],Y=8191&$,J=$>>>13,G=0|a[4],X=8191&G,tt=G>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,ut=it>>>13,at=0|a[7],st=8191&at,lt=at>>>13,ht=0|a[8],ft=8191&ht,ct=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(c,q)|0))<<13)|0;l=((o=Math.imul(c,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,U))+Math.imul(m,q)|0,o=Math.imul(m,U);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(c,Z)|0))<<13)|0;l=((o=o+Math.imul(c,H)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,U))+Math.imul(y,q)|0,o=Math.imul(y,U),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,H)|0;var yt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(c,K)|0))<<13)|0;l=((o=o+Math.imul(c,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,U))+Math.imul(b,q)|0,o=Math.imul(b,U),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0;var wt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(c,Y)|0))<<13)|0;l=((o=o+Math.imul(c,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(_,q),i=(i=Math.imul(_,U))+Math.imul(k,q)|0,o=Math.imul(k,U),r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,H)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var Mt=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(c,X)|0))<<13)|0;l=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,U))+Math.imul(T,q)|0,o=Math.imul(T,U),r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,H)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var bt=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(c,nt)|0))<<13)|0;l=((o=o+Math.imul(c,rt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(P,q),i=(i=Math.imul(P,U))+Math.imul(C,q)|0,o=Math.imul(C,U),r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,ut)|0)+Math.imul(c,ot)|0))<<13)|0;l=((o=o+Math.imul(c,ut)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,q),i=(i=Math.imul(N,U))+Math.imul(R,q)|0,o=Math.imul(R,U),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,ut)|0;var _t=(l+(r=r+Math.imul(f,st)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(c,st)|0))<<13)|0;l=((o=o+Math.imul(c,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,U))+Math.imul(I,q)|0,o=Math.imul(I,U),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,ut)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,st)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,lt)|0;var kt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(c,ft)|0))<<13)|0;l=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,U))+Math.imul(F,q)|0,o=Math.imul(F,U),r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,ut)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(g,st)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ct)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(c,pt)|0))<<13)|0;l=((o=o+Math.imul(c,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,H))+Math.imul(F,Z)|0,o=Math.imul(F,H),r=r+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,ut)|0,r=r+Math.imul(M,st)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(b,st)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ct)|0;var Et=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul(F,K)|0,o=Math.imul(F,W),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(_,st)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ct)|0;var Tt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(y,pt)|0))<<13)|0;l=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,J))+Math.imul(F,Y)|0,o=Math.imul(F,J),r=r+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(E,st)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,lt)|0,r=r+Math.imul(_,ft)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(k,ft)|0,o=o+Math.imul(k,ct)|0;var At=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,ut)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,st)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(C,st)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ct)|0;var Pt=(l+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(k,pt)|0))<<13)|0;l=((o=o+Math.imul(k,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,ut)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ut)|0,r=r+Math.imul(N,st)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(R,st)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ct)|0;var Ct=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,ut))+Math.imul(F,ot)|0,o=Math.imul(F,ut),r=r+Math.imul(B,st)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(N,ft)|0,i=(i=i+Math.imul(N,ct)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,ct)|0;var Ot=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(L,st),i=(i=Math.imul(L,lt))+Math.imul(F,st)|0,o=Math.imul(F,lt),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ct)|0;var Nt=(l+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(L,ft),i=(i=Math.imul(L,ct))+Math.imul(F,ft)|0,o=Math.imul(F,ct);var Rt=(l+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return l=((o=Math.imul(F,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,s[0]=vt,s[1]=gt,s[2]=yt,s[3]=wt,s[4]=Mt,s[5]=bt,s[6]=xt,s[7]=_t,s[8]=kt,s[9]=St,s[10]=Et,s[11]=Tt,s[12]=At,s[13]=Pt,s[14]=Ct,s[15]=Ot,s[16]=Nt,s[17]=Rt,s[18]=jt,0!==l&&(s[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(d=c),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?c(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var u=i;i=0;for(var a=67108863&r,s=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=s;l++){var h=o-l,f=(0|t.words[h])*(0|e.words[l]),c=67108863&f;a=67108863&(c=c+a|0),i+=(u=(u=u+(f/67108864|0)|0)+(c>>>26)|0)>>>26,u&=67108863}n.words[o]=a,r=u,u=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var u=0;u<o;u++)r[u]=e[t[u]],i[u]=n[t[u]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var u=1;u<i;u<<=1)for(var a=u<<1,s=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<i;h+=a)for(var f=s,c=l,d=0;d<u;d++){var p=n[h+d],m=r[h+d],v=n[h+d+u],g=r[h+d+u],y=f*v-c*g;g=f*g+c*v,v=y,n[h+d]=p+v,r[h+d]=m+g,n[h+d+u]=p-v,r[h+d+u]=m-g,d!==a&&(y=s*f-l*c,c=s*c+l*f,f=y)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,u=0;u<e;u++)o+=0|t[u],n[2*u]=8191&o,o>>>=13,n[2*u+1]=8191&o,o>>>=13;for(u=2*e;u<i;++u)n[u]=0;r(0===o),r(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),u=new Array(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),f=new Array(r),c=n.words;c.length=r,this.convert13b(t.words,t.length,u,r),this.convert13b(e.words,e.length,l,r),this.transform(u,o,a,s,r,i),this.transform(l,o,h,f,r,i);for(var d=0;d<r;d++){var p=a[d]*h[d]-s[d]*f[d];s[d]=a[d]*f[d]+s[d]*h[d],a[d]=p}return this.conjugate(a,s,r),this.transform(a,s,c,o,r,i),this.conjugate(c,o,r),this.normalize13b(c,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var u=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,s=(0|this.words[e])-a<<n;this.words[e]=s|u,u=a>>>26-n}u&&(this.words[e]=u,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,u=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,s=n;if(i-=u,i=Math.max(0,i),s){for(var l=0;l<u;l++)s.words[l]=this.words[l];s.length=u}if(0===u);else if(this.length>u)for(this.length-=u,l=0;l<this.length;l++)this.words[l]=this.words[l+u];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=i);l--){var f=0|this.words[l];this.words[l]=h<<26-o|f>>>o,h=f&a}return s&&0!==h&&(s.words[s.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,u=t.length+n;this._expand(u);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var s=(0|t.words[i])*e;a=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,u=0|i.words[i.length-1];0!==(n=26-this._countBits(u))&&(i=i.ushln(n),r.iushln(n),u=0|i.words[i.length-1]);var a,s=r.length-i.length;if("mod"!==e){(a=new o(null)).length=s+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=r.clone()._ishlnsubmul(i,1,s);0===h.negative&&(r=h,a&&(a.words[s]=1));for(var f=s-1;f>=0;f--){var c=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(c=Math.min(c/u|0,67108863),r._ishlnsubmul(i,c,f);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=c)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.iadd(t)),{div:i,mod:u}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.isub(t)),{div:a.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,u,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),u=new o(0),a=new o(0),s=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),f=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||u.isOdd())&&(i.iadd(h),u.isub(f)),i.iushrn(1),u.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(h),s.isub(f)),a.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),u.isub(s)):(n.isub(e),a.isub(i),s.isub(u))}return{a:a,b:s,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,u=new o(1),a=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0===(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);for(var f=0,c=1;0===(n.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(n.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),u.isub(a)):(n.isub(e),a.isub(u))}return(i=0===e.cmpn(1)?u:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,u=n;0!==o&&u<this.length;u++){var a=0|this.words[u];o=(a+=o)>>>26,a&=67108863,this.words[u]=a}return 0!==o&&(this.words[u]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(y,g),y.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(b,g),b.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new b}return v[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),u=0;!i.isZero()&&0===i.andln(1);)u++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),s=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,l).cmp(s);)h.redIAdd(s);for(var f=this.pow(h,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=u;0!==d.cmp(a);){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));c=c.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return c},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],u=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],h=s-1;h>=0;h--){var f=l>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==u?(u<<=1,u|=f,(4===++a||0===r&&0===h)&&(i=this.mul(i,n[u]),a=0,u=0)):a=0}s=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(this,n(29)(t))},function(t,e,n){"use strict";var r=a(n(81)),i=a(n(82)),o=a(n(83)),u=a(n(32));function a(t){return t&&t.__esModule?t:{default:t}}var s=n(89),l=n(90),h=n(59).getKeys,f=n(30).keccak_256,c=n(91),d=n(58);t.exports=function(){var t=(a=(0,o.default)(r.default.mark(function t(e){var o,a,l,h,f,d=e.methodObject,p=e.methodArgs;return r.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o="call",a={},c(p)&&(a=p.pop()),(l=(0,u.default)({},n.defaultTxObject,a,{to:n.address})).data=s.encodeMethod(d,p),!1===d.constant&&(o="sendTransaction"),t.next=8,n.query[o](l);case 8:if(h=t.sent,"call"!==o){t.next=19;break}return t.prev=10,f=s.decodeMethod(d,h),t.abrupt("return",f);case 15:throw t.prev=15,t.t0=t.catch(10),new Error("[vapjs-contract] while formatting incoming raw call data "+(0,i.default)(h)+" "+t.t0);case 19:return t.abrupt("return",h);case 20:case"end":return t.stop()}},t,this,[[10,15]])})),function(t){return a.apply(this,arguments)}),e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this;var a;n.abi=e.contractABI||[],n.query=e.query,n.address=e.address||"0x",n.bytecode=e.contractBytecode||"0x",n.defaultTxObject=e.contractDefaultTxObject||{},n.filters=new l(n.query),(p=n.abi,p.filter(function(t){return("function"===t.type||"event"===t.type)&&t.name.length>0})).forEach(function(e){"function"===e.type?n[e.name]=function(e){return function(){var n=void 0,r=[].slice.call(arguments);"function"===typeof r[r.length-1]&&(n=r.pop());var i=t({methodObject:e,methodArgs:r});return n?d(i)(n):i}}(e):"event"===e.type&&(n[e.name]=function(t){return function(){var e=[].slice.call(arguments),r=h(t.inputs,"type",!1),i="0x"+f(t.name+"("+r.join(",")+")"),o=[i],a=(0,u.default)({},e[0])||{},l=(0,u.default)({},e[0]||{},{to:n.address,topics:o}),c=(0,u.default)({},a,{decoder:function(e){return s.decodeEvent(t,e,o)},defaultFilterObject:l});return new n.filters.Filter(c)}}(e))});var p}},function(t,e,n){"use strict";var r=n(214);function i(t,e){if(!(this instanceof i))throw new Error('[vapjs-provider-http] the HttpProvider instance requires the "new" flag in order to function normally (e.g. `const vap = new Vap(new HttpProvider());`).');if("string"!==typeof t)throw new Error('[vapjs-provider-http] the HttpProvider instance requires that the host be specified (e.g. `new HttpProvider("http://localhost:8545")` or via service like infura `new HttpProvider("http://ropsten.infura.io")`)');this.host=t,this.timeout=e||0}i.prototype.sendAsync=function(t,e){var n=this,i=new r;i.timeout=n.timeout,i.open("POST",n.host,!0),i.setRequestHeader("Content-Type","application/json"),i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var t=i.responseText,r=null;try{t=JSON.parse(t)}catch(o){r=function(t,e){var n=t&&t.error&&t.error.message?"[vapjs-provider-http] "+t.error.message:"[vapjs-provider-http] Invalid JSON RPC response from host provider "+e+": "+JSON.stringify(t,null,2);return new Error(n)}(i.responseText,n.host)}e(r,t)}},i.ontimeout=function(){e("[vapjs-provider-http] CONNECTION TIMEOUT: http request timeout after "+n.timeout+" ms. (i.e. your connect has timed out for whatever reason, check your provider).",null)};try{i.send(JSON.stringify(t))}catch(o){e("[vapjs-provider-http] CONNECTION ERROR: Couldn't connect to node '"+n.host+"': "+JSON.stringify(o,null,2),null)}},t.exports=i},function(t,e){t.exports=XMLHttpRequest},function(t,e,n){"use strict";(function(e){var r=n(216),i=r.uint256Coder,o=(r.coderBoolean,r.coderFixedBytes,r.coderAddress,r.coderDynamicBytes,r.coderString,r.coderArray,r.paramTypePart,r.getParamCoder);function u(){}function a(t,n){if(t.length!==n.length)throw new Error("[vapjs-abi] while encoding params, types/values mismatch, Your contract requires "+t.length+" types (arguments), and you passed in "+n.length);var r=[];function u(t){return parseInt(32*Math.ceil(t/32))}t.forEach(function(t,e){var i=o(t);r.push({dynamic:i.dynamic,value:i.encode(n[e])})});var a=0,s=0;r.forEach(function(t){t.dynamic?(a+=32,s+=u(t.value.length)):a+=u(t.value.length)});var l=0,h=a,f=new e(a+s);return r.forEach(function(t,e){t.dynamic?(i.encode(h).copy(f,l),l+=32,t.value.copy(f,h),h+=u(t.value.length)):(t.value.copy(f,l),l+=u(t.value.length))}),"0x"+f.toString("hex")}function s(t,e,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(n=e,e=t,t=[]),n=r.hexOrBuffer(n);var s=new u,l=0;return e.forEach(function(e,r){var u=o(e);if(u.dynamic){var h=i.decode(n,l),f=u.decode(n,h.value.toNumber());l+=h.consumed}else{f=u.decode(n,l);l+=f.consumed}a&&(s[r]=f.value),t[r]&&(s[t[r]]=f.value)}),s}function l(t){var n=t.name+"("+r.getKeys(t.inputs,"type").join(",")+")";return"0x"+new e(r.keccak256(n),"hex").slice(0,4).toString("hex")}function h(t,e){var n=a(r.getKeys(t.inputs,"type"),e).substring(2);return""+l(t)+n}function f(t){var e=t.name+"("+r.getKeys(t.inputs,"type").join(",")+")";return"0x"+r.keccak256(e)}function c(t,n,i){var u=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=t.inputs.filter(function(t){return!t.indexed}),l=s(r.getKeys(a,"name",!0),r.getKeys(a,"type"),r.hexOrBuffer(n),u),h=t.anonymous?0:1;return t.inputs.filter(function(t){return t.indexed}).map(function(t,n){var r=new e(i[n+h].slice(2),"hex"),u=o(t.type);l[t.name]=u.decode(r,0).value}),l._eventName=t.name,l}function d(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e.topics[0]===f(t))return c(t,e.data,e.topics,n)}t.exports={encodeParams:a,decodeParams:s,encodeMethod:h,decodeMethod:function(t,e){return s(r.getKeys(t.outputs,"name",!0),r.getKeys(t.outputs,"type"),r.hexOrBuffer(e))},encodeEvent:function(t,e){return h(t,e)},decodeEvent:c,decodeLogItem:d,logDecoder:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t.filter(function(t){return"event"===t.type}).map(function(t){n[f(t)]=t}),function(t){return t.map(function(t){return d(n[t.topics[0]],t,e)}).filter(function(t){return t})}},eventSignature:f,encodeSignature:l}}).call(this,n(5).Buffer)},function(t,e,n){"use strict";(function(e){var r=n(217),i=n(28),o=n(30).keccak_256;function u(t){for(var e=t,n=e[0];e.length>0&&"0"===n.toString();)n=(e=e.slice(1))[0];return e}function a(t){var n=t.toString(16);return n.length%2&&(n="0"+n),u(new e(n,"hex"))}function s(t,e){return!("string"!==typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function l(t,n){var r=t;if(!e.isBuffer(r)){if(!s(r)){var i=new Error(n?"[vapjs-abi] invalid "+n:"[vapjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[vapjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=r,i}(r=r.substring(2)).length%2&&(r="0"+r),r=new e(r,"hex")}return r}function h(t,n){return{encode:function(r){var o=r;return"object"===typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!==typeof o&&"number"!==typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*t).maskn(8*t),n&&(o=o.fromTwos(8*t).toTwos(256)),o.toArrayLike(e,"be",32)},decode:function(e,i){var o=32-t,u=new r(e.slice(i+o,i+32));return u=n?u.fromTwos(8*t):u.maskn(8*t),{consumed:32,value:new r(u.toString(10))}}}}var f=h(32,!1),c={encode:function(t){return f.encode(t?1:0)},decode:function(t,e){var n=f.decode(t,e);return{consumed:n.consumed,value:!n.value.isZero()}}};function d(t){return{encode:function(t){var n=t;if(32===(n=l(n)).length)return n;var r=new e(32);return r.fill(0),n.copy(r),r},decode:function(e,n){if(0!==e.length&&e.length<n+32)throw new Error("[vapjs-abi] while decoding fixed bytes, invalid bytes data length: "+t);return{consumed:32,value:"0x"+e.slice(n,n+t).toString("hex")}}}}var p={encode:function(t){var n=t,r=new e(32);if(!s(n,20))throw new Error("[vapjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return n=l(n),r.fill(0),n.copy(r,12),r},decode:function(t,e){if(0===t.length)return{consumed:32,value:"0x"};if(0!==t.length&&t.length<e+32)throw new Error("[vapjs-abi] while decoding address data, invalid address data, invalid byte length "+t.length);return{consumed:32,value:"0x"+t.slice(e+12,e+32).toString("hex")}}};function m(t){var n=parseInt(32*Math.ceil(t.length/32)),r=new e(n-t.length);return r.fill(0),e.concat([f.encode(t.length),t,r])}function v(t,e){if(0!==t.length&&t.length<e+32)throw new Error("[vapjs-abi] while decoding dynamic bytes data, invalid bytes length: "+t.length+" should be less than "+(e+32));var n=f.decode(t,e).value;if(n=n.toNumber(),0!==t.length&&t.length<e+32+n)throw new Error("[vapjs-abi] while decoding dynamic bytes data, invalid bytes length: "+t.length+" should be less than "+(e+32+n));return{consumed:parseInt(32+32*Math.ceil(n/32),10),value:t.slice(e+32,e+32+n)}}var g={encode:function(t){return m(l(t))},decode:function(t,e){var n=v(t,e);return n.value="0x"+n.value.toString("hex"),n},dynamic:!0},y={encode:function(t){return m(new e(t,"utf8"))},decode:function(t,e){var n=v(t,e);return n.value=n.value.toString("utf8"),n},dynamic:!0};function w(t,n){return{encode:function(r){var i=new e(0),o=n;if(!Array.isArray(r))throw new Error("[vapjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=r.length,i=f.encode(o)),o!==r.length)throw new Error("[vapjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+r.length);return r.forEach(function(n){i=e.concat([i,t.encode(n)])}),i},decode:function(e,r){var i,o=n,u=r,a=0;-1===o&&(o=(i=f.decode(e,u)).value.toNumber(),a+=i.consumed,u+=i.consumed);for(var s=[],l=0;l<o;l++){var h=t.decode(e,u);a+=h.consumed,u+=h.consumed,s.push(h.value)}return{consumed:a,value:s}},dynamic:-1===n}}var M=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:r,bnToBuffer:a,isHexString:s,hexOrBuffer:l,hexlify:function(t){return"number"===typeof t?"0x"+a(new r(t)).toString("hex"):t.mod||t.modulo?"0x"+a(t).toString("hex"):"0x"+l(t).toString("hex")},stripZeros:u,keccak256:o,getKeys:function(t,e,n){var r=[];if(!Array.isArray(t))throw new Error("[vapjs-abi] while getting keys, invalid params value "+JSON.stringify(t));for(var i=0;i<t.length;i++){var o=t[i][e];if(n&&!o)o="";else if("string"!==typeof o)throw new Error("[vapjs-abi] while getKeys found invalid ABI data structure, type value not string");r.push(o)}return r},numberToBN:i,coderNumber:h,uint256Coder:f,coderBoolean:c,coderFixedBytes:d,coderAddress:p,coderDynamicBytes:g,coderString:y,coderArray:w,paramTypePart:M,getParamCoder:function(t){for(var e=t,n=null,r="[vapjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(e)+" is either invalid or unsupported by vapjs-abi.";e;){var i=e.match(M);if(!i)throw new Error(r);e=e.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(n)throw new Error(r);var u=parseInt(i[3]||256);if(0===u||u>256||u%8!==0)throw new Error("[vapjs-abi] while getting param coder for type "+e+", invalid "+o+"<N> width: "+e);n=h(u/8,"int"===o);break;case"bool":if(n)throw new Error(r);n=c;break;case"string":if(n)throw new Error(r);n=y;break;case"bytes":if(n)throw new Error(r);if(i[3]){var a=parseInt(i[3]);if(0===a||a>32)throw new Error("[vapjs-abi] while getting param coder for prefix bytes, invalid type "+e+", size "+a+" should be 0 or greater than 32");n=d(a)}else n=g;break;case"address":if(n)throw new Error(r);n=p;break;case"[]":if(!n||n.dynamic)throw new Error(r);n=w(n,-1);break;default:if(!n||n.dynamic)throw new Error(r);n=w(n,parseInt(i[6]))}}if(!n)throw new Error(r);return n}}}).call(this,n(5).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var u;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{u=n(5).Buffer}catch(k){}function a(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var u=t.charCodeAt(o)-48;r<<=4,r|=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),u=e;u<o;u++){var a=t.charCodeAt(u)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("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 o,u,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)u=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)u=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=a(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=a(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,u=o%r,a=Math.min(o,o-u)+n,l=0,h=n;h<a;h+=r)l=s(t,h,h+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==u){var f=1;for(l=s(t,h,t.length,e),h=0;h<u;h++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],f=[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 c(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],u=i*o,a=67108863&u,s=u/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var h=s>>>26,f=67108863&s,c=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=c;d++){var p=l-d|0;h+=(u=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&u}n.words[l]=0|f,s=0|h}return 0!==s?n.words[l]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,u=0;u<this.length;u++){var a=this.words[u],s=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||u!==this.length-1?l[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,u--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:l[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof u),this.toArrayLike(u,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var u,a,s="le"===e,l=new t(o),h=this.clone();if(s){for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[a]=u;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[o-a-1]=u}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,u=0;u<r.length;u++)o=(e=(0|n.words[u])-(0|r.words[u])+o)>>26,this.words[u]=67108863&e;for(;0!==o&&u<n.length;u++)o=(e=(0|n.words[u])+o)>>26,this.words[u]=67108863&e;if(0===o&&u<n.length&&n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this.length=Math.max(this.length,u),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var r,i,o,u=t.words,a=e.words,s=n.words,l=0,h=0|u[0],f=8191&h,c=h>>>13,d=0|u[1],p=8191&d,m=d>>>13,v=0|u[2],g=8191&v,y=v>>>13,w=0|u[3],M=8191&w,b=w>>>13,x=0|u[4],_=8191&x,k=x>>>13,S=0|u[5],E=8191&S,T=S>>>13,A=0|u[6],P=8191&A,C=A>>>13,O=0|u[7],N=8191&O,R=O>>>13,j=0|u[8],B=8191&j,I=j>>>13,D=0|u[9],L=8191&D,F=D>>>13,z=0|a[0],q=8191&z,U=z>>>13,Q=0|a[1],Z=8191&Q,H=Q>>>13,V=0|a[2],K=8191&V,W=V>>>13,$=0|a[3],Y=8191&$,J=$>>>13,G=0|a[4],X=8191&G,tt=G>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,ut=it>>>13,at=0|a[7],st=8191&at,lt=at>>>13,ht=0|a[8],ft=8191&ht,ct=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(c,q)|0))<<13)|0;l=((o=Math.imul(c,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,U))+Math.imul(m,q)|0,o=Math.imul(m,U);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(c,Z)|0))<<13)|0;l=((o=o+Math.imul(c,H)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,U))+Math.imul(y,q)|0,o=Math.imul(y,U),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,H)|0;var yt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(c,K)|0))<<13)|0;l=((o=o+Math.imul(c,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,U))+Math.imul(b,q)|0,o=Math.imul(b,U),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0;var wt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(c,Y)|0))<<13)|0;l=((o=o+Math.imul(c,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(_,q),i=(i=Math.imul(_,U))+Math.imul(k,q)|0,o=Math.imul(k,U),r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,H)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var Mt=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(c,X)|0))<<13)|0;l=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,U))+Math.imul(T,q)|0,o=Math.imul(T,U),r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,H)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var bt=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(c,nt)|0))<<13)|0;l=((o=o+Math.imul(c,rt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(P,q),i=(i=Math.imul(P,U))+Math.imul(C,q)|0,o=Math.imul(C,U),r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,ut)|0)+Math.imul(c,ot)|0))<<13)|0;l=((o=o+Math.imul(c,ut)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,q),i=(i=Math.imul(N,U))+Math.imul(R,q)|0,o=Math.imul(R,U),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,ut)|0;var _t=(l+(r=r+Math.imul(f,st)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(c,st)|0))<<13)|0;l=((o=o+Math.imul(c,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,U))+Math.imul(I,q)|0,o=Math.imul(I,U),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,ut)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,st)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,lt)|0;var kt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(c,ft)|0))<<13)|0;l=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,U))+Math.imul(F,q)|0,o=Math.imul(F,U),r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,ut)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(g,st)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ct)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(c,pt)|0))<<13)|0;l=((o=o+Math.imul(c,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,H))+Math.imul(F,Z)|0,o=Math.imul(F,H),r=r+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,ut)|0,r=r+Math.imul(M,st)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(b,st)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ct)|0;var Et=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul(F,K)|0,o=Math.imul(F,W),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(_,st)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ct)|0;var Tt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(y,pt)|0))<<13)|0;l=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,J))+Math.imul(F,Y)|0,o=Math.imul(F,J),r=r+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(E,st)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,lt)|0,r=r+Math.imul(_,ft)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(k,ft)|0,o=o+Math.imul(k,ct)|0;var At=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,ut)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,st)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(C,st)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ct)|0;var Pt=(l+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(k,pt)|0))<<13)|0;l=((o=o+Math.imul(k,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,ut)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ut)|0,r=r+Math.imul(N,st)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(R,st)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ct)|0;var Ct=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,ut))+Math.imul(F,ot)|0,o=Math.imul(F,ut),r=r+Math.imul(B,st)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(N,ft)|0,i=(i=i+Math.imul(N,ct)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,ct)|0;var Ot=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(L,st),i=(i=Math.imul(L,lt))+Math.imul(F,st)|0,o=Math.imul(F,lt),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ct)|0;var Nt=(l+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(L,ft),i=(i=Math.imul(L,ct))+Math.imul(F,ft)|0,o=Math.imul(F,ct);var Rt=(l+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return l=((o=Math.imul(F,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,s[0]=vt,s[1]=gt,s[2]=yt,s[3]=wt,s[4]=Mt,s[5]=bt,s[6]=xt,s[7]=_t,s[8]=kt,s[9]=St,s[10]=Et,s[11]=Tt,s[12]=At,s[13]=Pt,s[14]=Ct,s[15]=Ot,s[16]=Nt,s[17]=Rt,s[18]=jt,0!==l&&(s[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(d=c),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?c(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var u=i;i=0;for(var a=67108863&r,s=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=s;l++){var h=o-l,f=(0|t.words[h])*(0|e.words[l]),c=67108863&f;a=67108863&(c=c+a|0),i+=(u=(u=u+(f/67108864|0)|0)+(c>>>26)|0)>>>26,u&=67108863}n.words[o]=a,r=u,u=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var u=0;u<o;u++)r[u]=e[t[u]],i[u]=n[t[u]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var u=1;u<i;u<<=1)for(var a=u<<1,s=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<i;h+=a)for(var f=s,c=l,d=0;d<u;d++){var p=n[h+d],m=r[h+d],v=n[h+d+u],g=r[h+d+u],y=f*v-c*g;g=f*g+c*v,v=y,n[h+d]=p+v,r[h+d]=m+g,n[h+d+u]=p-v,r[h+d+u]=m-g,d!==a&&(y=s*f-l*c,c=s*c+l*f,f=y)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,u=0;u<e;u++)o+=0|t[u],n[2*u]=8191&o,o>>>=13,n[2*u+1]=8191&o,o>>>=13;for(u=2*e;u<i;++u)n[u]=0;r(0===o),r(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),u=new Array(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),f=new Array(r),c=n.words;c.length=r,this.convert13b(t.words,t.length,u,r),this.convert13b(e.words,e.length,l,r),this.transform(u,o,a,s,r,i),this.transform(l,o,h,f,r,i);for(var d=0;d<r;d++){var p=a[d]*h[d]-s[d]*f[d];s[d]=a[d]*f[d]+s[d]*h[d],a[d]=p}return this.conjugate(a,s,r),this.transform(a,s,c,o,r,i),this.conjugate(c,o,r),this.normalize13b(c,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var u=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,s=(0|this.words[e])-a<<n;this.words[e]=s|u,u=a>>>26-n}u&&(this.words[e]=u,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,u=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,s=n;if(i-=u,i=Math.max(0,i),s){for(var l=0;l<u;l++)s.words[l]=this.words[l];s.length=u}if(0===u);else if(this.length>u)for(this.length-=u,l=0;l<this.length;l++)this.words[l]=this.words[l+u];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=i);l--){var f=0|this.words[l];this.words[l]=h<<26-o|f>>>o,h=f&a}return s&&0!==h&&(s.words[s.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,u=t.length+n;this._expand(u);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var s=(0|t.words[i])*e;a=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,u=0|i.words[i.length-1];0!==(n=26-this._countBits(u))&&(i=i.ushln(n),r.iushln(n),u=0|i.words[i.length-1]);var a,s=r.length-i.length;if("mod"!==e){(a=new o(null)).length=s+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=r.clone()._ishlnsubmul(i,1,s);0===h.negative&&(r=h,a&&(a.words[s]=1));for(var f=s-1;f>=0;f--){var c=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(c=Math.min(c/u|0,67108863),r._ishlnsubmul(i,c,f);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=c)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.iadd(t)),{div:i,mod:u}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.isub(t)),{div:a.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,u,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),u=new o(0),a=new o(0),s=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),f=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||u.isOdd())&&(i.iadd(h),u.isub(f)),i.iushrn(1),u.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(h),s.isub(f)),a.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),u.isub(s)):(n.isub(e),a.isub(i),s.isub(u))}return{a:a,b:s,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,u=new o(1),a=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0===(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);for(var f=0,c=1;0===(n.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(n.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),u.isub(a)):(n.isub(e),a.isub(u))}return(i=0===e.cmpn(1)?u:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,u=n;0!==o&&u<this.length;u++){var a=0|this.words[u];o=(a+=o)>>>26,a&=67108863,this.words[u]=a}return 0!==o&&(this.words[u]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(y,g),y.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(b,g),b.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new b}return v[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),u=0;!i.isZero()&&0===i.andln(1);)u++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),s=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,l).cmp(s);)h.redIAdd(s);for(var f=this.pow(h,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=u;0!==d.cmp(a);){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));c=c.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return c},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],u=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],h=s-1;h>=0;h--){var f=l>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==u?(u<<=1,u|=f,(4===++a||0===r&&0===h)&&(i=this.mul(i,n[u]),a=0,u=0)):a=0}s=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(this,n(29)(t))},function(t,e,n){"use strict";var r=n(219),i=n(28),o=new r(0),u=new r(-1),a={novapor:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtovapor:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picovapor:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanovapor:"1000000000",nano:"1000000000",szabo:"1000000000000",microvapor:"1000000000000",micro:"1000000000000",finney:"1000000000000000",millivapor:"1000000000000000",milli:"1000000000000000",vapor:"1000000000000000000",kvapor:"1000000000000000000000",grand:"1000000000000000000000",mvapor:"1000000000000000000000000",gvapor:"1000000000000000000000000000",tvapor:"1000000000000000000000000000000"};function s(t){var e=t?t.toLowerCase():"vapor",n=a[e];if("string"!==typeof n)throw new Error("[vapjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(a,null,2));return new r(n,10)}function l(t){if("string"===typeof t){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}if("number"===typeof t)return String(t);if("object"===typeof t&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10);throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}t.exports={unitMap:a,numberToString:l,getValueOfUnit:s,fromWei:function(t,e,n){var r=i(t),l=r.lt(o),h=s(e),f=a[e].length-1||1,c=n||{};l&&(r=r.mul(u));for(var d=r.mod(h).toString(10);d.length<f;)d="0"+d;c.pad||(d=d.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=r.div(h).toString(10);c.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=p+("0"==d?"":"."+d);return l&&(m="-"+m),m},toWei:function(t,e){var n=l(t),i=s(e),o=a[e].length-1||1,h="-"===n.substring(0,1);if(h&&(n=n.substring(1)),"."===n)throw new Error("[vapjs-unit] while converting number "+t+" to wei, invalid value");var f=n.split(".");if(f.length>2)throw new Error("[vapjs-unit] while converting number "+t+" to wei,  too many decimal points");var c=f[0],d=f[1];if(c||(c="0"),d||(d="0"),d.length>o)throw new Error("[vapjs-unit] while converting number "+t+" to wei, too many decimal places");for(;d.length<o;)d+="0";c=new r(c),d=new r(d);var p=c.mul(i).add(d);return h&&(p=p.mul(u)),new r(p.toString(10),10)}}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var u;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{u=n(5).Buffer}catch(k){}function a(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var u=t.charCodeAt(o)-48;r<<=4,r|=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),u=e;u<o;u++){var a=t.charCodeAt(u)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("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 o,u,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)u=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)u=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=a(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=a(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,u=o%r,a=Math.min(o,o-u)+n,l=0,h=n;h<a;h+=r)l=s(t,h,h+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==u){var f=1;for(l=s(t,h,t.length,e),h=0;h<u;h++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],f=[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 c(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],u=i*o,a=67108863&u,s=u/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var h=s>>>26,f=67108863&s,c=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=c;d++){var p=l-d|0;h+=(u=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&u}n.words[l]=0|f,s=0|h}return 0!==s?n.words[l]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,u=0;u<this.length;u++){var a=this.words[u],s=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||u!==this.length-1?l[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,u--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:l[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof u),this.toArrayLike(u,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var u,a,s="le"===e,l=new t(o),h=this.clone();if(s){for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[a]=u;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[o-a-1]=u}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,u=0;u<r.length;u++)o=(e=(0|n.words[u])-(0|r.words[u])+o)>>26,this.words[u]=67108863&e;for(;0!==o&&u<n.length;u++)o=(e=(0|n.words[u])+o)>>26,this.words[u]=67108863&e;if(0===o&&u<n.length&&n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this.length=Math.max(this.length,u),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var r,i,o,u=t.words,a=e.words,s=n.words,l=0,h=0|u[0],f=8191&h,c=h>>>13,d=0|u[1],p=8191&d,m=d>>>13,v=0|u[2],g=8191&v,y=v>>>13,w=0|u[3],M=8191&w,b=w>>>13,x=0|u[4],_=8191&x,k=x>>>13,S=0|u[5],E=8191&S,T=S>>>13,A=0|u[6],P=8191&A,C=A>>>13,O=0|u[7],N=8191&O,R=O>>>13,j=0|u[8],B=8191&j,I=j>>>13,D=0|u[9],L=8191&D,F=D>>>13,z=0|a[0],q=8191&z,U=z>>>13,Q=0|a[1],Z=8191&Q,H=Q>>>13,V=0|a[2],K=8191&V,W=V>>>13,$=0|a[3],Y=8191&$,J=$>>>13,G=0|a[4],X=8191&G,tt=G>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,ut=it>>>13,at=0|a[7],st=8191&at,lt=at>>>13,ht=0|a[8],ft=8191&ht,ct=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(c,q)|0))<<13)|0;l=((o=Math.imul(c,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,U))+Math.imul(m,q)|0,o=Math.imul(m,U);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(c,Z)|0))<<13)|0;l=((o=o+Math.imul(c,H)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,U))+Math.imul(y,q)|0,o=Math.imul(y,U),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,H)|0;var yt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(c,K)|0))<<13)|0;l=((o=o+Math.imul(c,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,U))+Math.imul(b,q)|0,o=Math.imul(b,U),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0;var wt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(c,Y)|0))<<13)|0;l=((o=o+Math.imul(c,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(_,q),i=(i=Math.imul(_,U))+Math.imul(k,q)|0,o=Math.imul(k,U),r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,H)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var Mt=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(c,X)|0))<<13)|0;l=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,U))+Math.imul(T,q)|0,o=Math.imul(T,U),r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,H)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var bt=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(c,nt)|0))<<13)|0;l=((o=o+Math.imul(c,rt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(P,q),i=(i=Math.imul(P,U))+Math.imul(C,q)|0,o=Math.imul(C,U),r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,ut)|0)+Math.imul(c,ot)|0))<<13)|0;l=((o=o+Math.imul(c,ut)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,q),i=(i=Math.imul(N,U))+Math.imul(R,q)|0,o=Math.imul(R,U),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,ut)|0;var _t=(l+(r=r+Math.imul(f,st)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(c,st)|0))<<13)|0;l=((o=o+Math.imul(c,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,U))+Math.imul(I,q)|0,o=Math.imul(I,U),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,ut)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,st)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,lt)|0;var kt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(c,ft)|0))<<13)|0;l=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,U))+Math.imul(F,q)|0,o=Math.imul(F,U),r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,ut)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(g,st)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ct)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(c,pt)|0))<<13)|0;l=((o=o+Math.imul(c,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,H))+Math.imul(F,Z)|0,o=Math.imul(F,H),r=r+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,ut)|0,r=r+Math.imul(M,st)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(b,st)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ct)|0;var Et=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul(F,K)|0,o=Math.imul(F,W),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(_,st)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ct)|0;var Tt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(y,pt)|0))<<13)|0;l=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,J))+Math.imul(F,Y)|0,o=Math.imul(F,J),r=r+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(E,st)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,lt)|0,r=r+Math.imul(_,ft)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(k,ft)|0,o=o+Math.imul(k,ct)|0;var At=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,ut)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,st)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(C,st)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ct)|0;var Pt=(l+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(k,pt)|0))<<13)|0;l=((o=o+Math.imul(k,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,ut)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ut)|0,r=r+Math.imul(N,st)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(R,st)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ct)|0;var Ct=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,ut))+Math.imul(F,ot)|0,o=Math.imul(F,ut),r=r+Math.imul(B,st)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(N,ft)|0,i=(i=i+Math.imul(N,ct)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,ct)|0;var Ot=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(L,st),i=(i=Math.imul(L,lt))+Math.imul(F,st)|0,o=Math.imul(F,lt),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ct)|0;var Nt=(l+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(L,ft),i=(i=Math.imul(L,ct))+Math.imul(F,ft)|0,o=Math.imul(F,ct);var Rt=(l+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return l=((o=Math.imul(F,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,s[0]=vt,s[1]=gt,s[2]=yt,s[3]=wt,s[4]=Mt,s[5]=bt,s[6]=xt,s[7]=_t,s[8]=kt,s[9]=St,s[10]=Et,s[11]=Tt,s[12]=At,s[13]=Pt,s[14]=Ct,s[15]=Ot,s[16]=Nt,s[17]=Rt,s[18]=jt,0!==l&&(s[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(d=c),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?c(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var u=i;i=0;for(var a=67108863&r,s=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=s;l++){var h=o-l,f=(0|t.words[h])*(0|e.words[l]),c=67108863&f;a=67108863&(c=c+a|0),i+=(u=(u=u+(f/67108864|0)|0)+(c>>>26)|0)>>>26,u&=67108863}n.words[o]=a,r=u,u=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var u=0;u<o;u++)r[u]=e[t[u]],i[u]=n[t[u]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var u=1;u<i;u<<=1)for(var a=u<<1,s=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<i;h+=a)for(var f=s,c=l,d=0;d<u;d++){var p=n[h+d],m=r[h+d],v=n[h+d+u],g=r[h+d+u],y=f*v-c*g;g=f*g+c*v,v=y,n[h+d]=p+v,r[h+d]=m+g,n[h+d+u]=p-v,r[h+d+u]=m-g,d!==a&&(y=s*f-l*c,c=s*c+l*f,f=y)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,u=0;u<e;u++)o+=0|t[u],n[2*u]=8191&o,o>>>=13,n[2*u+1]=8191&o,o>>>=13;for(u=2*e;u<i;++u)n[u]=0;r(0===o),r(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),u=new Array(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),f=new Array(r),c=n.words;c.length=r,this.convert13b(t.words,t.length,u,r),this.convert13b(e.words,e.length,l,r),this.transform(u,o,a,s,r,i),this.transform(l,o,h,f,r,i);for(var d=0;d<r;d++){var p=a[d]*h[d]-s[d]*f[d];s[d]=a[d]*f[d]+s[d]*h[d],a[d]=p}return this.conjugate(a,s,r),this.transform(a,s,c,o,r,i),this.conjugate(c,o,r),this.normalize13b(c,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var u=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,s=(0|this.words[e])-a<<n;this.words[e]=s|u,u=a>>>26-n}u&&(this.words[e]=u,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,u=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,s=n;if(i-=u,i=Math.max(0,i),s){for(var l=0;l<u;l++)s.words[l]=this.words[l];s.length=u}if(0===u);else if(this.length>u)for(this.length-=u,l=0;l<this.length;l++)this.words[l]=this.words[l+u];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=i);l--){var f=0|this.words[l];this.words[l]=h<<26-o|f>>>o,h=f&a}return s&&0!==h&&(s.words[s.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,u=t.length+n;this._expand(u);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var s=(0|t.words[i])*e;a=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,u=0|i.words[i.length-1];0!==(n=26-this._countBits(u))&&(i=i.ushln(n),r.iushln(n),u=0|i.words[i.length-1]);var a,s=r.length-i.length;if("mod"!==e){(a=new o(null)).length=s+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=r.clone()._ishlnsubmul(i,1,s);0===h.negative&&(r=h,a&&(a.words[s]=1));for(var f=s-1;f>=0;f--){var c=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(c=Math.min(c/u|0,67108863),r._ishlnsubmul(i,c,f);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=c)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.iadd(t)),{div:i,mod:u}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.isub(t)),{div:a.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,u,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),u=new o(0),a=new o(0),s=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),f=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||u.isOdd())&&(i.iadd(h),u.isub(f)),i.iushrn(1),u.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(h),s.isub(f)),a.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),u.isub(s)):(n.isub(e),a.isub(i),s.isub(u))}return{a:a,b:s,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,u=new o(1),a=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0===(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);for(var f=0,c=1;0===(n.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(n.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),u.isub(a)):(n.isub(e),a.isub(u))}return(i=0===e.cmpn(1)?u:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,u=n;0!==o&&u<this.length;u++){var a=0|this.words[u];o=(a+=o)>>>26,a&=67108863,this.words[u]=a}return 0!==o&&(this.words[u]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(y,g),y.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(b,g),b.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new b}return v[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),u=0;!i.isZero()&&0===i.andln(1);)u++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),s=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,l).cmp(s);)h.redIAdd(s);for(var f=this.pow(h,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=u;0!==d.cmp(a);){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));c=c.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return c},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],u=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],h=s-1;h>=0;h--){var f=l>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==u?(u<<=1,u|=f,(4===++a||0===r&&0===h)&&(i=this.mul(i,n[u]),a=0,u=0)):a=0}s=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(this,n(29)(t))},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var u;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{u=n(5).Buffer}catch(k){}function a(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var u=t.charCodeAt(o)-48;r<<=4,r|=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return r}function s(t,e,n,r){for(var i=0,o=Math.min(t.length,n),u=e;u<o;u++){var a=t.charCodeAt(u)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){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):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("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 o,u,a=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)u=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)u=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=u<<a&67108863,this.words[o+1]=u>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=a(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=a(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,u=o%r,a=Math.min(o,o-u)+n,l=0,h=n;h<a;h+=r)l=s(t,h,h+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==u){var f=1;for(l=s(t,h,t.length,e),h=0;h<u;h++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],f=[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 c(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],u=i*o,a=67108863&u,s=u/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var h=s>>>26,f=67108863&s,c=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=c;d++){var p=l-d|0;h+=(u=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&u}n.words[l]=0|f,s=0|h}return 0!==s?n.words[l]=0|s:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,u=0;u<this.length;u++){var a=this.words[u],s=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||u!==this.length-1?l[6-s.length]+s+n:s+n,(i+=2)>=26&&(i-=26,u--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:l[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof u),this.toArrayLike(u,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var u,a,s="le"===e,l=new t(o),h=this.clone();if(s){for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[a]=u;for(;a<o;a++)l[a]=0}else{for(a=0;a<o-i;a++)l[a]=0;for(a=0;!h.isZero();a++)u=h.andln(255),h.iushrn(8),l[o-a-1]=u}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,u=0;u<r.length;u++)o=(e=(0|n.words[u])-(0|r.words[u])+o)>>26,this.words[u]=67108863&e;for(;0!==o&&u<n.length;u++)o=(e=(0|n.words[u])+o)>>26,this.words[u]=67108863&e;if(0===o&&u<n.length&&n!==this)for(;u<n.length;u++)this.words[u]=n.words[u];return this.length=Math.max(this.length,u),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,n){var r,i,o,u=t.words,a=e.words,s=n.words,l=0,h=0|u[0],f=8191&h,c=h>>>13,d=0|u[1],p=8191&d,m=d>>>13,v=0|u[2],g=8191&v,y=v>>>13,w=0|u[3],M=8191&w,b=w>>>13,x=0|u[4],_=8191&x,k=x>>>13,S=0|u[5],E=8191&S,T=S>>>13,A=0|u[6],P=8191&A,C=A>>>13,O=0|u[7],N=8191&O,R=O>>>13,j=0|u[8],B=8191&j,I=j>>>13,D=0|u[9],L=8191&D,F=D>>>13,z=0|a[0],q=8191&z,U=z>>>13,Q=0|a[1],Z=8191&Q,H=Q>>>13,V=0|a[2],K=8191&V,W=V>>>13,$=0|a[3],Y=8191&$,J=$>>>13,G=0|a[4],X=8191&G,tt=G>>>13,et=0|a[5],nt=8191&et,rt=et>>>13,it=0|a[6],ot=8191&it,ut=it>>>13,at=0|a[7],st=8191&at,lt=at>>>13,ht=0|a[8],ft=8191&ht,ct=ht>>>13,dt=0|a[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,U))+Math.imul(c,q)|0))<<13)|0;l=((o=Math.imul(c,U))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,U))+Math.imul(m,q)|0,o=Math.imul(m,U);var gt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,H)|0)+Math.imul(c,Z)|0))<<13)|0;l=((o=o+Math.imul(c,H)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,U))+Math.imul(y,q)|0,o=Math.imul(y,U),r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,H)|0;var yt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(c,K)|0))<<13)|0;l=((o=o+Math.imul(c,W)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,U))+Math.imul(b,q)|0,o=Math.imul(b,U),r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,W)|0;var wt=(l+(r=r+Math.imul(f,Y)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(c,Y)|0))<<13)|0;l=((o=o+Math.imul(c,J)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(_,q),i=(i=Math.imul(_,U))+Math.imul(k,q)|0,o=Math.imul(k,U),r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,H)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(y,K)|0,o=o+Math.imul(y,W)|0,r=r+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,J)|0;var Mt=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(c,X)|0))<<13)|0;l=((o=o+Math.imul(c,tt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,U))+Math.imul(T,q)|0,o=Math.imul(T,U),r=r+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(k,Z)|0,o=o+Math.imul(k,H)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(g,Y)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(y,Y)|0,o=o+Math.imul(y,J)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,tt)|0;var bt=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(c,nt)|0))<<13)|0;l=((o=o+Math.imul(c,rt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(P,q),i=(i=Math.imul(P,U))+Math.imul(C,q)|0,o=Math.imul(C,U),r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,H)|0,r=r+Math.imul(_,K)|0,i=(i=i+Math.imul(_,W)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,W)|0,r=r+Math.imul(M,Y)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(g,X)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(y,X)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var xt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,ut)|0)+Math.imul(c,ot)|0))<<13)|0;l=((o=o+Math.imul(c,ut)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(N,q),i=(i=Math.imul(N,U))+Math.imul(R,q)|0,o=Math.imul(R,U),r=r+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,H)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,H)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,J)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,J)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,ut)|0;var _t=(l+(r=r+Math.imul(f,st)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(c,st)|0))<<13)|0;l=((o=o+Math.imul(c,lt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,U))+Math.imul(I,q)|0,o=Math.imul(I,U),r=r+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,H)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,W)|0,r=r+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(T,Y)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,ut)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,ut)|0,r=r+Math.imul(p,st)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,st)|0,o=o+Math.imul(m,lt)|0;var kt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(c,ft)|0))<<13)|0;l=((o=o+Math.imul(c,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,U))+Math.imul(F,q)|0,o=Math.imul(F,U),r=r+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,H)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(N,K)|0,i=(i=i+Math.imul(N,W)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(P,Y)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Y)|0,o=o+Math.imul(C,J)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(_,nt)|0,i=(i=i+Math.imul(_,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,ut)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,ut)|0,r=r+Math.imul(g,st)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(y,st)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,ct)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(c,pt)|0))<<13)|0;l=((o=o+Math.imul(c,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,Z),i=(i=Math.imul(L,H))+Math.imul(F,Z)|0,o=Math.imul(F,H),r=r+Math.imul(B,K)|0,i=(i=i+Math.imul(B,W)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,W)|0,r=r+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(R,Y)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(_,ot)|0,i=(i=i+Math.imul(_,ut)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,ut)|0,r=r+Math.imul(M,st)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(b,st)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(y,ft)|0,o=o+Math.imul(y,ct)|0;var Et=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,K),i=(i=Math.imul(L,W))+Math.imul(F,K)|0,o=Math.imul(F,W),r=r+Math.imul(B,Y)|0,i=(i=i+Math.imul(B,J)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,J)|0,r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,tt)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,ut)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,ut)|0,r=r+Math.imul(_,st)|0,i=(i=i+Math.imul(_,lt)|0)+Math.imul(k,st)|0,o=o+Math.imul(k,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,ct)|0;var Tt=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(y,pt)|0))<<13)|0;l=((o=o+Math.imul(y,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,Y),i=(i=Math.imul(L,J))+Math.imul(F,Y)|0,o=Math.imul(F,J),r=r+Math.imul(B,X)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(N,nt)|0,i=(i=i+Math.imul(N,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,ut)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,ut)|0,r=r+Math.imul(E,st)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(T,st)|0,o=o+Math.imul(T,lt)|0,r=r+Math.imul(_,ft)|0,i=(i=i+Math.imul(_,ct)|0)+Math.imul(k,ft)|0,o=o+Math.imul(k,ct)|0;var At=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),r=r+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,rt)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(N,ot)|0,i=(i=i+Math.imul(N,ut)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,ut)|0,r=r+Math.imul(P,st)|0,i=(i=i+Math.imul(P,lt)|0)+Math.imul(C,st)|0,o=o+Math.imul(C,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,ct)|0;var Pt=(l+(r=r+Math.imul(_,pt)|0)|0)+((8191&(i=(i=i+Math.imul(_,mt)|0)+Math.imul(k,pt)|0))<<13)|0;l=((o=o+Math.imul(k,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,nt),i=(i=Math.imul(L,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,ut)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ut)|0,r=r+Math.imul(N,st)|0,i=(i=i+Math.imul(N,lt)|0)+Math.imul(R,st)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(C,ft)|0,o=o+Math.imul(C,ct)|0;var Ct=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(T,pt)|0))<<13)|0;l=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(L,ot),i=(i=Math.imul(L,ut))+Math.imul(F,ot)|0,o=Math.imul(F,ut),r=r+Math.imul(B,st)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(I,st)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(N,ft)|0,i=(i=i+Math.imul(N,ct)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,ct)|0;var Ot=(l+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,mt)|0)+Math.imul(C,pt)|0))<<13)|0;l=((o=o+Math.imul(C,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(L,st),i=(i=Math.imul(L,lt))+Math.imul(F,st)|0,o=Math.imul(F,lt),r=r+Math.imul(B,ft)|0,i=(i=i+Math.imul(B,ct)|0)+Math.imul(I,ft)|0,o=o+Math.imul(I,ct)|0;var Nt=(l+(r=r+Math.imul(N,pt)|0)|0)+((8191&(i=(i=i+Math.imul(N,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(L,ft),i=(i=Math.imul(L,ct))+Math.imul(F,ft)|0,o=Math.imul(F,ct);var Rt=(l+(r=r+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(I,pt)|0))<<13)|0;l=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(L,pt))|0)+((8191&(i=(i=Math.imul(L,mt))+Math.imul(F,pt)|0))<<13)|0;return l=((o=Math.imul(F,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,s[0]=vt,s[1]=gt,s[2]=yt,s[3]=wt,s[4]=Mt,s[5]=bt,s[6]=xt,s[7]=_t,s[8]=kt,s[9]=St,s[10]=Et,s[11]=Tt,s[12]=At,s[13]=Pt,s[14]=Ct,s[15]=Ot,s[16]=Nt,s[17]=Rt,s[18]=jt,0!==l&&(s[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(d=c),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,e):n<63?c(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var u=i;i=0;for(var a=67108863&r,s=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=s;l++){var h=o-l,f=(0|t.words[h])*(0|e.words[l]),c=67108863&f;a=67108863&(c=c+a|0),i+=(u=(u=u+(f/67108864|0)|0)+(c>>>26)|0)>>>26,u&=67108863}n.words[o]=a,r=u,u=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var u=0;u<o;u++)r[u]=e[t[u]],i[u]=n[t[u]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var u=1;u<i;u<<=1)for(var a=u<<1,s=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),h=0;h<i;h+=a)for(var f=s,c=l,d=0;d<u;d++){var p=n[h+d],m=r[h+d],v=n[h+d+u],g=r[h+d+u],y=f*v-c*g;g=f*g+c*v,v=y,n[h+d]=p+v,r[h+d]=m+g,n[h+d+u]=p-v,r[h+d+u]=m-g,d!==a&&(y=s*f-l*c,c=s*c+l*f,f=y)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,u=0;u<e;u++)o+=0|t[u],n[2*u]=8191&o,o>>>=13,n[2*u+1]=8191&o,o>>>=13;for(u=2*e;u<i;++u)n[u]=0;r(0===o),r(0===(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),u=new Array(r),a=new Array(r),s=new Array(r),l=new Array(r),h=new Array(r),f=new Array(r),c=n.words;c.length=r,this.convert13b(t.words,t.length,u,r),this.convert13b(e.words,e.length,l,r),this.transform(u,o,a,s,r,i),this.transform(l,o,h,f,r,i);for(var d=0;d<r;d++){var p=a[d]*h[d]-s[d]*f[d];s[d]=a[d]*f[d]+s[d]*h[d],a[d]=p}return this.conjugate(a,s,r),this.transform(a,s,c,o,r,i),this.conjugate(c,o,r),this.normalize13b(c,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"===typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var u=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,s=(0|this.words[e])-a<<n;this.words[e]=s|u,u=a>>>26-n}u&&(this.words[e]=u,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,u=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,s=n;if(i-=u,i=Math.max(0,i),s){for(var l=0;l<u;l++)s.words[l]=this.words[l];s.length=u}if(0===u);else if(this.length>u)for(this.length-=u,l=0;l<this.length;l++)this.words[l]=this.words[l+u];else this.words[0]=0,this.length=1;var h=0;for(l=this.length-1;l>=0&&(0!==h||l>=i);l--){var f=0|this.words[l];this.words[l]=h<<26-o|f>>>o,h=f&a}return s&&0!==h&&(s.words[s.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(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)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(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 e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,u=t.length+n;this._expand(u);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+a;var s=(0|t.words[i])*e;a=((o-=67108863&s)>>26)-(s/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,u=0|i.words[i.length-1];0!==(n=26-this._countBits(u))&&(i=i.ushln(n),r.iushln(n),u=0|i.words[i.length-1]);var a,s=r.length-i.length;if("mod"!==e){(a=new o(null)).length=s+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var h=r.clone()._ishlnsubmul(i,1,s);0===h.negative&&(r=h,a&&(a.words[s]=1));for(var f=s-1;f>=0;f--){var c=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(c=Math.min(c/u|0,67108863),r._ishlnsubmul(i,c,f);0!==r.negative;)c--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=c)}return a&&a.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.iadd(t)),{div:i,mod:u}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):0!==(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(u=a.mod.neg(),n&&0!==u.negative&&u.isub(t)),{div:a.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,u,a},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),u=new o(0),a=new o(0),s=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),f=e.clone();!e.isZero();){for(var c=0,d=1;0===(e.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(e.iushrn(c);c-- >0;)(i.isOdd()||u.isOdd())&&(i.iadd(h),u.isub(f)),i.iushrn(1),u.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(h),s.isub(f)),a.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(a),u.isub(s)):(n.isub(e),a.isub(i),s.isub(u))}return{a:a,b:s,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,u=new o(1),a=new o(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0===(e.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(e.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);for(var f=0,c=1;0===(n.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(n.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),u.isub(a)):(n.isub(e),a.isub(u))}return(i=0===e.cmpn(1)?u:a).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,u=n;0!==o&&u<this.length;u++){var a=0|this.words[u];o=(a+=o)>>>26,a&=67108863,this.words[u]=a}return 0!==o&&(this.words[u]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new x(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function _(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(y,g),y.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,g),i(M,g),i(b,g),b.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new y;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new b}return v[t]=e,e},x.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),u=0;!i.isZero()&&0===i.andln(1);)u++,i.iushrn(1);r(!i.isZero());var a=new o(1).toRed(this),s=a.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,l).cmp(s);)h.redIAdd(s);for(var f=this.pow(h,i),c=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=u;0!==d.cmp(a);){for(var m=d,v=0;0!==m.cmp(a);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));c=c.redMul(g),f=g.redSqr(),d=d.redMul(f),p=v}return c},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new o(1);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],u=0,a=0,s=e.bitLength()%26;for(0===s&&(s=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],h=s-1;h>=0;h--){var f=l>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==u?(u<<=1,u|=f,(4===++a||0===r&&0===h)&&(i=this.mul(i,n[u]),a=0,u=0)):a=0}s=26}return i},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new _(t)},i(_,x),_.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},_.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},_.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},_.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},_.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}("undefined"===typeof t||t,this)}).call(this,n(29)(t))},function(t,e,n){"use strict";t.exports=function(t){return function(e,n){var r=0,i=t.options.timeout||8e5,o=t.options.interval||7e3,u=new Promise(function(n,u){var a=setInterval(function(){(t.getTransactionReceipt(e,function(t,e){t&&(clearInterval(a),u(t)),!t&&e&&(clearInterval(a),n(e))}),r>=i)&&(clearInterval(a),u("Receipt timeout waiting for tx hash: "+e));r+=o},o)});return n&&u.then(function(t){return n(null,t)}).catch(function(t){return n(t,null)}),n?null:u}}}]]);
  //# sourceMappingURL=1.603001c6.chunk.js.map